mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
14 lines
44 KiB
JavaScript
14 lines
44 KiB
JavaScript
import{d as fe,x as w,h as k,z as ae,c as g,o as x,j as e,e as W,ai as m,t as l,G as V,H as T,aj as S,ak as te,al as de,am as le,n as I,_ as ze}from"./framework.Bhsyh9kO.js";const ke={support:{BSD:"wip"},type:"external","arg-type":"custom",source:"amqp","lib-depends":["librabbitmq"],"ext-depends-windows":["openssl"]},Se={type:"external",source:"apcu"},De={type:"external",source:"ast"},Be={type:"builtin"},Ce={type:"external",source:"ext-brotli","arg-type":"enable","lib-depends":["brotli"]},qe={type:"builtin","arg-type-unix":"with-path","arg-type-windows":"with","lib-depends":["bzip2"]},Ee={type:"builtin"},We={type:"builtin"},$e={notes:!0,type:"builtin","arg-type":"with","lib-depends":["curl"],"ext-depends-windows":["zlib","openssl"]},Pe={type:"builtin","arg-type":"custom","lib-suggests":["qdbm"]},Ie={support:{BSD:"wip"},type:"external",source:"dio"},Le={support:{BSD:"wip"},type:"builtin","arg-type":"custom","arg-type-windows":"with","lib-depends":["libxml2","zlib"],"ext-depends-windows":["xml"]},Ue={type:"external",source:"ext-ds"},je={support:{Windows:"wip",BSD:"wip",Darwin:"wip",Linux:"wip"},type:"wip"},Ae={type:"external",source:"ev","arg-type-windows":"with","ext-depends":["sockets"]},Ne={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-event","arg-type":"custom","lib-depends":["libevent"],"ext-depends":["openssl"],"ext-suggests":["sockets"]},Oe={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-excimer"},Ve={type:"builtin"},Te={support:{Linux:"partial",BSD:"wip"},notes:!0,"arg-type":"custom",type:"builtin","lib-depends-unix":["libffi"],"lib-depends-windows":["libffi-win"]},Me={type:"builtin"},Ge={type:"builtin"},Xe={type:"builtin","lib-suggests":["openssl"]},He={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"]},Re={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["gettext"]},Fe={support:{Windows:"wip",BSD:"no",Linux:"no"},notes:!0,type:"external","arg-type":"custom",source:"ext-glfw","lib-depends":["glfw"],"lib-depends-windows":[]},Ze={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["gmp"]},Qe={support:{BSD:"wip"},type:"external",source:"ext-gmssl","lib-depends":["gmssl"]},Ke={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-grpc","arg-type-unix":"enable-path","cpp-extension":!0,"lib-depends":["zlib","openssl","libcares"]},Ye={support:{BSD:"wip"},type:"builtin","arg-type":"with-path","arg-type-windows":"with","lib-depends-unix":["libiconv"],"lib-depends-windows":["libiconv-win"]},Je={support:{BSD:"wip"},type:"external",source:"igbinary","ext-suggests":["session","apcu"]},_e={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-imagick","arg-type":"custom","lib-depends":["imagemagick"]},ei={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-imap","arg-type":"custom","lib-depends":["imap"],"ext-suggests":["openssl"]},ii={support:{Windows:"no",BSD:"wip",Darwin:"no"},type:"external",source:"inotify"},si={support:{BSD:"wip"},type:"builtin","lib-depends-unix":["icu"],"lib-depends-windows":["icu-static-win"]},ti={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["ldap"],"lib-suggests":["gmp","libsodium"],"ext-suggests":["openssl"]},li={support:{BSD:"wip"},type:"builtin","arg-type":"none","ext-depends":["xml"],"build-with-php":!0,target:["static"]},ni={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-lz4","arg-type":"custom","lib-depends":["liblz4"]},oi={support:{BSD:"wip",Windows:"wip"},type:"external",source:"ext-maxminddb","arg-type":"with","lib-depends":["libmaxminddb"]},ai={type:"builtin","arg-type":"custom",target:["static"],"ext-depends":["mbstring"],"lib-depends":["onig"]},di={type:"builtin","arg-type":"custom"},pi={type:"wip",support:{Windows:"no",BSD:"no",Darwin:"no",Linux:"no"},notes:!0},ui={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-memcache","arg-type":"custom","ext-depends":["zlib","session"]},ci={support:{Windows:"wip",BSD:"wip"},type:"external",source:"memcached","arg-type":"custom","cpp-extension":!0,"lib-depends":["libmemcached"],"lib-depends-unix":["libmemcached","fastlz"],"lib-suggests":["zstd"],"ext-depends":["session","zlib"],"ext-suggests":["igbinary","msgpack","session"]},ri={support:{BSD:"wip",Windows:"wip"},type:"external",source:"mongodb","arg-type":"custom","lib-suggests":["icu","openssl","zstd","zlib"],frameworks:["CoreFoundation","Security"]},bi={support:{BSD:"wip"},type:"external",source:"msgpack","arg-type-unix":"with","arg-type-windows":"enable","ext-depends":["session"]},wi={type:"builtin","arg-type":"with","build-with-php":!0,"ext-depends":["mysqlnd"]},gi={type:"builtin","arg-type-windows":"with","build-with-php":!0,"lib-depends":["zlib"]},xi={type:"external",source:"mysqlnd_ed25519","arg-type":"enable",target:["shared"],"ext-depends":["mysqlnd"],"lib-depends":["libsodium"],"lib-suggests":["openssl"]},mi={type:"external",source:"mysqlnd_parsec","arg-type":"enable",target:["shared"],"ext-depends":["mysqlnd"],"lib-depends":["libsodium"],"lib-suggests":["openssl"]},hi={type:"wip",support:{Windows:"wip",BSD:"no",Darwin:"no",Linux:"no"},notes:!0},yi={support:{BSD:"wip",Windows:"wip"},type:"builtin","arg-type-unix":"custom","lib-depends-unix":["unixodbc"]},vi={type:"builtin","arg-type-unix":"custom","arg-type-windows":"enable","zend-extension":!0},fi={notes:!0,type:"builtin","arg-type":"custom","arg-type-windows":"with","build-with-php":!0,"lib-depends":["openssl","zlib"],"ext-depends":["zlib"]},zi={support:{BSD:"wip"},type:"external",source:"opentelemetry"},ki={support:{BSD:"wip"},notes:!0,type:"external",source:"parallel","arg-type-windows":"with","lib-depends-windows":["pthreads4w"]},Si={support:{Windows:"no"},type:"builtin","unix-only":!0},Di={type:"external",source:"pcov",target:["shared"]},Bi={type:"builtin"},Ci={type:"builtin","arg-type":"with","ext-depends":["pdo","mysqlnd"]},qi={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends-unix":["unixodbc"],"ext-depends":["pdo","odbc"]},Ei={support:{BSD:"wip"},type:"builtin","arg-type":"with-path","arg-type-windows":"custom","ext-depends":["pdo","pgsql"],"lib-depends-unix":["postgresql"],"lib-depends-windows":["postgresql-win"]},Wi={support:{BSD:"wip"},type:"builtin","arg-type":"with","ext-depends":["pdo","sqlite3"],"lib-depends":["sqlite"]},$i={support:{BSD:"wip"},type:"external",source:"pdo_sqlsrv","arg-type":"with","ext-depends":["pdo","sqlsrv"]},Pi={support:{BSD:"wip"},notes:!0,type:"builtin","arg-type":"custom","lib-depends-unix":["postgresql"],"lib-depends-windows":["postgresql-win"]},Ii={type:"builtin","ext-depends":["zlib"]},Li={support:{Windows:"no"},type:"builtin","unix-only":!0},Ui={support:{Windows:"wip",BSD:"wip"},type:"external",source:"protobuf"},ji={support:{BSD:"wip",Darwin:"partial"},notes:!0,type:"external",source:"rar","cpp-extension":!0},Ai={support:{BSD:"wip",Windows:"wip"},type:"external",source:"ext-rdkafka","arg-type":"custom","cpp-extension":!0,"lib-depends":["librdkafka"]},Ni={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["libedit"],target:["static"]},Oi={support:{BSD:"wip"},type:"external",source:"redis","arg-type":"custom","ext-suggests":["session","igbinary","msgpack"],"lib-suggests-unix":["zstd","liblz4"]},Vi={type:"builtin","build-with-php":!0},Ti={type:"builtin","build-with-php":!0},Mi={type:"external",source:"ext-simdjson","cpp-extension":!0},Gi={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml"],"build-with-php":!0},Xi={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-snappy","cpp-extension":!0,"arg-type":"custom","lib-depends":["snappy"],"ext-suggests":["apcu"]},Hi={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type-unix":"with","arg-type-windows":"with","lib-depends":["net-snmp"]},Ri={support:{BSD:"wip"},type:"builtin","arg-type":"custom","ext-depends":["libxml","session"]},Fi={type:"builtin"},Zi={support:{BSD:"wip"},type:"builtin","arg-type":"with","lib-depends":["libsodium"]},Qi={support:{BSD:"wip",Windows:"no"},notes:!0,type:"external",source:"spx","arg-type":"custom","lib-depends":["zlib"]},Ki={support:{BSD:"wip"},type:"builtin","arg-type":"with-path","arg-type-windows":"with","build-with-php":!0,"lib-depends":["sqlite"]},Yi={support:{BSD:"wip"},type:"external",source:"sqlsrv","lib-depends-unix":["unixodbc"],"ext-depends-linux":["pcntl"],"cpp-extension":!0},Ji={support:{BSD:"wip"},type:"external",source:"ext-ssh2","arg-type":"with-path","arg-type-windows":"with","lib-depends":["libssh2"],"ext-depends":["openssl","zlib"]},_i={support:{Windows:"no",BSD:"wip"},notes:!0,type:"external",source:"swoole","arg-type":"custom","cpp-extension":!0,"unix-only":!0,"lib-depends":["libcares","brotli","nghttp2","zlib"],"lib-suggests":["zstd"],"lib-suggests-linux":["zstd","liburing"],"ext-depends":["openssl","curl"],"ext-suggests":["sockets","swoole-hook-pgsql","swoole-hook-mysql","swoole-hook-sqlite","swoole-hook-odbc"]},es={support:{BSD:"wip"},notes:!0,type:"external",source:"swow","arg-type":"custom","lib-suggests":["openssl","curl"],"ext-suggests":["openssl","curl"]},is={support:{Windows:"no",BSD:"wip"},type:"builtin","unix-only":!0},ss={support:{Windows:"no",BSD:"wip"},type:"builtin","unix-only":!0},ts={support:{BSD:"wip"},type:"builtin"},ls={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["tidy"]},ns={type:"builtin","build-with-php":!0},os={support:{BSD:"wip",Windows:"wip"},type:"external",source:"ext-trader"},as={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-uuid","arg-type":"with-path","lib-depends":["libuuid"]},ds={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-uv","arg-type":"with-path","lib-depends":["libuv"],"ext-depends":["sockets"]},ps={type:"external",source:"xdebug",target:["shared"],support:{Windows:"wip",BSD:"no",Darwin:"partial",Linux:"partial"},notes:!0,"zend-extension":!0},us={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"xhprof","ext-depends":["ctype"],"build-with-php":!0},cs={support:{BSD:"wip"},type:"external",source:"xlswriter","arg-type":"custom","ext-depends":["zlib","zip"],"lib-suggests":["openssl"]},rs={support:{BSD:"wip"},notes:!0,type:"builtin","arg-type":"custom","arg-type-windows":"with","lib-depends":["libxml2"],"ext-depends-windows":["iconv"],"build-with-php":!0},bs={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml","dom"],"build-with-php":!0},ws={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml"],"build-with-php":!0},gs={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["libxslt"],"ext-depends":["xml","dom"]},xs={type:"external",source:"ext-xz","arg-type":"with","lib-depends":["xz"]},ms={support:{BSD:"wip"},type:"external",source:"yac","arg-type-unix":"custom","lib-depends-unix":["fastlz"],"ext-depends-unix":["igbinary"]},hs={support:{BSD:"wip"},type:"external",source:"yaml","arg-type-unix":"with-path","arg-type-windows":"with","lib-depends":["libyaml"]},ys={support:{BSD:"wip"},type:"external",source:"ext-zip","arg-type":"custom","arg-type-windows":"enable","lib-depends-unix":["libzip"],"ext-depends-windows":["zlib","bz2"],"lib-depends-windows":["libzip","zlib","bzip2","xz"]},vs={type:"builtin","arg-type":"custom","arg-type-windows":"enable","lib-depends":["zlib"],"build-with-php":!0,target:["static"]},fs={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-zstd","arg-type":"custom","lib-depends":["zstd"]},zs={amqp:ke,apcu:Se,ast:De,bcmath:Be,brotli:Ce,bz2:qe,calendar:Ee,ctype:We,curl:$e,dba:Pe,dio:Ie,dom:Le,ds:Ue,enchant:je,ev:Ae,event:Ne,excimer:Oe,exif:Ve,ffi:Te,fileinfo:Me,filter:Ge,ftp:Xe,gd:He,gettext:Re,glfw:Fe,gmp:Ze,gmssl:Qe,grpc:Ke,iconv:Ye,igbinary:Je,imagick:_e,imap:ei,inotify:ii,intl:si,ldap:ti,libxml:li,lz4:ni,maxminddb:oi,mbregex:ai,mbstring:di,mcrypt:pi,memcache:ui,memcached:ci,mongodb:ri,msgpack:bi,mysqli:wi,mysqlnd:gi,mysqlnd_ed25519:xi,mysqlnd_parsec:mi,oci8:hi,odbc:yi,opcache:vi,openssl:fi,opentelemetry:zi,parallel:ki,"password-argon2":{support:{Windows:"wip",BSD:"wip"},notes:!0,type:"builtin","arg-type":"custom","lib-depends":["libargon2","openssl"]},pcntl:Si,pcov:Di,pdo:Bi,pdo_mysql:Ci,pdo_odbc:qi,pdo_pgsql:Ei,pdo_sqlite:Wi,pdo_sqlsrv:$i,pgsql:Pi,phar:Ii,posix:Li,protobuf:Ui,rar:ji,rdkafka:Ai,readline:Ni,redis:Oi,session:Vi,shmop:Ti,simdjson:Mi,simplexml:Gi,snappy:Xi,snmp:Hi,soap:Ri,sockets:Fi,sodium:Zi,spx:Qi,sqlite3:Ki,sqlsrv:Yi,ssh2:Ji,swoole:_i,"swoole-hook-mysql":{support:{Windows:"no",BSD:"wip"},notes:!0,type:"addon","arg-type":"none","ext-depends":["mysqlnd","pdo","pdo_mysql","swoole"],"ext-suggests":["mysqli"]},"swoole-hook-odbc":{support:{Windows:"no",BSD:"wip"},notes:!0,type:"addon","arg-type":"none","ext-depends":["pdo","swoole"],"lib-depends":["unixodbc"]},"swoole-hook-pgsql":{support:{Windows:"no",BSD:"wip",Darwin:"partial"},notes:!0,type:"addon","arg-type":"none","ext-depends":["pgsql","pdo","swoole"]},"swoole-hook-sqlite":{support:{Windows:"no",BSD:"wip"},notes:!0,type:"addon","arg-type":"none","ext-depends":["sqlite3","pdo","swoole"]},swow:es,sysvmsg:is,sysvsem:ss,sysvshm:ts,tidy:ls,tokenizer:ns,trader:os,uuid:as,uv:ds,xdebug:ps,xhprof:us,xlswriter:cs,xml:rs,xmlreader:bs,xmlwriter:ws,xsl:gs,xz:xs,yac:ms,yaml:hs,zip:ys,zlib:vs,zstd:fs},ks={type:"root",source:"php-src","lib-depends":["lib-base","micro","frankenphp"],"lib-depends-macos":["lib-base","micro","libxml2","frankenphp"],"lib-suggests-linux":["libacl","brotli","watcher"],"lib-suggests-macos":["brotli","watcher"]},Ss={source:"frankenphp",type:"target"},Ds={type:"target",source:"micro"},Bs={source:"attr","static-libs-unix":["libattr.a"]},Cs={source:"brotli","pkg-configs":["libbrotlicommon","libbrotlidec","libbrotlienc"],"static-libs-windows":["brotlicommon.lib","brotlienc.lib","brotlidec.lib"],headers:["brotli"]},qs={source:"bzip2","static-libs-unix":["libbz2.a"],"static-libs-windows":["libbz2.lib","libbz2_a.lib"],headers:["bzlib.h"]},Es={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","nghttp3","ngtcp2","zstd","libcares","ldap","idn2","krb5"],"lib-suggests-windows":["brotli","zstd"],frameworks:["CoreFoundation","CoreServices","SystemConfiguration"]},Ws={source:"fastlz","static-libs-unix":["libfastlz.a"],headers:["fastlz/fastlz.h"]},$s={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"]},Ps={source:"gettext","static-libs-unix":["libintl.a"],"lib-depends":["libiconv"],"lib-suggests":["ncurses","libxml2"],frameworks:["CoreFoundation"]},Is={source:"ext-glfw","static-libs-unix":["libglfw3.a"],frameworks:["CoreVideo","OpenGL","Cocoa","IOKit"]},Ls={source:"gmp","static-libs-unix":["libgmp.a"],"static-libs-windows":["libgmp.lib"],headers:["gmp.h"]},Us={source:"gmssl","static-libs-unix":["libgmssl.a"],"static-libs-windows":["gmssl.lib"],frameworks:["Security"]},js={source:"grpc","pkg-configs":["grpc"],"lib-depends":["zlib","openssl","libcares"],"cpp-library":!0,frameworks:["CoreFoundation"]},As={source:"icu","cpp-library":!0,"pkg-configs":["icu-uc","icu-i18n","icu-io"]},Ns={source:"libidn2","pkg-configs":["libidn2"],headers:["idn2.h"],"lib-suggests-unix":["libiconv","gettext","libunistring"],"lib-depends-macos":["libiconv","gettext"]},Os={source:"imagemagick","cpp-library":!0,"pkg-configs":["Magick++-7.Q16HDRI","MagickCore-7.Q16HDRI","MagickWand-7.Q16HDRI"],"lib-depends":["zlib","libjpeg","libjxl","libpng","libwebp","freetype","libtiff","libheif","bzip2"],"lib-suggests":["zstd","xz","libzip","libxml2"]},Vs={source:"imap","static-libs-unix":["libc-client.a"],"lib-suggests":["openssl"]},Ts={source:"jbig","static-libs-unix":["libjbig.a","libjbig85.a"],headers:["jbig.h","jbig85.h","jbig_ar.h"]},Ms={source:"krb5","pkg-configs":["krb5-gssapi"],headers:["krb5.h","gssapi/gssapi.h"],"lib-depends":["openssl"],"lib-suggests":["ldap","libedit"],frameworks:["Kerberos"]},Gs={source:"ldap","pkg-configs":["ldap","lber"],"lib-depends":["openssl","zlib","gmp","libsodium"]},Xs={source:"lerc","static-libs-unix":["libLerc.a"],"cpp-library":!0},Hs={source:"libacl","static-libs-unix":["libacl.a"],"lib-depends":["attr"]},Rs={source:"libaom","static-libs-unix":["libaom.a"],"cpp-library":!0},Fs={source:"libargon2","static-libs-unix":["libargon2.a"],"lib-suggests":["libsodium"]},Zs={source:"libavif","static-libs-unix":["libavif.a"],"static-libs-windows":["avif.lib"]},Qs={source:"libcares","static-libs-unix":["libcares.a"],"headers-unix":["ares.h","ares_dns.h","ares_nameser.h"]},Ks={source:"libde265","static-libs-unix":["libde265.a"],"cpp-library":!0},Ys={source:"libedit","static-libs-unix":["libedit.a"],"lib-depends":["ncurses"]},Js={source:"libevent","static-libs-unix":["libevent.a","libevent_core.a","libevent_extra.a","libevent_openssl.a"],"lib-depends":["openssl"]},_s={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"]},et={source:"libheif","static-libs-unix":["libheif.a"],"lib-depends":["libde265","libwebp","libaom","zlib","brotli"]},it={source:"libiconv","static-libs-unix":["libiconv.a","libcharset.a"],headers:["iconv.h","libcharset.h","localcharset.h"]},st={source:"libjpeg","static-libs-unix":["libjpeg.a","libturbojpeg.a"],"static-libs-windows":["libjpeg_a.lib"],"lib-suggests-windows":["zlib"]},tt={source:"libjxl","pkg-configs":["libjxl","libjxl_cms","libjxl_threads","libhwy"],"lib-depends":["brotli","libjpeg","libpng","libwebp"]},lt={source:"liblz4","static-libs-unix":["liblz4.a"]},nt={source:"libmaxminddb","static-libs-unix":["libmaxminddb.a"],headers:["maxminddb.h","maxminddb_config.h"]},ot={source:"libmemcached","cpp-library":!0,"static-libs-unix":["libmemcached.a","libmemcachedprotocol.a","libmemcachedutil.a","libhashkit.a"]},at={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"]},dt={source:"librabbitmq","static-libs-unix":["librabbitmq.a"],"static-libs-windows":["rabbitmq.4.lib"],"lib-depends":["openssl"]},pt={source:"librdkafka","pkg-configs":["rdkafka++-static","rdkafka-static"],"cpp-library":!0,"lib-suggests":["curl","liblz4","openssl","zlib","zstd"]},ut={source:"libsodium","static-libs-unix":["libsodium.a"],"static-libs-windows":["libsodium.lib"]},ct={source:"libssh2","static-libs-unix":["libssh2.a"],"static-libs-windows":["libssh2.lib"],headers:["libssh2.h","libssh2_publickey.h","libssh2_sftp.h"],"lib-depends":["openssl"]},rt={source:"libtiff","static-libs-unix":["libtiff.a"],"lib-depends":["zlib","libjpeg"],"lib-suggests-unix":["lerc","libwebp","jbig","xz","zstd"]},bt={source:"libunistring","static-libs-unix":["libunistring.a"],headers:["unistr.h","unistring/"]},wt={source:"liburing","pkg-configs":["liburing","liburing-ffi"],"static-libs-linux":["liburing.a","liburing-ffi.a"],"headers-linux":["liburing/","liburing.h"]},gt={source:"libuuid","static-libs-unix":["libuuid.a"],headers:["uuid/uuid.h"]},xt={source:"libuv","static-libs-unix":["libuv.a"]},mt={source:"libwebp","pkg-configs":["libwebp","libwebpdecoder","libwebpdemux","libwebpmux","libsharpyuv"],"static-libs-windows":["libwebp.lib","libwebpdecoder.lib","libwebpdemux.lib","libsharpyuv.lib"]},ht={source:"libxml2","pkg-configs":["libxml-2.0"],"static-libs-windows":["libxml2s.lib","libxml2_a.lib"],headers:["libxml2"],"lib-depends-unix":["libiconv"],"lib-suggests-unix":["xz","zlib"],"lib-depends-windows":["libiconv-win"],"lib-suggests-windows":["zlib"]},yt={source:"libxslt","static-libs-unix":["libxslt.a","libexslt.a"],"lib-depends":["libxml2"]},vt={source:"libyaml","static-libs-unix":["libyaml.a"],"static-libs-windows":["yaml.lib"],headers:["yaml.h"]},ft={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"]},zt={source:"mimalloc","static-libs-unix":["libmimalloc.a"]},kt={source:"ncurses","static-libs-unix":["libncurses.a"]},St={source:"nghttp2","static-libs-unix":["libnghttp2.a"],"static-libs-windows":["nghttp2.lib"],headers:["nghttp2"],"lib-depends":["zlib","openssl"],"lib-suggests":["libxml2","nghttp3","ngtcp2"]},Dt={source:"nghttp3","static-libs-unix":["libnghttp3.a"],"static-libs-windows":["nghttp3.lib"],headers:["nghttp3"],"lib-depends":["openssl"]},Bt={source:"ngtcp2","static-libs-unix":["libngtcp2.a","libngtcp2_crypto_ossl.a"],"static-libs-windows":["ngtcp2.lib","ngtcp2_crypto_ossl.lib"],headers:["ngtcp2"],"lib-depends":["openssl"],"lib-suggests":["nghttp3","brotli"]},Ct={source:"onig","static-libs-unix":["libonig.a"],"static-libs-windows":["onig.lib","onig_a.lib"],headers:["oniggnu.h","oniguruma.h"]},qt={source:"openssl","static-libs-unix":["libssl.a","libcrypto.a"],"static-libs-windows":["libssl.lib","libcrypto.lib"],headers:["openssl"],"lib-depends":["zlib"]},Et={source:"postgresql","pkg-configs":["libpq"],"lib-depends":["libiconv","libxml2","openssl","zlib","libedit"],"lib-suggests":["icu","libxslt","ldap","zstd"]},Wt={source:"pthreads4w","static-libs-windows":["libpthreadVC3.lib"]},$t={source:"qdbm","static-libs-unix":["libqdbm.a"],"static-libs-windows":["qdbm_a.lib"],"headers-windows":["depot.h"]},Pt={source:"re2c","bin-unix":["re2c"]},It={source:"readline","static-libs-unix":["libreadline.a"],"lib-depends":["ncurses"]},Lt={source:"snappy","cpp-library":!0,"static-libs-unix":["libsnappy.a"],"headers-unix":["snappy.h","snappy-c.h","snappy-sinksource.h","snappy-stubs-public.h"],"lib-depends":["zlib"]},Ut={source:"sqlite","static-libs-unix":["libsqlite3.a"],"static-libs-windows":["libsqlite3_a.lib"],headers:["sqlite3.h","sqlite3ext.h"]},jt={source:"tidy","static-libs-unix":["libtidy.a"]},At={source:"unixodbc","static-libs-unix":["libodbc.a","libodbccr.a","libodbcinst.a"],"lib-depends":["libiconv"]},Nt={source:"watcher","cpp-library":!0,"static-libs-unix":["libwatcher-c.a"],headers:["wtr/watcher-c.h"]},Ot={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"]},Vt={source:"zlib","static-libs-unix":["libz.a"],"static-libs-windows":["zlib_a.lib"],headers:["zlib.h","zconf.h"]},Tt={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"]},Mt={"lib-base":{type:"root"},php:ks,frankenphp:Ss,micro:Ds,"pkg-config":{type:"package",source:"pkg-config","bin-unix":["pkg-config"]},attr:Bs,brotli:Cs,bzip2:qs,curl:Es,fastlz:Ws,freetype:$s,gettext:Ps,glfw:Is,gmp:Ls,gmssl:Us,grpc:js,icu:As,"icu-static-win":{source:"icu-static-win","static-libs-windows":["icudt.lib","icuin.lib","icuio.lib","icuuc.lib"],"headers-windows":["unicode"]},idn2:Ns,imagemagick:Os,imap:Vs,jbig:Ts,krb5:Ms,ldap:Gs,lerc:Xs,libacl:Hs,libaom:Rs,libargon2:Fs,libavif:Zs,libcares:Qs,libde265:Ks,libedit:Ys,libevent:Js,libffi:_s,"libffi-win":{source:"libffi-win","static-libs-windows":["libffi.lib"],"headers-windows":["ffi.h","ffitarget.h","fficonfig.h"]},libheif:et,libiconv:it,"libiconv-win":{source:"libiconv-win","static-libs-windows":["libiconv.lib","libiconv_a.lib"]},libjpeg:st,libjxl:tt,liblz4:lt,libmaxminddb:nt,libmemcached:ot,libpng:at,librabbitmq:dt,librdkafka:pt,libsodium:ut,libssh2:ct,libtiff:rt,libunistring:bt,liburing:wt,libuuid:gt,libuv:xt,libwebp:mt,libxml2:ht,libxslt:yt,libyaml:vt,libzip:ft,mimalloc:zt,ncurses:kt,"net-snmp":{source:"net-snmp","pkg-configs":["netsnmp","netsnmp-agent"],"lib-depends":["openssl","zlib"]},nghttp2:St,nghttp3:Dt,ngtcp2:Bt,onig:Ct,openssl:qt,postgresql:Et,"postgresql-win":{source:"postgresql-win","static-libs":["libpq.lib","libpgport.lib","libpgcommon.lib"]},pthreads4w:Wt,qdbm:$t,re2c:Pt,readline:It,snappy:Lt,sqlite:Ut,tidy:jt,unixodbc:At,watcher:Nt,xz:Ot,zlib:Vt,zstd:Tt};function j(i,o,d,u){return i.os==="linux"?i[o][d][u+"-linux"]??i[o][d][u+"-unix"]??i[o][d][u]??[]:i.os==="macos"?i[o][d][u+"-macos"]??i[o][d][u+"-unix"]??i[o][d][u]??[]:i.os==="windows"?i[o][d][u+"-windows"]??i[o][d][u]??[]:[]}function pe(i,o){return j(i,"ext",o,"ext-depends")}function Gt(i,o){return j(i,"ext",o,"ext-suggests")}function Xt(i,o){return j(i,"ext",o,"lib-depends")}function Ht(i,o){return j(i,"ext",o,"lib-suggests")}function ue(i,o){return j(i,"lib",o,"lib-depends")}function Rt(i,o){return j(i,"lib",o,"lib-suggests")}function Ft(i,o){const d=[],u=new Set,p=[];o.forEach(D=>{u.has(D)||Kt(i,D,u,d)});const h=[];return d.forEach(D=>{o.indexOf(D)===-1&&p.push(D),[...Xt(i,D),...Ht(i,D)].forEach(y=>{h.indexOf(y)===-1&&h.push(y)})}),{exts:d,libs:Zt(i,h),notIncludedExts:p}}function Zt(i,o){const d=[],u=new Set;return o.forEach(p=>{u.has(p)||(console.log("before visited"),console.log(u),Qt(i,p,u,d),console.log("after visited"),console.log(u))}),d}function Qt(i,o,d,u){if(d.has(o))return;d.add(o),[...ue(i,o),...Rt(i,o)].forEach(h=>{ce(i,h,d,u)}),u.push(o)}function ce(i,o,d,u){d.has(o)||(d.add(o),ue(i,o).forEach(p=>{ce(i,p,d,u)}),u.push(o))}function re(i,o,d,u){d.has(d)||(d.add(o),pe(i,o).forEach(p=>{re(i,p,d,u)}),u.push(o))}function Kt(i,o,d,u){if(d.has(o))return;d.add(o),[...pe(i,o),...Gt(i,o)].forEach(h=>{re(i,h,d,u)}),u.push(o)}const Yt={class:"option-line"},Jt=["id","value","disabled"],_t=["for"],el={class:"option-line"},il=["disabled"],sl={class:"box"},tl=["placeholder"],ll=["id","value","disabled"],nl=["for"],ol={style:{color:"orangered","font-weight":"bolder"}},al={class:"details custom-block",open:""},dl={class:"box"},pl=["id","value","disabled"],ul=["for"],cl={class:"tip custom-block"},rl={class:"box"},bl=["id","value"],wl=["for"],gl={key:2,class:"warning custom-block"},xl={key:3,class:"warning custom-block"},ml={value:"native"},hl={value:"spc"},yl={key:0,value:"docker"},vl=["value"],fl={for:"debug-yes"},zl={for:"debug-no"},kl={for:"zts-yes"},Sl={for:"zts-no"},Dl={for:"show-download-yes"},Bl={for:"show-download-no"},Cl={for:"pre-built-yes"},ql={for:"pre-built-no"},El={key:0},Wl={for:"upx-yes"},$l={for:"upx-no"},Pl=["placeholder"],Il={key:4,class:"command-container"},Ll={key:0,class:"command-preview"},Ul={class:"command-content"},jl={key:1},Al={class:"warning custom-block"},Nl={key:5,class:"command-container"},Ol={class:"command-preview"},Vl={class:"command-content"},Tl={key:6,class:"command-container"},Ml={class:"command-preview"},Gl={class:"command-content"},Xl={key:7,class:"command-container"},Hl={class:"command-preview"},Rl={class:"command-content"},Fl={class:"command-container"},Zl={class:"command-preview"},Ql={class:"command-content"},Kl={class:"command-container"},Yl={class:"command-preview"},Jl={class:"command-content"},_l={class:"command-container"},en={class:"command-preview pre"},sn={class:"command-content"},tn={name:"CliGenerator"},ln=fe({...tn,props:{lang:{type:String,default:"zh"}},setup(i){const o=new Map([["linux","Linux"],["macos","Darwin"],["windows","Windows"]]),d=["cli","fpm","micro","embed","frankenphp","all"],u=["8.0","8.1","8.2","8.3","8.4","8.5"],p=w(zs),h=w(Mt),D=w([]),C=w(""),y=w([]),q=w([]),H=w([]),M=w([]),z=w(["cli"]),G=w("spc"),L=w("8.4"),r=w("linux"),X=w("x86_64"),B=w(0),U=w(0),A=w(1),$=w(1),E=w(0),R=w(""),ne=w("--build-cli"),v=w({spcDownload:!1,downloadExt:!1,downloadAll:!1,downloadPkg:!1,build:!1,craft:!1,doctor:!1}),be=[{os:"linux",label:"Linux",disabled:!1},{os:"macos",label:"macOS",disabled:!1},{os:"windows",label:"Windows",disabled:!1}],oe=k(()=>Object.entries(p.value).filter(([a])=>ge(a,r.value)).map(([a])=>a)),F=k(()=>y.value.join(",")),Z=k(()=>{const a=q.value.filter(t=>M.value.indexOf(t)===-1);return a.length>0?` --with-libs="${a.join(",")}"`:""}),N=k(()=>{switch(G.value){case"native":return"bin/spc";case"spc":return r.value==="windows"?".\\spc.exe":"./spc";case"docker":return"bin/spc-alpine-docker";default:return""}}),Q=k(()=>r.value==="windows"?"":`curl -fsSL -o spc.tgz https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-${r.value}-${X.value}.tar.gz && tar -zxvf spc.tgz && rm spc.tgz`),we=k(()=>{const t=R.value.split(`
|
||
`).filter(s=>s.indexOf("=")>=1);return t.length>0?" "+t.map(s=>`-I "${s}"`).join(" "):""}),K=k(()=>`${N.value} download --all --with-php=${L.value}${$.value?" --prefer-pre-built":""}${B.value?" --debug":""}`),Y=k(()=>`${N.value} download --with-php=${L.value} --for-extensions "${F.value}"${$.value?" --prefer-pre-built":""}${B.value?" --debug":""}`),J=k(()=>`${N.value} install-pkg upx${B.value?" --debug":""}`),_=k(()=>`${N.value} doctor --auto-fix${B.value?" --debug":""}`),ee=k(()=>`${N.value} build ${ne.value} "${F.value}"${Z.value}${B.value?" --debug":""}${U.value?" --enable-zts":""}${E.value?" --with-upx-pack":""}${we.value}`),ie=k(()=>{let a=`php-version: ${L.value}
|
||
`;return a+=`extensions: "${F.value}"
|
||
`,z.value.join(",")==="all"?a+="sapi: "+["cli","fpm","micro","embed","frankenphp"].join(",")+`
|
||
`:a+=`sapi: ${z.value.join(",")}
|
||
`,Z.value&&(a+=`libs: ${Z.value.replace('--with-libs="',"").replace('"',"").trim()}
|
||
`),B.value&&(a+=`debug: true
|
||
`),$.value&&(a+=`download-options:
|
||
`,a+=` prefer-pre-built: true
|
||
`),a+="{{position_hold}}",E.value&&(a+=` with-upx-pack: true
|
||
`),U.value&&(a+=` enable-zts: true
|
||
`),a.endsWith("{{position_hold}}")?a=a.replace("{{position_hold}}",""):a=a.replace("{{position_hold}}",`build-options:
|
||
`),a}),ge=(a,t)=>{const s=o.get(t),b=p.value[a]?.support?.[s]??"yes";return b==="yes"||b==="partial"},xe=()=>{y.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"]},me=()=>{y.value=[...oe.value]},he=a=>{if(a.target.value==="all")z.value=["all"];else{const s=z.value.indexOf("all");s!==-1&&z.value.splice(s,1)}ne.value=z.value.map(s=>`--build-${s}`).join(" ")},se=(a,t)=>{if(!C.value||!a.includes(C.value))return t===0?a:"";const s=a.indexOf(C.value);switch(t){case 0:return a.substring(0,s);case 1:return C.value;case 2:return a.substring(s+C.value.length);default:return""}},P=async a=>{try{await navigator.clipboard.writeText(a);const s={[Q.value]:"spcDownload",[Y.value]:"downloadExt",[K.value]:"downloadAll",[J.value]:"downloadPkg",[_.value]:"doctor",[ee.value]:"build",[ie.value]:"craft"}[a];s&&(v.value[s]=!0,setTimeout(()=>{v.value[s]=!1},2e3))}catch(t){console.error("Failed to copy text: ",t);const s=document.createElement("textarea");s.value=a,document.body.appendChild(s),s.select(),document.execCommand("copy"),document.body.removeChild(s)}},ye=a=>{const t=new Set,s=b=>{let c=[];r.value==="linux"?c=p.value[b]?.["ext-depends-linux"]??p.value[b]?.["ext-depends-unix"]??p.value[b]?.["ext-depends"]??[]:r.value==="macos"?c=p.value[b]?.["ext-depends-macos"]??p.value[b]?.["ext-depends-unix"]??p.value[b]?.["ext-depends"]??[]:r.value==="windows"&&(c=p.value[b]?.["ext-depends-windows"]??p.value[b]?.["ext-depends"]??[]),c.length!==0&&c.forEach(f=>{t.add(f),s(f)})};return a.forEach(s),Array.from(t)},ve=a=>{const t=new Set,s=c=>{let f=[];r.value==="linux"?f=h.value[c]?.["lib-depends-linux"]??h.value[c]?.["lib-depends-unix"]??h.value[c]?.["lib-depends"]??[]:r.value==="macos"?f=h.value[c]?.["lib-depends-macos"]??h.value[c]?.["lib-depends-unix"]??h.value[c]?.["lib-depends"]??[]:r.value==="windows"&&(f=h.value[c]?.["lib-depends-windows"]??h.value[c]?.["lib-depends"]??[]),f.length!==0&&f.forEach(O=>{t.add(O),s(O)})},b=c=>{let f=[];r.value==="linux"?f=p.value[c]?.["lib-depends-linux"]??p.value[c]?.["lib-depends-unix"]??p.value[c]?.["lib-depends"]??[]:r.value==="macos"?f=p.value[c]?.["lib-depends-macos"]??p.value[c]?.["lib-depends-unix"]??p.value[c]?.["lib-depends"]??[]:r.value==="windows"&&(f=p.value[c]?.["lib-depends-windows"]??p.value[c]?.["lib-depends"]??[]),f.length!==0&&f.forEach(O=>{t.add(O),s(O)})};return a.forEach(b),Array.from(t)};ae(r,()=>{r.value==="windows"&&(X.value="x86_64"),y.value=[],E.value=0}),ae(y,a=>{H.value=ye(a),H.value.forEach(s=>{y.value.indexOf(s)===-1&&y.value.push(s)}),y.value.sort();const t=Ft({ext:p.value,lib:h.value,os:r.value},y.value);D.value=t.libs.sort(),q.value=[],M.value=ve(t.exts),M.value.forEach(s=>{q.value.indexOf(s)===-1&&q.value.push(s)})},{deep:!0});const n={zh:{selectExt:"选择扩展",buildTarget:"选择编译目标",buildOptions:"编译选项",buildEnvironment:"编译环境",buildEnvNative:"本地构建(Git 源码)",buildEnvSpc:"本地构建(独立 spc 二进制)",buildEnvDocker:"Alpine Docker 构建",useDebug:"是否开启调试输出",yes:"是",no:"否",resultShow:"结果展示",selectCommon:"选择常用扩展",selectAll:"选择全部",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 参数。",depTips2:"无法同时构建所有扩展,因为有些扩展之间相互冲突。请根据需要选择扩展。",microUnavailable:"micro 不支持 PHP 7.4 及更早版本!",windowsSAPIUnavailable:"Windows 目前不支持 fpm、embed、frankenphp 构建!",useUPX:"是否开启 UPX 压缩(减小二进制体积)",windowsDownSPCWarning:"Windows 下请手动下载 spc.exe 二进制文件,解压到当前目录并重命名为 spc.exe!",usePreBuilt:"如果可能,下载预编译的依赖库(减少编译时间)",searchPlaceholder:"搜索扩展...",copy:"复制",copied:"已复制",doctorCommand:"自动检查和准备构建环境命令"},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",selectAll:"Select all",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.",depTips2:"It is not possible to build all extensions at the same time, as some extensions conflict with each other. Please select the extensions you need.",microUnavailable:"Micro does not support PHP 7.4 and earlier versions!",windowsSAPIUnavailable:"Windows does not support fpm, embed and frankenphp 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)",searchPlaceholder:"Search extensions...",copy:"Copy",copied:"Copied",doctorCommand:"Auto-check and prepare build environment command"}};return(a,t)=>(x(),g("div",null,[e("h2",null,l(n[i.lang].selectedSystem),1),e("div",Yt,[(x(),g(V,null,T(be,(s,b)=>e("span",{key:b,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]=c=>r.value=c)},null,8,Jt),[[S,r.value]]),e("label",{for:"os-"+s.os},l(s.label),9,_t)])),64))]),e("div",el,[m(e("select",{"onUpdate:modelValue":t[1]||(t[1]=s=>X.value=s)},[t[27]||(t[27]=e("option",{value:"x86_64"},"x86_64",-1)),e("option",{value:"aarch64",disabled:r.value==="windows"},"aarch64",8,il)],512),[[te,X.value]])]),e("h2",null,l(n[i.lang].selectExt)+l(y.value.length>0?" ("+y.value.length+")":""),1),e("div",sl,[m(e("input",{class:"input","onUpdate:modelValue":t[2]||(t[2]=s=>C.value=s),placeholder:n[i.lang].searchPlaceholder},null,8,tl),[[de,C.value]]),t[28]||(t[28]=e("br",null,null,-1)),(x(!0),g(V,null,T(oe.value,s=>(x(),g("div",{key:s,class:"ext-item"},[e("span",null,[m(e("input",{type:"checkbox",id:s,value:s,"onUpdate:modelValue":t[3]||(t[3]=b=>y.value=b),disabled:H.value.indexOf(s)!==-1},null,8,ll),[[le,y.value]]),e("label",{for:s},[e("span",null,l(se(s,0)),1),e("span",ol,l(se(s,1)),1),e("span",null,l(se(s,2)),1)],8,nl)])]))),128))]),r.value!=="windows"?(x(),g("div",{key:0,class:"my-btn",onClick:xe},l(n[i.lang].selectCommon),1)):W("",!0),r.value!=="windows"?(x(),g("div",{key:1,class:"my-btn",onClick:me},l(n[i.lang].selectAll),1)):W("",!0),e("div",{class:"my-btn",onClick:t[4]||(t[4]=s=>y.value=[])},l(n[i.lang].selectNone),1),e("details",al,[e("summary",null,l(n[i.lang].buildLibs)+l(q.value.length>0?" ("+q.value.length+")":""),1),e("div",dl,[(x(!0),g(V,null,T(D.value,(s,b)=>(x(),g("div",{key:b,class:"ext-item"},[m(e("input",{type:"checkbox",id:b,value:s,"onUpdate:modelValue":t[5]||(t[5]=c=>q.value=c),disabled:M.value.indexOf(s)!==-1},null,8,pl),[[le,q.value]]),e("label",{for:b},l(s),9,ul)]))),128))])]),e("div",cl,[t[29]||(t[29]=e("p",{class:"custom-block-title"},"TIP",-1)),e("p",null,l(n[i.lang].depTips),1),e("p",null,l(n[i.lang].depTips2),1)]),e("h2",null,l(n[i.lang].buildTarget),1),e("div",rl,[(x(),g(V,null,T(d,s=>e("div",{key:s,class:"ext-item"},[m(e("input",{type:"checkbox",id:"build_"+s,value:s,"onUpdate:modelValue":t[6]||(t[6]=b=>z.value=b),onChange:he},null,40,bl),[[le,z.value]]),e("label",{for:"build_"+s},l(s),9,wl)])),64))]),L.value==="7.4"&&(z.value.indexOf("micro")!==-1||z.value.indexOf("all")!==-1)?(x(),g("div",gl,[t[30]||(t[30]=e("p",{class:"custom-block-title"},"WARNING",-1)),e("p",null,l(n[i.lang].microUnavailable),1)])):W("",!0),r.value==="windows"&&(z.value.indexOf("fpm")!==-1||z.value.indexOf("embed")!==-1||z.value.indexOf("frankenphp")!==-1)?(x(),g("div",xl,[t[31]||(t[31]=e("p",{class:"custom-block-title"},"WARNING",-1)),e("p",null,l(n[i.lang].windowsSAPIUnavailable),1)])):W("",!0),e("h2",null,l(n[i.lang].buildOptions),1),e("table",null,[e("tr",null,[e("td",null,l(n[i.lang].buildEnvironment),1),e("td",null,[m(e("select",{"onUpdate:modelValue":t[7]||(t[7]=s=>G.value=s)},[e("option",ml,l(n[i.lang].buildEnvNative),1),e("option",hl,l(n[i.lang].buildEnvSpc),1),r.value!=="windows"?(x(),g("option",yl,l(n[i.lang].buildEnvDocker),1)):W("",!0)],512),[[te,G.value]])])]),e("tr",null,[e("td",null,l(n[i.lang].downloadPhpVersion),1),e("td",null,[m(e("select",{"onUpdate:modelValue":t[8]||(t[8]=s=>L.value=s)},[(x(),g(V,null,T(u,s=>e("option",{key:s,value:s},l(s),9,vl)),64))],512),[[te,L.value]])])]),e("tr",null,[e("td",null,l(n[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),[[S,B.value]]),e("label",fl,l(n[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),[[S,B.value]]),e("label",zl,l(n[i.lang].no),1)])]),e("tr",null,[e("td",null,l(n[i.lang].useZTS),1),e("td",null,[m(e("input",{type:"radio",id:"zts-yes",value:1,"onUpdate:modelValue":t[11]||(t[11]=s=>U.value=s)},null,512),[[S,U.value]]),e("label",kl,l(n[i.lang].yes),1),m(e("input",{type:"radio",id:"zts-no",value:0,"onUpdate:modelValue":t[12]||(t[12]=s=>U.value=s)},null,512),[[S,U.value]]),e("label",Sl,l(n[i.lang].no),1)])]),e("tr",null,[e("td",null,l(n[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=>A.value=s)},null,512),[[S,A.value]]),e("label",Dl,l(n[i.lang].yes),1),m(e("input",{type:"radio",id:"show-download-no",value:0,"onUpdate:modelValue":t[14]||(t[14]=s=>A.value=s)},null,512),[[S,A.value]]),e("label",Bl,l(n[i.lang].no),1)])]),e("tr",null,[e("td",null,l(n[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=>$.value=s)},null,512),[[S,$.value]]),e("label",Cl,l(n[i.lang].yes),1),m(e("input",{type:"radio",id:"pre-built-no",value:0,"onUpdate:modelValue":t[16]||(t[16]=s=>$.value=s)},null,512),[[S,$.value]]),e("label",ql,l(n[i.lang].no),1)])]),r.value!=="macos"?(x(),g("tr",El,[e("td",null,l(n[i.lang].useUPX),1),e("td",null,[m(e("input",{type:"radio",id:"upx-yes",value:1,"onUpdate:modelValue":t[17]||(t[17]=s=>E.value=s)},null,512),[[S,E.value]]),e("label",Wl,l(n[i.lang].yes),1),m(e("input",{type:"radio",id:"upx-no",value:0,"onUpdate:modelValue":t[18]||(t[18]=s=>E.value=s)},null,512),[[S,E.value]]),e("label",$l,l(n[i.lang].no),1)])])):W("",!0)]),e("h2",null,l(n[i.lang].hardcodedINI),1),m(e("textarea",{class:"textarea",placeholder:n[i.lang].hardcodedINIPlacehoder,"onUpdate:modelValue":t[19]||(t[19]=s=>R.value=s),rows:"5"},null,8,Pl),[[de,R.value]]),e("h2",null,l(n[i.lang].resultShow),1),G.value==="spc"?(x(),g("div",Il,[e("b",null,l(n[i.lang].downloadSPCBinaryCommand),1),r.value!=="windows"?(x(),g("div",Ll,[e("div",Ul,l(Q.value),1),e("button",{class:I(["copy-btn",{copied:v.value.spcDownload}]),onClick:t[20]||(t[20]=s=>P(Q.value))},l(v.value.spcDownload?n[i.lang].copied:n[i.lang].copy),3)])):(x(),g("div",jl,[e("div",Al,[t[32]||(t[32]=e("p",{class:"custom-block-title"},"WARNING",-1)),e("p",null,l(n[i.lang].windowsDownSPCWarning),1),t[33]||(t[33]=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))])]))])):W("",!0),A.value?(x(),g("div",Nl,[e("b",null,l(n[i.lang].downloadExtOnlyCommand),1),e("div",Ol,[e("div",Vl,l(Y.value),1),e("button",{class:I(["copy-btn",{copied:v.value.downloadExt}]),onClick:t[21]||(t[21]=s=>P(Y.value))},l(v.value.downloadExt?n[i.lang].copied:n[i.lang].copy),3)])])):(x(),g("div",Tl,[e("b",null,l(n[i.lang].downloadAllCommand),1),e("div",Ml,[e("div",Gl,l(K.value),1),e("button",{class:I(["copy-btn",{copied:v.value.downloadAll}]),onClick:t[22]||(t[22]=s=>P(K.value))},l(v.value.downloadAll?n[i.lang].copied:n[i.lang].copy),3)])])),E.value?(x(),g("div",Xl,[e("b",null,l(n[i.lang].downloadUPXCommand),1),e("div",Hl,[e("div",Rl,l(J.value),1),e("button",{class:I(["copy-btn",{copied:v.value.downloadPkg}]),onClick:t[23]||(t[23]=s=>P(J.value))},l(v.value.downloadPkg?n[i.lang].copied:n[i.lang].copy),3)])])):W("",!0),e("div",Fl,[e("b",null,l(n[i.lang].doctorCommand),1),e("div",Zl,[e("div",Ql,l(_.value),1),e("button",{class:I(["copy-btn",{copied:v.value.doctor}]),onClick:t[24]||(t[24]=s=>P(_.value))},l(v.value.doctor?n[i.lang].copied:n[i.lang].copy),3)])]),e("div",Kl,[e("b",null,l(n[i.lang].compileCommand),1),e("div",Yl,[e("div",Jl,l(ee.value),1),e("button",{class:I(["copy-btn",{copied:v.value.build}]),onClick:t[25]||(t[25]=s=>P(ee.value))},l(v.value.build?n[i.lang].copied:n[i.lang].copy),3)])]),e("div",_l,[t[34]||(t[34]=e("b",null,"craft.yml",-1)),e("div",en,[e("div",sn,l(ie.value),1),e("button",{class:I(["copy-btn",{copied:v.value.craft}]),onClick:t[26]||(t[26]=s=>P(ie.value))},l(v.value.craft?n[i.lang].copied:n[i.lang].copy),3)])])]))}}),on=ze(ln,[["__scopeId","data-v-16f54071"]]);export{on as C};
|