1import{u as Le,v as we,w as M}from"https://neuroir.org/docs//build/_shared/chunk-4OEDG4JQ.js";import{c as w,f as kn}from"https://neuroir.org/docs//build/_shared/chunk-OZE3FFNP.js";var ye=w((Cr,yi)=>{yi.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","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","Artistic-dist","Aspell-RU","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-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","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","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-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","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","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","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","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","g
1nuplot","gtkbook","hdparm","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=w((Sr,xi)=>{xi.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=w((vr,Ei)=>{Ei.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=w((Pr,sn)=>{"use strict";var Gi=[].concat(ye()).concat(an()),Ii=on();sn.exports=function(e){var n=0;function i(){return n<e.length}function t(L){if(L instanceof RegExp){var C=e.slice(n),g=C.match(L);if(g)return n+=g[0].length,g[0]}else if(e.indexOf(L,n)===n)return n+=L.length,L}function a(){t(/[ ]*/)}function c(){for(var L,C=["WITH","AND","OR","(",")",":","+"],g=0;g<C.length&&(L=t(C[g]),!L);g++);if(L==="+"&&n>1&&e[n-2]===" ")throw new Error("Space before `+`");return L&&{type:"OPERATOR",string:L}}function l(){return t(/[A-Za-z0-9-.]+/)}function o(){var L=l();if(!L)throw new Error("Expected idstring at offset "+n);return L}function u(){if(t("DocumentRef-")){var L=o();return{type:"DOCUMENTREF",string:L}}}function d(){if(t("LicenseRef-")){var L=o();return{type:"LICENSEREF",string:L}}}function f(){var L=n,C=l();if(Gi.indexOf(C)!==-1)return{type:"LICENSE",string:C};if(Ii.indexOf(C)!==-1)return{type:"EXCEPTION",string:C};n=L}function P(){return c()||u()||d()||f()}for(var D=[];i()&&(a(),!!i());){var v=P();if(!v)throw new Error("Unexpected `"+e[n]+"` at offset "+n);D.push(v)}return D}});var un=w((br,ln)=>{"use strict";ln.exports=function(e){var n=0;function i(){return n<e.length}function t(){return i()?e[n]:null}function a(){if(!i())throw new Error;n++}function c(C){var g=t();if(g&&g.type==="OPERATOR"&&C===g.string)return a(),g.string}function l(){if(c("WITH")){var C=t();if(C&&C.type==="EXCEPTION")return a(),C.string;throw new Error("Expected exception after `WITH`")}}function o(){var C=n,g="",x=t();if(x.type==="DOCUMENTREF"&&(a(),g+="DocumentRef-"+x.string+":",!c(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(x=t(),x.type==="LICENSEREF")return a(),g+="LicenseRef-"+x.string,{license:g};n=C}function u(){var C=t();if(C&&C.type==="LICENSE"){a();var g={license:C.string};c("+")&&(g.plus=!0);var x=l();return x&&(g.exception=x),g}}function d(){var C=c("(");if(C){var g=v();if(!c(")"))throw new Error("Expected `)`");return g}}function f(){return d()||o()||u()}function P(C,g){return function x(){var fe=g();if(fe){if(!c(C))return fe;var Re=x();if(!Re)throw new Error("Expected expression");return{left:fe,conjunction:C.toLowerCase(),right:Re}}}}var D=P("AND",f),v=P("OR",D),L=v();if(!L||i())throw new Error("Syntax error");return L}});var dn=w((gr,mn)=>{"use strict";var _i=cn(),Ti=un();mn.exports=function(e){return Ti(_i(e))}});var gn=w((hr,bn)=>{var Bi=dn(),Fi=ye();function ce(e){try{return Bi(e),!0}catch{return!1}}function Pn(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(Pn),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=Fi.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},{}),Mi=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(Mi).sort(Pn),Ui=0,ki=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[Ui])>-1)return t[ki]}return null},vn=function(e,n){for(var i=0;i<fn.length;i++){var t=fn[i],a=t[Ri];if(e.indexOf(a)>-1){var c=e.replace(a,t[wi]),l=n(c);if(l!==null)return l}}return null};
1bn.exports=function(e,n){n=n||{};var i=n.upgrade===void 0?!0:!!n.upgrade;function t(o){return i?$i(o):o}var a=typeof e=="string"&&e.trim().length!==0;if(!a)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),ce(e))return t(e);var c=e.replace(/\+$/,"").trim();if(ce(c))return t(c);var l=Cn(e);return l!==null||(l=vn(e,function(o){return ce(o)?o:Cn(o)}),l!==null)||(l=Sn(e),l!==null)||(l=vn(e,Sn),l!==null)?t(l):null};function $i(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 $n=/^10\.\d{4,9}\/[-._;()/:A-Z0-9]+$/i;function I(e){return e?e.match($n)!==null:!1}var Me={test(e){return!!e.hostname.match(/(?:dx\.)?(?:www\.)?doi\.org/)},parse(e){return e.pathname.replace(/^\//,"")}},Yn={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)\//,"")}`}},Hn={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)\//,"")}`}},jn={test(e){return e.hostname.endsWith("biorxiv.org")&&!!z(e).find(I)},parse(e){var n;return(n=z(e).find(I))===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 Wn={test(e){return!!z(e).find(I)},parse(e){return z(e).find(I)}},Kn={test(e){return I(e.searchParams.get("id"))},parse(e){var n;return(n=e.searchParams.get("id"))!==null&&n!==void 0?n:void 0}},Ue=[Me],ke=[Me,jn,Wn,Yn,Hn,Kn];var zn="10.13039";function Xn(e,n){return e?!!X(e,n):!1}function X(e,n){let i;if(e){if(I(e))return e;if(e.startsWith("doi:")&&(i=e.slice(4),I(i)))return i;try{let t=new URL(e.startsWith("http")?e:`http://${e}`),a=Ue.find(o=>o.test(t)),c=ke.find(o=>o.test(t));if(n?.strict&&!a)return;let l=a??c;if(!l)return;if(i=l.parse(t),!n?.strict&&a)return i}catch{}if(I(i))return i}}function Vn(e,n){let i=X(e,n);if(i)return`https://doi.org/${i}`}function Zn(e){let n=X(e);return n?n.startsWith(`${zn}/`):!1}var $e={validatePart:I,validate:Xn,normalize:X,buildUrl:Vn,isOpenFunderRegistry:Zn};var Jn="https://credit.niso.org/",O;(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"})(O||(O={}));var qn={[O.Conceptualization]:"Ideas; formulation or evolution of overarching research goals and aims.",[O.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.",[O.FormalAnalysis]:"Application of statistical, mathematical, computational, or other formal techniques to analyse or synthesize study data.",[O.FundingAcquisition]:"Acquisition of the financial support for the project leading to this publication.",[O.Investigation]:"Conducting a research and investigation process, specifically performing the experiments, or data/evidence collection.",[O.Methodology]:"Development or design of methodology; creation of models.",[O.ProjectAdministration]:"Management and coordination responsibility for the research activity planning and execution.",[O.Resources]:"Provision of study materials, reagents, materials, patients, laboratory samples, animals, instrumentation, computing resources, or other analysis tools.",[O.Software]:"Programming, softw
1are development; designing computer programs; implementation of the computer code and supporting algorithms; testing of existing code components.",[O.Supervision]:"Oversight and leadership responsibility for the research activity planning and execution, including mentorship external to the core team.",[O.Validation]:"Verification, whether as a part of the activity or separate, of the overall replication/reproducibility of results/experiments and other research outputs.",[O.Visualization]:"Preparation, creation and/or presentation of the published work, specifically visualization/data presentation.",[O.WritingOriginalDraft]:"Preparation, creation and/or presentation of the published work, specifically writing the initial draft (including substantive translation).",[O.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),Qn={writing:O.WritingOriginalDraft,editing:O.WritingReviewEditing,review:O.WritingReviewEditing,analysis:O.FormalAnalysis,funding:O.FundingAcquisition,admin:O.ProjectAdministration,administration:O.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 ei=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=ei[He(e)])!==null&&i!==void 0?i:Qn[e.toLowerCase().trim()])!==null&&t!==void 0?t:void 0}}function ni(e,n){return e?!!pe(e,n):!1}function ii(e,n){let i=pe(e,n);if(!i)return;let t=i.toLowerCase().replace("\u2013 ","").replace("& ","").replaceAll(" ","-");return`${Jn}contributor-roles/${t}/`}var je={validate:ni,normalize:pe,buildUrl:ii};var ti="https://orcid.org",ri="^([0-9]{4}-){3}[0-9]{3}[0-9X]$",ai="^((http(s)?://)?(www.)?orcid.org/)?([0-9]{4}-){3}[0-9]{3}[0-9X]$";function We(e,n){return!!e?.match(n?.strict?ri:ai)}function Ke(e,n){if(!(!e||!We(e,n)))return e.replace(/^(https?:\/\/)?(www\.)?orcid\.org\//,"")}function oi(e,n){let i=Ke(e,n);if(i)return`${ti}/${i}`}var ze={validate:We,normalize:Ke,buildUrl:oi};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 r(e,n){let i=n.property;return n.location&&(i=`${n.location}.${n.property}`),{...n,property:e,location:i}}function p(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 b(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 A(e,n){if(typeof e=="string"){if(e.toLowerCase()==="true")return!0;if(e.toLowerCase()==="false")return!1}return e===!0||e===!1?e:p("must be boolean",n)}function _(e,n){let i=Number(e);return Number.isNaN(i)?p(`must be a number: ${e}`,n):s(n.min)&&i<n.min?p(`must be greater than or equal to ${n.min}: ${i}`,n):s(n.max)&&i>n.max?p(`must be less than or equal to ${n.max}: ${i}`,n):n.integer&&!Number.isInteger(i)?p(`must be an integer: ${i}`,n):i}function m(e,n){let i=e;return n.coerceNumber&&typeof i=="number"&&(Number.isNaN(i)&&b("is not a number",n),i=String(i)),typeof i!="string"?p("must be string",n):n.minLength&&i.length<n.minLength?p(`must be greater than ${n.minLength} chars`,n):n.maxLength&&i.length>n.maxLength?p(`must be less than ${n.maxLength} chars`,n):n.regex&&!i.match(n.regex)?p(`must match regex ${n.regex}`,n):(n.escapeFn&&(i=n.escapeFn(i)),i)}function N(e,n){let i=m(e,{...n,maxLength:2048});if(i===void 0)return i;let t;try{t=new URL(i)}catch{return p(`must be valid URL: ${i}`,n)}return n.includes&&!t.origin.includes(n.includes)?p(`must include "${n.includes}": ${i}`,n):i}function j(e,n){let i=m(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 p(`domain must be valid when used as a URL: ${e}`,n)}let{hash:a,host:c,pathname:l,protocol:o,search:u}=t;if(o!=="http:"&&o!=="https:")return p(`must have http/https protocol or no protocol: ${e}`,n);if(l&&l!=="/"||a||u)return p(`must not specify path, query, or fragment: ${e}`,n);let d=c.split(".").length;return n.minParts!==void 0&&n.minParts>d?p(`must have at least ${n.minParts} parts: ${e}`,n):n.maxParts!==void 0&&n.maxParts<d?p(`must have at most ${n.minParts} parts: ${e}`,n):c.toLowerCase()}function W(e,n){let i=m(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:p(`must be valid email address: ${i}`,n)}
1function T(e,n){return n.choices.includes(e)?e:p(`invalid value '${e}' - must be one of [${n.choices.join(", ")}]`,n)}function ve(e,n){return Object.values(n.enum).includes(e)?e:p(`invalid value '${e}' - must be one of [${Object.values(n.enum).join(", ")}]`,n)}var si=/^(\d\d\d\d)(?:-(\d\d))?(?:-(\d\d))?(T.*)?$/,ci=/^(?:(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].*)?$/,li=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"),a=`${i}`.padStart(2,"0");return`${e}-${t}-${a}`}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?p(Ce(e),i):n}function Z(e,n){if(typeof e=="string"){let i=e.match(si);if(i){let[l,o,u,d]=i.slice(1,5);d!==void 0&&b(`Date "${e}" should not include a time component ("${d}"), which has been ignored`,n);let f=[l,o??"01",u??"01"].join("-");return(o===void 0||u===void 0)&&b(`non-standard date "${e}": interpreting date as "${f}". 2Please use a full date "YYYY-MM-DD" (ISO 8601).`,n),Xe(e,f,n)}if(i=e.match(ci),i){let[l,o,u,d]=i.slice(2,6);d!==void 0&&b(`Date "${e}" should not include a time component ("${d}"), which has been ignored`,n);let f=parseInt(u),P=li.get(o),D=parseInt(l),v=V(f,P,D);return Xe(e,v,n)}let t=Date.parse(e);if(isNaN(t))return p(Ce(e),n);let a=new Date(t),c=V(a.getFullYear(),a.getMonth()+1,a.getDate());return b(`non-standard date "${e}": interpreting date as "${c}". 3Please use a full date "YYYY-MM-DD" (ISO 8601).`,n),c}else return e instanceof Date?n.dateIsLocal?V(e.getFullYear(),e.getMonth()+1,e.getDate()):V(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate()):p(Ce(e),n)}function E(e,n){return typeof e!="object"?p("must be object",n):Array.isArray(e)?p("must be object, not array",n):e}function k(e,n,i){var t;let a={},c=n.required||[],l=n.optional||[],o=Object.entries((t=n.alias)!==null&&t!==void 0?t:{}).filter(d=>c.includes(d[1])||l.includes(d[1])).map(d=>d[0]),u=[];if(Object.keys(e).forEach(d=>{var f;if(c.includes(d)||l.includes(d))a[d]=e[d],c=c.filter(P=>P!==d);else if(o.includes(d)){let P=(f=n.alias)===null||f===void 0?void 0:f[d];e[P]===void 0?(a[P]=e[d],c=c.filter(D=>D!==P)):b(`both "${P}" and "${d}" were provided, "${d}" was ignored.`,i)}else u.push(d),i.keepExtraKeys&&(a[d]=e[d])}),!(c.length&&(p(`missing required key${c.length>1?"s":""}: ${c.join(", ")}`,i),!i.returnInvalidPartial)))return u.length&&b(`extra key${u.length>1?"s":""} ignored: ${u.join(", ")}`,i),a}function S(e,n,i){let t=E(e,i);if(t!==void 0)return k(t,n,i)}function h(e,n,i){let t;if(Array.isArray(e))t=e;else if(n.coerce)t=[e];else return p("must be an array",n);return t.map((a,c)=>i(a,c)).filter(a=>a!==void 0)}function Pe(e,n,i){let t={...e};return i.forEach(a=>{if(!s(t[a])&&s(n[a])){let c=a;t[c]=n[c]}}),t}var be=["enumerator","all","headings","title"],ge=["heading_1","heading_2","heading_3","heading_4","heading_5","heading_6"],ui=["figure","subfigure","equation","subequation","table","code",...ge],Ze=["enabled","start","enumerator","template","continue"],Ve=["continue","next"],mi={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){var i,t,a,c,l;he(e)?e={enabled:e}:typeof e=="number"?e={start:e}:Ve.includes(e)?e={continue:!0}:typeof e=="string"&&(e={template:e});let o=S(e,{optional:Ze},n);if(o===void 0)return;let u={};if(s(o.enabled)){let d=A(o.enabled,r("enabled",n));s(d)&&(u.enabled=d)}if(s(o.start))if(Ve.includes(o.start)&&!s(o.continue))u.continue=!0,u.enabled=(i=u.enabled)!==null&&i!==void 0?i:!0;else{let d=_(o.start,{...r("start",n),integer:!0,min:1});d&&(u.start=d,u.enabled=(t=u.enabled)!==null&&t!==void 0?t:!0)}if(s(o.template)){let d=m(o.template,r("template",n));s(d)&&(u.template=d,u.enabled=(a=u.enabled)!==null&&a!==void 0?a:!0)}if(s(o.enumerator)){let d=m(o.enumerator,r("enumerator",n));s(d)&&(u.enumerator=d,u.enabled=(c=u.enabled)!==null&&c!==void 0?c:!0)}
3if(s(o.continue)){let d=A(o.continue,r("continue",n));s(d)&&(u.continue=d,u.enabled=(l=u.enabled)!==null&&l!==void 0?l:!0)}if(Object.keys(u).length!==0)return u}function di(e,n){var i,t;he(e)?e={enabled:e}:typeof e=="number"&&(e={offset:e});let a=S(e,{optional:["enabled","offset","enumerator"]},n);if(a===void 0)return;let c={};if(s(a.enabled)){let l=A(a.enabled,r("enabled",n));s(l)&&(c.enabled=l)}if(s(a.offset)){let l=_(a.offset,{integer:!0,min:0,max:5,...r("offset",n)});s(l)&&(c.offset=l,c.enabled=(i=c.enabled)!==null&&i!==void 0?i:!0)}if(s(a.enumerator)){let l=m(a.enumerator,r("enumerator",n));s(l)&&(c.enumerator=l,c.enabled=(t=c.enabled)!==null&&t!==void 0?t:!0)}if(Object.keys(c).length!==0)return c}function Je(e,n){var i,t,a,c,l;he(e)&&(e={all:e});let o=S(e,{optional:[...ui,...be],alias:mi},{...n,suppressWarnings:!0,keepExtraKeys:!0});if(o===void 0)return;let u={},d;if(s(o.enumerator)){let f=r("enumerator",n);typeof o.enumerator=="string"&&(o.enumerator={enumerator:o.enumerator}),u.enumerator=J(o.enumerator,f),((i=u.enumerator)===null||i===void 0?void 0:i.enabled)!=null&&(u.enumerator.enabled!==!0&&b("value for 'enabled' is ignored",f),delete u.enumerator.enabled),((t=u.enumerator)===null||t===void 0?void 0:t.start)!=null&&(b("value for 'start' is ignored",f),delete u.enumerator.start),((a=u.enumerator)===null||a===void 0?void 0:a.continue)!=null&&(b("value for 'continue' is ignored",f),delete u.enumerator.continue),(!u.enumerator||Object.keys(u.enumerator).length===0)&&delete u.enumerator}if(s(o.all)){let f=r("all",n);u.all=J(o.all,f),((c=u.all)===null||c===void 0?void 0:c.template)!=null&&(b("value for 'template' is ignored",f),delete u.all.template),((l=u.all)===null||l===void 0?void 0:l.start)!=null&&(b("value for 'start' is ignored",f),delete u.all.start),(!u.all||Object.keys(u.all).length===0)&&delete u.all}if(s(o.title)&&(u.title=di(o.title,r("title",n))),s(o.headings)&&(d=J(o.headings,r("headings",n)),ge.forEach(f=>{d&&!s(o[f])&&(o[f]=d)})),Object.keys(o).filter(f=>!be.includes(f)).forEach(f=>{if(s(o[f])){let P=J(o[f],r(f,n));if(!s(P))return;d&&ge.includes(f)?u[f]={...d,...P}:u[f]=P}}),Object.keys(u).length!==0)return u}function $t(e,n){let i={...n,...e};return Object.entries(n??{}).filter(([t])=>!be.includes(t)).forEach(([t,a])=>{var c,l,o,u,d;i[t]=Pe((c=e?.[t])!==null&&c!==void 0?c:{},{...a,enabled:(o=(l=e?.all)===null||l===void 0?void 0:l.enabled)!==null&&o!==void 0?o:a.enabled,continue:(d=(u=e?.all)===null||u===void 0?void 0:u.continue)!==null&&d!==void 0?d:a.continue},Ze)}),i}function q(e){return JSON.stringify(Object.entries(e).filter(([,n])=>n!==void 0).sort())}function fi(e,n,i){let t="";if(i){let a=i.replace("\\","/").split("/"),c=a[a.length-1].split(".");c.length===1?t=`-${c[0]}`:t=`-${c.slice(0,c.length-1).join("-")}`}return`${e}${t}-generated-uid-${n}`}function ee(e){return{id:e,name:e}}function Q(e){var n;if(!e.name||!e.id||e.name!==e.id)return!1;let i=Object.keys(e).length;return i===2?!0:i===3&&((n=e.nameParsed)===null||n===void 0?void 0:n.literal)===e.id}function G(e,n,i,t,a){var c,l,o;let u={},d={};if((c=n[i])===null||c===void 0||c.forEach(D=>{D.id&&(u[D.id]=D,d[q({...D,id:void 0})]=D.id)}),typeof e=="string"&&Object.keys(u).includes(e))return e;let f=t(e,a);if(!f)return;let P=!Q(f);return f.id||(d[q(f)]?(f.id=d[q(f)],P=!1):f.id=fi(i,(o=(l=n[i])===null||l===void 0?void 0:l.length)!==null&&o!==void 0?o:0,a.file)),Object.keys(u).includes(f.id)?Q(u[f.id])?u[f.id]=f:P&&b(`duplicate id for ${i} found in frontmatter: ${f.id}`,a):u[f.id]=f,n[i]=Object.values(u),f.id}var ne=["title","hidden"];function ie(e,n){let i={};return s(e.title)&&(i.title=m(e.title,r("title",n))),s(e.hidden)&&(i.hidden=A(e.hidden,r("hidden",n))),i}function Li(e,n){let i=S(e,{required:["file"],optional:[...ne,"children"]},n);if(!i)return;let t=m(i.file,r("file",n));if(!t)return;let a=ie(i,n),c={file:t,...a};return s(e.children)&&(c={children:h(i.children,r("children",n),(o,u)=>te(o,r(`children.${u}`,n))),...c}),c}function pi(e,n){let i=S(e,{required:["url"],optional:[...ne,"children"]},n);if(!i)return;let t=m(i.url,r("url",n));if(!t)return;let a=ie(i,n),c={url:t,...a};return s(e.children)&&(c={children:h(i.children,r("children",n),(o,u)=>te(o,r(`children.${u}`,n))),...c}),c}function Ci(e,n){let i=S(e,{required:["pattern"],optional:[...ne]},n);if(!i)return;let t=m(i.pattern,r("pattern",n));if(!t)return;let a=ie(i,n);return{pattern:t,...a}}function Si(e,n){let i=S(e,{required:["title","children"],optional:[...ne]},n);if(!i)return;let t=m(i.title,r("title",n));if(!t)return;let a=h(i.children,r("children",n),(l,o)=>te(l,r(`children.${o}`,n)));if(!a)return;let c=ie(i,n);return{children:a,title:t,...c}}function te(e,n){let i=E(e,n);if(i)return s(i.file)?Li(i,n):s(i.url)?pi(i,n):s(i.pattern)?Ci(i,n):s(i.title)?Si(i,n):p("expected an entry with 'file', 'url', 'pattern', or 'title'",n)}function qe(e,n){return h(e,n,(i,t)=>te(i,r(`${t}`,n)))}var Ae="^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$";function B(e,n){let i=m(e,n);if(i!==void 0){if($e.validate(i,{strict:!0}))return i;p("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 N(i,{...r("github",n),includes:"github"})}function F(e,n){return typeof e=="string"?m(e,n):typeof e=="number"?e:p("must be string or number",n)}var vi=["number","doi","title","subject"];function De(e,n){typeof e!="object"&&(e={number:e});let i=S(e,{optional:vi,alias:{name:"number"}},n);if(i===void 0)return;let t={};if(s(i.number)&&(t.number=F(i.number,r("number",n))),s(i.doi)&&(t.doi=B(i.doi,r("doi",n))),s(i.title)&&(t.title=m(i.title,r("title",n))),s(i.subject)&&(t.subject=m(i.subject,r("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,...we],Oe=[...Ne,"id","references","requirements","resources","thebe","toc"];var ae=[...Ne,"label","kernelspec","jupytext","tags","site","enumerator","content_includes_title","skip_execution","execute"];var y;(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"})(y||(y={}));var oe={required:[],optional:["format","template","output","zip","id","name","renderer","articles","top_level","sub_articles"],alias:{article:"articles",sub_article:"sub_articles"}},Pi={optional:["file","title","level",...ae,...Object.keys(M)]},en={".pdf":y.pdf,".tex":y.tex,".doc":y.docx,".docx":y.docx,".md":y.md,".zip":y.meca,".meca":y.meca,".xml":y.xml,".jats":y.xml,".typ":y.typst,".typst":y.typst,".cff":y.cff},nn=[...oe.required,...oe.optional,...Object.keys(oe.alias),...Oe,...Object.keys(M)],bi=[y.typst,y.pdf,y.tex,y.pdftex];function tn(e,n){if(e===void 0)return;let i={coerce:!0,...r("exports",n)},t=h(e,i,(c,l)=>Di(c,r(`exports.${l}`,n)));if(!t||t.length===0)return;let a=new Set;return t.forEach((c,l)=>{c.id&&t.slice(l+1).map(({id:o})=>o).includes(c.id)&&a.add(c.id)}),a.size&&p(`duplicate export ids: ${[...a].join(", ")}`,i),t}function se(e,n){return e===void 0?void 0:(e==="tex+pdf"&&(e="pdf+tex"),e==="jats"&&(e="xml"),ve(e,{...n,enum:y}))}function gi(e,n){typeof e=="string"&&(e={file:e});let i=S(e,Pi,n);if(!i)return;let t={...i};return s(i.file)&&(t.file=m(i.file,n)),s(i.title)&&(t.title=m(i.title,r("title",n))),s(i.level)&&(t.level=_(i.level,{min:-1,max:6,integer:!0,...r("level",n)})),!t.title&&!t.file?p("export articles must specify file or part/chapter title",n):t}function hi(e){var n;return(n=e?.filter(i=>!!i.file))!==null&&n!==void 0?n:[]}function Ai(e){return hi(e)[0]}function Di(e,n){if(typeof e=="string"){let o,u;
3if(e.startsWith(".")?Object.entries(en).forEach(([d,f])=>{e===d&&(o=f)}):e.includes(".")&&(u=e),!o&&!u&&(o=se(e,n),!o))return;e={format:o,output:u}}let i=S(e,oe,{...n,suppressWarnings:!0,keepExtraKeys:!0});if(i===void 0)return;let t,a,c;if(i.template===null?c=null:s(i.template)&&(c=m(i.template,r("template",n))),s(i.output)){let o=r("output",n),u=m(i.output,o);if(u&&(Object.keys(en).forEach(d=>{u.endsWith(d)&&(a=u)}),u.slice(1).includes(".")||(a=u),!a))return p(`unknown export output extension: ${u}`,o)}if(s(i.format)&&(t=se(i.format,r("format",n)),!t))return;if(!t&&!c&&!a)return p("export must specify one of: format, template, or output",n);let l={...i,format:t,output:a,template:c};if(s(i.id)&&(l.id=m(i.id,r("id",n))),s(i.zip)&&(l.zip=A(i.zip,r("zip",n))),s(i.articles)){let o=h(i.articles,{coerce:!0,...r("articles",n)},(d,f)=>gi(d,r(`articles.${f}`,n))),u=Ai(o);o?.length?u?o.length>1&&l.format&&!bi.includes(l.format)?(l.format===y.xml&&!s(i.sub_articles)?p("multiple articles are not supported for 'jats' export - instead specify one article with additional sub_articles",n):p("multiple articles are only supported for 'tex', 'typst', and 'pdf' exports",n),l.articles=[u]):l.articles=o:(p("no files found in export article list",n),l.articles=void 0):l.articles=void 0}if(s(i.top_level)&&(l.top_level=T(i.top_level||"sections",{...r("top_level",n),choices:["parts","chapters","sections"]})),s(i.sub_articles)&&(l.format!==y.xml?(p("sub_articles are only supported for 'jats' export",n),l.sub_articles=void 0):l.sub_articles=h(i.sub_articles,{coerce:!0,...r("sub_articles",n)},(o,u)=>m(o,r(`sub_articles.${u}`,n)))),s(i.toc)){let o=r("toc",n);l.articles||l.sub_articles?(p("export cannot define both toc and articles/sub_articles; ignoring toc",o),l.toc=void 0):typeof i.toc=="string"?(l.tocFile=i.toc,l.toc=void 0):l.toc=qe(i.toc,o)}return l}var Ni={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=S(e,Ni,n);if(i===void 0)return;let t={};return s(i.id)&&(t.id=m(i.id,r("id",n))),s(i.url)&&(t.url=m(i.url,r("url",n))),t.url&&t.id?p("download must define only one of id and file/url, not both",n):!t.url&&!t.id?p("download must define either id or file/url",n):(s(i.title)&&(t.title=m(i.title,r("title",n))),s(i.filename)&&(t.filename=m(i.filename,r("filename",n))),s(i.format)&&(t.format=se(i.format,r("format",n))),s(i.static)&&(t.static=A(i.static,r("static",n))),t)}function rn(e,n){if(e===void 0)return;let i={coerce:!0,...r("downloads",n)},t=h(e,i,(l,o)=>Oi(l,r(`downloads.${o}`,n)));if(!t)return;let a=new Set,c=new Set;return t.forEach((l,o)=>{l.id&&t.slice(o+1).map(({id:u})=>u).includes(l.id)&&a.add(l.id),l.url&&t.slice(o+1).map(({url:u})=>u).includes(l.url)&&c.add(l.url)}),a.size&&p(`duplicate download ids: ${[...a].join(", ")}`,i),c.size&&p(`duplicate download urls: ${[...c].join(", ")}`,i),t}var Nn=kn(gn(),1);var Yi={"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"},"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"},"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"},"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"},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)"},Borceux:{name:"Borceux license"},"Brian-Gladman-2-Clause":{name:"Brian Gladman 2-Clause License"},"Brian-Gladman-3-Clause":{name:"Brian Gladman 3-Clause License"},"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-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"},"BSD-3-Clause-Sun":{name:"BSD 3-Clause Sun Microsystems"},"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-Attribution-HPND-disclaimer":{name:"BSD with Attribution and HPND disclaimer"},"BSD-Inferno-Nettverk":{name:"BSD-Inferno-Nettverk"},"BSD-Protection":{name:"BSD Protection License"},"BSD-Source-beginning-file":{name:"BSD Source Code Attribution - beginning of file variant"},"BSD-Source-Code":{name:"BSD Source Code Attribution"},"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},"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)"},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-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},"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}
3,"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"},"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"},"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"},"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"},"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"},"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"},"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-MIT-disclaimer":{name:"HPND sell variant with MIT disclaimer"},"HPND-sell-variant-MIT-disclaimer-rev":{name:"HPND sell variant with MIT disclaimer - reverse"},"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"},"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"},"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"},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-testregex":{name:"MIT testregex Variant"},"MIT-Wu":{name:"MIT Tom Wu Variant"},MITNFA:{name:"MIT +no-false-attribs license"},MMIXware:{name:"MMIXware License"},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"},"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-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"},"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"},"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},PADL:{name:"PADL License"},"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"},"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"},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"},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"},"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},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"},Wsuipa:{name:"Wsuipa 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-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=Yi;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 Hi(e,n,i){var t,a;if(n){let c=/^([CBYSAND0ZEROPDM-]+)(?:(?:-)([0-9].[0-9]))?(?:(?:-)([A-Z]{2,3}))?$/.exec(e);if(!c)throw new Error("Creative Commons license not found");let l=c[1].toUpperCase(),o=(t=c[2])!==null&&t!==void 0?t:"4.0",u=(a=c[3])!==null&&a!==void 0?a:"",d="";switch(l){case"CC-BY":d=`/by/${o}/`;break;case"CC-BY-SA":d=`/by-sa/${o}/`;break;case"CC-BY-NC":d=`/by-nc/${o}/`;break;case"CC-BY-NC-SA":d=`/by-nc-sa/${o}/`;break;case"CC-BY-ND":d=`/by-nd/${o}/`;break;case"CC-BY-NC-ND":d=`/by-nc-nd/${o}/`;break;case"CC-ZERO":case"CC-0":case"CC0":d="/zero/1.0/";break;case"CC-PDDC":d="/publicdomain/";break;case"CC-PDM":d="/publicdomain/mark/1.0/";break;default:break}return u&&(d+=`${u}/`),`https://creativecommons.org/licenses${d}`}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 ji(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:Hi(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){var i;if(typeof e=="string"){let l=m(e,n);if(l===void 0)return;let o=l.length<15?An(l):void 0;Ee[$(l)]?e={id:Ee[$(l)]}:ji(l)?e={url:l}:o?e={id:l}:l.match(/^[^\s]*$/)?e={id:l}:l.length<100?e={name:l}:e={note:l}}let t=S(e,{optional:["id","name","url","note","free","CC","osi"],alias:{cc:"CC"}},n);if(!t)return;let a={};if(t.id!=null){let l=m(t.id,r("id",n)),o=An(l);o?o!==l&&b(`The SPDX ID for the license is "${o}". Corrected from "${l}".`,n):b(`unknown license ID "${l}" - using a SPDX license ID is recommended, see https://spdx.org/licenses/`,n),a.id=o??l}else{if(t.url){let l=(i=N(t.url,{property:"",messages:{}}))!==null&&i!==void 0?i:"",o=Ee[$(l)];o&&(a.id=o,t.url=Ge[o].url)}a.id||b("no license ID - using a SPDX license ID is recommended, see https://spdx.org/licenses/",n)}let c=a.id?Ge[a.id]:void 0;if(t.url!=null){let l=r("url",n),o=N(t.url,l);o&&c?.url&&$(o)!==$(c.url)&&b(`incorrect URL for SPDX license ${c.id} - "${o}"`,l),a.url=o}else c?.url&&(a.url=c.url);if(t.name!=null){let l=r("name",n),o=m(t.name,l);o&&c?.name&&o!==c.name&&b(`incorrect name for SPDX license ${c.id} - "${o}"`,l),a.name=o}else c?.name&&(a.name=c.name);if(t.note!=null&&(a.note=m(t.note,r("note",n))),t.free!=null){let l=r("free",n),o=A(t.free,l);o&&!c?.free?b('only SPDX licenses may specify they are "free" as listed by the FSF',l):a.free=o}else c?.free!=null&&(a.free=c.free);if(t.CC!=null){let l=r("CC",n),o=A(t.CC,l);o&&!(c?.CC||a.url&&new URL(a.url).host==="creativecommons.org")?b('only licenses that link to creativecommons.org may specify that they are "CC"',l):a.CC=o}else c?.CC!=null&&(a.CC=c.CC);if(t.osi!=null){let l=r("osi",n),o=A(t.osi,l);o&&!c?.osi?b('only SPDX licenses may specify they are "OSI approved"',l):a.osi=o}else c?.osi!=null&&(a.osi=c.osi);if(Object.keys(a).length!==0)return a}function On(e,n){let i;typeof e=="string"||typeof e=="object"&&e.content==null&&e.code==null?(e={content:e},i=n):i=r("content",n);let t=S(e,{optional:["content","code"]},n);if(t===void 0)return;let a={};if(s(t.content)){let c=Dn(t.content,i);c&&(a.content=c)}if(s(t.code)&&t.code!==t.content){let c=Dn(t.code,r("code",n));c&&(a.code=c)}if(Object.keys(a).length!==0)return a}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 Wi=/^@?([a-zA-Z0-9_]+)@([^@]+\.[^@]*[^.])$/,Ki=/^@?([^/:]+\..*[^.])$/,zi=/^https:\/\/bsky\.app\/profile\/@?(.+\..*[^.])$/,Xi=/^@?([a-zA-Z0-9.]+)$/,Vi=/^[a-zA-Z0-9_.]+$/,Zi=/^@?([a-zA-Z0-9_]{4,15})$/,Ji=/^https:\/\/(?:twitter\.com|x\.com)\/@?([a-zA-Z0-9_]{4,15})$/,qi=/^@?([a-zA-Z0-9_.-]+)$/,Qi=/^https:\/\/github\.com\/orgs\/[a-zA-Z0-9_.-]+$/,et=/^@?([a-zA-Z0-9_]{5,})$/,nt=/^https:\/\/(?:t\.me|telegram\.me)\/?([a-zA-Z0-9_]{5,})$/;function it(e,n){let i=m(e,n);if(i===void 0)return;let t=i.match(Wi);if(t===null)return p("must be a user ID of the form @username@server e.g. @[email protected]",n);let a=t[1],c=j(t[2],n);if(c!==void 0)return`@${a}@${c}`}function tt(e,n){let i=m(e,n);if(i===void 0)return;let t;if(t=i.match(Ki)){let a=j(t[1],n);return a===void 0?void 0:`@${a}`}else{let a=N(i,n);if(a===void 0)return;if(t=a.match(zi),t===null)return p(`Bluesky profile URL must be a valid URL starting with https://bsky.app/profile/: ${i}`,n);let c=j(t[1],n);return c===void 0?void 0:`@${c}`}}function rt(e,n){let i=m(e,n);if(i===void 0)return;let t;return(t=i.match(Ji))||(t=i.match(Zi))?t[1]:p(`Twitter social identity must be a valid URL starting with https://twitter.com/, https://x.com/, or a valid username: ${i}`,n)}function at(e,n){let i=m(e,n);if(i===void 0)return;let t;return(t=i.match(nt))||(t=i.match(et))?t[1]:p(`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 ot(e,n){let i=m(e,n);if(i===void 0)return;if(/^https?:\/\//.test(i))return N(e,{...n,includes:"youtube.com"});let t;return(t=i.match(Xi))?t[1]:p(`YouTube social identity must be a valid URL starting with https://youtube.com/ or a valid handle: ${i}`,n)}function st(e,n){let i=m(e,n);if(i===void 0)return;let t;return(t=i.match(qi))?t[1]:(t=i.match(Ae))||(t=i.match(Qi))?t[0]:p(`GitHub social identity must be a valid username, org/repo, or org URL: ${i}`,n)}function le(e,n,i){let t=i?e:S(e,{optional:Y,alias:H},n);if(t===void 0)return;let a=i??{};return s(t.url)&&(a.url=N(t.url,r("url",n))),s(t.github)&&(a.github=st(t.github,r("github",n))),s(t.bluesky)&&(a.bluesky=tt(t.bluesky,r("bluesky",n))),s(t.mastodon)&&(a.mastodon=it(t.mastodon,r("mastodon",n))),s(t.linkedin)&&(a.linkedin=N(t.linkedin,{...r("linkedin",n),includes:"linkedin.com"})),s(t.threads)&&(a.threads=m(t.threads,{...r("threads",n),regex:Vi}
3)),s(t.twitter)&&(a.twitter=rt(t.twitter,r("twitter",n))),s(t.telegram)&&(a.telegram=at(t.telegram,r("telegram",n))),s(t.youtube)&&(a.youtube=ot(t.youtube,r("youtube",n))),s(t.discourse)&&(a.discourse=N(t.discourse,r("discourse",n))),s(t.discord)&&(a.discord=N(t.discord,{...r("discord",n),includes:"discord"})),s(t.slack)&&(a.slack=N(t.slack,{...r("slack",n),includes:"slack.com"})),s(t.facebook)&&(a.facebook=N(t.facebook,{...r("facebook",n),includes:"facebook.com"})),a}var Ie=["id","address","city","state","postal_code","country","name","department","collaboration","isni","ringgold","ror","doi","email","phone","fax",...Y],_e={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=S(e,{optional:Ie,alias:_e},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=m(i.id,r("id",n))),s(i.name)?t.name=m(i.name,r("name",n)):b("affiliation should include name/institution",n),s(i.department)&&(t.department=m(i.department,r("department",n))),s(i.address)&&(t.address=m(i.address,r("address",n))),s(i.city)&&(t.city=m(i.city,r("city",n))),s(i.state)&&(t.state=m(i.state,r("state",n))),s(i.postal_code)&&(t.postal_code=m(i.postal_code,{coerceNumber:!0,...r("postal_code",n)})),s(i.country)&&(t.country=m(i.country,r("country",n))),s(i.isni)&&(t.isni=m(i.isni,r("isni",n))),s(i.ror)&&(t.ror=m(i.ror,r("ror",n))),s(i.ringgold)&&(t.ringgold=_(i.ringgold,{min:1e3,max:999999,...r("ringgold",n)})),s(i.doi)&&(t.doi=B(i.doi,r("doi",n))),s(i.collaboration)&&(t.collaboration=A(i.collaboration,r("collaboration",n))),s(i.email)&&(t.email=W(i.email,r("email",n))),le(i,n,t),s(i.phone)&&(t.phone=m(i.phone,r("phone",n))),s(i.fax)&&(t.fax=m(i.fax,r("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){var n,i;let t=e.split(",");if(t.length===1)return{literal:e,...lt(e)};let a=(n=t.pop())===null||n===void 0?void 0:n.trim(),c=ct(a);if(t.length===1)return{literal:e,...c,...yn(t[0])};let l=(i=t.pop())===null||i===void 0?void 0:i.trim(),o=yn(t.join(","));return l?{literal:e,...c,...o,suffix:l}:{literal:e,...c,...o}}function ct(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 yn(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 lt(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:a,non_dropping_particle:c,family:l,suffix:o}=e;if(i)return i;let u=[t,a,c,l,o].join("").includes(",");if(!n&&!u&&!a&&!o){let f=[t,c,l].filter(Boolean).join(" "),P=ue(f);delete P.literal;let D=JSON.stringify(Object.entries(P).sort()),v=JSON.stringify(Object.entries(e).sort());if(D===v)return f}let d=",";return(o||u)&&(d=`${d}${o?" ":""}${o??""},`),t&&(d=`${d} ${t}`),l&&(d=`${l}${d}`),a&&(d=`${d} ${a}`),c&&(d=`${c} ${d}`),d===","?"":d}var ut=["id","userId","name","nameParsed","orcid","corresponding","equal_contributor","deceased","email","roles","affiliations","collaborations","note","phone","fax",...Y],mt={ref:"id",role:"roles","equal-contributor":"equal_contributor",affiliation:"affiliations",...H},dt=["literal","given","family","suffix","non_dropping_particle","dropping_particle"],ft={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 a=S(e,{optional:dt,alias:ft},n);if(a===void 0)return;i={},s(a.literal)&&(i.literal=m(a.literal,r("literal",n))),s(a.given)&&(i.given=m(a.given,r("given",n))),s(a.non_dropping_particle)&&(i.non_dropping_particle=m(a.non_dropping_particle,r("non_dropping_particle",n))),s(a.dropping_particle)&&(i.dropping_particle=m(a.dropping_particle,r("dropping_particle",n))),s(a.family)&&(i.family=m(a.family,r("family",n))),s(a.suffix)&&(i.suffix=m(a.suffix,r("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(",")&&b(`unexpected comma at beginning of name: ${i.literal} - you may need to define 'name.literal' explicitly`,n))}if(t){let a=(c,l)=>{c&&c.includes(",")&&b(`unexpected comma in name part: ${c} - you may need to define 'name' explicitly as an object`,l)};a(i.given,r("given",n)),a(i.family,r("family",n)),a(i.non_dropping_particle,r("non_dropping_particle",n)),a(i.dropping_particle,r("dropping_particle",n)),a(i.suffix,r("suffix",n))}return i}function R(e,n,i){var t,a,c;let l=S(e,{optional:Ie,alias:_e},{...i,suppressErrors:!0,suppressWarnings:!0});if(l?.collaboration===!0)return U(e,i);typeof e=="string"&&(e=ee(e));let o=S(e,{optional:ut,alias:mt},i);if(o===void 0)return;l&&Object.keys(l).length>Object.keys(o).length&&b('contributor may be a collaboration, not a person - if so, add "collaboration: true"',i),Object.keys(o).length===1&&o.id&&(o.name=o.id);let u={};if(s(o.id)&&(u.id=m(o.id,r("id",i))),s(o.userId)&&(u.userId=m(o.userId,r("userId",i))),s(o.nameParsed)?(u.nameParsed=En(o.nameParsed,r("nameParsed",i)),u.name=o.name?m(o.name,r("name",i)):(t=u.nameParsed)===null||t===void 0?void 0:t.literal,u.name!==((a=u.nameParsed)===null||a===void 0?void 0:a.literal)&&b('"name" and "parsedName.literal" should match',i)):s(o.name)?(u.nameParsed=En(o.name,r("name",i)),u.name=(c=u.nameParsed)===null||c===void 0?void 0:c.literal):b("contributor should include name",i),s(o.orcid)){let f=r("orcid",i),P=ze.normalize(o.orcid);P?u.orcid=P:p(`ORCID "${o.orcid}" is not valid, try an ID of the form "0000-0000-0000-0000"`,f)}if(s(o.corresponding)){let f=r("corresponding",i);u.corresponding=A(o.corresponding,f),o.corresponding&&!s(o.email)&&(p("must include email for corresponding author",f),u.corresponding=!1)}if(s(o.equal_contributor)&&(u.equal_contributor=A(o.equal_contributor,r("equal_contributor",i))),s(o.deceased)&&(u.deceased=A(o.deceased,r("deceased",i))),s(o.email)&&(u.email=W(o.email,r("email",i))),s(o.roles)){let f=r("roles",i),P=o.roles;typeof P=="string"&&(P=P.split(/[,;]/)),u.roles=h(P,f,D=>{let v=m(D,f);if(v===void 0)return;let L=je.normalize(v);return L||(b(`unknown value "${v}" - should be a CRediT role - see https://credit.niso.org/`,f),v.trim())})}if(s(o.collaborations)&&p('collaborations must be defined in frontmatter as affiliations with "collaboration: true"',r("collaborations",i)),s(o.affiliations)){let f=r("affiliations",i),P=o.affiliations;typeof P=="string"&&(P=P.split(";").map(D=>D.trim())),Array.isArray(P)||(P=[P]),u.affiliations=h(P,f,D=>G(D,n,"affiliations",U,f))}if(le(o,i,u),s(o.phone)&&(u.phone=m(o.phone,r("phone",i))),s(o.fax)&&(u.fax=m(o.fax,r("fax",i))),s(o.note)&&(u.note=m(o.note,r("note",i))),Q(u)||!u.nameParsed||o.nameParsed||o.name&&typeof o.name!="string")return u;let d=" - if this is intended, you may define 'name' explicitly as an object";return u.nameParsed.given||b(`No given name for name '${u.nameParsed.literal}'${d}`,i),u.nameParsed.family||b(`No family name for name '${u.nameParsed.literal}'${d}`,i),u}var me=["id","name","description","sources","recipients","investigators"],de={source:"sources",recipient:"recipients",investigator:"investigators"},Te=["statement","open_access","awards"],Be={award:"awards"};function Lt(e,n,i){let t=S(e,{optional:me,alias:de},i);if(t===void 0)return;let a={};return s(t.id)&&(a.id=m(t.id,{...r("id",i),coerceNumber:!0})),s(t.name)&&(a.name=m(t.name,r("name",i))),s(t.description)&&(a.description=m(t.description,r("description",i))),s(t.sources)&&(a.sources=h(t.sources,{
3coerce:!0,...r("sources",i)},(c,l)=>G(c,n,"affiliations",U,r(`sources.${l}`,i)))),s(t.recipients)&&(a.recipients=h(t.recipients,{coerce:!0,...r("recipients",i)},(c,l)=>G(c,n,"contributors",(o,u)=>R(o,n,u),r(`recipients.${l}`,i)))),s(t.investigators)&&(a.investigators=h(t.investigators,{coerce:!0,...r("investigators",i)},(c,l)=>G(c,n,"contributors",(o,u)=>R(o,n,u),r(`investigators.${l}`,i)))),a}function Gn(e,n,i){typeof e=="string"&&(e={statement:e});let t=E(e,i);if(t===void 0)return;let a=k(t,{optional:Te,alias:Be},{...i,suppressErrors:!0,suppressWarnings:!0});if(a===void 0)return;if(a.awards)k(t,{optional:Te,alias:Be},i);else{k(t,{optional:[...Te,...me],alias:{...Be,...de}},i);let l=S(e,{optional:me,alias:de},{...i,suppressErrors:!0,suppressWarnings:!0});l&&Object.keys(l).length>0&&(a.awards=[S(e,{optional:me,alias:de},{...i,suppressErrors:!0,suppressWarnings:!0})])}let c={};return s(a.statement)&&(c.statement=m(a.statement,r("statement",i))),s(a.open_access)&&(c.open_access=m(a.open_access,r("open_access",i))),s(a.awards)&&(c.awards=h(a.awards,{coerce:!0,...r("awards",i)},(l,o)=>Lt(l,n,r(`awards.${o}`,i)))),c}function In(e,n){let i;typeof e=="string"?(e={title:e},i=n):i=r("title",n);let t=S(e,{optional:["title","short_title","url","doi","number","location","date","series","issn","publisher"]},n);if(t===void 0)return;let a={};return s(t.title)&&(a.title=m(t.title,i)),s(t.short_title)&&(a.short_title=m(t.short_title,r("short_title",n))),s(t.url)&&(a.url=N(t.url,r("url",n))),s(t.doi)&&(a.doi=B(t.doi,r("doi",n))),s(t.number)&&(a.number=F(t.number,r("number",n))),s(t.location)&&(a.location=m(t.location,r("location",n))),s(t.date)&&(a.date=m(t.date,r("date",n))),s(t.series)&&(a.series=m(t.series,r("series",n))),s(t.issn)&&(a.issn=m(t.issn,r("issn",n))),s(t.publisher)&&(a.publisher=m(t.publisher,r("publisher",n))),a}function _n(e,n){var i,t,a,c,l;let o={};s(e.title)&&(o.title=m(e.title,r("title",n))),s(e.description)&&(o.description=m(e.description,r("description",n))),s(e.short_title)&&(o.short_title=m(e.short_title,r("short_title",n))),s(e.subtitle)&&(o.subtitle=m(e.subtitle,r("subtitle",n))),e.banner===null?o.banner=null:s(e.banner)&&(o.banner=m(e.banner,r("banner",n))),s(e.bannerOptimized)&&(o.bannerOptimized=e.bannerOptimized),s(e.tags)&&(o.tags=h(e.tags,r("tags",n),(v,L)=>m(v,r(`tags.${L}`,n))));let u={};if(s(e.affiliations)){let v=r("affiliations",n),L=e.affiliations;typeof L=="string"&&(L=L.split(";").map(C=>C.trim())),h(L,v,C=>G(C,u,"affiliations",U,v))}if(s(e.authors)&&(u.authorIds=h(e.authors,{coerce:!0,...r("authors",n)},(v,L)=>G(v,u,"contributors",(C,g)=>R(C,u,g),r(`authors.${L}`,n)))),s(e.contributors)&&h(e.contributors,{coerce:!0,...r("contributors",n)},(v,L)=>G(v,u,"contributors",(C,g)=>R(C,u,g),r(`contributors.${L}`,n))),s(e.reviewers)&&(o.reviewers=h(e.reviewers,{coerce:!0,...r("reviewers",n)},(v,L)=>G(v,u,"contributors",(C,g)=>R(C,u,g),r(`reviewers.${L}`,n)))),s(e.editors)&&(o.editors=h(e.editors,{coerce:!0,...r("editors",n)},(v,L)=>G(v,u,"contributors",(C,g)=>R(C,u,g),r(`editors.${L}`,n)))),s(e.venue)&&(o.venue=In(e.venue,r("venue",n))),s(e.github)&&(o.github=Qe(e.github,r("github",n))),s(e.keywords)){let v=e.keywords;typeof v=="string"&&(v=v.split(/[,;]/).map(L=>L.trim())),o.keywords=h(v,r("keywords",n),(L,C)=>m(L,r(`keywords.${C}`,n)))}if(s(e.funding)&&(o.funding=h(e.funding,{coerce:!0,...r("funding",n)},(v,L)=>Gn(v,u,r(`funding.${L}`,n)))),s(e.copyright)&&(o.copyright=m(e.copyright,r("copyright",n))),s(e.options)){let v=r("options",n),L=E(e.options,v);L&&Object.entries(L).forEach(([C,g])=>{var x;nn.includes(C)?p(`options cannot include reserved key ${C}`,v):((x=o.options)!==null&&x!==void 0?x:o.options={})[C]=g})}let d=r("parts",n),f;if(s(e.parts)&&(f=S(e.parts,{optional:Le,alias:M},{keepExtraKeys:!0,suppressWarnings:!0,...d})),Le.forEach(v=>{s(e[v])&&(f??(f={}),f[v]?p(`duplicate value for part ${v}`,d):f[v]=e[v])}),f){let v=Object.entries(f).map(([L,C])=>[L,h(C,{coerce:!0,...r(L,d)},(g,x)=>m(g,r(`${L}.${x}`,d)))]).filter(L=>{var C;return!!(!((C=L[1])===null||C===void 0)&&C.length)});v.length>0&&(o.parts=Object.fromEntries(v))}let P=(i=u.contributors)===null||i===void 0?void 0:i.filter(v=>{var L;return(L=u.authorIds)===null||L===void 0?void 0:L.includes(v.id)}),D=(t=u.contributors)===null||t===void 0?void 0:t.filter(v=>{var L;return!(!((L=u.authorIds)===null||L===void 0)&&L.includes(v.id))});if(P?.length){o.authors=P;let v=(a=o.authors)===null||a===void 0?void 0:a.find(C=>C.corresponding),L=(c=o.authors)===null||c===void 0?void 0:c.find(C=>C.email&&!C.collaboration&&C.corresponding===void 0);!v&&L&&(L.corresponding=!0)}return D?.length&&(o.contributors=D),!((l=u.affiliations)===null||l===void 0)&&l.length&&(o.affiliations=u.affiliations),o}var pt=["codeStyle","beamer"],Ct={code_style:"codeStyle"};function Tn(e,n){let i={},t=S(e,{optional:pt,alias:Ct},n);if(t){if(s(t.codeStyle)){let a=T(t.codeStyle,{...r("codeStyle",n),choices:["verbatim","minted","listings"]});a&&(i.codeStyle=a)}if(s(t.beamer)){let a=A(t.beamer,r("beamer",n));a!=null&&(i.beamer=a)}if(Object.keys(i).length!==0)return i}}var Fe=["show","remove","remove-warn","remove-error","warn","error"],St=["output_stderr","output_stdout","output_matplotlib_strings","myst_to_tex"],vt={stderr_output:"output_stderr",stdout_output:"output_stdout",mystToTex:"myst_to_tex",tex:"myst_to_tex"};function Bn(e,n){let i={},t=S(e,{optional:St,alias:vt},n);if(t){if(s(t.output_stderr)){let a=T(t.output_stderr,{...r("output_stderr",n),choices:Fe});a&&(i.output_stderr=a)}if(s(t.output_stdout)){let a=T(t.output_stdout,{...r("output_stdout",n),choices:Fe});a&&(i.output_stdout=a)}if(s(t.output_matplotlib_strings)){let a=T(t.output_matplotlib_strings,{...r("output_matplotlib_strings",n),choices:Fe});a&&(i.output_matplotlib_strings=a)}if(s(t.myst_to_tex)){let a=Tn(t.myst_to_tex,r("myst_to_tex",n));a&&(i.myst_to_tex=a)}if(Object.keys(i).length!==0)return i}}function Pt(e,n){typeof e=="string"&&(e={macro:e});let i=S(e,{required:["macro"],optional:["title","description"]},n);if(!i)return;let t=m(i.macro,r("macro",n));if(!t)return;let a={macro:t};return s(i.title)&&(a.title=m(i.title,r("title",n))),s(i.description)&&(a.description=m(i.description,r("description",n))),a}function Fn(e,n){let i=E(e,n);if(!i)return;let t=Object.entries(i).map(([a,c])=>{let l=Pt(c,r(a,n));return l?[a,l]:!1}
3).filter(a=>!!a);return Object.fromEntries(t)}function bt(e){return e==="arxiv"?(n,i)=>N(n,{...r("arxiv",i),includes:"arxiv.org"}):e==="pmid"?(n,i)=>_(n,{...r("pmid",i),integer:!0,min:1}):e==="pmcid"?(n,i)=>m(n,{...r("pmcid",i),regex:"^PMC[0-9]+$"}):e==="zenodo"?(n,i)=>N(n,{...r("zenodo",i),includes:"zenodo.org"}):(n,i)=>F(n,r(e,i))}function Rn(e,n){var i;let t=_n(e,n);s(e.date)&&(t.date=Z(e.date,r("date",n)));let a=r("identifiers",n),c;if(s(e.identifiers)&&(c=S(e.identifiers,{optional:re},{keepExtraKeys:!0,suppressWarnings:!0,...a})),re.forEach(l=>{s(e[l])&&(c??(c={}),c[l]?p(`duplicate value for identifier ${l}`,a):c[l]=e[l])}),c?.doi&&(s(e.doi)?p("duplicate value for DOI",a):(e.doi=c.doi,b("DOI should be defined directly on the project frontmatter, not under 'identifiers'",a)),delete c.doi),c){let l=Object.entries(c).map(([o,u])=>{let d=bt(o);return[o,d(u,a)]}).filter(o=>o[1]!=null);l.length>0&&(t.identifiers=Object.fromEntries(l))}if(s(e.doi)&&(t.doi=B(e.doi,r("doi",n))),s(e.open_access)&&(t.open_access=A(e.open_access,r("open_access",n))),s(e.license)&&(t.license=On(e.license,r("license",n))),s(e.binder)&&(t.binder=N(e.binder,r("binder",n))),s(e.source)&&(t.source=N(e.source,r("source",n))),s(e.subject)&&(t.subject=m(e.subject,{...r("subject",n),maxLength:40})),s(e.bibliography)&&(t.bibliography=h(e.bibliography,{coerce:!0,...r("bibliography",n)},(l,o)=>m(l,r(`bibliography.${o}`,n)))),s(e.volume)&&(t.volume=De(e.volume,r("volume",n))),s(e.issue)&&(t.issue=De(e.issue,r("issue",n))),s(e.first_page)&&(t.first_page=F(e.first_page,r("first_page",n))),s(e.last_page)&&(t.last_page=F(e.last_page,r("last_page",n))),s(e.oxa)&&(t.oxa=m(e.oxa,r("oxa",n))),s(e.numbering)&&(t.numbering=Je(e.numbering,r("numbering",n))),s(e.math)&&(t.math=Fn(e.math,r("math",n))),s(e.abbreviations)){let l=r("abbreviations",n),o=Object.fromEntries(Object.entries((i=E(e.abbreviations,l))!==null&&i!==void 0?i:{}).map(([u,d])=>{if(d===null||d===!1)return[u,null];let f=m(d,r(u,l));return m(u,{...r(u,l),minLength:2})&&f?[u,f]:null}).filter(u=>!!u));o&&Object.keys(o).length>0&&(t.abbreviations=o)}if(s(e.exports)){let l=tn(e.exports,n);l&&(t.exports=l)}if(s(e.downloads)){let l=rn(e.downloads,n);l&&(t.downloads=l)}if(e.thumbnail===null?t.thumbnail=null:s(e.thumbnail)&&(t.thumbnail=m(e.thumbnail,r("thumbnail",n))),s(e.thumbnailOptimized)&&(t.thumbnailOptimized=e.thumbnailOptimized),e.banner===null?t.banner=null:s(e.banner)&&(t.banner=m(e.banner,r("banner",n))),s(e.bannerOptimized)&&(t.bannerOptimized=e.bannerOptimized),s(e.settings)){let l=Bn(e.settings,r("settings",n));l&&(t.settings=l)}return e.edit_url===null?t.edit_url=null:s(e.edit_url)&&(t.edit_url=N(e.edit_url,r("edit_url",n))),e.source_url===null?t.source_url=null:s(e.source_url)&&(t.source_url=N(e.source_url,r("source_url",n))),t}var gt=["name","display_name","language","argv","env"];function wn(e,n){let i=S(e,{optional:gt},n);if(i===void 0)return;let t;if(s(i.name)){let l=m(i.name,r("name",n));if(l===void 0)return;t=l}else t="python3",b(`"name" key is required; using '${t}' as placeholder value`,n);let a;if(s(i.display_name)){let l=m(i.display_name,r("display_name",n));if(l===void 0)return;a=l}else a=`${t} Kernel`,b(`"display_name" key is required; using '${a}' as placeholder value`,n);let c={name:t,display_name:a};return s(i.language)&&(c.language=m(i.language,r("language",n))),s(i.env)&&(c.env=E(i.env,r("env",n))),s(i.argv)&&(c.argv=h(i.argv,r("argv",n),(l,o)=>m(l,r(`argv.${o}`,n)))),c}var ht=["skip","depends_on_env","cache"];function Mn(e,n){let i=S(e,{optional:ht},n);if(i===void 0)return;let t={};return s(i.skip)&&(t.skip=A(i.skip,r("skip",n))),s(i.depends_on_env)&&(t.depends_on_env=h(i.depends_on_env,r("depends_on_env",n),(a,c)=>m(a,r(`depends_on_env.${c}`,n)))),s(i.cache)&&(t.cache=A(i.cache,r("cache",n))),t}var At=["extension","format_name","format_version","jupytext_version"],Dt=["formats","text_representation"];function Nt(e,n){let i=S(e,{optional:At},n);if(i===void 0)return;let t={};if(s(i.extension)&&(t.extension=m(i.extension,r("extension",n))),s(i.format_name)&&(t.format_name=m(i.format_name,r("format_name",n))),s(i.format_version)){let a=typeof i.format_version=="number"?String(i.format_version):i.format_version;t.format_version=m(a,r("format_version",n))}return s(i.jupytext_version)&&(t.jupytext_version=m(i.jupytext_version,r("jupytext_version",n))),t}function Un(e,n){let i=S(e,{optional:Dt},n);if(i===void 0)return;let t={};return s(i.formats)&&(t.formats=m(i.formats,r("formats",n))),s(i.text_representation)&&(t.text_representation=Nt(i.text_representation,r("text_representation",n))),t}function Ot(e,n){var i;let t=Rn(e,n);return s(e.label)&&(t.label=m(e.label,r("label",n))),s(e.kernelspec)&&(t.kernelspec=wn(e.kernelspec,r("kernelspec",n))),s(e.jupytext)&&(t.jupytext=Un(e.jupytext,r("jupytext",n))),s(e.execute)&&(t.execute=Mn(e.execute,r("execute",n))),s(e.skip_execution)&&((i=t.execute)!==null&&i!==void 0||(t.execute={}),s(t.execute.skip)?b("both execute.skip and deprecated skip_execution are defined, taking execute.skip",n):(b("skip_execution is deprecated
3in favour of execute.skip",n),t.execute.skip=A(e.skip_execution,r("skip_execution",n)))),s(e.enumerator)&&(t.enumerator=m(e.enumerator,r("enumerator",n))),s(e.content_includes_title)&&(t.content_includes_title=A(e.content_includes_title,r("content_includes_title",n))),s(e.site)&&(t.site=E(e.site,r("site",n))),t}function ja(e,n){let i=S(e,{optional:ae,alias:{...M,name:"label"}},n)||{};return Ot(i,n)}export{r as a,b,Pe as c,q as d,ee as e,Q as f,$e as g,Jn as h,pe as i,ni as j,ii as k,ze as l,$t as m,ja 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.