diff --git a/apidoc/assets/main.bundle.js b/apidoc/assets/main.bundle.js index 8b6fde2..4608c33 100644 --- a/apidoc/assets/main.bundle.js +++ b/apidoc/assets/main.bundle.js @@ -95,4 +95,4 @@ function print() { __p += __j.call(arguments, '') } * @public */var r=function(n){var u=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,c=0,l={},s={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function w(_){return _ instanceof f?new f(_.type,w(_.content),_.alias):Array.isArray(_)?_.map(w):_.replace(/&/g,"&").replace(/"+I.content+""+I.tag+">"};function g(w,_,D,C){w.lastIndex=_;var I=w.exec(D);if(I&&C&&I[1]){var N=I[1].length;I.index+=N,I[0]=I[0].slice(N)}return I}function i(w,_,D,C,I,N){for(var b in D)if(!(!D.hasOwnProperty(b)||!D[b])){var P=D[b];P=Array.isArray(P)?P:[P];for(var L=0;L
|$)/g,mt=>mt.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1
$2"))}u().registerHelper("each_compare_list_field",function(st,mt,vt){const yt=vt.hash.field,Jt=[];st&&st.forEach(function(jt){const Tt=jt;Tt.key=jt[yt],Jt.push(Tt)});const Xt=[];return mt&&mt.forEach(function(jt){const Tt=jt;Tt.key=jt[yt],Xt.push(Tt)}),Rt("key",Jt,Xt,vt)}),u().registerHelper("each_compare_keys",function(st,mt,vt){const yt=[];st&&Object.keys(st).forEach(function(jt){const Tt={};Tt.value=st[jt],Tt.key=jt,yt.push(Tt)});const Jt=[];return mt&&Object.keys(mt).forEach(function(jt){const Tt={};Tt.value=mt[jt],Tt.key=jt,Jt.push(Tt)}),Rt("key",yt,Jt,vt)}),u().registerHelper("body2json",function(st,mt){return Ce(st)}),u().registerHelper("each_compare_field",function(st,mt,vt){return Rt("field",st,mt,vt)}),u().registerHelper("each_compare_title",function(st,mt,vt){return Rt("title",st,mt,vt)}),u().registerHelper("reformat",function(st,mt){if(mt==="json")try{return JSON.stringify(JSON.parse(st.trim()),null," ")}catch(vt){}return st}),u().registerHelper("showDiff",function(st,mt,vt){let yt="";if(st===mt)yt=st;else{if(!st)return mt;if(!mt)return st;const Jt=new Se,Xt=Jt.diffMain(mt,st);Jt.diffCleanupSemantic(Xt),yt=Jt.diffPrettyHtml(Xt),yt=yt.replace(/¶/gm,"")}return vt==="nl2br"&&(yt=_t(yt)),yt});function Rt(st,mt,vt,yt){const Jt=[];let Xt=0;mt&&mt.forEach(function(Gt){let Qt=!1;if(vt&&vt.forEach(function(qt){if(Gt[st]===qt[st]){const He={typeSame:!0,source:Gt,compare:qt,index:Xt};Jt.push(He),Qt=!0,Xt++}}),!Qt){const qt={typeIns:!0,source:Gt,index:Xt};Jt.push(qt),Xt++}}),vt&&vt.forEach(function(Gt){let Qt=!1;if(mt&&mt.forEach(function(qt){qt[st]===Gt[st]&&(Qt=!0)}),!Qt){const qt={typeDel:!0,compare:Gt,index:Xt};Jt.push(qt),Xt++}});let jt="";const Tt=Jt.length;for(const Gt in Jt)parseInt(Gt,10)===Tt-1&&(Jt[Gt]._last=!0),jt=jt+yt.fn(Jt[Gt]);return jt}}document.addEventListener("DOMContentLoaded",()=>{Ut(),T(),v().highlightAll()});function Ut(){var J;let Ft=[{type:"get",url:"/new/:a",title:"Request information to create a new bolt card",name:"NewBoltCard",group:"BoltCardService",parameter:{fields:{Parameter:[{group:"Parameter",type:"String",optional:!1,field:"a",description:"one time authentication code
"}]}},success:{fields:{"Success 200":[{group:"Success 200",type:"String",optional:!1,field:"protocol_name",description:"name of the protocol message
"},{group:"Success 200",type:"Int",optional:!1,field:"protocol_version",description:"version of the protocol message
"},{group:"Success 200",type:"String",optional:!1,field:"card_name",description:"user friendly card name
"},{group:"Success 200",type:"String",optional:!1,field:"lnurlw_base",description:"base for creating the lnurlw on the card
"},{group:"Success 200",type:"String",optional:!1,field:"k0",description:"Key 0 - authorisation key
"},{group:"Success 200",type:"String",optional:!1,field:"k1",description:"Key 1 - decryption key
"},{group:"Success 200",type:"String",optional:!1,field:"k2",description:"Key 2 - authentication key
"},{group:"Success 200",type:"String",optional:!1,field:"k3",description:"Key 3 - NXP documents say this must be set
"},{group:"Success 200",type:"String",optional:!1,field:"k4",description:"Key 4 - NXP documents say this must be set
"}]}},version:"0.0.0",filename:"new_card_request.go",groupTitle:"BoltCardService"}];const ut={name:"BoltCardService",version:"0.0.0",description:"REST Api",sampleUrl:!1,defaultVersion:"0.0.0",apidoc:"0.3.0",generator:{name:"apidoc",time:"Wed Aug 24 2022 09:21:08 GMT+0000 (Coordinated Universal Time)",url:"https://apidocjs.com",version:"0.52.0"}};kt();const _t=u().compile(E()("#template-header").html()),Rt=u().compile(E()("#template-footer").html()),st=u().compile(E()("#template-article").html()),mt=u().compile(E()("#template-compare-article").html()),vt=u().compile(E()("#template-generator").html()),yt=u().compile(E()("#template-project").html()),Jt=u().compile(E()("#template-sections").html()),Xt=u().compile(E()("#template-sidenav").html()),jt={aloneDisplay:!1,showRequiredLabels:!1,withGenerator:!0,withCompare:!0};ut.template=Object.assign(jt,(J=ut.template)!=null?J:{}),ut.template.forceLanguage&&Mt(ut.template.forceLanguage);const Tt=(0,o.groupBy)(Ft,Z=>Z.group),Gt={};E().each(Tt,(Z,U)=>{Gt[Z]=(0,o.groupBy)(U,q=>q.name)});const Qt=[];E().each(Gt,(Z,U)=>{let q=[];E().each(U,(tt,at)=>{const ht=at[0].title;ht&&q.push(ht.toLowerCase()+"#~#"+tt)}),q.sort(),ut.order&&(q=M(q,ut.order,"#~#")),q.forEach(tt=>{const ht=tt.split("#~#")[1];U[ht].forEach(gt=>{Qt.push(gt)})})}),Ft=Qt;let qt={};const He={};let Oe={};Oe[ut.version]=1,E().each(Ft,(Z,U)=>{qt[U.group]=1,He[U.group]=U.groupTitle||U.group,Oe[U.version]=1}),qt=Object.keys(qt),qt.sort(),ut.order&&(qt=G(He,ut.order)),Oe=Object.keys(Oe),Oe.sort(r().compare),Oe.reverse();const _e=[];qt.forEach(Z=>{_e.push({group:Z,isHeader:!0,title:He[Z]});let U="";Ft.forEach(q=>{q.group===Z&&(U!==q.name?_e.push({title:q.title,group:Z,name:q.name,type:q.type,version:q.version,url:q.url}):_e.push({title:q.title,group:Z,hidden:!0,name:q.name,type:q.type,version:q.version,url:q.url}),U=q.name)})});function Dn(Z,U,q){let tt=!1;if(!U)return tt;const at=U.match(/(.+?)<\/h(1|2)>/gi);return at&&at.forEach(function(ht){const gt=ht.substring(2,3),wt=ht.replace(/<.+?>/g,""),Dt=ht.match(/id="api-([^-]+)(?:-(.+))?"/),Lt=Dt?Dt[1]:null,Yt=Dt?Dt[2]:null;gt==="1"&&wt&&Lt&&(Z.splice(q,0,{group:Lt,isHeader:!0,title:wt,isFixed:!0}),q++,tt=!0),gt==="2"&&wt&&Lt&&Yt&&(Z.splice(q,0,{group:Lt,name:Yt,isHeader:!1,title:wt,isFixed:!1,version:"1.0"}),q++)}),tt}let sn;if(ut.header&&(sn=Dn(_e,ut.header.content,0),sn||_e.unshift({group:"_header",isHeader:!0,title:ut.header.title==null?St("General"):ut.header.title,isFixed:!0})),ut.footer){const Z=_e.length;sn=Dn(_e,ut.footer.content,_e.length),!sn&&ut.footer.title!=null&&_e.splice(Z,0,{group:"_footer",isHeader:!0,title:ut.footer.title,isFixed:!0})}const Ue=ut.title?ut.title:"apiDoc: "+ut.name+" - "+ut.version;E()(document).attr("title",Ue),E()("#loader").remove();const dn={nav:_e};E()("#sidenav").append(Xt(dn)),E()("#generator").append(vt(ut)),(0,o.extend)(ut,{versions:Oe}),E()("#project").append(yt(ut)),ut.header&&E()("#header").append(_t(ut.header)),ut.footer&&(E()("#footer").append(Rt(ut.footer)),ut.template.aloneDisplay&&document.getElementById("api-_footer").classList.add("hide"));const Me={};let gn="";qt.forEach(function(Z){const U=[];let q="",tt={},at=Z,ht="";Me[Z]={},Ft.forEach(function(gt){Z===gt.group&&(q!==gt.name?(Ft.forEach(function(wt){Z===wt.group&>.name===wt.name&&(Object.prototype.hasOwnProperty.call(Me[gt.group],gt.name)||(Me[gt.group][gt.name]=[]),Me[gt.group][gt.name].push(wt.version))}),tt={article:gt,versions:Me[gt.group][gt.name]}):tt={article:gt,hidden:!0,versions:Me[gt.group][gt.name]},ut.sampleUrl&&ut.sampleUrl===!0&&(ut.sampleUrl=window.location.origin),ut.url&&tt.article.url.substr(0,4).toLowerCase()!=="http"&&(tt.article.url=ut.url+tt.article.url),_n(tt,gt),gt.groupTitle&&(at=gt.groupTitle),gt.groupDescription&&(ht=gt.groupDescription),U.push({article:st(tt),group:gt.group,name:gt.name,aloneDisplay:ut.template.aloneDisplay}),q=gt.name)}),tt={group:Z,title:at,description:ht,articles:U,aloneDisplay:ut.template.aloneDisplay},gn+=Jt(tt)}),E()("#sections").append(gn),ut.template.aloneDisplay||(document.body.dataset.spy="scroll",E()("body").scrollspy({target:"#scrollingNav"})),E()(".form-control").on("focus change",function(){E()(this).removeClass("border-danger")}),E()(".sidenav").find("a").on("click",function(Z){Z.preventDefault();const U=this.getAttribute("href");if(ut.template.aloneDisplay){const q=document.querySelector(".sidenav > li.active");q&&q.classList.remove("active"),this.parentNode.classList.add("active")}else{const q=document.querySelector(U);q&&E()("html,body").animate({scrollTop:q.offsetTop},400)}window.location.hash=U});function me(Z){let U=!1;return E().each(Z,q=>{U=U||(0,o.some)(Z[q],tt=>tt.type)}),U}function Cn(){E()('button[data-toggle="popover"]').popover().click(function(U){U.preventDefault()});const Z=E()("#version strong").html();if(E()("#sidenav li").removeClass("is-new"),ut.template.withCompare&&E()("#sidenav li[data-version='"+Z+"']").each(function(){const U=E()(this).data("group"),q=E()(this).data("name"),tt=E()("#sidenav li[data-group='"+U+"'][data-name='"+q+"']").length,at=E()("#sidenav li[data-group='"+U+"'][data-name='"+q+"']").index(E()(this));(tt===1||at===tt-1)&&E()(this).addClass("is-new")}),E()(".nav-tabs-examples a").click(function(U){U.preventDefault(),E()(this).tab("show")}),E()(".nav-tabs-examples").find("a:first").tab("show"),E()(".sample-request-content-type-switch").change(function(){E()(this).val()==="body-form-data"?(E()("#sample-request-body-json-input-"+E()(this).data("id")).hide(),E()("#sample-request-body-form-input-"+E()(this).data("id")).show()):(E()("#sample-request-body-form-input-"+E()(this).data("id")).hide(),E()("#sample-request-body-json-input-"+E()(this).data("id")).show())}),ut.template.aloneDisplay&&(E()(".show-group").click(function(){const U="."+E()(this).attr("data-group")+"-group",q="."+E()(this).attr("data-group")+"-article";E()(".show-api-group").addClass("hide"),E()(U).removeClass("hide"),E()(".show-api-article").addClass("hide"),E()(q).removeClass("hide")}),E()(".show-api").click(function(){const U=this.getAttribute("href").substring(1),q=document.getElementById("version").textContent.trim(),tt=`.${this.dataset.name}-article`,at=`[id="${U}-${q}"]`,ht=`.${this.dataset.group}-group`;E()(".show-api-group").addClass("hide"),E()(ht).removeClass("hide"),E()(".show-api-article").addClass("hide");let gt=E()(tt);E()(at).length&&(gt=E()(at).parent()),gt.removeClass("hide"),U.match(/_(header|footer)/)&&document.getElementById(U).classList.remove("hide")})),ut.template.aloneDisplay||E()("body").scrollspy("refresh"),ut.template.aloneDisplay){const U=window.location.hash;if(U!=null&&U.length!==0){const q=document.getElementById("version").textContent.trim(),tt=document.querySelector(`li .${U.slice(1)}-init`),at=document.querySelector(`li[data-version="${q}"] .show-api.${U.slice(1)}-init`);let ht=tt;at&&(ht=at),ht.click()}}}function Bn(Z){typeof Z=="undefined"?Z=E()("#version strong").html():E()("#version strong").html(Z),E()("article").addClass("hide"),E()("#sidenav li:not(.nav-fixed)").addClass("hide");const U={};document.querySelectorAll("article[data-version]").forEach(q=>{const tt=q.dataset.group,at=q.dataset.name,ht=q.dataset.version,gt=tt+at;!U[gt]&&r().lte(ht,Z)&&(U[gt]=!0,document.querySelector(`article[data-group="${tt}"][data-name="${at}"][data-version="${ht}"]`).classList.remove("hide"),document.querySelector(`#sidenav li[data-group="${tt}"][data-name="${at}"][data-version="${ht}"]`).classList.remove("hide"),document.querySelector(`#sidenav li.nav-header[data-group="${tt}"]`).classList.remove("hide"))}),E()("article[data-version]").each(function(q){const tt=E()(this).data("group");E()("section#api-"+tt).removeClass("hide"),E()("section#api-"+tt+" article:visible").length===0?E()("section#api-"+tt).addClass("hide"):E()("section#api-"+tt).removeClass("hide")})}if(Bn(),E()("#versions li.version a").on("click",function(Z){Z.preventDefault(),Bn(E()(this).html())}),E()("#compareAllWithPredecessor").on("click",$n),E()("article .versions li.version a").on("click",fn),E().urlParam=function(Z){const U=new RegExp("[\\?&]"+Z+"=([^&#]*)").exec(window.location.href);return U&&U[1]?U[1]:null},E().urlParam("compare")&&E()("#compareAllWithPredecessor").trigger("click"),window.location.hash){const Z=decodeURI(window.location.hash);E()(Z).length>0&&E()("html,body").animate({scrollTop:parseInt(E()(Z).offset().top)},0)}E()("#scrollingNav .sidenav-search input.search").focus(),E()('[data-action="filter-search"]').on("keyup",Z=>{const U=Z.currentTarget.value.toLowerCase();E()(".sidenav").find("a.nav-list-item").each((q,tt)=>{E()(tt).show(),tt.innerText.toLowerCase().includes(U)||E()(tt).hide()})}),E()("span.search-reset").on("click",function(){E()("#scrollingNav .sidenav-search input.search").val("").focus(),E()(".sidenav").find("a.nav-list-item").show()});function fn(Z){Z.preventDefault();const U=E()(this).parents("article"),q=E()(this).html(),tt=U.find(".version"),at=tt.find("strong").html();tt.find("strong").html(q);const ht=U.data("group"),gt=U.data("name"),wt=U.data("version"),Dt=U.data("compare-version");if(Dt!==q&&!(!Dt&&wt===q)){if(Dt&&Me[ht][gt][0]===q||wt===q)Xn(ht,gt,wt);else{let Lt={},Yt={};E().each(Gt[ht][gt],function(se,Ze){Ze.version===wt&&(Lt=Ze),Ze.version===q&&(Yt=Ze)});const Et={article:Lt,compare:Yt,versions:Me[ht][gt]};Et.article.id=Et.article.group+"-"+Et.article.name+"-"+Et.article.version,Et.article.id=Et.article.id.replace(/\./g,"_"),Et.compare.id=Et.compare.group+"-"+Et.compare.name+"-"+Et.compare.version,Et.compare.id=Et.compare.id.replace(/\./g,"_");let Ot=Lt;Ot.parameter&&Ot.parameter.fields&&(Et._hasTypeInParameterFields=me(Ot.parameter.fields)),Ot.error&&Ot.error.fields&&(Et._hasTypeInErrorFields=me(Ot.error.fields)),Ot.success&&Ot.success.fields&&(Et._hasTypeInSuccessFields=me(Ot.success.fields)),Ot.info&&Ot.info.fields&&(Et._hasTypeInInfoFields=me(Ot.info.fields)),Ot=Yt,Et._hasTypeInParameterFields!==!0&&Ot.parameter&&Ot.parameter.fields&&(Et._hasTypeInParameterFields=me(Ot.parameter.fields)),Et._hasTypeInErrorFields!==!0&&Ot.error&&Ot.error.fields&&(Et._hasTypeInErrorFields=me(Ot.error.fields)),Et._hasTypeInSuccessFields!==!0&&Ot.success&&Ot.success.fields&&(Et._hasTypeInSuccessFields=me(Ot.success.fields)),Et._hasTypeInInfoFields!==!0&&Ot.info&&Ot.info.fields&&(Et._hasTypeInInfoFields=me(Ot.info.fields));const Ee=mt(Et);U.after(Ee),U.next().find(".versions li.version a").on("click",fn),E()("#sidenav li[data-group='"+ht+"'][data-name='"+gt+"'][data-version='"+at+"']").addClass("has-modifications"),U.remove()}v().highlightAll()}}function $n(Z){Z.preventDefault(),E()("article:visible .versions").each(function(){const q=E()(this).parents("article").data("version");let tt=null;E()(this).find("li.version a").each(function(){E()(this).html() {Object.keys(Z).forEach(at=>{Z[at].replace(/_/g," ")===tt&&q.push(at)})}),Object.keys(Z).forEach(tt=>{q.indexOf(tt)===-1&&q.push(tt)}),q}Cn()}})()})(); +`+Qt),st.find(".sample-request-response").is(":visible")&&st.find(".sample-request-response").fadeTo(1,.1),st.find(".sample-request-response").fadeTo(250,1),st.find(".sample-request-response-json").text(Gt),v().highlightAll()}}function I(Ft,ut,_t){const Rt=E()('article[data-group="'+Ft+'"][data-name="'+ut+'"][data-version="'+_t+'"]');Rt.find(".sample-request-response-json").html(""),Rt.find(".sample-request-response").hide(),Rt.find(".sample-request-input").each((mt,vt)=>{vt.value=vt.placeholder!==vt.dataset.name?vt.placeholder:""});const st=Rt.find(".sample-request-url");st.val(st.prop("defaultValue"))}const N={"Allowed values:":"Valors permesos:","Compare all with predecessor":"Comparar tot amb versi\xF3 anterior","compare changes to:":"comparar canvis amb:","compared to":"comparat amb","Default value:":"Valor per defecte:",Description:"Descripci\xF3",Field:"Camp",General:"General","Generated with":"Generat amb",Name:"Nom","No response values.":"Sense valors en la resposta.",optional:"opcional",Parameter:"Par\xE0metre","Permission:":"Permisos:",Response:"Resposta",Send:"Enviar","Send a Sample Request":"Enviar una petici\xF3 d'exemple","show up to version:":"mostrar versi\xF3:","Size range:":"Tamany de rang:",Type:"Tipus",url:"url"},b={"Allowed values:":"Povolen\xE9 hodnoty:","Compare all with predecessor":"Porovnat v\u0161e s p\u0159edchoz\xEDmi verzemi","compare changes to:":"porovnat zm\u011Bny s:","compared to":"porovnat s","Default value:":"V\xFDchoz\xED hodnota:",Description:"Popis",Field:"Pole",General:"Obecn\xE9","Generated with":"Vygenerov\xE1no pomoc\xED",Name:"N\xE1zev","No response values.":"Nebyly vr\xE1ceny \u017E\xE1dn\xE9 hodnoty.",optional:"voliteln\xE9",Parameter:"Parametr","Permission:":"Opr\xE1vn\u011Bn\xED:",Response:"Odpov\u011B\u010F",Send:"Odeslat","Send a Sample Request":"Odeslat uk\xE1zkov\xFD po\u017Eadavek","show up to version:":"zobrazit po verzi:","Size range:":"Rozsah velikosti:",Type:"Typ",url:"url"},P={"Allowed values:":"Erlaubte Werte:","Compare all with predecessor":"Vergleiche alle mit ihren Vorg\xE4ngern","compare changes to:":"vergleiche \xC4nderungen mit:","compared to":"verglichen mit","Default value:":"Standardwert:",Description:"Beschreibung",Field:"Feld",General:"Allgemein","Generated with":"Erstellt mit",Name:"Name","No response values.":"Keine R\xFCckgabewerte.",optional:"optional",Parameter:"Parameter","Permission:":"Berechtigung:",Response:"Antwort",Send:"Senden","Send a Sample Request":"Eine Beispielanfrage senden","show up to version:":"zeige bis zur Version:","Size range:":"Gr\xF6\xDFenbereich:",Type:"Typ",url:"url"},L={"Allowed values:":"Valores permitidos:","Compare all with predecessor":"Comparar todo con versi\xF3n anterior","compare changes to:":"comparar cambios con:","compared to":"comparado con","Default value:":"Valor por defecto:",Description:"Descripci\xF3n",Field:"Campo",General:"General","Generated with":"Generado con",Name:"Nombre","No response values.":"Sin valores en la respuesta.",optional:"opcional",Parameter:"Par\xE1metro","Permission:":"Permisos:",Response:"Respuesta",Send:"Enviar","Send a Sample Request":"Enviar una petici\xF3n de ejemplo","show up to version:":"mostrar a versi\xF3n:","Size range:":"Tama\xF1o de rango:",Type:"Tipo",url:"url"},k={"Allowed values:":"Valeurs autoris\xE9es :",Body:"Corps","Compare all with predecessor":"Tout comparer avec ...","compare changes to:":"comparer les changements \xE0 :","compared to":"comparer \xE0","Default value:":"Valeur par d\xE9faut :",Description:"Description",Field:"Champ",General:"G\xE9n\xE9ral","Generated with":"G\xE9n\xE9r\xE9 avec",Header:"En-t\xEAte",Headers:"En-t\xEAtes",Name:"Nom","No response values.":"Aucune valeur de r\xE9ponse.","No value":"Aucune valeur",optional:"optionnel",Parameter:"Param\xE8tre",Parameters:"Param\xE8tres","Permission:":"Permission :","Query Parameter(s)":"Param\xE8tre(s) de la requ\xEAte","Query Parameters":"Param\xE8tres de la requ\xEAte","Request Body":"Corps de la requ\xEAte",required:"requis",Response:"R\xE9ponse",Send:"Envoyer","Send a Sample Request":"Envoyer une requ\xEAte repr\xE9sentative","show up to version:":"Montrer \xE0 partir de la version :","Size range:":"Ordre de grandeur :",Type:"Type",url:"url"},F={"Allowed values:":"Valori permessi:","Compare all with predecessor":"Confronta tutto con versioni precedenti","compare changes to:":"confronta modifiche con:","compared to":"confrontato con","Default value:":"Valore predefinito:",Description:"Descrizione",Field:"Campo",General:"Generale","Generated with":"Creato con",Name:"Nome","No response values.":"Nessun valore di risposta.",optional:"opzionale",Parameter:"Parametro","Permission:":"Permessi:",Response:"Risposta",Send:"Invia","Send a Sample Request":"Invia una richiesta di esempio","show up to version:":"mostra alla versione:","Size range:":"Intervallo dimensione:",Type:"Tipo",url:"url"},H={"Allowed values:":"Toegestane waarden:","Compare all with predecessor":"Vergelijk alle met voorgaande versie","compare changes to:":"vergelijk veranderingen met:","compared to":"vergelijk met","Default value:":"Standaard waarde:",Description:"Omschrijving",Field:"Veld",General:"Algemeen","Generated with":"Gegenereerd met",Name:"Naam","No response values.":"Geen response waardes.",optional:"optioneel",Parameter:"Parameter","Permission:":"Permissie:",Response:"Antwoorden",Send:"Sturen","Send a Sample Request":"Stuur een sample aanvragen","show up to version:":"toon tot en met versie:","Size range:":"Maatbereik:",Type:"Type",url:"url"},W={"Allowed values:":"Dozwolone warto\u015Bci:","Compare all with predecessor":"Por\xF3wnaj z poprzednimi wersjami","compare changes to:":"por\xF3wnaj zmiany do:","compared to":"por\xF3wnaj do:","Default value:":"Warto\u015B\u0107 domy\u015Blna:",Description:"Opis",Field:"Pole",General:"Generalnie","Generated with":"Wygenerowano z",Name:"Nazwa","No response values.":"Brak odpowiedzi.",optional:"opcjonalny",Parameter:"Parametr","Permission:":"Uprawnienia:",Response:"Odpowied\u017A",Send:"Wy\u015Blij","Send a Sample Request":"Wy\u015Blij przyk\u0142adowe \u017C\u0105danie","show up to version:":"poka\u017C do wersji:","Size range:":"Zakres rozmiaru:",Type:"Typ",url:"url"},z={"Allowed values:":"Valores permitidos:","Compare all with predecessor":"Compare todos com antecessores","compare changes to:":"comparar altera\xE7\xF5es com:","compared to":"comparado com","Default value:":"Valor padr\xE3o:",Description:"Descri\xE7\xE3o",Field:"Campo",General:"Geral","Generated with":"Gerado com",Name:"Nome","No response values.":"Sem valores de resposta.",optional:"opcional",Parameter:"Par\xE2metro","Permission:":"Permiss\xE3o:",Response:"Resposta",Send:"Enviar","Send a Sample Request":"Enviar um Exemplo de Pedido","show up to version:":"aparecer para a vers\xE3o:","Size range:":"Faixa de tamanho:",Type:"Tipo",url:"url"},$={"Allowed values:":"Valori permise:","Compare all with predecessor":"Compar\u0103 toate cu versiunea precedent\u0103","compare changes to:":"compar\u0103 cu versiunea:","compared to":"comparat cu","Default value:":"Valoare implicit\u0103:",Description:"Descriere",Field:"C\xE2mp",General:"General","Generated with":"Generat cu",Name:"Nume","No response values.":"Nici o valoare returnat\u0103.",optional:"op\u021Bional",Parameter:"Parametru","Permission:":"Permisiune:",Response:"R\u0103spuns",Send:"Trimite","Send a Sample Request":"Trimite o cerere de prob\u0103","show up to version:":"arat\u0103 p\xE2n\u0103 la versiunea:","Size range:":"Interval permis:",Type:"Tip",url:"url"},V={"Allowed values:":"\u0414\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F:","Compare all with predecessor":"\u0421\u0440\u0430\u0432\u043D\u0438\u0442\u044C \u0441 \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439","compare changes to:":"\u0441\u0440\u0430\u0432\u043D\u0438\u0442\u044C \u0441:","compared to":"\u0432 \u0441\u0440\u0430\u0432\u043D\u0435\u043D\u0438\u0438 \u0441","Default value:":"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E:",Description:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",Field:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",General:"\u041E\u0431\u0449\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F","Generated with":"\u0421\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E",Name:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435","No response values.":"\u041D\u0435\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439 \u0434\u043B\u044F \u043E\u0442\u0432\u0435\u0442\u0430.",optional:"\u043D\u0435\u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439",Parameter:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440","Permission:":"\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043E:",Response:"\u041E\u0442\u0432\u0435\u0442",Send:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","Send a Sample Request":"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0442\u0435\u0441\u0442\u043E\u0432\u044B\u0439 \u0437\u0430\u043F\u0440\u043E\u0441","show up to version:":"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0432\u0435\u0440\u0441\u0438\u044E:","Size range:":"\u041E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u044F:",Type:"\u0422\u0438\u043F",url:"URL"},Y={"Allowed values:":"\u0130zin verilen de\u011Ferler:","Compare all with predecessor":"T\xFCm\xFCn\xFC \xF6ncekiler ile kar\u015F\u0131la\u015Ft\u0131r","compare changes to:":"de\u011Fi\u015Fiklikleri kar\u015F\u0131la\u015Ft\u0131r:","compared to":"kar\u015F\u0131la\u015Ft\u0131r","Default value:":"Varsay\u0131lan de\u011Fer:",Description:"A\xE7\u0131klama",Field:"Alan",General:"Genel","Generated with":"Olu\u015Fturan",Name:"\u0130sim","No response values.":"D\xF6n\xFC\u015F verisi yok.",optional:"opsiyonel",Parameter:"Parametre","Permission:":"\u0130zin:",Response:"D\xF6n\xFC\u015F",Send:"G\xF6nder","Send a Sample Request":"\xD6rnek istek g\xF6nder","show up to version:":"bu versiyona kadar g\xF6ster:","Size range:":"Boyut aral\u0131\u011F\u0131:",Type:"Tip",url:"url"},nt={"Allowed values:":"Gi\xE1 tr\u1ECB ch\u1EA5p nh\u1EADn:","Compare all with predecessor":"So s\xE1nh v\u1EDBi t\u1EA5t c\u1EA3 phi\xEAn b\u1EA3n tr\u01B0\u1EDBc","compare changes to:":"so s\xE1nh s\u1EF1 thay \u0111\u1ED5i v\u1EDBi:","compared to":"so s\xE1nh v\u1EDBi","Default value:":"Gi\xE1 tr\u1ECB m\u1EB7c \u0111\u1ECBnh:",Description:"Ch\xFA th\xEDch",Field:"Tr\u01B0\u1EDDng d\u1EEF li\u1EC7u",General:"T\u1ED5ng quan","Generated with":"\u0110\u01B0\u1EE3c t\u1EA1o b\u1EDFi",Name:"T\xEAn","No response values.":"Kh\xF4ng c\xF3 k\u1EBFt qu\u1EA3 tr\u1EA3 v\u1EC1.",optional:"T\xF9y ch\u1ECDn",Parameter:"Tham s\u1ED1","Permission:":"Quy\u1EC1n h\u1EA1n:",Response:"K\u1EBFt qu\u1EA3",Send:"G\u1EEDi","Send a Sample Request":"G\u1EEDi m\u1ED9t y\xEAu c\u1EA7u m\u1EABu","show up to version:":"hi\u1EC3n th\u1ECB phi\xEAn b\u1EA3n:","Size range:":"K\xEDch c\u1EE1:",Type:"Ki\u1EC3u",url:"li\xEAn k\u1EBFt"},it={"Allowed values:":"\u5141\u8BB8\u503C:",Body:"\u8BF7\u6C42\u4F53","Compare all with predecessor":"\u4E0E\u6240\u6709\u4E4B\u524D\u7684\u7248\u672C\u6BD4\u8F83","compare changes to:":"\u5C06\u5F53\u524D\u7248\u672C\u4E0E\u6307\u5B9A\u7248\u672C\u6BD4\u8F83:","compared to":"\u76F8\u6BD4\u4E8E","Default value:":"\u9ED8\u8BA4\u503C:",Description:"\u63CF\u8FF0",Field:"\u5B57\u6BB5",General:"\u6982\u8981","Generated with":"\u6784\u5EFA\u4E8E",Name:"\u540D\u79F0","No response values.":"\u65E0\u8FD4\u56DE\u503C.",optional:"\u53EF\u9009",Parameter:"\u53C2\u6570",Parameters:"\u53C2\u6570",Headers:"\u8BF7\u6C42\u5934","Permission:":"\u6743\u9650:",Response:"\u8FD4\u56DE",required:"\u5FC5\u9700\u7684",Send:"\u53D1\u9001","Send a Sample Request":"\u53D1\u9001\u793A\u4F8B\u8BF7\u6C42","show up to version:":"\u663E\u793A\u6307\u5B9A\u7248\u672C:","Size range:":"\u53D6\u503C\u8303\u56F4:",Type:"\u7C7B\u578B",url:"\u5730\u5740"},ft={ca:N,cn:it,cs:b,de:P,es:L,en:{},fr:k,it:F,nl:H,pl:W,pt:z,pt_br:z,ro:$,ru:V,tr:Y,vi:nt,zh:it,zh_cn:it},et=((We=window.navigator.language)!=null?We:"en-GB").toLowerCase().substr(0,2);let dt=ft[et]?ft[et]:ft.en;function St(Ft){const ut=dt[Ft];return ut===void 0?Ft:ut}function Mt(Ft){if(!Object.prototype.hasOwnProperty.call(ft,Ft))throw new Error(`Invalid value for language setting! Available values are ${Object.keys(ft).join(",")}`);dt=ft[Ft]}const{defaultsDeep:ie}=o,ge=(Ft,ut)=>{const _t=(Rt,st,mt,vt)=>({[st]:mt+1{let ut={};return Ft.forEach(_t=>{const Rt=ge(_t[0].split("."),_t[1]);ut=ie(ut,Rt)}),ve(ut)};function ve(Ft){return JSON.stringify(Ft,null,4)}function Ce(Ft){const ut=[];return Ft.forEach(_t=>{let Rt;switch(_t.type.toLowerCase()){case"string":Rt=_t.defaultValue||"";break;case"boolean":Rt=Boolean(_t.defaultValue)||!1;break;case"number":Rt=parseInt(_t.defaultValue||0,10);break;case"date":Rt=_t.defaultValue||new Date().toLocaleDateString(window.navigator.language);break}ut.push([_t.field,Rt])}),he(ut)}var It=re(2518);class Se extends It{constructor(ut){super(),this.testMode=ut}diffMain(ut,_t,Rt,st){return super.diff_main(this._stripHtml(ut),this._stripHtml(_t),Rt,st)}diffPrettyHtml(ut){const _t=[],Rt=/&/g,st=//g,vt=/\n/g;for(let yt=0;yt ");switch(Jt){case It.DIFF_INSERT:_t[yt]=""+jt+"";break;case It.DIFF_DELETE:_t[yt]=" "+jt+"";break;case It.DIFF_EQUAL:_t[yt]=""+jt+"";break}}return _t.join("")}diffCleanupSemantic(ut){return this.diff_cleanupSemantic(ut)}_stripHtml(ut){if(this.testMode)return ut;const _t=document.createElement("div");return _t.innerHTML=ut,_t.textContent||_t.innerText||""}}function kt(){u().registerHelper("markdown",function(st){return st&&(st=st.replace(/((\[(.*?)\])?\(#)((.+?):(.+?))(\))/mg,function(mt,vt,yt,Jt,Xt,jt,Tt){const Gt=Jt||jt+"/"+Tt;return''+Gt+""}),st)}),u().registerHelper("setInputType",function(st){switch(st){case"File":case"Email":case"Color":case"Number":case"Date":return st[0].toLowerCase()+st.substring(1);case"Boolean":return"checkbox";default:return"text"}});let Ft;u().registerHelper("startTimer",function(st){return Ft=new Date,""}),u().registerHelper("stopTimer",function(st){return console.log(new Date-Ft),""}),u().registerHelper("__",function(st){return St(st)}),u().registerHelper("cl",function(st){return console.log(st),""}),u().registerHelper("underscoreToSpace",function(st){return st.replace(/(_+)/g," ")}),u().registerHelper("removeDblQuotes",function(st){return st.replace(/"/g,"")}),u().registerHelper("assign",function(st){if(arguments.length>0){const mt=typeof arguments[1];let vt=null;(mt==="string"||mt==="number"||mt==="boolean")&&(vt=arguments[1]),u().registerHelper(st,function(){return vt})}return""}),u().registerHelper("nl2br",function(st){return _t(st)}),u().registerHelper("ifCond",function(st,mt,vt,yt){switch(mt){case"==":return st==vt?yt.fn(this):yt.inverse(this);case"===":return st===vt?yt.fn(this):yt.inverse(this);case"!=":return st!=vt?yt.fn(this):yt.inverse(this);case"!==":return st!==vt?yt.fn(this):yt.inverse(this);case"<":return st":return st>vt?yt.fn(this):yt.inverse(this);case">=":return st>=vt?yt.fn(this):yt.inverse(this);case"&&":return st&&vt?yt.fn(this):yt.inverse(this);case"||":return st||vt?yt.fn(this):yt.inverse(this);default:return yt.inverse(this)}});const ut={};u().registerHelper("subTemplate",function(st,mt){ut[st]||(ut[st]=u().compile(document.getElementById("template-"+st).innerHTML));const vt=ut[st],yt=E().extend({},this,mt.hash);return new(u()).SafeString(vt(yt))}),u().registerHelper("toLowerCase",function(st){return st&&typeof st=="string"?st.toLowerCase():""}),u().registerHelper("splitFill",function(st,mt,vt){const yt=st.split(mt);return new Array(yt.length).join(vt)+yt[yt.length-1]});function _t(st){return(""+st).replace(/(?:^|<\/pre>)[^]*?(?: |$)/g,mt=>mt.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1
$2"))}u().registerHelper("each_compare_list_field",function(st,mt,vt){const yt=vt.hash.field,Jt=[];st&&st.forEach(function(jt){const Tt=jt;Tt.key=jt[yt],Jt.push(Tt)});const Xt=[];return mt&&mt.forEach(function(jt){const Tt=jt;Tt.key=jt[yt],Xt.push(Tt)}),Rt("key",Jt,Xt,vt)}),u().registerHelper("each_compare_keys",function(st,mt,vt){const yt=[];st&&Object.keys(st).forEach(function(jt){const Tt={};Tt.value=st[jt],Tt.key=jt,yt.push(Tt)});const Jt=[];return mt&&Object.keys(mt).forEach(function(jt){const Tt={};Tt.value=mt[jt],Tt.key=jt,Jt.push(Tt)}),Rt("key",yt,Jt,vt)}),u().registerHelper("body2json",function(st,mt){return Ce(st)}),u().registerHelper("each_compare_field",function(st,mt,vt){return Rt("field",st,mt,vt)}),u().registerHelper("each_compare_title",function(st,mt,vt){return Rt("title",st,mt,vt)}),u().registerHelper("reformat",function(st,mt){if(mt==="json")try{return JSON.stringify(JSON.parse(st.trim()),null," ")}catch(vt){}return st}),u().registerHelper("showDiff",function(st,mt,vt){let yt="";if(st===mt)yt=st;else{if(!st)return mt;if(!mt)return st;const Jt=new Se,Xt=Jt.diffMain(mt,st);Jt.diffCleanupSemantic(Xt),yt=Jt.diffPrettyHtml(Xt),yt=yt.replace(/¶/gm,"")}return vt==="nl2br"&&(yt=_t(yt)),yt});function Rt(st,mt,vt,yt){const Jt=[];let Xt=0;mt&&mt.forEach(function(Gt){let Qt=!1;if(vt&&vt.forEach(function(qt){if(Gt[st]===qt[st]){const He={typeSame:!0,source:Gt,compare:qt,index:Xt};Jt.push(He),Qt=!0,Xt++}}),!Qt){const qt={typeIns:!0,source:Gt,index:Xt};Jt.push(qt),Xt++}}),vt&&vt.forEach(function(Gt){let Qt=!1;if(mt&&mt.forEach(function(qt){qt[st]===Gt[st]&&(Qt=!0)}),!Qt){const qt={typeDel:!0,compare:Gt,index:Xt};Jt.push(qt),Xt++}});let jt="";const Tt=Jt.length;for(const Gt in Jt)parseInt(Gt,10)===Tt-1&&(Jt[Gt]._last=!0),jt=jt+yt.fn(Jt[Gt]);return jt}}document.addEventListener("DOMContentLoaded",()=>{Ut(),T(),v().highlightAll()});function Ut(){var J;let Ft=[{type:"get",url:"/new/:a",title:"Request information to create a new bolt card",name:"NewBoltCard",group:"BoltCardService",parameter:{fields:{Parameter:[{group:"Parameter",type:"String",optional:!1,field:"a",description:"one time authentication code
"}]}},success:{fields:{"Success 200":[{group:"Success 200",type:"String",optional:!1,field:"protocol_name",description:"name of the protocol message
"},{group:"Success 200",type:"Int",optional:!1,field:"protocol_version",description:"version of the protocol message
"},{group:"Success 200",type:"String",optional:!1,field:"card_name",description:"user friendly card name
"},{group:"Success 200",type:"String",optional:!1,field:"lnurlw_base",description:"base for creating the lnurlw on the card
"},{group:"Success 200",type:"String",optional:!1,field:"k0",description:"Key 0 - authorisation key
"},{group:"Success 200",type:"String",optional:!1,field:"k1",description:"Key 1 - decryption key
"},{group:"Success 200",type:"String",optional:!1,field:"k2",description:"Key 2 - authentication key
"},{group:"Success 200",type:"String",optional:!1,field:"k3",description:"Key 3 - NXP documents say this must be set
"},{group:"Success 200",type:"String",optional:!1,field:"k4",description:"Key 4 - NXP documents say this must be set
"}]}},version:"0.0.0",filename:"new_card_request.go",groupTitle:"BoltCardService"}];const ut={name:"BoltCardService",version:"0.0.0",description:"REST Api",sampleUrl:!1,defaultVersion:"0.0.0",apidoc:"0.3.0",generator:{name:"apidoc",time:"Wed Aug 24 2022 09:39:07 GMT+0000 (Coordinated Universal Time)",url:"https://apidocjs.com",version:"0.52.0"}};kt();const _t=u().compile(E()("#template-header").html()),Rt=u().compile(E()("#template-footer").html()),st=u().compile(E()("#template-article").html()),mt=u().compile(E()("#template-compare-article").html()),vt=u().compile(E()("#template-generator").html()),yt=u().compile(E()("#template-project").html()),Jt=u().compile(E()("#template-sections").html()),Xt=u().compile(E()("#template-sidenav").html()),jt={aloneDisplay:!1,showRequiredLabels:!1,withGenerator:!0,withCompare:!0};ut.template=Object.assign(jt,(J=ut.template)!=null?J:{}),ut.template.forceLanguage&&Mt(ut.template.forceLanguage);const Tt=(0,o.groupBy)(Ft,Z=>Z.group),Gt={};E().each(Tt,(Z,U)=>{Gt[Z]=(0,o.groupBy)(U,q=>q.name)});const Qt=[];E().each(Gt,(Z,U)=>{let q=[];E().each(U,(tt,at)=>{const ht=at[0].title;ht&&q.push(ht.toLowerCase()+"#~#"+tt)}),q.sort(),ut.order&&(q=M(q,ut.order,"#~#")),q.forEach(tt=>{const ht=tt.split("#~#")[1];U[ht].forEach(gt=>{Qt.push(gt)})})}),Ft=Qt;let qt={};const He={};let Oe={};Oe[ut.version]=1,E().each(Ft,(Z,U)=>{qt[U.group]=1,He[U.group]=U.groupTitle||U.group,Oe[U.version]=1}),qt=Object.keys(qt),qt.sort(),ut.order&&(qt=G(He,ut.order)),Oe=Object.keys(Oe),Oe.sort(r().compare),Oe.reverse();const _e=[];qt.forEach(Z=>{_e.push({group:Z,isHeader:!0,title:He[Z]});let U="";Ft.forEach(q=>{q.group===Z&&(U!==q.name?_e.push({title:q.title,group:Z,name:q.name,type:q.type,version:q.version,url:q.url}):_e.push({title:q.title,group:Z,hidden:!0,name:q.name,type:q.type,version:q.version,url:q.url}),U=q.name)})});function Dn(Z,U,q){let tt=!1;if(!U)return tt;const at=U.match(/(.+?)<\/h(1|2)>/gi);return at&&at.forEach(function(ht){const gt=ht.substring(2,3),wt=ht.replace(/<.+?>/g,""),Dt=ht.match(/id="api-([^-]+)(?:-(.+))?"/),Lt=Dt?Dt[1]:null,Yt=Dt?Dt[2]:null;gt==="1"&&wt&&Lt&&(Z.splice(q,0,{group:Lt,isHeader:!0,title:wt,isFixed:!0}),q++,tt=!0),gt==="2"&&wt&&Lt&&Yt&&(Z.splice(q,0,{group:Lt,name:Yt,isHeader:!1,title:wt,isFixed:!1,version:"1.0"}),q++)}),tt}let sn;if(ut.header&&(sn=Dn(_e,ut.header.content,0),sn||_e.unshift({group:"_header",isHeader:!0,title:ut.header.title==null?St("General"):ut.header.title,isFixed:!0})),ut.footer){const Z=_e.length;sn=Dn(_e,ut.footer.content,_e.length),!sn&&ut.footer.title!=null&&_e.splice(Z,0,{group:"_footer",isHeader:!0,title:ut.footer.title,isFixed:!0})}const Ue=ut.title?ut.title:"apiDoc: "+ut.name+" - "+ut.version;E()(document).attr("title",Ue),E()("#loader").remove();const dn={nav:_e};E()("#sidenav").append(Xt(dn)),E()("#generator").append(vt(ut)),(0,o.extend)(ut,{versions:Oe}),E()("#project").append(yt(ut)),ut.header&&E()("#header").append(_t(ut.header)),ut.footer&&(E()("#footer").append(Rt(ut.footer)),ut.template.aloneDisplay&&document.getElementById("api-_footer").classList.add("hide"));const Me={};let gn="";qt.forEach(function(Z){const U=[];let q="",tt={},at=Z,ht="";Me[Z]={},Ft.forEach(function(gt){Z===gt.group&&(q!==gt.name?(Ft.forEach(function(wt){Z===wt.group&>.name===wt.name&&(Object.prototype.hasOwnProperty.call(Me[gt.group],gt.name)||(Me[gt.group][gt.name]=[]),Me[gt.group][gt.name].push(wt.version))}),tt={article:gt,versions:Me[gt.group][gt.name]}):tt={article:gt,hidden:!0,versions:Me[gt.group][gt.name]},ut.sampleUrl&&ut.sampleUrl===!0&&(ut.sampleUrl=window.location.origin),ut.url&&tt.article.url.substr(0,4).toLowerCase()!=="http"&&(tt.article.url=ut.url+tt.article.url),_n(tt,gt),gt.groupTitle&&(at=gt.groupTitle),gt.groupDescription&&(ht=gt.groupDescription),U.push({article:st(tt),group:gt.group,name:gt.name,aloneDisplay:ut.template.aloneDisplay}),q=gt.name)}),tt={group:Z,title:at,description:ht,articles:U,aloneDisplay:ut.template.aloneDisplay},gn+=Jt(tt)}),E()("#sections").append(gn),ut.template.aloneDisplay||(document.body.dataset.spy="scroll",E()("body").scrollspy({target:"#scrollingNav"})),E()(".form-control").on("focus change",function(){E()(this).removeClass("border-danger")}),E()(".sidenav").find("a").on("click",function(Z){Z.preventDefault();const U=this.getAttribute("href");if(ut.template.aloneDisplay){const q=document.querySelector(".sidenav > li.active");q&&q.classList.remove("active"),this.parentNode.classList.add("active")}else{const q=document.querySelector(U);q&&E()("html,body").animate({scrollTop:q.offsetTop},400)}window.location.hash=U});function me(Z){let U=!1;return E().each(Z,q=>{U=U||(0,o.some)(Z[q],tt=>tt.type)}),U}function Cn(){E()('button[data-toggle="popover"]').popover().click(function(U){U.preventDefault()});const Z=E()("#version strong").html();if(E()("#sidenav li").removeClass("is-new"),ut.template.withCompare&&E()("#sidenav li[data-version='"+Z+"']").each(function(){const U=E()(this).data("group"),q=E()(this).data("name"),tt=E()("#sidenav li[data-group='"+U+"'][data-name='"+q+"']").length,at=E()("#sidenav li[data-group='"+U+"'][data-name='"+q+"']").index(E()(this));(tt===1||at===tt-1)&&E()(this).addClass("is-new")}),E()(".nav-tabs-examples a").click(function(U){U.preventDefault(),E()(this).tab("show")}),E()(".nav-tabs-examples").find("a:first").tab("show"),E()(".sample-request-content-type-switch").change(function(){E()(this).val()==="body-form-data"?(E()("#sample-request-body-json-input-"+E()(this).data("id")).hide(),E()("#sample-request-body-form-input-"+E()(this).data("id")).show()):(E()("#sample-request-body-form-input-"+E()(this).data("id")).hide(),E()("#sample-request-body-json-input-"+E()(this).data("id")).show())}),ut.template.aloneDisplay&&(E()(".show-group").click(function(){const U="."+E()(this).attr("data-group")+"-group",q="."+E()(this).attr("data-group")+"-article";E()(".show-api-group").addClass("hide"),E()(U).removeClass("hide"),E()(".show-api-article").addClass("hide"),E()(q).removeClass("hide")}),E()(".show-api").click(function(){const U=this.getAttribute("href").substring(1),q=document.getElementById("version").textContent.trim(),tt=`.${this.dataset.name}-article`,at=`[id="${U}-${q}"]`,ht=`.${this.dataset.group}-group`;E()(".show-api-group").addClass("hide"),E()(ht).removeClass("hide"),E()(".show-api-article").addClass("hide");let gt=E()(tt);E()(at).length&&(gt=E()(at).parent()),gt.removeClass("hide"),U.match(/_(header|footer)/)&&document.getElementById(U).classList.remove("hide")})),ut.template.aloneDisplay||E()("body").scrollspy("refresh"),ut.template.aloneDisplay){const U=window.location.hash;if(U!=null&&U.length!==0){const q=document.getElementById("version").textContent.trim(),tt=document.querySelector(`li .${U.slice(1)}-init`),at=document.querySelector(`li[data-version="${q}"] .show-api.${U.slice(1)}-init`);let ht=tt;at&&(ht=at),ht.click()}}}function Bn(Z){typeof Z=="undefined"?Z=E()("#version strong").html():E()("#version strong").html(Z),E()("article").addClass("hide"),E()("#sidenav li:not(.nav-fixed)").addClass("hide");const U={};document.querySelectorAll("article[data-version]").forEach(q=>{const tt=q.dataset.group,at=q.dataset.name,ht=q.dataset.version,gt=tt+at;!U[gt]&&r().lte(ht,Z)&&(U[gt]=!0,document.querySelector(`article[data-group="${tt}"][data-name="${at}"][data-version="${ht}"]`).classList.remove("hide"),document.querySelector(`#sidenav li[data-group="${tt}"][data-name="${at}"][data-version="${ht}"]`).classList.remove("hide"),document.querySelector(`#sidenav li.nav-header[data-group="${tt}"]`).classList.remove("hide"))}),E()("article[data-version]").each(function(q){const tt=E()(this).data("group");E()("section#api-"+tt).removeClass("hide"),E()("section#api-"+tt+" article:visible").length===0?E()("section#api-"+tt).addClass("hide"):E()("section#api-"+tt).removeClass("hide")})}if(Bn(),E()("#versions li.version a").on("click",function(Z){Z.preventDefault(),Bn(E()(this).html())}),E()("#compareAllWithPredecessor").on("click",$n),E()("article .versions li.version a").on("click",fn),E().urlParam=function(Z){const U=new RegExp("[\\?&]"+Z+"=([^&#]*)").exec(window.location.href);return U&&U[1]?U[1]:null},E().urlParam("compare")&&E()("#compareAllWithPredecessor").trigger("click"),window.location.hash){const Z=decodeURI(window.location.hash);E()(Z).length>0&&E()("html,body").animate({scrollTop:parseInt(E()(Z).offset().top)},0)}E()("#scrollingNav .sidenav-search input.search").focus(),E()('[data-action="filter-search"]').on("keyup",Z=>{const U=Z.currentTarget.value.toLowerCase();E()(".sidenav").find("a.nav-list-item").each((q,tt)=>{E()(tt).show(),tt.innerText.toLowerCase().includes(U)||E()(tt).hide()})}),E()("span.search-reset").on("click",function(){E()("#scrollingNav .sidenav-search input.search").val("").focus(),E()(".sidenav").find("a.nav-list-item").show()});function fn(Z){Z.preventDefault();const U=E()(this).parents("article"),q=E()(this).html(),tt=U.find(".version"),at=tt.find("strong").html();tt.find("strong").html(q);const ht=U.data("group"),gt=U.data("name"),wt=U.data("version"),Dt=U.data("compare-version");if(Dt!==q&&!(!Dt&&wt===q)){if(Dt&&Me[ht][gt][0]===q||wt===q)Xn(ht,gt,wt);else{let Lt={},Yt={};E().each(Gt[ht][gt],function(se,Ze){Ze.version===wt&&(Lt=Ze),Ze.version===q&&(Yt=Ze)});const Et={article:Lt,compare:Yt,versions:Me[ht][gt]};Et.article.id=Et.article.group+"-"+Et.article.name+"-"+Et.article.version,Et.article.id=Et.article.id.replace(/\./g,"_"),Et.compare.id=Et.compare.group+"-"+Et.compare.name+"-"+Et.compare.version,Et.compare.id=Et.compare.id.replace(/\./g,"_");let Ot=Lt;Ot.parameter&&Ot.parameter.fields&&(Et._hasTypeInParameterFields=me(Ot.parameter.fields)),Ot.error&&Ot.error.fields&&(Et._hasTypeInErrorFields=me(Ot.error.fields)),Ot.success&&Ot.success.fields&&(Et._hasTypeInSuccessFields=me(Ot.success.fields)),Ot.info&&Ot.info.fields&&(Et._hasTypeInInfoFields=me(Ot.info.fields)),Ot=Yt,Et._hasTypeInParameterFields!==!0&&Ot.parameter&&Ot.parameter.fields&&(Et._hasTypeInParameterFields=me(Ot.parameter.fields)),Et._hasTypeInErrorFields!==!0&&Ot.error&&Ot.error.fields&&(Et._hasTypeInErrorFields=me(Ot.error.fields)),Et._hasTypeInSuccessFields!==!0&&Ot.success&&Ot.success.fields&&(Et._hasTypeInSuccessFields=me(Ot.success.fields)),Et._hasTypeInInfoFields!==!0&&Ot.info&&Ot.info.fields&&(Et._hasTypeInInfoFields=me(Ot.info.fields));const Ee=mt(Et);U.after(Ee),U.next().find(".versions li.version a").on("click",fn),E()("#sidenav li[data-group='"+ht+"'][data-name='"+gt+"'][data-version='"+at+"']").addClass("has-modifications"),U.remove()}v().highlightAll()}}function $n(Z){Z.preventDefault(),E()("article:visible .versions").each(function(){const q=E()(this).parents("article").data("version");let tt=null;E()(this).find("li.version a").each(function(){E()(this).html() {Object.keys(Z).forEach(at=>{Z[at].replace(/_/g," ")===tt&&q.push(at)})}),Object.keys(Z).forEach(tt=>{q.indexOf(tt)===-1&&q.push(tt)}),q}Cn()}})()})();