UNPKG

@nice-move/prettier-plugin-package-json

Version:
1 lines 87.8 kB
import{createRequire as e}from"node:module";var t={16:t=>{t.exports=e(import.meta.url)("url")},23:t=>{t.exports=e(import.meta.url)("util")},33:(e,t,i)=>{const{join:s,basename:r}=i(928),n=e=>(delete e.bin,e),o=e=>{const t=e.bin,i={};let n=!1;return Object.keys(t).forEach((e=>{const o=s("/",r(e.replace(/\\|:/g,"/"))).slice(1);if("string"!=typeof t[e]||!o)return;const a=s("/",t[e].replace(/\\/g,"/")).replace(/\\/g,"/").slice(1);a&&(i[o]=a,n=!0)})),n?e.bin=i:delete e.bin,e};e.exports=e=>e.bin?"string"==typeof e.bin?(e=>e.name?(e.bin={[e.name]:e.bin},o(e)):n(e))(e):Array.isArray(e.bin)?(e=>(e.bin=e.bin.reduce(((e,t)=>(e[r(t)]=t,e)),{}),o(e)))(e):"object"==typeof e.bin?o(e):n(e):n(e)},46:e=>{const t=/^[0-9]+$/,i=(e,i)=>{const s=t.test(e),r=t.test(i);return s&&r&&(e=+e,i=+i),e===i?0:s&&!r?-1:r&&!s?1:e<i?-1:1};e.exports={compareIdentifiers:i,rcompareIdentifiers:(e,t)=>i(t,e)}},54:(e,t,i)=>{var s=i(771),r=i(330);function n(e){try{return s(e),!0}catch(e){return!1}}function o(e,t){var i=t[0].length-e[0].length;return 0!==i?i:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var a=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(o),l=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return-1!==e.indexOf("3.0")?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],c=r.map((function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]})).reduce((function(e,t){var i=t[1];return e[i]=e[i]||[],e[i].push(t[0]),e}),{}),h=Object.keys(c).map((function(e){return[e,c[e]]})).filter((function(e){return 1===e[1].length&&null!==e[0]&&"APL"!==e[0]})).map((function(e){return[e[0],e[1][0]]}));c=void 0;var p=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(h).sort(o),u=function(e){for(var t=0;t<l.length;t++){var i=l[t](e).trim();if(i!==e&&n(i))return i}return null},d=function(e){for(var t=e.toUpperCase(),i=0;i<p.length;i++){var s=p[i];if(t.indexOf(s[0])>-1)return s[1]}return null},f=function(e,t){for(var i=0;i<a.length;i++){var s=a[i],r=s[0];if(e.indexOf(r)>-1){var n=t(e.replace(r,s[1]));if(null!==n)return n}}return null};e.exports=function(e,t){var i=void 0===(t=t||{}).upgrade||!!t.upgrade;function s(e){return i?function(e){return-1!==["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)?e+"-only":-1!==["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)?e.replace(/\+$/,"-or-later"):-1!==["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)?e+"-or-later":e}(e):e}if("string"!=typeof e||0===e.trim().length)throw Error("Invalid argument. Expected non-empty string.");if(n(e=e.trim()))return s(e);var r=e.replace(/\+$/,"").trim();if(n(r))return s(r);var o=u(e);return null!==o||null!==(o=f(e,(function(e){return n(e)?e:u(e)})))||null!==(o=d(e))||null!==(o=f(e,d))?s(o):null}},69:(e,t)=>{t.__esModule=!0,t.defaultOptions=void 0,t.defaultOptions={useTabs:!1,tabWidth:2,expandUsers:!1,keyOrder:["$schema","private","name","version","description","license","author","maintainers","contributors","homepage","repository","bugs","type","exports","main","module","browser","man","preferGlobal","bin","files","directories","scripts","config","sideEffects","types","typings","workspaces","resolutions","dependencies","bundleDependencies","bundledDependencies","peerDependencies","peerDependenciesMeta","optionalDependencies","devDependencies","keywords","engines","engineStrict","os","cpu","publishConfig"]}},172:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var r=s(i(280));function n(e,t){return e.localeCompare(t,"en")}t.default=function(e,t){var i,s=t[e],o=Object.keys(s||{});return 0===o.length?{}:((i={})[e]=(0,r.default)(s,o.sort(n)),i)}},173:e=>{e.exports=JSON.parse('["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]')},186:(e,t,i)=>{var s=[].concat(i(330)).concat(i(483)),r=i(173);e.exports=function(e){var t,i,n=0;function o(){return n<e.length}function a(t){if(t instanceof RegExp){var i=e.slice(n).match(t);if(i)return n+=i[0].length,i[0]}else if(e.indexOf(t,n)===n)return n+=t.length,t}function l(){return a(/[A-Za-z0-9-.]+/)}function c(){var e=l();if(!e)throw new Error("Expected idstring at offset "+n);return e}for(var h=[];o()&&(a(/[ ]*/),o());){var p=(t=void 0,i=void 0,function(){for(var t,i=["WITH","AND","OR","(",")",":","+"],s=0;s<i.length&&!(t=a(i[s]));s++);if("+"===t&&n>1&&" "===e[n-2])throw new Error("Space before `+`");return t&&{type:"OPERATOR",string:t}}()||function(){if(a("DocumentRef-"))return{type:"DOCUMENTREF",string:c()}}()||function(){if(a("LicenseRef-"))return{type:"LICENSEREF",string:c()}}()||(t=n,i=l(),-1!==s.indexOf(i)?{type:"LICENSE",string:i}:-1!==r.indexOf(i)?{type:"EXCEPTION",string:i}:void(n=t)));if(!p)throw new Error("Unexpected `"+e[n]+"` at offset "+n);h.push(p)}return h}},189:(e,t,i)=>{var s=i(486),r=i(484);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),L(function(e){return e.split("\\\\").join(n).split("\\{").join(o).split("\\}").join(a).split("\\,").join(l).split("\\.").join(c)}(e),!0).map(p)):[]};var n="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",l="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function h(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function p(e){return e.split(n).join("\\").split(o).join("{").split(a).join("}").split(l).join(",").split(c).join(".")}function u(e){if(!e)return[""];var t=[],i=r("{","}",e);if(!i)return e.split(",");var s=i.pre,n=i.body,o=i.post,a=s.split(",");a[a.length-1]+="{"+n+"}";var l=u(o);return o.length&&(a[a.length-1]+=l.shift(),a.push.apply(a,l)),t.push.apply(t,a),t}function d(e){return"{"+e+"}"}function f(e){return/^-?0\d/.test(e)}function m(e,t){return e<=t}function g(e,t){return e>=t}function L(e,t){var i=[],n=r("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var o,l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),p=l||c,E=n.body.indexOf(",")>=0;if(!p&&!E)return n.post.match(/,.*\}/)?L(e=n.pre+"{"+n.body+a+n.post):[e];if(p)o=n.body.split(/\.\./);else if(1===(o=u(n.body)).length&&1===(o=L(o[0],!1).map(d)).length)return(y=n.post.length?L(n.post,!1):[""]).map((function(e){return n.pre+o[0]+e}));var S,v=n.pre,y=n.post.length?L(n.post,!1):[""];if(p){var b=h(o[0]),C=h(o[1]),A=Math.max(o[0].length,o[1].length),D=3==o.length?Math.abs(h(o[2])):1,P=m;C<b&&(D*=-1,P=g);var O=o.some(f);S=[];for(var N=b;P(N,C);N+=D){var w;if(c)"\\"===(w=String.fromCharCode(N))&&(w="");else if(w=String(N),O){var x=A-w.length;if(x>0){var I=new Array(x+1).join("0");w=N<0?"-"+I+w.slice(1):I+w}}S.push(w)}}else S=s(o,(function(e){return L(e,!1)}));for(var R=0;R<S.length;R++)for(var $=0;$<y.length;$++){var T=v+S[R]+y[$];(!t||p||T)&&i.push(T)}return i}},248:e=>{e.exports=JSON.parse('{"topLevel":{"dependancies":"dependencies","dependecies":"dependencies","depdenencies":"dependencies","devEependencies":"devDependencies","depends":"dependencies","dev-dependencies":"devDependencies","devDependences":"devDependencies","devDepenencies":"devDependencies","devdependencies":"devDependencies","repostitory":"repository","repo":"repository","prefereGlobal":"preferGlobal","hompage":"homepage","hampage":"homepage","autohr":"author","autor":"author","contributers":"contributors","publicationConfig":"publishConfig","script":"scripts"},"bugs":{"web":"url","name":"url"},"script":{"server":"start","tests":"test"}}')},263:(e,t,i)=>{e.exports=o;var s=i(672);o.fixer=s;var r=i(511),n=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"].map((function(e){return a(e)+"Field"}));function o(e,t,i){!0===t&&(t=null,i=!0),i||(i=!1),t&&!e.private||(t=function(){}),e.scripts&&"node-gyp rebuild"===e.scripts.install&&!e.scripts.preinstall&&(e.gypfile=!0),s.warn=function(){t(r.apply(null,arguments))},n.forEach((function(t){s["fix"+a(t)](e,i)})),e._id=e.name+"@"+e.version}function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}n=n.concat(["dependencies","people","typos"])},265:(e,t,i)=>{const s=i(739);e.exports=(e,t)=>{const i=s(e.trim().replace(/^[=v]+/,""),t);return i?i.version:null}},280:e=>{e.exports=function(e,t){var i,s;"function"==typeof t?s=t:i=t;var r=Object.keys(e);return(i||[]).concat(r.sort(s)).reduce((function(t,i){return-1!==r.indexOf(i)&&(t[i]=e[i]),t}),Object.create(null))}},330:e=>{e.exports=JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]')},336:(e,t,i)=>{var s=i(771),r=i(54),n='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',o=/^SEE LICEN[CS]E IN (.+)$/;function a(e,t){return t.slice(0,e.length)===e}function l(e){if(e.hasOwnProperty("license")){var t=e.license;return a("LicenseRef",t)||a("DocumentRef",t)}return l(e.left)||l(e.right)}e.exports=function(e){var t;try{t=s(e)}catch(t){var i;if("UNLICENSED"===e||"UNLICENCED"===e)return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(i=o.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:i[1]};var a={validForOldPackages:!1,validForNewPackages:!1,warnings:[n]};if(0!==e.trim().length){var c=r(e);c&&a.warnings.push('license is similar to the valid expression "'+c+'"')}return a}return l(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[n]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}},368:e=>{e.exports=function(e){if(!e)return;if("ERROR: No README data found!"===e)return;e=e.trim().split("\n");let t=0;for(;e[t]&&e[t].trim().match(/^(#|$)/);)t++;const i=e.length;let s=t+1;for(;s<i&&e[s].trim();)s++;return e.slice(t,s).join(" ").trim()}},377:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var r=s(i(280)),n=s(i(644)),o=/^(pre|post)/,a=/([:/])/,l=["install","prepare","pack","publish","restart","start","stop","test","version","uninstall"];function c(e,t){if("prepublishOnly"===t)return{prefix:"pre",base:"publish",original:t};var i=o.exec(t),s=i?i[0]:void 0,r=s?t.slice(s.length):t;return(null==e?void 0:e.hasOwnProperty(r))||l.includes(r)?{prefix:s,base:r,original:t}:{prefix:void 0,base:t,original:t}}t.default=function(e){var t=Object.keys(e||{}),i=(0,n.default)(function(e){return function(t,i){for(var s=c(e,t),r=c(e,i),n=s.base.split(a),o=r.base.split(a),l=n.length,h=o.length,p=0;p<Math.min(l,h);p++)if(n[p]!==o[p])return n[p]<o[p]?-1:1;return l!==h?l<h?-1:1:0}}(e),function(e){return function(t,i){var s=c(e,t),r=c(e,i);return"pre"===s.prefix||"post"===r.prefix?-1:"post"===s.prefix||"pre"===r.prefix?1:s.base!==r.base?s.base<r.base?-1:1:0}}(e));return 0===t.length?{}:{scripts:(0,r.default)(e,t.sort(i))}}},405:(e,t,i)=>{const s=i(626);e.exports=(e,t,{gitHosts:i,protocols:r})=>{if(!e)return;const n=(e=>{const t=e.indexOf("#"),i=e.indexOf("/"),s=e.indexOf("/",i+1),r=e.indexOf(":"),n=/\s/.exec(e),o=e.indexOf("@"),a=!n||t>-1&&n.index>t,l=-1===o||t>-1&&o>t,c=-1===r||t>-1&&r>t,h=-1===s||t>-1&&s>t,p=i>0,u=t>-1?"/"!==e[t-1]:!e.endsWith("/"),d=!e.startsWith(".");return a&&p&&u&&d&&l&&c&&h})(e)?`github:${e}`:e,o=s(n,r);if(!o)return;const a=i.byShortcut[o.protocol],l=i.byDomain[o.hostname.startsWith("www.")?o.hostname.slice(4):o.hostname],c=a||l;if(!c)return;const h=i[a||l];let p=null;r[o.protocol]?.auth&&(o.username||o.password)&&(p=`${o.username}${o.password?":"+o.password:""}`);let u=null,d=null,f=null,m=null;try{if(a){let e=o.pathname.startsWith("/")?o.pathname.slice(1):o.pathname;const t=e.indexOf("@");t>-1&&(e=e.slice(t+1));const i=e.lastIndexOf("/");i>-1?(d=decodeURIComponent(e.slice(0,i)),d||(d=null),f=decodeURIComponent(e.slice(i+1))):f=decodeURIComponent(e),f.endsWith(".git")&&(f=f.slice(0,-4)),o.hash&&(u=decodeURIComponent(o.hash.slice(1))),m="shortcut"}else{if(!h.protocols.includes(o.protocol))return;const e=h.extract(o);if(!e)return;d=e.user&&decodeURIComponent(e.user),f=decodeURIComponent(e.project),u=decodeURIComponent(e.committish),m=r[o.protocol]?.name||o.protocol.slice(0,-1)}}catch(e){if(e instanceof URIError)return;throw e}return[c,d,p,f,u,m,t]}},414:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var r=s(i(797)),n=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.some((function(e){return e(t)}))}},o=[/^package.json$/,/^README.*/i,/^CHANGE(S|LOG).*/i,/^HISTORY.*/i,/^LICEN(C|S)E.*/i,/^NOTICE.*/i].map((function(e){return function(t){return e.test(t)}})).reduce((function(e,t){return n(e,t)})),a=[".git","CVS",".svn",".hg",".lock-wscript",".wafpickle-N",".*.swp",".DS_Store","._*","npm-debug.log",".npmrc","node_modules","config.gypi","*.orig","package-lock.json"].map((function(e){return r.default.filter(e)})).reduce((function(e,t){return n(e,t)}));t.default=function(e){var t,i=e.files,s=void 0===i?[]:i,r=e.main,l=n(o,a,(function(e){return e===r})),c=s.filter((t=l,function(e){return!t(e)})).sort().sort((function(e,t){return e.endsWith("/")&&!t.endsWith("/")?-1:!e.endsWith("/")&&t.endsWith("/")?1:0})).sort((function(e,t){return e.startsWith("!")&&!t.startsWith("!")?1:!e.startsWith("!")&&t.startsWith("!")?-1:0}));return c.length>0?{files:c}:{}}},439:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},483:e=>{e.exports=JSON.parse('["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]')},484:e=>{function t(e,t,r){e instanceof RegExp&&(e=i(e,r)),t instanceof RegExp&&(t=i(t,r));var n=s(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function i(e,t){var i=t.match(e);return i?i[0]:null}function s(e,t,i){var s,r,n,o,a,l=i.indexOf(e),c=i.indexOf(t,l+1),h=l;if(l>=0&&c>0){if(e===t)return[l,c];for(s=[],n=i.length;h>=0&&!a;)h==l?(s.push(h),l=i.indexOf(e,h+1)):1==s.length?a=[s.pop(),c]:((r=s.pop())<n&&(n=r,o=c),c=i.indexOf(t,h+1)),h=l<c&&l>=0?l:c;s.length&&(a=[n,o])}return a}e.exports=t,t.range=s},486:e=>{e.exports=function(e,i){for(var s=[],r=0;r<e.length;r++){var n=i(e[r],r);t(n)?s.push.apply(s,n):s.push(n)}return s};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},511:(e,t,i)=>{var s=i(23),r=i(856);function n(e,t,i){return i&&(e=i+"['"+e+"']",t=i+"['"+t+"']"),s.format(r.typo,e,t)}e.exports=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if("typo"===t)return n.apply(null,e);var i=r[t]?r[t]:t+": '%s'";return e.unshift(i),s.format.apply(null,e)}},534:e=>{const t=Object.freeze({loose:!0}),i=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:i},580:e=>{e.exports=function(e){var t=0;function i(){return t<e.length}function s(){return i()?e[t]:null}function r(){if(!i())throw new Error;t++}function n(e){var t=s();if(t&&"OPERATOR"===t.type&&e===t.string)return r(),t.string}function o(e,t){return function i(){var s=t();if(s){if(!n(e))return s;var r=i();if(!r)throw new Error("Expected expression");return{left:s,conjunction:e.toLowerCase(),right:r}}}}var a=o("AND",(function(){return function(){if(n("(")){var e=l();if(!n(")"))throw new Error("Expected `)`");return e}}()||function(){var e=t,i="",o=s();if("DOCUMENTREF"===o.type&&(r(),i+="DocumentRef-"+o.string+":",!n(":")))throw new Error("Expected `:` after `DocumentRef-...`");if("LICENSEREF"===(o=s()).type)return r(),{license:i+="LicenseRef-"+o.string};t=e}()||function(){var e=s();if(e&&"LICENSE"===e.type){r();var t={license:e.string};n("+")&&(t.plus=!0);var i=function(){if(n("WITH")){var e=s();if(e&&"EXCEPTION"===e.type)return r(),e.string;throw new Error("Expected exception after `WITH`")}}();return i&&(t.exception=i),t}}()})),l=o("OR",a),c=l();if(!c||i())throw new Error("Syntax error");return c}},582:e=>{e.exports=function(){return/^\s*([^<(]*?)\s*([<(]([^>)]*?)[>)])?\s*([<(]([^>)]*?)[>)])*\s*$/}},606:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;const i="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,s=new Set,r="object"==typeof process&&process?process:{},n=(e,t,i,s)=>{"function"==typeof r.emitWarning?r.emitWarning(e,t,i,s):console.error(`[${i}] ${t}: ${e}`)};let o=globalThis.AbortController,a=globalThis.AbortSignal;if(void 0===o){a=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},o=class{constructor(){t()}signal=new a;abort(e){if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(const t of this.signal._onabort)t(e);this.signal.onabort?.(e)}}};let e="1"!==r.env?.LRU_CACHE_IGNORE_AC_WARNING;const t=()=>{e&&(e=!1,n("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}Symbol("type");const l=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),c=e=>l(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?h:null:null;class h extends Array{constructor(e){super(e),this.fill(0)}}class p{heap;length;static#e=!1;static create(e){const t=c(e);if(!t)return[];p.#e=!0;const i=new p(e,t);return p.#e=!1,i}constructor(e,t){if(!p.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class u{#t;#i;#s;#r;#n;#o;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#l;#c;#h;#p;#u;#d;#f;#m;#g;#L;#E;#S;#v;#y;#b;#C;static unsafeExposeInternals(e){return{starts:e.#S,ttls:e.#v,sizes:e.#E,keyMap:e.#c,keyList:e.#h,valList:e.#p,next:e.#u,prev:e.#d,get head(){return e.#f},get tail(){return e.#m},free:e.#g,isBackgroundFetch:t=>e.#A(t),backgroundFetch:(t,i,s,r)=>e.#D(t,i,s,r),moveToTail:t=>e.#P(t),indexes:t=>e.#O(t),rindexes:t=>e.#N(t),isStale:t=>e.#w(t)}}get max(){return this.#t}get maxSize(){return this.#i}get calculatedSize(){return this.#l}get size(){return this.#a}get fetchMethod(){return this.#n}get memoMethod(){return this.#o}get dispose(){return this.#s}get disposeAfter(){return this.#r}constructor(e){const{max:t=0,ttl:i,ttlResolution:r=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:h,allowStale:d,dispose:f,disposeAfter:m,noDisposeOnSet:g,noUpdateTTL:L,maxSize:E=0,maxEntrySize:S=0,sizeCalculation:v,fetchMethod:y,memoMethod:b,noDeleteOnFetchRejection:C,noDeleteOnStaleGet:A,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:P,ignoreFetchAbort:O}=e;if(0!==t&&!l(t))throw new TypeError("max option must be a nonnegative integer");const N=t?c(t):Array;if(!N)throw new Error("invalid max value: "+t);if(this.#t=t,this.#i=E,this.maxEntrySize=S||this.#i,this.sizeCalculation=v,this.sizeCalculation){if(!this.#i&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==b&&"function"!=typeof b)throw new TypeError("memoMethod must be a function if defined");if(this.#o=b,void 0!==y&&"function"!=typeof y)throw new TypeError("fetchMethod must be a function if specified");if(this.#n=y,this.#b=!!y,this.#c=new Map,this.#h=new Array(t).fill(void 0),this.#p=new Array(t).fill(void 0),this.#u=new N(t),this.#d=new N(t),this.#f=0,this.#m=0,this.#g=p.create(t),this.#a=0,this.#l=0,"function"==typeof f&&(this.#s=f),"function"==typeof m?(this.#r=m,this.#L=[]):(this.#r=void 0,this.#L=void 0),this.#y=!!this.#s,this.#C=!!this.#r,this.noDisposeOnSet=!!g,this.noUpdateTTL=!!L,this.noDeleteOnFetchRejection=!!C,this.allowStaleOnFetchRejection=!!D,this.allowStaleOnFetchAbort=!!P,this.ignoreFetchAbort=!!O,0!==this.maxEntrySize){if(0!==this.#i&&!l(this.#i))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#x()}if(this.allowStale=!!d,this.noDeleteOnStaleGet=!!A,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!h,this.ttlResolution=l(r)||0===r?r:1,this.ttlAutopurge=!!o,this.ttl=i||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#I()}if(0===this.#t&&0===this.ttl&&0===this.#i)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#t&&!this.#i){const e="LRU_CACHE_UNBOUNDED";(e=>!s.has(e))(e)&&(s.add(e),n("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,u))}}getRemainingTTL(e){return this.#c.has(e)?1/0:0}#I(){const e=new h(this.#t),t=new h(this.#t);this.#v=e,this.#S=t,this.#R=(s,r,n=i.now())=>{if(t[s]=0!==r?n:0,e[s]=r,0!==r&&this.ttlAutopurge){const e=setTimeout((()=>{this.#w(s)&&this.#$(this.#h[s],"expire")}),r+1);e.unref&&e.unref()}},this.#T=s=>{t[s]=0!==e[s]?i.now():0},this.#G=(i,n)=>{if(e[n]){const o=e[n],a=t[n];if(!o||!a)return;i.ttl=o,i.start=a,i.now=s||r();const l=i.now-a;i.remainingTTL=o-l}};let s=0;const r=()=>{const e=i.now();if(this.ttlResolution>0){s=e;const t=setTimeout((()=>s=0),this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=i=>{const n=this.#c.get(i);if(void 0===n)return 0;const o=e[n],a=t[n];return o&&a?o-((s||r())-a):1/0},this.#w=i=>{const n=t[i],o=e[i];return!!o&&!!n&&(s||r())-n>o}}#T=()=>{};#G=()=>{};#R=()=>{};#w=()=>!1;#x(){const e=new h(this.#t);this.#l=0,this.#E=e,this.#F=t=>{this.#l-=e[t],e[t]=0},this.#k=(e,t,i,s)=>{if(this.#A(t))return 0;if(!l(i)){if(!s)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof s)throw new TypeError("sizeCalculation must be a function");if(i=s(t,e),!l(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return i},this.#M=(t,i,s)=>{if(e[t]=i,this.#i){const i=this.#i-e[t];for(;this.#l>i;)this.#B(!0)}this.#l+=e[t],s&&(s.entrySize=i,s.totalCalculatedSize=this.#l)}}#F=e=>{};#M=(e,t,i)=>{};#k=(e,t,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#m;this.#U(t)&&(!e&&this.#w(t)||(yield t),t!==this.#f);)t=this.#d[t]}*#N({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#f;this.#U(t)&&(!e&&this.#w(t)||(yield t),t!==this.#m);)t=this.#u[t]}#U(e){return void 0!==e&&this.#c.get(this.#h[e])===e}*entries(){for(const e of this.#O())void 0===this.#p[e]||void 0===this.#h[e]||this.#A(this.#p[e])||(yield[this.#h[e],this.#p[e]])}*rentries(){for(const e of this.#N())void 0===this.#p[e]||void 0===this.#h[e]||this.#A(this.#p[e])||(yield[this.#h[e],this.#p[e]])}*keys(){for(const e of this.#O()){const t=this.#h[e];void 0===t||this.#A(this.#p[e])||(yield t)}}*rkeys(){for(const e of this.#N()){const t=this.#h[e];void 0===t||this.#A(this.#p[e])||(yield t)}}*values(){for(const e of this.#O())void 0===this.#p[e]||this.#A(this.#p[e])||(yield this.#p[e])}*rvalues(){for(const e of this.#N())void 0===this.#p[e]||this.#A(this.#p[e])||(yield this.#p[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(const i of this.#O()){const s=this.#p[i],r=this.#A(s)?s.__staleWhileFetching:s;if(void 0!==r&&e(r,this.#h[i],this))return this.get(this.#h[i],t)}}forEach(e,t=this){for(const i of this.#O()){const s=this.#p[i],r=this.#A(s)?s.__staleWhileFetching:s;void 0!==r&&e.call(t,r,this.#h[i],this)}}rforEach(e,t=this){for(const i of this.#N()){const s=this.#p[i],r=this.#A(s)?s.__staleWhileFetching:s;void 0!==r&&e.call(t,r,this.#h[i],this)}}purgeStale(){let e=!1;for(const t of this.#N({allowStale:!0}))this.#w(t)&&(this.#$(this.#h[t],"expire"),e=!0);return e}info(e){const t=this.#c.get(e);if(void 0===t)return;const s=this.#p[t],r=this.#A(s)?s.__staleWhileFetching:s;if(void 0===r)return;const n={value:r};if(this.#v&&this.#S){const e=this.#v[t],s=this.#S[t];if(e&&s){const t=e-(i.now()-s);n.ttl=t,n.start=Date.now()}}return this.#E&&(n.size=this.#E[t]),n}dump(){const e=[];for(const t of this.#O({allowStale:!0})){const s=this.#h[t],r=this.#p[t],n=this.#A(r)?r.__staleWhileFetching:r;if(void 0===n||void 0===s)continue;const o={value:n};if(this.#v&&this.#S){o.ttl=this.#v[t];const e=i.now()-this.#S[t];o.start=Math.floor(Date.now()-e)}this.#E&&(o.size=this.#E[t]),e.unshift([s,o])}return e}load(e){this.clear();for(const[t,s]of e){if(s.start){const e=Date.now()-s.start;s.start=i.now()-e}this.set(t,s.value,s)}}set(e,t,i={}){if(void 0===t)return this.delete(e),this;const{ttl:s=this.ttl,start:r,noDisposeOnSet:n=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:a}=i;let{noUpdateTTL:l=this.noUpdateTTL}=i;const c=this.#k(e,t,i.size||0,o);if(this.maxEntrySize&&c>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#$(e,"set"),this;let h=0===this.#a?void 0:this.#c.get(e);if(void 0===h)h=0===this.#a?this.#m:0!==this.#g.length?this.#g.pop():this.#a===this.#t?this.#B(!1):this.#a,this.#h[h]=e,this.#p[h]=t,this.#c.set(e,h),this.#u[this.#m]=h,this.#d[h]=this.#m,this.#m=h,this.#a++,this.#M(h,c,a),a&&(a.set="add"),l=!1;else{this.#P(h);const i=this.#p[h];if(t!==i){if(this.#b&&this.#A(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=i;void 0===t||n||(this.#y&&this.#s?.(t,e,"set"),this.#C&&this.#L?.push([t,e,"set"]))}else n||(this.#y&&this.#s?.(i,e,"set"),this.#C&&this.#L?.push([i,e,"set"]));if(this.#F(h),this.#M(h,c,a),this.#p[h]=t,a){a.set="replace";const e=i&&this.#A(i)?i.__staleWhileFetching:i;void 0!==e&&(a.oldValue=e)}}else a&&(a.set="update")}if(0===s||this.#v||this.#I(),this.#v&&(l||this.#R(h,s,r),a&&this.#G(a,h)),!n&&this.#C&&this.#L){const e=this.#L;let t;for(;t=e?.shift();)this.#r?.(...t)}return this}pop(){try{for(;this.#a;){const e=this.#p[this.#f];if(this.#B(!0),this.#A(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#C&&this.#L){const e=this.#L;let t;for(;t=e?.shift();)this.#r?.(...t)}}}#B(e){const t=this.#f,i=this.#h[t],s=this.#p[t];return this.#b&&this.#A(s)?s.__abortController.abort(new Error("evicted")):(this.#y||this.#C)&&(this.#y&&this.#s?.(s,i,"evict"),this.#C&&this.#L?.push([s,i,"evict"])),this.#F(t),e&&(this.#h[t]=void 0,this.#p[t]=void 0,this.#g.push(t)),1===this.#a?(this.#f=this.#m=0,this.#g.length=0):this.#f=this.#u[t],this.#c.delete(i),this.#a--,t}has(e,t={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=t,r=this.#c.get(e);if(void 0!==r){const e=this.#p[r];if(this.#A(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#w(r))return i&&this.#T(r),s&&(s.has="hit",this.#G(s,r)),!0;s&&(s.has="stale",this.#G(s,r))}else s&&(s.has="miss");return!1}peek(e,t={}){const{allowStale:i=this.allowStale}=t,s=this.#c.get(e);if(void 0===s||!i&&this.#w(s))return;const r=this.#p[s];return this.#A(r)?r.__staleWhileFetching:r}#D(e,t,i,s){const r=void 0===t?void 0:this.#p[t];if(this.#A(r))return r;const n=new o,{signal:a}=i;a?.addEventListener("abort",(()=>n.abort(a.reason)),{signal:n.signal});const l={signal:n.signal,options:i,context:s},c=(s,r=!1)=>{const{aborted:o}=n.signal,a=i.ignoreFetchAbort&&void 0!==s;if(i.status&&(o&&!r?(i.status.fetchAborted=!0,i.status.fetchError=n.signal.reason,a&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),o&&!a&&!r)return h(n.signal.reason);const c=p;return this.#p[t]===p&&(void 0===s?c.__staleWhileFetching?this.#p[t]=c.__staleWhileFetching:this.#$(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,s,l.options))),s},h=s=>{const{aborted:r}=n.signal,o=r&&i.allowStaleOnFetchAbort,a=o||i.allowStaleOnFetchRejection,l=a||i.noDeleteOnFetchRejection,c=p;if(this.#p[t]===p&&(l&&void 0!==c.__staleWhileFetching?o||(this.#p[t]=c.__staleWhileFetching):this.#$(e,"fetch")),a)return i.status&&void 0!==c.__staleWhileFetching&&(i.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw s};i.status&&(i.status.fetchDispatched=!0);const p=new Promise(((t,s)=>{const o=this.#n?.(e,r,l);o&&o instanceof Promise&&o.then((e=>t(void 0===e?void 0:e)),s),n.signal.addEventListener("abort",(()=>{i.ignoreFetchAbort&&!i.allowStaleOnFetchAbort||(t(void 0),i.allowStaleOnFetchAbort&&(t=e=>c(e,!0)))}))})).then(c,(e=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=e),h(e)))),u=Object.assign(p,{__abortController:n,__staleWhileFetching:r,__returned:void 0});return void 0===t?(this.set(e,u,{...l.options,status:void 0}),t=this.#c.get(e)):this.#p[t]=u,u}#A(e){if(!this.#b)return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof o}async fetch(e,t={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:p=this.allowStaleOnFetchRejection,ignoreFetchAbort:u=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:f,forceRefresh:m=!1,status:g,signal:L}=t;if(!this.#b)return g&&(g.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,status:g});const E={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,ttl:n,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:p,allowStaleOnFetchAbort:d,ignoreFetchAbort:u,status:g,signal:L};let S=this.#c.get(e);if(void 0===S){g&&(g.fetch="miss");const t=this.#D(e,S,E,f);return t.__returned=t}{const t=this.#p[S];if(this.#A(t)){const e=i&&void 0!==t.__staleWhileFetching;return g&&(g.fetch="inflight",e&&(g.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}const r=this.#w(S);if(!m&&!r)return g&&(g.fetch="hit"),this.#P(S),s&&this.#T(S),g&&this.#G(g,S),t;const n=this.#D(e,S,E,f),o=void 0!==n.__staleWhileFetching&&i;return g&&(g.fetch=r?"stale":"refresh",o&&r&&(g.returnedStale=!0)),o?n.__staleWhileFetching:n.__returned=n}}async forceFetch(e,t={}){const i=await this.fetch(e,t);if(void 0===i)throw new Error("fetch() returned undefined");return i}memo(e,t={}){const i=this.#o;if(!i)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:r,...n}=t,o=this.get(e,n);if(!r&&void 0!==o)return o;const a=i(e,o,{options:n,context:s});return this.set(e,a,n),a}get(e,t={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:n}=t,o=this.#c.get(e);if(void 0!==o){const t=this.#p[o],a=this.#A(t);return n&&this.#G(n,o),this.#w(o)?(n&&(n.get="stale"),a?(n&&i&&void 0!==t.__staleWhileFetching&&(n.returnedStale=!0),i?t.__staleWhileFetching:void 0):(r||this.#$(e,"expire"),n&&i&&(n.returnedStale=!0),i?t:void 0)):(n&&(n.get="hit"),a?t.__staleWhileFetching:(this.#P(o),s&&this.#T(o),t))}n&&(n.get="miss")}#j(e,t){this.#d[t]=e,this.#u[e]=t}#P(e){e!==this.#m&&(e===this.#f?this.#f=this.#u[e]:this.#j(this.#d[e],this.#u[e]),this.#j(this.#m,e),this.#m=e)}delete(e){return this.#$(e,"delete")}#$(e,t){let i=!1;if(0!==this.#a){const s=this.#c.get(e);if(void 0!==s)if(i=!0,1===this.#a)this.#_(t);else{this.#F(s);const i=this.#p[s];if(this.#A(i)?i.__abortController.abort(new Error("deleted")):(this.#y||this.#C)&&(this.#y&&this.#s?.(i,e,t),this.#C&&this.#L?.push([i,e,t])),this.#c.delete(e),this.#h[s]=void 0,this.#p[s]=void 0,s===this.#m)this.#m=this.#d[s];else if(s===this.#f)this.#f=this.#u[s];else{const e=this.#d[s];this.#u[e]=this.#u[s];const t=this.#u[s];this.#d[t]=this.#d[s]}this.#a--,this.#g.push(s)}}if(this.#C&&this.#L?.length){const e=this.#L;let t;for(;t=e?.shift();)this.#r?.(...t)}return i}clear(){return this.#_("delete")}#_(e){for(const t of this.#N({allowStale:!0})){const i=this.#p[t];if(this.#A(i))i.__abortController.abort(new Error("deleted"));else{const s=this.#h[t];this.#y&&this.#s?.(i,s,e),this.#C&&this.#L?.push([i,s,e])}}if(this.#c.clear(),this.#p.fill(void 0),this.#h.fill(void 0),this.#v&&this.#S&&(this.#v.fill(0),this.#S.fill(0)),this.#E&&this.#E.fill(0),this.#f=0,this.#m=0,this.#g.length=0,this.#l=0,this.#a=0,this.#C&&this.#L){const e=this.#L;let t;for(;t=e?.shift();)this.#r?.(...t)}}}t.LRUCache=u},626:(e,t,i)=>{const s=i(16),r=(e,t,i)=>{const s=e.indexOf(i);return e.lastIndexOf(t,s>-1?s:1/0)},n=e=>{try{return new s.URL(e)}catch{}};e.exports=(e,t)=>{const i=t?((e,t)=>{const i=e.indexOf(":"),s=e.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(t,s))return e;const r=e.indexOf("@");return r>-1?r>i?`git+ssh://${e}`:e:e.indexOf("//")===i+1?e:`${e.slice(0,i+1)}//${e.slice(i+1)}`})(e,t):e;return n(i)||n((e=>{const t=r(e,"@","#"),i=r(e,":","#");return i>t&&(e=e.slice(0,i)+"/"+e.slice(i+1)),-1===r(e,":","#")&&-1===e.indexOf("//")&&(e=`git+ssh://${e}`),e})(i))}},644:(e,t)=>{function i(e,t){var s=e[0],r=e.slice(1),n=s&&t(s);return void 0===n&&r.length?i(r,t):n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,s){return i(e,function(e,t){return function(i){var s=i(e,t);return 0===s?void 0:s}}(t,s))||0}}},672:(e,t,i)=>{var s=i(954),r=i(265),n=i(336),o=i(857),a=i(995),l=["dependencies","devDependencies","optionalDependencies"],c=i(368),h=i(16),p=i(248),u=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf(".");function d(e,t){return e.author&&(e.author=t(e.author)),["maintainers","contributors"].forEach((function(i){Array.isArray(e[i])&&(e[i]=e[i].map(t))})),e}function f(e){if("string"==typeof e)return e;var t=e.name||"",i=e.url||e.web,s=i?" ("+i+")":"",r=e.email||e.mail;return t+(r?" <"+r+">":"")+s}function m(e){if("string"!=typeof e)return e;var t=e.match(/^([^(<]+)/),i=e.match(/\(([^()]+)\)/),s=e.match(/<([^<>]+)>/),r={};return t&&t[0].trim()&&(r.name=t[0].trim()),s&&(r.email=s[1]),i&&(r.url=i[1]),r}e.exports={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");"string"==typeof e.repository&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var i=o.fromUrl(t);i&&(t=e.repository.url="shortcut"===i.getDefaultRepresentation()?i.https():i.toString())}t.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(p.topLevel).forEach((function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,p.topLevel[t])}),this)},fixScriptsField:function(e){if(e.scripts)return"object"!=typeof e.scripts?(this.warn("nonObjectScripts"),void delete e.scripts):void Object.keys(e.scripts).forEach((function(t){"string"!=typeof e.scripts[t]?(this.warn("nonStringScript"),delete e.scripts[t]):p.script[t]&&!e.scripts[p.script[t]]&&this.warn("typo",t,p.script[t],"scripts")}),this)},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter((function(e){return!(!e||"string"!=typeof e)||(this.warn("invalidFilename",e),!1)}),this))},fixBinField:function(e){if(e.bin&&"string"==typeof e.bin){var t,i={};(t=e.name.match(/^@[^/]+[/](.*)$/))?i[t[1]]=e.bin:i[e.name]=e.bin,e.bin=i}},fixManField:function(e){e.man&&"st