{"size": 73631, "ext": "js", "max_stars_repo_path": "dist/swagger-ui.min.js", "max_stars_repo_name": "looker/swagger-ui", "max_stars_repo_stars_event_min_datetime": "2018-09-26T12:56:41.000Z", "max_stars_repo_stars_event_max_datetime": "2019-06-05T16:21:50.000Z", "max_issues_repo_path": "dist/swagger-ui.min.js", "max_issues_repo_name": "looker/swagger-ui", "max_issues_repo_issues_event_min_datetime": "2016-09-27T23:57:15.000Z", "max_issues_repo_issues_event_max_datetime": "2020-01-09T00:40:20.000Z", "max_forks_repo_path": "dist/swagger-ui.min.js", "max_forks_repo_name": "looker/swagger-ui", "max_forks_repo_forks_event_min_datetime": "2017-05-04T20:32:57.000Z", "max_forks_repo_forks_event_max_datetime": "2017-05-04T20:32:57.000Z"}
{"max_stars_count": 3, "max_issues_count": 6, "max_forks_count": 1, "avg_line_length": 73631.0, "max_line_length": 73631, "alphanum_fraction": 0.6551724138}
$(function(){$.fn.vAlign=function(){return this.each(function(c){var a=$(this).height();var d=$(this).parent().height();var b=(d-a)/2;$(this).css("margin-top",b)})};$.fn.stretchFormtasticInputWidthToParent=function(){return this.each(function(b){var d=$(this).closest("form").innerWidth();var c=parseInt($(this).closest("form").css("padding-left"),10)+parseInt($(this).closest("form").css("padding-right"),10);var a=parseInt($(this).css("padding-left"),10)+parseInt($(this).css("padding-right"),10);$(this).css("width",d-c-a)})};$("form.formtastic li.string input, form.formtastic textarea").stretchFormtasticInputWidthToParent();$("ul.downplayed li div.content p").vAlign();$("form.sandbox").submit(function(){var a=true;$(this).find("input.required").each(function(){$(this).removeClass("error");if($(this).val()==""){$(this).addClass("error");$(this).wiggle();a=false}});return a})});function clippyCopiedCallback(b){$("#api_key_copied").fadeIn().delay(1000).fadeOut()}log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){console.log(Array.prototype.slice.call(arguments)[0])}};if(Function.prototype.bind&&console&&typeof console.log=="object"){["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(a){console[a]=this.bind(console[a],console)},Function.prototype.call)}var Docs={navigate_to_topic:function(a){var b="!";if(a.api_version){b+="/"+a.api_version}if(a.group){b+="/"+a.group;if(a.topic){b+="/"+a.topic}}location.hash=b},shebang_parse_topic:function(a){const b=a.match(/^#?!(?:\/(\d+\.\d+))?(?:\/(\w+)(?:\/(\w+))?)?/);if(b){return{api_version:b[1],group:b[2],topic:b[3],}}return null},show_topic:function(b){if(b){if(b.group){Docs.expandEndpointListForResource(b.group);document.getElementById("resource_"+b.group).scrollIntoView();if(b.topic){const a=b.group+"_"+b.topic;Docs.expandOperation(document.getElementById(a+"_content"));document.getElementById(a).scrollIntoView()}}}},toggleEndpointListForResource:function(a){$("li#resource_"+Docs.escapeResourceName(a)+" ul.endpoints").collapse("toggle")},expandEndpointListForResource:function(a){var a=Docs.escapeResourceName(a);if(a==""){$(".resource ul.endpoints").show();return}$("li#resource_"+a+" ul.endpoints").show()},collapseEndpointListForResource:function(a){var a=Docs.escapeResourceName(a);$("li#resource_"+a+" ul.endpoints").hide()},expandOperationsForResource:function(a){Docs.expandEndpointListForResource(a);if(a==""){$(".resource ul.endpoints li.operation div.content").show();return}$("li#resource_"+Docs.escapeResourceName(a)+" li.operation div.content").each(function(){Docs.expandOperation($(this))})},collapseOperationsForResource:function(a){Docs.expandEndpointListForResource(a);$("li#resource_"+Docs.escapeResourceName(a)+" li.operation div.content").each(function(){Docs.collapseOperation($(this))})},escapeResourceName:function(a){return a.replace(/[!"#$%&'()*+,.\/:;<=>?@\[\\\]\^`{|}~]/g,"\\$&")},expandOperation:function(a){(a.style||a[0].style).display="block"},collapseOperation:function(a){(a.style||a[0].style).display="none"},};(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.apikey_button_view=b({compiler:[8,">= 4.3.0"],main:function(c,h,f,d,g){var e;return"<div class='auth_button' id='apikey_button'><img class='auth_icon' alt='apply api key' src='images/apikey.jpeg'></div>\n<div class='auth_container' id='apikey_container'>\n  <div class='key_input_container'>\n    <div class='auth_label'>"+c.escapeExpression(((e=(e=f.keyName||(h!=null?h.keyName:h))!=null?e:c.hooks.helperMissing),(typeof e==="function"?e.call(h!=null?h:(c.nullContext||{}),{name:"keyName",hash:{},data:g,loc:{start:{line:4,column:28},end:{line:4,column:39}}}):e)))+'</div>\n    <input placeholder="api_key" class="auth_input" id="input_apiKey_entry" name="apiKey" type="text"/>\n    <div class=\'auth_submit\'><a class=\'auth_submit_button\' id="apply_api_key" href="#">apply</a></div>\n  </div>\n</div>\n\n'},useData:true})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.basic_auth_button_view=b({compiler:[8,">= 4.3.0"],main:function(c,g,e,d,f){return'<div class=\'auth_button\' id=\'basic_auth_button\'><img class=\'auth_icon\' src=\'images/password.jpeg\'></div>\n<div class=\'auth_container\' id=\'basic_auth_container\'>\n  <div class=\'key_input_container\'>\n    <div class="auth_label">Username</div>\n    <input placeholder="username" class="auth_input" id="input_username" name="username" type="text"/>\n    <div class="auth_label">Password</div>\n    <input placeholder="password" class="auth_input" id="input_password" name="password" type="password"/>\n    <div class=\'auth_submit\'><a class=\'auth_submit_button\' id="apply_basic_auth" href="#">apply</a></div>\n  </div>\n</div>\n\n'},useData:true})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.content_type=b({"1":function(c,h,f,d,g){var e;return((e=f.each.call(h!=null?h:(c.nullContext||{}),(h!=null?h.produces:h),{name:"each",hash:{},fn:c.program(2,g,0),inverse:c.noop,data:g,loc:{start:{line:4,column:2},end:{line:6,column:10}}}))!=null?e:"")},"2":function(c,i,f,d,g){var e,h=c.lambda;return'	<option value="'+((e=h(i,i))!=null?e:"")+'">'+((e=h(i,i))!=null?e:"")+"</option>\n"},"4":function(c,g,e,d,f){return'  <option value="application/json">application/json</option>\n'},compiler:[8,">= 4.3.0"],main:function(c,h,f,d,g){var e;return'<label for="contentType"></label>\n<select name="contentType">\n'+((e=f["if"].call(h!=null?h:(c.nullContext||{}),(h!=null?h.produces:h),{name:"if",hash:{},fn:c.program(1,g,0),inverse:c.program(4,g,0),data:g,loc:{start:{line:3,column:0},end:{line:9,column:7}}}))!=null?e:"")+"</select>\n"},useData:true})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.main=b({"1":function(c,j,f,d,h){var e,i=c.lambda,g=j!=null?j:(c.nullContext||{});return'  <div class="info_title">'+c.escapeExpression(i(((e=(j!=null?j.info:j))!=null?e.title:e),j))+'</div>\n  <h2 data-toggle="collapse" data-target="#info_description" aria-expanded="true">\n    Overview\n  </h2>\n  <div class="info_description collapse in" id="info_description">'+((e=i(((e=(j!=null?j.info:j))!=null?e.description:e),j))!=null?e:"")+"\n  "+((e=f["if"].call(g,((e=(j!=null?j.info:j))!=null?e.termsOfServiceUrl:e),{name:"if",hash:{},fn:c.program(2,h,0),inverse:c.noop,data:h,loc:{start:{line:8,column:2},end:{line:8,column:124}}}))!=null?e:"")+"\n  "+((e=f["if"].call(g,((e=(j!=null?j.info:j))!=null?e.contact:e),{name:"if",hash:{},fn:c.program(4,h,0),inverse:c.noop,data:h,loc:{start:{line:9,column:2},end:{line:9,column:118}}}))!=null?e:"")+"\n  "+((e=f["if"].call(g,((e=(j!=null?j.info:j))!=null?e.license:e),{name:"if",hash:{},fn:c.program(6,h,0),inverse:c.noop,data:h,loc:{start:{line:10,column:2},end:{line:10,column:117}}}))!=null?e:"")+"\n"},"2":function(c,h,f,d,g){var e;return'<div class="info_tos"><a href="'+c.escapeExpression(c.lambda(((e=(h!=null?h.info:h))!=null?e.termsOfServiceUrl:e),h))+'">Terms of service</a></div>'},"4":function(c,h,f,d,g){var e;return"<div class='info_contact'><a href=\"mailto:"+c.escapeExpression(c.lambda(((e=((e=(h!=null?h.info:h))!=null?e.contact:e))!=null?e.name:e),h))+'">Contact Looker</a></div>'},"6":function(c,j,f,d,h){var e,i=c.lambda,g=c.escapeExpression;return"<div class='info_license'><a href='"+g(i(((e=((e=(j!=null?j.info:j))!=null?e.license:e))!=null?e.url:e),j))+"'>"+g(i(((e=((e=(j!=null?j.info:j))!=null?e.license:e))!=null?e.name:e),j))+"</a></div>"},"8":function(c,h,f,d,g){var e;return'    , <span style="font-variant: small-caps">api version</span>: '+c.escapeExpression(c.lambda(((e=(h!=null?h.info:h))!=null?e.version:e),h))+"\n    "},"10":function(c,h,d,g,f){var e,l=h!=null?h:(c.nullContext||{}),k=c.hooks.helperMissing,j="function",i=c.escapeExpression;return'    <span style="float:right"><a href="'+i(((e=(e=d.validatorUrl||(h!=null?h.validatorUrl:h))!=null?e:k),(typeof e===j?e.call(l,{name:"validatorUrl",hash:{},data:f,loc:{start:{line:25,column:39},end:{line:25,column:55}}}):e)))+"/debug?url="+i(((e=(e=d.url||(h!=null?h.url:h))!=null?e:k),(typeof e===j?e.call(l,{name:"url",hash:{},data:f,loc:{start:{line:25,column:66},end:{line:25,column:73}}}):e)))+'"><img id="validator" src="'+i(((e=(e=d.validatorUrl||(h!=null?h.validatorUrl:h))!=null?e:k),(typeof e===j?e.call(l,{name:"validatorUrl",hash:{},data:f,loc:{start:{line:25,column:100},end:{line:25,column:116}}}):e)))+"?url="+i(((e=(e=d.url||(h!=null?h.url:h))!=null?e:k),(typeof e===j?e.call(l,{name:"url",hash:{},data:f,loc:{start:{line:25,column:121},end:{line:25,column:128}}}):e)))+'"></a>\n    </span>\n'},compiler:[8,">= 4.3.0"],main:function(c,j,g,d,h){var e,f,i=j!=null?j:(c.nullContext||{});return"<div class='info' id='api_info'>\n"+((e=g["if"].call(i,(j!=null?j.info:j),{name:"if",hash:{},fn:c.program(1,h,0),inverse:c.noop,data:h,loc:{start:{line:2,column:2},end:{line:11,column:9}}}))!=null?e:"")+'  </div>\n</div>\n<div id=\'resources_container\'>\n  <ul id=\'resources\'></ul>\n\n  <div class="footer">\n    <br>\n    <br>\n    <h4 style="color: #999">[ <span style="font-variant: small-caps">base url</span>: '+c.escapeExpression(((f=(f=g.basePath||(j!=null?j.basePath:j))!=null?f:c.hooks.helperMissing),(typeof f==="function"?f.call(i,{name:"basePath",hash:{},data:h,loc:{start:{line:20,column:86},end:{line:20,column:98}}}):f)))+"\n"+((e=g["if"].call(i,((e=(j!=null?j.info:j))!=null?e.version:e),{name:"if",hash:{},fn:c.program(8,h,0),inverse:c.noop,data:h,loc:{start:{line:21,column:4},end:{line:23,column:11}}}))!=null?e:"")+"]\n"+((e=g["if"].call(i,(j!=null?j.validatorUrl:j),{name:"if",hash:{},fn:c.program(10,h,0),inverse:c.noop,data:h,loc:{start:{line:24,column:4},end:{line:27,column:11}}}))!=null?e:"")+"    </h4>\n    </div>\n</div>\n"},useData:true})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.operation=b({"1":function(c,g,e,d,f){return"deprecated"},"3":function(c,g,e,d,f){return"            <h4>Warning: Deprecated</h4>\n"},"5":function(c,j,g,d,h){var e,f,i=j!=null?j:(c.nullContext||{});return"        <h4>Implementation Notes</h4>\n"+((e=g["if"].call(i,(j!=null?j.activity:j),{name:"if",hash:{},fn:c.program(6,h,0),inverse:c.noop,data:h,loc:{start:{line:40,column:8},end:{line:46,column:15}}}))!=null?e:"")+"        <p>"+((e=((f=(f=g.description||(j!=null?j.description:j))!=null?f:c.hooks.helperMissing),(typeof f==="function"?f.call(i,{name:"description",hash:{},data:h,loc:{start:{line:47,column:11},end:{line:47,column:28}}}):f)))!=null?e:"")+"</p>\n"},"6":function(c,h,d,g,f){var e,l=h!=null?h:(c.nullContext||{}),k=c.hooks.helperMissing,j="function",i=c.escapeExpression;return'        <span class="activity activity_'+i(((e=(e=d.activity||(h!=null?h.activity:h))!=null?e:k),(typeof e===j?e.call(l,{name:"activity",hash:{},data:f,loc:{start:{line:41,column:39},end:{line:41,column:51}}}):e)))+' tooltip_anchor">'+i(((e=(e=d.activity||(h!=null?h.activity:h))!=null?e:k),(typeof e===j?e.call(l,{name:"activity",hash:{},data:f,loc:{start:{line:41,column:68},end:{line:41,column:80}}}):e)))+"\n            <span class='tooltip_popup'>\n                Call volume for this endpoint counts toward the \""+i(((e=(e=d.activity||(h!=null?h.activity:h))!=null?e:k),(typeof e===j?e.call(l,{name:"activity",hash:{},data:f,loc:{start:{line:43,column:65},end:{line:43,column:77}}}):e)))+'" API activity category.\n            </span>\n        </span>\n'},"8":function(c,g,e,d,f){return'        <div class="auth">\n        <span class="api-ic ic-error"></span>'},"10":function(c,h,f,d,g){var e;return'          <div id="api_information_panel" style="top: 526px; left: 776px; display: none;">\n'+((e=f.each.call(h!=null?h:(c.nullContext||{}),h,{name:"each",hash:{},fn:c.program(11,g,0),inverse:c.noop,data:g,loc:{start:{line:54,column:10},end:{line:56,column:19}}}))!=null?e:"")+"          </div>\n"},"11":function(c,i,f,d,g){var e,h=c.lambda;return"            <div title='"+((e=h((i!=null?i.description:i),i))!=null?e:"")+"'>"+c.escapeExpression(h((i!=null?i.scope:i),i))+"</div>\n"},"13":function(c,g,e,d,f){return"</div>"},"15":function(c,g,e,d,f){return'        <div class=\'access\'>\n          <span class="api-ic ic-off" title="click to authenticate"></span>\n        </div>\n'},"17":function(c,g,e,d,f){return'          <h4>Response Class</h4>\n          <p><span class="model-signature" /></p>\n          <br/>\n          <div class="response-content-type" />\n'},"19":function(c,g,e,d,f){return'          <h4>Parameters</h4>\n          <table class=\'fullwidth\'>\n          <thead>\n            <tr>\n            <th style="width: 100px; max-width: 100px">Parameter</th>\n            <th style="width: 310px; max-width: 310px">Value</th>\n            <th style="width: 200px; max-width: 200px">Description</th>\n            <th style="width: 100px; max-width: 100px">Parameter Type</th>\n            <th style="width: 220px; max-width: 230px">Data Type</th>\n            </tr>\n          </thead>\n          <tbody class="operation-params">\n\n          </tbody>\n          </table>\n'},"21":function(c,g,e,d,f){return"          <div style='margin:0;padding:0;display:inline'></div>\n          <h4>Response Messages</h4>\n          <table class='fullwidth'>\n            <thead>\n            <tr>\n              <th>HTTP Status Code</th>\n              <th>Reason</th>\n              <th>Response Model</th>\n            </tr>\n            </thead>\n            <tbody class=\"operation-status\">\n\n            </tbody>\n          </table>\n"},"23":function(c,g,e,d,f){return""},"25":function(c,g,e,d,f){return"          <div class='sandbox_header'>\n            <input class='submit' name='commit' type='button' value='Try it out!' />\n            <a href='#' class='response_hider' style='display:none'>Hide Response</a>\n            <span class='response_throbber' style='display:none'></span>\n          </div>\n"},compiler:[8,">= 4.3.0"],main:function(d,j,e,i,h){var c,f,p,o=j!=null?j:(d.nullContext||{}),n=d.hooks.helperMissing,m="function",l=d.escapeExpression,k=d.hooks.blockHelperMissing,g="\n  <ul class='operations' >\n    <li class='"+l(((f=(f=e.method||(j!=null?j.method:j))!=null?f:n),(typeof f===m?f.call(o,{name:"method",hash:{},data:h,loc:{start:{line:3,column:15},end:{line:3,column:25}}}):f)))+" operation' id='"+l(((f=(f=e.parentId||(j!=null?j.parentId:j))!=null?f:n),(typeof f===m?f.call(o,{name:"parentId",hash:{},data:h,loc:{start:{line:3,column:41},end:{line:3,column:53}}}):f)))+"_"+l(((f=(f=e.nickname||(j!=null?j.nickname:j))!=null?f:n),(typeof f===m?f.call(o,{name:"nickname",hash:{},data:h,loc:{start:{line:3,column:54},end:{line:3,column:66}}}):f)))+"'>\n      <div class='heading'>\n        <h3>\n          <span class='sdk sdk_header_element'>\n            <a href='#!/"+l(((f=(f=e.api_version||(j!=null?j.api_version:j))!=null?f:n),(typeof f===m?f.call(o,{name:"api_version",hash:{},data:h,loc:{start:{line:7,column:24},end:{line:7,column:39}}}):f)))+"/"+l(((f=(f=e.parentId||(j!=null?j.parentId:j))!=null?f:n),(typeof f===m?f.call(o,{name:"parentId",hash:{},data:h,loc:{start:{line:7,column:40},end:{line:7,column:52}}}):f)))+"/"+l(((f=(f=e.nickname||(j!=null?j.nickname:j))!=null?f:n),(typeof f===m?f.call(o,{name:"nickname",hash:{},data:h,loc:{start:{line:7,column:53},end:{line:7,column:65}}}):f)))+"' class=\"toggleOperation\">SDK</a>\n          </span>\n          <span class='http_method http_header_element' hidden='hidden'>\n            <a href='#!/"+l(((f=(f=e.api_version||(j!=null?j.api_version:j))!=null?f:n),(typeof f===m?f.call(o,{name:"api_version",hash:{},data:h,loc:{start:{line:10,column:24},end:{line:10,column:39}}}):f)))+"/"+l(((f=(f=e.parentId||(j!=null?j.parentId:j))!=null?f:n),(typeof f===m?f.call(o,{name:"parentId",hash:{},data:h,loc:{start:{line:10,column:40},end:{line:10,column:52}}}):f)))+"/"+l(((f=(f=e.nickname||(j!=null?j.nickname:j))!=null?f:n),(typeof f===m?f.call(o,{name:"nickname",hash:{},data:h,loc:{start:{line:10,column:53},end:{line:10,column:65}}}):f)))+'\' class="toggleOperation">'+l(((f=(f=e.method||(j!=null?j.method:j))!=null?f:n),(typeof f===m?f.call(o,{name:"method",hash:{},data:h,loc:{start:{line:10,column:91},end:{line:10,column:101}}}):f)))+"</a>\n          </span>\n          <span class='path http_header_element' hidden='hidden'>\n            <a href='#!/"+l(((f=(f=e.api_version||(j!=null?j.api_version:j))!=null?f:n),(typeof f===m?f.call(o,{name:"api_version",hash:{},data:h,loc:{start:{line:13,column:24},end:{line:13,column:39}}}):f)))+"/"+l(((f=(f=e.parentId||(j!=null?j.parentId:j))!=null?f:n),(typeof f===m?f.call(o,{name:"parentId",hash:{},data:h,loc:{start:{line:13,column:40},end:{line:13,column:52}}}):f)))+"/"+l(((f=(f=e.nickname||(j!=null?j.nickname:j))!=null?f:n),(typeof f===m?f.call(o,{name:"nickname",hash:{},data:h,loc:{start:{line:13,column:53},end:{line:13,column:65}}}):f)))+"' class=\"toggleOperation "+((c=e["if"].call(o,(j!=null?j.deprecated:j),{name:"if",hash:{},fn:d.program(1,h,0),inverse:d.noop,data:h,loc:{start:{line:13,column:90},end:{line:13,column:125}}}))!=null?c:"")+'">'+l(((f=(f=e.path||(j!=null?j.path:j))!=null?f:n),(typeof f===m?f.call(o,{name:"path",hash:{},data:h,loc:{start:{line:13,column:127},end:{line:13,column:135}}}):f)))+"</a>\n          </span>\n          <span class='sdk_fn_name sdk_header_element'>\n            <a href='#!/"+l(((f=(f=e.api_version||(j!=null?j.api_version:j))!=null?f:n),(typeof f===m?f.call(o,{name:"api_version",hash:{},data:h,loc:{start:{line:16,column:24},end:{line:16,column:39}}}):f)))+"/"+l(((f=(f=e.parentId||(j!=null?j.parentId:j))!=null?f:n),(typeof f===m?f.call(o,{name:"parentId",hash:{},data:h,loc:{start:{line:16,column:40},end:{line:16,column:52}}}):f)))+"/"+l(((f=(f=e.nickname||(j!=null?j.nickname:j))!=null?f:n),(typeof f===m?f.call(o,{name:"nickname",hash:{},data:h,loc:{start:{line:16,column:53},end:{line:16,column:65}}}):f)))+'\' class="toggleOperation" '+((c=e["if"].call(o,(j!=null?j.deprecated:j),{name:"if",hash:{},fn:d.program(1,h,0),inverse:d.noop,data:h,loc:{start:{line:16,column:91},end:{line:16,column:126}}}))!=null?c:"")+">"+((c=((f=(f=e.ruby_signature||(j!=null?j.ruby_signature:j))!=null?f:n),(typeof f===m?f.call(o,{name:"ruby_signature",hash:{},data:h,loc:{start:{line:16,column:127},end:{line:16,column:147}}}):f)))!=null?c:"")+"</a>\n          </span>\n        </h3>\n        <span class='status status_"+l(((f=(f=e.looker_status||(j!=null?j.looker_status:j))!=null?f:n),(typeof f===m?f.call(o,{name:"looker_status",hash:{},data:h,loc:{start:{line:19,column:35},end:{line:19,column:52}}}):f)))+" tooltip_anchor'>\n          <a href='#!/"+l(((f=(f=e.api_version||(j!=null?j.api_version:j))!=null?f:n),(typeof f===m?f.call(o,{name:"api_version",hash:{},data:h,loc:{start:{line:20,column:22},end:{line:20,column:37}}}):f)))+"/"+l(((f=(f=e.parentId||(j!=null?j.parentId:j))!=null?f:n),(typeof f===m?f.call(o,{name:"parentId",hash:{},data:h,loc:{start:{line:20,column:38},end:{line:20,column:50}}}):f)))+"/"+l(((f=(f=e.nickname||(j!=null?j.nickname:j))!=null?f:n),(typeof f===m?f.call(o,{name:"nickname",hash:{},data:h,loc:{start:{line:20,column:51},end:{line:20,column:63}}}):f)))+'\'\n             class="toggleOperation">\n            '+((c=((f=(f=e.looker_status_text||(j!=null?j.looker_status_text:j))!=null?f:n),(typeof f===m?f.call(o,{name:"looker_status_text",hash:{},data:h,loc:{start:{line:22,column:12},end:{line:22,column:36}}}):f)))!=null?c:"")+"\n          </a>\n          <span class='tooltip_popup'>\n            "+l(((f=(f=e.looker_status_description||(j!=null?j.looker_status_description:j))!=null?f:n),(typeof f===m?f.call(o,{name:"looker_status_description",hash:{},data:h,loc:{start:{line:25,column:12},end:{line:25,column:41}}}):f)))+"\n          </span>\n        </span>\n        <ul class='options'>\n          <li>\n            <a href='#!/"+l(((f=(f=e.api_version||(j!=null?j.api_version:j))!=null?f:n),(typeof f===m?f.call(o,{name:"api_version",hash:{},data:h,loc:{start:{line:30,column:24},end:{line:30,column:39}}}):f)))+"/"+l(((f=(f=e.parentId||(j!=null?j.parentId:j))!=null?f:n),(typeof f===m?f.call(o,{name:"parentId",hash:{},data:h,loc:{start:{line:30,column:40},end:{line:30,column:52}}}):f)))+"/"+l(((f=(f=e.nickname||(j!=null?j.nickname:j))!=null?f:n),(typeof f===m?f.call(o,{name:"nickname",hash:{},data:h,loc:{start:{line:30,column:53},end:{line:30,column:65}}}):f)))+"' class='toggleOperation summary'>"+((c=((f=(f=e.summary||(j!=null?j.summary:j))!=null?f:n),(typeof f===m?f.call(o,{name:"summary",hash:{},data:h,loc:{start:{line:30,column:99},end:{line:30,column:112}}}):f)))!=null?c:"")+"</a>\n          </li>\n        </ul>\n      </div>\n      <div class='content' id='"+l(((f=(f=e.parentId||(j!=null?j.parentId:j))!=null?f:n),(typeof f===m?f.call(o,{name:"parentId",hash:{},data:h,loc:{start:{line:34,column:31},end:{line:34,column:43}}}):f)))+"_"+l(((f=(f=e.nickname||(j!=null?j.nickname:j))!=null?f:n),(typeof f===m?f.call(o,{name:"nickname",hash:{},data:h,loc:{start:{line:34,column:44},end:{line:34,column:56}}}):f)))+"_content' style='display:none'>\n"+((c=e["if"].call(o,(j!=null?j.deprecated:j),{name:"if",hash:{},fn:d.program(3,h,0),inverse:d.noop,data:h,loc:{start:{line:35,column:8},end:{line:37,column:15}}}))!=null?c:"")+((c=e["if"].call(o,(j!=null?j.description:j),{name:"if",hash:{},fn:d.program(5,h,0),inverse:d.noop,data:h,loc:{start:{line:38,column:8},end:{line:48,column:15}}}))!=null?c:"");c=((f=(f=e.oauth||(j!=null?j.oauth:j))!=null?f:n),(p={name:"oauth",hash:{},fn:d.program(8,h,0),inverse:d.noop,data:h,loc:{start:{line:49,column:8},end:{line:51,column:55}}}),(typeof f===m?f.call(o,p):f));if(!e.oauth){c=k.call(j,c,p)}if(c!=null){g+=c}g+="\n"+((c=e.each.call(o,(j!=null?j.oauth:j),{name:"each",hash:{},fn:d.program(10,h,0),inverse:d.noop,data:h,loc:{start:{line:52,column:8},end:{line:58,column:17}}}))!=null?c:"")+"        ";c=((f=(f=e.oauth||(j!=null?j.oauth:j))!=null?f:n),(p={name:"oauth",hash:{},fn:d.program(13,h,0),inverse:d.noop,data:h,loc:{start:{line:59,column:8},end:{line:59,column:34}}}),(typeof f===m?f.call(o,p):f));if(!e.oauth){c=k.call(j,c,p)}if(c!=null){g+=c}g+="\n";c=((f=(f=e.oauth||(j!=null?j.oauth:j))!=null?f:n),(p={name:"oauth",hash:{},fn:d.program(15,h,0),inverse:d.noop,data:h,loc:{start:{line:60,column:8},end:{line:64,column:18}}}),(typeof f===m?f.call(o,p):f));if(!e.oauth){c=k.call(j,c,p)}if(c!=null){g+=c}return g+((c=e["if"].call(o,(j!=null?j.type:j),{name:"if",hash:{},fn:d.program(17,h,0),inverse:d.noop,data:h,loc:{start:{line:65,column:8},end:{line:70,column:15}}}))!=null?c:"")+"        <form accept-charset='UTF-8' class='sandbox'>\n          <div style='margin:0;padding:0;display:inline'></div>\n"+((c=e["if"].call(o,(j!=null?j.parameters:j),{name:"if",hash:{},fn:d.program(19,h,0),inverse:d.noop,data:h,loc:{start:{line:73,column:10},end:{line:89,column:17}}}))!=null?c:"")+((c=e["if"].call(o,(j!=null?j.responseMessages:j),{name:"if",hash:{},fn:d.program(21,h,0),inverse:d.noop,data:h,loc:{start:{line:90,column:10},end:{line:105,column:17}}}))!=null?c:"")+((c=e["if"].call(o,(j!=null?j.isReadOnly:j),{name:"if",hash:{},fn:d.program(23,h,0),inverse:d.program(25,h,0),data:h,loc:{start:{line:106,column:10},end:{line:113,column:17}}}))!=null?c:"")+"        </form>\n        <div class='response' style='display:none'>\n          <h4>Request URL</h4>\n          <div class='block request_url'></div>\n          <h4>Response Body</h4>\n          <div class='block response_body'></div>\n          <h4>Response Code</h4>\n          <div class='block response_code'></div>\n          <h4>Response Headers</h4>\n          <div class='block response_headers'></div>\n        </div>\n      </div>\n    </li>\n  </ul>\n"},useData:true})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param=b({"1":function(c,h,f,d,g){var e;return((e=f["if"].call(h!=null?h:(c.nullContext||{}),(h!=null?h.isFile:h),{name:"if",hash:{},fn:c.program(2,g,0),inverse:c.program(4,g,0),data:g,loc:{start:{line:5,column:2},end:{line:16,column:9}}}))!=null?e:"")},"2":function(c,h,f,d,g){var e;return'			<input type="file" name=\''+c.escapeExpression(((e=(e=f.name||(h!=null?h.name:h))!=null?e:c.hooks.helperMissing),(typeof e==="function"?e.call(h!=null?h:(c.nullContext||{}),{name:"name",hash:{},data:g,loc:{start:{line:6,column:28},end:{line:6,column:36}}}):e)))+'\'/>\n			<div class="parameter-content-type" />\n'},"4":function(c,h,f,d,g){var e;return((e=f["if"].call(h!=null?h:(c.nullContext||{}),(h!=null?h["default"]:h),{name:"if",hash:{},fn:c.program(5,g,0),inverse:c.program(7,g,0),data:g,loc:{start:{line:9,column:3},end:{line:15,column:10}}}))!=null?e:"")},"5":function(c,h,d,g,f){var e,l=h!=null?h:(c.nullContext||{}),k=c.hooks.helperMissing,j="function",i=c.escapeExpression;return"				<textarea class='body-textarea' name='"+i(((e=(e=d.name||(h!=null?h.name:h))!=null?e:k),(typeof e===j?e.call(l,{name:"name",hash:{},data:f,loc:{start:{line:10,column:42},end:{line:10,column:50}}}):e)))+"'>"+i(((e=(e=d["default"]||(h!=null?h["default"]:h))!=null?e:k),(typeof e===j?e.call(l,{name:"default",hash:{},data:f,loc:{start:{line:10,column:52},end:{line:10,column:63}}}):e)))+"</textarea>\n"},"7":function(c,h,f,d,g){var e;return"				<textarea class='body-textarea' name='"+c.escapeExpression(((e=(e=f.name||(h!=null?h.name:h))!=null?e:c.hooks.helperMissing),(typeof e==="function"?e.call(h!=null?h:(c.nullContext||{}),{name:"name",hash:{},data:g,loc:{start:{line:12,column:42},end:{line:12,column:50}}}):e)))+'\'></textarea>\n				<br />\n				<div class="parameter-content-type" />\n'},"9":function(c,h,f,d,g){var e;return((e=f["if"].call(h!=null?h:(c.nullContext||{}),(h!=null?h.isFile:h),{name:"if",hash:{},fn:c.program(2,g,0),inverse:c.program(10,g,0),data:g,loc:{start:{line:18,column:2},end:{line:24,column:11}}}))!=null?e:"")},"10":function(c,h,f,d,g){var e;return((e=(f.renderTextParam||(h&&h.renderTextParam)||c.hooks.helperMissing).call(h!=null?h:(c.nullContext||{}),h,{name:"renderTextParam",hash:{},fn:c.program(11,g,0),inverse:c.noop,data:g,loc:{start:{line:22,column:6},end:{line:23,column:26}}}))!=null?e:"")},"11":function(c,g,e,d,f){return""},compiler:[8,">= 4.3.0"],main:function(d,i,e,h,g){var c,f,l=i!=null?i:(d.nullContext||{}),k=d.hooks.helperMissing,j="function";return"<td class='code'>"+d.escapeExpression(((f=(f=e.name||(i!=null?i.name:i))!=null?f:k),(typeof f===j?f.call(l,{name:"name",hash:{},data:g,loc:{start:{line:1,column:17},end:{line:1,column:25}}}):f)))+"</td>\n<td>\n\n"+((c=e["if"].call(l,(i!=null?i.isBody:i),{name:"if",hash:{},fn:d.program(1,g,0),inverse:d.program(9,g,0),data:g,loc:{start:{line:4,column:1},end:{line:25,column:8}}}))!=null?c:"")+"\n</td>\n<td>"+((c=((f=(f=e.description||(i!=null?i.description:i))!=null?f:k),(typeof f===j?f.call(l,{name:"description",hash:{},data:g,loc:{start:{line:28,column:4},end:{line:28,column:21}}}):f)))!=null?c:"")+"</td>\n<td>"+((c=((f=(f=e.paramType||(i!=null?i.paramType:i))!=null?f:k),(typeof f===j?f.call(l,{name:"paramType",hash:{},data:g,loc:{start:{line:29,column:4},end:{line:29,column:19}}}):f)))!=null?c:"")+'</td>\n<td>\n	<span class="model-signature"></span>\n</td>\n'},useData:true})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param_list=b({"1":function(c,g,e,d,f){return"'code required'"},"3":function(c,g,e,d,f){return"'code'"},"5":function(c,g,e,d,f){return" multiple='multiple'"},"7":function(c,g,e,d,f){return"'parameter required'"},"9":function(c,g,e,d,f){return"'parameter'"},"11":function(c,g,e,d,f){return""},"13":function(c,h,f,d,g){var e;return((e=f["if"].call(h!=null?h:(c.nullContext||{}),(h!=null?h["default"]:h),{name:"if",hash:{},fn:c.program(11,g,0),inverse:c.program(14,g,0),data:g,loc:{start:{line:6,column:6},end:{line:12,column:13}}}))!=null?e:"")},"14":function(c,h,f,d,g){var e;return((e=(f.isArray||(h&&h.isArray)||c.hooks.helperMissing).call(h!=null?h:(c.nullContext||{}),h,{name:"isArray",hash:{},fn:c.program(11,g,0),inverse:c.program(15,g,0),data:g,loc:{start:{line:8,column:8},end:{line:11,column:20}}}))!=null?e:"")},"15":function(c,g,e,d,f){return"          <option selected=\"\" value=''></option>\n"},"17":function(c,h,f,d,g){var e;return((e=f["if"].call(h!=null?h:(c.nullContext||{}),(h!=null?h.isDefault:h),{name:"if",hash:{},fn:c.program(18,g,0),inverse:c.program(20,g,0),data:g,loc:{start:{line:15,column:6},end:{line:19,column:13}}}))!=null?e:"")},"18":function(c,h,d,g,f){var e,l=h!=null?h:(c.nullContext||{}),k=c.hooks.helperMissing,j="function",i=c.escapeExpression;return'        <option selected="" value=\''+i(((e=(e=d.value||(h!=null?h.value:h))!=null?e:k),(typeof e===j?e.call(l,{name:"value",hash:{},data:f,loc:{start:{line:16,column:35},end:{line:16,column:44}}}):e)))+"'>"+i(((e=(e=d.value||(h!=null?h.value:h))!=null?e:k),(typeof e===j?e.call(l,{name:"value",hash:{},data:f,loc:{start:{line:16,column:46},end:{line:16,column:55}}}):e)))+" (default)</option>\n"},"20":function(c,h,d,g,f){var e,l=h!=null?h:(c.nullContext||{}),k=c.hooks.helperMissing,j="function",i=c.escapeExpression;return"        <option value='"+i(((e=(e=d.value||(h!=null?h.value:h))!=null?e:k),(typeof e===j?e.call(l,{name:"value",hash:{},data:f,loc:{start:{line:18,column:23},end:{line:18,column:32}}}):e)))+"'>"+i(((e=(e=d.value||(h!=null?h.value:h))!=null?e:k),(typeof e===j?e.call(l,{name:"value",hash:{},data:f,loc:{start:{line:18,column:34},end:{line:18,column:43}}}):e)))+"</option>\n"},compiler:[8,">= 4.3.0"],main:function(d,i,e,h,g){var c,f,m=i!=null?i:(d.nullContext||{}),l=d.hooks.helperMissing,k="function",j=d.escapeExpression;return"<td class="+((c=e["if"].call(m,(i!=null?i.required:i),{name:"if",hash:{},fn:d.program(1,g,0),inverse:d.program(3,g,0),data:g,loc:{start:{line:1,column:10},end:{line:1,column:62}}}))!=null?c:"")+">"+j(((f=(f=e.name||(i!=null?i.name:i))!=null?f:l),(typeof f===k?f.call(m,{name:"name",hash:{},data:g,loc:{start:{line:1,column:63},end:{line:1,column:71}}}):f)))+"</td>\n<td>\n  <select "+((c=(e.isArray||(i&&i.isArray)||l).call(m,i,{name:"isArray",hash:{},fn:d.program(5,g,0),inverse:d.noop,data:g,loc:{start:{line:3,column:10},end:{line:3,column:59}}}))!=null?c:"")+" class="+((c=e["if"].call(m,(i!=null?i.required:i),{name:"if",hash:{},fn:d.program(7,g,0),inverse:d.program(9,g,0),data:g,loc:{start:{line:3,column:66},end:{line:3,column:128}}}))!=null?c:"")+" name='"+j(((f=(f=e.name||(i!=null?i.name:i))!=null?f:l),(typeof f===k?f.call(m,{name:"name",hash:{},data:g,loc:{start:{line:3,column:135},end:{line:3,column:143}}}):f)))+"'>\n"+((c=e["if"].call(m,(i!=null?i.required:i),{name:"if",hash:{},fn:d.program(11,g,0),inverse:d.program(13,g,0),data:g,loc:{start:{line:4,column:4},end:{line:13,column:11}}}))!=null?c:"")+((c=e.each.call(m,((c=(i!=null?i.allowableValues:i))!=null?c.descriptiveValues:c),{name:"each",hash:{},fn:d.program(17,g,0),inverse:d.noop,data:g,loc:{start:{line:14,column:4},end:{line:20,column:13}}}))!=null?c:"")+"  </select>\n</td>\n<td>"+((c=((f=(f=e.description||(i!=null?i.description:i))!=null?f:l),(typeof f===k?f.call(m,{name:"description",hash:{},data:g,loc:{start:{line:23,column:4},end:{line:23,column:21}}}):f)))!=null?c:"")+"</td>\n<td>"+((c=((f=(f=e.paramType||(i!=null?i.paramType:i))!=null?f:l),(typeof f===k?f.call(m,{name:"paramType",hash:{},data:g,loc:{start:{line:24,column:4},end:{line:24,column:19}}}):f)))!=null?c:"")+'</td>\n<td><span class="model-signature"></span></td>\n'},useData:true})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param_readonly=b({"1":function(c,h,d,g,f){var e,l=h!=null?h:(c.nullContext||{}),k=c.hooks.helperMissing,j="function",i=c.escapeExpression;return"        <textarea class='body-textarea' readonly='readonly' name='"+i(((e=(e=d.name||(h!=null?h.name:h))!=null?e:k),(typeof e===j?e.call(l,{name:"name",hash:{},data:f,loc:{start:{line:4,column:66},end:{line:4,column:74}}}):e)))+"'>"+i(((e=(e=d["default"]||(h!=null?h["default"]:h))!=null?e:k),(typeof e===j?e.call(l,{name:"default",hash:{},data:f,loc:{start:{line:4,column:76},end:{line:4,column:87}}}):e)))+"</textarea>\n"},"3":function(c,h,f,d,g){var e;return((e=f["if"].call(h!=null?h:(c.nullContext||{}),(h!=null?h["default"]:h),{name:"if",hash:{},fn:c.program(4,g,0),inverse:c.program(6,g,0),data:g,loc:{start:{line:6,column:8},end:{line:10,column:15}}}))!=null?e:"")},"4":function(c,h,f,d,g){var e;return"            "+c.escapeExpression(((e=(e=f["default"]||(h!=null?h["default"]:h))!=null?e:c.hooks.helperMissing),(typeof e==="function"?e.call(h!=null?h:(c.nullContext||{}),{name:"default",hash:{},data:g,loc:{start:{line:7,column:12},end:{line:7,column:23}}}):e)))+"\n"},"6":function(c,g,e,d,f){return"            (empty)\n"},compiler:[8,">= 4.3.0"],main:function(d,i,e,h,g){var c,f,l=i!=null?i:(d.nullContext||{}),k=d.hooks.helperMissing,j="function";return"<td class='code'>"+d.escapeExpression(((f=(f=e.name||(i!=null?i.name:i))!=null?f:k),(typeof f===j?f.call(l,{name:"name",hash:{},data:g,loc:{start:{line:1,column:17},end:{line:1,column:25}}}):f)))+"</td>\n<td>\n"+((c=e["if"].call(l,(i!=null?i.isBody:i),{name:"if",hash:{},fn:d.program(1,g,0),inverse:d.program(3,g,0),data:g,loc:{start:{line:3,column:4},end:{line:11,column:11}}}))!=null?c:"")+"</td>\n<td>"+((c=((f=(f=e.description||(i!=null?i.description:i))!=null?f:k),(typeof f===j?f.call(l,{name:"description",hash:{},data:g,loc:{start:{line:13,column:4},end:{line:13,column:21}}}):f)))!=null?c:"")+"</td>\n<td>"+((c=((f=(f=e.paramType||(i!=null?i.paramType:i))!=null?f:k),(typeof f===j?f.call(l,{name:"paramType",hash:{},data:g,loc:{start:{line:14,column:4},end:{line:14,column:19}}}):f)))!=null?c:"")+'</td>\n<td><span class="model-signature"></span></td>\n'},useData:true})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param_readonly_required=b({"1":function(c,h,d,g,f){var e,l=h!=null?h:(c.nullContext||{}),k=c.hooks.helperMissing,j="function",i=c.escapeExpression;return"        <textarea class='body-textarea'  readonly='readonly' placeholder='(required)' name='"+i(((e=(e=d.name||(h!=null?h.name:h))!=null?e:k),(typeof e===j?e.call(l,{name:"name",hash:{},data:f,loc:{start:{line:4,column:92},end:{line:4,column:100}}}):e)))+"'>"+i(((e=(e=d["default"]||(h!=null?h["default"]:h))!=null?e:k),(typeof e===j?e.call(l,{name:"default",hash:{},data:f,loc:{start:{line:4,column:102},end:{line:4,column:113}}}):e)))+"</textarea>\n"},"3":function(c,h,f,d,g){var e;return((e=f["if"].call(h!=null?h:(c.nullContext||{}),(h!=null?h["default"]:h),{name:"if",hash:{},fn:c.program(4,g,0),inverse:c.program(6,g,0),data:g,loc:{start:{line:6,column:8},end:{line:10,column:15}}}))!=null?e:"")},"4":function(c,h,f,d,g){var e;return"            "+c.escapeExpression(((e=(e=f["default"]||(h!=null?h["default"]:h))!=null?e:c.hooks.helperMissing),(typeof e==="function"?e.call(h!=null?h:(c.nullContext||{}),{name:"default",hash:{},data:g,loc:{start:{line:7,column:12},end:{line:7,column:23}}}):e)))+"\n"},"6":function(c,g,e,d,f){return"            (empty)\n"},compiler:[8,">= 4.3.0"],main:function(d,i,e,h,g){var c,f,l=i!=null?i:(d.nullContext||{}),k=d.hooks.helperMissing,j="function";return"<td class='code required'>"+d.escapeExpression(((f=(f=e.name||(i!=null?i.name:i))!=null?f:k),(typeof f===j?f.call(l,{name:"name",hash:{},data:g,loc:{start:{line:1,column:26},end:{line:1,column:34}}}):f)))+"</td>\n<td>\n"+((c=e["if"].call(l,(i!=null?i.isBody:i),{name:"if",hash:{},fn:d.program(1,g,0),inverse:d.program(3,g,0),data:g,loc:{start:{line:3,column:4},end:{line:11,column:11}}}))!=null?c:"")+"</td>\n<td>"+((c=((f=(f=e.description||(i!=null?i.description:i))!=null?f:k),(typeof f===j?f.call(l,{name:"description",hash:{},data:g,loc:{start:{line:13,column:4},end:{line:13,column:21}}}):f)))!=null?c:"")+"</td>\n<td>"+((c=((f=(f=e.paramType||(i!=null?i.paramType:i))!=null?f:k),(typeof f===j?f.call(l,{name:"paramType",hash:{},data:g,loc:{start:{line:14,column:4},end:{line:14,column:19}}}):f)))!=null?c:"")+'</td>\n<td><span class="model-signature"></span></td>\n'},useData:true})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param_required=b({"1":function(c,h,f,d,g){var e;return((e=f["if"].call(h!=null?h:(c.nullContext||{}),(h!=null?h.isFile:h),{name:"if",hash:{},fn:c.program(2,g,0),inverse:c.program(4,g,0),data:g,loc:{start:{line:4,column:2},end:{line:14,column:9}}}))!=null?e:"")},"2":function(c,h,f,d,g){var e;return'			<input type="file" name=\''+c.escapeExpression(((e=(e=f.name||(h!=null?h.name:h))!=null?e:c.hooks.helperMissing),(typeof e==="function"?e.call(h!=null?h:(c.nullContext||{}),{name:"name",hash:{},data:g,loc:{start:{line:5,column:28},end:{line:5,column:36}}}):e)))+"'/>\n"},"4":function(c,h,f,d,g){var e;return((e=f["if"].call(h!=null?h:(c.nullContext||{}),(h!=null?h["default"]:h),{name:"if",hash:{},fn:c.program(5,g,0),inverse:c.program(7,g,0),data:g,loc:{start:{line:7,column:3},end:{line:13,column:10}}}))!=null?e:"")},"5":function(c,h,d,g,f){var e,l=h!=null?h:(c.nullContext||{}),k=c.hooks.helperMissing,j="function",i=c.escapeExpression;return"				<textarea class='body-textarea required' placeholder='(required)' name='"+i(((e=(e=d.name||(h!=null?h.name:h))!=null?e:k),(typeof e===j?e.call(l,{name:"name",hash:{},data:f,loc:{start:{line:8,column:76},end:{line:8,column:84}}}):e)))+"'>"+i(((e=(e=d["default"]||(h!=null?h["default"]:h))!=null?e:k),(typeof e===j?e.call(l,{name:"default",hash:{},data:f,loc:{start:{line:8,column:86},end:{line:8,column:97}}}):e)))+"</textarea>\n"},"7":function(c,h,f,d,g){var e;return"				<textarea class='body-textarea required' placeholder='(required)' name='"+c.escapeExpression(((e=(e=f.name||(h!=null?h.name:h))!=null?e:c.hooks.helperMissing),(typeof e==="function"?e.call(h!=null?h:(c.nullContext||{}),{name:"name",hash:{},data:g,loc:{start:{line:10,column:76},end:{line:10,column:84}}}):e)))+'\'></textarea>\n				<br />\n				<div class="parameter-content-type" />\n'},"9":function(c,h,f,d,g){var e;return((e=f["if"].call(h!=null?h:(c.nullContext||{}),(h!=null?h.isFile:h),{name:"if",hash:{},fn:c.program(10,g,0),inverse:c.program(12,g,0),data:g,loc:{start:{line:16,column:2},end:{line:21,column:11}}}))!=null?e:"")},"10":function(c,h,f,d,g){var e;return"			<input class='parameter' class='required' type='file' name='"+c.escapeExpression(((e=(e=f.name||(h!=null?h.name:h))!=null?e:c.hooks.helperMissing),(typeof e==="function"?e.call(h!=null?h:(c.nullContext||{}),{name:"name",hash:{},data:g,loc:{start:{line:17,column:63},end:{line:17,column:71}}}):e)))+"'/>\n"},"12":function(c,h,f,d,g){var e;return((e=(f.renderTextParam||(h&&h.renderTextParam)||c.hooks.helperMissing).call(h!=null?h:(c.nullContext||{}),h,{name:"renderTextParam",hash:{},fn:c.program(13,g,0),inverse:c.noop,data:g,loc:{start:{line:19,column:6},end:{line:20,column:26}}}))!=null?e:"")},"13":function(c,g,e,d,f){return""},compiler:[8,">= 4.3.0"],main:function(d,i,e,h,g){var c,f,l=i!=null?i:(d.nullContext||{}),k=d.hooks.helperMissing,j="function";return"<td class='code required'>"+d.escapeExpression(((f=(f=e.name||(i!=null?i.name:i))!=null?f:k),(typeof f===j?f.call(l,{name:"name",hash:{},data:g,loc:{start:{line:1,column:26},end:{line:1,column:34}}}):f)))+"</td>\n<td>\n"+((c=e["if"].call(l,(i!=null?i.isBody:i),{name:"if",hash:{},fn:d.program(1,g,0),inverse:d.program(9,g,0),data:g,loc:{start:{line:3,column:1},end:{line:22,column:8}}}))!=null?c:"")+"</td>\n<td>\n	<strong>"+((c=((f=(f=e.description||(i!=null?i.description:i))!=null?f:k),(typeof f===j?f.call(l,{name:"description",hash:{},data:g,loc:{start:{line:25,column:9},end:{line:25,column:26}}}):f)))!=null?c:"")+"</strong>\n</td>\n<td>"+((c=((f=(f=e.paramType||(i!=null?i.paramType:i))!=null?f:k),(typeof f===j?f.call(l,{name:"paramType",hash:{},data:g,loc:{start:{line:27,column:4},end:{line:27,column:19}}}):f)))!=null?c:"")+'</td>\n<td><span class="model-signature"></span></td>\n'},useData:true})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.parameter_content_type=b({"1":function(c,h,f,d,g){var e;return((e=f.each.call(h!=null?h:(c.nullContext||{}),(h!=null?h.consumes:h),{name:"each",hash:{},fn:c.program(2,g,0),inverse:c.noop,data:g,loc:{start:{line:4,column:2},end:{line:6,column:11}}}))!=null?e:"")},"2":function(c,i,f,d,g){var e,h=c.lambda;return'  <option value="'+((e=h(i,i))!=null?e:"")+'">'+((e=h(i,i))!=null?e:"")+"</option>\n"},"4":function(c,g,e,d,f){return'  <option value="application/json">application/json</option>\n'},compiler:[8,">= 4.3.0"],main:function(c,h,f,d,g){var e;return'<label for="parameterContentType"></label>\n<select name="parameterContentType">\n'+((e=f["if"].call(h!=null?h:(c.nullContext||{}),(h!=null?h.consumes:h),{name:"if",hash:{},fn:c.program(1,g,0),inverse:c.program(4,g,0),data:g,loc:{start:{line:3,column:0},end:{line:9,column:7}}}))!=null?e:"")+"</select>\n"},useData:true})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.resource=b({"1":function(c,g,e,d,f){return" : "},"3":function(c,h,f,d,g){var e;return"<li>\n      <a href='"+c.escapeExpression(((e=(e=f.url||(h!=null?h.url:h))!=null?e:c.hooks.helperMissing),(typeof e==="function"?e.call(h!=null?h:(c.nullContext||{}),{name:"url",hash:{},data:g,loc:{start:{line:21,column:15},end:{line:21,column:22}}}):e)))+"'>Raw</a>\n    </li>"},compiler:[8,">= 4.3.0"],main:function(d,j,e,i,h){var c,f,p,o=j!=null?j:(d.nullContext||{}),n=d.hooks.helperMissing,m="function",l=d.escapeExpression,k=d.hooks.blockHelperMissing,g="<div class='heading'>\n  <h2 data-toggle=\"collapse\" data-target='#"+l(((f=(f=e.id||(j!=null?j.id:j))!=null?f:n),(typeof f===m?f.call(o,{name:"id",hash:{},data:h,loc:{start:{line:2,column:43},end:{line:2,column:49}}}):f)))+'_endpoint_list\'  aria-expanded="false" class="collapsed">\n    <a href=\'#!/'+l(((f=(f=e.api_version||(j!=null?j.api_version:j))!=null?f:n),(typeof f===m?f.call(o,{name:"api_version",hash:{},data:h,loc:{start:{line:3,column:16},end:{line:3,column:31}}}):f)))+"/"+l(((f=(f=e.id||(j!=null?j.id:j))!=null?f:n),(typeof f===m?f.call(o,{name:"id",hash:{},data:h,loc:{start:{line:3,column:32},end:{line:3,column:38}}}):f)))+"' data-id=\""+l(((f=(f=e.id||(j!=null?j.id:j))!=null?f:n),(typeof f===m?f.call(o,{name:"id",hash:{},data:h,loc:{start:{line:3,column:49},end:{line:3,column:55}}}):f)))+'">'+l(((f=(f=e.name||(j!=null?j.name:j))!=null?f:n),(typeof f===m?f.call(o,{name:"name",hash:{},data:h,loc:{start:{line:3,column:57},end:{line:3,column:65}}}):f)))+"  ";c=((f=(f=e.summary||(j!=null?j.summary:j))!=null?f:n),(p={name:"summary",hash:{},fn:d.program(1,h,0),inverse:d.noop,data:h,loc:{start:{line:3,column:67},end:{line:3,column:94}}}),(typeof f===m?f.call(o,p):f));if(!e.summary){c=k.call(j,c,p)}if(c!=null){g+=c}g+=((c=((f=(f=e.summary||(j!=null?j.summary:j))!=null?f:n),(typeof f===m?f.call(o,{name:"summary",hash:{},data:h,loc:{start:{line:3,column:94},end:{line:3,column:107}}}):f)))!=null?c:"")+"</a>\n  </h2>\n<!--\n  <ul class='options'>\n    <li>\n      <a href='#!/"+l(((f=(f=e.id||(j!=null?j.id:j))!=null?f:n),(typeof f===m?f.call(o,{name:"id",hash:{},data:h,loc:{start:{line:8,column:18},end:{line:8,column:24}}}):f)))+"' id='endpointListTogger_"+l(((f=(f=e.id||(j!=null?j.id:j))!=null?f:n),(typeof f===m?f.call(o,{name:"id",hash:{},data:h,loc:{start:{line:8,column:49},end:{line:8,column:55}}}):f)))+'\' class="toggleEndpointList" data-id="'+l(((f=(f=e.id||(j!=null?j.id:j))!=null?f:n),(typeof f===m?f.call(o,{name:"id",hash:{},data:h,loc:{start:{line:8,column:93},end:{line:8,column:99}}}):f)))+'">Show/Hide</a>\n    </li>\n    <li>\n      <a href=\'#\' class="collapseResource" data-id="'+l(((f=(f=e.id||(j!=null?j.id:j))!=null?f:n),(typeof f===m?f.call(o,{name:"id",hash:{},data:h,loc:{start:{line:11,column:52},end:{line:11,column:58}}}):f)))+'">\n        List Operations\n      </a>\n    </li>\n    <li>\n      <a href=\'#\' class="expandResource" data-id='+l(((f=(f=e.id||(j!=null?j.id:j))!=null?f:n),(typeof f===m?f.call(o,{name:"id",hash:{},data:h,loc:{start:{line:16,column:49},end:{line:16,column:55}}}):f)))+">\n        Expand Operations\n      </a>\n    </li>\n    ";c=((f=(f=e.url||(j!=null?j.url:j))!=null?f:n),(p={name:"url",hash:{},fn:d.program(3,h,0),inverse:d.noop,data:h,loc:{start:{line:20,column:4},end:{line:22,column:17}}}),(typeof f===m?f.call(o,p):f));if(!e.url){c=k.call(j,c,p)}if(c!=null){g+=c}return g+"\n  </ul>\n-->\n</div>\n<ul class='endpoints collapse' id='"+l(((f=(f=e.id||(j!=null?j.id:j))!=null?f:n),(typeof f===m?f.call(o,{name:"id",hash:{},data:h,loc:{start:{line:26,column:35},end:{line:26,column:41}}}):f)))+"_endpoint_list'>\n\n</ul>\n"},useData:true})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.response_content_type=b({"1":function(c,h,f,d,g){var e;return((e=f.each.call(h!=null?h:(c.nullContext||{}),(h!=null?h.produces:h),{name:"each",hash:{},fn:c.program(2,g,0),inverse:c.noop,data:g,loc:{start:{line:4,column:2},end:{line:6,column:11}}}))!=null?e:"")},"2":function(c,i,f,d,g){var e,h=c.lambda;return'  <option value="'+((e=h(i,i))!=null?e:"")+'">'+((e=h(i,i))!=null?e:"")+"</option>\n"},"4":function(c,g,e,d,f){return'  <option value="application/json">application/json</option>\n'},compiler:[8,">= 4.3.0"],main:function(c,h,f,d,g){var e;return'<label for="responseContentType"></label>\n<select name="responseContentType">\n'+((e=f["if"].call(h!=null?h:(c.nullContext||{}),(h!=null?h.produces:h),{name:"if",hash:{},fn:c.program(1,g,0),inverse:c.program(4,g,0),data:g,loc:{start:{line:3,column:0},end:{line:9,column:7}}}))!=null?e:"")+"</select>\n"},useData:true})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.signature=b({compiler:[8,">= 4.3.0"],main:function(d,i,e,h,g){var c,f,l=i!=null?i:(d.nullContext||{}),k=d.hooks.helperMissing,j="function";return'<div>\n<ul class="signature-nav">\n  <li><a class="description-link" href="#">Model</a></li>\n  <li><a class="snippet-link" href="#">Model Example</a></li>\n</ul>\n<div>\n\n<div class="signature-container">\n  <div class="description">\n    '+((c=((f=(f=e.signature||(i!=null?i.signature:i))!=null?f:k),(typeof f===j?f.call(l,{name:"signature",hash:{},data:g,loc:{start:{line:10,column:4},end:{line:10,column:19}}}):f)))!=null?c:"")+'\n  </div>\n\n  <div class="snippet">\n    <pre><code>'+d.escapeExpression(((f=(f=e.sampleJSON||(i!=null?i.sampleJSON:i))!=null?f:k),(typeof f===j?f.call(l,{name:"sampleJSON",hash:{},data:g,loc:{start:{line:14,column:15},end:{line:14,column:29}}}):f)))+'</code></pre>\n    <small class="notice"></small>\n  </div>\n</div>\n\n'},useData:true})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.status_code=b({compiler:[8,">= 4.3.0"],main:function(d,i,e,h,g){var c,f,l=i!=null?i:(d.nullContext||{}),k=d.hooks.helperMissing,j="function";return"<td width='15%' class='code'>"+d.escapeExpression(((f=(f=e.code||(i!=null?i.code:i))!=null?f:k),(typeof f===j?f.call(l,{name:"code",hash:{},data:g,loc:{start:{line:1,column:29},end:{line:1,column:37}}}):f)))+"</td>\n<td>"+((c=((f=(f=e.message||(i!=null?i.message:i))!=null?f:k),(typeof f===j?f.call(l,{name:"message",hash:{},data:g,loc:{start:{line:2,column:4},end:{line:2,column:17}}}):f)))!=null?c:"")+"</td>\n<td width='50%'><span class=\"model-signature\" /></td>"},useData:true})})();(function(){var t,k,l,u,x,q,n,m,p,o,j,r,v,s,i,d,b,B,h,g,f,e,c,a,A,z,w={}.hasOwnProperty,y=function(F,D){for(var C in D){if(w.call(D,C)){F[C]=D[C]}}function E(){this.constructor=F}E.prototype=D.prototype;F.prototype=new E();F.__super__=D.prototype;return F};v=(function(D){y(C,D);function C(){s=C.__super__.constructor.apply(this,arguments);return s}C.prototype.dom_id="swagger_ui";C.prototype.options=null;C.prototype.api=null;C.prototype.headerView=null;C.prototype.mainView=null;C.prototype.initialize=function(E){var F=this;if(E==null){E={}}if(E.dom_id!=null){this.dom_id=E.dom_id;delete E.dom_id}if($("#"+this.dom_id)==null){$("body").append('<div id="'+this.dom_id+'"></div>')}this.options=E;this.options.success=function(){return F.render()};this.options.progress=function(G){return F.showMessage(G)};this.options.failure=function(G){if(F.api&&F.api.isValid===false&&F.options.legacyFallback===true){log("not a valid 2.0 spec, loading legacy client");F.api=new SwaggerApi(F.options);return F.api.build()}else{return F.onLoadFailure(G)}};this.headerView=new u({el:$("#header")});return this.headerView.on("update-swagger-ui",function(G){return F.updateSwaggerUi(G)})};C.prototype.setOption=function(E,F){return this.options[E]=F};C.prototype.getOption=function(E){return this.options[E]};C.prototype.updateSwaggerUi=function(E){this.options.url=E.url;return this.load()};C.prototype.load=function(){var F,E;if((E=this.mainView)!=null){E.clear()}F=this.options.url;if(F.indexOf("http")!==0){F=this.buildUrl(window.location.href.toString(),F)}this.options.url=F;this.headerView.update(F);this.api=new SwaggerClient(this.options);if(this.options.success===false){return this.api.build()}};C.prototype.collapseAll=function(){return Docs.collapseEndpointListForResource("")};C.prototype.listAll=function(){return Docs.collapseOperationsForResource("")};C.prototype.expandAll=function(){return Docs.expandOperationsForResource("")};C.prototype.render=function(){this.showMessage("Finished Loading Resource Information. Rendering Swagger UI...");this.mainView=new x({model:this.api,el:$("#"+this.dom_id),swaggerOptions:this.options}).render();this.showMessage();switch(this.options.docExpansion){case"full":this.expandAll();break;case"list":this.listAll()}if(this.options.onComplete){return this.options.onComplete(this.api,this)}};C.prototype.buildUrl=function(G,E){var F,H;log("base is "+G);if(E.indexOf("/")===0){H=G.split("/");G=H[0]+"//"+H[2];return G+E}else{F=G.length;if(G.indexOf("?")>-1){F=Math.min(F,G.indexOf("?"))}if(G.indexOf("#")>-1){F=Math.min(F,G.indexOf("#"))}G=G.substring(0,F);if(G.indexOf("/",G.length-1)!==-1){return G+E}return G+"/"+E}};C.prototype.showMessage=function(E){if(E==null){E=""}$("#message-bar").removeClass("message-fail");$("#message-bar").addClass("message-success");$("#message-bar").toggle(!!E);return $("#message-bar").html(E)};C.prototype.onLoadFailure=function(E){var F;if(E==null){E=""}$("#message-bar").removeClass("message-success");$("#message-bar").addClass("message-fail");$("#message-bar").toggle(!!E);F=$("#message-bar").html(E);if(this.options.onFailure!=null){this.options.onFailure(E)}return F};return C})(Backbone.Router);window.SwaggerUi=v;u=(function(D){y(C,D);function C(){i=C.__super__.constructor.apply(this,arguments);return i}C.prototype.events={"click #show-pet-store-icon":"showPetStore","click #show-wordnik-dev-icon":"showWordnikDev","click #explore":"showCustom","keyup #input_baseUrl":"showCustomOnKeyup","keyup #input_apiKey":"showCustomOnKeyup"};C.prototype.initialize=function(){};C.prototype.showPetStore=function(E){return this.trigger("update-swagger-ui",{url:"http://petstore.swagger.wordnik.com/api/api-docs"})};C.prototype.showWordnikDev=function(E){return this.trigger("update-swagger-ui",{url:"http://api.wordnik.com/v4/resources.json"})};C.prototype.showCustomOnKeyup=function(E){if(E.keyCode===13){return this.showCustom()}};C.prototype.showCustom=function(E){if(E!=null){E.preventDefault()}return this.trigger("update-swagger-ui",{url:$("#input_baseUrl").val(),apiKey:$("#input_apiKey").val()})};C.prototype.update=function(F,G,E){if(E==null){E=false}$("#input_baseUrl").val(F);if(E){return this.trigger("update-swagger-ui",{url:F})}};return C})(Backbone.View);x=(function(C){var D;y(E,C);function E(){h=E.__super__.constructor.apply(this,arguments);return h}D={alpha:function(G,F){return G.path.localeCompare(F.path)},method:function(G,F){return G.method.localeCompare(F.method)}};E.prototype.initialize=function(J){var I,H,G,F,K,L;if(J==null){J={}}this.model.auths=[];L=this.model.securityDefinitions;for(H in L){K=L[H];I={name:H,type:K.type,value:K};this.model.auths.push(I)}if(this.model.info&&this.model.info.license&&typeof this.model.info.license==="string"){G=this.model.info.license;F=this.model.info.licenseUrl;this.model.info.license={};this.model.info.license.name=G;this.model.info.license.url=F}if(!this.model.info){this.model.info={}}if(!this.model.info.version){this.model.info.version=this.model.apiVersion}this.model.info.full_version=this.model.info.version;this.model.info.version=this.model.info.version.split(".").slice(0,2).join(".");if(this.model.info.description){this.model.info.description=marked(this.model.info.description)}else{this.model.info.description=""}if(false&&this.model.swaggerVersion==="2.0"){if("validatorUrl" in J.swaggerOptions){return this.model.validatorUrl=J.swaggerOptions.validatorUrl}else{if(this.model.url.indexOf("localhost")>0){return this.model.validatorUrl=null}else{return this.model.validatorUrl="http://online.swagger.io/validator"}}}};E.prototype.render=function(){var K,N,F,H,G,L,I,M,O,J;if(this.model.securityDefinitions){for(G in this.model.securityDefinitions){K=this.model.securityDefinitions[G];if(K.type==="apiKey"&&$("#apikey_button").length===0){N=new t({model:K}).render().el;$(".auth_main_container").append(N)}if(K.type==="basicAuth"&&$("#basic_auth_button").length===0){N=new k({model:K}).render().el;$(".auth_main_container").append(N)}}}$(this.el).html(Handlebars.templates.main(this.model));I={};F=0;J=this.model.apisArray;for(M=0,O=J.length;M<O;M++){L=J[M];H=L.name;while(typeof I[H]!=="undefined"){H=H+"_"+F;F+=1}L.id=H;L.api_version=this.model.info.version;I[H]=L;this.addResource(L,this.model.auths)}return this};E.prototype.addResource=function(H,G){var F;H.id=H.id.replace(/\s/g,"_");F=new p({model:H,tagName:"li",id:"resource_"+H.id,className:"resource",auths:G,swaggerOptions:this.options.swaggerOptions});return $("#resources").append(F.render().el)};E.prototype.clear=function(){return $(this.el).html("")};return E})(Backbone.View);p=(function(D){y(C,D);function C(){g=C.__super__.constructor.apply(this,arguments);return g}C.prototype.initialize=function(E){if(E==null){E={}}this.auths=E.auths;if(""===this.model.description){return this.model.description=null}};C.prototype.render=function(){var F,K,H,G,I,E,J;if(this.model.description){this.model.summary=this.model.description}$(this.el).html(Handlebars.templates.resource(this.model));H={};J=this.model.operationsArray;for(I=0,E=J.length;I<E;I++){G=J[I];F=0;K=G.nickname;while(typeof H[K]!=="undefined"){K=K+"_"+F;F+=1}H[K]=G;G.nickname=K;G.parentId=this.model.id;G.api_version=this.model.api_version;G.activity=this.addOperation(G)}$(".toggleEndpointList",this.el).click(this.callDocs.bind(this,"toggleEndpointListForResource"));$(".collapseResource",this.el).click(this.callDocs.bind(this,"collapseOperationsForResource"));$(".expandResource",this.el).click(this.callDocs.bind(this,"expandOperationsForResource"));return this};C.prototype.addOperation=function(E){var F;E.number=this.number;F=new q({model:E,tagName:"li",className:"endpoint",swaggerOptions:this.options.swaggerOptions,auths:this.auths});$(".endpoints",$(this.el)).append(F.render().el);return this.number++};C.prototype.callDocs=function(F,E){E.preventDefault();return Docs[F](E.currentTarget.getAttribute("data-id"))};return C})(Backbone.View);q=(function(D){y(C,D);function C(){f=C.__super__.constructor.apply(this,arguments);return f}C.prototype.invocationUrl=null;C.prototype.events={"submit .sandbox":"submitOperation","click .submit":"submitOperation","click .response_hider":"hideResponse","click .toggleOperation":"toggleOperationContent","mouseenter .api-ic":"mouseEnter","mouseout .api-ic":"mouseExit"};C.prototype.initialize=function(E){if(E==null){E={}}this.auths=E.auths;return this};C.prototype.mouseEnter=function(J){var H,I,M,F,E,N,K,G,O,L;H=$(J.currentTarget.parentNode).find("#api_information_panel");O=J.pageX;L=J.pageY;N=$(window).scrollLeft();K=$(window).scrollTop();F=N+$(window).width();E=K+$(window).height();G=H.width();I=H.height();if(O+G>F){O=F-G}if(O<N){O=N}if(L+I>E){L=E-I}if(L<K){L=K}M={};M.top=L;M.left=O;H.css(M);return $(J.currentTarget.parentNode).find("#api_information_panel").show()};C.prototype.mouseExit=function(E){return $(E.currentTarget.parentNode).find("#api_information_panel").hide()};C.prototype.render=function(){var al,R,aj,F,W,V,af,S,ab,H,Z,G,U,X,ad,ak,E,ao,Y,aa,ai,ah,ag,ae,T,N,L,J,I,ac,an,am,Q,P,O,M,K;V=true;if(!V){this.model.isReadOnly=true}this.model.description=this.model.description||this.model.notes;if(this.model.description){this.model.description=marked(this.model.description)}this.model.oauth=null;if(this.model.authorizations){if(Array.isArray(this.model.authorizations)){Q=this.model.authorizations;for(ai=0,T=Q.length;ai<T;ai++){aj=Q[ai];for(S in aj){R=aj[S];for(al in this.auths){R=this.auths[al];if(R.type==="oauth2"){this.model.oauth={};this.model.oauth.scopes=[];P=R.value.scopes;for(af in P){Y=P[af];ab={scope:af,description:Y};this.model.oauth.scopes.push(ab)}}}}}}else{O=this.model.authorizations;for(af in O){Y=O[af];if(af==="oauth2"){if(this.model.oauth===null){this.model.oauth={}}if(this.model.oauth.scopes===void 0){this.model.oauth.scopes=[]}for(ah=0,N=Y.length;ah<N;ah++){ab=Y[ah];this.model.oauth.scopes.push(ab)}}}}}if(typeof this.model.responses!=="undefined"){this.model.responseMessages=[];M=this.model.responses;for(F in M){aa=M[F];X=null;ad=this.model.responses[F].schema;if(ad&&ad["$ref"]){X=ad["$ref"];if(X.indexOf("#/definitions/")===0){X=X.substring("#/definitions/".length)}}this.model.responseMessages.push({code:F,message:aa.description,responseModel:X})}}if(typeof this.model.responseMessages==="undefined"){this.model.responseMessages=[]}$(this.el).html(Handlebars.templates.operation(this.model));if(this.model.responseClassSignature&&this.model.responseClassSignature!=="string"){ak={sampleJSON:this.model.responseSampleJSON,isParam:false,signature:this.model.responseClassSignature};U=new j({model:ak,tagName:"div"});$(".model-signature",$(this.el)).append(U.render().el)}else{this.model.responseClassSignature="string";$(".model-signature",$(this.el)).html(this.model.type)}W={isParam:false};W.consumes=this.model.consumes;W.produces=this.model.produces;K=this.model.parameters;for(ag=0,L=K.length;ag<L;ag++){H=K[ag];ao=H.type||H.dataType;if(typeof ao==="undefined"){X=H.schema;if(X&&X.type==="array"){X=X.items}if(X&&X["$ref"]){Z=X["$ref"];if(Z.indexOf("#/definitions/")===0){ao=Z.substring("#/definitions/".length)}else{ao=Z}}}if(ao&&ao.toLowerCase()==="file"){if(!W.consumes){W.consumes="multipart/form-data"}}H.type=ao}G=new o({model:W});$(".response-content-type",$(this.el)).append(G.render().el);an=this.model.parameters;for(ae=0,J=an.length;ae<J;ae++){H=an[ae];this.addParameter(H,W.consumes)}am=this.model.responseMessages;for(ac=0,I=am.length;ac<I;ac++){E=am[ac];this.addStatusCode(E)}return this};C.prototype.addParameter=function(G,E){var F;G.consumes=E;F=new m({model:G,tagName:"tr",readOnly:this.model.isReadOnly});return $(".operation-params",$(this.el)).append(F.render().el)};C.prototype.addStatusCode=function(F){var E;E=new r({model:F,tagName:"tr"});return $(".operation-status",$(this.el)).append(E.render().el)};C.prototype.submitOperation=function(S){var U,K,R,H,M,E,N,Q,P,O,T,J,G,L,I,F;if(S!=null){S.preventDefault()}K=$(".sandbox",$(this.el));U=true;K.find("input.required").each(function(){var V=this;$(this).removeClass("error");if(jQuery.trim($(this).val())===""){$(this).addClass("error");$(this).wiggle({callback:function(){return $(V).focus()}});return U=false}});K.find("textarea.required").each(function(){var V=this;$(this).removeClass("error");if(jQuery.trim($(this).val())===""){$(this).addClass("error");$(this).wiggle({callback:function(){return $(V).focus()}});return U=false}});if(U){H={};E={parent:this};R=false;L=K.find("input");for(Q=0,T=L.length;Q<T;Q++){M=L[Q];N=M.value;if((N!=null)&&jQuery.trim(N).length>0){H[M.name]=N}if(M.type==="file"){R=true}}I=K.find("textarea");for(P=0,J=I.length;P<J;P++){M=I[P];N=this.getTextAreaValue(M);if((N!=null)&&jQuery.trim(N).length>0){H[M.name]=N}}F=K.find("select");for(O=0,G=F.length;O<G;O++){M=F[O];N=this.getSelectedValue(M);if((N!=null)&&jQuery.trim(N).length>0){H[M.name]=N}}E.responseContentType=$("div select[name=responseContentType]",$(this.el)).val();E.requestContentType=$("div select[name=parameterContentType]",$(this.el)).val();$(".response_throbber",$(this.el)).show();if(R){return this.handleFileUpload(H,K)}else{return this.model["do"](H,E,this.showCompleteStatus,this.showErrorStatus,this)}}};C.prototype.success=function(E,F){return F.showCompleteStatus(E)};C.prototype.handleFileUpload=function(V,M){var Q,L,G,R,P,O,T,N,K,J,H,U,Y,X,W,I,F,E,Z,S=this;I=M.serializeArray();for(N=0,U=I.length;N<U;N++){R=I[N];if((R.value!=null)&&jQuery.trim(R.value).length>0){V[R.name]=R.value}}Q=new FormData();T=0;F=this.model.parameters;for(K=0,Y=F.length;K<Y;K++){O=F[K];if(O.paramType==="form"){if(O.type.toLowerCase()!=="file"&&V[O.name]!==void 0){Q.append(O.name,V[O.name])}}}G={};E=this.model.parameters;for(J=0,X=E.length;J<X;J++){O=E[J];if(O.paramType==="header"){G[O.name]=V[O.name]}}Z=M.find('input[type~="file"]');for(H=0,W=Z.length;H<W;H++){L=Z[H];if(typeof L.files[0]!=="undefined"){Q.append($(L).attr("name"),L.files[0]);T+=1}}this.invocationUrl=this.model.supportHeaderParams()?(G=this.model.getHeaderParams(V),this.model.urlify(V,false)):this.model.urlify(V,true);$(".request_url",$(this.el)).html("<pre></pre>");$(".request_url pre",$(this.el)).text(this.invocationUrl);P={type:this.model.method,url:this.invocationUrl,headers:G,data:Q,dataType:"json",contentType:false,processData:false,error:function(ab,ac,aa){return S.showErrorStatus(S.wrap(ab),S)},success:function(aa){return S.showResponse(aa,S)},complete:function(aa){return S.showCompleteStatus(S.wrap(aa),S)}};if(window.authorizations){window.authorizations.apply(P)}if(T===0){P.data.append("fake","true")}jQuery.ajax(P);return false};C.prototype.wrap=function(I){var G,J,L,F,K,H,E;L={};J=I.getAllResponseHeaders().split("\r");for(H=0,E=J.length;H<E;H++){F=J[H];G=F.split(":");if(G[0]!==void 0&&G[1]!==void 0){L[G[0].trim()]=G[1].trim()}}K={};K.content={};K.content.data=I.responseText;K.headers=L;K.request={};K.request.url=this.invocationUrl;K.status=I.status;return K};C.prototype.getTextAreaValue=function(K){var H,J,G,E,I,F;if(K.value===null||jQuery.trim(K.value).length===0){return null}J=this.getParamByName(K.name);if(J&&J.type&&J.type.toLowerCase()==="array"){G=K.value.split("\n");E=[];for(I=0,F=G.length;I<F;I++){H=G[I];if((H!=null)&&jQuery.trim(H).length>0){E.push(H)}}if(E.length>0){return E}else{return null}}else{return K.value}};C.prototype.getParamByName=function(F){var G,I,E,H;if(this.model.parameters){H=this.model.parameters;for(I=0,E=H.length;I<E;I++){G=H[I];if(G.name===F){return G}}}return null};C.prototype.getSelectedValue=function(E){var H,G,J,F,I;if(!E.multiple){return E.value}else{G=[];I=E.options;for(J=0,F=I.length;J<F;J++){H=I[J];if(H.selected){G.push(H.value)}}if(G.length>0){return G}else{return null}}};C.prototype.hideResponse=function(E){if(E!=null){E.preventDefault()}$(".response",$(this.el)).slideUp();return $(".response_hider",$(this.el)).fadeOut()};C.prototype.showResponse=function(E){var F;F=JSON.stringify(E,null,"\t").replace(/\n/g,"<br>");return $(".response_body",$(this.el)).html(escape(F))};C.prototype.showErrorStatus=function(F,E){return E.showStatus(F)};C.prototype.showCompleteStatus=function(F,E){return E.showStatus(F)};C.prototype.formatXml=function(L){var H,K,F,M,R,N,G,E,P,Q,J,I,O;E=/(>)(<)(\/*)/g;Q=/[ ]*(.*)[ ]+\n/g;H=/(<.+>)(.+\n)/g;L=L.replace(E,"$1\n$2$3").replace(Q,"$1\n").replace(H,"$1\n$2");G=0;K="";R=L.split("\n");F=0;M="other";P={"single->single":0,"single->closing":-1,"single->opening":0,"single->other":0,"closing->single":0,"closing->closing":-1,"closing->opening":0,"closing->other":0,"opening->single":1,"opening->closing":0,"opening->opening":1,"opening->other":1,"other->single":0,"other->closing":-1,"other->opening":0,"other->other":0};J=function(X){var T,S,V,Z,W,U,Y;U={single:Boolean(X.match(/<.+\/>/)),closing:Boolean(X.match(/<\/.+>/)),opening:Boolean(X.match(/<[^!?].*>/))};W=((function(){var aa;aa=[];for(V in U){Y=U[V];if(Y){aa.push(V)}}return aa})())[0];W=W===void 0?"other":W;T=M+"->"+W;M=W;Z="";F+=P[T];Z=((function(){var ab,ac,aa;aa=[];for(S=ab=0,ac=F;0<=ac?ab<ac:ab>ac;S=0<=ac?++ab:--ab){aa.push("  ")}return aa})()).join("");if(T==="opening->closing"){return K=K.substr(0,K.length-1)+X+"\n"}else{return K+=Z+X+"\n"}};for(I=0,O=R.length;I<O;I++){N=R[I];J(N)}return K};C.prototype.showStatus=function(J){var G,N,P,M,H,Q,E,I,L,K,F;if(J.content===void 0){N=J.data;F=J.url}else{N=J.content.data;F=J.request.url}H=J.headers;P=null;if(H){P=H["Content-Type"]||H["content-type"];if(P){P=P.split(";")[0].trim()}}if(!N){G=$("<code />").text("no content");I=$('<pre class="json" />').append(G)}else{if(P==="application/json"||/\+json$/.test(P)){Q=null;try{Q=JSON.stringify(JSON.parse(N),null,"  ")}catch(O){M=O;Q="can't parse JSON.  Raw result:\n\n"+N}G=$("<code />").text(Q);I=$('<pre class="json" />').append(G)}else{if(P==="application/xml"||/\+xml$/.test(P)){G=$("<code />").text(this.formatXml(N));I=$('<pre class="xml" />').append(G)}else{if(P==="text/html"){G=$("<code />").html(_.escape(N));I=$('<pre class="xml" />').append(G)}else{if(/^image\//.test(P)){if(N instanceof Blob&&(N.type.indexOf("image/")===0)){I=$("<img>").attr("src",URL.createObjectURL(N))}else{I=$("<code />").text("Received "+N.length+" bytes of "+P+" data.")}}else{G=$("<code />").text(N);I=$('<pre class="json" />').append(G)}}}}}L=I;$(".request_url",$(this.el)).html("<pre></pre>");$(".request_url pre",$(this.el)).text(F);$(".response_code",$(this.el)).html("<pre>"+J.status+"</pre>");$(".response_body",$(this.el)).html(L);$(".response_headers",$(this.el)).html("<pre>"+_.escape(JSON.stringify(J.headers,null,"  ")).replace(/\n/g,"<br>")+"</pre>");$(".response",$(this.el)).slideDown();$(".response_hider",$(this.el)).show();$(".response_throbber",$(this.el)).hide();K=$(".response_body",$(this.el))[0];E=this.options.swaggerOptions;if(E.highlightSizeThreshold&&J.data.length>E.highlightSizeThreshold){return K}else{return hljs.highlightBlock(K)}};C.prototype.toggleOperationContent=function(){var E;E=$("#"+Docs.escapeResourceName(this.model.parentId+"_"+this.model.nickname+"_content"));if(E.is(":visible")){return Docs.collapseOperation(E)}else{return Docs.expandOperation(E)}};return C})(Backbone.View);r=(function(D){y(C,D);function C(){e=C.__super__.constructor.apply(this,arguments);return e}C.prototype.initialize=function(){};C.prototype.render=function(){var F,E,G;G=this.template();$(this.el).html(G(this.model));if(swaggerUi.api.models.hasOwnProperty(this.model.responseModel)){F={sampleJSON:JSON.stringify(swaggerUi.api.models[this.model.responseModel].createJSONSample(),null,2),isParam:false,signature:swaggerUi.api.models[this.model.responseModel].getMockSignature()};E=new j({model:F,tagName:"div"});$(".model-signature",this.$el).append(E.render().el)}else{$(".model-signature",this.$el).html("")}return this};C.prototype.template=function(){return Handlebars.templates.status_code};return C})(Backbone.View);m=(function(D){y(C,D);function C(){c=C.__super__.constructor.apply(this,arguments);return c}C.prototype.initialize=function(){Handlebars.registerHelper("isArray",function(F,E){if(F.type.toLowerCase()==="array"||F.allowMultiple){return E.fn(this)}else{return E.inverse(this)}});return initHandlebarsRegisterHelper()};C.prototype.render=function(){var E,F,I,G,J,H,M,N,L,K;K=this.model.type||this.model.dataType;if(typeof K==="undefined"){H=this.model.schema;if(H&&H["$ref"]){G=H["$ref"];if(G.indexOf("#/definitions/")===0){K=G.substring("#/definitions/".length)}else{K=G}}}this.model.type=K;this.model.paramType=this.model["in"]||this.model.paramType;if(this.model.paramType==="body"){this.model.isBody=true}if(K&&K.toLowerCase()==="file"){this.model.isFile=true}this.model["default"]=this.model["default"]||this.model.defaultValue;if(this.model.allowableValues){this.model.isList=true}L=this.template();$(this.el).html(L(this.model));M={sampleJSON:this.model.sampleJSON,isParam:true,signature:this.model.signature};if(this.model.sampleJSON){N=new j({model:M,tagName:"div"});$(".model-signature",$(this.el)).append(N.render().el)}else{$(".model-signature",$(this.el)).html(this.model.signature)}F=false;if(this.model.isBody){F=true}E={isParam:F};E.consumes=this.model.consumes;if(F){I=new n({model:E});$(".parameter-content-type",$(this.el)).append(I.render().el)}else{J=new o({model:E});$(".response-content-type",$(this.el)).append(J.render().el)}return this};C.prototype.template=function(){if(this.model.isList){return Handlebars.templates.param_list}else{if(this.options.readOnly){if(this.model.required){return Handlebars.templates.param_readonly_required}else{return Handlebars.templates.param_readonly}}else{if(this.model.required){return Handlebars.templates.param_required}else{return Handlebars.templates.param}}}};return C})(Backbone.View);j=(function(D){y(C,D);function C(){a=C.__super__.constructor.apply(this,arguments);return a}C.prototype.events={"click a.description-link":"switchToDescription","click a.snippet-link":"switchToSnippet","mousedown .snippet":"snippetToTextArea"};C.prototype.initialize=function(){};C.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));this.switchToSnippet();this.isParam=this.model.isParam;if(this.isParam){$(".notice",$(this.el)).text("Click to set as parameter value")}return this};C.prototype.template=function(){return Handlebars.templates.signature};C.prototype.switchToDescription=function(E){if(E!=null){E.preventDefault()}$(".snippet",$(this.el)).hide();$(".description",$(this.el)).show();$(".description-link",$(this.el)).addClass("selected");return $(".snippet-link",$(this.el)).removeClass("selected")};C.prototype.switchToSnippet=function(E){if(E!=null){E.preventDefault()}$(".description",$(this.el)).hide();$(".snippet",$(this.el)).show();$(".snippet-link",$(this.el)).addClass("selected");return $(".description-link",$(this.el)).removeClass("selected")};C.prototype.snippetToTextArea=function(E){var F;if(this.isParam){if(E!=null){E.preventDefault()}F=$("textarea",$(this.el.parentNode.parentNode.parentNode));if($.trim(F.val())===""){return F.val(this.model.sampleJSON)}}};return C})(Backbone.View);l=(function(C){y(D,C);function D(){A=D.__super__.constructor.apply(this,arguments);return A}D.prototype.initialize=function(){};D.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));$("label[for=contentType]",$(this.el)).text("Response Content Type");return this};D.prototype.template=function(){return Handlebars.templates.content_type};return D})(Backbone.View);o=(function(C){y(D,C);function D(){z=D.__super__.constructor.apply(this,arguments);return z}D.prototype.initialize=function(){};D.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));$("label[for=responseContentType]",$(this.el)).text("Response Content Type");return this};D.prototype.template=function(){return Handlebars.templates.response_content_type};return D})(Backbone.View);n=(function(D){y(C,D);function C(){d=C.__super__.constructor.apply(this,arguments);return d}C.prototype.initialize=function(){};C.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));$("label[for=parameterContentType]",$(this.el)).text("Parameter content type:");return this};C.prototype.template=function(){return Handlebars.templates.parameter_content_type};return C})(Backbone.View);t=(function(D){y(C,D);function C(){b=C.__super__.constructor.apply(this,arguments);return b}C.prototype.initialize=function(){};C.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));return this};C.prototype.events={"click #apikey_button":"toggleApiKeyContainer","click #apply_api_key":"applyApiKey"};C.prototype.applyApiKey=function(){var E;window.authorizations.add(this.model.name,new ApiKeyAuthorization(this.model.name,$("#input_apiKey_entry").val(),this.model["in"]));window.swaggerUi.load();return E=$("#apikey_container").show()};C.prototype.toggleApiKeyContainer=function(){var E;if($("#apikey_container").length>0){E=$("#apikey_container").first();if(E.is(":visible")){return E.hide()}else{$(".auth_container").hide();return E.show()}}};C.prototype.template=function(){return Handlebars.templates.apikey_button_view};return C})(Backbone.View);k=(function(D){y(C,D);function C(){B=C.__super__.constructor.apply(this,arguments);return B}C.prototype.initialize=function(){};C.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));return this};C.prototype.events={"click #basic_auth_button":"togglePasswordContainer","click #apply_basic_auth":"applyPassword"};C.prototype.applyPassword=function(){var F,E,G;console.log("applying password");G=$(".input_username").val();E=$(".input_password").val();window.authorizations.add(this.model.type,new PasswordAuthorization("basic",G,E));window.swaggerUi.load();return F=$("#basic_auth_container").hide()};C.prototype.togglePasswordContainer=function(){var E;if($("#basic_auth_container").length>0){E=$("#basic_auth_container").show();if(E.is(":visible")){return E.slideUp()}else{$(".auth_container").hide();return E.show()}}};C.prototype.template=function(){return Handlebars.templates.basic_auth_button_view};return C})(Backbone.View)}).call(this);