mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
3 lines
36 KiB
JavaScript
3 lines
36 KiB
JavaScript
import{d as we,s as w,h as D,v as G,o as g,c as x,j as e,t as n,F as N,E as O,a2 as m,a3 as R,a4 as Y,e as I,a5 as f,a as ge,a6 as F,p as xe,l as me,_ as ye}from"./framework.gjrnbxUT.js";const he={support:{BSD:"wip"},type:"external","arg-type":"custom",source:"amqp","lib-depends":["librabbitmq"],"ext-depends-windows":["openssl"]},ve={type:"external",source:"apcu"},fe={type:"external",source:"ast"},ze={type:"builtin"},Se={type:"builtin","arg-type-unix":"with-prefix","arg-type-windows":"with","lib-depends":["bzip2"]},De={type:"builtin"},ke={type:"builtin"},Be={notes:!0,type:"builtin","arg-type":"with","lib-depends":["curl"],"ext-depends-windows":["zlib","openssl"]},qe={type:"builtin","arg-type":"custom","lib-suggests":["qdbm"]},Ee={support:{BSD:"wip"},type:"external",source:"dio"},Ce={support:{BSD:"wip"},type:"builtin","arg-type":"custom","arg-type-windows":"with","lib-depends":["libxml2","zlib"],"ext-depends-windows":["xml"]},We={type:"external",source:"ext-ds"},Ie={support:{Windows:"wip",BSD:"wip",Darwin:"wip",Linux:"wip"},type:"wip"},Pe={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-event","arg-type":"custom","lib-depends":["libevent"],"ext-depends":["openssl"],"ext-suggests":["sockets"]},_e={type:"builtin"},Ue={support:{Linux:"partial",BSD:"wip"},target:["static","shared"],notes:!0,"arg-type":"custom",type:"builtin","lib-depends-unix":["libffi"],"lib-depends-windows":["libffi-win"]},Le={type:"builtin"},$e={type:"builtin"},Ne={type:"builtin","lib-suggests":["openssl"]},Oe={support:{BSD:"wip"},notes:!0,type:"builtin","arg-type":"custom","arg-type-windows":"with","lib-depends":["zlib","libpng"],"ext-depends":["zlib"],"lib-suggests":["libavif","libwebp","libjpeg","freetype"]},Ve={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-prefix","lib-depends":["gettext"]},Ae={support:{Windows:"wip",BSD:"no",Linux:"no"},notes:!0,type:"external","arg-type":"custom",source:"ext-glfw","lib-depends":["glfw"],"lib-depends-windows":[]},Te={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-prefix","lib-depends":["gmp"]},je={support:{BSD:"wip"},type:"external",source:"ext-gmssl","lib-depends":["gmssl"]},Ge={support:{Windows:"wip",BSD:"wip"},type:"external",source:"grpc","arg-type-unix":"custom","cpp-extension":!0,"lib-depends":["grpc"]},Xe={support:{BSD:"wip"},type:"builtin","arg-type":"with-prefix","arg-type-windows":"with","lib-depends-unix":["libiconv"],"lib-depends-windows":["libiconv-win"]},Me={support:{BSD:"wip"},type:"external",source:"igbinary","ext-suggests":["session","apcu"]},He={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-imagick","arg-type":"custom","lib-depends":["imagemagick"]},Re={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-imap","arg-type":"custom","lib-depends":["imap"],"ext-suggests":["openssl"]},Fe={support:{Windows:"no",BSD:"wip",Darwin:"no"},type:"external",source:"inotify"},Ze={support:{Windows:"no",BSD:"wip"},type:"builtin","lib-depends":["icu"]},Qe={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-prefix","lib-depends":["ldap"],"lib-suggests":["gmp","libsodium"],"ext-suggests":["openssl"]},Ke={support:{BSD:"wip"},type:"builtin","arg-type":"none","ext-depends":["xml"]},Ye={type:"builtin","arg-type":"custom","ext-depends":["mbstring"],"lib-depends":["onig"]},Je={type:"builtin","arg-type":"custom"},ei={type:"wip",support:{Windows:"no",BSD:"no",Darwin:"no",Linux:"no"},notes:!0},ii={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-memcache","arg-type":"custom","ext-depends":["zlib","session"]},si={support:{Windows:"wip",BSD:"wip",Linux:"no"},type:"external",source:"memcached","arg-type":"custom","cpp-extension":!0,"lib-depends":["libmemcached"],"ext-depends":["session","zlib"]},ti={support:{BSD:"wip",Windows:"wip"},type:"external",source:"mongodb","arg-type":"custom","lib-suggests":["icu","openssl","zstd","zlib"]},li={support:{BSD:"wip"},type:"external",source:"msgpack","arg-type-unix":"with","arg-type-win":"enable"},ni={type:"builtin","arg-type":"with","ext-depends":["mysqlnd"]},oi={type:"builtin","arg-type-windows":"with","lib-depends":["zlib"]},ai={type:"wip",support:{Windows:"wip",BSD:"no",Darwin:"no",Linux:"no"},notes:!0},di={support:{BSD:"wip",Windows:"wip"},type:"builtin","arg-type-unix":"custom","lib-depends-unix":["unixodbc"]},pi={type:"builtin","arg-type-unix":"custom"},ui={notes:!0,type:"builtin","arg-type":"custom","arg-type-windows":"with","lib-depends":["openssl","zlib"],"ext-depends":["zlib"]},ri={support:{BSD:"wip"},type:"external",source:"opentelemetry"},ci={support:{BSD:"wip"},notes:!0,type:"external",source:"parallel","arg-type-windows":"with","lib-depends-windows":["pthreads4w"]},bi={support:{Windows:"no"},type:"builtin","unix-only":!0},wi={type:"builtin"},gi={type:"builtin","arg-type":"with","ext-depends":["pdo","mysqlnd"]},xi={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends-unix":["unixodbc"],"ext-depends":["pdo","odbc"]},mi={support:{BSD:"wip"},type:"builtin","arg-type":"with-prefix","arg-type-windows":"custom","ext-depends":["pdo","pgsql"],"lib-depends-unix":["postgresql"],"lib-depends-windows":["postgresql-win"]},yi={support:{BSD:"wip"},type:"builtin","arg-type":"with","ext-depends":["pdo","sqlite3"],"lib-depends":["sqlite"]},hi={support:{BSD:"wip"},type:"external",source:"pdo_sqlsrv","arg-type":"with","ext-depends":["pdo","sqlsrv"]},vi={support:{BSD:"wip"},notes:!0,type:"builtin","arg-type":"custom","lib-depends-unix":["postgresql"],"lib-depends-windows":["postgresql-win"]},fi={type:"builtin","ext-depends":["zlib"]},zi={support:{Windows:"no"},type:"builtin","unix-only":!0},Si={support:{Windows:"wip",BSD:"wip"},type:"external",source:"protobuf"},Di={support:{BSD:"wip",Darwin:"partial"},notes:!0,type:"external",source:"rar","cpp-extension":!0},ki={support:{BSD:"wip",Windows:"wip"},type:"external",source:"ext-rdkafka","arg-type":"custom","cpp-extension":!0,"lib-depends":["librdkafka"]},Bi={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-prefix","lib-depends":["readline"]},qi={support:{BSD:"wip"},type:"external",source:"redis","arg-type":"custom","ext-suggests":["session","igbinary"],"lib-suggests-unix":["zstd","liblz4"]},Ei={type:"builtin"},Ci={type:"builtin"},Wi={type:"external",source:"ext-simdjson","cpp-extension":!0},Ii={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml"]},Pi={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-snappy","cpp-extension":!0,"arg-type":"custom","lib-depends":["snappy"],"ext-suggests":["apcu"]},_i={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml"]},Ui={type:"builtin"},Li={support:{BSD:"wip"},type:"builtin","arg-type":"with","lib-depends":["libsodium"]},$i={support:{BSD:"wip",Windows:"no"},notes:!0,type:"external",source:"spx","arg-type":"custom","lib-depends":["zlib"]},Ni={support:{BSD:"wip"},type:"builtin","arg-type":"with-prefix","arg-type-windows":"with","lib-depends":["sqlite"]},Oi={support:{BSD:"wip"},type:"external",source:"sqlsrv","lib-depends-unix":["unixodbc"],"ext-depends-linux":["pcntl"],"cpp-extension":!0},Vi={support:{BSD:"wip"},type:"external",source:"ext-ssh2","arg-type":"with-prefix","arg-type-windows":"with","lib-depends":["libssh2"],"ext-depends-windows":["openssl","zlib"]},Ai={support:{Windows:"no",BSD:"wip"},target:["static"],notes:!0,type:"external",source:"swoole","arg-type":"custom","cpp-extension":!0,"unix-only":!0,"lib-depends":["libcares","brotli","nghttp2","zlib"],"ext-depends":["openssl","curl"],"ext-suggests":["swoole-hook-pgsql","swoole-hook-mysql","swoole-hook-sqlite"]},Ti={support:{BSD:"wip"},notes:!0,type:"external",source:"swow","arg-type":"custom","lib-suggests":["openssl","curl"],"ext-suggests":["openssl","curl"]},ji={support:{Windows:"no",BSD:"wip"},type:"builtin","unix-only":!0},Gi={support:{Windows:"no",BSD:"wip"},type:"builtin","unix-only":!0},Xi={support:{BSD:"wip"},type:"builtin"},Mi={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-prefix","lib-depends":["tidy"]},Hi={type:"builtin"},Ri={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-uuid","arg-type":"with-prefix","lib-depends":["libuuid"]},Fi={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-uv","arg-type":"with-prefix","lib-depends":["libuv"],"ext-depends":["sockets"]},Zi={type:"external",source:"xdebug",target:["shared"],support:{Windows:"wip",BSD:"no",Darwin:"partial",Linux:"partial"},notes:!0},Qi={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"xhprof","ext-depends":["ctype"]},Ki={support:{Windows:"wip",BSD:"wip"},type:"external",source:"xlswriter","arg-type":"custom","ext-depends":["zlib","zip"],"lib-suggests":["openssl"]},Yi={support:{BSD:"wip"},notes:!0,type:"builtin","arg-type":"custom","arg-type-windows":"with","lib-depends":["libxml2"],"ext-depends-windows":["iconv"]},Ji={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml","dom"]},es={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml"]},is={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-prefix","lib-depends":["libxslt"],"ext-depends":["xml","dom"]},ss={support:{BSD:"wip"},type:"external",source:"yac","arg-type-unix":"custom","ext-depends-unix":["igbinary"]},ts={support:{BSD:"wip"},type:"external",source:"yaml","arg-type-unix":"with-prefix","arg-type-windows":"with","lib-depends":["libyaml"]},ls={support:{BSD:"wip"},target:["static"],type:"builtin","arg-type":"with-prefix","arg-type-windows":"enable","lib-depends-unix":["libzip"],"ext-depends-windows":["zlib","bz2"],"lib-depends-windows":["libzip","zlib","bzip2","xz"]},ns={type:"builtin","arg-type":"custom","arg-type-windows":"enable","lib-depends":["zlib"]},os={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-zstd","arg-type":"custom","lib-depends":["zstd"]},as={amqp:he,apcu:ve,ast:fe,bcmath:ze,bz2:Se,calendar:De,ctype:ke,curl:Be,dba:qe,dio:Ee,dom:Ce,ds:We,enchant:Ie,event:Pe,exif:_e,ffi:Ue,fileinfo:Le,filter:$e,ftp:Ne,gd:Oe,gettext:Ve,glfw:Ae,gmp:Te,gmssl:je,grpc:Ge,iconv:Xe,igbinary:Me,imagick:He,imap:Re,inotify:Fe,intl:Ze,ldap:Qe,libxml:Ke,mbregex:Ye,mbstring:Je,mcrypt:ei,memcache:ii,memcached:si,mongodb:ti,msgpack:li,mysqli:ni,mysqlnd:oi,oci8:ai,odbc:di,opcache:pi,openssl:ui,opentelemetry:ri,parallel:ci,"password-argon2":{support:{Windows:"wip",BSD:"wip"},notes:!0,type:"builtin","arg-type":"with-prefix","lib-depends":["libargon2"]},pcntl:bi,pdo:wi,pdo_mysql:gi,pdo_odbc:xi,pdo_pgsql:mi,pdo_sqlite:yi,pdo_sqlsrv:hi,pgsql:vi,phar:fi,posix:zi,protobuf:Si,rar:Di,rdkafka:ki,readline:Bi,redis:qi,session:Ei,shmop:Ci,simdjson:Wi,simplexml:Ii,snappy:Pi,soap:_i,sockets:Ui,sodium:Li,spx:$i,sqlite3:Ni,sqlsrv:Oi,ssh2:Vi,swoole:Ai,"swoole-hook-mysql":{support:{Windows:"no",BSD:"wip"},notes:!0,type:"addon","arg-type":"custom","ext-depends":["mysqlnd","pdo","pdo_mysql"],"ext-suggests":["mysqli"]},"swoole-hook-pgsql":{support:{Windows:"no",BSD:"wip",Darwin:"partial"},notes:!0,type:"addon","arg-type":"custom","ext-depends":["pgsql","pdo"]},"swoole-hook-sqlite":{support:{Windows:"no",BSD:"wip"},notes:!0,type:"addon","arg-type":"custom","ext-depends":["sqlite3","pdo"]},swow:Ti,sysvmsg:ji,sysvsem:Gi,sysvshm:Xi,tidy:Mi,tokenizer:Hi,uuid:Ri,uv:Fi,xdebug:Zi,xhprof:Qi,xlswriter:Ki,xml:Yi,xmlreader:Ji,xmlwriter:es,xsl:is,yac:ss,yaml:ts,zip:ls,zlib:ns,zstd:os},ds={type:"root",source:"php-src","lib-depends":["lib-base","micro"],"lib-suggests-linux":["libacl"]},ps={type:"target",source:"micro"},us={source:"attr","static-libs-unix":["libattr.a"]},rs={source:"brotli","static-libs-unix":["libbrotlidec.a","libbrotlienc.a","libbrotlicommon.a"],"static-libs-windows":["brotlicommon.lib","brotlienc.lib","brotlidec.lib"],headers:["brotli"]},cs={source:"bzip2","static-libs-unix":["libbz2.a"],"static-libs-windows":["libbz2.lib","libbz2_a.lib"],headers:["bzlib.h"]},bs={source:"curl","static-libs-unix":["libcurl.a"],"static-libs-windows":["libcurl_a.lib"],headers:["curl"],"lib-depends-unix":["openssl","zlib"],"lib-depends-windows":["zlib","libssh2","nghttp2"],"lib-suggests-unix":["libssh2","brotli","nghttp2","zstd","libcares"],"lib-suggests-windows":["brotli","zstd"],frameworks:["CoreFoundation","CoreServices","SystemConfiguration"]},ws={source:"freetype","static-libs-unix":["libfreetype.a"],"static-libs-windows":["libfreetype_a.lib"],"headers-unix":["freetype2/freetype/freetype.h","freetype2/ft2build.h"],"lib-depends":["zlib"],"lib-suggests":["libpng","bzip2","brotli"]},gs={source:"gettext","static-libs-unix":["libintl.a"],"lib-depends":["libiconv"],"lib-suggests":["ncurses","libxml2"],frameworks:["CoreFoundation"]},xs={source:"ext-glfw","static-libs-unix":["libglfw3.a"],frameworks:["CoreVideo","OpenGL","Cocoa","IOKit"]},ms={source:"gmp","static-libs-unix":["libgmp.a"],"static-libs-windows":["libgmp.lib"],headers:["gmp.h"]},ys={source:"gmssl","static-libs-unix":["libgmssl.a"],"static-libs-windows":["gmssl.lib"],frameworks:["Security"]},hs={source:"grpc","static-libs-unix":["libgrpc.a","libcares.a"],"lib-depends":["zlib","openssl"],frameworks:["CoreFoundation"]},vs={source:"icu","cpp-library":!0,"static-libs-unix":["libicui18n.a","libicuio.a","libicuuc.a","libicudata.a"]},fs={source:"imagemagick","static-libs-unix":["libMagick++-7.Q16HDRI.a","libMagickWand-7.Q16HDRI.a","libMagickCore-7.Q16HDRI.a"],"lib-depends":["zlib","libpng","libjpeg","libwebp","freetype","libtiff","libheif","bzip2"],"lib-suggests":["zstd","xz","libzip","libxml2"]},zs={source:"imap","static-libs-unix":["libc-client.a"],"lib-suggests":["openssl"]},Ss={source:"ldap","static-libs-unix":["liblber.a","libldap.a"],"lib-depends":["openssl","zlib","gmp","libsodium"]},Ds={source:"libacl","static-libs-unix":["libacl.a"],"lib-depends":["attr"]},ks={source:"libaom","static-libs-unix":["libaom.a"],"cpp-library":!0},Bs={source:"libargon2","static-libs-unix":["libargon2.a"]},qs={source:"libavif","static-libs-unix":["libavif.a"],"static-libs-windows":["avif.lib"]},Es={source:"libcares","static-libs-unix":["libcares.a"],"headers-unix":["ares.h","ares_dns.h","ares_nameser.h"]},Cs={source:"libde265","static-libs-unix":["libde265.a"],"cpp-library":!0},Ws={source:"libevent","static-libs-unix":["libevent.a","libevent_core.a","libevent_extra.a","libevent_openssl.a"],"lib-depends":["openssl"]},Is={source:"libffi","static-libs-unix":["libffi.a"],"static-libs-windows":["libffi.lib"],"headers-unix":["ffi.h","ffitarget.h"],"headers-windows":["ffi.h","fficonfig.h","ffitarget.h"]},Ps={source:"libheif","static-libs-unix":["libheif.a"],"lib-depends":["libde265","libwebp","libaom","zlib","brotli"]},_s={source:"libiconv","static-libs-unix":["libiconv.a","libcharset.a"],headers:["iconv.h","libcharset.h","localcharset.h"]},Us={source:"libjpeg","static-libs-unix":["libjpeg.a","libturbojpeg.a"],"static-libs-windows":["libjpeg_a.lib"],"lib-suggests-windows":["zlib"]},Ls={source:"liblz4","static-libs-unix":["liblz4.a"]},$s={source:"libmemcached","static-libs-unix":["libmemcached.a","libmemcachedutil.a"]},Ns={source:"libpng","static-libs-unix":["libpng16.a"],"static-libs-windows":["libpng16_static.lib","libpng_a.lib"],"headers-unix":["png.h","pngconf.h","pnglibconf.h"],"headers-windows":["png.h","pngconf.h"],"lib-depends":["zlib"]},Os={source:"librabbitmq","static-libs-unix":["librabbitmq.a"],"static-libs-windows":["rabbitmq.4.lib"],"lib-depends":["openssl"]},Vs={source:"librdkafka","static-libs-unix":["librdkafka.a","librdkafka++.a","librdkafka-static.a"],"cpp-library":!0,"lib-suggests":["zstd"]},As={source:"libsodium","static-libs-unix":["libsodium.a"],"static-libs-windows":["libsodium.lib"]},Ts={source:"libssh2","static-libs-unix":["libssh2.a"],"static-libs-windows":["libssh2.lib"],headers:["libssh2.h","libssh2_publickey.h","libssh2_sftp.h"],"lib-depends":["openssl"],"lib-suggests":["zlib"]},js={source:"libtiff","static-libs-unix":["libtiff.a"],"lib-depends":["zlib","libjpeg"]},Gs={source:"libuuid","static-libs-unix":["libuuid.a"],headers:["uuid/uuid.h"]},Xs={source:"libuv","static-libs-unix":["libuv.a"]},Ms={source:"libwebp","static-libs-unix":["libwebp.a","libwebpdecoder.a","libwebpdemux.a","libwebpmux.a","libsharpyuv.a"],"static-libs-windows":["libwebp.lib","libwebpdecoder.lib","libwebpdemux.lib","libsharpyuv.lib"]},Hs={source:"libxml2","static-libs-unix":["libxml2.a"],"static-libs-windows":["libxml2s.lib","libxml2_a.lib"],headers:["libxml2"],"lib-depends-unix":["libiconv"],"lib-suggests-unix":["xz","icu","zlib"],"lib-depends-windows":["libiconv-win"],"lib-suggests-windows":["zlib"]},Rs={source:"libxslt","static-libs-unix":["libxslt.a","libexslt.a"],"lib-depends":["libxml2"]},Fs={source:"libyaml","static-libs-unix":["libyaml.a"],"static-libs-windows":["yaml.lib"],headers:["yaml.h"]},Zs={source:"libzip","static-libs-unix":["libzip.a"],"static-libs-windows":["zip.lib","libzip_a.lib"],headers:["zip.h","zipconf.h"],"lib-depends-unix":["zlib"],"lib-suggests-unix":["bzip2","xz","zstd","openssl"],"lib-depends-windows":["zlib","bzip2","xz"],"lib-suggests-windows":["zstd","openssl"]},Qs={source:"mimalloc","static-libs-unix":["mimalloc.o"]},Ks={source:"ncurses","static-libs-unix":["libncurses.a"]},Ys={source:"nghttp2","static-libs-unix":["libnghttp2.a"],"static-libs-windows":["nghttp2.lib"],headers:["nghttp2"],"lib-depends":["zlib","openssl"],"lib-suggests":["libxml2"]},Js={source:"onig","static-libs-unix":["libonig.a"],"static-libs-windows":["onig.lib","onig_a.lib"],headers:["oniggnu.h","oniguruma.h"]},et={source:"openssl","static-libs-unix":["libssl.a","libcrypto.a"],"static-libs-windows":["libssl.lib","libcrypto.lib"],headers:["openssl"],"lib-depends":["zlib"]},it={source:"postgresql","static-libs-unix":["libpq.a","libpgport.a","libpgcommon.a"],"lib-depends":["libiconv","libxml2","openssl","zlib","readline"],"lib-suggests":["icu","libxslt","ldap","zstd"]},st={source:"pthreads4w","static-libs-windows":["libpthreadVC3.lib"]},tt={source:"qdbm","static-libs-unix":["libqdbm.a"],"static-libs-windows":["qdbm_a.lib"],"headers-windows":["depot.h"]},lt={source:"readline","static-libs-unix":["libreadline.a"],"lib-depends":["ncurses"]},nt={source:"snappy","static-libs-unix":["libsnappy.a"],"headers-unix":["snappy.h","snappy-c.h","snappy-sinksource.h","snappy-stubs-public.h"],"lib-depends":["zlib"]},ot={source:"sqlite","static-libs-unix":["libsqlite3.a"],"static-libs-windows":["libsqlite3_a.lib"],headers:["sqlite3.h","sqlite3ext.h"]},at={source:"tidy","static-libs-unix":["libtidy.a"]},dt={source:"unixodbc","static-libs-unix":["libodbc.a","libodbccr.a","libodbcinst.a"],"lib-depends":["libiconv"]},pt={source:"xz","static-libs-unix":["liblzma.a"],"static-libs-windows":["lzma.lib","liblzma_a.lib"],"headers-unix":["lzma"],"headers-windows":["lzma","lzma.h"],"lib-depends-unix":["libiconv"]},ut={source:"zlib","static-libs-unix":["libz.a"],"static-libs-windows":["zlib_a.lib"],headers:["zlib.h","zconf.h"]},rt={source:"zstd","static-libs-unix":["libzstd.a"],"static-libs-windows":[["zstd.lib","zstd_static.lib"]],"headers-unix":["zdict.h","zstd.h","zstd_errors.h"],"headers-windows":["zstd.h","zstd_errors.h"]},ct={"lib-base":{type:"root","lib-depends-unix":["pkg-config"]},php:ds,micro:ps,"pkg-config":{type:"package",source:"pkg-config","bin-unix":["pkg-config"]},attr:us,brotli:rs,bzip2:cs,curl:bs,freetype:ws,gettext:gs,glfw:xs,gmp:ms,gmssl:ys,grpc:hs,icu:vs,imagemagick:fs,imap:zs,ldap:Ss,libacl:Ds,libaom:ks,libargon2:Bs,libavif:qs,libcares:Es,libde265:Cs,libevent:Ws,libffi:Is,"libffi-win":{source:"libffi-win","static-libs-windows":["libffi.lib"],"headers-windows":["ffi.h","ffitarget.h","fficonfig.h"]},libheif:Ps,libiconv:_s,"libiconv-win":{source:"libiconv-win","static-libs-windows":["libiconv.lib","libiconv_a.lib"]},libjpeg:Us,liblz4:Ls,libmemcached:$s,libpng:Ns,librabbitmq:Os,librdkafka:Vs,libsodium:As,libssh2:Ts,libtiff:js,libuuid:Gs,libuv:Xs,libwebp:Ms,libxml2:Hs,libxslt:Rs,libyaml:Fs,libzip:Zs,mimalloc:Qs,ncurses:Ks,nghttp2:Ys,onig:Js,openssl:et,postgresql:it,"postgresql-win":{source:"postgresql-win","static-libs":["libpq.lib","libpgport.lib","libpgcommon.lib"]},pthreads4w:st,qdbm:tt,readline:lt,snappy:nt,sqlite:ot,tidy:at,unixodbc:dt,xz:pt,zlib:ut,zstd:rt};function _(i,l,d,a){return i.os==="linux"?i[l][d][a+"-linux"]??i[l][d][a+"-unix"]??i[l][d][a]??[]:i.os==="macos"?i[l][d][a+"-macos"]??i[l][d][a+"-unix"]??i[l][d][a]??[]:i.os==="windows"?i[l][d][a+"-windows"]??i[l][d][a]??[]:[]}function J(i,l){return _(i,"ext",l,"ext-depends")}function bt(i,l){return _(i,"ext",l,"ext-suggests")}function wt(i,l){return _(i,"ext",l,"lib-depends")}function gt(i,l){return _(i,"ext",l,"lib-suggests")}function ee(i,l){return _(i,"lib",l,"lib-depends")}function xt(i,l){return _(i,"lib",l,"lib-suggests")}function mt(i,l){const d=[],a=new Set,y=[];l.forEach(S=>{a.has(S)||vt(i,S,a,d)});const z=[];return d.forEach(S=>{l.indexOf(S)===-1&&y.push(S),[...wt(i,S),...gt(i,S)].forEach(o=>{z.indexOf(o)===-1&&z.push(o)})}),{exts:d,libs:yt(i,z),notIncludedExts:y}}function yt(i,l){const d=[],a=new Set;return l.forEach(y=>{a.has(y)||(console.log("before visited"),console.log(a),ht(i,y,a,d),console.log("after visited"),console.log(a))}),d}function ht(i,l,d,a){if(d.has(l))return;d.add(l),[...ee(i,l),...xt(i,l)].forEach(z=>{ie(i,z,d,a)}),a.push(l)}function ie(i,l,d,a){d.has(l)||(d.add(l),ee(i,l).forEach(y=>{ie(i,y,d,a)}),a.push(l))}function se(i,l,d,a){d.has(d)||(d.add(l),J(i,l).forEach(y=>{se(i,y,d,a)}),a.push(l))}function vt(i,l,d,a){if(d.has(l))return;d.add(l),[...J(i,l),...bt(i,l)].forEach(z=>{se(i,z,d,a)}),a.push(l)}const E=i=>(xe("data-v-36cf2ac6"),i=i(),me(),i),ft={class:"option-line"},zt=["id","value","disabled"],St=["for"],Dt={class:"option-line"},kt=E(()=>e("option",{value:"x86_64"},"x86_64",-1)),Bt=["disabled"],qt={class:"box"},Et=E(()=>e("br",null,null,-1)),Ct={class:"ext-item"},Wt=["id","value","disabled"],It=["for"],Pt={style:{color:"orangered","font-weight":"bolder"}},_t={class:"details custom-block",open:""},Ut={class:"box"},Lt={class:"ext-item"},$t=["id","value","disabled"],Nt=["for"],Ot={class:"tip custom-block"},Vt=E(()=>e("p",{class:"custom-block-title"},"TIP",-1)),At={class:"box"},Tt={class:"ext-item"},jt=["id","value"],Gt=["for"],Xt={key:1,class:"warning custom-block"},Mt=E(()=>e("p",{class:"custom-block-title"},"WARNING",-1)),Ht={key:2,class:"warning custom-block"},Rt=E(()=>e("p",{class:"custom-block-title"},"WARNING",-1)),Ft={value:"native"},Zt={value:"spc"},Qt={key:0,value:"docker"},Kt=["value"],Yt={for:"debug-yes"},Jt={for:"debug-no"},el={for:"zts-yes"},il={for:"zts-no"},sl={for:"show-download-yes"},tl={for:"show-download-no"},ll={for:"pre-built-yes"},nl={for:"pre-built-no"},ol={key:0},al={for:"upx-yes"},dl={for:"upx-no"},pl=["placeholder"],ul={key:3,class:"command-container"},rl={key:0,class:"command-preview"},cl=E(()=>e("br",null,null,-1)),bl={key:1},wl={class:"warning custom-block"},gl=E(()=>e("p",{class:"custom-block-title"},"WARNING",-1)),xl=E(()=>e("a",{href:"https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-windows-x64.exe",target:"_blank"},"https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-windows-x64.exe",-1)),ml={key:4,class:"command-container"},yl={id:"download-ext-cmd",class:"command-preview"},hl={key:5,class:"command-container"},vl={id:"download-all-cmd",class:"command-preview"},fl={key:6,class:"command-container"},zl={id:"download-pkg-cmd",class:"command-preview"},Sl={class:"command-container"},Dl={id:"build-cmd",class:"command-preview"},kl={name:"CliGenerator"},Bl=we({...kl,props:{lang:{type:String,default:"zh"}},setup(i){const l=w(as),d=D(()=>{const u=[];for(const[t,s]of Object.entries(l.value))S(t,r.value)&&u.push(t);return u}),a=w(ct),y=w([]),z=[{os:"linux",label:"Linux",disabled:!1},{os:"macos",label:"macOS",disabled:!1},{os:"windows",label:"Windows",disabled:!1}],S=(u,t)=>{var b,q;const c=new Map([["linux","Linux"],["macos","Darwin"],["windows","Windows"]]).get(t),p=((q=(b=l.value[u])==null?void 0:b.support)==null?void 0:q[c])??"yes";return p==="yes"||p==="partial"},Z=["8.0","8.1","8.2","8.3","8.4"],o={zh:{selectExt:"选择扩展",buildTarget:"选择编译目标",buildOptions:"编译选项",buildEnvironment:"编译环境",buildEnvNative:"本地构建(Git 源码)",buildEnvSpc:"本地构建(独立 spc 二进制)",buildEnvDocker:"Alpine Docker 构建",useDebug:"是否开启调试输出",yes:"是",no:"否",resultShow:"结果展示",selectCommon:"选择常用扩展",selectNone:"全部取消选择",useZTS:"是否编译线程安全版",hardcodedINI:"硬编码 INI 选项",hardcodedINIPlacehoder:"如需要硬编码 ini,每行写一个,例如:memory_limit=2G",resultShowDownload:"是否展示仅下载对应扩展依赖的命令",downloadExtOnlyCommand:"只下载对应扩展的依赖包命令",downloadAllCommand:"下载所有依赖包命令",downloadUPXCommand:"下载 UPX 命令",compileCommand:"编译命令",downloadPhpVersion:"下载 PHP 版本",downloadSPCBinaryCommand:"下载 spc 二进制命令",selectedArch:"选择系统架构",selectedSystem:"选择操作系统",buildLibs:"要构建的库",depTips:"选择扩展后,不可选中的项目为必需的依赖,编译的依赖库列表中可选的为现有扩展和依赖库的可选依赖。选择可选依赖后,将生成 --with-libs 参数。",microUnavailable:"micro 不支持 PHP 7.4 及更早版本!",windowsSAPIUnavailable:"Windows 目前不支持 fpm、embed 构建!",useUPX:"是否开启 UPX 压缩(减小二进制体积)",windowsDownSPCWarning:"Windows 下请手动下载 spc.exe 二进制文件,解压到当前目录并重命名为 spc.exe!",usePreBuilt:"如果可能,下载预编译的依赖库(减少编译时间)"},en:{selectExt:"Select Extensions",buildTarget:"Build Target",buildOptions:"Build Options",buildEnvironment:"Build Environment",buildEnvNative:"Native build (Git source code)",buildEnvSpc:"Native build (standalone spc binary)",buildEnvDocker:"Alpine docker build",useDebug:"Enable debug message",yes:"Yes",no:"No",resultShow:"Result",selectCommon:"Select common extensions",selectNone:"Unselect all",useZTS:"Enable ZTS",hardcodedINI:"Hardcoded INI options",hardcodedINIPlacehoder:"If you need to hardcode ini, write one per line, for example: memory_limit=2G",resultShowDownload:"Download with corresponding extension dependencies",downloadExtOnlyCommand:"Download sources by extensions command",downloadAllCommand:"Download all sources command",downloadUPXCommand:"Download UPX command",compileCommand:"Compile command",downloadPhpVersion:"Download PHP version",downloadSPCBinaryCommand:"Download spc binary command",selectedArch:"Select build architecture",selectedSystem:"Select Build OS",buildLibs:"Select Dependencies",depTips:"After selecting the extensions, the unselectable items are essential dependencies. In the compiled dependencies list, optional dependencies consist of existing extensions and optional dependencies of libraries. Optional dependencies will be added in --with-libs parameter.",microUnavailable:"Micro does not support PHP 7.4 and earlier versions!",windowsSAPIUnavailable:"Windows does not support fpm and embed build!",useUPX:"Enable UPX compression (reduce binary size)",windowsDownSPCWarning:"Please download the binary file manually, extract it to the current directory and rename to spc.exe on Windows!",usePreBuilt:"Download pre-built dependencies if possible (reduce compile time)"}},te=["cli","fpm","micro","embed","all"],le=()=>{h.value=["apcu","bcmath","calendar","ctype","curl","dba","dom","exif","filter","fileinfo","gd","iconv","intl","mbstring","mbregex","mysqli","mysqlnd","openssl","opcache","pcntl","pdo","pdo_mysql","pdo_sqlite","pdo_pgsql","pgsql","phar","posix","readline","redis","session","simplexml","sockets","sodium","sqlite3","tokenizer","xml","xmlreader","xmlwriter","xsl","zip","zlib"]},Q=D(()=>h.value.join(",")),ne=D(()=>{const u=k.value.filter(t=>V.value.indexOf(t)===-1);return u.length>0?' --with-libs="'+u.join(",")+'"':""}),h=w([]),k=w([]),X=w([]),V=w([]),v=w(["cli"]),A=w("spc"),U=w("8.2"),B=w(0),L=w(0),$=w(1),P=w(1),C=w(0),M=w(""),r=w("linux");G(r,()=>{r.value==="windows"&&(T.value="x86_64")});const T=w("x86_64"),j=D(()=>{switch(A.value){case"native":return"bin/spc";case"spc":return r.value==="windows"?".\\spc.exe":"./spc";case"docker":return"bin/spc-alpine-docker";default:return""}}),K=w("--build-cli"),oe=D(()=>{const u=M.value.split(`
|
||
`);let t=[];return u.forEach(s=>{s.indexOf("=")>=1&&t.push(s)})," "+t.map(s=>'-I "'+s+'"').join(" ")}),W=w(""),H=(u,t)=>u.includes(W.value)?t===0?u.substring(0,u.indexOf(W.value)):t===1?W.value:u.substring(u.indexOf(W.value)+W.value.length):t===0?u:"",ae=u=>{let t;v.value.indexOf("all")!==-1&&u.target.value==="all"?v.value=["all"]:(t=v.value.indexOf("all"))!==-1&&u.target.value!=="all"&&v.value.splice(t,1),K.value=v.value.map(s=>"--build-"+s).join(" ")},de=u=>{const t=new Set,s=c=>{let p=[];if(r.value==="linux"){if(p=l.value[c]["ext-depends-linux"]??l.value[c]["ext-depends-unix"]??l.value[c]["ext-depends"]??[],p.length===0)return}else if(r.value==="macos"){if(p=l.value[c]["ext-depends-macos"]??l.value[c]["ext-depends-unix"]??l.value[c]["ext-depends"]??[],p.length===0)return}else if(r.value==="windows"&&(p=l.value[c]["ext-depends-windows"]??l.value[c]["ext-depends"]??[],p.length===0))return;p.forEach(b=>{t.add(b),s(b)})};return u.forEach(c=>{s(c)}),Array.from(t)},pe=D(()=>`${j.value} download --all --with-php=${U.value}${P.value?" --prefer-pre-built":""}${B.value?" --debug":""}`),ue=D(()=>`${j.value} download --with-php=${U.value} --for-extensions "${Q.value}"${P.value?" --prefer-pre-built":""}${B.value?" --debug":""}`),re=D(()=>`${j.value} install-pkg upx${B.value?" --debug":""}`),ce=D(()=>`${j.value} build ${K.value} "${Q.value}"${ne.value}${B.value?" --debug":""}${L.value?" --enable-zts":""}${C.value?" --with-upx-pack":""}${oe.value}`),be=u=>{const t=new Set,s=p=>{let b=[];if(r.value==="linux"){if(b=a.value[p]["lib-depends-linux"]??a.value[p]["lib-depends-unix"]??a.value[p]["lib-depends"]??[],b.length===0)return}else if(r.value==="macos"){if(b=a.value[p]["lib-depends-macos"]??a.value[p]["lib-depends-unix"]??a.value[p]["lib-depends"]??[],b.length===0)return}else if(r.value==="windows"&&(b=a.value[p]["lib-depends-windows"]??a.value[p]["lib-depends"]??[],b.length===0))return;b.forEach(q=>{t.add(q),s(q)})},c=p=>{let b=[];if(r.value==="linux"){if(b=l.value[p]["lib-depends-linux"]??l.value[p]["lib-depends-unix"]??l.value[p]["lib-depends"]??[],b.length===0)return}else if(r.value==="macos"){if(b=l.value[p]["lib-depends-macos"]??l.value[p]["lib-depends-unix"]??l.value[p]["lib-depends"]??[],b.length===0)return}else if(r.value==="windows"&&(b=l.value[p]["lib-depends-windows"]??l.value[p]["lib-depends"]??[],b.length===0))return;b.forEach(q=>{t.add(q),s(q)})};return u.forEach(p=>{c(p)}),Array.from(t)};return G(r,()=>h.value=[]),G(r,()=>C.value=0),G(h,u=>{X.value=de(u),X.value.forEach(s=>{h.value.indexOf(s)===-1&&h.value.push(s)}),h.value.sort(),console.log("检测到变化!"),console.log(u);const t=mt({ext:l.value,lib:a.value,os:r.value},h.value);y.value=t.libs.sort(),k.value=[],V.value=be(t.exts),V.value.forEach(s=>{k.value.indexOf(s)===-1&&k.value.push(s)})}),(u,t)=>(g(),x("div",null,[e("h2",null,n(o[i.lang].selectedSystem),1),e("div",ft,[(g(),x(N,null,O(z,(s,c)=>e("span",{key:c,style:{"margin-right":"8px"}},[m(e("input",{type:"radio",id:"os-"+s.os,value:s.os,disabled:s.disabled===!0,"onUpdate:modelValue":t[0]||(t[0]=p=>r.value=p)},null,8,zt),[[f,r.value]]),e("label",{for:"os-"+s.os},n(s.label),9,St)])),64))]),e("div",Dt,[m(e("select",{"onUpdate:modelValue":t[1]||(t[1]=s=>T.value=s)},[kt,e("option",{value:"aarch64",disabled:r.value==="windows"},"aarch64",8,Bt)],512),[[R,T.value]])]),e("h2",null,n(o[i.lang].selectExt)+n(h.value.length>0?" ("+h.value.length+")":""),1),e("div",qt,[m(e("input",{class:"input","onUpdate:modelValue":t[2]||(t[2]=s=>W.value=s),placeholder:"Highlight search..."},null,512),[[Y,W.value]]),Et,(g(!0),x(N,null,O(d.value,s=>(g(),x("div",Ct,[e("span",null,[m(e("input",{type:"checkbox",id:s,value:s,"onUpdate:modelValue":t[3]||(t[3]=c=>h.value=c),disabled:X.value.indexOf(s)!==-1},null,8,Wt),[[F,h.value]]),e("label",{for:s},[e("span",null,n(H(s,0)),1),e("span",Pt,n(H(s,1)),1),e("span",null,n(H(s,2)),1)],8,It)])]))),256))]),r.value!=="windows"?(g(),x("div",{key:0,class:"my-btn",onClick:le},n(o[i.lang].selectCommon),1)):I("",!0),e("div",{class:"my-btn",onClick:t[4]||(t[4]=s=>h.value=[])},n(o[i.lang].selectNone),1),e("details",_t,[e("summary",null,n(o[i.lang].buildLibs)+n(k.value.length>0?" ("+k.value.length+")":""),1),e("div",Ut,[(g(!0),x(N,null,O(y.value,(s,c)=>(g(),x("div",Lt,[m(e("input",{type:"checkbox",id:c,value:s,"onUpdate:modelValue":t[5]||(t[5]=p=>k.value=p),disabled:V.value.indexOf(s)!==-1},null,8,$t),[[F,k.value]]),e("label",{for:c},n(s),9,Nt)]))),256))])]),e("div",Ot,[Vt,e("p",null,n(o[i.lang].depTips),1)]),e("h2",null,n(o[i.lang].buildTarget),1),e("div",At,[(g(),x(N,null,O(te,s=>e("div",Tt,[m(e("input",{type:"checkbox",id:"build_"+s,value:s,"onUpdate:modelValue":t[6]||(t[6]=c=>v.value=c),onChange:ae},null,40,jt),[[F,v.value]]),e("label",{for:"build_"+s},n(s),9,Gt)])),64))]),U.value==="7.4"&&(v.value.indexOf("micro")!==-1||v.value.indexOf("all")!==-1)?(g(),x("div",Xt,[Mt,e("p",null,n(o[i.lang].microUnavailable),1)])):I("",!0),r.value==="windows"&&(v.value.indexOf("fpm")!==-1||v.value.indexOf("embed")!==-1)?(g(),x("div",Ht,[Rt,e("p",null,n(o[i.lang].windowsSAPIUnavailable),1)])):I("",!0),e("h2",null,n(o[i.lang].buildOptions),1),e("table",null,[e("tr",null,[e("td",null,n(o[i.lang].buildEnvironment),1),e("td",null,[m(e("select",{"onUpdate:modelValue":t[7]||(t[7]=s=>A.value=s)},[e("option",Ft,n(o[i.lang].buildEnvNative),1),e("option",Zt,n(o[i.lang].buildEnvSpc),1),r.value!=="windows"?(g(),x("option",Qt,n(o[i.lang].buildEnvDocker),1)):I("",!0)],512),[[R,A.value]])])]),e("tr",null,[e("td",null,n(o[i.lang].downloadPhpVersion),1),e("td",null,[m(e("select",{"onUpdate:modelValue":t[8]||(t[8]=s=>U.value=s)},[(g(),x(N,null,O(Z,s=>e("option",{value:s},n(s),9,Kt)),64))],512),[[R,U.value]])])]),e("tr",null,[e("td",null,n(o[i.lang].useDebug),1),e("td",null,[m(e("input",{type:"radio",id:"debug-yes",value:1,"onUpdate:modelValue":t[9]||(t[9]=s=>B.value=s)},null,512),[[f,B.value]]),e("label",Yt,n(o[i.lang].yes),1),m(e("input",{type:"radio",id:"debug-no",value:0,"onUpdate:modelValue":t[10]||(t[10]=s=>B.value=s)},null,512),[[f,B.value]]),e("label",Jt,n(o[i.lang].no),1)])]),e("tr",null,[e("td",null,n(o[i.lang].useZTS),1),e("td",null,[m(e("input",{type:"radio",id:"zts-yes",value:1,"onUpdate:modelValue":t[11]||(t[11]=s=>L.value=s)},null,512),[[f,L.value]]),e("label",el,n(o[i.lang].yes),1),m(e("input",{type:"radio",id:"zts-no",value:0,"onUpdate:modelValue":t[12]||(t[12]=s=>L.value=s)},null,512),[[f,L.value]]),e("label",il,n(o[i.lang].no),1)])]),e("tr",null,[e("td",null,n(o[i.lang].resultShowDownload),1),e("td",null,[m(e("input",{type:"radio",id:"show-download-yes",value:1,"onUpdate:modelValue":t[13]||(t[13]=s=>$.value=s)},null,512),[[f,$.value]]),e("label",sl,n(o[i.lang].yes),1),m(e("input",{type:"radio",id:"show-download-no",value:0,"onUpdate:modelValue":t[14]||(t[14]=s=>$.value=s)},null,512),[[f,$.value]]),e("label",tl,n(o[i.lang].no),1)])]),e("tr",null,[e("td",null,n(o[i.lang].usePreBuilt),1),e("td",null,[m(e("input",{type:"radio",id:"pre-built-yes",value:1,"onUpdate:modelValue":t[15]||(t[15]=s=>P.value=s)},null,512),[[f,P.value]]),e("label",ll,n(o[i.lang].yes),1),m(e("input",{type:"radio",id:"pre-built-no",value:0,"onUpdate:modelValue":t[16]||(t[16]=s=>P.value=s)},null,512),[[f,P.value]]),e("label",nl,n(o[i.lang].no),1)])]),r.value!=="macos"?(g(),x("tr",ol,[e("td",null,n(o[i.lang].useUPX),1),e("td",null,[m(e("input",{type:"radio",id:"upx-yes",value:1,"onUpdate:modelValue":t[17]||(t[17]=s=>C.value=s)},null,512),[[f,C.value]]),e("label",al,n(o[i.lang].yes),1),m(e("input",{type:"radio",id:"upx-no",value:0,"onUpdate:modelValue":t[18]||(t[18]=s=>C.value=s)},null,512),[[f,C.value]]),e("label",dl,n(o[i.lang].no),1)])])):I("",!0)]),e("h2",null,n(o[i.lang].hardcodedINI),1),m(e("textarea",{class:"textarea",placeholder:o[i.lang].hardcodedINIPlacehoder,"onUpdate:modelValue":t[19]||(t[19]=s=>M.value=s),rows:"5"},null,8,pl),[[Y,M.value]]),e("h2",null,n(o[i.lang].resultShow),1),A.value==="spc"?(g(),x("div",ul,[e("b",null,n(o[i.lang].downloadSPCBinaryCommand),1),r.value!=="windows"?(g(),x("div",rl,[ge(" curl -fsSL -o spc.tgz https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-"+n(r.value)+"-"+n(T.value)+".tar.gz && tar -zxvf spc.tgz && rm spc.tgz",1),cl])):(g(),x("div",bl,[e("div",wl,[gl,e("p",null,n(o[i.lang].windowsDownSPCWarning),1),xl])]))])):I("",!0),$.value?(g(),x("div",ml,[e("b",null,n(o[i.lang].downloadExtOnlyCommand),1),e("div",yl,n(ue.value),1)])):(g(),x("div",hl,[e("b",null,n(o[i.lang].downloadAllCommand),1),e("div",vl,n(pe.value),1)])),C.value?(g(),x("div",fl,[e("b",null,n(o[i.lang].downloadUPXCommand),1),e("div",zl,n(re.value),1)])):I("",!0),e("div",Sl,[e("b",null,n(o[i.lang].compileCommand),1),e("div",Dl,n(ce.value),1)])]))}}),El=ye(Bl,[["__scopeId","data-v-36cf2ac6"]]);export{El as C};
|