mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
13 lines
39 KiB
JavaScript
13 lines
39 KiB
JavaScript
import{d as ge,x as w,h as z,z as _,c as g,o as x,j as e,e as C,ag as m,t as n,G as j,H as N,ah as f,ai as F,aj as Y,ak as Z,a as xe,_ as me}from"./framework.PeLcR_tw.js";const he={support:{BSD:"wip"},type:"external","arg-type":"custom",source:"amqp","lib-depends":["librabbitmq"],"ext-depends-windows":["openssl"]},ye={type:"external",source:"apcu"},ve={type:"external",source:"ast"},fe={type:"builtin"},ze={type:"external",source:"ext-brotli","arg-type":"enable","lib-depends":["brotli"]},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"},Pe={support:{Windows:"wip",BSD:"wip",Darwin:"wip",Linux:"wip"},type:"wip"},Ie={type:"external",source:"ev","arg-type-windows":"with","ext-depends":["sockets"]},$e={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-event","arg-type":"custom","lib-depends":["libevent"],"ext-depends":["openssl"],"ext-suggests":["sockets"]},Ue={type:"builtin"},Le={support:{Linux:"partial",BSD:"wip"},notes:!0,"arg-type":"custom",type:"builtin","lib-depends-unix":["libffi"],"lib-depends-windows":["libffi-win"]},je={type:"builtin"},Ne={type:"builtin"},Oe={type:"builtin","lib-suggests":["openssl"]},Ve={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"]},Ae={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-prefix","lib-depends":["gettext"]},Te={support:{Windows:"wip",BSD:"no",Linux:"no"},notes:!0,type:"external","arg-type":"custom",source:"ext-glfw","lib-depends":["glfw"],"lib-depends-windows":[]},_e={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-prefix","lib-depends":["gmp"]},Ge={support:{BSD:"wip"},type:"external",source:"ext-gmssl","lib-depends":["gmssl"]},Xe={support:{Windows:"wip",BSD:"wip"},type:"external",source:"grpc","arg-type-unix":"custom","cpp-extension":!0,"lib-depends":["grpc"]},He={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"]},Re={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-imagick","arg-type":"custom","lib-depends":["imagemagick"]},Fe={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-imap","arg-type":"custom","lib-depends":["imap"],"ext-suggests":["openssl"]},Ze={support:{Windows:"no",BSD:"wip",Darwin:"no"},type:"external",source:"inotify"},Qe={support:{BSD:"wip"},type:"builtin","lib-depends-unix":["icu"],"lib-depends-windows":["icu-static-win"]},Ke={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-prefix","lib-depends":["ldap"],"lib-suggests":["gmp","libsodium"],"ext-suggests":["openssl"]},Ye={support:{BSD:"wip"},type:"builtin","arg-type":"none","ext-depends":["xml"],target:["static"]},Je={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-lz4","arg-type":"custom","lib-depends":["liblz4"]},ei={type:"builtin","arg-type":"custom",target:["static"],"ext-depends":["mbstring"],"lib-depends":["onig"]},ii={type:"builtin","arg-type":"custom"},si={type:"wip",support:{Windows:"no",BSD:"no",Darwin:"no",Linux:"no"},notes:!0},ti={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-memcache","arg-type":"custom","ext-depends":["zlib","session"],"build-with-php":!0},li={support:{Windows:"wip",BSD:"wip"},type:"external",source:"memcached","arg-type":"custom","cpp-extension":!0,"lib-depends":["libmemcached"],"lib-depends-unix":["libmemcached","fastlz"],"ext-depends":["session","zlib"]},ni={support:{BSD:"wip",Windows:"wip"},type:"external",source:"mongodb","arg-type":"custom","lib-suggests":["icu","openssl","zstd","zlib"],frameworks:["CoreFoundation","Security"]},oi={support:{BSD:"wip"},type:"external",source:"msgpack","arg-type-unix":"with","arg-type-win":"enable","ext-depends":["session"]},ai={type:"builtin","arg-type":"with","ext-depends":["mysqlnd"]},di={type:"builtin","arg-type-windows":"with","lib-depends":["zlib"]},ui={type:"wip",support:{Windows:"wip",BSD:"no",Darwin:"no",Linux:"no"},notes:!0},pi={support:{BSD:"wip",Windows:"wip"},type:"builtin","arg-type-unix":"custom","lib-depends-unix":["unixodbc"]},ri={type:"builtin","arg-type-unix":"custom","zend-extension":!0},ci={notes:!0,type:"builtin","arg-type":"custom","arg-type-windows":"with","lib-depends":["openssl","zlib"],"ext-depends":["zlib"]},bi={support:{BSD:"wip"},type:"external",source:"opentelemetry"},wi={support:{BSD:"wip"},notes:!0,type:"external",source:"parallel","arg-type-windows":"with","lib-depends-windows":["pthreads4w"]},gi={support:{Windows:"no"},type:"builtin","unix-only":!0},xi={type:"builtin"},mi={type:"builtin","arg-type":"with","ext-depends":["pdo","mysqlnd"]},hi={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends-unix":["unixodbc"],"ext-depends":["pdo","odbc"]},yi={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"]},vi={support:{BSD:"wip"},type:"builtin","arg-type":"with","ext-depends":["pdo","sqlite3"],"lib-depends":["sqlite"]},fi={support:{BSD:"wip"},type:"external",source:"pdo_sqlsrv","arg-type":"with","ext-depends":["pdo","sqlsrv"]},zi={support:{BSD:"wip"},notes:!0,type:"builtin","arg-type":"custom","lib-depends-unix":["postgresql"],"lib-depends-windows":["postgresql-win"]},Si={type:"builtin","ext-depends":["zlib"]},Di={support:{Windows:"no"},type:"builtin","unix-only":!0},ki={support:{Windows:"wip",BSD:"wip"},type:"external",source:"protobuf"},Bi={support:{BSD:"wip",Darwin:"partial"},notes:!0,type:"external",source:"rar","cpp-extension":!0},qi={support:{BSD:"wip",Windows:"wip"},type:"external",source:"ext-rdkafka","arg-type":"custom","cpp-extension":!0,"lib-depends":["librdkafka"]},Ei={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-prefix","lib-depends":["readline"],target:["static"]},Ci={support:{BSD:"wip"},type:"external",source:"redis","arg-type":"custom","ext-suggests":["session","igbinary"],"lib-suggests-unix":["zstd","liblz4"]},Wi={type:"builtin","build-with-php":!0},Pi={type:"builtin","build-with-php":!0},Ii={type:"external",source:"ext-simdjson","cpp-extension":!0},$i={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml"],"build-with-php":!0},Ui={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-snappy","cpp-extension":!0,"arg-type":"custom","lib-depends":["snappy"],"ext-suggests":["apcu"]},Li={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml"]},ji={type:"builtin"},Ni={support:{BSD:"wip"},type:"builtin","arg-type":"with","lib-depends":["libsodium"]},Oi={support:{BSD:"wip",Windows:"no"},notes:!0,type:"external",source:"spx","arg-type":"custom","lib-depends":["zlib"]},Vi={support:{BSD:"wip"},type:"builtin","arg-type":"with-prefix","arg-type-windows":"with","lib-depends":["sqlite"]},Ai={support:{BSD:"wip"},type:"external",source:"sqlsrv","lib-depends-unix":["unixodbc"],"ext-depends-linux":["pcntl"],"cpp-extension":!0},Ti={support:{BSD:"wip"},type:"external",source:"ext-ssh2","arg-type":"with-prefix","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"],"ext-depends":["openssl","curl"],"ext-suggests":["swoole-hook-pgsql","swoole-hook-mysql","swoole-hook-sqlite"]},Gi={support:{BSD:"wip"},notes:!0,type:"external",source:"swow","arg-type":"custom","lib-suggests":["openssl","curl"],"ext-suggests":["openssl","curl"]},Xi={support:{Windows:"no",BSD:"wip"},type:"builtin","unix-only":!0},Hi={support:{Windows:"no",BSD:"wip"},type:"builtin","unix-only":!0},Mi={support:{BSD:"wip"},type:"builtin"},Ri={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-prefix","lib-depends":["tidy"]},Fi={type:"builtin","build-with-php":!0},Zi={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-uuid","arg-type":"with-prefix","lib-depends":["libuuid"]},Qi={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-uv","arg-type":"with-prefix","lib-depends":["libuv"],"ext-depends":["sockets"]},Ki={type:"external",source:"xdebug",target:["shared"],support:{Windows:"wip",BSD:"no",Darwin:"partial",Linux:"partial"},notes:!0,"zend-extension":!0},Yi={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"xhprof","ext-depends":["ctype"],"build-with-php":!0},Ji={support:{BSD:"wip"},type:"external",source:"xlswriter","arg-type":"custom","ext-depends":["zlib","zip"],"lib-suggests":["openssl"]},es={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},is={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml","dom"],"build-with-php":!0},ss={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml"],"build-with-php":!0},ts={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-prefix","lib-depends":["libxslt"],"ext-depends":["xml","dom"]},ls={type:"external",source:"ext-xz","arg-type":"with","lib-depends":["xz"]},ns={support:{BSD:"wip"},type:"external",source:"yac","arg-type-unix":"custom","lib-depends-unix":["fastlz"],"ext-depends-unix":["igbinary"]},os={support:{BSD:"wip"},type:"external",source:"yaml","arg-type-unix":"with-prefix","arg-type-windows":"with","lib-depends":["libyaml"]},as={support:{BSD:"wip"},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"]},ds={type:"builtin","arg-type":"custom","arg-type-windows":"enable","lib-depends":["zlib"],target:["static"]},us={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-zstd","arg-type":"custom","lib-depends":["zstd"]},ps={amqp:he,apcu:ye,ast:ve,bcmath:fe,brotli:ze,bz2:Se,calendar:De,ctype:ke,curl:Be,dba:qe,dio:Ee,dom:Ce,ds:We,enchant:Pe,ev:Ie,event:$e,exif:Ue,ffi:Le,fileinfo:je,filter:Ne,ftp:Oe,gd:Ve,gettext:Ae,glfw:Te,gmp:_e,gmssl:Ge,grpc:Xe,iconv:He,igbinary:Me,imagick:Re,imap:Fe,inotify:Ze,intl:Qe,ldap:Ke,libxml:Ye,lz4:Je,mbregex:ei,mbstring:ii,mcrypt:si,memcache:ti,memcached:li,mongodb:ni,msgpack:oi,mysqli:ai,mysqlnd:di,oci8:ui,odbc:pi,opcache:ri,openssl:ci,opentelemetry:bi,parallel:wi,"password-argon2":{support:{Windows:"wip",BSD:"wip"},notes:!0,type:"builtin","arg-type":"with-prefix","lib-depends":["libargon2"]},pcntl:gi,pdo:xi,pdo_mysql:mi,pdo_odbc:hi,pdo_pgsql:yi,pdo_sqlite:vi,pdo_sqlsrv:fi,pgsql:zi,phar:Si,posix:Di,protobuf:ki,rar:Bi,rdkafka:qi,readline:Ei,redis:Ci,session:Wi,shmop:Pi,simdjson:Ii,simplexml:$i,snappy:Ui,soap:Li,sockets:ji,sodium:Ni,spx:Oi,sqlite3:Vi,sqlsrv:Ai,ssh2:Ti,swoole:_i,"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:Gi,sysvmsg:Xi,sysvsem:Hi,sysvshm:Mi,tidy:Ri,tokenizer:Fi,uuid:Zi,uv:Qi,xdebug:Ki,xhprof:Yi,xlswriter:Ji,xml:es,xmlreader:is,xmlwriter:ss,xsl:ts,xz:ls,yac:ns,yaml:os,zip:as,zlib:ds,zstd:us},rs={type:"root",source:"php-src","lib-depends":["lib-base","micro"],"lib-suggests-linux":["libacl"]},cs={type:"target",source:"micro"},bs={source:"attr","static-libs-unix":["libattr.a"]},ws={source:"brotli","pkg-configs":["libbrotlicommon","libbrotlidec","libbrotlienc"],"static-libs-windows":["brotlicommon.lib","brotlienc.lib","brotlidec.lib"],headers:["brotli"]},gs={source:"bzip2","static-libs-unix":["libbz2.a"],"static-libs-windows":["libbz2.lib","libbz2_a.lib"],headers:["bzlib.h"]},xs={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"],"lib-suggests-windows":["brotli","zstd"],frameworks:["CoreFoundation","CoreServices","SystemConfiguration"]},ms={source:"fastlz","static-libs-unix":["libfastlz.a"],headers:["fastlz/fastlz.h"]},hs={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"]},ys={source:"gettext","static-libs-unix":["libintl.a"],"lib-depends":["libiconv"],"lib-suggests":["ncurses","libxml2"],frameworks:["CoreFoundation"]},vs={source:"ext-glfw","static-libs-unix":["libglfw3.a"],frameworks:["CoreVideo","OpenGL","Cocoa","IOKit"]},fs={source:"gmp","static-libs-unix":["libgmp.a"],"static-libs-windows":["libgmp.lib"],headers:["gmp.h"]},zs={source:"gmssl","static-libs-unix":["libgmssl.a"],"static-libs-windows":["gmssl.lib"],frameworks:["Security"]},Ss={source:"grpc","static-libs-unix":["libgrpc.a","libcares.a"],"lib-depends":["zlib","openssl"],frameworks:["CoreFoundation"]},Ds={source:"icu","cpp-library":!0,"pkg-configs":["icu-uc","icu-i18n","icu-io"]},ks={source:"imagemagick","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"]},Bs={source:"imap","static-libs-unix":["libc-client.a"],"lib-suggests":["openssl"]},qs={source:"jbig","static-libs-unix":["libjbig.a","libjbig85.a"],headers:["jbig.h","jbig85.h","jbig_ar.h"]},Es={source:"ldap","pkg-configs":["ldap","lber"],"lib-depends":["openssl","zlib","gmp","libsodium"]},Cs={source:"lerc","static-libs-unix":["libLerc.a"],"cpp-library":!0},Ws={source:"libacl","static-libs-unix":["libacl.a"],"lib-depends":["attr"]},Ps={source:"libaom","static-libs-unix":["libaom.a"],"cpp-library":!0},Is={source:"libargon2","static-libs-unix":["libargon2.a"]},$s={source:"libavif","static-libs-unix":["libavif.a"],"static-libs-windows":["avif.lib"]},Us={source:"libcares","static-libs-unix":["libcares.a"],"headers-unix":["ares.h","ares_dns.h","ares_nameser.h"]},Ls={source:"libde265","static-libs-unix":["libde265.a"],"cpp-library":!0},js={source:"libevent","static-libs-unix":["libevent.a","libevent_core.a","libevent_extra.a","libevent_openssl.a"],"lib-depends":["openssl"]},Ns={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"]},Os={source:"libheif","static-libs-unix":["libheif.a"],"lib-depends":["libde265","libwebp","libaom","zlib","brotli"]},Vs={source:"libiconv","static-libs-unix":["libiconv.a","libcharset.a"],headers:["iconv.h","libcharset.h","localcharset.h"]},As={source:"libjpeg","static-libs-unix":["libjpeg.a","libturbojpeg.a"],"static-libs-windows":["libjpeg_a.lib"],"lib-suggests-windows":["zlib"]},Ts={source:"libjxl","pkg-configs":["libjxl","libjxl_cms","libjxl_threads","libhwy"],"lib-depends":["brotli","libjpeg","libpng","libwebp"]},_s={source:"liblz4","static-libs-unix":["liblz4.a"]},Gs={source:"libmemcached","static-libs-unix":["libmemcached.a","libmemcachedprotocol.a","libmemcachedutil.a","libhashkit.a"]},Xs={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"]},Hs={source:"librabbitmq","static-libs-unix":["librabbitmq.a"],"static-libs-windows":["rabbitmq.4.lib"],"lib-depends":["openssl"]},Ms={source:"librdkafka","static-libs-unix":["librdkafka.a","librdkafka++.a","librdkafka-static.a"],"cpp-library":!0,"lib-suggests":["zstd"]},Rs={source:"libsodium","static-libs-unix":["libsodium.a"],"static-libs-windows":["libsodium.lib"]},Fs={source:"libssh2","static-libs-unix":["libssh2.a"],"static-libs-windows":["libssh2.lib"],headers:["libssh2.h","libssh2_publickey.h","libssh2_sftp.h"],"lib-depends":["openssl"]},Zs={source:"libtiff","static-libs-unix":["libtiff.a"],"lib-depends":["zlib","libjpeg"],"lib-suggests-unix":["lerc","libwebp","jbig","xz","zstd"]},Qs={source:"libuuid","static-libs-unix":["libuuid.a"],headers:["uuid/uuid.h"]},Ks={source:"libuv","static-libs-unix":["libuv.a"]},Ys={source:"libwebp","pkg-configs":["libwebp","libwebpdecoder","libwebpdemux","libwebpmux","libsharpyuv"],"static-libs-windows":["libwebp.lib","libwebpdecoder.lib","libwebpdemux.lib","libsharpyuv.lib"]},Js={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"]},et={source:"libxslt","static-libs-unix":["libxslt.a","libexslt.a"],"lib-depends":["libxml2"]},it={source:"libyaml","static-libs-unix":["libyaml.a"],"static-libs-windows":["yaml.lib"],headers:["yaml.h"]},st={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"]},tt={source:"mimalloc","static-libs-unix":["mimalloc.o"]},lt={source:"ncurses","static-libs-unix":["libncurses.a"]},nt={source:"nghttp2","static-libs-unix":["libnghttp2.a"],"static-libs-windows":["nghttp2.lib"],headers:["nghttp2"],"lib-depends":["zlib","openssl"],"lib-suggests":["libxml2","nghttp3","ngtcp2"]},ot={source:"nghttp3","static-libs-unix":["libnghttp3.a"],"static-libs-windows":["nghttp3.lib"],headers:["nghttp3"],"lib-depends":["openssl"]},at={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"]},dt={source:"onig","static-libs-unix":["libonig.a"],"static-libs-windows":["onig.lib","onig_a.lib"],headers:["oniggnu.h","oniguruma.h"]},ut={source:"openssl","static-libs-unix":["libcrypto.a","libssl.a"],"static-libs-windows":["libssl.lib","libcrypto.lib"],headers:["openssl"],"lib-depends":["zlib"]},pt={source:"postgresql","pkg-configs":["libpq"],"lib-depends":["libiconv","libxml2","openssl","zlib","readline"],"lib-suggests":["icu","libxslt","ldap","zstd"]},rt={source:"pthreads4w","static-libs-windows":["libpthreadVC3.lib"]},ct={source:"qdbm","static-libs-unix":["libqdbm.a"],"static-libs-windows":["qdbm_a.lib"],"headers-windows":["depot.h"]},bt={source:"readline","static-libs-unix":["libreadline.a"],"lib-depends":["ncurses"]},wt={source:"snappy","static-libs-unix":["libsnappy.a"],"headers-unix":["snappy.h","snappy-c.h","snappy-sinksource.h","snappy-stubs-public.h"],"lib-depends":["zlib"]},gt={source:"sqlite","static-libs-unix":["libsqlite3.a"],"static-libs-windows":["libsqlite3_a.lib"],headers:["sqlite3.h","sqlite3ext.h"]},xt={source:"tidy","static-libs-unix":["libtidy.a"]},mt={source:"unixodbc","static-libs-unix":["libodbc.a","libodbccr.a","libodbcinst.a"],"lib-depends":["libiconv"]},ht={source:"watcher","static-libs-unix":["libwatcher-c.a"],headers:["wtr/watcher-c.h"]},yt={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"]},ft={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"]},zt={"lib-base":{type:"root","lib-depends-unix":["pkg-config"]},php:rs,micro:cs,"pkg-config":{type:"package",source:"pkg-config","bin-unix":["pkg-config"]},attr:bs,brotli:ws,bzip2:gs,curl:xs,fastlz:ms,freetype:hs,gettext:ys,glfw:vs,gmp:fs,gmssl:zs,grpc:Ss,icu:Ds,"icu-static-win":{source:"icu-static-win","static-libs-windows":["icudt.lib","icuin.lib","icuio.lib","icuuc.lib"],"headers-windows":["unicode"]},imagemagick:ks,imap:Bs,jbig:qs,ldap:Es,lerc:Cs,libacl:Ws,libaom:Ps,libargon2:Is,libavif:$s,libcares:Us,libde265:Ls,libevent:js,libffi:Ns,"libffi-win":{source:"libffi-win","static-libs-windows":["libffi.lib"],"headers-windows":["ffi.h","ffitarget.h","fficonfig.h"]},libheif:Os,libiconv:Vs,"libiconv-win":{source:"libiconv-win","static-libs-windows":["libiconv.lib","libiconv_a.lib"]},libjpeg:As,libjxl:Ts,liblz4:_s,libmemcached:Gs,libpng:Xs,librabbitmq:Hs,librdkafka:Ms,libsodium:Rs,libssh2:Fs,libtiff:Zs,libuuid:Qs,libuv:Ks,libwebp:Ys,libxml2:Js,libxslt:et,libyaml:it,libzip:st,mimalloc:tt,ncurses:lt,nghttp2:nt,nghttp3:ot,ngtcp2:at,onig:dt,openssl:ut,postgresql:pt,"postgresql-win":{source:"postgresql-win","static-libs":["libpq.lib","libpgport.lib","libpgcommon.lib"]},pthreads4w:rt,qdbm:ct,readline:bt,snappy:wt,sqlite:gt,tidy:xt,unixodbc:mt,watcher:ht,xz:yt,zlib:vt,zstd:ft};function U(i,l,u,d){return i.os==="linux"?i[l][u][d+"-linux"]??i[l][u][d+"-unix"]??i[l][u][d]??[]:i.os==="macos"?i[l][u][d+"-macos"]??i[l][u][d+"-unix"]??i[l][u][d]??[]:i.os==="windows"?i[l][u][d+"-windows"]??i[l][u][d]??[]:[]}function J(i,l){return U(i,"ext",l,"ext-depends")}function St(i,l){return U(i,"ext",l,"ext-suggests")}function Dt(i,l){return U(i,"ext",l,"lib-depends")}function kt(i,l){return U(i,"ext",l,"lib-suggests")}function ee(i,l){return U(i,"lib",l,"lib-depends")}function Bt(i,l){return U(i,"lib",l,"lib-suggests")}function qt(i,l){const u=[],d=new Set,h=[];l.forEach(D=>{d.has(D)||Wt(i,D,d,u)});const S=[];return u.forEach(D=>{l.indexOf(D)===-1&&h.push(D),[...Dt(i,D),...kt(i,D)].forEach(o=>{S.indexOf(o)===-1&&S.push(o)})}),{exts:u,libs:Et(i,S),notIncludedExts:h}}function Et(i,l){const u=[],d=new Set;return l.forEach(h=>{d.has(h)||(console.log("before visited"),console.log(d),Ct(i,h,d,u),console.log("after visited"),console.log(d))}),u}function Ct(i,l,u,d){if(u.has(l))return;u.add(l),[...ee(i,l),...Bt(i,l)].forEach(S=>{ie(i,S,u,d)}),d.push(l)}function ie(i,l,u,d){u.has(l)||(u.add(l),ee(i,l).forEach(h=>{ie(i,h,u,d)}),d.push(l))}function se(i,l,u,d){u.has(u)||(u.add(l),J(i,l).forEach(h=>{se(i,h,u,d)}),d.push(l))}function Wt(i,l,u,d){if(u.has(l))return;u.add(l),[...J(i,l),...St(i,l)].forEach(S=>{se(i,S,u,d)}),d.push(l)}const Pt={class:"option-line"},It=["id","value","disabled"],$t=["for"],Ut={class:"option-line"},Lt=["disabled"],jt={class:"box"},Nt={class:"ext-item"},Ot=["id","value","disabled"],Vt=["for"],At={style:{color:"orangered","font-weight":"bolder"}},Tt={class:"details custom-block",open:""},_t={class:"box"},Gt={class:"ext-item"},Xt=["id","value","disabled"],Ht=["for"],Mt={class:"tip custom-block"},Rt={class:"box"},Ft={class:"ext-item"},Zt=["id","value"],Qt=["for"],Kt={key:2,class:"warning custom-block"},Yt={key:3,class:"warning custom-block"},Jt={value:"native"},el={value:"spc"},il={key:0,value:"docker"},sl=["value"],tl={for:"debug-yes"},ll={for:"debug-no"},nl={for:"zts-yes"},ol={for:"zts-no"},al={for:"show-download-yes"},dl={for:"show-download-no"},ul={for:"pre-built-yes"},pl={for:"pre-built-no"},rl={key:0},cl={for:"upx-yes"},bl={for:"upx-no"},wl=["placeholder"],gl={key:4,class:"command-container"},xl={key:0,class:"command-preview"},ml={key:1},hl={class:"warning custom-block"},yl={key:5,class:"command-container"},vl={id:"download-ext-cmd",class:"command-preview"},fl={key:6,class:"command-container"},zl={id:"download-all-cmd",class:"command-preview"},Sl={key:7,class:"command-container"},Dl={id:"download-pkg-cmd",class:"command-preview"},kl={class:"command-container"},Bl={id:"build-cmd",class:"command-preview"},ql={class:"command-container"},El={id:"craft-cmd",class:"command-preview pre"},Cl={name:"CliGenerator"},Wl=ge({...Cl,props:{lang:{type:String,default:"zh"}},setup(i){const l=w(ps),u=z(()=>{const a=[];for(const[s,t]of Object.entries(l.value))D(s,r.value)&&a.push(s);return a}),d=w(zt),h=w([]),S=[{os:"linux",label:"Linux",disabled:!1},{os:"macos",label:"macOS",disabled:!1},{os:"windows",label:"Windows",disabled:!1}],D=(a,s)=>{var b,E;const c=new Map([["linux","Linux"],["macos","Darwin"],["windows","Windows"]]).get(s),p=((E=(b=l.value[a])==null?void 0:b.support)==null?void 0:E[c])??"yes";return p==="yes"||p==="partial"},Q=["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:"选择常用扩展",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 构建!",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",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 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=()=>{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"]},ne=()=>{y.value=u.value},G=z(()=>y.value.join(",")),X=z(()=>{const a=B.value.filter(s=>O.value.indexOf(s)===-1);return a.length>0?' --with-libs="'+a.join(",")+'"':""}),y=w([]),B=w([]),H=w([]),O=w([]),v=w(["cli"]),V=w("spc"),I=w("8.4"),k=w(0),$=w(0),L=w(1),W=w(1),q=w(0),M=w(""),r=w("linux");_(r,()=>{r.value==="windows"&&(A.value="x86_64")});const A=w("x86_64"),T=z(()=>{switch(V.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=z(()=>{const a=M.value.split(`
|
||
`);let s=[];return a.forEach(t=>{t.indexOf("=")>=1&&s.push(t)})," "+s.map(t=>'-I "'+t+'"').join(" ")}),P=w(""),R=(a,s)=>a.includes(P.value)?s===0?a.substring(0,a.indexOf(P.value)):s===1?P.value:a.substring(a.indexOf(P.value)+P.value.length):s===0?a:"",ae=a=>{let s;v.value.indexOf("all")!==-1&&a.target.value==="all"?v.value=["all"]:(s=v.value.indexOf("all"))!==-1&&a.target.value!=="all"&&v.value.splice(s,1),K.value=v.value.map(t=>"--build-"+t).join(" ")},de=a=>{const s=new Set,t=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=>{s.add(b),t(b)})};return a.forEach(c=>{t(c)}),Array.from(s)},ue=z(()=>`${T.value} download --all --with-php=${I.value}${W.value?" --prefer-pre-built":""}${k.value?" --debug":""}`),pe=z(()=>`${T.value} download --with-php=${I.value} --for-extensions "${G.value}"${W.value?" --prefer-pre-built":""}${k.value?" --debug":""}`),re=z(()=>`${T.value} install-pkg upx${k.value?" --debug":""}`),ce=z(()=>`${T.value} build ${K.value} "${G.value}"${X.value}${k.value?" --debug":""}${$.value?" --enable-zts":""}${q.value?" --with-upx-pack":""}${oe.value}`),be=z(()=>{let a=`php-version: ${I.value}
|
||
`;return a+=`extensions: "${G.value}"
|
||
`,v.value.join(",")==="all"?a+="sapi: "+["cli","fpm","micro","embed"].join(",")+`
|
||
`:a+=`sapi: ${v.value.join(",")}
|
||
`,X.value&&(a+=`libs: ${X.value.replace('--with-libs="',"").replace('"',"").trim()}
|
||
`),k.value&&(a+=`debug: true
|
||
`),a+="{{position_hold}}",q.value&&(a+=` with-upx-pack: true
|
||
`),$.value&&(a+=` enable-zts: true
|
||
`),W.value&&(a+=` prefer-pre-built: true
|
||
`),a.endsWith("{{position_hold}}")?a=a.replace("{{position_hold}}",""):a=a.replace("{{position_hold}}",`build-options:
|
||
`),a}),we=a=>{const s=new Set,t=p=>{let b=[];if(r.value==="linux"){if(b=d.value[p]["lib-depends-linux"]??d.value[p]["lib-depends-unix"]??d.value[p]["lib-depends"]??[],b.length===0)return}else if(r.value==="macos"){if(b=d.value[p]["lib-depends-macos"]??d.value[p]["lib-depends-unix"]??d.value[p]["lib-depends"]??[],b.length===0)return}else if(r.value==="windows"&&(b=d.value[p]["lib-depends-windows"]??d.value[p]["lib-depends"]??[],b.length===0))return;b.forEach(E=>{s.add(E),t(E)})},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(E=>{s.add(E),t(E)})};return a.forEach(p=>{c(p)}),Array.from(s)};return _(r,()=>y.value=[]),_(r,()=>q.value=0),_(y,a=>{H.value=de(a),H.value.forEach(t=>{y.value.indexOf(t)===-1&&y.value.push(t)}),y.value.sort(),console.log("检测到变化!"),console.log(a);const s=qt({ext:l.value,lib:d.value,os:r.value},y.value);h.value=s.libs.sort(),B.value=[],O.value=we(s.exts),O.value.forEach(t=>{B.value.indexOf(t)===-1&&B.value.push(t)})}),(a,s)=>(x(),g("div",null,[e("h2",null,n(o[i.lang].selectedSystem),1),e("div",Pt,[(x(),g(j,null,N(S,(t,c)=>e("span",{key:c,style:{"margin-right":"8px"}},[m(e("input",{type:"radio",id:"os-"+t.os,value:t.os,disabled:t.disabled===!0,"onUpdate:modelValue":s[0]||(s[0]=p=>r.value=p)},null,8,It),[[f,r.value]]),e("label",{for:"os-"+t.os},n(t.label),9,$t)])),64))]),e("div",Ut,[m(e("select",{"onUpdate:modelValue":s[1]||(s[1]=t=>A.value=t)},[s[20]||(s[20]=e("option",{value:"x86_64"},"x86_64",-1)),e("option",{value:"aarch64",disabled:r.value==="windows"},"aarch64",8,Lt)],512),[[F,A.value]])]),e("h2",null,n(o[i.lang].selectExt)+n(y.value.length>0?" ("+y.value.length+")":""),1),e("div",jt,[m(e("input",{class:"input","onUpdate:modelValue":s[2]||(s[2]=t=>P.value=t),placeholder:"Highlight search..."},null,512),[[Y,P.value]]),s[21]||(s[21]=e("br",null,null,-1)),(x(!0),g(j,null,N(u.value,t=>(x(),g("div",Nt,[e("span",null,[m(e("input",{type:"checkbox",id:t,value:t,"onUpdate:modelValue":s[3]||(s[3]=c=>y.value=c),disabled:H.value.indexOf(t)!==-1},null,8,Ot),[[Z,y.value]]),e("label",{for:t},[e("span",null,n(R(t,0)),1),e("span",At,n(R(t,1)),1),e("span",null,n(R(t,2)),1)],8,Vt)])]))),256))]),r.value!=="windows"?(x(),g("div",{key:0,class:"my-btn",onClick:le},n(o[i.lang].selectCommon),1)):C("",!0),r.value!=="windows"?(x(),g("div",{key:1,class:"my-btn",onClick:ne},n(o[i.lang].selectAll),1)):C("",!0),e("div",{class:"my-btn",onClick:s[4]||(s[4]=t=>y.value=[])},n(o[i.lang].selectNone),1),e("details",Tt,[e("summary",null,n(o[i.lang].buildLibs)+n(B.value.length>0?" ("+B.value.length+")":""),1),e("div",_t,[(x(!0),g(j,null,N(h.value,(t,c)=>(x(),g("div",Gt,[m(e("input",{type:"checkbox",id:c,value:t,"onUpdate:modelValue":s[5]||(s[5]=p=>B.value=p),disabled:O.value.indexOf(t)!==-1},null,8,Xt),[[Z,B.value]]),e("label",{for:c},n(t),9,Ht)]))),256))])]),e("div",Mt,[s[22]||(s[22]=e("p",{class:"custom-block-title"},"TIP",-1)),e("p",null,n(o[i.lang].depTips),1),e("p",null,n(o[i.lang].depTips2),1)]),e("h2",null,n(o[i.lang].buildTarget),1),e("div",Rt,[(x(),g(j,null,N(te,t=>e("div",Ft,[m(e("input",{type:"checkbox",id:"build_"+t,value:t,"onUpdate:modelValue":s[6]||(s[6]=c=>v.value=c),onChange:ae},null,40,Zt),[[Z,v.value]]),e("label",{for:"build_"+t},n(t),9,Qt)])),64))]),I.value==="7.4"&&(v.value.indexOf("micro")!==-1||v.value.indexOf("all")!==-1)?(x(),g("div",Kt,[s[23]||(s[23]=e("p",{class:"custom-block-title"},"WARNING",-1)),e("p",null,n(o[i.lang].microUnavailable),1)])):C("",!0),r.value==="windows"&&(v.value.indexOf("fpm")!==-1||v.value.indexOf("embed")!==-1)?(x(),g("div",Yt,[s[24]||(s[24]=e("p",{class:"custom-block-title"},"WARNING",-1)),e("p",null,n(o[i.lang].windowsSAPIUnavailable),1)])):C("",!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":s[7]||(s[7]=t=>V.value=t)},[e("option",Jt,n(o[i.lang].buildEnvNative),1),e("option",el,n(o[i.lang].buildEnvSpc),1),r.value!=="windows"?(x(),g("option",il,n(o[i.lang].buildEnvDocker),1)):C("",!0)],512),[[F,V.value]])])]),e("tr",null,[e("td",null,n(o[i.lang].downloadPhpVersion),1),e("td",null,[m(e("select",{"onUpdate:modelValue":s[8]||(s[8]=t=>I.value=t)},[(x(),g(j,null,N(Q,t=>e("option",{value:t},n(t),9,sl)),64))],512),[[F,I.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":s[9]||(s[9]=t=>k.value=t)},null,512),[[f,k.value]]),e("label",tl,n(o[i.lang].yes),1),m(e("input",{type:"radio",id:"debug-no",value:0,"onUpdate:modelValue":s[10]||(s[10]=t=>k.value=t)},null,512),[[f,k.value]]),e("label",ll,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":s[11]||(s[11]=t=>$.value=t)},null,512),[[f,$.value]]),e("label",nl,n(o[i.lang].yes),1),m(e("input",{type:"radio",id:"zts-no",value:0,"onUpdate:modelValue":s[12]||(s[12]=t=>$.value=t)},null,512),[[f,$.value]]),e("label",ol,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":s[13]||(s[13]=t=>L.value=t)},null,512),[[f,L.value]]),e("label",al,n(o[i.lang].yes),1),m(e("input",{type:"radio",id:"show-download-no",value:0,"onUpdate:modelValue":s[14]||(s[14]=t=>L.value=t)},null,512),[[f,L.value]]),e("label",dl,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":s[15]||(s[15]=t=>W.value=t)},null,512),[[f,W.value]]),e("label",ul,n(o[i.lang].yes),1),m(e("input",{type:"radio",id:"pre-built-no",value:0,"onUpdate:modelValue":s[16]||(s[16]=t=>W.value=t)},null,512),[[f,W.value]]),e("label",pl,n(o[i.lang].no),1)])]),r.value!=="macos"?(x(),g("tr",rl,[e("td",null,n(o[i.lang].useUPX),1),e("td",null,[m(e("input",{type:"radio",id:"upx-yes",value:1,"onUpdate:modelValue":s[17]||(s[17]=t=>q.value=t)},null,512),[[f,q.value]]),e("label",cl,n(o[i.lang].yes),1),m(e("input",{type:"radio",id:"upx-no",value:0,"onUpdate:modelValue":s[18]||(s[18]=t=>q.value=t)},null,512),[[f,q.value]]),e("label",bl,n(o[i.lang].no),1)])])):C("",!0)]),e("h2",null,n(o[i.lang].hardcodedINI),1),m(e("textarea",{class:"textarea",placeholder:o[i.lang].hardcodedINIPlacehoder,"onUpdate:modelValue":s[19]||(s[19]=t=>M.value=t),rows:"5"},null,8,wl),[[Y,M.value]]),e("h2",null,n(o[i.lang].resultShow),1),V.value==="spc"?(x(),g("div",gl,[e("b",null,n(o[i.lang].downloadSPCBinaryCommand),1),r.value!=="windows"?(x(),g("div",xl,[xe(" curl -fsSL -o spc.tgz https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-"+n(r.value)+"-"+n(A.value)+".tar.gz && tar -zxvf spc.tgz && rm spc.tgz",1),s[25]||(s[25]=e("br",null,null,-1))])):(x(),g("div",ml,[e("div",hl,[s[26]||(s[26]=e("p",{class:"custom-block-title"},"WARNING",-1)),e("p",null,n(o[i.lang].windowsDownSPCWarning),1),s[27]||(s[27]=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))])]))])):C("",!0),L.value?(x(),g("div",yl,[e("b",null,n(o[i.lang].downloadExtOnlyCommand),1),e("div",vl,n(pe.value),1)])):(x(),g("div",fl,[e("b",null,n(o[i.lang].downloadAllCommand),1),e("div",zl,n(ue.value),1)])),q.value?(x(),g("div",Sl,[e("b",null,n(o[i.lang].downloadUPXCommand),1),e("div",Dl,n(re.value),1)])):C("",!0),e("div",kl,[e("b",null,n(o[i.lang].compileCommand),1),e("div",Bl,n(ce.value),1)]),e("div",ql,[s[28]||(s[28]=e("b",null,"craft.yml",-1)),e("div",El,n(be.value),1)])]))}}),Il=me(Wl,[["__scopeId","data-v-520722c6"]]);export{Il as C};
|