diff --git a/scorecards-site/static/scorecard-visualizer/.last_commit b/scorecards-site/static/scorecard-visualizer/.last_commit new file mode 100644 index 00000000..1e0bba7a --- /dev/null +++ b/scorecards-site/static/scorecard-visualizer/.last_commit @@ -0,0 +1 @@ +c83839360e027f8dc68c18f44f0e04e7d3ad08e6 diff --git a/scorecards-site/static/scorecard-visualizer/asset-manifest.json b/scorecards-site/static/scorecard-visualizer/asset-manifest.json new file mode 100644 index 00000000..9fb83192 --- /dev/null +++ b/scorecards-site/static/scorecard-visualizer/asset-manifest.json @@ -0,0 +1,15 @@ +{ + "files": { + "main.css": "/scorecard-visualizer/static/css/main.a335621d.css", + "main.js": "/scorecard-visualizer/static/js/main.4317218d.js", + "static/js/488.cfa91f5e.chunk.js": "/scorecard-visualizer/static/js/488.cfa91f5e.chunk.js", + "index.html": "/scorecard-visualizer/index.html", + "main.a335621d.css.map": "/scorecard-visualizer/static/css/main.a335621d.css.map", + "main.4317218d.js.map": "/scorecard-visualizer/static/js/main.4317218d.js.map", + "488.cfa91f5e.chunk.js.map": "/scorecard-visualizer/static/js/488.cfa91f5e.chunk.js.map" + }, + "entrypoints": [ + "static/css/main.a335621d.css", + "static/js/main.4317218d.js" + ] +} \ No newline at end of file diff --git a/scorecards-site/static/scorecard-visualizer/favicon.ico b/scorecards-site/static/scorecard-visualizer/favicon.ico new file mode 100644 index 00000000..a11777cc Binary files /dev/null and b/scorecards-site/static/scorecard-visualizer/favicon.ico differ diff --git a/scorecards-site/static/scorecard-visualizer/index.html b/scorecards-site/static/scorecard-visualizer/index.html new file mode 100644 index 00000000..2bc4ff67 --- /dev/null +++ b/scorecards-site/static/scorecard-visualizer/index.html @@ -0,0 +1 @@ +OpenSSF Scorecard API visualizer
\ No newline at end of file diff --git a/scorecards-site/static/scorecard-visualizer/logo192.png b/scorecards-site/static/scorecard-visualizer/logo192.png new file mode 100644 index 00000000..fc44b0a3 Binary files /dev/null and b/scorecards-site/static/scorecard-visualizer/logo192.png differ diff --git a/scorecards-site/static/scorecard-visualizer/logo512.png b/scorecards-site/static/scorecard-visualizer/logo512.png new file mode 100644 index 00000000..a4e47a65 Binary files /dev/null and b/scorecards-site/static/scorecard-visualizer/logo512.png differ diff --git a/scorecards-site/static/scorecard-visualizer/manifest.json b/scorecards-site/static/scorecard-visualizer/manifest.json new file mode 100644 index 00000000..080d6c77 --- /dev/null +++ b/scorecards-site/static/scorecard-visualizer/manifest.json @@ -0,0 +1,25 @@ +{ + "short_name": "React App", + "name": "Create React App Sample", + "icons": [ + { + "src": "favicon.ico", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + }, + { + "src": "logo192.png", + "type": "image/png", + "sizes": "192x192" + }, + { + "src": "logo512.png", + "type": "image/png", + "sizes": "512x512" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +} diff --git a/scorecards-site/static/scorecard-visualizer/robots.txt b/scorecards-site/static/scorecard-visualizer/robots.txt new file mode 100644 index 00000000..e9e57dc4 --- /dev/null +++ b/scorecards-site/static/scorecard-visualizer/robots.txt @@ -0,0 +1,3 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Disallow: diff --git a/scorecards-site/static/scorecard-visualizer/static/css/main.a335621d.css b/scorecards-site/static/scorecard-visualizer/static/css/main.a335621d.css new file mode 100644 index 00000000..472840f3 --- /dev/null +++ b/scorecards-site/static/scorecard-visualizer/static/css/main.a335621d.css @@ -0,0 +1,2 @@ +.text-addition{background-color:#acf2bd}.text-removal{background-color:#fdb8c0;text-decoration:line-through;text-decoration-thickness:-2px}details{background-color:#f4f7f9;border:1.3px solid #000;border-radius:5px;padding:.5em .5em 0}summary{cursor:pointer;font-weight:700;margin:-.5em -.5em 0;padding:.8em}details[open]{padding:.5em}details[open] summary{border-bottom:1px solid #000;margin-bottom:.5em}.loader{margin-top:100px;text-align:center}.loader span{animation:loader .9s infinite alternate;-moz-animation:loader .9s infinite alternate;background:#000;border-radius:50px;display:inline-block;height:10px;margin:50px auto;vertical-align:middle;width:10px}.loader span:nth-of-type(2){animation-delay:.3s;-moz-animation-delay:.3s}.loader span:nth-of-type(3){animation-delay:.6s;-moz-animation-delay:.6s}@keyframes loader{0%{height:10px;opacity:.9;-webkit-transform:translateY(0);width:10px}to{height:24px;opacity:.1;-webkit-transform:translateY(-21px);width:24px}}.not-available-data{color:red;display:inline-block;font-size:24px;font-weight:900}.tooltip{cursor:pointer;font-size:14px;position:relative}.tooltip:before{background:#00000080;border-radius:5px;bottom:100%;color:#fff;content:attr(data-tooltip);left:50%;margin-bottom:15px;padding:5px;position:absolute;transform:translate(-50%)}.tooltip:after{border-left:5px solid #0000;border-right:5px solid #0000;border-top:7px solid #00000080;content:"";height:0;position:absolute;width:0}.tooltip:after,.tooltip:before{opacity:0;transition:opacity .3s ease-in-out;visibility:hidden}.tooltip:hover:after,.tooltip:hover:before{opacity:1;visibility:visible}.tooltip--top:after,.tooltip--top:before{bottom:100%;left:50%;margin-bottom:15px;transform:translate(-50%)}.tooltip--top:after{border-left:5px solid #0000;border-right:5px solid #0000;border-top:7px solid #00000080;margin-bottom:8px}*,:after,:before{box-sizing:border-box}body{padding:40px}h1{font-size:28px;font-weight:600;margin:.5em 0 .8em}h2{font-size:24px}h2,h3{margin-right:1rem}h3{font-size:22px}h4{color:orange;margin:2rem 0 1rem}p{margin:0 0 1em}hr{border:none;border-top:1px solid #eee;margin:1.5rem 0 0}div>div>span{font-size:24px;font-weight:700}div>div>div{margin-top:10px}ul{list-style-type:disc}a{color:#007bff}a:hover{text-decoration:underline}.card__wrapper{padding:.7rem}.card__wrapper li{margin-bottom:.7rem}.heading__wrapper{align-items:center;display:flex;justify-content:space-between}.details__wrapper{background-color:#f4f7f9;font-family:monospace;font-size:14px;font-weight:500;letter-spacing:.3px;line-height:1.2rem;overflow-x:scroll;padding-bottom:.5rem;padding-top:.5rem}.info-badge__wrapper,.score-wrapper{align-items:center;display:flex;flex-direction:row}.info-badge__wrapper{justify-content:space-between;width:100%}.info-score__wrapper{align-items:center;display:flex}.warning-message{background-color:orange;color:#000;font-size:1rem;line-height:1.5rem;padding:10px}.badge,.warning-message{border-radius:5px;display:inline-block;font-weight:600;width:auto}.badge{background-color:#6c757d;color:#fff;font-size:14px;margin-right:1rem;padding:.4rem}.badge-increased{background-color:#188754}.badge-decreased{background-color:#dc3545}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Montserrat,sans-serif;margin:0}#root,body{padding:20px}#root{background-color:#fff;border-radius:4px;box-shadow:0 0 4px #0000001a;margin-bottom:20px} +/*# sourceMappingURL=main.a335621d.css.map*/ \ No newline at end of file diff --git a/scorecards-site/static/scorecard-visualizer/static/css/main.a335621d.css.map b/scorecards-site/static/scorecard-visualizer/static/css/main.a335621d.css.map new file mode 100644 index 00000000..3c104b58 --- /dev/null +++ b/scorecards-site/static/scorecard-visualizer/static/css/main.a335621d.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/main.a335621d.css","mappings":"AAAA,eACE,wBACF,CAEA,cACE,wBAAyB,CACzB,4BAA6B,CAC7B,8BACF,CCRA,QAIE,wBAAyB,CAHzB,uBAAyB,CACzB,iBAAkB,CAClB,mBAEF,CAEA,QAIE,cAAe,CAHf,eAAiB,CACjB,oBAAuB,CACvB,YAEF,CAEA,cACE,YACF,CAEA,sBACE,4BAA8B,CAC9B,kBACF,CCrBA,QAEE,gBAAiB,CADjB,iBAEF,CACA,aAQE,uCAAyC,CACzC,4CAA8C,CAH9C,eAAiB,CACjB,kBAAmB,CANnB,oBAAqB,CAGrB,WAAY,CACZ,gBAAiB,CAHjB,qBAAsB,CACtB,UAOF,CACA,4BACE,mBAAqB,CACrB,wBACF,CACA,4BACE,mBAAqB,CACrB,wBACF,CAEA,kBACE,GAEE,WAAY,CACZ,UAAY,CACZ,+BAAgC,CAHhC,UAIF,CACA,GAEE,WAAY,CACZ,UAAY,CACZ,mCAAoC,CAHpC,UAIF,CACF,CCrCA,oBAEE,SAAU,CADV,oBAAqB,CAErB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HE,iBAAkB,CAElB,oBAAqB,CACrB,eAAgB,CAPhB,UCpGF,CAVA,OAKE,wBAAyB,CADzB,UAAY,CAGZ,cAAe,CAJf,iBAAkB,CADlB,aAQF,CAEA,iBACE,wBACF,CAEA,iBACE,wBACF,CClBA,KAIE,kCAAmC,CACnC,iCAAkC,CAFlC,iCAAqC,CAFrC,QAKF,CAEA,WANE,YAYF,CANA,MACE,qBAAsB,CACtB,iBAAkB,CAClB,4BAAsC,CAEtC,kBACF","sources":["styles/ComparatorDiff.css","styles/Collapsable.css","styles/Loading.css","styles/NoAvailableDataMark.css","styles/ProjectDetails.css","styles/Badge.css","index.css"],"sourcesContent":[".text-addition {\n background-color: #acf2bd;\n}\n\n.text-removal {\n background-color: #fdb8c0;\n text-decoration: line-through;\n text-decoration-thickness: -2px;\n}\n","details {\n border: 1.3px solid black;\n border-radius: 5px;\n padding: 0.5em 0.5em 0;\n background-color: #f4f7f9;\n}\n\nsummary {\n font-weight: bold;\n margin: -0.5em -0.5em 0;\n padding: 0.8em;\n cursor: pointer;\n}\n\ndetails[open] {\n padding: 0.5em;\n}\n\ndetails[open] summary {\n border-bottom: 1px solid black;\n margin-bottom: 0.5em;\n}\n",".loader {\n text-align: center;\n margin-top: 100px;\n}\n.loader span {\n display: inline-block;\n vertical-align: middle;\n width: 10px;\n height: 10px;\n margin: 50px auto;\n background: black;\n border-radius: 50px;\n animation: loader 0.9s infinite alternate;\n -moz-animation: loader 0.9s infinite alternate;\n}\n.loader span:nth-of-type(2) {\n animation-delay: 0.3s;\n -moz-animation-delay: 0.3s;\n}\n.loader span:nth-of-type(3) {\n animation-delay: 0.6s;\n -moz-animation-delay: 0.6s;\n}\n\n@keyframes loader {\n 0% {\n width: 10px;\n height: 10px;\n opacity: 0.9;\n -webkit-transform: translateY(0);\n }\n 100% {\n width: 24px;\n height: 24px;\n opacity: 0.1;\n -webkit-transform: translateY(-21px);\n }\n}\n@-moz-keyframes loader {\n 0% {\n width: 10px;\n height: 10px;\n opacity: 0.9;\n -moz-transform: translateY(0);\n }\n 100% {\n width: 24px;\n height: 24px;\n opacity: 0.1;\n -moz-transform: translateY(-21px);\n }\n}\n",".not-available-data {\n display: inline-block;\n color: red;\n font-size: 24px;\n font-weight: 900;\n}\n\n.tooltip {\n position: relative;\n cursor: pointer;\n font-size: 14px;\n}\n\n.tooltip::before {\n content: attr(data-tooltip);\n position: absolute;\n bottom: 100%;\n left: 50%;\n transform: translate(-50%);\n margin-bottom: 15px;\n color: #fff;\n background: rgba(0, 0, 0, 0.5);\n border-radius: 5px;\n padding: 5px;\n}\n\n.tooltip::after {\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-top: 7px solid rgba(0, 0, 0, 0.5);\n}\n\n.tooltip::before,\n.tooltip::after {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease-in-out;\n}\n\n.tooltip:hover::before,\n.tooltip:hover::after {\n opacity: 1;\n visibility: visible;\n}\n\n.tooltip--top::before,\n.tooltip--top::after {\n bottom: 100%;\n left: 50%;\n transform: translate(-50%);\n margin-bottom: 15px;\n}\n\n.tooltip--top::after {\n margin-bottom: 8px;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-top: 7px solid rgba(0, 0, 0, 0.5);\n}\n","*,\n*:before,\n*:after {\n box-sizing: border-box;\n}\n\nbody {\n padding: 40px;\n}\n\n/* Style the headings and other elements */\nh1 {\n font-size: 28px;\n margin: 0.5em 0 0.8em 0;\n font-weight: 600;\n}\n\nh2 {\n font-size: 24px;\n margin-right: 1rem;\n}\n\nh3 {\n font-size: 22px;\n margin-right: 1rem;\n}\n\nh4 {\n color: orange;\n margin: 2rem 0 1rem 0;\n}\n\np {\n margin: 0 0 1em;\n}\n\nhr {\n border: none;\n border-top: 1px solid #eee;\n margin: 1.5rem 0 0 0;\n}\n\ndiv > div > span {\n font-size: 24px;\n font-weight: bold;\n}\n\ndiv > div > div {\n margin-top: 10px;\n}\n\nul {\n list-style-type: disc;\n}\n\na {\n color: #007bff;\n}\n\na:hover {\n text-decoration: underline;\n}\n\n/* Style the wrapper elements */\n.card__wrapper {\n padding: 0.7rem;\n}\n\n.card__wrapper li {\n margin-bottom: 0.7rem;\n}\n\n.heading__wrapper {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.details__wrapper {\n background-color: #f4f7f9;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n font-size: 14px;\n font-weight: 500;\n font-family: monospace;\n letter-spacing: 0.3px;\n line-height: 1.2rem;\n overflow-x: scroll;\n}\n\n.score-wrapper {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.info-badge__wrapper {\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n}\n\n.info-score__wrapper {\n display: flex;\n align-items: center;\n}\n\n.warning-message {\n width: auto;\n padding: 10px;\n color: black;\n background-color: orange;\n border-radius: 5px;\n font-size: 1rem;\n display: inline-block;\n font-weight: 600;\n line-height: 1.5rem;\n}\n",".badge {\n width: auto;\n padding: 0.4rem;\n margin-right: 1rem;\n color: white;\n background-color: #6c757d;\n border-radius: 5px;\n font-size: 14px;\n display: inline-block;\n font-weight: 600;\n}\n\n.badge-increased {\n background-color: #188754;\n}\n\n.badge-decreased {\n background-color: #dc3545;\n}\n","body {\n margin: 0;\n padding: 20px;\n font-family: \"Montserrat\", sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n#root {\n background-color: #fff;\n border-radius: 4px;\n box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);\n padding: 20px;\n margin-bottom: 20px;\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/scorecards-site/static/scorecard-visualizer/static/js/488.cfa91f5e.chunk.js b/scorecards-site/static/scorecard-visualizer/static/js/488.cfa91f5e.chunk.js new file mode 100644 index 00000000..452163a6 --- /dev/null +++ b/scorecards-site/static/scorecard-visualizer/static/js/488.cfa91f5e.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkscorecard_visualizer=self.webpackChunkscorecard_visualizer||[]).push([[488],{488:(e,n,t)=>{t.r(n),t.d(n,{CLSThresholds:()=>I,FCPThresholds:()=>S,FIDThresholds:()=>N,INPThresholds:()=>G,LCPThresholds:()=>X,TTFBThresholds:()=>$,getCLS:()=>F,getFCP:()=>P,getFID:()=>R,getINP:()=>W,getLCP:()=>Z,getTTFB:()=>ne,onCLS:()=>F,onFCP:()=>P,onFID:()=>R,onINP:()=>W,onLCP:()=>Z,onTTFB:()=>ne});var r,i,o,a,c,u=-1,s=function(e){addEventListener("pageshow",(function(n){n.persisted&&(u=n.timeStamp,e(n))}),!0)},f=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},d=function(){var e=f();return e&&e.activationStart||0},l=function(e,n){var t=f(),r="navigate";return u>=0?r="back-forward-cache":t&&(document.prerendering||d()>0?r="prerender":document.wasDiscarded?r="restore":t.type&&(r=t.type.replace(/_/g,"-"))),{name:e,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},p=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},t||{})),r}}catch(e){}},v=function(e,n,t,r){var i,o;return function(a){n.value>=0&&(a||r)&&((o=n.value-(i||0))||void 0===i)&&(i=n.value,n.delta=o,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n))}},m=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},h=function(e){var n=function(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||e(n)};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},g=function(e){var n=!1;return function(t){n||(e(t),n=!0)}},T=-1,y=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},C=function(e){"hidden"===document.visibilityState&&T>-1&&(T="visibilitychange"===e.type?e.timeStamp:0,L())},E=function(){addEventListener("visibilitychange",C,!0),addEventListener("prerenderingchange",C,!0)},L=function(){removeEventListener("visibilitychange",C,!0),removeEventListener("prerenderingchange",C,!0)},b=function(){return T<0&&(T=y(),E(),s((function(){setTimeout((function(){T=y(),E()}),0)}))),{get firstHiddenTime(){return T}}},w=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},S=[1800,3e3],P=function(e,n){n=n||{},w((function(){var t,r=b(),i=l("FCP"),o=p("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTimer.value&&(r.value=i,r.entries=o,t())},c=p("layout-shift",a);c&&(t=v(e,r,I,n.reportAllChanges),h((function(){a(c.takeRecords()),t(!0)})),s((function(){i=0,r=l("CLS",0),t=v(e,r,I,n.reportAllChanges),m((function(){return t()}))})),setTimeout(t,0))})))},A={passive:!0,capture:!0},k=new Date,D=function(e,n){r||(r=n,i=e,o=new Date,x(removeEventListener),M())},M=function(){if(i>=0&&i1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,n){var t=function(){D(e,n),i()},r=function(){i()},i=function(){removeEventListener("pointerup",t,A),removeEventListener("pointercancel",r,A)};addEventListener("pointerup",t,A),addEventListener("pointercancel",r,A)}(n,e):D(n,e)}},x=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(n){return e(n,B,A)}))},N=[100,300],R=function(e,n){n=n||{},w((function(){var t,o=b(),c=l("FID"),u=function(e){e.startTimen.latency){if(t)t.entries.push(e),t.latency=Math.max(t.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};U[r.id]=r,Q.push(r)}Q.sort((function(e,n){return n.latency-e.latency})),Q.splice(10).forEach((function(e){delete U[e.id]}))}},W=function(e,n){n=n||{},w((function(){var t;j();var r,i=l("INP"),o=function(e){e.forEach((function(e){e.interactionId&&V(e),"first-input"===e.entryType&&!Q.some((function(n){return n.entries.some((function(n){return e.duration===n.duration&&e.startTime===n.startTime}))}))&&V(e)}));var n,t=(n=Math.min(Q.length-1,Math.floor(K()/50)),Q[n]);t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())},a=p("event",o,{durationThreshold:null!==(t=n.durationThreshold)&&void 0!==t?t:40});r=v(e,i,G,n.reportAllChanges),a&&("interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),h((function(){o(a.takeRecords()),i.value<0&&K()>0&&(i.value=0,i.entries=[]),r(!0)})),s((function(){Q=[],J=z(),i=l("INP"),r=v(e,i,G,n.reportAllChanges)})))}))},X=[2500,4e3],Y={},Z=function(e,n){n=n||{},w((function(){var t,r=b(),i=l("LCP"),o=function(e){var n=e[e.length-1];n&&n.startTimeperformance.now())return;t.value=Math.max(o-d(),0),t.entries=[i],r(!0),s((function(){t=l("TTFB",0),(r=v(e,t,$,n.reportAllChanges))(!0)}))}}))}}}]); +//# sourceMappingURL=488.cfa91f5e.chunk.js.map \ No newline at end of file diff --git a/scorecards-site/static/scorecard-visualizer/static/js/488.cfa91f5e.chunk.js.map b/scorecards-site/static/scorecard-visualizer/static/js/488.cfa91f5e.chunk.js.map new file mode 100644 index 00000000..d0d711a9 --- /dev/null +++ b/scorecards-site/static/scorecard-visualizer/static/js/488.cfa91f5e.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/488.cfa91f5e.chunk.js","mappings":"6ZAAA,IAAIA,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,GAAG,EAAEC,EAAE,SAASN,GAAGO,iBAAiB,YAAY,SAASN,GAAGA,EAAEO,YAAYH,EAAEJ,EAAEQ,UAAUT,EAAEC,GAAG,IAAG,EAAG,EAAES,EAAE,WAAW,OAAOC,OAAOC,aAAaA,YAAYC,kBAAkBD,YAAYC,iBAAiB,cAAc,EAAE,EAAEC,EAAE,WAAW,I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\",(function(n){n.persisted&&(a=n.timeStamp,e(n))}),!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType(\"navigation\")[0]},u=function(){var e=c();return e&&e.activationStart||0},f=function(e,n){var t=c(),r=\"navigate\";a>=0?r=\"back-forward-cache\":t&&(document.prerendering||u()>0?r=\"prerender\":document.wasDiscarded?r=\"restore\":t.type&&(r=t.type.replace(/_/g,\"-\")));return{name:e,value:void 0===n?-1:n,rating:\"good\",delta:0,entries:[],id:\"v3-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},s=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},t||{})),r}}catch(e){}},d=function(e,n,t,r){var i,a;return function(o){n.value>=0&&(o||r)&&((a=n.value-(i||0))||void 0===i)&&(i=n.value,n.delta=a,n.rating=function(e,n){return e>n[1]?\"poor\":e>n[0]?\"needs-improvement\":\"good\"}(n.value,t),e(n))}},l=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},p=function(e){var n=function(n){\"pagehide\"!==n.type&&\"hidden\"!==document.visibilityState||e(n)};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},v=function(e){var n=!1;return function(t){n||(e(t),n=!0)}},m=-1,h=function(){return\"hidden\"!==document.visibilityState||document.prerendering?1/0:0},g=function(e){\"hidden\"===document.visibilityState&&m>-1&&(m=\"visibilitychange\"===e.type?e.timeStamp:0,T())},y=function(){addEventListener(\"visibilitychange\",g,!0),addEventListener(\"prerenderingchange\",g,!0)},T=function(){removeEventListener(\"visibilitychange\",g,!0),removeEventListener(\"prerenderingchange\",g,!0)},E=function(){return m<0&&(m=h(),y(),o((function(){setTimeout((function(){m=h(),y()}),0)}))),{get firstHiddenTime(){return m}}},C=function(e){document.prerendering?addEventListener(\"prerenderingchange\",(function(){return e()}),!0):e()},L=[1800,3e3],b=function(e,n){n=n||{},C((function(){var t,r=E(),i=f(\"FCP\"),a=s(\"paint\",(function(e){e.forEach((function(e){\"first-contentful-paint\"===e.name&&(a.disconnect(),e.startTimer.value&&(r.value=i,r.entries=a,t())},u=s(\"layout-shift\",c);u&&(t=d(e,r,w,n.reportAllChanges),p((function(){c(u.takeRecords()),t(!0)})),o((function(){i=0,r=f(\"CLS\",0),t=d(e,r,w,n.reportAllChanges),l((function(){return t()}))})),setTimeout(t,0))})))},A={passive:!0,capture:!0},I=new Date,P=function(r,i){e||(e=i,n=r,t=new Date,k(removeEventListener),F())},F=function(){if(n>=0&&n1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,n){var t=function(){P(e,n),i()},r=function(){i()},i=function(){removeEventListener(\"pointerup\",t,A),removeEventListener(\"pointercancel\",r,A)};addEventListener(\"pointerup\",t,A),addEventListener(\"pointercancel\",r,A)}(n,e):P(n,e)}},k=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(n){return e(n,M,A)}))},D=[100,300],x=function(t,i){i=i||{},C((function(){var a,c=E(),u=f(\"FID\"),l=function(e){e.startTimen.latency){if(t)t.entries.push(e),t.latency=Math.max(t.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};J[r.id]=r,G.push(r)}G.sort((function(e,n){return n.latency-e.latency})),G.splice(10).forEach((function(e){delete J[e.id]}))}},Q=function(e,n){n=n||{},C((function(){var t;q();var r,i=f(\"INP\"),a=function(e){e.forEach((function(e){(e.interactionId&&K(e),\"first-input\"===e.entryType)&&(!G.some((function(n){return n.entries.some((function(n){return e.duration===n.duration&&e.startTime===n.startTime}))}))&&K(e))}));var n,t=(n=Math.min(G.length-1,Math.floor(z()/50)),G[n]);t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())},c=s(\"event\",a,{durationThreshold:null!==(t=n.durationThreshold)&&void 0!==t?t:40});r=d(e,i,j,n.reportAllChanges),c&&(\"interactionId\"in PerformanceEventTiming.prototype&&c.observe({type:\"first-input\",buffered:!0}),p((function(){a(c.takeRecords()),i.value<0&&z()>0&&(i.value=0,i.entries=[]),r(!0)})),o((function(){G=[],_=O(),i=f(\"INP\"),r=d(e,i,j,n.reportAllChanges)})))}))},U=[2500,4e3],V={},W=function(e,n){n=n||{},C((function(){var t,r=E(),i=f(\"LCP\"),a=function(e){var n=e[e.length-1];n&&n.startTimeperformance.now())return;t.value=Math.max(a-u(),0),t.entries=[i],r(!0),o((function(){t=f(\"TTFB\",0),(r=d(e,t,X,n.reportAllChanges))(!0)}))}}))};export{w as CLSThresholds,L as FCPThresholds,D as FIDThresholds,j as INPThresholds,U as LCPThresholds,X as TTFBThresholds,S as getCLS,b as getFCP,x as getFID,Q as getINP,W as getLCP,Z as getTTFB,S as onCLS,b as onFCP,x as onFID,Q as onINP,W as onLCP,Z as onTTFB};\n"],"names":["e","n","t","r","i","a","o","addEventListener","persisted","timeStamp","c","window","performance","getEntriesByType","u","activationStart","f","document","prerendering","wasDiscarded","type","replace","name","value","rating","delta","entries","id","concat","Date","now","Math","floor","random","navigationType","s","PerformanceObserver","supportedEntryTypes","includes","Promise","resolve","then","getEntries","observe","Object","assign","buffered","d","l","requestAnimationFrame","p","visibilityState","v","m","h","g","T","y","removeEventListener","E","setTimeout","firstHiddenTime","C","L","b","forEach","disconnect","startTime","max","push","reportAllChanges","w","S","hadRecentInput","length","takeRecords","A","passive","capture","I","P","k","F","entryType","target","cancelable","processingStart","M","D","x","B","R","H","N","interactionId","min","O","interactionCount","q","durationThreshold","j","_","z","G","J","K","duration","latency","sort","splice","Q","some","PerformanceEventTiming","prototype","U","V","W","X","Y","readyState","Z","responseStart"],"sourceRoot":""} \ No newline at end of file diff --git a/scorecards-site/static/scorecard-visualizer/static/js/main.4317218d.js b/scorecards-site/static/scorecard-visualizer/static/js/main.4317218d.js new file mode 100644 index 00000000..349b574d --- /dev/null +++ b/scorecards-site/static/scorecard-visualizer/static/js/main.4317218d.js @@ -0,0 +1,3 @@ +/*! For license information please see main.4317218d.js.LICENSE.txt */ +(()=>{"use strict";var e={730:(e,t,n)=>{var r=n(43),a=n(853);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n