try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="10506f56-b623-4527-a29c-16e620e073da",e._sentryDebugIdIdentifier="sentry-dbid-10506f56-b623-4527-a29c-16e620e073da")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"0.12.1"};!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.swh=n():(e.swh=e.swh||{},e.swh.badges=n())}(self,(function(){return function(){"use strict";var e={d:function(n,o){for(var t in o)e.o(o,t)&&!e.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:o[t]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};function o(e,n){var o,t,d=n;if("origin"===e)o=Urls.swh_badge(e,n),t=Urls.browse_origin()+"?origin_url="+n;else{var i=n.indexOf(";");-1!==i?(d=n.slice(0,i),o=Urls.swh_badge_swhid(d),$(".swhid").each((function(e,n){n.id===d&&(t=n.pathname)}))):(o=Urls.swh_badge_swhid(n),t=Urls.browse_swhid(n))}var r=""+window.location.origin+o,l=""+window.location.origin+t,a='\n  <a href="'+l+'">\n    <img class="swh-badge" src="'+r+'" alt="Archived | '+n+'"/>\n  </a>\n  <div>\n    <label>HTML</label>\n    <pre><code class="swh-badge-html html">&lt;a href="'+l+'"&gt;\n    &lt;img src="'+r+'" alt="Archived | '+d+'"/&gt;\n&lt;/a&gt;</code></pre>\n  </div>\n  <div>\n    <label>Markdown</label>\n    <pre><code class="swh-badge-md markdown">[![SWH]('+r+")]("+l+')</code></pre>\n  </div>\n  <div>\n    <label>reStructuredText</label>\n    <pre class="swh-badge-rst">.. image:: '+r+"\n    :target: "+l+"</pre>\n  </div>";swh.webapp.showModalHtml("Software Heritage badge integration",a),swh.webapp.highlightCode(!1,".swh-badge-html"),swh.webapp.highlightCode(!1,".swh-badge-md")}return e.r(n),e.d(n,{showBadgeInfoModal:function(){return o}}),n}()}));
//# sourceMappingURL=badges.446092467fafb8687b6b.js.map