swh.web 0.14.2__py3-none-any.whl → 0.15.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- swh/web/alter/forms.py +16 -16
- swh/web/alter/templates/admin_alteration.html +5 -5
- swh/web/alter/templates/alteration_details.html +2 -2
- swh/web/alter/templates/assistant_category.html +21 -19
- swh/web/alter/templates/assistant_email.html +3 -4
- swh/web/alter/templates/assistant_origins.html +1 -2
- swh/web/alter/templates/assistant_reasons.html +1 -2
- swh/web/alter/templates/assistant_summary.html +3 -4
- swh/web/alter/templates/content_policies.html +8 -15
- swh/web/alter/templates/includes/swh_legal.html +1 -1
- swh/web/alter/tests/test_views.py +2 -2
- swh/web/alter/urls.py +1 -1
- swh/web/alter/views.py +2 -2
- swh/web/browse/assets/browse/browse.css +10 -0
- swh/web/browse/assets/browse/sidetabs.js +22 -2
- swh/web/browse/templates/includes/sidetabs.html +20 -16
- swh/web/browse/templates/includes/snapshot-context.html +3 -1
- swh/web/save_code_now/templates/includes/take-new-snapshot.html +1 -1
- swh/web/static/css/browse.0a250d3b07ce628588a5.css +2 -0
- swh/web/static/css/browse.0a250d3b07ce628588a5.css.map +1 -0
- swh/web/static/js/add_forge_now.f8fa8235350a7875b4b2.js.map +1 -1
- swh/web/static/js/archive_coverage.71f6961fbdc0d76c313b.js +3 -0
- swh/web/static/js/{archive_coverage.b37e2158e800bc69180b.js.LICENSE.txt → archive_coverage.71f6961fbdc0d76c313b.js.LICENSE.txt} +1 -1
- swh/web/static/js/archive_coverage.71f6961fbdc0d76c313b.js.map +1 -0
- swh/web/static/js/auth.971392ebe3f22c222189.js.map +1 -1
- swh/web/static/js/{browse.b150f8992236375f2e9b.js → browse.d5014e5cae44a2cd3e6e.js} +3 -3
- swh/web/static/js/browse.d5014e5cae44a2cd3e6e.js.map +1 -0
- swh/web/static/js/deposit.060ba94288f399dfe89e.js.map +1 -1
- swh/web/static/js/guided_tour.3a7a41181c43663f866b.js.map +1 -1
- swh/web/static/js/highlightjs.19cb5fa8879fdc8357d7.js.map +1 -1
- swh/web/static/js/mailmap.5dc62b52b8eb18e2e8b0.js.map +1 -1
- swh/web/static/js/origin_visits.679992a2a951f67a08bc.js.map +1 -1
- swh/web/static/js/pdf.worker.min.js +1 -1
- swh/web/static/js/pdfjs.97ecbde9d93314dba75a.js +3 -0
- swh/web/static/js/pdfjs.97ecbde9d93314dba75a.js.map +1 -0
- swh/web/static/js/revision.c5f4750ef7caee355fd9.js.map +1 -1
- swh/web/static/js/save_code_now.3db9c75765eb44fe774a.js.map +1 -1
- swh/web/static/js/showdown.8be01722fe56f5a7c2db.js.map +1 -1
- swh/web/static/js/vault.8c6e8e445d128eb30488.js.map +1 -1
- swh/web/static/js/{vendors.076b42bbe0326fc632ae.js → vendors.532425b092b95d43a1d6.js} +3 -3
- swh/web/static/js/vendors.532425b092b95d43a1d6.js.map +1 -0
- swh/web/static/js/webapp.5427bd8b32cec7de0951.js +3 -0
- swh/web/static/js/{webapp.ec7025df24c9f358f1cc.js.LICENSE.txt → webapp.5427bd8b32cec7de0951.js.LICENSE.txt} +1 -1
- swh/web/static/js/webapp.5427bd8b32cec7de0951.js.map +1 -0
- swh/web/static/jssources/@iframe-resizer/child/index.umd.js +2 -2
- swh/web/static/jssources/@iframe-resizer/parent/index.umd.js +2 -2
- swh/web/static/jssources/core-js/internals/array-to-reversed.js +2 -2
- swh/web/static/jssources/core-js/internals/array-with.js +2 -2
- swh/web/static/jssources/core-js/internals/async-iterator-iteration.js +6 -1
- swh/web/static/jssources/core-js/internals/flatten-into-array.js +1 -1
- swh/web/static/jssources/core-js/internals/get-iterator-direct.js +1 -1
- swh/web/static/jssources/core-js/internals/install-error-cause.js +1 -1
- swh/web/static/jssources/core-js/internals/iterator-create-proxy.js +1 -1
- swh/web/static/jssources/core-js/internals/set-difference.js +1 -1
- swh/web/static/jssources/core-js/internals/set-intersection.js +1 -1
- swh/web/static/jssources/core-js/internals/set-is-disjoint-from.js +1 -1
- swh/web/static/jssources/core-js/internals/set-is-subset-of.js +1 -1
- swh/web/static/jssources/core-js/internals/set-is-superset-of.js +1 -1
- swh/web/static/jssources/core-js/internals/set-method-get-keys-before-cloning-detection.js +1 -1
- swh/web/static/jssources/core-js/internals/set-symmetric-difference.js +1 -1
- swh/web/static/jssources/core-js/internals/set-union.js +1 -1
- swh/web/static/jssources/core-js/internals/shared-store.js +2 -2
- swh/web/static/jssources/core-js/internals/string-pad.js +0 -1
- swh/web/static/jssources/core-js/modules/es.array-buffer.transfer-to-fixed-length.js +1 -1
- swh/web/static/jssources/core-js/modules/es.array-buffer.transfer.js +1 -1
- swh/web/static/jssources/core-js/modules/es.error.is-error.js +1 -1
- swh/web/static/jssources/core-js/modules/es.symbol.constructor.js +1 -1
- swh/web/static/jssources/jslicenses.json +1 -1
- swh/web/static/jssources/pdfjs-dist/build/pdf.worker.mjs +299 -13
- swh/web/static/jssources/pdfjs-dist/legacy/build/pdf.mjs +492 -113
- swh/web/static/jssources/swh/web/browse/assets/browse/sidetabs.js +22 -2
- swh/web/static/jssources/swh/web/webapp/assets/webapp/webapp-utils.js +10 -0
- swh/web/static/webpack-stats.json +73 -73
- swh/web/utils/archive.py +12 -0
- swh/web/utils/tests/test_archive.py +32 -15
- swh/web/vault/templates/includes/vault-common.html +1 -1
- swh/web/vault/templates/includes/vault-create-tasks.html +5 -5
- swh/web/webapp/assets/webapp/webapp-utils.js +10 -0
- swh/web/webapp/templates/includes/footer.html +1 -1
- swh/web/webapp/templates/includes/global-modals.html +3 -3
- {swh_web-0.14.2.dist-info → swh_web-0.15.0.dist-info}/METADATA +1 -1
- {swh_web-0.14.2.dist-info → swh_web-0.15.0.dist-info}/RECORD +89 -89
- swh/web/static/css/browse.5775e0a313f4ccb8aef5.css +0 -2
- swh/web/static/css/browse.5775e0a313f4ccb8aef5.css.map +0 -1
- swh/web/static/js/archive_coverage.b37e2158e800bc69180b.js +0 -3
- swh/web/static/js/archive_coverage.b37e2158e800bc69180b.js.map +0 -1
- swh/web/static/js/browse.b150f8992236375f2e9b.js.map +0 -1
- swh/web/static/js/pdfjs.ca88359f90430972e38c.js +0 -3
- swh/web/static/js/pdfjs.ca88359f90430972e38c.js.map +0 -1
- swh/web/static/js/vendors.076b42bbe0326fc632ae.js.map +0 -1
- swh/web/static/js/webapp.ec7025df24c9f358f1cc.js +0 -3
- swh/web/static/js/webapp.ec7025df24c9f358f1cc.js.map +0 -1
- /swh/web/static/js/{browse.b150f8992236375f2e9b.js.LICENSE.txt → browse.d5014e5cae44a2cd3e6e.js.LICENSE.txt} +0 -0
- /swh/web/static/js/{pdfjs.ca88359f90430972e38c.js.LICENSE.txt → pdfjs.97ecbde9d93314dba75a.js.LICENSE.txt} +0 -0
- /swh/web/static/js/{vendors.076b42bbe0326fc632ae.js.LICENSE.txt → vendors.532425b092b95d43a1d6.js.LICENSE.txt} +0 -0
- {swh_web-0.14.2.dist-info → swh_web-0.15.0.dist-info}/WHEEL +0 -0
- {swh_web-0.14.2.dist-info → swh_web-0.15.0.dist-info}/licenses/AUTHORS +0 -0
- {swh_web-0.14.2.dist-info → swh_web-0.15.0.dist-info}/licenses/LICENSE +0 -0
- {swh_web-0.14.2.dist-info → swh_web-0.15.0.dist-info}/top_level.txt +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! For license information please see browse.
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.swh=t():(e.swh=e.swh||{},e.swh.browse=t())}(self,(function(){return function(){var e={887:function(e,t,n){var r=n(16993),i=n(11791);e.exports=function(e,t,n,o,a){return new i(r().w(e,t,n,o),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},3530:function(){!function(e){var t={pattern:/\\(?:\ |[^a-z@\s]|[a-z@]+\*?)/i},n={equation:{pattern:/(\$\$?)[^\$]+\1/m,alias:"function",inside:t},keyword:t};e.languages.bib={comment:/%.*/,special:{pattern:/(^\s*)@(?:preamble|string|comment(?=\s*[({]))/im,lookbehind:!0,alias:"important"},"class-name":{pattern:/(^\s*)@[a-z]+(?=\s*{)/im,lookbehind:!0},key:{pattern:/([,{]\s*)[^,={}'"\s]+(?=\s*[,}])/im,lookbehind:!0,alias:"regex"},property:{pattern:/([,{(]\s*)[^,={}'"\s]+(?=\s*=)/im,lookbehind:!0},string:{pattern:/([=#{}]\s*)(?:\d+|("|')(?:(?!\2)[^\\]|\\.)*\2|{(?:(?:{(?:(?:{(?:(?:{(?:[^{}])*})|(?:[^{}]))*})|(?:[^{}]))*})|(?:[^{}]))*})/im,lookbehind:!0,greedy:!0,inside:n},constant:{pattern:/([=#]\s*)[^,={}'"\s]+(?=\s*[#,}])/im,lookbehind:!0},symbol:/#/,punctuation:/[=,{}()]/},e.languages.bibtex=e.languages.bib}(Prism)},4373:function(e){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},4633:function(e,t,n){var r=n(25172),i=n(16993),o=n(55869),a=n(887),s=n(11791),c=n(4373),u=n(30579);function l(){"use strict";var t=i(),n=t.m(l),d=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function f(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function h(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,u(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=l=function(){return{wrap:function(e,n,r,i){return t.w(h(e),n,r,i&&i.reverse())},isGeneratorFunction:f,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,n,r,i){return(f(t)?a:o)(h(e),t,n,r,i)},keys:c,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports},8545:function(e,t,n){"use strict";n.d(t,{Th:function(){return l},Tv:function(){return a},XE:function(){return s},lY:function(){return c}});var r=n(10467),i=n(54756),o=n.n(i);n(18987);function a(e){if(!e.ok)throw e;return e}function s(e,t){var n="";try{var r=JSON.parse(e.reason);Object.entries(r).forEach((function(e,t){var r=e[0],i=e[1][0];n+="\n"+r+": "+i}))}catch(t){n=e.reason}return n?"Error: "+n:t}function c(e){return"/static/"+e}function u(e,t){void 0===t&&(t=[]);var n=null,r=!0;try{n=new URL(e)}catch(e){r=!1}return r&&t.length&&(r=void 0!==t.find((function(e){return e===n.protocol}))),r?n:null}function l(e,t){return d.apply(this,arguments)}function d(){return(d=(0,r.A)(o().mark((function e(t,n){var r,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u(t)){e.next=1;break}return e.abrupt("return",!1);case 1:return r=Urls.api_1_origin_visit_latest(t)+"?require_snapshot=true",n&&"any"!==n&&(r+="&visit_type="+n),e.next=2,fetch(r);case 2:return i=e.sent,e.abrupt("return",i.ok);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},10467:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)}))}}n.d(t,{A:function(){return i}})},11791:function(e,t,n){var r=n(25172),i=n(75546);e.exports=function e(t,n){function o(e,i,a,s){try{var c=t[e](i),u=c.value;return u instanceof r?n.resolve(u.v).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):n.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,s)}))}catch(e){s(e)}}var a;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),i(this,"_invoke",(function(e,t,r){function i(){return new n((function(t,n){o(e,r,t,n)}))}return a=a?a.then(i,i):i()}),!0)},e.exports.__esModule=!0,e.exports.default=e.exports},16993:function(e,t,n){var r=n(75546);function i(){var t,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function c(e,i,o,a){var s=i&&i.prototype instanceof l?i:l,c=Object.create(s.prototype);return r(c,"_invoke",function(e,r,i){var o,a,s,c=0,l=i||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,a=0,s=t,f.n=n,u}};function p(e,r){for(a=e,s=r,n=0;!d&&c&&!i&&n<l.length;n++){var i,o=l[n],p=f.p,h=o[2];e>3?(i=h===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=p&&((i=e<2&&p<o[1])?(a=0,f.v=r,f.n=o[1]):p<h&&(i=e<3||o[0]>r||r>h)&&(o[4]=e,o[5]=r,f.n=h,a=0))}if(i||e>1)return u;throw d=!0,r}return function(i,l,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,h),a=l,s=h;(n=a<2?t:s)||!d;){o||(a?a<3?(a>1&&(f.n=-1),p(a,s)):f.n=s:f.v=s);try{if(c=2,o){if(a||(i="next"),n=o[i]){if(!(n=n.call(o,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=o.return)&&n.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((n=(d=f.n<0)?s:e.call(r,f))!==u)break}catch(e){o=t,a=1,s=e}finally{c=1}}return{value:n,done:d}}}(e,o,a),!0),c}var u={};function l(){}function d(){}function f(){}n=Object.getPrototypeOf;var p=[][a]?n(n([][a]())):(r(n={},a,(function(){return this})),n),h=f.prototype=l.prototype=Object.create(p);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,r(e,s,"GeneratorFunction")),e.prototype=Object.create(h),e}return d.prototype=f,r(h,"constructor",f),r(f,"constructor",d),d.displayName="GeneratorFunction",r(f,s,"GeneratorFunction"),r(h),r(h,s,"Generator"),r(h,a,(function(){return this})),r(h,"toString",(function(){return"[object Generator]"})),(e.exports=i=function(){return{w:c,m:g}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},18987:function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}(function e(t,n){function i(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=r({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+a}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){i(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})})({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},23717:function(e,t,n){"use strict";n.d(t,{DK:function(){return i}});var r=n(8545),i=768;(0,r.lY)("img/swh-spinner.gif")},25172:function(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},28848:function(e,t,n){var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,o;switch(n=n||{},i.util.type(t)){case"Object":if(o=i.util.objId(t),n[o])return n[o];for(var a in r={},n[o]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return o=i.util.objId(t),n[o]?n[o]:(r=[],n[o]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var o=(r=r||i.languages)[e],a={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=o[s])}var u=r[e];return r[e]=a,i.languages.DFS(i.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,o){o=o||{};var a=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],u=i.util.type(c);"Object"!==u||o[a(c)]?"Array"!==u||o[a(c)]||(o[a(c)]=!0,e(c,n,s,o)):(o[a(c)]=!0,e(c,n,null,o))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var o,a=0;o=r.elements[a++];)i.highlightElement(o,!0===t,r.callback)},highlightElement:function(t,n,r){var o=i.util.getLanguage(t),a=i.languages[o];i.util.setLanguage(t,o);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&i.util.setLanguage(s,o);var c={element:t,language:o,grammar:a,code:t.textContent};function u(e){c.highlightedCode=e,i.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,i.hooks.run("after-highlight",c),i.hooks.run("complete",c),r&&r.call(c.element)}if(i.hooks.run("before-sanity-check",c),(s=c.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!c.code)return i.hooks.run("complete",c),void(r&&r.call(c.element));if(i.hooks.run("before-highlight",c),c.grammar)if(n&&e.Worker){var l=new Worker(i.filename);l.onmessage=function(e){u(e.data)},l.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else u(i.highlight(c.code,c.grammar,c.language));else u(i.util.encode(c.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),o.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return u(i,i.head,e),s(e,i,t,i.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function s(e,t,n,r,c,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(d&&d.cause==f+","+h)return;var g=p[h],v=g.inside,w=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var y=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,y+"g")}for(var x=g.pattern||g,$=r.next,k=c;$!==t.tail&&!(d&&k>=d.reach);k+=$.value.length,$=$.next){var _=$.value;if(t.length>e.length)return;if(!(_ instanceof o)){var S,F=1;if(m){if(!(S=a(x,k,e,w))||S.index>=e.length)break;var A=S.index,C=S.index+S[0].length,O=k;for(O+=$.value.length;A>=O;)O+=($=$.next).value.length;if(k=O-=$.value.length,$.value instanceof o)continue;for(var T=$;T!==t.tail&&(O<C||"string"==typeof T.value);T=T.next)F++,O+=T.value.length;F--,_=e.slice(k,O),S.index-=k}else if(!(S=a(x,0,_,w)))continue;A=S.index;var E=S[0],j=_.slice(0,A),P=_.slice(A+E.length),L=k+_.length;d&&L>d.reach&&(d.reach=L);var I=$.prev;if(j&&(I=u(t,I,j),k+=j.length),l(t,I,F),$=u(t,I,new o(f,v?i.tokenize(E,v):E,b,E)),P&&u(t,$,P),F>1){var M={cause:f+","+h,reach:L};s(e,t,n,$.prev,k,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function l(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(o.classes,a):o.classes.push(a)),i.hooks.run("wrap",o);var s="";for(var c in o.attributes)s+=" "+c+'="'+(o.attributes[c]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,a=n.immediateClose;e.postMessage(i.highlight(o,i.languages[r],r)),a&&e.close()}),!1),i):i;var d=i.util.currentScript();function f(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var p=document.readyState;"loading"===p||"interactive"===p&&d&&d.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r),r.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};i["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},r.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(void 0!==r&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",i="loaded",o="pre[data-src]:not(["+t+'="'+i+'"]):not(['+t+'="'+n+'"])';r.hooks.add("before-highlightall",(function(e){e.selector+=", "+o})),r.hooks.add("before-sanity-check",(function(a){var s=a.element;if(s.matches(o)){a.code="",s.setAttribute(t,n);var c=s.appendChild(document.createElement("CODE"));c.textContent="Loading…";var u=s.getAttribute("data-src"),l=a.language;if("none"===l){var d=(/\.(\w+)$/.exec(u)||[,"none"])[1];l=e[d]||d}r.util.setLanguage(c,l),r.util.setLanguage(s,l);var f=r.plugins.autoloader;f&&f.loadLanguages(l),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(u,(function(e){s.setAttribute(t,i);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}(s.getAttribute("data-range"));if(n){var o=e.split(/\r\n?|\n/g),a=n[0],u=null==n[1]?o.length:n[1];a<0&&(a+=o.length),a=Math.max(0,Math.min(a-1,o.length)),u<0&&(u+=o.length),u=Math.max(0,Math.min(u,o.length)),e=o.slice(a,u).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(a+1))}c.textContent=e,r.highlightElement(c)}),(function(e){s.setAttribute(t,"failed"),c.textContent=e}))}})),r.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(o),i=0;t=n[i++];)r.highlightElement(t)}};var a=!1;r.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},30579:function(e,t,n){var r=n(73738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},31887:function(e,t,n){"use strict";function r(e,t){var n="\n <p>\n You can embed that "+e+' view in an external website\n through the use of an iframe. Use the following HTML code\n to do so.\n </p>\n <pre><code class="swh-iframe-html html"><iframe style="width: 100%; height: 500px; border: 1px solid rgba(0, 0, 0, 0.125);"\n src="'+window.location.origin+Urls.browse_swhid_iframe(t.replaceAll("\n",""))+'">\n</iframe></code></pre>\n <iframe style="width: 100%; height: 500px; border: 1px solid rgba(0, 0, 0, 0.125);"\n src="'+window.location.origin+Urls.browse_swhid_iframe(t.replaceAll("\n",""))+'">\n </iframe>';swh.webapp.showModalHtml("Software Heritage "+e+" iframe",n,"1000px"),swh.webapp.highlightCode(!1,".swh-iframe-html")}n.d(t,{T:function(){return r}})},35769:function(e,t,n){"use strict";n.d(t,{X:function(){return i},i:function(){return o}});var r=n(23717);function i(){window.location.pathname===Urls.browse_origin_visits()?$("#swh-browse-origin-visits-nav-link").addClass("active"):window.location.pathname===Urls.browse_origin_branches()||window.location.pathname===Urls.browse_snapshot_branches()||window.location.pathname.endsWith("branches/")?$("#swh-browse-snapshot-branches-nav-link").addClass("active"):window.location.pathname===Urls.browse_origin_releases()||window.location.pathname===Urls.browse_snapshot_releases()||window.location.pathname.endsWith("releases/")?$("#swh-browse-snapshot-releases-nav-link").addClass("active"):$("#swh-browse-code-nav-link").addClass("active")}function o(e){var t=$(e).val(),n=new URLSearchParams(window.location.search);n.set("visit_type",t),window.location.search=n.toString()}$(document).ready((function(){$(".dropdown-submenu a.dropdown-item").on("click",(function(e){$(e.target).next("div").toggle(),"none"!==$(e.target).next("div").css("display")?$(e.target).focus():$(e.target).blur(),e.stopPropagation(),e.preventDefault()})),$(".swh-popover-toggler").popover({boundary:"viewport",container:"body",html:!0,placement:function(){return $(window).width()<r.DK?"top":"right"},template:'<div class="popover" role="tooltip">\n <div class="arrow"></div>\n <h3 class="popover-header"></h3>\n <div class="popover-body swh-popover"></div>\n </div>',content:function(){var e=$(this).attr("data-popover-content");return $(e).children(".popover-body").remove().html()},title:function(){var e=$(this).attr("data-popover-content");return $(e).children(".popover-heading").html()},offset:"50vh",sanitize:!1}),$(".swh-vault-menu a.dropdown-item").on("click",(function(e){$(".swh-popover-toggler").popover("hide")})),$(".swh-popover-toggler").on("show.bs.popover",(function(e){$(".swh-popover-toggler:not(#"+e.currentTarget.id+")").popover("hide"),$(".swh-vault-menu .dropdown-menu").hide()})),$(".swh-actions-dropdown").on("hide.bs.dropdown",(function(){$(".swh-vault-menu .dropdown-menu").hide(),$(".swh-popover-toggler").popover("hide")})),$("#swh-branch-search-form").submit((function(e){var t=new URLSearchParams(window.location.search);t.set("name_include",$("#swh-branch-search-string").val().trim()),window.location.search=t.toString(),e.preventDefault()})),$("body").on("click",(function(e){$(e.target).parents(".swh-popover").length&&e.stopPropagation()}))}))},54756:function(e,t,n){var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},55869:function(e,t,n){var r=n(887);e.exports=function(e,t,n,i,o){var a=r(e,t,n,i,o);return a.next().then((function(e){return e.done?e.value:a.next()}))},e.exports.__esModule=!0,e.exports.default=e.exports},57576:function(e){var t;t=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return $}});var r=n(279),i=n.n(r),o=n(370),a=n.n(o),s=n(817),c=n.n(s);function u(e){try{return document.execCommand(e)}catch(e){return!1}}var l=function(e){var t=c()(e);return u("cut"),t},d=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var r=c()(n);return u("copy"),n.remove(),r},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=d(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=d(e.value,t):(n=c()(e),u("copy")),n};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,o=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==p(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?f(o,{container:r}):i?"cut"===n?l(i):f(i,{container:r}):void 0};function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function y(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(o,e);var t,n,r,i=m(o);function o(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(n=i.call(this)).resolveOptions(t),n.listenClick(e),n}return t=o,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===g(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=a()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=h({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return y("action",e)}},{key:"defaultTarget",value:function(e){var t=y("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return y("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return f(e,t)}},{key:"cut",value:function(e){return l(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&v(t.prototype,n),r&&v(t,r),o}(i()),$=x},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function i(e,t,n,r,i){var a=o.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function o(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,o)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),i=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=t()},64830:function(e,t,n){"use strict";function r(e,t){function n(){$(".swh-releases-switch").removeClass("active"),$(".swh-branches-switch").addClass("active"),$("#swh-tab-releases").removeClass("active"),$("#swh-tab-branches").addClass("active")}function r(){$(".swh-branches-switch").removeClass("active"),$(".swh-releases-switch").addClass("active"),$("#swh-tab-branches").removeClass("active"),$("#swh-tab-releases").addClass("active")}$(document).ready((function(){$(".dropdown-menu a.swh-branches-switch").click((function(e){n(),e.stopPropagation()})),$(".dropdown-menu a.swh-releases-switch").click((function(e){r(),e.stopPropagation()}));var i=!1;$("#swh-branches-releases-dd").on("show.bs.dropdown",(function(){if(!i){var e=$(".swh-branches-releases").width();$(".swh-branches-releases").width(e+25),i=!0}})),e&&(t?n():r())}))}n.d(t,{N:function(){return r}})},73738:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},74264:function(e,t,n){"use strict";n.d(t,{Lz:function(){return b},_q:function(){return x},fV:function(){return d},iF:function(){return p},u$:function(){return w}});var r=n(10467),i=n(54756),o=n.n(i),a=n(57576),s=n.n(a),c=n(8545),u=(n(93885),n(28848)),l=n.n(u);n(3530);function d(e){e.preventDefault(),$(e.target).tab("show")}function f(e){var t=$(e).closest(".swhid-ui").find(".swhid"),n=$(e).data("swhid-with-context"),r=$(e).data("swhid-with-context-url"),i=t.text();if($(e).prop("checked"))t.attr("href",r),i=n.replace(/;/g,";\n");else{var o=i.indexOf(";");-1!==o&&(i=i.slice(0,o)),t.attr("href","/"+i)}t.text(i),g()}function p(e){e.stopPropagation(),f(e.target)}function h(){for(var e=[],t=";lines=",n=new RegExp(/L(\d+)/g),r=n.exec(window.location.hash);r;)e.push(parseInt(r[1])),r=n.exec(window.location.hash);return e.length>0&&(t+=e[0]),e.length>1&&(t+="-"+e[1]),e.length>0?t:null}function g(){var e=$("#swhid-tab-content").find(".swhid"),t=e.text().replace(/;\n/g,";"),n=h(),r=$("#swhid-context-option-content");if(r.prop("checked")){var i=r.data("swhid-with-context-url");t=t.replace(/;lines=\d+-*\d*/g,""),n&&(t+=n,i+=n),e.text(t.replace(/;/g,";\n")),e.attr("href",i)}}function v(){$(".swh-side-tab").css("width",Math.min(window.innerWidth-45,1e3)+"px");var e=window.innerHeight>=700?250:35;$(".swh-side-tab").css("top",e+"px"),$("#swh-citations .handle").css("top","105px");var t=$("#swh-identifiers-content").css("display"),n=$("#swh-citations-content").css("display");function r(t){e+$(t).height()>window.innerHeight&&$(t).css("height",window.innerHeight-e-5+"px")}$(".swh-side-tab").css("height","auto"),$(".swh-tab-side-content").css("display","block"),r("#swh-identifiers"),r("#swh-citations"),$("#swh-identifiers .swh-badges-iframe").css("display",window.innerHeight>=700?"flex":"none"),$("#swh-identifiers .swh-badges-iframe").css("display",window.innerWidth>=700?"flex":"none"),$("#swh-identifiers-content").css("display",t),$("#swh-citations-content").css("display",n)}function w(e){return m.apply(this,arguments)}function m(){return(m=(0,r.A)(o().mark((function e(t){var n,r,i,a,s,u,d,f,p,g;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=swh.webapp.getSwhIdsContext(),t&&n.hasOwnProperty(t)){e.next=1;break}return e.abrupt("return");case 1:return r=n[t].swhid,n[t].swhid_with_context_url&&(r=n[t].swhid_with_context_url.slice(1)),"content"===t&&(i=h())&&(r+=i),a=$("#citation-format-option-"+t).val().toLowerCase(),s=Urls.api_1_raw_intrinsic_citation_swhid_get()+"?citation_format="+a+"&target_swhid="+r,e.prev=2,e.next=3,fetch(s);case 3:return u=e.sent,(0,c.Tv)(u),$("#swh-citations").removeClass("d-none"),e.next=4,u.json();case 4:d=e.sent,f=l().highlight(d.content,l().languages.bibtex,"bibtex"),$("#citation-tab-"+t+" .swh-citation").html(f),$("#citation-tab-"+t+" .btn-citation-copy").attr("disabled",!1),$("#citation-source-"+t).html('<a target="_blank" rel="noopener noreferrer" href="'+Urls.browse_swhid(d.source_swhid)+'">Browse citation metadata</a>'),e.next=7;break;case 5:return e.prev=5,g=e.catch(2),e.next=6,g.json();case 6:p=e.sent,$("#citation-tab-"+t+" .swh-citation").text("Software citation could not be generated due to the following reason:\n\n"+p.reason),$("#citation-tab-"+t+" .btn-citation-copy").attr("disabled",!0),400===g.status?($("#citation-source-"+t).html('<a target="_blank" rel="noopener noreferrer" href="'+Urls.browse_swhid(p.source_swhid)+'">Browse citation metadata</a>'),$("#swh-citations").removeClass("d-none")):$("#citation-source-"+t).html("");case 7:case"end":return e.stop()}}),e,null,[[2,5]])})))).apply(this,arguments)}function b(e){return y.apply(this,arguments)}function y(){return(y=(0,r.A)(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w($(t.target).text().trim());case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(){return k.apply(this,arguments)}function k(){return k=(0,r.A)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:$(document).ready((function(){var e=function(e,t){var n=e.innerHTML;n!==t&&(e.innerHTML=t,setTimeout((function(){e.innerHTML=n}),1e3))};function t(){return $(".introjs-overlay").length>0}function n(e,t){$(e+"-content").css("display",t?"block":"none"),$(e).css("z-index",t?"40000":"30000"),$(e+" .handle").css("padding-bottom",t?"0.4em":"0.1em")}new(s())(".btn-swhid-copy",{text:function(e){return $(e).closest(".swhid-ui").find(".swhid").text().replace(/;\n/g,";")}}).on("success",(function(t){e(t.trigger,"Copied!")})),new(s())(".btn-swhid-url-copy",{text:function(e){var t=$(e).closest(".swhid-ui").find(".swhid").attr("href");return window.location.origin+t}}).on("success",(function(t){e(t.trigger,"Copied!")}));var i,a={tabLocation:"right",action:null,clickScreenToCloseFilters:[t,".ui-slideouttab-panel",".modal"],onBeforeOpen:function(){return $("#swh-identifiers").data("opening",!0),$("#swh-citations").data("opening")||$("#swh-citations").trigger("open"),n("#swh-identifiers",!0),n("#swh-citations",!1),!0},onOpen:function(){$("#swh-identifiers").data("opening",!1),$("#swhids-handle").attr("aria-expanded","true"),$("#swhids-handle").attr("aria-label","Collapse permalinks tab")},onBeforeClose:function(){return $("#swh-identifiers").data("closing",!0),$("#swh-citations").data("closing")||$("#swh-citations").trigger("close"),!0},onClose:function(){$("#swh-identifiers").data("closing",!1),$("#swhids-handle").attr("aria-expanded","false"),$("#swhids-handle").attr("aria-label","Expand permalinks tab"),$("#swhids-handle").css("padding-bottom","0.1em"),setTimeout((function(){$("#swh-identifiers-content").css("display","none")}),500)}};if($("#swh-identifiers").tabSlideOut(a),$("#swh-identifiers .handle").on("click",(function(e){e.preventDefault(),$("#swh-identifiers").tabSlideOut("isOpen")?"none"===$("#swh-identifiers-content").css("display")?(n("#swh-identifiers",!0),n("#swh-citations",!1)):$("#swh-identifiers").trigger("close"):$("#swh-identifiers").trigger("open")})),$(".swhid-context-option").each((function(e,t){f(t)})),JSON.parse($("#activate_citations_ui").text())||swh.webapp.isStaffUser()||swh.webapp.isAmbassadorUser()){new(s())(".btn-citation-copy",{text:function(e){return $(e).closest(".citation-ui").find(".swh-citation").text()}}).on("success",(function(t){e(t.trigger,"Copied!")}));var c={tabLocation:"right",action:null,clickScreenToCloseFilters:[t,".ui-slideouttab-panel",".modal"],onBeforeOpen:(i=(0,r.A)(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $("#swh-citations").data("opening",!0),$("#swh-identifiers").data("opening")||$("#swh-identifiers").trigger("open"),t=$("#swh-citations-content .nav-link.active").text().trim(),""===$("citation-tab-"+t+" pre").text().trim()&&w(t),n("#swh-citations",!0),n("#swh-identifiers",!1),e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)}),onOpen:function(){$("#swh-citations").data("opening",!1),$("#citations-handle").attr("aria-expanded","true"),$("#citations-handle").attr("aria-label","Collapse citations tab")},onBeforeClose:function(){return $("#swh-citations").data("closing",!0),$("#swh-identifiers").data("closing")||$("#swh-identifiers").trigger("close"),!0},onClose:function(){$("#swh-citations").data("closing",!1),$("#citations-handle").attr("aria-expanded","false"),$("#citations-handle").attr("aria-label","Expand citations tab"),$("#citations-handle").css("padding-bottom","0.1em"),setTimeout((function(){$("#swh-citations-content").css("display","none")}),500)}};$("#swh-citations").tabSlideOut(c),$("#swh-citations .handle").on("click",(function(e){e.preventDefault(),$("#swh-citations").tabSlideOut("isOpen")?"none"===$("#swh-citations-content").css("display")?(n("#swh-identifiers",!1),n("#swh-citations",!0)):$("#swh-citations").trigger("close"):$("#swh-citations").trigger("open")})),w(swh.webapp.getBrowsedSwhObjectMetadata().object_type)}v(),$(window).on("hashchange",(function(){g()})),$("body").click((function(){g()})),$(window).on("resize",(function(){v()}))}));case 1:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}},75546:function(e){function t(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}e.exports=t=function(e,n,r,i){if(n)a?a(e,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[n]=r;else{var o=function(n,r){t(e,n,(function(e){return this._invoke(n,r,e)}))};o("next",0),o("throw",1),o("return",2)}},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},93885:function(){!function(e){e.fn.tabSlideOut=function(t){function n(e){return parseInt(e.outerHeight()+1,10)+"px"}function r(){var t=e(window).height();return"top"!==s&&"bottom"!==s||(t=e(window).width()),t-parseInt(a.otherOffset)-parseInt(a.offset)}var i=this;function o(){return i.hasClass("ui-slideouttab-open")}if("string"==typeof t)switch(t){case"open":return this.trigger("open"),this;case"close":return this.trigger("close"),this;case"isOpen":return o();case"toggle":return this.trigger("toggle"),this;case"bounce":return this.trigger("bounce"),this;default:throw"Invalid tabSlideOut command"}else{var a=e.extend({tabLocation:"left",tabHandle:".handle",action:"click",hoverTimeout:5e3,offset:"200px",offsetReverse:!1,otherOffset:null,handleOffset:null,handleOffsetReverse:!1,bounceDistance:"50px",bounceTimes:4,bounceSpeed:300,tabImage:null,tabImageHeight:null,tabImageWidth:null,onLoadSlideOut:!1,clickScreenToClose:!0,clickScreenToCloseFilters:[".ui-slideouttab-panel"],onOpen:function(){},onClose:function(){},onSlide:function(){},onBeforeOpen:function(){return!0},onBeforeClose:function(){return!0},onBeforeSlide:function(){return!0}},t||{}),s=a.tabLocation,c=a.tabHandle=e(a.tabHandle,i);if(i.addClass("ui-slideouttab-panel").addClass("ui-slideouttab-"+s),a.offsetReverse&&i.addClass("ui-slideouttab-panel-reverse"),c.addClass("ui-slideouttab-handle"),a.handleOffsetReverse&&c.addClass("ui-slideouttab-handle-reverse"),a.toggleButton=e(a.toggleButton),null!==a.tabImage){var u=0,l=0;if(null!==a.tabImageHeight&&null!==a.tabImageWidth)u=a.tabImageHeight,l=a.tabImageWidth;else{var d=new Image;d.src=a.tabImage,u=d.naturalHeight,l=d.naturalWidth}c.addClass("ui-slideouttab-handle-image"),c.css({background:"url("+a.tabImage+") no-repeat",width:l,height:u})}"top"===s||"bottom"===s?(a.panelOffsetFrom=a.offsetReverse?"right":"left",a.handleOffsetFrom=a.handleOffsetReverse?"right":"left"):(a.panelOffsetFrom=a.offsetReverse?"bottom":"top",a.handleOffsetFrom=a.handleOffsetReverse?"bottom":"top"),null===a.handleOffset&&(a.handleOffset="-"+function(e,t){return parseInt(e.css("border-"+t+"-width"),10)}(i,a.handleOffsetFrom)+"px"),"top"===s||"bottom"===s?(i.css(a.panelOffsetFrom,a.offset),c.css(a.handleOffsetFrom,a.handleOffset),null!==a.otherOffset&&(i.css("width",r()+"px"),e(window).resize((function(){i.css("width",r()+"px")}))),"top"===s?c.css({bottom:"-"+n(c)}):c.css({top:"-"+n(c)})):(i.css(a.panelOffsetFrom,a.offset),c.css(a.handleOffsetFrom,a.handleOffset),null!==a.otherOffset&&(i.css("height",r()+"px"),e(window).resize((function(){i.css("height",r()+"px")}))),"left"===s?c.css({right:"0"}):c.css({left:"0"})),c.click((function(e){e.preventDefault()})),a.toggleButton.click((function(e){e.preventDefault()})),i.addClass("ui-slideouttab-ready");var f=function(){a.onBeforeSlide()&&a.onBeforeClose()&&(i.removeClass("ui-slideouttab-open").trigger("slideouttabclose"),a.onSlide(),a.onClose())},p=function(){a.onBeforeSlide()&&a.onBeforeOpen()&&(i.addClass("ui-slideouttab-open").trigger("slideouttabopen"),a.onSlide(),a.onOpen())},h=function(){o()?f():p()},g=[];g[s]="-="+a.bounceDistance;var v=[];v[s]="+="+a.bounceDistance;if(a.clickScreenToClose&&e(document).click((function(t){if(o()&&!i[0].contains(t.target)){for(var n=e(t.target),r=0;r<a.clickScreenToCloseFilters.length;r++){var s=a.clickScreenToCloseFilters[r];if("string"==typeof s){if(n.is(s)||n.parents().is(s))return}else if("function"==typeof s&&s.call(i,t))return}f()}})),"click"===a.action)c.click((function(e){h()}));else if("hover"===a.action){var w=null;i.hover((function(){o()||p(),w=null}),(function(){o()&&null===w&&(w=setTimeout((function(){w&&f(),w=null}),a.hoverTimeout))})),c.click((function(e){o()&&f()}))}a.onLoadSlideOut&&(p(),setTimeout(p,500)),i.on("open",(function(e){o()||p()})),i.on("close",(function(e){o()&&f()})),i.on("toggle",(function(e){h()})),i.on("bounce",(function(e){o()?function(){for(var e=i,t=0;t<a.bounceTimes;t++)e=e.animate(g,a.bounceSpeed).animate(v,a.bounceSpeed);i.trigger("slideouttabbounce")}():function(){for(var e=i,t=0;t<a.bounceTimes;t++)e=e.animate(v,a.bounceSpeed).animate(g,a.bounceSpeed);i.trigger("slideouttabbounce")}()}))}return this}}(jQuery)},97746:function(e,t,n){"use strict";n.d(t,{J:function(){return y}});var r=n(10467),i=n(54756),o=n.n(i),a=n(8545);function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=[],l=null,d=null,f=!1;function p(){$("#origin-search-results tbody tr").remove()}function h(e){return g.apply(this,arguments)}function g(){return(g=(0,r.A)(o().mark((function e(t){var n,r,i,a,c,d,h,g,v,w,m,b,y,x,k,_,S,F,A;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=$("#swh-search-visit-type").val(),!(t.length>0)){e.next=3;break}for($("#swh-origin-search-results").show(),$("#swh-no-result").hide(),p(),r=$("#origin-search-results tbody"),i=[],a=0,c=s(t);!(d=c()).done;)for(h=d.value,(g=h.visit_types).includes(n)&&(g=[n]),v=s(g);!(w=v()).done;)m=w.value,b=Urls.browse_origin()+"?origin_url="+encodeURIComponent(h.url),(g.length>1||"any"!==n)&&(b+="&visit_type="+m),y='<tr id="origin-'+a+'" class="swh-search-result-entry swh-tr-hover-highlight">',y+='<td id="visit-type-origin-'+a+'" class="swh-origin-visit-type" style="width: 120px;"><i title="Checking software origin type" class="mdi mdi-sync mdi-spin mdi-fw"></i>Checking</td>',y+='<td style="white-space: nowrap;"><a href="'+b+'">'+h.url+"</a></td>",y+='<td class="swh-visit-status" id="visit-status-origin-'+a+'"><i title="Checking archiving status" class="mdi mdi-sync mdi-spin mdi-fw"></i>Checking</td>',y+="</tr>",r.append(y),x=Urls.api_1_origin_visit_latest(h.url.replace("?","%3F")),x+="?require_snapshot=true",(g.length>1||"any"!==n)&&(x+="&visit_type="+m),i.push(fetch(x)),a+=1;return e.next=1,Promise.all(i);case 1:return k=e.sent,e.next=2,Promise.all(k.map((function(e){return e.json()})));case 2:for(_=e.sent,S=0;S<k.length;++S)F=k[S],A=_[S],404!==F.status&&A.type?($("#visit-type-origin-"+S).html(A.type),$("#visit-status-origin-"+S).html('<i title="Software origin has been archived by Software Heritage" class="mdi mdi-check-bold mdi-fw"></i>Archived')):($("#visit-type-origin-"+S).html("unknown"),$("#visit-status-origin-"+S).html('<i title="Software origin archival by Software Heritage is pending" class="mdi mdi-close-thick mdi-fw"></i>Pending archival'),$("#swh-filter-empty-visits").prop("checked")&&$("#origin-"+S).remove());setTimeout((function(){$("#origin-search-results tbody tr").removeAttr("style")})),e.next=4;break;case 3:$("#swh-origin-search-results").hide(),$("#swh-no-result").text("No origins matching the search criteria were found."),$("#swh-no-result").show();case 4:null===l?($("#origins-next-results-button").addClass("disabled"),$("#origins-next-results-button").attr("tabindex","-1")):($("#origins-next-results-button").removeClass("disabled"),$("#origins-next-results-button").attr("tabindex","0")),0===u.length?($("#origins-prev-results-button").addClass("disabled"),$("#origins-prev-results-button").attr("tabindex","-1")):($("#origins-prev-results-button").removeClass("disabled"),$("#origins-prev-results-button").attr("tabindex","0")),f=!1,setTimeout((function(){window.scrollTo(0,0)}));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e,t){var n;if($("#swh-search-origin-metadata").prop("checked"))(n=new URL(Urls.api_1_origin_metadata_search(),window.location)).searchParams.append("fulltext",e);else{var r=$("#swh-search-use-ql").prop("checked");(n=new URL(Urls.api_1_origin_search(e),window.location)).searchParams.append("use_ql",null!=r&&r)}n.searchParams.append("fields","url,visit_types");var i=$("#swh-search-origins-with-visit").prop("checked");n.searchParams.append("limit",t),n.searchParams.append("with_visit",i);var o=$("#swh-search-visit-type").val();"any"!==o&&n.searchParams.append("visit_type",o),w(n.toString())}function w(e){return m.apply(this,arguments)}function m(){return(m=(0,r.A)(o().mark((function e(t){var n,r,i,s,c,u,g;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(),$(".swh-loading").addClass("show"),e.prev=1,e.next=2,fetch(t);case 2:return n=e.sent,(0,a.Tv)(n),e.next=3,n.json();case 3:r=e.sent,d=t,l=null,n.headers.has("Link")&&(o=n.headers.get("Link"),void 0!==(i=o.match(/<(.+)>; rel="next"/)[1])&&(l=i)),n.headers.has("X-Total-Count")&&(s=n.headers.get("X-Total-Count"),s=new Intl.NumberFormat("en-US").format(s),c="",s&&(c=s+" origins found"),$("#swh-origin-search-total-results").text(c)),$(".swh-loading").removeClass("show"),h(r),e.next=6;break;case 4:return e.prev=4,g=e.catch(1),e.next=5,g.json();case 5:u=e.sent,$(".swh-loading").removeClass("show"),f=!1,$("#swh-origin-search-results").hide(),$("#swh-no-result").text((0,a.XE)(u,"An unknown error occurred while searching origins")),$("#swh-no-result").show();case 6:case"end":return e.stop()}var o}),e,null,[[1,4]])})))).apply(this,arguments)}function b(){return(b=(0,r.A)(o().mark((function e(){var t,n,r,i,s,c,u,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if($("#swh-no-result").hide(),t=$("#swh-origins-url-patterns").val(),n=$("#swh-search-visit-type").val(),f=!0,!t.startsWith("swh:")){e.next=7;break}return e.prev=1,r=Urls.api_1_resolve_swhid(t),e.next=2,fetch(r);case 2:return i=e.sent,(0,a.Tv)(i),e.next=3,i.json();case 3:s=e.sent,window.location=s.browse_url,e.next=6;break;case 4:return e.prev=4,l=e.catch(1),e.next=5,l.json();case 5:c=e.sent,$("#swh-origin-search-results").hide(),$(".swh-search-pagination").hide(),$("#swh-no-result").text(c.reason),$("#swh-no-result").show();case 6:e.next=10;break;case 7:return e.next=8,(0,a.Th)(t,n);case 8:if(!e.sent){e.next=9;break}u=Urls.browse_origin()+"?origin_url="+encodeURIComponent(t),n&&"any"!==n&&(u+="&visit_type="+n),window.location.href=u,e.next=10;break;case 9:$("#swh-origin-search-results").show(),$(".swh-search-pagination").show(),v(t,100);case 10:case"end":return e.stop()}}),e,null,[[1,4]])})))).apply(this,arguments)}function y(){$(document).ready((function(){if($("#swh-search-origins").submit((function(e){if(e.preventDefault(),e.target.checkValidity()){$(e.target).removeClass("was-validated");var t=$("#swh-origins-url-patterns").val().trim(),n=$("#swh-search-origins-with-visit").prop("checked"),r=$("#swh-filter-empty-visits").prop("checked"),i=$("#swh-search-use-ql").prop("checked"),o=$("#swh-search-origin-metadata").prop("checked"),a=$("#swh-search-visit-type").val(),s=new URLSearchParams;s.append("q",t),n&&s.append("with_visit",n),r&&s.append("with_content",r),i&&s.append("use_ql",null!=i&&i),o&&s.append("search_metadata",o),"any"!==a&&s.append("visit_type",a),window.location=Urls.browse_search()+"?"+s.toString()}else $(e.target).addClass("was-validated")})),$("#origins-next-results-button").click((function(e){$("#origins-next-results-button").hasClass("disabled")||f||(f=!0,u.push(d),w(l),e.preventDefault())})),$("#origins-prev-results-button").click((function(e){$("#origins-prev-results-button").hasClass("disabled")||f||(f=!0,w(u.pop()),e.preventDefault())})),$(".page-item").on("keypress",(function(e){"Enter"===e.key&&$(e.target).trigger("click")})),window.location.search){var e=new URLSearchParams(window.location.search),t=e.get("q"),n=e.has("with_visit"),r=e.has("use_ql"),i=e.has("with_content"),o=e.has("search_metadata"),a=e.get("visit_type");$("#swh-origins-url-patterns").val(t),$("#swh-search-origins-with-visit").prop("checked",n),$("#swh-search-use-ql").prop("checked",null!=r&&r),$("#swh-filter-empty-visits").prop("checked",i),$("#swh-search-origin-metadata").prop("checked",o),a&&$("#swh-search-visit-type").val(a),function(){b.apply(this,arguments)}()}}))}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){"use strict";n.r(r),n.d(r,{generateCitationForObjectType:function(){return a.Lz},generateCitationFromSWHID:function(){return a.u$},initBrowseNavbar:function(){return e.X},initOriginSearch:function(){return i.J},initSideTabs:function(){return a._q},initSnapshotNavigation:function(){return o.N},showIframeInfoModal:function(){return t.T},swhIdContextOptionToggled:function(){return a.iF},swhIdObjectTypeToggled:function(){return a.fV},visitTypeChanged:function(){return e.i}});var e=n(35769),t=n(31887),i=n(97746),o=n(64830),a=n(74264)}(),r}()}));
|
|
3
|
-
//# sourceMappingURL=browse.
|
|
1
|
+
/*! For license information please see browse.d5014e5cae44a2cd3e6e.js.LICENSE.txt */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.swh=t():(e.swh=e.swh||{},e.swh.browse=t())}(self,(function(){return function(){var e={887:function(e,t,n){var r=n(16993),i=n(11791);e.exports=function(e,t,n,o,a){return new i(r().w(e,t,n,o),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},3530:function(){!function(e){var t={pattern:/\\(?:\ |[^a-z@\s]|[a-z@]+\*?)/i},n={equation:{pattern:/(\$\$?)[^\$]+\1/m,alias:"function",inside:t},keyword:t};e.languages.bib={comment:/%.*/,special:{pattern:/(^\s*)@(?:preamble|string|comment(?=\s*[({]))/im,lookbehind:!0,alias:"important"},"class-name":{pattern:/(^\s*)@[a-z]+(?=\s*{)/im,lookbehind:!0},key:{pattern:/([,{]\s*)[^,={}'"\s]+(?=\s*[,}])/im,lookbehind:!0,alias:"regex"},property:{pattern:/([,{(]\s*)[^,={}'"\s]+(?=\s*=)/im,lookbehind:!0},string:{pattern:/([=#{}]\s*)(?:\d+|("|')(?:(?!\2)[^\\]|\\.)*\2|{(?:(?:{(?:(?:{(?:(?:{(?:[^{}])*})|(?:[^{}]))*})|(?:[^{}]))*})|(?:[^{}]))*})/im,lookbehind:!0,greedy:!0,inside:n},constant:{pattern:/([=#]\s*)[^,={}'"\s]+(?=\s*[#,}])/im,lookbehind:!0},symbol:/#/,punctuation:/[=,{}()]/},e.languages.bibtex=e.languages.bib}(Prism)},4373:function(e){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},4633:function(e,t,n){var r=n(25172),i=n(16993),o=n(55869),a=n(887),s=n(11791),c=n(4373),u=n(30579);function l(){"use strict";var t=i(),n=t.m(l),d=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function h(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,u(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=l=function(){return{wrap:function(e,n,r,i){return t.w(h(e),n,r,i&&i.reverse())},isGeneratorFunction:p,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,n,r,i){return(p(t)?a:o)(h(e),t,n,r,i)},keys:c,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports},8545:function(e,t,n){"use strict";n.d(t,{Th:function(){return l},Tv:function(){return a},XE:function(){return s},lY:function(){return c}});var r=n(10467),i=n(54756),o=n.n(i);n(18987);function a(e){if(!e.ok)throw e;return e}function s(e,t){var n="";try{var r=JSON.parse(e.reason);Object.entries(r).forEach((function(e,t){var r=e[0],i=e[1][0];n+="\n"+r+": "+i}))}catch(t){n=e.reason}return n?"Error: "+n:t}function c(e){return"/static/"+e}function u(e,t){void 0===t&&(t=[]);var n=null,r=!0;try{n=new URL(e)}catch(e){r=!1}return r&&t.length&&(r=void 0!==t.find((function(e){return e===n.protocol}))),r?n:null}function l(e,t){return d.apply(this,arguments)}function d(){return(d=(0,r.A)(o().mark((function e(t,n){var r,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u(t)){e.next=1;break}return e.abrupt("return",!1);case 1:return r=Urls.api_1_origin_visit_latest(t)+"?require_snapshot=true",n&&"any"!==n&&(r+="&visit_type="+n),e.next=2,fetch(r);case 2:return i=e.sent,e.abrupt("return",i.ok);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},10467:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)}))}}n.d(t,{A:function(){return i}})},11791:function(e,t,n){var r=n(25172),i=n(75546);e.exports=function e(t,n){function o(e,i,a,s){try{var c=t[e](i),u=c.value;return u instanceof r?n.resolve(u.v).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):n.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,s)}))}catch(e){s(e)}}var a;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),i(this,"_invoke",(function(e,t,r){function i(){return new n((function(t,n){o(e,r,t,n)}))}return a=a?a.then(i,i):i()}),!0)},e.exports.__esModule=!0,e.exports.default=e.exports},16993:function(e,t,n){var r=n(75546);function i(){var t,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function c(e,i,o,a){var s=i&&i.prototype instanceof l?i:l,c=Object.create(s.prototype);return r(c,"_invoke",function(e,r,i){var o,a,s,c=0,l=i||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,a=0,s=t,p.n=n,u}};function f(e,r){for(a=e,s=r,n=0;!d&&c&&!i&&n<l.length;n++){var i,o=l[n],f=p.p,h=o[2];e>3?(i=h===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=f&&((i=e<2&&f<o[1])?(a=0,p.v=r,p.n=o[1]):f<h&&(i=e<3||o[0]>r||r>h)&&(o[4]=e,o[5]=r,p.n=h,a=0))}if(i||e>1)return u;throw d=!0,r}return function(i,l,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===l&&f(l,h),a=l,s=h;(n=a<2?t:s)||!d;){o||(a?a<3?(a>1&&(p.n=-1),f(a,s)):p.n=s:p.v=s);try{if(c=2,o){if(a||(i="next"),n=o[i]){if(!(n=n.call(o,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=o.return)&&n.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((n=(d=p.n<0)?s:e.call(r,p))!==u)break}catch(e){o=t,a=1,s=e}finally{c=1}}return{value:n,done:d}}}(e,o,a),!0),c}var u={};function l(){}function d(){}function p(){}n=Object.getPrototypeOf;var f=[][a]?n(n([][a]())):(r(n={},a,(function(){return this})),n),h=p.prototype=l.prototype=Object.create(f);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,r(e,s,"GeneratorFunction")),e.prototype=Object.create(h),e}return d.prototype=p,r(h,"constructor",p),r(p,"constructor",d),d.displayName="GeneratorFunction",r(p,s,"GeneratorFunction"),r(h),r(h,s,"Generator"),r(h,a,(function(){return this})),r(h,"toString",(function(){return"[object Generator]"})),(e.exports=i=function(){return{w:c,m:g}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},18987:function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}(function e(t,n){function i(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=r({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+a}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){i(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})})({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},23717:function(e,t,n){"use strict";n.d(t,{DK:function(){return i}});var r=n(8545),i=768;(0,r.lY)("img/swh-spinner.gif")},25172:function(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},28848:function(e,t,n){var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,o;switch(n=n||{},i.util.type(t)){case"Object":if(o=i.util.objId(t),n[o])return n[o];for(var a in r={},n[o]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return o=i.util.objId(t),n[o]?n[o]:(r=[],n[o]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var o=(r=r||i.languages)[e],a={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=o[s])}var u=r[e];return r[e]=a,i.languages.DFS(i.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,o){o=o||{};var a=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],u=i.util.type(c);"Object"!==u||o[a(c)]?"Array"!==u||o[a(c)]||(o[a(c)]=!0,e(c,n,s,o)):(o[a(c)]=!0,e(c,n,null,o))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var o,a=0;o=r.elements[a++];)i.highlightElement(o,!0===t,r.callback)},highlightElement:function(t,n,r){var o=i.util.getLanguage(t),a=i.languages[o];i.util.setLanguage(t,o);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&i.util.setLanguage(s,o);var c={element:t,language:o,grammar:a,code:t.textContent};function u(e){c.highlightedCode=e,i.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,i.hooks.run("after-highlight",c),i.hooks.run("complete",c),r&&r.call(c.element)}if(i.hooks.run("before-sanity-check",c),(s=c.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!c.code)return i.hooks.run("complete",c),void(r&&r.call(c.element));if(i.hooks.run("before-highlight",c),c.grammar)if(n&&e.Worker){var l=new Worker(i.filename);l.onmessage=function(e){u(e.data)},l.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else u(i.highlight(c.code,c.grammar,c.language));else u(i.util.encode(c.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),o.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return u(i,i.head,e),s(e,i,t,i.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function s(e,t,n,r,c,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var h=0;h<f.length;++h){if(d&&d.cause==p+","+h)return;var g=f[h],w=g.inside,v=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var y=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,y+"g")}for(var x=g.pattern||g,$=r.next,k=c;$!==t.tail&&!(d&&k>=d.reach);k+=$.value.length,$=$.next){var _=$.value;if(t.length>e.length)return;if(!(_ instanceof o)){var S,F=1;if(m){if(!(S=a(x,k,e,v))||S.index>=e.length)break;var A=S.index,C=S.index+S[0].length,O=k;for(O+=$.value.length;A>=O;)O+=($=$.next).value.length;if(k=O-=$.value.length,$.value instanceof o)continue;for(var T=$;T!==t.tail&&(O<C||"string"==typeof T.value);T=T.next)F++,O+=T.value.length;F--,_=e.slice(k,O),S.index-=k}else if(!(S=a(x,0,_,v)))continue;A=S.index;var E=S[0],j=_.slice(0,A),P=_.slice(A+E.length),L=k+_.length;d&&L>d.reach&&(d.reach=L);var I=$.prev;if(j&&(I=u(t,I,j),k+=j.length),l(t,I,F),$=u(t,I,new o(p,w?i.tokenize(E,w):E,b,E)),P&&u(t,$,P),F>1){var M={cause:p+","+h,reach:L};s(e,t,n,$.prev,k,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function l(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(o.classes,a):o.classes.push(a)),i.hooks.run("wrap",o);var s="";for(var c in o.attributes)s+=" "+c+'="'+(o.attributes[c]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,a=n.immediateClose;e.postMessage(i.highlight(o,i.languages[r],r)),a&&e.close()}),!1),i):i;var d=i.util.currentScript();function p(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r),r.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};i["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},r.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(void 0!==r&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",i="loaded",o="pre[data-src]:not(["+t+'="'+i+'"]):not(['+t+'="'+n+'"])';r.hooks.add("before-highlightall",(function(e){e.selector+=", "+o})),r.hooks.add("before-sanity-check",(function(a){var s=a.element;if(s.matches(o)){a.code="",s.setAttribute(t,n);var c=s.appendChild(document.createElement("CODE"));c.textContent="Loading…";var u=s.getAttribute("data-src"),l=a.language;if("none"===l){var d=(/\.(\w+)$/.exec(u)||[,"none"])[1];l=e[d]||d}r.util.setLanguage(c,l),r.util.setLanguage(s,l);var p=r.plugins.autoloader;p&&p.loadLanguages(l),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(u,(function(e){s.setAttribute(t,i);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}(s.getAttribute("data-range"));if(n){var o=e.split(/\r\n?|\n/g),a=n[0],u=null==n[1]?o.length:n[1];a<0&&(a+=o.length),a=Math.max(0,Math.min(a-1,o.length)),u<0&&(u+=o.length),u=Math.max(0,Math.min(u,o.length)),e=o.slice(a,u).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(a+1))}c.textContent=e,r.highlightElement(c)}),(function(e){s.setAttribute(t,"failed"),c.textContent=e}))}})),r.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(o),i=0;t=n[i++];)r.highlightElement(t)}};var a=!1;r.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},30579:function(e,t,n){var r=n(73738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},31887:function(e,t,n){"use strict";function r(e,t){var n="\n <p>\n You can embed that "+e+' view in an external website\n through the use of an iframe. Use the following HTML code\n to do so.\n </p>\n <pre><code class="swh-iframe-html html"><iframe style="width: 100%; height: 500px; border: 1px solid rgba(0, 0, 0, 0.125);"\n src="'+window.location.origin+Urls.browse_swhid_iframe(t.replaceAll("\n",""))+'">\n</iframe></code></pre>\n <iframe style="width: 100%; height: 500px; border: 1px solid rgba(0, 0, 0, 0.125);"\n src="'+window.location.origin+Urls.browse_swhid_iframe(t.replaceAll("\n",""))+'">\n </iframe>';swh.webapp.showModalHtml("Software Heritage "+e+" iframe",n,"1000px"),swh.webapp.highlightCode(!1,".swh-iframe-html")}n.d(t,{T:function(){return r}})},35769:function(e,t,n){"use strict";n.d(t,{X:function(){return i},i:function(){return o}});var r=n(23717);function i(){window.location.pathname===Urls.browse_origin_visits()?$("#swh-browse-origin-visits-nav-link").addClass("active"):window.location.pathname===Urls.browse_origin_branches()||window.location.pathname===Urls.browse_snapshot_branches()||window.location.pathname.endsWith("branches/")?$("#swh-browse-snapshot-branches-nav-link").addClass("active"):window.location.pathname===Urls.browse_origin_releases()||window.location.pathname===Urls.browse_snapshot_releases()||window.location.pathname.endsWith("releases/")?$("#swh-browse-snapshot-releases-nav-link").addClass("active"):$("#swh-browse-code-nav-link").addClass("active")}function o(e){var t=$(e).val(),n=new URLSearchParams(window.location.search);n.set("visit_type",t),window.location.search=n.toString()}$(document).ready((function(){$(".dropdown-submenu a.dropdown-item").on("click",(function(e){$(e.target).next("div").toggle(),"none"!==$(e.target).next("div").css("display")?$(e.target).focus():$(e.target).blur(),e.stopPropagation(),e.preventDefault()})),$(".swh-popover-toggler").popover({boundary:"viewport",container:"body",html:!0,placement:function(){return $(window).width()<r.DK?"top":"right"},template:'<div class="popover" role="tooltip">\n <div class="arrow"></div>\n <h3 class="popover-header"></h3>\n <div class="popover-body swh-popover"></div>\n </div>',content:function(){var e=$(this).attr("data-popover-content");return $(e).children(".popover-body").remove().html()},title:function(){var e=$(this).attr("data-popover-content");return $(e).children(".popover-heading").html()},offset:"50vh",sanitize:!1}),$(".swh-vault-menu a.dropdown-item").on("click",(function(e){$(".swh-popover-toggler").popover("hide")})),$(".swh-popover-toggler").on("show.bs.popover",(function(e){$(".swh-popover-toggler:not(#"+e.currentTarget.id+")").popover("hide"),$(".swh-vault-menu .dropdown-menu").hide()})),$(".swh-actions-dropdown").on("hide.bs.dropdown",(function(){$(".swh-vault-menu .dropdown-menu").hide(),$(".swh-popover-toggler").popover("hide")})),$("#swh-branch-search-form").submit((function(e){var t=new URLSearchParams(window.location.search);t.set("name_include",$("#swh-branch-search-string").val().trim()),window.location.search=t.toString(),e.preventDefault()})),$("body").on("click",(function(e){$(e.target).parents(".swh-popover").length&&e.stopPropagation()}))}))},54756:function(e,t,n){var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},55869:function(e,t,n){var r=n(887);e.exports=function(e,t,n,i,o){var a=r(e,t,n,i,o);return a.next().then((function(e){return e.done?e.value:a.next()}))},e.exports.__esModule=!0,e.exports.default=e.exports},57576:function(e){var t;t=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return $}});var r=n(279),i=n.n(r),o=n(370),a=n.n(o),s=n(817),c=n.n(s);function u(e){try{return document.execCommand(e)}catch(e){return!1}}var l=function(e){var t=c()(e);return u("cut"),t},d=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var r=c()(n);return u("copy"),n.remove(),r},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=d(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=d(e.value,t):(n=c()(e),u("copy")),n};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,o=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==f(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?p(o,{container:r}):i?"cut"===n?l(i):p(i,{container:r}):void 0};function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function y(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(o,e);var t,n,r,i=m(o);function o(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(n=i.call(this)).resolveOptions(t),n.listenClick(e),n}return t=o,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===g(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=a()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=h({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return y("action",e)}},{key:"defaultTarget",value:function(e){var t=y("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return y("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return p(e,t)}},{key:"cut",value:function(e){return l(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&w(t.prototype,n),r&&w(t,r),o}(i()),$=x},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function i(e,t,n,r,i){var a=o.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function o(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,o)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),i=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=t()},64830:function(e,t,n){"use strict";function r(e,t){function n(){$(".swh-releases-switch").removeClass("active"),$(".swh-branches-switch").addClass("active"),$("#swh-tab-releases").removeClass("active"),$("#swh-tab-branches").addClass("active")}function r(){$(".swh-branches-switch").removeClass("active"),$(".swh-releases-switch").addClass("active"),$("#swh-tab-branches").removeClass("active"),$("#swh-tab-releases").addClass("active")}$(document).ready((function(){$(".dropdown-menu a.swh-branches-switch").click((function(e){n(),e.stopPropagation()})),$(".dropdown-menu a.swh-releases-switch").click((function(e){r(),e.stopPropagation()}));var i=!1;$("#swh-branches-releases-dd").on("show.bs.dropdown",(function(){if(!i){var e=$(".swh-branches-releases").width();$(".swh-branches-releases").width(e+25),i=!0}})),e&&(t?n():r())}))}n.d(t,{N:function(){return r}})},73738:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},74264:function(e,t,n){"use strict";n.d(t,{Lz:function(){return b},_q:function(){return x},fV:function(){return d},iF:function(){return f},u$:function(){return v}});var r=n(10467),i=n(54756),o=n.n(i),a=n(57576),s=n.n(a),c=n(8545),u=(n(93885),n(28848)),l=n.n(u);n(3530);function d(e){e.preventDefault(),$(e.target).tab("show")}function p(e){var t=$(e).closest(".swhid-ui").find(".swhid"),n=$(e).data("swhid-with-context"),r=$(e).data("swhid-with-context-url"),i=t.text();if($(e).prop("checked"))t.attr("href",r),i=n.replace(/;/g,";\n");else{var o=i.indexOf(";");-1!==o&&(i=i.slice(0,o)),t.attr("href","/"+i)}t.text(i),g()}function f(e){e.stopPropagation(),p(e.target)}function h(){for(var e=[],t=";lines=",n=new RegExp(/L(\d+)/g),r=n.exec(window.location.hash);r;)e.push(parseInt(r[1])),r=n.exec(window.location.hash);return e.length>0&&(t+=e[0]),e.length>1&&(t+="-"+e[1]),e.length>0?t:null}function g(){var e=$("#swhid-tab-content").find(".swhid"),t=e.text().replace(/;\n/g,";"),n=h(),r=$("#swhid-context-option-content");if(r.prop("checked")){var i=r.data("swhid-with-context-url");t=t.replace(/;lines=\d+-*\d*/g,""),n&&(t+=n,i+=n),e.text(t.replace(/;/g,";\n")),e.attr("href",i)}}function w(){$(".swh-side-tab").css("width",Math.min(window.innerWidth-45,1e3)+"px");var e=window.innerHeight>=700?250:35;$(".swh-side-tab").css("top",e+"px"),$("#swh-citations .handle").css("top","128px");var t=$("#swh-identifiers-content").css("display"),n=$("#swh-citations-content").css("display");function r(t){e+$(t).height()>window.innerHeight&&$(t).css("height",window.innerHeight-e-5+"px")}$(".swh-side-tab").css("height","auto"),$(".swh-tab-side-content").css("display","block"),r("#swh-identifiers"),r("#swh-citations"),$("#swh-identifiers .swh-badges-iframe").css("display",window.innerHeight>=700?"flex":"none"),$("#swh-identifiers .swh-badges-iframe").css("display",window.innerWidth>=700?"flex":"none"),$("#swh-identifiers-content").css("display",t),$("#swh-citations-content").css("display",n)}function v(e){return m.apply(this,arguments)}function m(){return(m=(0,r.A)(o().mark((function e(t){var n,r,i,a,s,u,d,p,f,g;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=swh.webapp.getSwhIdsContext(),t&&n.hasOwnProperty(t)){e.next=1;break}return e.abrupt("return");case 1:return r=n[t].swhid,n[t].swhid_with_context_url&&(r=n[t].swhid_with_context_url.slice(1)),"content"===t&&(i=h())&&(r+=i),a=$("#citation-format-option-"+t).val().toLowerCase(),s=Urls.api_1_raw_intrinsic_citation_swhid_get()+"?citation_format="+a+"&target_swhid="+r,e.prev=2,e.next=3,fetch(s);case 3:return u=e.sent,(0,c.Tv)(u),$("#swh-citations").removeClass("d-none"),e.next=4,u.json();case 4:d=e.sent,p=l().highlight(d.content,l().languages.bibtex,"bibtex"),$("#citation-tab-"+t+" .swh-citation").html(p),$("#citation-tab-"+t+" .btn-citation-copy").attr("disabled",!1),$("#citation-source-"+t).html('<a target="_blank" rel="noopener noreferrer" href="'+Urls.browse_swhid(d.source_swhid)+'">Browse citation metadata</a>'),e.next=7;break;case 5:return e.prev=5,g=e.catch(2),e.next=6,g.json();case 6:f=e.sent,$("#citation-tab-"+t+" .swh-citation").text("Software citation could not be generated due to the following reason:\n\n"+f.reason),$("#citation-tab-"+t+" .btn-citation-copy").attr("disabled",!0),400===g.status?($("#citation-source-"+t).html('<a target="_blank" rel="noopener noreferrer" href="'+Urls.browse_swhid(f.source_swhid)+'">Browse citation metadata</a>'),$("#swh-citations").removeClass("d-none")):$("#citation-source-"+t).html("");case 7:case"end":return e.stop()}}),e,null,[[2,5]])})))).apply(this,arguments)}function b(e){return y.apply(this,arguments)}function y(){return(y=(0,r.A)(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,v($(t.target).text().trim());case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(){return k.apply(this,arguments)}function k(){return k=(0,r.A)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:$(document).ready((function(){var e=function(e,t){var n=e.innerHTML;n!==t&&(e.innerHTML=t,setTimeout((function(){e.innerHTML=n}),1e3))};function t(){return $(".introjs-overlay").length>0}function n(e,t){$(e+"-content").css("display",t?"block":"none"),$(e).css("z-index",t?"40000":"30000"),$(e+" .handle").css("padding-bottom",t?"0.4em":"0.1em")}new(s())(".btn-swhid-copy",{text:function(e){return $(e).closest(".swhid-ui").find(".swhid").text().replace(/;\n/g,";")}}).on("success",(function(t){e(t.trigger,"Copied!")})),new(s())(".btn-swhid-url-copy",{text:function(e){var t=$(e).closest(".swhid-ui").find(".swhid").attr("href");return window.location.origin+t}}).on("success",(function(t){e(t.trigger,"Copied!")}));var i,a={tabLocation:"right",action:null,clickScreenToCloseFilters:[t,".ui-slideouttab-panel",".modal"],onBeforeOpen:function(){return $("#swh-identifiers").data("opening",!0),$("#swh-citations").data("opening")||$("#swh-citations").trigger("open"),n("#swh-identifiers",!0),n("#swh-citations",!1),!0},onOpen:function(){$("#swh-identifiers").data("opening",!1),$("#swhids-handle").attr("aria-expanded","true"),$("#swhids-handle").attr("aria-label","Collapse permalinks tab"),$("#swhids-handle").attr("title","Collapse permalinks tab"),$("#citations-handle").attr("aria-label","Display citations tab"),$("#citations-handle").attr("title","Display citations tab"),$(".tab-handle-arrow").removeClass("mdi-chevron-up"),$(".tab-handle-arrow").addClass("mdi-chevron-down")},onBeforeClose:function(){return $("#swh-identifiers").data("closing",!0),$("#swh-citations").data("closing")||$("#swh-citations").trigger("close"),!0},onClose:function(){$("#swh-identifiers").data("closing",!1),$("#swhids-handle").attr("aria-expanded","false"),$("#swhids-handle").attr("aria-label","Expand permalinks tab"),$("#swhids-handle").attr("title","Expand permalinks tab"),$(".tab-handle-arrow").removeClass("mdi-chevron-down"),$(".tab-handle-arrow").addClass("mdi-chevron-up"),$("#swhids-handle").css("padding-bottom","0.1em"),setTimeout((function(){$("#swh-identifiers-content").css("display","none")}),500)}};if($("#swh-identifiers").tabSlideOut(a),$("#swh-identifiers .handle").on("click",(function(e){e.preventDefault(),$("#swh-identifiers").tabSlideOut("isOpen")?"none"===$("#swh-identifiers-content").css("display")?(n("#swh-identifiers",!0),n("#swh-citations",!1),$("#citations-handle").attr("aria-label","Display citations tab"),$("#citations-handle").attr("title","Display citations tab"),$("#swhids-handle").attr("aria-label","Collapse permalinks tab"),$("#swhids-handle").attr("title","Collapse permalinks tab")):$("#swh-identifiers").trigger("close"):$("#swh-identifiers").trigger("open")})),$(".swhid-context-option").each((function(e,t){p(t)})),JSON.parse($("#activate_citations_ui").text())||swh.webapp.isStaffUser()||swh.webapp.isAmbassadorUser()){new(s())(".btn-citation-copy",{text:function(e){return $(e).closest(".citation-ui").find(".swh-citation").text()}}).on("success",(function(t){e(t.trigger,"Copied!")}));var c={tabLocation:"right",action:null,clickScreenToCloseFilters:[t,".ui-slideouttab-panel",".modal"],onBeforeOpen:(i=(0,r.A)(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $("#swh-citations").data("opening",!0),$("#swh-identifiers").data("opening")||$("#swh-identifiers").trigger("open"),t=$("#swh-citations-content .nav-link.active").text().trim(),""===$("citation-tab-"+t+" pre").text().trim()&&v(t),n("#swh-citations",!0),n("#swh-identifiers",!1),e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)}),onOpen:function(){$("#swh-citations").data("opening",!1),$("#citations-handle").attr("aria-expanded","true"),$("#citations-handle").attr("aria-label","Collapse citations tab"),$("#citations-handle").attr("title","Collapse citations tab"),$("#swhids-handle").attr("aria-label","Display permalinks tab"),$("#swhids-handle").attr("title","Display permalinks tab")},onBeforeClose:function(){return $("#swh-citations").data("closing",!0),$("#swh-identifiers").data("closing")||$("#swh-identifiers").trigger("close"),!0},onClose:function(){$("#swh-citations").data("closing",!1),$("#citations-handle").attr("aria-expanded","false"),$("#citations-handle").attr("aria-label","Expand citations tab"),$("#citations-handle").attr("title","Expand citations tab"),$("#citations-handle").css("padding-bottom","0.1em"),setTimeout((function(){$("#swh-citations-content").css("display","none")}),500)}};$("#swh-citations").tabSlideOut(c),$("#swh-citations .handle").on("click",(function(e){e.preventDefault(),$("#swh-citations").tabSlideOut("isOpen")?"none"===$("#swh-citations-content").css("display")?(n("#swh-identifiers",!1),n("#swh-citations",!0),$("#swhids-handle").attr("aria-label","Display permalinks tab"),$("#swhids-handle").attr("title","Display permalinks tab"),$("#citations-handle").attr("aria-label","Collapse citations tab"),$("#citations-handle").attr("title","Collapse citations tab")):$("#swh-citations").trigger("close"):$("#swh-citations").trigger("open")})),v(swh.webapp.getBrowsedSwhObjectMetadata().object_type)}w(),$(window).on("hashchange",(function(){g()})),$("body").click((function(){g()})),$(window).on("resize",(function(){w()}))}));case 1:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}},75546:function(e){function t(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}e.exports=t=function(e,n,r,i){if(n)a?a(e,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[n]=r;else{var o=function(n,r){t(e,n,(function(e){return this._invoke(n,r,e)}))};o("next",0),o("throw",1),o("return",2)}},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},93885:function(){!function(e){e.fn.tabSlideOut=function(t){function n(e){return parseInt(e.outerHeight()+1,10)+"px"}function r(){var t=e(window).height();return"top"!==s&&"bottom"!==s||(t=e(window).width()),t-parseInt(a.otherOffset)-parseInt(a.offset)}var i=this;function o(){return i.hasClass("ui-slideouttab-open")}if("string"==typeof t)switch(t){case"open":return this.trigger("open"),this;case"close":return this.trigger("close"),this;case"isOpen":return o();case"toggle":return this.trigger("toggle"),this;case"bounce":return this.trigger("bounce"),this;default:throw"Invalid tabSlideOut command"}else{var a=e.extend({tabLocation:"left",tabHandle:".handle",action:"click",hoverTimeout:5e3,offset:"200px",offsetReverse:!1,otherOffset:null,handleOffset:null,handleOffsetReverse:!1,bounceDistance:"50px",bounceTimes:4,bounceSpeed:300,tabImage:null,tabImageHeight:null,tabImageWidth:null,onLoadSlideOut:!1,clickScreenToClose:!0,clickScreenToCloseFilters:[".ui-slideouttab-panel"],onOpen:function(){},onClose:function(){},onSlide:function(){},onBeforeOpen:function(){return!0},onBeforeClose:function(){return!0},onBeforeSlide:function(){return!0}},t||{}),s=a.tabLocation,c=a.tabHandle=e(a.tabHandle,i);if(i.addClass("ui-slideouttab-panel").addClass("ui-slideouttab-"+s),a.offsetReverse&&i.addClass("ui-slideouttab-panel-reverse"),c.addClass("ui-slideouttab-handle"),a.handleOffsetReverse&&c.addClass("ui-slideouttab-handle-reverse"),a.toggleButton=e(a.toggleButton),null!==a.tabImage){var u=0,l=0;if(null!==a.tabImageHeight&&null!==a.tabImageWidth)u=a.tabImageHeight,l=a.tabImageWidth;else{var d=new Image;d.src=a.tabImage,u=d.naturalHeight,l=d.naturalWidth}c.addClass("ui-slideouttab-handle-image"),c.css({background:"url("+a.tabImage+") no-repeat",width:l,height:u})}"top"===s||"bottom"===s?(a.panelOffsetFrom=a.offsetReverse?"right":"left",a.handleOffsetFrom=a.handleOffsetReverse?"right":"left"):(a.panelOffsetFrom=a.offsetReverse?"bottom":"top",a.handleOffsetFrom=a.handleOffsetReverse?"bottom":"top"),null===a.handleOffset&&(a.handleOffset="-"+function(e,t){return parseInt(e.css("border-"+t+"-width"),10)}(i,a.handleOffsetFrom)+"px"),"top"===s||"bottom"===s?(i.css(a.panelOffsetFrom,a.offset),c.css(a.handleOffsetFrom,a.handleOffset),null!==a.otherOffset&&(i.css("width",r()+"px"),e(window).resize((function(){i.css("width",r()+"px")}))),"top"===s?c.css({bottom:"-"+n(c)}):c.css({top:"-"+n(c)})):(i.css(a.panelOffsetFrom,a.offset),c.css(a.handleOffsetFrom,a.handleOffset),null!==a.otherOffset&&(i.css("height",r()+"px"),e(window).resize((function(){i.css("height",r()+"px")}))),"left"===s?c.css({right:"0"}):c.css({left:"0"})),c.click((function(e){e.preventDefault()})),a.toggleButton.click((function(e){e.preventDefault()})),i.addClass("ui-slideouttab-ready");var p=function(){a.onBeforeSlide()&&a.onBeforeClose()&&(i.removeClass("ui-slideouttab-open").trigger("slideouttabclose"),a.onSlide(),a.onClose())},f=function(){a.onBeforeSlide()&&a.onBeforeOpen()&&(i.addClass("ui-slideouttab-open").trigger("slideouttabopen"),a.onSlide(),a.onOpen())},h=function(){o()?p():f()},g=[];g[s]="-="+a.bounceDistance;var w=[];w[s]="+="+a.bounceDistance;if(a.clickScreenToClose&&e(document).click((function(t){if(o()&&!i[0].contains(t.target)){for(var n=e(t.target),r=0;r<a.clickScreenToCloseFilters.length;r++){var s=a.clickScreenToCloseFilters[r];if("string"==typeof s){if(n.is(s)||n.parents().is(s))return}else if("function"==typeof s&&s.call(i,t))return}p()}})),"click"===a.action)c.click((function(e){h()}));else if("hover"===a.action){var v=null;i.hover((function(){o()||f(),v=null}),(function(){o()&&null===v&&(v=setTimeout((function(){v&&p(),v=null}),a.hoverTimeout))})),c.click((function(e){o()&&p()}))}a.onLoadSlideOut&&(f(),setTimeout(f,500)),i.on("open",(function(e){o()||f()})),i.on("close",(function(e){o()&&p()})),i.on("toggle",(function(e){h()})),i.on("bounce",(function(e){o()?function(){for(var e=i,t=0;t<a.bounceTimes;t++)e=e.animate(g,a.bounceSpeed).animate(w,a.bounceSpeed);i.trigger("slideouttabbounce")}():function(){for(var e=i,t=0;t<a.bounceTimes;t++)e=e.animate(w,a.bounceSpeed).animate(g,a.bounceSpeed);i.trigger("slideouttabbounce")}()}))}return this}}(jQuery)},97746:function(e,t,n){"use strict";n.d(t,{J:function(){return y}});var r=n(10467),i=n(54756),o=n.n(i),a=n(8545);function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=[],l=null,d=null,p=!1;function f(){$("#origin-search-results tbody tr").remove()}function h(e){return g.apply(this,arguments)}function g(){return(g=(0,r.A)(o().mark((function e(t){var n,r,i,a,c,d,h,g,w,v,m,b,y,x,k,_,S,F,A;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=$("#swh-search-visit-type").val(),!(t.length>0)){e.next=3;break}for($("#swh-origin-search-results").show(),$("#swh-no-result").hide(),f(),r=$("#origin-search-results tbody"),i=[],a=0,c=s(t);!(d=c()).done;)for(h=d.value,(g=h.visit_types).includes(n)&&(g=[n]),w=s(g);!(v=w()).done;)m=v.value,b=Urls.browse_origin()+"?origin_url="+encodeURIComponent(h.url),(g.length>1||"any"!==n)&&(b+="&visit_type="+m),y='<tr id="origin-'+a+'" class="swh-search-result-entry swh-tr-hover-highlight">',y+='<td id="visit-type-origin-'+a+'" class="swh-origin-visit-type" style="width: 120px;"><i title="Checking software origin type" class="mdi mdi-sync mdi-spin mdi-fw"></i>Checking</td>',y+='<td style="white-space: nowrap;"><a href="'+b+'">'+h.url+"</a></td>",y+='<td class="swh-visit-status" id="visit-status-origin-'+a+'"><i title="Checking archiving status" class="mdi mdi-sync mdi-spin mdi-fw"></i>Checking</td>',y+="</tr>",r.append(y),x=Urls.api_1_origin_visit_latest(h.url.replace("?","%3F")),x+="?require_snapshot=true",(g.length>1||"any"!==n)&&(x+="&visit_type="+m),i.push(fetch(x)),a+=1;return e.next=1,Promise.all(i);case 1:return k=e.sent,e.next=2,Promise.all(k.map((function(e){return e.json()})));case 2:for(_=e.sent,S=0;S<k.length;++S)F=k[S],A=_[S],404!==F.status&&A.type?($("#visit-type-origin-"+S).html(A.type),$("#visit-status-origin-"+S).html('<i title="Software origin has been archived by Software Heritage" class="mdi mdi-check-bold mdi-fw"></i>Archived')):($("#visit-type-origin-"+S).html("unknown"),$("#visit-status-origin-"+S).html('<i title="Software origin archival by Software Heritage is pending" class="mdi mdi-close-thick mdi-fw"></i>Pending archival'),$("#swh-filter-empty-visits").prop("checked")&&$("#origin-"+S).remove());setTimeout((function(){$("#origin-search-results tbody tr").removeAttr("style")})),e.next=4;break;case 3:$("#swh-origin-search-results").hide(),$("#swh-no-result").text("No origins matching the search criteria were found."),$("#swh-no-result").show();case 4:null===l?($("#origins-next-results-button").addClass("disabled"),$("#origins-next-results-button").attr("tabindex","-1")):($("#origins-next-results-button").removeClass("disabled"),$("#origins-next-results-button").attr("tabindex","0")),0===u.length?($("#origins-prev-results-button").addClass("disabled"),$("#origins-prev-results-button").attr("tabindex","-1")):($("#origins-prev-results-button").removeClass("disabled"),$("#origins-prev-results-button").attr("tabindex","0")),p=!1,setTimeout((function(){window.scrollTo(0,0)}));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e,t){var n;if($("#swh-search-origin-metadata").prop("checked"))(n=new URL(Urls.api_1_origin_metadata_search(),window.location)).searchParams.append("fulltext",e);else{var r=$("#swh-search-use-ql").prop("checked");(n=new URL(Urls.api_1_origin_search(e),window.location)).searchParams.append("use_ql",null!=r&&r)}n.searchParams.append("fields","url,visit_types");var i=$("#swh-search-origins-with-visit").prop("checked");n.searchParams.append("limit",t),n.searchParams.append("with_visit",i);var o=$("#swh-search-visit-type").val();"any"!==o&&n.searchParams.append("visit_type",o),v(n.toString())}function v(e){return m.apply(this,arguments)}function m(){return(m=(0,r.A)(o().mark((function e(t){var n,r,i,s,c,u,g;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(),$(".swh-loading").addClass("show"),e.prev=1,e.next=2,fetch(t);case 2:return n=e.sent,(0,a.Tv)(n),e.next=3,n.json();case 3:r=e.sent,d=t,l=null,n.headers.has("Link")&&(o=n.headers.get("Link"),void 0!==(i=o.match(/<(.+)>; rel="next"/)[1])&&(l=i)),n.headers.has("X-Total-Count")&&(s=n.headers.get("X-Total-Count"),s=new Intl.NumberFormat("en-US").format(s),c="",s&&(c=s+" origins found"),$("#swh-origin-search-total-results").text(c)),$(".swh-loading").removeClass("show"),h(r),e.next=6;break;case 4:return e.prev=4,g=e.catch(1),e.next=5,g.json();case 5:u=e.sent,$(".swh-loading").removeClass("show"),p=!1,$("#swh-origin-search-results").hide(),$("#swh-no-result").text((0,a.XE)(u,"An unknown error occurred while searching origins")),$("#swh-no-result").show();case 6:case"end":return e.stop()}var o}),e,null,[[1,4]])})))).apply(this,arguments)}function b(){return(b=(0,r.A)(o().mark((function e(){var t,n,r,i,s,c,u,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if($("#swh-no-result").hide(),t=$("#swh-origins-url-patterns").val(),n=$("#swh-search-visit-type").val(),p=!0,!t.startsWith("swh:")){e.next=7;break}return e.prev=1,r=Urls.api_1_resolve_swhid(t),e.next=2,fetch(r);case 2:return i=e.sent,(0,a.Tv)(i),e.next=3,i.json();case 3:s=e.sent,window.location=s.browse_url,e.next=6;break;case 4:return e.prev=4,l=e.catch(1),e.next=5,l.json();case 5:c=e.sent,$("#swh-origin-search-results").hide(),$(".swh-search-pagination").hide(),$("#swh-no-result").text(c.reason),$("#swh-no-result").show();case 6:e.next=10;break;case 7:return e.next=8,(0,a.Th)(t,n);case 8:if(!e.sent){e.next=9;break}u=Urls.browse_origin()+"?origin_url="+encodeURIComponent(t),n&&"any"!==n&&(u+="&visit_type="+n),window.location.href=u,e.next=10;break;case 9:$("#swh-origin-search-results").show(),$(".swh-search-pagination").show(),w(t,100);case 10:case"end":return e.stop()}}),e,null,[[1,4]])})))).apply(this,arguments)}function y(){$(document).ready((function(){if($("#swh-search-origins").submit((function(e){if(e.preventDefault(),e.target.checkValidity()){$(e.target).removeClass("was-validated");var t=$("#swh-origins-url-patterns").val().trim(),n=$("#swh-search-origins-with-visit").prop("checked"),r=$("#swh-filter-empty-visits").prop("checked"),i=$("#swh-search-use-ql").prop("checked"),o=$("#swh-search-origin-metadata").prop("checked"),a=$("#swh-search-visit-type").val(),s=new URLSearchParams;s.append("q",t),n&&s.append("with_visit",n),r&&s.append("with_content",r),i&&s.append("use_ql",null!=i&&i),o&&s.append("search_metadata",o),"any"!==a&&s.append("visit_type",a),window.location=Urls.browse_search()+"?"+s.toString()}else $(e.target).addClass("was-validated")})),$("#origins-next-results-button").click((function(e){$("#origins-next-results-button").hasClass("disabled")||p||(p=!0,u.push(d),v(l),e.preventDefault())})),$("#origins-prev-results-button").click((function(e){$("#origins-prev-results-button").hasClass("disabled")||p||(p=!0,v(u.pop()),e.preventDefault())})),$(".page-item").on("keypress",(function(e){"Enter"===e.key&&$(e.target).trigger("click")})),window.location.search){var e=new URLSearchParams(window.location.search),t=e.get("q"),n=e.has("with_visit"),r=e.has("use_ql"),i=e.has("with_content"),o=e.has("search_metadata"),a=e.get("visit_type");$("#swh-origins-url-patterns").val(t),$("#swh-search-origins-with-visit").prop("checked",n),$("#swh-search-use-ql").prop("checked",null!=r&&r),$("#swh-filter-empty-visits").prop("checked",i),$("#swh-search-origin-metadata").prop("checked",o),a&&$("#swh-search-visit-type").val(a),function(){b.apply(this,arguments)}()}}))}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){"use strict";n.r(r),n.d(r,{generateCitationForObjectType:function(){return a.Lz},generateCitationFromSWHID:function(){return a.u$},initBrowseNavbar:function(){return e.X},initOriginSearch:function(){return i.J},initSideTabs:function(){return a._q},initSnapshotNavigation:function(){return o.N},showIframeInfoModal:function(){return t.T},swhIdContextOptionToggled:function(){return a.iF},swhIdObjectTypeToggled:function(){return a.fV},visitTypeChanged:function(){return e.i}});var e=n(35769),t=n(31887),i=n(97746),o=n(64830),a=n(74264)}(),r}()}));
|
|
3
|
+
//# sourceMappingURL=browse.d5014e5cae44a2cd3e6e.js.map
|