1import{w as Le,x as Re,y as w}from"/3ed/build/_shared/chunk-SWBLOF4V.js";import{c as R,e as $n}from"/3ed/build/_shared/chunk-RAQ24GF6.js";var Oe=R((br,xi)=>{xi.exports=["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","ALGLIB-Documentation","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","Advanced-Cryptics-Dictionary","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","Artistic-dist","Aspell-RU","BOLA-1.1","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","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-Tso","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-Mark-Modifications","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","Buddy","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CAPEC-tou","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","CryptoSwift","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-DTD","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","ESA-PL-permissive-2.4","ESA-PL-strong-copyleft-2.4","ESA-PL-weak-copyleft-2.4","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","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","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","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPN
1D-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-SMC","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","HPND-sell-variant-critical-systems","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ISO-permission","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-STK","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MMPL-1.0.1","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-TNT","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","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","OSC-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OSSP","OpenMDW-1.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","ParaType-Free-Font-1.3","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","SGMLUG-PM","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-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","TekHVC","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","UnRAR","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","Vixie-Cron","W3C","W3C-19980720","W3C-20150513","WTFNMFPL","WTFPL","Watcom-1.0","Widget-Workshop","WordNet","Wsuipa","X11","X11-distribute-modifications-variant","X11-no-permit-persons","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","g
1nuplot","gtkbook","hdparm","hyphen-bulgarian","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","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"]});var an=R((vr,Ei)=>{Ei.exports=["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"]});var on=R((gr,Gi)=>{Gi.exports=["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"]});var cn=R((hr,sn)=>{"use strict";var Ii=[].concat(Oe()).concat(an()),Ti=on();sn.exports=function(e){var n=0;function i(){return n<e.length}function t(A){if(A instanceof RegExp){var b=e.slice(n),g=b.match(A);if(g)return n+=g[0].length,g[0]}else if(e.indexOf(A,n)===n)return n+=A.length,A}function r(){t(/[ ]*/)}function o(){for(var A,b=["WITH","AND","OR","(",")",":","+"],g=0;g<b.length&&(A=t(b[g]),!A);g++);if(A==="+"&&n>1&&e[n-2]===" ")throw new Error("Space before `+`");return A&&{type:"OPERATOR",string:A}}function c(){return t(/[A-Za-z0-9-.]+/)}function l(){var A=c();if(!A)throw new Error("Expected idstring at offset "+n);return A}function m(){if(t("DocumentRef-")){var A=l();return{type:"DOCUMENTREF",string:A}}}function d(){if(t("LicenseRef-")){var A=l();return{type:"LICENSEREF",string:A}}}function p(){var A=n,b=c();if(Ii.indexOf(b)!==-1)return{type:"LICENSE",string:b};if(Ti.indexOf(b)!==-1)return{type:"EXCEPTION",string:b};n=A}function v(){return o()||m()||d()||p()}for(var G=[];i()&&(r(),!!i());){var _=v();if(!_)throw new Error("Unexpected `"+e[n]+"` at offset "+n);G.push(_)}return G}});var un=R((Ar,ln)=>{"use strict";ln.exports=function(e){var n=0;function i(){return n<e.length}function t(){return i()?e[n]:null}function r(){if(!i())throw new Error;n++}function o(b){var g=t();if(g&&g.type==="OPERATOR"&&b===g.string)return r(),g.string}function c(){if(o("WITH")){var b=t();if(b&&b.type==="EXCEPTION")return r(),b.string;throw new Error("Expected exception after `WITH`")}}function l(){var b=n,g="",I=t();if(I.type==="DOCUMENTREF"&&(r(),g+="DocumentRef-"+I.string+":",!o(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(I=t(),I.type==="LICENSEREF")return r(),g+="LicenseRef-"+I.string,{license:g};n=b}function m(){var b=t();if(b&&b.type==="LICENSE"){r();var g={license:b.string};o("+")&&(g.plus=!0);var I=c();return I&&(g.exception=I),g}}function d(){var b=o("(");if(b){var g=_();if(!o(")"))throw new Error("Expected `)`");return g}}function p(){return d()||l()||m()}function v(b,g){return function I(){var fe=g();if(fe){if(!o(b))return fe;var Me=I();if(!Me)throw new Error("Expected expression");return{left:fe,conjunction:b.toLowerCase(),right:Me}}}}var G=v("AND",p),_=v("OR",G),A=_();if(!A||i())throw new Error("Syntax error");return A}});var dn=R((Dr,mn)=>{"use strict";var _i=cn(),Bi=un();mn.exports=function(e){return Bi(_i(e))}});var gn=R((Nr,vn)=>{var Fi=dn(),Mi=Oe();function ce(e){try{return Fi(e),!0}catch{return!1}}function bn(e,n){var i=n[0].length-e[0].length;return i!==0?i:e[0].toUpperCase().localeCompare(n[0].toUpperCase())}var fn=[["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
1LICENSE","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(bn),Ri=0,wi=1,Ln=[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 e.indexOf("3.0")!==-1?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"}],xe=Mi.map(function(e){var n=/^(.*)-\d+\.\d+$/.exec(e);return n?[n[0],n[1]]:[e,null]}).reduce(function(e,n){var i=n[1];return e[i]=e[i]||[],e[i].push(n[0]),e},{}),Ui=Object.keys(xe).map(function(n){return[n,xe[n]]}).filter(function(n){return n[1].length===1&&n[0]!==null&&n[0]!=="APL"}).map(function(n){return[n[0],n[1][0]]});xe=void 0;var pn=[["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(Ui).sort(bn),ki=0,$i=1,Cn=function(e){for(var n=0;n<Ln.length;n++){var i=Ln[n](e).trim();if(i!==e&&ce(i))return i}return null},Sn=function(e){for(var n=e.toUpperCase(),i=0;i<pn.length;i++){var t=pn[i];if(n.indexOf(t[ki])>-1)return t[$i]}return null},Pn=function(e,n){for(var i=0;i<fn.length;i++){var t=fn[i],r=t[Ri];if(e.indexOf(r)>-1){var o=e.replace(r,t[wi]),c=n(o);if(c!==null)return c}}return null};
1vn.exports=function(e,n){n=n||{};var i=n.upgrade===void 0?!0:!!n.upgrade;function t(l){return i?Yi(l):l}var r=typeof e=="string"&&e.trim().length!==0;if(!r)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),ce(e))return t(e);var o=e.replace(/\+$/,"").trim();if(ce(o))return t(o);var c=Cn(e);return c!==null||(c=Pn(e,function(l){return ce(l)?l:Cn(l)}),c!==null)||(c=Sn(e),c!==null)||(c=Pn(e,Sn),c!==null)?t(c):null};function Yi(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-only":["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)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}});var Yn=/^10\.\d{4,9}\/[-._;()/:A-Z0-9]+$/i;function x(e){return e?e.match(Yn)!==null:!1}var we={test(e){return!!e.hostname.match(/(?:dx\.)?(?:www\.)?doi\.org/)},parse(e){return e.pathname.replace(/^\//,"")}},Hn={test(e){return e.hostname.endsWith("elifesciences.org")&&/^\/(?:articles|reviewed-preprints)\/\d+$/.test(e.pathname)},parse(e){return`10.7554/eLife.${e.pathname.replace(/^\/(?:articles|reviewed-preprints)\//,"")}`}},jn={test(e){return e.hostname.endsWith("zenodo.org")&&!!e.pathname.match(/^\/(?:record|badge\/latestdoi)\//)},parse(e){return`10.5281/zenodo.${e.pathname.replace(/^\/(?:record|badge\/latestdoi)\//,"")}`}},Wn={test(e){return e.hostname.endsWith("biorxiv.org")&&!!z(e).find(x)},parse(e){var n;return(n=z(e).find(x))===null||n===void 0?void 0:n.replace(/v\d+(\.[a-zA-Z-]+)?$/,"")}};function z(e){let n=e.pathname.split("/").filter(i=>!!i);return n.slice(0,-1).map((i,t)=>`${i}/${n[t+1]}`)}var Kn={test(e){return!!z(e).find(x)},parse(e){return z(e).find(x)}},zn={test(e){return x(e.searchParams.get("id"))},parse(e){var n;return(n=e.searchParams.get("id"))!==null&&n!==void 0?n:void 0}},Ue=[we],ke=[we,Wn,Kn,Hn,jn,zn];var Xn="10.13039";function Vn(e,n){return e?!!X(e,n):!1}function X(e,n){let i;if(e){if(x(e))return e;if(e.startsWith("doi:")&&(i=e.slice(4),x(i)))return i;try{let t=new URL(e.startsWith("http")?e:`http://${e}`),r=Ue.find(l=>l.test(t)),o=ke.find(l=>l.test(t));if(n?.strict&&!r)return;let c=r??o;if(!c)return;if(i=c.parse(t),!n?.strict&&r)return i}catch{}if(x(i))return i}}function Zn(e,n){let i=X(e,n);if(i)return`https://doi.org/${i}`}function Jn(e){let n=X(e);return n?n.startsWith(`${Xn}/`):!1}var $e={validatePart:x,validate:Vn,normalize:X,buildUrl:Zn,isOpenFunderRegistry:Jn};var qn="https://credit.niso.org/",D;(function(e){e.Conceptualization="Conceptualization",e.DataCuration="Data curation",e.FormalAnalysis="Formal analysis",e.FundingAcquisition="Funding acquisition",e.Investigation="Investigation",e.Methodology="Methodology",e.ProjectAdministration="Project administration",e.Resources="Resources",e.Software="Software",e.Supervision="Supervision",e.Validation="Validation",e.Visualization="Visualization",e.WritingOriginalDraft="Writing \u2013 original draft",e.WritingReviewEditing="Writing \u2013 review & editing"})(D||(D={}));var Qn={[D.Conceptualization]:"Ideas; formulation or evolution of overarching research goals and aims.",[D.DataCuration]:"Management activities to annotate (produce metadata), scrub data and maintain research data (including software code, where it is necessary for interpreting the data itself) for initial use and later re-use.",[D.FormalAnalysis]:"Application of statistical, mathematical, computational, or other formal techniques to analyse or synthesize study data.",[D.FundingAcquisition]:"Acquisition of the financial support for the project leading to this publication.",[D.Investigation]:"Conducting a research and investigation process, specifically performing the experiments, or data/evidence collection.",[D.Methodology]:"Development or design of methodology; creation of models.",[D.ProjectAdministration]:"Management and coordination responsibility for the research activity planning and execution.",[D.Resources]:"Provision of study materials, reagents, materials, patients, laboratory samples, animals, instrumentation, computing resources, or other analysis tools.",[D.Software]:"Programming, softw
1are development; designing computer programs; implementation of the computer code and supporting algorithms; testing of existing code components.",[D.Supervision]:"Oversight and leadership responsibility for the research activity planning and execution, including mentorship external to the core team.",[D.Validation]:"Verification, whether as a part of the activity or separate, of the overall replication/reproducibility of results/experiments and other research outputs.",[D.Visualization]:"Preparation, creation and/or presentation of the published work, specifically visualization/data presentation.",[D.WritingOriginalDraft]:"Preparation, creation and/or presentation of the published work, specifically writing the initial draft (including substantive translation).",[D.WritingReviewEditing]:"Preparation, creation and/or presentation of the published work by those from the original research group, specifically critical review, commentary or revision \u2013 including pre- or post-publication stages."},Ye=Object.keys(Qn),ei={writing:D.WritingOriginalDraft,editing:D.WritingReviewEditing,review:D.WritingReviewEditing,analysis:D.FormalAnalysis,funding:D.FundingAcquisition,admin:D.ProjectAdministration,administration:D.ProjectAdministration};function He(e){return e.trim().toLowerCase().replaceAll("z","s").split("").reduce((n,i)=>{if(i.match(/([a-z])/))return[...n,i];let t=n[n.length-1];return t?.match(/([a-z])/)?[...n,"-"]:n},[]).join("")}var ni=Object.fromEntries(Ye.map(e=>[He(e),e]));function pe(e,n){var i,t;if(e){if(Ye.includes(e))return e;if(!n?.strict)return(t=(i=ni[He(e)])!==null&&i!==void 0?i:ei[e.toLowerCase().trim()])!==null&&t!==void 0?t:void 0}}function ii(e,n){return e?!!pe(e,n):!1}function ti(e,n){let i=pe(e,n);if(!i)return;let t=i.toLowerCase().replace("\u2013 ","").replace("& ","").replaceAll(" ","-");return`${qn}contributor-roles/${t}/`}var je={validate:ii,normalize:pe,buildUrl:ti};var ri="https://orcid.org",ai="^([0-9]{4}-){3}[0-9]{3}[0-9X]$",oi="^((http(s)?://)?(www.)?orcid.org/)?([0-9]{4}-){3}[0-9]{3}[0-9X]$";function We(e,n){return!!e?.match(n?.strict?ai:oi)}function Ke(e,n){if(!(!e||!We(e,n)))return e.replace(/^(https?:\/\/)?(www\.)?orcid\.org\//,"")}function si(e,n){let i=Ke(e,n);if(i)return`${ri}/${i}`}var ze={validate:We,normalize:Ke,buildUrl:si};function s(e){return e!=null}function Se(e){return e.file&&e.location?` (at ${e.file}#${e.location})`:e.file||e.location?` (at ${e.file||e.location})`:""}function a(e,n){let i=n.property;return n.location&&(i=`${n.location}.${n.property}`),{...n,property:e,location:i}}function f(e,n){if(n.suppressErrors)return;let{messages:i}=n;i.errors||(i.errors=[]);let t=`'${n.property}' ${e}${Se(n)}`;i.errors.push({property:n.property,message:t}),n.errorLogFn&&n.errorLogFn(t)}function C(e,n){if(n.suppressWarnings)return;let{messages:i}=n;i.warnings||(i.warnings=[]);let t=`'${n.property}' ${e}${Se(n)}`;i.warnings.push({property:n.property,message:t}),n.warningLogFn&&n.warningLogFn(t)}function S(e,n){if(typeof e=="string"){if(e.toLowerCase()==="true")return!0;if(e.toLowerCase()==="false")return!1}return e===!0||e===!1?e:f("must be boolean",n)}function T(e,n){let i=Number(e);return Number.isNaN(i)?f(`must be a number: ${e}`,n):s(n.min)&&i<n.min?f(`must be greater than or equal to ${n.min}: ${i}`,n):s(n.max)&&i>n.max?f(`must be less than or equal to ${n.max}: ${i}`,n):n.integer&&!Number.isInteger(i)?f(`must be an integer: ${i}`,n):i}function u(e,n){let i=e;return n.coerceNumber&&typeof i=="number"&&(Number.isNaN(i)&&C("is not a number",n),i=String(i)),typeof i!="string"?f("must be string",n):n.minLength&&i.length<n.minLength?f(`must be greater than ${n.minLength} chars`,n):n.maxLength&&i.length>n.maxLength?f(`must be less than ${n.maxLength} chars`,n):n.regex&&!i.match(n.regex)?f(`must match regex ${n.regex}`,n):(n.escapeFn&&(i=n.escapeFn(i)),i)}function h(e,n){let i=u(e,{...n,maxLength:2048});if(i===void 0)return i;let t;try{t=new URL(i)}catch{return f(`must be valid URL: ${i}`,n)}return n.includes&&!t.origin.includes(n.includes)?f(`must include "${n.includes}": ${i}`,n):i}function j(e,n){let i=u(e,{...n,maxLength:2048});if(i===void 0)return i;!i.startsWith("https://")&&!i.startsWith("http://")&&(i=`http://${i}`);let t;try{t=new URL(i)}catch{return f(`domain must be valid when used as a URL: ${e}`,n)}let{hash:r,host:o,pathname:c,protocol:l,search:m}=t;if(l!=="http:"&&l!=="https:")return f(`must have http/https protocol or no protocol: ${e}`,n);if(c&&c!=="/"||r||m)return f(`must not specify path, query, or fragment: ${e}`,n);let d=o.split(".").length;return n.minParts!==void 0&&n.minParts>d?f(`must have at least ${n.minParts} parts: ${e}`,n):n.maxParts!==void 0&&n.maxParts<d?f(`must have at most ${n.minParts} parts: ${e}`,n):o.toLowerCase()}function W(e,n){let i=u(e,n);return i===void 0||i.toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)?i:f(`must be valid email address: ${i}`,n)}function E(e,n){return n.choices.includes(e)?e:f(`invalid value '${e}' - must be one of [${n.choices.join(", ")}]`,n)}function Pe(e,n){return Object.values(n.enum).includes(e)?e:f(`invalid value '${e}' - must be one of [${Object.values(n.enum).join(", ")}]`,n)}var ci=/^(\d\d\d\d)(?:-(\d\d))?(?:-(\d\d))?(T.*)?$/,li=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),)?\s*(\d{1,2})\s+(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+(\d\d\d\d)\s*([^\s].*)?$/,ui=new Map(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"].map((e,n)=>[e,n+1]));function V(e,n,i){let t=`${n}`.padStart(2,"0"),r=`${i}`.padStart(2,"0");return`${e}-${t}-${r}`}function Ce(e){return`invalid date "${e}" - must be a full date "YYYY-MM-DD" (ISO 8601) or calendar date "Sat, 1 Jan 2000" (RFC 2822)`}function Xe(e,n,i){return Z(new Date(n),{...i,suppressErrors:!0,suppressWarnings:!0})!==n?f(Ce(e),i):n}function Z(e,n){if(typeof e=="string"){let i=e.match(ci);if(i){let[c,l,m,d]=i.slice(1,5);d!==void 0&&C(`Date "${e}" should not include a time component ("${d}"), which has been ignored`,n);let p=[c,l??"01",m??"01"].join("-");return(l===void 0||m===void 0)&&C(`non-standard date "${e}": interpreting date as "${p}". 2Please use a full date "YYYY-MM-DD" (ISO 8601).`,n),Xe(e,p,n)}if(i=e.match(li),i){let[c,l,m,d]=i.slice(2,6);d!==void 0&&C(`Date "${e}" should not include a time component ("${d}"), which has been ignored`,n);let p=parseInt(m),v=ui.get(l),G=parseInt(c),_=V(p,v,G);return Xe(e,_,n)}let t=Date.parse(e);if(isNaN(t))return f(Ce(e),n);let r=new Date(t),o=V(r.getFullYear(),r.getMonth()+1,r.getDate());return C(`non-standard date "${e}": interpreting date as "${o}". 3Please use a full date "YYYY-MM-DD" (ISO 8601).`,n),o}else return e instanceof Date?n.dateIsLocal?V(e.getFullYear(),e.getMonth()+1,e.getDate()):V(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate()):f(Ce(e),n)}function y(e,n){return typeof e!="object"?f("must be object",n):Array.isArray(e)?f("must be object, not array",n):e}function k(e,n,i){let t={},r=n.required||[],o=n.optional||[],c=Object.entries(n.alias??{}).filter(m=>r.includes(m[1])||o.includes(m[1])).map(m=>m[0]),l=[];
3if(Object.keys(e).forEach(m=>{if(r.includes(m)||o.includes(m))t[m]=e[m],r=r.filter(d=>d!==m);else if(c.includes(m)){let d=n.alias?.[m];e[d]===void 0?(t[d]=e[m],r=r.filter(p=>p!==d)):C(`both "${d}" and "${m}" were provided, "${m}" was ignored.`,i)}else l.push(m),i.keepExtraKeys&&(t[m]=e[m])}),!(r.length&&(f(`missing required key${r.length>1?"s":""}: ${r.join(", ")}`,i),!i.returnInvalidPartial)))return l.length&&C(`extra key${l.length>1?"s":""} ignored: ${l.join(", ")}`,i),t}function L(e,n,i){let t=y(e,i);if(t!==void 0)return k(t,n,i)}function P(e,n,i){let t;if(Array.isArray(e))t=e;else if(n.coerce)t=[e];else return f("must be an array",n);return t.map((r,o)=>i(r,o)).filter(r=>r!==void 0)}function be(e,n,i){let t={...e};return i.forEach(r=>{if(t[r]===void 0&&n[r]!==void 0){let o=r;t[o]=n[o]}}),t}var ve=["enumerator","all","headings","title"],ge=["heading_1","heading_2","heading_3","heading_4","heading_5","heading_6"],mi=["figure","subfigure","equation","subequation","table","code",...ge],Ze=["enabled","start","enumerator","template","continue"],Ve=["continue","next"],di={sections:"headings",h1:"heading_1",h2:"heading_2",h3:"heading_3",h4:"heading_4",h5:"heading_5",h6:"heading_6",heading1:"heading_1",heading2:"heading_2",heading3:"heading_3",heading4:"heading_4",heading5:"heading_5",heading6:"heading_6",figures:"figure",subfigures:"subfigure",equations:"equation",math:"equation",subequations:"subequation",tables:"table",titles:"title"};function he(e){return typeof e=="string"?["true","false"].includes(e.toLowerCase()):typeof e=="boolean"}function J(e,n){he(e)?e={enabled:e}:typeof e=="number"?e={start:e}:Ve.includes(e)?e={continue:!0}:typeof e=="string"&&(e={template:e});let i=L(e,{optional:Ze},n);if(i===void 0)return;let t={};if(s(i.enabled)){let r=S(i.enabled,a("enabled",n));s(r)&&(t.enabled=r)}if(s(i.start))if(Ve.includes(i.start)&&!s(i.continue))t.continue=!0,t.enabled=t.enabled??!0;else{let r=T(i.start,{...a("start",n),integer:!0,min:1});r&&(t.start=r,t.enabled=t.enabled??!0)}if(s(i.template)){let r=u(i.template,a("template",n));s(r)&&(t.template=r,t.enabled=t.enabled??!0)}if(s(i.enumerator)){let r=u(i.enumerator,a("enumerator",n));s(r)&&(t.enumerator=r,t.enabled=t.enabled??!0)}if(s(i.continue)){let r=S(i.continue,a("continue",n));s(r)&&(t.continue=r,t.enabled=t.enabled??!0)}if(Object.keys(t).length!==0)return t}function fi(e,n){he(e)?e={enabled:e}:typeof e=="number"&&(e={offset:e});let i=L(e,{optional:["enabled","offset","enumerator"]},n);if(i===void 0)return;let t={};if(s(i.enabled)){let r=S(i.enabled,a("enabled",n));s(r)&&(t.enabled=r)}if(s(i.offset)){let r=T(i.offset,{integer:!0,min:0,max:5,...a("offset",n)});s(r)&&(t.offset=r,t.enabled=t.enabled??!0)}if(s(i.enumerator)){let r=u(i.enumerator,a("enumerator",n));s(r)&&(t.enumerator=r,t.enabled=t.enabled??!0)}if(Object.keys(t).length!==0)return t}function Je(e,n){he(e)&&(e={all:e});let i=L(e,{optional:[...mi,...ve],alias:di},{...n,suppressWarnings:!0,keepExtraKeys:!0});if(i===void 0)return;let t={},r;if(s(i.enumerator)){let o=a("enumerator",n);typeof i.enumerator=="string"&&(i.enumerator={enumerator:i.enumerator}),t.enumerator=J(i.enumerator,o),t.enumerator?.enabled!=null&&(t.enumerator.enabled!==!0&&C("value for 'enabled' is ignored",o),delete t.enumerator.enabled),t.enumerator?.start!=null&&(C("value for 'start' is ignored",o),delete t.enumerator.start),t.enumerator?.continue!=null&&(C("value for 'continue' is ignored",o),delete t.enumerator.continue),(!t.enumerator||Object.keys(t.enumerator).length===0)&&delete t.enumerator}if(s(i.all)){let o=a("all",n);t.all=J(i.all,o),t.all?.template!=null&&(C("value for 'template' is ignored",o),delete t.all.template),t.all?.start!=null&&(C("value for 'start' is ignored",o),delete t.all.start),(!t.all||Object.keys(t.all).length===0)&&delete t.all}if(s(i.title)&&(t.title=fi(i.title,a("title",n))),s(i.headings)&&(r=J(i.headings,a("headings",n)),ge.forEach(o=>{r&&!s(i[o])&&(i[o]=r)})),Object.keys(i).filter(o=>!ve.includes(o)).forEach(o=>{if(s(i[o])){let c=J(i[o],a(o,n));if(!s(c))return;r&&ge.includes(o)?t[o]={...r,...c}:t[o]=c}}),Object.keys(t).length!==0)return t}function jt(e,n){let i={...n,...e};return Object.entries(n??{}).filter(([t])=>
3!ve.includes(t)).forEach(([t,r])=>{i[t]=be(e?.[t]??{},{...r,enabled:e?.all?.enabled??r.enabled,continue:e?.all?.continue??r.continue},Ze)}),i}function q(e){return JSON.stringify(Object.entries(e).filter(([,n])=>n!==void 0).sort())}function Li(e,n,i){let t="";if(i){let r=i.replace("\\","/").split("/"),o=r[r.length-1].split(".");o.length===1?t=`-${o[0]}`:t=`-${o.slice(0,o.length-1).join("-")}`}return`${e}${t}-generated-uid-${n}`}function ee(e){return{id:e,name:e}}function Q(e){if(!e.name||!e.id||e.name!==e.id)return!1;let n=Object.keys(e).length;return n===2?!0:n===3&&e.nameParsed?.literal===e.id}function O(e,n,i,t,r){let o={},c={};if(n[i]?.forEach(d=>{d.id&&(o[d.id]=d,c[q({...d,id:void 0})]=d.id)}),typeof e=="string"&&Object.keys(o).includes(e))return e;let l=t(e,r);if(!l)return;let m=!Q(l);return l.id||(c[q(l)]?(l.id=c[q(l)],m=!1):l.id=Li(i,n[i]?.length??0,r.file)),Object.keys(o).includes(l.id)?Q(o[l.id])?o[l.id]=l:m&&C(`duplicate id for ${i} found in frontmatter: ${l.id}`,r):o[l.id]=l,n[i]=Object.values(o),l.id}var ne=["title","hidden"];function ie(e,n){let i={};return s(e.title)&&(i.title=u(e.title,a("title",n))),s(e.hidden)&&(i.hidden=S(e.hidden,a("hidden",n))),i}function pi(e,n){let i=L(e,{required:["file"],optional:[...ne,"children"]},n);if(!i)return;let t=u(i.file,a("file",n));if(!t)return;let r=ie(i,n),o={file:t,...r};return s(e.children)&&(o={children:P(i.children,a("children",n),(l,m)=>te(l,a(`children.${m}`,n))),...o}),o}function Ci(e,n){let i=L(e,{required:["url"],optional:[...ne,"children","open_in_same_tab"]},n);if(!i)return;let t=u(i.url,a("url",n));if(!t)return;let r=ie(i,n),o={url:t,...r};return s(e.open_in_same_tab)&&(o.open_in_same_tab=S(e.open_in_same_tab,a("open_in_same_tab",n))),s(e.children)&&(o={children:P(i.children,a("children",n),(l,m)=>te(l,a(`children.${m}`,n))),...o}),o}function Si(e,n){let i=L(e,{required:["pattern"],optional:[...ne,"sort"]},n);if(!i)return;let t=u(i.pattern,a("pattern",n));if(!t)return;let r=ie(i,n),o={pattern:t,...r};if(s(i.sort)){let c=E(i.sort,{...a("sort",n),choices:["ascending","descending"]});c!==void 0&&(o.sort=c)}return o}function Pi(e,n){let i=L(e,{required:["title","children"],optional:[...ne]},n);if(!i)return;let t=u(i.title,a("title",n));if(!t)return;let r=P(i.children,a("children",n),(c,l)=>te(c,a(`children.${l}`,n)));if(!r)return;let o=ie(i,n);return{children:r,title:t,...o}}function te(e,n){let i=y(e,n);if(i)return s(i.file)?pi(i,n):s(i.url)?Ci(i,n):s(i.pattern)?Si(i,n):s(i.title)?Pi(i,n):f("expected an entry with 'file', 'url', 'pattern', or 'title'",n)}function qe(e,n){return P(e,n,(i,t)=>te(i,a(`${t}`,n)))}var Ae="^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$";function B(e,n){let i=u(e,n);if(i!==void 0){if($e.validate(i,{strict:!0}))return i;f("must be valid DOI",n)}}function Qe(e,n){let i=e;if(typeof i=="string"){let t=i.match(Ae);t&&(i=`https://github.com/${t}`)}return h(i,{...a("github",n),includes:"github"})}function F(e,n){return typeof e=="string"?u(e,n):typeof e=="number"?e:f("must be string or number",n)}var bi=["number","doi","title","subject"];function De(e,n){typeof e!="object"&&(e={number:e});let i=L(e,{optional:bi,alias:{name:"number"}},n);if(i===void 0)return;let t={};if(s(i.number)&&(t.number=F(i.number,a("number",n))),s(i.doi)&&(t.doi=B(i.doi,a("doi",n))),s(i.title)&&(t.title=u(i.title,a("title",n))),s(i.subject)&&(t.subject=u(i.subject,a("subject",n))),Object.keys(t).length!==0)return t}var re=["arxiv","pmid","pmcid","zenodo"],Ne=["date","doi","identifiers","open_access","license","binder","source","subject","volume","issue","first_page","last_page","oxa","numbering","bibliography","math","abbreviations","exports","downloads","settings","edit_url","source_url",...re,...Re],ye=[...Ne,"id","references","requirements","resources","static_files","thebe","toc"];var ae=[...Ne,"label","kernelspec","jupytext","tags","site","enumerator","content_includes_title","skip_execution","execute"];var N;(function(e){e.pdf="pdf",e.tex="tex",e.pdftex="pdf+tex",e.typst="typst",e.docx="docx",e.xml="xml",e.md="md",e.meca="meca",e.cff="cff"})(N||(N={}));var oe={required:[],optional:["format","template","output","zip","id","name","renderer","articles","top_level","sub_articles"],alias:{article:"articles",sub_article:"sub_articles"}},vi={optional:["file","title","level",...ae,...Object.keys(w)]},en={".pdf":N.pdf,".tex":N.tex,".doc":N.docx,".docx":N.docx,".md":N.md,".zip":N.mec
3a,".meca":N.meca,".xml":N.xml,".jats":N.xml,".typ":N.typst,".typst":N.typst,".cff":N.cff},nn=[...oe.required,...oe.optional,...Object.keys(oe.alias),...ye,...Object.keys(w)],gi=[N.typst,N.pdf,N.tex,N.pdftex];function tn(e,n){if(e===void 0)return;let i={coerce:!0,...a("exports",n)},t=P(e,i,(o,c)=>Ni(o,a(`exports.${c}`,n)));if(!t||t.length===0)return;let r=new Set;return t.forEach((o,c)=>{o.id&&t.slice(c+1).map(({id:l})=>l).includes(o.id)&&r.add(o.id)}),r.size&&f(`duplicate export ids: ${[...r].join(", ")}`,i),t}function se(e,n){return e===void 0?void 0:(e==="tex+pdf"&&(e="pdf+tex"),e==="jats"&&(e="xml"),Pe(e,{...n,enum:N}))}function hi(e,n){typeof e=="string"&&(e={file:e});let i=L(e,vi,n);if(!i)return;let t={...i};return s(i.file)&&(t.file=u(i.file,n)),s(i.title)&&(t.title=u(i.title,a("title",n))),s(i.level)&&(t.level=T(i.level,{min:-1,max:6,integer:!0,...a("level",n)})),!t.title&&!t.file?f("export articles must specify file or part/chapter title",n):t}function Ai(e){return e?.filter(n=>!!n.file)??[]}function Di(e){return Ai(e)[0]}function Ni(e,n){if(typeof e=="string"){let l,m;if(e.startsWith(".")?Object.entries(en).forEach(([d,p])=>{e===d&&(l=p)}):e.includes(".")&&(m=e),!l&&!m&&(l=se(e,n),!l))return;e={format:l,output:m}}let i=L(e,oe,{...n,suppressWarnings:!0,keepExtraKeys:!0});if(i===void 0)return;let t,r,o;if(i.template===null?o=null:s(i.template)&&(o=u(i.template,a("template",n))),s(i.output)){let l=a("output",n),m=u(i.output,l);if(m&&(Object.keys(en).forEach(d=>{m.endsWith(d)&&(r=m)}),m.slice(1).includes(".")||(r=m),!r))return f(`unknown export output extension: ${m}`,l)}if(s(i.format)&&(t=se(i.format,a("format",n)),!t))return;if(!t&&!o&&!r)return f("export must specify one of: format, template, or output",n);let c={...i,format:t,output:r,template:o};if(s(i.id)&&(c.id=u(i.id,a("id",n))),s(i.zip)&&(c.zip=S(i.zip,a("zip",n))),s(i.articles)){let l=P(i.articles,{coerce:!0,...a("articles",n)},(d,p)=>hi(d,a(`articles.${p}`,n))),m=Di(l);l?.length?m?l.length>1&&c.format&&!gi.includes(c.format)?(c.format===N.xml&&!s(i.sub_articles)?f("multiple articles are not supported for 'jats' export - instead specify one article with additional sub_articles",n):f("multiple articles are only supported for 'tex', 'typst', and 'pdf' exports",n),c.articles=[m]):c.articles=l:(f("no files found in export article list",n),c.articles=void 0):c.articles=void 0}if(s(i.top_level)&&(c.top_level=E(i.top_level||"sections",{...a("top_level",n),choices:["parts","chapters","sections"]})),s(i.sub_articles)&&(c.format!==N.xml?(f("sub_articles are only supported for 'jats' export",n),c.sub_articles=void 0):c.sub_articles=P(i.sub_articles,{coerce:!0,...a("sub_articles",n)},(l,m)=>u(l,a(`sub_articles.${m}`,n)))),s(i.toc)){let l=a("toc",n);c.articles||c.sub_articles?(f("export cannot define both toc and articles/sub_articles; ignoring toc",l),c.toc=void 0):typeof i.toc=="string"?(c.tocFile=i.toc,c.toc=void 0):c.toc=qe(i.toc,l)}return c}var yi={required:[],optional:["title","url","id","filename","format","static"],alias:{ref:"id",file:"url"}};function Oi(e,n){typeof e=="string"&&(e={url:e});let i=L(e,yi,n);if(i===void 0)return;let t={};return s(i.id)&&(t.id=u(i.id,a("id",n))),s(i.url)&&(t.url=u(i.url,a("url",n))),t.url&&t.id?f("download must define only one of id and file/url, not both",n):!t.url&&!t.id?f("download must define either id or file/url",n):(s(i.title)&&(t.title=u(i.title,a("title",n))),s(i.filename)&&(t.filename=u(i.filename,a("filename",n))),s(i.format)&&(t.format=se(i.format,a("format",n))),s(i.static)&&(t.static=S(i.static,a("static",n))),t)}function rn(e,n){if(e===void 0)return;let i={coerce:!0,...a("downloads",n)},t=P(e,i,(c,l)=>Oi(c,a(`downloads.${l}`,n)));if(!t)return;let r=new Set,o=new Set;return t.forEach((c,l)=>{c.id&&t.slice(l+1).map(({id:m})=>m).includes(c.id)&&r.add(c.id),c.url&&t.slice(l+1).map(({url:m})=>m).includes(c.url)&&o.add(c.url)}),r.size&&f(`duplicate download ids: ${[...r].join(", ")}`,i),o.size&&f(`duplicate download urls: ${[...o].join(", ")}`,i),t}var Nn=$n(gn(),1);var Hi={"0BSD":{name:"BSD Zero Clause License",osi:!0},"3D-Slicer-1.0":{name:"3D Slicer License v1.0"},AAL:{name:"Attribution Assurance License",osi:!0},Abstyles:{name:"Abstyles License"},"AdaCore-doc":{name:"AdaCore Doc License"},"Adobe-2006":{name:"Adobe Systems Incorporated Source Code License Agreement"},"Adobe-Display-PostScript":{name:"Adobe Display PostScript License"},"Adobe-Glyph":{name:"Adobe Glyph List License"},"Adobe-Utopia":{name:"Adobe Utopia Font License"},ADSL:{name:"Amazon Digital Services License"},"Advanced-Cryptics-Dictionary":{name:"Advanced Cryptics Dictionary License"},"AFL-1.1":{name:"Academic Free License v1.1",osi:!0,free:!0},"AFL-1.2":{name:"Academic Free License v1.2",osi:!0,free:!0},"AFL-2.0":{name:"Academic Free License v2.0",osi:!0,free:!0},"AFL-2.1":{name:"Academic Free License v2.1",osi:!0,free:!0},"AFL-3.0":{name:"Academic Free License v3.0",osi:!0,free:!0},Afmparse:{name:"Afmparse License"},"AGPL-1.0-only":{name:"Affero General Public License v1.0 only"}
3,"AGPL-1.0-or-later":{name:"Affero General Public License v1.0 or later"},"AGPL-3.0-only":{name:"GNU Affero General Public License v3.0 only",osi:!0,free:!0},"AGPL-3.0-or-later":{name:"GNU Affero General Public License v3.0 or later",osi:!0,free:!0},Aladdin:{name:"Aladdin Free Public License"},"ALGLIB-Documentation":{name:"ALGLIB Documentation License",osi:!0},"AMD-newlib":{name:"AMD newlib License"},AMDPLPA:{name:"AMD's plpa_map.c License"},AML:{name:"Apple MIT License"},"AML-glslang":{name:"AML glslang variant License"},AMPAS:{name:"Academy of Motion Picture Arts and Sciences BSD"},"ANTLR-PD":{name:"ANTLR Software Rights Notice"},"ANTLR-PD-fallback":{name:"ANTLR Software Rights Notice with license fallback"},"any-OSI":{name:"Any OSI License"},"any-OSI-perl-modules":{name:"Any OSI License - Perl Modules"},"Apache-1.0":{name:"Apache License 1.0",free:!0},"Apache-1.1":{name:"Apache License 1.1",osi:!0,free:!0},"Apache-2.0":{name:"Apache License 2.0",osi:!0,free:!0},APAFML:{name:"Adobe Postscript AFM License"},"APL-1.0":{name:"Adaptive Public License 1.0",osi:!0},"App-s2p":{name:"App::s2p License"},"APSL-1.0":{name:"Apple Public Source License 1.0",osi:!0},"APSL-1.1":{name:"Apple Public Source License 1.1",osi:!0},"APSL-1.2":{name:"Apple Public Source License 1.2",osi:!0},"APSL-2.0":{name:"Apple Public Source License 2.0",osi:!0,free:!0},"Arphic-1999":{name:"Arphic Public License"},"Artistic-1.0":{name:"Artistic License 1.0",osi:!0},"Artistic-1.0-cl8":{name:"Artistic License 1.0 w/clause 8",osi:!0},"Artistic-1.0-Perl":{name:"Artistic License 1.0 (Perl)",osi:!0},"Artistic-2.0":{name:"Artistic License 2.0",osi:!0,free:!0},"Artistic-dist":{name:"Artistic License 1.0 (dist)"},"Aspell-RU":{name:"Aspell Russian License"},"ASWF-Digital-Assets-1.0":{name:"ASWF Digital Assets License version 1.0"},"ASWF-Digital-Assets-1.1":{name:"ASWF Digital Assets License 1.1"},"atc-game":{name:"atc Game License"},Baekmuk:{name:"Baekmuk License"},Bahyph:{name:"Bahyph License"},Barr:{name:"Barr License"},"bcrypt-Solar-Designer":{name:"bcrypt Solar Designer License"},Beerware:{name:"Beerware License"},"Bitstream-Charter":{name:"Bitstream Charter Font License"},"Bitstream-Vera":{name:"Bitstream Vera Font License"},"BitTorrent-1.0":{name:"BitTorrent Open Source License v1.0"},"BitTorrent-1.1":{name:"BitTorrent Open Source License v1.1",free:!0},blessing:{name:"SQLite Blessing"},"BlueOak-1.0.0":{name:"Blue Oak Model License 1.0.0",osi:!0},"Boehm-GC":{name:"Boehm-Demers-Weiser GC License"},"Boehm-GC-without-fee":{name:"Boehm-Demers-Weiser GC License (without fee)"},"BOLA-1.1":{name:"Buena Onda License Agreement v1.1"},Borceux:{name:"Borceux license"},"Brian-Gladman-2-Clause":{name:"Brian Gladman 2-Clause License"},"Brian-Gladman-3-Clause":{name:"Brian Gladman 3-Clause License"},"Brian-Gladman-3-Clause-no-conversion":{name:"Brian Gladman 3-Clause License (no conversion clause)"},"BSD-1-Clause":{name:"BSD 1-Clause License",osi:!0},"BSD-2-Clause":{name:'BSD 2-Clause "Simplified" License',osi:!0,free:!0},"BSD-2-Clause-Darwin":{name:"BSD 2-Clause - Ian Darwin variant"},"BSD-2-Clause-first-lines":{name:"BSD 2-Clause - first lines requirement"},"BSD-2-Clause-Patent":{name:"BSD-2-Clause Plus Patent License",osi:!0},"BSD-2-Clause-pkgconf-disclaimer":{name:"BSD 2-Clause pkgconf disclaimer variant"},"BSD-2-Clause-pos-unchanged":{name:"BSD 2-Clause - position unchanged variant"},"BSD-2-Clause-Views":{name:"BSD 2-Clause with views sentence"},"BSD-3-Clause":{name:'BSD 3-Clause "New" or "Revised" License',osi:!0,free:!0},"BSD-3-Clause-acpica":{name:"BSD 3-Clause acpica variant"},"BSD-3-Clause-Attribution":{name:"BSD with attribution"},"BSD-3-Clause-Clear":{name:"BSD 3-Clause Clear License",free:!0},"BSD-3-Clause-flex":{name:"BSD 3-Clause Flex variant"},"BSD-3-Clause-HP":{name:"Hewlett-Packard BSD variant license"},"BSD-3-Clause-LBNL":{name:"Lawrence Berkeley National Labs BSD variant license",osi:!0},"BSD-3-Clause-Modification":{name:"BSD 3-Clause Modification"},"BSD-3-Clause-No-Military-License":{name:"BSD 3-Clause No Military License"},"BSD-3-Clause-No-Nuclear-License":{name:"BSD 3-Clause No Nuclear License"},"BSD-3-Clause-No-Nuclear-License-2014":{name:"BSD 3-Clause No Nuclear License 2014"},"BSD-3-Clause-No-Nuclear-Warranty":{name:"BSD 3-Clause No Nuclear Warranty"},"BSD-3-Clause-Open-MPI":{name:"BSD 3-Clause Open MPI variant",osi:!0},"BSD-3-Clause-OpenWebUI":{name:"BSD 3-Clause - OpenWebUI variant"},"BSD-3-Clause-Sun":{name:"BSD 3-Clause Sun Microsystems"},"BSD-3-Clause-Tso":{name:"BSD 3-Clause Tso variant"},"BSD-4-Clause":{name:'BSD 4-Clause "Original" or "Old" License',free:!0},"BSD-4-Clause-Shortened":{name:"BSD 4 Clause Shortened"},"BSD-4-Clause-UC":{name:"BSD-4-Clause (University of California-Specific)"},"BSD-4.3RENO":{name:"BSD 4.3 RENO License"},"BSD-4.3TAHOE":{name:"BSD 4.3 TAHOE License"},"BSD-Advertising-Acknowledgement":{name:"BSD Advertising Acknowledgement License"},"BSD-ask-to-endorse":{name:"BSD - ask to endorse",osi:!0},"BSD-Attribution-HPND-disclaimer":{name:"BSD with Attribution and HPND disclaimer"},"BSD-Inferno-Nettverk":{name:"BSD-Inferno-Nettverk"},"BSD-Mark-Modifications":{name:"BSD Mark Modifications License"},"BSD-Protection":{name:"BSD Protection License"},"BSD-Source-alt-GPL":{name:"BSD Source Code Attribution - GPL alternative"},"BSD-Source-beginning-file":{name:"BSD Source Code Attribution - beginning of file variant"},"BSD-Source-Code":{name:"BSD Source Code Attribution"},"BSD-Source-Code-no-disclaimer":{name:"BSD Source Code Attribution - no disclaimer"},"BSD-Systemics":{name:"Systemics BSD variant license"},"BSD-Systemics-W3Works":{name:"Systemics W3Works BSD variant license"}
3,"BSL-1.0":{name:"Boost Software License 1.0",osi:!0,free:!0},Buddy:{name:"Buddy License"},Bugroff:{name:"Bugroff License"},"BUSL-1.1":{name:"Business Source License 1.1"},"bzip2-1.0.6":{name:"bzip2 and libbzip2 License v1.0.6"},"C-UDA-1.0":{name:"Computational Use of Data Agreement v1.0"},"CAL-1.0":{name:"Cryptographic Autonomy License 1.0",osi:!0},"CAL-1.0-Combined-Work-Exception":{name:"Cryptographic Autonomy License 1.0 (Combined Work Exception)",osi:!0},Caldera:{name:"Caldera License"},"Caldera-no-preamble":{name:"Caldera License (without preamble)"},"CAPEC-tou":{name:"Common Attack Pattern Enumeration and Classification License"},Catharon:{name:"Catharon License"},"CATOSL-1.1":{name:"Computer Associates Trusted Open Source License 1.1",osi:!0},"CC-BY-1.0":{name:"Creative Commons Attribution 1.0 Generic",CC:!0},"CC-BY-2.0":{name:"Creative Commons Attribution 2.0 Generic",CC:!0},"CC-BY-2.5":{name:"Creative Commons Attribution 2.5 Generic",CC:!0},"CC-BY-2.5-AU":{name:"Creative Commons Attribution 2.5 Australia",CC:!0},"CC-BY-3.0":{name:"Creative Commons Attribution 3.0 Unported",CC:!0},"CC-BY-3.0-AT":{name:"Creative Commons Attribution 3.0 Austria",CC:!0},"CC-BY-3.0-AU":{name:"Creative Commons Attribution 3.0 Australia",CC:!0},"CC-BY-3.0-DE":{name:"Creative Commons Attribution 3.0 Germany",CC:!0},"CC-BY-3.0-IGO":{name:"Creative Commons Attribution 3.0 IGO",CC:!0},"CC-BY-3.0-NL":{name:"Creative Commons Attribution 3.0 Netherlands",CC:!0},"CC-BY-3.0-US":{name:"Creative Commons Attribution 3.0 United States",CC:!0},"CC-BY-4.0":{name:"Creative Commons Attribution 4.0 International",free:!0,CC:!0},"CC-BY-NC-1.0":{name:"Creative Commons Attribution Non Commercial 1.0 Generic",CC:!0},"CC-BY-NC-2.0":{name:"Creative Commons Attribution Non Commercial 2.0 Generic",CC:!0},"CC-BY-NC-2.5":{name:"Creative Commons Attribution Non Commercial 2.5 Generic",CC:!0},"CC-BY-NC-3.0":{name:"Creative Commons Attribution Non Commercial 3.0 Unported",CC:!0},"CC-BY-NC-3.0-DE":{name:"Creative Commons Attribution Non Commercial 3.0 Germany",CC:!0},"CC-BY-NC-3.0-IGO":{name:"Creative Commons Attribution Non Commercial 3.0 IGO",CC:!0},"CC-BY-NC-4.0":{name:"Creative Commons Attribution Non Commercial 4.0 International",CC:!0},"CC-BY-NC-ND-1.0":{name:"Creative Commons Attribution Non Commercial No Derivatives 1.0 Generic",CC:!0},"CC-BY-NC-ND-2.0":{name:"Creative Commons Attribution Non Commercial No Derivatives 2.0 Generic",CC:!0},"CC-BY-NC-ND-2.5":{name:"Creative Commons Attribution Non Commercial No Derivatives 2.5 Generic",CC:!0},"CC-BY-NC-ND-3.0":{name:"Creative Commons Attribution Non Commercial No Derivatives 3.0 Unported",CC:!0},"CC-BY-NC-ND-3.0-DE":{name:"Creative Commons Attribution Non Commercial No Derivatives 3.0 Germany",CC:!0},"CC-BY-NC-ND-3.0-IGO":{name:"Creative Commons Attribution Non Commercial No Derivatives 3.0 IGO",CC:!0},"CC-BY-NC-ND-4.0":{name:"Creative Commons Attribution Non Commercial No Derivatives 4.0 International",CC:!0},"CC-BY-NC-SA-1.0":{name:"Creative Commons Attribution Non Commercial Share Alike 1.0 Generic",CC:!0},"CC-BY-NC-SA-2.0":{name:"Creative Commons Attribution Non Commercial Share Alike 2.0 Generic",CC:!0},"CC-BY-NC-SA-2.0-DE":{name:"Creative Commons Attribution Non Commercial Share Alike 2.0 Germany",CC:!0},"CC-BY-NC-SA-2.0-FR":{name:"Creative Commons Attribution-NonCommercial-ShareAlike 2.0 France",CC:!0},"CC-BY-NC-SA-2.0-UK":{name:"Creative Commons Attribution Non Commercial Share Alike 2.0 England and Wales",CC:!0},"CC-BY-NC-SA-2.5":{name:"Creative Commons Attribution Non Commercial Share Alike 2.5 Generic",CC:!0},"CC-BY-NC-SA-3.0":{name:"Creative Commons Attribution Non Commercial Share Alike 3.0 Unported",CC:!0},"CC-BY-NC-SA-3.0-DE":{name:"Creative Commons Attribution Non Commercial Share Alike 3.0 Germany",CC:!0},"CC-BY-NC-SA-3.0-IGO":{name:"Creative Commons Attribution Non Commercial Share Alike 3.0 IGO",CC:!0},"CC-BY-NC-SA-4.0":{name:"Creative Commons Attribution Non Commercial Share Alike 4.0 International",CC:!0},"CC-BY-ND-1.0":{name:"Creative Commons Attribution No Derivatives 1.0 Generic",CC:!0}
3,"CC-BY-ND-2.0":{name:"Creative Commons Attribution No Derivatives 2.0 Generic",CC:!0},"CC-BY-ND-2.5":{name:"Creative Commons Attribution No Derivatives 2.5 Generic",CC:!0},"CC-BY-ND-3.0":{name:"Creative Commons Attribution No Derivatives 3.0 Unported",CC:!0},"CC-BY-ND-3.0-DE":{name:"Creative Commons Attribution No Derivatives 3.0 Germany",CC:!0},"CC-BY-ND-4.0":{name:"Creative Commons Attribution No Derivatives 4.0 International",CC:!0},"CC-BY-SA-1.0":{name:"Creative Commons Attribution Share Alike 1.0 Generic",CC:!0},"CC-BY-SA-2.0":{name:"Creative Commons Attribution Share Alike 2.0 Generic",CC:!0},"CC-BY-SA-2.0-UK":{name:"Creative Commons Attribution Share Alike 2.0 England and Wales",CC:!0},"CC-BY-SA-2.1-JP":{name:"Creative Commons Attribution Share Alike 2.1 Japan",CC:!0},"CC-BY-SA-2.5":{name:"Creative Commons Attribution Share Alike 2.5 Generic",CC:!0},"CC-BY-SA-3.0":{name:"Creative Commons Attribution Share Alike 3.0 Unported",CC:!0},"CC-BY-SA-3.0-AT":{name:"Creative Commons Attribution Share Alike 3.0 Austria",CC:!0},"CC-BY-SA-3.0-DE":{name:"Creative Commons Attribution Share Alike 3.0 Germany",CC:!0},"CC-BY-SA-3.0-IGO":{name:"Creative Commons Attribution-ShareAlike 3.0 IGO",CC:!0},"CC-BY-SA-4.0":{name:"Creative Commons Attribution Share Alike 4.0 International",free:!0,CC:!0},"CC-PDDC":{name:"Creative Commons Public Domain Dedication and Certification",CC:!0},"CC-PDM-1.0":{name:"Creative Commons Public Domain Mark 1.0 Universal",CC:!0},"CC-SA-1.0":{name:"Creative Commons Share Alike 1.0 Generic",CC:!0},"CC0-1.0":{name:"Creative Commons Zero v1.0 Universal",free:!0,CC:!0},"CDDL-1.0":{name:"Common Development and Distribution License 1.0",osi:!0,free:!0},"CDDL-1.1":{name:"Common Development and Distribution License 1.1",osi:!0},"CDL-1.0":{name:"Common Documentation License 1.0"},"CDLA-Permissive-1.0":{name:"Community Data License Agreement Permissive 1.0"},"CDLA-Permissive-2.0":{name:"Community Data License Agreement Permissive 2.0"},"CDLA-Sharing-1.0":{name:"Community Data License Agreement Sharing 1.0"}
3,"CECILL-1.0":{name:"CeCILL Free Software License Agreement v1.0"},"CECILL-1.1":{name:"CeCILL Free Software License Agreement v1.1"},"CECILL-2.0":{name:"CeCILL Free Software License Agreement v2.0",free:!0},"CECILL-2.1":{name:"CeCILL Free Software License Agreement v2.1",osi:!0},"CECILL-B":{name:"CeCILL-B Free Software License Agreement",free:!0},"CECILL-C":{name:"CeCILL-C Free Software License Agreement",free:!0},"CERN-OHL-1.1":{name:"CERN Open Hardware Licence v1.1"},"CERN-OHL-1.2":{name:"CERN Open Hardware Licence v1.2"},"CERN-OHL-P-2.0":{name:"CERN Open Hardware Licence Version 2 - Permissive",osi:!0},"CERN-OHL-S-2.0":{name:"CERN Open Hardware Licence Version 2 - Strongly Reciprocal",osi:!0},"CERN-OHL-W-2.0":{name:"CERN Open Hardware Licence Version 2 - Weakly Reciprocal",osi:!0},CFITSIO:{name:"CFITSIO License"},"check-cvs":{name:"check-cvs License"},checkmk:{name:"Checkmk License"},ClArtistic:{name:"Clarified Artistic License",free:!0},Clips:{name:"Clips License"},"CMU-Mach":{name:"CMU Mach License"},"CMU-Mach-nodoc":{name:"CMU Mach - no notices-in-documentation variant"},"CNRI-Jython":{name:"CNRI Jython License"},"CNRI-Python":{name:"CNRI Python License",osi:!0},"CNRI-Python-GPL-Compatible":{name:"CNRI Python Open Source GPL Compatible License Agreement",osi:!0},"COIL-1.0":{name:"Copyfree Open Innovation License"},"Community-Spec-1.0":{name:"Community Specification License 1.0"},"Condor-1.1":{name:"Condor Public License v1.1",free:!0},"copyleft-next-0.3.0":{name:"copyleft-next 0.3.0"},"copyleft-next-0.3.1":{name:"copyleft-next 0.3.1"},"Cornell-Lossless-JPEG":{name:"Cornell Lossless JPEG License"},"CPAL-1.0":{name:"Common Public Attribution License 1.0",osi:!0,free:!0},"CPL-1.0":{name:"Common Public License 1.0",osi:!0,free:!0},"CPOL-1.02":{name:"Code Project Open License 1.02"},Cronyx:{name:"Cronyx License"},Crossword:{name:"Crossword License"},CryptoSwift:{name:"CryptoSwift License"},CrystalStacker:{name:"CrystalStacker License"},"CUA-OPL-1.0":{name:"CUA Office Public License v1.0",osi:!0},Cube:{name:"Cube License"},curl:{name:"curl License",osi:!0},"cve-tou":{name:"Common Vulnerability Enumeration ToU License"},"D-FSL-1.0":{name:"Deutsche Freie Software Lizenz"},"DEC-3-Clause":{name:"DEC 3-Clause License"},diffmark:{name:"diffmark license"},"DL-DE-BY-2.0":{name:"Data licence Germany \u2013 attribution \u2013 version 2.0"},"DL-DE-ZERO-2.0":{name:"Data licence Germany \u2013 zero \u2013 version 2.0"},DOC:{name:"DOC License"},"DocBook-DTD":{name:"DocBook DTD License"},"DocBook-Schema":{name:"DocBook Schema License"},"DocBook-Stylesheet":{name:"DocBook Stylesheet License"},"DocBook-XML":{name:"DocBook XML License"},Dotseqn:{name:"Dotseqn License"},"DRL-1.0":{name:"Detection Rule License 1.0"},"DRL-1.1":{name:"Detection Rule License 1.1"},DSDP:{name:"DSDP License"},dtoa:{name:"David M. Gay dtoa License"},dvipdfm:{name:"dvipdfm License"},"ECL-1.0":{name:"Educational Community License v1.0",osi:!0},"ECL-2.0":{name:"Educational Community License v2.0",osi:!0,free:!0},"EFL-1.0":{name:"Eiffel Forum License v1.0",osi:!0},"EFL-2.0":{name:"Eiffel Forum License v2.0",osi:!0,free:!0},eGenix:{name:"eGenix.com Public License 1.1.0"},"Elastic-2.0":{name:"Elastic License 2.0"},Entessa:{name:"Entessa Public License v1.0",osi:!0},EPICS:{name:"EPICS Open License"},"EPL-1.0":{name:"Eclipse Public License 1.0",osi:!0,free:!0},"EPL-2.0":{name:"Eclipse Public License 2.0",osi:!0,free:!0},"ErlPL-1.1":{name:"Erlang Public License v1.1"},"ESA-PL-permissive-2.4":{name:"European Space Agency Public License \u2013 v2.4 \u2013 Permissive (Type 3)"},"ESA-PL-strong-copyleft-2.4":{name:"European Space Agency Public License (ESA-PL) - V2.4 - Strong Copyleft (Type 1)"},"ESA-PL-weak-copyleft-2.4":{name:"European Space Agency Public License \u2013 v2.4 \u2013 Weak Copyleft (Type 2)"},"etalab-2.0":{name:"Etalab Open License 2.0"},EUDatagrid:{name:"EU DataGrid Software License",osi:!0,free:!0},"EUPL-1.0":{name:"European Union Public License 1.0"},"EUPL-1.1":{name:"European Union Public License 1.1",osi:!0,free:!0},"EUPL-1.2":{name:"European Union Public License 1.2",osi:!0,free:!0},Eurosym:{name:"Eurosym License"},Fair:{name:"Fair License",osi:!0},FBM:{name:"Fuzzy Bitmap License"},"FDK-AAC":{name:"Fraunhofer FDK AAC Codec Library"},"FDK-MPEG-H":{name:"Fraunhofer FDK MPEG-H Software"},"Ferguson-Twofish":{name:"Ferguson Twofish License"},"Frameworx-1.0":{name:"Frameworx Open License 1.0",osi:!0},"FreeBSD-DOC":{name:"FreeBSD Documentation License"},FreeImage:{name:"FreeImage Public License v1.0"},FSFAP:{name:"FSF All Permissive License",free:!0},"FSFAP-no-warranty-disclaimer":{name:"FSF All Permissive License (without Warranty)"},FSFUL:{name:"FSF Unlimited License"},FSFULLR:{name:"FSF Unlimited License (with License Retention)"},FSFULLRSD:{name:"FSF Unlimited License (with License Retention and Short Disclaimer)"},FSFULLRWD:{name:"FSF Unlimited License (With License Retention and Warranty Disclaimer)"}
3,"FSL-1.1-ALv2":{name:"Functional Source License, Version 1.1, ALv2 Future License"},"FSL-1.1-MIT":{name:"Functional Source License, Version 1.1, MIT Future License"},FTL:{name:"Freetype Project License",free:!0},Furuseth:{name:"Furuseth License"},fwlw:{name:"fwlw License"},"Game-Programming-Gems":{name:"Game Programming Gems License"},"GCR-docs":{name:"Gnome GCR Documentation License"},GD:{name:"GD License"},"generic-xts":{name:"Generic XTS License"},"GFDL-1.1-invariants-only":{name:"GNU Free Documentation License v1.1 only - invariants"},"GFDL-1.1-invariants-or-later":{name:"GNU Free Documentation License v1.1 or later - invariants"},"GFDL-1.1-no-invariants-only":{name:"GNU Free Documentation License v1.1 only - no invariants"},"GFDL-1.1-no-invariants-or-later":{name:"GNU Free Documentation License v1.1 or later - no invariants"},"GFDL-1.1-only":{name:"GNU Free Documentation License v1.1 only",free:!0},"GFDL-1.1-or-later":{name:"GNU Free Documentation License v1.1 or later",free:!0},"GFDL-1.2-invariants-only":{name:"GNU Free Documentation License v1.2 only - invariants"},"GFDL-1.2-invariants-or-later":{name:"GNU Free Documentation License v1.2 or later - invariants"},"GFDL-1.2-no-invariants-only":{name:"GNU Free Documentation License v1.2 only - no invariants"},"GFDL-1.2-no-invariants-or-later":{name:"GNU Free Documentation License v1.2 or later - no invariants"},"GFDL-1.2-only":{name:"GNU Free Documentation License v1.2 only",free:!0},"GFDL-1.2-or-later":{name:"GNU Free Documentation License v1.2 or later",free:!0},"GFDL-1.3-invariants-only":{name:"GNU Free Documentation License v1.3 only - invariants"},"GFDL-1.3-invariants-or-later":{name:"GNU Free Documentation License v1.3 or later - invariants"},"GFDL-1.3-no-invariants-only":{name:"GNU Free Documentation License v1.3 only - no invariants"},"GFDL-1.3-no-invariants-or-later":{name:"GNU Free Documentation License v1.3 or later - no invariants"},"GFDL-1.3-only":{name:"GNU Free Documentation License v1.3 only",free:!0},"GFDL-1.3-or-later":{name:"GNU Free Documentation License v1.3 or later",free:!0},Giftware:{name:"Giftware License"},GL2PS:{name:"GL2PS License"},Glide:{name:"3dfx Glide License"},Glulxe:{name:"Glulxe License"},GLWTPL:{name:"Good Luck With That Public License"},gnuplot:{name:"gnuplot License",free:!0},"GPL-1.0-only":{name:"GNU General Public License v1.0 only"},"GPL-1.0-or-later":{name:"GNU General Public License v1.0 or later"},"GPL-2.0-only":{name:"GNU General Public License v2.0 only",osi:!0,free:!0},"GPL-2.0-or-later":{name:"GNU General Public License v2.0 or later",osi:!0,free:!0},"GPL-3.0-only":{name:"GNU General Public License v3.0 only",osi:!0,free:!0},"GPL-3.0-or-later":{name:"GNU General Public License v3.0 or later",osi:!0,free:!0},"Graphics-Gems":{name:"Graphics Gems License"},"gSOAP-1.3b":{name:"gSOAP Public License v1.3b"},gtkbook:{name:"gtkbook License"},Gutmann:{name:"Gutmann License"},HaskellReport:{name:"Haskell Language Report License"},HDF5:{name:"HDF5 License"},hdparm:{name:"hdparm License"},HIDAPI:{name:"HIDAPI License"},"Hippocratic-2.1":{name:"Hippocratic License 2.1"},"Hippocratic-3.0-core":{name:"Hippocratic License 3.0"},"HP-1986":{name:"Hewlett-Packard 1986 License"},"HP-1989":{name:"Hewlett-Packard 1989 License"},HPND:{name:"Historical Permission Notice and Disclaimer",osi:!0,free:!0},"HPND-DEC":{name:"Historical Permission Notice and Disclaimer - DEC variant"},"HPND-doc":{name:"Historical Permission Notice and Disclaimer - documentation variant"},"HPND-doc-sell":{name:"Historical Permission Notice and Disclaimer - documentation sell variant"},"HPND-export-US":{name:"HPND with US Government export control warning"},"HPND-export-US-acknowledgement":{name:"HPND with US Government export control warning and acknowledgment"},"HPND-export-US-modify":{name:"HPND with US Government export control warning and modification rqmt"},"HPND-export2-US":{name:"HPND with US Government export control and 2 disclaimers"},"HPND-Fenneberg-Livingston":{name:"Historical Permission Notice and Disclaimer - Fenneberg-Livingston variant"},"HPND-INRIA-IMAG":{name:"Historical Permission Notice and Disclaimer - INRIA-IMAG variant"},"HPND-Intel":{name:"Historical Permission Notice and Disclaimer - Intel variant"},"HPND-Kevlin-Henney":{name:"Historical Permission Notice and Disclaimer - Kevlin Henney variant"},"HPND-Markus-Kuhn":{name:"Historical Permission Notice and Disclaimer - Markus Kuhn variant"},"HPND-merchantability-variant":{name:"Historical Permission Notice and Disclaimer - merchantability variant"},"HPND-MIT-disclaimer":{name:"Historical Permission Notice and Disclaimer with MIT disclaimer"},"HPND-Netrek":{name:"Historical Permission Notice and Disclaimer - Netrek variant"},"HPND-Pbmplus":{name:"Historical Permission Notice and Disclaimer - Pbmplus variant"},"HPND-sell-MIT-disclaimer-xserver":{name:"Historical Permission Notice and Disclaimer - sell xserver variant with MIT disclaimer"},"HPND-sell-regexpr":{name:"Historical Permission Notice and Disclaimer - sell regexpr variant"},"HPND-sell-variant":{name:"Historical Permission Notice and Disclaimer - sell variant"},"HPND-sell-variant-critical-systems":{name:"HPND - sell variant with safety critical systems clause"},"HPND-sell-variant-MIT-disclaimer":{name:"HPND sell variant with MIT disclaimer"},"HPND-sell-variant-MIT-disclaimer-rev":{name:"HPND sell variant with MIT disclaimer - reverse"},"HPND-SMC":{name:"Historical Permission Notice and Disclaimer - SMC variant"},"HPND-UC":{name:"Historical Permission Notice and Disclaimer - University of California variant"},"HPND-UC-export-US":{name:"Historical Permission Notice and Disclaimer - University of California, US export warning"}
3,HTMLTIDY:{name:"HTML Tidy License"},"hyphen-bulgarian":{name:"hyphen-bulgarian License"},"IBM-pibs":{name:"IBM PowerPC Initialization and Boot Software"},ICU:{name:"ICU License",osi:!0},"IEC-Code-Components-EULA":{name:"IEC Code Components End-user licence agreement"},IJG:{name:"Independent JPEG Group License",free:!0},"IJG-short":{name:"Independent JPEG Group License - short"},ImageMagick:{name:"ImageMagick License"},iMatix:{name:"iMatix Standard Function Library Agreement",free:!0},Imlib2:{name:"Imlib2 License",free:!0},"Info-ZIP":{name:"Info-ZIP License"},Informatica:{name:"Informatica License"},"Inner-Net-2.0":{name:"Inner Net License v2.0"},InnoSetup:{name:"Inno Setup License"},Intel:{name:"Intel Open Source License",osi:!0,free:!0},"Intel-ACPI":{name:"Intel ACPI Software License Agreement"},"Interbase-1.0":{name:"Interbase Public License v1.0"},IPA:{name:"IPA Font License",osi:!0,free:!0},"IPL-1.0":{name:"IBM Public License v1.0",osi:!0,free:!0},ISC:{name:"ISC License",osi:!0,free:!0},"ISC-Veillard":{name:"ISC Veillard variant"},"ISO-permission":{name:"ISO permission notice"},Jam:{name:"Jam License",osi:!0},"JasPer-2.0":{name:"JasPer License"},jove:{name:"Jove License"},"JPL-image":{name:"JPL Image Use Policy"},JPNIC:{name:"Japan Network Information Center License"},JSON:{name:"JSON License"},Kastrup:{name:"Kastrup License"},Kazlib:{name:"Kazlib License"},"Knuth-CTAN":{name:"Knuth CTAN License"},"LAL-1.2":{name:"Licence Art Libre 1.2"},"LAL-1.3":{name:"Licence Art Libre 1.3"},Latex2e:{name:"Latex2e License"},"Latex2e-translated-notice":{name:"Latex2e with translated notice permission"},Leptonica:{name:"Leptonica License"},"LGPL-2.0-only":{name:"GNU Library General Public License v2 only",osi:!0},"LGPL-2.0-or-later":{name:"GNU Library General Public License v2 or later",osi:!0},"LGPL-2.1-only":{name:"GNU Lesser General Public License v2.1 only",osi:!0,free:!0},"LGPL-2.1-or-later":{name:"GNU Lesser General Public License v2.1 or later",osi:!0,free:!0},"LGPL-3.0-only":{name:"GNU Lesser General Public License v3.0 only",osi:!0,free:!0},"LGPL-3.0-or-later":{name:"GNU Lesser General Public License v3.0 or later",osi:!0,free:!0},LGPLLR:{name:"Lesser General Public License For Linguistic Resources"},Libpng:{name:"libpng License"},"libpng-1.6.35":{name:"PNG Reference Library License v1 (for libpng 0.5 through 1.6.35)"},"libpng-2.0":{name:"PNG Reference Library version 2"},"libselinux-1.0":{name:"libselinux public domain notice"},libtiff:{name:"libtiff License"},"libutil-David-Nugent":{name:"libutil David Nugent License"},"LiLiQ-P-1.1":{name:"Licence Libre du Qu\xE9bec \u2013 Permissive version 1.1",osi:!0},"LiLiQ-R-1.1":{name:"Licence Libre du Qu\xE9bec \u2013 R\xE9ciprocit\xE9 version 1.1",osi:!0},"LiLiQ-Rplus-1.1":{name:"Licence Libre du Qu\xE9bec \u2013 R\xE9ciprocit\xE9 forte version 1.1",osi:!0},"Linux-man-pages-1-para":{name:"Linux man-pages - 1 paragraph"},"Linux-man-pages-copyleft":{name:"Linux man-pages Copyleft"},"Linux-man-pages-copyleft-2-para":{name:"Linux man-pages Copyleft - 2 paragraphs"},"Linux-man-pages-copyleft-var":{name:"Linux man-pages Copyleft Variant"},"Linux-OpenIB":{name:"Linux Kernel Variant of OpenIB.org license"},LOOP:{name:"Common Lisp LOOP License"},"LPD-document":{name:"LPD Documentation License"},"LPL-1.0":{name:"Lucent Public License Version 1.0",osi:!0},"LPL-1.02":{name:"Lucent Public License v1.02",osi:!0,free:!0},"LPPL-1.0":{name:"LaTeX Project Public License v1.0"},"LPPL-1.1":{name:"LaTeX Project Public License v1.1"},"LPPL-1.2":{name:"LaTeX Project Public License v1.2",free:!0},"LPPL-1.3a":{name:"LaTeX Project Public License v1.3a",free:!0},"LPPL-1.3c":{name:"LaTeX Project Public License v1.3c",osi:!0},lsof:{name:"lsof License"},"Lucida-Bitmap-Fonts":{name:"Lucida Bitmap Fonts License"},"LZMA-SDK-9.11-to-9.20":{name:"LZMA SDK License (versions 9.11 to 9.20)"},"LZMA-SDK-9.22":{name:"LZMA SDK License (versions 9.22 and beyond)"},"Mackerras-3-Clause":{name:"Mackerras 3-Clause License"},"Mackerras-3-Clause-acknowledgment":{name:"Mackerras 3-Clause - acknowledgment variant"},magaz:{name:"magaz License"},mailprio:{name:"mailprio License"},MakeIndex:{name:"MakeIndex License"},man2html:{name:"man2html License"},"Martin-Birgmeier":{name:"Martin Birgmeier License"},"McPhee-slideshow":{name:"McPhee Slideshow License"}
3,metamail:{name:"metamail License"},Minpack:{name:"Minpack License"},MIPS:{name:"MIPS License"},MirOS:{name:"The MirOS Licence",osi:!0},MIT:{name:"MIT License",osi:!0,free:!0},"MIT-0":{name:"MIT No Attribution",osi:!0},"MIT-advertising":{name:"Enlightenment License (e16)"},"MIT-Click":{name:"MIT Click License"},"MIT-CMU":{name:"CMU License"},"MIT-enna":{name:"enna License"},"MIT-feh":{name:"feh License"},"MIT-Festival":{name:"MIT Festival Variant"},"MIT-Khronos-old":{name:"MIT Khronos - old variant"},"MIT-Modern-Variant":{name:"MIT License Modern Variant",osi:!0},"MIT-open-group":{name:"MIT Open Group variant"},"MIT-STK":{name:"MIT-STK License"},"MIT-testregex":{name:"MIT testregex Variant"},"MIT-Wu":{name:"MIT Tom Wu Variant"},MITNFA:{name:"MIT +no-false-attribs license"},MMIXware:{name:"MMIXware License"},"MMPL-1.0.1":{name:"Minecraft Mod Public License v1.0.1"},Motosoto:{name:"Motosoto License",osi:!0},"MPEG-SSG":{name:"MPEG Software Simulation"},"mpi-permissive":{name:"mpi Permissive License"},mpich2:{name:"mpich2 License"},"MPL-1.0":{name:"Mozilla Public License 1.0",osi:!0},"MPL-1.1":{name:"Mozilla Public License 1.1",osi:!0,free:!0},"MPL-2.0":{name:"Mozilla Public License 2.0",osi:!0,free:!0},"MPL-2.0-no-copyleft-exception":{name:"Mozilla Public License 2.0 (no copyleft exception)",osi:!0},mplus:{name:"mplus Font License"},"MS-LPL":{name:"Microsoft Limited Public License"},"MS-PL":{name:"Microsoft Public License",osi:!0,free:!0},"MS-RL":{name:"Microsoft Reciprocal License",osi:!0,free:!0},MTLL:{name:"Matrix Template Library License"},"MulanPSL-1.0":{name:"Mulan Permissive Software License, Version 1"},"MulanPSL-2.0":{name:"Mulan Permissive Software License, Version 2",osi:!0},Multics:{name:"Multics License",osi:!0},Mup:{name:"Mup License"},"MVT-1.1":{name:"MVT License 1.1"},"NAIST-2003":{name:"Nara Institute of Science and Technology License (2003)"},"NASA-1.3":{name:"NASA Open Source Agreement 1.3",osi:!0},Naumen:{name:"Naumen Public License",osi:!0},"NBPL-1.0":{name:"Net Boolean Public License v1"},"NCBI-PD":{name:"NCBI Public Domain Notice"},"NCGL-UK-2.0":{name:"Non-Commercial Government Licence"},NCL:{name:"NCL Source Code License"},NCSA:{name:"University of Illinois/NCSA Open Source License",osi:!0,free:!0},NetCDF:{name:"NetCDF license"},Newsletr:{name:"Newsletr License"},NGPL:{name:"Nethack General Public License",osi:!0},ngrep:{name:"ngrep License"},"NICTA-1.0":{name:"NICTA Public Software License, Version 1.0"},"NIST-PD":{name:"NIST Public Domain Notice"},"NIST-PD-fallback":{name:"NIST Public Domain Notice with license fallback"},"NIST-PD-TNT":{name:"NIST Public Domain Notice TNT variant"},"NIST-Software":{name:"NIST Software License"},"NLOD-1.0":{name:"Norwegian Licence for Open Government Data (NLOD) 1.0"},"NLOD-2.0":{name:"Norwegian Licence for Open Government Data (NLOD) 2.0"},NLPL:{name:"No Limit Public License"},Nokia:{name:"Nokia Open Source License",osi:!0,free:!0},NOSL:{name:"Netizen Open Source License",free:!0},Noweb:{name:"Noweb License"},"NPL-1.0":{name:"Netscape Public License v1.0",free:!0},"NPL-1.1":{name:"Netscape Public License v1.1",free:!0},"NPOSL-3.0":{name:"Non-Profit Open Software License 3.0",osi:!0},NRL:{name:"NRL License"},"NTIA-PD":{name:"NTIA Public Domain Notice"},NTP:{name:"NTP License",osi:!0},"NTP-0":{name:"NTP No Attribution"},"O-UDA-1.0":{name:"Open Use of Data Agreement v1.0"},OAR:{name:"OAR License"},"OCCT-PL":{name:"Open CASCADE Technology Public License"},"OCLC-2.0":{name:"OCLC Research Public License 2.0",osi:!0},"ODbL-1.0":{name:"Open Data Commons Open Database License v1.0",free:!0},"ODC-By-1.0":{name:"Open Data Commons Attribution License v1.0"},OFFIS:{name:"OFFIS License"},"OFL-1.0":{name:"SIL Open Font License 1.0",free:!0},"OFL-1.0-no-RFN":{name:"SIL Open Font License 1.0 with no Reserved Font Name"},"OFL-1.0-RFN":{name:"SIL Open Font License 1.0 with Reserved Font Name"},"OFL-1.1":{name:"SIL Open Font License 1.1",osi:!0,free:!0},"OFL-1.1-no-RFN":{name:"SIL Open Font License 1.1 with no Reserved Font Name",osi:!0},"OFL-1.1-RFN":{name:"SIL Open Font License 1.1 with Reserved Font Name",osi:!0},"OGC-1.0":{name:"OGC Software License, Version 1.0"},"OGDL-Taiwan-1.0":{name:"Taiwan Open Government Data License, version 1.0"},"OGL-Canada-2.0":{name:"Open Government Licence - Canada"},"OGL-UK-1.0":{name:"Open Government Licence v1.0"},"OGL-UK-2.0":{name:"Open Government Licence v2.0"},"OGL-UK-3.0":{name:"Open Government Licence v3.0"},OGTSL:{name:"Open Group Test Suite License",osi:!0},"OLDAP-1.1":{name:"Open LDAP Public License v1.1"},"OLDAP-1.2":{name:"Open LDAP Public License v1.2"},"OLDAP-1.3":{name:"Open LDAP Public License v1.3"},"OLDAP-1.4":{name:"Open LDAP Public License v1.4"},"OLDAP-2.0":{name:"Open LDAP Public License v2.0 (or possibly 2.0A and 2.0B)"},"OLDAP-2.0.1":{name:"Open LDAP Public License v2.0.1"},"OLDAP-2.1":{name:"Open LDAP Public License v2.1"},"OLDAP-2.2":{name:"Open LDAP Public License v2.2"},"OLDAP-2.2.1":{name:"Open LDAP Public License v2.2.1"},"OLDAP-2.2.2":{name:"Open LDAP Public License 2.2.2"},"OLDAP-2.3":{name:"Open LDAP Public License v2.3",free:!0},"OLDAP-2.4":{name:"Open LDAP Public License v2.4"},"OLDAP-2.5":{name:"Open LDAP Public License v2.5"},"OLDAP-2.6":{name:"Open LDAP Public License v2.6"},"OLDAP-2.7":{name:"Open LDAP Public License v2.7",free:!0},"OLDAP-2.8":{name:"Open LDAP Public License v2.8",osi:!0},"OLFL-1.3":{name:"Open Logistics Foundation License Version 1.3",osi:!0},OML:{name:"Open Market License"},"OpenMDW-1.0":{name:"OpenMDW License Agreement v1.0"},"OpenPBS-2.3":{name:"OpenPBS v2.3 Software License"},OpenSSL:{name:"OpenSSL License",free:!0},"OpenSSL-standalone":{name:"OpenSSL License - standalone"},OpenVision:{name:"OpenVision License"},"OPL-1.0":{name:"Open Public License v1.0"},"OPL-UK-3.0":{name:"United Kingdom Open Parliament Licence v3.0"},"OPUBL-1.0":{name:"Open Publication License v1.0"},"OSC-1.0":{name:"OSC License 1.0",osi:!0},"OSET-PL-2.1":{name:"OSET Public License version 2.1",osi:!0},"OSL-1.0":{name:"Open Software License 1.0",osi:!0,free:!0},"OSL-1.1":{name:"Open Software License 1.1",free:!0},"OSL-2.0":{name:"Open Software License 2.0",osi:!0,free:!0},"OSL-2.1":{name:"Open Software License 2.1",osi:!0,free:!0},"OSL-3.0":{name:"Open Software License 3.0",osi:!0,free:!0},OSSP:{name:"OSSP License"},PADL:{name:"PADL License"},"ParaType-Free-Font-1.3":{name:"ParaType Free Font Licensing Agreement v1.3"},"Parity-6.0.0":{name:"The Parity Public License 6.0.0"},"Parity-7.0.0":{name:"The Parity Public License 7.0.0"},"PDDL-1.0":{name:"Open Data Commons Public Domain Dedication & License 1.0"},"PHP-3.0":{name:"PHP License v3.0",osi:!0},"PHP-3.01":{name:"PHP License v3.01",osi:!0,free:!0},Pixar:{name:"Pixar License"},pkgconf:{name:"pkgconf License"},Plexus:{name:"Plexus Classworlds License"}
3,pnmstitch:{name:"pnmstitch License"},"PolyForm-Noncommercial-1.0.0":{name:"PolyForm Noncommercial License 1.0.0"},"PolyForm-Small-Business-1.0.0":{name:"PolyForm Small Business License 1.0.0"},PostgreSQL:{name:"PostgreSQL License",osi:!0},PPL:{name:"Peer Production License"},"PSF-2.0":{name:"Python Software Foundation License 2.0"},psfrag:{name:"psfrag License"},psutils:{name:"psutils License"},"Python-2.0":{name:"Python License 2.0",osi:!0,free:!0},"Python-2.0.1":{name:"Python License 2.0.1",osi:!0},"python-ldap":{name:"Python ldap License"},Qhull:{name:"Qhull License"},"QPL-1.0":{name:"Q Public License 1.0",osi:!0,free:!0},"QPL-1.0-INRIA-2004":{name:"Q Public License 1.0 - INRIA 2004 variant"},radvd:{name:"radvd License"},Rdisc:{name:"Rdisc License"},"RHeCos-1.1":{name:"Red Hat eCos Public License v1.1"},"RPL-1.1":{name:"Reciprocal Public License 1.1",osi:!0},"RPL-1.5":{name:"Reciprocal Public License 1.5",osi:!0},"RPSL-1.0":{name:"RealNetworks Public Source License v1.0",osi:!0,free:!0},"RSA-MD":{name:"RSA Message-Digest License"},RSCPL:{name:"Ricoh Source Code Public License",osi:!0},Ruby:{name:"Ruby License",free:!0},"Ruby-pty":{name:"Ruby pty extension license"},"SAX-PD":{name:"Sax Public Domain Notice"},"SAX-PD-2.0":{name:"Sax Public Domain Notice 2.0"},Saxpath:{name:"Saxpath License"},SCEA:{name:"SCEA Shared Source License"},SchemeReport:{name:"Scheme Language Report License"},Sendmail:{name:"Sendmail License"},"Sendmail-8.23":{name:"Sendmail License 8.23"},"Sendmail-Open-Source-1.1":{name:"Sendmail Open Source License v1.1"}
3,"SGI-B-1.0":{name:"SGI Free Software License B v1.0"},"SGI-B-1.1":{name:"SGI Free Software License B v1.1"},"SGI-B-2.0":{name:"SGI Free Software License B v2.0",free:!0},"SGI-OpenGL":{name:"SGI OpenGL License"},"SGMLUG-PM":{name:"SGMLUG Parser Materials License"},SGP4:{name:"SGP4 Permission Notice"},"SHL-0.5":{name:"Solderpad Hardware License v0.5"},"SHL-0.51":{name:"Solderpad Hardware License, Version 0.51"},"SimPL-2.0":{name:"Simple Public License 2.0",osi:!0},SISSL:{name:"Sun Industry Standards Source License v1.1",osi:!0,free:!0},"SISSL-1.2":{name:"Sun Industry Standards Source License v1.2"},SL:{name:"SL License"},Sleepycat:{name:"Sleepycat License",osi:!0,free:!0},"SMAIL-GPL":{name:"SMAIL General Public License"},SMLNJ:{name:"Standard ML of New Jersey License",free:!0},SMPPL:{name:"Secure Messaging Protocol Public License"},SNIA:{name:"SNIA Public License 1.1"},snprintf:{name:"snprintf License"},SOFA:{name:"SOFA Software License"},softSurfer:{name:"softSurfer License"},Soundex:{name:"Soundex License"},"Spencer-86":{name:"Spencer License 86"},"Spencer-94":{name:"Spencer License 94"},"Spencer-99":{name:"Spencer License 99"},"SPL-1.0":{name:"Sun Public License v1.0",osi:!0,free:!0},"ssh-keyscan":{name:"ssh-keyscan License"},"SSH-OpenSSH":{name:"SSH OpenSSH license"},"SSH-short":{name:"SSH short notice"},"SSLeay-standalone":{name:"SSLeay License - standalone"},"SSPL-1.0":{name:"Server Side Public License, v 1"},"SugarCRM-1.1.3":{name:"SugarCRM Public License v1.1.3"},"SUL-1.0":{name:"Sustainable Use License v1.0"},"Sun-PPP":{name:"Sun PPP License"},"Sun-PPP-2000":{name:"Sun PPP License (2000)"},SunPro:{name:"SunPro License"},SWL:{name:"Scheme Widget Library (SWL) Software License Agreement"},swrule:{name:"swrule License"},Symlinks:{name:"Symlinks License"},"TAPR-OHL-1.0":{name:"TAPR Open Hardware License v1.0"},TCL:{name:"TCL/TK License"},"TCP-wrappers":{name:"TCP Wrappers License"},TekHVC:{name:"TekHVC License"},TermReadKey:{name:"TermReadKey License"},"TGPPL-1.0":{name:"Transitive Grace Period Public Licence 1.0"},ThirdEye:{name:"ThirdEye License"},threeparttable:{name:"threeparttable License"},TMate:{name:"TMate Open Source License"},"TORQUE-1.1":{name:"TORQUE v2.5+ Software License v1.1"},TOSL:{name:"Trusster Open Source License"},TPDL:{name:"Time::ParseDate License"},"TPL-1.0":{name:"THOR Public License 1.0"},TrustedQSL:{name:"TrustedQSL License"},TTWL:{name:"Text-Tabs+Wrap License"},TTYP0:{name:"TTYP0 License"},"TU-Berlin-1.0":{name:"Technische Universitaet Berlin License 1.0"},"TU-Berlin-2.0":{name:"Technische Universitaet Berlin License 2.0"},"Ubuntu-font-1.0":{name:"Ubuntu Font Licence v1.0"},UCAR:{name:"UCAR License"},"UCL-1.0":{name:"Upstream Compatibility License v1.0",osi:!0},ulem:{name:"ulem License"},"UMich-Merit":{name:"Michigan/Merit Networks License"},"Unicode-3.0":{name:"Unicode License v3",osi:!0},"Unicode-DFS-2015":{name:"Unicode License Agreement - Data Files and Software (2015)"},"Unicode-DFS-2016":{name:"Unicode License Agreement - Data Files and Software (2016)",osi:!0},"Unicode-TOU":{name:"Unicode Terms of Use"},UnixCrypt:{name:"UnixCrypt License"},Unlicense:{name:"The Unlicense",osi:!0,free:!0},"Unlicense-libtelnet":{name:"Unlicense - libtelnet variant"},"Unlicense-libwhirlpool":{name:"Unlicense - libwhirlpool variant"},UnRAR:{name:"UnRAR License"},"UPL-1.0":{name:"Universal Permissive License v1.0",osi:!0,free:!0},"URT-RLE":{name:"Utah Raster Toolkit Run Length Encoded License"},Vim:{name:"Vim License",free:!0},"Vixie-Cron":{name:"Vixie Cron License"},VOSTROM:{name:"VOSTROM Public License for Open Source"},"VSL-1.0":{name:"Vovida Software License v1.0",osi:!0},W3C:{name:"W3C Software Notice and License (2002-12-31)",osi:!0,free:!0},"W3C-19980720":{name:"W3C Software Notice and License (1998-07-20)"},"W3C-20150513":{name:"W3C Software Notice and Document License (2015-05-13)",osi:!0},w3m:{name:"w3m License"},"Watcom-1.0":{name:"Sybase Open Watcom Public License 1.0",osi:!0},"Widget-Workshop":{name:"Widget Workshop License"},WordNet:{name:"WordNet License",osi:!0},Wsuipa:{name:"Wsuipa License"},WTFNMFPL:{name:"Do What The F*ck You Want To But It's Not My Fault Public License"},WTFPL:{name:"Do What The F*ck You Want To Public License",free:!0},wwl:{name:"WWL License"},X11:{name:"X11 License",free:!0},"X11-distribute-modifications-variant":{name:"X11 License Distribution Modification Variant"},"X11-no-permit-persons":{name:"X11 no permit persons clause"},"X11-swapped":{name:"X11 swapped final paragraphs"},"Xdebug-1.03":{name:"Xdebug License v 1.03"},Xerox:{name:"Xerox License"},Xfig:{name:"Xfig License"},"XFree86-1.1":{name:"XFree86 License 1.1",free:!0}
3,xinetd:{name:"xinetd License",free:!0},"xkeyboard-config-Zinoviev":{name:"xkeyboard-config Zinoviev License"},xlock:{name:"xlock License"},Xnet:{name:"X.Net License",osi:!0},xpp:{name:"XPP License"},XSkat:{name:"XSkat License"},xzoom:{name:"xzoom License"},"YPL-1.0":{name:"Yahoo! Public License v1.0"},"YPL-1.1":{name:"Yahoo! Public License v1.1",free:!0},Zed:{name:"Zed License"},Zeeff:{name:"Zeeff License"},"Zend-2.0":{name:"Zend License v2.0",free:!0},"Zimbra-1.3":{name:"Zimbra Public License v1.3",free:!0},"Zimbra-1.4":{name:"Zimbra Public License v1.4"},Zlib:{name:"zlib License",osi:!0,free:!0},"zlib-acknowledgement":{name:"zlib/libpng License with Acknowledgement"},"ZPL-1.1":{name:"Zope Public License 1.1"},"ZPL-2.0":{name:"Zope Public License 2.0",osi:!0,free:!0},"ZPL-2.1":{name:"Zope Public License 2.1",osi:!0,free:!0}},hn=Hi;function An(e){if(!e)return;let n=(0,Nn.default)(e);if(n)return n;if(e.toUpperCase()==="CC-BY")return"CC-BY-4.0"}function ji(e,n,i){if(n){let t=/^([CBYSAND0ZEROPDM-]+)(?:(?:-)([0-9].[0-9]))?(?:(?:-)([A-Z]{2,3}))?$/.exec(e);if(!t)throw new Error("Creative Commons license not found");let r=t[1].toUpperCase(),o=t[2]??"4.0",c=t[3]??"",l="";switch(r){case"CC-BY":l=`/licenses/by/${o}/`;break;case"CC-BY-SA":l=`/licenses/by-sa/${o}/`;break;case"CC-BY-NC":l=`/licenses/by-nc/${o}/`;break;case"CC-BY-NC-SA":l=`/licenses/by-nc-sa/${o}/`;break;case"CC-BY-ND":l=`/licenses/by-nd/${o}/`;break;case"CC-BY-NC-ND":l=o==="1.0"?`/licenses/by-nd-nc/${o}/`:`/licenses/by-nc-nd/${o}/`;break;case"CC-SA":l=`/licenses/sa/${o}/`;break;case"CC-ZERO":case"CC-0":case"CC0":l="/publicdomain/zero/1.0/";break;case"CC-PDDC":l="/licenses/publicdomain/";break;case"CC-PDM":l="/publicdomain/mark/1.0/";break;default:break}return c&&(l+=`${c}/`),`https://creativecommons.org${l}`}return i?`https://opensource.org/licenses/${e.replace(/(-or-later)|(-only)$/,"")}`:`https://spdx.org/licenses/${e}`}function $(e){return e.replace(/^http:/,"https:").replace(/\/$/,"")}function Wi(e){try{return new URL(e).protocol.includes("http")}catch{return!1}}var Ge=Object.fromEntries(Object.entries(hn).map(([e,n])=>[e,{id:e,...n,url:ji(e,n.CC,n.osi)}])),Ee=Object.fromEntries(Object.values(Ge).filter(e=>!!e.url&&!!e.id).map(e=>[$(e.url),e.id]));function Dn(e,n){if(typeof e=="string"){let o=u(e,n);if(o===void 0)return;let c=o.length<15?An(o):void 0;Ee[$(o)]?e={id:Ee[$(o)]}:Wi(o)?e={url:o}:c?e={id:o}:o.match(/^[^\s]*$/)?e={id:o}:o.length<100?e={name:o}:e={note:o}}let i=L(e,{optional:["id","name","url","note","free","CC","osi"],alias:{cc:"CC"}},n);if(!i)return;let t={};if(i.id!=null){let o=u(i.id,a("id",n)),c=An(o);c?c!==o&&C(`The SPDX ID for the license is "${c}". Corrected from "${o}".`,n):C(`unknown license ID "${o}" - using a SPDX license ID is recommended, see https://spdx.org/licenses/`,n),t.id=c??o}else{if(i.url){let o=h(i.url,{property:"",messages:{}})??"",c=Ee[$(o)];c&&(t.id=c,i.url=Ge[c].url)}t.id||C("no license ID - using a SPDX license ID is recommended, see https://spdx.org/licenses/",n)}let r=t.id?Ge[t.id]:void 0;if(i.url!=null){let o=a("url",n),c=h(i.url,o);c&&r?.url&&$(c)!==$(r.url)&&C(`incorrect URL for SPDX license ${r.id} - "${c}"`,o),t.url=c}else r?.url&&(t.url=r.url);if(i.name!=null){let o=a("name",n),c=u(i.name,o);c&&r?.name&&c!==r.name&&C(`incorrect name for SPDX license ${r.id} - "${c}"`,o),t.name=c}else r?.name&&(t.name=r.name);if(i.note!=null&&(t.note=u(i.note,a("note",n))),i.free!=null){let o=a("free",n),c=S(i.free,o);c&&!r?.free?C('only SPDX licenses may specify they are "free" as listed by the FSF',o):t.free=c}else r?.free!=null&&(t.free=r.free);if(i.CC!=null){let o=a("CC",n),c=S(i.CC,o);c&&!(r?.CC||t.url&&new URL(t.url).host==="creativecommons.org")?C('only licenses that link to creativecommons.org may specify that they are "CC"',o):t.CC=c}else r?.CC!=null&&(t.CC=r.CC);if(i.osi!=null){let o=a("osi",n),c=S(i.osi,o);c&&!r?.osi?C('only SPDX licenses may specify they are "OSI approved"',o):t.osi=c}else r?.osi!=null&&(t.osi=r.osi);if(Object.keys(t).length!==0)return t}function yn(e,n){let i;typeof e=="string"||typeof e=="object"&&e.content==null&&e.code==null?(e={content:e},i=n):i=a("content",n);let t=L(e,{optional:["content","code"]},n);if(t===void 0)return;let r={};if(s(t.content)){let o=Dn(t.content,i);o&&(r.content=o)}if(s(t.code)&&t.code!==t.content){let o=Dn(t.code,a("code",n));o&&(r.code=o)}if(Object.keys(r).length!==0)return r}var Y=["url","github","bluesky","mastodon","linkedin","threads","twitter","youtube","discourse","discord","slack","facebook","telegram"],H={website:"url",x:"twitter",bsky:"bluesky",instagram:"threads"};var Ki=/^@?([a-zA-Z0-9_]+)@([^@]+\.[^@]*[^.])$/,zi=/^@?([^/:]+\..*[^.])$/,Xi=/^https:\/\/bsky\.app\/profile\/@?(.+\..*[^.])$/,Vi=/^@?([a-zA-Z0-9.]+)$/,Zi=/^[a-zA-Z0-9_.]+$/,Ji=/^@?([a-zA-Z0-9_]{4,15})$/,qi=/^https:\/\/(?:twitter\.com|x\.com)\/@?([a-zA-Z0-9_]{4,15})$/,Qi=/^@?([a-zA-Z0-9_.-]+)$/,et=/^https:\/\/github\.com\/orgs\/[a-zA-Z0-9_.-]+$/,nt=/^@?([a-zA-Z0-9_]{5,})$/,it=/^https:\/\/(?:t\.me|telegram\.me)\/?([a-zA-Z0-9_]{5,})$/;function tt(e,n){let i=u(e,n);if(i===void 0)return;let t=i.match(Ki);if(t===null)return f("must be a user ID of the form @username@server e.g. @[email protected]",n);let r=t[1],o=j(t[2],n);if(o!==void 0)return`@${r}@${o}`}function rt(e,n){let i=u(e,n);if(i===void 0)return;let t;if(t=i.match(zi)){let r=j(t[1],n);return r===void 0?void 0:`@${r}`}else{let r=h(i,n);if(r===void 0)return;if(t=r.match(Xi),t===null)return f(`Bluesky profile URL must be a valid URL starting with https://bsky.app/profile/: ${i}`,n);let o=j(t[1],n);return o===void 0?void 0:`@${o}`}}function at(e,n){let i=u(e,n);if(i===void 0)return;let t;return(t=i.match(qi))||(t=i.match(Ji))?t[1]:f(`Twitter social identity must be a valid URL starting with https://twitter.com/, https://x.com/, or a valid username: ${i}`,n)}function ot(e,n){let i=u(e,n);if(i===void 0)return;let t;return(t=i.match(it))||(t=i.match(nt))?t[1]:f(`Telegram social identity must be a valid URL starting with either https://t.me/ or https://telegram.me/, or a valid username: ${i}`,n)}function st(e,n){let i=u(e,n);if(i===void 0)return;if(/^https?:\/\//.test(i))return h(e,{...n,includes:"youtube.com"});let t;return(t=i.match(Vi))?t[1]:f(`YouTube social identity must be a valid URL starting with https://youtube.com/ or a valid handle: ${i}`,n)}function ct(e,n){let i=u(e,n);if(i===void 0)return;let t;return(t=i.match(Qi))?t[1]:(t=i.match(Ae))||(t=i.match(et))?t[0]:f(`GitHub social identity must be a valid username, org/repo, or org URL: ${i}`,n)}function le(e,n,i){let t=i?e:L(e,{optional:Y,alias:H},n);if(t===void 0)return;let r=i??{};return s(t.url)&&(r.url=h(t.url,a("url",n))),s(t.github)&&(r.github=ct(t.github,a("github",n))),s(t.bluesky)&&(r.bluesky=rt(t.bluesky,a("bluesky",n))),s(t.mastodon)&&(r.mastodon=tt(t.mastodon,a("mastodon",n))),s(t.linkedin)&&(r.linkedin=h(t.linkedin,{...a("linkedin",n),includes:"linkedin.com"})),s(t.threads)&&(r.threads=u(t.threads,{...a("threads",n),regex:Zi}
3)),s(t.twitter)&&(r.twitter=at(t.twitter,a("twitter",n))),s(t.telegram)&&(r.telegram=ot(t.telegram,a("telegram",n))),s(t.youtube)&&(r.youtube=st(t.youtube,a("youtube",n))),s(t.discourse)&&(r.discourse=h(t.discourse,a("discourse",n))),s(t.discord)&&(r.discord=h(t.discord,{...a("discord",n),includes:"discord"})),s(t.slack)&&(r.slack=h(t.slack,{...a("slack",n),includes:"slack.com"})),s(t.facebook)&&(r.facebook=h(t.facebook,{...a("facebook",n),includes:"facebook.com"})),r}var Ie=["id","address","city","state","postal_code","country","name","department","collaboration","isni","ringgold","ror","doi","email","phone","fax",...Y],Te={ref:"id",region:"state",province:"state",zipcode:"postal_code",zip_code:"postal_code",institution:"name",...H};function U(e,n){typeof e=="string"&&(e=ee(e));let i=L(e,{optional:Ie,alias:Te},n);if(i===void 0)return;Object.keys(i).length===1&&i.id&&(i.name=i.id);let t={};return s(i.id)&&(t.id=u(i.id,a("id",n))),s(i.name)?t.name=u(i.name,a("name",n)):C("affiliation should include name/institution",n),s(i.department)&&(t.department=u(i.department,a("department",n))),s(i.address)&&(t.address=u(i.address,a("address",n))),s(i.city)&&(t.city=u(i.city,a("city",n))),s(i.state)&&(t.state=u(i.state,a("state",n))),s(i.postal_code)&&(t.postal_code=u(i.postal_code,{coerceNumber:!0,...a("postal_code",n)})),s(i.country)&&(t.country=u(i.country,a("country",n))),s(i.isni)&&(t.isni=u(i.isni,a("isni",n))),s(i.ror)&&(t.ror=u(i.ror,a("ror",n))),s(i.ringgold)&&(t.ringgold=T(i.ringgold,{min:1e3,max:999999,...a("ringgold",n)})),s(i.doi)&&(t.doi=B(i.doi,a("doi",n))),s(i.collaboration)&&(t.collaboration=S(i.collaboration,a("collaboration",n))),s(i.email)&&(t.email=W(i.email,a("email",n))),le(i,n,t),s(i.phone)&&(t.phone=u(i.phone,a("phone",n))),s(i.fax)&&(t.fax=u(i.fax,a("fax",n))),t}function K(e){for(let n of e)if(n.toLowerCase()!==n.toUpperCase())return n===n.toUpperCase();return!0}function ue(e){let n=e.split(",");if(n.length===1)return{literal:e,...ut(e)};let i=n.pop()?.trim(),t=lt(i);if(n.length===1)return{literal:e,...t,...On(n[0])};let r=n.pop()?.trim(),o=On(n.join(","));return r?{literal:e,...t,...o,suffix:r}:{literal:e,...t,...o}}function lt(e){let n=e?.trim().split(/\s+/);if(!n?.length)return{};let i=n.shift();if(!i)return{};for(;n.length&&K(n[0]);)i=`${i} ${n.shift()}`;return n.length?{given:i,dropping_particle:n.join(" ")}:{given:i}}function On(e){let n=e.trim().split(/\s+/);if(!n.length)return{};let i=n.pop();if(!i)return{};if(n.length&&K(n[0]))return{family:[...n,i].join(" ")};for(;n.length&&K(n[n.length-1]);)i=`${n.pop()} ${i}`;return n.length?{non_dropping_particle:n.join(" "),family:i}:{family:i}}function ut(e){let n=e.trim().split(/\s+/);if(!n.length)return{};let i=n.pop();if(!i)return{};if(!n.length)return{family:i};let t=n.shift();for(;n.length&&K(n[0]);)t=`${t} ${n.shift()}`;for(;n.length&&K(n[n.length-1]);)i=`${n.pop()} ${i}`;return n.length?{given:t,non_dropping_particle:n.join(" "),family:i}:{given:t,family:i}}function xn(e,n=!1){let{literal:i,given:t,dropping_particle:r,non_dropping_particle:o,family:c,suffix:l}=e;if(i)return i;let m=[t,r,o,c,l].join("").includes(",");if(!n&&!m&&!r&&!l){let p=[t,o,c].filter(Boolean).join(" "),v=ue(p);delete v.literal;let G=JSON.stringify(Object.entries(v).sort()),_=JSON.stringify(Object.entries(e).sort());if(G===_)return p}let d=",";return(l||m)&&(d=`${d}${l?" ":""}${l??""},`),t&&(d=`${d} ${t}`),c&&(d=`${c}${d}`),r&&(d=`${d} ${r}`),o&&(d=`${o} ${d}`),d===","?"":d}var mt=["id","userId","name","nameParsed","orcid","corresponding","equal_contributor","deceased","email","roles","affiliations","collaborations","note","phone","fax",...Y],dt={ref:"id",role:"roles","equal-contributor":"equal_contributor",affiliation:"affiliations",...H},ft=["literal","given","family","suffix","non_dropping_particle","dropping_particle"],Lt={surname:"family",last:"family",forename:"given",first:"given",particle:"non_dropping_particle","non-dropping-particle":"non_dropping_particle","dropping-particle":"dropping_particle"};function En(e,n){let i,t=!1;
3if(typeof e=="string")i=ue(e),t=!0;else{let r=L(e,{optional:ft,alias:Lt},n);if(r===void 0)return;i={},s(r.literal)&&(i.literal=u(r.literal,a("literal",n))),s(r.given)&&(i.given=u(r.given,a("given",n))),s(r.non_dropping_particle)&&(i.non_dropping_particle=u(r.non_dropping_particle,a("non_dropping_particle",n))),s(r.dropping_particle)&&(i.dropping_particle=u(r.dropping_particle,a("dropping_particle",n))),s(r.family)&&(i.family=u(r.family,a("family",n))),s(r.suffix)&&(i.suffix=u(r.suffix,a("suffix",n))),Object.keys(i).length===1&&i.literal?(i={...i,...ue(i.literal)},t=!0):i.literal||(i.literal=xn(i),i.literal.startsWith(",")&&C(`unexpected comma at beginning of name: ${i.literal} - you may need to define 'name.literal' explicitly`,n))}if(t){let r=(o,c)=>{o&&o.includes(",")&&C(`unexpected comma in name part: ${o} - you may need to define 'name' explicitly as an object`,c)};r(i.given,a("given",n)),r(i.family,a("family",n)),r(i.non_dropping_particle,a("non_dropping_particle",n)),r(i.dropping_particle,a("dropping_particle",n)),r(i.suffix,a("suffix",n))}return i}function M(e,n,i){let t=L(e,{optional:Ie,alias:Te},{...i,suppressErrors:!0,suppressWarnings:!0});if(t?.collaboration===!0)return U(e,i);typeof e=="string"&&(e=ee(e));let r=L(e,{optional:mt,alias:dt},i);if(r===void 0)return;t&&Object.keys(t).length>Object.keys(r).length&&C('contributor may be a collaboration, not a person - if so, add "collaboration: true"',i),Object.keys(r).length===1&&r.id&&(r.name=r.id);let o={};if(s(r.id)&&(o.id=u(r.id,a("id",i))),s(r.userId)&&(o.userId=u(r.userId,a("userId",i))),s(r.nameParsed)?(o.nameParsed=En(r.nameParsed,a("nameParsed",i)),o.name=r.name?u(r.name,a("name",i)):o.nameParsed?.literal,o.name!==o.nameParsed?.literal&&C('"name" and "parsedName.literal" should match',i)):s(r.name)?(o.nameParsed=En(r.name,a("name",i)),o.name=o.nameParsed?.literal):C("contributor should include name",i),s(r.orcid)){let l=a("orcid",i),m=ze.normalize(r.orcid);m?o.orcid=m:f(`ORCID "${r.orcid}" is not valid, try an ID of the form "0000-0000-0000-0000"`,l)}if(s(r.corresponding)){let l=a("corresponding",i);o.corresponding=S(r.corresponding,l),r.corresponding&&!s(r.email)&&(f("must include email for corresponding author",l),o.corresponding=!1)}if(s(r.equal_contributor)&&(o.equal_contributor=S(r.equal_contributor,a("equal_contributor",i))),s(r.deceased)&&(o.deceased=S(r.deceased,a("deceased",i))),s(r.email)&&(o.email=W(r.email,a("email",i))),s(r.roles)){let l=a("roles",i),m=r.roles;typeof m=="string"&&(m=m.split(/[,;]/)),o.roles=P(m,l,d=>{let p=u(d,l);if(p===void 0)return;let v=je.normalize(p);return v||(C(`unknown value "${p}" - should be a CRediT role - see https://credit.niso.org/`,l),p.trim())})}if(s(r.collaborations)&&f('collaborations must be defined in frontmatter as affiliations with "collaboration: true"',a("collaborations",i)),s(r.affiliations)){let l=a("affiliations",i),m=r.affiliations;typeof m=="string"&&(m=m.split(";").map(d=>d.trim())),Array.isArray(m)||(m=[m]),o.affiliations=P(m,l,d=>O(d,n,"affiliations",U,l))}if(le(r,i,o),s(r.phone)&&(o.phone=u(r.phone,a("phone",i))),s(r.fax)&&(o.fax=u(r.fax,a("fax",i))),s(r.note)&&(o.note=u(r.note,a("note",i))),Q(o)||!o.nameParsed||r.nameParsed||r.name&&typeof r.name!="string")return o;let c=" - if this is intended, you may define 'name' explicitly as an object";return o.nameParsed.given||C(`No given name for name '${o.nameParsed.literal}'${c}`,i),o.nameParsed.family||C(`No family name for name '${o.nameParsed.literal}'${c}`,i),o}var me=["id","name","description","sources","recipients","investigators"],de={source:"sources",recipient:"recipients",investigator:"investigators"},_e=["statement","open_access","awards"],Be={award:"awards"};function pt(e,n,i){let t=L(e,{optional:me,alias:de},i);if(t===void 0)return;let r={};return s(t.id)&&(r.id=u(t.id,{...a("id",i),coerceNumber:!0})),s(t.name)&&(r.name=u(t.name,a("name",i))),s(t.description)&&(r.description=u(t.description,a("description",i))),s(t.sources)&&(r.sources=P(t.sources,{coerce:!0,...a("sources",i)},(o,c)=>O(o,n,"affiliations",U,a(`sources.${c}`,i)))),s(t.recipients)&&(r.recipients=P(t.recipients,{coerce:!0,...a("recipients",i)},(o,c)=>O(o,n,"contributors",(l,m)=>M(l,n,m),a(`recipients.${c}`,i)))),s(t.investigators)&&(r.investigators=P(t.investigators,{coerce:!0,...a("investigators",i)},(o,c)=>O(o,n,"contributors",(l,m)=>M(l,n,m),a(`investigators.${c}`,i)))),r}function Gn(e,n,i){typeof e=="string"&&(e={statement:e});let t=y(e,i);if(t===void 0)return;let r=k(t,{optional:_e,alias:Be},{...i,suppressErrors:!0,suppressWarnings:!0});if(r===void 0)return;if(r.awards)k(t,{optional:_e,alias:Be},i);else{k(t,{optional:[..._e,...me],alias:{...Be,...de}},i);let c=L(e,{optional:me,alias:de},{...i,suppressErrors:!0,suppressWarnings:!0});c&&Object.keys(c).length>0&&(r.awards=[L(e,{optional:me,alias:de},{...i,suppressErrors:!0,suppressWarnings:!0})])}let o={};return s(r.statement)&&(o.statement=u(r.statement,a("statement",i))),s(r.open_access)&&(o.open_access=u(r.open_access,a("open_access",i))),s(r.awards)&&(o.awards=P(r.awards,{coerce:!0,...a("awards",i)},(c,l)=>pt(c,n,a(`awards.${l}`,i)))),o}function In(e,n){let i;typeof e=="string"?(e={title:e},i=n):i=a("title",n);let t=L(e,{optional:["title","short_title","url","doi","number","location","date","series","issn","publisher"]},n);if(t===void 0)return;let r={};return s(t.title)&&(r.title=u(t.title,i)),s(t.short_title)&&(r.short_title=u(t.short_title,a("short_title",n))),s(t.url)&&(r.url=h(t.url,a("url",n))),s(t.doi)&&(r.doi=B(t.doi,a("doi",
3n))),s(t.number)&&(r.number=F(t.number,a("number",n))),s(t.location)&&(r.location=u(t.location,a("location",n))),s(t.date)&&(r.date=u(t.date,a("date",n))),s(t.series)&&(r.series=u(t.series,a("series",n))),s(t.issn)&&(r.issn=u(t.issn,a("issn",n))),s(t.publisher)&&(r.publisher=u(t.publisher,a("publisher",n))),r}function Tn(e,n){let i={};s(e.title)&&(i.title=u(e.title,a("title",n))),s(e.description)&&(i.description=u(e.description,a("description",n))),s(e.short_title)&&(i.short_title=u(e.short_title,a("short_title",n))),s(e.subtitle)&&(i.subtitle=u(e.subtitle,a("subtitle",n))),e.banner===null?i.banner=null:s(e.banner)&&(i.banner=u(e.banner,a("banner",n))),s(e.bannerOptimized)&&(i.bannerOptimized=e.bannerOptimized),s(e.tags)&&(i.tags=P(e.tags,a("tags",n),(m,d)=>u(m,a(`tags.${d}`,n))));let t={};if(s(e.affiliations)){let m=a("affiliations",n),d=e.affiliations;typeof d=="string"&&(d=d.split(";").map(p=>p.trim())),P(d,m,p=>O(p,t,"affiliations",U,m))}if(s(e.authors)&&(t.authorIds=P(e.authors,{coerce:!0,...a("authors",n)},(m,d)=>O(m,t,"contributors",(p,v)=>M(p,t,v),a(`authors.${d}`,n)))),s(e.contributors)&&P(e.contributors,{coerce:!0,...a("contributors",n)},(m,d)=>O(m,t,"contributors",(p,v)=>M(p,t,v),a(`contributors.${d}`,n))),s(e.reviewers)&&(i.reviewers=P(e.reviewers,{coerce:!0,...a("reviewers",n)},(m,d)=>O(m,t,"contributors",(p,v)=>M(p,t,v),a(`reviewers.${d}`,n)))),s(e.editors)&&(i.editors=P(e.editors,{coerce:!0,...a("editors",n)},(m,d)=>O(m,t,"contributors",(p,v)=>M(p,t,v),a(`editors.${d}`,n)))),s(e.venue)&&(i.venue=In(e.venue,a("venue",n))),s(e.github)&&(i.github=Qe(e.github,a("github",n))),s(e.keywords)){let m=e.keywords;typeof m=="string"&&(m=m.split(/[,;]/).map(d=>d.trim())),i.keywords=P(m,a("keywords",n),(d,p)=>u(d,a(`keywords.${p}`,n)))}if(s(e.funding)&&(i.funding=P(e.funding,{coerce:!0,...a("funding",n)},(m,d)=>Gn(m,t,a(`funding.${d}`,n)))),s(e.copyright)&&(i.copyright=u(e.copyright,a("copyright",n))),s(e.options)){let m=a("options",n),d=y(e.options,m);d&&Object.entries(d).forEach(([p,v])=>{nn.includes(p)?f(`options cannot include reserved key ${p}`,m):(i.options??={})[p]=v})}let r=a("parts",n),o;if(s(e.parts)&&(o=L(e.parts,{optional:Le,alias:w},{keepExtraKeys:!0,suppressWarnings:!0,...r})),Le.forEach(m=>{s(e[m])&&(o??={},o[m]?f(`duplicate value for part ${m}`,r):o[m]=e[m])}),o){let m=Object.entries(o).map(([d,p])=>[d,P(p,{coerce:!0,...a(d,r)},(v,G)=>u(v,a(`${d}.${G}`,r)))]).filter(d=>!!d[1]?.length);m.length>0&&(i.parts=Object.fromEntries(m))}let c=t.contributors?.filter(m=>t.authorIds?.includes(m.id)),l=t.contributors?.filter(m=>!t.authorIds?.includes(m.id));if(c?.length){i.authors=c;let m=i.authors?.find(p=>p.corresponding),d=i.authors?.find(p=>p.email&&!p.collaboration&&p.corresponding===void 0);!m&&d&&(d.corresponding=!0)}return l?.length&&(i.contributors=l),t.affiliations?.length&&(i.affiliations=t.affiliations),i}var Ct=["codeStyle","beamer"],St={code_style:"codeStyle"};function _n(e,n){let i={},t=L(e,{optional:Ct,alias:St},n);if(t){if(s(t.codeStyle)){let r=E(t.codeStyle,{...a("codeStyle",n),choices:["verbatim","minted","listings"]});r&&(i.codeStyle=r)}if(s(t.beamer)){let r=S(t.beamer,a("beamer",n));r!=null&&(i.beamer=r)}if(Object.keys(i).length!==0)return i}}var Pt=["dollarmath"],bt={dollar_math:"dollarmath"};function Bn(e,n){let i={},t=L(e,{optional:Pt,alias:bt},n);if(t){if(s(t.dollarmath)){let r=S(t.dollarmath,a("dollarmath",n));r!=null&&(i.dollarmath=r)}if(Object.keys(i).length!==0)return i}}var Fe=["show","remove","remove-warn","remove-error","warn","error"],vt=["output_stderr","output_stdout","output_matplotlib_strings","myst_to_tex","parser","infer_dois_from_urls"],gt={stderr_output:"output_stderr",stdout_output:"output_stdout",mystToTex:"myst_to_tex",tex:"myst_to_tex",inferDoisFromUrls:"infer_dois_from_urls"};function Fn(e,n){let i={},t=L(e,{optional:vt,alias:gt},n);if(t){if(s(t.output_stderr)){let r=E(t.output_stderr,{...a("output_stderr",n),choices:Fe});r&&(i.output_stderr=r)}if(s(t.output_stdout)){let r=E(t.output_stdout,{...a("output_stdout",n),choices:Fe});r&&(i.output_stdout=r)}if(s(t.output_matplotlib_strings)){let r=E(t.output_matplotlib_strings,{...a("output_matplotlib_strings",n),choices:Fe});r&&(i.output_matplotlib_strings=r)}if(s(t.myst_to_tex)){let r=_n(t.myst_to_tex,a("myst_to_tex",n));r&&(i.myst_to_tex=r)}if(s(t.parser)){let r=Bn(t.parser,a("parser",n));r&&(i.parser=r)}if(s(t.infer_dois_from_urls)){let r=S(t.infer_dois_from_urls,a("infer_dois_from_urls",n));r!=null&&(i.infer_dois_from_urls=r)}if(Object.keys(i).length!==0)return i}}function ht(e,n){typeof e=="string"&&(e={macro:e});let i=L(e,{required:["macro"],optional:["title","description"]},n);if(!i)return;let t=u(i.macro,a("macro",n));if(!t)return;let r={macro:t};return s(i.title)&&(r.title=u(i.title,a("title",n))),s(i.description)&&(r.description=u(i.description,a("description",n))),r}function Mn(e,n){let i=y(e,n);if(!i)return;let t=Object.entries(i).map(([r,o])=>{let c=ht(o,a(r,n));return c?[r,c]:!1}).filter(r=>!!r);return Object.fromEntries(t)}function At(e){return e==="arxiv"?(n,i)=>h(n,{...a("arxiv",i),includes:"arxiv.org"}):e==="pmid"?(n,i)=>T(n,{...a("pmid",i),integer:!0,min:1}):e==="pmcid"?(n,i)=>u(n,{...a("pmcid",i),regex:"^PMC[0-9]+$"}):e==="zenodo"?(n,i)=>h(n,{...a("zenodo",i),includes:"zenodo.org"}):(n,i)=>F(n,a(e,i))}function Rn(e,n){let i=Tn(e,n);s(e.date)&&(i.date=Z(e.date,a("date",n)));let t=a("identifiers",n),r;if(s(e.identifiers)&&(r=L(e.identifiers,{optional:re},{keepExtraKeys:!0,suppressWarnings:!0,...t})),re.forEach(o=>{s(e[o])&&(r??={},r[o]?f(`duplicate value for identifier ${o}`,t):r[o]=e[o])}),r?.doi&&(s(e.doi)?f("duplicate value for DOI",t):(e.doi=r.doi,C("DOI should be defined directly on the project frontmatter, not under 'identifiers'",t)),delete r.doi),r){let o=Object.entries(r).map(([c,l])=>{let m=At(c);return[c,m(l,t)]}).filter(c=>c[1]!=null);o.length>0&&(i.identifiers=Object.fromEntries(o))}
3if(s(e.doi)&&(i.doi=B(e.doi,a("doi",n))),s(e.open_access)&&(i.open_access=S(e.open_access,a("open_access",n))),s(e.license)&&(i.license=yn(e.license,a("license",n))),s(e.binder)&&(i.binder=h(e.binder,a("binder",n))),s(e.source)&&(i.source=h(e.source,a("source",n))),s(e.subject)&&(i.subject=u(e.subject,{...a("subject",n),maxLength:40})),s(e.bibliography)&&(i.bibliography=P(e.bibliography,{coerce:!0,...a("bibliography",n)},(o,c)=>u(o,a(`bibliography.${c}`,n)))),s(e.volume)&&(i.volume=De(e.volume,a("volume",n))),s(e.issue)&&(i.issue=De(e.issue,a("issue",n))),s(e.first_page)&&(i.first_page=F(e.first_page,a("first_page",n))),s(e.last_page)&&(i.last_page=F(e.last_page,a("last_page",n))),s(e.oxa)&&(i.oxa=u(e.oxa,a("oxa",n))),s(e.numbering)&&(i.numbering=Je(e.numbering,a("numbering",n))),s(e.math)&&(i.math=Mn(e.math,a("math",n))),s(e.abbreviations)){let o=a("abbreviations",n),c=Object.fromEntries(Object.entries(y(e.abbreviations,o)??{}).map(([l,m])=>{if(m===null||m===!1)return[l,null];let d=u(m,a(l,o));return u(l,{...a(l,o),minLength:2})&&d?[l,d]:null}).filter(l=>!!l));c&&Object.keys(c).length>0&&(i.abbreviations=c)}if(s(e.exports)){let o=tn(e.exports,n);o&&(i.exports=o)}if(s(e.downloads)){let o=rn(e.downloads,n);o&&(i.downloads=o)}if(e.thumbnail===null?i.thumbnail=null:s(e.thumbnail)&&(i.thumbnail=u(e.thumbnail,a("thumbnail",n))),s(e.thumbnailOptimized)&&(i.thumbnailOptimized=e.thumbnailOptimized),e.banner===null?i.banner=null:s(e.banner)&&(i.banner=u(e.banner,a("banner",n))),s(e.bannerOptimized)&&(i.bannerOptimized=e.bannerOptimized),s(e.settings)){let o=Fn(e.settings,a("settings",n));o&&(i.settings=o)}return e.edit_url===null?i.edit_url=null:s(e.edit_url)&&(i.edit_url=h(e.edit_url,a("edit_url",n))),e.source_url===null?i.source_url=null:s(e.source_url)&&(i.source_url=h(e.source_url,a("source_url",n))),i}var Dt=["name","display_name","language","argv","env"];function wn(e,n){let i=L(e,{optional:Dt},n);if(i===void 0)return;let t;if(s(i.name)){let c=u(i.name,a("name",n));if(c===void 0)return;t=c}else t="python3",C(`"name" key is required; using '${t}' as placeholder value`,n);let r;if(s(i.display_name)){let c=u(i.display_name,a("display_name",n));if(c===void 0)return;r=c}else r=`${t} Kernel`,C(`"display_name" key is required; using '${r}' as placeholder value`,n);let o={name:t,display_name:r};return s(i.language)&&(o.language=u(i.language,a("language",n))),s(i.env)&&(o.env=y(i.env,a("env",n))),s(i.argv)&&(o.argv=P
3(i.argv,a("argv",n),(c,l)=>u(c,a(`argv.${l}`,n)))),o}var Nt=["skip","depends_on_env","cache"];function Un(e,n){let i=L(e,{optional:Nt},n);if(i===void 0)return;let t={};return s(i.skip)&&(t.skip=S(i.skip,a("skip",n))),s(i.depends_on_env)&&(t.depends_on_env=P(i.depends_on_env,a("depends_on_env",n),(r,o)=>u(r,a(`depends_on_env.${o}`,n)))),s(i.cache)&&(t.cache=S(i.cache,a("cache",n))),t}var yt=["extension","format_name","format_version","jupytext_version"],Ot=["formats","text_representation"];function xt(e,n){let i=L(e,{optional:yt},n);if(i===void 0)return;let t={};if(s(i.extension)&&(t.extension=u(i.extension,a("extension",n))),s(i.format_name)&&(t.format_name=u(i.format_name,a("format_name",n))),s(i.format_version)){let r=typeof i.format_version=="number"?String(i.format_version):i.format_version;t.format_version=u(r,a("format_version",n))}return s(i.jupytext_version)&&(t.jupytext_version=u(i.jupytext_version,a("jupytext_version",n))),t}function kn(e,n){let i=L(e,{optional:Ot},n);if(i===void 0)return;let t={};return s(i.formats)&&(t.formats=u(i.formats,a("formats",n))),s(i.text_representation)&&(t.text_representation=xt(i.text_representation,a("text_representation",n))),t}function Et(e,n){let i=Rn(e,n);return s(e.label)&&(i.label=u(e.label,a("label",n))),s(e.kernelspec)&&(i.kernelspec=wn(e.kernelspec,a("kernelspec",n))),s(e.jupytext)&&(i.jupytext=kn(e.jupytext,a("jupytext",n))),s(e.execute)&&(i.execute=Un(e.execute,a("execute",n))),s(e.skip_execution)&&(i.execute??={},s(i.execute.skip)?C("both execute.skip and deprecated skip_execution are defined, taking execute.skip",n):(C("skip_execution is deprecated in favour of execute.skip",n),i.execute.skip=S(e.skip_execution,a("skip_execution",n)))),s(e.enumerator)&&(i.enumerator=u(e.enumerator,a("enumerator",n))),s(e.content_includes_title)&&(i.content_includes_title=S(e.content_includes_title,a("content_includes_title",n))),s(e.site)&&(i.site=y(e.site,a("site",n))),i}function Za(e,n){let i=L(e,{optional:ae,alias:{...w,name:"label"}},n)||{};return Et(i,n)}export{a,C as b,be as c,$e as d,qn as e,pe as f,ii as g,ti as h,ze as i,q as j,ee as k,Q as l,jt as m,Za as n};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.