forked from mnjstwins/api-workbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
15 lines (15 loc) · 417 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module.exports=function(t){function e(s){if(r[s])return r[s].exports;var a=r[s]={exports:{},id:s,loaded:!1};return t[s].call(a.exports,a,a.exports,e),a.loaded=!0,a.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){var s,a=r(3),i=r(4),o=r(5),n=r(6),l=r(7),p=r(8),u=r(9),c=r(10),h=r(1).CompositeDisposable,m=r(11),g=r(12),d=r(13),b=r(14);!function(t){function e(t){r(2).install("api-workbench",!0).then(function(){y.add(atom.commands.add("atom-workspace",{"api-workbench:popular-apis":i.showPopularApis,"api-workbench:editor-tools":o.initEditorTools,"api-workbench:console":a.toggle,"api-workbench:go-to-definition":u.gotoDeclaration,"api-workbench:find-usages":u.findUsages,"api-workbench:quick-outline":p.show,"api-workbench:quick-commands":n.showCommands,"api-workbench:rename":u.renameRAMLElement,"api-workbench:new-project":u.newProject,"api-workbench:select-node":u.select})),y.add(atom.workspace.addOpener(a.opener)),m.initialize(),g.initialize(),d.initialize(),n.registerCommands(),b.initialize(),o.initEditorTools()})}function s(){return l}function f(){return c}function _(t){y.add(c.initEditorObservers(t))}function v(){y.dispose()}var y=new h;t.activate=e,t.getProvider=s,t.provideLinter=f,t.consumeLinter=_,t.deactivate=v,t.config={grammars:{type:"array","default":["source.raml"]},openConsoleInSplitPane:{type:"boolean","default":!0}}}(s||(s={})),t.exports=s},function(t,e,r){t.exports=require("atom")},function(t,e,r){t.exports=require("atom-package-deps")},function(t,e,r){function s(t){return new d.RAMLConsoleView(t)}function a(t){return t instanceof d.RAMLConsoleView}function i(){if(a(atom.workspace.getActivePaneItem()))return void atom.workspace.destroyActivePaneItem();var t=atom.workspace.getActiveTextEditor();if(!t)return void atom.notifications.addInfo("The API Console can only be opened when focused on a RAML file editor.");var e=atom.config.get("api-workbench.grammars")||[];return-1===e.indexOf(t.getGrammar().scopeName)?void atom.notifications.addInfo("The API Console can only be opened with focus on a RAML file."):o(t)?void 0:void n(t)}function o(t){var e=d.RAMLConsoleView.getUriForEditor(t),r=atom.workspace.paneForURI(e);return r?(r.destroyItem(r.itemForURI(e)),!0):!1}function n(t,e){return m(d.RAMLConsoleView.getUriForEditor(t),e)}function l(t,e){return m(d.RAMLConsoleView.getUriForFilename(t),e)}function p(t){try{var e=g.parse(t),r=e.protocol,a=e.host,i=e.pathname}catch(o){return}if("raml-console:"===r){try{i=decodeURI(i||"").substr(1)}catch(o){return}return s("editor"===a?{editorId:i}:{filename:i})}}function u(){return atom.config.get("api-workbench.openConsoleInSplitPane")}function c(){return{activatePane:!1,searchAllPanes:!0,split:u()?"right":void 0}}function h(t,e){var r=atom.workspace.getActivePane(),a=s({raml:t,state:e});return u()&&(r=r.findOrCreateRightmostSibling()),atom.workspace.itemOpened(a),r.activateItem(a),Promise.resolve(a)}function m(t,e){var r=c();atom.workspace.getActivePane();return atom.workspace.open(t,r).then(function(t){return t.setState(e),t})}var g=r(15),d=r(36);atom.deserializers.add({name:"RAMLConsoleView",deserialize:function(t){return t?s(t):void 0}}),e.createConsoleView=s,e.isConsoleView=a,e.toggle=i,e.removeConsoleForEditor=o,e.addConsoleForEditor=n,e.addConsoleForFile=l,e.opener=p,e.openView=h},function(t,e,r){function s(){var t=new v;return t}function a(t){try{t.logEnabled&&console.log(t.messageBefore);var e=b.execSync(t.callPath,{cwd:t.wrkDir,encoding:"utf8",stdio:[0,1,2]});if(t.logEnabled&&(console.log(t.messageAfter),e)){var r=e.toString();r.trim().length>0&&(t.maxLogLength<0?console.log(r):t.maxLogLength>0&&console.log(r.substring(0,Math.min(t.maxLogLength,r.length))))}}catch(s){t.onError&&t.onError(s),t.errLogEnabled&&(console.log(t.messageError),console.log(s.message))}}function i(){var t=!1,e=new S;return e.callPath="git version",e.wrkDir=_.getHome(),e.logEnabled=!0,e.messageError="Git launch failed",e.onError=function(){t=!0},a(e),!t}function o(t,e){var r=null,s=m.section(t,m.Icon.BOOK,!1,!1),a=m.hc().setPercentWidth(100).setStyle("display","flex");a.addChild(m.label("",null,null,null).setStyle("flex","1"));var i=m.button("Ok",m.ButtonSizes.NORMAL,m.ButtonHighlights.SUCCESS,m.Icon.NONE,function(t){r.destroy()});a.addChild(i),s.addChild(a),r=f.workspace.addModalPanel({item:s.renderUI()})}function n(t,e,r){void 0===r&&(r=null),r||(r=w);l(t);y.sync(e);var s=!0,i=new S;return i.callPath="git clone --branch "+r+' "'+t+'"',i.wrkDir=e,i.logEnabled=!0,i.messageBefore="Cloning GIT repository: "+t,i.messageAfter="Cloning complete: "+t,i.messageError="Cloning failed: "+t,i.onError=function(t){s=!1,o(t.message,function(){return null})},a(i),s}function l(t){return t.substring(t.lastIndexOf("/")+1,t.lastIndexOf("."))}function p(){return i()?void d.doSplit(new T,d.SplitDirections.RIGHT):void o("GIT is required to clone APIs. Please install GIT.",function(t){})}var u=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},c=r(16),h=r(17),m=r(18),g=r(26),d=r(5),b=r(19),f=r(27),_=m.fdUtils,v=r(20).XMLHttpRequest,y=r(21),w="production",S=function(){function t(){this.callPath=null,this.wrkDir=null,this.logEnabled=!1,this.errLogEnabled=!0,this.messageBefore="",this.messageAfter="",this.messageError="",this.maxLogLength=-1,this.onError=null}return t}();e.gitInstalled=i;var T=function(t){function e(){t.apply(this,arguments),this.disposables=new m.CompositeDisposable}return u(e,t),e.prototype.getTitle=function(){return"RAML Apis"},e.prototype.load=function(){var t="https://api.github.com/orgs/raml-apis/repos?per_page=200",e=m.section("RAML Apis"),a=s();e.addChild(m.label("loading...")),this.html(e.renderUI()),a.open("GET",t);var i=this,o=_.getHome(),l=c.resolve(o,"apis"),p=r(45),u=m.hc(),g=m.a("Cloning to: "+l+"(click to change)",function(t){_.openFolderDialog("Please enter new path to clone",function(t){l=t,g.setText("Cloning to: "+l+"(click to change)")},!0,l)},m.Icon.SETTINGS,m.TextClasses.NORMAL,m.HighLightClasses.HIGHLIGHT);u.addChild(g);var d=m.a(""+w,function(t){m.prompt("Please enter name of the branch",function(t){w=t,d.setText(t)},w)},m.Icon.GIT_BRANCH,m.TextClasses.NORMAL,m.HighLightClasses.HIGHLIGHT);d.margin(10,0);var b=m.list(p,function(t){var e=m.label(t.name,m.Icon.REPO,m.TextClasses.HIGHLIGHT,m.HighLightClasses.NONE).pad(10,10),r=function(){h.existsSync(l)||h.mkdirSync(l);var e=n(t.git_url,l);if(e){var r=c.resolve(l,t.name);h.existsSync(l)||h.mkdirSync(l);var s=c.resolve(r,"api.raml");h.existsSync(s)||(s=c.resolve(r,t.name+".raml")),h.existsSync(s)?f.open({pathsToOpen:[r,s]}):f.open({pathsToOpen:[r]})}},s=m.button("clone",m.ButtonSizes.EXTRA_SMALL,m.ButtonHighlights.SUCCESS,m.Icon.NONE,r);return m.hc(e,s)});u.addChild(b),i.html(u.renderUI())},e.prototype.attached=function(){this._isAttached||(this.load(),this._isAttached=!0)},e.prototype.destroy=function(){this.disposables.dispose()},e}(g.Scrollable);e.info=o,e.showPopularApis=p},function(t,e,r){function s(t){void 0===t&&(t=!0),null==d?d=new g(t):t&&d.display()}function a(){return null!=d&&d.opened}function i(){return d||(d=new g(!0)),d}function o(t){i()._view&&i()._view.refresh(),i().updateText(),i().selectNode(t)}function n(t,e){void 0===e&&(e=b.RIGHT);var r=null;switch(e){case b.BOTTOM:r=p.workspace.getActivePane().splitDown({});break;case b.TOP:r=p.workspace.getActivePane().splitUp({});break;case b.LEFT:r=p.workspace.getActivePane().splitLeft({});break;case b.RIGHT:r=p.workspace.getActivePane().splitRight({})}return r.addItem(t,0),r}var l=r(16),p=r(27),u=r(22),c=u.project,h=r(28),m=r(29),g=function(){function t(t){var e=this;void 0===t&&(t=!0),this._initialized=!1,this.updateCount=0,this.outlineCount=0,this.fire=!0,this.opened=!1,this._cleanOutline=!1,this.performanceDebug=!0,this.placeholder=!1,d=window.manager=this,p.workspace.onDidChangeActivePaneItem(function(r){return e.updateEverything(t)}),this.updateEverything(t),this.addAutoCloseListener()}return t.prototype.getPath=function(){return console.log("ETM::GetPath"),this.currentEditor?this.currentEditor.getPath():null},t.prototype.getCurrentEditor=function(){return this.currentEditor},t.prototype.internalScheduleUpdateViews=function(t){var e=this;this.updateCount=t,setTimeout(function(){e.updateCount==t&&e.updateViews()},500)},t.prototype.scheduleViewsUpdate=function(){this.fire&&this.internalScheduleUpdateViews(this.updateCount+1)},t.prototype.internalScheduleOutlineUpdate=function(t){var e=this;this.outlineCount=t,setTimeout(function(){e.outlineCount==t&&e.updateOutline()},500)},t.prototype.scheduleOutlineUpdate=function(){this.internalScheduleOutlineUpdate(this.outlineCount+1)},t.prototype.addAutoCloseListener=function(){var t=this;p.workspace.onDidDestroyPane(function(e){try{var r=p.workspace.getPaneItems().filter(function(t){return void 0!=t.softTabs}).length;0==r&&(t.ast=null,t.unit=null,t._currentNode=null,t.currentEditor=null,global.cleanCache(),p.workspace.paneForItem(t._view)&&p.workspace.paneForItem(t._view).destroy(),p.workspace.paneForItem(t._details)&&p.workspace.paneForItem(t._details).destroy(),t.opened=!1)}catch(s){console.log(s)}})},t.prototype.getOrCreateView=function(){return this._view||(this._view=new m.RamlOutline,this.ast&&this._view.setUnit(this.ast)),this._view},t.prototype.getDetails=function(){return this._details||(this._details=new h.RamlDetails),this._details},t.prototype.updateDetails=function(){this.getDetails().update()},t.prototype.reparseAST=function(){var t=this;if(this.currentEditor){var e=this.currentEditor.getPath(),r=(this.currentEditor.getBuffer(),c.createProject(l.dirname(e))),s=r.setCachedUnitContent(l.basename(e),this.currentEditor.getBuffer().getText());s.project().addTextChangeListener(function(e){if(e.unit==s){var r=e.offset,a=e.replacementLength,i=e.text,o=t.currentEditor.getBuffer(),n=o.positionForCharacterIndex(r),l=o.positionForCharacterIndex(r+a);try{t.fire=!1,o.setTextInRange({start:n,end:l},i),t.scheduleOutlineUpdate()}finally{t.fire=!0}}}),this.ast=s.highLevel(),this.unit=s}},t.prototype.isETPane=function(t){if(this._view){var e=t.getItems();return e.indexOf(this.getDetails())>=0||e.indexOf(this._view)>=0}},t.prototype.display=function(){console.log("ETM::Display");var t=p.workspace,e=p.workspace.paneForItem(this.getCurrentEditor());e&&(t.paneForItem(this.getOrCreateView())||n(this.getOrCreateView()),t.paneForItem(d.getDetails())||n(this.getDetails(),b.BOTTOM),this.opened=!0)},t.prototype.updateText=function(t){this.fire=!1;var e=this.currentEditor,r=t?e.getBuffer().positionForCharacterIndex(t.start()):null;e.setText(this.unit.contents()),this.fire=!0,r&&e.setCursorBufferPosition(r)},t.prototype.selectNode=function(t){var e=t.lowLevel();if(e){var r=this.currentEditor;if(r){var s=e?r.getBuffer().positionForCharacterIndex(e.start()):null;s&&r.setCursorBufferPosition(s)}}},t.prototype.updateEverything=function(t){void 0===t&&(t=!0);var e=p.workspace.getActiveTextEditor();if(e&&this.currentEditor!=e){var r=e.getPath();if(r&&".raml"==l.extname(r)){this.currentEditor=e,0==this.opened&&t&&this.display(),e.patched||this.addListenersToEditor(e),this.reparseAST();var s=e.getBuffer().characterIndexForPosition(e.getCursorBufferPosition());this.positionUpdated(s),this.scheduleViewsUpdate()}}},t.prototype.addListenersToEditor=function(t){var e=this,r=t.getBuffer();r.onDidChange(function(s){try{var a=(new Date).getMilliseconds();e.reparseAST();var i=r.characterIndexForPosition(t.getCursorBufferPosition());e.positionUpdated(i),e.scheduleViewsUpdate();var o=(new Date).getMilliseconds();e.performanceDebug&&console.log("Change take:"+(o-a))}catch(n){console.log(n)}}),t.getLastCursor().onDidChangePosition(function(s){e.fire&&(e.positionUpdated(r.characterIndexForPosition(t.getCursorBufferPosition())),e.scheduleViewsUpdate())}),this.addListenersOnMove(t),this.currentEditor.patched=!0},t.prototype.addListenersOnMove=function(t){var e=this,r=!1;p.workspace.onDidAddPaneItem(function(s){return r||0==e.isETPane(s.pane)||s.item==e.getOrCreateView()||s.item==e.getDetails()?s:void setTimeout(function(){try{var e=p.workspace.paneForItem(t);e&&(r=!0,s.pane.moveItemToPane(s.item,e,null),r=!1,e.setActiveItem(s.item),e.activate())}catch(a){console.log(a)}},18)})},t.prototype.patchCurrentNode=function(t){this._currentNode=t},t.prototype.getCurrentNode=function(){return null==this._currentNode?this._currentNode=this.ast:this._currentNode},t.prototype.setSelectedNode=function(t){if(this.unit)for(var e=this.unit.absolutePath();t.lowLevel().unit().absolutePath()!=e&&t.parent();)t=t.parent();var r=t.id(),s=this.ast.findById(r);s&&(t=s),this._details&&this._details.show(t);var a=this.getCurrentEditor();if(a){this.fire=!1;try{var i=a.getBuffer(),o=i.positionForCharacterIndex(t.lowLevel().start());i.positionForCharacterIndex(t.lowLevel().end());a.setCursorBufferPosition(o),this.positionUpdated(i.characterIndexForPosition(a.getCursorBufferPosition()))}finally{this.fire=!0}}},t.prototype.getSelectedNode=function(){return this.getCurrentNode()},t.prototype.setText=function(t){console.log("ETM::SetText");var e=this.currentEditor;null!=e&&e.setText(t)},t.prototype.updateViews=function(){var t=this.getCurrentNode(),e=(new Date).getMilliseconds();this._details&&this.getDetails().show(t),this._view&&(this.getOrCreateView().setUnit(d.ast),this.getOrCreateView().setSelection(t));var r=(new Date).getMilliseconds();this.performanceDebug&&console.log("Views update:"+(r-e))},t.prototype.updateOutline=function(){var t=this.getCurrentNode(),e=(new Date).getMilliseconds();this._view&&(this.getOrCreateView().setUnit(d.ast),this.getOrCreateView().setSelection(t));var r=(new Date).getMilliseconds();this.performanceDebug&&console.log("Outline update:"+(r-e))},t.prototype.positionUpdated=function(t){this.currentPosition=t,this.ast&&(this._currentNode=this.ast.findElementAtOffset(this.currentPosition))},t}(),d=null;e.initEditorTools=s,e.editorToolsStatus=a,e.aquireManager=i,e.updateAndSelect=o,function(t){t[t.RIGHT=0]="RIGHT",t[t.LEFT=1]="LEFT",t[t.TOP=2]="TOP",t[t.BOTTOM=3]="BOTTOM"}(e.SplitDirections||(e.SplitDirections={}));var b=e.SplitDirections;e.doSplit=n},function(t,e,r){function s(){return c||(c=new u),c}function a(){s().show()}function i(){h.registerQuickCommands(s()),c.add("api-workbench:editor-tools","Show Editor Tools",function(){return m.initEditorTools()},function(){return 0==m.editorToolsStatus()})}var o=r(31),n=r(27),l=r(30),p=function(){function t(t,e,r,s,a){this.id=t,this.title=e,this.command=r,this.priority=s,this.when=a}return t.prototype.registerAsAtomCommand=function(t){this.atomCommand&&0==this.atomCommand.disposed&&this.atomCommand.dispose(),this.atomCommand=n.commands.add(t,this.id,this.command)},t.prototype.dispose=function(){this.atomCommand&&0==this.atomCommand.disposed&&this.atomCommand.dispose(),c.unregister(this)},t}();e.QuickCommand=p;var u=function(){function t(){this.commands={},this.panel=new o.SelectListView(function(t){return t.command()},function(t){return t.title},"title")}return t.prototype.register=function(t){return null!=this.commands[t.id]&&this.unregister(t.id),this.commands[t.id]=t,t},t.prototype.unregister=function(t){"string"==typeof t&&this.unregister(this.commands[t]);var e=t;return null==e?null:(delete this.commands[e.id],e)},t.prototype.add=function(t,e,r,s,a,i){var o=new p(t,e,r,a?a:0,s?s:function(){return!0});return i&&o.registerAsAtomCommand(i),this.register(o),o},t.prototype.show=function(t){var e={};for(var r in this.commands)e[r]=this.commands[r];this.getDynamicCommands().forEach(function(t){e[t.id]=t});var s=Object.keys(e).map(function(t){return e[t]}).sort(function(t,e){return e.priority-t.priority}).filter(function(t){return t.when()});t&&(s=s.filter(t)),this.panel.show(s)},t.prototype.getDynamicCommands=function(){var t=[],e=l.calculateCurrentActions(l.TARGET_RAML_EDITOR_NODE);return e.forEach(function(e){var r=new p(e.name,e.label?e.label:e.name,e.onClick,1,function(){return!0}),s=r;s.__module__="editorTools",t.push(r)}),t},t}();e.CommandManager=u;var c;e.manager=s,e.showCommands=a;var h=r(32),m=r(5);e.registerCommands=i},function(t,e,r){function s(t){var e=!t.isArray()&&!a(t)&&!t.hasUnionInHierarchy()&&t.key()!==U.Universe10.TypeDeclaration;return e}function a(t){return t.isAssignableFrom(U.Universe10.ObjectTypeDeclaration.name)||t.isAssignableFrom("object")}function i(t){return t.isAssignableFrom(U.Universe10.ArrayTypeDeclaration.name)}function o(t){var e=[];return t&&t.isUnion()?t.left?(e.push(t.left),e.concat(o(t.right))):void 0:t?[t]:e}function n(t,e){if(e){if(t.getAdapter(H.RAMLPropertyService).isTypeExpr()){var r,n=e.associatedType(),l=e.definition(),p=e.attr(U.Universe10.TypeDeclaration.properties.type.name),u=p&&p.value(),c=e.children()&&e.children().filter(function(t){return t.isAttr()&&z.isTypeProperty(t.property())}),h=M.globalDeclarations(e).filter(function(p){if(z.isGlobalSchemaType(p.definition()))return!0;var h=p.definition().allSuperTypes();if(F.find(h,function(t){return z.isTypeDeclarationType(t)})){var m=u&&t&&t.isMultiValue()&&c&&c.length>1;if(m){if(!n)try{n=e.localType()}catch(g){console.log(g)}if(n&&!l.hasUnionInHierarchy()){var d=n.superTypes().filter(function(t){return!t.isAssignableFrom("unknown")});if(d){var b=F.find(d,function(t){return a(t)}),f=F.find(d,function(t){return s(t)}),_=F.find(d,function(t){return i(t)})||l&&i(l),v=_||f;if(r=b||v,F.find(d,function(t){return M.qName(p,e)===t.nameId()}))return!1;if(r&&(s(p.definition())||i(p.definition())))return!1;if(v&&a(p.definition()))return!1}}if(l.hasUnionInHierarchy()){var y=o(l);if(F.find(y,function(t){return M.qName(p,e)===t.nameId()}))return!1}}return!0}return z.isTypeDeclarationType(p.definition())&&"models"===p.property().nameId()}),m=h.map(function(t){return{text:M.qName(t,e),description:""}}),g=t.domain().universe().type("TypeDeclaration");if(g){var d=g.allSubTypes();m=m.concat(d.filter(function(t){return r&&(s(t)||i(t))?!1:!0}).map(function(t){return{text:t.getAdapter(H.RAMLService).descriminatorValue(),description:t.description()}}))}return m}if(z.isSchemaStringType(t.range())&&"RAML10"===t.range().universe().version()){var h=M.globalDeclarations(e).filter(function(t){if(z.isGlobalSchemaType(t.definition()))return!0;var e=t.definition().allSuperTypes();return F.find(e,function(t){return z.isTypeDeclarationType(t)})?!0:z.isTypeDeclarationType(t.definition())&&"models"===t.property().nameId()}),m=h.map(function(t){return{text:M.qName(t,e),description:""}}),d=M.subTypesWithLocals(t.domain().universe().type("TypeDeclaration"),e);return m=m.concat(d.map(function(t){return{text:t.getAdapter(H.RAMLService).descriminatorValue(),description:t.description()}}))}if(t.isDescriminator()){var d=M.subTypesWithLocals(t.domain(),e);return d.map(function(t){return{text:t.getAdapter(H.RAMLService).descriminatorValue(),description:t.description()}})}if(t.isReference())return M.nodesDeclaringType(t.referencesTo(),e).map(function(t){return q(t,e)});if(t.range().hasValueTypeInHierarchy()){var b=t.range().getAdapter(H.RAMLService);if(b.globallyDeclaredBy().length>0){var h=M.globalDeclarations(e).filter(function(t){var e=t.definition();return null!=F.find(b.globallyDeclaredBy(),function(t){return t==e})});return h.map(function(t){return q(t,e)})}if(z.isBooleanTypeType(t.range()))return["false","true"].map(function(t){return{text:t}})}}return M.enumValues(t,e).map(function(t){return{text:t}})}function l(t,e){var r=!0;return e.getContextRequirements().forEach(function(e){if(-1==e.name.indexOf("(")){var s=t.computedValue(e.name);s?r=r&&s==e.value:e.value&&(r=!1)}}),r}function p(t){var e=t.editor.getBuffer().characterIndexForPosition(t.triggerPosition);if(t.suggestion.annotation){for(var r=t.editor.getBuffer().getText(),s=e;s<r.length;s++){var a=r.charAt(s);if(")"==a){e=s+1;break}if("\r"==a||"\n"==a)return}var i=t.editor.getBuffer().positionForCharacterIndex(e);return void t.editor.getBuffer().insert(i,":")}if(t.suggestion.replacementPrefix&&t.suggestion.extra||"%"==t.suggestion.extra){var i=t.editor.getBuffer().positionForCharacterIndex(e-t.suggestion.replacementPrefix.length);t.editor.getBuffer().insert(i,t.suggestion.extra)}else{if(" "==t.suggestion.extra){var i=t.editor.getBuffer().positionForCharacterIndex(e);t.editor.getBuffer().insert(i,t.suggestion.extra)}if(" { "==t.suggestion.extra){var i=t.editor.getBuffer().positionForCharacterIndex(e);t.editor.getBuffer().insert(i,t.suggestion.extra)}if(t.suggestion.extra&&-1!=t.suggestion.extra.indexOf("!include")){var i=t.editor.getBuffer().positionForCharacterIndex(e);t.editor.getBuffer().insert(i,t.suggestion.extra)}}}function u(t,e,r){var s=R.resolve(e,r);if(O.existsSync(s)){var a=O.readdirSync(s),i=a.map(function(e){return{text:e,replacementPrefix:t,extra:"./"+r+"/"}});return i}return[]}function c(t,e,r,s,a,i){var o=L(e,r),n=t.editor.getPath(),l=R.dirname(n),p=R.resolve(l,o);if(p&&(l=R.dirname(p),O.existsSync(p))){var c=O.statSync(p);c.isDirectory()&&(l=p)}var h=[],m=!i;if(s&&i&&("example"==s.name()&&(h=h.concat(u(o,l,"examples")),m=!0),"value"==s.name()&&z.isGlobalSchemaType(s.parent().definition())&&(h=h.concat(u(o,l,"schemas")),m=!0)),s||i&&(z.isTraitType(a.definition())&&(h=h.concat(u(o,l,"traits")),m=!0),z.isResourceTypeType(a.definition())&&(h=h.concat(u(o,l,"resourceTypes")),m=!0),z.isSecuritySchemaType(a.definition())&&(h=h.concat(u(o,l,"securitySchemes")),m=!0),z.isGlobalSchemaType(a.definition())&&(h=h.concat(u(o,l,"schemas")),m=!0)),(!m||!i)&&O.existsSync(l)){var g=O.readdirSync(l);h=h.concat(g.map(function(t){return{text:t}}))}return h}function h(t,e,r,s,a,i){var o=L(e,r),n=D.schema.getIncludePath(o),l=D.schema.getIncludeReference(o);if(!n||!l)return[];var p=s.lowLevel().unit().resolve(n);if(!p)return[];var u=p.contents();if(!u)return[];try{var c=D.schema.completeReference(n,l,u);return c.map(function(t){return{text:t}})}catch(h){console.log(h)}return[]}function m(t,e,r,s,a,i){var o=L(e,r);return-1==o.indexOf("#")?c(t,e,r,s,a,i):h(t,e,r,s,a,i)}function g(t,e){if(!t)return null;for(var r=t.split("/"),s=e.lowLevel(),a=s,i=0;i<r.length-1;i++)if("#"!=r[i]){if(a=F.find(a.children(),function(t){return t.key()==r[i]}),!a)return null}else a=s.unit().ast();return a.children().map(function(t){return{text:t.key()}})}function d(t,e){var r=e.definition().universe().types().filter(function(t){return!t.hasValueTypeInHierarchy()&&!t.hasUnionInHierarchy()});return r.map(function(t){return{text:t.nameId(),description:t.description()}})}function b(t,e,r,s,a){var i=t;if(e){var o=e.property(),l=e.value();if("object"==typeof l&&l){var p=l.toHighLevel();if(p)return w(Q,I(p,r,s));if(M.isExampleNodeContent(e)){var u=M.findExampleContentType(e);if(u){var c=M.parseDocumentationContent(e,u);if(c)return w(Q,I(c,r,s))}}}if(o){var h=n(o,i);if(o.isAllowNull()&&h.push({text:"null",description:"null means - that no value is allowed"}),!h||0==h.length){var g=o.getOftenKeys();if(g)return g.map(function(t){return{text:t,displayText:t}})}if(z.isExampleProperty(o)&&z.isBodyLikeType(i.definition())){if(!f(e.value(),r,s))return;var d=m(a,s,r,e,i,!0).map(function(t){return t.extra="!include ./examples/",t.displayText="!include ./examples/"+t.text,t});return d=W(d,e.lowLevel().start(),s)}if(z.isValueProperty(o)&&z.isGlobalSchemaType(i.definition())){if(!f(e.value(),r,s))return;d=m(a,s,r,e,i,!0).map(function(t){return t.extra="!include ./schemas/",t.displayText="!include ./schemas/"+t.text,t}),d=W(d,e.lowLevel().start(),s)}if(h)return h}return[]}if(z.isGlobalSchemaType(i.definition())&&(d=m(a,s,r,e,i,!0).map(function(t){return t.extra="!include ./schemas/",t.displayText="!include ./schemas/"+t.text,t}),d=W(d,i.lowLevel().start(),s)),z.isTraitType(i.definition()))return d=m(a,s,r,e,i,!0).map(function(t){return t.extra="!include ./traits/",t.displayText="!include ./traits/"+t.text,t}),d=J(d,i.lowLevel().start(),s);if(z.isResourceTypeType(i.definition())){var d=m(a,s,r,e,i,!0).map(function(t){return t.extra="!include ./resourceTypes/",t.displayText="!include ./resourceTypes/"+t.text,t});return d=J(d,i.lowLevel().start(),s)}if(z.isSecuritySchemaType(i.definition())){var d=m(a,s,r,e,i,!0).map(function(t){return t.extra="!include ./securitySchemes/",t.displayText="!include ./securitySchemes/"+t.text,t});return d=J(d,i.lowLevel().start(),s)}}function f(t,e,r){if(t&&t.length>0){var s=t.trim();if(0==s.indexOf("{"))return!1;if(0==s.indexOf("<"))return!1;if(0==s.indexOf("["))return!1}for(var a=e;a>=0;a--){var i=r[a];if(":"==i)return!0;if("|"==i)return!1;if("'"==i)return!1;if('"'==i)return!1}return!0}function _(t,e){var r=(new Date).getMilliseconds();try{return w(t,e)}finally{if(G.aquireManager()){var s=G.aquireManager();if(s.performanceDebug){var a=(new Date).getMilliseconds();console.log("Completion calc:"+(a-r))}}}}function v(t){return t.text?t.text:t.snippet?t.snippet:t.displayText}function y(t,e){return t.text?void(t.text=e):t.snippet?void(t.snippet=e):void(t.displayText=e)}function w(t,e){Q=t;try{if($>100)return;$++;var r=t.editor.getBuffer().characterIndexForPosition(t.bufferPosition),s=t.editor.getBuffer().getText(),a=M.determineCompletionKind(s,r),i=e?e:P(t),o=i;if(a==M.LocationKind.DIRECTIVE_COMPLETION)return[{text:"include"}];if(a==M.LocationKind.ANNOTATION_COMPLETION){var n=M.globalDeclarations(o).filter(function(t){return z.isAnnotationTypesProperty(t.property())});return n.map(function(t){return{text:M.qName(t,o),annotation:!0}})}if(a==M.LocationKind.VERSION_COMPLETION)return K(s,t,r);if(a==M.LocationKind.INCOMMENT)return[];if(null==i)return[];for(var l=!1,p=r-1;p>=o.lowLevel().start();p--){var u=s[p];if("\r"==u||"\n"==u){l=!0;break}}for(var c=r,h=r-1;h>=0;h--){var g=s[h];{if(" "!=g&&" "!=g)break;c=h}}var d=F.find(o.attrs(),function(t){return t.lowLevel().start()<c&&t.lowLevel().end()>=c&&!t.property().getAdapter(H.RAMLPropertyService).isKey()});if(!d){var f=F.find(o.definition().allProperties(),function(t){return t.canBeValue()});if(l){var _=F.find(o.lowLevel().children(),function(t){return t.start()<r&&t.end()>=r});if(_){var f=F.find(o.definition().allProperties(),function(t){return t.nameId()==_.key()});if(f){var w=C(_.keyStart(),_.unit().contents()),x=C(r,_.unit().contents());if(x.length>w.length+1){var I=f.range().hasValueTypeInHierarchy();I?d=D.stubs.createVirtualASTPropImpl(_,o,f.range(),f):_.children().length>0&&(o=D.stubs.createVirtualNodeImpl(_.children()[0],o,f.range(),f))}}}}else f&&a==M.LocationKind.VALUE_COMPLETION&&z.isTypeProperty(f)&&1==o.children().length&&(d=D.stubs.createASTPropImpl(o.lowLevel(),o,f.range(),f))}if(a==M.LocationKind.PATH_COMPLETION)return m(t,s,r,d,o,!1);if(d&&(a==M.LocationKind.KEY_COMPLETION||a==M.LocationKind.SEQUENCE_KEY_COPLETION)){for(var N="",p=r-1;p>=0;p--){var u=s[p];if("\r"==u||"\n"==u)break;N=u+N}N=N.trim(),N!=d.name()&&(a=M.LocationKind.VALUE_COMPLETION)}if(a==M.LocationKind.VALUE_COMPLETION){var O=b(i,d,r,s,t);if(!d&&(!O||0==O.length)&&!l&&o.definition().getAdapter(H.RAMLService).isUserDefined())return j(o,r,s,nt,lt,l);if(d&&d.property()&&(d.property().getAdapter(H.RAMLPropertyService).isTypeExpr()||d.property().isAnnotation())){O||(O=[]),O=O.filter(function(t){var e=v(t);return e===o.name()?!1:!0});var R=L(s,r),G=R.lastIndexOf(".");R=G?R.substr(0,G+1):null,R&&(O=O.filter(function(t){return 0==v(t).indexOf(R)}),O.forEach(function(t){return y(t,v(t).substring(R.length))}))}if(O)if(":"==s[r-1]&&O.forEach(function(t){t.extra?t.extra=" "+t.extra:t.extra=" "}),-1!=t.prefix.indexOf("["))t.prefix="",O.forEach(function(t){t.text=": [ "+t.displayText});else if(E(d)){O=O.filter(function(t){return!S(d,t.displayText)});for(var q="",Z=r,W=Z;W<s.length&&!/[\t\n\r]/.test(s[W]);W++)if(q+=s[W],":"===q.replace(/\s/g,"")){O.forEach(function(t){t.text=t.displayText,t.snippet=null,t.extra=null});break}var Y=!1;Z=r-1;for(var W=Z;W>=0&&!/[\t\n\r]/.test(s[W]);W--)if("["===s[W]){Y=!0;break}Y||O.forEach(function(t){return!L(s,r)&&t.snippet?(t.text=t.displayText,void(t.snippet="["+t.snippet+"]")):(t.extra=" [",t.text=(t.snippet||t.displayText)+"]",void(t.snippet=null))})}else{for(var q="",Z=r,W=Z;W<s.length&&!/[\t\n\r]/.test(s[W]);W++)if(q+=s[W],":"===q.replace(/\s/g,"")){O.forEach(function(t){t.text=t.displayText,t.snippet=null,t.extra=null});break}O.forEach(function(t){t.isResourceType&&!L(s,r)&&t.snippet&&(t.snippet=t.extra+t.snippet,t.extra=null,t.text=t.displayText)})}if(!l&&O&&O.length>0&&(O=J(O,o.lowLevel().start(),s)),O&&k(d)&&t.prefix&&t.prefix.length>0){for(var tt=!1,et=0,rt=0,N="",p=r-1;p>=0;p--){var u=s[p];if("\r"===u||"\n"===u)break;if("<"===u&&"<"===s[p-1]){tt=!0;break}"!"===u&&et++,"|"===u&&1===et&&rt++,N=u+N}if(tt&&1===et&&1===rt){var st=new RegExp(/\|\s*!\s*/.source+t.prefix);st.test(N)&&(O=X(O,t.prefix))}}return O}if(a==M.LocationKind.KEY_COMPLETION||a==M.LocationKind.SEQUENCE_KEY_COPLETION&&r>0&&"-"!=s.charAt(r-1)&&" "!=s.charAt(r-1)){if(i.isAttr()||i.isImplicit())throw new Error("Should be highlevel node at this place");if(M.isExampleNode(o))return T(o,r,s,t);if(o.property()&&z.isUriParametersProperty(o.property())&&o.definition()instanceof B.NodeClass){var at=o.parent().attr("relativeUri");if(at&&o.name().substring(0,o.name().length-1)==L(s,r)){var it=D.utils.parseUrl(at.value());if(it instanceof Array&&it){if(V(r,s))var ot=it.map(function(t){return{text:t+": \n"+A(r,s)+" "}});else var ot=it.map(function(t){return{text:t}});return ot}}}if(o.property()&&z.isBaseUriParametersProperty(o.property())&&o.definition()instanceof B.NodeClass){var at=o.root().attr(U.Universe10.Api.properties.baseUri.name);if(at&&o.name().substring(0,o.name().length-1)==L(s,r)){var it=D.utils.parseUrl(at.value());if(it instanceof Array&&it){if(V(r,s))var ot=it.map(function(t){return{text:t+": \n"+A(r,s)+" "}});else var ot=it.map(function(t){return{text:t}});return ot}}}if(o.property()&&z.isResourcesProperty(o.property())){var at=o.attr("relativeUri");if(at&&o.name().substring(0,o.name().length-1)==L(s,r))return at&&-1!=at.value().indexOf("{")?[{text:"mediaTypeExtension}"}]:[]}var nt=o.property()&&o.property().isMultiValue();o.lowLevel().keyEnd()<r&&(nt=!1);var lt=!0;if(nt){var pt=o.definition().getAdapter(H.RAMLService).getCanInherit();if(pt){var ut=o.computedValue(pt[0]);ut&&(lt=!0,nt=!1)}}return j(o,r,s,nt,lt)}return[]}finally{$--}}function S(t,e){var r=t.parent&&t.parent();if(!r)return!1;var s=t.name&&t.name();if(!s)return!1;var a=r.attributes&&r.attributes(s);if(!a)return!1;if(0===a.length)return!1;var i=[];return a.forEach(function(t){var e=t.value&&t.value()&&t.value().valueName&&t.value().valueName();e&&i.push(e)}),F.find(i,function(t){return e===t})}function T(t,e,r,s){if(!M.isExampleNode(t))return[];var a=M.findExampleContentType(t);if(!a)return[];var i=M.parseStructuredExample(t,a);return i?w(s,I(i,e,r)):[]}function E(t){return t&&t.definition()&&t.property()&&t.definition().isAssignableFrom(U.Universe10.TraitRef.name)?!0:!1}function k(t){var e=t&&t.definition?t.definition():null;if(e){var r=e.nameId();if("Api"===r)return!1;if("ResourceType"===r||"Trait"===r)return!0;var s=t.parent();return s?k(s):!1}return!1}function C(t,e){for(var r="",s=t-1;s>=0;s--){var a=e.charAt(s);if(" "==a||" "==a)r?r+=a:r=a;else{if("\r"==a||"\n"==a)return r;if(r)return""}}return""}function x(t,e){for(var r="",s=t-1;s>=0;s--){var a=e.charAt(s);if(" "==a||" "==a||"-"==a)r?r+=a:r=a;else{if("\r"==a||"\n"==a)return r;if(r)return""}}return""}function A(t,e){for(var r="",s=t-1;s>=0;s--){var a=e.charAt(s);if(" "==a||" "==a)r?r+=a:r=a;else if("\r"==a||"\n"==a)return r}}function P(t,e,r){void 0===e&&(e=!0),void 0===r&&(r=!0);var s=t.editor.getPath(),a=D.project.createProject(R.dirname(s)),i=t.editor.getBuffer().characterIndexForPosition(t.bufferPosition),o=t.editor.getBuffer().getText(),n=M.determineCompletionKind(o,i);if(n==M.LocationKind.KEY_COMPLETION&&e){for(var l=i>0?i-1:i,p=l;p>0;p--){var u=o[p];if("\r"==u||"\n"==u)break;(" "==u||" "==u)&&h++}var c=i;o=o.substring(0,c)+"k:"+o.substring(c)}for(var h=0,m=a.setCachedUnitContent(R.basename(s),o),g=m.highLevel(),d=i,b=i-1;b>=0;b--){
var u=o[b];{if(" "!=u&&" "!=u)break;d=b-1}}var f=g.findElementAtOffset(d);if(f&&null==f.parent()&&h>0&&n==M.LocationKind.KEY_COMPLETION){var _=F.find(f.attrs(),function(t){var e=t;return e.lowLevel().start()<i&&e.lowLevel().end()>=i&&!e.property().isKey()});if(!_&&r)return null}return r||f?f:g}function I(t,e,r){for(var s=e,a=e-1;a>=0;a--){var i=r[a];{if(" "!=i&&" "!=i)break;s=a}}var o=t.findElementAtOffset(s);return o}function L(t,e){for(var r=e-1;r>=0;r--){var s=t.charAt(r);if("\r"==s||"\n"==s||" "==s||" "==s||'"'==s||"'"==s||":"==s||"("==s)return t.substring(r+1,e)}return""}function N(t){var e=t.absolutePath(),r=t.contents(),s=F.find(atom.workspace.getTextEditors(),function(t){var r=t.getPath();return r==e});s?s.setText(r):O.writeFileSync(e,r)}var O=r(17),R=r(16),D=r(22),B=D.ds,M=D.search,G=r(5),F=r(24),U=D.universes,z=D.universeHelpers,H=B;e.selector=".source.raml",e.disableForSelector=".text.html .comment",e.filterSuggestions=!0,e.inclusionPriority=1,e.excludeLowerPriority=!0;var q=function(t,e){var r=!1,s=t.attr("description"),a="";s?a=s.value():(s=t.attr("usage"),s&&(a=s.value()));var i=t.localType(),o=i.allProperties().filter(function(t){return t.isRequired()&&!t.getAdapter(H.RAMLPropertyService).isKey()}),n=M.qName(t,e);if(!z.isAnnotationTypeType(t.definition())&&o.length>0){n+=": {",n+=o.map(function(t){return t.nameId()+" : "}).join(", ")+"}";var l="";z.isResourceTypeType(t.definition())&&(n=""+n+" }",l=" { ",r=!0)}return{displayText:M.qName(t,e),snippet:n,description:a,extra:l,isResourceType:r}},Z=function(t,e){for(var r="";t>0;){var s=e[t];if("\r"==s||"\n"==s||" "!=s&&"-"!=s)break;r+=" ",t--}return r},V=function(t,e){for(var r=!0,s=t>0?t-1:0;s<e.length;s++){var a=e.charAt(s);if(" "==a||"\r"==a||"\n"==a)break;":"==a&&(r=!1)}return r};e.isAllowed=l;var j=function(t,e,r,s,a,i){void 0===i&&(i=!0);var o=t,n=!1,p=!1;if(i){var u=x(t.lowLevel().keyStart(),r);void 0==u&&(u="");var c=x(e,r),h=u.length,m=c.length;for(h==m&&t.parent()&&(t.property().getAdapter(H.RAMLPropertyService).isMerged()?o=o.parent():(n=!1,p=!0)),m>h&&(n=!0,m>=h+4&&(p=!0,n=!1));h>m&&o.parent();)o=o.parent(),h-=2}var g=V(e,r),d=g?": ":"",b=o.definition().allProperties();b=b.filter(function(t){return!t.getAdapter(H.RAMLPropertyService).isKey()&&!t.getAdapter(H.RAMLPropertyService).isMerged()&&!t.getAdapter(H.RAMLPropertyService).isSystem()}),b=b.filter(function(t){return l(o,t)});var f={};if(o.attrs().forEach(function(t){f[t.name()]=!0}),b=b.filter(function(t){return!f[t.nameId()]}).filter(function(t){return!t.isAnnotation()}),t.definition().isAssignableFrom(U.Universe10.TypeDeclaration.name)&&!t.definition().isAssignableFrom("ObjectTypeDeclaration")&&!t.attr("type")){var _=t.definition().universe().type("ObjectTypeDeclaration");_&&b.push(_.property("properties"))}var v=[];return s||p||(v=b.map(function(t){var s=t.nameId()+d;return!t.range().hasValueTypeInHierarchy()&&g&&(s+="\n"+C(e,r)+" "),{text:s,displayText:t.nameId(),description:t.description()}})),a&&o.definition().allProperties().filter(function(t){return t.getAdapter(H.RAMLPropertyService).isMerged()||t.isFromParentKey()}).forEach(function(t){if((!p||t.isFromParentKey())&&(!n||!t.isFromParentKey())){var s=t,a=t.getOftenKeys();if(!a){var i=t.suggester();i&&(a=i(o))}a||(a=t.enumOptions()),o.property()&&z.isBodyProperty(o.property())&&(a||(z.isResponseType(o.property().domain())&&(a=["application/json","application/xml"]),(z.isMethodBaseType(o.property().domain())||z.isMethodType(o.property().domain()))&&(a=["application/json","application/xml","multipart/form-data","application/x-www-form-urlencoded"]))),a&&a.forEach(function(t){var a=s.valueDocProvider(),i="";a&&(i=a(t)),g?v.push({text:t+":\n"+C(e,r)+" ",description:i,displayText:t,prefix:t.indexOf("/")>=0?L(r,e):null}):v.push({text:t,description:i,displayText:t,prefix:t.indexOf("/")>=0?L(r,e):null})})}}),v};e.onDidInsertSuggestion=p,e.fromDir=u,e.pathCompletion=m,e.swaggerRefCompletion=g,e.ramlSelectorCompletion=d;var K=function(t,e,r){var s=["RAML 0.8","RAML 1.0"],a=[],i=t.substr(0,r);if(0==i.indexOf("#%RAML 1.0 ")){var o=["DocumentationItem","DataType","NamedExample","ResourceType","Trait","SecurityScheme","AnnotationTypeDeclaration","Library","Overlay","Extension"];return o.map(function(t){return{text:t}})}return s.forEach(function(s){if(0==("#%"+s).indexOf(i))if(0==t.trim().indexOf("#%"))if(-1!=e.prefix.indexOf("R"))a.push({displayText:s,text:s});else{var o=t.substring(2,r);0==s.indexOf(o)&&("1"==e.prefix||"0"==e.prefix?a.push({displayText:s,text:e.prefix+s.substr(r-2)}):a.push({displayText:s,text:s.substr(r-2)}))}else a.push({displayText:s,text:s,extra:"%"})}),a},W=function(t,e,r){return t=[{displayText:"Define Inline",text:"|\n"+Z(e-1,r)+" "}].concat(t)},J=function(t,e,r){return t=[{displayText:"Define Inline",text:"\n"+Z(e-1,r)+" "}].concat(t)},Y=D.utils.getTransformerNames(),X=function(t,e){var r=[];return Y.filter(function(t){return 0===t.indexOf(e)}).forEach(function(t){r.push({displayText:t,text:t})}),r.concat(t)};e.valueCompletion=b;var Q=null;e.getSuggestions=_;var $=0;e.getAstNode=P,e.getValuePrefix=L,e.saveUnit=N},function(t,e,r){function s(t){new h(t).show()}function a(){var t=atom.workspace.getActiveTextEditor();if(t){var e=t.getPath(),r=i.basename(e),a=i.extname(r);l.isAllowedExtension(a)&&o.existsSync(e)&&s(t)}}var i=r(16),o=r(17),n=(r(23),r(7)),l=r(33),p=r(18),u=r(29),c=r(5),h=function(){function t(t){this._editor=t}return t.prototype.extraContent=function(t){},t.prototype.show=function(){var t=this,e=null,r=null,s=n.getAstNode({bufferPosition:this._editor.getCursorBufferPosition(),editor:this._editor},!1,!1),a=p.section("Quick outline:"),i=u.createTree(s.root(),function(t){return t.selection&&t.selection.elements.length>0?(r=t.selection.elements[0],void l.setDisabled(!1)):void l.setDisabled(!0)},function(r){var s=t._editor,a=s.getBuffer(),i=a.positionForCharacterIndex(r.lowLevel().start());s.setCursorScreenPosition(i),e.destroy()});i.setStyle("max-height","800px"),i.addClass("tree-view-scroller"),a.addChild(i);var o=p.buttonSimple("Cancel",function(t){e.destroy()},p.Icon.NONE);o.setStyle("float","right").margin(4,10);var l=p.button("Ok",p.ButtonSizes.NORMAL,p.ButtonHighlights.PRIMARY,p.Icon.NONE,function(t){r&&c.aquireManager().setSelectedNode(r),e.destroy()});l.setStyle("float","right").margin(4,10),l.setDisabled(!0),a.addChild(l),a.addChild(o);var h=a.renderUI();h.tabIndex=0,h.onkeypress=function(t){27==t.keyCode&&e.destroy()},e=atom.workspace.addModalPanel({item:h}),h.focus()},t}();e.show=a},function(t,e,r){function s(t){var e=t.parent().root(),r=t.property().range().universe().type("GlobalSchema"),s=x.createStubNode(r,r.universe().type("Api").property("schemas"),""+t.value());s.attrOrCreate("value").setValue("!include schemas/"+t.value()+".json"),e.add(s);var a=atom.workspace.getActiveTextEditor();a.getBuffer().setText(e.lowLevel().unit().contents());var i=k.resolve(k.dirname(a.getPath()),"schemas");E.existsSync(i)||E.mkdirSync(i);var o=k.resolve(i,t.value()+".json");E.writeFileSync(o,'\n{\n "$schema" : "http://json-schema.org/draft-04/schema" ,\n "type" : "object" ,\n "properties" : {\n }\n}\n'),atom.workspace.open(o,{})}function a(t,e,r,s,a){var i=t.definition().universe().type("GlobalSchema"),o=x.createStubNode(i,i.universe().type("Api").property("schemas"),""+e);o.attrOrCreate("value").setValue("!include "+r),t.add(o);var n=m(),l=a?k.dirname(a):k.resolve(k.dirname(n.getPath()),k.dirname(r));E.existsSync(l)||E.mkdirSync(l);var p=a?a:k.resolve(k.dirname(n.getPath()),r);E.writeFileSync(p,s)}function i(t,e,r){var s=m(),a=k.resolve(k.dirname(s.getPath()),k.dirname(e));E.existsSync(a)||E.mkdirSync(a);var i=k.resolve(k.dirname(s.getPath()),e);E.writeFileSync(i,r)}function o(t,e,r,s,a){void 0===s&&(s=!0),void 0===a&&(a=!0);var i=[a?"#%RAML 1.0":"#%RAML 0.8","title: "+t];e&&i.push("version: "+e),r&&i.push("baseUri: "+r);var o=["types:"," TestType:"," type: object"," properties:"," id: number"," optional?: string"," expanded:"," type: object"," properties:"," count: number"],n=["/helloWorld:"," get:"," responses:"," 200:"," body:"," application/json:"," example: |"," {",' "message" : "Hello World"'," }"],l=i;return s&&(a&&(l=l.concat(o)),l=l.concat(n)),l.join("\n")+"\n"}function n(){(new G).show()}function l(t){new B.MoveElementsDialog(t,"Resource Type",!0).show()}function p(t){var e=t.match(/^.*((\r\n|\n|\r)|$)/gm);return e}function u(t){for(var e=p(t),r=[],s=0;s<e.length;s++)e[s].trim().length>0&&r.push(e[s]);return r.join("")}function c(t,e){for(var r=p(t),s=[],a=0;a<r.length;a++)0==a?s.push(r[0]):s.push(r[a].substring(e.length));return s.join("")}function h(t){for(var e="",r=0;r<t.length;r++){var s=t[r];if("\r"!=s&&"\n"!=s){if(" "!=s&&" "!=s)break;e+=s}}return e}function m(){var t=atom.workspace.getActiveTextEditor();return t?t:M.aquireManager()?M.aquireManager().getCurrentEditor():null}function g(t){new F(t).show()}function d(){var t=m();if(t&&".raml"==k.extname(t.getPath())){var e={editor:t,bufferPosition:t.getCursorBufferPosition()},r=L.getAstNode(e,!1);if(!r)return;var s=e.editor.getBuffer().characterIndexForPosition(e.bufferPosition),a=P.determineCompletionKind(t.getBuffer().getText(),s);if(a==P.LocationKind.VALUE_COMPLETION){var i=r,o=I.find(i.attrs(),function(t){return t.lowLevel().start()<s&&t.lowLevel().end()>=s&&!t.property().getAdapter(D.RAMLPropertyService).isKey()});if(o&&o.value()){var n=o.property(),l=(o.value(),P.referenceTargets(n,i)),p=I.find(l,function(t){return t.name()==o.value()});p&&N.prompt("New name for "+o.value(),function(t){v(function(e,r){r.reverse().forEach(function(e){var r=e;r.asAttr().setValue(t)}),e.attr(e.definition().getAdapter(D.RAMLService).getKeyProp().nameId()).setValue(t);var s=m();s.getBuffer().setText(e.lowLevel().unit().contents())})},o.value())}}if(a==P.LocationKind.KEY_COMPLETION||a==P.LocationKind.SEQUENCE_KEY_COPLETION){var i=r;N.prompt("New name for "+i.name(),function(t){v(function(e,r){var s=e.attrValue(e.definition().getAdapter(D.RAMLService).getKeyProp().nameId());r.reverse().forEach(function(e){var r=e;b(r.asAttr(),s,t)}),e.attr(e.definition().getAdapter(D.RAMLService).getKeyProp().nameId()).setValue(t);var a=m();a.getBuffer().setText(e.lowLevel().unit().contents())})},i.name())}}}function b(t,e,r){var s=t.value();if("string"!=typeof s){if("object"==typeof s){var a=s,i=a.valueName();if(-1!=i.indexOf(e)){var o=a.toHighLevel();if(o){var n=!1;if(o.definition().isAnnotationType()){var l=f(o.definition(),a.lowLevel());return void l.setValue("("+r+")")}return void o.attrs().forEach(function(t){if(t.property().getAdapter(D.RAMLPropertyService).isKey()){var s=t.value();if("string"==typeof s){n=!0;var a=s.replace(e,r);t.setValue(a)}}})}}}t.setValue(r)}else{var i=s,p=i.replace(e,r);if(t.setValue(p),-1==i.indexOf(e)&&-1!=t.name().indexOf(e)){var u=t.name().replace(e,r);t.setKey(u)}}}function f(t,e){var r=new R.UserDefinedProp("name");r.withRange(this.universe().type(A.Universe10.StringType.name)),r.withFromParentKey(!0);var s=t.getAdapter(D.RAMLService).getDeclaringNode();return x.createASTPropImpl(e,s,r.range(),r,!0)}function _(){var t=m(),e={editor:t,bufferPosition:t.getCursorBufferPosition()},r=L.getAstNode(e,!1);if(r){var s=t.getBuffer().positionForCharacterIndex(r.lowLevel().start()),a=t.getBuffer().positionForCharacterIndex(r.lowLevel().end());t.setSelectedBufferRange({start:s,end:a},{})}}function v(t){void 0===t&&(t=w);var e=m();if(e&&".raml"==k.extname(e.getPath())){var r={editor:e,bufferPosition:e.getCursorBufferPosition()},s=r.editor.getPath(),a=C.project.createProject(k.dirname(s)),i=a.unit(k.basename(s)),o=r.editor.getBuffer().characterIndexForPosition(r.bufferPosition),n=r.editor.getBuffer().getText();i.updateContent(n);var l=P.findUsages(i,o);l.node&&t(l.node,l.results)}}function y(){v(w)}function w(t,e){U?U.setInput(t.name(),e):(U=new z(t.name()+":"+t.definition().nameId(),e),U.panel=atom.workspace.addBottomPanel({item:U}))}function S(){var t=m();if(t&&".raml"==k.extname(t.getPath())){var e={editor:t,bufferPosition:t.getCursorBufferPosition()},r=e.editor.getPath(),s=C.project.createProject(k.dirname(r)),a=s.unit(k.basename(r)),i=e.editor.getBuffer().characterIndexForPosition(e.bufferPosition),o=e.editor.getBuffer().getText();a.updateContent(o);var n=P.findDeclaration(a,i);if(n)if(n.absolutePath){var l=n.absolutePath();if(l&&0===l.toLowerCase().indexOf("http"))return;atom.workspace.open(l,{})}else q(t,n.lowLevel())}}var T=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},E=r(17),k=r(16),C=r(22),x=C.stubs,A=C.universes,P=C.search,I=r(24),L=r(7),N=r(18),O=r(23),R=C.ds,D=R,B=r(35),M=r(5);e.createGlobalSchema=s,e.createGlobalSchemaFromNameAndContent=a,e.saveExample=i;var G=function(){function t(t){void 0===t&&(t="Create RAML Project"),this.title=t,this.apititle="New API",this.version="v1",this.baseUri="http://api.samplehost.com",this._raml1=!0,this._defStructure=!0,this._createSampleResource=!0,this.sourceValue=k.resolve(this.generateDefaultProjectParentFolder(),"newRamlProject")}return t.prototype.generateDefaultProjectParentFolder=function(){return N.fdUtils.getHome()},t.prototype.extraContent=function(t){},t.prototype.validateProjectLocation=function(t){var e=t?t.trim():"";if(!e)return N.errorStatus("Path should't be empty");var r=k.dirname(e);return r&&"."!=r?E.existsSync(r)?N.okStatus():N.errorStatus("Parent directory does not exist"):N.errorStatus("Can not find path parent")},t.prototype.validateTitle=function(t){var e=t?t.trim():"";return!e||e.length<1?N.errorStatus("Title field is required"):N.okStatus()},t.prototype.show=function(){var t=this,e=null,r=N.section(this.title,N.Icon.BOOK,!1,!1,N.h3("Please select location to place your project:")).pad(10,10),s=new N.Panel(N.LayoutType.BLOCK),a=N.label("",null,N.TextClasses.ERROR),i=new N.CustomField("",a,function(t){return t});i.setDisplay(this.validateProjectLocation(this.sourceValue).code==N.StatusCode.ERROR),s.addChild(i);var o=N.texfField("",this.sourceValue,function(e){return t.sourceValue=e.getBinding().get()});o.getBinding().addValidator(function(){return t.validateProjectLocation(t.sourceValue)}),o.setStyle("width","400px"),o.getBinding().addListener(function(e){var r=t.validateProjectLocation(e);r.code!=N.StatusCode.ERROR?(a.setText(""),a.setIcon(N.Icon.NONE),i.setDisplay(!1)):(a.setText(r.message),a.setIcon(N.Icon.BUG),i.setDisplay(!0))}),s.addChild(o),s.addChild(N.h3("Title of your API:"));var n=N.label("",null,N.TextClasses.ERROR),l=new N.CustomField("",n,function(t){return t});l.setDisplay(!1),s.addChild(l);var p=N.texfField("",this.apititle,function(e){return t.apititle=e.getBinding().get()});p.getBinding().addValidator(function(){return t.validateTitle(t.apititle)}),p.getBinding().addListener(function(e){var r=t.validateTitle(e);r.code!==N.StatusCode.ERROR?(n.setText(""),n.setIcon(N.Icon.NONE),l.setDisplay(!1)):(n.setText(r.message),n.setIcon(N.Icon.BUG),l.setDisplay(!0))}),s.addChild(p),s.addChild(N.h3("Version of your API")),s.addChild(N.texfField("",this.version,function(e){return t.version=e.getBinding().get()})),s.addChild(N.h3("Base URI of your API")),s.addChild(N.texfField("",this.baseUri,function(e){return t.baseUri=e.getBinding().get()})),r.addChild(s);var u=N.checkBox("Use RAML 1.0");u.setValue(this._raml1),u.getBinding().addListener(function(e){return t._raml1=u.getValue()}),r.addChild(u);var c=N.checkBox("Create default directory structure");c.setValue(this._defStructure),c.getBinding().addListener(function(e){return t._defStructure=c.getValue()}),r.addChild(c);var h=N.checkBox("Create sample resource and method");h.setValue(this._createSampleResource),h.getBinding().addListener(function(e){return t._createSampleResource=h.getValue()}),r.addChild(h);var m=N.hc().setPercentWidth(100).setStyle("display","flex");m.addChild(N.label("",null,null,null).setStyle("flex","1")),m.addChild(N.button("Cancel",N.ButtonSizes.NORMAL,N.ButtonHighlights.NO_HIGHLIGHT,N.Icon.NONE,function(t){e.destroy()}).margin(10,10)),m.addChild(N.button("Create",N.ButtonSizes.NORMAL,N.ButtonHighlights.SUCCESS,N.Icon.NONE,function(r){t.validateTitle(t.apititle).code!==N.StatusCode.ERROR&&t.validateProjectLocation(t.sourceValue).code!==N.StatusCode.ERROR&&(t.onOk(e),e.destroy())})),r.addChild(m),e=atom.workspace.addModalPanel({item:r.renderUI()})},t.prototype.createIfNotExist=function(t){var e=k.resolve(this.sourceValue,t);E.existsSync(e)||E.mkdirSync(e)},t.prototype.onOk=function(t){E.existsSync(this.sourceValue)||E.mkdirSync(this.sourceValue),this._defStructure&&(this.createIfNotExist("schemas"),this.createIfNotExist("examples"),this.createIfNotExist("traits"),this.createIfNotExist("resourceTypes"),this.createIfNotExist("securitySchemes"),this.createIfNotExist("documentation"),this._raml1&&(this.createIfNotExist("notebooks"),this.createIfNotExist("scripts")));var e=o(this.apititle,this.version,this.baseUri,this._createSampleResource,this._raml1),r=k.resolve(this.sourceValue,"api.raml");E.writeFileSync(r,e),atom.open({pathsToOpen:[this.sourceValue,r]})},t}();e.createRAMLFile=o,e.newProject=n,e.moveResource=l,e.splitOnLines=p,e.cleanEmptyLines=u;e.getActiveEditor=m;var F=function(){function t(t){this.node=t}return t.prototype.show=function(){var t=this,e=null,r=this.node,s=N.section("Move node content to new file ",N.Icon.GIST_NEW,!1,!1),a=N.label("please enter correct destination path",N.Icon.BUG,N.TextClasses.ERROR,N.HighLightClasses.NONE);s.addChild(N.vc(a)),s.addChild(N.label("Please enter destination path"));var i=N.texfField("","",function(e){if(i){t.destination=i.getBinding().get();var r=0==t.destination.trim().length;if(r||".raml"!=k.extname(t.destination)&&(r=!0),!r){var s=k.resolve(k.dirname(m().getPath()),k.dirname(t.destination));if(E.existsSync(s)){var o=E.statSync(s);o.isDirectory()||(r=!0)}else r=!0}a.setDisplay(r),n.setDisabled(r)}});s.addChild(N.vc(i));var o=N.hc().setPercentWidth(100).setStyle("display","flex");o.addChild(N.label("",null,null,null).setStyle("flex","1")),o.addChild(N.button("Cancel",N.ButtonSizes.NORMAL,N.ButtonHighlights.NO_HIGHLIGHT,N.Icon.NONE,function(t){e.destroy()}).margin(10,10));var n=N.button("Move",N.ButtonSizes.NORMAL,N.ButtonHighlights.SUCCESS,N.Icon.NONE,function(s){var a=k.resolve(k.dirname(m().getPath()),t.destination),i=t.node.lowLevel().dump(),o=p(i),n=h(o.length>1?o[1]:o[0]);i=i.substring(t.node.lowLevel().keyEnd()-t.node.lowLevel().start()+1).trim(),i=c(i,n),i="#%RAML 0.8 "+t.node.definition().nameId()+"\n"+i,E.writeFileSync(a,i);var l=r.lowLevel().unit().contents(),u=l.substring(r.lowLevel().end()),g=l.substring(0,r.lowLevel().keyEnd()+1),d=g+" !include "+t.destination+u;m().setText(d),e.destroy()});n.setDisabled(!0),o.addChild(n),s.addChild(o);var l=s.renderUI();e=atom.workspace.addModalPanel({item:l}),l.focus()},t}();e.MoveToNewFileDialog=F,e.moveOut=g,e.renameRAMLElement=d;e.select=_,e.findUsagesImpl=v,e.findUsages=y;var U,z=function(t){function e(e,r){t.call(this),this.query=e,this._result=r,this.isAttached=!1}return T(e,t),e.prototype.initialize=function(){return t.prototype.initialize.apply(this,arguments),!0},e.content=function(){return this.div({"class":"raml-console pane-item",tabindex:-1})},e.prototype.attached=function(){this.isAttached||(this.load(),this.isAttached=!0)},e.prototype.setInput=function(t,e){this.query=t,this._result=e,this.load()},e.prototype.load=function(){var t=this,e=N.section("Find usages for "+this.query,N.Icon.SEARCH),r=N.list(this._result,function(t){var e=m().getBuffer().positionForCharacterIndex(t.getLowLevelStart()),r=N.hc(N.a(t.id(),function(e){H(m(),t)}),N.label(t.lowLevel().unit().path()+" line:",N.Icon.NONE,N.TextClasses.SUBTLE).pad(5,5),N.label(""+e.row,N.Icon.NONE,N.TextClasses.SUCCESS));return r});r.setStyle("max-height","400px"),e.addChild(r),e.addChild(N.button("Close",N.ButtonSizes.SMALL,N.ButtonHighlights.PRIMARY,N.Icon.NONE,function(e){t.panel.destroy(),U=null})),this.html(e.renderUI())},e}(O.ScrollView),H=function(t,e){var r=t.getBuffer().positionForCharacterIndex(e.getLowLevelStart()),s=t.getBuffer().positionForCharacterIndex(e.getLowLevelEnd());t.setSelectedBufferRange({start:r,end:s},{})},q=function(t,e){if(e.unit().absolutePath()!=t.getPath())return void atom.workspace.open(e.unit().absolutePath(),{}).then(function(r){t=m(),q(t,e)});var r=t.getBuffer().positionForCharacterIndex(e.start()),s=t.getBuffer().positionForCharacterIndex(e.end());s.column=r.column+e.key()?e.key().length:0,s.row=r.row,t.setSelectedBufferRange({start:r,end:s},{})};e.gotoDeclaration=S},function(t,e,r){function s(t){return _=t,m.addLoadCallback(function(t){atom.workspace.getTextEditors().forEach(function(t){return v(t)});var e=b.aquireManager();e&&e.updateDetails()}),atom.workspace.observeTextEditors(v),{dispose:function(){f.forEach(function(e){a(t,e)})}}}function a(t,e){t.deleteMessages(e),t.deleteLinter(e)}function i(t,e){t.linterCallback=e}function o(t){t.linterCallback=null}function n(t){t.linterCallback&&(t.linterCallback(),o(t))}function l(t){var e=p(t);return m.hasAsyncRequests()?[]:e}function p(t){if(n(t),m.hasAsyncRequests())return[];var e=(new Date).getTime(),r=d.ast(t);if(null==r)return[];for(var s=[],a=(new y(t,s),r.lowLevel()?r.lowLevel().unit().contents():""),i=0;;){var i=a.indexOf(" ",i);if(-1==i)break;var o=t.getBuffer().positionForCharacterIndex(i),l=t.getBuffer().positionForCharacterIndex(i+1),p="Using tabs can lead to unpredictable results",c={type:"Warning",filePath:t.getPath(),text:p,trace:[],range:[[o.row,o.column],[l.row,l.column]]};s.push(c),i++}if(!r.lowLevel())return[];u(r,s,t);var h=(new Date).getTime(),g={};s.forEach(function(t){var e=JSON.parse(JSON.stringify(t));e.trace=null;var r=JSON.stringify(e),s=g[r];s?s.push(t):g[r]=[t]});var f=[];for(var _ in g){var v=JSON.parse(_);v.trace=[];var w=g[_];w.forEach(function(t){t.trace&&(v.trace=v.trace.concat(t.trace))}),f.push(v)}return b.aquireManager()&&b.aquireManager().performanceDebug&&console.log("Linting took:"+(h-e)),f.filter(function(t){return t})}function u(t,e,r){t&&t.validate(new y(r,e))}var c=r(16),h=r(22),m=h.utils,g=r(25),d=r(34),b=r(5);e.grammarScopes=["source.raml"],e.scope="file",e.lintOnFly=!0;var f=[],_={},v=function(t){var e=t.getPath&&t.getPath(),r=e&&c.extname(e),s=r&&r.toLowerCase(),n=_.getEditorLinter(t);if(f.push(n),".raml"===s||".yaml"===s){var p=l(t);m.hasAsyncRequests()||(_.setMessages(n,p),console.log("Messages: "+p.length)),i(t,function(){return _.deleteMessages(n)}),n.onDidDestroy(function(){o(t)}),t.onDidDestroy(function(){a(_,n)})}};e.initEditorObservers=s,e.lint=l;var y=function(){function t(t,e){this.editor=t,this.errors=e,this.buffers={}}return t.prototype.begin=function(){},t.prototype.accept=function(t){var e=this;if(t){var r=this.editor.getBuffer().positionForCharacterIndex(t.start),s=this.editor.getBuffer().positionForCharacterIndex(t.end),a=t.message,i=a.lastIndexOf(" at line ");-1!=i&&(a=a.substring(0,i));var o={type:t.isWarning?"Warning":"Error",filePath:t.path?t.path:this.editor.getPath(),text:a,trace:[],range:[[r.row,r.column],[s.row,s.column]]};this.errors.push(o),t.extras&&t.extras.forEach(function(t){var r=t.message,s=e.editor.getBuffer(),a=t.path;t.unit&&(a=t.unit.absolutePath()),a&&(e.buffers[a]?s=e.buffers[a]:(s=new g(t.unit.contents()),e.buffers[a]=s));var i=s.positionForCharacterIndex(t.start),n=s.positionForCharacterIndex(t.end),l={type:"Trace",filePath:t.path?a:e.editor.getPath(),text:r,range:[[i.row,i.column],[n.row,n.column]]};o.trace.push(l)})}},t.prototype.end=function(){},t}()},function(t,e,r){function s(t,e,r,s){if(!c.find(n(),function(t){return t==e?!0:!1})){var a=atom.commands.add(t,e,r),i={commandId:e,tag:s,disposable:a};if(h[e]=i,s){var o=m[s];o||(o=[],m[s]=o),o.push(i)}}}function a(t){atom.commands.registeredCommands[t]=null,atom.commands.selectorBasedListenersByCommandName[t]=null}function i(t){var e=h[t];if(e&&(e.disposable.dispose(),delete h[t],e.tag)){var r=m[e.tag];if(!r)return;var s=-1;c.find(r,function(e,r){return e.commandId==t?(s=r,!0):!1}),-1!=s&&r.splice(s,1)}}function o(t){var e=m[t];if(e){for(var r in e){var s=e[r];s.disposable.dispose(),delete h[s.commandId]}delete m[t]}}function n(){var t=[];for(var e in atom.commands.selectorBasedListenersByCommandName)t.push(e);return t}function l(){if(!g){g=!0;try{atom.packages.activatePackage("command-palette");var t=function(){u()};t.commandManager=!0,atom.commands.add("atom-workspace","command-palette:toggle",t);var e=atom.commands.selectorBasedListenersByCommandName["command-palette:toggle"];e.forEach(function(t){t.callback.commandManager&&(t.sequenceNumber=1005e5)})}catch(r){console.error(r.message)}}}function p(t){d[t.id]=t}function u(){o(e.DYNAMIC_COMMAND_TAG);for(var t in d){var r=d[t];r.calculationStarted&&r.calculationStarted()}for(var t in d){var r=d[t];r.calculateItems().forEach(function(t){s(t.selector,"api-workbench:"+t.id,t.callBack,e.DYNAMIC_COMMAND_TAG)})}for(var t in d){var r=d[t];r.calculationFinished&&r.calculationFinished()}}var c=r(24);e.DYNAMIC_COMMAND_TAG="DYNAMIC_COMMAND_TAG";var h={},m={};e.addCommand=s,e.deleteUnmanagedCommand=a,e.deleteManagedCommand=i,e.deleteCommandsByTag=o,e.listCommands=n;var g=!1;e.initialize=l;var d={};e.registerContributor=p},function(t,e,r){function s(){v||(v=!0,d=atom.contextMenu.constructor.prototype.showForEvent,atom.contextMenu.constructor.prototype.showForEvent=function(t){l(),d.apply(atom.contextMenu,[t]),h()})}function a(t){_[t.id]=t}function i(t,e,r,s){}function o(t){}function n(t,e,r){}function l(){try{var t=m(),e={};c(),f.deleteCommandsByTag(f.DYNAMIC_COMMAND_TAG),t.forEach(function(t){var r=e[t.selector];r||(r=u(t.selector),e[t.selector]=r);var s=p(t);r.items.push(s)})}catch(r){console.log(r.message)}}function p(t){var e={label:t.name};if(t.children.length>0)e.submenu=[];else{var r="api-workbench:"+t.name;f.listCommands();f.addCommand(t.selector,r,t.onClick,f.DYNAMIC_COMMAND_TAG),e.command=r}return t.children.forEach(function(t){var r=p(t);e.submenu.push(r)}),e}function u(t){var e=b.find(atom.contextMenu.itemSets,function(t){return t.tag&&t.tag==S});return e||(e={items:[],selector:t,specificity:11,tag:S},atom.contextMenu.itemSets.push(e),b.find(w,function(e){return e==t})||w.push(t)),e}function c(){var t=b.filter(atom.contextMenu.itemSets,function(t){return t.tag&&t.tag==S});t.forEach(function(t){t.items=[]})}function h(){}function m(){var t=[];for(var e in _){var r=_[e];r.calculationStarted&&r.calculationStarted()}for(var e in _){var r=_[e];r.calculateItems().forEach(function(e){g(t,e)})}for(var e in _){var r=_[e];r.calculationFinished&&r.calculationFinished()}return t}function g(t,e){var r=t;if(e.categories)for(var s in e.categories){var a=e.categories[s],i=b.find(r,function(t){return t.name==a});i||(i=new y(e,a),r.push(i)),i.children?r=i.children:(r=[],i.children=r)}var o=b.find(r,function(t){return t.name==e.name});if(o){var n=r.indexOf(o,0);void 0!=n&&r.splice(n,1)}o=new y(e),r.push(o)}var d,b=r(24),f=r(11);e.initialize=s,e.registerContributor=a,e.addMenuItem=i,e.deleteMenuItems=o,e.deleteMenuItem=n;var _={},v=!1,y=function(){function t(t,e){this.selector=t.selector,e?this.name=e:this.name=t.name,this.categories=t.categories,this.onClick=t.onClick,this.children=[]}return t}(),w=[],S="DYNAMIC_SET_TAG"},function(t,e,r){function s(){}function a(){i(),s()}function i(){var t={id:"editorContextActionContributor",calculateItems:function(){var t=l.calculateCurrentActions(l.TARGET_RAML_EDITOR_NODE);if(!t)return[];var e=[];return t.forEach(function(t){e.push({selector:'atom-text-editor[data-grammar="source raml"],.raml-outline',name:t.label?t.label:t.name,categories:t.category,onClick:t.onClick})}),e}};o.registerContributor(t);var e={id:"editorContextActionContributor",calculateItems:function(){var t=l.calculateCurrentActions(l.TARGET_RAML_EDITOR_NODE);if(!t)return[];var e=[];return t.forEach(function(t){e.push({selector:'atom-text-editor[data-grammar="source raml"],.raml-outline',id:t.label?t.label:t.name,callBack:t.onClick})}),e}};n.registerContributor(e)}var o=r(12),n=r(11),l=r(30),p=r(16),u=r(7),c=r(22),h=c.search,m=r(5);e.initialize=a;var g=function(){function t(){}return t.prototype.calculate=function(){},t}();e.NullCalculator=g;var d=function(){function t(){var t=this;this.state=null,this.contextCalculationStarted=function(){null==t.state&&(t.state=t.calculateState())},this.contextCalculationFinished=function(){t.state=null}}return t.prototype.calculate=function(){return null==this.state&&(this.state=this.calculateState()),this.state},t.prototype.calculateState=function(){var t=!1,e=null;if(atom.workspace.getActiveTextEditor()?e=atom.workspace.getActiveTextEditor():m.aquireManager()&&(e=m.aquireManager().getCurrentEditor(),t=!0),!e)return null;if(".raml"!=p.extname(e.getPath()))return null;var r={editor:e,bufferPosition:e.getCursorBufferPosition()},s=null;if(t)s=m.aquireManager().getSelectedNode();else{if(e.getBuffer()){var a=e.getBuffer().getEndPosition();if(a.column==r.bufferPosition.column&&a.row==r.bufferPosition.row)return null;if(0==r.bufferPosition.row&&0==r.bufferPosition.column)return null}s=u.getAstNode(r,!1)}if(!s)return null;var i=r.editor.getBuffer().characterIndexForPosition(r.bufferPosition),o=h.determineCompletionKind(e.getBuffer().getText(),i);return{editor:e,offset:i,node:s,completionKind:o}},t}();e.GeneralASTStateCalculator=d,e.generalASTStateCalculator=new d;var b=function(){function t(){this.contextCalculationStarted=function(){e.generalASTStateCalculator.contextCalculationStarted()},this.contextCalculationFinished=function(){e.generalASTStateCalculator.contextCalculationFinished()}}return t.prototype.calculate=function(){return null},t.prototype.getGeneralState=function(){return e.generalASTStateCalculator.calculate()},t.prototype.getEditor=function(){return m.aquireManager()?m.aquireManager().getCurrentEditor():atom.workspace.getActiveTextEditor()},t}();e.CommonASTStateCalculator=b},function(t,e,r){function s(t){new R(t,"Create Global Schema").show()}function a(t,e,r){var s=A.getActiveEditor(),a=h.resolve(h.dirname(s.getPath()),h.dirname(e));c.existsSync(a)||c.mkdirSync(a);var i=h.resolve(h.dirname(s.getPath()),e);c.writeFileSync(i,r)}function i(t){for(var e="",r=0;r<t.length;r++){var s=t[r];if("\r"!=s&&"\n"!=s){if(" "!=s&&" "!=s)break;e+=s}}return e}function o(t,e){for(var r=A.splitOnLines(t),s=[],a=0;a<r.length;a++)0==a?s.push(r[0]):s.push(r[a].substring(e.length));return s.join("")}function n(t,e){if((t.keyStart()>e||t.valueEnd()<e)&&t.parent())return null;if(t.includedFrom())return n(t.includedFrom(),e);var r=t.children();for(var s in r){var a=r[s],i=n(a,e);if(i)return i}return t}function l(t){return t.includedFrom()?t.includedFrom():t.children()&&0!==t.children().length?l(t.children().filter(function(t){return t?!0:!1})[t.children().length-1]):t}function p(){C.addAction({name:"Create global schema",target:C.TARGET_RAML_EDITOR_NODE,category:["Code"],onClick:function(t){return s(t)},stateCalculator:new N,shouldDisplay:function(t){return null!=t}}),C.addAction({name:"Move resource",target:C.TARGET_RAML_EDITOR_NODE,category:["Refactoring"],onClick:function(t){new k.MoveElementsDialog(t,"Resource Type",!0).show()},stateCalculator:new L,shouldDisplay:function(t){return null!=t}}),C.addAction({name:"Complete body",target:C.TARGET_RAML_EDITOR_NODE,category:["Add new..."],onClick:function(t){var e=t;e.lowLevel().show("BODY"),new M(e.parent().parent(),e).show()},stateCalculator:new B,shouldDisplay:function(t){return null!=t}}),C.addAction({name:"Extract Resource Type",target:C.TARGET_RAML_EDITOR_NODE,category:["Refactoring"],onClick:function(t){new S.ExtractTypesAndTraitsDialog(t,"Resource Type",!0).show()},stateCalculator:new G,shouldDisplay:function(t){return null!=t}}),C.addAction({name:"Extract Trait",target:C.TARGET_RAML_EDITOR_NODE,category:["Refactoring"],onClick:function(t){
new S.ExtractTypesAndTraitsDialog(t,"Trait",!1).show()},stateCalculator:new F,shouldDisplay:function(t){return null!=t}}),C.addAction({name:"Move content to other file",target:C.TARGET_RAML_EDITOR_NODE,category:["Refactoring"],onClick:function(t){new Z(t).show()},stateCalculator:new U,shouldDisplay:function(t){return null!=t}}),C.addAction({name:"Convert JSON schema to type",target:C.TARGET_RAML_EDITOR_NODE,category:["Refactoring"],onClick:function(t){new O(t,"Convert JSON schema to type").show()},stateCalculator:new z,shouldDisplay:function(t){return null!=t}}),C.addAction({name:"Expand type to JSON schema",target:C.TARGET_RAML_EDITOR_NODE,category:["Refactoring"],onClick:function(t){var e=t,r=e.root(),s=e.attrValue("type"),a=r.elementsOfKind("types"),i=v.find(a,function(t){return t.name()==s});if(i){e.attr("type").setValue("");var o=f.createModelToSchemaGenerator().generateSchema(i),n=JSON.stringify(o,null,2);e.attrOrCreate("schema").setValue(n),n=r.lowLevel().unit().contents(),A.getActiveEditor().setText(n)}},stateCalculator:new H,shouldDisplay:function(t){return null!=t}}),C.addAction({name:"Expand type to JSON schema definition",target:C.TARGET_RAML_EDITOR_NODE,category:["Refactoring"],onClick:function(t){var e=t,r=e.root(),s=f.createModelToSchemaGenerator().generateSchema(e),a=JSON.stringify(s,null,2);console.log("schema: "+a);var i=d.createStubNoParentPatch(r,"schemas",e.name());i.attrOrCreate("value").setValue(a),r.add(i);var o=r.lowLevel().unit().contents();A.getActiveEditor().setText(o)},stateCalculator:new q,shouldDisplay:function(t){return null!=t}}),C.addAction({name:"Extract Library",target:C.TARGET_RAML_EDITOR_NODE,category:["Refactoring"],onClick:function(t){new S.ExtractLibraryDialog(t,"Extract Library").show()},stateCalculator:new V,shouldDisplay:function(t){return null!=t}}),C.addAction({name:"Extract Overlay",target:C.TARGET_RAML_EDITOR_NODE,category:["Code"],onClick:function(t){new S.ExtractOverlayDialog(t,"Extract Overlay").show()},stateCalculator:new j,shouldDisplay:function(t){return null!=t}}),C.addAction({name:"Modify Overlay",target:C.TARGET_RAML_EDITOR_NODE,category:["Code"],onClick:function(t){new S.ModifyOverlayDialog(t,"Modify Overlay").show()},stateCalculator:new K,shouldDisplay:function(t){return null!=t}}),C.addAction({name:"Pull Up",target:C.TARGET_RAML_EDITOR_NODE,category:["Refactoring"],onClick:function(t){new S.PullUpDialog(t,"Pull Up").show()},stateCalculator:new J,shouldDisplay:function(t){return null!=t}}),C.addAction({name:"Extract Supertype",target:C.TARGET_RAML_EDITOR_NODE,category:["Refactoring"],onClick:function(t){new S.ExtractSupertypeDialog(t,"Extract Supertype").show()},stateCalculator:new Y,shouldDisplay:function(t){return null!=t}}),C.addAction({name:"Comment node",target:C.TARGET_RAML_EDITOR_NODE,category:["Code"],onClick:function(t){var e=t.node;if(e.lowLevel()){var r=n(e.lowLevel(),t.offset);if(r){var s=r.keyStart()>-1?r.keyStart():r.start();r=l(r);for(var a=r.valueEnd()>-1?r.valueEnd():r.end(),i=t.editor.getBuffer(),o=i.positionForCharacterIndex(s),p=o.row,u=i.positionForCharacterIndex(a),c=u.row,h=p;c>=h;h++){var m=i.rangeForRow(h,!0),g=i.getTextInRange(m),d="#"+g;i.setTextInRange(m,d)}}}},stateCalculator:new X,shouldDisplay:function(t){return null!=t}})}var u=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},c=r(17),h=r(16),m=r(22),g=m.search,d=m.stubs,b=m.universeHelpers,f=m.schema,_=m.parser.modify,v=r(24),y=r(18),w=r(37),S=r(38),T=r(39),E=m.ds,k=r(35),C=r(30),x=r(13),A=r(9),P=E,I=function(){function t(t,e){this.parentNode=t,this.name=e}return t.prototype.validate=function(){return null},t.prototype.performOk=function(){},t.prototype.createBody=function(t){},t.prototype.show=function(){if(console.log("Original node tree:"),this.getParentNode()&&console.log(this.getParentNode().printDetails()),this.getParentNode()){var t=y.section(this.name+":",y.Icon.GIST_NEW,!1,!1);this.createValidationIndicator(t),this.createBody(t),this.createButtonBar(t),t.setPercentWidth(100);var e=t.renderUI();this.rootAtomPanel=atom.workspace.addModalPanel({item:e}),e.focus(),this.performValidation()}},t.prototype.performValidation=function(){var t=this.validate();this.okButton&&(t?this.okButton.setDisabled(!0):this.okButton.setDisabled(!1)),this.errorLabel&&(t?(this.errorLabel.setDisplay(!0),this.errorLabel.setText(t)):(this.errorLabel.setDisplay(!1),this.errorLabel.setText("")))},t.prototype.createValidationIndicator=function(t){this.errorLabel=y.label("",y.Icon.BUG,y.TextClasses.ERROR,y.HighLightClasses.NONE),t.addChild(y.vc(this.errorLabel))},t.prototype.saveUnit=function(t){var e=t.absolutePath(),r=t.contents(),s=v.find(atom.workspace.getTextEditors(),function(t){var r=t.getPath();return r==e});s?s.setText(r):c.writeFileSync(e,r)},t.prototype.createButtonBar=function(t){var e=this,r=y.hc().setPercentWidth(100).setStyle("display","flex");r.addChild(y.label("",null,null,null).setStyle("flex","1")),r.addChild(y.button("Cancel",y.ButtonSizes.NORMAL,y.ButtonHighlights.NO_HIGHLIGHT,y.Icon.NONE,function(t){e.rootAtomPanel.destroy()}).margin(10,10)),this.okButton=y.button("Extract",y.ButtonSizes.NORMAL,y.ButtonHighlights.SUCCESS,y.Icon.NONE,function(t){e.performOk(),e.rootAtomPanel.destroy()}),this.okButton.setDisabled(!0),r.addChild(this.okButton),t.addChild(r)},t.prototype.getParentNode=function(){return this.parentNode},t.prototype.getActiveEditor=function(){return A.getActiveEditor()},t.prototype.getNodeId=function(t){if(t.parent()){var e=this.getNodeId(t.parent());e+="."+t.name();var r=t.parent().directChildren().filter(function(e){return e.name()==t.name()});if(r.length>1){var s=r.indexOf(t);e+="["+s+"]"}return e}return t.name()?t.definition&&t.definition()&&"Api"==t.definition().name()?"":"."+t.name():""},t.prototype.nodesEqualById=function(t,e){return this.getNodeId(t)==this.getNodeId(e)},t.prototype.isParentOf=function(t,e){for(var r=e.parent();null!=r;){if(r==t||this.nodesEqualById(r,t))return!0;r=r.parent()}return!1},t}();e.AbstractDialogWithValidation=I;var L=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;if(t.completionKind!=g.LocationKind.KEY_COMPLETION)return null;var e=t.node;return b.isResourceType(e.definition())?e:null},e}(x.CommonASTStateCalculator),N=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;if(t.completionKind!=g.LocationKind.VALUE_COMPLETION&&t.completionKind!=g.LocationKind.KEY_COMPLETION)return null;var e=t.node,r=v.find(e.attrs(),function(e){return e.lowLevel().start()<t.offset&&e.lowLevel().end()>=t.offset&&!e.property().getAdapter(P.RAMLPropertyService).isKey()});if(!r)return null;if(!r.value())return null;var s=r.property();if(!b.isSchemaProperty(s))return null;var a=(r.value(),g.referenceTargets(s,e)),i=v.find(a,function(t){return t.name()==r.value()});return i?null:r},e}(x.CommonASTStateCalculator),O=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.createBody=function(t){var e=this;t.addChild(y.label("Type name:").pad(5,0)),this.typeNameTextField=y.texfField("","NewType",function(t){e.performValidation()}),t.addChild(this.typeNameTextField)},e.prototype.validate=function(){if(!this.typeNameTextField||!this.typeNameTextField.getBinding())return null;var t=this.typeNameTextField.getBinding().get();return 0==t.trim().length?"Enter type name":null},e.prototype.performOk=function(){var t=this.getParentNode(),e=t.root(),r=t.attrValue("schema");t.attr("schema").setValue("");var s=this.typeNameTextField.getBinding().get(),a=f.createSchemaModelGenerator().generateTo(e,r,s);a.length>0&&t.attrOrCreate("type").setValue(a[0]),this.saveUnit(e.lowLevel().unit())},e}(I);e.ExtractJSONSchemaToTypeDialog=O;var R=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.createBody=function(t){var e=this;t.addChild(y.label("Schema name:").pad(5,0)),this.schemaNameTextField=y.texfField("",this.getDefaultSchemaName(),function(t){e.performValidation()}),t.addChild(this.schemaNameTextField)},e.prototype.validate=function(){if(!this.schemaNameTextField||!this.schemaNameTextField.getBinding())return null;var t=this.schemaNameTextField.getBinding().get();if(0==t.trim().length)return"Enter schema name";var e=this.getParentNode(),r=e.value(),s=this.getSchemaFilePath(t,r);return c.existsSync(s)?"Schema file "+s+" already exists":null},e.prototype.performOk=function(){var t=this.schemaNameTextField.getBinding().get(),e=this.getParentNode(),r=e.value(),s=this.getSchemaFilePath(t,r),a=e.parent().root(),i=e.property().range().universe().type("GlobalSchema"),o=d.createStubNode(i,i.universe().type("Api").property("schemas"),t);o.attrOrCreate("value").setValue("!include "+this.getSchemaRelativePath(t,r)),a.add(o),e.setValue(t),this.saveUnit(e.lowLevel().unit());var n=h.dirname(s);c.existsSync(n)||c.mkdirSync(n),c.writeFileSync(s,r)},e.prototype.getSchemaFilePath=function(t,e){var r=h.resolve(h.dirname(this.getActiveEditor().getPath()),"schemas"),s=this.determineSchemaExtension(e),a=t+"."+s;return h.resolve(r,a)},e.prototype.getSchemaRelativePath=function(t,e){var r=this.determineSchemaExtension(e),s=t+"."+r;return"schemas/"+s},e.prototype.determineSchemaExtension=function(t){var e=t.trim();return 0==e.indexOf("{")||0==e.indexOf("[")?"json":"xsd"},e.prototype.getDefaultSchemaName=function(){return"NewSchema"},e}(I);e.CreateGlobalSchemaDialog=R,e.createGlobalSchema=s;var D=(function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;if(t.completionKind!=g.LocationKind.VALUE_COMPLETION)return null;var e=t.node,r=v.find(e.attrs(),function(e){return e.lowLevel().start()<t.offset&&e.lowLevel().end()>=t.offset&&!e.property().getAdapter(P.RAMLPropertyService).isKey()});if(!r)return null;if(!r.value())return null;r.property();return r},e}(x.CommonASTStateCalculator),function(t,e){for(var r=t,s=t;s>=0;s--){var a=e.charAt(s);if(" "==a||"\r"==a||"\n"==a||" "==a){r=s+1;break}}for(var i="",s=r;s<e.length;s++){var a=e.charAt(s);if(" "==a||"\r"==a||"\n"==a||" "==a||":"==a)break;i+=a}return i}),B=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;if(t.completionKind!=g.LocationKind.KEY_COMPLETION)return null;var e=t.node;if(b.isResponseType(e.definition())||b.isMethodType(e.definition())){var r=t.editor.getText(),s=D(t.offset,r);if("body"==s)return e}return b.isBodyLikeType(e.definition())&&0==e.elements().length?e:null},e}(x.CommonASTStateCalculator);e.saveExample=a;var M=function(){function t(t,e,r){void 0===r&&(r="Fill body"),this.h=t,this.body=e,this.title=r,this.name="",this.needXML=!0,this.needJSON=!0,this.jsexample='{\n "message":"Hello world"\n}',this.xmlexample="",this.xmlschema="",this.jsschema=""}return t.prototype.extraContent=function(t){},t.prototype.updateButtons=function(){if(this.createButton){if(0==this.name.length)return this.createButton.setDisabled(!0),this.em.setDisplay(!0),void this.em.setText("Please type name of your payload");if(this.needJSON){try{JSON.parse(this.jsexample)}catch(t){return this.createButton.setDisabled(!0),this.em.setDisplay(!0),void this.em.setText("JSON example is not correct")}try{f.getJSONSchema(this.jsschema,null)}catch(t){return this.createButton.setDisabled(!0),this.em.setDisplay(!0),void this.em.setText("JSON schema is not correct")}}if(this.needXML){try{w(this.xmlexample)}catch(t){return this.createButton.setDisabled(!0),this.em.setDisplay(!0),void this.em.setText("XML example is not correct")}try{f.getXMLSchema(this.xmlschema)}catch(t){return this.createButton.setDisabled(!0),this.em.setDisplay(!0),void this.em.setText("XML schema is not correct")}}this.em.setDisplay(!1),this.createButton.setDisabled(!1)}},t.prototype.show=function(){var t=this,e=null;this.em=y.label("Please type name of your payload",y.Icon.BUG,y.TextClasses.ERROR,y.HighLightClasses.NONE);var r=y.section(this.title,y.Icon.BOOK,!1,!1,this.em,y.h3("Please type name for your payload")).pad(10,10);r.addChild(y.texfField("",this.name,function(e){t.name=e.getBinding().get(),t.updateButtons()}));var s=y.checkBox("Create XML body");s.setValue(this.needXML),s.getBinding().addListener(function(e){t.needXML=s.getValue(),t.updateButtons()}),r.addChild(s);var a=y.checkBox("Create JSON body");a.setValue(this.needJSON),a.getBinding().addListener(function(e){t.needJSON=a.getValue(),t.updateButtons()}),r.addChild(a);var i=y.hc().setPercentWidth(100).setStyle("display","flex");i.addChild(y.label("",null,null,null).setStyle("flex","1")),i.addChild(y.button("Cancel",y.ButtonSizes.NORMAL,y.ButtonHighlights.NO_HIGHLIGHT,y.Icon.NONE,function(t){e.destroy()}).margin(10,10)),this.createButton=y.button("Create",y.ButtonSizes.NORMAL,y.ButtonHighlights.SUCCESS,y.Icon.NONE,function(r){t.onOk(e),e.destroy()}),i.addChild(this.createButton);var o=new y.TabFolder;this.createButton.setDisabled(!0),this.createTextSection(o,"JSON Example","source.json","jsexample"),this.createTextSection(o,"JSON Schema","source.json","jsschema"),this.createTextSection(o,"XML Example","text.xml","xmlexample"),this.createTextSection(o,"XML Schema","text.xml","xmlschema"),o.setOnSelected(function(){var e=o.selectedComponent(),r=e.children()[1];r.setText(t[e.id()])}),r.addChild(o),r.addChild(i),e=atom.workspace.addModalPanel({item:r.renderUI()})},t.prototype.createTextSection=function(t,e,r,s){var a=this,i=y.vc();i.setCaption(e),i.setId(s);var o=new y.AtomEditorElement("",function(t){return t});if(o.setMini(!1),o.getBinding().addListener(function(t){a[s]=o.getValue(),a.updateButtons()}),o.setText(""+this[s]),o.setCaption(e),o.setGrammar(r),o.setStyle("height","400px"),o.setStyle("border","solid"),o.setStyle("border-width","1px"),i.addChild(y.h3("Please type your example here:")),i.addChild(o),"jsexample"==s){var n=y.button("Generate JSON schema",y.ButtonSizes.NORMAL,y.ButtonHighlights.SUCCESS,y.Icon.NONE,function(e){try{var r=T.generateSchema(a.jsexample,"application/json");a.jsschema=r,t.setSelectedIndex(1)}catch(s){a.jsschema=s.message,t.setSelectedIndex(1)}});i.addChild(n.margin(5,5,5,5))}if("xmlexample"==s){var n=y.button("Generate JSON example",y.ButtonSizes.NORMAL,y.ButtonHighlights.SUCCESS,y.Icon.NONE,function(e){try{var r=w(a.xmlexample);a.jsexample=JSON.stringify(r,null,2),t.setSelectedIndex(0)}catch(s){a.jsexample=s.message,t.setSelectedIndex(0)}});i.addChild(n.margin(5,5,5,5))}t.add(e,null,i)},t.prototype.onOk=function(t){var e=this.body.definition().universe().type("BodyLike");if(e){var r=this.body;b.isBodyProperty(r.property())&&(r=r.parent());var s=r.definition();if(this.needJSON){var i=d.createStubNode(e,s.property("name"),"application/json");i.createAttr("schema",this.name),i.createAttr("example","!include ./examples/"+this.name+".json"),r.add(i),A.createGlobalSchemaFromNameAndContent(this.h.root(),this.name,"schemas/"+this.name+".json",this.jsschema),a(this.h,"./examples/"+this.name+".json",this.jsexample)}if(this.needXML){var i=d.createStubNode(e,s.property("name"),"application/xml");i.createAttr("schema",this.name+"-xml"),i.createAttr("example","!include ./examples/"+this.name+".xml"),r.add(i);var o=this.xmlschema;A.createGlobalSchemaFromNameAndContent(this.h.root(),this.name+"-xml","schemas/"+this.name+".xml",o),a(this.h,"./examples/"+this.name+".xml",this.xmlexample)}}else{var n=this.body;if(!b.isResponseType(n.property().range()))return void console.log("Incorrect parent "+n.printDetails()+" , expecting response");var l=n.wrapperNode(),p=[];if(this.needJSON){var u="application/json",c=_.createTypeDeclaration(u);_.setTypeDeclarationSchema(c,this.name),_.setTypeDeclarationExample(c,"!include ./examples/"+this.name+".json"),A.createGlobalSchemaFromNameAndContent(this.h.root(),this.name,"schemas/"+this.name+".json",this.jsschema),a(this.h,"./examples/"+this.name+".json",this.jsexample),p.push(c)}if(this.needXML){var u="application/xml",c=_.createTypeDeclaration(u);_.setTypeDeclarationSchema(c,this.name+"-xml"),_.setTypeDeclarationExample(c,"!include ./examples/"+this.name+".xml");var o=this.xmlschema;A.createGlobalSchemaFromNameAndContent(this.h.root(),this.name+"-xml","schemas/"+this.name+".xsd",o),a(this.h,"./examples/"+this.name+".xml",this.xmlexample),p.push(c)}p.forEach(function(t){var e=v.find(l.body()||[],function(e){return t.name()===e.name()});e&&l.remove(e),_.addChild(l,t)})}var h=this.h.lowLevel().unit().contents();A.getActiveEditor().setText(A.cleanEmptyLines(h))},t}(),G=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;if(t.completionKind!=g.LocationKind.KEY_COMPLETION)return null;var e=t.node;return b.isResourceType(e.definition())?e:null},e}(x.CommonASTStateCalculator),F=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;if(t.completionKind!=g.LocationKind.KEY_COMPLETION)return null;var e=t.node;return b.isMethodType(e.definition())?e:null},e}(x.CommonASTStateCalculator),U=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;if(t.completionKind!=g.LocationKind.KEY_COMPLETION)return null;var e=t.node;return 0==e.children().length?null:e},e}(x.CommonASTStateCalculator),z=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;var e=t.node;if(t.completionKind!=g.LocationKind.KEY_COMPLETION&&t.completionKind!=g.LocationKind.VALUE_COMPLETION)return null;var r=v.find(e.attrs(),function(e){return e.lowLevel().start()<t.offset&&e.lowLevel().end()>=t.offset&&!e.property().getAdapter(P.RAMLPropertyService).isKey()});if(!r)return null;if(!r.value())return null;var s=r.property();return b.isSchemaProperty(s)?"string"!=typeof r.value()||-1==r.value().indexOf("{")?null:e:null},e}(x.CommonASTStateCalculator),H=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;var e=t.node;if(t.completionKind!=g.LocationKind.KEY_COMPLETION&&t.completionKind!=g.LocationKind.VALUE_COMPLETION)return null;var r=(t.editor.getText(),v.find(e.attrs(),function(e){return e.lowLevel().start()<t.offset&&e.lowLevel().end()>=t.offset&&!e.property().getAdapter(P.RAMLPropertyService).isKey()}));if(!r)return null;if(!r.value())return null;var s=r.property();return b.isTypeProperty(s)?e:null},e}(x.CommonASTStateCalculator),q=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;var e=t.node;return t.completionKind!=g.LocationKind.SEQUENCE_KEY_COPLETION?null:b.isTypesProperty(e.property())?e:null},e}(x.CommonASTStateCalculator),Z=function(){function t(t){this.node=t}return t.prototype.show=function(){var t=this,e=null,r=this.node,s=y.section("Move node content to new file ",y.Icon.GIST_NEW,!1,!1),a=y.label("Please enter destination file path",y.Icon.BUG,y.TextClasses.ERROR,y.HighLightClasses.NONE);s.addChild(y.vc(a)),s.addChild(y.label("Please enter destination path"));var n=y.texfField("","",function(e){if(n){var r=null;if(t.destination=n.getBinding().get(),0==t.destination.trim().length)r="Please enter destination file path";else if(!h.extname(t.destination)||h.extname(t.destination).trim().length<=2)r="Please enter destination file extension";else{var s=h.resolve(h.dirname(A.getActiveEditor().getPath()),h.dirname(t.destination));if(c.existsSync(s)){var i=c.statSync(s);if(i.isDirectory()||(r="Parent path is not a directory"),!r){var o=!0;try{c.accessSync(s,c.W_OK)}catch(l){o=!1}o||(r="Can't write to specified directory, access denied. Please, check your permissions.")}}else r="Parent directory does not exist"}r?(a.setDisplay(!0),a.setText(r),p.setDisabled(!0)):(a.setDisplay(!1),p.setDisabled(!1))}});s.addChild(y.vc(n));var l=y.hc().setPercentWidth(100).setStyle("display","flex");l.addChild(y.label("",null,null,null).setStyle("flex","1")),l.addChild(y.button("Cancel",y.ButtonSizes.NORMAL,y.ButtonHighlights.NO_HIGHLIGHT,y.Icon.NONE,function(t){e.destroy()}).margin(10,10));var p=y.button("Move",y.ButtonSizes.NORMAL,y.ButtonHighlights.SUCCESS,y.Icon.NONE,function(s){var a=h.resolve(h.dirname(A.getActiveEditor().getPath()),t.destination),n=t.node.lowLevel().dump(),l=A.splitOnLines(n),p=i(l.length>1?l[1]:l[0]);n=n.substring(t.node.lowLevel().keyEnd()-t.node.lowLevel().start()+1).trim(),n=o(n,p);var u="RAML10"===r.definition().universe().version()?"#%RAML 1.0 ":"#%RAML 0.8 ";n=u+t.node.definition().nameId()+"\n"+n,c.writeFileSync(a,n);var m=r.lowLevel().unit().contents(),g=m.substring(r.lowLevel().end()),d=m.substring(0,r.lowLevel().keyEnd()+1),b=d+" !include "+t.destination+g;A.getActiveEditor().setText(b),e.destroy()});p.setDisabled(!0),l.addChild(p),s.addChild(l);var u=s.renderUI();e=atom.workspace.addModalPanel({item:u}),u.focus()},t}();e.MoveToNewFileDialog=Z;var V=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;for(var e=t.node;null!=e.parent();)e=e.parent();return e},e}(x.CommonASTStateCalculator),j=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;for(var e=t.node;null!=e.parent();)e=e.parent();return e},e}(x.CommonASTStateCalculator),K=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;for(var e=t.node;null!=e.parent();)e=e.parent();return e.definition&&b.isOverlayType(e.definition())?e:null},e}(x.CommonASTStateCalculator),W=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.isTypeNode=function(t){return t.property&&t.property().range&&b.isTypeDeclarationType(t.property().range())&&b.isTypesProperty(t.property())},e}(x.CommonASTStateCalculator),J=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;var e=t.node;if(!e)return null;for(;null!=e.parent();){if(this.isTypeNode(e)){var r=S.findUserDefinedSupertypes(e);return r&&r.length>0?e:null}e=e.parent()}return null},e}(W),Y=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;var e=t.node;if(!e)return null;for(;null!=e.parent();){if(this.isTypeNode(e)){var r=S.findUserDefinedSupertypes(e);return r&&0!=r.length?null:e}e=e.parent()}return null},e}(W),X=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();return t?t:null},e}(x.CommonASTStateCalculator);(function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;var e=t.node;if(t.completionKind!=g.LocationKind.KEY_COMPLETION&&t.completionKind!=g.LocationKind.VALUE_COMPLETION)return null;var r=(t.editor.getText(),v.find(e.attrs(),function(e){return e.lowLevel().start()<t.offset&&e.lowLevel().end()>=t.offset&&!e.property().getAdapter(P.RAMLPropertyService).isKey()}));if(!r)return null;var s=r.property();if(!b.isExampleProperty(s))return null;var a=e.attr("type");if(!a)return null;var i=a.value();return i?e:null},e})(x.CommonASTStateCalculator);e.findLowLevelNodeByOffset=n,e.initialize=p},function(t,e,r){t.exports=require("url")},function(t,e,r){t.exports=require("path")},function(t,e,r){t.exports=require("fs")},function(t,e,r){t.exports=require("atom-ui-lib")},function(t,e,r){t.exports=require("child_process")},function(t,e,r){t.exports=require("xmlhttprequest")},function(t,e,r){t.exports=require("mkdirp")},function(t,e,r){t.exports=require("raml-1-parser")},function(t,e,r){t.exports=require("atom-space-pen-views")},function(t,e,r){t.exports=require("underscore")},function(t,e,r){t.exports=require("basarat-text-buffer")},function(t,e,r){var s=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},a=r(23),i=function(t){function e(){t.call(this),this._children=[]}return s(e,t),e.content=function(){var t=this.div({"class":"scrollpad pane-item padded",tabindex:-1,style:"overflow:scroll;"});return t},e.prototype.dispose=function(){},e.prototype.caption=function(){return""},e.prototype.scroll=function(t,e){this.element.scrollTop=t,this.element.scrollLeft=e},e.prototype.size=function(){return{top:this.element.scrollTop,left:this.element.scrollLeft,bottom:this.element.scrollTop+this.element.clientHeight,right:this.element.scrollLeft+this.element.clientWidth}},e.prototype.changed=function(){},e.prototype.refresh=function(){},e.prototype.ui=function(){return this.element},e.prototype.setParent=function(t){null!=this._parent&&this._parent.removeChild(this),this._parent=t},e.prototype.addChild=function(t){t.setParent(this),this._children.push(t)},e.prototype.removeChild=function(t){this._children=this._children.filter(function(e){return e!=t})},e.prototype.doRender=function(){return this.innerRenderUI()},e.prototype.selfRender=function(){return document.createElement("div")},e.prototype.attached=function(){this.html(this.innerRenderUI())},e.prototype.innerRenderUI=function(){var t=this.selfRender();return this._children.forEach(function(e){var r=e.renderUI();r&&t.appendChild(r)}),t},e.prototype.renderUI=function(){return this.element},e.prototype.parent=function(){return null},e.prototype.children=function(){return this._children},e.prototype.isAttached=function(){return!0},e}(a.ScrollView);e.Scrollable=i},function(t,e,r){function s(t){atom.open(t)}var a=function(){function t(){}return t.prototype.onDidChangeActivePaneItem=function(t){return atom.workspace.onDidChangeActivePaneItem(t)},t.prototype.addModalPanel=function(t){return atom.workspace.addModalPanel(t)},t.prototype.getActiveTextEditor=function(){return atom.workspace.getActiveTextEditor()},t.prototype.getActivePane=function(){return atom.workspace.getActivePane()},t.prototype.getActiveEditor=function(){return atom.workspace.getActiveEditor()},t.prototype.addRightPanel=function(t){return atom.workspace.addRightPanel(t)},t.prototype.paneForItem=function(t){return atom.workspace.paneForItem(t)},t.prototype.getPaneItems=function(){return atom.workspace.getPaneItems()},t.prototype.onDidAddPaneItem=function(t){return atom.workspace.onDidAddPaneItem(t)},t.prototype.onDidDestroyPane=function(t){return atom.workspace.onDidDestroyPane(t)},t.prototype.open=function(t,e){atom.workspace.open(t,e)},t}();e.Workspace=a,e.open=s,e.workspace=new a;var i=function(){function t(){}return t.prototype.add=function(t,e,r){return atom.commands.add(t,e,r)},t}();e.CommandManager=i,e.commands=new i},function(t,e,r){function s(t){return t?d.isGlobalSchemaType(t.definition()):!1}var a=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(18),o=r(26),n=r(16),l=i.CompositeDisposable,p=r(22),u=r(46),c=r(47),h=r(5),m=r(48),g=r(17),d=p.universeHelpers,b=function(t){function e(e){void 0===e&&(e=!0),t.call(this),this.allowStructureChanges=e,this.disposables=new l,this.addClass("raml-details")}return a(e,t),e.prototype.getTitle=function(){return"Details"},e.prototype.attached=function(){try{this.element.innerHTML="<div></div>",this._children=[],this.container=i.vc(),this.addChild(this.container),this.ui().appendChild(this.container.ui()),t.prototype.attached.call(this)}catch(e){}},e.prototype.setSchema=function(t){this.wasSchema&&(this.schemaView.dispose(),this.schemaView=null);var e=(t.attr("key"),t.attr("value")),r=12;if(null==e){this.container.clear();var s=i.h3("Selected schema has incorrect node so cannot be displayed.");return i.applyStyling(i.TextClasses.WARNING,s),s.setStyle("text-align","center").margin(0,0,24,12),void this.container.addChild(s)}setInterval(function(){12==r++&&e&&(e.setValue(a),c._updatePreview(l,a))},100);var a=e.value();this.container.clear();var o=m.smallEditor(function(s,i){if(e.lowLevel().includePath())try{var o=n.dirname(t.lowLevel().unit().absolutePath()),l=n.resolve(o,e.lowLevel().includePath());e.lowLevel().includeReference()||g.writeFileSync(l,i)}catch(s){console.log(s)}a=i,r=0});m._updateEditor(o,a);var l=c._schemaPreview();c._updatePreview(l,a);var p=new i.TabFolder;p.add("Tree view",i.Icon.GIT_MERGE,l),p.add("Text view",i.Icon.FILE_TEXT,o),this.container.addChild(p),window.detailsnode=t,u.oldItem&&(u.oldItem.detach(),u.oldItem=null),this.schemaView=o,this.wasSchema=!0},e.prototype.setResource=function(t){this.wasSchema&&(this.schemaView.dispose(),this.schemaView=null),this.wasSchema=!1;var e=t;window.detailsnode=e,(null==e||null==e.lowLevel())&&this.displayEmpty(),console.log("Displaying details for node "+e.name()),u.updateDetailsPanel(e,this.container,!0)},e.prototype.update=function(){window.detailsnode&&this.setResource(window.detailsnode)},e.prototype.displayEmpty=function(){if(this.container.clear(),!h.aquireManager().ast){this.container.addChild(i.h3("Our API is fabulously empty").margin(8,8,20,8));var t=new i.Button("Create new API",i.ButtonSizes.LARGE,i.ButtonHighlights.SUCCESS,i.Icon.REPO_CLONE,function(){return m.newApi()});t.margin(8,8,20,0),this.container.addChild(t)}},e.prototype.destroy=function(){h.aquireManager()._details=null,this.disposables.dispose(),this._node=null,this.container.dispose(),this.container=null,window.detailsnode=null,this._children=[],u.oldItem&&u.oldItem.detach(),this.wasSchema&&(this.schemaView.dispose(),this.schemaView=null),u.oldItem=null},e.prototype.show=function(t){if(this._node!=t){this._node=t;try{s(t)?this.setSchema(this._node):this.setResource(t)}catch(e){}}},e}(o.Scrollable);e.RamlDetails=b},function(t,e,r){function s(t,e,r,s,a,i){void 0===i&&(i=null);var o=d.treeViewerSection(e,r,t,function(t){return p(t).filter(function(t){return s(t)})},new k(i));return o.viewer.setBasicLabelFunction(function(t){return t?t.name():""}),o.viewer.setKeyProvider({key:function(t){return""+t.lowLevel().start()}}),o.viewer.addSelectionListener(a),o}function a(t){return i(t)?T.Resource:o(t)?T.Trait:n(t)?T.Type:l(t)?T.Schema:T.Unknown}function i(t){return t.definition().key()===v.Universe08.Resource||t.definition().key()===v.Universe10.Resource}function o(t){if(t.property()){var e=t.property().nameId();if(E[e])return!1}return!0}function n(t){var e=t.definition().key();return e===v.Universe08.ResourceType||e===v.Universe10.ResourceType||e===v.Universe08.Trait||e===v.Universe10.Trait}function l(t){var e=t.definition().key();return e===v.Universe08.GlobalSchema||t.property()&&t.property().nameId()==v.Universe10.LibraryBase.properties.types.name}function p(t){if(null==t)return[];if(t.isAttr())return[];if(t.isUnknown())return[];var e=t.children();return e.filter(function(t){if(t.isAttr())return!1;if(t.isUnknown())return!1;return!0})}function u(t){return t?t&&!t.parent()?t.name():t.name()+" :: "+u(t.parent()):null}function c(t){return null==t?"":c(t.parent())+"/"+t.name()}function h(t,e,r,s){void 0===s&&(s=null);var a=d.treeViewer(function(t){return null==t.parent()?p(t).filter(function(t){return r(t)}):p(t)},new k(s),c);return a.setBasicLabelFunction(function(t){return t.name()}),a.setKeyProvider({key:u}),a.addSelectionListener(e),a.getBinding().set(t),a}function m(t,e,r){void 0===r&&(r=null);var s=h(t,{selectionChanged:e},function(t){return i(t)},r),a=h(t,{selectionChanged:e},l,r),p=h(t,{selectionChanged:e
},n,r),u=h(t,{selectionChanged:e},function(t){return o(t)},r),c=new d.TabFolder;return c.add("Resources",d.Icon.SEARCH,s,"raml-icon"),c.add("Schemas & Types",d.Icon.SEARCH,a,"raml-icon"),c.add("Resource Types & Traits",d.Icon.SEARCH,p,"raml-icon"),c.add("Other",d.Icon.SEARCH,u,"raml-icon"),c.setSelectedIndex(0),c.setOnSelected(function(){var t=c.selectedComponent();if(t){var r=t.getSelection();r&&r.elements&&r.elements.length>0&&e(new d.SelectionChangedEvent(t,null,r))}}),c}var g=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},d=r(18),b=r(26),f=d.CompositeDisposable,_=r(22),v=_.universes,y=r(5),w=r(40),S=function(t){function e(){t.call(this),this.disposables=new f,this.fire=!0,this.createTree(null),this.addClass("raml-outline"),this.addChild(this._rs)}return g(e,t),e.prototype.createTree=function(t){var e=this;this._rs=m(t,function(t){y.aquireManager()._details&&t.selection&&t.selection.elements&&1==e.fire&&t.selection.elements.length>0&&t.selection.elements[0]&&y.aquireManager().setSelectedNode(t.selection.elements[0])}),this._viewers=[0,1,2,3].map(function(t){return e._rs.get(t).content})},e.prototype.getTitle=function(){return"Outline"},e.prototype.getNodePType=function(t){for(;t.parent()&&t.parent().parent();)t=t.parent();return a(t)},e.prototype.setSelection=function(t){this._selectedNode=t,this.fire=!1;try{var e=this.getNodePType(t),r=this._viewers[e];null!=r&&(r.setSelection(t),this._rs.setSelectedIndex(e))}finally{this.fire=!0}},e.prototype.setUnit=function(t,e){void 0===e&&(e=!1),this._children=[],this.createTree(t),this.addClass("raml-outline"),this.addChild(this._rs),this.html(this.innerRenderUI())},e.prototype.attach=function(){if(!this._isAttached){var t=$(this);t.html(this._rs.renderUI().outerHTML),this._isAttached=!0}},e.prototype.forEachViewer=function(t){this._viewers.forEach(t)},e.prototype.refresh=function(){var t=this.unit;this.setUnit(null),this.setUnit(t)},e.prototype.destroy=function(){y.aquireManager()._view=null,this._selectedNode=null,this.unit=null,this._viewers=[],this._rs=null,this._children=[],this.disposables.dispose()},e}(b.Scrollable);e.RamlOutline=S,e.treeSection=s;var T;!function(t){t[t.Resource=0]="Resource",t[t.Schema=1]="Schema",t[t.Type=2]="Type",t[t.Trait=3]="Trait",t[t.Unknown=4]="Unknown"}(T||(T={}));var E={resources:!0,schemas:!0,types:!0,resourceTypes:!0,traits:!0};e.simpleTree=h,e.createTree=m;var k=function(){function t(t){this.opener=t}return t.prototype.render=function(t){try{if(t.isAttr()){var e=t;return d.hc(d.label(e.name()+":"+e.value()),d.a("",function(e){var r=y.aquireManager().getCurrentEditor().getBuffer().positionForCharacterIndex(t.lowLevel().start());y.aquireManager().getCurrentEditor().getBuffer().positionForCharacterIndex(t.lowLevel().end());y.aquireManager().getCurrentEditor().setSelectedBufferRange({start:r,end:r},{})},d.Icon.ARROW_SMALL_LEFT,null,null))}if(t.isUnknown())return d.label("unknown");var r=d.Icon.DASH,s=d.TextClasses.NORMAL,a=t,i=a.definition().key();(i===v.Universe08.Resource||i===v.Universe10.Resource)&&(r=d.Icon.PRIMITIVE_SQUARE,s=d.TextClasses.HIGHLIGHT),(i===v.Universe08.Method||i===v.Universe10.Method)&&(r=d.Icon.PRIMITIVE_DOT,s=d.TextClasses.WARNING),(i===v.Universe08.AbstractSecurityScheme||i===v.Universe10.AbstractSecurityScheme)&&(r=d.Icon.LOCK,s=d.TextClasses.HIGHLIGHT),(i===v.Universe08.AbstractSecurityScheme||i==v.Universe10.AbstractSecurityScheme)&&(r=d.Icon.FILE_SUBMODULE,s=d.TextClasses.NORMAL),i==v.Universe10.TypeDeclaration&&w.universeHelpers.isAnnotationTypesProperty(a.property())&&(r=d.Icon.TAG,s=d.TextClasses.HIGHLIGHT),(a.definition().isAssignableFrom(v.Universe10.TypeDeclaration.name)||a.definition().isAssignableFrom(v.Universe08.Parameter.name))&&(a.property()&&a.property().nameId()==v.Universe10.ObjectTypeDeclaration.properties.properties.name?(r=d.Icon.FILE_BINARY,s=d.TextClasses.SUCCESS):(r=d.Icon.FILE_BINARY,s=d.TextClasses.SUCCESS));var o=t.name(),n=t;if(i===v.Universe08.DocumentationItem||i===v.Universe10.DocumentationItem){r=d.Icon.BOOK;var l=n.attr("title");l&&(o=l.value())}var p=(d.TextClasses.NORMAL,d.hc(d.label(o,r,s))),u=a.attr("type");if(u){var c=u.value();null==c&&(c="");var h="";h="object"==typeof c?":"+c.valueName():":"+c,p.addChild(d.label(h,d.Icon.NONE,d.TextClasses.WARNING).margin(2,0,0,0))}return a.lowLevel().unit()!=a.root().lowLevel().unit()&&(s=d.TextClasses.SUBTLE,p.addChild(d.label("("+a.lowLevel().unit().path()+")",d.Icon.NONE,s).margin(5,0,0,0))),p.addClass("outline"),p}catch(m){return console.log(m),d.hc(d.label("Illegal node",d.Icon.ARROW_SMALL_LEFT,null,null))}},t}();e.HLRenderer=k},function(t,e,r){function s(t){n.find(p,function(e){return e.name==t.name})||p.push(t)}function a(t,e,r,a,i){var o={name:t,target:r,onClick:a,shouldDisplay:i,category:e};s(o)}function i(t){var e=[];try{var r=p.filter(function(e){return e.target==t});r.forEach(function(t){if(t.stateCalculator&&t.stateCalculator.contextCalculationStarted)try{t.stateCalculator.contextCalculationStarted()}catch(e){console.error(e.message)}}),r.forEach(function(t){try{var r=null;if(t.stateCalculator&&(r=t.stateCalculator.calculate()),t.shouldDisplay&&!t.shouldDisplay(r))return;e.push(new l(t,r))}catch(s){console.error(s.message)}}),r.forEach(function(t){if(t.stateCalculator&&t.stateCalculator.contextCalculationFinished)try{t.stateCalculator.contextCalculationFinished()}catch(e){console.error(e.message)}})}catch(s){console.error(s.message)}return e}function o(t){if(t.label)return t.label;var e="api-workbench:";return t.category&&t.category.forEach(function(t){e=e+t+": "}),e+=t.name}var n=r(24);e.TARGET_RAML_EDITOR_NODE="TARGET_RAML_EDITOR_NODE",e.TARGET_RAML_TREE_VIEWER_NODE="TARGET_RAML_TREE_VIEWER_NODE",e.addAction=s,e.addSimpleAction=a;var l=function(){function t(t,e){var r=this;this.name=t.name,this.category=t.category,this.label=t.label,this.target=t.target,this.state=e,this.originalAction=t,this.onClick=function(){r.originalAction.onClick(r.state)}}return t}();e.calculateCurrentActions=i,e.getCategorizedActionLabel=o;var p=[]},function(t,e,r){var s=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},a=r(27),i=r(23),o=function(t){function e(e,r,s){void 0===s&&(s=""),t.call(this,[]),this._confirmed=e,this.label=r,this.filterKey=s}return s(e,t),e.prototype.getFilterKey=function(){return this.filterKey},e.prototype.viewForItem=function(t){return"<li>"+this.label(t)+"</li>"},e.prototype.cancel=function(){this.panel.hide(),t.prototype.cancel.call(this)},e.prototype.hide=function(){this.panel&&this.panel.hide()},e.prototype.confirmed=function(t){return this._confirmed(t),this.hide(),this.getSelectedItemView()},e.prototype.show=function(t){this.storeFocusedElement(),this.panel||(this.panel=a.workspace.addModalPanel({item:this})),this.setItems(t),this.panel.show(),this.focusFilterEditor()},e}(i.SelectListView);e.SelectListView=o},function(t,e,r){function s(t){if(!t||!t.parent())return!1;var e=t.parent();p.aquireManager()._view.forEachViewer(function(e){return e.remove(t)}),e.remove(t),p.aquireManager().updateText(e.lowLevel())}function a(t){return t&&t.property()?b.isResourcesProperty(t.property())?t:a(t.parent()):null}function i(t){return t&&t.property()?!b.isMethodType(t.definition())&&!b.isTraitType(t.definition())||t.definition().getAdapter(d.RAMLService).isUserDefined()?null:t:null}function o(t,e){return t&&t.property()&&t.definition().isAssignableFrom(e)?t:null}function n(t){p.aquireManager()||p.initEditorTools(!1);var e=[];e.forEach(function(t){return t.__module__="editorTools"}),u.addAction({name:"Add new resource",target:u.TARGET_RAML_EDITOR_NODE,category:["Add new..."],onClick:function(t){return h.newResource(p.aquireManager().getSelectedNode())},stateCalculator:new f,shouldDisplay:function(t){return null!=t}}),u.addAction({name:"Delete current node",target:u.TARGET_RAML_EDITOR_NODE,category:["Code"],onClick:function(t){return s(p.aquireManager().getSelectedNode())},stateCalculator:new _,shouldDisplay:function(t){return null!=t}}),u.addAction({name:"Create new API",target:u.TARGET_RAML_EDITOR_NODE,category:["Add new..."],onClick:function(t){return h.newApi()},stateCalculator:new v,shouldDisplay:function(t){return null!=t}}),u.addSimpleAction("Add new method",["Add new..."],u.TARGET_RAML_EDITOR_NODE,function(){return h.newMethod(a(p.aquireManager().getSelectedNode()))},function(){return p.aquireManager()&&p.aquireManager().getCurrentEditor()&&null!=a(p.aquireManager().getSelectedNode())}),u.addSimpleAction("Create new URI Parameter",["Add new..."],u.TARGET_RAML_EDITOR_NODE,function(){return h.newNode(a(p.aquireManager().getSelectedNode()),"Create new URI Parameter","uriParameters")},function(){return p.aquireManager()&&p.aquireManager().getCurrentEditor()&&null!=a(p.aquireManager().getSelectedNode())}),u.addSimpleAction("Create new Query Parameter",["Add new..."],u.TARGET_RAML_EDITOR_NODE,function(){return h.newNode(i(p.aquireManager().getSelectedNode()),"Create new Query Parameter","queryParameters")},function(){return p.aquireManager()&&p.aquireManager().getCurrentEditor()&&null!=i(p.aquireManager().getSelectedNode())}),u.addSimpleAction("Create new Header",["Add new..."],u.TARGET_RAML_EDITOR_NODE,function(){return h.newNode(i(p.aquireManager().getSelectedNode()),"Create new Header","headers")},function(){return p.aquireManager()&&p.aquireManager().getCurrentEditor()&&null!=i(p.aquireManager().getSelectedNode())}),u.addSimpleAction("Create new Response Header",["Add new..."],u.TARGET_RAML_EDITOR_NODE,function(){return h.newNode(o(p.aquireManager().getSelectedNode(),"Response"),"Create new Header","headers")},function(){return p.aquireManager()&&p.aquireManager().getCurrentEditor()&&null!=o(p.aquireManager().getSelectedNode(),"Response")}),u.addSimpleAction("Create new Response Body",["Add new..."],u.TARGET_RAML_EDITOR_NODE,function(){return h.newNode(o(p.aquireManager().getSelectedNode(),"Response"),"Create new Response Body","body")},function(){return p.aquireManager()&&p.aquireManager().getCurrentEditor()&&null!=o(p.aquireManager().getSelectedNode(),"Response")}),u.addSimpleAction("Create new Property",["Add new..."],u.TARGET_RAML_EDITOR_NODE,function(){return h.newNode(o(p.aquireManager().getSelectedNode(),"ObjectTypeDeclaration"),"Create new Property","properties")},function(){return p.aquireManager()&&p.aquireManager().getCurrentEditor()&&null!=o(p.aquireManager().getSelectedNode(),"ObjectTypeDeclaration")}),u.addSimpleAction("Create new Body",["Add new..."],u.TARGET_RAML_EDITOR_NODE,function(){return h.newNode(i(p.aquireManager().getSelectedNode()),"Create new Body","body")},function(){return p.aquireManager()&&p.aquireManager().getCurrentEditor()&&null!=i(p.aquireManager().getSelectedNode())}),u.addSimpleAction("Create new Response",["Add new..."],u.TARGET_RAML_EDITOR_NODE,function(){return h.newNode(i(p.aquireManager().getSelectedNode()),"Create new Response","responses","200")},function(){return p.aquireManager()&&p.aquireManager().getCurrentEditor()&&null!=i(p.aquireManager().getSelectedNode())})}var l=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},p=r(5),u=r(30),c=r(13),h=r(48),m=r(16),g=r(22),d=g.ds,b=g.universeHelpers,f=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.calculate=function(){var t=this.getEditor();if(!t)return null;if(".raml"!=m.extname(t.getPath()))return null;var e=this.getGeneralState();if(!e)return null;var r=e.node;return(b.isResourceType(r.definition())||b.isApiType(r.definition()))&&r.lowLevel()?r:null},e}(c.CommonASTStateCalculator),_=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(!t)return null;var e=t.node;return b.isApiType(e.definition())?null:e},e}(c.CommonASTStateCalculator),v=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.calculate=function(){var t=this.getGeneralState();if(t)return null;var e=this.getEditor();if(!e)return null;if(".raml"!=m.extname(e.getPath()))return null;var r=e.getText().trim();return""!=r?null:{}},e}(c.CommonASTStateCalculator);e.getResourceParent=a,e.registerQuickCommands=n},function(t,e,r){function s(t,e){var r=t[0],s=r.rootElement.querySelectorAll(e);return p.$(s[0])}function a(t){return".raml"==t||".yaml"==t}function i(t,e){}function o(t,e){var r=e.clientX,a=e.clientY,i=s([t],".lines")[0].getBoundingClientRect(),o=a-i.top,n=r-i.left;return{top:o,left:n}}function n(t,e){return t.getModel().screenPositionForPixelPosition(o(t,e))}function l(t,e){var r=p.$(atom.views)[0].getView(t),s=o(r,e);s.top-=t.displayBuffer.getScrollTop(),s.left-=t.displayBuffer.getScrollLeft();var a=r.getBoundingClientRect();return s.top+=a.top,s.left+=a.left,s}var p=r(23),u=r(41),c=(u.Subscriber,this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),h=r(23),m=h.$,c=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},g=function(t){function e(e){t.call(this),this.options=e,this.init()}return c(e,t),Object.defineProperty(e.prototype,"$",{get:function(){return this},enumerable:!0,configurable:!0}),e.content=function(){throw new Error("Must override the base View static content member")},e.prototype.init=function(){},e}(h.View);(function(t){function e(e){t.call(this),this.options=e,this.init()}return c(e,t),Object.defineProperty(e.prototype,"$",{get:function(){return this},enumerable:!0,configurable:!0}),e.content=function(){throw new Error("Must override the base View static content member")},e.prototype.init=function(){},e})(h.ScrollView),function(t){function e(e){t.call(this,e),this.rect=e,m(document.body).append(this.$),this.updatePosition()}return c(e,t),e.content=function(){var t=this;return this.div({"class":"atom-typescript-tooltip tooltip"},function(){t.div({"class":"tooltip-inner",outlet:"inner"})})},e.prototype.updateText=function(t){this.inner.html(t),this.updatePosition(),this.$.fadeTo(300,1)},e.prototype.updatePosition=function(){var t=10,e=this.rect.right,r=this.rect.bottom,s=void 0;e+this.$[0].offsetWidth>=m(document.body).width()&&(e=m(document.body).width()-this.$[0].offsetWidth-t),0>e&&(this.$.css({"white-space":"pre-wrap"}),e=t,s=t),r+this.$[0].offsetHeight>=m(document.body).height()&&(r=this.rect.top-this.$[0].offsetHeight),this.$.css({left:e,top:r})},e}(g);e.getFromShadowDom=s,e.isAllowedExtension=a,e.attach=i,e.screenPositionFromMouseEvent=n,e.screenPositionFromMouse=l},function(t,e,r){function s(t){var e=i.aquireManager();if(i.aquireManager()&&e.getCurrentEditor()==t)return e.ast;var r=t.getPath(),s=n.createProject(a.dirname(r)),o=s.unit(a.basename(r)),l=t.getBuffer().getText();if(!o)return null;o.updateContent(l);var p=o.highLevel();return p}var a=r(16),i=r(5),o=r(22),n=o.project;e.ast=s},function(t,e,r){var s=r(22),a=r(18),i=r(5),o=r(38),n=r(9),l=s.universes,p=function(){function t(t,e,r){this.node=t,this.name=e,this._resourceType=r}return t.prototype.getActiveEditor=function(){var t=atom.workspace.getActiveTextEditor();return t?t:i.aquireManager()?i.aquireManager().getCurrentEditor():null},t.prototype.show=function(){var t=this,e=null,r=this.node,s=a.section("Move resource ",a.Icon.GIST_NEW,!1,!1),i=a.label("please select destination resource",a.Icon.BUG,a.TextClasses.ERROR,a.HighLightClasses.NONE);s.addChild(a.vc(i)),s.addChild(a.label("Please select destination resource"));var p=a.hc();s.setPercentWidth(100),p.setPercentWidth(100);var u=function(e){if(t._resourceType){if(e.definition().key()!=l.Universe08.Resource&&e.definition().key()!=l.Universe10.Resource)return!1;if(e==r||e==r.parent())return!1}return!0},c=(r.definition().universe(),o.createSmallSelectionPanel(r.root(),u,"400px","100%"));p.addChild(c),s.addChild(p),c.addSelectionListener({selectionChanged:function(t){i.setDisplay(t.selection.isEmpty()),m.setDisabled(t.selection.isEmpty())}});var h=a.hc().setPercentWidth(100).setStyle("display","flex");h.addChild(a.label("",null,null,null).setStyle("flex","1")),h.addChild(a.button("Cancel",a.ButtonSizes.NORMAL,a.ButtonHighlights.NO_HIGHLIGHT,a.Icon.NONE,function(t){e.destroy()}).margin(10,10));var m=a.button("Move",a.ButtonSizes.NORMAL,a.ButtonHighlights.SUCCESS,a.Icon.NONE,function(s){var a=c.getSelection().elements[0];r.parent().remove(r),a.add(r);var i=r.lowLevel().unit().contents();t.getActiveEditor().setText(n.cleanEmptyLines(i)),e.destroy()});m.setDisabled(!0),h.addChild(m),s.addChild(h);var g=s.renderUI();e=atom.workspace.addModalPanel({item:g}),g.focus()},t}();e.MoveElementsDialog=p},function(t,e,r){var s=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},a=r(17),i=r(1),o=r(42),n=r(23),l=r(51),p=r(43),u=r(16),c=r(44),h=r(52),m=r(22),g=r(53),d=r(54),b=i.CompositeDisposable,f=function(t){function e(e){var r=this;t.call(this),this.loaded=!1,this.isAttached=!1,this.isParsing=!1,this.disposables=new b,this.pageState={},this.paths={},this.editors={},this.resolver=new v(function(t){return r.readFileSync(t)}),this.state=p({view:{},parameters:{},headers:{},uriParameters:{},baseUriParameters:{},queryParameters:{},bodies:{}},e.state),this.filename=e.filename,this.editorId=e.editorId,e.raml&&(this.raml=m.expander.expandTraitsAndResourceTypes(e.raml),this.project=e.raml.highLevel().lowLevel().unit().project().cloneWithResolver(this.resolver),this.loaded=!0)}return s(e,t),e.content=function(){return this.div({"class":"raml-console pane-item",tabindex:-1})},e.getUriForFilename=function(t){return"raml-console://file/"+t},e.getUriForEditor=function(t){return"raml-console://editor/"+t.id},e.prototype.attached=function(){var t=this;this.isAttached||(this.render(),this.isAttached=!0,this.editorId?this.resolveEditor(this.editorId):this.filename&&this.resolveFilename(this.filename),this.disposables.add(atom.workspace.observeTextEditors(function(e){var r=e.getPath();t.paths[r]&&(t.watchEditor(e),t.stopWatchingPath(r))})))},e.prototype.resolveEditor=function(t){var e=this,r=function(){if(e.editor=h.getEditorById(t),e.editor)return e.trigger("title-changed"),void e.loadRAML();var r=e.parents(".pane").view();return r&&r.destroyItem(e)};atom.workspace?r():this.disposables.add(atom.packages.onDidActivateInitialPackages(r))},e.prototype.resolveFilename=function(t){var e=this,r=function(){e.file=new l.File(t),e.trigger("title-changed"),e.loadRAML()};atom.workspace?r():this.disposables.add(atom.packages.onDidActivateInitialPackages(r))},e.prototype.readFileSync=function(t){var e,r=h.getEditorByPath(t);if(r)e=r.getText(),this.watchEditor(r);else{try{e=a.readFileSync(t,"utf8")}catch(s){if("ENOENT"===s.code)return void this.watchForFile(t);throw s}this.watchFile(t)}return e},e.prototype.watchEditor=function(t){var e=this,r=t.getPath();if(!this.editors[r]){var s=new b;this.editors[r]=s,s.add(t.onDidStopChanging(function(){e.updateUnit(r,t.getText())}));var a=function(){e.stopWatchingEditor(r),e.updateUnit(r,e.readFileSync(r))};s.add(t.onDidDestroy(a)),s.add(t.onDidChangePath(a))}},e.prototype.getActiveEditor=function(){return atom.workspace.getActiveTextEditor()},e.prototype.stopWatchingPath=function(t){var e=this.paths[t];e&&(e.close(),delete this.paths[t])},e.prototype.stopWatchingEditor=function(t){var e=this.editors[t];e&&(e.dispose(),delete this.editors[t])},e.prototype.watchFile=function(t){var e=this;if(!this.paths[t]){var r=l.watch(t,function(r){"change"===r?e.updateUnit(t,e.readFileSync(t)):(e.stopWatchingPath(t),e.deleteUnit(t))});this.paths[t]=r}},e.prototype.watchForFile=function(t){var e=this;this.watchForPath(t,function(){e.updateUnit(t,e.readFileSync(t))})},e.prototype.watchForPath=function(t,e){var r=this,s=u.dirname(t),a=function(){var i=l.watch(s,function(i,o){"change"===i?o===t&&(r.stopWatchingPath(s),e()):(r.watchForPath(s,a),r.stopWatchingPath(s))});r.paths[s]=i};try{a()}catch(i){this.watchForPath(s,a)}},e.prototype.stopWatching=function(){var t=this;Object.keys(this.paths).forEach(function(e){t.stopWatchingPath(e)}),Object.keys(this.editors).forEach(function(e){t.stopWatchingEditor(e)})},e.prototype.navigate=function(t){var e="string"==typeof t?{id:t}:p(this.state.view,t);this.pageState={},this.setState({view:e},function(){document.getElementById("raml-console-view").scrollTop=0}),this.abortRequest()},e.prototype.render=function(t){var e=this,r={state:this.state,raml:this.raml,loaded:this.loaded,errors:this.errors,pageState:this.pageState,setParameter:function(t,r,s){return e.setParameter(t,r,s)},setState:function(t){return e.setState(t)},navigate:function(t){return e.navigate(t)},execRequest:function(){return e.execRequest()}};o.render(o.createElement(d.Console,r),this.element,t)},e.prototype.execRequest=function(){var t=this;this.abortRequest();var e=this.raml.baseUri(),r=this.raml.highLevel().findById(this.state.view.id).wrapperNode();if(this.setPageState({requestError:void 0}),null==e)return void this.setPageState({requestError:"Unable to execute request, `baseUri` is missing"});var s=this.state.securityScheme?this.raml.securitySchemes().filter(function(e){return e.name()===t.state.securityScheme})[0]:void 0,a=this.toDefaultParameters(this.raml.allBaseUriParameters()),i=this.toDefaultParameters(r.parent().allUriParameters()),o=r.headers(),n=r.queryParameters(),l=g.template(e.value()||"",this.state.baseUriParameters,a).replace(/\/$/,""),u=g.template(r.parent().completeRelativeUri(),this.state.uriParameters,i);s&&(n=n.concat(s.describedBy().queryParameters()),o=o.concat(s.describedBy().headers())),this.request=c.request({url:l+u,method:r.method(),headers:p({"User-Agent":"API Workbench: Console"},this.usedParameters(this.state.headers,o)),query:this.usedParameters(this.state.queryParameters,n),body:this.state.bodies[this.state.body],use:[c.plugins.headers(),c.plugins.unzip(),c.plugins.concatStream("string")]}),this.request.progress(function(){t.setPageState({requestProgress:t.request.completed})}),this.request.then(function(e){t.setPageState({requestResponse:e.toJSON(),requestProgress:void 0}),t.request=void 0},function(e){t.setPageState({requestError:e.message,requestProgress:void 0}),t.request=void 0})},e.prototype.toDefaultParameters=function(t){var e={};return t.forEach(function(t){t["default"]()&&(e[t.name()]=t["default"]())}),e},e.prototype.usedParameters=function(t,e){var r={};return e.forEach(function(e){t[e.name()]&&(r[e.name()]=t[e.name()])}),r},e.prototype.abortRequest=function(){this.request&&(this.request.abort(),this.request=void 0)},e.prototype.updateRAML=function(){this.isParsing=!0;try{var t=this.getUnit(this.getFilename()),e=t.ast().errors();this.errors=e,e.length||(this.raml=m.expander.expandTraitsAndResourceTypes(t.highLevel().asElement().wrapperNode()))}catch(r){this.raml=void 0,this.errors=[r]}finally{this.loaded=!0,this.isParsing=!1,this.render(),this.trigger("title-changed")}},e.prototype.loadRAML=function(){this.stopWatching(),this.project=m.project.createProject(u.dirname(this.getFilename()),this.resolver),this.updateRAML()},e.prototype.serialize=function(){return{deserializer:"RAMLConsoleView",filename:this.getFilename(),state:this.state}},e.prototype.getFilename=function(){return this.file?this.file.getPath():this.editor?this.editor.getPath():void 0},e.prototype.getTitle=function(){var t="RAML";return this.raml&&null!=this.raml.title()?t=this.raml.title():this.file?t=u.basename(this.getFilename()):this.editor&&(t=this.editor.getTitle()),t+" Console"},e.prototype.destroy=function(){this.stopWatching(),this.disposables.dispose(),o.unmountComponentAtNode(this.element)},e.prototype.setState=function(t,e){this.state=p(this.state,t),this.render(e)},e.prototype.setPageState=function(t,e){this.pageState=p(this.pageState,t),this.render(e)},e.prototype.setParameter=function(t,e,r){var s={},a=p(this.state[t]);r?a[e]=r:delete a[e],s[t]=a,this.setState(s)},e.prototype.getURI=function(){return e.getUriForFilename(this.getFilename())},e.prototype.getUnit=function(t){return this.project.unit(t,!0)},e.prototype.deleteUnit=function(t){this.project.deleteUnit(t),this.updateRAML()},e.prototype.updateUnit=function(t,e){this.getUnit(t).updateContent(this.readFileSync(t)),this.updateRAML()},e}(n.ScrollView);e.RAMLConsoleView=f;var _=function(){function t(){}return t.prototype.content=function(t){if(!a.existsSync(t))return null;try{return a.readFileSync(t).toString()}catch(e){return null}},t.prototype.list=function(t){return a.readdirSync(t)},t.prototype.contentAsync=function(t){return new Promise(function(e,r){a.readFile(t,function(t,s){if(null!=t)return r(t);var a=s.toString();e(a)})})},t.prototype.listAsync=function(t){return new Promise(function(e,r){a.readdir(t,function(t,s){return null!=t?e(t):void r(s)})})},t}();e.FSResolverImpl=_;var v=function(t){function e(e){t.call(this),this.readFileSync=e}return s(e,t),e.prototype.content=function(t){return this.readFileSync(t)},e}(_)},function(t,e,r){function s(t){var e={};if(1==t.nodeType){if(t.attributes.length>0)for(var r=0;r<t.attributes.length;r++){var a=t.attributes.item(r);e["@"+a.nodeName]=a.nodeValue}}else 3==t.nodeType&&(e=t.nodeValue);if(t.hasChildNodes())for(var i=0;i<t.childNodes.length;i++){var o=t.childNodes.item(i),n=o.nodeName;if(void 0!=n)if("undefined"==typeof e[n])e[n]=s(o);else{if("undefined"==typeof e[n].push){var l=e[n];e[n]=[],e[n].push(l)}e[n].push(s(o))}}return e}function a(t){for(var e in t)if("object"==typeof t[e]){for(var r in t[e])if("#text"==r){var s=t[e]["#text"];"string"!=typeof s&&(s=s.join("")),s=s.trim(),0==s.length&&delete t[e]["#text"]}a(t[e])}return t}function i(t){for(var e in t)if("object"==typeof t[e]){var r=Object.keys(t[e]);1==r.length&&"#text"==r[0]&&(t[e]=t[e]["#text"]),i(t[e])}return t}function o(t){var e=new n.DOMParser;if(!t||0==t.trim().indexOf("<<"))return null;var r=e.parseFromString(t);return i(a(s(r)))}var n=r(49);t.exports=o},function(t,e,r){function s(t,e,r,s,i){void 0===i&&(i="left");var o=a(t,e);return o.setTagName("atom-panel"),o.setStyle("width",s),o.setStyle("border","solid"),o.setStyle("border-width","1px"),o.setStyle("height",r),o.setStyle("overflow","scroll"),i&&o.setStyle("float",i),o.margin(3,3,3,3),o}function a(t,e){var r=d.treeViewer(function(t){return t.elements().filter(function(t){return e(t)})},new b.HLRenderer(function(t){}));return r.setInput(t),r}function i(t){var e=[],r=t.localType();return r&&r.isUserDefined()?(o(r,e),e):e}function o(t,e){if(t.isUserDefined()){e.push(t);var r=t.superTypes();r&&r.forEach(function(t){return o(t,e)})}}function n(t){return null==t?!1:T.stringStartsWith(t,"http://")||T.stringStartsWith(t,"https://")}var l=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},p=r(17),u=r(16),c=r(22),h=c.stubs,m=r(24),g=r(7),d=r(18),b=r(29),f=r(9),_=r(50),v=c.universeHelpers,y=c.universes,w=c.ds,S=c.search,T=r(55),E=function(){function t(t,e,r){this.node=t,this.name=e,this._resourceType=r,this.filters=new k}return t.prototype.getActiveEditor=function(){return f.getActiveEditor()},t.prototype.show=function(){var t=this,e=null,r=this.node,a=d.section("Extract "+this.name+":",d.Icon.GIST_NEW,!1,!1);a.addChild(d.label("Extracted element name:").pad(5,0));var i=d.label("Please type valid name for "+this.name,d.Icon.BUG,d.TextClasses.ERROR,d.HighLightClasses.NONE);a.addChild(d.vc(i));var o=d.texfField("","",function(t){if(S){var e=0==o.getBinding().get().trim().length;S.setDisabled(e),i.setDisplay(e),p.attr("name").setValue(o.getBinding().get())}});a.addChild(o),a.addChild(d.label("Move elements which should be extracted to the right panel"));var n=d.hc();a.setPercentWidth(100),n.setPercentWidth(100);var l=function(e){return t._resourceType&&v.isResourceType(e.definition())?!1:m.find(t.filters.removals,function(t){return e==t})?!1:!0},p=this.createNodeStub(r),u=s(r,l,"400px","47%"),c=s(p,function(t){return!0},"400px","47%","right"),g=d.button(">",d.ButtonSizes.NORMAL,d.ButtonHighlights.NO_HIGHLIGHT,d.Icon.NONE,function(e){var s=u.getSelection().elements;t.moveRight(s,p,r,u,c)}),b=d.button("<",d.ButtonSizes.NORMAL,d.ButtonHighlights.NO_HIGHLIGHT,d.Icon.NONE,function(e){var s=c.getSelection().elements;t.moveLeft(s,p,r,u,c)}),_=d.button(">>",d.ButtonSizes.NORMAL,d.ButtonHighlights.NO_HIGHLIGHT,d.Icon.NONE,function(e){var s=r.elements().filter(function(t){return l(t)});t.moveRight(s,p,r,u,c)}),y=d.button("<<",d.ButtonSizes.NORMAL,d.ButtonHighlights.NO_HIGHLIGHT,d.Icon.NONE,function(e){var s=p.elements();t.moveLeft(s,p,r,u,c)});n.addChild(d.vc(g,b,_,y)),n.addChild(u),n.addChild(c),a.addChild(n),u.addSelectionListener({selectionChanged:function(t){var e=t.selection.elements,s=void 0!=m.find(e,function(t){return t.parent()!=r});g.setDisabled(s||0==e.length)}}),c.addSelectionListener({selectionChanged:function(e){var r=e.selection.elements,s=void 0!=m.find(r,function(e){var r=m.find(t.filters.removals,function(t){return e.id()==t.id()});return void 0==r});b.setDisabled(s||0==r.length)}}),b.setDisabled(!0),g.setDisabled(!0);var w=d.hc().setPercentWidth(100).setStyle("display","flex");w.addChild(d.label("",null,null,null).setStyle("flex","1")),w.addChild(d.button("Cancel",d.ButtonSizes.NORMAL,d.ButtonHighlights.NO_HIGHLIGHT,d.Icon.NONE,function(t){e.destroy()}).margin(10,10));var S=d.button("Extract",d.ButtonSizes.NORMAL,d.ButtonHighlights.SUCCESS,d.Icon.NONE,function(s){if(t.filters.removals.forEach(function(t){return r.remove(t)}),t._resourceType){var a=r.attr("type");a||r.add(h.createAttr(r.definition().property("type"),p.name()))}else{var a=r.attr("is");a||r.add(h.createAttr(r.definition().property("is"),"["+p.name()+"]"))}var i=t.createNodeStub(r);p.elements().forEach(function(t){return i.add(t)}),i.attr("name").setValue(o.getBinding().get()),r.root().add(i);var n=r.lowLevel().unit().contents();t.getActiveEditor().setText(f.cleanEmptyLines(n)),e.destroy()});S.setDisabled(!0),w.addChild(S),a.addChild(w);var T=a.renderUI();e=atom.workspace.addModalPanel({item:T}),T.focus()},t.prototype.createNodeStub=function(t){var e=t.definition().universe(),r=t.root().definition().property("resourceTypes"),s=t.root().definition().property("traits"),a=h.createStubNode(e.type("ResourceType"),r);return this._resourceType||(a=h.createStubNode(e.type("Trait"),s)),a},t.prototype.moveLeft=function(t,e,r,s,a){var i=this;t.length>0&&(t.forEach(function(t){return i.filters.removals=i.filters.removals.filter(function(e){return e.id()!=t.id()})}),t.forEach(function(t){e.remove(t);var r=0;r++})),s.setInput(r),a.setInput(e)},t.prototype.moveRight=function(t,e,r,s,a){t.length>0&&(this.filters.removals=this.filters.removals.concat(t)),t.forEach(function(t){return e.add(t.copy())}),s.setInput(r),a.setInput(e)},t}();e.ExtractTypesAndTraitsDialog=E;var k=function(){function t(){this.removals=[]}return t}();e.createSmallSelectionPanel=s,e.createVIewer=a;var C=function(){function t(t,e){this.parentNode=t,this.name=e,this.movedNodes=[]}return t.prototype.checkNode=function(t){return{visitChildren:!0,display:!0,canBeMoved:!0}},t.prototype.validate=function(){return null},t.prototype.createHeader=function(t){},t.prototype.performOk=function(t,e){},t.prototype.show=function(){if(console.log("Original file tree:"),this.getParentNode()&&console.log(this.getParentNode().printDetails()),this.getParentNode()){var t=d.section(this.name+":",d.Icon.GIST_NEW,!1,!1);this.stubRoot=this.createStub(this.getParentNode()),
this.createValidationIndicator(t),this.createHeader(t),this.createPanels(t),this.createButtonBar(t),t.setPercentWidth(100);var e=t.renderUI();this.rootAtomPanel=atom.workspace.addModalPanel({item:e}),e.focus(),this.performValidation()}},t.prototype.performValidation=function(){var t=this.validate();this.okButton&&(t?this.okButton.setDisabled(!0):this.okButton.setDisabled(!1)),this.errorLabel&&(t?(this.errorLabel.setDisplay(!0),this.errorLabel.setText(t)):(this.errorLabel.setDisplay(!1),this.errorLabel.setText("")))},t.prototype.createValidationIndicator=function(t){this.errorLabel=d.label("",d.Icon.BUG,d.TextClasses.ERROR,d.HighLightClasses.NONE),t.addChild(d.vc(this.errorLabel))},t.prototype.getNodeId=function(t){if(t.parent()){var e=this.getNodeId(t.parent());e+="."+t.name();var r=t.parent().asElement().directChildren().filter(function(e){return e.name()==t.name()});if(r.length>1){var s=r.indexOf(t);e+="["+s+"]"}return e}return t.name()?t.definition&&t.definition()&&v.isApiType(t.definition())?"":"."+t.name():""},t.prototype.nodesEqualById=function(t,e){return this.getNodeId(t)==this.getNodeId(e)},t.prototype.createMovedNodesTree=function(){var t=this;this.stubRoot=this.createStub(this.getParentNode()),this.movedNodes.forEach(function(e){for(var r=[],s=e.parent();s&&s!=t.getParentNode();)r.push(s),s=s.parent();r.reverse();var a=t.stubRoot;r.forEach(function(e){var r=m.find(a.children(),function(r){return t.nodesEqualById(r,e)});r||(r=t.createStub(e),a.add(r),r.setParent(a)),a=r});var i=t.createMovedNode(e);a.add(i),i.setParent(a)}),console.log("New tree moved:"),console.log(this.stubRoot.printDetails())},t.prototype.createMovedNode=function(t){return t.copy()},t.prototype.saveUnit=function(t){g.saveUnit(t)},t.prototype.createStub=function(t){var e=h.createStubNode(t.definition(),t.property(),t.lowLevel().key());return e},t.prototype.createStubRoot=function(t,e){var r=h.createMap(),s=h.createASTNodeImpl(r,null,e,null);return s.children(),s},t.prototype.createPanels=function(t){var e=this,r=d.hc();t.addChild(d.label("Move elements which should be extracted to the right panel"));var a=function(t){return e.checkNode(t).display?m.find(e.movedNodes,function(e){return e==t})?!1:!0:!1};this.leftPanel=s(this.getParentNode(),a,"400px","47%");var i=function(t){return e.checkNode(t).display?!0:!1};this.rightPanel=s(this.stubRoot,i,"400px","47%","right");var o=d.button(">",d.ButtonSizes.NORMAL,d.ButtonHighlights.NO_HIGHLIGHT,d.Icon.NONE,function(t){var r=e.leftPanel.getSelection().elements;e.moveRight(r)}),n=d.button("<",d.ButtonSizes.NORMAL,d.ButtonHighlights.NO_HIGHLIGHT,d.Icon.NONE,function(t){var r=e.rightPanel.getSelection().elements;e.moveLeft(r)});r.addChild(d.vc(o,n)),r.addChild(this.leftPanel),r.addChild(this.rightPanel),t.addChild(r),this.leftPanel.addSelectionListener({selectionChanged:function(t){var e=t.selection.elements;o.setDisabled(0==e.length)}}),this.rightPanel.addSelectionListener({selectionChanged:function(t){var e=t.selection.elements;n.setDisabled(0==e.length)}}),n.setDisabled(!0),o.setDisabled(!0),r.setPercentWidth(100)},t.prototype.createButtonBar=function(t){var e=this,r=d.hc().setPercentWidth(100).setStyle("display","flex");r.addChild(d.label("",null,null,null).setStyle("flex","1")),r.addChild(d.button("Cancel",d.ButtonSizes.NORMAL,d.ButtonHighlights.NO_HIGHLIGHT,d.Icon.NONE,function(t){e.rootAtomPanel.destroy()}).margin(10,10)),this.okButton=d.button("Extract",d.ButtonSizes.NORMAL,d.ButtonHighlights.SUCCESS,d.Icon.NONE,function(t){e.performOk(e.movedNodes,e.stubRoot),e.rootAtomPanel.destroy()}),this.okButton.setDisabled(!0),r.addChild(this.okButton),t.addChild(r)},t.prototype.getParentNode=function(){return this.parentNode},t.prototype.isParentOf=function(t,e){for(var r=e.parent();null!=r;){if(r==t||this.nodesEqualById(r,t))return!0;r=r.parent()}return!1},t.prototype.mergeTrees=function(t,e,r){var s=this;void 0===r&&(r=!1),t.directChildren()&&t.directChildren().forEach(function(t){s.mergeNode(t,e)})},t.prototype.getActiveEditor=function(){return f.getActiveEditor()},t.prototype.mergeNode=function(t,e,r){var s=this;if(void 0===r&&(r=!1),r||t.isElement()){var a=e.directChildren();if(!a)return e.add(t),void t.setParent(e);var i=m.find(a,function(e){return s.nodesEqualById(e,t)});return i?void(t.directChildren()&&t.directChildren().forEach(function(t){return s.mergeNode(t,i)})):(e.add(t),void t.setParent(e))}},t.prototype.moveLeft=function(t){var e=this;t.length>0&&(this.movedNodes=this.movedNodes.filter(function(r){return m.find(t,function(t){return e.nodesEqualById(t,r)||e.isParentOf(t,r)})?!1:!0}),this.createMovedNodesTree()),this.leftPanel.setInput(this.getParentNode()),this.rightPanel.setInput(this.stubRoot),this.performValidation()},t.prototype.moveRight=function(t){var e=this;t.length>0&&(this.movedNodes=this.movedNodes.filter(function(r){return m.find(t,function(t){return e.isParentOf(t,r)})?!1:!0}),t.forEach(function(t){return e.movedNodes.push(t)}),this.createMovedNodesTree()),this.leftPanel.setInput(this.getParentNode()),this.rightPanel.setInput(this.stubRoot),this.performValidation()},t}();e.AbstractlMoveElementsDialog=C;var x=function(t){function e(e,r){t.call(this,e,r)}return l(e,t),e.prototype.checkNode=function(t){var e=null;t.property()&&t.property().range()&&(e=t.property().range());var r=t.property(),s=v.isTypesProperty(r),a=v.isTypeDeclarationType(e)&&s;return e&&(v.isResourceTypeType(e)||v.isTraitType(e)||v.isGlobalSchemaType(e)||v.isSecuritySchemaType(e)||a)?{visitChildren:!1,display:!0,canBeMoved:!0}:{visitChildren:!1,display:!1,canBeMoved:!1}},e.prototype.createStub=function(e){if(e.definition().key()==y.Universe10.Api||e.definition().key()==y.Universe08.Api){var r=c.ds.getUniverse("RAML10"),s=r.type(y.Universe10.Library.name),a=this.createStubRoot(e,s);return a}return t.prototype.createStub.call(this,e)},e.prototype.validate=function(){if(!this.libraryPath)return null;if(!this.stubRoot)return null;if(0==this.movedNodes.length)return"Add elements to move";if(!this.libraryNamespace)return null;if(!this.getLibraryQualifier())return"Enter library namespace";if(0==this.getLibraryQualifier().trim().length)return"Enter library namespace";var t=this.libraryPath.getBinding().get(),e=t.trim();if(0==e.length)return"Empty library path";if(".raml"!=u.extname(e))return"Library path should be a RAML file";var r=u.resolve(u.dirname(this.getActiveEditor().getPath()),u.dirname(e));if(!p.existsSync(r))return"Library path directory does not exist";var s=p.statSync(r);if(!s.isDirectory())return"Library path parent is not a directory";var a=u.resolve(u.dirname(this.getActiveEditor().getPath()),e);return p.existsSync(a)?"Destination library already exists":null},e.prototype.createHeader=function(t){var e=this;t.addChild(d.label("Library namespace:").pad(5,0)),this.libraryNamespace=d.texfField("",this.getDefaultLibraryNamespace(),function(t){e.performValidation()}),t.addChild(this.libraryNamespace),t.addChild(d.label("Library path:").pad(5,0)),this.libraryPath=d.texfField("",this.generateDefaultLibraryPath(),function(t){e.performValidation()}),t.addChild(this.libraryPath)},e.prototype.performOk=function(t,e){var r=this,s=this.createProject(),a=this.createLibraryUnit(s),i=S.globalDeclarations(this.getParentNode()).filter(function(t){return t&&t.definition&&t.definition().nameId()===y.Universe10.Library.name}),o=this.getParentNode().definition().universe(),l=o.type(y.Universe10.Library.name);t.forEach(function(t){var s=i.filter(function(e){return m.find(e.findReferences(),function(e){return r.isParentOf(t,e)})?!0:!1});s.forEach(function(t){var s=t.lowLevel()._node.value&&t.lowLevel()._node.value.value;if(s){var i;if(n(s)||u.isAbsolute(s))i=s;else var o=u.dirname(r.getParentNode().lowLevel().unit().absolutePath()),i=u.relative(u.dirname(a.absolutePath()),u.resolve(o,s));var p=h.createMapping(t.lowLevel().key(),"!include "+i),c=h.createASTNodeImpl(p,null,l,null);e.wrapperNode().addToProp(c.wrapperNode(),y.Universe10.FragmentDeclaration.properties.uses.name)}})}),this.updateLibraryUnit(a,e),this.saveUnit(a);var p=[];p.push(this.getParentNode().lowLevel().unit());var c=this.getLibraryQualifier();t.forEach(function(e){var s=e.findReferences();s&&s.forEach(function(s){if(s.isAttr()&&!m.find(t,function(t){return r.isParentOf(t,s)})){var a=s,i=a.value();if("string"==typeof i){var o=i,n=e.name(),l=c+"."+n,u=o.replace(n,l);a.setValue(u);var h=a.lowLevel().unit();m.find(p,function(t){return t==h})&&p.push(h)}}}),e.parent().remove(e)}),p.forEach(function(t){return r.saveUnit(t)}),this.addUsesNode(c,this.getLibraryPath())},e.prototype.generateDefaultLibraryPath=function(){var t=this.getParentNode(),e=t.lowLevel().unit().absolutePath(),r=u.dirname(e);return u.resolve(r,"NewLibrary.raml")},e.prototype.getLibraryName=function(){return this.libraryNamespace.getBinding().get()},e.prototype.getLibraryQualifier=function(){return this.libraryNamespace.getBinding().get()},e.prototype.getDefaultLibraryNamespace=function(){return"NewLibrary"},e.prototype.getLibraryPath=function(){var t=this.libraryPath.getBinding().get(),e=t.trim();if(0==e.length)return null;if(".raml"!=u.extname(e))return null;var r=u.resolve(u.dirname(this.getActiveEditor().getPath()),u.dirname(e));if(!p.existsSync(r))return null;var s=p.statSync(r);return s.isDirectory()?u.resolve(u.dirname(this.getActiveEditor().getPath()),e):null},e.prototype.createProject=function(){var t=this.getLibraryPath();return c.project.createProject(u.dirname(t))},e.prototype.createLibraryUnit=function(t){var e=this.getLibraryPath();return p.writeFileSync(e,"#%RAML 1.0 Library\n"),t.unit(u.basename(e))},e.prototype.updateLibraryUnit=function(t,e){var r=t.highLevel();e.children().forEach(function(t){t.getKind()&&r.add(t)})},e.prototype.addUsesNode=function(t,e){var r=u.relative(u.dirname(this.getParentNode().lowLevel().unit().absolutePath()),e),s=m.find(this.getParentNode().children(),function(t){var e=t;return e.definition&&v.isLibraryType(e.definition())&&e.property()&&v.isUsesProperty(e.property())}),a=null,i=!1;if(s)for(var o=s.lowLevel();null!=o;){if(o.kind()==_.Kind.MAPPING&&o.key()==y.Universe10.FragmentDeclaration.properties.uses.name){a=o;break}o.kind()==_.Kind.SEQ&&(i=!0),o=o.parent()}if(a){var n=a.keyEnd()+1,l="\n "+(i?"- ":"")+t+": !include "+r;this.insertTextToActiveEditor(n,l)}else{var p=m.find(this.getParentNode().children(),function(t){var e=t;return e.definition&&v.isStringTypeType(e.definition())&&e.property()&&v.isTitleProperty(e.property())});if(p){var n=p.lowLevel().valueEnd(),l="\nuses:\n "+t+": !include "+r;this.insertTextToActiveEditor(n,l)}else{var n=this.getParentNode().lowLevel().end(),l="\nuses:\n "+t+": !include "+r;this.insertTextToActiveEditor(n,l)}}},e.prototype.insertTextToActiveEditor=function(t,e){var r=this.getParentNode().lowLevel().unit().contents(),s=r.substring(t),a=r.substring(0,t),i=a+e+s;this.getActiveEditor().setText(i)},e.prototype.createUsesNode=function(t,e){var r=this.getParentNode().definition().universe(),s=this.getParentNode().root().definition().property("uses"),a=h.createStubNode(r.type("Library"),s,t);return a},e}(C);e.ExtractLibraryDialog=x;var A=function(t){function e(e,r){t.call(this,e,r)}return l(e,t),e.prototype.createStub=function(e){if(e.definition().key()==y.Universe10.Api||e.definition().key()==y.Universe08.Api){var r=c.ds.getUniverse("RAML10"),s=r.type(y.Universe10.Overlay.name),a=this.createStubRoot(e,s);return a}return t.prototype.createStub.call(this,e)},e.prototype.checkNode=function(t){return{visitChildren:!0,display:!0,canBeMoved:!0}},e.prototype.validate=function(){if(!this.overlayPath)return null;if(!this.stubRoot)return null;if(0==this.movedNodes.length)return"Add elements to move";var t=this.overlayPath.getBinding().get(),e=t.trim();if(0==e.length)return"Empty overlay path";if(".raml"!=u.extname(e))return"Overlay path should be a RAML file";var r=u.resolve(u.dirname(this.getActiveEditor().getPath()),u.dirname(e));if(!p.existsSync(r))return"Overlay path directory does not exist";var s=p.statSync(r);if(!s.isDirectory())return"Overlay path parent is not a directory";u.resolve(u.dirname(this.getActiveEditor().getPath()),e);return null},e.prototype.createHeader=function(t){var e=this;t.addChild(d.label("Overlay path:").pad(5,0)),this.overlayPath=d.texfField("",this.generateDefaultOverlayPath(),function(t){e.performValidation()}),t.addChild(this.overlayPath)},e.prototype.performOk=function(t,e){var r=this.createProject(),s=this.createOverlayUnit(r);this.updateOverlayUnit(s,e);var a=this.getOverlayPath(),i=this.getParentNode().lowLevel().unit().absolutePath(),o=u.relative(u.dirname(a),i);this.addMasterReference(s,o),this.saveUnit(s)},e.prototype.generateDefaultOverlayPath=function(){var t=this.getParentNode(),e=t.lowLevel().unit().absolutePath(),r=u.dirname(e);return u.resolve(r,"NewOverlay.raml")},e.prototype.createProject=function(){var t=this.getOverlayPath();return c.project.createProject(u.dirname(t))},e.prototype.createOverlayUnit=function(t){var e=this.getOverlayPath();return p.writeFileSync(e,"#%RAML 1.0 Overlay\ntitle: Extension\n"),t.unit(u.basename(e))},e.prototype.updateOverlayUnit=function(t,e){var r=t.highLevel();e.children().forEach(function(t){t.getKind()&&r.add(t)})},e.prototype.getOverlayPath=function(){var t=this.overlayPath.getBinding().get(),e=t.trim();if(0==e.length)return null;if(".raml"!=u.extname(e))return null;var r=u.resolve(u.dirname(this.getActiveEditor().getPath()),u.dirname(e));if(!p.existsSync(r))return null;var s=p.statSync(r);return s.isDirectory()?u.resolve(u.dirname(this.getActiveEditor().getPath()),e):null},e.prototype.addMasterReference=function(t,e){var r=t.highLevel(),s=r.attrOrCreate(y.Universe10.Overlay.properties["extends"].name);s.setValue(e)},e.prototype.createMovedNode=function(t){return this.createStub(t)},e}(C);e.ExtractOverlayDialog=A;var P=function(t){function e(e,r){t.call(this,e,r),this.overlayASTRoot=e,console.log("Overlay AST root:"),console.log(this.overlayASTRoot.printDetails()),this.masterASTRoot=this.createMasterAST(),this.overlayASTLeafNodes=[],this.calculateLeafNodes(this.overlayASTRoot,this.overlayASTLeafNodes)}return l(e,t),e.prototype.getParentNode=function(){return this.masterASTRoot},e.prototype.checkNode=function(t){var e=this;return m.find(this.overlayASTLeafNodes,function(r){return r==t||e.nodesEqualById(r,t)})?{visitChildren:!1,display:!1,canBeMoved:!1}:{visitChildren:!0,display:!0,canBeMoved:!0}},e.prototype.validate=function(){return this.stubRoot&&0==this.movedNodes.length?"Add elements to move":null},e.prototype.createHeader=function(t){},e.prototype.performOk=function(t,e){var r=this.getOverlayUnit();this.updateOverlayUnit(r,e),this.saveUnit(r)},e.prototype.createMasterAST=function(){var t=this.findMasterAbsolutePath();if(!t)return null;var e=this.createProject(t),r=e.unit(u.basename(t));return r.highLevel()},e.prototype.calculateLeafNodes=function(t,e){var r=this;if(t){var s=t.directChildren()?t.directChildren():null;if(t.isElement()){if(!s)return void e.push(t);if(!m.find(s,function(t){return t.isElement()}))return void e.push(t)}s&&s.forEach(function(t){return r.calculateLeafNodes(t,e)})}},e.prototype.findMasterAbsolutePath=function(){try{var t=this.overlayASTRoot.attr("masterRef");if(!t)return null;var e=t.value();if(!e)return null;var r=this.getOverlayUnit().absolutePath(),s=u.resolve(u.dirname(r),e);return s}catch(a){return console.error(a.message),null}},e.prototype.createProject=function(t){return c.project.createProject(u.dirname(t))},e.prototype.getOverlayUnit=function(){return this.overlayASTRoot.lowLevel().unit()},e.prototype.updateOverlayUnit=function(t,e){t.highLevel();this.mergeTrees(e,this.overlayASTRoot)},e.prototype.createMovedNode=function(t){return this.createStub(t)},e}(C);e.ModifyOverlayDialog=P;var I=function(t){function e(e,r){t.call(this,e,r),this.sourceType=e}return l(e,t),e.prototype.getTargetType=function(){return null},e.prototype.checkNode=function(t){return{visitChildren:!0,display:!0,canBeMoved:!0}},e.prototype.validate=function(){return 0==this.movedNodes.length?"Add elements to move":null},e.prototype.createHeader=function(t){},e.prototype.performOk=function(t,e){var r=this.sourceType.lowLevel().unit(),s=this.getTargetType();if(s){var a=s.lowLevel().unit();this.mergeTrees(e,s),this.movedNodes.forEach(function(t){t.parent().remove(t)}),this.postMerge(),this.saveUnit(r),a&&this.saveUnit(a)}},e.prototype.postMerge=function(){},e}(C);e.AbstractMoveTypePropertiesDialog=I,e.findUserDefinedSupertypes=i;var L=function(t){function e(e,r){t.call(this,e,r),this.superTypeNames=[],this.superTypeNames=this.findSuperTypeNames()}return l(e,t),e.prototype.createHeader=function(t){var e=this;t.addChild(d.label("Select supertype:").pad(5,0));var r=new d.Select("",function(t){e.selectedSuperType=r.getValue()});r.setOptions(this.superTypeNames),r.setValue(this.superTypeNames[0]),this.selectedSuperType=this.superTypeNames[0],t.addChild(r)},e.prototype.show=function(){0!=this.superTypeNames.length&&t.prototype.show.call(this)},e.prototype.getTargetType=function(){var t=this,e=m.find(this.superTypes,function(e){return e.nameId()==t.selectedSuperType});return e?e.getAdapter(w.RAMLService).getDeclaringNode():null},e.prototype.findSuperTypeNames=function(){var t=[];return this.superTypes=i(this.sourceType),this.superTypes.forEach(function(e){t.push(e.nameId())}),t},e}(I);e.PullUpDialog=L;var N=function(t){function e(e,r){t.call(this,e,r)}return l(e,t),e.prototype.createHeader=function(t){var e=this;t.addChild(d.label("Supertype name:").pad(5,0)),this.superTypeName=d.texfField("",this.generateDefaultSupertypeName(),function(t){e.performValidation()}),t.addChild(this.superTypeName)},e.prototype.getTargetType=function(){var t=this.sourceType.root(),e=(t.definition().universe(),t.root().definition().property(y.Universe10.LibraryBase.properties.types.name),c.parser.modify.createObjectTypeDeclaration(this.superTypeName.getBinding().get())),r=e.highLevel();return this.typeWrapper=e,this.astRoot=t,r},e.prototype.validate=function(){var e=t.prototype.validate.call(this);return e?e:this.superTypeName.getBinding().get()&&0!=this.superTypeName.getBinding().get().trim().length?null:"Enter supertype name"},e.prototype.postMerge=function(){this.astRoot.toWrapper().addToProp(this.typeWrapper,"types"),this.sourceType.attrOrCreate("type").setValue(this.typeWrapper.highLevel().name())},e.prototype.generateDefaultSupertypeName=function(){return this.sourceType.name()+"SuperType"},e}(I);e.ExtractSupertypeDialog=N},function(t,e,r){function s(t,e){var r=new a,s=JSON.parse(t),i=r.generateSchema(s),o=JSON.stringify(i,null,2);return o}var a=function(){function t(){}return t.prototype.generateSchema=function(t){var e={};return e.required=!0,e.$schema="http://json-schema.org/draft-03/schema",this.pass(t,e),e},t.prototype.pass=function(t,e){var r=this.detectType(t);e.type=r,t&&null!=t&&(Array.isArray(t)?this.passArray(t,e):t instanceof Object&&this.passObject(t,e))},t.prototype.passObject=function(t,e){var r=this;Object.keys(t).forEach(function(s){return r.registerProperty(s,t[s],e)})},t.prototype.registerProperty=function(t,e,r){var s=r.properties;s||(s={},r.properties=s);var a=s[t];a||(a={},s[t]=a),a.required=!1,this.pass(e,a)},t.prototype.passArray=function(t,e){var r=this,s=e.items;s||(s=[],e.items=s);var a=(t.length,[]);t.forEach(function(t){var e={};r.pass(t,e),a.push(e)}),s.push(a[0])},t.prototype.detectType=function(t){return Array.isArray(t)?"array":typeof t},t}();e.JsonSchemaGenerator=a,e.generateSchema=s},function(t,e,r){t.exports=require("raml-1-parser/dist/index")},function(t,e,r){t.exports=require("emissary")},function(t,e,r){t.exports=require("react")},function(t,e,r){t.exports=require("xtend")},function(t,e,r){t.exports=require("popsicle")},function(t,e,r){t.exports=[{id:31423945,name:"AmazonS3",full_name:"raml-apis/AmazonS3",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/AmazonS3",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/AmazonS3",forks_url:"https://api.github.com/repos/raml-apis/AmazonS3/forks",keys_url:"https://api.github.com/repos/raml-apis/AmazonS3/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/AmazonS3/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/AmazonS3/teams",hooks_url:"https://api.github.com/repos/raml-apis/AmazonS3/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/AmazonS3/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/AmazonS3/events",assignees_url:"https://api.github.com/repos/raml-apis/AmazonS3/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/AmazonS3/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/AmazonS3/tags",blobs_url:"https://api.github.com/repos/raml-apis/AmazonS3/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/AmazonS3/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/AmazonS3/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/AmazonS3/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/AmazonS3/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/AmazonS3/languages",stargazers_url:"https://api.github.com/repos/raml-apis/AmazonS3/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/AmazonS3/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/AmazonS3/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/AmazonS3/subscription",commits_url:"https://api.github.com/repos/raml-apis/AmazonS3/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/AmazonS3/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/AmazonS3/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/AmazonS3/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/AmazonS3/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/AmazonS3/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/AmazonS3/merges",archive_url:"https://api.github.com/repos/raml-apis/AmazonS3/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/AmazonS3/downloads",issues_url:"https://api.github.com/repos/raml-apis/AmazonS3/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/AmazonS3/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/AmazonS3/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/AmazonS3/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/AmazonS3/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/AmazonS3/releases{/id}",created_at:"2015-02-27T14:51:35Z",updated_at:"2015-02-27T14:51:35Z",pushed_at:"2015-04-01T22:11:01Z",git_url:"git://github.com/raml-apis/AmazonS3.git",ssh_url:"[email protected]:raml-apis/AmazonS3.git",clone_url:"https://github.com/raml-apis/AmazonS3.git",svn_url:"https://github.com/raml-apis/AmazonS3",homepage:null,size:264,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423955,name:"Box",full_name:"raml-apis/Box",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Box",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Box",forks_url:"https://api.github.com/repos/raml-apis/Box/forks",keys_url:"https://api.github.com/repos/raml-apis/Box/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Box/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Box/teams",hooks_url:"https://api.github.com/repos/raml-apis/Box/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Box/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Box/events",assignees_url:"https://api.github.com/repos/raml-apis/Box/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Box/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Box/tags",blobs_url:"https://api.github.com/repos/raml-apis/Box/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Box/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Box/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Box/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Box/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Box/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Box/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Box/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Box/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Box/subscription",commits_url:"https://api.github.com/repos/raml-apis/Box/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Box/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Box/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Box/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Box/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Box/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Box/merges",archive_url:"https://api.github.com/repos/raml-apis/Box/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Box/downloads",issues_url:"https://api.github.com/repos/raml-apis/Box/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Box/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Box/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Box/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Box/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Box/releases{/id}",created_at:"2015-02-27T14:51:41Z",updated_at:"2015-02-27T14:51:41Z",pushed_at:"2015-07-28T23:37:53Z",git_url:"git://github.com/raml-apis/Box.git",ssh_url:"[email protected]:raml-apis/Box.git",clone_url:"https://github.com/raml-apis/Box.git",svn_url:"https://github.com/raml-apis/Box",homepage:null,size:224,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423957,name:"Bufferapp",full_name:"raml-apis/Bufferapp",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Bufferapp",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Bufferapp",forks_url:"https://api.github.com/repos/raml-apis/Bufferapp/forks",keys_url:"https://api.github.com/repos/raml-apis/Bufferapp/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Bufferapp/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Bufferapp/teams",hooks_url:"https://api.github.com/repos/raml-apis/Bufferapp/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Bufferapp/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Bufferapp/events",assignees_url:"https://api.github.com/repos/raml-apis/Bufferapp/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Bufferapp/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Bufferapp/tags",blobs_url:"https://api.github.com/repos/raml-apis/Bufferapp/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Bufferapp/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Bufferapp/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Bufferapp/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Bufferapp/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Bufferapp/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Bufferapp/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Bufferapp/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Bufferapp/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Bufferapp/subscription",commits_url:"https://api.github.com/repos/raml-apis/Bufferapp/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Bufferapp/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Bufferapp/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Bufferapp/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Bufferapp/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Bufferapp/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Bufferapp/merges",archive_url:"https://api.github.com/repos/raml-apis/Bufferapp/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Bufferapp/downloads",issues_url:"https://api.github.com/repos/raml-apis/Bufferapp/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Bufferapp/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Bufferapp/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Bufferapp/notifications{?since,all,participating}",
labels_url:"https://api.github.com/repos/raml-apis/Bufferapp/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Bufferapp/releases{/id}",created_at:"2015-02-27T14:51:42Z",updated_at:"2015-02-27T15:08:44Z",pushed_at:"2015-04-01T22:11:27Z",git_url:"git://github.com/raml-apis/Bufferapp.git",ssh_url:"[email protected]:raml-apis/Bufferapp.git",clone_url:"https://github.com/raml-apis/Bufferapp.git",svn_url:"https://github.com/raml-apis/Bufferapp",homepage:null,size:172,stargazers_count:0,watchers_count:0,language:"Java",has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423973,name:"FuelEconomy",full_name:"raml-apis/FuelEconomy",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/FuelEconomy",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/FuelEconomy",forks_url:"https://api.github.com/repos/raml-apis/FuelEconomy/forks",keys_url:"https://api.github.com/repos/raml-apis/FuelEconomy/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/FuelEconomy/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/FuelEconomy/teams",hooks_url:"https://api.github.com/repos/raml-apis/FuelEconomy/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/FuelEconomy/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/FuelEconomy/events",assignees_url:"https://api.github.com/repos/raml-apis/FuelEconomy/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/FuelEconomy/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/FuelEconomy/tags",blobs_url:"https://api.github.com/repos/raml-apis/FuelEconomy/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/FuelEconomy/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/FuelEconomy/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/FuelEconomy/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/FuelEconomy/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/FuelEconomy/languages",stargazers_url:"https://api.github.com/repos/raml-apis/FuelEconomy/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/FuelEconomy/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/FuelEconomy/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/FuelEconomy/subscription",commits_url:"https://api.github.com/repos/raml-apis/FuelEconomy/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/FuelEconomy/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/FuelEconomy/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/FuelEconomy/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/FuelEconomy/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/FuelEconomy/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/FuelEconomy/merges",archive_url:"https://api.github.com/repos/raml-apis/FuelEconomy/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/FuelEconomy/downloads",issues_url:"https://api.github.com/repos/raml-apis/FuelEconomy/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/FuelEconomy/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/FuelEconomy/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/FuelEconomy/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/FuelEconomy/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/FuelEconomy/releases{/id}",created_at:"2015-02-27T14:51:49Z",updated_at:"2015-02-27T14:51:49Z",pushed_at:"2015-04-04T00:32:59Z",git_url:"git://github.com/raml-apis/FuelEconomy.git",ssh_url:"[email protected]:raml-apis/FuelEconomy.git",clone_url:"https://github.com/raml-apis/FuelEconomy.git",svn_url:"https://github.com/raml-apis/FuelEconomy",homepage:null,size:172,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423980,name:"GoogleContacts",full_name:"raml-apis/GoogleContacts",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/GoogleContacts",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/GoogleContacts",forks_url:"https://api.github.com/repos/raml-apis/GoogleContacts/forks",keys_url:"https://api.github.com/repos/raml-apis/GoogleContacts/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/GoogleContacts/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/GoogleContacts/teams",hooks_url:"https://api.github.com/repos/raml-apis/GoogleContacts/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/GoogleContacts/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/GoogleContacts/events",assignees_url:"https://api.github.com/repos/raml-apis/GoogleContacts/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/GoogleContacts/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/GoogleContacts/tags",blobs_url:"https://api.github.com/repos/raml-apis/GoogleContacts/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/GoogleContacts/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/GoogleContacts/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/GoogleContacts/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/GoogleContacts/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/GoogleContacts/languages",stargazers_url:"https://api.github.com/repos/raml-apis/GoogleContacts/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/GoogleContacts/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/GoogleContacts/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/GoogleContacts/subscription",commits_url:"https://api.github.com/repos/raml-apis/GoogleContacts/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/GoogleContacts/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/GoogleContacts/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/GoogleContacts/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/GoogleContacts/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/GoogleContacts/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/GoogleContacts/merges",archive_url:"https://api.github.com/repos/raml-apis/GoogleContacts/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/GoogleContacts/downloads",issues_url:"https://api.github.com/repos/raml-apis/GoogleContacts/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/GoogleContacts/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/GoogleContacts/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/GoogleContacts/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/GoogleContacts/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/GoogleContacts/releases{/id}",created_at:"2015-02-27T14:51:52Z",updated_at:"2015-10-31T15:35:32Z",pushed_at:"2015-05-21T12:01:57Z",git_url:"git://github.com/raml-apis/GoogleContacts.git",ssh_url:"[email protected]:raml-apis/GoogleContacts.git",clone_url:"https://github.com/raml-apis/GoogleContacts.git",svn_url:"https://github.com/raml-apis/GoogleContacts",homepage:null,size:260,stargazers_count:1,watchers_count:1,language:"Java",has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:1,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423986,name:"Instagram",full_name:"raml-apis/Instagram",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Instagram",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Instagram",forks_url:"https://api.github.com/repos/raml-apis/Instagram/forks",keys_url:"https://api.github.com/repos/raml-apis/Instagram/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Instagram/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Instagram/teams",hooks_url:"https://api.github.com/repos/raml-apis/Instagram/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Instagram/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Instagram/events",assignees_url:"https://api.github.com/repos/raml-apis/Instagram/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Instagram/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Instagram/tags",blobs_url:"https://api.github.com/repos/raml-apis/Instagram/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Instagram/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Instagram/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Instagram/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Instagram/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Instagram/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Instagram/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Instagram/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Instagram/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Instagram/subscription",commits_url:"https://api.github.com/repos/raml-apis/Instagram/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Instagram/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Instagram/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Instagram/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Instagram/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Instagram/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Instagram/merges",archive_url:"https://api.github.com/repos/raml-apis/Instagram/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Instagram/downloads",issues_url:"https://api.github.com/repos/raml-apis/Instagram/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Instagram/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Instagram/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Instagram/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Instagram/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Instagram/releases{/id}",created_at:"2015-02-27T14:51:56Z",updated_at:"2015-09-08T12:55:09Z",pushed_at:"2015-10-14T07:16:39Z",git_url:"git://github.com/raml-apis/Instagram.git",ssh_url:"[email protected]:raml-apis/Instagram.git",clone_url:"https://github.com/raml-apis/Instagram.git",svn_url:"https://github.com/raml-apis/Instagram",homepage:null,size:187,stargazers_count:1,watchers_count:1,language:"Java",has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:1,mirror_url:null,open_issues_count:0,forks:1,open_issues:0,watchers:1,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423979,name:"GoogleCalendar",full_name:"raml-apis/GoogleCalendar",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/GoogleCalendar",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/GoogleCalendar",forks_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/forks",keys_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/teams",hooks_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/events",assignees_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/tags",blobs_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/languages",stargazers_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/subscription",commits_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/merges",archive_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/downloads",issues_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/GoogleCalendar/releases{/id}",created_at:"2015-02-27T14:51:51Z",updated_at:"2015-02-27T15:09:48Z",pushed_at:"2015-05-21T02:57:16Z",git_url:"git://github.com/raml-apis/GoogleCalendar.git",ssh_url:"[email protected]:raml-apis/GoogleCalendar.git",clone_url:"https://github.com/raml-apis/GoogleCalendar.git",svn_url:"https://github.com/raml-apis/GoogleCalendar",homepage:null,size:252,stargazers_count:0,watchers_count:0,language:"Java",has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423964,name:"Facebook",full_name:"raml-apis/Facebook",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Facebook",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Facebook",forks_url:"https://api.github.com/repos/raml-apis/Facebook/forks",keys_url:"https://api.github.com/repos/raml-apis/Facebook/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Facebook/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Facebook/teams",hooks_url:"https://api.github.com/repos/raml-apis/Facebook/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Facebook/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Facebook/events",assignees_url:"https://api.github.com/repos/raml-apis/Facebook/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Facebook/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Facebook/tags",blobs_url:"https://api.github.com/repos/raml-apis/Facebook/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Facebook/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Facebook/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Facebook/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Facebook/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Facebook/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Facebook/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Facebook/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Facebook/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Facebook/subscription",commits_url:"https://api.github.com/repos/raml-apis/Facebook/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Facebook/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Facebook/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Facebook/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Facebook/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Facebook/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Facebook/merges",archive_url:"https://api.github.com/repos/raml-apis/Facebook/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Facebook/downloads",issues_url:"https://api.github.com/repos/raml-apis/Facebook/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Facebook/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Facebook/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Facebook/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Facebook/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Facebook/releases{/id}",created_at:"2015-02-27T14:51:45Z",updated_at:"2015-10-21T23:11:31Z",pushed_at:"2015-07-06T13:46:05Z",git_url:"git://github.com/raml-apis/Facebook.git",ssh_url:"[email protected]:raml-apis/Facebook.git",clone_url:"https://github.com/raml-apis/Facebook.git",svn_url:"https://github.com/raml-apis/Facebook",homepage:null,size:272,stargazers_count:1,watchers_count:1,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:1,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424019,name:"Stormpath",full_name:"raml-apis/Stormpath",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Stormpath",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Stormpath",forks_url:"https://api.github.com/repos/raml-apis/Stormpath/forks",keys_url:"https://api.github.com/repos/raml-apis/Stormpath/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Stormpath/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Stormpath/teams",hooks_url:"https://api.github.com/repos/raml-apis/Stormpath/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Stormpath/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Stormpath/events",assignees_url:"https://api.github.com/repos/raml-apis/Stormpath/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Stormpath/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Stormpath/tags",blobs_url:"https://api.github.com/repos/raml-apis/Stormpath/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Stormpath/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Stormpath/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Stormpath/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Stormpath/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Stormpath/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Stormpath/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Stormpath/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Stormpath/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Stormpath/subscription",commits_url:"https://api.github.com/repos/raml-apis/Stormpath/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Stormpath/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Stormpath/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Stormpath/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Stormpath/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Stormpath/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Stormpath/merges",archive_url:"https://api.github.com/repos/raml-apis/Stormpath/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Stormpath/downloads",issues_url:"https://api.github.com/repos/raml-apis/Stormpath/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Stormpath/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Stormpath/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Stormpath/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Stormpath/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Stormpath/releases{/id}",created_at:"2015-02-27T14:52:14Z",updated_at:"2015-02-27T14:52:14Z",pushed_at:"2015-04-01T22:14:33Z",git_url:"git://github.com/raml-apis/Stormpath.git",ssh_url:"[email protected]:raml-apis/Stormpath.git",clone_url:"https://github.com/raml-apis/Stormpath.git",svn_url:"https://github.com/raml-apis/Stormpath",homepage:null,size:188,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424034,name:"XKCD",full_name:"raml-apis/XKCD",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/XKCD",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/XKCD",forks_url:"https://api.github.com/repos/raml-apis/XKCD/forks",keys_url:"https://api.github.com/repos/raml-apis/XKCD/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/XKCD/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/XKCD/teams",hooks_url:"https://api.github.com/repos/raml-apis/XKCD/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/XKCD/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/XKCD/events",assignees_url:"https://api.github.com/repos/raml-apis/XKCD/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/XKCD/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/XKCD/tags",blobs_url:"https://api.github.com/repos/raml-apis/XKCD/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/XKCD/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/XKCD/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/XKCD/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/XKCD/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/XKCD/languages",stargazers_url:"https://api.github.com/repos/raml-apis/XKCD/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/XKCD/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/XKCD/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/XKCD/subscription",commits_url:"https://api.github.com/repos/raml-apis/XKCD/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/XKCD/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/XKCD/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/XKCD/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/XKCD/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/XKCD/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/XKCD/merges",archive_url:"https://api.github.com/repos/raml-apis/XKCD/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/XKCD/downloads",issues_url:"https://api.github.com/repos/raml-apis/XKCD/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/XKCD/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/XKCD/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/XKCD/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/XKCD/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/XKCD/releases{/id}",created_at:"2015-02-27T14:52:21Z",updated_at:"2015-03-09T16:53:13Z",pushed_at:"2015-08-07T05:17:33Z",git_url:"git://github.com/raml-apis/XKCD.git",ssh_url:"[email protected]:raml-apis/XKCD.git",clone_url:"https://github.com/raml-apis/XKCD.git",svn_url:"https://github.com/raml-apis/XKCD",homepage:null,size:148,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",
permissions:{admin:!1,push:!1,pull:!0}},{id:31424012,name:"SlideShare",full_name:"raml-apis/SlideShare",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/SlideShare",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/SlideShare",forks_url:"https://api.github.com/repos/raml-apis/SlideShare/forks",keys_url:"https://api.github.com/repos/raml-apis/SlideShare/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/SlideShare/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/SlideShare/teams",hooks_url:"https://api.github.com/repos/raml-apis/SlideShare/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/SlideShare/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/SlideShare/events",assignees_url:"https://api.github.com/repos/raml-apis/SlideShare/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/SlideShare/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/SlideShare/tags",blobs_url:"https://api.github.com/repos/raml-apis/SlideShare/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/SlideShare/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/SlideShare/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/SlideShare/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/SlideShare/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/SlideShare/languages",stargazers_url:"https://api.github.com/repos/raml-apis/SlideShare/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/SlideShare/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/SlideShare/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/SlideShare/subscription",commits_url:"https://api.github.com/repos/raml-apis/SlideShare/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/SlideShare/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/SlideShare/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/SlideShare/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/SlideShare/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/SlideShare/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/SlideShare/merges",archive_url:"https://api.github.com/repos/raml-apis/SlideShare/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/SlideShare/downloads",issues_url:"https://api.github.com/repos/raml-apis/SlideShare/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/SlideShare/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/SlideShare/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/SlideShare/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/SlideShare/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/SlideShare/releases{/id}",created_at:"2015-02-27T14:52:11Z",updated_at:"2015-02-27T14:52:11Z",pushed_at:"2015-04-01T22:14:13Z",git_url:"git://github.com/raml-apis/SlideShare.git",ssh_url:"[email protected]:raml-apis/SlideShare.git",clone_url:"https://github.com/raml-apis/SlideShare.git",svn_url:"https://github.com/raml-apis/SlideShare",homepage:null,size:180,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424024,name:"Twilio",full_name:"raml-apis/Twilio",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Twilio",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Twilio",forks_url:"https://api.github.com/repos/raml-apis/Twilio/forks",keys_url:"https://api.github.com/repos/raml-apis/Twilio/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Twilio/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Twilio/teams",hooks_url:"https://api.github.com/repos/raml-apis/Twilio/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Twilio/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Twilio/events",assignees_url:"https://api.github.com/repos/raml-apis/Twilio/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Twilio/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Twilio/tags",blobs_url:"https://api.github.com/repos/raml-apis/Twilio/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Twilio/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Twilio/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Twilio/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Twilio/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Twilio/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Twilio/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Twilio/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Twilio/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Twilio/subscription",commits_url:"https://api.github.com/repos/raml-apis/Twilio/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Twilio/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Twilio/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Twilio/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Twilio/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Twilio/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Twilio/merges",archive_url:"https://api.github.com/repos/raml-apis/Twilio/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Twilio/downloads",issues_url:"https://api.github.com/repos/raml-apis/Twilio/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Twilio/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Twilio/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Twilio/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Twilio/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Twilio/releases{/id}",created_at:"2015-02-27T14:52:16Z",updated_at:"2015-03-09T16:42:14Z",pushed_at:"2015-08-21T10:07:35Z",git_url:"git://github.com/raml-apis/Twilio.git",ssh_url:"[email protected]:raml-apis/Twilio.git",clone_url:"https://github.com/raml-apis/Twilio.git",svn_url:"https://github.com/raml-apis/Twilio",homepage:null,size:340,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424029,name:"WeatherUnderground",full_name:"raml-apis/WeatherUnderground",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/WeatherUnderground",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/WeatherUnderground",forks_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/forks",keys_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/teams",hooks_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/events",assignees_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/tags",blobs_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/languages",stargazers_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/subscription",commits_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/merges",archive_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/downloads",issues_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/WeatherUnderground/releases{/id}",created_at:"2015-02-27T14:52:19Z",updated_at:"2015-10-31T15:36:51Z",pushed_at:"2015-07-30T15:19:32Z",git_url:"git://github.com/raml-apis/WeatherUnderground.git",ssh_url:"[email protected]:raml-apis/WeatherUnderground.git",clone_url:"https://github.com/raml-apis/WeatherUnderground.git",svn_url:"https://github.com/raml-apis/WeatherUnderground",homepage:null,size:248,stargazers_count:1,watchers_count:1,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:1,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424039,name:"Zuora",full_name:"raml-apis/Zuora",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Zuora",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Zuora",forks_url:"https://api.github.com/repos/raml-apis/Zuora/forks",keys_url:"https://api.github.com/repos/raml-apis/Zuora/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Zuora/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Zuora/teams",hooks_url:"https://api.github.com/repos/raml-apis/Zuora/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Zuora/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Zuora/events",assignees_url:"https://api.github.com/repos/raml-apis/Zuora/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Zuora/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Zuora/tags",blobs_url:"https://api.github.com/repos/raml-apis/Zuora/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Zuora/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Zuora/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Zuora/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Zuora/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Zuora/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Zuora/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Zuora/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Zuora/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Zuora/subscription",commits_url:"https://api.github.com/repos/raml-apis/Zuora/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Zuora/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Zuora/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Zuora/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Zuora/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Zuora/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Zuora/merges",archive_url:"https://api.github.com/repos/raml-apis/Zuora/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Zuora/downloads",issues_url:"https://api.github.com/repos/raml-apis/Zuora/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Zuora/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Zuora/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Zuora/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Zuora/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Zuora/releases{/id}",created_at:"2015-02-27T14:52:24Z",updated_at:"2015-03-09T16:43:10Z",pushed_at:"2015-04-01T22:15:34Z",git_url:"git://github.com/raml-apis/Zuora.git",ssh_url:"[email protected]:raml-apis/Zuora.git",clone_url:"https://github.com/raml-apis/Zuora.git",svn_url:"https://github.com/raml-apis/Zuora",homepage:null,size:184,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423938,name:"AccuWeather",full_name:"raml-apis/AccuWeather",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/AccuWeather",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/AccuWeather",forks_url:"https://api.github.com/repos/raml-apis/AccuWeather/forks",keys_url:"https://api.github.com/repos/raml-apis/AccuWeather/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/AccuWeather/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/AccuWeather/teams",hooks_url:"https://api.github.com/repos/raml-apis/AccuWeather/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/AccuWeather/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/AccuWeather/events",assignees_url:"https://api.github.com/repos/raml-apis/AccuWeather/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/AccuWeather/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/AccuWeather/tags",blobs_url:"https://api.github.com/repos/raml-apis/AccuWeather/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/AccuWeather/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/AccuWeather/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/AccuWeather/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/AccuWeather/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/AccuWeather/languages",stargazers_url:"https://api.github.com/repos/raml-apis/AccuWeather/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/AccuWeather/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/AccuWeather/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/AccuWeather/subscription",commits_url:"https://api.github.com/repos/raml-apis/AccuWeather/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/AccuWeather/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/AccuWeather/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/AccuWeather/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/AccuWeather/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/AccuWeather/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/AccuWeather/merges",archive_url:"https://api.github.com/repos/raml-apis/AccuWeather/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/AccuWeather/downloads",issues_url:"https://api.github.com/repos/raml-apis/AccuWeather/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/AccuWeather/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/AccuWeather/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/AccuWeather/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/AccuWeather/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/AccuWeather/releases{/id}",created_at:"2015-02-27T14:51:24Z",updated_at:"2015-03-09T16:51:18Z",pushed_at:"2015-11-06T07:20:20Z",git_url:"git://github.com/raml-apis/AccuWeather.git",ssh_url:"[email protected]:raml-apis/AccuWeather.git",clone_url:"https://github.com/raml-apis/AccuWeather.git",svn_url:"https://github.com/raml-apis/AccuWeather",homepage:null,size:278,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:1,mirror_url:null,open_issues_count:0,forks:1,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424026,name:"Twitch",full_name:"raml-apis/Twitch",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Twitch",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Twitch",forks_url:"https://api.github.com/repos/raml-apis/Twitch/forks",keys_url:"https://api.github.com/repos/raml-apis/Twitch/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Twitch/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Twitch/teams",hooks_url:"https://api.github.com/repos/raml-apis/Twitch/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Twitch/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Twitch/events",assignees_url:"https://api.github.com/repos/raml-apis/Twitch/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Twitch/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Twitch/tags",blobs_url:"https://api.github.com/repos/raml-apis/Twitch/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Twitch/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Twitch/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Twitch/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Twitch/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Twitch/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Twitch/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Twitch/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Twitch/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Twitch/subscription",commits_url:"https://api.github.com/repos/raml-apis/Twitch/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Twitch/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Twitch/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Twitch/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Twitch/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Twitch/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Twitch/merges",archive_url:"https://api.github.com/repos/raml-apis/Twitch/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Twitch/downloads",issues_url:"https://api.github.com/repos/raml-apis/Twitch/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Twitch/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Twitch/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Twitch/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Twitch/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Twitch/releases{/id}",created_at:"2015-02-27T14:52:17Z",updated_at:"2015-02-27T14:52:17Z",pushed_at:"2015-04-01T22:14:49Z",git_url:"git://github.com/raml-apis/Twitch.git",ssh_url:"[email protected]:raml-apis/Twitch.git",clone_url:"https://github.com/raml-apis/Twitch.git",svn_url:"https://github.com/raml-apis/Twitch",homepage:null,size:180,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423975,name:"Geonames",full_name:"raml-apis/Geonames",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Geonames",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Geonames",forks_url:"https://api.github.com/repos/raml-apis/Geonames/forks",keys_url:"https://api.github.com/repos/raml-apis/Geonames/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Geonames/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Geonames/teams",hooks_url:"https://api.github.com/repos/raml-apis/Geonames/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Geonames/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Geonames/events",assignees_url:"https://api.github.com/repos/raml-apis/Geonames/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Geonames/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Geonames/tags",blobs_url:"https://api.github.com/repos/raml-apis/Geonames/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Geonames/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Geonames/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Geonames/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Geonames/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Geonames/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Geonames/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Geonames/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Geonames/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Geonames/subscription",commits_url:"https://api.github.com/repos/raml-apis/Geonames/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Geonames/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Geonames/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Geonames/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Geonames/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Geonames/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Geonames/merges",archive_url:"https://api.github.com/repos/raml-apis/Geonames/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Geonames/downloads",issues_url:"https://api.github.com/repos/raml-apis/Geonames/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Geonames/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Geonames/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Geonames/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Geonames/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Geonames/releases{/id}",created_at:"2015-02-27T14:51:49Z",updated_at:"2015-03-16T03:36:21Z",pushed_at:"2015-07-24T13:32:52Z",git_url:"git://github.com/raml-apis/Geonames.git",ssh_url:"[email protected]:raml-apis/Geonames.git",clone_url:"https://github.com/raml-apis/Geonames.git",svn_url:"https://github.com/raml-apis/Geonames",homepage:null,size:248,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:1,forks:0,open_issues:1,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:34848402,name:"Uber",full_name:"raml-apis/Uber",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",
type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Uber",description:"",fork:!1,url:"https://api.github.com/repos/raml-apis/Uber",forks_url:"https://api.github.com/repos/raml-apis/Uber/forks",keys_url:"https://api.github.com/repos/raml-apis/Uber/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Uber/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Uber/teams",hooks_url:"https://api.github.com/repos/raml-apis/Uber/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Uber/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Uber/events",assignees_url:"https://api.github.com/repos/raml-apis/Uber/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Uber/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Uber/tags",blobs_url:"https://api.github.com/repos/raml-apis/Uber/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Uber/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Uber/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Uber/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Uber/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Uber/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Uber/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Uber/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Uber/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Uber/subscription",commits_url:"https://api.github.com/repos/raml-apis/Uber/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Uber/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Uber/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Uber/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Uber/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Uber/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Uber/merges",archive_url:"https://api.github.com/repos/raml-apis/Uber/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Uber/downloads",issues_url:"https://api.github.com/repos/raml-apis/Uber/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Uber/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Uber/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Uber/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Uber/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Uber/releases{/id}",created_at:"2015-04-30T10:18:59Z",updated_at:"2015-04-30T10:18:59Z",pushed_at:"2015-10-15T05:35:23Z",git_url:"git://github.com/raml-apis/Uber.git",ssh_url:"[email protected]:raml-apis/Uber.git",clone_url:"https://github.com/raml-apis/Uber.git",svn_url:"https://github.com/raml-apis/Uber",homepage:null,size:193,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:3,mirror_url:null,open_issues_count:0,forks:3,open_issues:0,watchers:0,default_branch:"staging",permissions:{admin:!1,push:!1,pull:!0}},{id:31423987,name:"Jira",full_name:"raml-apis/Jira",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Jira",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Jira",forks_url:"https://api.github.com/repos/raml-apis/Jira/forks",keys_url:"https://api.github.com/repos/raml-apis/Jira/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Jira/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Jira/teams",hooks_url:"https://api.github.com/repos/raml-apis/Jira/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Jira/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Jira/events",assignees_url:"https://api.github.com/repos/raml-apis/Jira/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Jira/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Jira/tags",blobs_url:"https://api.github.com/repos/raml-apis/Jira/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Jira/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Jira/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Jira/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Jira/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Jira/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Jira/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Jira/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Jira/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Jira/subscription",commits_url:"https://api.github.com/repos/raml-apis/Jira/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Jira/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Jira/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Jira/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Jira/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Jira/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Jira/merges",archive_url:"https://api.github.com/repos/raml-apis/Jira/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Jira/downloads",issues_url:"https://api.github.com/repos/raml-apis/Jira/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Jira/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Jira/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Jira/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Jira/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Jira/releases{/id}",created_at:"2015-02-27T14:51:57Z",updated_at:"2015-09-30T16:37:10Z",pushed_at:"2015-04-01T22:12:56Z",git_url:"git://github.com/raml-apis/Jira.git",ssh_url:"[email protected]:raml-apis/Jira.git",clone_url:"https://github.com/raml-apis/Jira.git",svn_url:"https://github.com/raml-apis/Jira",homepage:null,size:240,stargazers_count:1,watchers_count:1,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:1,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424011,name:"Slack",full_name:"raml-apis/Slack",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Slack",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Slack",forks_url:"https://api.github.com/repos/raml-apis/Slack/forks",keys_url:"https://api.github.com/repos/raml-apis/Slack/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Slack/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Slack/teams",hooks_url:"https://api.github.com/repos/raml-apis/Slack/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Slack/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Slack/events",assignees_url:"https://api.github.com/repos/raml-apis/Slack/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Slack/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Slack/tags",blobs_url:"https://api.github.com/repos/raml-apis/Slack/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Slack/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Slack/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Slack/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Slack/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Slack/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Slack/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Slack/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Slack/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Slack/subscription",commits_url:"https://api.github.com/repos/raml-apis/Slack/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Slack/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Slack/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Slack/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Slack/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Slack/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Slack/merges",archive_url:"https://api.github.com/repos/raml-apis/Slack/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Slack/downloads",issues_url:"https://api.github.com/repos/raml-apis/Slack/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Slack/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Slack/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Slack/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Slack/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Slack/releases{/id}",created_at:"2015-02-27T14:52:10Z",updated_at:"2015-02-27T15:12:05Z",pushed_at:"2015-10-14T05:29:57Z",git_url:"git://github.com/raml-apis/Slack.git",ssh_url:"[email protected]:raml-apis/Slack.git",clone_url:"https://github.com/raml-apis/Slack.git",svn_url:"https://github.com/raml-apis/Slack",homepage:null,size:237,stargazers_count:0,watchers_count:0,language:"Java",has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:1,mirror_url:null,open_issues_count:0,forks:1,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423977,name:"GitHub",full_name:"raml-apis/GitHub",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/GitHub",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/GitHub",forks_url:"https://api.github.com/repos/raml-apis/GitHub/forks",keys_url:"https://api.github.com/repos/raml-apis/GitHub/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/GitHub/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/GitHub/teams",hooks_url:"https://api.github.com/repos/raml-apis/GitHub/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/GitHub/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/GitHub/events",assignees_url:"https://api.github.com/repos/raml-apis/GitHub/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/GitHub/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/GitHub/tags",blobs_url:"https://api.github.com/repos/raml-apis/GitHub/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/GitHub/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/GitHub/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/GitHub/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/GitHub/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/GitHub/languages",stargazers_url:"https://api.github.com/repos/raml-apis/GitHub/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/GitHub/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/GitHub/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/GitHub/subscription",commits_url:"https://api.github.com/repos/raml-apis/GitHub/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/GitHub/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/GitHub/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/GitHub/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/GitHub/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/GitHub/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/GitHub/merges",archive_url:"https://api.github.com/repos/raml-apis/GitHub/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/GitHub/downloads",issues_url:"https://api.github.com/repos/raml-apis/GitHub/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/GitHub/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/GitHub/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/GitHub/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/GitHub/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/GitHub/releases{/id}",created_at:"2015-02-27T14:51:50Z",updated_at:"2015-11-04T16:18:02Z",pushed_at:"2015-10-16T09:54:09Z",git_url:"git://github.com/raml-apis/GitHub.git",ssh_url:"[email protected]:raml-apis/GitHub.git",clone_url:"https://github.com/raml-apis/GitHub.git",svn_url:"https://github.com/raml-apis/GitHub",homepage:null,size:366,stargazers_count:1,watchers_count:1,language:"Java",has_issues:!0,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:2,forks:0,open_issues:2,watchers:1,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423990,name:"LinkedIn",full_name:"raml-apis/LinkedIn",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/LinkedIn",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/LinkedIn",forks_url:"https://api.github.com/repos/raml-apis/LinkedIn/forks",keys_url:"https://api.github.com/repos/raml-apis/LinkedIn/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/LinkedIn/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/LinkedIn/teams",hooks_url:"https://api.github.com/repos/raml-apis/LinkedIn/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/LinkedIn/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/LinkedIn/events",assignees_url:"https://api.github.com/repos/raml-apis/LinkedIn/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/LinkedIn/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/LinkedIn/tags",blobs_url:"https://api.github.com/repos/raml-apis/LinkedIn/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/LinkedIn/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/LinkedIn/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/LinkedIn/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/LinkedIn/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/LinkedIn/languages",stargazers_url:"https://api.github.com/repos/raml-apis/LinkedIn/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/LinkedIn/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/LinkedIn/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/LinkedIn/subscription",commits_url:"https://api.github.com/repos/raml-apis/LinkedIn/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/LinkedIn/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/LinkedIn/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/LinkedIn/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/LinkedIn/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/LinkedIn/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/LinkedIn/merges",archive_url:"https://api.github.com/repos/raml-apis/LinkedIn/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/LinkedIn/downloads",issues_url:"https://api.github.com/repos/raml-apis/LinkedIn/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/LinkedIn/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/LinkedIn/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/LinkedIn/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/LinkedIn/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/LinkedIn/releases{/id}",created_at:"2015-02-27T14:51:59Z",updated_at:"2015-02-27T15:11:03Z",pushed_at:"2015-04-01T22:13:06Z",git_url:"git://github.com/raml-apis/LinkedIn.git",ssh_url:"[email protected]:raml-apis/LinkedIn.git",clone_url:"https://github.com/raml-apis/LinkedIn.git",svn_url:"https://github.com/raml-apis/LinkedIn",homepage:null,size:184,stargazers_count:0,watchers_count:0,language:"Java",has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424036,name:"Yammer",full_name:"raml-apis/Yammer",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Yammer",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Yammer",forks_url:"https://api.github.com/repos/raml-apis/Yammer/forks",keys_url:"https://api.github.com/repos/raml-apis/Yammer/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Yammer/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Yammer/teams",hooks_url:"https://api.github.com/repos/raml-apis/Yammer/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Yammer/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Yammer/events",assignees_url:"https://api.github.com/repos/raml-apis/Yammer/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Yammer/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Yammer/tags",blobs_url:"https://api.github.com/repos/raml-apis/Yammer/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Yammer/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Yammer/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Yammer/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Yammer/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Yammer/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Yammer/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Yammer/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Yammer/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Yammer/subscription",commits_url:"https://api.github.com/repos/raml-apis/Yammer/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Yammer/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Yammer/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Yammer/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Yammer/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Yammer/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Yammer/merges",archive_url:"https://api.github.com/repos/raml-apis/Yammer/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Yammer/downloads",issues_url:"https://api.github.com/repos/raml-apis/Yammer/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Yammer/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Yammer/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Yammer/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Yammer/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Yammer/releases{/id}",created_at:"2015-02-27T14:52:22Z",updated_at:"2015-03-09T16:52:23Z",pushed_at:"2015-04-01T22:15:18Z",git_url:"git://github.com/raml-apis/Yammer.git",ssh_url:"[email protected]:raml-apis/Yammer.git",clone_url:"https://github.com/raml-apis/Yammer.git",svn_url:"https://github.com/raml-apis/Yammer",homepage:null,size:168,stargazers_count:0,watchers_count:0,language:"Java",has_issues:!0,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423985,name:"HealthCare",full_name:"raml-apis/HealthCare",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/HealthCare",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/HealthCare",forks_url:"https://api.github.com/repos/raml-apis/HealthCare/forks",keys_url:"https://api.github.com/repos/raml-apis/HealthCare/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/HealthCare/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/HealthCare/teams",hooks_url:"https://api.github.com/repos/raml-apis/HealthCare/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/HealthCare/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/HealthCare/events",assignees_url:"https://api.github.com/repos/raml-apis/HealthCare/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/HealthCare/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/HealthCare/tags",blobs_url:"https://api.github.com/repos/raml-apis/HealthCare/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/HealthCare/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/HealthCare/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/HealthCare/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/HealthCare/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/HealthCare/languages",stargazers_url:"https://api.github.com/repos/raml-apis/HealthCare/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/HealthCare/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/HealthCare/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/HealthCare/subscription",commits_url:"https://api.github.com/repos/raml-apis/HealthCare/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/HealthCare/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/HealthCare/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/HealthCare/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/HealthCare/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/HealthCare/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/HealthCare/merges",archive_url:"https://api.github.com/repos/raml-apis/HealthCare/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/HealthCare/downloads",issues_url:"https://api.github.com/repos/raml-apis/HealthCare/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/HealthCare/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/HealthCare/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/HealthCare/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/HealthCare/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/HealthCare/releases{/id}",created_at:"2015-02-27T14:51:55Z",updated_at:"2015-02-27T14:51:55Z",pushed_at:"2015-07-30T16:44:45Z",git_url:"git://github.com/raml-apis/HealthCare.git",ssh_url:"[email protected]:raml-apis/HealthCare.git",clone_url:"https://github.com/raml-apis/HealthCare.git",svn_url:"https://github.com/raml-apis/HealthCare",homepage:null,size:200,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423954,name:"Blogger",full_name:"raml-apis/Blogger",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Blogger",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Blogger",forks_url:"https://api.github.com/repos/raml-apis/Blogger/forks",keys_url:"https://api.github.com/repos/raml-apis/Blogger/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Blogger/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Blogger/teams",hooks_url:"https://api.github.com/repos/raml-apis/Blogger/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Blogger/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Blogger/events",assignees_url:"https://api.github.com/repos/raml-apis/Blogger/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Blogger/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Blogger/tags",blobs_url:"https://api.github.com/repos/raml-apis/Blogger/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Blogger/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Blogger/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Blogger/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Blogger/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Blogger/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Blogger/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Blogger/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Blogger/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Blogger/subscription",commits_url:"https://api.github.com/repos/raml-apis/Blogger/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Blogger/git/commits{/sha}",
comments_url:"https://api.github.com/repos/raml-apis/Blogger/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Blogger/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Blogger/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Blogger/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Blogger/merges",archive_url:"https://api.github.com/repos/raml-apis/Blogger/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Blogger/downloads",issues_url:"https://api.github.com/repos/raml-apis/Blogger/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Blogger/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Blogger/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Blogger/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Blogger/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Blogger/releases{/id}",created_at:"2015-02-27T14:51:40Z",updated_at:"2015-02-27T14:51:40Z",pushed_at:"2015-05-28T11:21:49Z",git_url:"git://github.com/raml-apis/Blogger.git",ssh_url:"[email protected]:raml-apis/Blogger.git",clone_url:"https://github.com/raml-apis/Blogger.git",svn_url:"https://github.com/raml-apis/Blogger",homepage:null,size:200,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:41861038,name:"SalesforceChatter",full_name:"raml-apis/SalesforceChatter",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/SalesforceChatter",description:"",fork:!1,url:"https://api.github.com/repos/raml-apis/SalesforceChatter",forks_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/forks",keys_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/teams",hooks_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/events",assignees_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/tags",blobs_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/languages",stargazers_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/subscription",commits_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/merges",archive_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/downloads",issues_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/SalesforceChatter/releases{/id}",created_at:"2015-09-03T13:24:46Z",updated_at:"2015-09-03T13:36:51Z",pushed_at:"2015-10-22T12:08:05Z",git_url:"git://github.com/raml-apis/SalesforceChatter.git",ssh_url:"[email protected]:raml-apis/SalesforceChatter.git",clone_url:"https://github.com/raml-apis/SalesforceChatter.git",svn_url:"https://github.com/raml-apis/SalesforceChatter",homepage:null,size:412,stargazers_count:0,watchers_count:0,language:"RAML",has_issues:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"production",permissions:{admin:!1,push:!1,pull:!0}},{id:31423959,name:"Elasticsearch",full_name:"raml-apis/Elasticsearch",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Elasticsearch",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Elasticsearch",forks_url:"https://api.github.com/repos/raml-apis/Elasticsearch/forks",keys_url:"https://api.github.com/repos/raml-apis/Elasticsearch/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Elasticsearch/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Elasticsearch/teams",hooks_url:"https://api.github.com/repos/raml-apis/Elasticsearch/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Elasticsearch/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Elasticsearch/events",assignees_url:"https://api.github.com/repos/raml-apis/Elasticsearch/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Elasticsearch/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Elasticsearch/tags",blobs_url:"https://api.github.com/repos/raml-apis/Elasticsearch/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Elasticsearch/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Elasticsearch/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Elasticsearch/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Elasticsearch/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Elasticsearch/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Elasticsearch/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Elasticsearch/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Elasticsearch/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Elasticsearch/subscription",commits_url:"https://api.github.com/repos/raml-apis/Elasticsearch/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Elasticsearch/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Elasticsearch/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Elasticsearch/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Elasticsearch/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Elasticsearch/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Elasticsearch/merges",archive_url:"https://api.github.com/repos/raml-apis/Elasticsearch/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Elasticsearch/downloads",issues_url:"https://api.github.com/repos/raml-apis/Elasticsearch/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Elasticsearch/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Elasticsearch/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Elasticsearch/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Elasticsearch/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Elasticsearch/releases{/id}",created_at:"2015-02-27T14:51:43Z",updated_at:"2015-02-27T14:51:43Z",pushed_at:"2015-04-01T22:11:32Z",git_url:"git://github.com/raml-apis/Elasticsearch.git",ssh_url:"[email protected]:raml-apis/Elasticsearch.git",clone_url:"https://github.com/raml-apis/Elasticsearch.git",svn_url:"https://github.com/raml-apis/Elasticsearch",homepage:null,size:228,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:1,mirror_url:null,open_issues_count:0,forks:1,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423981,name:"GoogleDrive",full_name:"raml-apis/GoogleDrive",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/GoogleDrive",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/GoogleDrive",forks_url:"https://api.github.com/repos/raml-apis/GoogleDrive/forks",keys_url:"https://api.github.com/repos/raml-apis/GoogleDrive/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/GoogleDrive/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/GoogleDrive/teams",hooks_url:"https://api.github.com/repos/raml-apis/GoogleDrive/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/GoogleDrive/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/GoogleDrive/events",assignees_url:"https://api.github.com/repos/raml-apis/GoogleDrive/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/GoogleDrive/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/GoogleDrive/tags",blobs_url:"https://api.github.com/repos/raml-apis/GoogleDrive/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/GoogleDrive/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/GoogleDrive/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/GoogleDrive/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/GoogleDrive/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/GoogleDrive/languages",stargazers_url:"https://api.github.com/repos/raml-apis/GoogleDrive/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/GoogleDrive/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/GoogleDrive/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/GoogleDrive/subscription",commits_url:"https://api.github.com/repos/raml-apis/GoogleDrive/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/GoogleDrive/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/GoogleDrive/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/GoogleDrive/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/GoogleDrive/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/GoogleDrive/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/GoogleDrive/merges",archive_url:"https://api.github.com/repos/raml-apis/GoogleDrive/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/GoogleDrive/downloads",issues_url:"https://api.github.com/repos/raml-apis/GoogleDrive/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/GoogleDrive/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/GoogleDrive/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/GoogleDrive/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/GoogleDrive/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/GoogleDrive/releases{/id}",created_at:"2015-02-27T14:51:53Z",updated_at:"2015-02-27T14:51:53Z",pushed_at:"2015-07-06T14:30:50Z",git_url:"git://github.com/raml-apis/GoogleDrive.git",ssh_url:"[email protected]:raml-apis/GoogleDrive.git",clone_url:"https://github.com/raml-apis/GoogleDrive.git",svn_url:"https://github.com/raml-apis/GoogleDrive",homepage:null,size:268,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424001,name:"PagerDuty",full_name:"raml-apis/PagerDuty",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/PagerDuty",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/PagerDuty",forks_url:"https://api.github.com/repos/raml-apis/PagerDuty/forks",keys_url:"https://api.github.com/repos/raml-apis/PagerDuty/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/PagerDuty/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/PagerDuty/teams",hooks_url:"https://api.github.com/repos/raml-apis/PagerDuty/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/PagerDuty/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/PagerDuty/events",assignees_url:"https://api.github.com/repos/raml-apis/PagerDuty/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/PagerDuty/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/PagerDuty/tags",blobs_url:"https://api.github.com/repos/raml-apis/PagerDuty/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/PagerDuty/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/PagerDuty/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/PagerDuty/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/PagerDuty/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/PagerDuty/languages",stargazers_url:"https://api.github.com/repos/raml-apis/PagerDuty/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/PagerDuty/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/PagerDuty/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/PagerDuty/subscription",commits_url:"https://api.github.com/repos/raml-apis/PagerDuty/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/PagerDuty/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/PagerDuty/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/PagerDuty/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/PagerDuty/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/PagerDuty/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/PagerDuty/merges",archive_url:"https://api.github.com/repos/raml-apis/PagerDuty/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/PagerDuty/downloads",issues_url:"https://api.github.com/repos/raml-apis/PagerDuty/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/PagerDuty/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/PagerDuty/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/PagerDuty/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/PagerDuty/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/PagerDuty/releases{/id}",created_at:"2015-02-27T14:52:04Z",updated_at:"2015-03-09T16:43:49Z",pushed_at:"2015-07-06T14:37:18Z",git_url:"git://github.com/raml-apis/PagerDuty.git",ssh_url:"[email protected]:raml-apis/PagerDuty.git",clone_url:"https://github.com/raml-apis/PagerDuty.git",svn_url:"https://github.com/raml-apis/PagerDuty",homepage:null,size:232,stargazers_count:0,watchers_count:0,language:"Java",has_issues:!0,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424037,name:"Zendesk",full_name:"raml-apis/Zendesk",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Zendesk",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Zendesk",forks_url:"https://api.github.com/repos/raml-apis/Zendesk/forks",keys_url:"https://api.github.com/repos/raml-apis/Zendesk/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Zendesk/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Zendesk/teams",hooks_url:"https://api.github.com/repos/raml-apis/Zendesk/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Zendesk/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Zendesk/events",assignees_url:"https://api.github.com/repos/raml-apis/Zendesk/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Zendesk/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Zendesk/tags",blobs_url:"https://api.github.com/repos/raml-apis/Zendesk/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Zendesk/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Zendesk/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Zendesk/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Zendesk/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Zendesk/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Zendesk/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Zendesk/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Zendesk/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Zendesk/subscription",commits_url:"https://api.github.com/repos/raml-apis/Zendesk/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Zendesk/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Zendesk/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Zendesk/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Zendesk/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Zendesk/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Zendesk/merges",archive_url:"https://api.github.com/repos/raml-apis/Zendesk/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Zendesk/downloads",issues_url:"https://api.github.com/repos/raml-apis/Zendesk/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Zendesk/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Zendesk/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Zendesk/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Zendesk/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Zendesk/releases{/id}",created_at:"2015-02-27T14:52:23Z",updated_at:"2015-03-09T16:51:58Z",pushed_at:"2015-04-01T22:15:23Z",git_url:"git://github.com/raml-apis/Zendesk.git",ssh_url:"[email protected]:raml-apis/Zendesk.git",clone_url:"https://github.com/raml-apis/Zendesk.git",svn_url:"https://github.com/raml-apis/Zendesk",homepage:null,size:320,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423982,name:"GoogleMail",full_name:"raml-apis/GoogleMail",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/GoogleMail",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/GoogleMail",forks_url:"https://api.github.com/repos/raml-apis/GoogleMail/forks",keys_url:"https://api.github.com/repos/raml-apis/GoogleMail/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/GoogleMail/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/GoogleMail/teams",hooks_url:"https://api.github.com/repos/raml-apis/GoogleMail/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/GoogleMail/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/GoogleMail/events",assignees_url:"https://api.github.com/repos/raml-apis/GoogleMail/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/GoogleMail/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/GoogleMail/tags",blobs_url:"https://api.github.com/repos/raml-apis/GoogleMail/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/GoogleMail/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/GoogleMail/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/GoogleMail/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/GoogleMail/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/GoogleMail/languages",stargazers_url:"https://api.github.com/repos/raml-apis/GoogleMail/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/GoogleMail/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/GoogleMail/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/GoogleMail/subscription",commits_url:"https://api.github.com/repos/raml-apis/GoogleMail/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/GoogleMail/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/GoogleMail/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/GoogleMail/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/GoogleMail/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/GoogleMail/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/GoogleMail/merges",archive_url:"https://api.github.com/repos/raml-apis/GoogleMail/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/GoogleMail/downloads",issues_url:"https://api.github.com/repos/raml-apis/GoogleMail/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/GoogleMail/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/GoogleMail/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/GoogleMail/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/GoogleMail/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/GoogleMail/releases{/id}",created_at:"2015-02-27T14:51:54Z",updated_at:"2015-02-27T15:10:17Z",pushed_at:"2015-10-15T11:27:34Z",git_url:"git://github.com/raml-apis/GoogleMail.git",ssh_url:"[email protected]:raml-apis/GoogleMail.git",clone_url:"https://github.com/raml-apis/GoogleMail.git",svn_url:"https://github.com/raml-apis/GoogleMail",homepage:null,size:208,stargazers_count:0,watchers_count:0,language:"Java",has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423998,name:"NewRelic",full_name:"raml-apis/NewRelic",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/NewRelic",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/NewRelic",forks_url:"https://api.github.com/repos/raml-apis/NewRelic/forks",keys_url:"https://api.github.com/repos/raml-apis/NewRelic/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/NewRelic/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/NewRelic/teams",hooks_url:"https://api.github.com/repos/raml-apis/NewRelic/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/NewRelic/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/NewRelic/events",assignees_url:"https://api.github.com/repos/raml-apis/NewRelic/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/NewRelic/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/NewRelic/tags",blobs_url:"https://api.github.com/repos/raml-apis/NewRelic/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/NewRelic/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/NewRelic/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/NewRelic/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/NewRelic/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/NewRelic/languages",stargazers_url:"https://api.github.com/repos/raml-apis/NewRelic/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/NewRelic/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/NewRelic/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/NewRelic/subscription",commits_url:"https://api.github.com/repos/raml-apis/NewRelic/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/NewRelic/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/NewRelic/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/NewRelic/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/NewRelic/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/NewRelic/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/NewRelic/merges",archive_url:"https://api.github.com/repos/raml-apis/NewRelic/{archive_format}{/ref}",
downloads_url:"https://api.github.com/repos/raml-apis/NewRelic/downloads",issues_url:"https://api.github.com/repos/raml-apis/NewRelic/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/NewRelic/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/NewRelic/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/NewRelic/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/NewRelic/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/NewRelic/releases{/id}",created_at:"2015-02-27T14:52:02Z",updated_at:"2015-02-27T14:52:02Z",pushed_at:"2015-04-01T22:13:24Z",git_url:"git://github.com/raml-apis/NewRelic.git",ssh_url:"[email protected]:raml-apis/NewRelic.git",clone_url:"https://github.com/raml-apis/NewRelic.git",svn_url:"https://github.com/raml-apis/NewRelic",homepage:null,size:248,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424027,name:"Twitter",full_name:"raml-apis/Twitter",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Twitter",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Twitter",forks_url:"https://api.github.com/repos/raml-apis/Twitter/forks",keys_url:"https://api.github.com/repos/raml-apis/Twitter/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Twitter/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Twitter/teams",hooks_url:"https://api.github.com/repos/raml-apis/Twitter/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Twitter/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Twitter/events",assignees_url:"https://api.github.com/repos/raml-apis/Twitter/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Twitter/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Twitter/tags",blobs_url:"https://api.github.com/repos/raml-apis/Twitter/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Twitter/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Twitter/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Twitter/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Twitter/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Twitter/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Twitter/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Twitter/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Twitter/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Twitter/subscription",commits_url:"https://api.github.com/repos/raml-apis/Twitter/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Twitter/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Twitter/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Twitter/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Twitter/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Twitter/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Twitter/merges",archive_url:"https://api.github.com/repos/raml-apis/Twitter/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Twitter/downloads",issues_url:"https://api.github.com/repos/raml-apis/Twitter/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Twitter/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Twitter/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Twitter/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Twitter/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Twitter/releases{/id}",created_at:"2015-02-27T14:52:18Z",updated_at:"2015-04-28T22:37:52Z",pushed_at:"2015-07-06T14:26:44Z",git_url:"git://github.com/raml-apis/Twitter.git",ssh_url:"[email protected]:raml-apis/Twitter.git",clone_url:"https://github.com/raml-apis/Twitter.git",svn_url:"https://github.com/raml-apis/Twitter",homepage:null,size:256,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:1,mirror_url:null,open_issues_count:0,forks:1,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424038,name:"Zillow",full_name:"raml-apis/Zillow",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Zillow",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Zillow",forks_url:"https://api.github.com/repos/raml-apis/Zillow/forks",keys_url:"https://api.github.com/repos/raml-apis/Zillow/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Zillow/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Zillow/teams",hooks_url:"https://api.github.com/repos/raml-apis/Zillow/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Zillow/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Zillow/events",assignees_url:"https://api.github.com/repos/raml-apis/Zillow/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Zillow/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Zillow/tags",blobs_url:"https://api.github.com/repos/raml-apis/Zillow/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Zillow/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Zillow/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Zillow/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Zillow/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Zillow/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Zillow/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Zillow/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Zillow/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Zillow/subscription",commits_url:"https://api.github.com/repos/raml-apis/Zillow/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Zillow/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Zillow/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Zillow/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Zillow/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Zillow/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Zillow/merges",archive_url:"https://api.github.com/repos/raml-apis/Zillow/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Zillow/downloads",issues_url:"https://api.github.com/repos/raml-apis/Zillow/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Zillow/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Zillow/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Zillow/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Zillow/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Zillow/releases{/id}",created_at:"2015-02-27T14:52:24Z",updated_at:"2015-03-09T16:51:44Z",pushed_at:"2015-07-24T13:33:15Z",git_url:"git://github.com/raml-apis/Zillow.git",ssh_url:"[email protected]:raml-apis/Zillow.git",clone_url:"https://github.com/raml-apis/Zillow.git",svn_url:"https://github.com/raml-apis/Zillow",homepage:null,size:232,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:34780551,name:"FlightStats",full_name:"raml-apis/FlightStats",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/FlightStats",description:"",fork:!1,url:"https://api.github.com/repos/raml-apis/FlightStats",forks_url:"https://api.github.com/repos/raml-apis/FlightStats/forks",keys_url:"https://api.github.com/repos/raml-apis/FlightStats/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/FlightStats/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/FlightStats/teams",hooks_url:"https://api.github.com/repos/raml-apis/FlightStats/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/FlightStats/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/FlightStats/events",assignees_url:"https://api.github.com/repos/raml-apis/FlightStats/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/FlightStats/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/FlightStats/tags",blobs_url:"https://api.github.com/repos/raml-apis/FlightStats/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/FlightStats/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/FlightStats/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/FlightStats/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/FlightStats/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/FlightStats/languages",stargazers_url:"https://api.github.com/repos/raml-apis/FlightStats/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/FlightStats/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/FlightStats/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/FlightStats/subscription",commits_url:"https://api.github.com/repos/raml-apis/FlightStats/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/FlightStats/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/FlightStats/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/FlightStats/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/FlightStats/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/FlightStats/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/FlightStats/merges",archive_url:"https://api.github.com/repos/raml-apis/FlightStats/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/FlightStats/downloads",issues_url:"https://api.github.com/repos/raml-apis/FlightStats/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/FlightStats/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/FlightStats/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/FlightStats/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/FlightStats/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/FlightStats/releases{/id}",created_at:"2015-04-29T08:03:54Z",updated_at:"2015-04-29T08:03:54Z",pushed_at:"2015-07-06T14:10:56Z",git_url:"git://github.com/raml-apis/FlightStats.git",ssh_url:"[email protected]:raml-apis/FlightStats.git",clone_url:"https://github.com/raml-apis/FlightStats.git",svn_url:"https://github.com/raml-apis/FlightStats",homepage:null,size:460,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"staging",permissions:{admin:!1,push:!1,pull:!0}},{id:31424005,name:"PivotalTracker",full_name:"raml-apis/PivotalTracker",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/PivotalTracker",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/PivotalTracker",forks_url:"https://api.github.com/repos/raml-apis/PivotalTracker/forks",keys_url:"https://api.github.com/repos/raml-apis/PivotalTracker/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/PivotalTracker/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/PivotalTracker/teams",hooks_url:"https://api.github.com/repos/raml-apis/PivotalTracker/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/PivotalTracker/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/PivotalTracker/events",assignees_url:"https://api.github.com/repos/raml-apis/PivotalTracker/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/PivotalTracker/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/PivotalTracker/tags",blobs_url:"https://api.github.com/repos/raml-apis/PivotalTracker/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/PivotalTracker/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/PivotalTracker/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/PivotalTracker/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/PivotalTracker/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/PivotalTracker/languages",stargazers_url:"https://api.github.com/repos/raml-apis/PivotalTracker/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/PivotalTracker/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/PivotalTracker/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/PivotalTracker/subscription",commits_url:"https://api.github.com/repos/raml-apis/PivotalTracker/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/PivotalTracker/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/PivotalTracker/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/PivotalTracker/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/PivotalTracker/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/PivotalTracker/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/PivotalTracker/merges",archive_url:"https://api.github.com/repos/raml-apis/PivotalTracker/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/PivotalTracker/downloads",issues_url:"https://api.github.com/repos/raml-apis/PivotalTracker/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/PivotalTracker/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/PivotalTracker/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/PivotalTracker/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/PivotalTracker/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/PivotalTracker/releases{/id}",created_at:"2015-02-27T14:52:07Z",updated_at:"2015-02-27T14:52:07Z",pushed_at:"2015-07-06T14:50:22Z",git_url:"git://github.com/raml-apis/PivotalTracker.git",ssh_url:"[email protected]:raml-apis/PivotalTracker.git",clone_url:"https://github.com/raml-apis/PivotalTracker.git",svn_url:"https://github.com/raml-apis/PivotalTracker",homepage:null,size:196,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424014,name:"SmartSheet",full_name:"raml-apis/SmartSheet",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/SmartSheet",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/SmartSheet",forks_url:"https://api.github.com/repos/raml-apis/SmartSheet/forks",keys_url:"https://api.github.com/repos/raml-apis/SmartSheet/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/SmartSheet/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/SmartSheet/teams",hooks_url:"https://api.github.com/repos/raml-apis/SmartSheet/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/SmartSheet/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/SmartSheet/events",assignees_url:"https://api.github.com/repos/raml-apis/SmartSheet/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/SmartSheet/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/SmartSheet/tags",blobs_url:"https://api.github.com/repos/raml-apis/SmartSheet/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/SmartSheet/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/SmartSheet/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/SmartSheet/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/SmartSheet/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/SmartSheet/languages",stargazers_url:"https://api.github.com/repos/raml-apis/SmartSheet/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/SmartSheet/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/SmartSheet/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/SmartSheet/subscription",commits_url:"https://api.github.com/repos/raml-apis/SmartSheet/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/SmartSheet/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/SmartSheet/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/SmartSheet/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/SmartSheet/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/SmartSheet/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/SmartSheet/merges",archive_url:"https://api.github.com/repos/raml-apis/SmartSheet/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/SmartSheet/downloads",issues_url:"https://api.github.com/repos/raml-apis/SmartSheet/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/SmartSheet/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/SmartSheet/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/SmartSheet/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/SmartSheet/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/SmartSheet/releases{/id}",created_at:"2015-02-27T14:52:12Z",updated_at:"2015-02-27T14:52:12Z",pushed_at:"2015-05-22T15:01:12Z",git_url:"git://github.com/raml-apis/SmartSheet.git",ssh_url:"[email protected]:raml-apis/SmartSheet.git",clone_url:"https://github.com/raml-apis/SmartSheet.git",svn_url:"https://github.com/raml-apis/SmartSheet",homepage:null,size:224,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:1,mirror_url:null,open_issues_count:0,forks:1,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424018,name:"StackExchange",full_name:"raml-apis/StackExchange",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/StackExchange",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/StackExchange",forks_url:"https://api.github.com/repos/raml-apis/StackExchange/forks",keys_url:"https://api.github.com/repos/raml-apis/StackExchange/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/StackExchange/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/StackExchange/teams",hooks_url:"https://api.github.com/repos/raml-apis/StackExchange/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/StackExchange/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/StackExchange/events",assignees_url:"https://api.github.com/repos/raml-apis/StackExchange/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/StackExchange/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/StackExchange/tags",blobs_url:"https://api.github.com/repos/raml-apis/StackExchange/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/StackExchange/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/StackExchange/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/StackExchange/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/StackExchange/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/StackExchange/languages",stargazers_url:"https://api.github.com/repos/raml-apis/StackExchange/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/StackExchange/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/StackExchange/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/StackExchange/subscription",commits_url:"https://api.github.com/repos/raml-apis/StackExchange/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/StackExchange/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/StackExchange/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/StackExchange/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/StackExchange/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/StackExchange/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/StackExchange/merges",archive_url:"https://api.github.com/repos/raml-apis/StackExchange/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/StackExchange/downloads",issues_url:"https://api.github.com/repos/raml-apis/StackExchange/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/StackExchange/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/StackExchange/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/StackExchange/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/StackExchange/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/StackExchange/releases{/id}",created_at:"2015-02-27T14:52:14Z",updated_at:"2015-02-27T14:52:14Z",pushed_at:"2015-04-01T22:14:28Z",git_url:"git://github.com/raml-apis/StackExchange.git",ssh_url:"[email protected]:raml-apis/StackExchange.git",clone_url:"https://github.com/raml-apis/StackExchange.git",svn_url:"https://github.com/raml-apis/StackExchange",homepage:null,size:180,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424002,name:"Parse",full_name:"raml-apis/Parse",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Parse",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Parse",forks_url:"https://api.github.com/repos/raml-apis/Parse/forks",keys_url:"https://api.github.com/repos/raml-apis/Parse/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Parse/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Parse/teams",hooks_url:"https://api.github.com/repos/raml-apis/Parse/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Parse/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Parse/events",assignees_url:"https://api.github.com/repos/raml-apis/Parse/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Parse/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Parse/tags",blobs_url:"https://api.github.com/repos/raml-apis/Parse/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Parse/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Parse/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Parse/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Parse/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Parse/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Parse/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Parse/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Parse/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Parse/subscription",commits_url:"https://api.github.com/repos/raml-apis/Parse/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Parse/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Parse/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Parse/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Parse/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Parse/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Parse/merges",archive_url:"https://api.github.com/repos/raml-apis/Parse/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Parse/downloads",issues_url:"https://api.github.com/repos/raml-apis/Parse/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Parse/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Parse/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Parse/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Parse/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Parse/releases{/id}",created_at:"2015-02-27T14:52:05Z",updated_at:"2015-02-27T14:52:05Z",pushed_at:"2015-07-28T19:32:46Z",git_url:"git://github.com/raml-apis/Parse.git",ssh_url:"[email protected]:raml-apis/Parse.git",clone_url:"https://github.com/raml-apis/Parse.git",svn_url:"https://github.com/raml-apis/Parse",
homepage:null,size:224,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423952,name:"Bitly",full_name:"raml-apis/Bitly",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Bitly",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Bitly",forks_url:"https://api.github.com/repos/raml-apis/Bitly/forks",keys_url:"https://api.github.com/repos/raml-apis/Bitly/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Bitly/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Bitly/teams",hooks_url:"https://api.github.com/repos/raml-apis/Bitly/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Bitly/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Bitly/events",assignees_url:"https://api.github.com/repos/raml-apis/Bitly/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Bitly/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Bitly/tags",blobs_url:"https://api.github.com/repos/raml-apis/Bitly/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Bitly/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Bitly/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Bitly/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Bitly/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Bitly/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Bitly/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Bitly/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Bitly/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Bitly/subscription",commits_url:"https://api.github.com/repos/raml-apis/Bitly/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Bitly/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Bitly/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Bitly/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Bitly/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Bitly/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Bitly/merges",archive_url:"https://api.github.com/repos/raml-apis/Bitly/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Bitly/downloads",issues_url:"https://api.github.com/repos/raml-apis/Bitly/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Bitly/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Bitly/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Bitly/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Bitly/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Bitly/releases{/id}",created_at:"2015-02-27T14:51:39Z",updated_at:"2015-02-27T15:08:16Z",pushed_at:"2015-04-01T22:11:12Z",git_url:"git://github.com/raml-apis/Bitly.git",ssh_url:"[email protected]:raml-apis/Bitly.git",clone_url:"https://github.com/raml-apis/Bitly.git",svn_url:"https://github.com/raml-apis/Bitly",homepage:null,size:204,stargazers_count:0,watchers_count:0,language:"Java",has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424021,name:"Stripe",full_name:"raml-apis/Stripe",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Stripe",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Stripe",forks_url:"https://api.github.com/repos/raml-apis/Stripe/forks",keys_url:"https://api.github.com/repos/raml-apis/Stripe/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Stripe/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Stripe/teams",hooks_url:"https://api.github.com/repos/raml-apis/Stripe/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Stripe/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Stripe/events",assignees_url:"https://api.github.com/repos/raml-apis/Stripe/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Stripe/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Stripe/tags",blobs_url:"https://api.github.com/repos/raml-apis/Stripe/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Stripe/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Stripe/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Stripe/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Stripe/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Stripe/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Stripe/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Stripe/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Stripe/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Stripe/subscription",commits_url:"https://api.github.com/repos/raml-apis/Stripe/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Stripe/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Stripe/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Stripe/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Stripe/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Stripe/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Stripe/merges",archive_url:"https://api.github.com/repos/raml-apis/Stripe/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Stripe/downloads",issues_url:"https://api.github.com/repos/raml-apis/Stripe/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Stripe/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Stripe/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Stripe/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Stripe/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Stripe/releases{/id}",created_at:"2015-02-27T14:52:15Z",updated_at:"2015-02-27T14:52:15Z",pushed_at:"2015-04-01T22:14:38Z",git_url:"git://github.com/raml-apis/Stripe.git",ssh_url:"[email protected]:raml-apis/Stripe.git",clone_url:"https://github.com/raml-apis/Stripe.git",svn_url:"https://github.com/raml-apis/Stripe",homepage:null,size:380,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31423951,name:"AzureTableStorage",full_name:"raml-apis/AzureTableStorage",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/AzureTableStorage",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/AzureTableStorage",forks_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/forks",keys_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/teams",hooks_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/events",assignees_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/tags",blobs_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/languages",stargazers_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/subscription",commits_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/merges",archive_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/downloads",issues_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/AzureTableStorage/releases{/id}",created_at:"2015-02-27T14:51:39Z",updated_at:"2015-02-27T14:51:39Z",pushed_at:"2015-04-01T22:11:07Z",git_url:"git://github.com/raml-apis/AzureTableStorage.git",ssh_url:"[email protected]:raml-apis/AzureTableStorage.git",clone_url:"https://github.com/raml-apis/AzureTableStorage.git",svn_url:"https://github.com/raml-apis/AzureTableStorage",homepage:null,size:152,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:1,mirror_url:null,open_issues_count:0,forks:1,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424016,name:"Squareup",full_name:"raml-apis/Squareup",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Squareup",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Squareup",forks_url:"https://api.github.com/repos/raml-apis/Squareup/forks",keys_url:"https://api.github.com/repos/raml-apis/Squareup/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Squareup/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Squareup/teams",hooks_url:"https://api.github.com/repos/raml-apis/Squareup/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Squareup/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Squareup/events",assignees_url:"https://api.github.com/repos/raml-apis/Squareup/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Squareup/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Squareup/tags",blobs_url:"https://api.github.com/repos/raml-apis/Squareup/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Squareup/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Squareup/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Squareup/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Squareup/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Squareup/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Squareup/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Squareup/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Squareup/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Squareup/subscription",commits_url:"https://api.github.com/repos/raml-apis/Squareup/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Squareup/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Squareup/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Squareup/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Squareup/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Squareup/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Squareup/merges",archive_url:"https://api.github.com/repos/raml-apis/Squareup/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Squareup/downloads",issues_url:"https://api.github.com/repos/raml-apis/Squareup/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Squareup/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Squareup/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Squareup/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Squareup/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Squareup/releases{/id}",created_at:"2015-02-27T14:52:13Z",updated_at:"2015-02-27T14:52:13Z",pushed_at:"2015-03-16T16:14:08Z",git_url:"git://github.com/raml-apis/Squareup.git",ssh_url:"[email protected]:raml-apis/Squareup.git",clone_url:"https://github.com/raml-apis/Squareup.git",svn_url:"https://github.com/raml-apis/Squareup",homepage:null,size:176,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}},{id:31424009,name:"Salesforce",full_name:"raml-apis/Salesforce",owner:{login:"raml-apis",id:11064836,avatar_url:"https://avatars.githubusercontent.com/u/11064836?v=3",gravatar_id:"",url:"https://api.github.com/users/raml-apis",html_url:"https://github.com/raml-apis",followers_url:"https://api.github.com/users/raml-apis/followers",following_url:"https://api.github.com/users/raml-apis/following{/other_user}",gists_url:"https://api.github.com/users/raml-apis/gists{/gist_id}",starred_url:"https://api.github.com/users/raml-apis/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/raml-apis/subscriptions",organizations_url:"https://api.github.com/users/raml-apis/orgs",repos_url:"https://api.github.com/users/raml-apis/repos",events_url:"https://api.github.com/users/raml-apis/events{/privacy}",received_events_url:"https://api.github.com/users/raml-apis/received_events",type:"Organization",site_admin:!1},"private":!1,html_url:"https://github.com/raml-apis/Salesforce",description:null,fork:!1,url:"https://api.github.com/repos/raml-apis/Salesforce",forks_url:"https://api.github.com/repos/raml-apis/Salesforce/forks",keys_url:"https://api.github.com/repos/raml-apis/Salesforce/keys{/key_id}",collaborators_url:"https://api.github.com/repos/raml-apis/Salesforce/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/raml-apis/Salesforce/teams",hooks_url:"https://api.github.com/repos/raml-apis/Salesforce/hooks",issue_events_url:"https://api.github.com/repos/raml-apis/Salesforce/issues/events{/number}",events_url:"https://api.github.com/repos/raml-apis/Salesforce/events",assignees_url:"https://api.github.com/repos/raml-apis/Salesforce/assignees{/user}",branches_url:"https://api.github.com/repos/raml-apis/Salesforce/branches{/branch}",tags_url:"https://api.github.com/repos/raml-apis/Salesforce/tags",blobs_url:"https://api.github.com/repos/raml-apis/Salesforce/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/raml-apis/Salesforce/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/raml-apis/Salesforce/git/refs{/sha}",trees_url:"https://api.github.com/repos/raml-apis/Salesforce/git/trees{/sha}",statuses_url:"https://api.github.com/repos/raml-apis/Salesforce/statuses/{sha}",languages_url:"https://api.github.com/repos/raml-apis/Salesforce/languages",stargazers_url:"https://api.github.com/repos/raml-apis/Salesforce/stargazers",contributors_url:"https://api.github.com/repos/raml-apis/Salesforce/contributors",subscribers_url:"https://api.github.com/repos/raml-apis/Salesforce/subscribers",subscription_url:"https://api.github.com/repos/raml-apis/Salesforce/subscription",commits_url:"https://api.github.com/repos/raml-apis/Salesforce/commits{/sha}",git_commits_url:"https://api.github.com/repos/raml-apis/Salesforce/git/commits{/sha}",comments_url:"https://api.github.com/repos/raml-apis/Salesforce/comments{/number}",issue_comment_url:"https://api.github.com/repos/raml-apis/Salesforce/issues/comments{/number}",contents_url:"https://api.github.com/repos/raml-apis/Salesforce/contents/{+path}",compare_url:"https://api.github.com/repos/raml-apis/Salesforce/compare/{base}...{head}",merges_url:"https://api.github.com/repos/raml-apis/Salesforce/merges",archive_url:"https://api.github.com/repos/raml-apis/Salesforce/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/raml-apis/Salesforce/downloads",issues_url:"https://api.github.com/repos/raml-apis/Salesforce/issues{/number}",pulls_url:"https://api.github.com/repos/raml-apis/Salesforce/pulls{/number}",milestones_url:"https://api.github.com/repos/raml-apis/Salesforce/milestones{/number}",notifications_url:"https://api.github.com/repos/raml-apis/Salesforce/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/raml-apis/Salesforce/labels{/name}",releases_url:"https://api.github.com/repos/raml-apis/Salesforce/releases{/id}",created_at:"2015-02-27T14:52:09Z",updated_at:"2015-02-27T14:52:09Z",pushed_at:"2015-04-01T22:14:02Z",git_url:"git://github.com/raml-apis/Salesforce.git",ssh_url:"[email protected]:raml-apis/Salesforce.git",clone_url:"https://github.com/raml-apis/Salesforce.git",svn_url:"https://github.com/raml-apis/Salesforce",homepage:null,size:180,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_downloads:!1,has_wiki:!1,has_pages:!1,forks_count:0,mirror_url:null,open_issues_count:0,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{admin:!1,push:!1,pull:!0}}]},function(t,e,r){function s(t,r,s){void 0===s&&(s=!1),r.clear();var a=atom.config,i=atom.styles.emitter.handlersByEventName,o=[].concat(i["did-add-style-element"]),n=[].concat(i["did-remove-style-element"]),l=[].concat(i["did-update-style-element"]),p=[].concat(a.emitter.handlersByEventName["did-change"]),u=atom.grammars.emitter.handlersByEventName,h=[].concat(u["did-add-grammar"]),_=[].concat(u["did-update-grammar"]),v=[].concat(atom.grammars.nullGrammar.emitter.handlersByEventName["did-update"]);try{var y=!0,w=g.buildItem(t,!1);w.addListener(function(t){m.aquireManager().updateText(null)});var S=w.render({});if(e.oldItem&&e.oldItem.detach(),e.oldItem=w,r.addChild(S),y=!1,f){var T=f.getActualField().ui();T.focus(),T.getModel().setCursorBufferPosition(b),f=null,b=null,d=null}if(y){var E=c.h3("Object `"+t.name()+"` has no additional properties.");c.applyStyling(c.TextClasses.WARNING,E),E.setStyle("text-align","center").margin(0,0,24,12),r.addChild(E)}}finally{a.emitter.handlersByEventName["did-change"]=p,i["did-add-style-element"]=o,i["did-remove-style-element"]=n,i["did-update-style-element"]=l,u["did-add-grammar"]=h,u["did-update-grammar"]=_,atom.grammars.nullGrammar.emitter.handlersByEventName["did-update"]=v}}function a(t){var e=h.createSchema(t,null);if(!e||!e.getType)return"Invalid";switch(e.getType()){case"source.json":return"JSON";case"text.xml":return"XML";default:return"Unknown type"}}function i(t){return"object"==typeof t?t.valueName():t}function o(t,e){var r=t.definition().property(e);if(0==r.isValueProperty())return null;var s,o,n,l=r.isMultiValue(),p=r.isRequired(),c=[],h=r.range().nameId();if(l)switch(c=t.attributes(e).map(function(t){return t.value()}),s=c.map(function(t){return i(t)}).join(", "),h){case"StringType":o="enum",t.definition().getAdapter(u.RAMLService).isUserDefined()||"protocols"!=e||(o="protocols");break;case"TraitRef":o="trait";break;default:o="unknown"}else{var m=t.attr(e);switch(s=m&&m.value()?m.value():"",h){case"MarkdownString":o="markdown",c=s.split("\n"),s=c[0];break;case"SchemaString":o="schema",s.indexOf("\n")>=0&&(c=[s],s="("+a(s)+" Schema)");break;case"ExampleString":o="schexample";try{n=m.lowLevel().includePath()}catch(g){n=""}c=[s,n],s="Example"+(""!=n?" (referenced from "+n+")":"");break;case"ResourceTypeRef":o="type";break;default:o="string"}"string"==o&&(s.indexOf("\n")>=0&&(c=s.split("\n"),s="("+c.length+" lines) "+c[0].substring(0,20)+" ...",o="multiline"),m&&(n=m.lowLevel().includePath()),n&&(s="(included from "+n+")",o="include"))}var d={value:s,values:c,type:o,include:n,required:p};return d}function n(t,e){return i(o(t,e).value)}var l=r(22),p=l.ds,u=p,c=r(18),h=l.schema,m=r(5),g=r(60);e.nodes={Api:{properties:["title","version","baseUri","mediaType","protocols"],actions:[]},Resource:{properties:["relativeUri","displayName","description","is","type"]},Method:{properties:["method","displayName","description","is","type","protocols","securedBy"]},DataElement:{properties:["name","displayName","description","default","required"]},Response:{properties:["code","description"]}},e.filterOut={properties:["location","annotations","repeat","locationKind","signature"]};var d=null,b=-1,f=null;e.updateDetailsPanel=s,e.getStringValue=i,e.propertyInfo=o,e.stringView=n},function(t,e,r){function s(){var t=m.treeViewer(function(t){return t.children},new f,function(t){return t.name+":"+t.type});return t.setComparator(function(t,e){return t.name==e.name&&t.type==e.type}),t}function a(t,e){e.type instanceof Array&&(e.type.indexOf("object")>=0?e.type="object":e.type.indexOf("array")>=0&&(e.type="array"));var r=e.type?(e.type instanceof Array?e.type.join("|"):e.type).toLowerCase():"unspecified",s=[];e.properties?s=Object.keys(e.properties).map(function(t){return a(t,e.properties[t])}):e.items&&(s=e.items instanceof Array?e.items.map(function(t){return a("item",t)}):a("item",e.items)),s instanceof Array==0&&(s=[s]);var i={type:r,name:t,parent:null,children:s};return i.children.forEach(function(t){return t.parent=i}),i}function i(t,e){try{var r=b.createSchema(e,null);if(null==r||null==r.getType)return void t.setInput({},!0);var s=r.getType(),i="source.json"==s?JSON.parse(e):n(e),o="source.json"==s?a("schema",i):c(i);t.setInput(o,!0)}catch(l){console.log(l)}}function o(t){var e=r(58).XSD_1_0,s=new _.Jsonix.Context([e]),a=s.createUnmarshaller(),i=a.unmarshalString(t);return i}function n(t){var e=o(t);return p(e)}function l(t){var e=t.prefix,r=t.localPart,s=e+(e.length>0?":":"")+r;return s}function p(t){var e=this,r=t.value,s=[];if(r){var a=r.group;a&&a.forEach(function(t){return e.elementGroups[t.name]=t});var i=r.attributeGroup;i&&i.forEach(function(t){return e.attributeGroups[t.name]=t});var o=r.simpleType;o&&o.forEach(function(t){return e.simpleTypes[t.name]=t});var n=r.complexType;n&&n.forEach(function(t){return e.complexTypes[t.name]=t});var l=r.element;l&&(s=l.map(function(t){return new w(e,t)}))}return s}function u(t){return T[t]}function c(t){var e=function(t){return t?(t=t.substr(t.indexOf(":")+1),u(t)):"Unknown"};return t.map(function(t){var r,s=t.type().value();return r=t.isArray()?{type:"Array",name:t.name(),parent:null,children:c(s.elements())}:s.isSimple()?{type:e(s.name()),name:t.name(),parent:null,children:[]}:{type:"Object",name:t.name(),parent:null,children:c(s.elements())},r.children.forEach(function(t){return t.parent=r}),r})}var h=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},m=r(18),g=r(22),d=r(61),b=g.schema,f=function(){function t(){}return t.prototype.render=function(t){var e,r;switch(t.type){case"object":e=m.Icon.CIRCUIT_BOARD,r=m.TextClasses.INFO;break;case"array":e=m.Icon.LIST_UNORDERED,r=m.TextClasses.ERROR;break;case"unspecified":e=m.Icon.QUESTION,r=m.TextClasses.WARNING;break;default:e=m.Icon.CODE,r=m.TextClasses.SUCCESS}return m.hc(m.label(t.name+": ",e),m.label(t.type,null,r,null).pad(4,0))},t}();e.SchemaRenderer=f,e._schemaPreview=s,e.getSchemaTree=a,e._updatePreview=i;var _=r(57),v=function(){function t(t,e,r,s){var a=this;this.owner=t,this._name=e,this._isSimple=r,this._object=s,this.name=function(){return a._name},this.isSimple=function(){return a._isSimple},this.object=function(){return a._object}}return t.prototype.isChoice=function(){return this.object&&(this.object.choice||this.object.complexContent&&this.object.complexContent.choice)},t.prototype.elements=function(){var t=this,e=[];if(this._object&&(e=this.collectElements(this._object),0==e.length)){var r=this.object.complexContent;r&&(e=this.collectElements(r))}var s=e.map(function(e){return new w(t.owner,e)});return s},t.prototype.attributes=function(){for(var t=this,e=[],r=[this._object],s=0;s<r.length;s++){var a=r[s];if(a){if(a.attributeGroup)for(var i=a.attributeGroup.filter(function(t){return t.otherAttributes}),o=0;o<i.length;o++){var n=i[o].otherAttributes.ref,l=this.owner.attributeGroups[n];r.push(l)}a.attribute&&a.attribute.forEach(function(r){return e.push(new S(t.owner,r))})}}return e},t.prototype.base=function(){if(!this._object)return d.empty();var e;if(this._object.restriction){var r=this._object.restriction;e=r.base}else if(this._object.complexContent){var s=this.object.complexContent,a=s.restriction||s.extension;a&&(e=a.base)}if(!e)return d.empty();var i,o=l(e),n=!1,p=this.owner.simpleTypes[o];p&&(i=p,n=!0);var u=this.owner.complexTypes[o];u&&(i=u),(0==o.indexOf("xs:")||0==o.indexOf("xsd:"))&&"any"!=o.substring(o.indexOf(":")+1)&&(n=!0);var c=new t(this.owner,o,n,i);return new d(c)},t.prototype.getBaseName=function(){for(var t=new d(this),e="";t.isDefined();){var r=t.getOrThrow();e=r.name(),t=r.base()}return e},t.prototype.collectElements=function(t){for(var e=[],r=[t.sequence,t.any,t.choice],s=0;s<r.length;s++){var a=r[s];if(a){if(a.group)for(var i=a.group.filter(function(t){return t.otherAttributes}),o=0;o<i.length;o++){var n=i[o].otherAttributes.ref,l=this.owner.elementGroups[n];l&&(l.sequence&&(r=r.concat(l.sequence)),l.any&&(r=r.concat(l.any)),l.choice&&(r=r.concat(l.choice)))}a.element&&(e=e.concat(a.element)),e=e.concat(this.collectElements(a))}}return e},t}(),y=function(){function t(t,e){var r=this;this.owner=t,this._object=e,this.name=function(){return r._object.name}}return t.prototype.type=function(){var t,e,r=!1;if(this._object.type){var s=this._object.type;t=l(s);var a=this.owner.simpleTypes[t];a&&(e=a,r=!0);var i=this.owner.complexTypes[t];i&&(e=i),(0==t.indexOf("xs:")||0==t.indexOf("xsd:"))&&"any"!=t.substring(t.indexOf(":")+1)&&(r=!0)}else this._object.complexType?e=this._object.complexType:this._object.simpleType&&(e=this._object.simpleType);var o=new v(this.owner,t,r,e);return new d(o)},t.prototype.optional=function(){throw new Error("This method is abstract.")},t.prototype.isArray=function(){throw new Error("This method is abstract.")},t.prototype.isAttribute=function(){return!1},t}();e.PropertyDescription=y;var w=function(t){function e(e,r){t.call(this,e,r)}return h(e,t),e.prototype.isArray=function(){var t=this._object.otherAttributes;if(!t)return!1;var e=t.maxOccurs;if(!e)return!1;if("unbounded"==e)return!0;try{var r=parseInt(e);return r>1}catch(s){}return!1},e.prototype.optional=function(){var t=this._object.otherAttributes;if(!t)return!0;var e=t.minOccurs;if(!e)return!0;try{var r=parseInt(e);return 0==r}catch(s){}return!0},e}(y);e.ElementDescription=w;var S=function(t){function e(e,r){t.call(this,e,r)}return h(e,t),e.prototype.optional=function(){
var t=this._object.otherAttributes;if(!t)return!1;var e=t.use;return e?"required"!=e:!1},e.prototype.isArray=function(){return!1},e.prototype.isAttribute=function(){return!0},e}(y);e.AttributeDescription=S;var T={ENTITIES:"string",ENTITY:"string",ID:"string",IDREF:"string",IDREFS:"string",language:"string",Name:"string",NCName:"string",NMTOKEN:"string",NMTOKENS:"string",normalizedString:"string",QName:"string",string:"string",token:"string",date:"string",dateTime:"string",duration:"string",gDay:"string",gMonth:"string",gMonthDay:"string",gYear:"string",gYearMonth:"string",time:"string",anyURI:"string",base64Binary:"string",hexBinary:"string",NOTATION:"string","boolean":"boolean","double":"number","float":"number","byte":"number",decimal:"number","int":"number",integer:"number","long":"number",negativeInteger:"number",nonNegativeInteger:"number",nonPositiveInteger:"number",positiveInteger:"number","short":"number",unsignedLong:"number",unsignedInt:"number",unsignedShort:"number",unsignedByte:"number"};e.getTSType=u},function(t,e,r){function s(t,e){K.showMessageBox(j.getCurrentWindow(),{type:"error",buttons:["Okay"],title:"Error",message:t,detail:e})}function a(){if(!Q){Q=Object.create(null);var t=Z.aquireManager().ast.definition().property(J.Universe10.Api.properties.resources.name).range().property(J.Universe10.ResourceBase.properties.methods.name),e=t.enumOptions();O.methods.filter(function(t){return e.indexOf(t.method.toLowerCase())>-1}).forEach(function(t){var e=t.description.trim().match(/^\"(.*)\"$/)[1];Q[t.method.toLowerCase()]=e?e:t.description})}return Q}function i(){return $||($=Object.create(null),O.statusCodes.forEach(function(t){var e,r=t.description.trim();(e=r.match(/^\"(.*)\"/))&&(r=e[1]),$[t.code]=r}),$["7xx"]="is for developer errors."),$}function o(){var t="",e="",r="",a=!0,i=!0,o=new N.TextField("API Title*",t,function(e,r){return t=r}),n=new N.TextField("Version",e,function(t,r){return e=r}),l=new N.TextField("Base URI",r,function(t,e){return r=e});o.setTabIndex(100),o.margin(0,0,8,0),n.setTabIndex(101),n.margin(0,0,8,0),l.setTabIndex(102),l.margin(0,0,8,0);var p=new N.CheckBox("Create sample resource",null,function(t,e){return a=e});p.setValue(a);var u=new N.CheckBox("Generate 1.0 model",null,function(t,e){return i=e});u.setValue(i);var c=N.section("Create new API",N.Icon.DASHBOARD,!1,!1,o,n,l,N.hc(p,u).margin(0,0,12,12));L(c,function(){return""==t?(s("Cannot create API","Title must not be empty"),!1):(Z.aquireManager().setText(z.createRAMLFile(t,e,r,a,i)),!0)},o)(this),o.getActualField().ui().focus()}function n(t,e){var r=a(),o=i(),n="No response",l="No response body type",p=null,u=null;null==e&&(e="get");var c=new N.LabelField,h=new N.LabelField;[c,h].forEach(function(t){return t.addClass("wizard-description")}),c.getActualField().margin(0,0,18,8),h.getActualField().margin(0,0,8,8);var m=new N.SelectField("Method:",function(t,s){e=s,c.setText("Method "+s+" "+r[s])},null);m.getActualField().setOptions(Object.keys(r)),m.getActualField().setValue(e,!0);var g=new N.SelectField("Status code:",function(t,e){e==n&&(e=null,d.getActualField().setValue(l)),p=e,d.setDisabled(null==e),h.setText(e?"Status code "+e+" "+o[e]:"")},null);g.getActualField().setOptions([n].concat(Object.keys(o)));var d=new N.SelectField("Generate default response with media type:",function(t,e){e==l?(e=null,y.setDisabled(!0)):y.setDisabled(!1),u=e},null);d.getActualField().setOptions([l,"application/json","application/xml","application/x-www-form-urlencoded"]),d.setDisabled(!0),d.margin(0,0,0,12);var b=null,f=new N.SelectField("Generate default body with media type:",function(t,e){e==l?(e=null,E.setDisabled(!0)):E.setDisabled(!1),b=e},null);f.getActualField().setOptions([l,"application/json","application/xml","application/x-www-form-urlencoded"]),f.margin(0,0,0,12);var _=null,v=null,y=new N.SelectField("Generate default response body with type:",function(t,e){e==l&&(e=null),_=e},null);y.setDisabled(!0),y.margin(0,0,0,12);var w=tt(t),S=w.isSchema,T=w.types;T&&(T=[""].concat(T),y.getActualField().setOptions(T));var E=new N.SelectField("Generate default body with type:",function(t,e){e==l&&(e=null),v=e},null);E.setDisabled(!0),E.margin(0,0,0,12);var S=w.isSchema,T=w.types;T&&(T=[""].concat(T),E.getActualField().setOptions(T));var k=N.section("");k.addChild(N.h3("Body")),k.addChild(f),k.addChild(E),k.addChild(N.h3("Response")),k.addChild(g),k.addChild(h),k.addChild(d),k.addChild(y),k.ui();var C=N.section("Creating a new method",N.Icon.CODE,!1,!1,m,c,k),w=tt(t);L(C,function(){var r=t.elementsOfKind("methods").filter(function(t){return t.attr("method").value()==e})[0];r&&(s("Method "+e+" already exists","Node contents will be overwritten"),t.remove(r));var a=M.createMethodStub(t,e);if(b){var i=M.createBodyStub(a,b);v&&(S?i.attrOrCreate("schema").setValue(v):i.attrOrCreate("type").setValue(v)),a.add(i)}if(p){var o=M.createResponseStub(a,p);if(a.add(o),u){var i=M.createBodyStub(o,u);_&&(S?i.attrOrCreate("schema").setValue(_):i.attrOrCreate("type").setValue(_)),o.add(i)}}return t.add(a),Z.updateAndSelect(a),!0})(this)}function l(t){return"object"==typeof t?t.valueName():t}function p(t,e,r,s){var a=N.vc();a.margin(8,8,20,8);var i=r.definition().property(t),o=u(r,t),n=Z.aquireManager().ast.elementsOfKind("resourceType").map(function(t){return t.name()}),p=l(e),h=new N.SelectField("Type: ",function(t,s){if(s==m)return e="",a.clear(),void a.addChild(N.label("Select some type from the list above to show its additional properties",null,N.TextClasses.HIGHLIGHT));e=R.utils.genStructuredValue(s,r,i);var n="object"==typeof e?e.toHighLevel(Z.aquireManager().ast):null;c(n,o),q.updateDetailsPanel(n,a),n&&0==n.definition().allProperties().length&&(e=s)}),m="(no value)";h.getActualField().setOptions([m].concat(n)),h.setPercentWidth(100),n.indexOf(p)<0?(h.getActualField().setValue(m),""!=p&&a.addChild(N.label("Type `"+p+"` does not exists",null,N.TextClasses.ERROR).setStyle("display","block")),a.addChild(N.label("Select some type from the list above to show its additional properties",null,N.TextClasses.HIGHLIGHT))):h.getActualField().setValue(p,!0);var g=N.section("Editing type value `"+t+"`:",N.Icon.CIRCUIT_BOARD,null,null,h,a);return L(g,function(){return s(e),!0})}function u(t,e){try{var r=new W.Map,s=t.attributes(e).map(function(t){return t.value()}).filter(function(t){return"object"==typeof t});return s.forEach(function(t){return t.lowLevel().children().forEach(function(t){return r.set(t.key(),t.value())})}),r}catch(a){return null}}function c(t,e){t&&e&&e.pairs().forEach(function(e){t.definition().property(e.key)&&t.attrOrCreate(e.key).setValue(e.value)})}function h(t){return t&&t.property()?Y.isResourcesProperty(t.property())?t:h(t.parent()):null}function m(t,e,r){var s={elements:function(t){return t},init:function(t){},dispose:function(){}},a={render:function(t){return N.hc(N.label(t,N.Icon.GIT_COMMIT),N.a("",function(t){e=e.filter(function(e){return e!=t.id()}),i.remove(t.id())},N.Icon.TRASHCAN).pad(8,8).setId(t)).addClass("outline")}},i=new N.ListView(s,a);i.setBasicLabelFunction(function(t){return t}),i.setInput(e,!0);var o=N.texfField("","",function(t){return t}).margin(0,0,4,4);o.addKeyPressListener(function(t,r){if(13==r.keyCode){var s=t.getBinding(),a=s.get();s.set(""),e.push(a),i.setInput(e,!0)}});var n=N.section("Editing enum value `"+t+"`:",N.Icon.LIST_UNORDERED,null,null,N.h3("List of elements in enum:").margin(0,0,20,0),i.margin(20,20),N.h3("Add new element:").margin(0,0,20,0),o);return L(n,function(){return r(e),!0},o)}function g(t){var e=t.attrValue("relativeUri");if(!e)return null;for(var r=h(t.parent());r;){var s=r.attrValue("relativeUri");if(!s)return null;e=s+e,r=h(r.parent())}return e}function d(t){var e="/",r="",s=h(t),i=null;s&&(i=g(s),i&&(r=i));var o=o=new N.TextField(r,e,function(t,r){e=r});o.margin(0,0,6,12);var n={},l=N.vc().margin(0,0,0,12);Object.keys(a()).forEach(function(t){var e=new N.CheckBox(t,null,function(e){n[t]?delete n[t]:n[t]=e}).addClass("checkbox-group"),r=N.vc().margin(0,0,15,0);r.addChild(e);var s=t+":"+a()[t];l.addChild(N.vc(r));var i=N.label(s,N.Icon.NONE,N.TextClasses.SUBTLE).margin(5,10,-4,0);l.addChild(i)});var p=M.createResourceStub(t,e),u=N.select("type"),c=F.globalDeclarations(t).filter(function(t){return Y.isResourceTypeType(t.definition())&&!t.definition().getAdapter(G.RAMLService).isUserDefined()}),m=c.map(function(e){return R.search.qName(e,t)}),m=[""].concat(m);u.setOptions(m);var d=N.section("Creating a new resource",N.Icon.BOOK,!1,!1);d.addChild(N.label("New resource URI:")),d.addChild(o),d.addChild(N.label("Type:")),d.addChild(u),d.addChild(N.label("Add additional methods:").margin(0,0,18,6)),d.addChild(l),L(d,function(){if(0!=e.indexOf("/"))return!1;p.attrOrCreate("relativeUri").setValue(e),Object.keys(n).filter(function(t){return n[t]}).forEach(function(t){var e=M.createMethodStub(p,t);e.attrOrCreate("method").setValue(t),p.add(e)});var r=u.getValue();return r&&p.attrOrCreate("type").setValue(r),t.add(p),Z.updateAndSelect(p),!0},o,!0)(this),o.getActualField().ui().focus(),i?o.makeLabelNextToField():o.hideLabel()}function b(t,e,r,s){void 0===s&&(s="key");if(null!=t){"body"==r&&(s="application/json");var a=M.createStub(t,r,s),i=H.buildItem(a,!0);i.setTitle(e);var o=i.render({showDescription:!0});o.margin(8,8,8,8),L(o,function(){return a._parent=null,a.lowLevel()._unit=null,t.add(a),Z.updateAndSelect(a),!0},null)(this)}}function f(t,e,r,s){var a=u(r,t),i=new N.TabFolder,o=N.vc(N.h3("Enabled traits: ")).margin(10,10,0,0);i.margin(0,0,20,10),i.add("Traits",N.Icon.FILE_SUBMODULE,o);var n=r.definition().property(t),p=0,h=r.root().elementsOfKind("traits").map(function(t){var s=t.name(),u=R.utils.genStructuredValue(s,r,n),h="object"==typeof u?u.toHighLevel():null;h&&0==h.definition().allProperties().length&&(u=s);var m={index:p,name:s,value:u,enabled:e.filter(function(t){return l(t)==s}).length>0};c(h,a);var g=N.checkBox(m.name,function(t){m.enabled=g.getValue(),i.toggle(1+m.index,m.enabled)});g.margin(12,12),g.setValue(m.enabled),o.addChild(g);var d=N.vc();return d.margin(8,8,20,8),q.updateDetailsPanel(h,d),i.add(s,N.Icon.CIRCUIT_BOARD,d),i.toggle(1+p,m.enabled),p+=1,m}),m=N.section("Editing trait value `"+t+"`:",N.Icon.CIRCUIT_BOARD,null,null,i);return L(m,function(){return s(h),!0})}function _(t){var e=Z.aquireManager().ast.elementsOfKind("schemas").filter(function(e){return e.name()==t})[0];return e?e.value().value():""}function v(t,e,r){var a="(New Schema)",i=Z.aquireManager().ast.elementsOfKind("schemas").map(function(t){return t.name()}),o=i.indexOf(e)>=0,n=o?I(e):e,l=o?e:"",p=0,u=P(function(t,e){p=0}),c=V._schemaPreview(),h=setInterval(function(){p++<5||(p=0,V._updatePreview(c,u.getValue()))},100),m=new N.SelectField("Select schema: ",function(t,e){l=e,n=_(e),y(u,n)});m.getActualField().setOptions([a].concat(i)),m.setPercentWidth(100),o&&m.getActualField().setValue(l),y(u,n);var g=new N.TabFolder;g.add("Write",N.Icon.FILE_TEXT,u),g.add("Preview",N.Icon.GIT_MERGE,c);var d=N.section("Editing schema value `"+t+"`:",N.Icon.MICROSCOPE,null,null,m,g),b=function(){return s("No schema entered","Please enter a valid schema or select one from the list before proceeding."),!1},f=function(){return s("Invalid schema","Please fix the errors in the schema before saving it."),!1};return x(d,[{name:"Save as reference",highlight:N.ButtonHighlights.INFO,action:function(){var t=u.getValue(),e=n!=t;if(!e&&l==a)return b();if(0==w(t))return f();if(e){var s=S(l,t);return s?(r(s),clearInterval(h),!0):!1}return r(l),clearInterval(h),!0}},{name:"Save as text",highlight:N.ButtonHighlights.WARNING,action:function(){var t=u.getValue();return""==t?b():0==w(t)?f():(m.getActualField().setValue(a),l="Untitled",r(t),clearInterval(h),!0)}},{name:"Cancel",highlight:N.ButtonHighlights.NO_HIGHLIGHT,action:function(){return clearInterval(h),!0}}])}function y(t,e){var r=R.schema.createSchema(e,null),s=null==r||null==r.getType?"text/plain":r.getType();t.setGrammar(s),t.setText(e)}function w(t){return!0}function S(t,e){var r,s,a=R.schema.createSchema(e,null),i={name:"JSON schemas",extensions:["json"]},o={name:"XML schemas",extensions:["xsd"]},n=D.dirname(Z.aquireManager().ast.lowLevel().unit().absolutePath());switch(a.getType()){case"source.json":s=[i],r=".json";break;case"text.xml":s=[o],r=".xsd";break;default:s=[]}var l=K.showSaveDialog(j.getCurrentWindow(),{title:"Save schema",defaultPath:D.resolve(n,"schemas",t+r),filters:s});if(null==l)return null;var p=D.basename(l),u=D.extname(p),c=p.substr(0,p.indexOf(u)),h=D.relative(n,l);return-1==Z.aquireManager().ast.elementsOfKind("schemas").map(function(t){return t.name()}).indexOf(c)&&z.createGlobalSchemaFromNameAndContent(Z.aquireManager().ast.root(),c,h,e,l),c}function T(t,e,r){var s=new N.AtomEditorElement(e.join("\n"),function(t){});s.margin(0,0,6,12),s.setMini(!1),s.setGrammar("source.gfm");var a=N.section("Editing markdown value `"+t+"`:",N.Icon.FILE_TEXT,!1,!1,N.h3("Please note that lines might be long enough so window would scroll.").margin(0,0,20,0),s);return L(a,function(){return r(s.getBinding().get()),!0},s)}function E(t,e,r,s){var a=P(function(t,e){e.indexOf("xml")>0?a.setGrammar("text.xml"):a.setGrammar("source.json")});a.setText(r);var i=D.dirname(Z.aquireManager().getPath()),o=new N.TextField("Referenced from",e,function(t,r){return e=r},null,"No reference path provided");o.addChild(new N.Button("Browse",N.ButtonSizes.SMALL,N.ButtonHighlights.NO_HIGHLIGHT,null,function(){var t=N.fdUtils.openFileDialogModal("Open a reference",D.resolve(i,e),[]);t&&(o.getActualField().setText(D.relative(i,e=t[0])),r=U.readFileSync(t[0]).toString("UTF-8"),a.setText(r))}).margin(4,0));var n=o.getActualField().ui();n.onclick=function(t){n.blur(),n.nextSibling.onclick&&n.nextSibling.onclick(t)};var l=(N.vc(N.h3("Referenced")),N.section("Editing example value `"+t+"`:",N.Icon.MICROSCOPE,null,null,o.margin(12,12,20,12),a.margin(12,12,20,12)));return x(l,[{name:"Save as reference",highlight:N.ButtonHighlights.INFO,action:function(){var t=a.getValue();if(r!=t){var o=C(D.resolve(i,e),t);return o?(s(D.relative(i,o)),!0):!1}return s(e),!0}},{name:"Save as text",highlight:N.ButtonHighlights.WARNING,action:function(){return void 0==s(a.getValue())||!0}},{name:"Cancel",highlight:N.ButtonHighlights.NO_HIGHLIGHT,action:function(){return!0}}])}function k(){X.pop(),0==X.length?et.destroy():et=atom.workspace.addModalPanel({item:X[X.length-1].ui()})}function C(t,e){var r={name:"JSON schemas",extensions:["json"]},s={name:"XML schemas",extensions:["xsd"]},a={name:"All files",extensions:["*"]},i=(e.indexOf("xml")<0?"json":"xml",N.fdUtils.saveFileDialogModal("Save an example",t,[r,s,a]));return i&&U.writeFileSync(i,e),i}function x(t,e,r,s){void 0===s&&(s=!1);var a=N.hc().setPercentWidth(100);e.reverse().forEach(function(e){var r=N.button(e.name,N.ButtonSizes.NORMAL,e.highlight,N.Icon.NONE,function(t){e.action()&&k()});if(e.isPrimary){var s=t.getBinding().status();s&&s.code==N.StatusCode.ERROR&&r.setDisabled(!0),t.getBinding().addStatusListener(function(e){var s=t.getBinding().status();s&&(s.code!=N.StatusCode.ERROR?r.setDisabled(!1):r.setDisabled(!0))})}r.setStyle("float","right").margin(4,10),a.addChild(r)}),t.addChild(a);var i=t.ui();return function(e){X.push(t);var a=function(){if(s){var t=i.parentElement,e=document.body.clientHeight;if(t){var r=window.getComputedStyle(t);["paddingBottom","paddingTop","marginBottom","marginTop"].forEach(function(t){e-=parseFloat(r[t]||0)}),i.style.height=e+"px",i.style.overflowY="scroll"}}};window.addEventListener("resize",a),et=atom.workspace.addModalPanel({item:i}),et.onDidDestroy(function(){window.removeEventListener("resize",a)}),a(),r&&r.ui().focus()}}function A(t){s(t,"")}function P(t){t||(t=function(t,e){});var e=new N.AtomEditorElement("",t);return e.setMini(!1),e.setStyle("height","400px"),e.setStyle("border","solid"),e.setStyle("border-width","1px"),e}function I(t){var e=Z.aquireManager().ast.elementsOfKind("schemas").filter(function(e){return e.name()==t})[0];return e?e.value().value():""}function L(t,e,r,s){return void 0===s&&(s=!1),x(t,[{name:"Ok",isPrimary:!0,highlight:N.ButtonHighlights.PRIMARY,action:e},{name:"Cancel",highlight:N.ButtonHighlights.NO_HIGHLIGHT,action:function(){return!0}}],r,s)}var N=r(18),O=r(62),R=r(22),D=r(16),B=R.ds,M=R.stubs,G=B,F=R.search,U=r(17),z=r(9),H=r(60),q=r(46),Z=r(5),V=r(47),j=r(63),K=j.require("dialog"),W=r(68),J=R.universes,Y=R.universeHelpers,X=[];e.showError=s;var Q=null,$=null;e.getStatusCodeDescriptions=i,e.newApi=o;var tt=function(t){var e=!1,r=t.definition().universe().type(J.Universe10.TypeDeclaration.name);r||(e=!0,r=t.definition().universe().type(J.Universe08.BodyLike.name));var s=r.property(J.Universe10.TypeDeclaration.properties.schema.name),a=[];return s&&(a=F.enumValues(s,t)),{isSchema:e,types:a}};e.newMethod=n,e.getStringValue=l,e.typeEditDialog=p,e.getResourceParent=h,e.enumEditDialog=m,e.newResource=d,e.newNode=b,e.traitsEditDialog=f,e.schemaEditDialog=v,e._updateEditor=y,e.markdown=T,e.exampleEditorDialog=E;var et=null;e.msg=A,e.smallEditor=P},function(t,e,r){t.exports=require("xmldom")},function(t,e,r){t.exports=require("yaml-ast-parser")},function(t,e,r){function s(t,e){return{close:function(){}}}var a=function(){function t(t){this.path=t}return t.prototype.getPath=function(){return this.path},t.prototype.close=function(){},t}();e.File=a,e.watch=s},function(t,e,r){function s(t){for(var e=atom.workspace.getTextEditors(),r=0;r<e.length;r++){var s=e[r];if(String(s.id)===t)return s}}function a(t){for(var e=atom.workspace.getTextEditors(),r=0;r<e.length;r++){var s=e[r];if(s.getPath()===t)return s}}function i(t){if(null==t)return atom.grammars.grammarsByScopeName["text.plain.null-grammar"];for(var e=n.extension(t),r=atom.grammars.getGrammars(),s=0;s<r.length;s++){var a=r[s];if(a.fileTypes.indexOf(e)>-1)return a}return atom.grammars.grammarsByScopeName["text.plain.null-grammar"]}function o(t,e){var r=document.createElement("atom-text-editor");r.setAttributeNode(document.createAttribute("gutter-hidden")),r.removeAttribute("tabindex");var s=r.getModel();return s.getDecorations({"class":"cursor-line",type:"line"})[0].destroy(),s.setText(t),s.setGrammar(e),r}var n=r(56);n.define({"text/xml":["xml"]}),e.getEditorById=s,e.getEditorByPath=a,e.getGrammerFromMime=i,e.codeToEditorElement=o},function(t,e,r){function s(t,e){for(var r=e.resources(),a=0;a<r.length;a++){var i=r[a],o=i.relativeUri();if(o===t)return i;if(t.substr(0,o.length)===o&&"/"===t[o.length]){var n=s(t.substr(o.length),i);if(n)return n}}}function a(t,e){for(var r=e.methods(),s=0;s<r.length;s++){var a=r[s];if(a.method()===t)return a}}function i(t,e){var r=t.api(),s=t.resource();e=m({queryParameters:{},uriParameters:{},headers:{},baseUriParameters:{}},e);var a=c(e.baseUri||r.baseUri().getOrElse(""),e.baseUriParameters,u(r.baseUriParameters())).replace(/\/$/,""),i=c(s.absoluteUri(),e.uriParameters,u(s.absoluteUriParameters())),o=h.stringify(e.queryParameters);return{url:a+i+(o?"?"+o:""),method:t.method(),postData:{text:e.body},queryString:Object.keys(e.queryParameters).map(function(t){return{name:t,value:e.queryParameters[t]}}),headers:Object.keys(e.headers).map(function(t){return{name:t,value:e.headers[t]}})}}function o(t){var e={url:t.url,method:t.method,body:t.postData&&t.postData.text,parse:!1,headers:{}};return t.headers.forEach(function(t){e.headers[t.name]=t.value}),e}function n(t){var e={status:t.status,headers:[],content:{text:t.body,mimeType:t.get("Content-Type")}};return Object.keys(t.headers).forEach(function(r){e.headers.push({name:t.name(r),value:t.get(r)})}),e}function l(t,e){var r={};return t&&e.forEach(function(e){var s=e.name();null!=t[s]&&(r[s]=t[s])}),r}function p(t,e){var r={};return t&&e.forEach(function(e){var s=e.name().toLowerCase();"content-type"!=s&&null!=t[s]&&(r[s]=t[s])}),r}function u(t){var e={};return t.forEach(function(t){var r=t.definitions().reduce(function(t,e){return t||e["default"]().getOrElse(void 0)||e["enum"]().getOrElse(void 0)},void 0);null!=r&&(e[t.name()]=r)}),e}function c(t,e,r){return t.replace(/\{([^{}]+)\}/g,function(t,s){return e&&null!=e[s]?e[s]:r&&null!=r[s]?r[s]:""})}var h=r(59),m=r(43);e.findResource=s,e.findMethod=a,e.request=i,e.toPopsicleRequest=o,e.fromPopsicleResponse=n,e.extractParameters=l,e.extractHeaders=p,e.extractDefaultParameters=u,e.template=c},function(t,e,r){function s(t){return"RAML10"==t.RAMLVersion()}function a(t){return"RAML08"==t.RAMLVersion()}function i(t,e,r){return 1===t?e:r}function o(t,e){for(var r=Object.keys(t),s=e.toLowerCase(),a=0;a<r.length;a++)if(r[a].toLowerCase()===s)return t[r[a]]}function n(t){var e=t.getKind()===b.NodeKind.ATTRIBUTE?t.value():t.name();if("string"!=typeof e&&(e=e.valueName()),!e&&t.getKind()===b.NodeKind.NODE){var r=t.wrapperNode();if("DocumentationItemImpl"===r.wrapperClassName())return r.title();if("ApiImpl"===r.wrapperClassName())return"Home"}return e}var l=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},p=r(64),u=r(42),c=r(43),h=r(65),m=r(66),g=r(67),d=r(22),b=d.hl,f=d.api10,_=d.api08,v=r(52),y=(d.ds,"·"),w={get:"btn-primary","get?":"btn-primary",post:"btn-success","post?":"btn-success","delete":"btn-error","delete?":"btn-error",put:"btn-warning","put?":"btn-warning",patch:"btn-info","patch?":"btn-info"},S=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.isSupportedNode=function(t){var e=t.wrapperClassName();switch(e){case"ObjectTypeDeclarationImpl":case"ResponseImpl":case"TypeDeclarationImpl":case"LibraryImpl":case"SecuritySchemePartImpl":case"LibraryImpl":case"SecuritySchemePartImpl":case"OAuth1SecuritySchemeSettingsImpl":case"OAuth2SecuritySchemeSettingsImpl":return!1;default:return!0}},e.prototype.renderNode=function(t){var e=c(this.props,{node:t});return"TraitImpl"===t.wrapperClassName()?u.createElement(A,e):"ResourceTypeImpl"===t.wrapperClassName()?u.createElement(O,e):"AbstractSecuritySchemeImpl"===t.wrapperClassName()||"OAuth1SecuritySchemeImpl"===t.wrapperClassName()||"OAuth2SecuritySchemeImpl"===t.wrapperClassName()?u.createElement(R,e):"ResourceImpl"===t.wrapperClassName()?u.createElement(D,e):"DocumentationItemImpl"===t.wrapperClassName()?u.createElement(U,e):"MethodImpl"===t.wrapperClassName()?u.createElement(H,e):"ApiImpl"===t.wrapperClassName()?u.createElement(E,e):u.createElement(Y,null,u.createElement(P,{title:"404"}),u.createElement(Y,null,"How did you get here? You shouldn't be here! Please ",u.createElement("a",{href:"https://github.com/mulesoft/api-workbench/issues"},"report me"),"."),u.createElement(Y,null,u.createElement("strong",null,"Reference: "+t.wrapperClassName())))},e.prototype.renderBreadcrumb=function(t,e){var r=this,s=[],a=[],i=t;if(this.props.errors.length)s.push(u.createElement("span",{key:"errors"},"Errors"));else{do a.unshift(i);while(i=i.parent());a.forEach(function(t,i){var o=i===a.length-1;t.getKind()===b.NodeKind.NODE&&r.isSupportedNode(t.wrapperNode())&&t.wrapperNode()!==e?s.push(u.createElement("a",{key:t.id(),onClick:function(){return r.props.navigate(t.id())}},n(t))):s.push(u.createElement("span",{key:"value"+i},n(t))),o||s.push(u.createElement("span",{key:"sep"+i}," "+y+" "))})}return u.createElement(Y,{className:"padded",style:{margin:0,flex:"0 0 auto"}},s)},e.prototype.getCurrentNode=function(){var t=this.props.raml,e=this.props.state;if(!t)return null;if(e.view.id){var r=t.highLevel().findById(e.view.id);if(r)return r}return t.highLevel()},e.prototype.wrapBody=function(t){return u.createElement(Y,{id:"raml-console-view",className:"padded",style:{overflow:"auto",height:"100%"}},t)},e.prototype.wrapContent=function(t,e){return u.createElement(Y,{style:{height:"100%",display:"flex",flexDirection:"column"}},t,this.wrapBody(e))},e.prototype.render=function(){if(!this.props.loaded)return u.createElement(x);var t,e=this.getCurrentNode();if(this.props.errors.length)return this.wrapBody(u.createElement(T,{errors:this.props.errors}));if(e.isElement())t=e.wrapperNode();else{var r=e.findReferencedValue();if(!r)return this.wrapContent(this.renderBreadcrumb(e),u.createElement(C,c(this.props,{highLevelNode:e})));t=r.wrapperNode()}for(;!this.isSupportedNode(t);)t=t.parent();return this.wrapContent(this.renderBreadcrumb(e,t),this.renderNode(t))},e}(m);e.Console=S;var T=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){return u.createElement(Y,null,u.createElement(P,{title:"Errors"}),u.createElement("ul",null,this.props.errors.map(function(t,e){return u.createElement("li",{key:e},t.message)})))},e}(m),E=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this,e=this.props.node;return u.createElement("div",null,u.createElement(P,{title:e.title()}),u.createElement(J,this.props),e.documentation().length?u.createElement(X,null,u.createElement("h3",{style:{marginTop:0}},"Documentation"),u.createElement("ul",null,e.documentation().map(function(e){var r=e.highLevel().id();return u.createElement("li",{key:r},u.createElement("a",{onClick:function(){return t.props.navigate(r)}},e.title()))}))):null,u.createElement(F,this.props))},e}(m),k=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this,e=this.props.method.method();return u.createElement("div",{onClick:function(){return t.props.navigate(t.props.method.highLevel().id())},className:h("btn inline-block",w[e])},e.toUpperCase())},e}(m),C=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this.props.highLevelNode;return u.createElement(Y,null,u.createElement(P,{title:"Missing Reference"}),"Unable to resolve reference: ",u.createElement("strong",null,t.id()))},e}(m),x=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){return u.createElement(Y,null,u.createElement("div",{className:"loading-spinner-medium inline-block"}),u.createElement("span",{className:"inline-block"},"Loading RAML…"))},e}(m),A=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this.props.node,e=t.highLevel().findReferences();return u.createElement(Y,null,u.createElement(P,{node:t,title:t.name(),type:"Trait"}),u.createElement(I,{text:t.usage(),title:"Usage"}),u.createElement(z,this.props),u.createElement(L,{references:e,navigate:this.props.navigate}))},e}(m),P=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this.props.title;return u.createElement("h1",{style:{marginTop:0}},this.props.node?u.createElement(Q,{node:this.props.node},t):t,this.props.type?u.createElement("small",null," ("+this.props.type+")"):null)},e}(m),I=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this.props.text;return t?u.createElement(Y,null,u.createElement("strong",null,this.props.title+": "),t):null},e}(m),L=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.formatNode=function(t){var e=[];do e.unshift(n(t));while(t=t.parent());return e.join(" "+y+" ")},e.prototype.render=function(){var t=this,e=this.props.references;return e.length?u.createElement(X,null,u.createElement("h3",null,"References ("+e.length+" Found)"),u.createElement("ul",null,e.map(function(e){var r=e.id(),s=e.parent();return u.createElement("li",{key:r},u.createElement("a",{onClick:function(){return t.props.navigate(s.id())}},t.formatNode(s)))}))):null},e}(m),N=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this,e=this.props.node,r=this.props.navigate,s=e.methods(),a=e.uriParameters();return u.createElement(Y,null,u.createElement(J,this.props),u.createElement($,{content:e.description()?e.description().value():null}),s.length?u.createElement(Y,null,s.map(function(e){return u.createElement(k,{key:e.method(),method:e,navigate:t.props.navigate})})):null,u.createElement(G,{parameters:a,title:"URI Parameters",navigate:r}))},e}(m),O=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this.props.node,e=t.highLevel().findReferences();return u.createElement(Y,null,u.createElement(P,{node:t,title:t.name(),type:"Resource Type"}),u.createElement(I,{text:t.usage(),title:"Usage"}),u.createElement(N,this.props),u.createElement(L,{references:e,navigate:this.props.navigate}))},e}(m),R=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this.props.node,e=t.highLevel().findReferences(),r="";return r=a(t)?t.name():t.displayName(),u.createElement(Y,null,u.createElement(P,{node:t,title:t.name(),type:"Security Scheme"}),u.createElement(I,{title:"Type",text:t.type()}),u.createElement(I,{title:"Display Name",text:r}),u.createElement($,{content:t.description()?t.description().value():null}),u.createElement(z,c(this.props,{node:t.describedBy()})),u.createElement(L,{references:e,navigate:this.props.navigate}))},e}(m),D=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this.props.node;return u.createElement(Y,null,u.createElement(P,{node:t,title:t.relativeUri().value(),type:"Resource"}),u.createElement(N,this.props),u.createElement(F,this.props))},e}(m),B=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this.props.node;if(null==t)return null;var e=t.type();return e||(e="string"),u.createElement(Y,null,u.createElement(Y,null,u.createElement("span",{key:e,className:"highlight",style:{marginRight:5}},e)))},e}(m),M=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.hasNamedSuperTypes=function(t){var e=t.superTypes();if(!e)return!1;var r=!1;return e.forEach(function(t){t.nameId()&&0!=t.nameId().indexOf("application/")&&(r=!0)}),r},e.prototype.renderDefinition=function(t,e){return u.createElement(Y,null,e?u.createElement(Y,null,u.createElement("span",{className:"highlight"},t.nameId())):null,this.hasNamedSuperTypes(t)?u.createElement(Y,null,u.createElement(Y,null,u.createElement("strong",null,"Super Types:")),t.superTypes().map(function(t){return u.createElement("span",{className:"highlight",style:{marginRight:5}},t.nameId())})):null,t.allProperties().length?u.createElement(Y,null,u.createElement("h5",null,"Properties"),t.allProperties().map(function(t){return u.createElement(Y,{key:t.nameId()},u.createElement(Y,null,u.createElement("strong",null,t.nameId()),t.isRequired()?" (required)":""),u.createElement(Y,null,t.description()))})):null,t.hasUnionInHierarchy()?u.createElement(Y,null,u.createElement(Y,null,u.createElement("strong",null,"Left: ")),this.renderDefinition(t.unionInHierarchy().leftType(),!0),u.createElement(Y,null,u.createElement("strong",null,"Right: ")),this.renderDefinition(t.unionInHierarchy().rightType(),!0)):null,t.hasArrayInHierarchy()?u.createElement(Y,null,u.createElement(Y,null,u.createElement("strong",null,"Item: ")),this.renderDefinition(t.arrayInHierarchy().componentType(),!0)):null)},e.prototype.render=function(){var t=this.props.node;return null==t?null:u.createElement(Y,null,"function"==typeof t.type?u.createElement(Y,null,t.type().map(function(t){return u.createElement("span",{key:t,className:"highlight",style:{marginRight:5}},t)})):null,this.renderDefinition(t.runtimeDefinition(),!1))},e}(m),G=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.summary=function(t){var e=[];return f.isFileTypeDeclaration(t)&&(t.fileTypes()&&e.push("fileTypes: "+t.fileTypes()),t.minLength()&&e.push("minLength: "+t.minLength()),t.maxLength()&&e.push("maxLength: "+t.maxLength())),f.isIntegerTypeDeclaration(t)&&(null!=t.minimum()&&e.push("minimum: "+t.minimum()),null!=t.maximum()&&e.push("maximum: "+t.maximum())),t.required()&&e.push("required"),t.repeat()&&e.push("repeat"),e.join(", ")},e.prototype.render=function(){var t=this;
if(!this.props.parameters.length)return null;this.props.navigate;return u.createElement(Y,null,u.createElement("h3",null,this.props.title),this.props.parameters.map(function(e){return u.createElement(Y,{key:e.name()},u.createElement("h4",null,u.createElement(Q,{node:e},e.name())),u.createElement(s(e)?M:B,{node:e}),u.createElement(Y,null,u.createElement("strong",null,t.summary(e))),u.createElement($,{content:e.description()?e.description().value():null}))}))},e}(m),F=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this,e=this.props.node;return u.createElement(Y,null,e.resources().map(function(e){var r=e.highLevel().id(),s=e.resources().length;return u.createElement(X,{key:r},u.createElement("h4",null,u.createElement(Q,{node:e},e.completeRelativeUri())," ",s?u.createElement("small",null,u.createElement("a",{onClick:function(){return t.props.navigate(r)}},"View "+s+" more "+i(s,"resource","resources"))):null),u.createElement($,{content:e.description()?e.description().value():null}),u.createElement(Y,null,e.methods().map(function(e){return u.createElement(k,{key:e.method(),method:e,navigate:t.props.navigate})})))}))},e}(m),U=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this.props.node;return u.createElement(Y,null,u.createElement(P,{node:t,title:t.title(),type:"Documentation"}),u.createElement($,{content:this.props.node.content()?this.props.node.content().value():null}))},e}(m),z=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.renderBody=function(t){var e=[];e.push(u.createElement("h4",null,u.createElement(Q,{node:t},t.name()))),s(t)&&e.push(u.createElement(M,{node:t}));var r=this.createSchemaPart(t);return r&&e.push(r),e.push(this.createExampleParts(t)),u.createElement(Y,{key:t.name()},e)},e.prototype.createExampleParts=function(t){var e=this;if(s(t)){var r=t,a=r.examples();if(a&&a.length>0)return a.map(function(r){var s=r.name()?r.name():"Example",a=r.displayName()?r.displayName():s;return u.createElement(K,{key:a,content:r.value(),title:"Example",name:s,mime:t.name(),setState:e.props.setState,state:e.props.state})});var i=r.example(),o=i?i.value():null;if(o&&"null"!=o&&"string"==typeof o)return[u.createElement(K,{content:o,title:"Example",mime:t.name(),setState:this.props.setState,state:this.props.state})]}else if(_.isBodyLike(t)){var n=t.example();if(!n)return[];var l=n.value();return l?[u.createElement(K,{content:l,title:"Example",mime:t.name(),setState:this.props.setState,state:this.props.state})]:[]}return[]},e.prototype.createSchemaPart=function(t){var e=null,r=null;if(_.isBodyLike(t))e=t.schema()?t.schema().value():"",(!e||-1!=e.indexOf("{")&&-1!=e.indexOf("}"))&&(e=""),r=t.schemaContent();else if(s(t)){var a=t;if(t.runtimeType()&&a.runtimeType().hasExternalInHierarchy()){var i=a.runtimeType().externalInHierarchy();i&&(e=null!=t.runtimeType().superTypes()&&1==t.runtimeType().superTypes().length&&t.runtimeType().superTypes()[0].nameId(),r=i.schema())}}return r?u.createElement(K,{key:void 0,content:r,title:"Schema",mime:t.name(),name:e,setState:this.props.setState,state:this.props.state}):null},e.prototype.render=function(){var t=this,e=this.props.node,r=this.props.navigate;if(!e)return null;var s=e.body();return u.createElement(Y,null,u.createElement($,{content:e.description()?e.description().value():null}),e.queryParameters().length?u.createElement(X,null,u.createElement(G,{parameters:e.queryParameters(),title:"Query Parameters",navigate:r})):null,u.createElement(G,{parameters:e.headers(),title:"Headers",navigate:r}),s.length?u.createElement(X,null,u.createElement("h3",null,"Body"),s.map(function(e){return t.renderBody(e)})):null,e.responses().length?u.createElement(X,null,u.createElement("h3",null,"Responses"),e.responses().map(function(e){return u.createElement(Y,{key:e.code().value()},u.createElement("h4",null,u.createElement(Q,{node:e.code()},e.code().value())),u.createElement($,{content:e.description()?e.description().value():null}),u.createElement(G,{parameters:e.headers(),title:"Headers",navigate:r}),e.body().map(function(e){return t.renderBody(e)}))})):null)},e}(m),H=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this.props,e=t.node,r=t.state.view.demo,s="ResourceImpl"===e.parent().wrapperClassName();return u.createElement(Y,null,u.createElement(P,{node:e,title:e.method().toUpperCase(),type:"Method"}),u.createElement(J,t),s?u.createElement(Y,null,u.createElement("div",{className:"btn btn-primary",onClick:function(){return t.navigate({demo:!r})}},r?"Read Documentation":"Make an API Request")):null,s&&r?u.createElement(q,t):u.createElement(z,t))},e}(m),q=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this,e=this.props.node,r=e.method(),s=this.props.state.body,a=this.props.state.securityScheme,i=this.props.pageState.requestProgress,o=e.body().map(function(t){return t.name()}),n=e.allSecuredBy().map(function(t){return t.securityScheme()}),l=n.filter(function(t){return null!=t&&t.name()===a})[0];return u.createElement(Y,null,n.length?u.createElement(Y,null,u.createElement("h3",null,"Security Scheme"),u.createElement(Y,null,u.createElement("select",{onChange:function(e){return t.props.setState({securityScheme:e.target.value})},className:"form-control",value:a},n.map(function(t){var e=null!=t?t.name():"null";return u.createElement("option",{key:e,value:null==t?"":t.name()},e)}))),l?u.createElement(Y,null,u.createElement(V,{title:void 0,prefix:"Security Scheme Query Parameter",parameters:l.describedBy().queryParameters(),values:this.props.state.queryParameters,change:function(e,r){return t.props.setParameter("queryParameters",e,r)}}),u.createElement(V,{title:void 0,prefix:"Security Scheme Header",parameters:l.describedBy().headers(),values:this.props.state.headers,change:function(e,r){return t.props.setParameter("headers",e,r)}})):null):null,u.createElement(V,{title:"Base URI Parameters",prefix:void 0,parameters:e.ownerApi().allBaseUriParameters(),values:this.props.state.baseUriParameters,change:function(e,r){return t.props.setParameter("baseUriParameters",e,r)}}),null,u.createElement(V,{title:"URI Parameters",prefix:void 0,parameters:e.parent().allUriParameters(),values:this.props.state.uriParameters,change:function(e,r){return t.props.setParameter("uriParameters",e,r)}}),u.createElement(V,{title:"Query Parameters",prefix:void 0,parameters:e.queryParameters(),values:this.props.state.queryParameters,change:function(e,r){return t.props.setParameter("queryParameters",e,r)}}),u.createElement(V,{title:"Headers",prefix:void 0,parameters:e.headers(),values:this.props.state.headers,change:function(e,r){return t.props.setParameter("headers",e,r)}}),o.length?u.createElement(Y,null,u.createElement("h3",null,"Body"),u.createElement(Y,null,u.createElement("select",{onChange:function(e){return t.props.setState({body:e.target.value})},className:"form-control",value:s},o.map(function(t){return u.createElement("option",{key:t},t)}))),u.createElement(j,{mini:!1,value:this.props.state.bodies[s],onChange:function(e){return t.props.setParameter("bodies",s,e)}})):null,u.createElement(Y,null,u.createElement("div",{className:h("btn inline-block",w[r]),onClick:function(){return t.props.execRequest()}},r.toUpperCase()),null==i?null:u.createElement("progress",{style:{marginLeft:5},className:"inline-block",max:isNaN(i)?null:"1",value:isNaN(i)?null:String(i)})),u.createElement(Z,this.props))},e}(m),Z=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this.props.pageState.requestError,e=this.props.pageState.requestResponse;if(t)return u.createElement(Y,{className:"text-error"},t);if(e){var r=o(e.headers,"content-type");return u.createElement(Y,null,u.createElement("h3",null,"Response"),u.createElement(Y,null,u.createElement("div",null,u.createElement("strong",null,"Status Code: "),e.status),u.createElement("div",null,u.createElement("strong",null,"Status Text: "),e.statusText),u.createElement("div",null,u.createElement("strong",null,"URL: "),e.url)),u.createElement(Y,null,u.createElement("h4",null,"Headers"),u.createElement(Y,null,e.rawHeaders.map(function(t,e){return e%2===0?u.createElement("strong",{key:e},t+": "):u.createElement("span",{key:e},t,u.createElement("br"))}))),e.body?u.createElement(Y,null,u.createElement("h4",null,"Body"),u.createElement(W,{content:e.body,mime:r,setState:this.props.setState,state:this.props.state})):null)}return null},e}(m),V=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this,e=this.props.values||{},r=this.props.parameters;return r.length?u.createElement(Y,null,this.props.title?u.createElement("h3",{className:"sub-title"},this.props.title):null,r.map(function(r){var s,a=r.name(),i=e[a],o=null==t.props.prefix?a:t.props.prefix+": "+a;return s=u.createElement(j,{mini:!0,value:i,placeholder:r["default"](),onChange:function(e){return t.props.change(a,e)}}),u.createElement(Y,{key:a},u.createElement("label",null,o,r.required()?" *":""),s)})):null},e}(m),j=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.componentDidMount=function(){var t=this.editor=document.createElement("atom-text-editor");this.updateModel(this.props),this.refs.container.getDOMNode().appendChild(t)},e.prototype.updateModel=function(t){var e=this.editor,r=e.getModel();this.cleanup(),r.setMini(t.mini),r.setPlaceholderText(t.placeholder),r.setGrammar(t.grammar),r.setText(t.value||""),t.readonly?e.removeAttribute("tabindex"):e.setAttribute("tabindex","0"),t.gutter===!1?e.setAttribute("gutter-hidden",""):e.removeAttribute("gutter-hidden"),t.onChange&&(this.disposable=r.onDidChange(function(){t.onChange(r.getText())}))},e.prototype.cleanup=function(){this.disposable&&(this.disposable.dispose(),this.disposable=null)},e.prototype.componentWillUnmount=function(){this.cleanup()},e.prototype.componentDidUpdate=function(){this.updateModel(this.props)},e.prototype.render=function(){return u.createElement("div",{ref:"container"})},e}(m),K=function(t){function e(){t.apply(this,arguments),this.state={visible:!1}}return l(e,t),e.prototype.render=function(){var t=this;if(!this.props.content)return null;var e=this.state.visible;return u.createElement(Y,{key:this.props.key},u.createElement("a",{onClick:function(){return t.setState({visible:!e})}},(e?"Hide":"Show")+" "+this.props.title),this.props.name?" ("+this.props.name+")":null,e?u.createElement("div",{style:{marginTop:5}},u.createElement(W,this.props)):null)},e}(m),W=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this,e=v.getGrammerFromMime(this.props.mime),r=this.props.content,s=e.fileTypes.indexOf("xml")>-1,a=e.fileTypes.indexOf("json")>-1,i=e.fileTypes.indexOf("css")>-1,o=s||a||i;if(this.props.state.pretty)try{s?r=g.pd.xml(r):a?r=g.pd.json(r):i&&(r=g.pd.css(r))}catch(n){}return u.createElement(Y,null,u.createElement(j,{value:r,grammar:e,readonly:!0}),o?u.createElement(Y,null,u.createElement("label",null,u.createElement("input",{type:"checkbox",onChange:function(e){return t.props.setState({pretty:e.target.checked})},checked:this.props.state.pretty,style:{marginRight:5}}),u.createElement("span",null,"Pretty data"))):null)},e}(m),J=(function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.getName=function(t){var e=t.value();return"string"==typeof e?e:e.valueName()},e.prototype.render=function(){var t=this.props.node;if(null==t.value())return null;var e=this.props.navigate,r=this.props.title,s=t.highLevel().id();return u.createElement("span",{className:"highlight",style:{margin:"0 5px 5px 0",cursor:"pointer",display:"inline-block"},onClick:function(){return e(s)}},u.createElement("strong",null,r+": "),this.getName(t))},e}(m),function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=[],e=this.props.node,r=this.props.navigate;return"ResourceImpl"===e.wrapperClassName()&&e.type()&&t.push(u.createElement("NavigateLabel",{title:"Type",key:"type",node:e.type(),navigate:r})),(f.isResource(e)||_.isResource(e)||f.isMethod(e)||_.isMethod(e))&&e.is().forEach(function(e,s){t.push(u.createElement("NavigateLabel",{title:"Trait",key:"is:"+s,node:e,navigate:r}))}),e.securedBy().forEach(function(e,s){t.push(u.createElement("NavigateLabel",{title:"Secured By",key:"securedBy:"+s,node:e,navigate:r}))}),u.createElement(Y,null,t)},e}(m)),Y=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){return u.createElement("div",c(this.props,{className:h(this.props.className,"block")}),this.props.children)},e}(m),X=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){return u.createElement(Y,null,u.createElement("atom-panel",null,u.createElement("div",{className:"padded"},this.props.children)))},e}(m),Q=(function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){return u.createElement("i",{className:h("icon icon-"+this.props.name,this.props.className)})},e}(m),function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.openInEditor=function(t){function e(t){var e=t.getBuffer().positionForCharacterIndex(a);t.setCursorBufferPosition(e)}var r,s=(atom.workspace.getTextEditors(),t.unit().absolutePath()),a=t.start();if(atom.config.get("api-workbench.openConsoleInSplitPane")){var i=atom.workspace.getPanes(),o=atom.workspace.getActivePane();1===i.length?(r="left",o.splitLeft({})):r=o===i[0]?"right":"left"}atom.workspace.open(s,{searchAllPanes:!0,split:r}).then(e)},e.prototype.render=function(){var t=this,e=this.props.node.highLevel().lowLevel(),r=null!=e.unit();return r?u.createElement("a",{onClick:function(){return t.openInEditor(e)}},this.props.children):u.createElement("span",null,this.props.children)},e}(m)),$=function(t){function e(){t.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t=this.props.content;return null==t?null:u.createElement(Y,{dangerouslySetInnerHTML:{__html:p(t)}})},e}(m)},function(t,e,r){function s(t){var e={};return t.forEach(function(t){return Object.keys(t).forEach(function(r){return e[r]=t[r]})}),e}function a(t,e){return new E(T.find(t||[],e))}function i(t){return Object.keys(t).map(function(e){return[e,t[e]]})}function o(t){var e={};return t.forEach(function(t){return e[t[0]]=t[1]}),e}function n(t,e){return e(t),t}function l(t,e){"object"==typeof t&&Object.keys(t).forEach(function(r){return e(r,t[r])})}function p(t,r,s){void 0===s&&(s=!1);var a={};return t.forEach(function(t){var i=e.shallowCopy(t);s&&delete i[r],a[t[r]]=i}),a}function u(t,e){var r=t.length-e.length;return r>=0&&t.lastIndexOf(e)===r}function c(t,e){return t.length-e.length>=0&&t.substring(0,e.length)===e}function h(t){return"_"==t[t.length-1]}function m(t,e,r){var s,a=!1;t[e]=function(){return a||(a=!0,s=r.apply(t)),s}}function g(t,r){void 0===r&&(r=h);for(var s in t)r(s)&&e.ifInstanceOf(t[s],Function,function(e){return 0===e.length?m(t,s,e):null})}function d(t,e){void 0!==t&&e(t)}function b(t){return"string"!=typeof t||""==t?!1:u(t,".raml")}function f(t){for(var e,r=[],s=new RegExp("require\\('([^']+)'\\)","gi");e=s.exec(t);)r.push(e[1]);for(var a=new RegExp('require\\("([^"]+)"\\)',"gi");e=a.exec(t);)r.push(e[1]);return r=T.unique(r).filter(function(t){return""!=t}),r.sort(),r}function _(t){return"undefined"!=typeof t&&null!=t}function v(t){return 0==t.length?t:t.charAt(0).toUpperCase()+t.substr(1)}function y(t,e,r){void 0===r&&(r=!1);var s=Object.keys(e);if(r){var a={};s.forEach(function(t){return a[t]=!0}),Object.keys(t).forEach(function(t){return a[t]=!0}),s=Object.keys(a)}s.forEach(function(r){var s=t[r];s instanceof Object?(e[r]||(e[r]={}),y(s,e[r],!0)):void 0!=s&&(e[r]=t[r])})}function w(t,e){return Object.keys(e).forEach(function(r){return t=S(t,r,e[r])}),t}function S(t,e,r){for(var s="",a=0,i=t.indexOf(e);i<t.length&&i>=0;i=t.indexOf(e,a))s+=t.substring(a,i),s+=r,a=i+e.length;return s+=t.substring(a,t.length)}var T=r(24),E=r(61);e.defined=function(t){return null!==t&&void 0!==t},e.flattenArrayOfObjects=s,e.find=a,e.isInstance=function(t,e){return t instanceof e?[t]:[]},e.ifInstanceOf=function(t,e,r){return t instanceof e?r(t):null},e.toTuples=i,e.fromTuples=o,e.collectInstancesOf=function(t,r){return n([],function(s){return t.forEach(function(t){return e.ifInstanceOf(t,r,function(t){return s.push(t)})})})},e.collectInstancesOfInMap=function(t,e){return Object.keys(t).map(function(e){return[e,t[e]]}).filter(function(t){return t[1]instanceof e}).map(function(t){return t})},e.asArray=function(t){return e.defined(t)?t instanceof Array?t:[t]:[]},e.shallowCopy=function(t){return n({},function(e){return Object.keys(t).forEach(function(r){return e[r]=t[r]})})},e.flatMap=function(t,r){return e.flatten(t.map(r))},e.flatten=function(t){return Array.prototype.concat.apply([],t)},e.takeWhile=function(t,e){return n([],function(r){for(var s=0;s<t.length&&e(t[s]);s++)r.push(t[s])})},e.tap=n,e.kv=l,e.indexed=p,e.stringEndsWith=u,e.stringStartsWith=c,e.lazypropkeyfilter=h,e.lazyprops=g,e.iff=d,e.isRAMLUrl=b,e.getAllRequiredExternalModulesFromCode=f,e.serial=function(){var t=0;return function(){return t++}}(),e.isEssential=_,e.firstToUpper=v,e.updateObject=y,e.replaceMap=w,e.replace=S},function(t,e,r){t.exports=require("mime")},function(t,e,r){t.exports=require("jsonix")},function(t,e,r){t.exports=require("w3c-schemas")},function(t,e,r){t.exports=require("querystring")},function(t,e,r){function s(t){if(t.length>0){if("'"==t.charAt(0))return'"'+t+'"';if('"'==t.charAt(0))return'"'+t+'"'}if(-1!=t.indexOf(" ")||-1!=t.indexOf(",")){if(-1==t.indexOf('"'))return'"'+t+'"';if(-1==t.indexOf("'"))return"'"+t+"'"}return t}function a(t,e){if(t.getAdapter(g.RAMLPropertyService).isKey()||t.isRequired())return null;if(t.domain()&&!t.domain().getAdapter(g.RAMLService).isUserDefined()){if(_.isDocumentationProperty(t)||_.isUsageProperty(t)||_.isDescriptionProperty(t)||_.isDisplayNameProperty(t)||_.isTitleProperty(t))return"Documentation";if(_.isAnnotationsProperty(t)||_.isIsProperty(t)||_.isSecuredByProperty(t)||_.isTypeProperty(t)&&!t.getAdapter(g.RAMLPropertyService).isTypeExpr())return"References";if(_.isProtocolsProperty(t))return"General"}return _.isTypeProperty(t)&&t.domain()&&!t.domain().getAdapter(g.RAMLService).isUserDefined()?null:e.property()&&t.domain()&&t.domain()!=e.property().range()?"Facets":"General"}function i(t,e){l.utils.updateType(t);var r=t.propertiesAllowedToUse(),s=new x(t);t.property()&&t.property().description()&&s.setDescription(t.property().description());var i=!1;if(t.definition()&&!t.parent()){var o=l.utils.getFragmentDefenitionName(t),n=t.definition().allSuperTypes();n.push(t.definition()),n.forEach(function(t){t.nameId&&t.nameId()===o&&(i=!0)})}if(r=r.filter(function(e){return i&&_.isNameProperty(e)?!1:_.isNameProperty(e)&&_.isApiType(t.definition())&&!e.domain().getAdapter(g.RAMLService).isUserDefined()?!1:_.isDisplayNameProperty(e)&&_.isApiType(t.definition())&&!e.domain().getAdapter(g.RAMLService).isUserDefined()?!1:!0}),r=r.sort(function(t,e){return t.getAdapter(g.RAMLPropertyService).isKey()?-1:e.getAdapter(g.RAMLPropertyService).isKey()?1:t.nameId()<e.nameId()?-1:1}),r.forEach(function(e){if(e.isValueProperty()){if(_.isAnnotationsProperty(e))return;if(_.isBooleanTypeType(e.range()))return;if(_.isMarkdownStringType(e.range()))return;if(e.getAdapter(g.RAMLPropertyService).isExampleProperty()&&"application/json"==t.name())return void s.addItemToCategory(a(e,t),new G(e,t));if(e.getAdapter(g.RAMLPropertyService).isExampleProperty()&&"application/xml"==t.name())return void s.addItemToCategory(a(e,t),new F(e,t));var r=t.attr(e.nameId());if(r&&"object"==typeof r.value())return void s.addItemToCategory(a(e,t),new V(e,t,r.value()));if(e.getAdapter(g.RAMLPropertyService).isTypeExpr()){var r=t.attr(e.nameId());if(r){var i=r.value();if("{"==i.trim().charAt(0))return void s.addItemToCategory(a(e,t),new z(e,t));if("<"==i.trim().charAt(0))return void s.addItemToCategory(a(e,t),new U(e,t))}}if(_.isSchemaProperty(e)&&e.domain()&&e.domain().isAssignableFrom(f.Universe10.TypeDeclaration.name))return;var o=j(e,t);o&&o.length>0&&e.domain()&&e.domain().getAdapter(g.RAMLService).isUserDefined()?_.isTypeProperty(e)&&t.definition().isAssignableFrom(f.Universe10.TypeDeclaration.name)?s.addItemToCategory(a(e,t),new q(e,t)):s.addItemToCategory(a(e,t),new H(e,t)):e.isMultiValue()?s.addItemToCategory(a(e,t),new I(e,t)):s.addItemToCategory(a(e,t),new P(e,t))}}),r.forEach(function(e){e.isValueProperty()&&_.isBooleanTypeType(e.range())&&s.addItemToCategory(a(e,t),new L(e,t))}),r.forEach(function(e){e.isValueProperty()&&_.isMarkdownStringType(e.range())&&s.addItemToCategory(a(e,t),new M(e,t))}),!e){s.addItemToCategory("Palette",new N(t));var p=d.calculateCurrentActions(d.TARGET_RAML_EDITOR_NODE),u=c.groupBy(p,function(t){return t.category.join("/")});for(var h in u)s.addItemToCategory("Palette",new O(t,h,u[h]))}return(t.definition().getAdapter(g.RAMLService).isUserDefined()||t.definition().isAssignableFrom(f.Universe10.TypeDeclaration.name))&&s.addItemToCategory("Type",new T(t)),s}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},n=r(17),l=r(22),p=l.ds,u=l.search,c=r(24),h=r(7),m=r(18),g=p,d=r(30),b=r(70),f=l.universes,_=l.universeHelpers,v=r(71),y=r(72),w=l.utils,S=function(){function t(t,e){void 0===e&&(e=""),this._title=t,this.description=e,this.listeners=[]}return t.prototype.needsSeparateLabel=function(){return!1},t.prototype.detach=function(){this.dispose(),this.children().forEach(function(t){return t.detach()})},t.prototype.addListener=function(t){this.listeners.push(t)},t.prototype.removeListener=function(t){this.listeners=this.listeners.filter(function(e){return e!=t})},t.prototype.add=function(t){throw new Error("Not supported")},t.prototype.root=function(){return this.parent?this.parent.root():this},t.prototype.title=function(){return this._title},t.prototype.children=function(){return[]},t.prototype.setDescription=function(t){this.description=t},t.prototype.setTitle=function(t){this._title=t},t.prototype.render=function(t){throw void 0===t&&(t={}),new Error("Not Implemented")},t.prototype.item=function(t){return null},t.prototype.setError=function(t){},t.prototype.clearErrors=function(){},t}();e.Item=S;var T=function(t){function e(e){t.call(this,"Type",""),this.node=e}return o(e,t),e.prototype.render=function(t){return v.render(this.node)},e.prototype.dispose=function(){},e}(S);e.TypeDisplayItem=T;var E,k=function(t){function e(){t.apply(this,arguments),this._children=[]}return o(e,t),e.prototype.add=function(t){t.parent=this,this._children.push(t)},e.prototype.children=function(){return this._children},e.prototype.plainChildren=function(){return this._children.filter(function(t){return!(t instanceof e)})},e.prototype.categories=function(){return this._children.filter(function(t){return t instanceof e})},e.prototype.item=function(t){var e;return this._children.forEach(function(r){r.title()==t&&(e=r);var s=r.item(t);s&&(e=s)}),e},e.prototype.render=function(t){var e=this;void 0===t&&(t={});var r=this.createSection(t);this._result=r,this.description&&t.showDescription&&(this.descriptionLabel=m.label(this.description),r.addChild(this.descriptionLabel)),this.contributeTop(r),this.plainChildren().forEach(function(t){return e.addChild(r,t)});var s=this.createWrappedChild(r);this.subCategories=s;var a=this.categories(),i={};a.forEach(function(t){return i[t.title()]=t});var o=[];i.General&&(o.push(i.General),delete i.General),i.Facets&&(o.push(i.Facets),delete i.Facets);for(var n in i)o.push(i[n]);return o.forEach(function(t){return e.addChild(s,t)}),r},e.prototype.detach=function(){t.prototype.detach.call(this),this._result.dispose()},e.prototype.createSection=function(t){if(t.showHeader)return new m.Section(m.h3(this.title()),!1);var e=new m.Panel;return e.setCaption(this.title()),e},e.prototype.createWrappedChild=function(t){return t},e.prototype.addChild=function(t,e){var r=e.render();if(t instanceof m.TabFolder){var s=t;s.add(r.caption(),m.Icon.NONE,r)}else{if(e.needsSeparateLabel()){var a=m.label(e.title());a.margin(0,5,0,0),t.addChild(a),t.addChild(m.label(e.description))}t.addChild(r)}},e.prototype.contributeTop=function(t){},e.prototype.dispose=function(){},e.prototype.setError=function(t){},e.prototype.clearErrors=function(){this._children.forEach(function(t){return t.clearErrors()})},e.prototype.update=function(t){},e}(S),C=!1,x=function(t){function e(e){t.call(this,e.definition().nameId(),e.definition().description()),this.node=e,this.ep=null}return o(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this._result.dispose()},e.prototype.createWrappedChild=function(t){var e=new m.TabFolder;return e.setOnSelected(function(){C||(E=e.selectedComponent().caption())}),t.addChild(e),e},e.prototype.subCategoryByNameOrCreate=function(t){var e=c.find(this.children(),function(e){return e.title()==t});if(!e){var r=new k(t);return this.add(r),r}return e},e.prototype.addItemToCategory=function(t,e){return null==t?(this._children.push(e),void(e.parent=this)):void this.subCategoryByNameOrCreate(t).add(e)},e.prototype.contributeTop=function(t){this.errorLabel=m.label("",m.Icon.BUG,m.TextClasses.ERROR),this.ep=m.hc(this.errorLabel),this.ep.setDisplay(!1),t.addChild(this.ep)},e.prototype.render=function(e){void 0===e&&(e={}),C=!0;try{var r=t.prototype.render.call(this,e);this._options=e,this._panel=r;for(var s=this.subCategories,a=0;a<s.tabsCount();a++){var i=s.get(a);if(i.header==E)return s.setSelectedIndex(a),r}var o="";return o=this.node.property()?this.node.property().description():this.node.definition().description(),o.length&&!e.showDescription&&(r.addChild(m.html("<hr/>")),r.addChild(m.label(o,m.Icon.INBOX,m.TextClasses.SUBTLE))),this.update(this),r}finally{C=!1}},e.prototype.dispose=function(){this.node=null},e.prototype.update=function(t){var e=this;if(this._panel){if(t instanceof P){var r=t;if(r.property.getAdapter(g.RAMLPropertyService).isTypeExpr()||r.property.isDescriminator()){l.utils.updateType(this.node);var s=this.item("Facets");s&&s._result&&s._result.clear();var a=i(this.node,!1),o=a.item("Facets");o?s&&s._result?(s._children=o._children,s._children.forEach(function(t){return t.parent=s}),s._children.length>0&&s._result.setDisplay(!0),o.children().forEach(function(t){s._result.addChild(t.render(e._options))})):(this._children.push(o),this._panel&&this._panel.addChild(o.render(this._options))):s&&s._result&&s._result.setDisplay(!1)}}var n=null;if(this.node.definition().allProperties().forEach(function(t){t.getAdapter(g.RAMLPropertyService).isKey()&&(n=t)}),n){var p=this.item(n.nameId());if(p){var u=p.fld,c=u.getBinding().get();c&&0!=c.trim().length?this._panel.getBinding().setStatus(m.okStatus()):this._panel.getBinding().setStatus(m.errorStatus(""))}}var h=this.node.errors();if(this.clearErrors(),this.ep.setDisplay(!1),!w.hasAsyncRequests()&&h&&h.length>0){var d=[];if(h.forEach(function(t){t.extras&&t.extras.length>0&&(t=t.extras[0]);var r=e.item(t.node.name());r?r.setError(t.message):d.push(t)}),d.length>0){this.errorLabel.setIcon(m.Icon.BUG);var b=d.map(function(t){return t.node.name()+":"+t.message}).join(",");b.length>100&&(b=b.substring(0,100)+"..."),this.errorLabel.setText(b),this.ep.setDisplay(!0)}else this.ep.setDisplay(!1)}}},e}(k),A=function(t){function e(){t.apply(this,arguments)}return o(e,t),e.prototype.setLabelWidth=function(t){this.setStyle("margin-left",t+2+"ch")},e}(m.CheckBox),P=function(t){function e(e,r){var s=this;t.call(this,e.nameId(),e.description()),this.property=e,this.node=r,this.rendered=!1,this.update=function(t,e){s.rendered&&s.fromEditorToModel(t,e)}}return o(e,t),e.prototype.dispose=function(){this.property=null,this.node=null,this.fld.getBinding().removeListener(this.update)},e.prototype.getDefaultValue=function(){return y.getDefaultValue(this.node,this.property)},e.prototype.hasDefault=function(){return y.hasDefault(this.property)},e.prototype.clearErrors=function(){this.setError(null)},e.prototype.setError=function(t){t?(this.errorLabel.setText(t),this.errorLabel.setDisplay(!0)):this.errorLabel&&this.errorLabel.setDisplay(!1)},e.prototype.fromEditorToModel=function(t,e){var r=this.fld,s=this.toLocalValue(r.getBinding().get());null==s&&(s=""),s===!0&&(s="true"),s===!1&&(s="");var a=this.node.attr(this.property.nameId()),i="";if(a){var o=this.toLocalValue(this.toUIValue(a.value()));o&&(i=""+o)}if(i!=s){if(s.length>0){if(a&&a.lowLevel().includePath()){var l=a.lowLevel().includePath(),p=a.lowLevel().unit().resolve(l);if(p){var u=p.absolutePath();n.writeFileSync(u,s)}return}a=this.node.attrOrCreate(this.property.nameId()),a.setValue(""+s)}else a&&(this.property.getAdapter(g.RAMLPropertyService).isKey()||a.remove());a.lowLevel()&&a.lowLevel().unit()&&a.lowLevel().unit()!=this.node.lowLevel().unit()&&h.saveUnit(a.lowLevel().unit());var c=this.root();c&&c.update(this)}},e.prototype.toLocalValue=function(t){return t},e.prototype.toUIValue=function(t){return t},e.prototype.fromModelToEditor=function(){var t=this.node.attr(this.property.nameId());if(t||this.hasDefault()){var e=t?t.value():this.getDefaultValue();null==e&&(e=""),this.fld.getBinding().set(this.toUIValue(""+e))}},e.prototype.render=function(){var t=new m.WrapPanel;this.errorLabel=m.label("",m.Icon.BUG,m.TextClasses.ERROR),this.errorLabel.setDisplay(!1),this.errorLabel.setStyle("margin-left",this._title.length+1+"ch");var e=this.createField();this.fld=e,e.getBinding().addListener(this.update),t.setCaption(this.title()),this.fromModelToEditor(),t.addChild(e);var r=this.node.attr(this.property.nameId());if(r)var s=r.value();var a=this.property.valueDocProvider();if(a){var i=a(s);null==i&&(i="");var o=m.label(i,m.Icon.INFO,m.TextClasses.SUBTLE);i||o.setDisplay(!1),t.addChild(o),e.getBinding().addListener(function(t){var r=a(e.getBinding().get());r||(r=""),o.setText(r),o.setDisplay(r.length>0)}),o.setStyle("margin-left",this._title.length+1+"ch")}return r&&r.lowLevel().includePath()&&t.addChild(m.label("Included from "+r.lowLevel().includePath(),m.Icon.INFO,m.TextClasses.SUBTLE)),t.addChild(this.errorLabel),this.rendered=!0,t},e.prototype.createField=function(){return m.texfField(this.needsSeparateLabel()?"":this.property.nameId(),"",function(t){})},e}(S),I=function(t){function e(){t.apply(this,arguments)}return o(e,t),e.prototype.fromEditorToModel=function(){var t=this.fld,e=t.getBinding().get();null==e&&(e="");var r=this.node.attributes(this.property.nameId()),a=r.map(function(t){return s(""+t.value())}).join(", ");if(a!=e){var i=e.split(","),e=i.filter(function(t){return t.trim().length>0}).map(function(t){return t.trim()}),o=this.node.attrOrCreate(this.property.nameId());o.setValues(e);var n=this.root();n&&n.update(this)}},e.prototype.fromModelToEditor=function(){var t=this.node.attributes(this.property.nameId()),e=t.map(function(t){return s(""+t.value())}).join(", ");this.fld.getBinding().set(e)},e}(P),L=function(t){function e(){t.apply(this,arguments)}return o(e,t),e.prototype.createField=function(){return new A(this.property.nameId(),m.Icon.NONE,function(t){})},e.prototype.toUIValue=function(t){return t&&"true"===t.trim()?!0:!1},e.prototype.toLocalValue=function(t){return t+""},e}(P),N=function(t){function e(e){t.call(this,"Actions",""),this.node=e}return o(e,t),e.prototype.render=function(t){return b.generateSuggestionsPanel(this.node)},e.prototype.dispose=function(){this.node=null},e}(S),O=function(t){function e(e,r,s){t.call(this,r,""),this.actions=s}return o(e,t),e.prototype.dispose=function(){},e.prototype.render=function(t){var e=m.hc();return e.addChild(m.h3(this.title())),this.actions.forEach(function(t){e.addChild(m.button(t.name,m.ButtonSizes.EXTRA_SMALL,m.ButtonHighlights.SUCCESS,m.Icon.CHECKLIST,function(e){
return t.onClick()}).margin(3,3,3,3))}),e},e}(S),R=function(t){function e(e,r){t.call(this,e,r),this.margin(0,0,6,12),this.setMini(!1),this.setStyle("min-height","100px"),this.setStyle("border","solid"),this.setStyle("border-width","1px"),this.setStyle("border-radius","2px"),this.setStyle("font-size","1.15em"),this.setStyle("border-color","rgba(0,0,0,0.2)"),this.setGrammar("source.gfm")}return o(e,t),e.prototype.setLabelWidth=function(){},e.prototype.setLabelHeight=function(){},e.prototype.setRequired=function(t){},e}(m.AtomEditorElement),D=function(t){function e(e,r){t.call(this,e,r),this.margin(0,0,6,12),this.setMini(!1),this.setStyle("min-height","100px"),this.setStyle("border","solid"),this.setStyle("border-width","1px"),this.setStyle("border-radius","2px"),this.setStyle("font-size","1.15em"),this.setStyle("border-color","rgba(0,0,0,0.2)"),this.setGrammar("text.xml")}return o(e,t),e.prototype.setLabelWidth=function(){},e.prototype.setLabelHeight=function(){},e.prototype.setRequired=function(t){},e}(m.AtomEditorElement),B=function(t){function e(e,r){t.call(this,e,r),this.margin(0,0,6,12),this.setMini(!1),this.setStyle("min-height","100px"),this.setStyle("border","solid"),this.setStyle("border-width","1px"),this.setStyle("border-radius","2px"),this.setStyle("font-size","1.15em"),this.setStyle("border-color","rgba(0,0,0,0.2)"),this.setGrammar("source.json")}return o(e,t),e.prototype.setLabelWidth=function(){},e.prototype.setLabelHeight=function(){},e.prototype.setRequired=function(t){},e}(m.AtomEditorElement),M=function(t){function e(){t.apply(this,arguments)}return o(e,t),e.prototype.createField=function(){var t=new R("",function(t){});return t},e.prototype.needsSeparateLabel=function(){return!0},e}(P),G=function(t){function e(){t.apply(this,arguments)}return o(e,t),e.prototype.createField=function(){var t=new B("",function(t){});return t},e.prototype.needsSeparateLabel=function(){return!0},e}(P),F=function(t){function e(){t.apply(this,arguments)}return o(e,t),e.prototype.createField=function(){var t=new D("",function(t){});return t},e.prototype.needsSeparateLabel=function(){return!0},e}(P),U=function(t){function e(){t.apply(this,arguments)}return o(e,t),e.prototype.createField=function(){var t=new D("",function(t){});return t},e.prototype.needsSeparateLabel=function(){return!0},e}(P),z=function(t){function e(){t.apply(this,arguments)}return o(e,t),e.prototype.createField=function(){var t=new B("",function(t){});return t},e.prototype.needsSeparateLabel=function(){return!0},e}(P),H=function(t){function e(){t.apply(this,arguments)}return o(e,t),e.prototype.createField=function(){var t=j(this.property,this.node),e=this.node.attr(this.property.nameId());e&&(c.find(t,function(t){return t==e.value()})||t.push(e.value())),this.property.isRequired()||this.property.getAdapter(g.RAMLPropertyService).isKey()||(t=[""].concat(t));var r=new m.SelectField(this.property.nameId(),function(t){},"",m.Icon.NONE,t);return r.getActualField().setOptions(t),r},e}(P),q=function(t){function e(){t.apply(this,arguments)}return o(e,t),e.prototype.fromEditorToModel=function(e,r){var s=this,a=[],i=[];if(e&&r)try{this.node.definition().allSuperTypes().forEach(function(t){s.isAllowedTypeToReplaceFacets(t)&&s.addTypeFacets(t,a)}),i=[].concat(this.node.attrs())}catch(o){console.log(o)}if(t.prototype.fromEditorToModel.call(this),e&&r)try{var n=(this.node.definition().universe(),[]);this.node.definition().allSuperTypes().forEach(function(t){s.isAllowedTypeToReplaceFacets(t)&&s.addTypeFacets(t,n)}),a.length>0&&n.length>0&&i.forEach(function(t){c.find(a,function(e){return e==t.name()})&&!c.find(n,function(e){return e==t.name()})&&s.node.remove(t)})}catch(o){console.log(o)}},e.prototype.isAllowedTypeToReplaceFacets=function(t){return t.key()==f.Universe10.StringTypeDeclaration||t.key()==f.Universe10.BooleanTypeDeclaration||t.key()==f.Universe10.NumberTypeDeclaration||t.key()==f.Universe10.IntegerTypeDeclaration},e.prototype.addTypeFacets=function(t,e){t.properties().map(function(t){return t.nameId()}).forEach(function(t){return e.push(t)})},e}(H),Z=function(t){function e(e,r){t.call(this),this.str=e;var s=e.lowLevel(),a={render:function(t){var e=(t.key(),t.value());"string"!=typeof e&&(e=""),e.length>30&&(e=e.substring(0,20)+"...");var r=m.label(t.key(),m.Icon.CIRCUIT_BOARD,m.TextClasses.HIGHLIGHT);e=m.label(e?":"+e:"",m.Icon.NONE,m.TextClasses.SUCCESS);var s=m.hc(r,e);return s}},i=m.treeViewer(function(t){return t.children()},a,function(t){return t.key()}),o={children:function(){return[s]}};i.setInput(o),this.addChild(m.label(r)),this.addChild(i)}return o(e,t),e.prototype.setLabelWidth=function(){},e.prototype.setLabelHeight=function(){},e.prototype.setRequired=function(t){},e}(m.Panel),V=function(t){function e(e,r,s){t.call(this,e,r),this.stvalue=s}return o(e,t),e.prototype.createField=function(){var t=new Z(this.stvalue,this.title()+":");return t},e}(P),j=function(t,e){var r=u.enumValues(t,e);if(_.isNameProperty(t)&&e.definition().isAssignableFrom(f.Universe10.TypeDeclaration.name)&&e.property()&&_.isBodyProperty(e.property())&&!(e.property()instanceof p.UserDefinedProp))return e.parent()&&_.isMethodType(e.parent().definition())?["application/json","application/xml","multipart/form-data","application/x-www-form-urlencoded"]:["application/json","application/xml"];if(!r||0==r.length){var s=t.suggester();s&&(r=s(e)),r&&0!=r.length||(r=t.getOftenKeys())}return c.unique(r)};e.buildItem=i},function(t,e,r){var s,a=r(69),i=function(t){return null!=t},o=function(){function t(e){var r=this;this._value=e,this._isDefined=!1,this._isEmpty=!0,this._arr=void 0,this.getOrThrow=function(){return a(r._isDefined,"Opt is empty. Use `Opt#getOrElse` or check `Opt#isDefined`."),r._value},this.value=function(){return r._value},this.isDefined=function(){return r._isDefined},this.isEmpty=function(){return r._isEmpty},this.toArray=function(){return r._arr||(r._arr=r._isDefined?[r._value]:[])},this.getOrElse=function(t){return r._isDefined?r._value:t},this.getOrElseF=function(t){return r._isDefined?r._value:t()},this.map=function(e){return r._isEmpty?t.empty():new t(e(r._value))},this.flatMap=function(e){return r.map(e).getOrElse(t.empty())},this.equals=function(e){return a(e instanceof t,"Expected other to be an `Opt`, but got `%s`",typeof e),r._isDefined===e.isDefined()&&r._value===e.value()},i(this._value)&&(this._isDefined=!0,this._isEmpty=!1)}return t.prototype.forEach=function(t){this.isDefined()&&t(this._value)},t.empty=function(){return s||(s=new t)},t}();t.exports=o},function(t,e,r){t.exports=require("know-your-http-well")},function(t,e,r){t.exports=require("remote")},function(t,e,r){t.exports=require("marked")},function(t,e,r){t.exports=require("classnames")},function(t,e,r){t.exports=require("react-pure-render/component")},function(t,e,r){t.exports=require("pretty-data")},function(t,e,r){var s=function(){function t(){}return t}();e.KeyValuePair=s;var a=function(){function t(t){var e=this;void 0===t&&(t=[]),this.mappings=[],t.forEach(function(t){return e.mappings.push(t)})}return t.prototype.volume=function(){return this.mappings.length},t.prototype.pairs=function(){return[].concat(this.mappings)},t.prototype.set=function(t,e){var r=this.mappings.filter(function(e){return e.key==t});0==r.length?this.mappings.push({key:t,value:e}):r[0].value=e},t.prototype.get=function(t){var e=this.mappings.filter(function(e){return e.key==t});return 0==e.length?null:e[0].value},t.prototype.map=function(t){return this.mappings.map(function(t){return t.value}).map(t)},t.prototype.forEach=function(t){this.mappings.map(function(t){return t.value}).forEach(t)},t.prototype.filter=function(t){return this.mappings.map(function(t){return t.value}).filter(t)},t}();e.Map=a},function(t,e,r){t.exports=require("invariant")},function(t,e,r){function s(t){var e=t.definition().allProperties(),r=a.vc(),s=a.hc();return r.addChild(a.h3("Insertions and Delete: ")),r.addChild(s),e.forEach(function(e){if(!(e.isValueProperty()||e.getAdapter(p.RAMLPropertyService).isMerged()||l.find(t.lowLevel().children(),function(t){return t.key()==e.nameId()})||t.lowLevel().includesContents())){var r=new c("",e,t);s.addChild(a.button(e.nameId(),a.ButtonSizes.EXTRA_SMALL,a.ButtonHighlights.INFO,a.Icon.NONE,function(t){return r.insert()}).margin(3,3,3,3))}}),e.forEach(function(e){if(!e.isValueProperty()&&e.getAdapter(p.RAMLPropertyService).isMerged()){var r=e.enumOptions();return void(r&&r.forEach(function(r){if(!l.find(t.lowLevel().children(),function(t){return t.key()==r})&&!t.lowLevel().includesContents()){var i=new c(r,e,t);s.addChild(a.button(r,a.ButtonSizes.EXTRA_SMALL,a.ButtonHighlights.WARNING,a.Icon.NONE,function(t){return i.insert()}).margin(3,3,3,3))}}))}}),s.addChild(a.button("Delete",a.ButtonSizes.EXTRA_SMALL,a.ButtonHighlights.ERROR,a.Icon.NONE,function(e){return t.parent().remove(t)}).margin(3,3,3,3)),r}var a=r(18),i=r(22),o=i.universes,n=i.stubs,l=r(24),p=i.ds,u=r(5),c=function(){function t(t,e,r){this.value=t,this.property=e,this.node=r}return t.prototype.insert=function(){var t=this.property.range(),e=this.value;this.property.nameId()==o.Universe10.Method.properties.body.name&&(e="application/json"),this.property.nameId()==o.Universe10.MethodBase.properties.responses.name&&(e="200");var r=n.createStubNode(t,this.property,e);u.aquireManager()._cleanOutline=!0,this.node.add(r),u.aquireManager().patchCurrentNode(this.node)},t}();e.generateSuggestionsPanel=s},function(t,e,r){function s(t){var e=t.wrapperNode(),r=e.highLevel().localType();return n(r)}var a=r(18),i=r(22),o=i.ds,n=function(t){var e=a.vc();e.addChild(a.label("definition:"+t.nameId()));var r=t.properties(),s=t.superTypes();s&&(e.addChild(a.h3("Super types:")),t.allSuperTypes().forEach(function(t){e.addChild(a.hc(a.label(t.nameId(),a.Icon.TAG)))}));var i=t.getAdapter(o.RAMLService).getRepresentationOf();if(i){var l=i.getFixedFacets();Object.keys(l).length>0&&(e.addChild(a.h3("All facets")),Object.keys(l).forEach(function(t){e.addChild(a.label(t+":"+l[t].value()))}))}return r&&r.length>0&&(e.addChild(a.h3("All properties")),r.forEach(function(t){e.addChild(a.hc(a.label(t.nameId(),a.Icon.LINK),a.label(": "+t.range().nameId(),a.Icon.NONE,a.TextClasses.WARNING)))})),t.hasArrayInHierarchy()&&(e.addChild(a.h3("Component type:")),e.addChild(n(t.arrayInHierarchy().componentType()))),t.hasUnionInHierarchy()&&(e.addChild(a.h3("Union type:")),e.addChild(a.h3("Left:")),e.addChild(n(t.unionInHierarchy().leftType())),e.addChild(a.h3("Right:")),e.addChild(n(t.unionInHierarchy().rightType()))),e};e.render=s},function(t,e,r){function s(t,e){return e.nameId()===n.Universe10.TypeDeclaration.properties.required.name?t.name().indexOf("?")==t.name().length-1:void 0}function a(t){return t.nameId()===n.Universe10.TypeDeclaration.properties.required.name?!0:!1}var i=r(22),o=i.ds,n=o.universesInfo;e.getDefaultValue=s,e.hasDefault=a}]);
//# sourceMappingURL=main.js.map