(function(){this.Handlebars=this.Handlebars||{},this.Handlebars.templates=this.Handlebars.templates||{},this.Handlebars.templates.apikey_button_view=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,n,t,a){var s,i="function",l=n.helperMissing,r=this.escapeExpression;return"\n
\n
\n
\n \n \n
\n
\n"},useData:!0}),this.Handlebars.templates.basic_auth_button_view=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,n,t,a){return'
\n
\n
\n
\n \n
\n \n \n
\n
\n\n'},useData:!0}),this.Handlebars.templates.content_type=Handlebars.template({1:function(e,n,t,a){var s,i="";return s=n.each.call(e,null!=e?e.produces:e,{name:"each",hash:{},fn:this.program(2,a),inverse:this.noop,data:a}),null!=s&&(i+=s),i},2:function(e,n,t,a){var s,i=this.lambda,l=this.escapeExpression,r=' \n"},4:function(e,n,t,a){return' \n'},compiler:[6,">= 2.0.0-beta.1"],main:function(e,n,t,a){var s,i,l="function",r=n.helperMissing,o=this.escapeExpression,d='\n\n"},useData:!0}),$(function(){$.fn.vAlign=function(){return this.each(function(){var e=$(this).height(),n=$(this).parent().height(),t=(n-e)/2;$(this).css("margin-top",t)})},$.fn.stretchFormtasticInputWidthToParent=function(){return this.each(function(){var e=$(this).closest("form").innerWidth(),n=parseInt($(this).closest("form").css("padding-left"),10)+parseInt($(this).closest("form").css("padding-right"),10),t=parseInt($(this).css("padding-left"),10)+parseInt($(this).css("padding-right"),10);$(this).css("width",e-n-t)})},$("form.formtastic li.string input, form.formtastic textarea").stretchFormtasticInputWidthToParent(),$("ul.downplayed li div.content p").vAlign(),$("form.sandbox").submit(function(){var e=!0;return $(this).find("input.required").each(function(){$(this).removeClass("error"),""===$(this).val()&&($(this).addClass("error"),$(this).wiggle(),e=!1)}),e})}),Function.prototype.bind&&console&&"object"==typeof console.log&&["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(e){console[e]=this.bind(console[e],console)},Function.prototype.call),window.Docs={shebang:function(){var e=$.param.fragment().split("/");switch(e.shift(),e.length){case 1:if(e[0].length>0){var n="resource_"+e[0];Docs.expandEndpointListForResource(e[0]),$("#"+n).slideto({highlight:!1})}break;case 2:Docs.expandEndpointListForResource(e[0]),$("#"+n).slideto({highlight:!1});var t=e.join("_"),a=t+"_content";Docs.expandOperation($("#"+a)),$("#"+t).slideto({highlight:!1})}},toggleEndpointListForResource:function(e){var n=$("li#resource_"+Docs.escapeResourceName(e)+" ul.endpoints");n.is(":visible")?Docs.collapseEndpointListForResource(e):Docs.expandEndpointListForResource(e)},expandEndpointListForResource:function(e){var e=Docs.escapeResourceName(e);if(""==e)return void $(".resource ul.endpoints").slideDown();$("li#resource_"+e).addClass("active");var n=$("li#resource_"+e+" ul.endpoints");n.slideDown()},collapseEndpointListForResource:function(e){var e=Docs.escapeResourceName(e);if(""==e)return void $(".resource ul.endpoints").slideUp();$("li#resource_"+e).removeClass("active");var n=$("li#resource_"+e+" ul.endpoints");n.slideUp()},expandOperationsForResource:function(e){return Docs.expandEndpointListForResource(e),""==e?void $(".resource ul.endpoints li.operation div.content").slideDown():void $("li#resource_"+Docs.escapeResourceName(e)+" li.operation div.content").each(function(){Docs.expandOperation($(this))})},collapseOperationsForResource:function(e){return Docs.expandEndpointListForResource(e),""==e?void $(".resource ul.endpoints li.operation div.content").slideUp():void $("li#resource_"+Docs.escapeResourceName(e)+" li.operation div.content").each(function(){Docs.collapseOperation($(this))})},escapeResourceName:function(e){return e.replace(/[!"#$%&'()*+,.\/:;<=>?@\[\\\]\^`{|}~]/g,"\\$&")},expandOperation:function(e){e.slideDown()},collapseOperation:function(e){e.slideUp()}},Handlebars.registerHelper("sanitize",function(e){return e=e.replace(/)<[^<]*)*<\/script>/gi,""),new Handlebars.SafeString(e)}),Handlebars.registerHelper("renderTextParam",function(e){var n,t="text",a="",s=e.type||e.schema.type||"",i="array"===s.toLowerCase()||e.allowMultiple,l=i&&Array.isArray(e["default"])?e["default"].join("\n"):e["default"],r=Object.keys(e).filter(function(e){return null!==e.match(/^X-data-/i)}).reduce(function(n,t){return n+=" "+t.substring(2,t.length)+"='"+e[t]+"'"},"");if("undefined"==typeof l&&(l=""),e.format&&"password"===e.format&&(t="password"),e.valueId&&(a=" id='"+e.valueId+"'"),l=l.replace(/'/g,"'"),i)n="";else{var o="parameter";e.required&&(o+=" required"),n=""}return new Handlebars.SafeString(n)}),this.Handlebars.templates.main=Handlebars.template({1:function(e,n,t,a){var s,i=this.lambda,l=this.escapeExpression,r='
'+l(i(null!=(s=null!=e?e.info:e)?s.title:s,e))+'
\n
';return s=i(null!=(s=null!=e?e.info:e)?s.description:s,e),null!=s&&(r+=s),r+="
\n",s=n["if"].call(e,null!=e?e.externalDocs:e,{name:"if",hash:{},fn:this.program(2,a),inverse:this.noop,data:a}),null!=s&&(r+=s),r+=" ",s=n["if"].call(e,null!=(s=null!=e?e.info:e)?s.termsOfServiceUrl:s,{name:"if",hash:{},fn:this.program(4,a),inverse:this.noop,data:a}),null!=s&&(r+=s),r+="\n ",s=n["if"].call(e,null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.name:s,{name:"if",hash:{},fn:this.program(6,a),inverse:this.noop,data:a}),null!=s&&(r+=s),r+="\n ",s=n["if"].call(e,null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.url:s,{name:"if",hash:{},fn:this.program(8,a),inverse:this.noop,data:a}),null!=s&&(r+=s),r+="\n ",s=n["if"].call(e,null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.email:s,{name:"if",hash:{},fn:this.program(10,a),inverse:this.noop,data:a}),null!=s&&(r+=s),r+="\n ",s=n["if"].call(e,null!=(s=null!=e?e.info:e)?s.license:s,{name:"if",hash:{},fn:this.program(12,a),inverse:this.noop,data:a}),null!=s&&(r+=s),r+"\n"},2:function(e,n,t,a){var s,i=this.lambda,l=this.escapeExpression;return"

"+l(i(null!=(s=null!=e?e.externalDocs:e)?s.description:s,e))+'

\n '+l(i(null!=(s=null!=e?e.externalDocs:e)?s.url:s,e))+"\n"},4:function(e,n,t,a){var s,i=this.lambda,l=this.escapeExpression;return'
Terms of service
'},6:function(e,n,t,a){var s,i=this.lambda,l=this.escapeExpression;return"
Created by "+l(i(null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.name:s,e))+"
"},8:function(e,n,t,a){var s,i=this.lambda,l=this.escapeExpression;return"
See more at '+l(i(null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.url:s,e))+"
"},10:function(e,n,t,a){var s,i=this.lambda,l=this.escapeExpression;return"
Contact the developer
'},12:function(e,n,t,a){var s,i=this.lambda,l=this.escapeExpression;return"
"+l(i(null!=(s=null!=(s=null!=e?e.info:e)?s.license:s)?s.name:s,e))+"
"},14:function(e,n,t,a){var s,i=this.lambda,l=this.escapeExpression;return' , api version: '+l(i(null!=(s=null!=e?e.info:e)?s.version:s,e))+"\n "},16:function(e,n,t,a){var s,i="function",l=n.helperMissing,r=this.escapeExpression;return' \n \n'},compiler:[6,">= 2.0.0-beta.1"],main:function(e,n,t,a){var s,i,l="function",r=n.helperMissing,o=this.escapeExpression,d="
\n";return s=n["if"].call(e,null!=e?e.info:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.noop,data:a}),null!=s&&(d+=s),d+="
\n
\n \n\n
\n

[ base url: "+o((i=null!=(i=n.basePath||(null!=e?e.basePath:e))?i:r,typeof i===l?i.call(e,{name:"basePath",hash:{},data:a}):i))+"\n",s=n["if"].call(e,null!=(s=null!=e?e.info:e)?s.version:s,{name:"if",hash:{},fn:this.program(14,a),inverse:this.noop,data:a}),null!=s&&(d+=s),d+="]\n",s=n["if"].call(e,null!=e?e.validatorUrl:e,{name:"if",hash:{},fn:this.program(16,a),inverse:this.noop,data:a}),null!=s&&(d+=s),d+"

\n
\n
\n"},useData:!0}),this.Handlebars.templates.operation=Handlebars.template({1:function(e,n,t,a){return"deprecated"},3:function(e,n,t,a){return"

Warning: Deprecated

\n"},5:function(e,n,t,a){var s,i,l="function",r=n.helperMissing,o='

Implementation Notes

\n
';return i=null!=(i=n.description||(null!=e?e.description:e))?i:r,s=typeof i===l?i.call(e,{name:"description",hash:{},data:a}):i,null!=s&&(o+=s),o+"
\n"},7:function(e,n,t,a){return'
\n '},9:function(e,n,t,a){var s,i='
\n';return s=n.each.call(e,e,{name:"each",hash:{},fn:this.program(10,a),inverse:this.noop,data:a}),null!=s&&(i+=s),i+"
\n"},10:function(e,n,t,a){var s,i=this.lambda,l=this.escapeExpression,r="
"+l(i(null!=e?e.scope:e,e))+"
\n"},12:function(e,n,t,a){return"
"},14:function(e,n,t,a){return'
\n \n
\n'},16:function(e,n,t,a){var s,i="function",l=n.helperMissing,r=this.escapeExpression;return"

Response Class (Status "+r((s=null!=(s=n.successCode||(null!=e?e.successCode:e))?s:l,typeof s===i?s.call(e,{name:"successCode",hash:{},data:a}):s))+')

\n

\n
\n
\n'},18:function(e,n,t,a){return'

Parameters

\n \n \n \n \n \n \n \n \n \n \n \n\n \n
ParameterValueDescriptionParameter TypeData Type
\n'},20:function(e,n,t,a){return"
\n

Response Messages

\n \n \n \n \n \n \n \n \n \n \n\n \n
HTTP Status CodeReasonResponse ModelHeaders
\n"},22:function(e,n,t,a){return""},24:function(e,n,t,a){return"
\n \n \n \n
\n"},26:function(e,n,t,a){return"

Request Headers

\n
\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,n,t,a){var s,i,l,r="function",o=n.helperMissing,d=this.escapeExpression,u=n.blockHelperMissing,p="\n \n"},useData:!0}),this.Handlebars.templates.param_list=Handlebars.template({1:function(e,n,t,a){return" required"},3:function(e,n,t,a){return' multiple="multiple"'},5:function(e,n,t,a){return" required "},7:function(e,n,t,a){var s,i=" \n"},8:function(e,n,t,a){return' selected="" '},10:function(e,n,t,a){var s,i,l="function",r=n.helperMissing,o=this.escapeExpression,d="\n \n\n"},11:function(e,n,t,a){return' selected="" '},13:function(e,n,t,a){return" (default) "},15:function(e,n,t,a){return""},17:function(e,n,t,a){return""},compiler:[6,">= 2.0.0-beta.1"],main:function(e,n,t,a){var s,i,l="function",r=n.helperMissing,o=this.escapeExpression,d="\n\n \n\n',s=n["if"].call(e,null!=e?e.required:e,{name:"if",hash:{},fn:this.program(15,a),inverse:this.noop,data:a}),null!=s&&(d+=s),i=null!=(i=n.description||(null!=e?e.description:e))?i:r,s=typeof i===l?i.call(e,{name:"description",hash:{},data:a}):i,null!=s&&(d+=s),s=n["if"].call(e,null!=e?e.required:e,{name:"if",hash:{},fn:this.program(17,a),inverse:this.noop,data:a}),null!=s&&(d+=s),d+="\n",i=null!=(i=n.paramType||(null!=e?e.paramType:e))?i:r,s=typeof i===l?i.call(e,{name:"paramType",hash:{},data:a}):i,null!=s&&(d+=s),d+'\n\n'},useData:!0}),this.Handlebars.templates.param_readonly_required=Handlebars.template({1:function(e,n,t,a){var s,i="function",l=n.helperMissing,r=this.escapeExpression;return" \n"},3:function(e,n,t,a){var s,i="";return s=n["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(4,a),inverse:this.program(6,a),data:a}),null!=s&&(i+=s),i},4:function(e,n,t,a){var s,i="function",l=n.helperMissing,r=this.escapeExpression;return" "+r((s=null!=(s=n["default"]||(null!=e?e["default"]:e))?s:l,typeof s===i?s.call(e,{name:"default",hash:{},data:a}):s))+"\n"},6:function(e,n,t,a){return" (empty)\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,n,t,a){var s,i,l="function",r=n.helperMissing,o=this.escapeExpression,d="\n\n";return s=n["if"].call(e,null!=e?e.isBody:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(3,a),data:a}),null!=s&&(d+=s),d+='\n',i=null!=(i=n.description||(null!=e?e.description:e))?i:r,s=typeof i===l?i.call(e,{name:"description",hash:{},data:a}):i,null!=s&&(d+=s),d+="\n",i=null!=(i=n.paramType||(null!=e?e.paramType:e))?i:r,s=typeof i===l?i.call(e,{name:"paramType",hash:{},data:a}):i,null!=s&&(d+=s),d+'\n\n'},useData:!0}),this.Handlebars.templates.param_readonly=Handlebars.template({1:function(e,n,t,a){var s,i="function",l=n.helperMissing,r=this.escapeExpression;return" \n
\n'},3:function(e,n,t,a){var s,i="";return s=n["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(4,a),inverse:this.program(6,a),data:a}),null!=s&&(i+=s),i},4:function(e,n,t,a){var s,i="function",l=n.helperMissing,r=this.escapeExpression;return" "+r((s=null!=(s=n["default"]||(null!=e?e["default"]:e))?s:l,typeof s===i?s.call(e,{name:"default",hash:{},data:a}):s))+"\n"},6:function(e,n,t,a){return" (empty)\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,n,t,a){var s,i,l="function",r=n.helperMissing,o=this.escapeExpression,d="\n\n";return s=n["if"].call(e,null!=e?e.isBody:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(3,a),data:a}),null!=s&&(d+=s),d+='\n',i=null!=(i=n.description||(null!=e?e.description:e))?i:r,s=typeof i===l?i.call(e,{name:"description",hash:{},data:a}):i,null!=s&&(d+=s),d+="\n",i=null!=(i=n.paramType||(null!=e?e.paramType:e))?i:r,s=typeof i===l?i.call(e,{name:"paramType",hash:{},data:a}):i,null!=s&&(d+=s),d+'\n\n'},useData:!0}),this.Handlebars.templates.param_required=Handlebars.template({1:function(e,n,t,a){var s,i="";return s=n["if"].call(e,null!=e?e.isFile:e,{name:"if",hash:{},fn:this.program(2,a),inverse:this.program(4,a),data:a}),null!=s&&(i+=s),i},2:function(e,n,t,a){var s,i="function",l=n.helperMissing,r=this.escapeExpression;return' \n"},4:function(e,n,t,a){var s,i="";return s=n["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(5,a),inverse:this.program(7,a),data:a}),null!=s&&(i+=s),i},5:function(e,n,t,a){var s,i="function",l=n.helperMissing,r=this.escapeExpression;return" \n
\n
\n'},7:function(e,n,t,a){var s,i="function",l=n.helperMissing,r=this.escapeExpression;return" \n
\n
\n'},9:function(e,n,t,a){var s,i="";return s=n["if"].call(e,null!=e?e.isFile:e,{name:"if",hash:{},fn:this.program(10,a),inverse:this.program(12,a),data:a}),null!=s&&(i+=s),i},10:function(e,n,t,a){var s,i="function",l=n.helperMissing,r=this.escapeExpression;return" \n"},12:function(e,n,t,a){var s,i=n.helperMissing,l="";return s=(n.renderTextParam||e&&e.renderTextParam||i).call(e,e,{name:"renderTextParam",hash:{},fn:this.program(13,a),inverse:this.noop,data:a}),null!=s&&(l+=s),l},13:function(e,n,t,a){return""},compiler:[6,">= 2.0.0-beta.1"],main:function(e,n,t,a){var s,i,l="function",r=n.helperMissing,o=this.escapeExpression,d="\n\n";return s=n["if"].call(e,null!=e?e.isBody:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(9,a),data:a}),null!=s&&(d+=s),d+='\n\n ',i=null!=(i=n.description||(null!=e?e.description:e))?i:r,s=typeof i===l?i.call(e,{name:"description",hash:{},data:a}):i,null!=s&&(d+=s),d+="\n\n",i=null!=(i=n.paramType||(null!=e?e.paramType:e))?i:r,s=typeof i===l?i.call(e,{name:"paramType",hash:{},data:a}):i,null!=s&&(d+=s),d+'\n\n'},useData:!0}),this.Handlebars.templates.param=Handlebars.template({1:function(e,n,t,a){var s,i="";return s=n["if"].call(e,null!=e?e.isFile:e,{name:"if",hash:{},fn:this.program(2,a),inverse:this.program(4,a),data:a}),null!=s&&(i+=s),i},2:function(e,n,t,a){var s,i="function",l=n.helperMissing,r=this.escapeExpression;return' \n
\n'},4:function(e,n,t,a){var s,i="";return s=n["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(5,a),inverse:this.program(7,a),data:a}),null!=s&&(i+=s),i},5:function(e,n,t,a){var s,i="function",l=n.helperMissing,r=this.escapeExpression;return" \n
\n
\n'},7:function(e,n,t,a){var s,i="function",l=n.helperMissing,r=this.escapeExpression;return" \n
\n
\n'},9:function(e,n,t,a){var s,i="";return s=n["if"].call(e,null!=e?e.isFile:e,{name:"if",hash:{},fn:this.program(2,a),inverse:this.program(10,a),data:a}),null!=s&&(i+=s),i},10:function(e,n,t,a){var s,i=n.helperMissing,l="";return s=(n.renderTextParam||e&&e.renderTextParam||i).call(e,e,{name:"renderTextParam",hash:{},fn:this.program(11,a),inverse:this.noop,data:a}),null!=s&&(l+=s),l},11:function(e,n,t,a){return""},compiler:[6,">= 2.0.0-beta.1"],main:function(e,n,t,a){var s,i,l="function",r=n.helperMissing,o=this.escapeExpression,d="\n\n\n";return s=n["if"].call(e,null!=e?e.isBody:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(9,a),data:a}),null!=s&&(d+=s),d+='\n\n',i=null!=(i=n.description||(null!=e?e.description:e))?i:r,s=typeof i===l?i.call(e,{name:"description",hash:{},data:a}):i,null!=s&&(d+=s),d+="\n",i=null!=(i=n.paramType||(null!=e?e.paramType:e))?i:r,s=typeof i===l?i.call(e,{name:"paramType",hash:{},data:a}):i,null!=s&&(d+=s),d+'\n\n \n\n'},useData:!0}),this.Handlebars.templates.parameter_content_type=Handlebars.template({1:function(e,n,t,a){var s,i="";return s=n.each.call(e,null!=e?e.consumes:e,{name:"each",hash:{},fn:this.program(2,a),inverse:this.noop,data:a}),null!=s&&(i+=s),i},2:function(e,n,t,a){var s,i=this.lambda,l=this.escapeExpression,r=' \n"},4:function(e,n,t,a){return' \n'},compiler:[6,">= 2.0.0-beta.1"],main:function(e,n,t,a){var s,i,l="function",r=n.helperMissing,o=this.escapeExpression,d='\n\n"},useData:!0}),this.Handlebars.templates.resource=Handlebars.template({1:function(e,n,t,a){return" : "},3:function(e,n,t,a){var s,i="function",l=n.helperMissing,r=this.escapeExpression;return"
  • \n Raw\n
  • \n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,n,t,a){var s,i,l,r="function",o=n.helperMissing,d=this.escapeExpression,u=n.blockHelperMissing,p="
    \n

    \n '+d((i=null!=(i=n.name||(null!=e?e.name:e))?i:o,typeof i===r?i.call(e,{name:"name",hash:{},data:a}):i))+" ";return i=null!=(i=n.summary||(null!=e?e.summary:e))?i:o,l={name:"summary",hash:{},fn:this.program(1,a),inverse:this.noop,data:a},s=typeof i===r?i.call(e,l):i,n.summary||(s=u.call(e,s,l)),null!=s&&(p+=s),i=null!=(i=n.summary||(null!=e?e.summary:e))?i:o,s=typeof i===r?i.call(e,{name:"summary",hash:{},data:a}):i,null!=s&&(p+=s),p+="\n

    \n \n
    \n\n"},useData:!0}),this.Handlebars.templates.response_content_type=Handlebars.template({1:function(e,n,t,a){var s,i="";return s=n.each.call(e,null!=e?e.produces:e,{name:"each",hash:{},fn:this.program(2,a),inverse:this.noop,data:a}),null!=s&&(i+=s),i},2:function(e,n,t,a){var s,i=this.lambda,l=this.escapeExpression,r=' \n"},4:function(e,n,t,a){return' \n'},compiler:[6,">= 2.0.0-beta.1"],main:function(e,n,t,a){var s,i,l="function",r=n.helperMissing,o=this.escapeExpression,d='\n\n"},useData:!0}),this.Handlebars.templates.signature=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,n,t,a){var s,i,l="function",r=n.helperMissing,o=this.escapeExpression,d='
    \n\n
    \n\n
    \n
    \n ';return i=null!=(i=n.signature||(null!=e?e.signature:e))?i:r,s=typeof i===l?i.call(e,{name:"signature",hash:{},data:a}):i,null!=s&&(d+=s),d+'\n
    \n\n
    \n
    '+o((i=null!=(i=n.sampleJSON||(null!=e?e.sampleJSON:e))?i:r,typeof i===l?i.call(e,{name:"sampleJSON",hash:{},data:a}):i))+'
    \n \n
    \n
    \n\n'},useData:!0}),this.Handlebars.templates.status_code=Handlebars.template({1:function(e,n,t,a){var s=this.lambda,i=this.escapeExpression;return" \n "+i(s(a&&a.key,e))+"\n "+i(s(null!=e?e.description:e,e))+"\n "+i(s(null!=e?e.type:e,e))+"\n \n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,n,t,a){var s,i,l="function",r=n.helperMissing,o=this.escapeExpression,d=""+o((i=null!=(i=n.code||(null!=e?e.code:e))?i:r,typeof i===l?i.call(e,{name:"code",hash:{},data:a}):i))+'\n';return i=null!=(i=n.message||(null!=e?e.message:e))?i:r,s=typeof i===l?i.call(e,{name:"message",hash:{},data:a}):i,null!=s&&(d+=s),d+='\n\n\n \n \n',s=n.each.call(e,null!=e?e.headers:e,{name:"each",hash:{},fn:this.program(1,a),inverse:this.noop,data:a}),null!=s&&(d+=s),d+" \n
    \n"},useData:!0}),window.SwaggerUi=Backbone.Router.extend({dom_id:"swagger_ui",options:null,api:null,headerView:null,mainView:null,initialize:function(e){e=e||{},"model"!==e.defaultModelRendering&&(e.defaultModelRendering="schema"),e.highlightSizeThreshold||(e.highlightSizeThreshold=1e5),e.dom_id&&(this.dom_id=e.dom_id,delete e.dom_id),e.supportedSubmitMethods||(e.supportedSubmitMethods=["get","put","post","delete","head","options","patch"]),"string"==typeof e.oauth2RedirectUrl&&(window.oAuthRedirectUrl=e.redirectUrl),$("#"+this.dom_id).length||$("body").append('
    '),this.options=e,marked.setOptions({gfm:!0});var n=this;this.options.success=function(){return n.render()},this.options.progress=function(e){return n.showMessage(e)},this.options.failure=function(e){return n.onLoadFailure(e)},this.headerView=new SwaggerUi.Views.HeaderView({el:$("#header")}),this.headerView.on("update-swagger-ui",function(e){return n.updateSwaggerUi(e)})},setOption:function(e,n){this.options[e]=n},getOption:function(e){return this.options[e]},updateSwaggerUi:function(e){this.options.url=e.url,this.load()},load:function(){this.mainView&&this.mainView.clear();var e=this.options.url;e&&0!==e.indexOf("http")&&(e=this.buildUrl(window.location.href.toString(),e)),this.api&&(this.options.authorizations=this.api.clientAuthorizations.authz),this.options.url=e,this.headerView.update(e),this.api=new SwaggerClient(this.options)},collapseAll:function(){Docs.collapseEndpointListForResource("")},listAll:function(){Docs.collapseOperationsForResource("")},expandAll:function(){Docs.expandOperationsForResource("")},render:function(){switch(this.showMessage("Finished Loading Resource Information. Rendering Swagger UI..."),this.mainView=new SwaggerUi.Views.MainView({model:this.api,el:$("#"+this.dom_id),swaggerOptions:this.options,router:this}).render(),this.showMessage(),this.options.docExpansion){case"full":this.expandAll();break;case"list":this.listAll()}this.renderGFM(),this.options.onComplete&&this.options.onComplete(this.api,this),setTimeout(Docs.shebang.bind(this),100)},buildUrl:function(e,n){if(0===n.indexOf("/")){var t=e.split("/");return e=t[0]+"//"+t[2],e+n}var a=e.length;return e.indexOf("?")>-1&&(a=Math.min(a,e.indexOf("?"))),e.indexOf("#")>-1&&(a=Math.min(a,e.indexOf("#"))),e=e.substring(0,a),-1!==e.indexOf("/",e.length-1)?e+n:e+"/"+n},showMessage:function(e){void 0===e&&(e="");var n=$("#message-bar");n.removeClass("message-fail"),n.addClass("message-success"),n.html(e),window.SwaggerTranslator&&window.SwaggerTranslator.translate(n)},onLoadFailure:function(e){void 0===e&&(e=""),$("#message-bar").removeClass("message-success"),$("#message-bar").addClass("message-fail");var n=$("#message-bar").text(e);return this.options.onFailure&&this.options.onFailure(e),n},renderGFM:function(){$(".markdown").each(function(){$(this).html(marked($(this).html()))}),$(".propDesc",".model-signature .description").each(function(){$(this).html(marked($(this).html())).addClass("markdown")})}}),window.SwaggerUi.Views={},function(){function e(e){"console"in window&&"function"==typeof window.console.warn&&console.warn(e)}window.authorizations={add:function(){if(e("Using window.authorizations is deprecated. Please use SwaggerUi.api.clientAuthorizations.add()."),"undefined"==typeof window.swaggerUi)throw new TypeError("window.swaggerUi is not defined");window.swaggerUi instanceof SwaggerUi&&window.swaggerUi.api.clientAuthorizations.add.apply(window.swaggerUi.api.clientAuthorizations,arguments)}},window.ApiKeyAuthorization=function(){e("window.ApiKeyAuthorization is deprecated. Please use SwaggerClient.ApiKeyAuthorization."),SwaggerClient.ApiKeyAuthorization.apply(window,arguments)},window.PasswordAuthorization=function(){e("window.PasswordAuthorization is deprecated. Please use SwaggerClient.PasswordAuthorization."),SwaggerClient.PasswordAuthorization.apply(window,arguments)}}(),function(e,n){"function"==typeof define&&define.amd?define(["b"],function(t){return e.SwaggerUi=n(t)}):"object"==typeof exports?module.exports=n(require("b")):e.SwaggerUi=n(e.b)}(this,function(){return SwaggerUi}),SwaggerUi.Views.ApiKeyButton=Backbone.View.extend({events:{"click #apikey_button":"toggleApiKeyContainer","click #apply_api_key":"applyApiKey"},initialize:function(e){this.options=e||{},this.router=this.options.router},render:function(){var e=this.template();return $(this.el).html(e(this.model)),this},applyApiKey:function(){var e=new SwaggerClient.ApiKeyAuthorization(this.model.name,$("#input_apiKey_entry").val(),this.model["in"]);this.router.api.clientAuthorizations.add(this.model.name,e),this.router.load(),$("#apikey_container").show()},toggleApiKeyContainer:function(){if($("#apikey_container").length){var e=$("#apikey_container").first();e.is(":visible")?e.hide():($(".auth_container").hide(),e.show())}},template:function(){return Handlebars.templates.apikey_button_view}}),SwaggerUi.Views.BasicAuthButton=Backbone.View.extend({initialize:function(e){this.options=e||{},this.router=this.options.router},render:function(){var e=this.template();return $(this.el).html(e(this.model)),this},events:{"click #basic_auth_button":"togglePasswordContainer","click #apply_basic_auth":"applyPassword"},applyPassword:function(e){e.preventDefault();var n=$("#input_username").val(),t=$("#input_password").val(),a=new SwaggerClient.PasswordAuthorization("basic",n,t);this.router.api.clientAuthorizations.add(this.model.type,a),this.router.load(),$("#basic_auth_container").hide()},togglePasswordContainer:function(){if($("#basic_auth_container").length){var e=$("#basic_auth_container").show();e.is(":visible")?e.slideUp():($(".auth_container").hide(),e.show())}},template:function(){return Handlebars.templates.basic_auth_button_view}}),SwaggerUi.Views.ContentTypeView=Backbone.View.extend({initialize:function(){},render:function(){return this.model.contentTypeId="ct"+Math.random(),$(this.el).html(Handlebars.templates.content_type(this.model)),this}}),SwaggerUi.Views.HeaderView=Backbone.View.extend({events:{"click #show-pet-store-icon":"showPetStore","click #explore":"showCustom","keyup #input_baseUrl":"showCustomOnKeyup","keyup #input_apiKey":"showCustomOnKeyup"},initialize:function(){},showPetStore:function(){this.trigger("update-swagger-ui",{url:"http://petstore.swagger.io/v2/swagger.json"})},showCustomOnKeyup:function(e){13===e.keyCode&&this.showCustom()},showCustom:function(e){e&&e.preventDefault(),this.trigger("update-swagger-ui",{url:$("#input_baseUrl").val(),apiKey:$("#input_apiKey").val()})},update:function(e,n,t){void 0===t&&(t=!1),$("#input_baseUrl").val(e),t&&this.trigger("update-swagger-ui",{url:e})}}),SwaggerUi.Views.MainView=Backbone.View.extend({apisSorter:{alpha:function(e,n){return e.name.localeCompare(n.name)}},operationsSorters:{alpha:function(e,n){return e.path.localeCompare(n.path)},method:function(e,n){return e.method.localeCompare(n.method)}},initialize:function(e){var n,t,a,s;if(e=e||{},this.router=e.router,e.swaggerOptions.apisSorter&&(n=e.swaggerOptions.apisSorter,t=_.isFunction(n)?n:this.apisSorter[n],_.isFunction(t)&&this.model.apisArray.sort(t)),e.swaggerOptions.operationsSorter&&(n=e.swaggerOptions.operationsSorter,t=_.isFunction(n)?n:this.operationsSorters[n],_.isFunction(t)))for(a in this.model.apisArray)this.model.apisArray[a].operationsArray.sort(t);this.model.auths=[];for(a in this.model.securityDefinitions)s=this.model.securityDefinitions[a],this.model.auths.push({name:a,type:s.type,value:s});"validatorUrl"in e.swaggerOptions?this.model.validatorUrl=e.swaggerOptions.validatorUrl:this.model.url.indexOf("localhost")>0?this.model.validatorUrl=null:"https:"===window.location.protocol?this.model.validatorUrl="https://online.swagger.io/validator":this.model.validatorUrl="http://online.swagger.io/validator"},render:function(){if(this.model.securityDefinitions)for(var e in this.model.securityDefinitions){var n,t=this.model.securityDefinitions[e];"apiKey"===t.type&&0===$("#apikey_button").length&&(n=new SwaggerUi.Views.ApiKeyButton({model:t,router:this.router}).render().el,$(".auth_main_container").append(n)),"basicAuth"===t.type&&0===$("#basic_auth_button").length&&(n=new SwaggerUi.Views.BasicAuthButton({model:t,router:this.router}).render().el,$(".auth_main_container").append(n))}$(this.el).html(Handlebars.templates.main(this.model));for(var a={},s=0,i=0;il&&(t=l-o),s>t&&(t=s),a+d>r&&(a=r-d),i>a&&(a=i);var u={};u.top=a,u.left=t,n.css(u)},render:function(){var e,n,t,a,s,i,l,r,o,d,u,p,h,c,m,f,g,v,y,w,b,_,x,S,C,k,T,I,O,R,D,U,V,M,H,E,P,A;if(i=jQuery.inArray(this.model.method,this.model.supportedSubmitMethods())>=0,i||(this.model.isReadOnly=!0),this.model.description=this.model.description||this.model.notes,this.model.oauth=null,f=this.model.authorizations||this.model.security)if(Array.isArray(f))for(o=0,d=f.length;d>o;o++){t=f[o];for(r in t)for(e in this.auths)if(n=this.auths[e],r===n.name&&"oauth2"===n.type){this.model.oauth={},this.model.oauth.scopes=[],x=n.value.scopes;for(l in x)P=x[l],U=t[r].indexOf(l),U>=0&&(v={scope:l,description:P},this.model.oauth.scopes.push(v))}}else for(l in f)if(P=f[l],"oauth2"===l)for(null===this.model.oauth&&(this.model.oauth={}),void 0===this.model.oauth.scopes&&(this.model.oauth.scopes=[]),m=0,u=P.length;u>m;m++)v=P[m],this.model.oauth.scopes.push(v);if("undefined"!=typeof this.model.responses){this.model.responseMessages=[],S=this.model.responses;for(a in S)A=S[a],R=null,D=this.model.responses[a].schema,D&&D.$ref&&(R=D.$ref,-1!==R.indexOf("#/definitions/")&&(R=R.replace(/^.*#\/definitions\//,""))),this.model.responseMessages.push({code:a,message:A.description,responseModel:R})}if("undefined"==typeof this.model.responseMessages&&(this.model.responseMessages=[]),V=null,this.model.successResponse){H=this.model.successResponse;for(r in H)A=H[r],this.model.successCode=r,"object"==typeof A&&"function"==typeof A.createJSONSample&&(V={sampleJSON:JSON.stringify(A.createJSONSample(),void 0,2),isParam:!1,signature:A.getMockSignature()})}else this.model.responseClassSignature&&"string"!==this.model.responseClassSignature&&(V={sampleJSON:this.model.responseSampleJSON,isParam:!1,signature:this.model.responseClassSignature});for($(this.el).html(Handlebars.templates.operation(this.model)),V?(V.defaultRendering=this.model.defaultRendering,O=new SwaggerUi.Views.SignatureView({model:V,router:this.router,tagName:"div"}),$(".model-signature",$(this.el)).append(O.render().el)):(this.model.responseClassSignature="string",$(".model-signature",$(this.el)).html(this.model.type)),s={isParam:!1},s.consumes=this.model.consumes,s.produces=this.model.produces,C=this.model.parameters,g=0,p=C.length;p>g;g++)w=C[g],E=w.type||w.dataType||"","undefined"==typeof E&&(R=w.schema,R&&R.$ref&&(_=R.$ref,E=0===_.indexOf("#/definitions/")?_.substring("#/definitions/".length):_)),E&&"file"===E.toLowerCase()&&(s.consumes||(s.consumes="multipart/form-data")),w.type=E;for(I=new SwaggerUi.Views.ResponseContentTypeView({model:s,router:this.router}),$(".response-content-type",$(this.el)).append(I.render().el),k=this.model.parameters,y=0,h=k.length;h>y;y++)w=k[y],this.addParameter(w,s.consumes);for(T=this.model.responseMessages,b=0,c=T.length;c>b;b++)M=T[b],this.addStatusCode(M);return this},addParameter:function(e,n){e.consumes=n,e.defaultRendering=this.model.defaultRendering;var t=new SwaggerUi.Views.ParameterView({model:e,tagName:"tr",readOnly:this.model.isReadOnly});$(".operation-params",$(this.el)).append(t.render().el)},addStatusCode:function(e){e.defaultRendering=this.model.defaultRendering;var n=new SwaggerUi.Views.StatusCodeView({model:e,tagName:"tr",router:this.router});$(".operation-status",$(this.el)).append(n.render().el)},submitOperation:function(e){var n,t,a,s,i;if(null!==e&&e.preventDefault(),t=$(".sandbox",$(this.el)),n=!0,t.find("input.required").each(function(){$(this).removeClass("error"),""===jQuery.trim($(this).val())&&($(this).addClass("error"),$(this).wiggle({callback:function(e){return function(){$(e).focus()}}(this)}),n=!1)}),t.find("textarea.required").each(function(){$(this).removeClass("error"),""===jQuery.trim($(this).val())&&($(this).addClass("error"),$(this).wiggle({callback:function(e){return function(){return $(e).focus()}}(this)}),n=!1)}),t.find("select.required").each(function(){$(this).removeClass("error"),-1===this.selectedIndex&&($(this).addClass("error"),$(this).wiggle({callback:function(e){return function(){$(e).focus()}}(this)}),n=!1)}),n){if(s=this.getInputMap(t),a=this.isFileUpload(t),i={parent:this},this.options.swaggerOptions)for(var l in this.options.swaggerOptions)i[l]=this.options.swaggerOptions[l];return i.responseContentType=$("div select[name=responseContentType]",$(this.el)).val(),i.requestContentType=$("div select[name=parameterContentType]",$(this.el)).val(),$(".response_throbber",$(this.el)).show(),a?($(".request_url",$(this.el)).html("
    "),$(".request_url pre",$(this.el)).text(this.invocationUrl),i.useJQuery=!0,s.parameterContentType="multipart/form-data",this.map=s,this.model.execute(s,i,this.showCompleteStatus,this.showErrorStatus,this)):(this.map=s,this.model.execute(s,i,this.showCompleteStatus,this.showErrorStatus,this))}},getInputMap:function(e){var n,t,a,s,i,l,r,o,d,u,p,h;for(n={},t=e.find("input"),a=0,s=t.length;s>a;a++)i=t[a],null!==i.value&&jQuery.trim(i.value).length>0&&(n[i.name]=i.value),"file"===i.type&&(n[i.name]=i.files[0]);for(l=e.find("textarea"),r=0,o=l.length;o>r;r++)i=l[r],d=this.getTextAreaValue(i),null!==d&&jQuery.trim(d).length>0&&(n[i.name]=d);for(u=e.find("select"),p=0,h=u.length;h>p;p++)i=u[p],d=this.getSelectedValue(i),null!==d&&jQuery.trim(d).length>0&&(n[i.name]=d);return n},isFileUpload:function(e){var n,t,a,s,i=!1;for(n=e.find("input"),t=0,a=n.length;a>t;t++)s=n[t],"file"===s.type&&(i=!0);return i},success:function(e,n){n.showCompleteStatus(e)},wrap:function(e){var n,t,a,s,i,l,r;for(a={},t=e.getAllResponseHeaders().split("\r"),i=0,l=t.length;l>i;i++)s=t[i],n=s.match(/^([^:]*?):(.*)$/),n||(n=[]),n.shift(),void 0!==n[0]&&void 0!==n[1]&&(a[n[0].trim()]=n[1].trim());return r={},r.content={},r.content.data=e.responseText,r.headers=a,r.request={},r.request.url=this.invocationUrl,r.status=e.status,r},getSelectedValue:function(e){if(e.multiple){for(var n=[],t=0,a=e.options.length;a>t;t++){var s=e.options[t];s.selected&&n.push(s.value)}return n.length>0?n:null}return e.value},hideResponse:function(e){e&&e.preventDefault(),$(".response",$(this.el)).slideUp(),$(".response_hider",$(this.el)).fadeOut()},showResponse:function(e){var n=JSON.stringify(e,null,"	").replace(/\n/g,"
    ");$(".response_body",$(this.el)).html(_.escape(n))},showErrorStatus:function(e,n){n.showStatus(e)},showCompleteStatus:function(e,n){n.showStatus(e)},formatXml:function(e){var n,t,a,s,i,l,r,o,d,u,p,h,c;for(p=/(>)(<)(\/*)/g,c=/[ ]*(.*)[ ]+\n/g,n=/(<.+>)(.+\n)/g,e=e.replace(p,"$1\n$2$3").replace(c,"$1\n").replace(n,"$1\n$2"),u=0,a="",o=e.split("\n"),s=0,l="other",h={"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},t=function(e){var n,t,i,r,o,d,u;d={single:Boolean(e.match(/<.+\/>/)),closing:Boolean(e.match(/<\/.+>/)),opening:Boolean(e.match(/<[^!?].*>/))},o=function(){var e;e=[];for(i in d)u=d[i],u&&e.push(i);return e}()[0],o=void 0===o?"other":o,n=l+"->"+o,l=o,r="",s+=h[n],r=function(){var e,n,a;for(a=[],t=e=0,n=s;n>=0?n>e:e>n;t=n>=0?++e:--e)a.push(" ");return a}().join(""),"opening->closing"===n?a=a.substr(0,a.length-1)+e+"\n":a+=r+e+"\n"},i=0,r=o.length;r>i;i++)d=o[i],t(d);return a},showStatus:function(e){var n,t;void 0===e.content?(t=e.data,n=e.url):(t=e.content.data,n=e.request.url);var a=e.headers;t=jQuery.trim(t);var s=null;a&&(s=a["Content-Type"]||a["content-type"],s&&(s=s.split(";")[0].trim())),$(".response_body",$(this.el)).removeClass("json"),$(".response_body",$(this.el)).removeClass("xml");var i,l,r=function(e){var n=document.createElement("audio");return!(!n.canPlayType||!n.canPlayType(e).replace(/no/,""))};if(t)if("application/json"===s||/\+json$/.test(s)){var o=null;try{o=JSON.stringify(JSON.parse(t),null," ")}catch(d){o="can't parse JSON. Raw result:\n\n"+t}l=$("").text(o),i=$('
    ').append(l)}else if("application/xml"===s||/\+xml$/.test(s))l=$("").text(this.formatXml(t)),i=$('
    ').append(l);else if("text/html"===s)l=$("").html(_.escape(t)),i=$('
    ').append(l);else if(/text\/plain/.test(s))l=$("").text(t),i=$('
    ').append(l);else if(/^image\//.test(s))i=$("").attr("src",n);else if(/^audio\//.test(s)&&r(s))i=$("