code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #include "hitls_build.h" #include "securec.h" #include "tls_binlog_id.h" #include "bsl_log_internal.h" #include "bsl_log.h" #include "bsl_err_internal.h" #include "hitls_error.h" #include "hitls.h" #include "rec.h" #include "tls.h" #include "hs.h" #include "hs_ctx.h" #include "hs_common.h" #include "parse.h" #include "hs_state_recv.h" #include "hs_state_send.h" #include "bsl_errno.h" #include "bsl_uio.h" #include "uio_base.h" #ifdef HITLS_TLS_FEATURE_INDICATOR #include "indicator.h" #endif /* HITLS_TLS_FEATURE_INDICATOR */ #include "transcript_hash.h" #include "recv_process.h" #include "hs_dtls_timer.h" static int32_t HandshakeDone(TLS_Ctx *ctx) { (void)ctx; int32_t ret = HITLS_SUCCESS; #ifdef HITLS_TLS_FEATURE_FLIGHT /* If isFlightTransmitEnable is enabled, the server CCS and Finish information stored in the bUio must be sent after * the handshake is complete */ if (ctx->config.tlsConfig.isFlightTransmitEnable) { ret = BSL_UIO_Ctrl(ctx->uio, BSL_UIO_FLUSH, 0, NULL); if (ret == BSL_UIO_IO_BUSY) { return HITLS_REC_NORMAL_IO_BUSY; } if (ret != BSL_SUCCESS) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_IO_EXCEPTION); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID16109, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "fail to send the CCS and Finish message of server in bUio.", 0, 0, 0, 0); return HITLS_REC_ERR_IO_EXCEPTION; } } #endif /* HITLS_TLS_FEATURE_FLIGHT */ #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_SCTP) if (!BSL_UIO_GetUioChainTransportType(ctx->uio, BSL_UIO_SCTP)) { return HITLS_SUCCESS; } bool isBuffEmpty = false; ret = BSL_UIO_Ctrl(ctx->uio, BSL_UIO_SCTP_SND_BUFF_IS_EMPTY, sizeof(isBuffEmpty), &isBuffEmpty); if (ret != BSL_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17188, BSL_LOG_LEVEL_FATAL, BSL_LOG_BINLOG_TYPE_RUN, "SCTP_SND_BUFF_IS_EMPTY fail, ret %d", ret, 0, 0, 0); return HITLS_UIO_SCTP_IS_SND_BUF_EMPTY_FAIL; } if (isBuffEmpty != true) { return HITLS_REC_NORMAL_IO_BUSY; } // This branch is entered only when the hello request is just sent. if (!ctx->negotiatedInfo.isRenegotiation && ctx->userRenego) { return HITLS_SUCCESS; } ret = HS_ActiveSctpAuthKey(ctx); if (ret != HITLS_SUCCESS) { return ret; } ret = HS_DeletePreviousSctpAuthKey(ctx); #endif /* HITLS_TLS_PROTO_DTLS12 && HITLS_BSL_UIO_SCTP */ return ret; } bool IsHsSendState(HITLS_HandshakeState state) { switch (state) { case TRY_SEND_HELLO_REQUEST: case TRY_SEND_CLIENT_HELLO: case TRY_SEND_HELLO_RETRY_REQUEST: case TRY_SEND_SERVER_HELLO: case TRY_SEND_HELLO_VERIFY_REQUEST: case TRY_SEND_ENCRYPTED_EXTENSIONS: case TRY_SEND_CERTIFICATE: case TRY_SEND_SERVER_KEY_EXCHANGE: case TRY_SEND_CERTIFICATE_REQUEST: case TRY_SEND_SERVER_HELLO_DONE: case TRY_SEND_CLIENT_KEY_EXCHANGE: case TRY_SEND_CERTIFICATE_VERIFY: case TRY_SEND_NEW_SESSION_TICKET: case TRY_SEND_CHANGE_CIPHER_SPEC: case TRY_SEND_END_OF_EARLY_DATA: case TRY_SEND_FINISH: case TRY_SEND_KEY_UPDATE: return true; default: break; } return false; } static bool IsHsRecvState(HITLS_HandshakeState state) { switch (state) { case TRY_RECV_CLIENT_HELLO: case TRY_RECV_SERVER_HELLO: case TRY_RECV_HELLO_VERIFY_REQUEST: case TRY_RECV_ENCRYPTED_EXTENSIONS: case TRY_RECV_CERTIFICATE: case TRY_RECV_SERVER_KEY_EXCHANGE: case TRY_RECV_CERTIFICATE_REQUEST: case TRY_RECV_SERVER_HELLO_DONE: case TRY_RECV_CLIENT_KEY_EXCHANGE: case TRY_RECV_CERTIFICATE_VERIFY: case TRY_RECV_NEW_SESSION_TICKET: case TRY_RECV_END_OF_EARLY_DATA: case TRY_RECV_FINISH: case TRY_RECV_KEY_UPDATE: case TRY_RECV_HELLO_REQUEST: return true; default: break; } return false; } int32_t HS_DoHandshake(TLS_Ctx *ctx) { int32_t ret = HITLS_SUCCESS; HS_Ctx *hsCtx = ctx->hsCtx; #ifdef HITLS_TLS_FEATURE_INDICATOR int32_t eventType = (ctx->isClient) ? INDICATE_EVENT_STATE_CONNECT_EXIT : INDICATE_EVENT_STATE_ACCEPT_EXIT; #endif /* HITLS_TLS_FEATURE_INDICATOR */ while (hsCtx->state != TLS_CONNECTED) { if (IsHsSendState(hsCtx->state)) { ret = HS_SendMsgProcess(ctx); } else if (IsHsRecvState(hsCtx->state)) { ret = HS_RecvMsgProcess(ctx); } else { BSL_ERR_PUSH_ERROR(HITLS_MSG_HANDLE_STATE_ILLEGAL); BSL_LOG_BINLOG_VARLEN(BINLOG_ID15884, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Handshake state unable to process, current state is %s.", HS_GetStateStr(hsCtx->state)); ret = HITLS_MSG_HANDLE_STATE_ILLEGAL; } if (ret != HITLS_SUCCESS) { #ifdef HITLS_TLS_FEATURE_INDICATOR INDICATOR_StatusIndicate(ctx, eventType, ret); #endif /* HITLS_TLS_FEATURE_INDICATOR */ return ret; } } #ifdef HITLS_TLS_FEATURE_INDICATOR INDICATOR_StatusIndicate(ctx, INDICATE_EVENT_HANDSHAKE_DONE, INDICATE_VALUE_SUCCESS); #endif /* HITLS_TLS_FEATURE_INDICATOR */ ret = HandshakeDone(ctx); if (ret != HITLS_SUCCESS) { #ifdef HITLS_TLS_FEATURE_INDICATOR INDICATOR_StatusIndicate(ctx, eventType, ret); #endif /* HITLS_TLS_FEATURE_INDICATOR */ return ret; } #ifdef HITLS_TLS_FEATURE_INDICATOR INDICATOR_StatusIndicate(ctx, eventType, INDICATE_VALUE_SUCCESS); #endif /* HITLS_TLS_FEATURE_INDICATOR */ return HITLS_SUCCESS; } #ifdef HITLS_TLS_FEATURE_KEY_UPDATE int32_t HS_CheckKeyUpdateState(TLS_Ctx *ctx, uint32_t updateType) { if (ctx->negotiatedInfo.version != HITLS_VERSION_TLS13) { return HITLS_MSG_HANDLE_UNSUPPORT_VERSION; } if (ctx->state != CM_STATE_TRANSPORTING) { return HITLS_MSG_HANDLE_STATE_ILLEGAL; } if (updateType != HITLS_UPDATE_REQUESTED && updateType != HITLS_UPDATE_NOT_REQUESTED) { return HITLS_MSG_HANDLE_ILLEGAL_KEY_UPDATE_TYPE; } return HITLS_SUCCESS; } #endif /* HITLS_TLS_FEATURE_KEY_UPDATE */ #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) int32_t HS_CheckAndProcess2MslTimeout(TLS_Ctx *ctx) { /* In non-UDP scenarios, the 2MSL timer timeout does not need to be checked */ if ((ctx->hsCtx == NULL) || !BSL_UIO_GetUioChainTransportType(ctx->uio, BSL_UIO_UDP)) { return HITLS_SUCCESS; } bool isTimeout = false; int32_t ret = HS_IsTimeout(ctx, &isTimeout); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17189, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "HS_IsTimeout fail", 0, 0, 0, 0); return ret; } /* If the retransmission queue times out, the retransmission queue is cleared and the hsCtx memory is released */ if (isTimeout) { REC_RetransmitListClean(ctx->recCtx); HS_DeInit(ctx); } return HITLS_SUCCESS; } #endif /* HITLS_TLS_PROTO_DTLS12 && HITLS_BSL_UIO_UDP */ #ifdef HITLS_TLS_FEATURE_PHA int32_t HS_CheckPostHandshakeAuth(TLS_Ctx *ctx) { int32_t ret = HS_Init(ctx); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17190, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "CONN_Init fail", 0, 0, 0, 0); return ret; } HS_ChangeState(ctx, TRY_SEND_CERTIFICATE_REQUEST); SAL_CRYPT_DigestFree(ctx->hsCtx->verifyCtx->hashCtx); ctx->hsCtx->verifyCtx->hashCtx = SAL_CRYPT_DigestCopy(ctx->phaHash); if (ctx->hsCtx->verifyCtx->hashCtx == NULL) { BSL_ERR_PUSH_ERROR(HITLS_CRYPT_ERR_DIGEST); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID16179, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "pha hash copy error: digest copy fail.", 0, 0, 0, 0); return HITLS_CRYPT_ERR_DIGEST; } return HITLS_SUCCESS; } #endif /* HITLS_TLS_FEATURE_PHA */
2301_79861745/bench_create
tls/handshake/sm/src/hs_sm.c
C
unknown
8,586
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef ALPN_H #define ALPN_H #include <stdint.h> #include "hitls_build.h" #include "tls.h" #ifdef __cplusplus extern "C" { #endif int32_t ALPN_SelectProtocol(uint8_t **out, uint32_t *outLen, uint8_t *clientAlpnList, uint32_t clientAlpnListLen, uint8_t *servAlpnList, uint32_t servAlpnListLen); int32_t ClientCheckNegotiatedAlpn( TLS_Ctx *ctx, bool haveSelectedAlpn, uint8_t *alpnSelected, uint16_t alpnSelectedSize); #ifdef __cplusplus } #endif #endif // ALPN_H
2301_79861745/bench_create
tls/include/alpn.h
C
unknown
1,019
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef CIPHER_SUITE_H #define CIPHER_SUITE_H #include <stdint.h> #include <stdbool.h> #include "hitls_build.h" #include "hitls_config.h" #include "hitls_crypt_type.h" #include "hitls_cert_type.h" #include "hitls_type.h" #ifdef __cplusplus extern "C" { #endif #define TLS_EMPTY_RENEGOTIATION_INFO_SCSV 0x00ffu /* renegotiation cipher suite */ #define TLS_FALLBACK_SCSV 0x5600u /* downgraded protocol cipher suite */ /* cert request Type of the certificate requested */ typedef enum { /* rfc5246 7.4.4 */ CERT_TYPE_RSA_SIGN = 1, CERT_TYPE_DSS_SIGN = 2, CERT_TYPE_RSA_FIXED_DH = 3, CERT_TYPE_DSS_FIXED_DH = 4, /* rfc8422 5.5 */ CERT_TYPE_ECDSA_SIGN = 64, CERT_TYPE_UNKNOWN = 255 } CERT_Type; /** * CipherSuiteInfo structure, used to transfer public cipher suite information. */ typedef struct TlsCipherSuiteInfo { bool enable; /**< Enable flag */ const char *name; /**< Cipher suite name */ const char *stdName; /**< RFC name of the cipher suite */ uint16_t cipherSuite; /**< cipher suite */ /* algorithm type */ HITLS_CipherAlgo cipherAlg; /**< Symmetric-key algorithm */ HITLS_KeyExchAlgo kxAlg; /**< key exchange algorithm */ HITLS_AuthAlgo authAlg; /**< server authorization algorithm */ HITLS_MacAlgo macAlg; /**< mac algorithm */ HITLS_HashAlgo hashAlg; /**< hash algorithm */ /** * Signature combination, including the hash algorithm and signature algorithm: * TLS 1.2 negotiates the signScheme. */ HITLS_SignHashAlgo signScheme; /* key length */ uint8_t fixedIvLength; /**< If the AEAD algorithm is used, the value is the implicit IV length */ uint8_t encKeyLen; /**< Length of the symmetric key */ uint8_t macKeyLen; /**< If the AEAD algorithm is used, the MAC key length is 0 */ /* result length */ uint8_t blockLength; /**< If the block length is not zero, the alignment should be handled */ uint8_t recordIvLength; /**< The explicit IV needs to be sent to the peer end */ uint8_t macLen; /**< The length of the MAC address. If the AEAD algorithm is used, this member variable * will be the length of the tag */ uint16_t minVersion; /**< Minimum version supported by the cipher suite */ uint16_t maxVersion; /**< Maximum version supported by the cipher suite */ uint16_t minDtlsVersion; /**< Minimum DTLS version supported by the cipher suite */ uint16_t maxDtlsVersion; /**< Maximum DTLS version supported by the cipher suite */ HITLS_CipherType cipherType; /**< Encryption algorithm type */ int32_t strengthBits; /**< Encryption algorithm strength */ } CipherSuiteInfo; /** * SignSchemeInfo structure, used to transfer the signature algorithm information. */ typedef struct { HITLS_SignHashAlgo scheme; /**< Signature hash algorithm */ HITLS_SignAlgo signAlg; /**< Signature algorithm */ HITLS_HashAlgo hashAlg; /**< hash algorithm */ } SignSchemeInfo; typedef struct { HITLS_SignHashAlgo scheme; /**< signature algorithm */ HITLS_NamedGroup cureName; /**< public key curve name (ECDSA only) */ } EcdsaCurveInfo; /** * Mapping between cipher suites and certificate types */ typedef struct { uint16_t cipherSuite; /**< cipher suite */ CERT_Type certType; /**< Certificate type */ } CipherSuiteCertType; /** * @brief Obtain the cipher suite information. * * @param cipherSuite [IN] Cipher suite of the information to be obtained * @param cipherInfo [OUT] Cipher suite information * * @retval HITLS_SUCCESS obtained successfully. * @retval HITLS_INTERNAL_EXCEPTION An unexpected internal error. * @retval HITLS_MEMCPY_FAIL memcpy_s failed to be executed. * @retval HITLS_CONFIG_UNSUPPORT_CIPHER_SUITE No information about the cipher suite is found. */ int32_t CFG_GetCipherSuiteInfo(uint16_t cipherSuite, CipherSuiteInfo *cipherInfo); /** * @brief Check whether the input cipher suite is supported. * * @param cipherSuite [IN] cipher suite to be checked * * @retval true Supported * @retval false Not supported */ bool CFG_CheckCipherSuiteSupported(uint16_t cipherSuite); /** * @brief Check whether the input cipher suite complies with the version. * * @param cipherSuite [IN] cipher suite to be checked * @param minVersion [IN] Indicates the earliest version of the cipher suite. * @param maxVersion [IN] Indicates the latest version of the cipher suite. * * @retval true Supported * @retval false Not supported */ bool CFG_CheckCipherSuiteVersion(uint16_t cipherSuite, uint16_t minVersion, uint16_t maxVersion); /** * @brief Obtain the signature algorithm and hash algorithm by combining the parameters of * the signature hash algorithm. * @param ctx [IN] TLS context * @param scheme [IN] Signature and hash algorithm combination * @param signAlg [OUT] Signature algorithm * @param hashAlg [OUT] Hash algorithm * * @retval true Obtained successfully. * @retval false Obtaining failed. */ bool CFG_GetSignParamBySchemes(const HITLS_Ctx *ctx, HITLS_SignHashAlgo scheme, HITLS_SignAlgo *signAlg, HITLS_HashAlgo *hashAlg); /** * @brief Obtain the certificate type based on the cipher suite. * * @param cipherSuite [IN] Cipher suite * * @retval Certificate type corresponding to the cipher suite */ uint8_t CFG_GetCertTypeByCipherSuite(uint16_t cipherSuite); /** * @brief get the group name of the ecdsa * * @param scheme [IN] signature algorithm * * @retval group name */ HITLS_NamedGroup CFG_GetEcdsaCurveNameBySchemes(const HITLS_Ctx *ctx, HITLS_SignHashAlgo scheme); #ifdef __cplusplus } #endif #endif // CIPHER_SUITE_H
2301_79861745/bench_create
tls/include/cipher_suite.h
C
unknown
6,459
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef CUSTOM_EXTENSIONS_H #define CUSTOM_EXTENSIONS_H #include "hitls_build.h" #include "hitls.h" #include "hitls_custom_extensions.h" #include "tls.h" #define MAX_LIMIT_CUSTOM_EXT 20 // Define CustomExtMethod structure typedef struct { uint16_t extType; uint32_t context; HITLS_AddCustomExtCallback addCb; HITLS_FreeCustomExtCallback freeCb; void *addArg; HITLS_ParseCustomExtCallback parseCb; void *parseArg; } CustomExtMethod; // Define CustomExtMethods structure typedef struct CustomExtMethods { CustomExtMethod *meths; uint32_t methsCount; } CustomExtMethods; /** * @brief Determines if packing custom extensions is needed for a given context. * * This function checks whether there are any custom extensions that need to be packed * based on the provided context. It iterates through the list of custom extension methods * and evaluates if any of them match the specified context. * * @param exts [IN] Pointer to the CustomExtMethods structure containing extension methods * @param context [IN] The context to check against the custom extensions * @retval true if there are custom extensions that need to be packed for the given context * @retval false otherwise */ bool IsPackNeedCustomExtensions(CustomExtMethods *exts, uint32_t context); /** * @brief Determines if parsing custom extensions is needed for a given extension type and context. * * This function checks whether there are any custom extensions that need to be parsed * based on the provided extension type and context. It iterates through the list of custom * extension methods and evaluates if any of them match the specified extension type and context. * * @param exts [IN] Pointer to the CustomExtMethods structure containing extension methods * @param extType [IN] The extension type to check against the custom extensions * @param context [IN] The context to check against the custom extensions * @retval true if there are custom extensions that need to be parsed for the given extension type and context * @retval false otherwise */ bool IsParseNeedCustomExtensions(CustomExtMethods *exts, uint16_t extType, uint32_t context); /** * @brief Packs custom extensions into the provided buffer for a given context. * * This function iterates through the list of custom extension methods associated with the TLS context * and packs the relevant custom extensions into the provided buffer. It checks each extension method * to determine if it should be included based on the specified context. If an extension is applicable, * it uses the associated add callback to pack the extension data into the buffer. * * @param ctx [IN] Pointer to the TLS context containing custom extension methods * @param pkt [IN/OUT] Context for packing * @param context [IN] The context to check against the custom extensions * @param cert [IN] Pointer to the HITLS_CERT_X509 structure representing certificate information * @param certIndex [IN] Certificate index indicating its position in the certificate chain * @retval HITLS_SUCCESS if the custom extensions are successfully packed * @retval An error code if packing fails, see hitls_error.h for details */ int32_t PackCustomExtensions(const struct TlsCtx *ctx, PackPacket *pkt, uint32_t context, HITLS_CERT_X509 *cert, uint32_t certIndex); /** * @brief Frees the custom extension methods in the HITLS configuration. * * This function frees the custom extension methods in the HITLS configuration. * * @param exts [IN] Pointer to the CustomExtMethods structure containing extension methods */ void FreeCustomExtensions(CustomExtMethods *exts); /** * @brief Duplicates the custom extension methods in the HITLS configuration. * * This function duplicates the custom extension methods in the HITLS configuration. * * @param exts [IN] Pointer to the CustomExtMethods structure containing extension methods * @retval Pointer to the duplicated CustomExtMethods structure */ CustomExtMethods *DupCustomExtensions(CustomExtMethods *exts); /** * @brief Parses custom extensions from the provided buffer for a given extension type and context. * * This function iterates through the list of custom extension methods associated with the TLS context * and parses the relevant custom extensions from the provided buffer. It checks each extension method * to determine if it should be parsed based on the specified extension type and context. If an extension * is applicable, it uses the associated parse callback to interpret the extension data. * * @param ctx [IN] Pointer to the TLS context containing custom extension methods * @param buf [IN] Buffer containing the custom extensions to be parsed * @param extType [IN] The extension type to check against the custom extensions * @param extLen [IN] Length of the extension data in the buffer * @param context [IN] The context to check against the custom extensions * @param cert [IN] Pointer to the HITLS_CERT_X509 structure representing certificate information * @param certIndex [IN] Certificate index indicating its position in the certificate chain * @retval HITLS_SUCCESS if the custom extensions are successfully parsed * @retval An error code if parsing fails, see hitls_error.h for details */ int32_t ParseCustomExtensions(const struct TlsCtx *ctx, const uint8_t *buf, uint16_t extType, uint32_t extLen, uint32_t context, HITLS_CERT_X509 *cert, uint32_t certIndex); #endif // CUSTOM_EXTENSIONS_H
2301_79861745/bench_create
tls/include/custom_extensions.h
C
unknown
6,119
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ /** * @defgroup hitls_cert_reg * @ingroup hitls * @brief Certificate related interfaces to be registered */ #ifndef HITLS_CERT_REG_H #define HITLS_CERT_REG_H #include <stdint.h> #include "hitls_crypt_type.h" #include "hitls_cert_type.h" #include "hitls_type.h" #ifdef __cplusplus extern "C" { #endif /** * @ingroup hitls_cert_reg * @brief Create a certificate store * * @param void * * @retval Certificate store */ typedef HITLS_CERT_Store *(*CERT_StoreNewCallBack)(void); /** * @ingroup hitls_cert_reg * @brief Duplicate the certificate store. * * @param store [IN] Certificate store. * * @retval New certificate store. */ typedef HITLS_CERT_Store *(*CERT_StoreDupCallBack)(HITLS_CERT_Store *store); /** * @ingroup hitls_cert_reg * @brief Release the certificate store. * * @param store [IN] Certificate store. * * @retval void */ typedef void (*CERT_StoreFreeCallBack)(HITLS_CERT_Store *store); /** * @ingroup hitls_cert_reg * @brief ctrl interface * * @param config [IN] TLS link configuration. * @param store [IN] Certificate store. * @param cmd [IN] Ctrl option. * @param input [IN] Input. * @param output [IN] Output. * * @retval HITLS_SUCCESS indicates success. Other values are considered as failure. */ typedef int32_t (*CERT_StoreCtrlCallBack)(HITLS_Config *config, HITLS_CERT_Store *store, HITLS_CERT_CtrlCmd cmd, void *input, void *output); /** * @ingroup hitls_cert_reg * @brief Create a certificate chain based on the device certificate in use. * * @attention If the function is successful, the certificate in the certificate chain is managed by the HiTLS, * and the user does not need to release the memory. Otherwise, the certificate chain is an empty pointer * array. * @param config [IN] TLS link configuration * @param store [IN] Certificate store * @param cert [IN] Device certificate * @param certList [OUT] Certificate chain, which is a pointer array. Each element indicates a certificate. * The first element is the device certificate. * @param num [IN/OUT] IN: maximum length of the certificate chain OUT: length of the certificate chain * * @retval HITLS_SUCCESS indicates success. Other values are considered as failure. */ typedef int32_t (*CERT_BuildCertChainCallBack)(HITLS_Config *config, HITLS_CERT_Store *store, HITLS_CERT_X509 *cert, HITLS_CERT_X509 **certList, uint32_t *num); /** * @ingroup hitls_cert_reg * @brief Verify the certificate chain * * @param ctx [IN] TLS link object * @param store [IN] Certificate store. * @param certList [IN] Certificate chain, a pointer array, each element indicates a certificate. * The first element indicates the device certificate. * @param num [IN] Certificate chain length. * * @retval HITLS_SUCCESS indicates success. Other values are considered as failure. */ typedef int32_t (*CERT_VerifyCertChainCallBack)(HITLS_Ctx *ctx, HITLS_CERT_Store *store, HITLS_CERT_X509 **certList, uint32_t num); /** * @ingroup hitls_cert_reg * @brief Encode the certificate in ASN.1 DER format. * * @param ctx [IN] TLS link object. * @param cert [IN] Certificate. * @param buf [OUT] Certificate encoding data. * @param len [IN] Maximum encoding length. * @param usedLen [OUT] Actual encoding length. * * @retval HITLS_SUCCESS indicates success. Other values are considered as failure. */ typedef int32_t (*CERT_CertEncodeCallBack)(HITLS_Ctx *ctx, HITLS_CERT_X509 *cert, uint8_t *buf, uint32_t len, uint32_t *usedLen); /** * @ingroup hitls_cert_reg * @brief Read the certificate. * * @attention If the data is loaded to config, config points to the TLS configuration. * If the data is loaded to the TLS object, the config command is used only for a single link. * * @param config [IN] TLS link configuration, which can be used to obtain the passwd callback. * @param buf [IN] Certificate data. * @param len [IN] Certificate data length. * @param type [IN] Parsing type. * @param format [IN] Data format. * * @retval Certificate */ typedef HITLS_CERT_X509 *(*CERT_CertParseCallBack)(HITLS_Config *config, const uint8_t *buf, uint32_t len, HITLS_ParseType type, HITLS_ParseFormat format); /** * @ingroup hitls_cert_reg * @brief Duplicate the certificate. * * @param cert [IN] Certificate * * @retval New certificate */ typedef HITLS_CERT_X509 *(*CERT_CertDupCallBack)(HITLS_CERT_X509 *cert); /** * @ingroup hitls_cert_reg * @brief Certificate reference counting plus one. * * @param cert [IN] Certificate * * @retval certificate */ typedef HITLS_CERT_X509 *(*CERT_CertRefCallBack)(HITLS_CERT_X509 *cert); /** * @ingroup hitls_cert_reg * @brief Release the certificate. * * @param cert [IN] Certificate * * @retval void */ typedef void (*CERT_CertFreeCallBack)(HITLS_CERT_X509 *cert); /** * @ingroup hitls_cert_reg * @brief Ctrl interface * * @param config [IN] TLS link configuration * @param cert [IN] Certificate * @param cmd [IN] Ctrl option * @param input [IN] Input * @param output [IN] Output * * @retval HITLS_SUCCESS indicates success. Other values are considered as failure. */ typedef int32_t (*CERT_CertCtrlCallBack)(HITLS_Config *config, HITLS_CERT_X509 *cert, HITLS_CERT_CtrlCmd cmd, void *input, void *output); /** * @ingroup hitls_cert_reg * @brief Read the certificate key. * @attention If the data is loaded to config, config points to the TLS configuration. * If the data is loaded to the TLS object, the config command applies only to a single link. * * @param config [IN] LTS link configuration, which can be used to obtain the passwd callback. * @param buf [IN] Private key data * @param len [IN] Data length * @param type [IN] Parsing type * @param format [IN] Data format * * @retval Certificate key */ typedef HITLS_CERT_Key *(*CERT_KeyParseCallBack)(HITLS_Config *config, const uint8_t *buf, uint32_t len, HITLS_ParseType type, HITLS_ParseFormat format); /** * @ingroup hitls_cert_reg * @brief Duplicate the certificate key. * * @param key [IN] Certificate key * * @retval New certificate key */ typedef HITLS_CERT_Key *(*CERT_KeyDupCallBack)(HITLS_CERT_Key *key); /** * @ingroup hitls_cert_reg * @brief Release the certificate key. * * @param key [IN] Certificate key * * @retval void */ typedef void (*CERT_KeyFreeCallBack)(HITLS_CERT_Key *key); /** * @ingroup hitls_cert_reg * @brief Ctrl interface * * @param config [IN] TLS link configuration. * @param key [IN] Certificate key. * @param cmd [IN] Ctrl option. * @param input [IN] Input. * @param output [IN] Output. * * @retval HITLS_SUCCESS indicates success. Other values are considered as failure. */ typedef int32_t (*CERT_KeyCtrlCallBack)(HITLS_Config *config, HITLS_CERT_Key *key, HITLS_CERT_CtrlCmd cmd, void *input, void *output); /** * @ingroup hitls_cert_reg * @brief Signature * * @param ctx [IN] TLS link object * @param key [IN] Certificate private key * @param signAlgo [IN] Signature algorithm * @param hashAlgo [IN] Hash algorithm * @param data [IN] Data to be signed * @param dataLen [IN] Data length * @param sign [OUT] Signature * @param signLen [IN/OUT] IN: maximum signature length OUT: actual signature length * * @retval HITLS_SUCCESS indicates success. Other values are considered as failure. */ typedef int32_t (*CERT_CreateSignCallBack)(HITLS_Ctx *ctx, HITLS_CERT_Key *key, HITLS_SignAlgo signAlgo, HITLS_HashAlgo hashAlgo, const uint8_t *data, uint32_t dataLen, uint8_t *sign, uint32_t *signLen); /** * @ingroup hitls_cert_reg * @brief Signature verification * * @param ctx [IN] TLS link object * @param key [IN] Certificate public key * @param signAlgo [IN] Signature algorithm * @param hashAlgo [IN] Hash algorithm * @param data [IN] Data to be signed * @param dataLen [IN] Data length * @param sign [IN] Signature * @param signLen [IN] Signature length * * @retval HITLS_SUCCESS indicates success. Other values are considered as failure. */ typedef int32_t (*CERT_VerifySignCallBack)(HITLS_Ctx *ctx, HITLS_CERT_Key *key, HITLS_SignAlgo signAlgo, HITLS_HashAlgo hashAlgo, const uint8_t *data, uint32_t dataLen, const uint8_t *sign, uint32_t signLen); /** * @ingroup hitls_cert_reg * @brief Encrypted by the certificate public key. * * @param ctx [IN] TLS link object. * @param key [IN] Certificate public key. * @param in [IN] Plaintext. * @param inLen [IN] Plaintext length. * @param out [OUT] Ciphertext. * @param outLen [IN/OUT] IN: maximum ciphertext length OUT: actual ciphertext length. * * @retval HITLS_SUCCESS indicates success. Other values are considered as failure. */ typedef int32_t (*CERT_EncryptCallBack)(HITLS_Ctx *ctx, HITLS_CERT_Key *key, const uint8_t *in, uint32_t inLen, uint8_t *out, uint32_t *outLen); /** * @ingroup hitls_cert_reg * @brief Use the certificate private key to decrypt the data. * * @param ctx [IN] TLS link object. * @param key [IN] Certificate private key. * @param in [IN] Ciphertext. * @param inLen [IN] Ciphertext length. * @param out [OUT] Plaintext. * @param outLen [IN/OUT] IN: maximum plaintext length OUT: actual plaintext length. * * @retval HITLS_SUCCESS indicates success. Other values are considered as failure. */ typedef int32_t (*CERT_DecryptCallBack)(HITLS_Ctx *ctx, HITLS_CERT_Key *key, const uint8_t *in, uint32_t inLen, uint8_t *out, uint32_t *outLen); /** * @ingroup hitls_cert_reg * @brief Check whether the private key matches the certificate. * * @param config [IN] TLS link configuration. * @param cert [IN] Certificate. * @param key [IN] Private key. * * @retval HITLS_SUCCESS indicates success. Other values are considered as failure. */ typedef int32_t (*CERT_CheckPrivateKeyCallBack)(const HITLS_Config *config, HITLS_CERT_X509 *cert, HITLS_CERT_Key *key); typedef struct { CERT_StoreNewCallBack certStoreNew; /**< REQUIRED, Creating a certificate store. */ CERT_StoreDupCallBack certStoreDup; /**< REQUIRED, duplicate certificate store. */ CERT_StoreFreeCallBack certStoreFree; /**< REQUIRED, release the certificate store. */ CERT_StoreCtrlCallBack certStoreCtrl; /**< REQUIRED, certificate interface store ctrl. */ CERT_BuildCertChainCallBack buildCertChain; /**< REQUIRED, construct a certificate chain. */ CERT_VerifyCertChainCallBack verifyCertChain; /**< REQUIRED, verify certificate chain. */ CERT_CertEncodeCallBack certEncode; /**< REQUIRED, certificate encode. */ CERT_CertParseCallBack certParse; /**< REQUIRED, certificate decoding. */ CERT_CertDupCallBack certDup; /**< REQUIRED, duplicate the certificate. */ CERT_CertRefCallBack certRef; /**< OPTIONAL, Certificate reference counting plus one. */ CERT_CertFreeCallBack certFree; /**< REQUIRED, release certificate. */ CERT_CertCtrlCallBack certCtrl; /**< REQUIRED, certificate interface ctrl. */ CERT_KeyParseCallBack keyParse; /**< REQUIRED, loading key. */ CERT_KeyDupCallBack keyDup; /**< REQUIRED, duplicate key. */ CERT_KeyFreeCallBack keyFree; /**< REQUIRED, Release the key. */ CERT_KeyCtrlCallBack keyCtrl; /**< REQUIRED, key ctrl interface. */ CERT_CreateSignCallBack createSign; /**< REQUIRED, signature. */ CERT_VerifySignCallBack verifySign; /**< REQUIRED, verification. */ CERT_EncryptCallBack encrypt; /**< OPTIONAL, RSA key exchange REQUIRED, RSA encryption. */ CERT_DecryptCallBack decrypt; /**< OPTIONAL, RSA key exchange REQUIRED, RSA decryption. */ CERT_CheckPrivateKeyCallBack checkPrivateKey; /**< REQUIRED, Check whether the certificate matches the key. */ } HITLS_CERT_MgrMethod; /** * @ingroup hitls_cert_reg * @brief Callback function related to certificate registration * * @param method [IN] Callback function * * @retval HITLS_SUCCESS, succeeded. * @retval HITLS_NULL_INPUT, the callback function is NULL. */ int32_t HITLS_CERT_RegisterMgrMethod(HITLS_CERT_MgrMethod *method); /** * @ingroup hitls_cert_reg * @brief Certificate deregistration callback function * * @param method [IN] Callback function * * @retval */ void HITLS_CERT_DeinitMgrMethod(void); /** * @ingroup hitls_cert_reg * @brief Register the private key with the config file and certificate matching Check Interface. * * @param config [IN/OUT] Config context * @param checkPrivateKey API registration * @retval HITLS_SUCCESS. * @retval For other error codes, see hitls_error.h. */ int32_t HITLS_CFG_SetCheckPriKeyCb(HITLS_Config *config, CERT_CheckPrivateKeyCallBack checkPrivateKey); /** * @ingroup hitls_cert_reg * @brief Interface for obtaining the registered private key and certificate matching check * * @param config [IN] Config context * * @retval The interface for checking whether the registered private key matches the certificate is returned. * If the registered private key does not match the certificate, NULL is returned. */ CERT_CheckPrivateKeyCallBack HITLS_CFG_GetCheckPriKeyCb(HITLS_Config *config); /** * @ingroup hitls_cert_reg * @brief Get certificate callback function * * @retval Cert callback function */ HITLS_CERT_MgrMethod *HITLS_CERT_GetMgrMethod(void); #ifdef __cplusplus } #endif #endif /* HITLS_CERT_REG_H */
2301_79861745/bench_create
tls/include/hitls_cert_reg.h
C
unknown
14,277
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ /** * @defgroup hitls_crypt_reg * @ingroup hitls * @brief Algorithm related interfaces to be registered */ #ifndef HITLS_CRYPT_REG_H #define HITLS_CRYPT_REG_H #include <stdint.h> #include "hitls_type.h" #include "hitls_crypt_type.h" #ifdef __cplusplus extern "C" { #endif /** * @brief Input parameters for KEM encapsulation */ typedef struct { HITLS_NamedGroup groupId; /**< Named group ID */ uint8_t *peerPubkey; /**< Peer's public key */ uint32_t pubKeyLen; /**< Length of peer's public key */ uint8_t *ciphertext; /**< [OUT] Encapsulated ciphertext */ uint32_t *ciphertextLen; /**< [IN/OUT] IN: Maximum ciphertext buffer length OUT: Actual ciphertext length */ uint8_t *sharedSecret; /**< [OUT] Generated shared secret */ uint32_t *sharedSecretLen; /**< [IN/OUT] IN: Maximum shared secret buffer length OUT: Actual shared secret length */ } HITLS_KemEncapsulateParams; /** * @ingroup hitls_crypt_reg * @brief Obtain the random number. * * @param buf [OUT] Random number * @param len [IN] Random number length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_RandBytesCallback)(uint8_t *buf, uint32_t len); /** * @ingroup hitls_crypt_reg * @brief ECDH: Generate a key pair based on elliptic curve parameters. * * @param curveParams [IN] Elliptic curve parameter * * @retval Key handle */ typedef HITLS_CRYPT_Key *(*CRYPT_GenerateEcdhKeyPairCallback)(const HITLS_ECParameters *curveParams); /** * @ingroup hitls_crypt_reg * @brief Release the key. * * @param key [IN] Key handle */ typedef void (*CRYPT_FreeEcdhKeyCallback)(HITLS_CRYPT_Key *key); /** * @ingroup hitls_crypt_reg * @brief ECDH: Extract the public key data. * * @param key [IN] Key handle * @param pubKeyBuf [OUT] Public key data * @param bufLen [IN] Buffer length * @param pubKeyLen [OUT] Public key data length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_GetEcdhEncodedPubKeyCallback)(HITLS_CRYPT_Key *key, uint8_t *pubKeyBuf, uint32_t bufLen, uint32_t *pubKeyLen); /** * @ingroup hitls_crypt_reg * @brief ECDH: Calculate the shared key based on the local key and peer public key. Ref RFC 8446 section 7.4.1, * this callback should strip the leading zeros. * * @param key [IN] Key handle * @param peerPubkey [IN] Public key data * @param pubKeyLen [IN] Public key data length * @param sharedSecret [OUT] Shared key * @param sharedSecretLen [IN/OUT] IN: Maximum length of the key padding OUT: Key length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_CalcEcdhSharedSecretCallback)(HITLS_CRYPT_Key *key, uint8_t *peerPubkey, uint32_t pubKeyLen, uint8_t *sharedSecret, uint32_t *sharedSecretLen); /** * @ingroup hitls_crypt_reg * @brief KEM: Encapsulate a shared secret using peer's public key. * * @param params [IN/OUT] Parameters for KEM encapsulation * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_KemEncapsulateCallback)(HITLS_KemEncapsulateParams *params); /** * @ingroup hitls_crypt_reg * @brief KEM: Decapsulate the ciphertext to recover shared secret. * * @param key [IN] Key handle * @param ciphertext [IN] Ciphertext buffer * @param ciphertextLen [IN] Ciphertext length * @param sharedSecret [OUT] Shared secret buffer * @param sharedSecretLen [IN/OUT] IN: Maximum length of the shared secret buffer OUT: Actual shared secret length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_KemDecapsulateCallback)(HITLS_CRYPT_Key *key, const uint8_t *ciphertext, uint32_t ciphertextLen, uint8_t *sharedSecret, uint32_t *sharedSecretLen); /** * @ingroup hitls_crypt_reg * @brief SM2 calculates the shared key based on the local key and peer public key. * * @param sm2Params [IN] Shared key calculation parameters * @param sharedSecret [OUT] Shared key * @param sharedSecretLen [IN/OUT] IN: Maximum length of the key padding OUT: Key length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_Sm2CalcEcdhSharedSecretCallback)(HITLS_Sm2GenShareKeyParameters *sm2Params, uint8_t *sharedSecret, uint32_t *sharedSecretLen); /** * @ingroup hitls_crypt_reg * @brief Generate a key pair based on secbits. * * @param secbits [IN] Key security level * * @retval Key handle */ typedef HITLS_CRYPT_Key *(*CRYPT_GenerateDhKeyBySecbitsCallback)(int32_t secbits); /** * @ingroup hitls_crypt_reg * @brief DH: Generate a key pair based on the dh parameter. * * @param p [IN] p Parameter * @param plen [IN] p Parameter length * @param g [IN] g Parameter * @param glen [IN] g Parameter length * * @retval Key handle */ typedef HITLS_CRYPT_Key *(*CRYPT_GenerateDhKeyByParamsCallback)(uint8_t *p, uint16_t plen, uint8_t *g, uint16_t glen); /** * @ingroup hitls_crypt_reg * @brief Deep copy key * * @param key [IN] Key handle * @retval Key handle */ typedef HITLS_CRYPT_Key *(*CRYPT_DupDhKeyCallback)(HITLS_CRYPT_Key *key); /** * @ingroup hitls_crypt_reg * @brief Release the key. * * @param key [IN] Key handle */ typedef void (*CRYPT_FreeDhKeyCallback)(HITLS_CRYPT_Key *key); /** * @ingroup hitls_crypt_reg * @brief DH: Obtain p g plen glen by using the key handle. * * @attention If the p and g parameters are null pointers, only the lengths of p and g are obtained. * * @param key [IN] Key handle * @param p [OUT] p Parameter * @param plen [IN/OUT] IN: Maximum length of data padding OUT: p Parameter length * @param g [OUT] g Parameter * @param glen [IN/OUT] IN: Maximum length of data padding OUT: g Parameter length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_DHGetParametersCallback)(HITLS_CRYPT_Key *key, uint8_t *p, uint16_t *plen, uint8_t *g, uint16_t *glen); /** * @ingroup hitls_crypt_reg * @brief DH: Extract the Dh public key data. * * @param key [IN] Key handle * @param pubKeyBuf [OUT] Public key data * @param bufLen [IN] Buffer length * @param pubKeyLen [OUT] Public key data length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_GetDhEncodedPubKeyCallback)(HITLS_CRYPT_Key *key, uint8_t *pubKeyBuf, uint32_t bufLen, uint32_t *pubKeyLen); /** * @ingroup hitls_crypt_reg * @brief DH: Calculate the shared key based on the local key and peer public key. Ref RFC 5246 section 8.1.2, * this callback should retain the leading zeros. * * @param key [IN] Key handle * @param peerPubkey [IN] Public key data * @param pubKeyLen [IN] Public key data length * @param sharedSecret [OUT] Shared key * @param sharedSecretLen [IN/OUT] IN: Maximum length of the key padding OUT: Key length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_CalcDhSharedSecretCallback)(HITLS_CRYPT_Key *key, uint8_t *peerPubkey, uint32_t pubKeyLen, uint8_t *sharedSecret, uint32_t *sharedSecretLen); /** * @ingroup hitls_crypt_reg * @brief Obtain the HMAC length based on the hash algorithm. * * @param hashAlgo [IN] Hash algorithm * * @retval HMAC length */ typedef uint32_t (*CRYPT_HmacSizeCallback)(HITLS_HashAlgo hashAlgo); /** * @ingroup hitls_crypt_reg * @brief Initialize the HMAC context. * * @param hashAlgo [IN] Hash algorithm * @param key [IN] Key * @param len [IN] Key length * * @retval HMAC context */ typedef HITLS_HMAC_Ctx *(*CRYPT_HmacInitCallback)(HITLS_HashAlgo hashAlgo, const uint8_t *key, uint32_t len); /** * @ingroup hitls_crypt_reg * @brief reinit the HMAC context. * * @param ctx [IN] HMAC context * * @retval HMAC context */ typedef int32_t (*CRYPT_HmacReInitCallback)(HITLS_HMAC_Ctx *ctx); /** * @ingroup hitls_crypt_reg * @brief Release the HMAC context. * * @param ctx [IN] HMAC context */ typedef void (*CRYPT_HmacFreeCallback)(HITLS_HMAC_Ctx *ctx); /** * @ingroup hitls_crypt_reg * @brief Add the HMAC input data. * * @param ctx [IN] HMAC context * @param data [IN] Input data * @param len [IN] Data length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_HmacUpdateCallback)(HITLS_HMAC_Ctx *ctx, const uint8_t *data, uint32_t len); /** * @ingroup hitls_crypt_reg * @brief Output the HMAC result. * * @param ctx [IN] HMAC context * @param out [OUT] Output data * @param len [IN/OUT] IN: Maximum buffer length OUT: Output data length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_HmacFinalCallback)(HITLS_HMAC_Ctx *ctx, uint8_t *out, uint32_t *len); /** * @ingroup hitls_crypt_reg * @brief Function for calculating the HMAC for a single time * * @param hashAlgo [IN] Hash algorithm * @param key [IN] Key * @param keyLen [IN] Key length * @param in [IN] Input data. * @param inLen [IN] Input data length * @param out [OUT] Output the HMAC data result. * @param outLen [IN/OUT] IN: Maximum buffer length OUT: Output data length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_HmacCallback)(HITLS_HashAlgo hashAlgo, const uint8_t *key, uint32_t keyLen, const uint8_t *in, uint32_t inLen, uint8_t *out, uint32_t *outLen); /** * @ingroup hitls_crypt_reg * @brief Obtain the hash length. * * @param hashAlgo [IN] Hash algorithm. * * @retval Hash length */ typedef uint32_t (*CRYPT_DigestSizeCallback)(HITLS_HashAlgo hashAlgo); /** * @ingroup hitls_crypt_reg * @brief Initialize the hash context. * * @param hashAlgo [IN] Hash algorithm * * @retval Hash context */ typedef HITLS_HASH_Ctx *(*CRYPT_DigestInitCallback)(HITLS_HashAlgo hashAlgo); /** * @ingroup hitls_crypt_reg * @brief Copy the hash context. * * @param ctx [IN] Hash Context * * @retval Hash context */ typedef HITLS_HASH_Ctx *(*CRYPT_DigestCopyCallback)(HITLS_HASH_Ctx *ctx); /** * @ingroup hitls_crypt_reg * @brief Release the hash context. * * @param ctx [IN] Hash Context */ typedef void (*CRYPT_DigestFreeCallback)(HITLS_HASH_Ctx *ctx); /** * @ingroup hitls_crypt_reg * @brief Hash Add input data. * * @param ctx [IN] Hash context * @param data [IN] Input data * @param len [IN] Input data length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_DigestUpdateCallback)(HITLS_HASH_Ctx *ctx, const uint8_t *data, uint32_t len); /** * @ingroup hitls_crypt_reg * @brief Output the hash result. * * @param ctx [IN] Hash context * @param out [IN] Output data. * @param len [IN/OUT] IN: Maximum buffer length OUT: Output data length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_DigestFinalCallback)(HITLS_HASH_Ctx *ctx, uint8_t *out, uint32_t *len); /** * @ingroup hitls_crypt_reg * @brief Hash function * * @param hashAlgo [IN] Hash algorithm * @param in [IN] Input data * @param inLen [IN] Input data length * @param out [OUT] Output data * @param outLen [IN/OUT] IN: Maximum buffer length OUT: Output data length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_DigestCallback)(HITLS_HashAlgo hashAlgo, const uint8_t *in, uint32_t inLen, uint8_t *out, uint32_t *outLen); /** * @ingroup hitls_crypt_reg * @brief TLS encryption * * Provides the encryption capability for records, including the AEAD and CBC algorithms. * Encrypts the input factor (key parameter) and plaintext based on the record protocol * to obtain the ciphertext. * * @attention: The protocol allows the sending of app packets with payload length 0. * Therefore, the length of the plaintext input may be 0. Therefore, * the plaintext with the length of 0 must be encrypted. * @param cipher [IN] Key parameters * @param in [IN] Plaintext data * @param inLen [IN] Plaintext data length * @param out [OUT] Ciphertext data * @param outLen [IN/OUT] IN: maximum buffer length OUT: ciphertext data length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_EncryptCallback)(const HITLS_CipherParameters *cipher, const uint8_t *in, uint32_t inLen, uint8_t *out, uint32_t *outLen); /** * @ingroup hitls_crypt_reg * @brief TLS decryption * * Provides decryption capabilities for records, including the AEAD and CBC algorithms. * Decrypt the input factor (key parameter) and ciphertext according to the record protocol to obtain the plaintext. * * @param cipher [IN] Key parameters * @param in [IN] Ciphertext data * @param inLen [IN] Ciphertext data length * @param out [OUT] Plaintext data * @param outLen [IN/OUT] IN: maximum buffer length OUT: plaintext data length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_DecryptCallback)(const HITLS_CipherParameters *cipher, const uint8_t *in, uint32_t inLen, uint8_t *out, uint32_t *outLen); /** * @ingroup hitls_crypt_reg * @brief Release the cipher ctx. * * @param ctx [IN] cipher ctx handle */ typedef void (*CRYPT_CipherFreeCallback)(HITLS_Cipher_Ctx *ctx); /** * @ingroup hitls_crypt_reg * @brief HKDF-Extract * * @param input [IN] Enter the key material. * @param prk [OUT] Output key * @param prkLen [IN/OUT] IN: Maximum buffer length OUT: Output key length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_HkdfExtractCallback)(const HITLS_CRYPT_HkdfExtractInput *input, uint8_t *prk, uint32_t *prkLen); /** * @ingroup hitls_crypt_reg * @brief HKDF-Expand * * @param input [IN] Enter the key material. * @param outputKeyMaterial [OUT] Output key * @param outputKeyMaterialLen [IN] Output key length * * @retval 0 indicates success. Other values indicate failure. */ typedef int32_t (*CRYPT_HkdfExpandCallback)( const HITLS_CRYPT_HkdfExpandInput *input, uint8_t *outputKeyMaterial, uint32_t outputKeyMaterialLen); /** * @ingroup hitls_cert_reg * @brief Callback function that must be registered */ typedef struct { CRYPT_RandBytesCallback randBytes; /**< Obtain the random number. */ CRYPT_HmacSizeCallback hmacSize; /**< HMAC: obtain the HMAC length based on the hash algorithm. */ CRYPT_HmacInitCallback hmacInit; /**< HMAC: initialize the context. */ CRYPT_HmacReInitCallback hmacReinit; /**< HMAC: reinitialize the context. */ CRYPT_HmacFreeCallback hmacFree; /**< HMAC: release the context. */ CRYPT_HmacUpdateCallback hmacUpdate; /**< HMAC: add input data. */ CRYPT_HmacFinalCallback hmacFinal; /**< HMAC: output result. */ CRYPT_HmacCallback hmac; /**< HMAC: single HMAC function. */ CRYPT_DigestSizeCallback digestSize; /**< HASH: obtains the hash length. */ CRYPT_DigestInitCallback digestInit; /**< HASH: initialize the context. */ CRYPT_DigestCopyCallback digestCopy; /**< HASH: copy the hash context. */ CRYPT_DigestFreeCallback digestFree; /**< HASH: release the context. */ CRYPT_DigestUpdateCallback digestUpdate; /**< HASH: add input data. */ CRYPT_DigestFinalCallback digestFinal; /**< HASH: output the hash result. */ CRYPT_DigestCallback digest; /**< HASH: single hash function. */ CRYPT_EncryptCallback encrypt; /**< TLS encryption: provides the encryption capability for records. */ CRYPT_DecryptCallback decrypt; /**< TLS decryption: provides the decryption capability for records. */ CRYPT_CipherFreeCallback cipherFree; /**< CIPHER: release the context. */ } HITLS_CRYPT_BaseMethod; /** * @ingroup hitls_cert_reg * @brief ECDH Callback function to be registered */ typedef struct { CRYPT_GenerateEcdhKeyPairCallback generateEcdhKeyPair; /**< ECDH: generate a key pair based on the elliptic curve parameters. */ CRYPT_FreeEcdhKeyCallback freeEcdhKey; /**< ECDH: release the elliptic curve key. */ CRYPT_GetEcdhEncodedPubKeyCallback getEcdhPubKey; /**< ECDH: extract public key data. */ CRYPT_CalcEcdhSharedSecretCallback calcEcdhSharedSecret; /**< ECDH: calculate the shared key based on the local key and peer public key. */ CRYPT_Sm2CalcEcdhSharedSecretCallback sm2CalEcdhSharedSecret; CRYPT_KemEncapsulateCallback kemEncapsulate; /**< KEM: encapsulate a shared secret */ CRYPT_KemDecapsulateCallback kemDecapsulate; /**< KEM: decapsulate the ciphertext */ } HITLS_CRYPT_EcdhMethod; /** * @ingroup hitls_cert_reg * @brief DH Callback function to be registered */ typedef struct { CRYPT_GenerateDhKeyBySecbitsCallback generateDhKeyBySecbits; /**< DH: Generate a key pair based on secbits */ CRYPT_GenerateDhKeyByParamsCallback generateDhKeyByParams; /**< DH: Generate a key pair based on the dh parameter */ CRYPT_DupDhKeyCallback dupDhKey; /**< DH: deep copy key*/ CRYPT_FreeDhKeyCallback freeDhKey; /**< DH: release the key */ CRYPT_DHGetParametersCallback getDhParameters; /**< DH: obtain the p g plen glen by using the key handle */ CRYPT_GetDhEncodedPubKeyCallback getDhPubKey; /**< DH: extract the Dh public key data */ CRYPT_CalcDhSharedSecretCallback calcDhSharedSecret; /**< DH: calculate the shared key based on the local key and peer public key */ } HITLS_CRYPT_DhMethod; /** * @ingroup hitls_cert_reg * @brief KDF function */ typedef struct { CRYPT_HkdfExtractCallback hkdfExtract; CRYPT_HkdfExpandCallback hkdfExpand; } HITLS_CRYPT_KdfMethod; /** * @ingroup hitls_cert_reg * @brief Register the basic callback function. * * @param userCryptCallBack [IN] Callback function to be registered * * @retval HITLS_SUCCESS, if successful. * @retval HITLS_NULL_INPUT, the input parameter is NULL.. */ int32_t HITLS_CRYPT_RegisterBaseMethod(HITLS_CRYPT_BaseMethod *userCryptCallBack); /** * @ingroup hitls_cert_reg * @brief Register the ECDH callback function. * * @param userCryptCallBack [IN] Callback function to be registered * * @retval HITLS_SUCCESS, if successful. * @retval HITLS_NULL_INPUT, the input parameter is NULL.. */ int32_t HITLS_CRYPT_RegisterEcdhMethod(HITLS_CRYPT_EcdhMethod *userCryptCallBack); /** * @ingroup hitls_cert_reg * @brief Register the callback function of the DH. * * @param userCryptCallBack [IN] Callback function to be registered * * @retval HITLS_SUCCESS, if successful. * @retval HITLS_NULL_INPUT, the input parameter is NULL.. */ int32_t HITLS_CRYPT_RegisterDhMethod(const HITLS_CRYPT_DhMethod *userCryptCallBack); /** * @brief Register the callback function of the HKDF. * * @param userCryptCallBack [IN] Callback function to be registered * * @retval HITLS_SUCCESS, if successful. * @retval HITLS_NULL_INPUT, the input parameter is NULL.. */ int32_t HITLS_CRYPT_RegisterHkdfMethod(HITLS_CRYPT_KdfMethod *userCryptCallBack); #ifdef __cplusplus } #endif #endif
2301_79861745/bench_create
tls/include/hitls_crypt_reg.h
C
unknown
20,718
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef INDICATOR_H #define INDICATOR_H #include "hitls_build.h" #include "hitls_type.h" #ifdef __cplusplus extern "C" { #endif #define INDICATOR_ALERT_LEVEL_OFFSET 8 #define INDICATE_INFO_STATE_MASK 0x0FFF // 0000 1111 1111 1111 /** * @ingroup indicator * @brief Indicate the status or event to the upper layer through the infoCb * @param ctx [IN] TLS context * @param eventType [IN] * @param value [IN] Return value of a function in the event or alert type */ void INDICATOR_StatusIndicate(const HITLS_Ctx *ctx, int32_t eventType, int32_t value); /** * @ingroup indicator * @brief Indicate the status or event to the upper layer through msgCb * @param writePoint [IN] Message direction in the callback ">>>" or "<<<" * @param tlsVersion [IN] TLS version * @param contentType[IN] Type of the message to be processed. * @param msg [IN] Internal message processing instruction data in callback * @param msgLen [IN] Data length of the processing instruction * @param ctx [IN] HITLS context * @param arg [IN] User data such as BIO */ void INDICATOR_MessageIndicate(int32_t writePoint, uint32_t tlsVersion, int32_t contentType, const void *msg, uint32_t msgLen, HITLS_Ctx *ctx, void *arg); #ifdef __cplusplus } #endif #endif // INDICATOR_H
2301_79861745/bench_create
tls/include/indicator.h
C
unknown
1,904
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef SECURITY_H #define SECURITY_H #include <stdint.h> #include "hitls_type.h" #ifdef __cplusplus extern "C" { #endif #define SECURITY_SUCCESS 1 #define SECURITY_ERR 0 /* set the default security level and security callback function */ void SECURITY_SetDefault(HITLS_Config *config); /* check TLS configuration security */ int32_t SECURITY_CfgCheck(const HITLS_Config *config, int32_t option, int32_t bits, int32_t id, void *other); /* check TLS link security */ int32_t SECURITY_SslCheck(const HITLS_Ctx *ctx, int32_t option, int32_t bits, int32_t id, void *other); /* get the security strength corresponding to the security level */ int32_t SECURITY_GetSecbits(int32_t level); #ifdef __cplusplus } #endif #endif // SECURITY_H
2301_79861745/bench_create
tls/include/security.h
C
unknown
1,283
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef SESSION_H #define SESSION_H #include <stdint.h> #include <stdbool.h> #include "hitls_build.h" #include "sal_time.h" #include "hitls_session.h" #include "cert.h" #ifdef __cplusplus extern "C" { #endif #define MAX_MASTER_KEY_SIZE 256u /* <= tls1.2 master key is 48 bytes. TLS1.3 can be to 256 bytes. */ /* Increments the reference count for session */ void HITLS_SESS_UpRef(HITLS_Session *sess); /* Deep copy session */ HITLS_Session *SESS_Copy(HITLS_Session *src); /* Disable session */ void SESS_Disable(HITLS_Session *sess); /* set peerCert */ int32_t SESS_SetPeerCert(HITLS_Session *sess, CERT_Pair *peerCert, bool isClient); /* get peerCert */ int32_t SESS_GetPeerCert(HITLS_Session *sess, CERT_Pair **peerCert); /* set ticket */ int32_t SESS_SetTicket(HITLS_Session *sess, uint8_t *ticket, uint32_t ticketSize); /* get ticket */ int32_t SESS_GetTicket(const HITLS_Session *sess, uint8_t **ticket, uint32_t *ticketSize); /* set hostName */ int32_t SESS_SetHostName(HITLS_Session *sess, uint32_t hostNameSize, uint8_t *hostName); /* get hostName */ int32_t SESS_GetHostName(HITLS_Session *sess, uint32_t *hostNameSize, uint8_t **hostName); /* Check the validity of the session */ bool SESS_CheckValidity(HITLS_Session *sess, uint64_t curTime); uint64_t SESS_GetStartTime(HITLS_Session *sess); int32_t SESS_SetStartTime(HITLS_Session *sess, uint64_t startTime); int32_t SESS_SetTicketAgeAdd(HITLS_Session *sess, uint32_t ticketAgeAdd); uint32_t SESS_GetTicketAgeAdd(const HITLS_Session *sess); #ifdef __cplusplus } #endif #endif // SESSION_H
2301_79861745/bench_create
tls/include/session.h
C
unknown
2,121
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef SESSION_MGR_H #define SESSION_MGR_H #include <stdint.h> #include <stdbool.h> #include "hitls_build.h" #include "hitls.h" #include "tls.h" #include "session.h" #include "tls_config.h" #ifdef __cplusplus extern "C" { #endif /* Application */ TLS_SessionMgr *SESSMGR_New(HITLS_Lib_Ctx *libCtx); /* Copy the number of references and increase the number of references by 1 */ TLS_SessionMgr *SESSMGR_Dup(TLS_SessionMgr *mgr); /* Release */ void SESSMGR_Free(TLS_SessionMgr *mgr); /* Configure the timeout period */ void SESSMGR_SetTimeout(TLS_SessionMgr *mgr, uint64_t sessTimeout); /* Obtain the timeout configuration */ uint64_t SESSMGR_GetTimeout(TLS_SessionMgr *mgr); /* Set the mode */ void SESSMGR_SetCacheMode(TLS_SessionMgr *mgr, HITLS_SESS_CACHE_MODE mode); /* Set the mode: Ensure that the pointer is not null */ HITLS_SESS_CACHE_MODE SESSMGR_GetCacheMode(TLS_SessionMgr *mgr); /* Set the maximum number of cache sessions */ void SESSMGR_SetCacheSize(TLS_SessionMgr *mgr, uint32_t sessCacheSize); /* Set the maximum number of cached sessions. Ensure that the pointer is not null */ uint32_t SESSMGR_GetCacheSize(TLS_SessionMgr *mgr); /* add */ void SESSMGR_InsertSession(TLS_SessionMgr *mgr, HITLS_Session *sess, bool isClient); /* Find the matching session and verify the validity of the session (time) */ HITLS_Session *SESSMGR_Find(TLS_SessionMgr *mgr, uint8_t *sessionId, uint8_t sessionIdSize); /* Search for the matching session without checking the validity of the session (time) */ bool SESSMGR_HasMacthSessionId(TLS_SessionMgr *mgr, uint8_t *sessionId, uint8_t sessionIdSize); /* Clear timeout sessions */ void SESSMGR_ClearTimeout(TLS_SessionMgr *mgr); /* Generate session IDs to prevent duplicate session IDs */ int32_t SESSMGR_GernerateSessionId(TLS_Ctx *ctx, uint8_t *sessionId, uint32_t sessionIdSize); void SESSMGR_SetTicketKeyCb(TLS_SessionMgr *mgr, HITLS_TicketKeyCb ticketKeyCb); HITLS_TicketKeyCb SESSMGR_GetTicketKeyCb(TLS_SessionMgr *mgr); /** * @brief Obtain the default ticket key of the HITLS. The key is used to encrypt and decrypt the ticket * in the new session ticket when the HITLS_TicketKeyCb callback function is not set. * * @attention The returned key value is as follows: 16-bytes key name + 32-bytes AES key + 32-bytes HMAC key * * @param mgr [IN] Session management context * @param key [OUT] Obtained ticket key * @param keySize [IN] Size of the key array * @param outSize [OUT] Size of the obtained ticket key * * @retval HITLS_SUCCESS * @retval For other error codes, see hitls_error.h */ int32_t SESSMGR_GetTicketKey(const TLS_SessionMgr *mgr, uint8_t *key, uint32_t keySize, uint32_t *outSize); /** * @brief Set the default ticket key of the HITLS. The key is used to encrypt and decrypt tickets * in the new session ticket when the HITLS_TicketKeyCb callback function is not set. * * @attention The returned key value is as follows: 16-bytes key name + 32-bytes AES key + 32-bytes HMAC key * * @param mgr [OUT] Session management context * @param key [IN] Ticket key to be set * @param keySize [IN] Size of the ticket key * * @retval HITLS_SUCCESS * @retval For other error codes, see hitls_error.h */ int32_t SESSMGR_SetTicketKey(TLS_SessionMgr *mgr, const uint8_t *key, uint32_t keySize); /** * @brief Encrypt the session ticket, which is invoked when a new session ticket is sent * * @param sessMgr [IN] Session management context * @param sess [IN] sess structure, used to generate ticket data * @param ticketBuf [OUT] ticket. The return value may be empty, that is, an empty new session ticket message is sent * @param ticketBufSize [IN] Size of the ticketBuf * * @retval HITLS_SUCCESS * @retval For other error codes, see hitls_error.h */ int32_t SESSMGR_EncryptSessionTicket(TLS_Ctx *ctx, const TLS_SessionMgr *sessMgr, const HITLS_Session *sess, uint8_t **ticketBuf, uint32_t *ticketBufSize); /** * @brief Decrypt the session ticket. This interface is invoked when the session ticket of the clientHello is received * * @attention The output parameters are as follows: * If the sess field is empty and the ticketExcept field is set to true, the new session ticket message * is sent but the session is not resumed * If the sess field is empty and the ticketExcept field is false, the session is not resumed * and the new session ticket message is not sent * If sess is not empty and ticketExcept is true, the session is resumed and * a new session ticket message is sent, which means the session ticket is renewed * If sess is not empty and ticketExcept is false, * the session is resumed and the new session ticket message is not sent * * @param sessMgr [IN] Session management context * @param sess [OUT] Session structure generated by the ticket. The return value may be empty, * so that, the corresponding session cannot be generated and the session cannot be resumed * @param ticketBuf [IN] ticket data * @param ticketBufSize [IN] Ticket data size * @param isTicketExcept [OUT] Indicates whether to send a new session ticket. * The options are as follows: true: yes; false: no. * * @retval HITLS_SUCCESS * @retval For other error codes, see hitls_error.h */ int32_t SESSMGR_DecryptSessionTicket(HITLS_Lib_Ctx *libCtx, const char *attrName, const TLS_SessionMgr *sessMgr, HITLS_Session **sess, const uint8_t *ticketBuf, uint32_t ticketBufSize, bool *isTicketExcept); #ifdef __cplusplus } #endif #endif // SESSION_MGR_H
2301_79861745/bench_create
tls/include/session_mgr.h
C
unknown
6,194
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef SNI_H #define SNI_H #include <stdint.h> #ifdef __cplusplus extern "C" { #endif typedef struct SniArg { char *serverName; int32_t alert; } SNI_Arg; /* compare whether the host names are the same */ int32_t SNI_StrcaseCmp(const char *s1, const char *s2); #ifdef __cplusplus } #endif #endif // ALPN_H
2301_79861745/bench_create
tls/include/sni.h
C
unknown
863
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef TLS_H #define TLS_H #include <stdint.h> #include <stdbool.h> #include "hitls_build.h" #include "cipher_suite.h" #include "tls_config.h" #include "hitls_error.h" #ifdef __cplusplus extern "C" { #endif #define MAX_DIGEST_SIZE 64UL /* The longest known value is SHA512 */ #define DTLS_DEFAULT_PMTU 1500uL /* RFC 6083 4.1. Mapping of DTLS Records: The supported maximum length of SCTP user messages MUST be at least 2^14 + 2048 + 13 = 18445 bytes (2^14 + 2048 is the maximum length of the DTLSCiphertext.fragment, and 13 is the size of the DTLS record header). */ #define DTLS_SCTP_PMTU 18445uL #define IS_DTLS_VERSION(version) (((version) & 0x8u) == 0x8u) #define IS_SUPPORT_STREAM(versionBits) (((versionBits) & STREAM_VERSION_BITS) != 0x0u) #define IS_SUPPORT_DATAGRAM(versionBits) (((versionBits) & DATAGRAM_VERSION_BITS) != 0x0u) #define IS_SUPPORT_TLCP(versionBits) (((versionBits) & TLCP_VERSION_BITS) != 0x0u) #define IS_SUPPORT_TLS(versionBits) (((versionBits) & TLS_VERSION_MASK) != 0x0u) #define DTLS_COOKIE_LEN 255 #define MAC_KEY_LEN 32u /* the length of mac key */ #define UNPROCESSED_APP_MSG_COUNT_MAX 50 /* number of APP data cached */ #define RANDOM_SIZE 32u /* the size of random number */ typedef struct TlsCtx TLS_Ctx; typedef struct HsCtx HS_Ctx; typedef struct CcsCtx CCS_Ctx; typedef struct AlertCtx ALERT_Ctx; typedef struct RecCtx REC_Ctx; typedef enum { CCS_CMD_RECV_READY, /* CCS allowed to be received */ CCS_CMD_RECV_EXIT_READY, /* CCS cannot be received */ CCS_CMD_RECV_ACTIVE_CIPHER_SPEC, /* CCS active change cipher spec */ } CCS_Cmd; /* Check whether the CCS message is received */ typedef bool (*IsRecvCcsCallback)(const TLS_Ctx *ctx); /* Send a CCS message */ typedef int32_t (*SendCcsCallback)(TLS_Ctx *ctx); /* Control the CCS */ typedef int32_t (*CtrlCcsCallback)(TLS_Ctx *ctx, CCS_Cmd cmd); typedef enum { ALERT_LEVEL_WARNING = 1, ALERT_LEVEL_FATAL = 2, ALERT_LEVEL_UNKNOWN = 255, } ALERT_Level; typedef enum { ALERT_CLOSE_NOTIFY = 0, ALERT_UNEXPECTED_MESSAGE = 10, ALERT_BAD_RECORD_MAC = 20, ALERT_DECRYPTION_FAILED = 21, ALERT_RECORD_OVERFLOW = 22, ALERT_DECOMPRESSION_FAILURE = 30, ALERT_HANDSHAKE_FAILURE = 40, ALERT_NO_CERTIFICATE_RESERVED = 41, ALERT_BAD_CERTIFICATE = 42, ALERT_UNSUPPORTED_CERTIFICATE = 43, ALERT_CERTIFICATE_REVOKED = 44, ALERT_CERTIFICATE_EXPIRED = 45, ALERT_CERTIFICATE_UNKNOWN = 46, ALERT_ILLEGAL_PARAMETER = 47, ALERT_UNKNOWN_CA = 48, ALERT_ACCESS_DENIED = 49, ALERT_DECODE_ERROR = 50, ALERT_DECRYPT_ERROR = 51, ALERT_EXPORT_RESTRICTION_RESERVED = 60, ALERT_PROTOCOL_VERSION = 70, ALERT_INSUFFICIENT_SECURITY = 71, ALERT_INTERNAL_ERROR = 80, ALERT_INAPPROPRIATE_FALLBACK = 86, ALERT_USER_CANCELED = 90, ALERT_NO_RENEGOTIATION = 100, ALERT_MISSING_EXTENSION = 109, ALERT_UNSUPPORTED_EXTENSION = 110, ALERT_CERTIFICATE_UNOBTAINABLE = 111, ALERT_UNRECOGNIZED_NAME = 112, ALERT_BAD_CERTIFICATE_STATUS_RESPONSE = 113, ALERT_BAD_CERTIFICATE_HASH_VALUE = 114, ALERT_UNKNOWN_PSK_IDENTITY = 115, ALERT_CERTIFICATE_REQUIRED = 116, ALERT_NO_APPLICATION_PROTOCOL = 120, ALERT_UNKNOWN = 255 } ALERT_Description; /** Connection management state */ typedef enum { CM_STATE_IDLE, CM_STATE_HANDSHAKING, CM_STATE_TRANSPORTING, CM_STATE_RENEGOTIATION, CM_STATE_ALERTING, CM_STATE_ALERTED, CM_STATE_CLOSED, CM_STATE_END } CM_State; /** post-handshake auth */ typedef enum { PHA_NONE, /* not support pha */ PHA_EXTENSION, /* pha extension send or received */ PHA_PENDING, /* try to send certificate request */ PHA_REQUESTED /* certificate request has been sent or received */ } PHA_State; /* Describes the handshake status */ typedef enum { TLS_IDLE, /* initial state */ TLS_CONNECTED, /* Handshake succeeded */ TRY_SEND_HELLO_REQUEST, /* sends hello request message */ TRY_SEND_CLIENT_HELLO, /* sends client hello message */ TRY_SEND_HELLO_RETRY_REQUEST, /* sends hello retry request message */ TRY_SEND_SERVER_HELLO, /* sends server hello message */ TRY_SEND_HELLO_VERIFY_REQUEST, /* sends hello verify request message */ TRY_SEND_ENCRYPTED_EXTENSIONS, /* sends encrypted extensions message */ TRY_SEND_CERTIFICATE, /* sends certificate message */ TRY_SEND_SERVER_KEY_EXCHANGE, /* sends server key exchange message */ TRY_SEND_CERTIFICATE_REQUEST, /* sends certificate request message */ TRY_SEND_SERVER_HELLO_DONE, /* sends server hello done message */ TRY_SEND_CLIENT_KEY_EXCHANGE, /* sends client key exchange message */ TRY_SEND_CERTIFICATE_VERIFY, /* sends certificate verify message */ TRY_SEND_NEW_SESSION_TICKET, /* sends new session ticket message */ TRY_SEND_CHANGE_CIPHER_SPEC, /* sends change cipher spec message */ TRY_SEND_END_OF_EARLY_DATA, /* sends end of early data message */ TRY_SEND_FINISH, /* sends finished message */ TRY_SEND_KEY_UPDATE, /* sends keyupdate message */ TRY_RECV_CLIENT_HELLO, /* attempts to receive client hello message */ TRY_RECV_SERVER_HELLO, /* attempts to receive server hello message */ TRY_RECV_HELLO_VERIFY_REQUEST, /* attempts to receive hello verify request message */ TRY_RECV_ENCRYPTED_EXTENSIONS, /* attempts to receive encrypted extensions message */ TRY_RECV_CERTIFICATE, /* attempts to receive certificate message */ TRY_RECV_SERVER_KEY_EXCHANGE, /* attempts to receive server key exchange message */ TRY_RECV_CERTIFICATE_REQUEST, /* attempts to receive certificate request message */ TRY_RECV_SERVER_HELLO_DONE, /* attempts to receive server hello done message */ TRY_RECV_CLIENT_KEY_EXCHANGE, /* attempts to receive client key exchange message */ TRY_RECV_CERTIFICATE_VERIFY, /* attempts to receive certificate verify message */ TRY_RECV_NEW_SESSION_TICKET, /* attempts to receive new session ticket message */ TRY_RECV_END_OF_EARLY_DATA, /* attempts to receive end of early data message */ TRY_RECV_FINISH, /* attempts to receive finished message */ TRY_RECV_KEY_UPDATE, /* attempts to receive keyupdate message */ TRY_RECV_HELLO_REQUEST, /* attempts to receive hello request message */ HS_STATE_BUTT = 255 /* enumerated Maximum Value */ } HITLS_HandshakeState; typedef enum { TLS_PROCESS_STATE_A, TLS_PROCESS_STATE_B } HitlsProcessState; typedef void (*SendAlertCallback)(const TLS_Ctx *ctx, ALERT_Level level, ALERT_Description description); typedef bool (*GetAlertFlagCallback)(const TLS_Ctx *ctx); typedef int32_t (*UnexpectMsgHandleCallback)(TLS_Ctx *ctx, uint32_t msgType, const uint8_t *data, uint32_t dataLen, bool isPlain); /** Connection management configure */ typedef struct TLSCtxConfig { void *userData; /* user data */ uint16_t linkMtu; /* Maximum transport unit of a path (bytes), including IP header and udp/tcp header */ uint16_t pmtu; /* Maximum transport unit of a path (bytes) */ bool isSupportPto; /* is support process based TLS offload */ uint8_t reserved[1]; /* four-byte alignment */ TLS_Config tlsConfig; /* tls configure context */ } TLS_CtxConfig; typedef struct { uint32_t algRemainTime; /* current key usage times */ uint8_t preMacKey[MAC_KEY_LEN]; /* previous random key */ uint8_t macKey[MAC_KEY_LEN]; /* random key used by the current algorithm */ } CookieInfo; typedef struct { uint16_t version; /* negotiated version */ uint16_t clientVersion; /* version field of client hello */ uint32_t cookieSize; /* cookie length */ uint8_t *cookie; /* cookie data */ CookieInfo cookieInfo; /* cookie info with calculation and verification */ CipherSuiteInfo cipherSuiteInfo; /* cipher suite info */ HITLS_SignHashAlgo signScheme; /* sign algorithm used by the local */ uint8_t *alpnSelected; /* alpn proto */ uint32_t alpnSelectedSize; uint8_t clientVerifyData[MAX_DIGEST_SIZE]; /* client verify data */ uint8_t serverVerifyData[MAX_DIGEST_SIZE]; /* server verify data */ uint8_t clientRandom[RANDOM_SIZE]; /* client random number */ uint8_t serverRandom[RANDOM_SIZE]; /* server random number */ uint32_t clientVerifyDataSize; /* client verify data size */ uint32_t serverVerifyDataSize; /* server verify data size */ uint32_t renegotiationNum; /* the number of renegotiation */ uint32_t certReqSendTime; /* certificate request sending times */ uint32_t tls13BasicKeyExMode; /* TLS13_KE_MODE_PSK_ONLY || TLS13_KE_MODE_PSK_WITH_DHE || TLS13_CERT_AUTH_WITH_DHE */ uint16_t negotiatedGroup; /* negotiated group */ uint16_t recordSizeLimit; /* read record size limit */ uint16_t renegoRecordSizeLimit; uint16_t peerRecordSizeLimit; /* write record size limit */ bool isResume; /* whether to resume the session */ bool isRenegotiation; /* whether to renegotiate */ bool isSecureRenegotiation; /* whether security renegotiation */ bool isExtendedMasterSecret; /* whether to calculate the extended master sercret */ bool isEncryptThenMac; /* Whether to enable EncryptThenMac */ bool isEncryptThenMacRead; /* Whether to enable EncryptThenMacRead */ bool isEncryptThenMacWrite; /* Whether to enable EncryptThenMacWrite */ bool isTicket; /* whether to negotiate tickets, only below tls1.3 */ bool isSniStateOK; /* Whether server successfully processes the server_name callback */ } TLS_NegotiatedInfo; typedef struct { uint16_t *groups; /* all groups sent by the peer end */ uint32_t groupsSize; /* size of a group */ uint16_t *cipherSuites; /* all cipher suites sent by the peer end */ uint16_t cipherSuitesSize; /* size of a cipher suites */ HITLS_SignHashAlgo peerSignHashAlg; /* peer signature algorithm */ uint16_t *signatureAlgorithms; uint16_t signatureAlgorithmsSize; HITLS_ERROR verifyResult; /* record the certificate verification result of the peer end */ HITLS_TrustedCAList *caList; /* peer trusted ca list */ } PeerInfo; struct TlsCtx { bool isClient; /* is Client */ bool userShutDown; /* record whether the local end invokes the HITLS_Close */ bool userRenego; /* record whether the local end initiates renegotiation */ uint8_t rwstate; /* record the current internal read and write state */ CM_State preState; CM_State state; uint32_t shutdownState; /* Record the shutdown state */ void *rUio; /* read uio */ void *uio; /* write uio */ void *bUio; /* Storing uio */ HS_Ctx *hsCtx; /* handshake context */ CCS_Ctx *ccsCtx; /* ChangeCipherSpec context */ ALERT_Ctx *alertCtx; /* alert context */ REC_Ctx *recCtx; /* record context */ struct { IsRecvCcsCallback isRecvCCS; SendCcsCallback sendCCS; /* send a CCS message */ CtrlCcsCallback ctrlCCS; /* controlling CCS */ SendAlertCallback sendAlert; /* set the alert message to be sent */ GetAlertFlagCallback getAlertFlag; /* get alert state */ UnexpectMsgHandleCallback unexpectedMsgProcessCb; /* the callback for unexpected messages */ } method; PeerInfo peerInfo; /* Temporarily save the messages sent by the peer end */ TLS_CtxConfig config; /* private configuration */ TLS_Config *globalConfig; /* global configuration */ TLS_NegotiatedInfo negotiatedInfo; /* TLS negotiation information */ HITLS_Session *session; /* session information */ uint8_t clientAppTrafficSecret[MAX_DIGEST_SIZE]; /* TLS1.3 client app traffic secret */ uint8_t serverAppTrafficSecret[MAX_DIGEST_SIZE]; /* TLS1.3 server app traffic secret */ uint8_t resumptionMasterSecret[MAX_DIGEST_SIZE]; /* TLS1.3 session resume secret */ uint32_t bytesLeftToRead; /* bytes left to read after hs header has parsed */ uint32_t keyUpdateType; /* TLS1.3 key update type */ bool isKeyUpdateRequest; /* TLS1.3 Check whether there are unsent key update messages */ bool haveClientPointFormats; /* whether the EC point format extension in the client hello is processed */ uint8_t peekFlag; /* peekFlag equals 0, read mode; otherwise, peek mode */ bool hasParsedHsMsgHeader; /* has parsed current hs msg header */ int32_t errorCode; /* Record the tls error code */ HITLS_HASH_Ctx *phaHash; /* tls1.3 pha: Handshake main process hash */ HITLS_HASH_Ctx *phaCurHash; /* tls1.3 pha: Temporarily store the current pha hash */ PHA_State phaState; /* tls1.3 pha state */ uint8_t *certificateReqCtx; /* tls1.3 pha certificate_request_context */ uint32_t certificateReqCtxSize; /* tls1.3 pha certificate_request_context */ bool isDtlsListen; bool plainAlertForbid; /* tls1.3 forbid to receive plain alert message */ bool allowAppOut; /* whether user used HITLS_read to start renegotiation */ bool noQueryMtu; /* Don't query the mtu from bio */ bool needQueryMtu; /* whether need query mtu from bio */ bool mtuModified; /* whether mtu has been modified */ }; typedef struct { uint8_t **buf; // &hsCtx->msgbuf uint32_t *bufLen; // &hsCtx->bufferLen uint32_t *bufOffset; // &hsCtx->msgLen } PackPacket; #define LIBCTX_FROM_CTX(ctx) ((ctx == NULL) ? NULL : (ctx)->config.tlsConfig.libCtx) #define ATTRIBUTE_FROM_CTX(ctx) ((ctx == NULL) ? NULL : (ctx)->config.tlsConfig.attrName) #define CUSTOM_EXT_FROM_CTX(ctx) ((ctx == NULL) ? NULL : (ctx)->config.tlsConfig.customExts) #ifdef __cplusplus } #endif #endif /* TLS_H */
2301_79861745/bench_create
tls/include/tls.h
C
unknown
15,958
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef TLS_BINLOG_ID_H #define TLS_BINLOG_ID_H #include <stdint.h> #include "hitls_build.h" #include "bsl_log.h" #include "bsl_log_internal.h" #ifdef __cplusplus extern "C" { #endif #ifdef HITLS_BSL_LOG #define BINGLOG_STR(str) (str) #else #define BINGLOG_STR(str) NULL #endif enum TLS_BINLOG_ID { BINLOG_ID15001 = 15001, BINLOG_ID15002, BINLOG_ID15003, BINLOG_ID15004, BINLOG_ID15005, BINLOG_ID15006, BINLOG_ID15007, BINLOG_ID15008, BINLOG_ID15009, BINLOG_ID15010, BINLOG_ID15011, BINLOG_ID15012, BINLOG_ID15013, BINLOG_ID15014, BINLOG_ID15015, BINLOG_ID15016, BINLOG_ID15017, BINLOG_ID15018, BINLOG_ID15019, BINLOG_ID15020, BINLOG_ID15021, BINLOG_ID15022, BINLOG_ID15023, BINLOG_ID15024, BINLOG_ID15025, BINLOG_ID15026, BINLOG_ID15027, BINLOG_ID15028, BINLOG_ID15029, BINLOG_ID15030, BINLOG_ID15031, BINLOG_ID15032, BINLOG_ID15033, BINLOG_ID15034, BINLOG_ID15035, BINLOG_ID15036, BINLOG_ID15037, BINLOG_ID15038, BINLOG_ID15039, BINLOG_ID15040, BINLOG_ID15041, BINLOG_ID15042, BINLOG_ID15043, BINLOG_ID15044, BINLOG_ID15045, BINLOG_ID15046, BINLOG_ID15047, BINLOG_ID15048, BINLOG_ID15049, BINLOG_ID15050, BINLOG_ID15051, BINLOG_ID15052, BINLOG_ID15053, BINLOG_ID15054, BINLOG_ID15055, BINLOG_ID15056, BINLOG_ID15057, BINLOG_ID15058, BINLOG_ID15059, BINLOG_ID15060, BINLOG_ID15061, BINLOG_ID15062, BINLOG_ID15063, BINLOG_ID15064, BINLOG_ID15065, BINLOG_ID15066, BINLOG_ID15067, BINLOG_ID15068, BINLOG_ID15069, BINLOG_ID15070, BINLOG_ID15071, BINLOG_ID15072, BINLOG_ID15073, BINLOG_ID15074, BINLOG_ID15075, BINLOG_ID15076, BINLOG_ID15077, BINLOG_ID15078, BINLOG_ID15079, BINLOG_ID15080, BINLOG_ID15081, BINLOG_ID15082, BINLOG_ID15083, BINLOG_ID15084, BINLOG_ID15085, BINLOG_ID15086, BINLOG_ID15087, BINLOG_ID15088, BINLOG_ID15089, BINLOG_ID15090, BINLOG_ID15091, BINLOG_ID15092, BINLOG_ID15093, BINLOG_ID15094, BINLOG_ID15095, BINLOG_ID15096, BINLOG_ID15097, BINLOG_ID15098, BINLOG_ID15099, BINLOG_ID15100, BINLOG_ID15101, BINLOG_ID15102, BINLOG_ID15103, BINLOG_ID15104, BINLOG_ID15105, BINLOG_ID15106, BINLOG_ID15107, BINLOG_ID15108, BINLOG_ID15109, BINLOG_ID15110, BINLOG_ID15111, BINLOG_ID15112, BINLOG_ID15113, BINLOG_ID15114, BINLOG_ID15115, BINLOG_ID15116, BINLOG_ID15117, BINLOG_ID15118, BINLOG_ID15119, BINLOG_ID15120, BINLOG_ID15121, BINLOG_ID15122, BINLOG_ID15123, BINLOG_ID15124, BINLOG_ID15125, BINLOG_ID15126, BINLOG_ID15127, BINLOG_ID15128, BINLOG_ID15129, BINLOG_ID15130, BINLOG_ID15131, BINLOG_ID15132, BINLOG_ID15133, BINLOG_ID15134, BINLOG_ID15135, BINLOG_ID15136, BINLOG_ID15137, BINLOG_ID15138, BINLOG_ID15139, BINLOG_ID15140, BINLOG_ID15141, BINLOG_ID15142, BINLOG_ID15143, BINLOG_ID15144, BINLOG_ID15145, BINLOG_ID15146, BINLOG_ID15147, BINLOG_ID15148, BINLOG_ID15149, BINLOG_ID15150, BINLOG_ID15151, BINLOG_ID15152, BINLOG_ID15153, BINLOG_ID15154, BINLOG_ID15155, BINLOG_ID15156, BINLOG_ID15157, BINLOG_ID15158, BINLOG_ID15159, BINLOG_ID15160, BINLOG_ID15161, BINLOG_ID15162, BINLOG_ID15163, BINLOG_ID15164, BINLOG_ID15165, BINLOG_ID15166, BINLOG_ID15167, BINLOG_ID15168, BINLOG_ID15169, BINLOG_ID15170, BINLOG_ID15171, BINLOG_ID15172, BINLOG_ID15173, BINLOG_ID15174, BINLOG_ID15175, BINLOG_ID15176, BINLOG_ID15177, BINLOG_ID15178, BINLOG_ID15179, BINLOG_ID15180, BINLOG_ID15181, BINLOG_ID15182, BINLOG_ID15183, BINLOG_ID15184, BINLOG_ID15185, BINLOG_ID15186, BINLOG_ID15187, BINLOG_ID15188, BINLOG_ID15189, BINLOG_ID15190, BINLOG_ID15191, BINLOG_ID15192, BINLOG_ID15193, BINLOG_ID15194, BINLOG_ID15195, BINLOG_ID15196, BINLOG_ID15197, BINLOG_ID15198, BINLOG_ID15199, BINLOG_ID15200, BINLOG_ID15201, BINLOG_ID15202, BINLOG_ID15203, BINLOG_ID15204, BINLOG_ID15205, BINLOG_ID15206, BINLOG_ID15207, BINLOG_ID15208, BINLOG_ID15209, BINLOG_ID15210, BINLOG_ID15211, BINLOG_ID15212, BINLOG_ID15213, BINLOG_ID15214, BINLOG_ID15215, BINLOG_ID15216, BINLOG_ID15217, BINLOG_ID15218, BINLOG_ID15219, BINLOG_ID15220, BINLOG_ID15221, BINLOG_ID15222, BINLOG_ID15223, BINLOG_ID15224, BINLOG_ID15225, BINLOG_ID15226, BINLOG_ID15227, BINLOG_ID15228, BINLOG_ID15229, BINLOG_ID15230, BINLOG_ID15231, BINLOG_ID15232, BINLOG_ID15233, BINLOG_ID15234, BINLOG_ID15235, BINLOG_ID15236, BINLOG_ID15237, BINLOG_ID15238, BINLOG_ID15239, BINLOG_ID15240, BINLOG_ID15241, BINLOG_ID15242, BINLOG_ID15243, BINLOG_ID15244, BINLOG_ID15245, BINLOG_ID15246, BINLOG_ID15247, BINLOG_ID15248, BINLOG_ID15249, BINLOG_ID15250, BINLOG_ID15251, BINLOG_ID15252, BINLOG_ID15253, BINLOG_ID15254, BINLOG_ID15255, BINLOG_ID15256, BINLOG_ID15257, BINLOG_ID15258, BINLOG_ID15259, BINLOG_ID15260, BINLOG_ID15261, BINLOG_ID15262, BINLOG_ID15263, BINLOG_ID15264, BINLOG_ID15265, BINLOG_ID15266, BINLOG_ID15267, BINLOG_ID15268, BINLOG_ID15269, BINLOG_ID15270, BINLOG_ID15271, BINLOG_ID15272, BINLOG_ID15273, BINLOG_ID15274, BINLOG_ID15275, BINLOG_ID15276, BINLOG_ID15277, BINLOG_ID15278, BINLOG_ID15279, BINLOG_ID15280, BINLOG_ID15281, BINLOG_ID15282, BINLOG_ID15283, BINLOG_ID15284, BINLOG_ID15285, BINLOG_ID15286, BINLOG_ID15287, BINLOG_ID15288, BINLOG_ID15289, BINLOG_ID15290, BINLOG_ID15291, BINLOG_ID15292, BINLOG_ID15293, BINLOG_ID15294, BINLOG_ID15295, BINLOG_ID15296, BINLOG_ID15297, BINLOG_ID15298, BINLOG_ID15299, BINLOG_ID15300, BINLOG_ID15301, BINLOG_ID15302, BINLOG_ID15303, BINLOG_ID15304, BINLOG_ID15305, BINLOG_ID15306, BINLOG_ID15307, BINLOG_ID15308, BINLOG_ID15309, BINLOG_ID15310, BINLOG_ID15311, BINLOG_ID15312, BINLOG_ID15313, BINLOG_ID15314, BINLOG_ID15315, BINLOG_ID15316, BINLOG_ID15317, BINLOG_ID15318, BINLOG_ID15319, BINLOG_ID15320, BINLOG_ID15321, BINLOG_ID15322, BINLOG_ID15323, BINLOG_ID15324, BINLOG_ID15325, BINLOG_ID15326, BINLOG_ID15327, BINLOG_ID15328, BINLOG_ID15329, BINLOG_ID15330, BINLOG_ID15331, BINLOG_ID15332, BINLOG_ID15333, BINLOG_ID15334, BINLOG_ID15335, BINLOG_ID15336, BINLOG_ID15337, BINLOG_ID15338, BINLOG_ID15339, BINLOG_ID15340, BINLOG_ID15341, BINLOG_ID15342, BINLOG_ID15343, BINLOG_ID15344, BINLOG_ID15345, BINLOG_ID15346, BINLOG_ID15347, BINLOG_ID15348, BINLOG_ID15349, BINLOG_ID15350, BINLOG_ID15351, BINLOG_ID15352, BINLOG_ID15353, BINLOG_ID15354, BINLOG_ID15355, BINLOG_ID15356, BINLOG_ID15357, BINLOG_ID15358, BINLOG_ID15359, BINLOG_ID15360, BINLOG_ID15361, BINLOG_ID15362, BINLOG_ID15363, BINLOG_ID15364, BINLOG_ID15365, BINLOG_ID15366, BINLOG_ID15367, BINLOG_ID15368, BINLOG_ID15369, BINLOG_ID15370, BINLOG_ID15371, BINLOG_ID15372, BINLOG_ID15373, BINLOG_ID15374, BINLOG_ID15375, BINLOG_ID15376, BINLOG_ID15377, BINLOG_ID15378, BINLOG_ID15379, BINLOG_ID15380, BINLOG_ID15381, BINLOG_ID15382, BINLOG_ID15383, BINLOG_ID15384, BINLOG_ID15385, BINLOG_ID15386, BINLOG_ID15387, BINLOG_ID15388, BINLOG_ID15389, BINLOG_ID15390, BINLOG_ID15391, BINLOG_ID15392, BINLOG_ID15393, BINLOG_ID15394, BINLOG_ID15395, BINLOG_ID15396, BINLOG_ID15397, BINLOG_ID15398, BINLOG_ID15399, BINLOG_ID15400, BINLOG_ID15401, BINLOG_ID15402, BINLOG_ID15403, BINLOG_ID15404, BINLOG_ID15405, BINLOG_ID15406, BINLOG_ID15407, BINLOG_ID15408, BINLOG_ID15409, BINLOG_ID15410, BINLOG_ID15411, BINLOG_ID15412, BINLOG_ID15413, BINLOG_ID15414, BINLOG_ID15415, BINLOG_ID15416, BINLOG_ID15417, BINLOG_ID15418, BINLOG_ID15419, BINLOG_ID15420, BINLOG_ID15421, BINLOG_ID15422, BINLOG_ID15423, BINLOG_ID15424, BINLOG_ID15425, BINLOG_ID15426, BINLOG_ID15427, BINLOG_ID15428, BINLOG_ID15429, BINLOG_ID15430, BINLOG_ID15431, BINLOG_ID15432, BINLOG_ID15433, BINLOG_ID15434, BINLOG_ID15435, BINLOG_ID15436, BINLOG_ID15437, BINLOG_ID15438, BINLOG_ID15439, BINLOG_ID15440, BINLOG_ID15441, BINLOG_ID15442, BINLOG_ID15443, BINLOG_ID15444, BINLOG_ID15445, BINLOG_ID15446, BINLOG_ID15447, BINLOG_ID15448, BINLOG_ID15449, BINLOG_ID15450, BINLOG_ID15451, BINLOG_ID15452, BINLOG_ID15453, BINLOG_ID15454, BINLOG_ID15455, BINLOG_ID15456, BINLOG_ID15457, BINLOG_ID15458, BINLOG_ID15459, BINLOG_ID15460, BINLOG_ID15461, BINLOG_ID15462, BINLOG_ID15463, BINLOG_ID15464, BINLOG_ID15465, BINLOG_ID15466, BINLOG_ID15467, BINLOG_ID15468, BINLOG_ID15469, BINLOG_ID15470, BINLOG_ID15471, BINLOG_ID15472, BINLOG_ID15473, BINLOG_ID15474, BINLOG_ID15475, BINLOG_ID15476, BINLOG_ID15477, BINLOG_ID15478, BINLOG_ID15479, BINLOG_ID15480, BINLOG_ID15481, BINLOG_ID15482, BINLOG_ID15483, BINLOG_ID15484, BINLOG_ID15485, BINLOG_ID15486, BINLOG_ID15487, BINLOG_ID15488, BINLOG_ID15489, BINLOG_ID15490, BINLOG_ID15491, BINLOG_ID15492, BINLOG_ID15493, BINLOG_ID15494, BINLOG_ID15495, BINLOG_ID15496, BINLOG_ID15497, BINLOG_ID15498, BINLOG_ID15499, BINLOG_ID15500, BINLOG_ID15501, BINLOG_ID15502, BINLOG_ID15503, BINLOG_ID15504, BINLOG_ID15505, BINLOG_ID15506, BINLOG_ID15507, BINLOG_ID15508, BINLOG_ID15509, BINLOG_ID15510, BINLOG_ID15511, BINLOG_ID15512, BINLOG_ID15513, BINLOG_ID15514, BINLOG_ID15515, BINLOG_ID15516, BINLOG_ID15517, BINLOG_ID15518, BINLOG_ID15519, BINLOG_ID15520, BINLOG_ID15521, BINLOG_ID15522, BINLOG_ID15523, BINLOG_ID15524, BINLOG_ID15525, BINLOG_ID15526, BINLOG_ID15527, BINLOG_ID15528, BINLOG_ID15529, BINLOG_ID15530, BINLOG_ID15531, BINLOG_ID15532, BINLOG_ID15533, BINLOG_ID15534, BINLOG_ID15535, BINLOG_ID15536, BINLOG_ID15537, BINLOG_ID15538, BINLOG_ID15539, BINLOG_ID15540, BINLOG_ID15541, BINLOG_ID15542, BINLOG_ID15543, BINLOG_ID15544, BINLOG_ID15545, BINLOG_ID15546, BINLOG_ID15547, BINLOG_ID15548, BINLOG_ID15549, BINLOG_ID15550, BINLOG_ID15551, BINLOG_ID15552, BINLOG_ID15553, BINLOG_ID15554, BINLOG_ID15555, BINLOG_ID15556, BINLOG_ID15557, BINLOG_ID15558, BINLOG_ID15559, BINLOG_ID15560, BINLOG_ID15561, BINLOG_ID15562, BINLOG_ID15563, BINLOG_ID15564, BINLOG_ID15565, BINLOG_ID15566, BINLOG_ID15567, BINLOG_ID15568, BINLOG_ID15569, BINLOG_ID15570, BINLOG_ID15571, BINLOG_ID15572, BINLOG_ID15573, BINLOG_ID15574, BINLOG_ID15575, BINLOG_ID15576, BINLOG_ID15577, BINLOG_ID15578, BINLOG_ID15579, BINLOG_ID15580, BINLOG_ID15581, BINLOG_ID15582, BINLOG_ID15583, BINLOG_ID15584, BINLOG_ID15585, BINLOG_ID15586, BINLOG_ID15587, BINLOG_ID15588, BINLOG_ID15589, BINLOG_ID15590, BINLOG_ID15591, BINLOG_ID15592, BINLOG_ID15593, BINLOG_ID15594, BINLOG_ID15595, BINLOG_ID15596, BINLOG_ID15597, BINLOG_ID15598, BINLOG_ID15599, BINLOG_ID15600, BINLOG_ID15601, BINLOG_ID15602, BINLOG_ID15603, BINLOG_ID15604, BINLOG_ID15605, BINLOG_ID15606, BINLOG_ID15607, BINLOG_ID15608, BINLOG_ID15609, BINLOG_ID15610, BINLOG_ID15611, BINLOG_ID15612, BINLOG_ID15613, BINLOG_ID15614, BINLOG_ID15615, BINLOG_ID15616, BINLOG_ID15617, BINLOG_ID15618, BINLOG_ID15619, BINLOG_ID15620, BINLOG_ID15621, BINLOG_ID15622, BINLOG_ID15623, BINLOG_ID15624, BINLOG_ID15625, BINLOG_ID15626, BINLOG_ID15627, BINLOG_ID15628, BINLOG_ID15629, BINLOG_ID15630, BINLOG_ID15631, BINLOG_ID15632, BINLOG_ID15633, BINLOG_ID15634, BINLOG_ID15635, BINLOG_ID15636, BINLOG_ID15637, BINLOG_ID15638, BINLOG_ID15639, BINLOG_ID15640, BINLOG_ID15641, BINLOG_ID15642, BINLOG_ID15643, BINLOG_ID15644, BINLOG_ID15645, BINLOG_ID15646, BINLOG_ID15647, BINLOG_ID15648, BINLOG_ID15649, BINLOG_ID15650, BINLOG_ID15651, BINLOG_ID15652, BINLOG_ID15653, BINLOG_ID15654, BINLOG_ID15655, BINLOG_ID15656, BINLOG_ID15657, BINLOG_ID15658, BINLOG_ID15659, BINLOG_ID15660, BINLOG_ID15661, BINLOG_ID15662, BINLOG_ID15663, BINLOG_ID15664, BINLOG_ID15665, BINLOG_ID15666, BINLOG_ID15667, BINLOG_ID15668, BINLOG_ID15669, BINLOG_ID15670, BINLOG_ID15671, BINLOG_ID15672, BINLOG_ID15673, BINLOG_ID15674, BINLOG_ID15675, BINLOG_ID15676, BINLOG_ID15677, BINLOG_ID15678, BINLOG_ID15679, BINLOG_ID15680, BINLOG_ID15681, BINLOG_ID15682, BINLOG_ID15683, BINLOG_ID15684, BINLOG_ID15685, BINLOG_ID15686, BINLOG_ID15687, BINLOG_ID15688, BINLOG_ID15689, BINLOG_ID15690, BINLOG_ID15691, BINLOG_ID15692, BINLOG_ID15693, BINLOG_ID15694, BINLOG_ID15695, BINLOG_ID15696, BINLOG_ID15697, BINLOG_ID15698, BINLOG_ID15699, BINLOG_ID15700, BINLOG_ID15701, BINLOG_ID15702, BINLOG_ID15703, BINLOG_ID15704, BINLOG_ID15705, BINLOG_ID15706, BINLOG_ID15707, BINLOG_ID15708, BINLOG_ID15709, BINLOG_ID15710, BINLOG_ID15711, BINLOG_ID15712, BINLOG_ID15713, BINLOG_ID15714, BINLOG_ID15715, BINLOG_ID15716, BINLOG_ID15717, BINLOG_ID15718, BINLOG_ID15719, BINLOG_ID15720, BINLOG_ID15721, BINLOG_ID15722, BINLOG_ID15723, BINLOG_ID15724, BINLOG_ID15725, BINLOG_ID15726, BINLOG_ID15727, BINLOG_ID15728, BINLOG_ID15729, BINLOG_ID15730, BINLOG_ID15731, BINLOG_ID15732, BINLOG_ID15733, BINLOG_ID15734, BINLOG_ID15735, BINLOG_ID15736, BINLOG_ID15737, BINLOG_ID15738, BINLOG_ID15739, BINLOG_ID15740, BINLOG_ID15741, BINLOG_ID15742, BINLOG_ID15743, BINLOG_ID15744, BINLOG_ID15745, BINLOG_ID15746, BINLOG_ID15747, BINLOG_ID15748, BINLOG_ID15749, BINLOG_ID15750, BINLOG_ID15751, BINLOG_ID15752, BINLOG_ID15753, BINLOG_ID15754, BINLOG_ID15755, BINLOG_ID15756, BINLOG_ID15757, BINLOG_ID15758, BINLOG_ID15759, BINLOG_ID15760, BINLOG_ID15761, BINLOG_ID15762, BINLOG_ID15763, BINLOG_ID15764, BINLOG_ID15765, BINLOG_ID15766, BINLOG_ID15767, BINLOG_ID15768, BINLOG_ID15769, BINLOG_ID15770, BINLOG_ID15771, BINLOG_ID15772, BINLOG_ID15773, BINLOG_ID15774, BINLOG_ID15775, BINLOG_ID15776, BINLOG_ID15777, BINLOG_ID15778, BINLOG_ID15779, BINLOG_ID15780, BINLOG_ID15781, BINLOG_ID15782, BINLOG_ID15783, BINLOG_ID15784, BINLOG_ID15785, BINLOG_ID15786, BINLOG_ID15787, BINLOG_ID15788, BINLOG_ID15789, BINLOG_ID15790, BINLOG_ID15791, BINLOG_ID15792, BINLOG_ID15793, BINLOG_ID15794, BINLOG_ID15795, BINLOG_ID15796, BINLOG_ID15797, BINLOG_ID15798, BINLOG_ID15799, BINLOG_ID15800, BINLOG_ID15801, BINLOG_ID15802, BINLOG_ID15803, BINLOG_ID15804, BINLOG_ID15805, BINLOG_ID15806, BINLOG_ID15807, BINLOG_ID15808, BINLOG_ID15809, BINLOG_ID15810, BINLOG_ID15811, BINLOG_ID15812, BINLOG_ID15813, BINLOG_ID15814, BINLOG_ID15815, BINLOG_ID15816, BINLOG_ID15817, BINLOG_ID15818, BINLOG_ID15819, BINLOG_ID15820, BINLOG_ID15821, BINLOG_ID15822, BINLOG_ID15823, BINLOG_ID15824, BINLOG_ID15825, BINLOG_ID15826, BINLOG_ID15827, BINLOG_ID15828, BINLOG_ID15829, BINLOG_ID15830, BINLOG_ID15831, BINLOG_ID15832, BINLOG_ID15833, BINLOG_ID15834, BINLOG_ID15835, BINLOG_ID15836, BINLOG_ID15837, BINLOG_ID15838, BINLOG_ID15839, BINLOG_ID15840, BINLOG_ID15841, BINLOG_ID15842, BINLOG_ID15843, BINLOG_ID15844, BINLOG_ID15845, BINLOG_ID15846, BINLOG_ID15847, BINLOG_ID15848, BINLOG_ID15849, BINLOG_ID15850, BINLOG_ID15851, BINLOG_ID15852, BINLOG_ID15853, BINLOG_ID15854, BINLOG_ID15855, BINLOG_ID15856, BINLOG_ID15857, BINLOG_ID15858, BINLOG_ID15859, BINLOG_ID15860, BINLOG_ID15861, BINLOG_ID15862, BINLOG_ID15863, BINLOG_ID15864, BINLOG_ID15865, BINLOG_ID15866, BINLOG_ID15867, BINLOG_ID15868, BINLOG_ID15869, BINLOG_ID15870, BINLOG_ID15871, BINLOG_ID15872, BINLOG_ID15873, BINLOG_ID15874, BINLOG_ID15875, BINLOG_ID15876, BINLOG_ID15877, BINLOG_ID15878, BINLOG_ID15879, BINLOG_ID15880, BINLOG_ID15881, BINLOG_ID15882, BINLOG_ID15883, BINLOG_ID15884, BINLOG_ID15885, BINLOG_ID15886, BINLOG_ID15887, BINLOG_ID15888, BINLOG_ID15889, BINLOG_ID15890, BINLOG_ID15891, BINLOG_ID15892, BINLOG_ID15893, BINLOG_ID15894, BINLOG_ID15895, BINLOG_ID15896, BINLOG_ID15897, BINLOG_ID15898, BINLOG_ID15899, BINLOG_ID15900, BINLOG_ID15901, BINLOG_ID15902, BINLOG_ID15903, BINLOG_ID15904, BINLOG_ID15905, BINLOG_ID15906, BINLOG_ID15907, BINLOG_ID15908, BINLOG_ID15909, BINLOG_ID15910, BINLOG_ID15911, BINLOG_ID15912, BINLOG_ID15913, BINLOG_ID15914, BINLOG_ID15915, BINLOG_ID15916, BINLOG_ID15917, BINLOG_ID15918, BINLOG_ID15919, BINLOG_ID15920, BINLOG_ID15921, BINLOG_ID15922, BINLOG_ID15923, BINLOG_ID15924, BINLOG_ID15925, BINLOG_ID15926, BINLOG_ID15927, BINLOG_ID15928, BINLOG_ID15929, BINLOG_ID15930, BINLOG_ID15931, BINLOG_ID15932, BINLOG_ID15933, BINLOG_ID15934, BINLOG_ID15935, BINLOG_ID15936, BINLOG_ID15937, BINLOG_ID15938, BINLOG_ID15939, BINLOG_ID15940, BINLOG_ID15941, BINLOG_ID15942, BINLOG_ID15943, BINLOG_ID15944, BINLOG_ID15945, BINLOG_ID15946, BINLOG_ID15947, BINLOG_ID15948, BINLOG_ID15949, BINLOG_ID15950, BINLOG_ID15951, BINLOG_ID15952, BINLOG_ID15953, BINLOG_ID15954, BINLOG_ID15955, BINLOG_ID15956, BINLOG_ID15957, BINLOG_ID15958, BINLOG_ID15959, BINLOG_ID15960, BINLOG_ID15961, BINLOG_ID15962, BINLOG_ID15963, BINLOG_ID15964, BINLOG_ID15965, BINLOG_ID15966, BINLOG_ID15967, BINLOG_ID15968, BINLOG_ID15969, BINLOG_ID15970, BINLOG_ID15971, BINLOG_ID15972, BINLOG_ID15973, BINLOG_ID15974, BINLOG_ID15975, BINLOG_ID15976, BINLOG_ID15977, BINLOG_ID15978, BINLOG_ID15979, BINLOG_ID15980, BINLOG_ID15981, BINLOG_ID15982, BINLOG_ID15983, BINLOG_ID15984, BINLOG_ID15985, BINLOG_ID15986, BINLOG_ID15987, BINLOG_ID15988, BINLOG_ID15989, BINLOG_ID15990, BINLOG_ID15991, BINLOG_ID15992, BINLOG_ID15993, BINLOG_ID15994, BINLOG_ID15995, BINLOG_ID15996, BINLOG_ID15997, BINLOG_ID15998, BINLOG_ID15999, BINLOG_ID16000, BINLOG_ID16001, BINLOG_ID16002, BINLOG_ID16003, BINLOG_ID16004, BINLOG_ID16005, BINLOG_ID16006, BINLOG_ID16007, BINLOG_ID16008, BINLOG_ID16009, BINLOG_ID16010, BINLOG_ID16011, BINLOG_ID16012, BINLOG_ID16013, BINLOG_ID16014, BINLOG_ID16015, BINLOG_ID16016, BINLOG_ID16017, BINLOG_ID16018, BINLOG_ID16019, BINLOG_ID16020, BINLOG_ID16021, BINLOG_ID16022, BINLOG_ID16023, BINLOG_ID16024, BINLOG_ID16025, BINLOG_ID16026, BINLOG_ID16027, BINLOG_ID16028, BINLOG_ID16029, BINLOG_ID16030, BINLOG_ID16031, BINLOG_ID16032, BINLOG_ID16033, BINLOG_ID16034, BINLOG_ID16035, BINLOG_ID16036, BINLOG_ID16037, BINLOG_ID16038, BINLOG_ID16039, BINLOG_ID16040, BINLOG_ID16041, BINLOG_ID16042, BINLOG_ID16043, BINLOG_ID16044, BINLOG_ID16045, BINLOG_ID16046, BINLOG_ID16047, BINLOG_ID16048, BINLOG_ID16049, BINLOG_ID16050, BINLOG_ID16051, BINLOG_ID16052, BINLOG_ID16053, BINLOG_ID16054, BINLOG_ID16055, BINLOG_ID16056, BINLOG_ID16057, BINLOG_ID16058, BINLOG_ID16059, BINLOG_ID16060, BINLOG_ID16061, BINLOG_ID16062, BINLOG_ID16063, BINLOG_ID16064, BINLOG_ID16065, BINLOG_ID16066, BINLOG_ID16067, BINLOG_ID16068, BINLOG_ID16069, BINLOG_ID16070, BINLOG_ID16071, BINLOG_ID16072, BINLOG_ID16073, BINLOG_ID16074, BINLOG_ID16075, BINLOG_ID16076, BINLOG_ID16077, BINLOG_ID16078, BINLOG_ID16079, BINLOG_ID16080, BINLOG_ID16081, BINLOG_ID16082, BINLOG_ID16083, BINLOG_ID16084, BINLOG_ID16085, BINLOG_ID16086, BINLOG_ID16087, BINLOG_ID16088, BINLOG_ID16089, BINLOG_ID16090, BINLOG_ID16091, BINLOG_ID16092, BINLOG_ID16093, BINLOG_ID16094, BINLOG_ID16095, BINLOG_ID16096, BINLOG_ID16097, BINLOG_ID16098, BINLOG_ID16099, BINLOG_ID16100, BINLOG_ID16101, BINLOG_ID16102, BINLOG_ID16103, BINLOG_ID16104, BINLOG_ID16105, BINLOG_ID16106, BINLOG_ID16107, BINLOG_ID16108, BINLOG_ID16109, BINLOG_ID16110, BINLOG_ID16111, BINLOG_ID16112, BINLOG_ID16113, BINLOG_ID16114, BINLOG_ID16115, BINLOG_ID16116, BINLOG_ID16117, BINLOG_ID16118, BINLOG_ID16119, BINLOG_ID16120, BINLOG_ID16121, BINLOG_ID16122, BINLOG_ID16123, BINLOG_ID16124, BINLOG_ID16125, BINLOG_ID16126, BINLOG_ID16127, BINLOG_ID16128, BINLOG_ID16129, BINLOG_ID16130, BINLOG_ID16131, BINLOG_ID16132, BINLOG_ID16133, BINLOG_ID16134, BINLOG_ID16135, BINLOG_ID16136, BINLOG_ID16137, BINLOG_ID16138, BINLOG_ID16139, BINLOG_ID16140, BINLOG_ID16141, BINLOG_ID16142, BINLOG_ID16143, BINLOG_ID16144, BINLOG_ID16145, BINLOG_ID16146, BINLOG_ID16147, BINLOG_ID16148, BINLOG_ID16149, BINLOG_ID16150, BINLOG_ID16151, BINLOG_ID16152, BINLOG_ID16153, BINLOG_ID16154, BINLOG_ID16155, BINLOG_ID16156, BINLOG_ID16157, BINLOG_ID16158, BINLOG_ID16159, BINLOG_ID16160, BINLOG_ID16161, BINLOG_ID16162, BINLOG_ID16163, BINLOG_ID16164, BINLOG_ID16165, BINLOG_ID16166, BINLOG_ID16167, BINLOG_ID16168, BINLOG_ID16169, BINLOG_ID16170, BINLOG_ID16171, BINLOG_ID16172, BINLOG_ID16173, BINLOG_ID16174, BINLOG_ID16175, BINLOG_ID16176, BINLOG_ID16177, BINLOG_ID16178, BINLOG_ID16179, BINLOG_ID16180, BINLOG_ID16181, BINLOG_ID16182, BINLOG_ID16183, BINLOG_ID16184, BINLOG_ID16185, BINLOG_ID16186, BINLOG_ID16187, BINLOG_ID16188, BINLOG_ID16189, BINLOG_ID16190, BINLOG_ID16191, BINLOG_ID16192, BINLOG_ID16193, BINLOG_ID16194, BINLOG_ID16195, BINLOG_ID16196, BINLOG_ID16197, BINLOG_ID16198, BINLOG_ID16199, BINLOG_ID16200, BINLOG_ID16201, BINLOG_ID16202, BINLOG_ID16203, BINLOG_ID16204, BINLOG_ID16205, BINLOG_ID16206, BINLOG_ID16207, BINLOG_ID16208, BINLOG_ID16209, BINLOG_ID16210, BINLOG_ID16211, BINLOG_ID16212, BINLOG_ID16213, BINLOG_ID16214, BINLOG_ID16215, BINLOG_ID16216, BINLOG_ID16217, BINLOG_ID16218, BINLOG_ID16219, BINLOG_ID16220, BINLOG_ID16221, BINLOG_ID16222, BINLOG_ID16223, BINLOG_ID16224, BINLOG_ID16225, BINLOG_ID16226, BINLOG_ID16227, BINLOG_ID16228, BINLOG_ID16229, BINLOG_ID16230, BINLOG_ID16231, BINLOG_ID16232, BINLOG_ID16233, BINLOG_ID16234, BINLOG_ID16235, BINLOG_ID16236, BINLOG_ID16237, BINLOG_ID16238, BINLOG_ID16239, BINLOG_ID16240, BINLOG_ID16241, BINLOG_ID16242, BINLOG_ID16243, BINLOG_ID16244, BINLOG_ID16245, BINLOG_ID16246, BINLOG_ID16247, BINLOG_ID16248, BINLOG_ID16249, BINLOG_ID16250, BINLOG_ID16251, BINLOG_ID16252, BINLOG_ID16253, BINLOG_ID16254, BINLOG_ID16255, BINLOG_ID16256, BINLOG_ID16257, BINLOG_ID16258, BINLOG_ID16259, BINLOG_ID16260, BINLOG_ID16261, BINLOG_ID16262, BINLOG_ID16263, BINLOG_ID16264, BINLOG_ID16265, BINLOG_ID16266, BINLOG_ID16267, BINLOG_ID16268, BINLOG_ID16269, BINLOG_ID16270, BINLOG_ID16271, BINLOG_ID16272, BINLOG_ID16273, BINLOG_ID16274, BINLOG_ID16275, BINLOG_ID16276, BINLOG_ID16277, BINLOG_ID16278, BINLOG_ID16279, BINLOG_ID16280, BINLOG_ID16281, BINLOG_ID16282, BINLOG_ID16283, BINLOG_ID16284, BINLOG_ID16285, BINLOG_ID16286, BINLOG_ID16287, BINLOG_ID16288, BINLOG_ID16289, BINLOG_ID16290, BINLOG_ID16291, BINLOG_ID16292, BINLOG_ID16293, BINLOG_ID16294, BINLOG_ID16295, BINLOG_ID16296, BINLOG_ID16297, BINLOG_ID16298, BINLOG_ID16299, BINLOG_ID16300, BINLOG_ID16301, BINLOG_ID16302, BINLOG_ID16303, BINLOG_ID16304, BINLOG_ID16305, BINLOG_ID16306, BINLOG_ID16307, BINLOG_ID16308, BINLOG_ID16309, BINLOG_ID16310, BINLOG_ID16311, BINLOG_ID16312, BINLOG_ID16313, BINLOG_ID16314, BINLOG_ID16315, BINLOG_ID16316, BINLOG_ID16317, BINLOG_ID16318, BINLOG_ID16319, BINLOG_ID16320, BINLOG_ID16321, BINLOG_ID16322, BINLOG_ID16323, BINLOG_ID16324, BINLOG_ID16325, BINLOG_ID16326, BINLOG_ID16327, BINLOG_ID16328, BINLOG_ID16329, BINLOG_ID16330, BINLOG_ID16331, BINLOG_ID16332, BINLOG_ID16333, BINLOG_ID16334, BINLOG_ID16335, BINLOG_ID16336, BINLOG_ID16337, BINLOG_ID16338, BINLOG_ID16339, BINLOG_ID16340, BINLOG_ID16341, BINLOG_ID16342, BINLOG_ID16343, BINLOG_ID16344, BINLOG_ID16345, BINLOG_ID16346, BINLOG_ID16347, BINLOG_ID16348, BINLOG_ID16349, BINLOG_ID16350, BINLOG_ID16351, BINLOG_ID16352, BINLOG_ID16353, BINLOG_ID16354, BINLOG_ID16355, BINLOG_ID16356, BINLOG_ID16357, BINLOG_ID16358, BINLOG_ID16359, BINLOG_ID16360, BINLOG_ID16361, BINLOG_ID16362, BINLOG_ID16363, BINLOG_ID16364, BINLOG_ID16365, BINLOG_ID16366, BINLOG_ID16367, BINLOG_ID16368, BINLOG_ID16369, BINLOG_ID16370, BINLOG_ID16371, BINLOG_ID16372, BINLOG_ID16373, BINLOG_ID16374, BINLOG_ID16375, BINLOG_ID16376, BINLOG_ID16377, BINLOG_ID16378, BINLOG_ID16379, BINLOG_ID16380, BINLOG_ID16381, BINLOG_ID16382, BINLOG_ID16383, BINLOG_ID16384, BINLOG_ID16385, BINLOG_ID16386, BINLOG_ID16387, BINLOG_ID16388, BINLOG_ID16389, BINLOG_ID16390, BINLOG_ID16391, BINLOG_ID16392, BINLOG_ID16393, BINLOG_ID16394, BINLOG_ID16395, BINLOG_ID16396, BINLOG_ID16397, BINLOG_ID16398, BINLOG_ID16399, BINLOG_ID16400, BINLOG_ID16401, BINLOG_ID16402, BINLOG_ID16403, BINLOG_ID16404, BINLOG_ID16405, BINLOG_ID16406, BINLOG_ID16407, BINLOG_ID16408, BINLOG_ID16409, BINLOG_ID16410, BINLOG_ID16411, BINLOG_ID16412, BINLOG_ID16413, BINLOG_ID16414, BINLOG_ID16415, BINLOG_ID16416, BINLOG_ID16417, BINLOG_ID16418, BINLOG_ID16419, BINLOG_ID16420, BINLOG_ID16421, BINLOG_ID16422, BINLOG_ID16423, BINLOG_ID16424, BINLOG_ID16425, BINLOG_ID16426, BINLOG_ID16427, BINLOG_ID16428, BINLOG_ID16429, BINLOG_ID16430, BINLOG_ID16431, BINLOG_ID16432, BINLOG_ID16433, BINLOG_ID16434, BINLOG_ID16435, BINLOG_ID16436, BINLOG_ID16437, BINLOG_ID16438, BINLOG_ID16439, BINLOG_ID16440, BINLOG_ID16441, BINLOG_ID16442, BINLOG_ID16443, BINLOG_ID16444, BINLOG_ID16445, BINLOG_ID16446, BINLOG_ID16447, BINLOG_ID16448, BINLOG_ID16449, BINLOG_ID16450, BINLOG_ID16451, BINLOG_ID16452, BINLOG_ID16453, BINLOG_ID16454, BINLOG_ID16455, BINLOG_ID16456, BINLOG_ID16457, BINLOG_ID16458, BINLOG_ID16459, BINLOG_ID16460, BINLOG_ID16461, BINLOG_ID16462, BINLOG_ID16463, BINLOG_ID16464, BINLOG_ID16465, BINLOG_ID16466, BINLOG_ID16467, BINLOG_ID16468, BINLOG_ID16469, BINLOG_ID16470, BINLOG_ID16471, BINLOG_ID16472, BINLOG_ID16473, BINLOG_ID16474, BINLOG_ID16475, BINLOG_ID16476, BINLOG_ID16477, BINLOG_ID16478, BINLOG_ID16479, BINLOG_ID16480, BINLOG_ID16481, BINLOG_ID16482, BINLOG_ID16483, BINLOG_ID16484, BINLOG_ID16485, BINLOG_ID16486, BINLOG_ID16487, BINLOG_ID16488, BINLOG_ID16489, BINLOG_ID16490, BINLOG_ID16491, BINLOG_ID16492, BINLOG_ID16493, BINLOG_ID16494, BINLOG_ID16495, BINLOG_ID16496, BINLOG_ID16497, BINLOG_ID16498, BINLOG_ID16499, BINLOG_ID16500, BINLOG_ID16501, BINLOG_ID16502, BINLOG_ID16503, BINLOG_ID16504, BINLOG_ID16505, BINLOG_ID16506, BINLOG_ID16507, BINLOG_ID16508, BINLOG_ID16509, BINLOG_ID16510, BINLOG_ID16511, BINLOG_ID16512, BINLOG_ID16513, BINLOG_ID16514, BINLOG_ID16515, BINLOG_ID16516, BINLOG_ID16517, BINLOG_ID16518, BINLOG_ID16519, BINLOG_ID16520, BINLOG_ID16521, BINLOG_ID16522, BINLOG_ID16523, BINLOG_ID16524, BINLOG_ID16525, BINLOG_ID16526, BINLOG_ID16527, BINLOG_ID16528, BINLOG_ID16529, BINLOG_ID16530, BINLOG_ID16531, BINLOG_ID16532, BINLOG_ID16533, BINLOG_ID16534, BINLOG_ID16535, BINLOG_ID16536, BINLOG_ID16537, BINLOG_ID16538, BINLOG_ID16539, BINLOG_ID16540, BINLOG_ID16541, BINLOG_ID16542, BINLOG_ID16543, BINLOG_ID16544, BINLOG_ID16545, BINLOG_ID16546, BINLOG_ID16547, BINLOG_ID16548, BINLOG_ID16549, BINLOG_ID16550, BINLOG_ID16551, BINLOG_ID16552, BINLOG_ID16553, BINLOG_ID16554, BINLOG_ID16555, BINLOG_ID16556, BINLOG_ID16557, BINLOG_ID16558, BINLOG_ID16559, BINLOG_ID16560, BINLOG_ID16561, BINLOG_ID16562, BINLOG_ID16563, BINLOG_ID16564, BINLOG_ID16565, BINLOG_ID16566, BINLOG_ID16567, BINLOG_ID16568, BINLOG_ID16569, BINLOG_ID16570, BINLOG_ID16571, BINLOG_ID16572, BINLOG_ID16573, BINLOG_ID16574, BINLOG_ID16575, BINLOG_ID16576, BINLOG_ID16577, BINLOG_ID16578, BINLOG_ID16579, BINLOG_ID16580, BINLOG_ID16581, BINLOG_ID16582, BINLOG_ID16583, BINLOG_ID16584, BINLOG_ID16585, BINLOG_ID16586, BINLOG_ID16587, BINLOG_ID16588, BINLOG_ID16589, BINLOG_ID16590, BINLOG_ID16591, BINLOG_ID16592, BINLOG_ID16593, BINLOG_ID16594, BINLOG_ID16595, BINLOG_ID16596, BINLOG_ID16597, BINLOG_ID16598, BINLOG_ID16599, BINLOG_ID16600, BINLOG_ID16601, BINLOG_ID16602, BINLOG_ID16603, BINLOG_ID16604, BINLOG_ID16605, BINLOG_ID16606, BINLOG_ID16607, BINLOG_ID16608, BINLOG_ID16609, BINLOG_ID16610, BINLOG_ID16611, BINLOG_ID16612, BINLOG_ID16613, BINLOG_ID16614, BINLOG_ID16615, BINLOG_ID16616, BINLOG_ID16617, BINLOG_ID16618, BINLOG_ID16619, BINLOG_ID16620, BINLOG_ID16621, BINLOG_ID16622, BINLOG_ID16623, BINLOG_ID16624, BINLOG_ID16625, BINLOG_ID16626, BINLOG_ID16627, BINLOG_ID16628, BINLOG_ID16629, BINLOG_ID16630, BINLOG_ID16631, BINLOG_ID16632, BINLOG_ID16633, BINLOG_ID16634, BINLOG_ID16635, BINLOG_ID16636, BINLOG_ID16637, BINLOG_ID16638, BINLOG_ID16639, BINLOG_ID16640, BINLOG_ID16641, BINLOG_ID16642, BINLOG_ID16643, BINLOG_ID16644, BINLOG_ID16645, BINLOG_ID16646, BINLOG_ID16647, BINLOG_ID16648, BINLOG_ID16649, BINLOG_ID16650, BINLOG_ID16651, BINLOG_ID16652, BINLOG_ID16653, BINLOG_ID16654, BINLOG_ID16655, BINLOG_ID16656, BINLOG_ID16657, BINLOG_ID16658, BINLOG_ID16659, BINLOG_ID16660, BINLOG_ID16661, BINLOG_ID16662, BINLOG_ID16663, BINLOG_ID16664, BINLOG_ID16665, BINLOG_ID16666, BINLOG_ID16667, BINLOG_ID16668, BINLOG_ID16669, BINLOG_ID16670, BINLOG_ID16671, BINLOG_ID16672, BINLOG_ID16673, BINLOG_ID16674, BINLOG_ID16675, BINLOG_ID16676, BINLOG_ID16677, BINLOG_ID16678, BINLOG_ID16679, BINLOG_ID16680, BINLOG_ID16681, BINLOG_ID16682, BINLOG_ID16683, BINLOG_ID16684, BINLOG_ID16685, BINLOG_ID16686, BINLOG_ID16687, BINLOG_ID16688, BINLOG_ID16689, BINLOG_ID16690, BINLOG_ID16691, BINLOG_ID16692, BINLOG_ID16693, BINLOG_ID16694, BINLOG_ID16695, BINLOG_ID16696, BINLOG_ID16697, BINLOG_ID16698, BINLOG_ID16699, BINLOG_ID16700, BINLOG_ID16701, BINLOG_ID16702, BINLOG_ID16703, BINLOG_ID16704, BINLOG_ID16705, BINLOG_ID16706, BINLOG_ID16707, BINLOG_ID16708, BINLOG_ID16709, BINLOG_ID16710, BINLOG_ID16711, BINLOG_ID16712, BINLOG_ID16713, BINLOG_ID16714, BINLOG_ID16715, BINLOG_ID16716, BINLOG_ID16717, BINLOG_ID16718, BINLOG_ID16719, BINLOG_ID16720, BINLOG_ID16721, BINLOG_ID16722, BINLOG_ID16723, BINLOG_ID16724, BINLOG_ID16725, BINLOG_ID16726, BINLOG_ID16727, BINLOG_ID16728, BINLOG_ID16729, BINLOG_ID16730, BINLOG_ID16731, BINLOG_ID16732, BINLOG_ID16733, BINLOG_ID16734, BINLOG_ID16735, BINLOG_ID16736, BINLOG_ID16737, BINLOG_ID16738, BINLOG_ID16739, BINLOG_ID16740, BINLOG_ID16741, BINLOG_ID16742, BINLOG_ID16743, BINLOG_ID16744, BINLOG_ID16745, BINLOG_ID16746, BINLOG_ID16747, BINLOG_ID16748, BINLOG_ID16749, BINLOG_ID16750, BINLOG_ID16751, BINLOG_ID16752, BINLOG_ID16753, BINLOG_ID16754, BINLOG_ID16755, BINLOG_ID16756, BINLOG_ID16757, BINLOG_ID16758, BINLOG_ID16759, BINLOG_ID16760, BINLOG_ID16761, BINLOG_ID16762, BINLOG_ID16763, BINLOG_ID16764, BINLOG_ID16765, BINLOG_ID16766, BINLOG_ID16767, BINLOG_ID16768, BINLOG_ID16769, BINLOG_ID16770, BINLOG_ID16771, BINLOG_ID16772, BINLOG_ID16773, BINLOG_ID16774, BINLOG_ID16775, BINLOG_ID16776, BINLOG_ID16777, BINLOG_ID16778, BINLOG_ID16779, BINLOG_ID16780, BINLOG_ID16781, BINLOG_ID16782, BINLOG_ID16783, BINLOG_ID16784, BINLOG_ID16785, BINLOG_ID16786, BINLOG_ID16787, BINLOG_ID16788, BINLOG_ID16789, BINLOG_ID16790, BINLOG_ID16791, BINLOG_ID16792, BINLOG_ID16793, BINLOG_ID16794, BINLOG_ID16795, BINLOG_ID16796, BINLOG_ID16797, BINLOG_ID16798, BINLOG_ID16799, BINLOG_ID16800, BINLOG_ID16801, BINLOG_ID16802, BINLOG_ID16803, BINLOG_ID16804, BINLOG_ID16805, BINLOG_ID16806, BINLOG_ID16807, BINLOG_ID16808, BINLOG_ID16809, BINLOG_ID16810, BINLOG_ID16811, BINLOG_ID16812, BINLOG_ID16813, BINLOG_ID16814, BINLOG_ID16815, BINLOG_ID16816, BINLOG_ID16817, BINLOG_ID16818, BINLOG_ID16819, BINLOG_ID16820, BINLOG_ID16821, BINLOG_ID16822, BINLOG_ID16823, BINLOG_ID16824, BINLOG_ID16825, BINLOG_ID16826, BINLOG_ID16827, BINLOG_ID16828, BINLOG_ID16829, BINLOG_ID16830, BINLOG_ID16831, BINLOG_ID16832, BINLOG_ID16833, BINLOG_ID16834, BINLOG_ID16835, BINLOG_ID16836, BINLOG_ID16837, BINLOG_ID16838, BINLOG_ID16839, BINLOG_ID16840, BINLOG_ID16841, BINLOG_ID16842, BINLOG_ID16843, BINLOG_ID16844, BINLOG_ID16845, BINLOG_ID16846, BINLOG_ID16847, BINLOG_ID16848, BINLOG_ID16849, BINLOG_ID16850, BINLOG_ID16851, BINLOG_ID16852, BINLOG_ID16853, BINLOG_ID16854, BINLOG_ID16855, BINLOG_ID16856, BINLOG_ID16857, BINLOG_ID16858, BINLOG_ID16859, BINLOG_ID16860, BINLOG_ID16861, BINLOG_ID16862, BINLOG_ID16863, BINLOG_ID16864, BINLOG_ID16865, BINLOG_ID16866, BINLOG_ID16867, BINLOG_ID16868, BINLOG_ID16869, BINLOG_ID16870, BINLOG_ID16871, BINLOG_ID16872, BINLOG_ID16873, BINLOG_ID16874, BINLOG_ID16875, BINLOG_ID16876, BINLOG_ID16877, BINLOG_ID16878, BINLOG_ID16879, BINLOG_ID16880, BINLOG_ID16881, BINLOG_ID16882, BINLOG_ID16883, BINLOG_ID16884, BINLOG_ID16885, BINLOG_ID16886, BINLOG_ID16887, BINLOG_ID16888, BINLOG_ID16889, BINLOG_ID16890, BINLOG_ID16891, BINLOG_ID16892, BINLOG_ID16893, BINLOG_ID16894, BINLOG_ID16895, BINLOG_ID16896, BINLOG_ID16897, BINLOG_ID16898, BINLOG_ID16899, BINLOG_ID16900, BINLOG_ID16901, BINLOG_ID16902, BINLOG_ID16903, BINLOG_ID16904, BINLOG_ID16905, BINLOG_ID16906, BINLOG_ID16907, BINLOG_ID16908, BINLOG_ID16909, BINLOG_ID16910, BINLOG_ID16911, BINLOG_ID16912, BINLOG_ID16913, BINLOG_ID16914, BINLOG_ID16915, BINLOG_ID16916, BINLOG_ID16917, BINLOG_ID16918, BINLOG_ID16919, BINLOG_ID16920, BINLOG_ID16921, BINLOG_ID16922, BINLOG_ID16923, BINLOG_ID16924, BINLOG_ID16925, BINLOG_ID16926, BINLOG_ID16927, BINLOG_ID16928, BINLOG_ID16929, BINLOG_ID16930, BINLOG_ID16931, BINLOG_ID16932, BINLOG_ID16933, BINLOG_ID16934, BINLOG_ID16935, BINLOG_ID16936, BINLOG_ID16937, BINLOG_ID16938, BINLOG_ID16939, BINLOG_ID16940, BINLOG_ID16941, BINLOG_ID16942, BINLOG_ID16943, BINLOG_ID16944, BINLOG_ID16945, BINLOG_ID16946, BINLOG_ID16947, BINLOG_ID16948, BINLOG_ID16949, BINLOG_ID16950, BINLOG_ID16951, BINLOG_ID16952, BINLOG_ID16953, BINLOG_ID16954, BINLOG_ID16955, BINLOG_ID16956, BINLOG_ID16957, BINLOG_ID16958, BINLOG_ID16959, BINLOG_ID16960, BINLOG_ID16961, BINLOG_ID16962, BINLOG_ID16963, BINLOG_ID16964, BINLOG_ID16965, BINLOG_ID16966, BINLOG_ID16967, BINLOG_ID16968, BINLOG_ID16969, BINLOG_ID16970, BINLOG_ID16971, BINLOG_ID16972, BINLOG_ID16973, BINLOG_ID16974, BINLOG_ID16975, BINLOG_ID16976, BINLOG_ID16977, BINLOG_ID16978, BINLOG_ID16979, BINLOG_ID16980, BINLOG_ID16981, BINLOG_ID16982, BINLOG_ID16983, BINLOG_ID16984, BINLOG_ID16985, BINLOG_ID16986, BINLOG_ID16987, BINLOG_ID16988, BINLOG_ID16989, BINLOG_ID16990, BINLOG_ID16991, BINLOG_ID16992, BINLOG_ID16993, BINLOG_ID16994, BINLOG_ID16995, BINLOG_ID16996, BINLOG_ID16997, BINLOG_ID16998, BINLOG_ID16999, BINLOG_ID17000, BINLOG_ID17001, BINLOG_ID17002, BINLOG_ID17003, BINLOG_ID17004, BINLOG_ID17005, BINLOG_ID17006, BINLOG_ID17007, BINLOG_ID17008, BINLOG_ID17009, BINLOG_ID17010, BINLOG_ID17011, BINLOG_ID17012, BINLOG_ID17013, BINLOG_ID17014, BINLOG_ID17015, BINLOG_ID17016, BINLOG_ID17017, BINLOG_ID17018, BINLOG_ID17019, BINLOG_ID17020, BINLOG_ID17021, BINLOG_ID17022, BINLOG_ID17023, BINLOG_ID17024, BINLOG_ID17025, BINLOG_ID17026, BINLOG_ID17027, BINLOG_ID17028, BINLOG_ID17029, BINLOG_ID17030, BINLOG_ID17031, BINLOG_ID17032, BINLOG_ID17033, BINLOG_ID17034, BINLOG_ID17035, BINLOG_ID17036, BINLOG_ID17037, BINLOG_ID17038, BINLOG_ID17039, BINLOG_ID17040, BINLOG_ID17041, BINLOG_ID17042, BINLOG_ID17043, BINLOG_ID17044, BINLOG_ID17045, BINLOG_ID17046, BINLOG_ID17047, BINLOG_ID17048, BINLOG_ID17049, BINLOG_ID17050, BINLOG_ID17051, BINLOG_ID17052, BINLOG_ID17053, BINLOG_ID17054, BINLOG_ID17055, BINLOG_ID17056, BINLOG_ID17057, BINLOG_ID17058, BINLOG_ID17059, BINLOG_ID17060, BINLOG_ID17061, BINLOG_ID17062, BINLOG_ID17063, BINLOG_ID17064, BINLOG_ID17065, BINLOG_ID17066, BINLOG_ID17067, BINLOG_ID17068, BINLOG_ID17069, BINLOG_ID17070, BINLOG_ID17071, BINLOG_ID17072, BINLOG_ID17073, BINLOG_ID17074, BINLOG_ID17075, BINLOG_ID17076, BINLOG_ID17077, BINLOG_ID17078, BINLOG_ID17079, BINLOG_ID17080, BINLOG_ID17081, BINLOG_ID17082, BINLOG_ID17083, BINLOG_ID17084, BINLOG_ID17085, BINLOG_ID17086, BINLOG_ID17087, BINLOG_ID17088, BINLOG_ID17089, BINLOG_ID17090, BINLOG_ID17091, BINLOG_ID17092, BINLOG_ID17093, BINLOG_ID17094, BINLOG_ID17095, BINLOG_ID17096, BINLOG_ID17097, BINLOG_ID17098, BINLOG_ID17099, BINLOG_ID17100, BINLOG_ID17101, BINLOG_ID17102, BINLOG_ID17103, BINLOG_ID17104, BINLOG_ID17105, BINLOG_ID17106, BINLOG_ID17107, BINLOG_ID17108, BINLOG_ID17109, BINLOG_ID17110, BINLOG_ID17111, BINLOG_ID17112, BINLOG_ID17113, BINLOG_ID17114, BINLOG_ID17115, BINLOG_ID17116, BINLOG_ID17117, BINLOG_ID17118, BINLOG_ID17119, BINLOG_ID17120, BINLOG_ID17121, BINLOG_ID17122, BINLOG_ID17123, BINLOG_ID17124, BINLOG_ID17125, BINLOG_ID17126, BINLOG_ID17127, BINLOG_ID17128, BINLOG_ID17129, BINLOG_ID17130, BINLOG_ID17131, BINLOG_ID17132, BINLOG_ID17133, BINLOG_ID17134, BINLOG_ID17135, BINLOG_ID17136, BINLOG_ID17137, BINLOG_ID17138, BINLOG_ID17139, BINLOG_ID17140, BINLOG_ID17141, BINLOG_ID17142, BINLOG_ID17143, BINLOG_ID17144, BINLOG_ID17145, BINLOG_ID17146, BINLOG_ID17147, BINLOG_ID17148, BINLOG_ID17149, BINLOG_ID17150, BINLOG_ID17151, BINLOG_ID17152, BINLOG_ID17153, BINLOG_ID17154, BINLOG_ID17155, BINLOG_ID17156, BINLOG_ID17157, BINLOG_ID17158, BINLOG_ID17159, BINLOG_ID17160, BINLOG_ID17161, BINLOG_ID17162, BINLOG_ID17163, BINLOG_ID17164, BINLOG_ID17165, BINLOG_ID17166, BINLOG_ID17167, BINLOG_ID17168, BINLOG_ID17169, BINLOG_ID17170, BINLOG_ID17171, BINLOG_ID17172, BINLOG_ID17173, BINLOG_ID17174, BINLOG_ID17175, BINLOG_ID17176, BINLOG_ID17177, BINLOG_ID17178, BINLOG_ID17179, BINLOG_ID17180, BINLOG_ID17181, BINLOG_ID17182, BINLOG_ID17183, BINLOG_ID17184, BINLOG_ID17185, BINLOG_ID17186, BINLOG_ID17187, BINLOG_ID17188, BINLOG_ID17189, BINLOG_ID17190, BINLOG_ID17191, BINLOG_ID17192, BINLOG_ID17193, BINLOG_ID17194, BINLOG_ID17195, BINLOG_ID17196, BINLOG_ID17197, BINLOG_ID17198, BINLOG_ID17199, BINLOG_ID17200, BINLOG_ID17201, BINLOG_ID17202, BINLOG_ID17203, BINLOG_ID17204, BINLOG_ID17205, BINLOG_ID17206, BINLOG_ID17207, BINLOG_ID17208, BINLOG_ID17209, BINLOG_ID17210, BINLOG_ID17211, BINLOG_ID17212, BINLOG_ID17213, BINLOG_ID17214, BINLOG_ID17215, BINLOG_ID17216, BINLOG_ID17217, BINLOG_ID17218, BINLOG_ID17219, BINLOG_ID17220, BINLOG_ID17221, BINLOG_ID17222, BINLOG_ID17223, BINLOG_ID17224, BINLOG_ID17225, BINLOG_ID17226, BINLOG_ID17227, BINLOG_ID17228, BINLOG_ID17229, BINLOG_ID17230, BINLOG_ID17231, BINLOG_ID17232, BINLOG_ID17233, BINLOG_ID17234, BINLOG_ID17235, BINLOG_ID17236, BINLOG_ID17237, BINLOG_ID17238, BINLOG_ID17239, BINLOG_ID17240, BINLOG_ID17241, BINLOG_ID17242, BINLOG_ID17243, BINLOG_ID17244, BINLOG_ID17245, BINLOG_ID17246, BINLOG_ID17247, BINLOG_ID17248, BINLOG_ID17249, BINLOG_ID17250, BINLOG_ID17251, BINLOG_ID17252, BINLOG_ID17253, BINLOG_ID17254, BINLOG_ID17255, BINLOG_ID17256, BINLOG_ID17257, BINLOG_ID17258, BINLOG_ID17259, BINLOG_ID17260, BINLOG_ID17261, BINLOG_ID17262, BINLOG_ID17263, BINLOG_ID17264, BINLOG_ID17265, BINLOG_ID17266, BINLOG_ID17267, BINLOG_ID17268, BINLOG_ID17269, BINLOG_ID17270, BINLOG_ID17271, BINLOG_ID17272, BINLOG_ID17273, BINLOG_ID17274, BINLOG_ID17275, BINLOG_ID17276, BINLOG_ID17277, BINLOG_ID17278, BINLOG_ID17279, BINLOG_ID17280, BINLOG_ID17281, BINLOG_ID17282, BINLOG_ID17283, BINLOG_ID17284, BINLOG_ID17285, BINLOG_ID17286, BINLOG_ID17287, BINLOG_ID17288, BINLOG_ID17289, BINLOG_ID17290, BINLOG_ID17291, BINLOG_ID17292, BINLOG_ID17293, BINLOG_ID17294, BINLOG_ID17295, BINLOG_ID17296, BINLOG_ID17297, BINLOG_ID17298, BINLOG_ID17299, BINLOG_ID17300, BINLOG_ID17301, BINLOG_ID17302, BINLOG_ID17303, BINLOG_ID17304, BINLOG_ID17305, BINLOG_ID17306, BINLOG_ID17307, BINLOG_ID17308, BINLOG_ID17309, BINLOG_ID17310, BINLOG_ID17311, BINLOG_ID17312, BINLOG_ID17313, BINLOG_ID17314, BINLOG_ID17315, BINLOG_ID17316, BINLOG_ID17317, BINLOG_ID17318, BINLOG_ID17319, BINLOG_ID17320, BINLOG_ID17321, BINLOG_ID17322, BINLOG_ID17323, BINLOG_ID17324, BINLOG_ID17325, BINLOG_ID17326, BINLOG_ID17327, BINLOG_ID17328, BINLOG_ID17329, BINLOG_ID17330, BINLOG_ID17331, BINLOG_ID17332, BINLOG_ID17333, BINLOG_ID17334, BINLOG_ID17335, BINLOG_ID17336, BINLOG_ID17337, BINLOG_ID17338, BINLOG_ID17339, BINLOG_ID17340, BINLOG_ID17341, BINLOG_ID17342, BINLOG_ID17343, BINLOG_ID17344, BINLOG_ID17345, BINLOG_ID17346, BINLOG_ID17347, BINLOG_ID17348, BINLOG_ID17349, BINLOG_ID17350, BINLOG_ID17351, BINLOG_ID17352, BINLOG_ID17353, BINLOG_ID17354, BINLOG_ID17355, BINLOG_ID17356, BINLOG_ID17357, BINLOG_ID17358, BINLOG_ID17359, BINLOG_ID17360, BINLOG_ID17361, BINLOG_ID17362, BINLOG_ID17363, BINLOG_ID17364, BINLOG_ID17365, BINLOG_ID17366, BINLOG_ID17367, BINLOG_ID17368, BINLOG_ID17369, BINLOG_ID17370, BINLOG_ID17371, BINLOG_ID17372, BINLOG_ID17373, BINLOG_ID17374, BINLOG_ID17375, BINLOG_ID17376 }; #ifdef HITLS_BSL_LOG int32_t ReturnErrorNumberProcess(int32_t err, uint32_t logId, const void *logStr); #define RETURN_ERROR_NUMBER_PROCESS(err, logId, logStr) ReturnErrorNumberProcess(err, logId, LOG_STR(logStr)) #else #define RETURN_ERROR_NUMBER_PROCESS(err, logId, logStr) (err) #endif /* HITLS_BSL_LOG */ #ifdef __cplusplus } #endif #endif
2301_79861745/bench_create
tls/include/tls_binlog_id.h
C
unknown
41,126
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef TLS_CONFIG_H #define TLS_CONFIG_H #include <stdint.h> #include <stdbool.h> #include "hitls_build.h" #include "hitls_cert_type.h" #include "hitls_cert.h" #include "hitls_debug.h" #include "hitls_config.h" #include "hitls_session.h" #include "hitls_psk.h" #include "hitls_security.h" #include "hitls_sni.h" #include "hitls_alpn.h" #include "hitls_cookie.h" #include "sal_atomic.h" #ifdef HITLS_TLS_FEATURE_PROVIDER #include "crypt_eal_provider.h" #endif #ifdef __cplusplus extern "C" { #endif /** * @ingroup config * @brief Certificate management context */ typedef struct CertMgrCtxInner CERT_MgrCtx; typedef struct TlsSessionManager TLS_SessionMgr; /** * @ingroup config * @brief DTLS 1.0 */ #define HITLS_VERSION_DTLS10 0xfeffu #define HITLS_TICKET_KEY_NAME_SIZE 16u #define HITLS_TICKET_KEY_SIZE 32u #define HITLS_TICKET_IV_SIZE 16u /* the default number of tickets of TLS1.3 server is 2 */ #define HITLS_TLS13_TICKET_NUM_DEFAULT 2u #define HITLS_MAX_EMPTY_RECORDS 32 #ifdef HITLS_TLS_FEATURE_MAX_SEND_FRAGMENT #define HITLS_MAX_SEND_FRAGMENT_DEFAULT 16384 #endif /* max cert list is 100k */ #define HITLS_MAX_CERT_LIST_DEFAULT (1024 * 100) #define HITLS_ENDPOINT_UNDEFINED 0 #define HITLS_ENDPOINT_CLIENT 1 #define HITLS_ENDPOINT_SERVER 2 /** * @brief Group information */ typedef struct { char *name; // group name int32_t paraId; // parameter id CRYPT_PKEY_ParaId int32_t algId; // algorithm id CRYPT_PKEY_AlgId int32_t secBits; // security bits uint16_t groupId; // iana group id, HITLS_NamedGroup uint32_t pubkeyLen; // public key length(CH keyshare / SH keyshare) uint32_t sharedkeyLen; // shared key length uint32_t ciphertextLen; // ciphertext length(SH keyshare) uint32_t versionBits; // TLS_VERSION_MASK bool isKem; // true: KEM, false: KEX } TLS_GroupInfo; /** * @brief Signature scheme information */ typedef struct { char *name; uint16_t signatureScheme; // HITLS_SignHashAlgo, IANA specified int32_t keyType; // HITLS_CERT_KeyType int32_t paraId; // CRYPT_PKEY_ParaId int32_t signHashAlgId; // combined sign hash algorithm id int32_t signAlgId; // CRYPT_PKEY_AlgId int32_t hashAlgId; // CRYPT_MD_AlgId int32_t secBits; // security bits uint32_t certVersionBits; // TLS_VERSION_MASK uint32_t chainVersionBits; // TLS_VERSION_MASK } TLS_SigSchemeInfo; #ifdef HITLS_TLS_FEATURE_PROVIDER /** * @brief TLS capability data */ typedef struct { HITLS_Config *config; CRYPT_EAL_ProvMgrCtx *provMgrCtx; } TLS_CapabilityData; #define TLS_CAPABILITY_LIST_MALLOC_SIZE 10 #endif typedef struct CustomExtMethods HITLS_CustomExts; /** * @brief TLS Global Configuration */ typedef struct TlsConfig { BSL_SAL_RefCount references; /* reference count */ HITLS_Lib_Ctx *libCtx; /* library context */ const char *attrName; /* attrName */ #ifdef HITLS_TLS_FEATURE_PROVIDER TLS_GroupInfo *groupInfo; uint32_t groupInfolen; uint32_t groupInfoSize; TLS_SigSchemeInfo *sigSchemeInfo; uint32_t sigSchemeInfolen; uint32_t sigSchemeInfoSize; #endif uint32_t endpoint; /* client or server */ uint32_t version; /* supported proto version */ uint32_t originVersionMask; /* the original supported proto version mask */ uint16_t minVersion; /* min supported proto version */ uint16_t maxVersion; /* max supported proto version */ uint32_t modeSupport; /* support mode */ uint16_t *tls13CipherSuites; /* tls13 cipher suite */ uint32_t tls13cipherSuitesSize; uint16_t *cipherSuites; /* cipher suite */ uint32_t cipherSuitesSize; uint8_t *pointFormats; /* ec point format */ uint32_t pointFormatsSize; /* According to RFC 8446 4.2.7, before TLS 1.3 is ec curves; TLS 1.3: supported groups for the key exchange */ uint16_t *groups; uint32_t groupsSize; uint16_t *signAlgorithms; /* signature algorithm */ uint32_t signAlgorithmsSize; uint8_t *alpnList; /* application layer protocols list */ uint32_t alpnListSize; /* bytes of alpn, excluding the tail 0 byte */ HITLS_SecurityCb securityCb; /* Security callback */ void *securityExData; /* Security ex data */ int32_t securityLevel; /* Security level */ uint8_t *serverName; /* server name */ uint32_t serverNameSize; /* server name size */ int32_t readAhead; /* need read more data into user buffer, nonzero indicates yes, otherwise no */ uint32_t emptyRecordsNum; /* the max number of empty records can be received */ /* TLS1.2 psk */ uint8_t *pskIdentityHint; /* psk identity hint */ uint32_t hintSize; HITLS_PskClientCb pskClientCb; /* psk client callback */ HITLS_PskServerCb pskServerCb; /* psk server callback */ /* TLS1.3 psk */ HITLS_PskFindSessionCb pskFindSessionCb; /* TLS1.3 PSK server callback */ HITLS_PskUseSessionCb pskUseSessionCb; /* TLS1.3 PSK client callback */ HITLS_DtlsTimerCb dtlsTimerCb; /* DTLS get the timeout callback */ uint32_t dtlsPostHsTimeoutVal; /* DTLS over UDP completed handshake timeout */ HITLS_CRYPT_Key *dhTmp; /* Temporary DH key set by the user */ HITLS_DhTmpCb dhTmpCb; /* Temporary ECDH key set by the user */ HITLS_InfoCb infoCb; /* information indicator callback */ HITLS_MsgCb msgCb; /* message callback function cb for observing all SSL/TLS protocol messages */ void *msgArg; /* set argument arg to the callback function */ HITLS_RecordPaddingCb recordPaddingCb; /* the callback to specify the padding for TLS 1.3 records */ void *recordPaddingArg; /* assign a value arg that is passed to the callback */ uint32_t keyExchMode; /* TLS1.3 psk exchange mode */ uint32_t maxCertList; /* the maximum size allowed for the peer's certificate chain */ HITLS_TrustedCAList *caList; /* the list of CAs sent to the peer */ CERT_MgrCtx *certMgrCtx; /* certificate management context */ uint32_t sessionIdCtxSize; /* the size of sessionId context */ uint8_t sessionIdCtx[HITLS_SESSION_ID_CTX_MAX_SIZE]; /* the sessionId context */ uint32_t ticketNums; /* TLS1.3 ticket number */ uint16_t maxSendFragment; /* max send fragment to restrict the amount of plaintext bytes in any record */ uint32_t recInbufferSize; /* Rec inbuffer inital size */ TLS_SessionMgr *sessMgr; /* session management */ void *userData; /* user data */ HITLS_ConfigUserDataFreeCb userDataFreeCb; bool needCheckKeyUsage; /* whether to check keyusage, default on */ bool needCheckPmsVersion; /* whether to verify the version in premastersecret */ bool isSupportRenegotiation; /* support renegotiation */ bool allowClientRenegotiate; /* allow a renegotiation initiated by the client */ bool allowLegacyRenegotiate; /* whether to abort handshake when server doesn't support SecRenegotiation */ bool isResumptionOnRenego; /* supports session resume during renegotiation */ bool isSupportDhAuto; /* the DH parameter to be automatically selected */ /* Certificate Verification Mode */ bool isSupportClientVerify; /* Enable dual-ended authentication. only for server */ bool isSupportNoClientCert; /* Authentication Passed When Client Sends Empty Certificate. only for server */ bool isSupportPostHandshakeAuth; /* TLS1.3 support post handshake auth. for server and client */ bool isSupportVerifyNone; /* The handshake will be continued regardless of the verification result. for server and client */ bool isSupportClientOnceVerify; /* only request a client certificate once during the connection. only for server */ bool isQuietShutdown; /* is support the quiet shutdown mode */ bool isEncryptThenMac; /* is EncryptThenMac on */ bool isFlightTransmitEnable; /* sending of handshake information in one flighttransmit */ bool isSupportExtendMasterSecret; /* is support extended master secret */ bool isSupportSessionTicket; /* is support session ticket */ bool isSupportServerPreference; /* server cipher suites can be preferentially selected */ /* DTLS */ #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) bool isSupportDtlsCookieExchange; /* is dtls support cookie exchange */ #endif /** * Configurations in the HITLS_Ctx are classified into private configuration and global configuration. * The following parameters directly reference the global configuration in tls. * Private configuration: ctx->config.tlsConfig * The global configuration: ctx->globalConfig * Modifying the globalConfig will affects all associated HITLS_Ctx */ HITLS_AlpnSelectCb alpnSelectCb; /* alpn callback */ void *alpnUserData; /* the user data for alpn callback */ void *sniArg; /* the args for servername callback */ HITLS_SniDealCb sniDealCb; /* server name callback function */ #ifdef HITLS_TLS_FEATURE_CLIENT_HELLO_CB HITLS_ClientHelloCb clientHelloCb; /* ClientHello callback */ void *clientHelloCbArg; /* the args for ClientHello callback */ #endif /* HITLS_TLS_FEATURE_CLIENT_HELLO_CB */ #ifdef HITLS_TLS_PROTO_DTLS12 HITLS_AppGenCookieCb appGenCookieCb; HITLS_AppVerifyCookieCb appVerifyCookieCb; #endif HITLS_NewSessionCb newSessionCb; /* negotiates to generate a session */ HITLS_KeyLogCb keyLogCb; /* the key log callback */ bool isKeepPeerCert; /* whether to save the peer certificate */ HITLS_CustomExts *customExts; bool isMiddleBoxCompat; /* whether to support middlebox compatibility */ } TLS_Config; #define LIBCTX_FROM_CONFIG(config) ((config == NULL) ? NULL : (config)->libCtx) #define ATTRIBUTE_FROM_CONFIG(config) ((config == NULL) ? NULL : (config)->attrName) #ifdef __cplusplus } #endif #endif // TLS_CONFIG_H
2301_79861745/bench_create
tls/include/tls_config.h
C
unknown
11,327
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef REC_H #define REC_H #include <stdbool.h> #include <stdint.h> #include "hitls_build.h" #include "hitls_crypt_type.h" #include "tls.h" #ifdef __cplusplus extern "C" { #endif #define DTLS_MIN_MTU 256 /* Minimum MTU setting size */ #define REC_MAX_PLAIN_LENGTH 16384 /* Maximum plain length */ /* TLS13 Maximum MAC address padding */ #define REC_MAX_TLS13_ENCRYPTED_OVERHEAD 256u /* TLS13 Maximum ciphertext length */ #define REC_MAX_TLS13_ENCRYPTED_LEN (REC_MAX_PLAIN_LENGTH + REC_MAX_TLS13_ENCRYPTED_OVERHEAD) #define REC_MASTER_SECRET_LEN 48 #define REC_RANDOM_LEN 32 #define RECORD_HEADER 0x100 #define RECORD_INNER_CONTENT_TYPE 0x101 /** * record type */ typedef enum { REC_TYPE_CHANGE_CIPHER_SPEC = 20, REC_TYPE_ALERT = 21, REC_TYPE_HANDSHAKE = 22, REC_TYPE_APP = 23, REC_TYPE_UNKNOWN = 255 } REC_Type; /** * SecurityParameters, used to generate keys and initialize the connect state */ typedef struct { bool isClient; /* Connection Endpoint */ bool isClientTrafficSecret; /* TrafficSecret type */ HITLS_HashAlgo prfAlg; /* prf_algorithm */ HITLS_MacAlgo macAlg; /* mac algorithm */ HITLS_CipherAlgo cipherAlg; /* symmetric encryption algorithm */ HITLS_CipherType cipherType; /* encryption algorithm type */ /* key length */ uint8_t fixedIvLength; /* iv length. In TLS1.2 AEAD algorithm is the implicit IV length */ uint8_t encKeyLen; /* Length of the symmetric key */ uint8_t macKeyLen; /* MAC key length: If the AEAD algorithm is used, the MAC key length is 0 */ uint8_t blockLength; /* If the block length is not zero, the alignment should be handled. */ uint8_t recordIvLength; /* The explicit IV needs to be sent to the peer */ uint8_t macLen; /* MAC length. For AEAD, it is the mark length */ uint8_t masterSecret[MAX_DIGEST_SIZE]; /* tls1.2 master key. TLS1.3 carries the TrafficSecret */ uint8_t clientRandom[REC_RANDOM_LEN]; /* Client random number */ uint8_t serverRandom[REC_RANDOM_LEN]; /* service random number */ } REC_SecParameters; /** * @ingroup record * @brief Record initialization * * @param ctx [IN] TLS object * * @retval HITLS_SUCCESS * @retval HITLS_INTERNAL_EXCEPTION Invalid null pointer * @retval HITLS_MEMALLOC_FAIL Memory allocated failed * */ int32_t REC_Init(TLS_Ctx *ctx); /** * @ingroup record * @brief record deinitialize * * @param ctx [IN] TLS object */ void REC_DeInit(TLS_Ctx *ctx); /** * @ingroup record * @brief Check whether data exists in the read buffer of the reocrd * * @param ctx [IN] TLS object * @return whether data exists in the read buffer */ bool REC_ReadHasPending(const TLS_Ctx *ctx); /** * @ingroup record * @brief Reads a message in the unit of a record. Data is read from the uio of the CTX to the data pointer * * @attention recordType indicates the expected record type (app or handshake) * readLen indicates the length of read data. The maximum length is REC_MAX_PLAIN_LENGTH (16384) * @param ctx [IN] TLS object * @param recordType [IN] Expected record type(app or handshake) * @param data [OUT] Read buffer * @param readLen [OUT] Length of the read data * @param num [IN] The size of read buffer, which must be greater than or equal to the maximum size of the record * * @retval HITLS_SUCCESS * @retval HITLS_INTERNAL_EXCEPTION,Invalid null pointer * @retval HITLS_REC_ERR_BUFFER_NOT_ENOUGH The buffer space is insufficient * @retval HITLS_MEMCPY_FAIL Memory copy failed * @retval HITLS_REC_NORMAL_RECV_BUF_EMPTY indicates that the buffer is empty and needs to be read again * @retval HITLS_REC_ERR_IO_EXCEPTION I/O error * @retval HITLS_REC_NORMAL_RECV_UNEXPECT_MSG An unexpected message is received and needs to be processed * @retval HITLS_REC_ERR_SN_WRAPPING Sequence number wrap */ int32_t REC_Read(TLS_Ctx *ctx, REC_Type recordType, uint8_t *data, uint32_t *readLen, uint32_t num); /** * @ingroup record * @brief Write a record in the unit of record * * @attention If the value of num exceeds the maximum length of the record, return error * * @param ctx [IN] TLS object * @param recordType [IN] record type * @param data [IN] Write data * @param num [IN] Attempt to write num bytes of plaintext data * * @retval HITLS_SUCCESS * @retval HITLS_INTERNAL_EXCEPTION Invalid null pointer * @retval HITLS_REC_ERR_BUFFER_NOT_ENOUGH The buffer space is insufficient * @retval HITLS_MEMCPY_FAIL Memory copy failed * @retval HITLS_REC_PMTU_TOO_SMALL The PMTU is too small * @retval HITLS_REC_ERR_IO_EXCEPTION I/O error * @retval HITLS_REC_NORMAL_IO_BUSY I/O busy * @retval HITLS_REC_ERR_TOO_BIG_LENGTH The length of the plaintext data written by the upper layer exceeds the * maximum length of the plaintext data that can be written by a single record * @retval HITLS_REC_ERR_NOT_SUPPORT_CIPHER The key algorithm is not supported * @retval HITLS_REC_ERR_SN_WRAPPING Sequence number wrap */ int32_t REC_Write(TLS_Ctx *ctx, REC_Type recordType, const uint8_t *data, uint32_t num); /** * @ingroup record * @brief Activate the expired write state. This API is invoked in the retransmission scenario * * @attention Reservation Interface * @param ctx [IN] TLS object * */ void REC_ActiveOutdatedWriteState(TLS_Ctx *ctx); /** * @ingroup record * @brief Disable the expired write status. This API is invoked in the retransmission scenario * * @attention Reservation Interface * @param ctx [IN] TLS object * */ void REC_DeActiveOutdatedWriteState(TLS_Ctx *ctx); /** * @ingroup record * @brief Initialize the pending state * * @param ctx [IN] TLS object * @param param [IN] Security parameter * * @retval HITLS_SUCCESS * @retval HITLS_MEMALLOC_FAIL Memory allocated failed * @retval HITLS_INTERNAL_EXCEPTION Invalid null pointer * */ int32_t REC_InitPendingState(const TLS_Ctx *ctx, const REC_SecParameters *param); /** * @ingroup record * @brief Activate the pending state, switch the pending state to the current state * * @attention ctx cannot be empty * @param ctx [IN] TLS object * @param isOut [IN] Indicates whether is the output type * * @retval HITLS_SUCCESS * @retval HITLS_INTERNAL_EXCEPTION Invalid null pointer * */ int32_t REC_ActivePendingState(TLS_Ctx *ctx, bool isOut); /** * @brief Calculate the mtu * * @param ctx [IN] TLS_Ctx context * * @retval HITLS_SUCCESS * @retval ITLS_UIO_FAIL The uio ctrl failed */ int32_t REC_QueryMtu(TLS_Ctx *ctx); /** * @brief Obtain the maximum writable plaintext length of a single record * * @param ctx [IN] TLS_Ctx context * @param len [OUT] Maximum length of the plaintext * * @retval HITLS_SUCCESS * @retval HITLS_INTERNAL_EXCEPTION Invalid null pointer * @retval HITLS_REC_PMTU_TOO_SMALL The PMTU is too small */ int32_t REC_GetMaxWriteSize(const TLS_Ctx *ctx, uint32_t *len); /** * @brief Obtain the maximum writable plaintext according to mtu * * @param ctx [IN] TLS_Ctx context * @param len [OUT] Maximum length of the plaintext * * @retval HITLS_SUCCESS * @retval HITLS_UIO_IO_TYPE_ERROR Not UDP uio * @retval HITLS_REC_PMTU_TOO_SMALL The PMTU is too small */ int32_t REC_GetMaxDataMtu(const TLS_Ctx *ctx, uint32_t *len); /** * @ingroup record * @brief TLS13 Initialize the pending state * * @param ctx [IN] TLS object * @param param [IN] Security parameter * @param isOut [IN] Indicates whether is the output type * * @retval HITLS_SUCCESS * @retval HITLS_MEMALLOC_FAIL Memory allocated failed * @retval HITLS_INTERNAL_EXCEPTION Invalid null pointer * */ int32_t REC_TLS13InitPendingState(const TLS_Ctx *ctx, const REC_SecParameters *param, bool isOut); /** * @ingroup record * @brief Retransmit a record * * @param recCtx [IN] Record context * @param recordType [IN] record type * @param data [IN] data * @param dataLen [IN] data length */ int32_t REC_RetransmitListAppend(REC_Ctx *recCtx, REC_Type recordType, const uint8_t *data, uint32_t dataLen); /** * @ingroup record * @brief Clean the retransmit list * * @param recCtx [IN] Record context */ void REC_RetransmitListClean(REC_Ctx *recCtx); /** * @ingroup record * @brief Flush the retransmit list * * @param ctx [IN] TLS object * @retval HITLS_SUCCESS */ int32_t REC_RetransmitListFlush(TLS_Ctx *ctx); REC_Type REC_GetUnexpectedMsgType(TLS_Ctx *ctx); bool REC_HaveReadSuiteInfo(const TLS_Ctx *ctx); /** * @ingroup app * @brief Obtain the length of the remaining readable app messages in the current record. * * @param ctx [IN] TLS object * @return Length of the remaining readable app message */ uint32_t APP_GetReadPendingBytes(const TLS_Ctx *ctx); int32_t REC_RecOutBufReSet(TLS_Ctx *ctx); /** * @ingroup record * @brief Flush the buffer uio * * @param ctx [IN] TLS object * @retval HITLS_SUCCESS * @retval HITLS_REC_NORMAL_IO_BUSY uio busy * @retval HITLS_REC_ERR_IO_EXCEPTION uio error */ int32_t REC_FlightTransmit(TLS_Ctx *ctx); /** * @brief Obtain the out buffer remaining size * * @param ctx [IN] TLS_Ctx context * * @retval the out buffer remaining size */ uint32_t REC_GetOutBufPendingSize(const TLS_Ctx *ctx); /** * @brief Flush the record out buffer * * @param ctx [IN] TLS_Ctx context * * @retval HITLS_SUCCESS Out buffer is empty or flush success * @retval HITLS_REC_NORMAL_IO_BUSY Out buffer is not empty, but the IO operation is busy */ int32_t REC_OutBufFlush(TLS_Ctx *ctx); #ifdef __cplusplus } #endif #endif /* REC_H */
2301_79861745/bench_create
tls/record/include/rec.h
C
unknown
10,296
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #include "hitls_error.h" #include "tls.h" int32_t CovertRecordAlertToReturnValue(ALERT_Description description) { switch (description) { case ALERT_PROTOCOL_VERSION: return HITLS_REC_INVALID_PROTOCOL_VERSION; case ALERT_BAD_RECORD_MAC: return HITLS_REC_BAD_RECORD_MAC; case ALERT_DECODE_ERROR: return HITLS_REC_DECODE_ERROR; case ALERT_RECORD_OVERFLOW: return HITLS_REC_RECORD_OVERFLOW; case ALERT_UNEXPECTED_MESSAGE: return HITLS_REC_ERR_RECV_UNEXPECTED_MSG; default: return HITLS_REC_INVLAID_RECORD; } } int32_t RecordSendAlertMsg(TLS_Ctx *ctx, ALERT_Level level, ALERT_Description description) { /* RFC6347 4.1.2.7. Handling Invalid Records: We choose to discard invalid dtls record message and do not generate alerts. */ if (IS_SUPPORT_DATAGRAM(ctx->config.tlsConfig.originVersionMask)) { return HITLS_REC_NORMAL_RECV_BUF_EMPTY; } else { ctx->method.sendAlert(ctx, level, description); return CovertRecordAlertToReturnValue(description); } }
2301_79861745/bench_create
tls/record/src/rec_alert.c
C
unknown
1,667
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef REC_ALERT_H #define REC_ALERT_H #include <stdint.h> #include "tls.h" #ifdef __cplusplus extern "C" { #endif /** * @brief record Send an alert and determine whether to discard invalid records * based on RFC6347 4.1.2.7. Handling Invalid Records * * @param ctx [IN] tls Context * @param level [IN] Alert level * @param description [IN] alert Description * * @retval HITLS_REC_NORMAL_RECV_BUF_EMPTY Discarding message * @retval Other invalid message error codes, such as HITLS_REC_INVLAID_RECORD and HITLS_REC_INVALID_PROTOCOL_VERSION */ int32_t RecordSendAlertMsg(TLS_Ctx *ctx, ALERT_Level level, ALERT_Description description); #ifdef __cplusplus } #endif #endif
2301_79861745/bench_create
tls/record/src/rec_alert.h
C
unknown
1,239
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #include "hitls_build.h" #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) #include "rec_anti_replay.h" #define REC_SLID_WINDOW_SIZE 64 void RecAntiReplayReset(RecSlidWindow *w) { w->top = 0; w->window = 0; return; } bool RecAntiReplayCheck(const RecSlidWindow *w, uint64_t seq) { if (seq > w->top) { return false; } uint64_t bit = w->top - seq; if (bit >= REC_SLID_WINDOW_SIZE) { /* The sequence number must be smaller than or equal to the minimum value of the sliding window */ return true; } /* return true: The sequence number is equal to a certain value in the sliding window */ return (w->window & ((uint64_t)1 << bit)) != 0; } void RecAntiReplayUpdate(RecSlidWindow *w, uint64_t seq) { /* If the sequence number is too small, the flag bit is not updated */ if ((seq + REC_SLID_WINDOW_SIZE) <= w->top) { return; } /* If the sequence number is less than or equal to top, update the flag */ if (seq <= w->top) { uint64_t bit = w->top - seq; w->window |= (uint64_t)1 << bit; return; } /* If the sequence number is greater than top, update the maximum sliding window size */ uint64_t bit = seq - w->top; w->top = seq; if (bit >= REC_SLID_WINDOW_SIZE) { /* If the number exceeds the current number too much, all previous flags are cleared and the maximum value is * updated */ w->window = 1; } else { w->window <<= bit; w->window |= 1; } return; } #endif /* HITLS_TLS_PROTO_DTLS12 && HITLS_BSL_UIO_UDP */
2301_79861745/bench_create
tls/record/src/rec_anti_replay.c
C
unknown
2,161
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef REC_ANTI_REPLAY_H #define REC_ANTI_REPLAY_H #include <stdint.h> #include <stdbool.h> #ifdef __cplusplus extern "C" { #endif /** * Anti-replay check function: * Use uint64_t variable to store flag bit,When receive a message, set the flag of corresponding sequence number to 1 * The least significant bit of the variable stores the maximum sequence number of the sliding window top, * when the top updates, shift the sliding window to the left * If a duplicate message or a message whose sequence number is smaller than the minimum sliding window value * is received, discard it * * window: 64 bits Range: [top-63, top) * 1. Initial state: * top - 63 top * | - - - - - - | * 2. hen the top + 2 message is received: * top - 61 top + 2 * | - - - - - - | */ typedef struct { uint64_t top; /* Stores the current maximum sequence number */ uint64_t window; /* Sliding window for storing flag bits */ } RecSlidWindow; /** * @brief Reset of the anti-replay module * The invoker must ensure that the input parameter is not empty * * @param w [IN] Sliding window */ void RecAntiReplayReset(RecSlidWindow *w); /** * @brief Anti-Replay Check * The invoker must ensure that the input parameter is not empty * * @param w [IN] Sliding window * @param seq [IN] Sequence number to be checked * * @retval true The sequence number is duplicate * @retval false The sequence number is not duplicate */ bool RecAntiReplayCheck(const RecSlidWindow *w, uint64_t seq); /** * @brief Update the window * This function can be invoked only after the anti-replay check is passed * Ensure that the input parameter is not empty by the invoker * * @param w [IN] Sliding window. The input parameter correctness is ensured externally * @param seq [IN] Sequence number of the window to be updated */ void RecAntiReplayUpdate(RecSlidWindow *w, uint64_t seq); #ifdef __cplusplus } #endif #endif /* REC_ANTI_REPLAY_H */
2301_79861745/bench_create
tls/record/src/rec_anti_replay.h
C
unknown
2,612
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #include "hitls_build.h" #include "securec.h" #include "bsl_sal.h" #include "bsl_list.h" #include "bsl_err_internal.h" #include "tls_binlog_id.h" #include "bsl_log_internal.h" #include "hitls_error.h" #include "tls.h" #include "record.h" #include "rec_buf.h" RecBuf *RecBufNew(uint32_t bufSize) { RecBuf *buf = (RecBuf *)BSL_SAL_Calloc(1, sizeof(RecBuf)); if (buf == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17210, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Calloc fail", 0, 0, 0, 0); return NULL; } buf->buf = (uint8_t *)BSL_SAL_Calloc(1, bufSize); if (buf->buf == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17211, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Calloc fail", 0, 0, 0, 0); BSL_SAL_FREE(buf); return NULL; } buf->isHoldBuffer = true; buf->bufSize = bufSize; return buf; } int32_t RecBufResize(RecBuf *recBuf, uint32_t size) { if (recBuf == NULL || recBuf->bufSize == size || recBuf->end - recBuf->start > size) { return HITLS_SUCCESS; } uint8_t *newBuf = BSL_SAL_Calloc(size, sizeof(uint8_t)); if (newBuf == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17212, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Calloc fail", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_MEMALLOC_FAIL); return HITLS_MEMALLOC_FAIL; } (void)memcpy_s(newBuf, size, &recBuf->buf[recBuf->start], recBuf->end - recBuf->start); recBuf->end = recBuf->end - recBuf->start; recBuf->start = 0; BSL_SAL_FREE(recBuf->buf); recBuf->buf = newBuf; recBuf->bufSize = size; return HITLS_SUCCESS; } void RecBufFree(RecBuf *buf) { if (buf != NULL) { if (buf->isHoldBuffer) { BSL_SAL_FREE(buf->buf); } BSL_SAL_FREE(buf); } return; } void RecBufClean(RecBuf *buf) { buf->start = 0; buf->end = 0; return; } RecBufList *RecBufListNew(void) { return BSL_LIST_New(sizeof(RecBuf)); } void RecBufListFree(RecBufList *bufList) { BSL_LIST_FREE(bufList, (void(*)(void*))RecBufFree); } int32_t RecBufListDereference(RecBufList *bufList) { RecBuf *recBuf = (RecBuf *)BSL_LIST_GET_FIRST(bufList); while (recBuf != NULL) { if (!recBuf->isHoldBuffer) { uint8_t *buf = (uint8_t *)BSL_SAL_Dump(recBuf->buf, recBuf->bufSize); if (buf == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17215, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Dump fail", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_MEMALLOC_FAIL); return HITLS_MEMALLOC_FAIL; } recBuf->buf = buf; recBuf->isHoldBuffer = true; } recBuf = (RecBuf *)BSL_LIST_GET_NEXT(bufList); } return HITLS_SUCCESS; } bool RecBufListEmpty(RecBufList *bufList) { return BSL_LIST_GET_FIRST(bufList) == NULL; } int32_t RecBufListGetBuffer(RecBufList *bufList, uint8_t *buf, uint32_t bufLen, uint32_t *getLen, bool isPeek) { RecBuf *recBuf = (RecBuf *)BSL_LIST_GET_FIRST(bufList); if (recBuf == NULL || recBuf->buf == NULL) { *getLen = 0; return HITLS_SUCCESS; } uint32_t remain = recBuf->end - recBuf->start; uint32_t copyLen = (remain > bufLen) ? bufLen : remain; if (copyLen == 0) { if (recBuf->start == recBuf->end) { BSL_LIST_DeleteCurrent(bufList, (void(*)(void*))RecBufFree); } *getLen = 0; return HITLS_SUCCESS; } uint8_t *startBuf = &recBuf->buf[recBuf->start]; int32_t ret = memcpy_s(buf, bufLen, startBuf, copyLen); if (ret != EOK) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID16242, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "RecBufListGetBuffer memcpy_s failed; buf may be nullptr", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_MEMCPY_FAIL); return HITLS_MEMCPY_FAIL; } if (!isPeek) { recBuf->start += copyLen; } *getLen = copyLen; if (recBuf->start == recBuf->end) { BSL_LIST_DeleteCurrent(bufList, (void(*)(void*))RecBufFree); } return HITLS_SUCCESS; } int32_t RecBufListAddBuffer(RecBufList *bufList, RecBuf *buf) { RecBuf *newBuf = BSL_SAL_Calloc(1U, sizeof(RecBuf)); if (newBuf == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17216, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Calloc fail", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_MEMALLOC_FAIL); return HITLS_MEMALLOC_FAIL; } (void)memcpy_s(newBuf, sizeof(RecBuf), buf, sizeof(RecBuf)); if (BSL_LIST_AddElement(bufList, newBuf, BSL_LIST_POS_END) != BSL_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17217, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "AddElement fail", 0, 0, 0, 0); BSL_SAL_FREE(newBuf); return HITLS_MEMCPY_FAIL; } return HITLS_SUCCESS; }
2301_79861745/bench_create
tls/record/src/rec_buf.c
C
unknown
5,374
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef REC_BUF_H #define REC_BUF_H #include <stdint.h> #include "bsl_list.h" #ifdef __cplusplus extern "C" { #endif typedef struct { uint8_t *buf; uint32_t bufSize; uint32_t start; uint32_t end; uint32_t singleRecStart; uint32_t singleRecEnd; bool isHoldBuffer; } RecBuf; typedef struct BslList RecBufList; /** * @brief Allocate buffer * * @param bufSize [IN] buffer size * * @return RecBuf Buffer handle */ RecBuf *RecBufNew(uint32_t bufSize); /** * @brief Release the buffer * * @param buf [IN] Buffer handle. The buffer is released by the invoker */ void RecBufFree(RecBuf *buf); /** * @brief Release the data in buffer * * @param buf [IN] Buffer handle */ void RecBufClean(RecBuf *buf); RecBufList *RecBufListNew(void); void RecBufListFree(RecBufList *bufList); int32_t RecBufListDereference(RecBufList *bufList); bool RecBufListEmpty(RecBufList *bufList); int32_t RecBufListGetBuffer(RecBufList *bufList, uint8_t *buf, uint32_t bufLen, uint32_t *getLen, bool isPeek); int32_t RecBufListAddBuffer(RecBufList *bufList, RecBuf *buf); int32_t RecBufResize(RecBuf *recBuf, uint32_t size); #ifdef __cplusplus } #endif #endif
2301_79861745/bench_create
tls/record/src/rec_buf.h
C
unknown
1,740
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #include <string.h> #include "securec.h" #include "hitls_build.h" #include "tls_binlog_id.h" #include "bsl_log_internal.h" #include "bsl_err_internal.h" #include "bsl_bytes.h" #include "hitls_error.h" #include "crypt.h" #include "rec_alert.h" #include "rec_crypto.h" #include "rec_conn.h" #define KEY_EXPANSION_LABEL "key expansion" #ifdef HITLS_TLS_SUITE_CIPHER_CBC #define CBC_MAC_HEADER_LEN 13U #endif RecConnState *RecConnStateNew(void) { RecConnState *state = (RecConnState *)BSL_SAL_Calloc(1, sizeof(RecConnState)); if (state == NULL) { BSL_ERR_PUSH_ERROR(HITLS_MEMALLOC_FAIL); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15382, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record conn:malloc fail.", 0, 0, 0, 0); return NULL; } return state; } void RecConnStateFree(RecConnState *state) { if (state == NULL) { return; } if (state->suiteInfo != NULL) { #ifdef HITLS_TLS_CALLBACK_CRYPT_HMAC_PRIMITIVES SAL_CRYPT_HmacFree(state->suiteInfo->macCtx); state->suiteInfo->macCtx = NULL; #endif SAL_CRYPT_CipherFree(state->suiteInfo->ctx); state->suiteInfo->ctx = NULL; } /* Clear sensitive information */ BSL_SAL_CleanseData(state->suiteInfo, sizeof(RecConnSuitInfo)); BSL_SAL_FREE(state->suiteInfo); BSL_SAL_FREE(state); return; } uint64_t RecConnGetSeqNum(const RecConnState *state) { return state->seq; } void RecConnSetSeqNum(RecConnState *state, uint64_t seq) { state->seq = seq; } #ifdef HITLS_TLS_PROTO_DTLS12 uint16_t RecConnGetEpoch(const RecConnState *state) { return state->epoch; } void RecConnSetEpoch(RecConnState *state, uint16_t epoch) { state->epoch = epoch; } #endif int32_t RecConnStateSetCipherInfo(RecConnState *state, RecConnSuitInfo *suitInfo) { if (state->suiteInfo != NULL) { SAL_CRYPT_CipherFree(state->suiteInfo->ctx); state->suiteInfo->ctx = NULL; #ifdef HITLS_TLS_CALLBACK_CRYPT_HMAC_PRIMITIVES SAL_CRYPT_HmacFree(state->suiteInfo->macCtx); state->suiteInfo->macCtx = NULL; #endif } /* Clear sensitive information */ BSL_SAL_CleanseData(state->suiteInfo, sizeof(RecConnSuitInfo)); // Ensure that no memory leak occurs BSL_SAL_FREE(state->suiteInfo); state->suiteInfo = (RecConnSuitInfo *)BSL_SAL_Malloc(sizeof(RecConnSuitInfo)); if (state->suiteInfo == NULL) { BSL_ERR_PUSH_ERROR(HITLS_MEMALLOC_FAIL); BSL_LOG_BINLOG_FIXLEN( BINLOG_ID15383, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record conn: malloc fail.", 0, 0, 0, 0); return HITLS_MEMALLOC_FAIL; } (void)memcpy_s(state->suiteInfo, sizeof(RecConnSuitInfo), suitInfo, sizeof(RecConnSuitInfo)); return HITLS_SUCCESS; } #ifdef HITLS_TLS_SUITE_CIPHER_CBC uint32_t RecGetHashAlgoFromMACAlgo(HITLS_MacAlgo macAlgo) { switch (macAlgo) { case HITLS_MAC_1: return HITLS_HASH_SHA1; case HITLS_MAC_256: return HITLS_HASH_SHA_256; case HITLS_MAC_224: return HITLS_HASH_SHA_224; case HITLS_MAC_384: return HITLS_HASH_SHA_384; case HITLS_MAC_512: return HITLS_HASH_SHA_512; #ifdef HITLS_TLS_PROTO_TLCP11 case HITLS_MAC_SM3: return HITLS_HASH_SM3; #endif default: BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15388, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "CBC encrypt error: unsupport MAC algorithm = %u.", macAlgo, 0, 0, 0); break; } return HITLS_HASH_BUTT; } int32_t RecConnGenerateMac(HITLS_Lib_Ctx *libCtx, const char *attrName, RecConnSuitInfo *suiteInfo, const REC_TextInput *plainMsg, uint8_t *mac, uint32_t *macLen) { int32_t ret = HITLS_SUCCESS; uint8_t header[CBC_MAC_HEADER_LEN] = {0}; uint32_t offset = 0; if (memcpy_s(header, CBC_MAC_HEADER_LEN, plainMsg->seq, REC_CONN_SEQ_SIZE) != EOK) { // sequence or epoch + seq return RETURN_ERROR_NUMBER_PROCESS(HITLS_MEMCPY_FAIL, BINLOG_ID17228, "memcpy fail"); } offset += REC_CONN_SEQ_SIZE; header[offset] = plainMsg->type; // The eighth byte is the record type offset++; BSL_Uint16ToByte(plainMsg->version, &header[offset]); // The 9th and 10th bytes are version numbers offset += sizeof(uint16_t); BSL_Uint16ToByte((uint16_t)plainMsg->textLen, &header[offset]); // The 11th and 12th bytes are the data length HITLS_HashAlgo hashAlgo = RecGetHashAlgoFromMACAlgo(suiteInfo->macAlg); if (hashAlgo == HITLS_HASH_BUTT) { return RETURN_ERROR_NUMBER_PROCESS(HITLS_REC_ERR_GENERATE_MAC, BINLOG_ID17229, "RecGetHashAlgoFromMACAlgo fail"); } if (suiteInfo->macCtx == NULL) { suiteInfo->macCtx = SAL_CRYPT_HmacInit(libCtx, attrName, hashAlgo, suiteInfo->macKey, suiteInfo->macKeyLen); ret = suiteInfo->macCtx == NULL ? HITLS_REC_ERR_GENERATE_MAC : HITLS_SUCCESS; } else { ret = SAL_CRYPT_HmacReInit(suiteInfo->macCtx); } if (ret != HITLS_SUCCESS) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_GENERATE_MAC); return RETURN_ERROR_NUMBER_PROCESS(HITLS_REC_ERR_GENERATE_MAC, BINLOG_ID15389, "SAL_CRYPT_HmacInit fail"); } ret = SAL_CRYPT_HmacUpdate(suiteInfo->macCtx, header, CBC_MAC_HEADER_LEN); if (ret != HITLS_SUCCESS) { return RETURN_ERROR_NUMBER_PROCESS(ret, BINLOG_ID17230, "HmacUpdate fail"); } ret = SAL_CRYPT_HmacUpdate(suiteInfo->macCtx, plainMsg->text, plainMsg->textLen); if (ret != HITLS_SUCCESS) { return RETURN_ERROR_NUMBER_PROCESS(ret, BINLOG_ID17231, "HmacUpdate fail"); } ret = SAL_CRYPT_HmacFinal(suiteInfo->macCtx, mac, macLen); if (ret != HITLS_SUCCESS) { return RETURN_ERROR_NUMBER_PROCESS(ret, BINLOG_ID17232, "HmacFinal fail"); } return HITLS_SUCCESS; } void RecConnInitGenerateMacInput(const REC_TextInput *in, const uint8_t *text, uint32_t textLen, REC_TextInput *out) { out->version = in->version; out->negotiatedVersion = in->negotiatedVersion; #ifdef HITLS_TLS_FEATURE_ETM out->isEncryptThenMac = in->isEncryptThenMac; #endif out->type = in->type; out->text = text; out->textLen = textLen; for (uint32_t i = 0u; i < REC_CONN_SEQ_SIZE; i++) { out->seq[i] = in->seq[i]; } } int32_t RecConnCheckMac(TLS_Ctx *ctx, RecConnSuitInfo *suiteInfo, const REC_TextInput *cryptMsg, const uint8_t *text, uint32_t textLen) { REC_TextInput input = {0}; uint8_t mac[MAX_DIGEST_SIZE] = {0}; uint32_t macLen = MAX_DIGEST_SIZE; RecConnInitGenerateMacInput(cryptMsg, text, textLen - suiteInfo->macLen, &input); int32_t ret = RecConnGenerateMac(LIBCTX_FROM_CTX(ctx), ATTRIBUTE_FROM_CTX(ctx), suiteInfo, &input, mac, &macLen); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17233, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "RecConnGenerateMac fail.", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_INTERNAL_ERROR); } if (macLen != suiteInfo->macLen) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15929, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "record cbc mode decrypt error: macLen = %u, required len = %u.", macLen, suiteInfo->macLen, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_BAD_RECORD_MAC); } if (memcmp(&text[textLen - suiteInfo->macLen], mac, macLen) != 0) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15942, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "record cbc mode decrypt error: MAC check failed.", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_BAD_RECORD_MAC); } return HITLS_SUCCESS; } #endif /* HITLS_TLS_SUITE_CIPHER_CBC */ int32_t RecConnEncrypt(TLS_Ctx *ctx, RecConnState *state, const REC_TextInput *plainMsg, uint8_t *cipherText, uint32_t cipherTextLen) { return RecGetCryptoFuncs(state->suiteInfo)->encryt(ctx, state, plainMsg, cipherText, cipherTextLen); } int32_t RecConnDecrypt(TLS_Ctx *ctx, RecConnState *state, const REC_TextInput *cryptMsg, uint8_t *data, uint32_t *dataLen) { const RecCryptoFunc *funcs = RecGetCryptoFuncs(state->suiteInfo); uint32_t ciphertextLen = funcs->calCiphertextLen(ctx, state->suiteInfo, 0, true); // The length of the record body to be decrypted must be greater than or equal to ciphertextLen if (cryptMsg->textLen < ciphertextLen) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15403, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "RecConnDecrypt Failed: record body length to be decrypted is %u, lower bound of ciphertext len is %u", cryptMsg->textLen, ciphertextLen, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_BAD_RECORD_MAC); } return funcs->decrypt(ctx, state, cryptMsg, data, dataLen); } static void PackSuitInfo(RecConnSuitInfo *suitInfo, const REC_SecParameters *param) { suitInfo->macAlg = param->macAlg; suitInfo->cipherAlg = param->cipherAlg; suitInfo->cipherType = param->cipherType; suitInfo->fixedIvLength = param->fixedIvLength; suitInfo->encKeyLen = param->encKeyLen; suitInfo->macKeyLen = param->macKeyLen; suitInfo->blockLength = param->blockLength; suitInfo->recordIvLength = param->recordIvLength; suitInfo->macLen = param->macLen; return; } static void RecConnCalcWriteKey(const REC_SecParameters *param, uint8_t *keyBuf, uint32_t keyBufLen, RecConnSuitInfo *client, RecConnSuitInfo *server) { if (keyBufLen == 0) { return; } uint32_t offset = 0; uint32_t totalOffset = 2 * param->macKeyLen + 2 * param->encKeyLen + 2 * param->fixedIvLength; if (keyBufLen < totalOffset) { return; } if (param->macKeyLen > 0u) { if (memcpy_s(client->macKey, sizeof(client->macKey), keyBuf, param->macKeyLen) != EOK) { return; } offset += param->macKeyLen; if (memcpy_s(server->macKey, sizeof(server->macKey), keyBuf + offset, param->macKeyLen) != EOK) { return; } offset += param->macKeyLen; } if (param->encKeyLen > 0u) { if (memcpy_s(client->key, sizeof(client->key), keyBuf + offset, param->encKeyLen) != EOK) { return; } offset += param->encKeyLen; if (memcpy_s(server->key, sizeof(server->key), keyBuf + offset, param->encKeyLen) != EOK) { return; } offset += param->encKeyLen; } if (param->fixedIvLength > 0u) { if (memcpy_s(client->iv, sizeof(client->iv), keyBuf + offset, param->fixedIvLength) != EOK) { return; } offset += param->fixedIvLength; if (memcpy_s(server->iv, sizeof(server->iv), keyBuf + offset, param->fixedIvLength) != EOK) { return; } } PackSuitInfo(client, param); PackSuitInfo(server, param); } int32_t RecConnKeyBlockGen(HITLS_Lib_Ctx *libCtx, const char *attrName, const REC_SecParameters *param, RecConnSuitInfo *client, RecConnSuitInfo *server) { /** Calculate the key length: 2MAC, 2key, 2IV */ uint32_t keyLen = ((uint32_t)param->macKeyLen * 2) + ((uint32_t)param->encKeyLen * 2) + ((uint32_t)param->fixedIvLength * 2); if (keyLen == 0u || param->macKeyLen > sizeof(client->macKey) || param->encKeyLen > sizeof(client->key) || param->fixedIvLength > sizeof(client->iv)) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_NOT_SUPPORT_CIPHER); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15943, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record Key: not support--length is invalid.", 0, 0, 0, 0); return HITLS_REC_ERR_NOT_SUPPORT_CIPHER; } /* Based on RFC5246 6.3 key_block = PRF(SecurityParameters.master_secret, "key expansion", SecurityParameters.server_random + SecurityParameters.client_random); */ CRYPT_KeyDeriveParameters keyDeriveParam = {0}; keyDeriveParam.hashAlgo = param->prfAlg; keyDeriveParam.secret = param->masterSecret; keyDeriveParam.secretLen = REC_MASTER_SECRET_LEN; keyDeriveParam.label = (const uint8_t *)KEY_EXPANSION_LABEL; keyDeriveParam.labelLen = strlen(KEY_EXPANSION_LABEL); keyDeriveParam.libCtx = libCtx; keyDeriveParam.attrName = attrName; uint8_t randomValue[REC_RANDOM_LEN * 2]; /** Random value of the replication server */ (void)memcpy_s(randomValue, sizeof(randomValue), param->serverRandom, REC_RANDOM_LEN); /** Random value of the replication client */ (void)memcpy_s(&randomValue[REC_RANDOM_LEN], sizeof(randomValue) - REC_RANDOM_LEN, param->clientRandom, REC_RANDOM_LEN); keyDeriveParam.seed = randomValue; // Total length of 2 random numbers keyDeriveParam.seedLen = REC_RANDOM_LEN * 2; /** Maximum key length: 2MAC, 2key, 2IV */ uint8_t keyBuf[REC_MAX_KEY_BLOCK_LEN]; int32_t ret = SAL_CRYPT_PRF(&keyDeriveParam, keyBuf, keyLen); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15944, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record Key:generate fail.", 0, 0, 0, 0); return ret; } RecConnCalcWriteKey(param, keyBuf, REC_MAX_KEY_BLOCK_LEN, client, server); BSL_SAL_CleanseData(keyBuf, sizeof(keyBuf)); return HITLS_SUCCESS; } #ifdef HITLS_TLS_PROTO_TLS13 int32_t RecTLS13CalcWriteKey(CRYPT_KeyDeriveParameters *deriveInfo, uint8_t *key, uint32_t keyLen) { uint8_t label[] = "key"; deriveInfo->label = label; deriveInfo->labelLen = sizeof(label) - 1; return SAL_CRYPT_HkdfExpandLabel(deriveInfo, key, keyLen); } int32_t RecTLS13CalcWriteIv(CRYPT_KeyDeriveParameters *deriveInfo, uint8_t *iv, uint32_t ivLen) { uint8_t label[] = "iv"; deriveInfo->label = label; deriveInfo->labelLen = sizeof(label) - 1; return SAL_CRYPT_HkdfExpandLabel(deriveInfo, iv, ivLen); } int32_t RecTLS13ConnKeyBlockGen(HITLS_Lib_Ctx *libCtx, const char *attrName, const REC_SecParameters *param, RecConnSuitInfo *suitInfo) { const uint8_t *secret = (const uint8_t *)param->masterSecret; uint32_t secretLen = SAL_CRYPT_DigestSize(param->prfAlg); if (secretLen == 0) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17234, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "DigestSize err", 0, 0, 0, 0); return HITLS_CRYPT_ERR_DIGEST; } uint32_t keyLen = param->encKeyLen; uint32_t ivLen = param->fixedIvLength; if (secretLen > sizeof(param->masterSecret) || keyLen > sizeof(suitInfo->key) || ivLen > sizeof(suitInfo->iv)) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_NOT_SUPPORT_CIPHER); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15408, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "length is invalid.", 0, 0, 0, 0); return HITLS_REC_ERR_NOT_SUPPORT_CIPHER; } CRYPT_KeyDeriveParameters deriveInfo = {0}; deriveInfo.hashAlgo = param->prfAlg; deriveInfo.secret = secret; deriveInfo.secretLen = secretLen; deriveInfo.libCtx = libCtx; deriveInfo.attrName = attrName; int32_t ret = RecTLS13CalcWriteKey(&deriveInfo, suitInfo->key, keyLen); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17235, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "CalcWriteKey fail", 0, 0, 0, 0); return ret; } ret = RecTLS13CalcWriteIv(&deriveInfo, suitInfo->iv, ivLen); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17236, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "CalcWriteIv fail", 0, 0, 0, 0); return ret; } PackSuitInfo(suitInfo, param); return HITLS_SUCCESS; } #endif /* HITLS_TLS_PROTO_TLS13 */
2301_79861745/bench_create
tls/record/src/rec_conn.c
C
unknown
16,301
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef REC_CONN_H #define REC_CONN_H #include <stdint.h> #include <stddef.h> #include "rec.h" #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) #include "rec_anti_replay.h" #endif /* HITLS_TLS_PROTO_DTLS12 && HITLS_BSL_UIO_UDP */ #ifdef __cplusplus extern "C" { #endif #define REC_MAX_MAC_KEY_LEN 64 #define REC_MAX_KEY_LENGTH 64 #define REC_MAX_IV_LENGTH 16 #define REC_MAX_KEY_BLOCK_LEN (REC_MAX_MAC_KEY_LEN * 2 + REC_MAX_KEY_LENGTH * 2 + REC_MAX_IV_LENGTH * 2) #define MAX_SHA1_SIZE 20 #define MAX_MD5_SIZE 16 #define REC_CONN_SEQ_SIZE 8u /* Sequence number size */ /** * Cipher suite information, which is required for local encryption and decryption * For details, see RFC5246 6.1 */ typedef struct { HITLS_MacAlgo macAlg; /* MAC algorithm */ HITLS_CipherAlgo cipherAlg; /* symmetric encryption algorithm */ HITLS_CipherType cipherType; /* encryption algorithm type */ HITLS_Cipher_Ctx *ctx; /* cipher context handle, only for record layer encryption and decryption */ HITLS_HMAC_Ctx *macCtx; /* mac context handle, only for record layer mac */ uint8_t macKey[REC_MAX_MAC_KEY_LEN]; uint8_t key[REC_MAX_KEY_LENGTH]; uint8_t iv[REC_MAX_IV_LENGTH]; bool isExportIV; /* Used by the TTO feature. The IV does not need to be randomly generated during CBC encryption If it is set by user */ /* key length */ uint8_t macKeyLen; /* Length of the MAC key. The length of the MAC key is 0 in AEAD algorithm */ uint8_t encKeyLen; /* Length of the symmetric key */ uint8_t fixedIvLength; /* iv length. It is the implicit IV length in AEAD algorithm */ /* result length */ uint8_t blockLength; /* If the block length is not zero, the alignment should be handled */ uint8_t recordIvLength; /* The explicit IV needs to be sent to the peer */ uint8_t macLen; /* Add the length of the MAC. Or the tag length in AEAD */ } RecConnSuitInfo; /* connection state */ typedef struct { RecConnSuitInfo *suiteInfo; /* Cipher suite information */ uint64_t seq; /* tls: 8 byte sequence number or dtls: 6 byte seq */ bool isWrapped; /* tls: Check whether the sequence number is wrapped */ uint16_t epoch; /* dtls: 2 byte epoch */ #if defined(HITLS_BSL_UIO_UDP) uint16_t reserve; /* Four-byte alignment is reserved */ RecSlidWindow window; /* dtls record sliding window (for anti-replay) */ #endif } RecConnState; /* see TLSPlaintext structure definition in rfc */ typedef struct { uint8_t type; // ccs(20), alert(21), hs(22), app data(23), (255) #ifdef HITLS_TLS_FEATURE_ETM bool isEncryptThenMac; #endif uint8_t reverse[2]; uint16_t version; uint16_t negotiatedVersion; uint8_t seq[REC_CONN_SEQ_SIZE]; /* 1. tls: sequence number 2.dtls: epoch + sequence */ uint32_t textLen; const uint8_t *text; // fragment } REC_TextInput; /** * @brief Initialize RecConnState */ RecConnState *RecConnStateNew(void); /** * @brief Release RecConnState */ void RecConnStateFree(RecConnState *state); /** * @brief Obtain the Sequence number * * @param state [IN] Connection state * * @retval Sequence number */ uint64_t RecConnGetSeqNum(const RecConnState *state); /** * @brief Set the Sequence number * * @param state [IN] Connection state * @param seq [IN] Sequence number * * @retval Sequence number */ void RecConnSetSeqNum(RecConnState *state, uint64_t seq); #ifdef HITLS_TLS_PROTO_DTLS12 /** * @brief Obtain the epoch * * @attention state can not be null pointer * * @param state [IN] Connection state * * @retval epoch */ uint16_t RecConnGetEpoch(const RecConnState *state); /** * @brief Set epoch * * @attention state can not be null pointer * @param state [IN] Connection state * @param epoch [IN] epoch * */ void RecConnSetEpoch(RecConnState *state, uint16_t epoch); #endif /** * @brief Set the key information * * @param state [IN] Connection state * @param suitInfo [IN] Ciphersuite information * * @retval HITLS_SUCCESS * @retval HITLS_INTERNAL_EXCEPTION Invalid null pointer * @retval HITLS_MEMALLOC_FAIL Memory allocated failed */ int32_t RecConnStateSetCipherInfo(RecConnState *state, RecConnSuitInfo *suitInfo); /** * @brief Encrypt the record payload * * @param ctx [IN] tls Context * @param state RecState context * @param plainMsg [IN] Input data before encryption * @param cipherText [OUT] Encrypted content * @param cipherTextLen [IN] Length after encryption * * @retval HITLS_SUCCESS * @retval HITLS_MEMCPY_FAIL Memory copy failed * @retval HITLS_REC_ERR_NOT_SUPPORT_CIPHER The key algorithm is not supported * @retval HITLS_REC_ERR_ENCRYPT Encryption failed * @see SAL_CRYPT_Encrypt */ int32_t RecConnEncrypt(TLS_Ctx *ctx, RecConnState *state, const REC_TextInput *plainMsg, uint8_t *cipherText, uint32_t cipherTextLen); /** * @brief Decrypt the record payload * * @param ctx [IN] tls Context * @param state RecState context * @param cryptMsg [IN] Content to be decrypted * @param data [OUT] Decrypted data * @param dataLen [IN/OUT] IN: length of data OUT: length after decryption * * @retval HITLS_SUCCESS * @retval HITLS_REC_ERR_NOT_SUPPORT_CIPHER The key algorithm is not supported * @retval HITLS_MEMCPY_FAIL Memory copy failed */ int32_t RecConnDecrypt(TLS_Ctx *ctx, RecConnState *state, const REC_TextInput *cryptMsg, uint8_t *data, uint32_t *dataLen); /** * @brief Key generation * * @param libCtx [IN] library context for provider * @param attrName [IN] attribute name of the provider, maybe NULL * @param param [IN] Security parameter * @param client [OUT] Client key material * @param server [OUT] Server key material * * @retval HITLS_SUCCESS * @retval HITLS_INTERNAL_EXCEPTION Invalid null pointer * @retval Reference SAL_CRYPT_PRF */ int32_t RecConnKeyBlockGen(HITLS_Lib_Ctx *libCtx, const char *attrName, const REC_SecParameters *param, RecConnSuitInfo *client, RecConnSuitInfo *server); /** * @brief TLS1.3 Key generation * * @param libCtx [IN] library context for provider * @param attrName [IN] attribute name of the provider, maybe NULL * @param param [IN] Security parameter * @param suitInfo [OUT] key material * * @retval HITLS_SUCCESS * @retval HITLS_UNREGISTERED_CALLBACK Unregistered callback * @retval HITLS_CRYPT_ERR_DIGEST hash calculation failed * @retval HITLS_CRYPT_ERR_HKDF_EXPAND HKDF-Expand calculation fails * */ int32_t RecTLS13ConnKeyBlockGen(HITLS_Lib_Ctx *libCtx, const char *attrName, const REC_SecParameters *param, RecConnSuitInfo *suitInfo); /* * @brief check the mac * * @param ctx [IN] tls Context * @param suiteInfo [IN] ciphersuiteInfo * @param cryptMsg [IN] text info * @param text [IN] fragment * @param textLen [IN] fragment len * @retval HITLS_SUCCESS * @retval Reference hitls_error.h */ int32_t RecConnCheckMac(TLS_Ctx *ctx, RecConnSuitInfo *suiteInfo, const REC_TextInput *cryptMsg, const uint8_t *text, uint32_t textLen); /* * @brief generate the mac * * @param libCtx [IN] library context for provider * @param attrName [IN] attribute name of the provider, maybe NULL * @param suiteInfo [IN] ciphersuiteInfo * @param plainMsg [IN] text info * @param mac [OUT] mac buffer * @param macLen [OUT] mac buffer len * @retval HITLS_SUCCESS * @retval Reference hitls_error.h */ int32_t RecConnGenerateMac(HITLS_Lib_Ctx *libCtx, const char *attrName, RecConnSuitInfo *suiteInfo, const REC_TextInput *plainMsg, uint8_t *mac, uint32_t *macLen); /* * @brief check the mac * * @param in [IN] plaintext info * @param text [IN] plaintext buf * @param textLen [IN] plaintext buf len * @param out [IN] mac info * @retval HITLS_SUCCESS * @retval Reference hitls_error.h */ void RecConnInitGenerateMacInput(const REC_TextInput *in, const uint8_t *text, uint32_t textLen, REC_TextInput *out); #ifdef HITLS_TLS_SUITE_CIPHER_CBC uint32_t RecGetHashAlgoFromMACAlgo(HITLS_MacAlgo macAlgo); #endif #ifdef __cplusplus } #endif #endif /* REC_CONN_H */
2301_79861745/bench_create
tls/record/src/rec_conn.h
C
unknown
9,038
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #include <string.h> #include "securec.h" #include "hitls_build.h" #include "bsl_bytes.h" #include "bsl_log_internal.h" #include "bsl_err_internal.h" #ifdef HITLS_TLS_SUITE_CIPHER_AEAD #include "rec_crypto_aead.h" #endif #ifdef HITLS_TLS_SUITE_CIPHER_CBC #include "rec_crypto_cbc.h" #endif #include "tls_binlog_id.h" #include "rec_conn.h" #include "rec_alert.h" #include "indicator.h" #include "hs.h" #include "hitls_error.h" #ifdef HITLS_TLS_PROTO_TLS13 /* 16384 + 1: RFC8446 5.4. Record Padding the full encoded TLSInnerPlaintext MUST NOT exceed 2^14 + 1 octets. */ #define MAX_PADDING_LEN 16385 /* * * @brief Obtain the content and record message types from the decrypted TLSInnerPlaintext. * After TLS1.3 decryption, the TLSInnerPlaintext structure is used. The padding needs to be removed and the actual message type needs to be obtained. * * struct { * opaque content[TLSPlaintext.length]; * ContentType type; * uint8 zeros[length_of_padding]; * } TLSInnerPlaintext; * * @param text [IN] Decrypted content (TLSInnerPlaintext) * @param textLen [OUT] Input (length of TLSInnerPlaintext) * Length of the output content * @param recType [OUT] Message body length * * @return HITLS_SUCCESS succeeded * HITLS_ALERT_FATAL Unexpected Message */ int32_t RecParseInnerPlaintext(TLS_Ctx *ctx, const uint8_t *text, uint32_t *textLen, uint8_t *recType) { /* The receiver decrypts and scans the field from the end to the beginning until it finds a non-zero octet. This * non-zero byte is the message type of record If no non-zero bytes are found, an unexpected alert needs to be sent * and the chain is terminated */ uint32_t len = *textLen; for (uint32_t i = len; i > 0; i--) { if (text[i - 1] != 0) { *recType = text[i - 1]; // When the value is the same as the rectype index, the value is the length of the content *textLen = i - 1; return HITLS_SUCCESS; } } BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_RECV_UNEXPECTED_MSG); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15453, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Recved UNEXPECTED_MESSAGE.", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_UNEXPECTED_MESSAGE); } #endif /* HITLS_TLS_PROTO_TLS13 */ static int32_t DefaultDecryptPostProcess(TLS_Ctx *ctx, RecConnSuitInfo *suiteInfo, REC_TextInput *encryptedMsg, uint8_t *data, uint32_t *dataLen) { (void)ctx; (void)suiteInfo; (void)encryptedMsg; (void)data; (void)dataLen; #ifdef HITLS_TLS_PROTO_TLS13 /* If the version is tls1.3 and encryption is required, you need to create a TLSInnerPlaintext message */ if (ctx->negotiatedInfo.version == HITLS_VERSION_TLS13 && suiteInfo != NULL) { return RecParseInnerPlaintext(ctx, data, dataLen, &encryptedMsg->type); } #endif return HITLS_SUCCESS; } static int32_t DefaultEncryptPreProcess(TLS_Ctx *ctx, uint8_t recordType, const uint8_t *data, uint32_t plainLen, RecordPlaintext *recPlaintext) { #ifdef HITLS_TLS_PROTO_TLS (void)ctx, (void)data; recPlaintext->recordType = recordType; recPlaintext->plainLen = plainLen; recPlaintext->plainData = NULL; #ifdef HITLS_TLS_PROTO_TLS13 if (ctx->negotiatedInfo.version != HITLS_VERSION_TLS13 || ctx->recCtx->writeStates.currentState->suiteInfo == NULL) { return HITLS_SUCCESS; } recPlaintext->isTlsInnerPlaintext = true; /* Currently, the padding length is set to 0. If required, the padding length can be customized */ uint16_t recPaddingLength = 0; if (ctx->config.tlsConfig.recordPaddingCb != NULL) { recPaddingLength = (uint16_t)ctx->config.tlsConfig.recordPaddingCb(ctx, recordType, plainLen, ctx->config.tlsConfig.recordPaddingArg); } #ifdef HITLS_TLS_FEATURE_INDICATOR INDICATOR_MessageIndicate( 0, HS_GetVersion(ctx), RECORD_INNER_CONTENT_TYPE, &recordType, 1, ctx, ctx->config.tlsConfig.msgArg); #endif /* TlsInnerPlaintext see rfc 8446 section 5.2 */ /* tlsInnerPlaintext length = content length + record type length (1) + padding length */ uint32_t tlsInnerPlaintextLen = plainLen + sizeof(uint8_t) + recPaddingLength; if (tlsInnerPlaintextLen > MAX_PADDING_LEN) { BSL_ERR_PUSH_ERROR(HITLS_REC_RECORD_OVERFLOW); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15669, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Pack TlsInnerPlaintext length(%u) MUST NOT exceed 2^14 + 1 octets.", tlsInnerPlaintextLen, 0, 0, 0); return HITLS_REC_RECORD_OVERFLOW; } uint8_t *tlsInnerPlaintext = BSL_SAL_Calloc(1u, tlsInnerPlaintextLen); if (tlsInnerPlaintext == NULL) { BSL_ERR_PUSH_ERROR(HITLS_MEMALLOC_FAIL); return RETURN_ERROR_NUMBER_PROCESS(HITLS_MEMALLOC_FAIL, BINLOG_ID17253, "Calloc fail"); } if (memcpy_s(tlsInnerPlaintext, tlsInnerPlaintextLen, data, plainLen) != EOK) { BSL_SAL_FREE(tlsInnerPlaintext); BSL_ERR_PUSH_ERROR(HITLS_MEMCPY_FAIL); return RETURN_ERROR_NUMBER_PROCESS(HITLS_MEMCPY_FAIL, BINLOG_ID17254, "memcpy fail"); } tlsInnerPlaintext[plainLen] = recordType; /* Padding is calloc when the memory is applied for. Therefore, the number of buffs to be supplemented is 0. You do * not need to perform any operation */ recPlaintext->plainLen = tlsInnerPlaintextLen; recPlaintext->plainData = tlsInnerPlaintext; /* tls1.3 Hide the actual record type during encryption */ recPlaintext->recordType = (uint8_t)REC_TYPE_APP; #endif /* HITLS_TLS_PROTO_TLS13 */ return HITLS_SUCCESS; #else (void)ctx, (void)recordType, (void)data, (void)plainLen, (void)recPlaintext; return HITLS_REC_ERR_NOT_SUPPORT_CIPHER; #endif /* HITLS_TLS_PROTO_TLS */ } static uint32_t PlainCalCiphertextLen(const TLS_Ctx *ctx, RecConnSuitInfo *suiteInfo, uint32_t plantextLen, bool isRead) { (void)ctx; (void)suiteInfo; (void)isRead; return plantextLen; } static int32_t PlainCalPlantextBufLen(TLS_Ctx *ctx, RecConnSuitInfo *suiteInfo, uint32_t ciphertextLen, uint32_t *offset, uint32_t *plainLen) { (void)ctx; (void)suiteInfo; *offset = 0; *plainLen = ciphertextLen; return HITLS_SUCCESS; } static int32_t PlainDecrypt(TLS_Ctx *ctx, RecConnState *suiteInfo, const REC_TextInput *cryptMsg, uint8_t *data, uint32_t *dataLen) { (void)ctx; (void)suiteInfo; if (memcpy_s(data, *dataLen, cryptMsg->text, cryptMsg->textLen) != EOK) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15404, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "RecConnDecrypt Failed: memcpy fail.", 0, 0, 0, 0); return HITLS_MEMCPY_FAIL; } // For empty ciphersuite case, the plaintext length is equal to ciphertext length *dataLen = cryptMsg->textLen; return HITLS_SUCCESS; } static int32_t PlainEncrypt(TLS_Ctx *ctx, RecConnState *state, const REC_TextInput *plainMsg, uint8_t *cipherText, uint32_t cipherTextLen) { (void)ctx; (void)state; if (memcpy_s(cipherText, cipherTextLen, plainMsg->text, plainMsg->textLen) != EOK) { BSL_ERR_PUSH_ERROR(HITLS_MEMCPY_FAIL); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15926, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record:memcpy fail.", 0, 0, 0, 0); return HITLS_MEMCPY_FAIL; } return HITLS_SUCCESS; } static int32_t UnsupoortDecrypt(TLS_Ctx *ctx, RecConnState *suiteInfo, const REC_TextInput *cryptMsg, uint8_t *data, uint32_t *dataLen) { (void)ctx; (void)suiteInfo; (void)cryptMsg; (void)data; (void)dataLen; return HITLS_REC_ERR_NOT_SUPPORT_CIPHER; } static int32_t UnsupoortEncrypt(TLS_Ctx *ctx, RecConnState *State, const REC_TextInput *plainMsg, uint8_t *cipherText, uint32_t cipherTextLen) { (void)ctx; (void)State; (void)plainMsg; (void)cipherText; (void)cipherTextLen; return HITLS_REC_ERR_NOT_SUPPORT_CIPHER; } const RecCryptoFunc *RecGetCryptoFuncs(const RecConnSuitInfo *suiteInfo) { static RecCryptoFunc cryptoFuncPlain = { PlainCalCiphertextLen, PlainCalPlantextBufLen, PlainDecrypt, DefaultDecryptPostProcess, PlainEncrypt, DefaultEncryptPreProcess }; if (suiteInfo == NULL) { return &cryptoFuncPlain; } switch (suiteInfo->cipherType) { #ifdef HITLS_TLS_SUITE_CIPHER_AEAD case HITLS_AEAD_CIPHER: return RecGetAeadCryptoFuncs(DefaultDecryptPostProcess, DefaultEncryptPreProcess); #endif #ifdef HITLS_TLS_SUITE_CIPHER_CBC case HITLS_CBC_CIPHER: return RecGetCbcCryptoFuncs(DefaultDecryptPostProcess, DefaultEncryptPreProcess); #endif default: break; } BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_NOT_SUPPORT_CIPHER); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID16240, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Internal error, unsupport cipher.", 0, 0, 0, 0); static RecCryptoFunc cryptoFuncUnsupport = { PlainCalCiphertextLen, PlainCalPlantextBufLen, UnsupoortDecrypt, DefaultDecryptPostProcess, UnsupoortEncrypt, DefaultEncryptPreProcess }; return &cryptoFuncUnsupport; }
2301_79861745/bench_create
tls/record/src/rec_crypto.c
C
unknown
9,838
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef REC_CRYPT_H #define REC_CRYPT_H #include "hitls_build.h" #include "hitls_error.h" #include "record.h" #include "rec_conn.h" #ifdef HITLS_TLS_PROTO_TLS typedef struct { REC_Type recordType; /* Protocol type */ uint32_t plainLen; /* message length */ uint8_t *plainData; /* message data */ #ifdef HITLS_TLS_PROTO_TLS13 /* Length of the tls1.3 padding content. Currently, the value is 0. The value can be used as required */ uint64_t recPaddingLength; #endif bool isTlsInnerPlaintext; /* Whether it is a TLSInnerPlaintext message for tls1.3 */ } RecordPlaintext; /* Record protocol data before encryption */ #else typedef struct DtlsRecordPlaintext RecordPlaintext; #endif typedef uint32_t (*CalCiphertextLenFunc)(const TLS_Ctx *ctx, RecConnSuitInfo *suitInfo, uint32_t plantextLen, bool isRead); typedef int32_t (*CalPlantextBufLenFunc)(TLS_Ctx *ctx, RecConnSuitInfo *suitInfo, uint32_t ciphertextLen, uint32_t *offset, uint32_t *plaintextLen); typedef int32_t (*DecryptFunc)(TLS_Ctx *ctx, RecConnState *state, const REC_TextInput *cryptMsg, uint8_t *data, uint32_t *dataLen); typedef int32_t (*EncryptFunc)(TLS_Ctx *ctx, RecConnState *state, const REC_TextInput *plainMsg, uint8_t *cipherText, uint32_t cipherTextLen); typedef int32_t (*DecryptPostProcess)(TLS_Ctx *ctx, RecConnSuitInfo *suitInfo, REC_TextInput *cryptMsg, uint8_t *data, uint32_t *dataLen); typedef int32_t (*EncryptPreProcess)(TLS_Ctx *ctx, uint8_t recordType, const uint8_t *data, uint32_t plainLen, RecordPlaintext *recPlaintext); typedef struct { CalCiphertextLenFunc calCiphertextLen; CalPlantextBufLenFunc calPlantextBufLen; DecryptFunc decrypt; DecryptPostProcess decryptPostProcess; EncryptFunc encryt; EncryptPreProcess encryptPreProcess; } RecCryptoFunc; const RecCryptoFunc *RecGetCryptoFuncs(const RecConnSuitInfo *suiteInfo); #endif
2301_79861745/bench_create
tls/record/src/rec_crypto.h
C
unknown
2,452
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #include <string.h> #include "hitls_build.h" #ifdef HITLS_TLS_SUITE_CIPHER_AEAD #include "securec.h" #include "tls_binlog_id.h" #include "bsl_log_internal.h" #include "bsl_err_internal.h" #include "bsl_bytes.h" #include "crypt.h" #include "hitls_error.h" #include "record.h" #include "rec_alert.h" #include "rec_conn.h" #include "rec_crypto_aead.h" #define AEAD_AAD_TLS12_SIZE 13u /* TLS1.2 AEAD additional_data length */ #define AEAD_AAD_MAX_SIZE AEAD_AAD_TLS12_SIZE #define AEAD_NONCE_SIZE 12u /* The length of the AEAD nonce is fixed to 12 */ #define AEAD_NONCE_ZEROS_SIZE 4u /* The length of the AEAD nonce First 4 bytes */ #ifdef HITLS_TLS_PROTO_TLS13 #define AEAD_AAD_TLS13_SIZE 5u /* TLS1.3 AEAD additional_data length */ #endif static int32_t CleanSensitiveData(int32_t ret, uint8_t *nonce, uint8_t *aad, uint32_t outLen, uint32_t cipherLen) { BSL_SAL_CleanseData(nonce, AEAD_NONCE_SIZE); BSL_SAL_CleanseData(aad, AEAD_AAD_MAX_SIZE); if (ret != HITLS_SUCCESS) { BSL_ERR_PUSH_ERROR(ret); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15480, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record:encrypt record error.", NULL, NULL, NULL, NULL); return ret; } if (outLen != cipherLen) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_ENCRYPT); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15481, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record:encrypt error. outLen:%u cipherLen:%u", outLen, cipherLen, NULL, NULL); return HITLS_REC_ERR_ENCRYPT; } return HITLS_SUCCESS; } static int32_t AeadGetNonce(const RecConnSuitInfo *suiteInfo, uint8_t *nonce, uint8_t nonceLen, const uint8_t *seq, uint8_t seqLen) { uint8_t fixedIvLength = suiteInfo->fixedIvLength; uint8_t recordIvLength = suiteInfo->recordIvLength; if ((fixedIvLength + recordIvLength) != nonceLen) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17239, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "nonceLen err", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_AEAD_NONCE_PARAM); return HITLS_REC_ERR_AEAD_NONCE_PARAM; // The caller should ensure that the input is correct } if (recordIvLength == seqLen) { /* * According to the RFC5116 && RFC5288 AEAD_AES_128_GCM/AEAD_AES_256_GCM definition, the nonce length is fixed * to 12. 4 bytes + 8bytes(64 bits record sequence number, big endian) = 12 bytes 4 bytes the implicit part be * derived from iv. The first 4 bytes of the IV are obtained. */ (void)memcpy_s(nonce, nonceLen, suiteInfo->iv, fixedIvLength); (void)memcpy_s(&nonce[fixedIvLength], recordIvLength, seq, seqLen); return HITLS_SUCCESS; } else if (recordIvLength == 0) { /* * (same as defined in RFC7905 AEAD_CHACHA20_POLY1305) * The per-record nonce for the AEAD defined in RFC8446 5.3 * First 4 bytes (all 0s) + Last 8bytes(64 bits record sequence number, big endian) = 12 bytes * Perform XOR with the 12 bytes IV. The result is nonce. */ // First four bytes (all 0s) (void)memset_s(&nonce[0], nonceLen, 0, AEAD_NONCE_ZEROS_SIZE); // First 4 bytes (all 0s) + Last 8 bytes (64-bit record sequence number, big endian) (void)memcpy_s(&nonce[AEAD_NONCE_ZEROS_SIZE], nonceLen - AEAD_NONCE_ZEROS_SIZE, seq, seqLen); for (uint32_t i = 0; i < nonceLen; i++) { nonce[i] = nonce[i] ^ suiteInfo->iv[i]; } return HITLS_SUCCESS; } BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17240, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "get nonce fail", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_AEAD_NONCE_PARAM); return HITLS_REC_ERR_AEAD_NONCE_PARAM; } static void AeadGetAad(uint8_t *aad, uint32_t *aadLen, const REC_TextInput *input, uint32_t plainDataLen) { #ifdef HITLS_TLS_PROTO_TLS13 /* TLS1.3 generation additional_data = TLSCiphertext.opaque_type || TLSCiphertext.legacy_record_version || TLSCiphertext.length */ if (input->negotiatedVersion == HITLS_VERSION_TLS13) { // The 0th byte is the record type aad[0] = input->type; uint32_t offset = 1; // The first and second bytes of indicate the version number BSL_Uint16ToByte(input->version, &aad[offset]); offset += sizeof(uint16_t); // The third and fourth bytes of indicate the data length BSL_Uint16ToByte((uint16_t)plainDataLen, &aad[offset]); *aadLen = AEAD_AAD_TLS13_SIZE; return; } #endif /* HITLS_TLS_PROTO_TLS13 */ /* non-TLS1.3 generation additional_data = seq_num + TLSCompressed.type + TLSCompressed.version + * TLSCompressed.length */ (void)memcpy_s(aad, AEAD_AAD_MAX_SIZE, input->seq, REC_CONN_SEQ_SIZE); uint32_t offset = REC_CONN_SEQ_SIZE; aad[offset] = input->type; // The eighth byte indicates the record type offset++; BSL_Uint16ToByte(input->version, &aad[offset]); // The ninth and tenth bytes indicate the version number. offset += sizeof(uint16_t); BSL_Uint16ToByte((uint16_t)plainDataLen, &aad[offset]); // The 11th and 12th bytse indicate the data length. *aadLen = AEAD_AAD_TLS12_SIZE; return; } static uint32_t AeadCalCiphertextLen(const TLS_Ctx *ctx, RecConnSuitInfo *suiteInfo, uint32_t plantextLen, bool isRead) { (void)ctx; (void)isRead; return plantextLen + suiteInfo->macLen + suiteInfo->recordIvLength; } static int32_t AeadCalPlantextBufLen(TLS_Ctx *ctx, RecConnSuitInfo *suiteInfo, uint32_t ciphertextLen, uint32_t *offset, uint32_t *plainLen) { (void)ctx; *offset = suiteInfo->recordIvLength; uint32_t plantextLen = ciphertextLen - suiteInfo->macLen - suiteInfo->recordIvLength; if (plantextLen > ciphertextLen) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17241, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "plantextLen err", 0, 0, 0, 0); return HITLS_INVALID_INPUT; } *plainLen = plantextLen; return HITLS_SUCCESS; } static int32_t AeadDecrypt(TLS_Ctx *ctx, RecConnState *state, const REC_TextInput *cryptMsg, uint8_t *data, uint32_t *dataLen) { RecConnSuitInfo *suiteInfo = state->suiteInfo; /** Initialize the encryption length offset */ uint32_t cipherOffset = 0u; HITLS_CipherParameters cipherParam = {0}; cipherParam.ctx = &suiteInfo->ctx; cipherParam.type = suiteInfo->cipherType; cipherParam.algo = suiteInfo->cipherAlg; cipherParam.key = (const uint8_t *)suiteInfo->key; cipherParam.keyLen = suiteInfo->encKeyLen; /** Read the explicit IV during AEAD decryption */ const uint8_t *recordIv; if (suiteInfo->recordIvLength > 0u) { recordIv = &cryptMsg->text[cipherOffset]; cipherOffset += REC_CONN_SEQ_SIZE; } else { // If no IV is displayed, use the serial number recordIv = cryptMsg->seq; } /** Calculate NONCE */ uint8_t nonce[AEAD_NONCE_SIZE] = {0}; int32_t ret = AeadGetNonce(suiteInfo, nonce, sizeof(nonce), recordIv, REC_CONN_SEQ_SIZE); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15395, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record decrypt:get nonce failed.", 0, 0, 0, 0); return ret; } cipherParam.iv = nonce; cipherParam.ivLen = AEAD_NONCE_SIZE; /* Calculate additional_data */ uint8_t aad[AEAD_AAD_MAX_SIZE] = {0}; uint32_t aadLen = AEAD_AAD_MAX_SIZE; /* Definition of additional_data tls1.2 additional_data = seq_num + TLSCompressed.type + TLSCompressed.version + TLSCompressed.length; tls1.3 additional_data = TLSCiphertext.opaque_type || TLSCiphertext.legacy_record_version || TLSCiphertext.length diff: length */ uint32_t plainDataLen = cryptMsg->textLen; if (cryptMsg->negotiatedVersion != HITLS_VERSION_TLS13) { plainDataLen = cryptMsg->textLen - suiteInfo->recordIvLength - suiteInfo->macLen; } AeadGetAad(aad, &aadLen, cryptMsg, plainDataLen); cipherParam.aad = aad; cipherParam.aadLen = aadLen; /** Calculate the encryption length: GenericAEADCipher.content + aead tag */ uint32_t cipherLen = cryptMsg->textLen - cipherOffset; /** Decryption */ ret = SAL_CRYPT_Decrypt(LIBCTX_FROM_CTX(ctx), ATTRIBUTE_FROM_CTX(ctx), &cipherParam, &cryptMsg->text[cipherOffset], cipherLen, data, dataLen); /* Clear sensitive information */ BSL_SAL_CleanseData(nonce, AEAD_NONCE_SIZE); BSL_SAL_CleanseData(aad, AEAD_AAD_MAX_SIZE); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15396, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "decrypt record error. ret:%d", ret, 0, 0, 0); if (BSL_UIO_GetUioChainTransportType(ctx->uio, BSL_UIO_SCTP)) { ctx->method.sendAlert(ctx, ALERT_LEVEL_FATAL, ALERT_BAD_RECORD_MAC); return HITLS_REC_BAD_RECORD_MAC; } return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_BAD_RECORD_MAC); } return HITLS_SUCCESS; } /** * @brief AEAD encryption * * @param state [IN] RecConnState Context * @param input [IN] Input data before encryption * @param cipherText [OUT] Encrypted content * @param cipherTextLen [IN] Length after encryption * * @retval HITLS_SUCCESS succeeded. * @retval HITLS_INTERNAL_EXCEPTION: null pointer * @retval HITLS_MEMCPY_FAIL The copy fails. * @retval For details, see SAL_CRYPT_Encrypt. */ static int32_t AeadEncrypt(TLS_Ctx *ctx, RecConnState *state, const REC_TextInput *plainMsg, uint8_t *cipherText, uint32_t cipherTextLen) { /** Initialize the encryption length offset */ uint32_t cipherOffset = 0u; HITLS_CipherParameters cipherParam = {0}; cipherParam.ctx = &state->suiteInfo->ctx; cipherParam.type = state->suiteInfo->cipherType; cipherParam.algo = state->suiteInfo->cipherAlg; cipherParam.key = (const uint8_t *)state->suiteInfo->key; cipherParam.keyLen = state->suiteInfo->encKeyLen; /** During AEAD encryption, the sequence number is used as the explicit IV */ if (state->suiteInfo->recordIvLength > 0u) { if (memcpy_s(&cipherText[cipherOffset], cipherTextLen, plainMsg->seq, REC_CONN_SEQ_SIZE) != EOK) { BSL_ERR_PUSH_ERROR(HITLS_MEMCPY_FAIL); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15384, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record encrypt:memcpy fail.", 0, 0, 0, 0); return HITLS_MEMCPY_FAIL; } cipherOffset += REC_CONN_SEQ_SIZE; } /** Calculate NONCE */ uint8_t nonce[AEAD_NONCE_SIZE] = {0}; int32_t ret = AeadGetNonce(state->suiteInfo, nonce, sizeof(nonce), plainMsg->seq, REC_CONN_SEQ_SIZE); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15385, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record encrypt:get nonce failed.", 0, 0, 0, 0); return ret; } cipherParam.iv = nonce; cipherParam.ivLen = AEAD_NONCE_SIZE; /* Calculate additional_data */ uint8_t aad[AEAD_AAD_MAX_SIZE]; uint32_t aadLen = AEAD_AAD_MAX_SIZE; uint32_t textLen = #ifdef HITLS_TLS_PROTO_TLS13 (plainMsg->negotiatedVersion == HITLS_VERSION_TLS13) ? cipherTextLen : #endif /* HITLS_TLS_PROTO_TLS13 */ plainMsg->textLen; AeadGetAad(aad, &aadLen, plainMsg, textLen); cipherParam.aad = aad; cipherParam.aadLen = aadLen; /** Calculate the encryption length */ uint32_t cipherLen = cipherTextLen - cipherOffset; uint32_t outLen = cipherLen; /** Encryption */ ret = SAL_CRYPT_Encrypt(LIBCTX_FROM_CTX(ctx), ATTRIBUTE_FROM_CTX(ctx), &cipherParam, plainMsg->text, plainMsg->textLen, &cipherText[cipherOffset], &outLen); /* Clear sensitive information */ return CleanSensitiveData(ret, nonce, aad, outLen, cipherLen); } const RecCryptoFunc *RecGetAeadCryptoFuncs(DecryptPostProcess decryptPostProcess, EncryptPreProcess encryptPreProcess) { static RecCryptoFunc cryptoFuncAead = { .calCiphertextLen = AeadCalCiphertextLen, .calPlantextBufLen = AeadCalPlantextBufLen, .decrypt = AeadDecrypt, .encryt = AeadEncrypt, }; cryptoFuncAead.decryptPostProcess = decryptPostProcess; cryptoFuncAead.encryptPreProcess = encryptPreProcess; return &cryptoFuncAead; } #endif
2301_79861745/bench_create
tls/record/src/rec_crypto_aead.c
C
unknown
12,947
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef REC_CRYPT_AEAD_H #define REC_CRYPT_AEAD_H #include "rec_crypto.h" const RecCryptoFunc *RecGetAeadCryptoFuncs(DecryptPostProcess decryptPostProcess, EncryptPreProcess encryptPreProcess); #endif
2301_79861745/bench_create
tls/record/src/rec_crypto_aead.h
C
unknown
744
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #include "hitls_build.h" #ifdef HITLS_TLS_SUITE_CIPHER_CBC #include "securec.h" #include "hitls_error.h" #include "bsl_err_internal.h" #include "bsl_log_internal.h" #include "tls_binlog_id.h" #include "bsl_bytes.h" #include "crypt.h" #include "rec_alert.h" #include "rec_conn.h" #include "record.h" #include "rec_crypto_cbc.h" #define CBC_PADDING_LEN_TAG_SIZE 1u #define HMAC_MAX_BLEN 144 uint8_t RecConnGetCbcPaddingLen(uint8_t blockLen, uint32_t plaintextLen) { if (blockLen == 0) { return 0; } uint8_t remainder = (plaintextLen + CBC_PADDING_LEN_TAG_SIZE) % blockLen; if (remainder == 0) { return 0; } return blockLen - remainder; } static uint32_t CbcCalCiphertextLen(const TLS_Ctx *ctx, RecConnSuitInfo *suiteInfo, uint32_t plantextLen, bool isRead) { uint32_t ciphertextLen = plantextLen; ciphertextLen += suiteInfo->recordIvLength; bool isEncryptThenMac = isRead ? ctx->negotiatedInfo.isEncryptThenMacRead : ctx->negotiatedInfo.isEncryptThenMacWrite; if (isEncryptThenMac) { ciphertextLen += RecConnGetCbcPaddingLen(suiteInfo->blockLength, ciphertextLen) + CBC_PADDING_LEN_TAG_SIZE; ciphertextLen += suiteInfo->macLen; } else { ciphertextLen += suiteInfo->macLen; ciphertextLen += RecConnGetCbcPaddingLen(suiteInfo->blockLength, ciphertextLen) + CBC_PADDING_LEN_TAG_SIZE; } return ciphertextLen; } static int32_t CbcCalPlantextBufLen(TLS_Ctx *ctx, RecConnSuitInfo *suiteInfo, uint32_t ciphertextLen, uint32_t *offset, uint32_t *plainLen) { uint32_t plantextLen = ciphertextLen; *offset = suiteInfo->recordIvLength; plantextLen -= *offset; if (ctx->negotiatedInfo.isEncryptThenMacRead) { plantextLen -= suiteInfo->macLen; } if (plantextLen > ciphertextLen) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17242, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "plantextLen err", 0, 0, 0, 0); return HITLS_INVALID_INPUT; } *plainLen = plantextLen; return HITLS_SUCCESS; } static void RecConnInitCipherParam(HITLS_CipherParameters *cipherParam, const RecConnState *state) { cipherParam->ctx = &state->suiteInfo->ctx; cipherParam->type = state->suiteInfo->cipherType; cipherParam->algo = state->suiteInfo->cipherAlg; cipherParam->key = state->suiteInfo->key; cipherParam->keyLen = state->suiteInfo->encKeyLen; cipherParam->iv = state->suiteInfo->iv; cipherParam->ivLen = state->suiteInfo->fixedIvLength; } static int32_t RecConnCbcCheckCryptMsg(TLS_Ctx *ctx, const RecConnState *state, const REC_TextInput *cryptMsg, bool isEncryptThenMac) { uint8_t offset = 0; if (isEncryptThenMac) { offset = state->suiteInfo->macLen; } if ((state->suiteInfo->blockLength == 0) || ((cryptMsg->textLen - offset) % state->suiteInfo->blockLength != 0)) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15397, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "record cbc mode decrypt error: block length = %u, cipher text length = %u.", state->suiteInfo->blockLength, cryptMsg->textLen, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_BAD_RECORD_MAC); } return HITLS_SUCCESS; } static int32_t RecConnCbcDecCheckPaddingEtM(TLS_Ctx *ctx, const REC_TextInput *cryptMsg, uint8_t *plain, uint32_t plainLen, uint32_t offset) { const RecConnState *state = ctx->recCtx->readStates.currentState; uint8_t padLen = plain[plainLen - 1]; if (cryptMsg->isEncryptThenMac && (plainLen < padLen + CBC_PADDING_LEN_TAG_SIZE)) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15399, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "record cbc mode decrypt error: ciphertext len = %u, plaintext len = %u, mac len = %u, padding len = %u.", cryptMsg->textLen - offset - state->suiteInfo->macLen, plainLen, state->suiteInfo->macLen, padLen); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_BAD_RECORD_MAC); } for (uint32_t i = 1; i <= padLen; i++) { if (plain[plainLen - 1 - i] != padLen) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15400, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "record cbc mode decrypt error: padding len = %u, %u-to-last padding data = %u.", padLen, i, plain[plainLen - 1 - i], 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_BAD_RECORD_MAC); } } return HITLS_SUCCESS; } static uint32_t GetHmacBLen(HITLS_MacAlgo macAlgo) { switch (macAlgo) { case HITLS_MAC_1: case HITLS_MAC_224: case HITLS_MAC_256: case HITLS_MAC_SM3: return 64; // Blen of upper hmac is 64. case HITLS_MAC_384: case HITLS_MAC_512: return 128; // Blen of upper hmac is 128. default: // should never be here. return 0; } } /** * a constant-time implemenation of HMAC to prevent side-channel attacks * reference: https://datatracker.ietf.org/doc/html/rfc2104#autoid-2 */ static int32_t ConstTimeHmac(RecConnSuitInfo *suiteInfo, HITLS_HASH_Ctx **hashCtx, uint32_t good, const REC_TextInput *cryptMsg, uint8_t *data, uint32_t dataLen, uint8_t *mac, uint32_t *macLen) { HITLS_HASH_Ctx *obCtx = hashCtx[2]; uint32_t padLen = data[dataLen - 1]; padLen = Uint32ConstTimeSelect(good, padLen, 0); uint32_t plainLen = dataLen - (suiteInfo->macLen + padLen + 1); plainLen = Uint32ConstTimeSelect(good, plainLen, 0); uint32_t blen = GetHmacBLen(suiteInfo->macAlg); uint8_t ipad[HMAC_MAX_BLEN] = {0}; uint8_t opad[HMAC_MAX_BLEN * 2] = {0}; uint8_t key[HMAC_MAX_BLEN] = {0}; uint8_t ihash[MAX_DIGEST_SIZE] = {0}; uint32_t ihashLen = sizeof(ihash); (void)memcpy_s(key, sizeof(key), suiteInfo->macKey, suiteInfo->macKeyLen); for (uint32_t i = 0; i < blen; i++) { ipad[i] = key[i] ^ 0x36; opad[i] = key[i] ^ 0x5c; } // update K xor ipad (void)SAL_CRYPT_DigestUpdate(hashCtx[0], ipad, blen); // update the obscureHashCtx simultaneously (void)SAL_CRYPT_DigestUpdate(obCtx, ipad, blen); /** * constant-time update plaintext to resist lucky13 * ref: https://www.isg.rhul.ac.uk/tls/TLStiming.pdf */ uint8_t header[13] = {0}; // seq + record type uint32_t pos = 0; (void)memcpy_s(header, sizeof(header), cryptMsg->seq, REC_CONN_SEQ_SIZE); pos += REC_CONN_SEQ_SIZE; header[pos++] = cryptMsg->type; BSL_Uint16ToByte(cryptMsg->version, header + pos); pos += sizeof(uint16_t); BSL_Uint16ToByte((uint16_t)plainLen, header + pos); (void)SAL_CRYPT_DigestUpdate(hashCtx[0], header, sizeof(header)); (void)SAL_CRYPT_DigestUpdate(obCtx, header, sizeof(header)); uint32_t maxLen = dataLen - (suiteInfo->macLen + 1); maxLen = Uint32ConstTimeSelect(good, maxLen, dataLen); uint32_t flag = Uint32ConstTimeGt(maxLen, 256); // the value of 1 byte is up to 256 uint32_t minLen = Uint32ConstTimeSelect(flag, maxLen - 256, 0); (void)SAL_CRYPT_DigestUpdate(hashCtx[0], data, minLen); (void)SAL_CRYPT_DigestUpdate(obCtx, data, minLen); for (uint32_t i = minLen; i < maxLen; i++) { if (i < plainLen) { SAL_CRYPT_DigestUpdate(hashCtx[0], data + i, 1); } else { SAL_CRYPT_DigestUpdate(obCtx, data + i, 1); } } (void)SAL_CRYPT_DigestFinal(hashCtx[0], ihash, &ihashLen); (void)memcpy_s(opad + blen, MAX_DIGEST_SIZE, ihash, ihashLen); // update (K xor opad) + ihash (void)SAL_CRYPT_DigestUpdate(hashCtx[1], opad, blen + ihashLen); (void)SAL_CRYPT_DigestFinal(hashCtx[1], mac, macLen); BSL_SAL_CleanseData(ipad, sizeof(ipad)); BSL_SAL_CleanseData(opad, sizeof(opad)); BSL_SAL_CleanseData(key, sizeof(key)); return HITLS_SUCCESS; } static inline uint32_t ConstTimeSelectMemcmp(uint32_t good, uint8_t *a, uint8_t *b, uint32_t l) { uint8_t *t = (good == 0) ? b : a; return ConstTimeMemcmp(t, b, l); } static int32_t RecConnCbcDecMtECheckMacTls(TLS_Ctx *ctx, const REC_TextInput *cryptMsg, uint8_t *plain, uint32_t plainLen) { const RecConnState *state = ctx->recCtx->readStates.currentState; uint32_t hashAlg = RecGetHashAlgoFromMACAlgo(state->suiteInfo->macAlg); if (hashAlg == HITLS_HASH_BUTT) { return HITLS_CRYPT_ERR_HMAC; } HITLS_HASH_Ctx *ihashCtx = NULL; HITLS_HASH_Ctx *ohashCtx = NULL; HITLS_HASH_Ctx *obscureHashCtx = NULL; ihashCtx = SAL_CRYPT_DigestInit(LIBCTX_FROM_CTX(ctx), ATTRIBUTE_FROM_CTX(ctx), hashAlg); ohashCtx = SAL_CRYPT_DigestCopy(ihashCtx); obscureHashCtx = SAL_CRYPT_DigestCopy(ihashCtx); if (ihashCtx == NULL || ohashCtx == NULL || obscureHashCtx == NULL) { SAL_CRYPT_DigestFree(ihashCtx); SAL_CRYPT_DigestFree(ohashCtx); SAL_CRYPT_DigestFree(obscureHashCtx); return HITLS_REC_ERR_GENERATE_MAC; } uint8_t mac[MAX_DIGEST_SIZE] = {0}; uint32_t macLen = sizeof(mac); uint8_t padLen = plain[plainLen - 1]; uint32_t good = Uint32ConstTimeGe(plainLen, state->suiteInfo->macLen + padLen + 1); // constant-time check padding bytes for (uint32_t i = 1; i <= 255; i++) { uint32_t mask = good & Uint32ConstTimeLe(i, padLen); good &= Uint32ConstTimeEqual(plain[plainLen - 1 - (i & mask)], padLen); } HITLS_HASH_Ctx *hashCtxs[3] = {ihashCtx, ohashCtx, obscureHashCtx}; ConstTimeHmac(state->suiteInfo, hashCtxs, good, cryptMsg, plain, plainLen, mac, &macLen); // check mac uint32_t retLen = Uint32ConstTimeSelect(good, padLen, 0); plainLen -= state->suiteInfo->macLen + retLen + 1; good &= ConstTimeSelectMemcmp(good, &plain[plainLen], mac, macLen); SAL_CRYPT_DigestFree(ihashCtx); SAL_CRYPT_DigestFree(ohashCtx); SAL_CRYPT_DigestFree(obscureHashCtx); return ~good; } static int32_t RecConnCbcDecryptByMacThenEncrypt(TLS_Ctx *ctx, const RecConnState *state, const REC_TextInput *cryptMsg, uint8_t *data, uint32_t *dataLen) { /* Check whether the ciphertext length is an integral multiple of the ciphertext block length */ int32_t ret = RecConnCbcCheckCryptMsg(ctx, state, cryptMsg, false); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17243, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "RecConnCbcCheckCryptMsg fail", 0, 0, 0, 0); return ret; } /* Decryption start position */ uint32_t offset = 0; /* plaintext length */ uint32_t plaintextLen = *dataLen; HITLS_CipherParameters cipherParam = {0}; RecConnInitCipherParam(&cipherParam, state); /* In TLS1.1 and later versions, explicit iv is used as the first ciphertext block. Therefore, the first * ciphertext block does not need to be decrypted */ cipherParam.iv = cryptMsg->text; offset = state->suiteInfo->fixedIvLength; ret = SAL_CRYPT_Decrypt(LIBCTX_FROM_CTX(ctx), ATTRIBUTE_FROM_CTX(ctx), &cipherParam, &cryptMsg->text[offset], cryptMsg->textLen - offset, data, &plaintextLen); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15398, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "record cbc mode decrypt error.", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_BAD_RECORD_MAC); } /* Check padding and padding length */ ret = RecConnCbcDecMtECheckMacTls(ctx, cryptMsg, data, plaintextLen); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17244, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "RecConnCbcDecMtECheckMacTls fail", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_BAD_RECORD_MAC); } *dataLen = plaintextLen - (state->suiteInfo->macLen + data[plaintextLen - 1] + CBC_PADDING_LEN_TAG_SIZE); return ret; } static int32_t RecConnCbcDecryptByEncryptThenMac(TLS_Ctx *ctx, const RecConnState *state, const REC_TextInput *cryptMsg, uint8_t *data, uint32_t *dataLen) { /* Check MAC */ int32_t ret = RecConnCheckMac(ctx, state->suiteInfo, cryptMsg, cryptMsg->text, cryptMsg->textLen); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17245, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "check mac fail", 0, 0, 0, 0); return ret; } /* Check whether the ciphertext length is an integral multiple of the ciphertext block length */ ret = RecConnCbcCheckCryptMsg(ctx, state, cryptMsg, true); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17246, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "RecConnCbcCheckCryptMsg fail", 0, 0, 0, 0); return ret; } /* Decryption start position */ uint32_t offset = 0; /* plaintext length */ uint32_t plaintextLen = *dataLen; uint8_t macLen = state->suiteInfo->macLen; HITLS_CipherParameters cipherParam = {0}; RecConnInitCipherParam(&cipherParam, state); /* In TLS1.1 and later versions, explicit iv is used as the first ciphertext block. Therefore, the first * ciphertext block does not need to be decrypted */ cipherParam.iv = cryptMsg->text; offset = state->suiteInfo->fixedIvLength; ret = SAL_CRYPT_Decrypt(LIBCTX_FROM_CTX(ctx), ATTRIBUTE_FROM_CTX(ctx), &cipherParam, &cryptMsg->text[offset], cryptMsg->textLen - offset - macLen, data, &plaintextLen); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15915, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "record cbc mode decrypt error.", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_BAD_RECORD_MAC); } /* Check padding and padding length */ uint8_t paddingLen = data[plaintextLen - 1]; ret = RecConnCbcDecCheckPaddingEtM(ctx, cryptMsg, data, plaintextLen, offset); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17247, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "RecConnCbcDecCheckPaddingEtM fail", 0, 0, 0, 0); return ret; } *dataLen = plaintextLen - paddingLen - CBC_PADDING_LEN_TAG_SIZE; return HITLS_SUCCESS; } static int32_t CbcDecrypt(TLS_Ctx *ctx, RecConnState *state, const REC_TextInput *cryptMsg, uint8_t *data, uint32_t *dataLen) { uint8_t *decryptData = data; uint32_t decryptDataLen = *dataLen; int32_t ret; if (ctx->negotiatedInfo.isEncryptThenMacRead) { ret = RecConnCbcDecryptByEncryptThenMac(ctx, state, cryptMsg, decryptData, &decryptDataLen); } else { ret = RecConnCbcDecryptByMacThenEncrypt(ctx, state, cryptMsg, decryptData, &decryptDataLen); } if (ret != HITLS_SUCCESS) { return ret; } *dataLen = decryptDataLen; return HITLS_SUCCESS; } static int32_t RecConnCopyIV(TLS_Ctx *ctx, const RecConnState *state, uint8_t *cipherText, uint32_t cipherTextLen) { if (!state->suiteInfo->isExportIV) { SAL_CRYPT_Rand(LIBCTX_FROM_CTX(ctx), state->suiteInfo->iv, state->suiteInfo->fixedIvLength); } /* The IV set by the user can only be used once */ state->suiteInfo->isExportIV = 0; if (memcpy_s(cipherText, cipherTextLen, state->suiteInfo->iv, state->suiteInfo->fixedIvLength) != EOK) { BSL_ERR_PUSH_ERROR(HITLS_MEMCPY_FAIL); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15847, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record CBC encrypt error: copy iv fail.", 0, 0, 0, 0); return HITLS_MEMCPY_FAIL; } return HITLS_SUCCESS; } /* Data that needs to be encrypted (do not fill MAC) */ static int32_t GenerateCbcPlainTextBeforeMac(const RecConnState *state, const REC_TextInput *plainMsg, uint32_t cipherTextLen, uint8_t *plainText, uint32_t *textLen) { /* fill content */ if (memcpy_s(plainText, cipherTextLen, plainMsg->text, plainMsg->textLen) != EOK) { BSL_ERR_PUSH_ERROR(HITLS_MEMCPY_FAIL); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15392, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record CBC encrypt error: memcpy plainMsg fail.", 0, 0, 0, 0); return HITLS_MEMCPY_FAIL; } uint32_t plainTextLen = plainMsg->textLen; /* fill padding and padding length */ uint8_t paddingLen = RecConnGetCbcPaddingLen(state->suiteInfo->blockLength, plainTextLen); uint32_t count = paddingLen + CBC_PADDING_LEN_TAG_SIZE; if (memset_s(&plainText[plainTextLen], cipherTextLen - plainTextLen, paddingLen, count) != EOK) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_ENCRYPT); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15904, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record CBC encrypt error: memset padding fail.", 0, 0, 0, 0); return HITLS_REC_ERR_ENCRYPT; } plainTextLen += count; *textLen = plainTextLen; return HITLS_SUCCESS; } static int32_t PreparePlainText(const RecConnState *state, const REC_TextInput *plainMsg, uint32_t cipherTextLen, uint8_t **plainText, uint32_t *plainTextLen) { *plainText = BSL_SAL_Calloc(1u, cipherTextLen); if (*plainText == NULL) { BSL_ERR_PUSH_ERROR(HITLS_MEMALLOC_FAIL); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15927, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record CBC encrypt error: out of memory.", 0, 0, 0, 0); return HITLS_MEMALLOC_FAIL; } int32_t ret = GenerateCbcPlainTextBeforeMac(state, plainMsg, cipherTextLen, *plainText, plainTextLen); if (ret != HITLS_SUCCESS) { BSL_SAL_FREE(*plainText); } return ret; } /* Data that needs to be encrypted (after filling the mac) */ static int32_t GenerateCbcPlainTextAfterMac(HITLS_Lib_Ctx *libCtx, const char *attrName, const RecConnState *state, const REC_TextInput *plainMsg, uint32_t cipherTextLen, uint8_t *plainText, uint32_t *textLen) { /* Fill content */ if (memcpy_s(plainText, cipherTextLen, plainMsg->text, plainMsg->textLen) != EOK) { BSL_ERR_PUSH_ERROR(HITLS_MEMCPY_FAIL); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15898, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record CBC encrypt error: memcpy plainMsg fail.", 0, 0, 0, 0); return HITLS_MEMCPY_FAIL; } uint32_t plainTextLen = plainMsg->textLen; /* Fill MAC */ uint32_t macLen = state->suiteInfo->macLen; REC_TextInput input = {0}; RecConnInitGenerateMacInput(plainMsg, plainMsg->text, plainMsg->textLen, &input); int32_t ret = RecConnGenerateMac(libCtx, attrName, state->suiteInfo, &input, &plainText[plainTextLen], &macLen); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17248, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "RecConnGenerateMac fail.", 0, 0, 0, 0); return ret; } plainTextLen += macLen; /* Fill padding and padding length */ uint8_t paddingLen = RecConnGetCbcPaddingLen(state->suiteInfo->blockLength, plainTextLen); uint32_t count = paddingLen + CBC_PADDING_LEN_TAG_SIZE; if (memset_s(&plainText[plainTextLen], cipherTextLen - plainTextLen, paddingLen, count) != EOK) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_ENCRYPT); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15393, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record CBC encrypt error: memset padding fail.", 0, 0, 0, 0); return HITLS_REC_ERR_ENCRYPT; } plainTextLen += count; *textLen = plainTextLen; return HITLS_SUCCESS; } static int32_t RecConnCbcEncryptThenMac(TLS_Ctx *ctx, const RecConnState *state, const REC_TextInput *plainMsg, uint8_t *cipherText, uint32_t cipherTextLen) { uint32_t offset = 0; uint8_t *plainText = NULL; uint32_t plainTextLen = 0; int32_t ret = PreparePlainText(state, plainMsg, cipherTextLen, &plainText, &plainTextLen); if (ret != HITLS_SUCCESS) { return ret; } ret = RecConnCopyIV(ctx, state, cipherText, cipherTextLen); if (ret != HITLS_SUCCESS) { BSL_SAL_FREE(plainText); return ret; } offset += state->suiteInfo->fixedIvLength; uint32_t macLen = state->suiteInfo->macLen; uint32_t encLen = cipherTextLen - offset - macLen; HITLS_CipherParameters cipherParam = {0}; RecConnInitCipherParam(&cipherParam, state); ret = SAL_CRYPT_Encrypt(LIBCTX_FROM_CTX(ctx), ATTRIBUTE_FROM_CTX(ctx), &cipherParam, plainText, plainTextLen, &cipherText[offset], &encLen); BSL_SAL_FREE(plainText); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15848, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "CBC encrypt record error.", 0, 0, 0, 0); return ret; } if (encLen != (cipherTextLen - offset - macLen)) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_ENCRYPT); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15903, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "encrypt record (length) error.", 0, 0, 0, 0); return HITLS_REC_ERR_ENCRYPT; } /* fill MAC */ REC_TextInput input = {0}; RecConnInitGenerateMacInput(plainMsg, cipherText, cipherTextLen - macLen, &input); return RecConnGenerateMac(LIBCTX_FROM_CTX(ctx), ATTRIBUTE_FROM_CTX(ctx), state->suiteInfo, &input, &cipherText[offset + encLen], &macLen); } int32_t RecConnCbcMacThenEncrypt(TLS_Ctx *ctx, const RecConnState *state, const REC_TextInput *plainMsg, uint8_t *cipherText, uint32_t cipherTextLen) { uint32_t plainTextLen = 0; uint8_t *plainText = BSL_SAL_Calloc(1u, cipherTextLen); if (plainText == NULL) { BSL_ERR_PUSH_ERROR(HITLS_MEMALLOC_FAIL); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15390, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record CBC encrypt error: out of memory.", 0, 0, 0, 0); return HITLS_MEMALLOC_FAIL; } int32_t ret = GenerateCbcPlainTextAfterMac(LIBCTX_FROM_CTX(ctx), ATTRIBUTE_FROM_CTX(ctx), state, plainMsg, cipherTextLen, plainText, &plainTextLen); if (ret != HITLS_SUCCESS) { BSL_SAL_FREE(plainText); return ret; } uint32_t offset = 0; ret = RecConnCopyIV(ctx, state, cipherText, cipherTextLen); if (ret != HITLS_SUCCESS) { BSL_SAL_FREE(plainText); return ret; } offset += state->suiteInfo->fixedIvLength; uint32_t encLen = cipherTextLen - offset; HITLS_CipherParameters cipherParam = {0}; RecConnInitCipherParam(&cipherParam, state); ret = SAL_CRYPT_Encrypt(LIBCTX_FROM_CTX(ctx), ATTRIBUTE_FROM_CTX(ctx), &cipherParam, plainText, plainTextLen, &cipherText[offset], &encLen); BSL_SAL_FREE(plainText); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15391, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "CBC encrypt record error.", 0, 0, 0, 0); return ret; } if (encLen != (cipherTextLen - offset)) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_ENCRYPT); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15922, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "encrypt record (length) error.", 0, 0, 0, 0); return HITLS_REC_ERR_ENCRYPT; } return HITLS_SUCCESS; } static int32_t CbcEncrypt(TLS_Ctx *ctx, RecConnState *state, const REC_TextInput *plainMsg, uint8_t *cipherText, uint32_t cipherTextLen) { if (plainMsg->isEncryptThenMac) { return RecConnCbcEncryptThenMac(ctx, state, plainMsg, cipherText, cipherTextLen); } return RecConnCbcMacThenEncrypt(ctx, state, plainMsg, cipherText, cipherTextLen); } const RecCryptoFunc *RecGetCbcCryptoFuncs(DecryptPostProcess decryptPostProcess, EncryptPreProcess encryptPreProcess) { static RecCryptoFunc cryptoFuncCbc = { .calCiphertextLen = CbcCalCiphertextLen, .calPlantextBufLen = CbcCalPlantextBufLen, .decrypt = CbcDecrypt, .encryt = CbcEncrypt, }; cryptoFuncCbc.decryptPostProcess = decryptPostProcess; cryptoFuncCbc.encryptPreProcess = encryptPreProcess; return &cryptoFuncCbc; } #endif
2301_79861745/bench_create
tls/record/src/rec_crypto_cbc.c
C
unknown
24,385
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef REC_CRYPT_CBC_H #define REC_CRYPT_CBC_H #include "rec_crypto.h" const RecCryptoFunc *RecGetCbcCryptoFuncs(DecryptPostProcess decryptPostProcess, EncryptPreProcess encryptPreProcess); #endif
2301_79861745/bench_create
tls/record/src/rec_crypto_cbc.h
C
unknown
742
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef RECORD_HEADER_H #define RECORD_HEADER_H #include <stdint.h> #ifdef __cplusplus extern "C" { #endif #define REC_TLS_RECORD_HEADER_LEN 5u #define REC_TLS_RECORD_LENGTH_OFFSET 3 #define REC_TLS_SN_MAX_VALUE (~((uint64_t)0)) /* TLS sequence number wrap Threshold */ #ifdef HITLS_TLS_PROTO_DTLS12 #define REC_IP_UDP_HEAD_SIZE 28 /* IP protocol header 20 + UDP header 8 */ #define REC_DTLS_RECORD_HEADER_LEN 13 #define REC_DTLS_RECORD_EPOCH_OFFSET 3 #define REC_DTLS_RECORD_LENGTH_OFFSET 11 /* DTLS sequence number cannot be greater than this value. Otherwise, it will wrapped */ #define REC_DTLS_SN_MAX_VALUE 0xFFFFFFFFFFFFllu #define REC_SEQ_GET(n) ((n) & 0x0000FFFFFFFFFFFFull) #define REC_EPOCH_GET(n) ((uint16_t)((n) >> 48)) #define REC_EPOCHSEQ_CAL(epoch, seq) (((uint64_t)(epoch) << 48) | (seq)) /* Epoch cannot be greater than this value. Otherwise, it will wrapped */ #define REC_EPOCH_MAX_VALUE 0xFFFFu #endif typedef struct { uint8_t type; uint8_t reverse[3]; /* Reserved, 4-byte aligned */ uint16_t version; uint16_t bodyLen; /* body length */ #ifdef HITLS_TLS_PROTO_DTLS12 uint64_t epochSeq; /* only for dtls */ #endif } RecHdr; #ifdef __cplusplus } #endif #endif /* RECORD_HEADER_H */
2301_79861745/bench_create
tls/record/src/rec_header.h
C
unknown
1,825
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #include "hitls_build.h" #include "securec.h" #include "bsl_sal.h" #include "tls_binlog_id.h" #include "bsl_log_internal.h" #include "bsl_err_internal.h" #include "bsl_bytes.h" #include "hitls_error.h" #include "hitls_config.h" #include "bsl_errno.h" #include "bsl_uio.h" #include "rec_alert.h" #ifdef HITLS_TLS_PROTO_TLS13 #include "hs_common.h" #endif #include "tls_config.h" #include "record.h" #ifdef HITLS_TLS_FEATURE_INDICATOR #include "indicator.h" #endif #include "hs_ctx.h" #include "hs.h" #include "rec_crypto.h" #include "bsl_list.h" RecConnState *GetReadConnState(const TLS_Ctx *ctx) { /** Obtains the record structure. */ RecCtx *recordCtx = (RecCtx *)ctx->recCtx; return recordCtx->readStates.currentState; } static bool IsNeedtoRead(const TLS_Ctx *ctx, const RecBuf *inBuf) { (void)ctx; uint32_t headLen = REC_TLS_RECORD_HEADER_LEN; #ifdef HITLS_TLS_PROTO_DTLS12 if (IS_SUPPORT_DATAGRAM(ctx->config.tlsConfig.originVersionMask)) { headLen = REC_DTLS_RECORD_HEADER_LEN; } #endif uint32_t lengthOffset = headLen - sizeof(uint16_t); uint32_t remain = inBuf->end - inBuf->start; if (remain < headLen) { return true; } uint8_t *recordHeader = &inBuf->buf[inBuf->start]; uint32_t recordLen = BSL_ByteToUint16(&recordHeader[lengthOffset]); if (remain < headLen + recordLen) { return true; } return false; } bool REC_HaveReadSuiteInfo(const TLS_Ctx *ctx) { if (ctx == NULL || ctx->recCtx == NULL || ctx->recCtx->readStates.currentState == NULL) { return false; } return ctx->recCtx->readStates.currentState->suiteInfo != NULL; } static REC_Type RecCastUintToRecType(TLS_Ctx *ctx, uint8_t value) { (void)ctx; REC_Type type; /* Convert to the record type */ switch (value) { case 20u: type = REC_TYPE_CHANGE_CIPHER_SPEC; break; case 21u: type = REC_TYPE_ALERT; break; case 22u: type = REC_TYPE_HANDSHAKE; break; case 23u: type = REC_TYPE_APP; break; default: type = REC_TYPE_UNKNOWN; break; } #ifdef HITLS_TLS_PROTO_TLS13 RecConnState *state = GetReadConnState(ctx); if (HS_GetVersion(ctx) == HITLS_VERSION_TLS13 && state->suiteInfo != NULL) { if (type != REC_TYPE_APP && type != REC_TYPE_ALERT && (type != REC_TYPE_CHANGE_CIPHER_SPEC || ctx->hsCtx == NULL)) { type = REC_TYPE_UNKNOWN; } } #endif /* HITLS_TLS_PROTO_TLS13 */ return type; } #define REC_GetMaxReadSize(ctx) REC_MAX_PLAIN_LENGTH static int32_t ProcessDecryptedRecord(TLS_Ctx *ctx, uint32_t dataLen, const REC_TextInput *encryptedMsg) { /* The TLSPlaintext.length MUST NOT exceed 2^14. An endpoint that receives a record that exceeds this length MUST terminate the connection with a record_overflow alert */ if (dataLen > REC_GetMaxReadSize(ctx)) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID16165, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "TLSPlaintext.length exceeds 2^14", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_RECORD_OVERFLOW); } if (encryptedMsg->type != REC_TYPE_APP && dataLen == 0) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID16166, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "get a record with invalid length", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_UNEXPECTED_MESSAGE); } if (!IS_SUPPORT_DATAGRAM(ctx->config.tlsConfig.originVersionMask) && ctx->negotiatedInfo.version != HITLS_VERSION_TLS13 && ctx->method.isRecvCCS(ctx) && encryptedMsg->type != REC_TYPE_HANDSHAKE) { ctx->method.sendAlert(ctx, ALERT_LEVEL_FATAL, ALERT_UNEXPECTED_MESSAGE); return HITLS_REC_ERR_DATA_BETWEEN_CCS_AND_FINISHED; } return HITLS_SUCCESS; } static int32_t EmptyRecordProcess(TLS_Ctx *ctx, uint8_t type) { if (REC_HaveReadSuiteInfo(ctx)) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17255, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "encryptedMsg->textLen is 0", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_BAD_RECORD_MAC); } if (type == REC_TYPE_ALERT || type == REC_TYPE_APP) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17256, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "type err", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_UNEXPECTED_MESSAGE); } ctx->recCtx->emptyRecordCnt += 1; if (ctx->recCtx->emptyRecordCnt > ctx->config.tlsConfig.emptyRecordsNum) { BSL_LOG_BINLOG_FIXLEN( BINLOG_ID16187, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "get too many empty records", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_UNEXPECTED_MESSAGE); } else { return HITLS_REC_NORMAL_RECV_BUF_EMPTY; } } static int32_t RecordDecrypt(TLS_Ctx *ctx, RecBuf *decryptBuf, REC_TextInput *encryptedMsg) { if (encryptedMsg->textLen == 0) { return EmptyRecordProcess(ctx, encryptedMsg->type); } else { ctx->recCtx->emptyRecordCnt = 0; } RecConnState *state = GetReadConnState(ctx); const RecCryptoFunc *funcs = RecGetCryptoFuncs(state->suiteInfo); uint32_t offset = 0; int32_t ret = HITLS_SUCCESS; uint32_t minBufLen = 0; ret = funcs->calPlantextBufLen(ctx, state->suiteInfo, encryptedMsg->textLen, &offset, &minBufLen); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID16266, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Invalid record length %u", encryptedMsg->textLen, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_BAD_RECORD_MAC); } if ((minBufLen > decryptBuf->bufSize || ctx->peekFlag != 0) && minBufLen != 0) { decryptBuf->buf = BSL_SAL_Calloc(minBufLen, sizeof(uint8_t)); if (decryptBuf->buf == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17257, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Calloc fail", 0, 0, 0, 0); return HITLS_MEMALLOC_FAIL; } decryptBuf->bufSize = minBufLen; decryptBuf->isHoldBuffer = true; } decryptBuf->end = decryptBuf->bufSize; /* The decrypted record body is in data */ ret = RecConnDecrypt(ctx, state, encryptedMsg, decryptBuf->buf, &decryptBuf->end); if (ret != HITLS_SUCCESS) { goto ERR; } if (!IS_SUPPORT_DATAGRAM(ctx->config.tlsConfig.originVersionMask)) { ret = funcs->decryptPostProcess(ctx, state->suiteInfo, encryptedMsg, decryptBuf->buf, &decryptBuf->end); if (ret != HITLS_SUCCESS) { goto ERR; } RecConnSetSeqNum(state, RecConnGetSeqNum(state) + 1); } ret = ProcessDecryptedRecord(ctx, decryptBuf->end, encryptedMsg); if (ret != HITLS_SUCCESS) { goto ERR; } return HITLS_SUCCESS; ERR: if (decryptBuf->isHoldBuffer) { BSL_SAL_FREE(decryptBuf->buf); } return ret; } static int32_t RecordUnexpectedMsg(TLS_Ctx *ctx, RecBuf *decryptBuf, REC_Type recordType) { int32_t ret = HITLS_REC_NORMAL_RECV_UNEXPECT_MSG; ctx->recCtx->unexpectedMsgType = recordType; switch (recordType) { case REC_TYPE_HANDSHAKE: ret = RecBufListAddBuffer(ctx->recCtx->hsRecList, decryptBuf); break; case REC_TYPE_APP: ret = RecBufListAddBuffer(ctx->recCtx->appRecList, decryptBuf); break; case REC_TYPE_CHANGE_CIPHER_SPEC: case REC_TYPE_ALERT: default: ret = ctx->method.unexpectedMsgProcessCb(ctx, recordType, decryptBuf->buf, decryptBuf->end, false); if (decryptBuf->isHoldBuffer) { BSL_SAL_FREE(decryptBuf->buf); } return ret; } if (ret != HITLS_SUCCESS) { if (decryptBuf->isHoldBuffer) { BSL_SAL_FREE(decryptBuf->buf); } BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17258, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "process recordType fail", 0, 0, 0, 0); return ret; } ret = RecDerefBufList(ctx); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17259, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "RecDerefBufList fail", 0, 0, 0, 0); return ret; } return HITLS_REC_NORMAL_RECV_UNEXPECT_MSG; } #ifdef HITLS_TLS_PROTO_DTLS12 int32_t DtlsCheckVersionField(const TLS_Ctx *ctx, uint16_t version, uint8_t type) { /* Tolerate alerts with non-negotiated version. For example, after the server sends server hello, the client * replies with an earlier version alert */ if (ctx->negotiatedInfo.version == 0u || type == (uint8_t)REC_TYPE_ALERT) { if ((version != HITLS_VERSION_DTLS10) && (version != HITLS_VERSION_DTLS12) && (version != HITLS_VERSION_TLCP_DTLCP11)) { BSL_ERR_PUSH_ERROR(HITLS_REC_INVALID_PROTOCOL_VERSION); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15436, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "get a record with illegal version(0x%x).", version, 0, 0, 0); return HITLS_REC_INVALID_PROTOCOL_VERSION; } } else { if (version != ctx->negotiatedInfo.version) { BSL_ERR_PUSH_ERROR(HITLS_REC_INVALID_PROTOCOL_VERSION); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15437, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "get a record with illegal version(0x%x).", version, 0, 0, 0); return HITLS_REC_INVALID_PROTOCOL_VERSION; } } return HITLS_SUCCESS; } int32_t DtlsCheckRecordHeader(TLS_Ctx *ctx, const RecHdr *hdr) { /** Check the DTLS version, release the resource and return if the version is incorrect */ int32_t ret = DtlsCheckVersionField(ctx, hdr->version, hdr->type); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17261, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "DtlsCheckVersionField fail, ret %d", ret, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_PROTOCOL_VERSION); } if (RecCastUintToRecType(ctx, hdr->type) == REC_TYPE_UNKNOWN || hdr->bodyLen == 0) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_RECV_UNEXPECTED_MSG); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15438, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "get a record with invalid type or body length(0)", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_UNEXPECTED_MESSAGE); } RecConnState *state = GetReadConnState(ctx); uint32_t maxLenth = (state->suiteInfo != NULL) ? REC_MAX_CIPHER_TEXT_LEN : REC_MAX_PLAIN_LENGTH; if (hdr->bodyLen > maxLenth) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_TOO_BIG_LENGTH); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15439, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "get a record with invalid length", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_RECORD_OVERFLOW); } uint16_t epoch = REC_EPOCH_GET(hdr->epochSeq); if (epoch == 0 && hdr->type == REC_TYPE_APP && BSL_UIO_GetUioChainTransportType(ctx->uio, BSL_UIO_SCTP)) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_RECV_UNEXPECTED_MSG); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15440, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "get a UNEXPECTE record msg: epoch 0's app msg.", 0, 0, 0, 0); ctx->method.sendAlert(ctx, ALERT_LEVEL_FATAL, ALERT_UNEXPECTED_MESSAGE); return HITLS_REC_ERR_RECV_UNEXPECTED_MSG; } return HITLS_SUCCESS; } /** * @brief Read message data. * * @param uio [IN] UIO object. * @param inBuf [IN] inBuf Read the buffer. * * @retval HITLS_SUCCESS is successfully read. * @retval HITLS_REC_ERR_IO_EXCEPTION I/O error * @retval HITLS_REC_NORMAL_RECV_BUF_EMPTY Uncached data needs to be reread. */ static int32_t ReadDatagram(TLS_Ctx *ctx, RecBuf *inBuf) { if (inBuf->end > inBuf->start) { return HITLS_SUCCESS; } /* Attempt to read the message: The message is read of the whole message */ uint32_t recvLen = 0u; #ifdef HITLS_TLS_CONFIG_STATE ctx->rwstate = HITLS_READING; #endif #ifdef HITLS_TLS_FEATURE_FLIGHT int32_t ret = BSL_UIO_Read(ctx->rUio, &(inBuf->buf[0]), inBuf->bufSize, &recvLen); #else int32_t ret = BSL_UIO_Read(ctx->uio, &(inBuf->buf[0]), inBuf->bufSize, &recvLen); #endif if (ret != BSL_SUCCESS) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_IO_EXCEPTION); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15441, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record read: uio err.%d", ret, 0, 0, 0); return HITLS_REC_ERR_IO_EXCEPTION; } #ifdef HITLS_TLS_CONFIG_STATE ctx->rwstate = HITLS_NOTHING; #endif if (recvLen == 0) { return HITLS_REC_NORMAL_RECV_BUF_EMPTY; } inBuf->start = 0; // successfully read inBuf->end = recvLen; return HITLS_SUCCESS; } static int32_t DtlsGetRecordHeader(const uint8_t *msg, uint32_t len, RecHdr *hdr) { if (len < REC_DTLS_RECORD_HEADER_LEN) { BSL_ERR_PUSH_ERROR(HITLS_REC_DECODE_ERROR); BSL_LOG_BINLOG_FIXLEN( BINLOG_ID15442, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record:dtls packet's length err.", 0, 0, 0, 0); return HITLS_REC_DECODE_ERROR; } /* Parse the record header */ hdr->type = msg[0]; hdr->version = BSL_ByteToUint16(&msg[1]); hdr->bodyLen = BSL_ByteToUint16( &msg[REC_DTLS_RECORD_LENGTH_OFFSET]); // The 11th to 12th bytes of DTLS are the message length. hdr->epochSeq = BSL_ByteToUint64(&msg[REC_DTLS_RECORD_EPOCH_OFFSET]); return HITLS_SUCCESS; } /** * @brief Attempt to read a dtls record message. * * @param ctx [IN] TLS context * @param recordBody [OUT] record body * @param hdr [OUT] record head * * @retval HITLS_SUCCESS succeeded. * @retval HITLS_REC_NORMAL_RECV_BUF_EMPTY needs to be read again * @retval HITLS_REC_ERR_IO_EXCEPTION I/O error */ static int32_t TryReadOneDtlsRecord(TLS_Ctx *ctx, uint8_t **recordBody, RecHdr *hdr) { int32_t ret; /** Obtain the record structure information */ RecCtx *recordCtx = (RecCtx *)ctx->recCtx; if (IsNeedtoRead(ctx, recordCtx->inBuf)) { ret = RecDerefBufList(ctx); if (ret != HITLS_SUCCESS) { return ret; } } /** Read the datagram message: The message may contain multiple records */ ret = ReadDatagram(ctx, recordCtx->inBuf); if (ret != HITLS_SUCCESS) { return ret; } uint8_t *msg = &recordCtx->inBuf->buf[recordCtx->inBuf->start]; uint32_t len = recordCtx->inBuf->end - recordCtx->inBuf->start; ret = DtlsGetRecordHeader(msg, len, hdr); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17262, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "DtlsGetRecordHeader fail, ret %d", ret, 0, 0, 0); RecBufClean(recordCtx->inBuf); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_DECODE_ERROR); } #ifdef HITLS_TLS_FEATURE_INDICATOR INDICATOR_MessageIndicate(0, 0, RECORD_HEADER, msg, REC_DTLS_RECORD_HEADER_LEN, ctx, ctx->config.tlsConfig.msgArg); #endif /* Check whether the record length is greater than the buffer size */ if ((REC_DTLS_RECORD_HEADER_LEN + (uint32_t)hdr->bodyLen) > len) { RecBufClean(recordCtx->inBuf); BSL_ERR_PUSH_ERROR(HITLS_REC_DECODE_ERROR); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15443, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record:dtls packet's length err.", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_RECORD_OVERFLOW); } /** Release the read record */ recordCtx->inBuf->start += REC_DTLS_RECORD_HEADER_LEN + hdr->bodyLen; /** Update the read content */ *recordBody = msg + REC_DTLS_RECORD_HEADER_LEN; return HITLS_SUCCESS; } static inline void GenerateCryptMsg(const TLS_Ctx *ctx, const RecHdr *hdr, const uint8_t *recordBody, REC_TextInput *cryptMsg) { cryptMsg->negotiatedVersion = ctx->negotiatedInfo.version; #ifdef HITLS_TLS_FEATURE_ETM cryptMsg->isEncryptThenMac = ctx->negotiatedInfo.isEncryptThenMac; #endif cryptMsg->type = hdr->type; cryptMsg->version = hdr->version; cryptMsg->text = recordBody; cryptMsg->textLen = hdr->bodyLen; BSL_Uint64ToByte(hdr->epochSeq, cryptMsg->seq); } #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) /** * @brief Check whether there are unprocessed handshake messages in the cache. * * @param unprocessedHsMsg [IN] Unprocessed handshake message handle * @param curEpoch [IN] Current epoch * * @retval true: cached * @retval false No cache */ static bool IsExistUnprocessedHsMsg(RecCtx *recCtx) { uint16_t curEpoch = recCtx->readEpoch; UnprocessedHsMsg *unprocessedHsMsg = &recCtx->unprocessedHsMsg; /* Check whether there are cached handshake messages. */ if (unprocessedHsMsg->recordBody == NULL) { return false; } uint16_t epoch = REC_EPOCH_GET(unprocessedHsMsg->hdr.epochSeq); if (curEpoch == epoch) { /* The handshake message of the current epoch needs to be processed */ return true; } if (curEpoch > epoch) { /* Expired messages need to be cleaned up */ (void)memset_s(&unprocessedHsMsg->hdr, sizeof(unprocessedHsMsg->hdr), 0, sizeof(unprocessedHsMsg->hdr)); BSL_SAL_FREE(unprocessedHsMsg->recordBody); } return false; } #endif /* HITLS_TLS_PROTO_DTLS12 && HITLS_BSL_UIO_UDP */ static bool IsExistUnprocessedAppMsg(RecCtx *recCtx) { UnprocessedAppMsg *unprocessedAppMsgList = &recCtx->unprocessedAppMsgList; /* Check whether there are cached app messages. */ if (unprocessedAppMsgList->count == 0) { return false; } ListHead *node = NULL; ListHead *tmpNode = NULL; UnprocessedAppMsg *cur = NULL; uint16_t curEpoch = recCtx->readEpoch; LIST_FOR_EACH_ITEM_SAFE(node, tmpNode, &(unprocessedAppMsgList->head)) { cur = LIST_ENTRY(node, UnprocessedAppMsg, head); uint16_t epoch = REC_EPOCH_GET(cur->hdr.epochSeq); if (curEpoch == epoch) { /* The app message of the current epoch needs to be processed */ return true; } } return false; } int32_t RecordBufferUnprocessedMsg(RecCtx *recordCtx, RecHdr *hdr, uint8_t *recordBody) { if (hdr->type == REC_TYPE_HANDSHAKE) { #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) CacheNextEpochHsMsg(&recordCtx->unprocessedHsMsg, hdr, recordBody); #endif } else { int32_t ret = UnprocessedAppMsgListAppend(&recordCtx->unprocessedAppMsgList, hdr, recordBody); if (ret != HITLS_SUCCESS) { return ret; } } BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17263, BSL_LOG_LEVEL_INFO, BSL_LOG_BINLOG_TYPE_RUN, "recv normal disorder message", 0, 0, 0, 0); return HITLS_REC_NORMAL_RECV_DISORDER_MSG; } static int32_t DtlsRecordHeaderProcess(TLS_Ctx *ctx, uint8_t *recordBody, RecHdr *hdr) { int32_t ret = HITLS_SUCCESS; RecCtx *recordCtx = (RecCtx *)ctx->recCtx; ret = DtlsCheckRecordHeader(ctx, hdr); if (ret != HITLS_SUCCESS) { return ret; } uint16_t epoch = REC_EPOCH_GET(hdr->epochSeq); if (epoch != recordCtx->readEpoch) { /* Discard out-of-order messages in SCTP scenarios */ if (BSL_UIO_GetUioChainTransportType(ctx->uio, BSL_UIO_SCTP)) { return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_UNEXPECTED_MESSAGE); } #if defined(HITLS_BSL_UIO_UDP) /* Only the messages of the next epoch are cached */ if ((recordCtx->readEpoch + 1) == epoch) { return RecordBufferUnprocessedMsg(recordCtx, hdr, recordBody); } /* After receiving the message of the previous epoch, the system discards the message. */ return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_UNEXPECTED_MESSAGE); #endif } bool isCcsRecv = ctx->method.isRecvCCS(ctx); /* App messages arrive earlier than finished messages and need to be cached */ if (ctx->hsCtx != NULL && isCcsRecv == true && (hdr->type == REC_TYPE_APP || hdr->type == REC_TYPE_ALERT)) { return RecordBufferUnprocessedMsg(recordCtx, hdr, recordBody); } return HITLS_SUCCESS; } static uint8_t *GetUnprocessedMsg(RecCtx *recordCtx, REC_Type recordType, RecHdr *hdr) { uint8_t *recordBody = NULL; #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) if ((recordType == REC_TYPE_HANDSHAKE) && IsExistUnprocessedHsMsg(recordCtx)) { (void)memcpy_s(hdr, sizeof(RecHdr), &recordCtx->unprocessedHsMsg.hdr, sizeof(RecHdr)); recordBody = recordCtx->unprocessedHsMsg.recordBody; recordCtx->unprocessedHsMsg.recordBody = NULL; } #endif uint16_t curEpoch = recordCtx->readEpoch; if ((recordType == REC_TYPE_APP) && IsExistUnprocessedAppMsg(recordCtx)) { UnprocessedAppMsg *appMsg = UnprocessedAppMsgGet(&recordCtx->unprocessedAppMsgList, curEpoch); if (appMsg == NULL) { return NULL; } (void)memcpy_s(hdr, sizeof(RecHdr), &appMsg->hdr, sizeof(RecHdr)); recordBody = appMsg->recordBody; appMsg->recordBody = NULL; UnprocessedAppMsgFree(appMsg); } return recordBody; } #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) static int32_t AntiReplay(TLS_Ctx *ctx, RecHdr *hdr) { /* In non-UDP scenarios, anti-replay check is not required */ if (!BSL_UIO_GetUioChainTransportType(ctx->uio, BSL_UIO_UDP)) { return HITLS_SUCCESS; } RecConnState *state = GetReadConnState(ctx); uint16_t epoch = REC_EPOCH_GET(hdr->epochSeq); uint64_t secquence = REC_SEQ_GET(hdr->epochSeq); if (RecAntiReplayCheck(&state->window, secquence) == true) { return HITLS_REC_NORMAL_RECV_BUF_EMPTY; } if (ctx->isDtlsListen && epoch != 0) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17264, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "epoch err", 0, 0, 0, 0); return HITLS_REC_ERR_RECV_UNEXPECTED_MSG; } return HITLS_SUCCESS; } #endif static int32_t DtlsTryReadAndCheckRecordMessage(TLS_Ctx *ctx, uint8_t **recordBody, RecHdr *hdr) { int32_t ret = HITLS_SUCCESS; /* Read the new record message */ ret = TryReadOneDtlsRecord(ctx, recordBody, hdr); if (ret != HITLS_SUCCESS) { return ret; } /* Check the record message header. If the message header is not the expected message, cache the message */ return DtlsRecordHeaderProcess(ctx, *recordBody, hdr); } static int32_t DtlsGetRecord(TLS_Ctx *ctx, REC_Type recordType, RecHdr *hdr, uint8_t **recordBody, uint8_t **cachRecord) { RecCtx *recordCtx = (RecCtx *)ctx->recCtx; int32_t ret = RecIoBufInit(ctx, recordCtx, true); if (ret != HITLS_SUCCESS) { return ret; } /* Check if there are cached messages that need to be processed */ *recordBody = GetUnprocessedMsg(recordCtx, recordType, hdr); *cachRecord = *recordBody; /* There are no cached messages to process */ if (*recordBody == NULL) { ret = DtlsTryReadAndCheckRecordMessage(ctx, recordBody, hdr); if (ret != HITLS_SUCCESS) { return ret; } } #if defined(HITLS_BSL_UIO_UDP) ret = AntiReplay(ctx, hdr); if (ret != HITLS_SUCCESS) { BSL_SAL_FREE(*cachRecord); } #endif return ret; } static int32_t DtlsProcessBufList(TLS_Ctx *ctx, REC_Type recordType, RecBufList *bufList, RecBuf *decryptBuf) { (void)recordType; int32_t ret = RecBufListAddBuffer(bufList, decryptBuf); if (ret != HITLS_SUCCESS) { if (decryptBuf->isHoldBuffer) { BSL_SAL_FREE(decryptBuf->buf); } return ret; } ret = RecDerefBufList(ctx); if (ret != HITLS_SUCCESS) { return ret; } return HITLS_SUCCESS; } /** * @brief Read a record in the DTLS protocol. * * @param ctx [IN] TLS context * @param recordType [IN] Record type * @param data [OUT] Read data * @param len [OUT] Length of the data to be read * @param bufSize [IN] buffer length * * @retval HITLS_SUCCESS succeeded. * @retval HITLS_REC_NORMAL_RECV_BUF_EMPTY needs to be read again * @retval HITLS_REC_ERR_IO_EXCEPTION I/O error * @retval HITLS_REC_NORMAL_RECV_UNEXPECT_MSG Unexpected message received * @retval HITLS_REC_NORMAL_RECV_DISORDER_MSG Receives out-of-order messages. * */ int32_t DtlsRecordRead(TLS_Ctx *ctx, REC_Type recordType, uint8_t *data, uint32_t *len, uint32_t bufSize) { RecBufList *bufList = (recordType == REC_TYPE_HANDSHAKE) ? ctx->recCtx->hsRecList : ctx->recCtx->appRecList; if (!RecBufListEmpty(bufList)) { return RecBufListGetBuffer(bufList, data, bufSize, len, (ctx->peekFlag != 0 && (recordType == REC_TYPE_APP))); } RecHdr hdr = {0}; /* Pointer for storing buffered messages, which is used during release */ uint8_t *recordBody = NULL; uint8_t *cachRecord = NULL; int32_t ret = DtlsGetRecord(ctx, recordType, &hdr, &recordBody, &cachRecord); if (ret != HITLS_SUCCESS) { return ret; } /* Construct parameters before decryption */ REC_TextInput cryptMsg = {0}; GenerateCryptMsg(ctx, &hdr, recordBody, &cryptMsg); RecBuf decryptBuf = { .buf = data, .bufSize = bufSize }; ret = RecordDecrypt(ctx, &decryptBuf, &cryptMsg); BSL_SAL_FREE(cachRecord); if (ret != HITLS_SUCCESS) { return ret; } #if defined(HITLS_BSL_UIO_UDP) /* In UDP scenarios, update the sliding window flag */ if (BSL_UIO_GetUioChainTransportType(ctx->uio, BSL_UIO_UDP)) { RecAntiReplayUpdate(&GetReadConnState(ctx)->window, REC_SEQ_GET(hdr.epochSeq)); } #endif RecClearAlertCount(ctx, cryptMsg.type); #ifdef HITLS_TLS_FEATURE_MODE_RELEASE_BUFFERS if ((ctx->config.tlsConfig.modeSupport & HITLS_MODE_RELEASE_BUFFERS) != 0 && (recordType == REC_TYPE_APP)) { RecTryFreeRecBuf(ctx, false); } #endif /* An unexpected packet is received */ // decryptBuf.isHoldBuffer == false if (recordType != cryptMsg.type) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID16513, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "expect type %d, receive type %d", recordType, cryptMsg.type, 0, 0); return RecordUnexpectedMsg(ctx, &decryptBuf, cryptMsg.type); } if (decryptBuf.buf == data) { /* Update the read length */ *len = decryptBuf.end; return HITLS_SUCCESS; } ret = DtlsProcessBufList(ctx, recordType, bufList, &decryptBuf); if (ret != HITLS_SUCCESS) { return ret; } return RecBufListGetBuffer(bufList, data, bufSize, len, (ctx->peekFlag != 0 && (recordType == REC_TYPE_APP))); } #endif /* HITLS_TLS_PROTO_DTLS12 */ #ifdef HITLS_TLS_PROTO_TLS static int32_t VersionProcess(TLS_Ctx *ctx, uint16_t version, uint8_t type) { if ((ctx->negotiatedInfo.version == HITLS_VERSION_TLS13) && (version != HITLS_VERSION_TLS12)) { /* If the negotiated version is tls1.3, the record version must be tls1.2 */ BSL_ERR_PUSH_ERROR(HITLS_REC_INVALID_PROTOCOL_VERSION); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15448, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "get a record with illegal version(0x%x).", version, 0, 0, 0); ctx->method.sendAlert(ctx, ALERT_LEVEL_FATAL, ALERT_DECODE_ERROR); return HITLS_REC_INVALID_PROTOCOL_VERSION; } else if ((ctx->negotiatedInfo.version != HITLS_VERSION_TLS13) && (version != ctx->negotiatedInfo.version)) { BSL_ERR_PUSH_ERROR(HITLS_REC_INVALID_PROTOCOL_VERSION); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15449, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "get a record with illegal version(0x%x).", version, 0, 0, 0); if (((version & 0xff00u) == (ctx->negotiatedInfo.version & 0xff00u)) && type == REC_TYPE_ALERT) { return HITLS_SUCCESS; } ctx->method.sendAlert(ctx, ALERT_LEVEL_FATAL, ALERT_PROTOCOL_VERSION); return HITLS_REC_INVALID_PROTOCOL_VERSION; } return HITLS_SUCCESS; } int32_t TlsCheckVersionField(TLS_Ctx *ctx, uint16_t version, uint8_t type) { if (ctx->negotiatedInfo.version == 0u) { #ifdef HITLS_TLS_PROTO_TLCP11 if (((version >> 8u) != HITLS_VERSION_TLS_MAJOR) && (version != HITLS_VERSION_TLCP_DTLCP11)) { #else if ((version >> 8u) != HITLS_VERSION_TLS_MAJOR) { #endif BSL_ERR_PUSH_ERROR(HITLS_REC_INVALID_PROTOCOL_VERSION); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID16132, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "get a record with illegal version(0x%x).", version, 0, 0, 0); ctx->method.sendAlert(ctx, ALERT_LEVEL_FATAL, ALERT_PROTOCOL_VERSION); return HITLS_REC_INVALID_PROTOCOL_VERSION; } } else { return VersionProcess(ctx, version, type); } return HITLS_SUCCESS; } int32_t TlsCheckRecordHeader(TLS_Ctx *ctx, const RecHdr *recordHdr) { if (RecCastUintToRecType(ctx, recordHdr->type) == REC_TYPE_UNKNOWN) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15450, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "get a record with invalid type", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_UNEXPECTED_MESSAGE); } int32_t ret = TlsCheckVersionField(ctx, recordHdr->version, recordHdr->type); if (ret != HITLS_SUCCESS) { return HITLS_REC_INVALID_PROTOCOL_VERSION; } if (recordHdr->bodyLen + REC_TLS_RECORD_HEADER_LEN > RecGetInitBufferSize(ctx, true)) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15451, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "get a record with invalid length", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_RECORD_OVERFLOW); } if (recordHdr->bodyLen + REC_TLS_RECORD_HEADER_LEN > ctx->recCtx->inBuf->bufSize) { ret = RecBufResize(ctx->recCtx->inBuf, recordHdr->bodyLen + REC_TLS_RECORD_HEADER_LEN); if (ret != HITLS_SUCCESS) { return ret; } } #ifdef HITLS_TLS_PROTO_TLS13 if (ctx->negotiatedInfo.version == HITLS_VERSION_TLS13 && recordHdr->bodyLen > REC_MAX_TLS13_ENCRYPTED_LEN) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID16125, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "get a record with invalid length", 0, 0, 0, 0); return RecordSendAlertMsg(ctx, ALERT_LEVEL_FATAL, ALERT_RECORD_OVERFLOW); } #endif return HITLS_SUCCESS; } /** * @brief Read data from the uio of the TLS context into inBuf * * @param ctx [IN] TLS context * @param inBuf [IN] inBuf Read buffer. * @param len [IN] len The length to read, it takes the value of the record header length (5 * bytes) or the entire record length (header + body) * * @retval HITLS_SUCCESS Read successfully * @retval HITLS_REC_ERR_IO_EXCEPTION IO error * @retval HITLS_REC_NORMAL_RECV_BUF_EMPTY No cached data needs to be re-read * @retval HITLS_REC_NORMAL_IO_EOF */ int32_t StreamRead(TLS_Ctx *ctx, RecBuf *inBuf, uint32_t len) { uint32_t bytesInRbuf = inBuf->end - inBuf->start; bool readAheadFlag = (ctx->config.tlsConfig.readAhead != 0); if (bytesInRbuf == 0) { inBuf->start = 0; inBuf->end = 0; } // there are enough data in the read buffer if (bytesInRbuf >= len) { return HITLS_SUCCESS; } // right-side available space is less then required len, move data leftwards if (inBuf->bufSize - inBuf->end < len) { for (uint32_t i = 0; i < bytesInRbuf; i++) { inBuf->buf[i] = inBuf->buf[inBuf->start + i]; } inBuf->start = 0; inBuf->end = bytesInRbuf; } uint32_t upperBnd = (!readAheadFlag && inBuf->bufSize >= inBuf->start + len - inBuf->end) ? inBuf->start + len : inBuf->bufSize; do { uint32_t recvLen = 0u; #ifdef HITLS_TLS_CONFIG_STATE ctx->rwstate = HITLS_READING; #endif #ifdef HITLS_TLS_FEATURE_FLIGHT int32_t ret = BSL_UIO_Read(ctx->rUio, &(inBuf->buf[inBuf->end]), upperBnd - inBuf->end, &recvLen); #else int32_t ret = BSL_UIO_Read(ctx->uio, &(inBuf->buf[inBuf->end]), upperBnd - inBuf->end, &recvLen); #endif if (ret != BSL_SUCCESS) { if (ret == BSL_UIO_IO_EOF) { return HITLS_REC_NORMAL_IO_EOF; } BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15452, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Fail to call BSL_UIO_Read in StreamRead: [%d]", ret, 0, 0, 0); return HITLS_REC_ERR_IO_EXCEPTION; } #ifdef HITLS_TLS_CONFIG_STATE ctx->rwstate = HITLS_NOTHING; #endif if (recvLen == 0) { return HITLS_REC_NORMAL_RECV_BUF_EMPTY; } inBuf->end += recvLen; } while (inBuf->end - inBuf->start < len); return HITLS_SUCCESS; } /** * @brief Attempt to read a tls record message. * * @param ctx [IN] TLS context * @param recordBody [OUT] record body * @param hdr [OUT] record head * * @retval HITLS_SUCCESS * @retval HITLS_REC_NORMAL_RECV_BUF_EMPTY needs to be read again * @retval HITLS_REC_ERR_IO_EXCEPTION I/O error */ int32_t TryReadOneTlsRecord(TLS_Ctx *ctx, uint8_t **recordBody, RecHdr *recHeader) { /* Buffer for reading data */ RecBuf *inBuf = ctx->recCtx->inBuf; if (IsNeedtoRead(ctx, inBuf)) { RecDerefBufList(ctx); } // read record header int32_t ret = StreamRead(ctx, inBuf, REC_TLS_RECORD_HEADER_LEN); if (ret != HITLS_SUCCESS) { return ret; } const uint8_t *recordHeader = &inBuf->buf[inBuf->start]; recHeader->type = recordHeader[0]; recHeader->version = BSL_ByteToUint16(recordHeader + sizeof(uint8_t)); recHeader->bodyLen = BSL_ByteToUint16(recordHeader + REC_TLS_RECORD_LENGTH_OFFSET); ret = TlsCheckRecordHeader(ctx, recHeader); if (ret != HITLS_SUCCESS) { #ifdef HITLS_TLS_FEATURE_INDICATOR INDICATOR_MessageIndicate(0, 0, RECORD_HEADER, recordHeader, REC_TLS_RECORD_HEADER_LEN, ctx, ctx->config.tlsConfig.msgArg); #endif return ret; } #ifdef HITLS_TLS_FEATURE_INDICATOR INDICATOR_MessageIndicate(0, recHeader->version, RECORD_HEADER, recordHeader, REC_TLS_RECORD_HEADER_LEN, ctx, ctx->config.tlsConfig.msgArg); #endif uint32_t recHeaderAndBodyLen = REC_TLS_RECORD_HEADER_LEN + (uint32_t)recHeader->bodyLen; // read a whole record: head + body ret = StreamRead(ctx, inBuf, recHeaderAndBodyLen); if (ret != HITLS_SUCCESS) { return ret; } *recordBody = &inBuf->buf[inBuf->start] + REC_TLS_RECORD_HEADER_LEN; inBuf->start += recHeaderAndBodyLen; return HITLS_SUCCESS; } int32_t RecordDecryptPrepare(TLS_Ctx *ctx, uint16_t version, REC_Type recordType, REC_TextInput *cryptMsg) { (void)recordType; (void)version; RecConnState *state = GetReadConnState(ctx); if (state->isWrapped == true) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_SN_WRAPPING); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15454, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record read: sequence number wrap.", 0, 0, 0, 0); return HITLS_REC_ERR_SN_WRAPPING; } if (state->seq == REC_TLS_SN_MAX_VALUE) { state->isWrapped = true; } if (ctx->peekFlag != 0 && recordType != REC_TYPE_APP) { BSL_ERR_PUSH_ERROR(HITLS_INTERNAL_EXCEPTION); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID16170, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Peek mode applies only if record type is application.", 0, 0, 0, 0); return HITLS_INTERNAL_EXCEPTION; } RecHdr recordHeader = { 0 }; uint8_t *recordBody = NULL; // read header and body from ctx int32_t ret = TryReadOneTlsRecord(ctx, &recordBody, &recordHeader); if (ret != HITLS_SUCCESS) { return ret; } uint32_t recordBodyLen = (uint32_t)recordHeader.bodyLen; #ifdef HITLS_TLS_PROTO_TLS13 if (HS_GetVersion(ctx) == HITLS_VERSION_TLS13) { if ((recordHeader.type == REC_TYPE_CHANGE_CIPHER_SPEC || recordHeader.type == REC_TYPE_ALERT) && recordBodyLen != 0) { ctx->recCtx->unexpectedMsgType = recordHeader.type; /* In the TLS1.3 scenario, process unencrypted CCS and Alert messages received */ return ctx->method.unexpectedMsgProcessCb(ctx, recordHeader.type, recordBody, recordBodyLen, true); } } #endif cryptMsg->negotiatedVersion = ctx->negotiatedInfo.version; #ifdef HITLS_TLS_FEATURE_ETM cryptMsg->isEncryptThenMac = ctx->negotiatedInfo.isEncryptThenMac; #endif cryptMsg->type = recordHeader.type; cryptMsg->version = recordHeader.version; cryptMsg->text = recordBody; cryptMsg->textLen = recordBodyLen; BSL_Uint64ToByte(state->seq, cryptMsg->seq); return HITLS_SUCCESS; } /** * @brief Read a record in the TLS protocol. * @attention: Handle record and handle transporting state to receive unexpected record type messages * @param ctx [IN] TLS context * @param recordType [IN] Record type * @param data [OUT] Read data * @param readLen [OUT] Length of the read data * @param num [IN] The read buffer has num bytes * * @retval HITLS_SUCCESS * @retval HITLS_REC_NORMAL_RECV_BUF_EMPTY Need to re-read * @retval HITLS_REC_ERR_IO_EXCEPTION I/O error * @retval HITLS_REC_ERR_SN_WRAPPING The sequence number is rewound. * @retval HITLS_REC_NORMAL_RECV_UNEXPECT_MSG Unexpected message received. * */ int32_t TlsRecordRead(TLS_Ctx *ctx, REC_Type recordType, uint8_t *data, uint32_t *readLen, uint32_t num) { RecBufList *bufList = (recordType == REC_TYPE_HANDSHAKE) ? ctx->recCtx->hsRecList : ctx->recCtx->appRecList; if (!RecBufListEmpty(bufList)) { return RecBufListGetBuffer(bufList, data, num, readLen, (ctx->peekFlag != 0 && (recordType == REC_TYPE_APP))); } int32_t ret = RecIoBufInit(ctx, (RecCtx *)ctx->recCtx, true); if (ret != HITLS_SUCCESS) { return ret; } REC_TextInput encryptedMsg = { 0 }; ret = RecordDecryptPrepare(ctx, ctx->negotiatedInfo.version, recordType, &encryptedMsg); if (ret != HITLS_SUCCESS) { return ret; } RecBuf decryptBuf = {0}; decryptBuf.buf = data; decryptBuf.bufSize = num; ret = RecordDecrypt(ctx, &decryptBuf, &encryptedMsg); if (ret != HITLS_SUCCESS) { return ret; } RecClearAlertCount(ctx, encryptedMsg.type); #ifdef HITLS_TLS_FEATURE_MODE_RELEASE_BUFFERS if ((ctx->config.tlsConfig.modeSupport & HITLS_MODE_RELEASE_BUFFERS) != 0 && (recordType == REC_TYPE_APP)) { RecTryFreeRecBuf(ctx, false); } #endif /* An unexpected message is received */ if (recordType != encryptedMsg.type) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17260, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "expect type %d, receive type %d", recordType, encryptedMsg.type, 0, 0); return RecordUnexpectedMsg(ctx, &decryptBuf, encryptedMsg.type); } if (decryptBuf.buf == data) { /* Update the read length */ *readLen = decryptBuf.end; return HITLS_SUCCESS; } ret = RecBufListAddBuffer(bufList, &decryptBuf); if (ret != HITLS_SUCCESS) { if (decryptBuf.isHoldBuffer) { BSL_SAL_FREE(decryptBuf.buf); } return ret; } return RecBufListGetBuffer(bufList, data, num, readLen, (ctx->peekFlag != 0 && (recordType == REC_TYPE_APP))); } #endif /* HITLS_TLS_PROTO_TLS */ uint32_t APP_GetReadPendingBytes(const TLS_Ctx *ctx) { if (ctx == NULL || ctx->recCtx == NULL || RecBufListEmpty(ctx->recCtx->appRecList)) { return 0; } RecBuf *recBuf = (RecBuf *)BSL_LIST_GET_FIRST(ctx->recCtx->appRecList); if (recBuf == NULL) { return 0; } return recBuf->end - recBuf->start; }
2301_79861745/bench_create
tls/record/src/rec_read.c
C
unknown
40,459
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef REC_READ_H #define REC_READ_H #include <stdint.h> #include "rec.h" #include "rec_buf.h" #ifdef __cplusplus extern "C" { #endif #ifdef HITLS_TLS_PROTO_DTLS12 /** * @brief Read a record in the DTLS protocol * * @param ctx [IN] TLS context * @param recordType [IN] Record type * @param data [OUT] Read data * @param len [OUT] Read data length * @param bufSize [IN] buffer length * * @retval HITLS_SUCCESS * @retval HITLS_REC_NORMAL_RECV_BUF_EMPTY needs to be read again * @retval HITLS_REC_ERR_IO_EXCEPTION I/O error * @retval HITLS_REC_NORMAL_RECV_UNEXPECT_MSG Unexpected message received * @retval HITLS_REC_NORMAL_RECV_DISORDER_MSG Receives out-of-order messages * */ int32_t DtlsRecordRead(TLS_Ctx *ctx, REC_Type recordType, uint8_t *data, uint32_t *len, uint32_t bufSize); #endif /** * @brief Read a record in the TLS protocol * * @param ctx [IN] TLS context * @param recordType [IN] Record type * @param data [OUT] Read data * @param readLen [OUT] Length of the read data * @param num [IN] The read buffer has num bytes * * @retval HITLS_SUCCESS * @retval HITLS_REC_NORMAL_RECV_BUF_EMPTY needs to be read again * @retval HITLS_REC_ERR_IO_EXCEPTION I/O error * @retval HITLS_REC_ERR_SN_WRAPPING Sequence number wrap * @retval HITLS_REC_NORMAL_RECV_UNEXPECT_MSG Unexpected message received * */ int32_t TlsRecordRead(TLS_Ctx *ctx, REC_Type recordType, uint8_t *data, uint32_t *readLen, uint32_t num); /** * @brief Read data from the UIO of the TLS context to the inBuf * * @param ctx [IN] TLS context * @param inBuf [IN] * @param len [IN] len Length to be read * * @retval HITLS_SUCCESS * @retval HITLS_REC_ERR_IO_EXCEPTION I/O error * @retval HITLS_REC_NORMAL_RECV_BUF_EMPTY needs to be read again */ int32_t StreamRead(TLS_Ctx *ctx, RecBuf *inBuf, uint32_t len); #ifdef __cplusplus } #endif #endif
2301_79861745/bench_create
tls/record/src/rec_read.h
C
unknown
2,446
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #include "hitls_build.h" #include "bsl_sal.h" #include "bsl_module_list.h" #include "tls_binlog_id.h" #include "hitls_error.h" #include "rec.h" #include "bsl_uio.h" #include "record.h" #include "hs.h" #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) int32_t REC_RetransmitListAppend(REC_Ctx *recCtx, REC_Type type, const uint8_t *msg, uint32_t len) { RecRetransmitList *retransmitList = &recCtx->retransmitList; RecRetransmitList *retransmitNode = (RecRetransmitList *)BSL_SAL_Calloc(1u, sizeof(RecRetransmitList)); if (retransmitNode == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17277, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Calloc fail", 0, 0, 0, 0); return HITLS_MEMALLOC_FAIL; } LIST_INIT(&(retransmitNode->head)); retransmitNode->type = type; retransmitNode->msg = BSL_SAL_Dump(msg, len); if (retransmitNode->msg == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17278, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Dump fail", 0, 0, 0, 0); BSL_SAL_FREE(retransmitNode); return HITLS_MEMALLOC_FAIL; } retransmitNode->len = len; if (type == REC_TYPE_CHANGE_CIPHER_SPEC) { retransmitList->isExistCcsMsg = true; } /* insert new node */ LIST_ADD_BEFORE(&retransmitList->head, &retransmitNode->head); return HITLS_SUCCESS; } void REC_RetransmitListClean(REC_Ctx *recCtx) { ListHead *head = NULL; ListHead *tmpHead = NULL; RecRetransmitList *retransmitList = &recCtx->retransmitList; RecRetransmitList *retransmitNode = NULL; retransmitList->isExistCcsMsg = false; LIST_FOR_EACH_ITEM_SAFE(head, tmpHead, &(retransmitList->head)) { LIST_REMOVE(head); retransmitNode = LIST_ENTRY(head, RecRetransmitList, head); BSL_SAL_FREE(retransmitNode->msg); BSL_SAL_FREE(retransmitNode); } return; } static int32_t WriteSingleRetransmitNode(TLS_Ctx *ctx, REC_Type recordType, const uint8_t *data, uint32_t num) { int32_t ret = REC_QueryMtu(ctx); if (ret != HITLS_SUCCESS) { return ret; } ret = REC_RecOutBufReSet(ctx); if (ret != HITLS_SUCCESS) { return ret; } uint32_t maxRecPayloadLen = 0; ret = REC_GetMaxWriteSize(ctx, &maxRecPayloadLen); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17360, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "GetMaxWriteSize fail", 0, 0, 0, 0); return ret; } if (maxRecPayloadLen >= num) { /* Send to the record layer */ ret = REC_Write(ctx, recordType, data, num); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17361, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "send handshake msg to record fail.", 0, 0, 0, 0); return ret; } } else { ret = HS_DtlsSendFragmentHsMsg(ctx, maxRecPayloadLen, data); if (ret != HITLS_SUCCESS) { return ret; } } return HITLS_SUCCESS; } int32_t REC_RetransmitListFlush(TLS_Ctx *ctx) { REC_Ctx *recCtx = ctx->recCtx; RecRetransmitList *retransmitList = &recCtx->retransmitList; RecRetransmitList *retransmitNode = NULL; if (retransmitList->isExistCcsMsg == true) { REC_ActiveOutdatedWriteState(ctx); } int32_t ret = HITLS_SUCCESS; ListHead *head = NULL; ListHead *tmpHead = NULL; LIST_FOR_EACH_ITEM_SAFE(head, tmpHead, &(retransmitList->head)) { retransmitNode = LIST_ENTRY(head, RecRetransmitList, head); /* UDP does not fail to send. Therefore, the sending failure case does not need to be considered. */ ret = WriteSingleRetransmitNode(ctx, retransmitNode->type, retransmitNode->msg, retransmitNode->len); if (ret != HITLS_SUCCESS) { return ret; } if (retransmitNode->type == REC_TYPE_CHANGE_CIPHER_SPEC) { REC_DeActiveOutdatedWriteState(ctx); } } if (ctx->config.tlsConfig.isFlightTransmitEnable) { (void)BSL_UIO_Ctrl(ctx->uio, BSL_UIO_FLUSH, 0, NULL); } return HITLS_SUCCESS; } #endif /* HITLS_TLS_PROTO_DTLS12 && HITLS_BSL_UIO_UDP */
2301_79861745/bench_create
tls/record/src/rec_retransmit.c
C
unknown
4,707
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #include "hitls_build.h" #ifdef HITLS_TLS_PROTO_DTLS12 #include "securec.h" #include "bsl_module_list.h" #include "tls_binlog_id.h" #include "bsl_log_internal.h" #include "bsl_log.h" #include "bsl_err_internal.h" #include "bsl_sal.h" #include "hitls_error.h" #include "rec.h" #include "rec_unprocessed_msg.h" #ifdef HITLS_BSL_UIO_UDP void CacheNextEpochHsMsg(UnprocessedHsMsg *unprocessedHsMsg, const RecHdr *hdr, const uint8_t *recordBody) { /* only out-of-order finished messages need to be cached */ if (hdr->type != REC_TYPE_HANDSHAKE) { return; } /* only cache one */ if (unprocessedHsMsg->recordBody != NULL) { return; } unprocessedHsMsg->recordBody = (uint8_t *)BSL_SAL_Dump(recordBody, hdr->bodyLen); if (unprocessedHsMsg->recordBody == NULL) { return; } (void)memcpy_s(&unprocessedHsMsg->hdr, sizeof(RecHdr), hdr, sizeof(RecHdr)); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15446, BSL_LOG_LEVEL_DEBUG, BSL_LOG_BINLOG_TYPE_RUN, "cache next epoch hs msg", 0, 0, 0, 0); return; } #endif /* HITLS_BSL_UIO_UDP */ UnprocessedAppMsg *UnprocessedAppMsgNew(void) { UnprocessedAppMsg *msg = (UnprocessedAppMsg *)BSL_SAL_Calloc(1, sizeof(UnprocessedAppMsg)); if (msg == NULL) { return NULL; } LIST_INIT(&msg->head); return msg; } void UnprocessedAppMsgFree(UnprocessedAppMsg *msg) { if (msg != NULL) { BSL_SAL_FREE(msg->recordBody); BSL_SAL_FREE(msg); } return; } void UnprocessedAppMsgListInit(UnprocessedAppMsg *appMsgList) { if (appMsgList == NULL) { return; } appMsgList->count = 0; appMsgList->recordBody = NULL; LIST_INIT(&appMsgList->head); return; } void UnprocessedAppMsgListDeinit(UnprocessedAppMsg *appMsgList) { ListHead *node = NULL; ListHead *tmpNode = NULL; UnprocessedAppMsg *cur = NULL; LIST_FOR_EACH_ITEM_SAFE(node, tmpNode, &(appMsgList->head)) { cur = LIST_ENTRY(node, UnprocessedAppMsg, head); LIST_REMOVE(node); /* releasing nodes and deleting user data */ UnprocessedAppMsgFree(cur); } appMsgList->count = 0; return; } int32_t UnprocessedAppMsgListAppend(UnprocessedAppMsg *appMsgList, const RecHdr *hdr, const uint8_t *recordBody) { /* prevent oversize */ if (appMsgList->count >= UNPROCESSED_APP_MSG_COUNT_MAX) { return HITLS_REC_NORMAL_RECV_BUF_EMPTY; } UnprocessedAppMsg *appNode = UnprocessedAppMsgNew(); if (appNode == NULL) { BSL_ERR_PUSH_ERROR(HITLS_MEMALLOC_FAIL); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15805, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Buffer app record: Malloc fail.", 0, 0, 0, 0); return HITLS_MEMALLOC_FAIL; } appNode->recordBody = (uint8_t*)BSL_SAL_Dump(recordBody, hdr->bodyLen); if (appNode->recordBody == NULL) { UnprocessedAppMsgFree(appNode); BSL_ERR_PUSH_ERROR(HITLS_MEMALLOC_FAIL); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15806, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Buffer app record: Malloc fail.", 0, 0, 0, 0); return HITLS_MEMALLOC_FAIL; } (void)memcpy_s(&appNode->hdr, sizeof(RecHdr), hdr, sizeof(RecHdr)); LIST_ADD_BEFORE(&appMsgList->head, &appNode->head); appMsgList->count++; BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15807, BSL_LOG_LEVEL_DEBUG, BSL_LOG_BINLOG_TYPE_RUN, "Buffer app record: count is %u.", appMsgList->count, 0, 0, 0); return HITLS_SUCCESS; } UnprocessedAppMsg *UnprocessedAppMsgGet(UnprocessedAppMsg *appMsgList, uint16_t curEpoch) { ListHead *next = appMsgList->head.next; if (next == &appMsgList->head) { return NULL; } ListHead *node = NULL; ListHead *tmpNode = NULL; UnprocessedAppMsg *cur = NULL; LIST_FOR_EACH_ITEM_SAFE(node, tmpNode, &(appMsgList->head)) { cur = LIST_ENTRY(node, UnprocessedAppMsg, head); uint16_t epoch = REC_EPOCH_GET(cur->hdr.epochSeq); if (curEpoch == epoch) { /* remove a node and release it by the outside */ LIST_REMOVE(node); appMsgList->count--; return cur; } } return NULL; } #endif /* HITLS_TLS_PROTO_DTLS12 */
2301_79861745/bench_create
tls/record/src/rec_unprocessed_msg.c
C
unknown
4,766
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef REC_UNPROCESSED_MSG_H #define REC_UNPROCESSED_MSG_H #include <stdint.h> #include "bsl_module_list.h" #include "rec_header.h" #ifdef __cplusplus extern "C" { #endif #ifdef HITLS_TLS_PROTO_DTLS12 typedef struct { RecHdr hdr; /* record header */ uint8_t *recordBody; /* record body */ } UnprocessedHsMsg; /* Unprocessed handshake messages */ /* rfc6083 4.7 Handshake User messages that arrive between ChangeCipherSpec and Finished messages and use the new epoch have probably passed the Finished message and MUST be buffered by DTLS until the Finished message is read. */ typedef struct { ListHead head; uint32_t count; /* Number of cached record messages */ RecHdr hdr; /* record header */ uint8_t *recordBody; /* record body */ } UnprocessedAppMsg; /* Unprocessed App messages: App messages that are out of order with finished */ void CacheNextEpochHsMsg(UnprocessedHsMsg *unprocessedHsMsg, const RecHdr *hdr, const uint8_t *recordBody); UnprocessedAppMsg *UnprocessedAppMsgNew(void); void UnprocessedAppMsgFree(UnprocessedAppMsg *msg); void UnprocessedAppMsgListInit(UnprocessedAppMsg *appMsgList); void UnprocessedAppMsgListDeinit(UnprocessedAppMsg *appMsgList); int32_t UnprocessedAppMsgListAppend(UnprocessedAppMsg *appMsgList, const RecHdr *hdr, const uint8_t *recordBody); UnprocessedAppMsg *UnprocessedAppMsgGet(UnprocessedAppMsg *appMsgList, uint16_t curEpoch); #endif // HITLS_TLS_PROTO_DTLS12 #ifdef __cplusplus } #endif #endif
2301_79861745/bench_create
tls/record/src/rec_unprocessed_msg.h
C
unknown
2,153
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #include "hitls_build.h" #include "securec.h" #include "bsl_sal.h" #include "tls_binlog_id.h" #include "bsl_log_internal.h" #include "bsl_log.h" #include "bsl_err_internal.h" #include "bsl_bytes.h" #include "hitls_error.h" #include "hitls_config.h" #include "bsl_errno.h" #include "bsl_uio.h" #include "tls.h" #include "uio_base.h" #include "record.h" #include "hs_ctx.h" #ifdef HITLS_TLS_FEATURE_INDICATOR #include "indicator.h" #endif #include "hs.h" #include "rec_crypto.h" RecConnState *GetWriteConnState(const TLS_Ctx *ctx) { /** Obtain the record structure. */ RecCtx *recordCtx = (RecCtx *)ctx->recCtx; return recordCtx->writeStates.currentState; } static void OutbufUpdate(uint32_t *start, uint32_t startvalue, uint32_t *end, uint32_t endvalue) { /** Commit the record to be written */ *start = startvalue; *end = endvalue; return; } static int32_t CheckEncryptionLimits(TLS_Ctx *ctx, RecConnState *state) { (void)ctx; if (state->suiteInfo != NULL && #ifdef HITLS_TLS_FEATURE_KEY_UPDATE ctx->isKeyUpdateRequest == false && #endif (state->suiteInfo->cipherAlg == HITLS_CIPHER_AES_128_GCM || state->suiteInfo->cipherAlg == HITLS_CIPHER_AES_256_GCM) && RecConnGetSeqNum(state) > REC_MAX_AES_GCM_ENCRYPTION_LIMIT) { BSL_ERR_PUSH_ERROR(HITLS_REC_ENCRYPTED_NUMBER_OVERFLOW); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID16188, BSL_LOG_LEVEL_WARN, BSL_LOG_BINLOG_TYPE_RUN, "AES-GCM record encrypted times overflow", 0, 0, 0, 0); return HITLS_REC_ENCRYPTED_NUMBER_OVERFLOW; } return HITLS_SUCCESS; } #ifdef HITLS_TLS_PROTO_DTLS12 // Write the data message. static int32_t DatagramWrite(TLS_Ctx *ctx, RecBuf *buf) { uint32_t total = buf->end - buf->start; /* Attempt to write */ uint32_t sendLen = 0u; #ifdef HITLS_TLS_CONFIG_STATE ctx->rwstate = HITLS_WRITING; #endif int32_t ret = BSL_UIO_Write(ctx->uio, &(buf->buf[buf->start]), total, &sendLen); /* Two types of failures occur in the packet transfer scenario: * a. The bottom layer directly returns a failure message. * b. Only some data packets are sent. * (sendLen != total) && (sendLen != 0) checks whether the returned result is null, but only part of the data is sent */ if ((ret != BSL_SUCCESS) || ((sendLen != 0) && (sendLen != total))) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_IO_EXCEPTION); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15664, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record send: IO exception. %d\n", ret, 0, 0, 0); return HITLS_REC_ERR_IO_EXCEPTION; } if (sendLen == 0) { return HITLS_REC_NORMAL_IO_BUSY; } buf->start = 0; buf->end = 0; #ifdef HITLS_TLS_CONFIG_STATE ctx->rwstate = HITLS_NOTHING; #endif return HITLS_SUCCESS; } void DtlsPlainMsgGenerate(REC_TextInput *plainMsg, const TLS_Ctx *ctx, REC_Type recordType, const uint8_t *data, uint32_t plainLen, uint64_t epochSeq) { plainMsg->type = recordType; plainMsg->text = data; plainMsg->textLen = plainLen; plainMsg->negotiatedVersion = ctx->negotiatedInfo.version; #ifdef HITLS_TLS_FEATURE_ETM plainMsg->isEncryptThenMac = ctx->negotiatedInfo.isEncryptThenMac; #endif if (ctx->negotiatedInfo.version == 0) { plainMsg->version = HITLS_VERSION_DTLS10; if (IS_SUPPORT_TLCP(ctx->config.tlsConfig.originVersionMask)) { plainMsg->version = HITLS_VERSION_TLCP_DTLCP11; } } else { plainMsg->version = ctx->negotiatedInfo.version; } BSL_Uint64ToByte(epochSeq, plainMsg->seq); } static inline void DtlsRecordHeaderPack(uint8_t *outBuf, REC_Type recordType, uint16_t version, uint64_t epochSeq, uint32_t cipherTextLen) { outBuf[0] = recordType; BSL_Uint16ToByte(version, &outBuf[1]); BSL_Uint64ToByte(epochSeq, &outBuf[REC_DTLS_RECORD_EPOCH_OFFSET]); BSL_Uint16ToByte((uint16_t)cipherTextLen, &outBuf[REC_DTLS_RECORD_LENGTH_OFFSET]); } static int32_t DtlsTrySendMessage(TLS_Ctx *ctx, RecCtx *recordCtx, REC_Type recordType, RecConnState *state) { /* Notify the uio whether the service message is being sent. rfc6083 4.4. Stream Usage: For non-app messages, the * sctp stream id number must be 0 */ bool isAppMsg = (recordType == REC_TYPE_APP); (void)BSL_UIO_Ctrl(ctx->uio, BSL_UIO_SCTP_MASK_APP_MESSAGE, sizeof(isAppMsg), &isAppMsg); int32_t ret = DatagramWrite(ctx, recordCtx->outBuf); if (ret != HITLS_SUCCESS) { /* Does not cache messages in the DTLS */ recordCtx->outBuf->start = 0; recordCtx->outBuf->end = 0; return ret; } #if defined(HITLS_BSL_UIO_UDP) ret = RecDerefBufList(ctx); if (ret != HITLS_SUCCESS) { return ret; } #endif #ifdef HITLS_TLS_FEATURE_MODE_RELEASE_BUFFERS if ((ctx->config.tlsConfig.modeSupport & HITLS_MODE_RELEASE_BUFFERS) != 0 && (recordType == REC_TYPE_APP)) { RecTryFreeRecBuf(ctx, true); } #endif /** Add the record sequence */ RecConnSetSeqNum(state, state->seq + 1); return HITLS_SUCCESS; } // Write a record for the DTLS protocol int32_t DtlsRecordWrite(TLS_Ctx *ctx, REC_Type recordType, const uint8_t *data, uint32_t num) { /** Obtain the record structure */ RecCtx *recordCtx = (RecCtx *)ctx->recCtx; RecConnState *state = GetWriteConnState(ctx); if (state->seq > REC_DTLS_SN_MAX_VALUE) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_SN_WRAPPING); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15665, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record write: sequence number wrap.", 0, 0, 0, 0); return HITLS_REC_ERR_SN_WRAPPING; } uint32_t cipherTextLen = RecGetCryptoFuncs(state->suiteInfo)->calCiphertextLen(ctx, state->suiteInfo, num, false); if (cipherTextLen == 0) { BSL_ERR_PUSH_ERROR(HITLS_INTERNAL_EXCEPTION); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15666, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record write: cipherTextLen(0) error.", 0, 0, 0, 0); return HITLS_INTERNAL_EXCEPTION; } int32_t ret = RecIoBufInit(ctx, recordCtx, false); if (ret != HITLS_SUCCESS) { return ret; } const uint32_t outBufLen = REC_DTLS_RECORD_HEADER_LEN + cipherTextLen; if (outBufLen > recordCtx->outBuf->bufSize) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_BUFFER_NOT_ENOUGH); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15667, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "DTLS record write error: msg len = %u, buf len = %u.", outBufLen, recordCtx->outBuf->bufSize, 0, 0); return HITLS_REC_ERR_BUFFER_NOT_ENOUGH; } /* Before encryption, construct plaintext parameters */ REC_TextInput plainMsg = {0}; uint64_t epochSeq = REC_EPOCHSEQ_CAL(RecConnGetEpoch(state), state->seq); DtlsPlainMsgGenerate(&plainMsg, ctx, recordType, data, num, epochSeq); /** Obtain the cache address */ uint8_t *outBuf = &recordCtx->outBuf->buf[0]; DtlsRecordHeaderPack(outBuf, recordType, plainMsg.version, epochSeq, cipherTextLen); ret = CheckEncryptionLimits(ctx, state); if (ret != HITLS_SUCCESS) { return ret; } /** Encrypt the record body */ ret = RecConnEncrypt(ctx, state, &plainMsg, &outBuf[REC_DTLS_RECORD_HEADER_LEN], cipherTextLen); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17280, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "RecConnEncrypt fail", 0, 0, 0, 0); return ret; } OutbufUpdate(&recordCtx->outBuf->start, 0, &recordCtx->outBuf->end, outBufLen); #ifdef HITLS_TLS_FEATURE_INDICATOR INDICATOR_MessageIndicate(1, 0, RECORD_HEADER, outBuf, REC_DTLS_RECORD_HEADER_LEN, ctx, ctx->config.tlsConfig.msgArg); #endif return DtlsTrySendMessage(ctx, recordCtx, recordType, state); } #endif /* HITLS_TLS_PROTO_DTLS12 */ #ifdef HITLS_TLS_PROTO_TLS // Writes data to the UIO of the TLS context. int32_t StreamWrite(TLS_Ctx *ctx, RecBuf *buf) { uint32_t total = buf->end - buf->start; int32_t ret = BSL_SUCCESS; #ifdef HITLS_TLS_CONFIG_STATE ctx->rwstate = HITLS_WRITING; #endif do { uint32_t sendLen = 0u; ret = BSL_UIO_Write(ctx->uio, &(buf->buf[buf->start]), total, &sendLen); if (ret != BSL_SUCCESS) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_IO_EXCEPTION); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15668, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record send: IO exception. %d\n", ret, 0, 0, 0); return HITLS_REC_ERR_IO_EXCEPTION; } if (sendLen == 0) { return HITLS_REC_NORMAL_IO_BUSY; } buf->start += sendLen; total -= sendLen; } while (buf->start < buf->end); buf->start = 0; buf->end = 0; #ifdef HITLS_TLS_CONFIG_STATE ctx->rwstate = HITLS_NOTHING; #endif return HITLS_SUCCESS; } static void TlsPlainMsgGenerate(REC_TextInput *plainMsg, const TLS_Ctx *ctx, REC_Type recordType, const uint8_t *data, uint32_t plainLen) { plainMsg->type = recordType; plainMsg->text = data; plainMsg->textLen = plainLen; plainMsg->negotiatedVersion = ctx->negotiatedInfo.version; #ifdef HITLS_TLS_FEATURE_ETM plainMsg->isEncryptThenMac = ctx->negotiatedInfo.isEncryptThenMacWrite; #endif if (ctx->negotiatedInfo.version != 0) { plainMsg->version = #ifdef HITLS_TLS_PROTO_TLS13 (ctx->negotiatedInfo.version == HITLS_VERSION_TLS13) ? HITLS_VERSION_TLS12 : #endif ctx->negotiatedInfo.version; } else { plainMsg->version = #ifdef HITLS_TLS_PROTO_TLS13 (ctx->config.tlsConfig.maxVersion == HITLS_VERSION_TLS13) ? HITLS_VERSION_TLS12 : #endif ctx->config.tlsConfig.maxVersion; } if (ctx->hsCtx != NULL && ctx->hsCtx->state == TRY_SEND_CLIENT_HELLO && ctx->state != CM_STATE_RENEGOTIATION && #ifdef HITLS_TLS_PROTO_TLS13 ctx->hsCtx->haveHrr == false && #endif #ifdef HITLS_TLS_PROTO_TLCP11 ctx->config.tlsConfig.maxVersion != HITLS_VERSION_TLCP_DTLCP11 && #endif ctx->config.tlsConfig.maxVersion > HITLS_VERSION_TLS10) { plainMsg->version = HITLS_VERSION_TLS10; } BSL_Uint64ToByte(GetWriteConnState(ctx)->seq, plainMsg->seq); } static inline void TlsRecordHeaderPack(uint8_t *outBuf, REC_Type recordType, uint16_t version, uint32_t cipherTextLen) { outBuf[0] = recordType; BSL_Uint16ToByte(version, &outBuf[1]); BSL_Uint16ToByte((uint16_t)cipherTextLen, &outBuf[REC_TLS_RECORD_LENGTH_OFFSET]); } static int32_t SendRecord(TLS_Ctx *ctx, RecCtx *recordCtx, RecConnState *state, uint64_t seq, REC_Type recordType) { (void)recordType; int32_t ret = StreamWrite(ctx, recordCtx->outBuf); if (ret != HITLS_SUCCESS) { return ret; } #ifdef HITLS_TLS_FEATURE_MODE_RELEASE_BUFFERS if ((ctx->config.tlsConfig.modeSupport & HITLS_MODE_RELEASE_BUFFERS) != 0 && (recordType == REC_TYPE_APP)) { RecTryFreeRecBuf(ctx, true); } #endif /** Add the record sequence */ RecConnSetSeqNum(state, seq + 1); return HITLS_SUCCESS; } int32_t REC_OutBufFlush(TLS_Ctx *ctx) { RecBuf *writeBuf = ctx->recCtx->outBuf; if (writeBuf == NULL || writeBuf->start == writeBuf->end) { return HITLS_SUCCESS; // No data to flush } if (IS_SUPPORT_DATAGRAM(ctx->config.tlsConfig.originVersionMask)) { return HITLS_SUCCESS; } RecConnState *state = GetWriteConnState(ctx); /* The Recordtype is REC_TYPE_HANDSHAKE to not relase outbuffer in HITLS_MODE_RELEASE_BUFFERS mode */ int32_t ret = SendRecord(ctx, ctx->recCtx, state, state->seq, REC_TYPE_HANDSHAKE); if (ret != HITLS_SUCCESS) { return ret; } ctx->recCtx->pendingData = NULL; ctx->recCtx->pendingDataSize = 0; return HITLS_SUCCESS; } static int32_t SequenceCompare(RecConnState *state, uint64_t value) { if (state->isWrapped == true) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_SN_WRAPPING); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15670, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record write: sequence number wrap.", 0, 0, 0, 0); return HITLS_REC_ERR_SN_WRAPPING; } if (state->seq == value) { state->isWrapped = true; } return HITLS_SUCCESS; } static int32_t LengthCheck(uint32_t ciphertextLen, const uint32_t outBufLen, RecBuf *writeBuf) { if (ciphertextLen == 0) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15671, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record write: cipherTextLen(0) error.", 0, 0, 0, 0); return HITLS_INTERNAL_EXCEPTION; } if (outBufLen > writeBuf->bufSize) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_BUFFER_NOT_ENOUGH); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15672, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record write: buffer is not enough.", 0, 0, 0, 0); return HITLS_REC_ERR_BUFFER_NOT_ENOUGH; } return HITLS_SUCCESS; } static const uint8_t *GetPlainMsgData(RecordPlaintext *recPlaintext, const uint8_t *data) { (void)recPlaintext; return #ifdef HITLS_TLS_PROTO_TLS13 recPlaintext->isTlsInnerPlaintext ? recPlaintext->plainData : #endif data; } // Write a record in the TLS protocol, serialize a record message, and send the message int32_t TlsRecordWrite(TLS_Ctx *ctx, REC_Type recordType, const uint8_t *data, uint32_t num) { RecConnState *state = GetWriteConnState(ctx); RecordPlaintext recPlaintext = {0}; REC_TextInput plainMsg = {0}; int32_t ret = SequenceCompare(state, REC_TLS_SN_MAX_VALUE); if (ret != HITLS_SUCCESS) { return ret; } ret = RecIoBufInit(ctx, (RecCtx *)ctx->recCtx, false); if (ret != HITLS_SUCCESS) { return ret; } RecBuf *writeBuf = ctx->recCtx->outBuf; /* Check whether the cache exists */ if (writeBuf->end > writeBuf->start) { return SendRecord(ctx, ctx->recCtx, state, state->seq, recordType); } const RecCryptoFunc *funcs = RecGetCryptoFuncs(state->suiteInfo); ret = funcs->encryptPreProcess(ctx, recordType, data, num, &recPlaintext); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17281, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "encryptPreProcess fail", 0, 0, 0, 0); return ret; } uint32_t ciphertextLen = funcs->calCiphertextLen(ctx, state->suiteInfo, recPlaintext.plainLen, false); const uint32_t outBufLen = REC_TLS_RECORD_HEADER_LEN + ciphertextLen; ret = LengthCheck(ciphertextLen, outBufLen, writeBuf); if (ret != HITLS_SUCCESS) { BSL_SAL_FREE(recPlaintext.plainData); return ret; } /* If the value is not tls13, use the input parameter data */ const uint8_t *plainMsgData = GetPlainMsgData(&recPlaintext, data); (void)TlsPlainMsgGenerate(&plainMsg, ctx, recPlaintext.recordType, plainMsgData, recPlaintext.plainLen); (void)TlsRecordHeaderPack(writeBuf->buf, recPlaintext.recordType, plainMsg.version, ciphertextLen); ret = CheckEncryptionLimits(ctx, state); if (ret != HITLS_SUCCESS) { BSL_SAL_FREE(recPlaintext.plainData); return ret; } /** Encrypt the record body */ ret = RecConnEncrypt(ctx, state, &plainMsg, writeBuf->buf + REC_TLS_RECORD_HEADER_LEN, ciphertextLen); BSL_SAL_FREE(recPlaintext.plainData); if (ret != HITLS_SUCCESS) { return ret; } #ifdef HITLS_TLS_FEATURE_INDICATOR INDICATOR_MessageIndicate(1, recordType, RECORD_HEADER, writeBuf->buf, REC_TLS_RECORD_HEADER_LEN, ctx, ctx->config.tlsConfig.msgArg); #endif OutbufUpdate(&writeBuf->start, 0, &writeBuf->end, outBufLen); return SendRecord(ctx, ctx->recCtx, state, state->seq, recordType); } #endif /* HITLS_TLS_PROTO_TLS */ #ifdef HITLS_TLS_FEATURE_FLIGHT int32_t REC_FlightTransmit(TLS_Ctx *ctx) { int32_t ret = HITLS_SUCCESS; #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) ret = REC_QueryMtu(ctx); if (ret != HITLS_SUCCESS) { return ret; } #endif /* HITLS_TLS_PROTO_DTLS12 && HITLS_BSL_UIO_UDP */ ret = BSL_UIO_Ctrl(ctx->uio, BSL_UIO_FLUSH, 0, NULL); if (ret == BSL_UIO_IO_BUSY) { #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) if (!BSL_UIO_GetUioChainTransportType(ctx->uio, BSL_UIO_UDP)) { return HITLS_REC_NORMAL_IO_BUSY; } bool exceeded = false; (void)BSL_UIO_Ctrl(ctx->uio, BSL_UIO_UDP_MTU_EXCEEDED, sizeof(bool), &exceeded); if (exceeded) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17362, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record write: get EMSGSIZE error.", 0, 0, 0, 0); ctx->needQueryMtu = true; } #endif /* HITLS_TLS_PROTO_DTLS12 && HITLS_BSL_UIO_UDP */ return HITLS_REC_NORMAL_IO_BUSY; } if (ret != BSL_SUCCESS) { BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_IO_EXCEPTION); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID16110, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "fail to send handshake message in bUio.", 0, 0, 0, 0); return HITLS_REC_ERR_IO_EXCEPTION; } return HITLS_SUCCESS; } #endif /* HITLS_TLS_FEATURE_FLIGHT */
2301_79861745/bench_create
tls/record/src/rec_write.c
C
unknown
17,749
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef REC_WRITE_H #define REC_WRITE_H #include <stdint.h> #include "rec.h" #include "rec_buf.h" #ifdef __cplusplus extern "C" { #endif /** * @brief Write a record in TLS * * @param ctx [IN] TLS context * @param recordType [IN] Record type * @param data [IN] Data to be written * @param plainLen [IN] plain length * * @retval HITLS_SUCCESS * @retval HITLS_REC_ERR_IO_EXCEPTION I/O error * @retval HITLS_REC_NORMAL_IO_BUSY I/O busy * @retval HITLS_REC_ERR_SN_WRAPPING Sequence number wrap */ int32_t TlsRecordWrite(TLS_Ctx *ctx, REC_Type recordType, const uint8_t *data, uint32_t plainLen); #ifdef HITLS_TLS_PROTO_DTLS12 /** * @brief Write a record in DTLS * * @param ctx [IN] TLS context * @param recordType [IN] Record type * @param data [IN] Data to be written * @param plainLen [IN] plain length * * @retval HITLS_SUCCESS * @retval HITLS_REC_ERR_IO_EXCEPTION I/O error * @retval HITLS_REC_NORMAL_IO_BUSY I/O busy * @retval HITLS_REC_ERR_SN_WRAPPING Sequence number wrap */ int32_t DtlsRecordWrite(TLS_Ctx *ctx, REC_Type recordType, const uint8_t *data, uint32_t plainLen); #endif /** * @brief Write data to the UIO of the TLS context * * @param ctx [IN] TLS context * @param buf [IN] Send buffer * * @retval HITLS_SUCCESS * @retval HITLS_REC_ERR_IO_EXCEPTION I/O error * @retval HITLS_REC_NORMAL_IO_BUSY I/O busy */ int32_t StreamWrite(TLS_Ctx *ctx, RecBuf *buf); #ifdef __cplusplus } #endif #endif
2301_79861745/bench_create
tls/record/src/rec_write.h
C
unknown
2,025
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #include "securec.h" #include "bsl_sal.h" #include "tls_binlog_id.h" #include "bsl_log_internal.h" #include "bsl_log.h" #include "bsl_err_internal.h" #include "bsl_bytes.h" #include "hitls_error.h" #include "hitls_config.h" #include "rec.h" #include "bsl_uio.h" #include "rec_write.h" #include "rec_read.h" #include "rec_crypto.h" #include "hs.h" #include "alert.h" #include "record.h" // Release RecStatesSuite static void RecConnStatesDeinit(RecCtx *recordCtx) { RecConnStateFree(recordCtx->readStates.currentState); RecConnStateFree(recordCtx->writeStates.currentState); return; } #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) static void RecCmpPmtu(const TLS_Ctx *ctx, uint32_t *recSize) { if (IS_SUPPORT_DATAGRAM(ctx->config.tlsConfig.originVersionMask) && BSL_UIO_GetUioChainTransportType(ctx->uio, BSL_UIO_UDP)) { uint32_t pmtuLimit = ctx->config.pmtu; /* If miniaturization is enabled in the dtls over udp scenario, the mtu size is used */ *recSize = (*recSize > pmtuLimit) ? pmtuLimit : *recSize; } } #endif #ifdef HITLS_TLS_FEATURE_MODE_RELEASE_BUFFERS void RecTryFreeRecBuf(TLS_Ctx *ctx, bool isOut) { RecCtx *recordCtx = (RecCtx *)ctx->recCtx; if (isOut) { if (recordCtx->outBuf != NULL && recordCtx->outBuf->start == recordCtx->outBuf->end) { RecBufFree(recordCtx->outBuf); recordCtx->outBuf = NULL; } } else { if (recordCtx->inBuf != NULL && recordCtx->inBuf->start == recordCtx->inBuf->end) { RecBufFree(recordCtx->inBuf); recordCtx->inBuf = NULL; } } return; } #endif uint32_t REC_GetOutBufPendingSize(const TLS_Ctx *ctx) { RecBuf *writeBuf = ctx->recCtx->outBuf; if (writeBuf == NULL) { return 0; } return writeBuf->start > writeBuf->end ? 0 : writeBuf->end - writeBuf->start; } int32_t RecIoBufInit(TLS_Ctx *ctx, RecCtx *recordCtx, bool isRead) { RecBuf **ioBuf = isRead ? &recordCtx->inBuf : &recordCtx->outBuf; if (*ioBuf == NULL) { uint32_t initSize = RecGetInitBufferSize(ctx, isRead); if (isRead && ctx->config.tlsConfig.recInbufferSize != 0) { initSize = ctx->config.tlsConfig.recInbufferSize; } *ioBuf = RecBufNew(initSize); if (*ioBuf == NULL) { BSL_ERR_PUSH_ERROR(HITLS_MEMALLOC_FAIL); BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15532, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record: malloc fail.", 0, 0, 0, 0); return HITLS_MEMALLOC_FAIL; } } return HITLS_SUCCESS; } static uint32_t RecGetDefaultBufferSize(bool isDtls, bool isRead) { (void)isDtls; uint32_t recHeaderLen = #ifdef HITLS_TLS_PROTO_DTLS12 isDtls ? REC_DTLS_RECORD_HEADER_LEN : #endif REC_TLS_RECORD_HEADER_LEN; uint32_t overHead = REC_MAX_WRITE_ENCRYPTED_OVERHEAD; if (isRead) { overHead = REC_MAX_READ_ENCRYPTED_OVERHEAD; } return recHeaderLen + REC_MAX_PLAIN_TEXT_LENGTH + overHead; } static uint32_t RecGetReadBufferSize(const TLS_Ctx *ctx) { uint32_t recSize = RecGetDefaultBufferSize(IS_SUPPORT_DATAGRAM(ctx->config.tlsConfig.originVersionMask), true); if (ctx->negotiatedInfo.recordSizeLimit != 0 && ctx->negotiatedInfo.recordSizeLimit <= REC_MAX_PLAIN_TEXT_LENGTH) { recSize -= REC_MAX_PLAIN_TEXT_LENGTH - ctx->negotiatedInfo.recordSizeLimit; if (HS_GetVersion(ctx) == HITLS_VERSION_TLS13) { recSize--; } } return recSize; } static uint32_t RecGetWriteBufferSize(const TLS_Ctx *ctx) { uint32_t recSize = RecGetDefaultBufferSize(IS_SUPPORT_DATAGRAM(ctx->config.tlsConfig.originVersionMask), false); uint32_t maxSendFragment = #ifdef HITLS_TLS_FEATURE_MAX_SEND_FRAGMENT (uint32_t)ctx->config.tlsConfig.maxSendFragment == 0 ? REC_MAX_PLAIN_TEXT_LENGTH : (uint32_t)ctx->config.tlsConfig.maxSendFragment; #else REC_MAX_PLAIN_TEXT_LENGTH; #endif recSize -= REC_MAX_PLAIN_TEXT_LENGTH - maxSendFragment; if (ctx->negotiatedInfo.peerRecordSizeLimit != 0 && ctx->negotiatedInfo.peerRecordSizeLimit <= maxSendFragment) { recSize -= maxSendFragment - ctx->negotiatedInfo.peerRecordSizeLimit; if (ctx->negotiatedInfo.version == HITLS_VERSION_TLS13) { recSize--; } } #if defined(HITLS_BSL_UIO_UDP) RecCmpPmtu(ctx, &recSize); #endif return recSize; } uint32_t RecGetInitBufferSize(const TLS_Ctx *ctx, bool isRead) { /* If the TLS protocol is used, there is no PMTU limit */ return isRead ? RecGetReadBufferSize(ctx) : RecGetWriteBufferSize(ctx); } int32_t RecDerefBufList(TLS_Ctx *ctx) { int32_t ret = RecBufListDereference(ctx->recCtx->appRecList); if (ret != HITLS_SUCCESS) { return ret; } return RecBufListDereference(ctx->recCtx->hsRecList); } static int32_t InnerRecRead(TLS_Ctx *ctx, REC_Type recordType, uint8_t *data, uint32_t *readLen, uint32_t num) { (void)recordType; (void)readLen; #ifdef HITLS_TLS_CONFIG_STATE ctx->rwstate = HITLS_NOTHING; #endif #ifdef HITLS_TLS_PROTO_DTLS12 if (IS_SUPPORT_DATAGRAM(ctx->config.tlsConfig.originVersionMask)) { return DtlsRecordRead(ctx, recordType, data, readLen, num); } #endif #ifdef HITLS_TLS_PROTO_TLS return TlsRecordRead(ctx, recordType, data, readLen, num); #else BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17294, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "internal exception occurs", 0, 0, 0, 0); return HITLS_INTERNAL_EXCEPTION; #endif } static int32_t InnerRecWrite(TLS_Ctx *ctx, REC_Type recordType, const uint8_t *data, uint32_t num) { #ifdef HITLS_TLS_CONFIG_STATE ctx->rwstate = HITLS_NOTHING; #endif uint32_t maxWriteSize; int32_t ret = REC_GetMaxWriteSize(ctx, &maxWriteSize); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17295, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "GetMaxWriteSize fail", 0, 0, 0, 0); return ret; } if (num > maxWriteSize) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15539, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record wrtie: plain length is too long.", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_REC_ERR_TOO_BIG_LENGTH); return HITLS_REC_ERR_TOO_BIG_LENGTH; } #ifdef HITLS_TLS_PROTO_DTLS12 if (IS_SUPPORT_DATAGRAM(ctx->config.tlsConfig.originVersionMask)) { /* DTLS */ return DtlsRecordWrite(ctx, recordType, data, num); } #endif #ifdef HITLS_TLS_PROTO_TLS return TlsRecordWrite(ctx, recordType, data, num); #else BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17296, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "internal exception occurs", 0, 0, 0, 0); return HITLS_INTERNAL_EXCEPTION; #endif } static int32_t RecConnStatesInit(RecCtx *recordCtx) { recordCtx->recRead = InnerRecRead; recordCtx->recWrite = InnerRecWrite; recordCtx->readStates.currentState = RecConnStateNew(); if (recordCtx->readStates.currentState == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17297, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "StateNew fail", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_MEMALLOC_FAIL); return HITLS_MEMALLOC_FAIL; } recordCtx->writeStates.currentState = RecConnStateNew(); if (recordCtx->writeStates.currentState == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17298, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "StateNew fail", 0, 0, 0, 0); RecConnStateFree(recordCtx->readStates.currentState); recordCtx->readStates.currentState = NULL; BSL_ERR_PUSH_ERROR(HITLS_MEMALLOC_FAIL); return HITLS_MEMALLOC_FAIL; } return HITLS_SUCCESS; } static int32_t RecBufInit(TLS_Ctx *ctx, RecCtx *newRecCtx) { #ifdef HITLS_TLS_FEATURE_MODE_RELEASE_BUFFERS if ((ctx->config.tlsConfig.modeSupport & HITLS_MODE_RELEASE_BUFFERS) == 0) { #endif int32_t ret = RecIoBufInit(ctx, newRecCtx, true); if (ret != HITLS_SUCCESS) { return ret; } ret = RecIoBufInit(ctx, newRecCtx, false); if (ret != HITLS_SUCCESS) { return ret; } #ifdef HITLS_TLS_FEATURE_MODE_RELEASE_BUFFERS } #endif newRecCtx->hsRecList = RecBufListNew(); newRecCtx->appRecList = RecBufListNew(); if (newRecCtx->hsRecList == NULL || newRecCtx->appRecList == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17299, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "BufListNew fail", 0, 0, 0, 0); return HITLS_MEMALLOC_FAIL; } return HITLS_SUCCESS; } static void RecDeInit(RecCtx *recordCtx) { RecBufFree(recordCtx->outBuf); RecBufFree(recordCtx->inBuf); RecBufListFree(recordCtx->hsRecList); RecBufListFree(recordCtx->appRecList); RecConnStatesDeinit(recordCtx); RecConnStateFree(recordCtx->readStates.pendingState); RecConnStateFree(recordCtx->writeStates.pendingState); RecConnStateFree(recordCtx->readStates.outdatedState); RecConnStateFree(recordCtx->writeStates.outdatedState); #ifdef HITLS_TLS_PROTO_DTLS12 UnprocessedAppMsgListDeinit(&recordCtx->unprocessedAppMsgList); #if defined(HITLS_BSL_UIO_UDP) BSL_SAL_FREE(recordCtx->unprocessedHsMsg.recordBody); REC_RetransmitListClean(recordCtx); #endif #endif /* HITLS_TLS_PROTO_DTLS12 */ } int32_t REC_Init(TLS_Ctx *ctx) { if (ctx == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17300, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "ctx null", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_NULL_INPUT); return HITLS_NULL_INPUT; } if (ctx->recCtx != NULL) { return HITLS_SUCCESS; } RecCtx *newRecCtx = (RecCtx *)BSL_SAL_Calloc(1, sizeof(RecCtx)); if (newRecCtx == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15531, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record: malloc fail.", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_MEMALLOC_FAIL); return HITLS_MEMALLOC_FAIL; } #ifdef HITLS_TLS_PROTO_DTLS12 UnprocessedAppMsgListInit(&newRecCtx->unprocessedAppMsgList); #ifdef HITLS_BSL_UIO_UDP LIST_INIT(&newRecCtx->retransmitList.head); #endif #endif int32_t ret = RecBufInit(ctx, newRecCtx); if (ret != HITLS_SUCCESS) { goto ERR; } ret = RecConnStatesInit(newRecCtx); if (ret != HITLS_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15534, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record: init connect state fail.", 0, 0, 0, 0); goto ERR; } ctx->recCtx = newRecCtx; return HITLS_SUCCESS; ERR: RecDeInit(newRecCtx); BSL_SAL_FREE(newRecCtx); return ret; } void REC_DeInit(TLS_Ctx *ctx) { if (ctx != NULL && ctx->recCtx != NULL) { RecCtx *recordCtx = (RecCtx *)ctx->recCtx; RecDeInit(recordCtx); BSL_SAL_FREE(ctx->recCtx); } return; } bool REC_ReadHasPending(const TLS_Ctx *ctx) { if ((ctx == NULL) || (ctx->recCtx == NULL)) { return false; } RecCtx *recordCtx = (RecCtx *)ctx->recCtx; RecBuf *inBuf = recordCtx->inBuf; if (inBuf == NULL) { return false; } if (inBuf->end != inBuf->start) { return true; } return false; } int32_t REC_Read(TLS_Ctx *ctx, REC_Type recordType, uint8_t *data, uint32_t *readLen, uint32_t num) { if ((ctx == NULL) || (ctx->recCtx == NULL) || (data == NULL) || (ctx->alertCtx == NULL)) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15535, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record: input invalid parameter.", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_INTERNAL_EXCEPTION); return HITLS_INTERNAL_EXCEPTION; } return ctx->recCtx->recRead(ctx, recordType, data, readLen, num); } int32_t REC_Write(TLS_Ctx *ctx, REC_Type recordType, const uint8_t *data, uint32_t num) { if ((ctx == NULL) || (ctx->recCtx == NULL) || (num != 0 && data == NULL) || (num == 0 && recordType != REC_TYPE_APP)) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15537, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record write: input null pointer.", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_NULL_INPUT); return HITLS_NULL_INPUT; } int32_t ret = ctx->recCtx->recWrite(ctx, recordType, data, num); #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) if (ret != HITLS_SUCCESS) { if (!BSL_UIO_GetUioChainTransportType(ctx->uio, BSL_UIO_UDP)) { return ret; } bool exceeded = false; (void)BSL_UIO_Ctrl(ctx->uio, BSL_UIO_UDP_MTU_EXCEEDED, sizeof(bool), &exceeded); if (exceeded) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17362, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record write: get EMSGSIZE error.", 0, 0, 0, 0); ctx->needQueryMtu = true; } } #endif /* HITLS_TLS_PROTO_DTLS12 && HITLS_BSL_UIO_UDP */ return ret; } #if defined(HITLS_BSL_UIO_UDP) void REC_ActiveOutdatedWriteState(TLS_Ctx *ctx) { RecCtx *recCtx = (RecCtx *)ctx->recCtx; RecConnStates *writeStates = &recCtx->writeStates; writeStates->pendingState = writeStates->currentState; writeStates->currentState = writeStates->outdatedState; writeStates->outdatedState = NULL; return; } void REC_DeActiveOutdatedWriteState(TLS_Ctx *ctx) { RecCtx *recCtx = (RecCtx *)ctx->recCtx; RecConnStates *writeStates = &recCtx->writeStates; writeStates->outdatedState = writeStates->currentState; writeStates->currentState = writeStates->pendingState; writeStates->pendingState = NULL; return; } #endif /* HITLS_TLS_PROTO_DTLS12 && HITLS_BSL_UIO_UDP */ static void FreeDataAndState(RecConnSuitInfo *clientSuitInfo, RecConnSuitInfo *serverSuitInfo, RecConnState *readState, RecConnState *writeState) { BSL_SAL_CleanseData((void *)clientSuitInfo, sizeof(RecConnSuitInfo)); BSL_SAL_CleanseData((void *)serverSuitInfo, sizeof(RecConnSuitInfo)); RecConnStateFree(readState); RecConnStateFree(writeState); } int32_t REC_InitPendingState(const TLS_Ctx *ctx, const REC_SecParameters *param) { if (ctx == NULL || ctx->recCtx == NULL || param == NULL) { BSL_ERR_PUSH_ERROR(HITLS_INTERNAL_EXCEPTION); return RETURN_ERROR_NUMBER_PROCESS(HITLS_INTERNAL_EXCEPTION, BINLOG_ID15540, "Record: ctx null"); } int32_t ret = HITLS_MEMALLOC_FAIL; RecCtx *recordCtx = (RecCtx *)ctx->recCtx; RecConnSuitInfo clientSuitInfo = {0}; RecConnSuitInfo serverSuitInfo = {0}; RecConnSuitInfo *out = NULL; RecConnSuitInfo *in = NULL; RecConnState *readState = RecConnStateNew(); RecConnState *writeState = RecConnStateNew(); if (readState == NULL || writeState == NULL) { (void)RETURN_ERROR_NUMBER_PROCESS(ret, BINLOG_ID17301, "StateNew fail"); goto ERR; } /* 1.Generate a secret */ ret = RecConnKeyBlockGen(LIBCTX_FROM_CTX(ctx), ATTRIBUTE_FROM_CTX(ctx), param, &clientSuitInfo, &serverSuitInfo); if (ret != HITLS_SUCCESS) { (void)RETURN_ERROR_NUMBER_PROCESS(ret, BINLOG_ID17302, "KeyBlockGen fail"); goto ERR; } /* 2.Set the corresponding read/write pending state */ out = (param->isClient == true) ? &clientSuitInfo : &serverSuitInfo; in = (param->isClient == true) ? &serverSuitInfo : &clientSuitInfo; ret = RecConnStateSetCipherInfo(writeState, out); if (ret != HITLS_SUCCESS) { (void)RETURN_ERROR_NUMBER_PROCESS(ret, BINLOG_ID17303, "SetCipherInfo fail"); goto ERR; } ret = RecConnStateSetCipherInfo(readState, in); if (ret != HITLS_SUCCESS) { (void)RETURN_ERROR_NUMBER_PROCESS(ret, BINLOG_ID17304, "SetCipherInfo fail"); goto ERR; } /* Clear sensitive information */ FreeDataAndState(&clientSuitInfo, &serverSuitInfo, recordCtx->readStates.pendingState, recordCtx->writeStates.pendingState); recordCtx->readStates.pendingState = readState; recordCtx->writeStates.pendingState = writeState; return HITLS_SUCCESS; ERR: /* Clear sensitive information */ FreeDataAndState(&clientSuitInfo, &serverSuitInfo, readState, writeState); BSL_ERR_PUSH_ERROR(ret); return ret; } #ifdef HITLS_TLS_PROTO_TLS13 int32_t REC_TLS13InitPendingState(const TLS_Ctx *ctx, const REC_SecParameters *param, bool isOut) { if (ctx == NULL || ctx->recCtx == NULL || param == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15542, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record: ctx null", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_INTERNAL_EXCEPTION); return HITLS_INTERNAL_EXCEPTION; } RecCtx *recordCtx = (RecCtx *)ctx->recCtx; RecConnSuitInfo suitInfo = {0}; RecConnState *state = RecConnStateNew(); if (state == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17305, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "StateNew fail", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_MEMALLOC_FAIL); return HITLS_MEMALLOC_FAIL; } /* 1.Generate a secret */ int32_t ret = RecTLS13ConnKeyBlockGen(LIBCTX_FROM_CTX(ctx), ATTRIBUTE_FROM_CTX(ctx), param, &suitInfo); if (ret != HITLS_SUCCESS) { RecConnStateFree(state); return ret; } /* 2.Set the corresponding read/write pending state */ RecConnStates *curState = NULL; if (isOut) { curState = &(recordCtx->writeStates); } else { curState = &(recordCtx->readStates); } ret = RecConnStateSetCipherInfo(state, &suitInfo); if (ret != HITLS_SUCCESS) { RecConnStateFree(state); return ret; } RecConnStateFree(curState->pendingState); curState->pendingState = state; return HITLS_SUCCESS; } #endif /* HITLS_TLS_PROTO_TLS13 */ int32_t REC_ActivePendingState(TLS_Ctx *ctx, bool isOut) { RecCtx *recordCtx = (RecCtx *)ctx->recCtx; RecConnStates *states = (isOut == true) ? &recordCtx->writeStates : &recordCtx->readStates; if (states->pendingState == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15543, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record: pending state should not be null.", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_INTERNAL_EXCEPTION); return HITLS_INTERNAL_EXCEPTION; } RecConnStateFree(states->outdatedState); states->outdatedState = states->currentState; states->currentState = states->pendingState; states->pendingState = NULL; RecConnSetSeqNum(states->currentState, 0); #ifdef HITLS_TLS_PROTO_DTLS12 if (IS_SUPPORT_DATAGRAM(ctx->config.tlsConfig.originVersionMask)) { if (isOut) { ++recordCtx->writeEpoch; RecConnSetEpoch(states->currentState, recordCtx->writeEpoch); } else { ++recordCtx->readEpoch; RecConnSetEpoch(states->currentState, recordCtx->readEpoch); #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) RecAntiReplayReset(&states->currentState->window); #endif } } #endif /* HITLS_TLS_PROTO_DTLS12 */ BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15544, BSL_LOG_LEVEL_INFO, BSL_LOG_BINLOG_TYPE_RUN, "Record: active pending state.", 0, 0, 0, 0); return HITLS_SUCCESS; } static uint32_t REC_GetRecordSizeLimitWriteLen(const TLS_Ctx *ctx) { uint32_t defaultLen = #ifdef HITLS_TLS_FEATURE_MAX_SEND_FRAGMENT (uint32_t)ctx->config.tlsConfig.maxSendFragment == 0 ? REC_MAX_PLAIN_TEXT_LENGTH : (uint32_t)ctx->config.tlsConfig.maxSendFragment; #else REC_MAX_PLAIN_TEXT_LENGTH; #endif if (ctx->negotiatedInfo.recordSizeLimit != 0 && ctx->negotiatedInfo.peerRecordSizeLimit <= defaultLen) { defaultLen = ctx->negotiatedInfo.peerRecordSizeLimit; if (ctx->negotiatedInfo.version == HITLS_VERSION_TLS13) { defaultLen--; } } return defaultLen; } int32_t REC_RecOutBufReSet(TLS_Ctx *ctx) { RecCtx *recCtx = ctx->recCtx; return RecBufResize(recCtx->outBuf, RecGetWriteBufferSize(ctx)); } #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) static int32_t ChangeBufferSize(TLS_Ctx *ctx) { int32_t ret = HITLS_SUCCESS; if (ctx->bUio == NULL) { ctx->mtuModified = false; return HITLS_SUCCESS; } uint32_t bufferLen = (uint32_t)ctx->config.pmtu; if (IS_SUPPORT_DATAGRAM(ctx->config.tlsConfig.originVersionMask) && BSL_UIO_GetUioChainTransportType(ctx->uio, BSL_UIO_UDP)) { ret = BSL_UIO_Ctrl(ctx->bUio, BSL_UIO_SET_BUFFER_SIZE, sizeof(uint32_t), &bufferLen); if (ret != BSL_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17363, BSL_LOG_LEVEL_FATAL, BSL_LOG_BINLOG_TYPE_RUN, "SET_BUFFER_SIZE fail, ret %d", ret, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_UIO_FAIL); return HITLS_UIO_FAIL; } } ctx->mtuModified = false; return HITLS_SUCCESS; } int32_t REC_QueryMtu(TLS_Ctx *ctx) { if (!BSL_UIO_GetUioChainTransportType(ctx->uio, BSL_UIO_UDP)) { return HITLS_SUCCESS; } uint16_t originMtu = ctx->config.pmtu; if (ctx->config.linkMtu > 0) { uint8_t overhead = 0; (void)BSL_UIO_Ctrl(ctx->uio, BSL_UIO_UDP_GET_MTU_OVERHEAD, sizeof(uint8_t), &overhead); ctx->config.pmtu = ctx->config.linkMtu - (uint16_t)overhead; ctx->config.linkMtu = 0; } if (ctx->needQueryMtu && !ctx->noQueryMtu) { uint32_t mtu = 0; int32_t ret = BSL_UIO_Ctrl(ctx->uio, BSL_UIO_UDP_QUERY_MTU, sizeof(uint32_t), &mtu); if (ret != BSL_SUCCESS) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17364, BSL_LOG_LEVEL_FATAL, BSL_LOG_BINLOG_TYPE_RUN, "UIO_Ctrl fail, ret %d", ret, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_UIO_FAIL); return HITLS_UIO_FAIL; } uint8_t overhead = 0; (void)BSL_UIO_Ctrl(ctx->uio, BSL_UIO_UDP_GET_MTU_OVERHEAD, sizeof(uint8_t), &overhead); uint16_t minMtu = (uint16_t)DTLS_MIN_MTU - (uint16_t)overhead; mtu = mtu > UINT16_MAX ? UINT16_MAX : mtu; ctx->config.pmtu = ((uint16_t)mtu < minMtu) ? minMtu : (uint16_t)mtu; } ctx->needQueryMtu = false; if (ctx->config.pmtu != originMtu || ctx->mtuModified) { return ChangeBufferSize(ctx); } return HITLS_SUCCESS; } #endif /* HITLS_TLS_PROTO_DTLS12 && HITLS_BSL_UIO_UDP */ int32_t REC_GetMaxWriteSize(const TLS_Ctx *ctx, uint32_t *len) { if (ctx == NULL || ctx->recCtx == NULL || len == NULL) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID15545, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "Record: input null pointer.", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_NULL_INPUT); return HITLS_NULL_INPUT; } *len = REC_GetRecordSizeLimitWriteLen(ctx); #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) uint32_t mtuLen = 0; int32_t ret = REC_GetMaxDataMtu(ctx, &mtuLen); if (ret == HITLS_SUCCESS) { *len = (*len > mtuLen) ? mtuLen : *len; } if (ret != HITLS_UIO_IO_TYPE_ERROR) { return ret; } #endif /* HITLS_TLS_PROTO_DTLS12 && HITLS_BSL_UIO_UDP */ return HITLS_SUCCESS; } #if defined(HITLS_TLS_PROTO_DTLS12) && defined(HITLS_BSL_UIO_UDP) int32_t REC_GetMaxDataMtu(const TLS_Ctx *ctx, uint32_t *len) { bool isUdp = false; RecCtx *recordCtx = (RecCtx *)ctx->recCtx; RecConnState *currentState = recordCtx->writeStates.currentState; uint32_t overHead; BSL_UIO *uio = ctx->uio; while (uio != NULL) { if (BSL_UIO_GetUioChainTransportType(uio, BSL_UIO_UDP)) { isUdp = true; break; } uio = BSL_UIO_Next(uio); } if (!isUdp) { /* In non-UDP scenarios, there is no PMTU limit */ return HITLS_UIO_IO_TYPE_ERROR; } /* In UDP scenarios, handshake packets and application data packets with miniaturization enabled have the MTU limit */ uint32_t encryptLen = RecGetCryptoFuncs(currentState->suiteInfo)->calCiphertextLen(ctx, currentState->suiteInfo, 0, false); overHead = REC_DTLS_RECORD_HEADER_LEN + encryptLen; if (ctx->config.pmtu <= overHead) { BSL_LOG_BINLOG_FIXLEN(BINLOG_ID17306, BSL_LOG_LEVEL_ERR, BSL_LOG_BINLOG_TYPE_RUN, "pmtu too small", 0, 0, 0, 0); BSL_ERR_PUSH_ERROR(HITLS_REC_PMTU_TOO_SMALL); return HITLS_REC_PMTU_TOO_SMALL; } *len = ctx->config.pmtu - overHead; return HITLS_SUCCESS; } #endif /* HITLS_TLS_PROTO_DTLS12 && HITLS_BSL_UIO_UDP */ REC_Type REC_GetUnexpectedMsgType(TLS_Ctx *ctx) { return ctx->recCtx->unexpectedMsgType; } void RecClearAlertCount(TLS_Ctx *ctx, REC_Type recordType) { if (recordType != REC_TYPE_ALERT) { ALERT_ClearWarnCount(ctx); } return; }
2301_79861745/bench_create
tls/record/src/record.c
C
unknown
25,244
/* * This file is part of the openHiTLS project. * * openHiTLS is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef RECORD_H #define RECORD_H #include "tls.h" #include "rec.h" #include "rec_header.h" #include "rec_unprocessed_msg.h" #include "rec_buf.h" #include "rec_conn.h" #ifdef __cplusplus extern "C" { #endif #define REC_MAX_PLAIN_TEXT_LENGTH 16384 /* Plain content length */ #define REC_MAX_ENCRYPTED_OVERHEAD 2048u /* Maximum Encryption Overhead rfc5246 */ #define REC_MAX_READ_ENCRYPTED_OVERHEAD REC_MAX_ENCRYPTED_OVERHEAD #define REC_MAX_WRITE_ENCRYPTED_OVERHEAD REC_MAX_ENCRYPTED_OVERHEAD #define REC_MAX_CIPHER_TEXT_LEN (REC_MAX_PLAIN_LENGTH + REC_MAX_ENCRYPTED_OVERHEAD) /* Maximum ciphertext length */ #define REC_MAX_AES_GCM_ENCRYPTION_LIMIT 23726566u /* RFC 8446 5.5 Limits on Key Usage AES-GCM SHOULD under 2^24.5 */ typedef struct { RecConnState *outdatedState; RecConnState *currentState; RecConnState *pendingState; } RecConnStates; typedef int32_t (*REC_ReadFunc)(TLS_Ctx *, REC_Type, uint8_t *, uint32_t *, uint32_t); typedef int32_t (*REC_WriteFunc)(TLS_Ctx *, REC_Type, const uint8_t *, uint32_t); typedef struct { ListHead head; /* Linked list header */ bool isExistCcsMsg; /* Check whether CCS messages exist in the retransmission message queue */ REC_Type type; /* message type */ uint8_t *msg; /* message data */ uint32_t len; /* message length */ } RecRetransmitList; typedef struct RecCtx { RecBuf *inBuf; /* Buffer for reading data */ RecBuf *outBuf; /* Buffer for writing data */ RecConnStates readStates; RecConnStates writeStates; RecBufList *hsRecList; /* hs plaintext data cache */ RecBufList *appRecList; /* app plaintext data cache */ uint32_t emptyRecordCnt; /* Count of empty records */ #ifdef HITLS_TLS_PROTO_DTLS12 uint16_t writeEpoch; uint16_t readEpoch; RecRetransmitList retransmitList; /* Cache the messages that may be retransmitted during the handshake */ /* Process out-of-order messages */ UnprocessedHsMsg unprocessedHsMsg; /* used to cache out-of-order finished messages */ /* unprocessed app message: app messages received in the CCS and finished receiving phases */ UnprocessedAppMsg unprocessedAppMsgList; #endif REC_ReadFunc recRead; void *rUserData; REC_WriteFunc recWrite; void *wUserData; REC_Type unexpectedMsgType; uint32_t pendingDataSize; /* Data length */ const uint8_t *pendingData; /* Plain Data content */ } RecCtx; /** * @brief Obtain the size of the buffer for read and write operations * * @param ctx [IN] TLS_Ctx context * @param isRead [IN] is read buffer * * @retval the size of the buffer for read and write operations */ uint32_t RecGetInitBufferSize(const TLS_Ctx *ctx, bool isRead); int32_t RecDerefBufList(TLS_Ctx *ctx); void RecClearAlertCount(TLS_Ctx *ctx, REC_Type recordType); /** * @brief free the record buffer * * @param ctx [IN] TLS_Ctx context * @param isOut [IN] is out buffer or not */ void RecTryFreeRecBuf(TLS_Ctx *ctx, bool isOut); /** * @brief Init the record io buffer * * @param ctx [IN] TLS_Ctx context * @param recordCtx [IN] record context * @param isRead [IN] Init in buffer or not * * @retval HITLS_SUCCESS * @retval HITLS_MEMALLOC_FAIL malloc fail */ int32_t RecIoBufInit(TLS_Ctx *ctx, RecCtx *recordCtx, bool isRead); #ifdef __cplusplus } #endif #endif /* RECORD_H */
2301_79861745/bench_create
tls/record/src/record.h
C
unknown
4,034
#!/bin/bash # 定义下载地址和文件名 DOWNLOAD_URL="https://cangjie-lang.cn/v1/files/auth/downLoad?nsId=142267&fileName=Cangjie-0.53.13-linux_x64.tar.gz&objectKey=6719f1eb3af6947e3c6af327" FILE_NAME="Cangjie-0.53.13-linux_x64.tar.gz" # 检查 cangjie 工具链是否已安装 echo "确保 cangjie 工具链已安装..." if ! command -v cjc -v &> /dev/null then echo "cangjie工具链 未安装,尝试进行安装..." # 下载文件 echo "Downloading Cangjie compiler..." curl -L -o "$FILE_NAME" "$DOWNLOAD_URL" # 检查下载是否成功 if [ $? -eq 0 ]; then echo "Download completed successfully." else echo "Download failed." exit 1 fi # 解压文件 echo "Extracting $FILE_NAME..." tar -xvf "$FILE_NAME" # 检查解压是否成功 if [ $? -eq 0 ]; then echo "Extraction completed successfully." else echo "Extraction failed." exit 1 fi # 检查 envsetup.sh 是否存在并进行 source if [[ -f "cangjie/envsetup.sh" ]]; then echo "envsetup.sh found!" source cangjie/envsetup.sh else echo "envsetup.sh not found!" exit 1 fi fi # 检查 openEuler 防火墙状态 echo "检查 openEuler 防火墙状态..." if systemctl status firewalld | grep "active (running)" &> /dev/null; then echo "防火墙已开启,尝试开放 21 端口..." firewall-cmd --zone=public --add-port=21/tcp --permanent firewall-cmd --reload echo "21 端口已开放。" else echo "防火墙未开启,无需开放端口。" fi # 编译ftp_server echo "正在编译 ftp_server..." cjpm build # 检查编译是否成功 if [ $? -eq 0 ]; then echo "编译成功." else echo "编译失败." exit 1 fi # 运行 ftp_server echo "正在启动 ftp 服务器..." cjpm run
2301_80220344/Cangjie-Examples_4263
FTP/run-ftp.sh
Shell
apache-2.0
1,967
<!DOCTYPE html> <html lang="cn"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <div>Hello Cangjie!</div> <p></p> <script> let xhr = new XMLHttpRequest() xhr.open("POST", "/Hello", true) xhr.onreadystatechange = () => { if(xhr.readyState == 4 && xhr.status == 200){ let res = JSON.parse(xhr.responseText) document.body.innerHTML += `<div>${res.msg}</div>` } } xhr.send(JSON.stringify({ name: "Chen", age: 999 })) </script> </body> </html>
2301_80220344/Cangjie-Examples_4263
HTTPServer/index.html
HTML
apache-2.0
687
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <title>我的购物车</title> <link rel="icon" href="./img/favicon.ico"> <!-- 引入样式 --> <link rel="stylesheet" type="text/css" href="./css/style.css" /> </head> <body> <!--head--> <!-- 头部栏位 --> <!--页面顶部--> <div id="nav-bottom"> <!--顶部--> <div class="nav-top"> <div class="top"> <div class="py-container"> <div class="shortcut"> <ul class="fl"> <li class="f-item">shop欢迎您!</li> <li class="f-item">请 <a href="login.html" target="_blank">登录</a> <span> <a href="register.html" target="_blank">免费注册</a> </span> </li> </ul> <div class="fr typelist"> <ul class="types"> <li class="f-item"> <span>我的订单</span> </li> <li class="f-item"> <span> <a href="cart.html" target="_blank">我的购物车</a> </span> </li> <li class="f-item"> <span> <a href="home.html" target="_blank">我的shop</a> </span> </li> <li class="f-item"> <span>shop会员</span> </li> <li class="f-item"> <span>企业采购</span> </li> <li class="f-item"> <span>关注shop</span> </li> <li class="f-item"> <span> <a href="cooperation.html" target="_blank">合作招商</a> </span> </li> <li class="f-item"> <span> <a href="shoplogin.html" target="_blank">商家后台</a> </span> </li> <li class="f-item"> <span>网站导航</li> </ul> </div> </div> </div> </div> <!--头部--> <div class="header"> <div class="py-container"> <div class="yui3-g Logo"> <div class="yui3-u Left logoArea"> <a class="logo-bd" title="shop" href="index.html" target="_blank"></a> </div> <div class="yui3-u Rit searchArea"> <div class="search"> <form action="" class="sui-form form-inline"> <!--searchAutoComplete--> <div class="input-append"> <input type="text" id="autocomplete" class="input-error input-xxlarge" /> <button class="sui-btn btn-xlarge btn-danger" type="button">搜索</button> </div> </form> </div> </div> </div> </div> </div> </div> </div> <div class="cart py-container"> <!--All goods--> <div class="allgoods" id="app"> <h4>全部商品 <span></span> </h4> <div class="cart-main"> <div class="cart-item-list"> <div class="cart-body"> <!-- vue loadlist --> <div class="cart-list" v-for="(item,index) in carts" :key="index"> <ul class="goods-list yui3-g"> <li class="yui3-u-1-24" style="border: none;"> <input :value="index" type="checkbox" v-model="ids" @click="select(index)"> </li> <li class="yui3-u-6-24" style="border: none;"> <div class="good-item"> <img :src="item.image" style="max-height: 80px;" /> </div> </li> <li class="yui3-u-5-24" style="border: none;"> {{item.name}} </li> <li class="yui3-u-1-8" style="border: none;"> <span class="price">{{item.price}}</span> </li> <li class="yui3-u-1-8" style="border: none;"> <div class="cart_icon"> <a @click="add(item,-1)">-</a> <input type="text" v-model="item.num" minnum="1" /> <a @click="add(item,1)">+</a> </div> </li> <li class="yui3-u-1-8" style="border: none;"> <span class="sum">125.00</span> </li> <li class="yui3-u-1-8 item-msg" style="border: none;"> <a href="#none" @click="remove(item._id)">删除</a> <br /> <a href="#none">移到收藏</a> </li> </ul> </div> </div> </div> </div> <div class="cart-tool"> <div class="select-all"> <input class="chooseAll" type="checkbox" v-model="allChecked" @change="toggleAll"/> <span>全选</span> </div> <div class="option"> <a href="#none">删除选中的商品</a> <a href="#none">移到我的关注</a> <a href="#none">清除下柜商品</a> </div> <div class="money-box"> <div class="chosed">已选择 <span>0</span>件商品</div> <div class="sumprice"> <span> <em>总价(不含运费) :</em> <i class="summoney">¥{{allMoney()}}</i> </span> <span> <em>已节省:</em> <i>-¥20.00</i> </span> </div> <div class="sumbtn"> <a class="sum-btn" @click="toOrder()">结算</a> </div> </div> </div> <div class="clearfix"></div> </div> </div> <!-- 底部栏位 --> <!--页面底部--> <div class="clearfix footer"> <div class="py-container"> <div class="footlink"> <div class="Mod-service"> <ul class="Mod-Service-list"> <li class="grid-service-item intro intro1"> <i class="serivce-item fl"></i> <div class="service-text"> <h4>正品保障</h4> <p>正品保障,提供发票</p> </div> </li> <li class="grid-service-item intro intro2"> <i class="serivce-item fl"></i> <div class="service-text"> <h4>正品保障</h4> <p>正品保障,提供发票</p> </div> </li> <li class="grid-service-item intro intro3"> <i class="serivce-item fl"></i> <div class="service-text"> <h4>正品保障</h4> <p>正品保障,提供发票</p> </div> </li> <li class="grid-service-item intro intro4"> <i class="serivce-item fl"></i> <div class="service-text"> <h4>正品保障</h4> <p>正品保障,提供发票</p> </div> </li> <li class="grid-service-item intro intro5"> <i class="serivce-item fl"></i> <div class="service-text"> <h4>正品保障</h4> <p>正品保障,提供发票</p> </div> </li> </ul> </div> <div class="clearfix Mod-list"> <div class="yui3-g"> <div class="yui3-u-1-6"> <h4>购物指南</h4> <ul class="unstyled"> <li>购物流程</li> <li>会员介绍</li> <li>生活旅行/团购</li> <li>常见问题</li> <li>购物指南</li> </ul> </div> <div class="yui3-u-1-6"> <h4>配送方式</h4> <ul class="unstyled"> <li>上门自提</li> <li>211限时达</li> <li>配送服务查询</li> <li>配送费收取标准</li> <li>海外配送</li> </ul> </div> <div class="yui3-u-1-6"> <h4>支付方式</h4> <ul class="unstyled"> <li>货到付款</li> <li>在线支付</li> <li>分期付款</li> <li>邮局汇款</li> <li>公司转账</li> </ul> </div> <div class="yui3-u-1-6"> <h4>售后服务</h4> <ul class="unstyled"> <li>售后政策</li> <li>价格保护</li> <li>退款说明</li> <li>返修/退换货</li> <li>取消订单</li> </ul> </div> <div class="yui3-u-1-6"> <h4>特色服务</h4> <ul class="unstyled"> <li>夺宝岛</li> <li>DIY装机</li> <li>延保服务</li> <li>购物卡</li> <li>会员充值卡</li> </ul> </div> <div class="yui3-u-1-6"> <h4>帮助中心</h4> <ul class="unstyled"> <li>夺宝岛</li> <li>DIY装机</li> <li>延保服务</li> <li>购物卡</li> <li>会员充值卡</li> </ul> </div> </div> </div> <div class="Mod-copyright"> <ul class="helpLink"> <li>关于我们 <span class="space"></span> </li> <li>联系我们 <span class="space"></span> </li> <li>关于我们 <span class="space"></span> </li> <li>商家入驻 <span class="space"></span> </li> <li>营销中心 <span class="space"></span> </li> <li>友情链接 <span class="space"></span> </li> <li>关于我们 <span class="space"></span> </li> <li>营销中心 <span class="space"></span> </li> <li>友情链接 <span class="space"></span> </li> <li>关于我们</li> </ul> <p>Copyright©2017-2020 All Rights Reserved.</p> </div> </div> </div> </div> <!--页面底部END--> <!-- 引入组件库 --> <script src="js/vue3.js"></script> <script src="js/axios.js"></script> <script src="js/request.js"></script> <script src="js/common.js"></script> <script> const { createApp } = Vue.createApp({ data() { return { carts: [], ids:[], allChecked:false } }, mounted(){ //列表加载 this.list(); }, methods:{ //购物车列表加载 list(){ if(sessionStorage.getItem("userInfo")){ let json = sessionStorage.getItem("userInfo") let userInfo = JSON.parse(json) request.get(MALL_CART_BASEURL + '/cart/list/' + userInfo.userId) .then(resp =>{ if(resp.code == 2000){ this.carts=resp.data; }else if(resp.code == 3003 || resp.code == 2001){ location.href = 'login.html' } }) }else{ location.href = 'login.html' } }, //修改购物车 add(item,count){ //数量递减 item.num=item.num+count; }, //总金额计算 allMoney(){ let moneys = 0.0; for(let i=0;i<this.carts.length;i++){ moneys+=this.carts[i].num*this.carts[i].price } return moneys; }, //结算 toOrder(){ if(this.ids.length>0){ let orders = [] for(let i=0;i<this.ids.length;i++){ orders.push(this.carts[this.ids[i]]) } sessionStorage.setItem("orders",JSON.stringify(orders)) location.href="order.html" }else{ alert('请至少选择一个商品!') } }, // 删除 remove(id){ request.delete(MALL_CART_BASEURL + '/cart/' + id) .then(resp =>{ this.list() }) }, // 选择商品 select(index){ let flag = 1 for(let i = 0; i < this.ids.length; i++){ if(this.ids[i] == index){ this.ids.splice(i,1) flag = 0 break } } if(flag){ this.ids.push(index) } this.allChecked = this.ids.length == this.carts.length }, // 切换全选状态的方法 toggleAll() { this.allChecked = this.ids.length == this.carts.length if (!this.allChecked) { // 全选时,选中所有项 for(let i = 0; i < this.carts.length; i++){ this.ids.push(i) } this.allChecked = true } else { this.ids = []; // 取消全选时,清空选中项 this.allChecked = false } }, } }).mount('#app') </script> </body> </html>
2301_80339408/order
cart.html
HTML
unknown
12,245
@charset "utf-8"; /* CSS Document */ body{ margin:0px; padding:0px; font-size:12px; line-height:20px; color:#333; } ul,li,ol,h1,dl,dd{ list-style:none; margin:0px; padding:0px; } a{ color:#333333; text-decoration: none; } a:hover{ color:#333333; text-decoration:underline; } img{ border:0px; } .blue{ color:#1965b3; text-decoration:none; } .blue:hover{ color:#1965b3; text-decoration:underline; } #header,#main,#footer{ width:960px; margin:0px auto 0px auto; clear:both; float:none; } /*网页版权部分样式开始*/ .footer_top{ width:800px; margin:0px auto 0px auto; clear:both; text-align:center; } .footer_top{ color:#9B2B0F; } .footer_dull_red,.footer_dull_red:hover{ color:#9B2B0F; margin:0px 8px 0px 8px; } /*网页版权部分样式结束*/ /*登录页面样式*/ .login_header_left{ float:left; margin:30px 10px 0px 100px; } .login_header_mid{ float:left; margin:55px 0px 0px 0px; } .login_header_right{ float:right; margin:50px 60px 0px 0px; } .login_main_left{ float:left; } .login_main_left img{ float:left; border:0px; } .login_main_end{ margin:0px 0px 0px 30px; width:540px; } .login_green{ margin:20px 0px 20px 0px; float:left; width:150px; } .login_green dt{ color:#519403; font-weight:bold; } .login_green dd{ color:#666666; line-height:25px; } .login_main_dotted{ float:left; background-image:url(../img/shopping_dotted.gif); width:1px; height:90px; margin:20px 15px 20px 15px; } .login_main_mid{ border:solid 1px #666; float:left; width:300px; padding:10px 5px 10px 5px; } .login_main_right{ float:left; width:74px; } .login_main_right img{ border:0px; } .login_content_top{ background-image:url(../img/login_icon_bg_01.gif); background-position:-300px -30px; background-repeat:no-repeat; padding:10px 0px 0px 35px; font-weight:bold; font-size:14px; color:#900; } .login_content{ clear:both; margin:10px 0px 0px 0px; } *html .login_content{/*IE6*/ display:inline; } *+html .login_content{/*IE7*/ display:inline; } .login_content dt{ font-size:14px; line-height:50px; text-align:right; width:80px; float:left; } .login_content dd{ line-height:50px; float:left; } .login_content_input{ width:120px; } .login_content_dotted{ background-image:url(../img/register_dotted.gif); height:1px; background-repeat:repeat-x; margin:60px 0px 0px 0px; overflow:hidden; /*使div的高度为1px*/ } .login_content_end_bg_top{ clear:both; } .login_content_bold{ font-weight:bold; color:#333; } .login_content_end_bg_end{ clear:both; text-align:right; padding:10px; } .login_register_out{ background-image:url(../img/login_icon_bg_01.gif); background-position:0px -3px; background-repeat:no-repeat; width:144px; height:26px; border:0px; cursor:pointer; } .login_register_over{ background-image:url(../img/login_icon_bg_01.gif); background-position:-144px -3px; background-repeat:no-repeat; width:144px; height:26px; border:0px; cursor:pointer; } /*注册页面样式*/ #register_header{ background-image:url(../img/register_head_bg.gif); background-repeat:repeat-x; height:48px; border:solid 1px #CCC; } .register_header_left{ float:left; margin:7px 0px 0px 40px; display:inline; } .register_header_right{ float:right; margin:25px 20px 0px 0px; display:inline; } .register_content{ width:950px; margin:15px auto 15px auto; } .register_top_bg{ background-image:url(../img/register_top_bg.gif); background-repeat:no-repeat; height:5px; } .register_mid_bg{ border:solid 1px #a3a3a3; border-top:0px; height:32px; } .register_mid_bg li{ float:left; } .register_mid_left{ background-image:url(../img/register_tag_left.gif); height:32px; width:207px; background-repeat:no-repeat; padding:0px 0px 0px 106px; font-size:14px; color:#501500; font-weight:bold; line-height:35px; } .register_mid_mid{ background-image:url(../img/register_tag_mid.gif); height:32px; width:204px; background-repeat:no-repeat; padding:0px 0px 0px 115px; font-size:14px; line-height:35px; } .register_mid_right{ background-image:url(../img/register_tag_right.gif); height:32px; width:316px; background-repeat:no-repeat; font-size:14px; line-height:35px; text-align:center; } .register_top_bg_two_left{ float:left; background-image:url(../img/register_cont.gif); width:1px; height:406px; background-repeat:no-repeat; } .register_top_bg_two_right{ float:right; background-image:url(../img/register_cont.gif); width:1px; height:406px; background-repeat:no-repeat; } .register_top_bg_mid{ background-image:url(../img/register_shadow.gif); background-repeat:repeat-x; } .register_title_bg{ background-image:url(../img/register_pic_01.gif); background-position:123px 30px; background-repeat:no-repeat; padding:42px 0px 0px 202px; color:#C30; } .register_dotted_bg{ background-image:url(../img/register_dotted.gif); background-repeat:repeat-x; height:1px; margin:0px 20px 20px 20px; } .register_message{ float:left; height:300px; width:900px; } .register_row{ clear:both; } .register_row dt{ float:left; width:200px; height:30px; text-align:right; font-size:14px; } .register_row dd{ float:left; margin-right:5px; display:inline; } .register_input{ width:200px; height:18px; border:solid 1px #999; margin:0px 0px 8px 0px; } .registerBtn{ height:35px; margin:10px 0px 10px 200px; clear:both; }
2301_80339408/order
css/global.css
CSS
unknown
6,206
.row-405 { width: 404px; } .row-225 { width: 225px; } .row-165 { width: 165px; } .row-330 { width: 330px; } .row-220 { width: 220px; } .row-218 { width: 218px; } a { color: #666; } img { -webkit-backface-visibility: hidden; -webkit-transition: opacity 0.3s ease-out; -moz-transition: opacity 0.3s ease-out; -o-transition: opacity 0.3s ease-out; transition: opacity 0.3s ease-out; } img:hover { opacity: 0.8; } .typeNav { border-bottom: 1px solid #eee; background-color: #fff; } .Recommend { height: 165px; background-color: #eaeaea; margin: 10px 0; } .Interest { height: 405px; border: 1px solid #ededed; margin: -2px; position: relative; } .Floor-1 { height: 360px; } em { font-style: normal; } .banerArea .sui-carousel { padding: 5px; margin-bottom: 0; } .news { border: 1px solid #e4e4e4; margin-top: 5px; position: relative; z-index: 3; } .news h4 { border-bottom: 1px solid #e4e4e4; padding: 5px 10px; margin: 5px 5px 0; line-height: 22px; overflow: hidden; } .news ul.news-list { padding: 5px 15px; } .news ul li { line-height: 26px; } .Lifeservice { border-right: 1px solid #e4e4e4; overflow: hidden; position: relative; z-index: 2; } .SortList { margin-left: 210px; } .SortList ul.Lifeservice>li { border-left: 1px solid #e4e4e4; border-bottom: 1px solid #e4e4e4; margin-right: -1px; height: 64px; text-align: center; position: relative; cursor: pointer; padding-top: 14px; } .Lifeservice .life-item .list-item { /* background-image: url(../img/icons.png); */ font-size: 28px; display: block; position: relative; margin-bottom: 10px; color: #999; *zoom: 1; _position: relative; } .service-intro { line-height: 22px; width: 60px; display: block; } .list-item-1 { background-position: 2px -5px; } .list-item-2 { background-position: -60px -5px; } .list-item-3 { background-position: -124px -5px; } .list-item-4 { background-position: -188px -5px; } .list-item-5 { background-position: 2px -76px; } .list-item-6 { background-position: -60px -76px; } .list-item-7 { background-position: -124px -76px; } .list-item-8 { background-position: -188px -76px; } .list-item-9 { background-position: 2px -146px; } .list-item-10 { background-position: -60px -146px; } .list-item-11 { background-position: -126px -142px; } .list-item-12 { background-position: -191px -142px; } .Right .ads { margin-top: 5px; } .sui-nav.nav-tabs>.active>a, .sui-nav.nav-tabs>li>a:hover { color: #77b72c; } .clock { background-color: #5c5251; color: #fff; font-size: 18px; text-align: center; } .clock .time { padding: 30px 0; } .clock h3 { font-size: 18px; } .carousel-control { width: 17px; border: 0; border-radius: 0; background: #585757; } a.carousel-control { *font-size: 30px; *padding-left: 3px; } .py-container .title { overflow: hidden; margin-top: 15px; } .title .tip { background-image: url(../img/icons.png); width: 66px; height: 25px; background-position: 182px -104px; line-height: 30px; } .like .Favourate { border: 1px solid #e4e4e4; } .like img { width: 142px; height: 142px; padding: 0; } .like .like-text { padding: 0; width: 100%; border-right: 1px solid #e4e4e4; } .like ul li:last-child .like-text { border-right: 0; } .like-text h3 { color: #df3033; } .like-text p { margin-bottom: 0; } .blockgary { background: #f7f7f7; } .Interest .Interest-conver-split { overflow: hidden; border-right: 1px solid #e4e4e4; } .Interest .Interest-conver-split h5 { text-align: center; border-bottom: 1px dotted #e4e4e4; padding: 10px 5px; font-weight: 700; color: #000; margin: 0; } .Interest .x-line { height: 1px; background: #e4e4e4; display: block; top: 222px; left: 405px; position: absolute; width: 630px; z-index: 9999; } .floors h3 { color: #ea4a36; } .floor .floor-content { border-top: 1px solid #eee; border-bottom: 1px solid #e4e4e4; } .floors .fr ul li { margin-left: 0; } .floors .fr ul li a { padding: 0; } .floors .fr ul li a:after { content: "|"; padding: 0 10px; } .floors .fr ul li:last-child a:after { content: ""; } .floors .sui-nav.nav-tabs>.active>a { font-weight: 400; color: #ea4a36; } ul.jd-list { padding: 15px 0; overflow: hidden; } ul.jd-list li { list-style-type: none; float: left; width: 40%; margin: 0 10px; border-bottom: 1px solid #e4e4e4; text-align: center; line-height: 26px; } .floors .sui-nav.nav-tabs>.active>a { border: 0; padding-top: 1px; } .floors .sui-nav.nav-tabs { border-bottom: 0; } .floors .fr .sui-nav { margin: 10px 0 0; display: inline-block; } .brandArea { position: relative; } .brandArea .brand-yline { height: 405px; width: 1px; position: absolute; left: 80px; border-left: 1px dashed #e4e4e4; } .brandArea ul li { height: 57px; border-bottom: 1px dashed #e4e4e4; } .brandArea ul li img { padding: 11px 0; } .brandArea ul li:nth-last-child(2) { border-bottom: 0; } .brandArea ul li:last-child { border-bottom: 0; } .split { position: relative; } .split .floor-x-line { position: absolute; background: #e4e4e4; width: 220px; height: 1px; top: 180px; } .row-218.split { border: 1px solid #e4e4e4; width: 218px; border-bottom: 0; border-top: 0; } .brand .Brand-list { overflow: hidden; padding: 15px 0; margin: 10px 0; } .brand ul li img { border-left: 1px dotted #ccc; padding: 0 10px; } .brand ul li:first-child img { border-left: 0; } ul.brand-list li { height: 48px; line-height: 58px; } #floor-index { position: fixed; left: 280px; top: 120px; display: none; } #floor-index a { text-decoration: none; } #floor-index ul li { list-style-type: none; text-decoration: none; width: 60px; height: 30px; line-height: 30px; text-align: center; border-bottom: 1px solid #eee; } #floor-index ul li:last-child { border-bottom: 1px solid #eee; } #floor-index ul li .num { color: #666; background: #f7f7f7; } #floor-index ul li .word { display: none; background: #90cb1c; color: #fff; } .Lifeservice { overflow: hidden; } .tab-item { cursor: pointer; position: relative; top: 0; } .life-item-content { width: 246px; height: 164px; top: 218px; padding-left: 1px; border-left: 1px solid #e4e4e4; overflow: hidden; position: absolute; z-index: 2; } .life-detail { display: none; background: #fff; height: 159px; padding: 0 4px; } .lifenow { display: block; } .close { cursor: pointer; float: right; color: #ea4a36; } #picLBxxl li { height: 250px; } .picLB li { height: 250px; margin: 0 -1px; overflow: hidden; background: #fff; position: relative; } .picLB { overflow: hidden; zoom: 1; padding: 0 10px; } .picLB li { float: left; display: inline; } .picDl { overflow: hidden; zoom: 1; height: 250px; padding: 0 10px; width: 100%; display: flex; } .picDl dd { overflow: hidden; flex: 1; } .tabbox { font-family: "微软雅黑"; } .tabbox .tab { overflow: hidden; width: 312px; } .tabbox .tab p { margin-bottom: 0; } .tabbox .tab a { display: block; padding: 0 18px; float: left; text-decoration: none; font-size: 16px; color: #999; } .tabbox .tab a:hover { font-weight: 700; text-decoration: none; } .tabbox .tab a.on { color: #e60012; text-decoration: none; } .tabbox .tab a i { width: 35px; height: 35px; display: block; background: url(../img/bg0.png); margin-left: 10px; } .tabbox .tab a.on i { width: 35px; height: 35px; display: block; background: url(../img/bg0.png) -35px 0; } .tabbox .text { line-height: 28px; } .tabbox .content { overflow: hidden; padding: 10px; } .tabbox .content li { display: none; overflow: hidden; list-style: none; } .tabbox .img-item { border: 1px solid #2390e4; width: 269px; float: left; overflow: hidden; margin: 0 12px 10px; background: #fff; } .tabbox .img-item img { width: 200px; height: 200px; } .tabbox .img-item .tab-pic { width: 230px; height: 210px; overflow: hidden; display: table; position: relative; z-index: 1; text-align: center; } .tabbox .img-item .tab-pic span { display: table-cell; vertical-align: middle; text-align: center; } .tabbox .img-item .tab-info { background: #2390e4; } .tabbox .img-item .tab-info .info-title { height: 50px; line-height: 28px; overflow: hidden; margin: 0 auto; padding-left: 10px; } .tabbox .img-item .tab-info .info-title span a { color: #fff; text-decoration: none; } .tabbox .img-item .tab-info .info-price { font-size: 20px; color: #fff; height: 35px; padding-left: 10px; display: block; line-height: 24px; margin: 10px auto 0; } .sort { display: block !important; float: left; } .item-list .subitem dl.fore { border-top: 0; } #ttbar-mycity .item { float: left; width: 60px; padding: 2px 0 } #ttbar-mycity .item a { float: left; padding: 0 8px } #ttbar-mycity .item a:hover { background-color: #f4f4f4 } #ttbar-mycity .item a.selected { background-color: #f10215; color: #fff } .ui-areamini-content-list { overflow: hidden } .areamini_inter { margin: 10px 0 10px 10px } .areamini_inter_split { width: 262px; height: 0; border-bottom: 1px dotted #eee } .areamini_inter_desc { margin: 9px 0; color: #8f8f8f } .areamini_inter_list { overflow: hidden } .areamini_inter_item { float: left; width: 145px; height: 26px; line-height: 26px } .areamini_inter_lk { display: block; overflow: hidden } .areamini_inter_ico { float: left; position: relative; top: 7px; margin-right: 8px; width: 15px; height: 10px; border: 1px solid transparent } .areamini_inter_ico_global { background-repeat: no-repeat; background-position: 0 0; height: 12px; margin-top: -1px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADcAAAAbCAYAAADYtRcLAAAAAklEQVR4AewaftIAAALFSURBVO3BTYhVVQAA4O9cn454xr+F0dA1FbOwQDBOgkFQizYtslzUokhCyBZCUWRBm9JVWSujRSW1iRDBCMKiaNMiqQ5URIU/pOgNRaJMHME3+m7PrpHKTMHj8Rim+b5Q17W/VSkNYzMewM04hD04jp1lzm2XCSG4Wt2lR6HLVb4Yvr7Wo5ZLqpRuxF4s949RvICleLVKaXuZ81EDNHpmlssFjdp/a+mqUhrGXix3pTfLnDv4uUrpKWyvUnq2zPmcAblp068EdAhFbe41HQGnTxbqTqBAbVwtjc1Y7kp7MaNKaWmZ85Ey57Eqpc/xGHaYQLj9Pf20+MVT/hIQOfTlDGd/v2DVXagxhmBcLY37cARLEDTuwUK8oatKaQ7ewgHsMCgHNeYFh3+Mdm9dZOTO+81fsMeSeIQLqI2r0PiozHkZTmhsw+P4tMy51ngfC7DSoBXoDPltf3L83Byj7aX++OkO9YUZFCbU0ggaBzGC3WXO31cpjeiqUgpYg4CZ/sUPp5/Tq1uMYwUKdM6J60+497pTOoe3mHnrYmFlzRhq42pptDTW4SV8XKX0LR7VVeZcVyk9iA/xlQE6tnW+i2rMLo5aNW+YMOzsrsrRsblCMKGWxi9VSivKnA9iU5XSK3ga31UpPVzm/FmZ8ydVShsx0wDtf32RRq2lRkdjnvMCgokUGjvxZJXSLI1dGMW1eERXldIcrME7BijGthjbYhwzFM8bih1DsWMonhfjmBjbYmyLsS3GthjbYmyLsS3Ude2iKqUSW/BamfOBKqUNeBvLsBAbsa3M+aRLQggms8IlZc4VnsHdVUovYwPO4HmsxhNlzidNmzZt2v9RqKn1KBBc5d2R1bUePXT8m6CPWvps3aF9ehZn66fCFNbSZ2tvW2+yKExhLXWtZyGYzFr6bN/Xe/RqOM7WT4UprKXPPrhhrcmiMIX9CRYv4u0MBGIsAAAAAElFTkSuQmCC) } .areamini_inter_ico_russia { background-position: -20px 0 } .areamini_inter_ico_indonesia, .areamini_inter_ico_russia { background-repeat: no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADcAAAAbCAYAAADYtRcLAAAAAklEQVR4AewaftIAAALFSURBVO3BTYhVVQAA4O9cn454xr+F0dA1FbOwQDBOgkFQizYtslzUokhCyBZCUWRBm9JVWSujRSW1iRDBCMKiaNMiqQ5URIU/pOgNRaJMHME3+m7PrpHKTMHj8Rim+b5Q17W/VSkNYzMewM04hD04jp1lzm2XCSG4Wt2lR6HLVb4Yvr7Wo5ZLqpRuxF4s949RvICleLVKaXuZ81EDNHpmlssFjdp/a+mqUhrGXix3pTfLnDv4uUrpKWyvUnq2zPmcAblp068EdAhFbe41HQGnTxbqTqBAbVwtjc1Y7kp7MaNKaWmZ85Ey57Eqpc/xGHaYQLj9Pf20+MVT/hIQOfTlDGd/v2DVXagxhmBcLY37cARLEDTuwUK8oatKaQ7ewgHsMCgHNeYFh3+Mdm9dZOTO+81fsMeSeIQLqI2r0PiozHkZTmhsw+P4tMy51ngfC7DSoBXoDPltf3L83Byj7aX++OkO9YUZFCbU0ggaBzGC3WXO31cpjeiqUgpYg4CZ/sUPp5/Tq1uMYwUKdM6J60+497pTOoe3mHnrYmFlzRhq42pptDTW4SV8XKX0LR7VVeZcVyk9iA/xlQE6tnW+i2rMLo5aNW+YMOzsrsrRsblCMKGWxi9VSivKnA9iU5XSK3ga31UpPVzm/FmZ8ydVShsx0wDtf32RRq2lRkdjnvMCgokUGjvxZJXSLI1dGMW1eERXldIcrME7BijGthjbYhwzFM8bih1DsWMonhfjmBjbYmyLsS3GthjbYmyLsS3Ude2iKqUSW/BamfOBKqUNeBvLsBAbsa3M+aRLQggms8IlZc4VnsHdVUovYwPO4HmsxhNlzidNmzZt2v9RqKn1KBBc5d2R1bUePXT8m6CPWvps3aF9ehZn66fCFNbSZ2tvW2+yKExhLXWtZyGYzFr6bN/Xe/RqOM7WT4UprKXPPrhhrcmiMIX9CRYv4u0MBGIsAAAAAElFTkSuQmCC); border: 1px solid #ebebeb } .areamini_inter_ico_indonesia { background-position: 0 -17px } .areamini_inter_ico_thailand { background-position: -20px -17px } .areamini_inter_ico_spain, .areamini_inter_ico_thailand { background-repeat: no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADcAAAAbCAYAAADYtRcLAAAAAklEQVR4AewaftIAAALFSURBVO3BTYhVVQAA4O9cn454xr+F0dA1FbOwQDBOgkFQizYtslzUokhCyBZCUWRBm9JVWSujRSW1iRDBCMKiaNMiqQ5URIU/pOgNRaJMHME3+m7PrpHKTMHj8Rim+b5Q17W/VSkNYzMewM04hD04jp1lzm2XCSG4Wt2lR6HLVb4Yvr7Wo5ZLqpRuxF4s949RvICleLVKaXuZ81EDNHpmlssFjdp/a+mqUhrGXix3pTfLnDv4uUrpKWyvUnq2zPmcAblp068EdAhFbe41HQGnTxbqTqBAbVwtjc1Y7kp7MaNKaWmZ85Ey57Eqpc/xGHaYQLj9Pf20+MVT/hIQOfTlDGd/v2DVXagxhmBcLY37cARLEDTuwUK8oatKaQ7ewgHsMCgHNeYFh3+Mdm9dZOTO+81fsMeSeIQLqI2r0PiozHkZTmhsw+P4tMy51ngfC7DSoBXoDPltf3L83Byj7aX++OkO9YUZFCbU0ggaBzGC3WXO31cpjeiqUgpYg4CZ/sUPp5/Tq1uMYwUKdM6J60+497pTOoe3mHnrYmFlzRhq42pptDTW4SV8XKX0LR7VVeZcVyk9iA/xlQE6tnW+i2rMLo5aNW+YMOzsrsrRsblCMKGWxi9VSivKnA9iU5XSK3ga31UpPVzm/FmZ8ydVShsx0wDtf32RRq2lRkdjnvMCgokUGjvxZJXSLI1dGMW1eERXldIcrME7BijGthjbYhwzFM8bih1DsWMonhfjmBjbYmyLsS3GthjbYmyLsS3Ude2iKqUSW/BamfOBKqUNeBvLsBAbsa3M+aRLQggms8IlZc4VnsHdVUovYwPO4HmsxhNlzidNmzZt2v9RqKn1KBBc5d2R1bUePXT8m6CPWvps3aF9ehZn66fCFNbSZ2tvW2+yKExhLXWtZyGYzFr6bN/Xe/RqOM7WT4UprKXPPrhhrcmiMIX9CRYv4u0MBGIsAAAAAElFTkSuQmCC) } .areamini_inter_ico_spain { background-position: -40px 0 } .areamini_inter_name { float: left; width: 120px; font-family: Microsoft YaHei, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif } @media only screen and (-o-min-device-pixel-ratio:3/2), only screen and (-webkit-min-device-pixel-ratio:1.5), only screen and (min--moz-device-pixel-ratio:1.5), only screen and (min-device-pixel-ratio:1.5) { .areamini_inter_ico_global { background-repeat: no-repeat; background-size: 50px 24.5px; background-position: 0 0; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAxCAYAAAAsoQwQAAAAAklEQVR4AewaftIAAAZnSURBVO3B248V9QEA4G9+Z4a9zLLAclHwALLiBRCrdWwV0WptTLUPTdombeJT0/4R/R+a9KF/Q03fmrZvfWi0aRRbxlsUUS4V2IMLC7vrsswuC3Nmiq7NkYsRocme1fN9UV3XrtbKsghD2IYH8SDuxWaMoIFpHMYBnMI5nMFhtLDQzPO2LxBFkavVl1kC0WWu8mq6pbYEYteXYgt2YAe2Yxs2YZVFA5hAhQILGMQmVDiDGT1fSXCVVpYN4n78DL/CT7EH27FKR8Ak3sareBtt3I89GG1l2YCeryT4nFaWDWI3nsWP8D3cjbVIdFzCIbyB15t5fhDvYwwF1uAebG9l2aBlqCyCsgjKIiiLoCyCsgjKIiiLoCyCsgjKIiiLoCyCsgjKIiiLoCyCsgjKIiiLoCyCsgjKIiiLoCyCsgjKIiiLoCyCsghin2ll2TC24Dk8j11Y4fqm8QE+wJTLmnletbLsKGZwH7YiwXwry8abeV5YRvrWtS2FWMed2Im9+BZWuFaJWXyIw5hEXyvL+nCxmedTmGplWYXVWIlNqHHUMvLwiyd9sVqjURNbVNJuR4jcqljHQ9iJUaxwfQs4hZOYQx+GsYASbYs+xgS2YhtW46hlpLGpcl01Iow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DOsYxlqLPsRBPTck1nESNbZiBDtbWeayyWaeT+I4/o2tGMRtmMPHmEbdyrINGMEODOIsTmFCzw2J6rr2P60sS3EXduE2zOAg3mrm+YVWlm3CU/gFHsNZvIg/Ywp34R6kGMN7ONHM83lXiaJIz7WCz2nmeYFDOIgppGhiVyvLdqKJfosGsAIxVqKJTRjAFA7haDPP5/XcsOAqzTy/gP9gHw6ggQfwBPbiQaxDhQSjeAT34CLexD4cb+Z5qecriV1fgY8QkGIVhrAS/biA0zhv0RBmMYuTmMCCnp6enp6enp5vqqimtgQiIld5ceNDtSXwwvibkS4R9HSVoKerxLrIj4/ssyTSft0i6OkqQU9XCXq6SqyLPPbIT3zTBT1dJejpKrG6tiSiSM+1gp6uEvR0lVgX2bf/T5bCUNqvWwQ9XSXo6SpBT1eJdZG/bH/MN13Q01WCnq7yX1uHOvebvBEPAAAAAElFTkSuQmCC) } .areamini_inter_ico_russia { background-position: -17.5px 0 } .areamini_inter_ico_indonesia, .areamini_inter_ico_russia { background-repeat: no-repeat; background-size: 50px 24.5px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAxCAYAAAAsoQwQAAAAAklEQVR4AewaftIAAAZnSURBVO3B248V9QEA4G9+Z4a9zLLAclHwALLiBRCrdWwV0WptTLUPTdombeJT0/4R/R+a9KF/Q03fmrZvfWi0aRRbxlsUUS4V2IMLC7vrsswuC3Nmiq7NkYsRocme1fN9UV3XrtbKsghD2IYH8SDuxWaMoIFpHMYBnMI5nMFhtLDQzPO2LxBFkavVl1kC0WWu8mq6pbYEYteXYgt2YAe2Yxs2YZVFA5hAhQILGMQmVDiDGT1fSXCVVpYN4n78DL/CT7EH27FKR8Ak3sareBtt3I89GG1l2YCeryT4nFaWDWI3nsWP8D3cjbVIdFzCIbyB15t5fhDvYwwF1uAebG9l2aBlqCyCsgjKIiiLoCyCsgjKIiiLoCyCsgjKIiiLoCyCsgjKIiiLoCyCsgjKIiiLoCyCsgjKIiiLoCyCsg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mednKsnG8gRQf4RImLTPzp2NfLvb/FnS0MIvN2NHKspUua+b5GezHP/EOFrAe38YP8RTuQ+qyZp638THO4AjewluWmSStJGklSStJWknSSpJWkrSSpJUkrSRpJUkrSVpJ0kqSVpK0kqSVJK0kaSVJK0laSdJKklaStJKklSStJGklSStJWknSSpJWgo7DmMDt2I2NPtPM8xkcxgc4o+MO3IdRDOsYxlqLPsRBPTck1nESNbZiBDtbWeayyWaeT+I4/o2tGMRtmMPHmEbdyrINGMEODOIsTmFCzw2J6rr2P60sS3EXduE2zOAg3mrm+YVWlm3CU/gFHsNZvIg/Ywp34R6kGMN7ONHM83lXiaJIz7WCz2nmeYFDOIgppGhiVyvLdqKJfosGsAIxVqKJTRjAFA7haDPP5/XcsOAqzTy/gP9gHw6ggQfwBPbiQaxDhQSjeAT34CLexD4cb+Z5qecriV1fgY8QkGIVhrAS/biA0zhv0RBmMYuTmMCCnp6enp6enp5vqqimtgQiIld5ceNDtSXwwvibkS4R9HSVoKerxLrIj4/ssyTSft0i6OkqQU9XCXq6SqyLPPbIT3zTBT1dJejpKrG6tiSiSM+1gp6uEvR0lVgX2bf/T5bCUNqvWwQ9XSXo6SpBT1eJdZG/bH/MN13Q01WCnq7yX1uHOvebvBEPAAAAAElFTkSuQmCC); border: 1px solid #ebebeb } .areamini_inter_ico_indonesia { background-position: 0 -14.5px } .areamini_inter_ico_thailand { background-position: -17.5px -14.5px } .areamini_inter_ico_spain, .areamini_inter_ico_thailand { background-repeat: no-repeat; background-size: 50px 24.5px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAxCAYAAAAsoQwQAAAAAklEQVR4AewaftIAAAZnSURBVO3B248V9QEA4G9+Z4a9zLLAclHwALLiBRCrdWwV0WptTLUPTdombeJT0/4R/R+a9KF/Q03fmrZvfWi0aRRbxlsUUS4V2IMLC7vrsswuC3Nmiq7NkYsRocme1fN9UV3XrtbKsghD2IYH8SDuxWaMoIFpHMYBnMI5nMFhtLDQzP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LlGzFrMu2mxjhh9SDCOl9DGk7gbD2MbxvAGXmnm+VFX+ggvYxWexh2YxmnLTDURuUKEmh8Mvs8QhiLPb9lHQKP23Mz7tCPV8YgItZsS64gQI2nm+TyOtbKsxCyexHfxKB7GVqxpZdmrOIHpZp5fxFm8hhVYgQcwjeOWmddfuMP1hKjyiaoOGqHtE+2qIUQ1alUd3IpYR4ESQ60sG2rm+flmnrdaWbaAWbQxgO14HFtwJ17Cm60sG2/mednKsnG8gRQf4RImLTPzp2NfLvb/FnS0MIvN2NHKspUua+b5GezHP/EOFrAe38YP8RTuQ+qyZp638THO4AjewluWmSStJGklSStJWknSSpJWkrSSpJUkrSRpJUkrSVpJ0kqSVpK0kqSVJK0kaSVJK0laSdJKklaStJKklSStJGklSStJWknSSpJWgo7DmMDt2I2NPtPM8xkcxgc4o+MO3IdRDOsYxlqLPsRBPTck1nESNbZiBDtbWeayyWaeT+I4/o2tGMRtmMPHmEbdyrINGMEODOIsTmFCzw2J6rr2P60sS3EXduE2zOAg3mrm+YVWlm3CU/gFHsNZvIg/Ywp34R6kGMN7ONHM83lXiaJIz7WCz2nmeYFDOIgppGhiVyvLdqKJfosGsAIxVqKJTRjAFA7haDPP5/XcsOAqzTy/gP9gHw6ggQfwBPbiQaxDhQSjeAT34CLexD4cb+Z5qecriV1fgY8QkGIVhrAS/biA0zhv0RBmMYuTmMCCnp6enp6enp5vqqimtgQiIld5ceNDtSXwwvibkS4R9HSVoKerxLrIj4/ssyTSft0i6OkqQU9XCXq6SqyLPPbIT3zTBT1dJejpKrG6tiSiSM+1gp6uEvR0lVgX2bf/T5bCUNqvWwQ9XSXo6SpBT1eJdZG/bH/MN13Q01WCnq7yX1uHOvebvBEPAAAAAElFTkSuQmCC) } .areamini_inter_ico_spain { background-position: -35px 0 } } .shortcut_btn_company .dropdown-layer { left: 0; width: 140px; padding: 10px 0 10px 15px } .shortcut_btn_company .item { display: inline-block; width: 56px; white-space: nowrap } .mobile_pop_item { position: relative; z-index: 5; padding: 15px 0; border-bottom: 1px solid #e7e7e7 } .mobile_pop_device_lk { background-image: url(//misc.360buyimg.com/mtd/pc/index/home/images/sprite_mobile@1x.png) } .mobile_pop_qrcode { position: absolute; left: 5px; top: 14px; width: 74px; height: 74px; border: 1px solid #ccc; background-color: #f7f7f7 } .mobile_pop_qrcode img { width: 70px; height: 70px; margin: 2px 0 0 2px } .mobile_pop_info { margin: 0 10px 0 86px; min-height: 70px } .mobile_pop_tit { font-size: 12px; line-height: 17px } .mobile_pop_tit, .mobile_pop_tit a { color: #666 !important } .mobile_pop_value { margin: 3px 0; line-height: 14px; color: #f10214 } .mobile_pop_device, .mobile_pop_device_lk { overflow: hidden; height: 25px } .mobile_pop_device_lk { float: left; margin-right: 2px; width: 25px; text-indent: -999px } .mobile_pop_device_ios { background-position: 0 0 } .mobile_pop_device_and { background-position: 0 -26px } .mobile_pop_device_pad { background-position: 0 -52px } @media only screen and (-o-min-device-pixel-ratio:3/2), only screen and (-webkit-min-device-pixel-ratio:1.5), only screen and (min--moz-device-pixel-ratio:1.5), only screen and (min-device-pixel-ratio:1.5) { .mobile_pop_device_lk { background-image: url(//misc.360buyimg.com/mtd/pc/index/home/images/sprite_mobile@2x.png); background-size: 25px 77px } } #ttbar-myjd .dorpdown-layer, #ttbar-myjd .dropdown-layer { left: 0; width: 280px } #ttbar-myjd .myjdlist { padding: 10px 0 10px 15px; overflow: hidden } #ttbar-myjd .myjdlist .fore1, #ttbar-myjd .myjdlist .fore2 { float: left; width: 126px } #ttbar-myjd .myjdlist_2 { border-top: 1px solid #f1f1f1 } #ttbar-myjd .user-level1, #ttbar-myjd .user-level2, #ttbar-myjd .user-level3, #ttbar-myjd .user-level4, #ttbar-myjd .user-level5, #ttbar-myjd .user-level6 { display: inline-block; width: 17px; height: 17px; line-height: 17px; vertical-align: middle; margin-left: 5px; background: url(//img13.360buyimg.com/uba/jfs/t3484/9/128280995/3519/c85623fa/58004db6Na4b20277.gif) } #ttbar-myjd .user-level2 { background-position: 0 -17px } #ttbar-myjd .user-level3 { background-position: 0 -34px } #ttbar-myjd .user-level4 { background-position: 0 -51px } #ttbar-myjd .user-level5 { background-position: 0 -68px } #ttbar-myjd .user-level6 { background-position: 0 -85px } .dropdown .link-logout { float: right; margin-right: 10px; line-height: 1.2 } #ttbar-login .dropdown-layer { left: 0; width: 270px } #ttbar-login .shortcut_userico3 .dropdown-layer { border-color: #dfc676 } #ttbar-login .slider_control { background: none; text-align: left; margin-top: -50px; padding-bottom: 80px; padding-top: 25px } #ttbar-login .slider_control i { position: static; right: auto; top: auto; color: #999 } #ttbar-login .slider_control:hover { color: #999 } .userinfo { padding: 10px 0 10px 15px; overflow: hidden } .userbadge { position: relative; height: 88px; overflow: hidden; padding-top: 10px; border-top: 1px solid #d8d8d8 } .badge_list { width: 210px; text-align: center; margin: auto } .badge_item { float: left; width: 70px; text-align: center } #ttbar-login .badge_item i { display: block; width: 55px; height: 55px; margin: 0 auto } .badge_item .icobadage { display: block; width: 55px; height: 55px; background-repeat: no-repeat } .badge_item a { display: block; cursor: pointer } .badge_item .slider_item { width: 70px } .u-name { display: inline; line-height: 1.5; padding: 0 3px } .badge_item.fore1 .u-name { background: #ceaa62; color: #fff } .u-pic { float: left; margin-right: 10px; position: relative; height: 60px; border-radius: 50%; border: 2px solid #f5f5f5; overflow: hidden } .u-pic, .u-pic img { width: 60px } .u-plus { padding: 10px 0 0; overflow: hidden } .u-msg { font-family: Microsoft Yahei, simsun, sans-serif; padding-top: 4px } .u-msg .style-red { color: #ea4a36 } #ttbar-login.shortcut_userico_company .u-msg a { color: #b79c6f } #ttbar-login .shortcut_userico3 .u-pic a { border-color: #e1c56c } .o2_mini #ttbar-login.dropdown { text-align: left; width: 105px; white-space: nowrap; overflow: hidden } .o2_mini #ttbar-login.shortcut_userico0:hover, .o2_mini #ttbar-login.shortcut_userico1:hover, .o2_mini #ttbar-login.shortcut_userico2:hover, .o2_mini #ttbar-login.shortcut_userico3:hover, .o2_mini #ttbar-login.shortcut_userico4:hover { overflow: visible } .o2_mini #ttbar-login.icon-plus-state0:hover, .o2_mini #ttbar-login.icon-plus-state1:hover, .o2_mini #ttbar-login.icon-plus-state2:hover, .o2_mini #ttbar-login.icon-plus-state3:hover, .o2_mini #ttbar-login.icon-plus-state4:hover { width: 105px; overflow: visible; white-space: normal; text-align: left } .o2_mini #ttbar-login .dt .nickname { width: 30px } .userinfo_ico_icodropdown { display: block } .icobadage_plus { background-position: -59px 0 } .badge_dis .icobadage_plus, .icobadage_plus { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/040d97771298d4d454439b83c73799a3.png) } .badge_dis .icobadage_plus { background-position: -177px -59px } .icobadage_yfdm { background-position: 0 -59px } .badge_dis .icobadage_yfdm, .icobadage_yfdm { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/040d97771298d4d454439b83c73799a3.png) } .badge_dis .icobadage_yfdm { background-position: -59px -59px } .icobadage_yfsm { background-position: -118px 0 } .badge_dis .icobadage_yfsm, .icobadage_yfsm { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/040d97771298d4d454439b83c73799a3.png) } .badge_dis .icobadage_yfsm { background-position: -118px -59px } .icobadage_srtq { background-position: 0 -118px } .badge_dis .icobadage_srtq, .icobadage_srtq { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/040d97771298d4d454439b83c73799a3.png) } .badge_dis .icobadage_srtq { background-position: -59px -118px } .icobadage_sdtk { background-position: -118px -118px } .badge_dis .icobadage_sdtk, .icobadage_sdtk { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/040d97771298d4d454439b83c73799a3.png) } .badge_dis .icobadage_sdtk { background-position: -177px 0 } .icobadage_smhx { background-position: 0 0 } .badge_dis .icobadage_smhx, .icobadage_smhx { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/040d97771298d4d454439b83c73799a3.png) } .badge_dis .icobadage_smhx { background-position: -177px -118px } .icobadage_jxzlb { background-position: 0 -177px } .badge_dis .icobadage_jxzlb, .icobadage_jxzlb { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/040d97771298d4d454439b83c73799a3.png) } .badge_dis .icobadage_jxzlb { background-position: -59px -177px } .icobadage_gbzx { background-position: -118px -177px } .badge_dis .icobadage_gbzx, .icobadage_gbzx { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/040d97771298d4d454439b83c73799a3.png) } .badge_dis .icobadage_gbzx { background-position: -177px -177px } .icobadage_qy_zxj { background-position: -236px 0 } .icobadage_qy_zxj, .icobadage_qy_zzfp { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/040d97771298d4d454439b83c73799a3.png) } .icobadage_qy_zzfp { background-position: -236px -59px } .icobadage_qy_mfxz { background-position: -236px -118px } .icobadage_qy_mfxz, .icobadage_qy_shsm { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/040d97771298d4d454439b83c73799a3.png) } .icobadage_qy_shsm { background-position: -236px -177px } .icobadage_qy_zskf { background-repeat: no-repeat; background-position: 0 -236px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/040d97771298d4d454439b83c73799a3.png) } @media only screen and (-o-min-device-pixel-ratio:3/2), only screen and (-webkit-min-device-pixel-ratio:1.5), only screen and (min--moz-device-pixel-ratio:1.5), only screen and (min-device-pixel-ratio:1.5) { .icobadage_plus { background-position: -56.5px 0 } .badge_dis .icobadage_plus, .icobadage_plus { background-repeat: no-repeat; background-size: 280px 280px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/b2932ad360992fe9cbeea264cf451b1f.png) } .badge_dis .icobadage_plus { background-position: -169.5px -56.5px } .icobadage_yfdm { background-position: 0 -56.5px } .badge_dis .icobadage_yfdm, .icobadage_yfdm { background-repeat: no-repeat; background-size: 280px 280px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/b2932ad360992fe9cbeea264cf451b1f.png) } .badge_dis .icobadage_yfdm { background-position: -56.5px -56.5px } .icobadage_yfsm { background-position: -113px 0 } .badge_dis .icobadage_yfsm, .icobadage_yfsm { background-repeat: no-repeat; background-size: 280px 280px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/b2932ad360992fe9cbeea264cf451b1f.png) } .badge_dis .icobadage_yfsm { background-position: -113px -56.5px } .icobadage_srtq { background-position: 0 -113px } .badge_dis .icobadage_srtq, .icobadage_srtq { background-repeat: no-repeat; background-size: 280px 280px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/b2932ad360992fe9cbeea264cf451b1f.png) } .badge_dis .icobadage_srtq { background-position: -56.5px -113px } .icobadage_sdtk { background-position: -113px -113px } .badge_dis .icobadage_sdtk, .icobadage_sdtk { background-repeat: no-repeat; background-size: 280px 280px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/b2932ad360992fe9cbeea264cf451b1f.png) } .badge_dis .icobadage_sdtk { background-position: -169.5px 0 } .icobadage_smhx { background-position: 0 0 } .badge_dis .icobadage_smhx, .icobadage_smhx { background-repeat: no-repeat; background-size: 280px 280px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/b2932ad360992fe9cbeea264cf451b1f.png) } .badge_dis .icobadage_smhx { background-position: -169.5px -113px } .icobadage_jxzlb { background-position: 0 -169.5px } .badge_dis .icobadage_jxzlb, .icobadage_jxzlb { background-repeat: no-repeat; background-size: 280px 280px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/b2932ad360992fe9cbeea264cf451b1f.png) } .badge_dis .icobadage_jxzlb { background-position: -56.5px -169.5px } .icobadage_gbzx { background-position: -113px -169.5px } .badge_dis .icobadage_gbzx, .icobadage_gbzx { background-repeat: no-repeat; background-size: 280px 280px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/b2932ad360992fe9cbeea264cf451b1f.png) } .badge_dis .icobadage_gbzx { background-position: -169.5px -169.5px } .icobadage_qy_zxj { background-position: -226px 0 } .icobadage_qy_zxj, .icobadage_qy_zzfp { background-repeat: no-repeat; background-size: 280px 280px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/b2932ad360992fe9cbeea264cf451b1f.png) } .icobadage_qy_zzfp { background-position: -226px -56.5px } .icobadage_qy_mfxz { background-position: -226px -113px } .icobadage_qy_mfxz, .icobadage_qy_shsm { background-repeat: no-repeat; background-size: 280px 280px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/b2932ad360992fe9cbeea264cf451b1f.png) } .icobadage_qy_shsm { background-position: -226px -169.5px } .icobadage_qy_zskf { background-repeat: no-repeat; background-size: 280px 280px; background-position: 0 -226px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/b2932ad360992fe9cbeea264cf451b1f.png) } } .focus .focus-slider__item { width: 590px; height: 470px } .focus .focus-slider .sliderBannerWrapper { width: 590px; margin-right: 10px; float: left; overflow: hidden } .focus .focus-slider .sliderRecommendWrapper { width: 190px; float: left; overflow: hidden } .focus .focus-slider .focus-item__core { overflow: hidden; position: relative } .focus .focus-slider .focus-item__core .focus-item-img { display: block; width: 100%; height: 100%; -webkit-transition: opacity .2s; transition: opacity .2s } .focus .focus-slider .focus-item__core .focus-item-img[data-src] { opacity: 0; background: #eee } .focus .focus-slider .focus-item__core .focus-item-tag { position: absolute; right: 0; bottom: 0; width: 34px; height: 20px } .focus .focus-slider .focus-item__core .focus-item-tag--ad { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAUCAYA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JBODFFNiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PrtVBHkAAADxSURBVHjaYmQgD7ADsQwQSwGxIBDzATEbELOQaR4DI4nqQRZrAbECEDMxUBEQ6xAhILYEYmkGGgFGIuSNgNiQ2iFAikNAce4CTQs0B7h8yQHE3vgccfbsWV9iLEBWh08PCw4xDyAWJWQ5NoONjY03I8sj80mNGlB0KGFzBLGGEhtqyOahh4g6NkeQA7A5HJ9nkNMIJzSLUgWQGnrIIWICzSkM1AoRYsRhDoY5hAcaLQwDHSJatCiwSE2soJyjQquCClfIoDuSCVpe8DAMMGCB1qgUBTE19DLiKsDoDUBRI8AwCADIIVyDxSFsg8EhAAEGAOjbPvI0X9SCAAAAAElFTkSuQmCC) } .focus .focus-slider .sliderBanner { position: relative } .focus .focus-slider .sliderBanner .slider_wrapper { height: 470px } .focus .focus-slider .sliderBanner .slider_indicators { z-index: 2; margin-left: 0 !important; left: 30px; bottom: 20px; -webkit-animation: skeletonShow .2s ease .1s both; animation: skeletonShow .2s ease .1s both } .focus .focus-slider .sliderBanner .slider_indicators_btn { width: 8px; height: 8px; margin-right: 4px; border: 1px solid rgba(0, 0, 0, .05); background: rgba(255, 255, 255, .4) } .focus .focus-slider .sliderBanner .slider_indicators_btn_last { margin-right: 0 } .o2_ie8 .focus .focus-slider .sliderBanner .slider_indicators_btn { border: 2px solid #fff } .focus .focus-slider .sliderBanner .slider_indicators_btn_active { width: 9px; height: 9px; top: 2px; left: 0; border: 3px solid rgba(0, 0, 0, .1) } .o2_ie8 .focus .focus-slider .sliderBanner .slider_indicators_btn_active { top: 0; border-color: #666 } .focus .focus-slider .sliderBanner .slider_indicators_btn_active:before { content: " "; width: 9px; height: 9px; position: absolute; border-radius: 50%; left: 0; background-color: white } .focus .focus-slider.clearfix:after { content: ""; display: block; clear: both } .focus .promotional-tag__618 { position: absolute; left: 20px; top: 0 } .focus .focus-slider { width: 100%; display: inline-block; position: relative } .focus .focus-slider .focus-item__core { display: inline-block; margin-right: 10px; width: 590px; height: 470px } .focus .focus-item__recommend .recommend-item__image { position: relative; width: 100%; height: 100% } .focus .focus-item__recommend .recommend-item__image:after { position: absolute; top: 0; left: 0; right: 0; bottom: 0; content: ""; background: rgba(255, 255, 255, .2); opacity: 0; visibility: hidden; -webkit-transition: all .2s ease; transition: all .2s ease } .focus .focus-item__recommend .recommend-item:hover .recommend-item__image:after { opacity: 1; visibility: visible } .focus .focus-item__recommend .recommend-item:focus { outline: none } .focus .focus-slider .sliderRecommend { position: relative } .focus .focus-slider .sliderRecommend .slider_wrapper { height: 470px } .focus .focus-slider .sliderRecommend .slider_control { opacity: 0; visibility: hidden; -webkit-transition: all .2s ease; transition: all .2s ease } .focus .focus-slider .sliderRecommend:hover .slider_control { opacity: 1; visibility: visible } .focus .focus-slider .sliderRecommend .recommend-item { position: relative } .focus .focus-slider .sliderRecommend .recommend-item:after { position: absolute; left: 0; top: 0; width: 100%; height: 100%; content: ""; background-color: white; opacity: 0; visibility: hidden; -webkit-transition: all .2s ease; transition: all .2s ease } .focus .focus-slider .sliderRecommend .recommend-item:hover:after { visibility: visible; opacity: .2 } .focus .focus-item__recommend { width: 190px; vertical-align: top; display: inline-block; height: 100% } .focus .focus-item__recommend .recommend-item { height: 150px; display: block; margin-bottom: 10px } .promo_lk { position: relative; display: block; width: 190px; height: 120px; z-index: 3; background-repeat: no-repeat; background-position: bottom; -webkit-animation: promoShow .3s ease; animation: promoShow .3s ease } @-webkit-keyframes promoShow { 0% { opacity: 0 } to { opacity: 1 } } @keyframes promoShow { 0% { opacity: 0 } to { opacity: 1 } } .fs_act_wp { display: block; position: absolute; left: 0; top: 0; width: 100% } .fs_act_lk { outline: none } .fs_brand .fs_act_lk { display: block; overflow: hidden; position: absolute; left: -350px; width: 350px; height: 470px } .fs_act_lk_img { float: right } .fs_act_banner { overflow: hidden; position: absolute; z-index: 30; left: 0; width: 0; height: 470px; -webkit-transition: all .3s ease; transition: all .3s ease } .fs_brand_active .fs_act_banner { width: 790px } .fs_act_banner_lk { display: block; height: 470px } .fs_act_banner_lk img { width: 790px; height: 470px } .fs_act_banner_close { position: absolute; right: 20px; top: 20px; width: 20px; height: 20px; line-height: 20px; font-weight: 700; font-size: 14px; color: #fff; background: #2d2d2d; opacity: .3; filter: alpha(opacity=30); text-align: center; cursor: pointer } #J_seckill { position: relative; z-index: 10 } .o2_mini .floors { z-index: auto } .mod_footer { height: 500px; background-color: #eaeaea } .mod_service { padding: 30px 0; border-bottom: 1px solid #dedede } .mod_service_list { overflow: hidden; height: 42px } .mod_service_item { float: left; width: 297px } .mod_service_unit { position: relative; margin: 0 auto; padding-left: 45px; width: 180px } .mod_service_tit { overflow: hidden; position: absolute; left: 0; top: 0; width: 36px; height: 42px; text-indent: -999px } .mod_service_txt { overflow: hidden; width: 100%; height: 42px; line-height: 42px; font-size: 18px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; color: #444 } .mod_service_duo { background-position: 0 -192px } .mod_service_duo, .mod_service_kuai { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/23f3ddf914b1b527d0429a3d713cfe3a.png) } .mod_service_kuai { background-position: -41px -192px } .mod_service_hao { background-position: -82px -192px } .mod_service_hao, .mod_service_sheng { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/23f3ddf914b1b527d0429a3d713cfe3a.png) } .mod_service_sheng { background-position: -123px -192px } .mod_help { padding: 20px 0 } .mod_help_list { overflow: hidden; height: 160px } .mod_help_nav { float: left; width: 198px; line-height: 22px } .mod_help_nav_tit { margin-bottom: 5px; font-size: 14px } .mod_help_cover { background-repeat: no-repeat; background-position: 0 0; float: right; width: 200px; height: 150px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/23f3ddf914b1b527d0429a3d713cfe3a.png) } .mod_help_cover_tit { margin-bottom: 15px; font-size: 14px; text-align: center } .mod_help_cover_con { padding: 0 10px } .mod_help_cover_more { text-align: right } .mod_copyright_inner { padding: 15px 0; border-top: 1px solid #e1e1e1; text-align: center } .mod_copyright_split { margin: 0 10px; color: #ccc } .mod_copyright_info { padding: 10px 0; line-height: 22px; color: #999 } .mod_copyright_info a { color: #999 } .mod_copyright_info a:hover { color: #ea4a36 } .mod_copyright_inter_ico { display: inline-block; width: 15px; height: 10px; vertical-align: -1px; margin-right: 10px; background-repeat: no-repeat } .mod_copyright_inter_ico_global { background-position: -108px -155px; width: 15px; height: 12px; margin-top: -1px } .mod_copyright_inter_ico_global, .mod_copyright_inter_ico_rissia { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/23f3ddf914b1b527d0429a3d713cfe3a.png) } .mod_copyright_inter_ico_rissia { background-position: -168px -155px } .mod_copyright_inter_ico_indonesia { background-position: -148px -155px } .mod_copyright_inter_ico_indonesia, .mod_copyright_inter_ico_thailand { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/23f3ddf914b1b527d0429a3d713cfe3a.png) } .mod_copyright_inter_ico_thailand { background-position: -108px -172px } .mod_copyright_inter_ico_spain { background-repeat: no-repeat; background-position: -128px -155px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/23f3ddf914b1b527d0429a3d713cfe3a.png) } .mod_copyright_auth { margin: 25px 0 } .mod_copyright_auth_ico { overflow: hidden; display: inline-block; margin: 0 3px; width: 103px; height: 32px; line-height: 1000px } .mod_copyright_auth_ico_1 { background-position: -205px -148px } .mod_copyright_auth_ico_1, .mod_copyright_auth_ico_2 { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/23f3ddf914b1b527d0429a3d713cfe3a.png) } .mod_copyright_auth_ico_2 { background-position: -205px -111px } .mod_copyright_auth_ico_3 { background-position: -205px -74px } .mod_copyright_auth_ico_3, .mod_copyright_auth_ico_4 { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/23f3ddf914b1b527d0429a3d713cfe3a.png) } .mod_copyright_auth_ico_4 { background-position: -205px -37px } .mod_copyright_auth_ico_5 { background-repeat: no-repeat; background-position: 0 -66px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM8AAACDCAMAAAAdxb96AAAB+FBMVEXu7u74+Pj////GxsaOjo76+vplZWX9///1BAGUlJT9/f3///rRBAz7//n/+/Xv8O/3awXgAwT6OAL//P/7ysoLDBrvLij+WAGZmZnQ0NDjFwj7kAQFlthtbW34/v/0/v8Elun94d7/+f6yAQAxND70WlbBwcFKsd5sbGzx8fHg4OCoqKi0tLT2qan3JQDHx8f+/O3U1NT6urbxRDjxmJbv//729fX0/vTl5eWKioqFhYXyenv08/P1Z2VxcXH+8fLFxcX6lI/+tQEAAJVQUle0AgH/8/392dbTICj8GAHI6v39/OKwAADr6+sKDU3zS0XRNTlh2/f9RgHyjlbqTQjW1tb98dWxra8IB2/zcy/+9uql1+LVbW3GUlC3ERLiARHh/f/zh4j82zHLy8t6enr61Letra1/f3/UXlu0CQnkOwb96er83Mfhb3D862/xGhT90wr797J+j5dCZnHFIiP2rUzlKgP38O6lpaX5xp3Td3f2dGrXQVHFRkf2sZDiTFnIPkLlXz3L+/zrzc3TxsralJPVgIBkcn07O2j94k7z6ufXnJz4wHy4HBv68JrfiIXPaWjtek/BLy+7IyPou7u3t7f0nHZRU3HGPUD1oS7o8/fsycjqw8LLVVXAPj7v1dTYiorOX2DBNzdWWYNhYWHlsbHfpKTDICG0qETKAAAYSElEQVR42uyZT4vaQBTA7Rh3JCHpmEoCCbi4sIceKlJLe2iXQg4t4qFgJKC3Fby0i+jBghSEHi0i7KWw37bvzYx5WafZ/qXQ0qczk8xm3/M3782b527lD8m9yr8lf5CHlQu/T49VodENTVSpI1Ez0BPP99ohIUNl2st5nK7LueMM5tP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AWff3DrbSn6gM9yNw53d8THF0Ko9Sj1mzidsHmIzuFnoiR9wmhh+ov5wvN7YaCCYbF+yD08laFMqDsjrKOaZ4jhKuhDVx6N6fHFGQy34FOonz4l0ZHMh/oy2jNPQH1sFwAloVdBn5dnsXC8QI3NrecvnDCnD8/XfO3Y/lhECbx4r4DAUddiN1agfkxtH4rosJsSn0MQbP0wt57ydXPaWHliyz3omd3ABx0c3bwS9TMbTjz4ben0lFJBYd6JndaB61gX+ralntoNAYgIEZ1q9LehS2F6Yuxer+bz03lUQgkihEohv7Xjwk8kQ4APEXrQq9DfXh3t+zQONZrWJ+PxeJLfL0ioEKek+iG/3dLQgw1Dh+Vh1chstlWF9WduKq0Qyv15PI7KVIqaDR6YbGAt4DjDfAghy1VAH9pvO47pJGGa9J3fb/MoylJw/cBafCLt4kzQtivQ39Tq/vF3Fo8Um6fjf28pWR9EwgfW4hN9njqJIs+pFehvH75flRsEbohPO7MWKIFPuzrzwef+DiydoqWOPFZCxnB15oNz8ny1+frvo1rz9dn4avr8ARBBCjpyl2hbAAAAAElFTkSuQmCC) } .mod_copyright_auth_ico_6 { background-repeat: no-repeat; background-position: 0 -155px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/23f3ddf914b1b527d0429a3d713cfe3a.png) } .mod_copyright_auth_ico_7 { background-repeat: no-repeat; background-position: 0 -99px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM8AAACDCAMAAAAdxb96AAAB+FBMVEXu7u74+Pj////GxsaOjo76+vplZWX9///1BAGUlJT9/f3///rRBAz7//n/+/Xv8O/3awXgAwT6OAL//P/7ysoLDBrvLij+WAGZmZnQ0NDjFwj7kAQFlthtbW34/v/0/v8Elun94d7/+f6yAQAxND70WlbBwcFKsd5sbGzx8fHg4OCoqKi0tLT2qan3JQDHx8f+/O3U1NT6urbxRDjxmJbv//729fX0/vTl5eWKioqFhYXyenv08/P1Z2VxcXH+8fLFxcX6lI/+tQEAAJVQ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Puzrzwef+DiydoqWOPFZCxnB15oNz8ny1+frvo1rz9dn4avr8ARBBCjpyl2hbAAAAAElFTkSuQmCC) } .mod_copyright_license { margin-left: 16px } @media only screen and (-o-min-device-pixel-ratio:3/2), only screen and (-webkit-min-device-pixel-ratio:1.5), only screen and (min--moz-device-pixel-ratio:1.5), only screen and (min-device-pixel-ratio:1.5) { .mod_service_duo { background-position: 0 0 } .mod_service_duo, .mod_service_kuai { background-repeat: no-repeat; background-size: 113px 86.5px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/93ec59f9796c37a0903bfdd45f59f9d5.png) } .mod_service_kuai { background-position: -38.5px 0 } .mod_service_hao { background-position: -77px 0 } .mod_service_hao, .mod_service_sheng { background-repeat: no-repeat; background-size: 113px 86.5px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/93ec59f9796c37a0903bfdd45f59f9d5.png) } .mod_service_sheng { background-position: 0 -44.5px } .mod_copyright_inter_ico_global { background-position: -38.5px -44.5px } .mod_copyright_inter_ico_global, .mod_copyright_inter_ico_rissia { background-repeat: no-repeat; background-size: 113px 86.5px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/93ec59f9796c37a0903bfdd45f59f9d5.png) } .mod_copyright_inter_ico_rissia { background-position: -56px -44.5px } .mod_copyright_inter_ico_indonesia { background-position: -73.5px -44.5px } .mod_copyright_inter_ico_indonesia, .mod_copyright_inter_ico_thailand { background-repeat: no-repeat; background-size: 113px 86.5px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/93ec59f9796c37a0903bfdd45f59f9d5.png) } .mod_copyright_inter_ico_thailand { background-position: -91px -44.5px } .mod_copyright_inter_ico_spain { background-repeat: no-repeat; background-size: 113px 86.5px; background-position: -38.5px -59px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/93ec59f9796c37a0903bfdd45f59f9d5.png) } .mod_copyright_inter_lk { font-family: initial } } .o2_mini .mod_service_item { width: 247px } .o2_mini .mod_help_nav { width: 158px } .o2_mini .mod_copyright_links .mod_copyright_split { margin: 0 6px } .logo_scene { position: absolute; width: 100%; height: 100%; z-index: 1; text-align: center } .logo_scene_img { display: block; width: 134px; height: 120px; background-color: #fff; opacity: 0; margin: 0 auto; filter: alpha(opacity=0); clear: both; background-size: auto 100% } .logo_scene_text { width: 120px; font-size: 16px; margin-left: -60px; top: 36px; font-weight: 700; background: transparent; color: #333; text-align: center; z-index: 1 } .logo_scene_btn, .logo_scene_text { position: absolute; line-height: 20px; left: 50%; opacity: 0; filter: alpha(opacity=0) } .logo_scene_btn { width: 60px; height: 20px; bottom: 35px; margin-left: -32px; text-indent: 4px; color: #555; font-size: 12px; background-repeat: no-repeat; background-position: 50%; background-color: #fff; border-radius: 11px } .logo_scene_withBg { background: #fff } .logo_scene_animateend .logo_scene_img { opacity: 1; filter: alpha(opacity=100); -webkit-transition: opacity .2s linear .1s; transition: opacity .2s linear .1s } .logo_scene_animateend .logo_scene_btn, .logo_scene_animateend .logo_scene_text { opacity: 1; filter: alpha(opacity=100); -webkit-transition: opacity .2s linear 2.6s; transition: opacity .2s linear 2.6s } .logo_scene_legacy .logo_scene_btn, .logo_scene_legacy .logo_scene_text { display: none } .logo_scene_fade .logo_scene_btn, .logo_scene_fade .logo_scene_img, .logo_scene_fade .logo_scene_text { opacity: 0; filter: alpha(opacity=0); -webkit-transition: opacity .6s linear; transition: opacity .6s linear } .logo_scene_hide { display: none } .feed-tab { margin: 0 auto; height: 60px; width: 1080px } .o2_mini .feed-tab { margin: 0 auto 10px; width: 900px } .company_placeholder .feed-tab { width: 1190px } .o2_mini .company_placeholder .feed-tab { margin: 0 auto 10px; width: 987px } .feed-tab-wrapper { background: #fff; margin-bottom: 10px } .recommend__loading .feed-tab__item { display: inline-block; float: none; width: 103px; height: 46px; margin: 7px 38px } .o2_mini .recommend__loading .feed-tab__item { width: 80px; margin: 7px 35px } .recommend__loading .company_placeholder .feed-tab__item { width: 94px; margin: 7px 38px } .o2_mini .recommend__loading .company_placeholder .feed-tab__item { width: 71px; margin: 7px 35px } .more2_item { position: relative; float: left; width: 230px; height: 322px; margin: 0 5px 10px } .o2_mini .more2_item { width: 190px; height: 266px; margin: 0 5px 8px } .more2_list { margin: 0 -5px } .more2_img { width: 150px; height: 150px; margin: 30px auto 40px } .o2_mini .more2_img { width: 120px; height: 120px; margin: 30px auto } .more2_info { padding: 0 20px; height: 65px } .o2_mini .more2_info { padding: 0 10px } .recommend__loading { height: 1231px } .o2_mini .recommend__loading { height: 1063px } .recommend__loading .more2_list { height: 996px } .o2_mini .recommend__loading .more2_list { height: 828px } .more2__loading .more2_info { margin: 0 20px } .seckill-list { position: relative; float: left; width: 800px; height: 260px; overflow: hidden } .o2_mini .seckill-list { width: 610px } .seckill-list .seckill-item { position: relative; width: 200px; height: 260px; display: inline-block } .seckill-list .seckill-item__image { width: 140px; height: 140px; margin-left: auto; margin-right: auto; margin-top: 30px } .seckill-list .seckill-item__name { width: 160px; margin-left: auto; margin-right: auto; margin-top: 13px } .seckill-list .seckill-item__price { width: 160px; height: 24px; margin-left: auto; margin-right: auto; margin-top: 7px } .seckill-brand { position: relative; float: left; width: 200px; height: 260px; padding: 10px; -webkit-box-sizing: border-box; box-sizing: border-box } .o2_mini .seckill-brand { width: 190px } .seckill-brand .brand-item { position: relative; height: 240px } .seckill-brand .brand-item .item-image { width: 120px; height: 120px; margin-left: auto; margin-right: auto; margin-top: 20px } .seckill-brand .brand-item .item-info { width: 100%; height: 90px; margin-top: 10px; -webkit-box-sizing: border-box; box-sizing: border-box } .seckill { height: 260px; margin: 20px 0; } .seckill .py-container { overflow: hidden; } .seckill__inner { height: 100%; overflow: hidden } .seckill-countdown { position: relative; float: left; width: 190px; height: 100% } .channelsB { width: 100%; height: 1005px; margin-bottom: 20px; overflow: hidden } .o2_mini .channelsB { height: 845px } .channelsB .channels_block { position: relative } .channelsB .channels_block_1 .channels_block_wrapper { width: 600px; padding-left: 600px } .o2_mini .channelsB .channels_block_1 .channels_block_wrapper { width: 500px; padding-left: 500px } .channelsB .channels_block .channels_item { display: inline-block; width: 290px; height: 180px; margin-right: 10px; margin-bottom: 10px } .o2_mini .channelsB .channels_block .channels_item { width: 240px; height: 148px } .channelsB .channels_block_1 .channels_item_1, .channelsB .channels_block_1 .channels_item_2, .channelsB .channels_block_1 .channels_item_3, .channelsB .channels_block_1 .channels_item_4, .channelsB .channels_block_1 .channels_item_5, .channelsB .channels_block_1 .channels_item_6, .channelsB .channels_block_1 .channels_item_7, .channelsB .channels_block_1 .channels_item_8 { position: absolute } .channelsB .channels_block_1 .channels_item_1, .channelsB .channels_block_1 .channels_item_3, .channelsB .channels_block_1 .channels_item_4, .channelsB .channels_block_1 .channels_item_5 { left: 0 } .channelsB .channels_block_1 .channels_item_2, .channelsB .channels_block_1 .channels_item_6, .channelsB .channels_block_1 .channels_item_7, .channelsB .channels_block_1 .channels_item_8 { left: 300px } .o2_mini .channelsB .channels_block_1 .channels_item_2, .o2_mini .channelsB .channels_block_1 .channels_item_6, .o2_mini .channelsB .channels_block_1 .channels_item_7, .o2_mini .channelsB .channels_block_1 .channels_item_8 { left: 250px } .channelsB .channels_block_1 .channels_item_3, .channelsB .channels_block_1 .channels_item_6 { top: 380px } .o2_mini .channelsB .channels_block_1 .channels_item_3, .o2_mini .channelsB .channels_block_1 .channels_item_6 { top: 316px } .channelsB .channels_block_1 .channels_item_4, .channelsB .channels_block_1 .channels_item_7 { top: 570px } .o2_mini .channelsB .channels_block_1 .channels_item_4, .o2_mini .channelsB .channels_block_1 .channels_item_7 { top: 474px } .channelsB .channels_block_1 .channels_item_5, .channelsB .channels_block_1 .channels_item_8 { top: 760px } .o2_mini .channelsB .channels_block_1 .channels_item_5, .o2_mini .channelsB .channels_block_1 .channels_item_8 { top: 632px } .channelsB .channels_block_1 .channels_item_1, .channelsB .channels_block_1 .channels_item_2 { height: 370px; top: 0 } .o2_mini .channelsB .channels_block_1 .channels_item_1, .o2_mini .channelsB .channels_block_1 .channels_item_2 { height: 306px } .channelsB .channels__loading .channels_block_1 .channels_block_wrapper { font-size: 0; line-height: 0 } .nice-goods { height: 260px; position: relative; -webkit-box-sizing: border-box; box-sizing: border-box; padding-left: 190px; margin-bottom: 20px } .nice-goods__logo { position: absolute; left: 0; top: 0; width: 190px; height: 100% } .nice-goods__recommends { margin-left: 10px; height: 100%; position: relative } .nice-goods__recommends .goods-list { padding-left: 20px; padding-right: 20px; height: 100%; width: 100%; -webkit-box-sizing: border-box; box-sizing: border-box; white-space: nowrap } .nice-goods__recommends .goods-list .goods { width: 150px; display: inline-block; margin-right: 50px; vertical-align: top } .nice-goods__recommends .goods-list .goods--top { margin-top: 20px } .nice-goods__recommends .goods-list .goods--bottom { margin-top: 50px } .nice-goods__recommends .goods-list .goods__image { height: 150px } #J_special_offer .special_inner { padding: 0 15px 15px } .o2_mini #J_special_offer .special_inner { padding: 0 10px 10px } #J_special_offer .special_list { width: 560px; height: 270px } .o2_mini #J_special_offer .special_list { width: 460px; height: 270px } #J_special_offer .special_item { display: inline-block; vertical-align: top; width: 170px; height: 89px } .o2_mini #J_special_offer .special_item { width: 146px; height: 74px } #J_special_offer .special_item_img { float: left; width: 84px; height: 84px } .o2_mini #J_special_offer .special_item_img { width: 74px; height: 74px } #J_special_offer .special_item_message { float: left; width: 75px; margin-left: 6px; font-size: 0 } .o2_mini #J_special_offer .special_item_message { width: 66px } #J_special_offer .special_item_name { display: inline-block; width: 100%; color: #333; height: 32px; font-size: 12px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; word-break: break-all; font-family: Microsoft Yahei, PingFangSC-Medium, sans-serif, serif } #J_special_offer .special_item_miaoShaPrice { font-size: 14px; line-height: 16px; font-family: Arial-BoldMT, Microsoft Yahei, PingFangSC-Medium, sans-serif, serif; color: #e1251b; letter-spacing: 0; margin-top: 5px; font-weight: 700; display: inline-block } #J_special_offer .special_item_jdPrice { display: inline-block; width: 100%; text-decoration: line-through; font-family: sans-serif, serif; color: #999; font-size: 12px; line-height: 14px; -webkit-transform: scale(.8); -ms-transform: scale(.8); transform: scale(.8); margin-top: 2px; -webkit-transform-origin: top left; -ms-transform-origin: top left; transform-origin: top left } #J_special_offer .special_item_lowest { display: inline-block; overflow: hidden; width: 84px; height: 16px; font-size: 11px; position: absolute; bottom: 0; left: 0; background: rgba(0, 0, 0, .6); white-space: nowrap; color: #fff; text-align: center; line-height: 16px } .o2_mini #J_special_offer .special_item_lowest { width: 74px } .o2_ie8 #J_special_offer .special_item_lowest { background-color: none; background-image: none; filter: progid: dximagetransform.microsoft.gradient(startColorstr="#FF000000", endColorstr="#FF000000") alpha(opacity=60) } #J_special_offer .special_item_lowestFirst { display: inline-block; width: 90px; height: 24px; position: absolute; left: 0; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAAYBAMAAACIFvdWAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAASUExURfa3PfekAPesGfenC/a0MvewJ5uweioAAABjSURBVHjajdAxDYBQAMRQBhBwEggKsECCge9fDEwEaNLcmzt16i1b6nbekrTtSOp67Knr427b+lzzKEa8FCNQy4gPH/FnI8hGkI0gG0E2gmwEYYTCCIURCiMURiiMUBihMEJd/HcrFSr6YboAAAAASUVORK5CYII=); background-size: cover; background-position: 50%; font-family: MicrosoftYaHei-Bold, Microsoft Yahei, PingFangSC-Medium, sans-serif, serif; font-weight: 700; font-size: 12px; line-height: 24px; color: #fff; letter-spacing: 0; text-align: center } @media screen and (-moz-min-device-pixel-ratio:2), screen and (-webkit-min-device-pixel-ratio:2), screen and (min--moz-device-pixel-ratio:2), screen and (min-device-pixel-ratio:2), screen and (min-resolution:2dppx), screen and (min-resolution:192dpi) { #J_special_offer .special_item_lowestFirst { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAAwBAMAAABKwk3PAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAPUExURfa3PfekAPevIveoDva0MtFTl6MAAACYSURBVHjatdJBEYMAEARBKoWBsxAUYAH/osgn1QbmWsB8do8dn2tmJXxe87MU3kl/79lJP/f85WHqWwz5euRh6lsM+XrkYaJbQL4eeZjoFpCvRx4mugXk65GHiW4B+XrkYaJbQL4eeZjoFpCvRx4mugXk65GHiW4B+XrkYaJbQL4eeZjoFpCvRx4mugXk6yGcc4uc9XLCuReQiZzR/LVhfgAAAABJRU5ErkJggg==) } } #J_special_offer .special_item_1, #J_special_offer .special_item_2, #J_special_offer .special_item_3, #J_special_offer .special_item_4 { margin-left: 19px; margin-bottom: 48px } .o2_mini #J_special_offer .special_item_1, .o2_mini #J_special_offer .special_item_2, .o2_mini #J_special_offer .special_item_3, .o2_mini #J_special_offer .special_item_4 { margin-left: 6px } #J_special_offer .special_item_1, #J_special_offer .special_item_2 { margin-top: 18px } #J_special_offer .special_item_soldMsg { display: inline-block; margin-top: 8px; font-size: 12px; line-height: 16px; position: absolute; color: #999 } .o2_mini #J_special_offer .special_item_soldMsg { margin-top: 3px } #J_special_offer .special_item_soldNum { display: inline-block; line-height: 18px; color: #e1251b } #J_special_offer .special_item_0 { background-color: rgba(109, 126, 146, .05); float: left; width: 170px; height: 265px; margin-right: 6px } .o2_mini #J_special_offer .special_item_0 { margin-right: 10px; width: 146px; height: 235px } #J_special_offer .special_item_0 .special_item_img { margin-top: 46px; width: 120px; display: inline-block; left: 50%; margin-left: -60px; height: 120px; text-align: center } .o2_mini #J_special_offer .special_item_0 .special_item_img { width: 100px; height: 100px; margin-left: -50px } #J_special_offer .special_item_0 .special_item_message { margin-left: 0; width: 100%; text-align: center } #J_special_offer .special_item_0 .special_item_name { margin-top: 9px; margin-bottom: 4px; height: 19px; line-height: 19px; width: 150px; font-size: 14px; display: inline-block; text-align: center } .o2_mini #J_special_offer .special_item_0 .special_item_name { width: 126px } #J_special_offer .special_item_0 .special_item_price { margin-top: 4px } #J_special_offer .special_item_0 .special_item_jdPrice, #J_special_offer .special_item_0 .special_item_miaoShaPrice { display: inline; margin: 0 2px } #J_special_offer .special_item_0 .special_item_miaoShaPrice { font-size: 18px } #J_special_offer .special_item_0 .special_item_soldMsg { position: static; margin-top: 8px } #J_special_offer .special_item_lk { position: relative; display: inline-block; width: 170px } .o2_mini #J_special_offer .special_item_lk { width: 146px; height: 74px } #J_special_offer .special_item_lk:after { content: ""; display: block; clear: both } #J_special_offer .special_item_lk:hover { color: #333 } #J_special_offer .special_item_lk:hover .special_item_name { color: #ea4a36 } #J_special_offer .special_item_lk:hover .special_item_img { opacity: .8 } #J_special_offer .special_tab { position: relative } #J_special_offer .tab_head { position: absolute; bottom: 108%; right: 0 } .o2_mini #J_special_offer .tab_head { right: 2% } #J_special_offer .tab_body_item { width: 560px; height: 270px } .lightning-buy__loading { width: 590px; margin-right: 0 } .lightning-buy__loading .skeleton-header { width: 270px } .o2_mini .lightning-buy__loading .skeleton-header { width: 230px } .lightning-buy__container { padding: 0 20px 0 15px } .o2_mini .lightning-buy__container { padding-left: 10px } .lightning-buy .goods-core { width: 270px; height: 265px; margin-right: 15px; display: inline-block } .o2_mini .lightning-buy .goods-core { width: 230px; height: 235px; margin-right: 0 } .lightning-buy .goods-others { width: 270px; display: inline-block; vertical-align: top; margin-top: -40px } .o2_mini .lightning-buy .goods-others { width: 230px } .lightning-buy .goods-others .other-item { display: inline-block; width: 135px; height: 100px; padding: 14px 0; -webkit-box-sizing: border-box; box-sizing: border-box } .o2_mini .lightning-buy .goods-others .other-item { width: 115px; height: 88px } .coupon { width: 290px } .o2_mini .coupon { width: 240px } .coupon_inner { padding: 0 15px } .o2_mini .coupon_inner { padding: 0 10px } .coupon_list { height: 280px } .o2_mini .coupon_list { height: 245px } .coupon_item { margin-bottom: 3px } .coupon_lk { height: 82px } .o2_mini .coupon_lk { height: 72px } .nice-shop { width: 290px; height: 340px } .o2_mini .nice-shop { width: 240px } .nice-shop__container { padding: 0 15px } .o2_mini .nice-shop__container { padding: 0 10px } .nice-shop .shop-item { -webkit-box-sizing: border-box; box-sizing: border-box; width: 260px; height: 128px; padding: 15px 125px 15px 15px; margin-bottom: 10px } .o2_mini .nice-shop .shop-item { width: 220px; height: 113px; padding-right: 115px; padding-top: 17px } .newArrival { width: 290px } .o2_mini .newArrival { width: 240px } .newArrival_slider { position: relative; width: 260px; height: 250px; margin: 0 auto } .o2_mini .newArrival_slider { width: 220px; height: 215px } .newArrival_slider .slider_list { position: relative; height: 250px } .o2_mini .newArrival_slider .slider_list { height: 215px } .newArrival_item_img { width: 100%; height: 140px } .o2_mini .newArrival_item_img { height: 130px } .newArrival_item_name { margin-top: 20px; margin-bottom: 4px } .o2_mini .newArrival_item_name { margin-top: 8px; margin-bottom: 10px } .newArrival_item_author { height: 24px } .o2_mini .newArrival_item_author { height: 25px } .newArrival__loading .newArrival_slider { overflow: initial } .newArrival__loading .newArrival_item_desc, .newArrival__loading .newArrival_item_name { height: 20px; left: 35px } .o2_mini .newArrival__loading .newArrival_item_desc, .o2_mini .newArrival__loading .newArrival_item_name { left: 10px } .newArrival__loading .newArrival_item_price { position: relative; height: 20px; width: 100px; left: 85px } .o2_mini .newArrival__loading .newArrival_item_price { left: 65px } .newArrival { background: #fff; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJEAAACqCAMAAACau11/AAABqlBMVEVHcEzy8f/54ev63OX63uXy8f/x8f/07fzz8P/x8f//4en63enz8//y8f//2N/w8P/y8f/y8f/y8f//2eDx8f//2d7x8f/x8f//2eDz7//y8P//2t7/2ePx8f/54Or/19/v7//////y8P//8vzx8f/y8v//2d/y8P//6P//1d//2eDy8v/y7//x8v/x8P/y8P/x8f/t7f/y8v/x8f/z8v/x8f/x8f/63+b/3eDy8P/y8f/y8v//2eHz8f/x8f/y8P/54Of/2eLx8f/y8v/y8f/y8v//197/2uD/2N/y8P//1dTx8f/w8P/x8f//2+L/2d/07v/54Ov/2N7x8f/07PP/5ffz8P/y8f//2OD/2eD/2eDx8f/x8P/w8P/35+/y8P//2OLy8f/y8v/x8P//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Xl036rwtoZfFeraayU39q+kUn2pICrgyXVJds3lWck68n0wze0nvlLER40UFdUjXpMqlIXvWp4lEemVymxq4z8NDYJHpgUJXpxT+PKJ7YndzTluyzEqFzhkwiTTSiKDs5YDI1eL7VNrX5dvVZaIhJbXA94JpMNKJ41J1c3rOz0ZBMNTXk3BjJlC6dox7AnZx20Unnmmcnz8xDrydjktMvOr3B6aLjzgmmq8/vnBmGRhTRAydvUV7SJAc1YLl0nl08G4deTSc3uBpwr1cJuEcEfHxAN+3sDQ5MqNI/OedV9+BcpgdF2tbolzZ4BTn3QtumKk8VKVNzxtkQdJli796xE52bp4CTTNXPB38tkT6i0ALMuprUHvBcp1z/UueIiZzT9uAZtEUBJh7wovf04j+HgJtfT9o8YOzBlYsujV375yOTVTVNmgNOkxwNl7lp9345DAVcyjRIF90kyaQum2SDF51Diijg2rLphC3KvKmailznhEMrC3z4DoqnCtWlCHh37IiSO2871wNI+iNT34PT3fs4/+750VDAsS4VJGpwqia+dM7Xptlz6wFMk+ocNXi30eDvvP7zhKERBQOuyOSialJGlCsU63OXSSChTGMVY8Y3pz4y3527ZxRwVk204LV+0SUt11wQEDW4mMGtf7v6NYl9ZwmQibYo1OBYTcs0OV6UTLEzeL0yD2QUXiANOceY0DltTdjd5bddOBK76Mg55ZHZSn/FPQHOKdtUdA6JviWAhxrcZ2dIJFN6K47WiWKiu5fSlE5ACZJJXTbVT2YnDEcfUQYBqT4hGdIb3IfvXkRy2RNKoz8yK2oSSKLP4L7B7MxEcuh7cJ9dWzok+JvTbo5Ey5RogfTVpe3yXJ7Lc3n+P87/ACZ8Za3f9mFjAAAAAElFTkSuQmCC); -webkit-filter: progid: dximagetransform.microsoft.alphaimageloader(src="//storage.360buyimg.com/mtd/home/bg1574241534318.png", sizingMethod="scale"); filter: progid: dximagetransform.microsoft.alphaimageloader(src="//storage.360buyimg.com/mtd/home/bg1574241534318.png", sizingMethod="scale"); background-repeat: no-repeat; background-size: cover; background-position: 50% } @media screen and (-moz-min-device-pixel-ratio:2), screen and (-webkit-min-device-pixel-ratio:2), screen and (min--moz-device-pixel-ratio:2), screen and (min-device-pixel-ratio:2), screen and (min-resolution:2dppx), screen and (min-resolution:192dpi) { .newArrival { background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/36953637b4e5fc27d860e53362a93e76.png); -webkit-filter: progid: dximagetransform.microsoft.alphaimageloader(src="//storage.360buyimg.com/mtd/home/bg-2x1574241515751.png", sizingMethod="scale"); filter: progid: dximagetransform.microsoft.alphaimageloader(src="//storage.360buyimg.com/mtd/home/bg-2x1574241515751.png", sizingMethod="scale") } } .newArrival_slider .slider { position: relative } .o2_mini .newArrival_slider .slider { height: 295px } .newArrival_slider .slider_control { margin-top: -50px } .newArrival_slider .slider_control_prev { left: -15px } .o2_mini .newArrival_slider .slider_control_prev { left: -10px } .newArrival_slider .slider_control_next { right: -15px } .o2_mini .newArrival_slider .slider_control_next { right: -10px } .newArrival_slider .slider_indicators { bottom: -12px } .o2_mini .newArrival_slider .slider_indicators { bottom: -10px } .newArrival_item { position: relative; text-align: center } .newArrival_item_lk { display: block; position: relative } .newArrival_item_msg { -webkit-transition: opacity .4s ease; transition: opacity .4s ease; opacity: 0; filter: alpha(opacity=0) } .o2_ie8 .newArrival_item_msg { filter: alpha(opacity=100) } .newArrival_item_new { display: inline-block; position: absolute; top: 10px; right: 0; width: 48px; height: 20px; line-height: 20px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAUCAMAAAD84U6VAAAA3lBMVEVHcEzzUCjpOCD8ZS32Vij7YSrjKRruQiPoMx/3WiryTCXwSCTmLR7sPSHtPiP2UijsPSDxSCT6XynnLR38Zi7tPyL8ai7yTSXnLx74XirySyT1VCf8ZyzkKhz1VCf3XCnwRyToOSDrPB/wSCPvRyTsPCHzTSXyTiboNR/kKRz8bC73Win9ZiztQSP2VyjiIxfpPSToMx7kKhz0WSzoOR78Zy38ZS3jJxrhJBjlLh3mMiDlLB3/VVXxSif5YS38ZSz7aS36XSnuRyTiJhnkLh3jKx38ZiviKBr8Zy38ZS3HXuWjAAAASnRSTlMAzMzNzMzMzMzMzMzMzMzMzMzMz8zZzMzMzMzZ68zC2czMzMLZwtnCw7Hxw7HCzO5A2upA2dbK1urehbsDS4W83N7M92lvadpvb9rYxuQAAAE8SURBVHjahZNrV4JAEIbX4ipmuZmaLClWEAYiWHm/de///6FmmToL6Dn7fN7nzMy+MwRZL4LlA3APRFF0y/F9/4bzCGzDzZoIxkGazpMkeQKuOHeA53m2ZwM9YL9nLJyQPz7i9LLWMQzjxB0Mzup1Xdctq1GttiuVc0VRTNO8Vql6ytg3vn9/mzpOSXgVwggESqnafHkefmb9xFPNqZUr9BvtbrFCkxvQ1SqYaUJwL/h7bKksgMHCFRnPNAAFlwuZ0S/OQGkmtFpsQhZxTsgP3S0OjcJwQ4I5f98RLWEBy0JhVBR2IVl+afkZoIIuhi4KYOy2KGgHv3R8BhCwJXkO/xVCHFqeAwowNH6rPAfxrVlw8hxEcHw15DmI1cDlk+cglk+styQHWO8f2QF5NqfHEQd05ETxRn3O4Yn+AsUUTS7xfkfuAAAAAElFTkSuQmCC); background-size: cover; background-position: 50%; color: white; opacity: 0; filter: alpha(opacity=0); -webkit-transition: all .4s ease; transition: all .4s ease; font-family: Arial-BoldMT, Microsoft Yahei, PingFangSC-Medium, sans-serif, serif } .o2_mini .newArrival_item_new { top: 0; right: 5px } .o2_ie8 .newArrival_item_new { filter: alpha(opacity=100) } @media screen and (-moz-min-device-pixel-ratio:2), screen and (-webkit-min-device-pixel-ratio:2), screen and (min--moz-device-pixel-ratio:2), screen and (min-device-pixel-ratio:2), screen and (min-resolution:2dppx), screen and (min-resolution:192dpi) { .newArrival_item_new { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAoCAMAAAA2TQ8LAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAABUUExUReMpG/BIJPxlLeYuHvZWKO1CI/dbKvpgKug0H0dwTPJMJes8IOw+I/JQKOg5IPxqLvVSKO9PL/9mLeIoHOQqHeQrHP1mLPxnLe9NJuQrHP9pLv1oLstp7sIAAAAcdFJOU8zMzMzMzMzMzADMzMzMzMzMEGRkwKamwEKGiIRllmXoAAAB1ElEQVR42rWXCXbDIAxEZWe125iA9+T+96xZkrEi0pf2yXOA+W8QMEAVk23nvu/OXk3TfC369joEFV51XdSLLouu1+s+6Bh1Gofh7ix3JObe7xado5pI8PbwDwivpz8Ap6SBMWhl3+24PyKA4P2RYJ8hlGU5AgHA1BEBgCUKEZI4AITjE1B6gEdMr4A22oMgZ1AkIQDWCAESoXQMYGfyevFHAjblmCGbAP6ludkVYA72AOQTHLBCYcgABAQCJAIALZEk8CGDsApwySRABOMegImwQCIBImAEYptmExgzRYDtIkBjF3HAaAOghb9Yod/PQRYA/7BIhAB8Bo1HPPxXU64/nIFJEYgFYBEA+PyqkBGo6ukp4Z+/7RCBE6S/GSqysM8DxC4txDnI7tIoSy0LwAhiBlGZAO8JjubMCv25DyIil+BOPfPX6AM+BGIzVugD+CdAB4DySQ4aAVDtAwCwRNp9IGag3QcJgG2q3gdBdxw03T7AQbPb7iKLy26LPjADrutN+sA4FM4mfTBaVOYmfeBQ+vp9gNKvpq36YMLDa5M+cOzpqN8HN/b41e+Dm+XPd+2T7OQHRLMPxin7hdLpA/mFAqLX6APxCZTf2H/2wbHMfGN/ADiBcC9pcTQXAAAAAElFTkSuQmCC) } } .newArrival_item_img { -webkit-transition: opacity .2s ease; transition: opacity .2s ease } .newArrival_item_img img { display: inline-block; width: 130px; height: 130px; margin-top: 10px } .o2_mini .newArrival_item_img img { width: 120px; height: 120px; margin-top: 0 } .newArrival_item_imgs:hover img { opacity: .8 } .newArrival_item_imgs_wrapper { position: relative; width: 86px; height: 173px; padding-left: 174px } .o2_mini .newArrival_item_imgs_wrapper { height: 147px; padding-left: 147px } .newArrival_item_imgs_1:after, .newArrival_item_imgs_2:after, .newArrival_item_imgs_3:after { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(109, 126, 146, .05); content: "" } .newArrival_item_imgs_1, .newArrival_item_imgs_1.lazyimg { position: absolute; width: 173px; height: 173px; left: 0; top: 0 } .o2_mini .newArrival_item_imgs_1, .o2_mini .newArrival_item_imgs_1.lazyimg { width: 146px; height: 146px } .newArrival_item_imgs_2, .newArrival_item_imgs_3 { position: relative; display: block; width: 86px; height: 86px } .o2_mini .newArrival_item_imgs_2, .o2_mini .newArrival_item_imgs_3 { width: 73px; height: 73px } .newArrival_item_imgs_2 { margin-bottom: 1px } .newArrival_item_desc { position: relative; width: 200px; height: 16px; left: -35px; line-height: 16px; letter-spacing: 0; font-size: 12px; font-family: Microsoft Yahei, PingFangSC-Medium, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif, serif; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; filter: alpha(opacity=0) } .o2_ie8 .newArrival_item_desc { width: 130px; left: 0; filter: alpha(opacity=100); font-family: Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif } .newArrival_item_price { margin-top: 20px; font-family: Arial-BoldMT, Microsoft Yahei, PingFangSC-Medium, sans-serif, serif; font-size: 18px; color: #e1251b; letter-spacing: 0 } .o2_ie8 .newArrival_item_price { font-family: Hiragino Sans GB, "\5B8B\4F53", sans-serif } .newArrival_item_name { position: relative; width: 200px; left: -35px; line-height: 19px; font-size: 14px; color: #333; -webkit-transition: color .2s ease; transition: color .2s ease; font-family: Microsoft Yahei, PingFangSC-Medium, sans-serif, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; filter: alpha(opacity=0) } .o2_ie8 .newArrival_item_name { width: 130px; left: 0; filter: alpha(opacity=100); font-family: Hiragino Sans GB, "\5B8B\4F53", sans-serif } .newArrival_item:hover .newArrival_item_img { opacity: .8 } .newArrival_item:hover .newArrival_item_name { color: #ea4a36 } .newArrival_slider .newArrival_item { -webkit-transition: all .4s ease; transition: all .4s ease; -webkit-transform: scale(.8); -ms-transform: scale(.8); transform: scale(.8); -webkit-transform-origin: center center; -ms-transform-origin: center center; transform-origin: center center } .newArrival_slider .newArrival_item.middleSlide { -webkit-transform: scale(1); -ms-transform: scale(1); transform: scale(1) } .newArrival_slider .newArrival_item.middleSlide .newArrival_item_desc, .newArrival_slider .newArrival_item.middleSlide .newArrival_item_msg, .newArrival_slider .newArrival_item.middleSlide .newArrival_item_name, .newArrival_slider .newArrival_item.middleSlide .newArrival_item_new { opacity: 1; filter: alpha(opacity=100) } .new_top_list { position: relative } .new_top_list .top_item { width: 260px; height: 70px; margin-bottom: 10px; margin-left: 15px } .o2_mini .new_top_list .top_item { width: 220px; height: 60px; margin-left: 10px } .new_top_list .top_list_boards { position: absolute; width: 272px; top: 182px; left: 15px } .o2_mini .new_top_list .top_list_boards { top: 162px; left: 10px } .new_top_list .top_list_boards_lk { position: relative; display: inline-block; width: 134px; height: 40px; margin: 0 2px 2px 0 } .top_tab { position: relative } .top_tab .tab_head { position: absolute; height: 20px; width: 280px; right: 5px; top: 0; line-height: 0; font-size: 0 } .o2_mini .top_tab .tab_head { width: 210px; right: 15px; height: 25px; text-align: right; overflow: hidden } .new_top { position: relative } .new_top .tab_body { position: absolute; top: 20px; margin-top: 10px } .new_top_list.skeleton-wrapper { position: absolute; top: 5px } .new_top.skeleton-box .new_top_list.skeleton-wrapper { position: absolute; top: 65px } .new_top { width: 290px; background: #fff } .o2_mini .new_top { width: 240px } .new_top_item_0 { margin-top: 20px } .new_top .tab_head { top: -10px } .new_top .tab_head_item { height: 26px } .elevator { position: absolute; top: 0; left: 50%; margin-left: 615px; -webkit-transition: -webkit-transform .5s ease; transition: -webkit-transform .5s ease; transition: transform .5s ease; transition: transform .5s ease, -webkit-transform .5s ease; z-index: 100 } .o2_mini .elevator { margin-left: 515px } .elevator_fix { position: fixed; top: 75px; -webkit-animation: eleShow .5s ease both; animation: eleShow .5s ease both } @-webkit-keyframes eleShow { 0% { top: 0 } to { top: 75px } } @keyframes eleShow { 0% { top: 0 } to { top: 75px } } .elevator_recommend { -webkit-transform: translateY(60px); -ms-transform: translateY(60px); transform: translateY(60px) } .elevator_list { overflow: hidden } .elevator_lk { position: relative; display: block; width: 38px; height: 38px; line-height: 19px; font-size: 14px; color: #333; padding: 10px; text-align: center; -webkit-transition: color .2s ease; transition: color .2s ease; background: #fff; z-index: 1 } .elevator_lk:focus { outline: 0 } .elevator_lk_txt { position: relative; z-index: 3 } .elevator_lk_bg { position: absolute; top: -1px; left: 0; right: 0; bottom: -1px; z-index: 2; background: transparent; -webkit-transition: background .2s ease; transition: background .2s ease } .elevator_lk_cur { color: #e1251b } .elevator_lk:after { position: absolute; display: inline-block; width: 40px; height: 1px; left: 50%; bottom: 0; margin-left: -20px; background: -webkit-gradient(linear, right top, left top, from(white), color-stop(#eeeeee), color-stop(#eeeeee), to(white)); background: linear-gradient(270deg, white, #eeeeee, #eeeeee, white); z-index: 1; content: "" } .elevator_lk:hover { color: #fff } .elevator_lk:hover .elevator_lk_bg { background: #ea4a36 } .elevator_lk2 svg { position: relative; display: block; width: 16px; height: 16px; fill: #333; margin: 0 auto 3px; -webkit-transition: fill .2s ease; transition: fill .2s ease; z-index: 3 } .elevator_lk2:hover svg { fill: #fff } .elevator_totop { display: block; height: 50px; padding-top: 10px; color: #e1251b; background: #fff; text-align: center; visibility: hidden; opacity: 0; -webkit-transform: translateY(-100%); -ms-transform: translateY(-100%); transform: translateY(-100%); -webkit-transition: all .2s ease; transition: all .2s ease } .elevator_fix .elevator_totop { visibility: visible; opacity: 1; -webkit-transform: translate(0); -ms-transform: translate(0); transform: translate(0) } .elevator_totop:focus { outline: 0 } .elevator_totop_icon { display: block; height: 22px; line-height: 22px; font-family: iconfont, sans-serif; font-size: 20px } .elevator_totop_txt { display: block; height: 18px; line-height: 18px; font-size: 14px } .elevator_totop:hover { color: #fff; background: #ea4a36 } .elevator_promotional { width: 58px; height: 60px; padding: 0 } .elevator_promotional:after { height: 1px; -webkit-transition: height .1s ease; transition: height .1s ease; -webkit-transition-delay: .1s; transition-delay: .1s } .elevator_promotional img { position: absolute; left: 0; top: 0; z-index: 0; width: 100% } .elevator_promotional.elevator_lk_cur:after, .elevator_promotional.hover:after { height: 0 } .elevator_promotional.hover img { z-index: 2 } #research { display: inline-block; width: 70px; height: 70px; margin-left: 675px; left: 50%; bottom: 8px; position: fixed; z-index: 100 } .o2_mini #research { margin-left: 575px } #research>.research_entry { display: inline-block; width: 70px; height: 70px } #research>.research_entry>img { display: inline-block; width: 100%; height: 100% } .promotional-top { height: 80px; display: block } .promotional-top .jd_container { height: 100%; position: relative } .promotional-top .jd_container .JD_close-button--square { position: absolute; top: 5px; right: 0 } .promotional-top--overseas { height: 150px !important } #app { position: relative; z-index: 10 } .jd_container { width: 1190px; margin-left: auto; margin-right: auto } .jd_container.floor { height: 340px; margin-top: 20px; margin-bottom: 20px } .o2_mini .jd_container { width: 990px } .o2_mini .jd_container.floor { height: 305px } .promotional-tag__618 { background-repeat: no-repeat; background-size: contain } .promotional-tag__618--square { width: 75px; height: 75px } .promotional-tag__618--rectangle { width: 190px; height: 80px } .text-tag { font-size: 12px; text-align: center; border-radius: 2px; padding: 0 2px; height: 18px; line-height: 17px; -webkit-box-sizing: border-box; box-sizing: border-box; border: 1px solid transparent; margin-right: 5px; display: inline-block } .text-tag:last-child { margin-right: 0 } .text-tag--origin { color: #e2231a; border-color: #e2231a } .text-tag--theme { color: #596fab; border-color: #596fab } .text-tag--nice-shop { color: #642b98; border-color: #642b98 } .JD_close-button--square { cursor: pointer; font-weight: 700; font-size: 14px; color: #fff; background: #2d2d2d; width: 20px; height: 20px; text-align: center; line-height: 20px; opacity: .3; filter: alpha(opacity=30) } .JD_close-button--square:after { content: "\E600"; font-family: iconfont, sans-serif; font-style: normal; -webkit-text-stroke-width: .2px; -moz-osx-font-smoothing: grayscale } .o2_ie8 #settleup:hover .cw-icon { border-bottom: 1px solid #ea4a36 } .o2_ie8 #settleup:hover .dropdown-layer { display: none !important } .o2_ie8 .iconfont-location { width: 14px; height: 14px; vertical-align: middle; display: inline-block; font-family: sans-serif !important; background-image: url(https://img11.360buyimg.com/jdphoto/s14x14_jfs/t1/76633/34/5368/365/5d384be8Eefb08ba7/7357bd6f51d5ce60.png) } .o2_ie8 .slider .slider_control_prev .iconfont { background-image: url(https://img11.360buyimg.com/jdphoto/s30x30_jfs/t1/52289/29/5821/249/5d385201Edd25d430/42dceb61a9328d89.png) } .o2_ie8 .slider .slider_control_next .iconfont, .o2_ie8 .slider .slider_control_prev .iconfont { width: 25px; height: 35px; vertical-align: middle; display: inline-block; font-family: sans-serif !important } .o2_ie8 .slider .slider_control_next .iconfont { background-image: url(https://img11.360buyimg.com/jdphoto/s30x30_jfs/t1/63212/31/5273/244/5d385236E82dd6219/3fc49c2193e2f681.png) } .o2_ie8 #settleup .cw-icon .iconfont { width: 16px; height: 16px; background-image: url(https://img11.360buyimg.com/jdphoto/s16x16_jfs/t1/69311/26/5387/326/5d38540fEc2fd1f40/00b2fb4640027f24.png) } .o2_ie8 #search .button .iconfont, .o2_ie8 #settleup .cw-icon .iconfont { vertical-align: middle; display: inline-block; font-family: sans-serif !important } .o2_ie8 #search .button .iconfont { width: 21px; height: 21px; background-image: url(https://img11.360buyimg.com/jdphoto/s21x21_jfs/t1/38356/10/12402/368/5d385011Ed1330166/235353cdfb6ebf01.png); width: 20px } .o2_ie8 #shortcut .fr .cw-icon .iconfont { width: 12px; height: 12px; vertical-align: middle; display: inline-block; font-family: sans-serif !important; background-image: url(https://img11.360buyimg.com/jdphoto/s12x12_jfs/t1/68469/5/5322/153/5d385111Ef5eb7812/0db0bb82846d3ad2.png) } .o2_ie8 .fs_act_banner_close.iconfont.J_fsbanner_close { width: 20px; height: 20px; vertical-align: middle; display: inline-block; font-family: sans-serif !important; background-image: url(https://img11.360buyimg.com/jdphoto/s20x20_jfs/t1/49020/9/5700/207/5d3916d8Ef9ae4d1d/f429e8401968bce2.png) }
2301_80339408/order
css/index.css
CSS
unknown
116,482
@charset "utf-8"; /* CSS Document */ /*首页样式*/ /*右侧随鼠标滚动的广告图片*/ .right{ top:50px; right:30px; position:absolute; z-index:3; } .dd_close{ width:35px; height:18px; text-align:center; border:solid 1px #999; background-color:#E0E0E0; top:0px; right:0px; position:absolute; } /*通栏广告样式*/ .dd_index_top_adver{ margin:5px 0px 5px 0px; clear:both; } #catList,#content,#silder{ float:left; } #catList{ width:180px; margin-right:10px; margin-top:10px; } #content{ width:540px; margin-right:10px; } #silder{ width:220px; margin-top:10px; } .book_sort{ border:solid 1px #999; margin-bottom:10px; } .book_sort_bg{ background-color:#fff0d9; padding-left:10px; color:#882D00; font-size:14px; height:25px; font-weight:bold; line-height:30px; } .book_sort_bottom{ margin:0px 10px 0px 10px; line-height:25px; border-bottom:solid 1px #666; } .book_cate{ padding:10px 0px 0px 10px; font-weight:bold; } .scroll_top{ background-image:url(../images/dd_scroll_top.gif); width:540px; height:51px; background-repeat:no-repeat; } .scroll_mid{ background-color:#f2f2f3; border-left:solid 1px #d6d5d6; border-right:solid 1px #d6d5d6; width:533px; height:185px; overflow:hidden; padding:5px 0px 5px 5px; position:relative; } .scroll_mid #scroll_img li{ margin-bottom:20px; } #dd_scroll{ /*FF*/ float:none; } *html #dd_scroll{ float:left; /*IE6*/ } *+html #dd_scroll{ float:left; /*IE7*/ } #scroll_number{ right:0; padding-right:10px; position:absolute; top:5px; } #scroll_number li{ width:13px; height:13px; text-align:center; border:solid 1px #999; margin-top:5px; font-size:12px; line-height:16px; cursor:pointer; } .scroll_number_out{ } .scroll_number_over{ background-color:#F96; color:#FFF; } .scroll_end{ background-image:url(../images/dd_scroll_end.gif); width:540px; height:8px; background-repeat:no-repeat; margin-bottom:10px; } .book_new{ background-image:url(../images/dd_book_bg.jpg); background-repeat:repeat-x; height:25px; line-height:30px; clear:both; } .book_left{ margin:0px 50px 0px 10px; color:#882D00; font-size:14px; font-weight:bold; float:left; } .book_type{ float:left; margin-left:3px; background-image:url(../images/dd_book_bg1.jpg); background-repeat:no-repeat; width:40px; height:23px; margin-top:2px; text-align:center; cursor:pointer; } .book_type_out{ float:left; margin-left:3px; background-image:url(../images/dd_book_bg2.jpg); background-repeat:no-repeat; width:40px; height:23px; margin-top:2px; text-align:center; color:#882D00; font-weight:bold; cursor:pointer; } .book_right{ float:right; margin-right:5px; } .book_class{ clear:both; margin:0 5px; } #dome{ overflow:hidden; /*溢出的部分不显示*/ height:250px; padding:5px; } #book_history dt,#book_family dt,#book_novel dt,#book_culture dt{ float:left; width:90px; text-align:center; } #book_history dd,#book_family dd,#book_novel dd,#book_culture dd{ float:left; width:170px; margin:0px 0px 5px 0px; border:2px #fff solid; } .book_none{ display:none; } .book_show{ display:block; } .book_title{ color:#1965b3; font-size:14px; } .book_publish{ color:#C00; } #book_focus dt{ width:125px; margin:5px 0px 0px 7px; float:left; text-align:center; height:90px; display:inline; } #book_focus dd{ width:125px; margin:5px 0px 0px 7px; float:left; height:40px; display:inline; } #express li{ height:25px; border-bottom:dashed 1px #999; margin:0px 5px 0px 5px; line-height:28px; } .book_express_avder{ margin:5px 0px 5px 0px; text-align:center; } .book_seven_title{ background-color:#518700; color:#ffffff; font-size:14px; height:25px; padding-left:10px; line-height:28px; } .book_seven_border{ background-color:#f2f4df; margin:3px; } .book_seven_top{ background-image:url(../images/dd_seven_bg.jpg); background-repeat:repeat-x; height:18px; clear:both; } .book_seven_content{ border:solid 1px #bdc1c4; border-top:0px; clear:both; padding:3px; height:375px; } #book_seven_cate li{ float:right; background-image:url(../images/dd_seven_bg1.jpg); background-repeat:no-repeat; width:35px; height:18px; text-align:center; cursor:pointer; } #book_seven_cate li:hover{ float:right; background-image:url(../images/dd_seven_bg2.jpg); background-repeat:no-repeat; width:35px; height:18px; text-align:center; color:#882D00; } .book_seven_content_left{ float:left; width:22px; } .book_seven_content_right{ width:175px; float:left; } #book_seven_number dt{ height:85px; } #book_seven_number dd{ height:25px; } #book_seven_hearten dt{ width:55px; text-align:center; float:left; } #book_seven_hearten dd{ width:120px; float:left; height:85px; } #book_seven_hearten ul li{ line-height:24px; } /*网页版权部分样式开始*/ .footer_top,.footer_end{ width:800px; margin:0px auto 0px auto; clear:both; text-align:center; } .footer_top{ color:#9B2B0F; } .footer_dull_red,.footer_dull_red:hover{ color:#9B2B0F; margin:0px 8px 0px 8px; } /*网页版权部分样式结束*/ /*当当网商品展示页样式开始*/ .current_place{ padding-left:10px; clear:both; height:30px; } #product_left{ width:180px; float:left; } #product_catList{ border:solid 1px #d3d3d3; background-color:#fff4d7; } .product_catList_top{ color:#FFF; height:23px; font-size:14px; padding-left:10px; background-image:url(../images/product_left_top_bg.gif); background-repeat:repeat-x; line-height:28px; margin-bottom:10px; } #product_catList_class li{ height:25px; padding-left:10px; } .product_catList_end{ border:solid 1px #d3d3d3; margin:10px 0px 10px 0px; text-align:center; } #product_storyList{ border:solid 1px #a1a1a1; float:right; width:770px; margin-bottom:20px; } #product_storyList_top{ background-color:#f9d8a9; border-bottom:solid 1px #a1a1a1; height:30px; } #product_storyList_top li{ float:left; line-height:28px; padding-left:5px; } #product_storyList_top img{ padding-top:5px;} #product_array{ background-color:#f9d8a9; border-bottom:solid 1px #a1a1a1; height:30px; padding-right:15px; } #product_array a{ line-height:22px; margin-right:0px; margin-top:5px; padding:0 5px; float:right; background:none; border:#808080 1px solid; } #product_array a.click{ background:#F96; border:#F04E23 1px solid; } .product_storyList_content{ margin:20px 10px 20px 10px; } .product_storyList_content .big_img_list{ width:25%; height:240px; background:#fff; float:left; overflow:hidden; text-align:left; margin:10px auto; position:relative; } .product_storyList_content .big_img_list.over{ overflow:visible; z-index:99; } .product_storyList_content .big_img_list ul{ background:#fff; padding:0 5px 5px; } .product_storyList_content .big_img_list ul.over{ border:2px solid #F96; position:absolute; z-index:99; } .product_storyList_content .big_img_list li{ padding:2px 5px; font-size:12px; } .product_storyList_content .big_img_list li a{ padding:2px 10px; font-size:12px; } .product_storyList_content .big_img_list .bookImg img{ width:150px; height:150px; } .product_storyList_content .big_img_list dl{ width:100%; overflow:hidden; } .product_storyList_content .big_img_list dl dd{ float:left; margin-left:10px; } .product_storyList_content_bottom{ border-bottom:1px solid #666; clear:both; margin-bottom:20px; } .product_storyList_content_left{ width:100px; text-align:center; float:left; } .product_storyList_content_right{ float:left; width:640px; } .product_storyList_content_dash{ border-bottom:dashed 1px #666; } .blue_14{ color:#1965b3; font-size:14px; text-decoration:none; } .blue_14:hover{ color:#1965b3; text-decoration:underline; font-size:14px; } .product_content_dd dd{ float:right; padding-right:10px; } .product_content_delete{ text-decoration:line-through; } #product_page li{ float:left; } .product_page{ width:16px; height:15px; text-decoration:none; float:left; display: block; background-color:#FC6; margin:0px 3px 1px 0px; text-align:center; } .product_page:hover{ width:16px; height:15px; text-decoration:none; float:left; display: block; background-color:#900; margin:0px 3px 1px 0px; color:#FFF; } /*购物车页面样式开始*/ .shopping_commend{ background-image:url(../images/shopping_commend_bg.gif); background-repeat:repeat-x; height:21px; border:solid 1px #999; } .shopping_commend_left{ float:left; padding-left:10px; } .shopping_commend_right{ float:right; padding-right:10px; margin-top:3px; } .shopping_commend_right img{ cursor:pointer; } #shopping_commend_sort{ border:solid 1px #999; border-top:0; padding:5px 20px 5px 20px; height:120px; } .shopping_commend_sort_left{ float:left; width:450px; } .shopping_commend_sort_mid{ float:left; width:15px; background-image:url(../images/shopping_dotted.gif); background-repeat:repeat-y; height:120px; } .shopping_commend_list_1,.shopping_commend_list_2,.shopping_commend_list_3,.shopping_commend_list_4{ float:left; height:30px; line-height:30px; } .shopping_commend_list_1{ width:240px; } .shopping_commend_list_2{ width:70px; text-align:center; text-decoration:line-through; color:#999; } .shopping_commend_list_3{ width:70px; text-align:center; } .shopping_commend_list_4{ text-align:center; width:65px; } .shopping_yellow{ color:#ED610C; } .shopping_yellow:hover{ color:#ED610C; text-decoration:underline; } .shopping_list_top{ clear:both; font-size:14px; font-weight:bold; margin-top:20px; } .shopping_list_border{ border:solid 2px #999; } .shopping_list_title{ background-color:#d8e4c6; height:25px; } .shopping_list_title li{ float:left; line-height:28px; } .shopping_list_title_1{ width:420px; padding-left:30px; text-align:left; } .shopping_list_title_2{ width:120px; text-align:center; } .shopping_list_title_3{ width:120px; text-align:center; } .shopping_list_title_4{ width:120px; text-align:center; } .shopping_list_title_5{ width:70px; text-align:center; } .shopping_list_title_6{ width:70px; text-align:center; } .shopping_product_list{ background-color:#fefbf2; height:40px; } .shopping_product_list input{ width:30px; height:15px; border:solid 1px #666; text-align:center; } .shopping_product_list td{ line-height:35px; border-bottom:dashed 1px #CCC; } .shopping_product_list_1{ width:420px; padding-left:30px; text-align:left; } .shopping_product_list_2{ width:120px; text-align:center; color:#464646; } .shopping_product_list_3{ width:120px; text-align:center; color:#464646; } .shopping_product_list_4{ width:120px; text-align:center; color:#191919; } .shopping_product_list_5{ width:70px; text-align:center; } .shopping_product_list_6{ width:70px; text-align:center; } .shopping_list_end{ background-color:#cddbb8; height:84px; } .shopping_list_end li{ float:right; } .shopping_list_end_1{ margin:10px 10px 0px 10px; } .shopping_list_end_2{ font-weight:bold; color:#BD3E00; font-size:14px; margin:15px 10px 0px 0px; } .shopping_list_end_3{ font-weight:bold; font-size:14px; margin:15px 0px 0px 15px; } .shopping_list_end_4{ border-right:solid 1px #666666; margin:10px 0px 0px 15px; padding-right:10px; } .shopping_list_end_yellow{ color:#BD3E00; } .shopping_list_end #removeAllProduct{ line-height:24px; padding:0 5px; margin-left:20px; color:#1965B3; } .empty_product{ height:300px;background:#d3d3d3;font-size:16px;text-align:center;position:relative; } .empty_product div{ padding-top:120px; } .empty_product a{ color:#1965B3; } /*注册页面样式*/ #register_header{ background-image:url(../images/register_head_bg.gif); background-repeat:repeat-x; height:48px; border:solid 1px #CCC; } .register_header_left{ float:left; margin:7px 0px 0px 40px; display:inline; } .register_header_right{ float:right; margin:25px 20px 0px 0px; display:inline; } .register_content{ width:950px; margin:15px auto 15px auto; } .register_top_bg{ background-image:url(../images/register_top_bg.gif); background-repeat:no-repeat; height:5px; } .register_mid_bg{ border:solid 1px #a3a3a3; border-top:0px; height:32px; } .register_mid_bg li{ float:left; } .register_mid_left{ background-image:url(../images/register_tag_left.gif); height:32px; width:207px; background-repeat:no-repeat; padding:0px 0px 0px 106px; font-size:14px; color:#501500; font-weight:bold; line-height:35px; } .register_mid_mid{ background-image:url(../images/register_tag_mid.gif); height:32px; width:204px; background-repeat:no-repeat; padding:0px 0px 0px 115px; font-size:14px; line-height:35px; } .register_mid_right{ background-image:url(../images/register_tag_right.gif); height:32px; width:316px; background-repeat:no-repeat; font-size:14px; line-height:35px; text-align:center; } .register_top_bg_two_left{ float:left; background-image:url(../images/register_cont.gif); width:1px; height:406px; background-repeat:no-repeat; } .register_top_bg_two_right{ float:right; background-image:url(../images/register_cont.gif); width:1px; height:406px; background-repeat:no-repeat; } .register_top_bg_mid{ background-image:url(../images/register_shadow.gif); background-repeat:repeat-x; } .register_title_bg{ background-image:url(../images/register_pic_01.gif); background-position:123px 30px; background-repeat:no-repeat; padding:42px 0px 0px 202px; color:#C30; } .register_dotted_bg{ background-image:url(../images/register_dotted.gif); background-repeat:repeat-x; height:1px; margin:0px 20px 20px 20px; } .register_message{ float:left; height:300px; width:900px; } .register_row{ clear:both; } .register_row dt{ float:left; width:200px; height:30px; text-align:right; font-size:14px; } .register_row dd{ float:left; margin-right:5px; display:inline; } .register_input{ width:200px; height:18px; border:solid 1px #999; margin:0px 0px 8px 0px; } .registerBtn{ height:35px; margin:10px 0px 10px 200px; clear:both; } /*注册页面提示样式*/ .register_input_Blur{ background-color:#fef4d0; width:200px; height:18px; border:solid 1px #999; margin:0px 0px 8px 0px; } .register_input_Focus{ background-color:#f1ffde; width:200px; height:18px; border:solid 1px #999; margin:0px 0px 8px 0px; } .register_prompt{ font-size:12px; color:#999; } .register_prompt_error{ font-size:12px; color:#C8180B; border:solid 1px #999; background-color:#fef4d0; padding:0px 5px 0px 5px; height:18px; } .register_prompt_ok{ background-image:url(../images/register_write_ok.gif); background-repeat:no-repeat; width:15px; height:11px; margin:5px 0px 0px 5px; } /*登录页面样式*/ .login_header_left{ float:left; margin:30px 10px 0px 100px; } .login_header_mid{ float:left; margin:55px 0px 0px 0px; } .login_header_right{ float:right; margin:50px 60px 0px 0px; } .login_main_left{ float:left; } .login_main_left img{ float:left; border:0px; } .login_main_end{ margin:0px 0px 0px 30px; width:540px; } .login_green{ margin:20px 0px 20px 0px; float:left; width:150px; } .login_green dt{ color:#519403; font-weight:bold; } .login_green dd{ color:#666666; line-height:25px; } .login_main_dotted{ float:left; background-image:url(../images/shopping_dotted.gif); width:1px; height:90px; margin:20px 15px 20px 15px; } .login_main_mid{ border:solid 1px #666; float:left; width:300px; padding:10px 5px 10px 5px; } .login_main_right{ float:left; width:74px; } .login_main_right img{ border:0px; } .login_content_top{ background-image:url(../images/login_icon_bg_01.gif); background-position:-300px -30px; background-repeat:no-repeat; padding:10px 0px 0px 35px; font-weight:bold; font-size:14px; color:#900; } .login_content_line{ background-image:url(../images/login_icon_bg_02.gif); background-position:0px -195px; background-repeat:repeat-x; height:3px; margin:0px 0px 30px 0px; } .login_content{ clear:both; margin:10px 0px 0px 0px; } *html .login_content{/*IE6*/ display:inline; } *+html .login_content{/*IE7*/ display:inline; } .login_content dt{ font-size:14px; height:30px; text-align:right; width:150px; float:left; } .login_content dd{ float:left; } .login_content_input{ width:120px; height:16px; border:solid 1px #999; } .login_content_input_Focus{ background-color:#f1ffde; width:120px; height:16px; border:solid 1px #999; } .login_btn_out{ background-image:url(../images/login_icon_bg_01.gif); background-position:0px -30px; background-repeat:no-repeat; width:77px; height:26px; border:0px; cursor:pointer; } .login_btn_over{ background-image:url(../images/login_icon_bg_01.gif); background-position:-78px -30px; background-repeat:no-repeat; width:77px; height:26px; border:0px; cursor:pointer; } .login_content_dotted{ background-image:url(../images/register_dotted.gif); height:1px; background-repeat:repeat-x; margin:60px 0px 0px 0px; overflow:hidden; /*使div的高度为1px*/ } .login_content_end_bg{ background-image:url(../images/login_icon_bg_02.gif); background-repeat:repeat-x; background-position:0px 0px; padding:10px 20px 10px 20px; } .login_content_end_bg_top{ clear:both; } .login_content_bold{ font-weight:bold; color:#333; } .login_content_end_bg_end{ clear:both; text-align:right; padding:10px; } .login_register_out{ background-image:url(../images/login_icon_bg_01.gif); background-position:0px -3px; background-repeat:no-repeat; width:144px; height:26px; border:0px; cursor:pointer; } .login_register_over{ background-image:url(../images/login_icon_bg_01.gif); background-position:-144px -3px; background-repeat:no-repeat; width:144px; height:26px; border:0px; cursor:pointer; }
2301_80339408/order
css/layout.css
CSS
unknown
20,420
.checkout h5 { font-weight: normal; font-size: 16px; margin: 0; } .tit-txt { font-weight: normal; font-size: 16px; } .hr { height: 1px; background-color: #eee; } a { color: #666; } .top { background-color: #f1f1f1; } .logoArea { overflow: hidden; position: relative; } .logo { background: url(../img/icons.png) no-repeat; background-position: -370px 5px; width: 177px; height: 75px; } .logo .title { font: 19px "微软雅黑"; position: absolute; top: 24px; left: 190px; } .search { position: absolute; right: 0; top: 22px; font-size: 16px; } .search .btn-danger { font-size: 16px; } .checkout { margin: 20px 0; } .checkout-steps { border: 1px solid #eee; padding: 25px; font-family: "微软雅黑"; } .step-tit { line-height: 36px; margin: 15px 0; } .step-cont { margin: 0 10px 0 20px; } .step-cont ul li { list-style-type: none; overflow: hidden; } .step-cont .con { float: left; padding: 0; margin: 5px 0; } .seven { color: #ea4a36; } .price { font: 14px "微软雅黑"; line-height: 30px; color: #e12228; } .yui3-g { margin: 10px 0; } ul.addr-detail li { width: 99%; margin: 10px 0; } .recommendAddr { margin-top: 10px; } ul.payType li { position: relative; display: inline-block; padding: 5px 20px; border: 1px solid #eee; *display: inline; _zoom: 1; *margin: 5px 10px; cursor: pointer; } .step-cont li.selected { border: 1px solid #e12228; } .step-cont li.selected span { width: 13px; height: 13px; display: none; position: absolute; right: 0; _right: -1px; bottom: 0; _bottom: -1px; overflow: hidden; background: url(../img/choosed.png) no-repeat; } .step-cont li.selected span { display: block; } .addr-item .name { width: 100px; text-align: center; border: 1px solid #eee; } .addressInfo .sui-modal { width: 565px; } .addr-item .name a { display: block; padding: 5px 0; position: relative; outline: 0; text-decoration: none; color: inherit; } .addr-item .name.selected { border: 1px solid #e12228; } .addr-item .name a span { width: 13px; height: 13px; display: none; position: absolute; right: 0; _right: -1px; bottom: 0; _bottom: -1px; overflow: hidden; background: url(../img/choosed.png) no-repeat; } .addr-item .name.selected span { display: block; } .addr-item .address { line-height: 30px; margin-left: 10px; padding-left: 5px; width: 55%; } .addr-item .address:hover { cursor: pointer; } .addr-item .address .edittext { padding-left: 15px; visibility: hidden; } .address-hover { background-color: #ddd; } .address-hover .edittext { visibility: visible !important; } .addr-item .address .base { padding: 4px; margin-left: 10px; background-color: #878787; color: #fff; } .payshipInfo span { font-weight: normal; font-size: 14px; } ul.send-detail li { margin-top: 10px; line-height: 30px; } .sendType .express { border: 1px solid #eee; width: 120px; text-align: center; margin-right: 10px; } .sendType, .sendGoods { padding: 15px; } .sendType { background: #f4f4f4; margin-bottom: 2px; } .sendGoods { background: #f5f5f5; } .sendGoods ul li { margin-top: 0; } .num, .exit { text-align: center; } .order-summary { overflow: hidden; padding-right: 20px; font-size: 14px; } .list, .trade { line-height: 26px; } .list span { float: left; width: 160px; } .list em { font-family: "微软雅黑"; } .trade { padding: 10px; margin: 10px 0; text-align: right; background-color: #f4f4f4; border: 1px solid #eee; } .trade .fc-receiverInfo { color: #999; } .submit .btn-xlarge { padding: 12px 45px; float: right; margin: 0 0 10px; font: 16px "微软雅黑"; font-weight: 400; border-radius: 0; background-color: #2390e4; border: 1px solid #2390e4; } .number { color: red; } .step-tit h5 span { float: right; } .step-tit h5 span a { color: #555; cursor: pointer; text-decoration: none; } .step-tit h5 span a:hover { color: red; } .payType { margin-bottom: 10px; } .buyMessage { margin-top: 20px; border: 1px solid #eee; } .buyMessage span { display: block; border-bottom: 1px solid #eee; padding: 0 10px; } .buyMessage .remarks-cont { width: 97%; border: 0; line-height: 1.8; padding: 10px; } textarea:focus { outline: none; }
2301_80339408/order
css/order.css
CSS
unknown
5,026
/*!plugins/normalize/normalize.css*/ /*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */ html { font-family: sans-serif; line-height: 1.15; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; } body { margin: 0; } article, aside, footer, header, nav, section { display: block; } h1 { font-size: 2em; margin: 0.67em 0; } figcaption, figure, main { display: block; } figure { margin: 1em 40px; } hr { box-sizing: content-box; height: 0; overflow: visible; } pre { font-family: monospace, monospace; font-size: 1em; } a { background-color: transparent; -webkit-text-decoration-skip: objects; } a:active, a:hover { outline-width: 0; } abbr[title] { border-bottom: 0; text-decoration: underline; text-decoration: underline dotted; } b, strong { font-weight: inherit; } b, strong { font-weight: bolder; } code, kbd, samp { font-family: monospace, monospace; font-size: 1em; } dfn { font-style: italic; } mark { background-color: #ff0; color: #000; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } audio, video { display: inline-block; } audio:not([controls]) { display: none; height: 0; } img { border-style: none; } svg:not(:root) { overflow: hidden; } button, input, optgroup, select, textarea { font-family: sans-serif; font-size: 100%; line-height: 1.15; margin: 0; } button, input { overflow: visible; } button, select { text-transform: none; } button, html [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; } button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; } button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; } fieldset { border: 1px solid silver; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; } progress { display: inline-block; vertical-align: baseline; } textarea { overflow: auto; } [type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; } [type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; } [type="search"] { -webkit-appearance: textfield; outline-offset: -2px; } [type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } details, menu { display: block; } summary { display: list-item; } canvas { display: inline-block; } template { display: none; } [hidden] { display: none; } /*!components/css-modules/base.css*/ body, html { margin: 0; padding: 0; font: 12px "宋体"; color: #666; } .py-container { width: 1200px; margin: 0 auto; } h1, h2, h3, h4, h5 { font-family: "微软雅黑"; font-weight: 400; } h3 { font-size: 18px; } h4 { font-size: 16px; } h5 { font-size: 14px; } h3, p { margin: 5px 0; } .top, .sort, .show, .like, .fun, .floor, .brand, .footer { height: auto; } .clearfix { clear: both; } .bold { font-weight: 700; } .tip { font-size: 12px; font-weight: 400; } .fl { float: left; } .fr { float: right; } a { color: #7cc815; } a:hover { color: #7cc815; } em { font-style: normal !important; } i { font-style: normal !important; } /*!components/css-modules/nav.css*/ div.yui3-g>div.yui3-u { height: 100%; } ul.yui3-g>li { height: 100%; } ul.brand-list li { height: 57px; line-height: 58px; } .yui3-u { _zoom: 1; *display: inline; } .Left { width: 210px; } .Center { width: 740px; position: relative; z-index: 99; } .Right { width: 250px; position: relative; } .Rit {} .sui-form { margin: 0; } .top { background-color: #e3e4e5; line-height: 30px; } .shortcut { height: 30px; } .Logo { position: relative; height: 105px; } .NavList { height: 45px; } .SortList { height: 460px; } .space { width: 1px; height: 13px; background: #666; margin: 8px 10px; } .typelist { width: 670px; overflow: hidden; } .typelist ul { margin-left: -1px; } .shortcut ul { height: 30px; } .shortcut ul li { line-height: 30px; } .shortcut ul li span { border-left: 1px solid #b3aeae; padding: 0 10px; } .f-item, .Brand-item, .grid-service-item { list-style-type: none; float: left; position: relative; } .f-item .service { display: none; position: absolute; right: -12px; width: 120px; padding: 0; z-index: 2; background-color: #eaeaea; color: #626060; padding-left: 25px; } .f-item .service li { list-style-type: none; float: left; margin-right: 8px; } .f-item .service li a { text-decoration: none; } .logo-bd { display: block; background: url(../img/Logo.png) no-repeat center/contain; width: 172px; height: 47px; margin: 25px auto; } .searchArea { position: absolute; right: 0; } .searchArea .search { margin: 35px auto 0; } .search .input-append .input-error { border-radius: 0; padding: 5px; border: 2px solid #F4A951 !important; } .search .input-append .btn-danger { border-radius: 0; border-color: #F4A951; background: #F4A951; font-family: "微软雅黑"; line-height: 22px; height: 36px; } .NavList .all-sort { background: #F4A951; color: #fff; text-align: center; } .all-sort h4 { margin: 12px 0; } .SortList .all-sort-list { background: #77b72c; } .navArea ul.nav li { font: 16px "微软雅黑"; padding: 0 22px; line-height: 45px; } .navArea ul.nav li a { display: block; width: 80px; text-align: center; color: #333; text-decoration: none; } .navArea ul.nav li a:hover { background: #F4A951; color: #fff; } .brand ul.Brand-list>li { width: 120px; } .Mod-service ul.Mod-Service-list>li { width: 230px; } .footer { background-color: #eaeaea; } .footer .footlink { margin: 0 15px; } .Mod-list, .Mod-service, .Mod-copyright { padding: 20px; } .Mod-service { overflow: hidden; padding: 15px 10px; } .Mod-service ul.Mod-Service-list li .intro { width: 170px; margin: 0 auto; } .intro1, .intro2, .intro3, .intro4, .intro5 { overflow: hidden; } .serivce-item, .service-text { margin-top: 15px; padding-left: 10px; } .service-text h4 { margin: 0; } .grid-service-item .serivce-item { background-image: url(../img/icons.png); width: 56px; height: 50px; } .intro1 .serivce-item { background-position: 305px 0; } .intro2 .serivce-item { background-position: 305px -50px; } .intro3 .serivce-item { background-position: 305px -103px; } .intro4 .serivce-item { background-position: 305px -153px; } .intro5 .serivce-item { background-position: 305px -205px; } .Mod-list { border-bottom: 1px solid #e4e1e1; border-top: 1px solid #e4e1e1; } .Mod-list .yui3-g { padding-left: 30px; } .Mod-list h4 { font-size: 16px; font-weight: 400; } .Mod-copyright ul.helpLink li { list-style-type: none; display: inline; _zoom: 1; *display: inline; } .Mod-copyright ul.helpLink li .space { border-left: 1px solid #666; } .Mod-copyright { text-align: center; } #service span { color: #7cc815; cursor: pointer; } #service ul li a { color: #77b72c; } #service ul li a:hover { color: #68baed; } .all-sort { cursor: pointer; } .sort { display: none; width: 210px; height: 461px; position: absolute; background: #F4A951; z-index: 999; } .sort .all-sort-list2 { position: relative; border-top: 0; z-index: 9999; letter-spacing: 0; font-family: "Microsoft Yahei"; } .sort .all-sort-list2 .item h3 { line-height: 30px; font-size: 14px; font-weight: 400; overflow: hidden; padding: 0 20px; margin: 0; } .sort .all-sort-list2 .item h3 a { color: #fff; } .sort .all-sort-list2 .hover h3 a { color: #555; } .sort .all-sort-list2 .hover h3 { position: relative; z-index: 13; background: #f7f7f7; border-color: #ddd; } .sort .all-sort-list2 .item span { padding: 0 5px; color: #77b72c; } .sort .all-sort-list2 .item a { color: #555; text-decoration: none; } .sort .all-sort-list2 .item-list { display: none; position: absolute; width: 734px; min-height: 460px; _height: 200px; background: #f7f7f7; left: 210px; border: 1px solid #eee; top: 0; z-index: 9999 !important; } .sort .all-sort-list2 .item-list .close { position: absolute; width: 26px; height: 26px; color: #fff; cursor: pointer; top: -1px; right: -26px; font-size: 20px; line-height: 20px; text-align: center; font-family: "Microsoft Yahei"; background: rgba(0, 0, 0, 0.6); background-color: transparent\9; filter: progid: DXImageTransform.Microsoft.Gradient(GradientType=1, startColorstr='#60000000', endColorstr='#60000000'); } .item-list .subitem { float: left; width: 650px; padding: 0 4px 0 8px; } .item-list .subitem dl { border-top: 1px solid #eee; padding: 6px 0; overflow: hidden; zoom: 1; } .item-list .subitem .fore1 { border-top: 0; } .item-list .subitem dt { float: left; width: 54px; line-height: 22px; text-align: right; padding: 3px 6px 0 0; font-weight: 700; } .item-list .subitem dt a { color: #77b72c; text-decoration: underline; } .item-list .subitem dd { float: left; width: 415px; padding: 3px 0 0; overflow: hidden; } .item-list .subitem dd em { float: left; height: 14px; line-height: 14px; padding: 0 8px; margin-top: 5px; border-left: 1px solid #ccc; } .item-list .subitem dd em a, .item-list .cat-right dd a { color: #666; text-decoration: none; } .item-list .subitem dd em a:hover, .item-list .cat-right dd a:hover { font-weight: 400; text-decoration: underline; } .item-list .cat-right { float: right; width: 300px; } .item-list .cat-right dl { width: 194px; padding: 6px 8px; } .item-list .cat-right dd { padding-top: 6px; line-height: 22px; overflow: hidden; padding: 3px 0 0; } .item-list .cat-right dt { padding: 3px 6px 0 0; font-weight: 700; color: #77b72c; } .item-list .cat-right dd a:hover { color: #666; } .carousel-indicators { position: absolute; bottom: 22px; left: 50%; top: auto; width: 60%; margin-left: -4%; text-align: center; list-style: none; } /*!components/ui-modules/cartPanelView/cartPanelView.css*/ .J-global-toolbar div a { margin: 0; padding: 0; font: 12px/150% Arial, Verdana, "宋体"; color: #666; } .toolbar-wrap { position: fixed; top: 0; right: 0; z-index: 9990; width: 35px; height: 100%; } .toolbar-wrap a { text-decoration: none; } .toolbar { position: absolute; right: 0; top: 0; width: 29px; height: 100%; border-right: 6px solid #7a6e6e; } .toolbar-panels { position: absolute; left: 35px; top: 0; width: 270px; height: 100%; z-index: 2; background: #eceaea none repeat scroll 0 0; } .toolbar-panel { width: 270px; height: 100%; position: absolute; background: #eceaea none repeat scroll 0 0; } .tbar-panel-header { position: relative; width: 270px; height: 40px; line-height: 40px; background: #eceaea none repeat scroll 0 0; font-family: "microsoft yahei"; font-weight: 400; margin: 0; padding: 0; } .tbar-panel-header .title { display: inline-block; height: 40px; color: #5e5050; font: 16px/40px "微软雅黑"; } .tbar-panel-cart .tbar-panel-header i { width: 20px; height: 18px; background-position: 0 0; margin-top: 11px; } .tbar-panel-header i { margin-right: 4px; margin-left: 10px; vertical-align: top; } .tbar-panel-header i, .tbar-panel-header .title em { display: inline-block; vertical-align: top; } .tbar-panel-header .close-panel { width: 12px; height: 12px; background-position: 0 -250px; position: absolute; right: 8px; top: 16px; cursor: pointer; transition: transform 0.2s ease-out 0s; } .tbar-panel-main { position: relative; margin: 0; padding: 0; font: 12px/150% Arial, Verdana, "宋体"; color: #666; } .tbar-tipbox { display: block; } .tbar-panel-content { width: 270px; overflow-y: auto; overflow-x: hidden; position: relative; } .tbar-tipbox .tip-inner { padding: 6px 5px; border: 1px solid #edd28b; background: #fffdee none repeat scroll 0 0; text-align: center; } .tbar-tipbox .tip-text { display: inline-block; line-height: 20px; vertical-align: middle; color: #333; } .tbar-tipbox .tip-btn { display: inline-block; height: 20px; line-height: 20px; padding: 0 5px; margin-left: 5px; color: #fff; vertical-align: middle; background: #ea4a36 none repeat scroll 0 0; } .tbar-panel-cart .tbar-panel-footer { height: 50px; background-color: #eceaea; margin: 0; padding: 0; } .tbar-checkout { height: 40px; padding: 5px 110px 5px 5px; position: relative; } .tbar-checkout .jtc-number strong { font-family: verdana; color: #ea4a36; } .tbar-checkout .jtc-number { line-height: 20px; font: 12px/150% Arial, Verdana, "宋体"; color: #666; } .tbar-checkout .jtc-sum { line-height: 20px; font: 12px/150% Arial, Verdana, "宋体"; color: #666; } .tbar-checkout .jtc-sum strong { font-family: verdana; color: #ea4a36; } .tbar-checkout .jtc-btn { position: absolute; right: 5px; top: 7px; width: 110px; height: 35px; font: 16px/35px "微软雅黑"; text-align: center; background: #ea4a36 none repeat scroll 0 0; color: #fff; } .tbar-cart-list { width: 100%; margin: 0; padding: 0; font: 12px/150% Arial, Verdana, "宋体"; color: #666; } .tbar-cart-item { padding: 0 5px; margin-bottom: 10px; background: #fff none repeat scroll 0 0; } .jtc-item-promo { padding: 12px 0 12px 57px; border-bottom: 1px dashed #e1e1e1; } .jtc-item-promo .promo-tag { position: relative; float: left; width: 40px; height: 20px; margin-top: -1px; margin-left: -57px; margin-right: 17px; text-align: center; font: 12px/20px "宋体"; color: #fff; background-color: #f58813; } .jtc-item-promo .promo-text { height: 18px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 12px/18px verdana; } .jtc-item-goods { padding: 10px 0; position: relative; overflow: hidden; } .jtc-item-goods .p-img { float: left; width: 50px; height: 50px; border: 1px solid #eee; padding: 0; margin-right: 5px; } .jtc-item-goods .p-img img { width: 50px; height: 50px; } img { border: 0 none; vertical-align: middle; } .jtc-item-goods .p-name { height: 32px; line-height: 16px; margin-bottom: 4px; overflow: hidden; } .jtc-item-goods .p-name a { color: #333; } .jtc-item-goods .p-price { height: 16px; padding-right: 65px; overflow: hidden; font: 12px/16px verdana; color: #666; } .jtc-item-goods .p-price strong { color: #ea4a36; font-weight: 400; } .jtc-item-goods .p-del { position: absolute; right: 10px; top: 46px; width: 35px; height: 16px; line-height: 16px; color: #005aa0; text-align: right; display: none; } .tbar-panel-history div { padding: 0; } .jt-history-wrap { width: 235px; margin: 0 auto; } .tbar-panel-history ul { overflow: hidden; margin-right: -15px; margin-top: 0; list-style: outside none none; padding: 0; } .tbar-panel-history .tbar-panel-header i { width: 20px; height: 17px; margin-top: 11px; background-position: 0 -100px; } .tbar-panel-follow .tbar-panel-header i { width: 20px; height: 17px; margin-top: 11px; background-position: 0 -50px; } .tbar-panel-history .jth-item { float: left; position: relative; width: 100px; height: 120px; margin-right: 15px; background: #fff none repeat scroll 0 0; margin-bottom: 15px; padding: 5px; } .tbar-panel-history .jth-item .img-wrap { display: block; width: 100px; height: 100px; text-align: center; margin-bottom: 5px; } .tbar-panel-history .jth-item .add-cart-button { height: 20px; line-height: 20px; overflow: hidden; text-align: center; text-decoration: none; display: none; position: absolute; width: 100px; bottom: 25px; left: 5px; z-index: 3; color: #fff; background: rgba(28, 25, 28, 0.8) none repeat scroll 0 0; } .tbar-panel-history .jth-item .price { color: #ea4a36; } .tbar-panel-history .history-bottom-more { display: block; text-align: center; height: 40px; line-height: 40px; font-family: "宋体"; color: #666; } .toolbar-header { position: absolute; top: 0; right: -6px; } .toolbar-tabs { position: absolute; top: 50%; left: 0; width: 35px; margin-top: -61px; } .tbar-tab-cart { background-position: -50px 0; } .tbar-tab-follow { background-position: -50px -50px; } .tbar-tab-history { background-position: -50px -100px; } .tab-ico { width: 34px; height: 35px; margin-left: 1px; position: relative; z-index: 2; background-color: #7a6e6e; } .tab-text { width: 62px; height: 35px; line-height: 35px; color: #fff; text-align: center; font-family: "微软雅黑"; position: absolute; z-index: 1; left: 35px; top: 0; background-color: #7a6e6e; border-radius: 3px 0 0 3px; transition: left 0.3s ease-in-out 0.1s; font-style: normal; margin: 0; padding: 0; cursor: pointer; } .tab-sub { position: absolute; z-index: 3; right: 2px; top: -5px; height: 11px; padding: 1px 2px; border: 1px solid #F4A951; overflow: hidden; color: #fff; font: 11px/11px verdana; text-align: center; min-width: 11px; border-radius: 10px; background-color: #F4A951; } .hide { display: none; } .toolbar-footer { position: absolute; bottom: -1px; width: 100%; margin: 0; padding: 0; font: 12px/150% Arial, Verdana, "宋体"; color: #666; } .tbar-tab-top { background-position: -50px -250px; } .tbar-tab-feedback { background-position: -50px -300px; } .footer-tab-text { width: 50px; height: 35px; line-height: 35px; color: #fff; text-align: center; font-family: "微软雅黑"; position: absolute; z-index: 1; left: 35px; top: 0; background-color: #7a6e6e; border-radius: 3px 0 0 3px; transition: left 0.3s ease-in-out 0.1s; font-style: normal; margin: 0; padding: 0; cursor: pointer; } .tbar-tab-hover { left: -60px; background-color: #ea4a36; } .tbar-tab-footer-hover { left: -48px; background-color: #ea4a36; } .tbar-tab-selected { background-color: #ea4a36; } .tbar-tab-selected .tab-sub { color: #ea4a36; background-color: #fff; background-image: linear-gradient(to bottom, #fff 0, #fff 100%); box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); text-shadow: 1px 0 1px rgba(0, 0, 0, 0.3); } .tbar-tab-click-selected { background-color: #ea4a36; } .tbar-tab-click-selected .tab-sub { color: #ea4a36; background-color: #fff; background-image: linear-gradient(to bottom, #fff 0, #fff 100%); box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); text-shadow: 1px 0 1px rgba(0, 0, 0, 0.3); } .survey-tab-ico { display: none; } .survey-tab-text { left: 0; width: 35px; height: 30px; padding: 2px 0 3px; line-height: 15px; background: #ea4a36 none repeat scroll 0 0; color: #fff; text-align: center; font-family: "微软雅黑"; position: absolute; z-index: 1; top: 0; border-radius: 3px 0 0 3px; transition: left 0.3s ease-in-out 0.1s; font-style: normal; margin: 0; cursor: pointer; } .toolbar-open { right: 270px; } .J-close:hover { transform: rotate(180deg); -webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -o-transform: rotate(180deg); -ms-transform: rotate(180deg); } .tbar-panel-history .jth-item .add-cart-button:hover { background: #ea4a36 none repeat scroll 0 0; } /*!components/ui-modules/nav/jquery.autocomplete.css*/ /*! jQuery UI - v1.12.1 - 2020--03-06 * http://jqueryui.com * Includes: core.css, autocomplete.css, menu.css, theme.css * To view and modify this theme, visit http://jqueryui.com/themeroller/?scope=&folderName=base&cornerRadiusShadow=8px&offsetLeftShadow=0px&offsetTopShadow=0px&thicknessShadow=5px&opacityShadow=30&bgImgOpacityShadow=0&bgTextureShadow=flat&bgColorShadow=666666&opacityOverlay=30&bgImgOpacityOverlay=0&bgTextureOverlay=flat&bgColorOverlay=aaaaaa&iconColorError=cc0000&fcError=5f3f3f&borderColorError=f1a899&bgTextureError=flat&bgColorError=fddfdf&iconColorHighlight=777620&fcHighlight=777620&borderColorHighlight=dad55e&bgTextureHighlight=flat&bgColorHighlight=fffa90&iconColorActive=ffffff&fcActive=ffffff&borderColorActive=003eff&bgTextureActive=flat&bgColorActive=007fff&iconColorHover=555555&fcHover=2b2b2b&borderColorHover=cccccc&bgTextureHover=flat&bgColorHover=ededed&iconColorDefault=777777&fcDefault=454545&borderColorDefault=c5c5c5&bgTextureDefault=flat&bgColorDefault=f6f6f6&iconColorContent=444444&fcContent=333333&borderColorContent=dddddd&bgTextureContent=flat&bgColorContent=ffffff&iconColorHeader=444444&fcHeader=333333&borderColorHeader=dddddd&bgTextureHeader=flat&bgColorHeader=e9e9e9&cornerRadius=3px&fwDefault=normal&fsDefault=1em&ffDefault=Arial%2CHelvetica%2Csans-serif * Copyright jQuery Foundation and other contributors; Licensed MIT */ .ui-helper-hidden { display: none; } .ui-helper-hidden-accessible { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; } .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; } .ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; border-collapse: collapse; } .ui-helper-clearfix:after { clear: both; } .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter: Alpha(Opacity=0); } .ui-front { z-index: 100; } .ui-state-disabled { cursor: default !important; pointer-events: none; } .ui-icon { display: inline-block; vertical-align: middle; margin-top: -0.25em; position: relative; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; } .ui-widget-icon-block { left: 50%; margin-left: -8px; display: block; } .ui-widget-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; } .ui-autocomplete { position: absolute; top: 0; left: 0; cursor: default; } .ui-menu { list-style: none; padding: 0; margin: 0; display: block; outline: 0; } .ui-menu .ui-menu { position: absolute; } .ui-menu .ui-menu-item { margin: 0; cursor: pointer; list-style-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"); } .ui-menu .ui-menu-item-wrapper { position: relative; padding: 3px 1em 3px 0.4em; } .ui-menu .ui-menu-divider { margin: 5px 0; height: 0; font-size: 0; line-height: 0; border-width: 1px 0 0; } .ui-menu .ui-state-focus, .ui-menu .ui-state-active { margin: -1px; } .ui-menu-icons { position: relative; } .ui-menu-icons .ui-menu-item-wrapper { padding-left: 2em; } .ui-menu .ui-icon { position: absolute; top: 0; bottom: 0; left: 0.2em; margin: auto 0; } .ui-menu .ui-menu-icon { left: auto; right: 0; } .ui-widget { font-family: Arial, Helvetica, sans-serif; font-size: 1em; } .ui-widget .ui-widget { font-size: 1em; } .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Arial, Helvetica, sans-serif; font-size: 1em; } .ui-widget.ui-widget-content { border: 1px solid #c5c5c5; } .ui-widget-content { border: 1px solid #eee; background: #fff; color: #333; } .ui-widget-content a { color: #333; } .ui-widget-header { border: 1px solid #eee; background: #e9e9e9; color: #333; font-weight: 700; } .ui-widget-header a { color: #333; } .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active { border: 1px solid #c5c5c5; background: #f6f6f6; font-weight: 400; color: #454545; } .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited, a.ui-button, a:link.ui-button, a:visited.ui-button, .ui-button { color: #454545; text-decoration: none; } .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus, .ui-button:hover, .ui-button:focus { border: 1px solid #ccc; background: #ededed; font-weight: 400; color: #2b2b2b; } .ui-state-hover a, .ui-state-hover a:hover, .ui-state-hover a:link, .ui-state-hover a:visited, .ui-state-focus a, .ui-state-focus a:hover, .ui-state-focus a:link, .ui-state-focus a:visited, a.ui-button:hover, a.ui-button:focus { color: #2b2b2b; text-decoration: none; } .ui-visual-focus { box-shadow: 0 0 3px 1px #5e9ed6; } .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover { border: 1px solid #003eff; background: #007fff; font-weight: 400; color: #fff; } .ui-icon-background, .ui-state-active .ui-icon-background { border: #003eff; background-color: #fff; } .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #fff; text-decoration: none; } .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight { border: 1px solid #dad55e; background: #fffa90; color: #777620; } .ui-state-checked { border: 1px solid #dad55e; background: #fffa90; } .ui-state-highlight a, .ui-widget-content .ui-state-highlight a, .ui-widget-header .ui-state-highlight a { color: #777620; } .ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error { border: 1px solid #f1a899; background: #fddfdf; color: #5f3f3f; } .ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #5f3f3f; } .ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #5f3f3f; } .ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: 700; } .ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: 0.7; filter: Alpha(Opacity=70); font-weight: 400; } .ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: 0.35; filter: Alpha(Opacity=35); background-image: none; } .ui-state-disabled .ui-icon { filter: Alpha(Opacity=35); } .ui-icon { width: 16px; height: 16px; } .ui-icon, .ui-widget-content .ui-icon { background-image: url(images/ui-icons_444444_256x240.png); } .ui-widget-header .ui-icon { background-image: url(images/ui-icons_444444_256x240.png); } .ui-state-hover .ui-icon, .ui-state-focus .ui-icon, .ui-button:hover .ui-icon, .ui-button:focus .ui-icon { background-image: url(images/ui-icons_555555_256x240.png); } .ui-state-active .ui-icon, .ui-button:active .ui-icon { background-image: url(images/ui-icons_ffffff_256x240.png); } .ui-state-highlight .ui-icon, .ui-button .ui-state-highlight.ui-icon { background-image: url(images/ui-icons_777620_256x240.png); } .ui-state-error .ui-icon, .ui-state-error-text .ui-icon { background-image: url(images/ui-icons_cc0000_256x240.png); } .ui-button .ui-icon { background-image: url(images/ui-icons_777777_256x240.png); } .ui-icon-blank { background-position: 16px 16px; } .ui-icon-caret-1-n { background-position: 0 0; } .ui-icon-caret-1-ne { background-position: -16px 0; } .ui-icon-caret-1-e { background-position: -32px 0; } .ui-icon-caret-1-se { background-position: -48px 0; } .ui-icon-caret-1-s { background-position: -65px 0; } .ui-icon-caret-1-sw { background-position: -80px 0; } .ui-icon-caret-1-w { background-position: -96px 0; } .ui-icon-caret-1-nw { background-position: -112px 0; } .ui-icon-caret-2-n-s { background-position: -128px 0; } .ui-icon-caret-2-e-w { background-position: -144px 0; } .ui-icon-triangle-1-n { background-position: 0 -16px; } .ui-icon-triangle-1-ne { background-position: -16px -16px; } .ui-icon-triangle-1-e { background-position: -32px -16px; } .ui-icon-triangle-1-se { background-position: -48px -16px; } .ui-icon-triangle-1-s { background-position: -65px -16px; } .ui-icon-triangle-1-sw { background-position: -80px -16px; } .ui-icon-triangle-1-w { background-position: -96px -16px; } .ui-icon-triangle-1-nw { background-position: -112px -16px; } .ui-icon-triangle-2-n-s { background-position: -128px -16px; } .ui-icon-triangle-2-e-w { background-position: -144px -16px; } .ui-icon-arrow-1-n { background-position: 0 -32px; } .ui-icon-arrow-1-ne { background-position: -16px -32px; } .ui-icon-arrow-1-e { background-position: -32px -32px; } .ui-icon-arrow-1-se { background-position: -48px -32px; } .ui-icon-arrow-1-s { background-position: -65px -32px; } .ui-icon-arrow-1-sw { background-position: -80px -32px; } .ui-icon-arrow-1-w { background-position: -96px -32px; } .ui-icon-arrow-1-nw { background-position: -112px -32px; } .ui-icon-arrow-2-n-s { background-position: -128px -32px; } .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } .ui-icon-arrow-2-e-w { background-position: -160px -32px; } .ui-icon-arrow-2-se-nw { background-position: -176px -32px; } .ui-icon-arrowstop-1-n { background-position: -192px -32px; } .ui-icon-arrowstop-1-e { background-position: -208px -32px; } .ui-icon-arrowstop-1-s { background-position: -224px -32px; } .ui-icon-arrowstop-1-w { background-position: -240px -32px; } .ui-icon-arrowthick-1-n { background-position: 1px -48px; } .ui-icon-arrowthick-1-ne { background-position: -16px -48px; } .ui-icon-arrowthick-1-e { background-position: -32px -48px; } .ui-icon-arrowthick-1-se { background-position: -48px -48px; } .ui-icon-arrowthick-1-s { background-position: -64px -48px; } .ui-icon-arrowthick-1-sw { background-position: -80px -48px; } .ui-icon-arrowthick-1-w { background-position: -96px -48px; } .ui-icon-arrowthick-1-nw { background-position: -112px -48px; } .ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } .ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } .ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } .ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } .ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } .ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } .ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } .ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } .ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } .ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } .ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } .ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } .ui-icon-arrowreturn-1-w { background-position: -64px -64px; } .ui-icon-arrowreturn-1-n { background-position: -80px -64px; } .ui-icon-arrowreturn-1-e { background-position: -96px -64px; } .ui-icon-arrowreturn-1-s { background-position: -112px -64px; } .ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } .ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } .ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } .ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } .ui-icon-arrow-4 { background-position: 0 -80px; } .ui-icon-arrow-4-diag { background-position: -16px -80px; } .ui-icon-extlink { background-position: -32px -80px; } .ui-icon-newwin { background-position: -48px -80px; } .ui-icon-refresh { background-position: -64px -80px; } .ui-icon-shuffle { background-position: -80px -80px; } .ui-icon-transfer-e-w { background-position: -96px -80px; } .ui-icon-transferthick-e-w { background-position: -112px -80px; } .ui-icon-folder-collapsed { background-position: 0 -96px; } .ui-icon-folder-open { background-position: -16px -96px; } .ui-icon-document { background-position: -32px -96px; } .ui-icon-document-b { background-position: -48px -96px; } .ui-icon-note { background-position: -64px -96px; } .ui-icon-mail-closed { background-position: -80px -96px; } .ui-icon-mail-open { background-position: -96px -96px; } .ui-icon-suitcase { background-position: -112px -96px; } .ui-icon-comment { background-position: -128px -96px; } .ui-icon-person { background-position: -144px -96px; } .ui-icon-print { background-position: -160px -96px; } .ui-icon-trash { background-position: -176px -96px; } .ui-icon-locked { background-position: -192px -96px; } .ui-icon-unlocked { background-position: -208px -96px; } .ui-icon-bookmark { background-position: -224px -96px; } .ui-icon-tag { background-position: -240px -96px; } .ui-icon-home { background-position: 0 -112px; } .ui-icon-flag { background-position: -16px -112px; } .ui-icon-calendar { background-position: -32px -112px; } .ui-icon-cart { background-position: -48px -112px; } .ui-icon-pencil { background-position: -64px -112px; } .ui-icon-clock { background-position: -80px -112px; } .ui-icon-disk { background-position: -96px -112px; } .ui-icon-calculator { background-position: -112px -112px; } .ui-icon-zoomin { background-position: -128px -112px; } .ui-icon-zoomout { background-position: -144px -112px; } .ui-icon-search { background-position: -160px -112px; } .ui-icon-wrench { background-position: -176px -112px; } .ui-icon-gear { background-position: -192px -112px; } .ui-icon-heart { background-position: -208px -112px; } .ui-icon-star { background-position: -224px -112px; } .ui-icon-link { background-position: -240px -112px; } .ui-icon-cancel { background-position: 0 -128px; } .ui-icon-plus { background-position: -16px -128px; } .ui-icon-plusthick { background-position: -32px -128px; } .ui-icon-minus { background-position: -48px -128px; } .ui-icon-minusthick { background-position: -64px -128px; } .ui-icon-close { background-position: -80px -128px; } .ui-icon-closethick { background-position: -96px -128px; } .ui-icon-key { background-position: -112px -128px; } .ui-icon-lightbulb { background-position: -128px -128px; } .ui-icon-scissors { background-position: -144px -128px; } .ui-icon-clipboard { background-position: -160px -128px; } .ui-icon-copy { background-position: -176px -128px; } .ui-icon-contact { background-position: -192px -128px; } .ui-icon-image { background-position: -208px -128px; } .ui-icon-video { background-position: -224px -128px; } .ui-icon-script { background-position: -240px -128px; } .ui-icon-alert { background-position: 0 -144px; } .ui-icon-info { background-position: -16px -144px; } .ui-icon-notice { background-position: -32px -144px; } .ui-icon-help { background-position: -48px -144px; } .ui-icon-check { background-position: -64px -144px; } .ui-icon-bullet { background-position: -80px -144px; } .ui-icon-radio-on { background-position: -96px -144px; } .ui-icon-radio-off { background-position: -112px -144px; } .ui-icon-pin-w { background-position: -128px -144px; } .ui-icon-pin-s { background-position: -144px -144px; } .ui-icon-play { background-position: 0 -160px; } .ui-icon-pause { background-position: -16px -160px; } .ui-icon-seek-next { background-position: -32px -160px; } .ui-icon-seek-prev { background-position: -48px -160px; } .ui-icon-seek-end { background-position: -64px -160px; } .ui-icon-seek-start { background-position: -80px -160px; } .ui-icon-seek-first { background-position: -80px -160px; } .ui-icon-stop { background-position: -96px -160px; } .ui-icon-eject { background-position: -112px -160px; } .ui-icon-volume-off { background-position: -128px -160px; } .ui-icon-volume-on { background-position: -144px -160px; } .ui-icon-power { background-position: 0 -176px; } .ui-icon-signal-diag { background-position: -16px -176px; } .ui-icon-signal { background-position: -32px -176px; } .ui-icon-battery-0 { background-position: -48px -176px; } .ui-icon-battery-1 { background-position: -64px -176px; } .ui-icon-battery-2 { background-position: -80px -176px; } .ui-icon-battery-3 { background-position: -96px -176px; } .ui-icon-circle-plus { background-position: 0 -192px; } .ui-icon-circle-minus { background-position: -16px -192px; } .ui-icon-circle-close { background-position: -32px -192px; } .ui-icon-circle-triangle-e { background-position: -48px -192px; } .ui-icon-circle-triangle-s { background-position: -64px -192px; } .ui-icon-circle-triangle-w { background-position: -80px -192px; } .ui-icon-circle-triangle-n { background-position: -96px -192px; } .ui-icon-circle-arrow-e { background-position: -112px -192px; } .ui-icon-circle-arrow-s { background-position: -128px -192px; } .ui-icon-circle-arrow-w { background-position: -144px -192px; } .ui-icon-circle-arrow-n { background-position: -160px -192px; } .ui-icon-circle-zoomin { background-position: -176px -192px; } .ui-icon-circle-zoomout { background-position: -192px -192px; } .ui-icon-circle-check { background-position: -208px -192px; } .ui-icon-circlesmall-plus { background-position: 0 -208px; } .ui-icon-circlesmall-minus { background-position: -16px -208px; } .ui-icon-circlesmall-close { background-position: -32px -208px; } .ui-icon-squaresmall-plus { background-position: -48px -208px; } .ui-icon-squaresmall-minus { background-position: -64px -208px; } .ui-icon-squaresmall-close { background-position: -80px -208px; } .ui-icon-grip-dotted-vertical { background-position: 0 -224px; } .ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } .ui-icon-grip-solid-vertical { background-position: -32px -224px; } .ui-icon-grip-solid-horizontal { background-position: -48px -224px; } .ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } .ui-icon-grip-diagonal-se { background-position: -80px -224px; } .ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { border-top-left-radius: 3px; } .ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { border-top-right-radius: 3px; } .ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { border-bottom-left-radius: 3px; } .ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { border-bottom-right-radius: 3px; } .ui-widget-overlay { background: #aaa; opacity: 0.3; filter: Alpha(Opacity=30); } .ui-widget-shadow { -webkit-box-shadow: 0 0 5px #666; box-shadow: 0 0 5px #666; } /*!plugins/sui/sui.min.css*/ /*! * Bootstrap v2.3.2 * * Copyright 2013 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world by @mdo and @fat. */ .clearfix:before, .clearfix:after { display: table; content: ""; line-height: 0; } .clearfix:after { clear: both; } .hide-text { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .input-block-level { display: block; width: 100%; min-height: 24px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .break-line { word-break: break-all; word-wrap: break-word; white-space: pre; } article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; } audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; } audio:not([controls]) { display: none; } html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } a:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } a:hover, a:active { outline: 0; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { max-width: 100%; width: auto\9; height: auto; vertical-align: middle; border: 0; -ms-interpolation-mode: bicubic; } #map_canvas img, .google-maps img { max-width: none; } button, input, select, textarea { margin: 0; font-size: 100%; vertical-align: middle; } button, input { *overflow: visible; line-height: normal; } button::-moz-focus-inner, input::-moz-focus-inner { padding: 0; border: 0; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; } label, select, button, input[type="button"], input[type="reset"], input[type="submit"], input[type="radio"], input[type="checkbox"] { cursor: pointer; } input[type="search"] { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; -webkit-appearance: textfield; } input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; } textarea { overflow: auto; vertical-align: top; } @media print { * { text-shadow: none !important; color: #000 !important; background: transparent !important; box-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } @page { margin: 0.5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } } body { margin: 0; font-family: tahoma, arial, "Hiragino Sans GB", "Microsoft Yahei", \5b8b\4f53, sans-serif; font-size: 12px; line-height: 18px; color: #333; background-color: #fff; } a { color: #666; text-decoration: none; } a:hover, a:focus { color: #4cb9fc; text-decoration: underline; } .sui-row { margin-left: -10px; } .sui-row:before, .sui-row:after { display: table; content: ""; line-height: 0; } .sui-row:after { clear: both; } [class*="span"] { float: left; min-height: 1px; margin-left: 10px; } .sui-container, .navbar-static-top .sui-container, .navbar-fixed-top .sui-container, .navbar-fixed-bottom .sui-container { width: 998px; } .span12 { width: 998px; } .span11 { width: 914px; } .span10 { width: 830px; } .span9 { width: 746px; } .span8 { width: 662px; } .span7 { width: 578px; } .span6 { width: 494px; } .span5 { width: 410px; } .span4 { width: 326px; } .span3 { width: 242px; } .span2 { width: 158px; } .span1 { width: 74px; } .offset12 { margin-left: 1018px; } .offset11 { margin-left: 934px; } .offset10 { margin-left: 850px; } .offset9 { margin-left: 766px; } .offset8 { margin-left: 682px; } .offset7 { margin-left: 598px; } .offset6 { margin-left: 514px; } .offset5 { margin-left: 430px; } .offset4 { margin-left: 346px; } .offset3 { margin-left: 262px; } .offset2 { margin-left: 178px; } .offset1 { margin-left: 94px; } .sui-row-fluid { width: 100%; } .sui-row-fluid:before, .sui-row-fluid:after { display: table; content: ""; line-height: 0; } .sui-row-fluid:after { clear: both; } .sui-row-fluid [class*="span"] { display: block; width: 100%; min-height: 24px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; float: left; margin-left: 1.00200401%; *margin-left: 0.95190381%; } .sui-row-fluid [class*="span"]:first-child { margin-left: 0; } .sui-row-fluid .controls-row [class*="span"]+[class*="span"] { margin-left: 1.00200401%; } .sui-row-fluid .span12 { width: 100%; *width: 99.9498998%; } .sui-row-fluid .span11 { width: 91.58316633%; *width: 91.53306613%; } .sui-row-fluid .span10 { width: 83.16633267%; *width: 83.11623246%; } .sui-row-fluid .span9 { width: 74.749499%; *width: 74.6993988%; } .sui-row-fluid .span8 { width: 66.33266533%; *width: 66.28256513%; } .sui-row-fluid .span7 { width: 57.91583166%; *width: 57.86573146%; } .sui-row-fluid .span6 { width: 49.498998%; *width: 49.4488978%; } .sui-row-fluid .span5 { width: 41.08216433%; *width: 41.03206413%; } .sui-row-fluid .span4 { width: 32.66533066%; *width: 32.61523046%; } .sui-row-fluid .span3 { width: 24.24849699%; *width: 24.19839679%; } .sui-row-fluid .span2 { width: 15.83166333%; *width: 15.78156313%; } .sui-row-fluid .span1 { width: 7.41482966%; *width: 7.36472946%; } .sui-row-fluid .offset12 { margin-left: 102.00400802%; *margin-left: 101.90380762%; } .sui-row-fluid .offset12:first-child { margin-left: 101.00200401%; *margin-left: 100.90180361%; } .sui-row-fluid .offset11 { margin-left: 93.58717435%; *margin-left: 93.48697395%; } .sui-row-fluid .offset11:first-child { margin-left: 92.58517034%; *margin-left: 92.48496994%; } .sui-row-fluid .offset10 { margin-left: 85.17034068%; *margin-left: 85.07014028%; } .sui-row-fluid .offset10:first-child { margin-left: 84.16833667%; *margin-left: 84.06813627%; } .sui-row-fluid .offset9 { margin-left: 76.75350701%; *margin-left: 76.65330661%; } .sui-row-fluid .offset9:first-child { margin-left: 75.75150301%; *margin-left: 75.65130261%; } .sui-row-fluid .offset8 { margin-left: 68.33667335%; *margin-left: 68.23647295%; } .sui-row-fluid .offset8:first-child { margin-left: 67.33466934%; *margin-left: 67.23446894%; } .sui-row-fluid .offset7 { margin-left: 59.91983968%; *margin-left: 59.81963928%; } .sui-row-fluid .offset7:first-child { margin-left: 58.91783567%; *margin-left: 58.81763527%; } .sui-row-fluid .offset6 { margin-left: 51.50300601%; *margin-left: 51.40280561%; } .sui-row-fluid .offset6:first-child { margin-left: 50.501002%; *margin-left: 50.4008016%; } .sui-row-fluid .offset5 { margin-left: 43.08617234%; *margin-left: 42.98597194%; } .sui-row-fluid .offset5:first-child { margin-left: 42.08416834%; *margin-left: 41.98396794%; } .sui-row-fluid .offset4 { margin-left: 34.66933868%; *margin-left: 34.56913828%; } .sui-row-fluid .offset4:first-child { margin-left: 33.66733467%; *margin-left: 33.56713427%; } .sui-row-fluid .offset3 { margin-left: 26.25250501%; *margin-left: 26.15230461%; } .sui-row-fluid .offset3:first-child { margin-left: 25.250501%; *margin-left: 25.1503006%; } .sui-row-fluid .offset2 { margin-left: 17.83567134%; *margin-left: 17.73547094%; } .sui-row-fluid .offset2:first-child { margin-left: 16.83366733%; *margin-left: 16.73346693%; } .sui-row-fluid .offset1 { margin-left: 9.41883768%; *margin-left: 9.31863727%; } .sui-row-fluid .offset1:first-child { margin-left: 8.41683367%; *margin-left: 8.31663327%; } [class*="span"].hide, .sui-row-fluid [class*="span"].hide { display: none; } [class*="span"].pull-right, .sui-row-fluid [class*="span"].pull-right { float: right; } .sui-container { margin-right: auto; margin-left: auto; } .sui-container:before, .sui-container:after { display: table; content: ""; line-height: 0; } .sui-container:after { clear: both; } .sui-container-fluid { padding-right: 10px; padding-left: 10px; } .sui-container-fluid:before, .sui-container-fluid:after { display: table; content: ""; line-height: 0; } .sui-container-fluid:after { clear: both; } .sui-layout { position: relative; } .sui-layout .sidebar { width: 190px; float: left; } .sui-layout .sidebar+.sidebar { float: right; } .sui-layout .content+.sidebar { position: absolute; right: 0; top: 0; } .sui-layout .content { margin-left: 205px; } .sui-layout.layout3>.content { margin-right: 205px; } p { margin-bottom: 18px; } .sui-lead { margin-bottom: 18px; font-size: 15px; font-weight: 400; line-height: 22.5px; } small { font-size: 85%; } strong { font-weight: 400; } em { font-style: normal; } cite { font-style: normal; } .sui-muted { color: #999; } a.sui-muted:hover, a.sui-muted:focus { color: gray; } .sui-text { color: #28a3ef; } .sui-text-warning { color: #ff7300; } a.sui-text-warning:hover, a.sui-text-warning:focus { color: #cc5c00; } .sui-text-error { color: #ea4a36; } a.sui-text-error:hover, a.sui-text-error:focus { color: #d72c16; } .sui-text-danger { color: #ea4a36; } a.sui-text-danger:hover, a.sui-text-danger:focus { color: #d72c16; } .sui-text-info { color: #2597dd; } a.sui-text-info:hover, a.sui-text-info:focus { color: #1c7ab3; } .sui-text-success { color: ##77b72c; } a.sui-text-success:hover, a.sui-text-success:focus { color: ##77b72c; } .sui-text-disabled { color: #999; } a.sui-text-disabled:hover, a.sui-text-disabled:focus { color: #999; cursor: default; text-decoration: none; } .sui-text-left { text-align: left; } .sui-text-right { text-align: right; } .sui-text-center { text-align: center; } .sui-text-large { font-size: 14px; line-height: 21px; } .sui-text-xlarge { font-size: 20px; line-height: 30px; } .sui-text-xxlarge { font-size: 22px; line-height: 33px; } .sui-text-xxxlarge { font-size: 24px; line-height: 36px; } .sui-text-bold { font-weight: 700; } h1, h2, h3, h4, h5, h6 { margin: 9px 0; font-family: inherit; font-weight: 700; line-height: 18px; color: inherit; text-rendering: optimizelegibility; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { font-weight: 400; line-height: 1; color: #999; } h1 { font-size: 24px; line-height: 36px; } h2 { font-size: 21.96px; line-height: 32.94px; } h3 { font-size: 20.04px; line-height: 30.06px; } h4 { font-size: 14.04px; line-height: 21.06px; } h5, h6 { font-size: 12px; line-height: 18px; } h1 small { font-size: 21px; } h2 small { font-size: 15px; } h3 small { font-size: 12px; } h4 small { font-size: 12px; } .sui-page-header { padding-bottom: 8px; margin: 18px 0 27px; border-bottom: 1px solid #eee; } ul, ol { padding: 0; margin: 0; } ul ul, ul ol, ol ol, ol ul { margin-bottom: 0; } li { line-height: 18px; } ul.unstyled, ol.unstyled { margin-left: 0; list-style: none; } ul.inline, ol.inline { margin-left: 0; list-style: none; } ul.inline>li, ol.inline>li { display: inline-block; *display: inline; *zoom: 1; padding-left: 5px; padding-right: 5px; } .dl-horizontal:before, .dl-horizontal:after { display: table; content: ""; line-height: 0; } .dl-horizontal:after { clear: both; } .dl-horizontal dt { float: left; width: 76px; clear: left; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 96px; } hr { margin: 18px 0; border: 0; border-top: 1px solid #eee; border-bottom: 1px solid #fff; } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #999; } abbr.initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 0 0 0 15px; margin: 0 0 18px; border-left: 5px solid #eee; } blockquote p { margin-bottom: 0; font-size: 15px; font-weight: 300; line-height: 1.25; } blockquote small { display: block; line-height: 18px; color: #999; } blockquote small:before { content: "\2014 \00A0"; } blockquote.pull-right { float: right; padding-right: 15px; padding-left: 0; border-right: 5px solid #eee; border-left: 0; } blockquote.pull-right p, blockquote.pull-right small { text-align: right; } blockquote.pull-right small:before { content: ""; } blockquote.pull-right small:after { content: "\00A0 \2014"; } q:before, q:after, blockquote:before, blockquote:after { content: ""; } address { display: block; margin-bottom: 18px; font-style: normal; line-height: 18px; } code, .sui-code, pre, .sui-pre { padding: 0 3px 2px; font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 10px; color: #333; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } code, .sui-code { padding: 2px 4px; color: #d14; background-color: #f7f7f9; white-space: nowrap; } pre, .sui-pre { display: block; padding: 8.5px; margin: 0 0 9px; font-size: 11px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.15); -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } pre.prettyprint, .sui-pre.prettyprint { margin-bottom: 18px; } pre code, .sui-pre code, pre .sui-code, .sui-pre .sui-code { padding: 0; color: inherit; white-space: pre; white-space: pre-wrap; background-color: transparent; border: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } @font-face { font-family: icon-pc; src: url(../fonts//icon-pc.eot?59lb71); src: url(../fonts//icon-pc.eot?#iefix59lb71) format("embedded-opentype"), url(../fonts//icon-pc.woff?59lb71) format("woff"), url(../fonts//icon-pc.ttf?59lb71) format("truetype"), url(../fonts//icon-pc.svg?59lb71#icon-pc) format("svg"); font-weight: 400; font-style: normal; } .sui-icon[class^="icon-pc-"], .sui-icon[class*=" icon-pc-"] { font-family: icon-pc; speak: none; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-pc-calendar:before { content: "\e60a"; } .icon-pc-loading:before { content: "\e600"; } .icon-pc-enter:before { content: "\e602"; } .icon-pc-ww:before { content: "\c600"; } .icon-pc-sound:before { content: "\c601"; } .icon-pc-settings:before { content: "\c602"; } .icon-pc-right:before { content: "\c603"; } .icon-pc-right-circle:before { content: "\e601"; } .icon-pc-refresh:before { content: "\c604"; } .icon-pc-question-circle:before { content: "\c605"; } .icon-pc-prev:before { content: "\c606"; } .icon-pc-next:before { content: "\c607"; } .icon-pc-list:before { content: "\c608"; } .icon-pc-light:before { content: "\c609"; } .icon-pc-info-circle:before { content: "\c60a"; } .icon-pc-forbidden:before { content: "\c60b"; } .icon-pc-error:before { content: "\c60c"; } .icon-pc-error-circle:before { content: "\c60d"; } .icon-pc-chevron-top:before { content: "\c60e"; } .icon-pc-chevron-right:before { content: "\c60f"; } .icon-pc-chevron-left:before { content: "\c610"; } .icon-pc-chevron-bottom:before { content: "\c611"; } .icon-pc-bell:before { content: "\c612"; } .icon-pc-checkbox-checked:before { content: "\e607"; } .icon-pc-checkbox-unchecked:before { content: "\e605"; } .icon-pc-checkbox-halfchecked:before { content: "\e606"; } .icon-pc-radio-checked:before { content: "\e604"; } .icon-pc-radio-unchecked:before { content: "\e603"; } .icon-pc-right-triangle-sign:before { content: "\e608"; } .icon-pc-error-triangle-sign:before { content: "\e609"; } .icon-pc-text:before { content: "\e60b"; } .icon-pc-copy:before { content: "\e60c"; } .icon-pc-bottom:before { content: "\e60d"; } .icon-pc-top:before { content: "\e60e"; } .icon-pc-picture:before { content: "\e60f"; } .icon-pc-hot-area:before { content: "\e610"; } .icon-pc-rotate:before { content: "\e611"; } .icon-pc-chevron-right-circle-sign:before { content: "\e612"; } .icon-pc-chevron-right-circle:before { content: "\e613"; } .icon-pc-a:before { content: "\e614"; } .icon-pc-plus-circle-sign:before { content: "\e615"; } .icon-pc-plus-circle:before { content: "\e616"; } .icon-pc-chevron-down-circle-sign:before { content: "\e617"; } .icon-pc-chevron-down-circle:before { content: "\e618"; } .icon-pc-arrow-up-circle-sign:before { content: "\e619"; } .icon-pc-arrow-up-circle:before { content: "\e61a"; } .icon-pc-arrow-down-circle-sign:before { content: "\e61b"; } .icon-pc-arrow-down-circle:before { content: "\e61c"; } .icon-pc-underline:before { content: "\e61d"; } .icon-pc-italic:before { content: "\e61e"; } .icon-pc-black:before { content: "\e61f"; } .icon-pc-paint-bucket:before { content: "\e620"; } .icon-pc-doc:before { content: "\e621"; } .icon-pc-th:before { content: "\e622"; } .icon-pc-hot-area-sign:before { content: "\e623"; } .icon-pc-edit-circle:before { content: "\e624"; } .icon-pc-undo:before { content: "\e625"; } .icon-pc-redo:before { content: "\e626"; } @font-face { font-family: icon-touch; src: url(../fonts//icon-touch.eot?-t7qwrr); src: url(../fonts//icon-touch.eot?#iefix-t7qwrr) format("embedded-opentype"), url(../fonts//icon-touch.woff?-t7qwrr) format("woff"), url(../fonts//icon-touch.ttf?-t7qwrr) format("truetype"), url(../fonts//icon-touch.svg?-t7qwrr#icon-touch) format("svg"); font-weight: 400; font-style: normal; } .sui-icon[class^="icon-touch-"], .sui-icon[class*=" icon-touch-"] { font-family: icon-touch; speak: none; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-touch-ww:before { content: "\e600"; } .icon-touch-ww-sign:before { content: "\e601"; } .icon-touch-users2:before { content: "\e602"; } .icon-touch-users2-sign:before { content: "\e603"; } .icon-touch-users:before { content: "\e604"; } .icon-touch-users-sign:before { content: "\e605"; } .icon-touch-meeting:before { content: "\e606"; } .icon-touch-meeting-sign:before { content: "\e607"; } .icon-touch-user3:before { content: "\e608"; } .icon-touch-user3-sign:before { content: "\e609"; } .icon-touch-user2:before { content: "\e60a"; } .icon-touch-user2-sign:before { content: "\e60b"; } .icon-touch-user:before { content: "\e60c"; } .icon-touch-user-sign:before { content: "\e60d"; } .icon-touch-user-remove:before { content: "\e60e"; } .icon-touch-user-remove-sign:before { content: "\e60f"; } .icon-touch-user-info:before { content: "\e610"; } .icon-touch-user-info-sign:before { content: "\e611"; } .icon-touch-user-add:before { content: "\e612"; } .icon-touch-user-add-sign:before { content: "\e613"; } .icon-touch-todo:before { content: "\e614"; } .icon-touch-todo-sign:before { content: "\e615"; } .icon-touch-todo-add:before { content: "\e616"; } .icon-touch-todo-add-sign:before { content: "\e617"; } .icon-touch-sound:before { content: "\e618"; } .icon-touch-sound-sign:before { content: "\e619"; } .icon-touch-setting2:before { content: "\e61a"; } .icon-touch-setting2-sign:before { content: "\e61b"; } .icon-touch-setting:before { content: "\e61c"; } .icon-touch-setting-sign:before { content: "\e61d"; } .icon-touch-send2:before { content: "\e61e"; } .icon-touch-send2-sign:before { content: "\e61f"; } .icon-touch-send:before { content: "\e620"; } .icon-touch-send-sign:before { content: "\e621"; } .icon-touch-score:before { content: "\e622"; } .icon-touch-score-sign:before { content: "\e623"; } .icon-touch-save:before { content: "\e624"; } .icon-touch-save-sign:before { content: "\e625"; } .icon-touch-right:before { content: "\e626"; } .icon-touch-right-rect:before { content: "\e627"; } .icon-touch-right-rect-sign:before { content: "\e628"; } .icon-touch-refresh:before { content: "\e629"; } .icon-touch-port-circle:before { content: "\e62a"; } .icon-touch-plus:before { content: "\e62b"; } .icon-touch-plus-circle:before { content: "\e62c"; } .icon-touch-plus-circle-sign:before { content: "\e62d"; } .icon-touch-play:before { content: "\e62e"; } .icon-touch-play-sign:before { content: "\e62f"; } .icon-touch-phone:before { content: "\e630"; } .icon-touch-noti-circle:before { content: "\e631"; } .icon-touch-noti-circle-sign:before { content: "\e632"; } .icon-touch-monitor:before { content: "\e633"; } .icon-touch-monitor-sign:before { content: "\e634"; } .icon-touch-minus:before { content: "\e635"; } .icon-touch-minus-circle:before { content: "\e636"; } .icon-touch-minus-circle-sign:before { content: "\e637"; } .icon-touch-microphone:before { content: "\e638"; } .icon-touch-microphone-sign:before { content: "\e639"; } .icon-touch-medal:before { content: "\e63a"; } .icon-touch-medal-sign:before { content: "\e63b"; } .icon-touch-male:before { content: "\e63c"; } .icon-touch-male-sign:before { content: "\e63d"; } .icon-touch-magnifier:before { content: "\e63e"; } .icon-touch-magnifier-sign:before { content: "\e63f"; } .icon-touch-location:before { content: "\e640"; } .icon-touch-location-sign:before { content: "\e641"; } .icon-touch-list:before { content: "\e642"; } .icon-touch-list-rect:before { content: "\e643"; } .icon-touch-list-rect-sign:before { content: "\e644"; } .icon-touch-linechart:before { content: "\e645"; } .icon-touch-linechart-sign:before { content: "\e646"; } .icon-touch-light:before { content: "\e647"; } .icon-touch-light-sign:before { content: "\e648"; } .icon-touch-left-rect:before { content: "\e649"; } .icon-touch-left-rect-sign:before { content: "\e64a"; } .icon-touch-key:before { content: "\e64b"; } .icon-touch-key-sign:before { content: "\e64c"; } .icon-touch-home:before { content: "\e64d"; } .icon-touch-home-sign:before { content: "\e64e"; } .icon-touch-garbage:before { content: "\e64f"; } .icon-touch-garbage-sign:before { content: "\e650"; } .icon-touch-four:before { content: "\e651"; } .icon-touch-four-sign:before { content: "\e652"; } .icon-touch-following:before { content: "\e653"; } .icon-touch-following-sign:before { content: "\e654"; } .icon-touch-folder:before { content: "\e655"; } .icon-touch-folder-sign:before { content: "\e656"; } .icon-touch-folder-right:before { content: "\e657"; } .icon-touch-folder-right-sign:before { content: "\e658"; } .icon-touch-femal:before { content: "\e659"; } .icon-touch-femal-sign:before { content: "\e65a"; } .icon-touch-face:before { content: "\e65b"; } .icon-touch-face-sign:before { content: "\e65c"; } .icon-touch-error:before { content: "\e65d"; } .icon-touch-error-circle:before { content: "\e65e"; } .icon-touch-error-circle-sign:before { content: "\e65f"; } .icon-touch-email2:before { content: "\e660"; } .icon-touch-email2-sign:before { content: "\e661"; } .icon-touch-email:before { content: "\e662"; } .icon-touch-email-sign:before { content: "\e663"; } .icon-touch-ellipsis:before { content: "\e664"; } .icon-touch-edit:before { content: "\e665"; } .icon-touch-edit-sign:before { content: "\e666"; } .icon-touch-edit-rect:before { content: "\e667"; } .icon-touch-edit-rect-sign:before { content: "\e668"; } .icon-touch-earphone:before { content: "\e669"; } .icon-touch-earphone-sing:before { content: "\e66a"; } .icon-touch-double-angle-right:before { content: "\e66b"; } .icon-touch-double-angle-left:before { content: "\e66c"; } .icon-touch-desk:before { content: "\e66d"; } .icon-touch-date:before { content: "\e66e"; } .icon-touch-date-sign:before { content: "\e66f"; } .icon-touch-cut:before { content: "\e670"; } .icon-touch-complete:before { content: "\e671"; } .icon-touch-complete-underline:before { content: "\e672"; } .icon-touch-complete-underline-sign:before { content: "\e673"; } .icon-touch-complete-sign:before { content: "\e674"; } .icon-touch-clock2:before { content: "\e675"; } .icon-touch-clock2-sign:before { content: "\e676"; } .icon-touch-clock:before { content: "\e677"; } .icon-touch-clock-sign:before { content: "\e678"; } .icon-touch-circle:before { content: "\e679"; } .icon-touch-chevron-up:before { content: "\e67a"; } .icon-touch-chevron-left:before { content: "\e67b"; } .icon-touch-chevron-down:before { content: "\e67c"; } .icon-touch-chat2:before { content: "\e67d"; } .icon-touch-chat2-sign:before { content: "\e67e"; } .icon-touch-chat:before { content: "\e67f"; } .icon-touch-chat-sign:before { content: "\e680"; } .icon-touch-chair:before { content: "\e681"; } .icon-touch-chair-sign:before { content: "\e682"; } .icon-touch-caret-up:before { content: "\e683"; } .icon-touch-caret-left:before { content: "\e684"; } .icon-touch-camera:before { content: "\e685"; } .icon-touch-camera-sign:before { content: "\e686"; } .icon-touch-briefcase:before { content: "\e687"; } .icon-touch-briefcase-sign:before { content: "\e688"; } .icon-touch-break:before { content: "\e689"; } .icon-touch-break-sign:before { content: "\e68a"; } .icon-touch-bell:before { content: "\e68b"; } .icon-touch-bell-sign:before { content: "\e68c"; } .icon-touch-association2:before { content: "\e68d"; } .icon-touch-association2-sign:before { content: "\e68e"; } .icon-touch-association:before { content: "\e68f"; } .icon-touch-association-sign:before { content: "\e690"; } .icon-touch-arrow-up-left:before { content: "\e691"; } .icon-touch-arrow-up-circle:before { content: "\e692"; } .icon-touch-arrow-left:before { content: "\e693"; } .icon-touch-arrow-down-circle:before { content: "\e694"; } .icon-touch-arrow-bottom-right:before { content: "\e695"; } .icon-touch-answer:before { content: "\e696"; } .icon-touch-answer-sign:before { content: "\e697"; } @font-face { font-family: icon-tb; src: url(../fonts//icon-tb.eot?59lb71); src: url(../fonts//icon-tb.eot?#iefix59lb71) format("embedded-opentype"), url(../fonts//icon-tb.woff?59lb71) format("woff"), url(../fonts//icon-tb.ttf?59lb71) format("truetype"), url(../fonts//icon-tb.svg?59lb71#icon-tb) format("svg"); font-weight: 400; font-style: normal; } .sui-icon[class^="icon-tb-"], .sui-icon[class*=" icon-tb-"] { font-family: icon-tb; speak: none; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-tb-appreciate:before { content: "\e644"; } .icon-tb-check:before { content: "\e645"; } .icon-tb-close:before { content: "\e646"; } .icon-tb-edit:before { content: "\e649"; } .icon-tb-emoji:before { content: "\e64a"; } .icon-tb-favorfill:before { content: "\e64b"; } .icon-tb-favor:before { content: "\e64c"; } .icon-tb-loading:before { content: "\e64f"; } .icon-tb-locationfill:before { content: "\e650"; } .icon-tb-location:before { content: "\e651"; } .icon-tb-phone:before { content: "\e652"; } .icon-tb-roundcheckfill:before { content: "\e656"; } .icon-tb-roundcheck:before { content: "\e657"; } .icon-tb-roundclosefill:before { content: "\e658"; } .icon-tb-roundclose:before { content: "\e659"; } .icon-tb-roundrightfill:before { content: "\e65a"; } .icon-tb-roundright:before { content: "\e65b"; } .icon-tb-search:before { content: "\e65c"; } .icon-tb-taxi:before { content: "\e65d"; } .icon-tb-timefill:before { content: "\e65e"; } .icon-tb-time:before { content: "\e65f"; } .icon-tb-unfold:before { content: "\e661"; } .icon-tb-warnfill:before { content: "\e662"; } .icon-tb-warn:before { content: "\e663"; } .icon-tb-camerafill:before { content: "\e664"; } .icon-tb-camera:before { content: "\e665"; } .icon-tb-commentfill:before { content: "\e666"; } .icon-tb-comment:before { content: "\e667"; } .icon-tb-likefill:before { content: "\e668"; } .icon-tb-like:before { content: "\e669"; } .icon-tb-notificationfill:before { content: "\e66a"; } .icon-tb-notification:before { content: "\e66b"; } .icon-tb-order:before { content: "\e66c"; } .icon-tb-samefill:before { content: "\e66d"; } .icon-tb-same:before { content: "\e66e"; } .icon-tb-tagfill:before { content: "\e66f"; } .icon-tb-tag:before { content: "\e670"; } .icon-tb-deliver:before { content: "\e671"; } .icon-tb-evaluate:before { content: "\e672"; } .icon-tb-pay:before { content: "\e673"; } .icon-tb-send:before { content: "\e675"; } .icon-tb-shop:before { content: "\e676"; } .icon-tb-ticket:before { content: "\e677"; } .icon-tb-wang:before { content: "\e678"; } .icon-tb-back:before { content: "\e679"; } .icon-tb-cascades:before { content: "\e67c"; } .icon-tb-discover:before { content: "\e67e"; } .icon-tb-list:before { content: "\e682"; } .icon-tb-more:before { content: "\e684"; } .icon-tb-myfill:before { content: "\e685"; } .icon-tb-my:before { content: "\e686"; } .icon-tb-scan:before { content: "\e689"; } .icon-tb-settings:before { content: "\e68a"; } .icon-tb-share:before { content: "\e68b"; } .icon-tb-sort:before { content: "\e68c"; } .icon-tb-wefill:before { content: "\e68d"; } .icon-tb-we:before { content: "\e68e"; } .icon-tb-questionfill:before { content: "\e690"; } .icon-tb-question:before { content: "\e691"; } .icon-tb-shopfill:before { content: "\e697"; } .icon-tb-form:before { content: "\e699"; } .icon-tb-wangfill:before { content: "\e69a"; } .icon-tb-pic:before { content: "\e69b"; } .icon-tb-filter:before { content: "\e69c"; } .icon-tb-footprint:before { content: "\e69d"; } .icon-tb-top:before { content: "\e69e"; } .icon-tb-pulldown:before { content: "\e69f"; } .icon-tb-pullup:before { content: "\e6a0"; } .icon-tb-right:before { content: "\e6a3"; } .icon-tb-refresh:before { content: "\e6a4"; } .icon-tb-moreandroid:before { content: "\e6a5"; } .icon-tb-deletefill:before { content: "\e6a6"; } .icon-tb-refund:before { content: "\e6ac"; } .icon-tb-cart:before { content: "\e6af"; } .icon-tb-qrcode:before { content: "\e6b0"; } .icon-tb-remind:before { content: "\e6b2"; } .icon-tb-delete:before { content: "\e6b4"; } .icon-tb-profile:before { content: "\e6b7"; } .icon-tb-home:before { content: "\e6b8"; } .icon-tb-cartfill:before { content: "\e6b9"; } .icon-tb-discoverfill:before { content: "\e6ba"; } .icon-tb-homefill:before { content: "\e6bb"; } .icon-tb-message:before { content: "\e6bc"; } .icon-tb-addressbook:before { content: "\e6bd"; } .icon-tb-link:before { content: "\e6bf"; } .icon-tb-lock:before { content: "\e6c0"; } .icon-tb-unlock:before { content: "\e6c2"; } .icon-tb-vip:before { content: "\e6c3"; } .icon-tb-weibo:before { content: "\e6c4"; } .icon-tb-activity:before { content: "\e6c5"; } .icon-tb-big:before { content: "\e6c7"; } .icon-tb-friendaddfill:before { content: "\e6c9"; } .icon-tb-friendadd:before { content: "\e6ca"; } .icon-tb-friendfamous:before { content: "\e6cb"; } .icon-tb-friend:before { content: "\e6cc"; } .icon-tb-goods:before { content: "\e6cd"; } .icon-tb-selection:before { content: "\e6ce"; } .icon-tb-tmall:before { content: "\e6cf"; } .icon-tb-attention:before { content: "\e6d0"; } .icon-tb-explore:before { content: "\e6d2"; } .icon-tb-present:before { content: "\e6d3"; } .icon-tb-squarecheckfill:before { content: "\e6d4"; } .icon-tb-square:before { content: "\e6d5"; } .icon-tb-squarecheck:before { content: "\e6d6"; } .icon-tb-round:before { content: "\e6d7"; } .icon-tb-roundaddfill:before { content: "\e6d8"; } .icon-tb-roundadd:before { content: "\e6d9"; } .icon-tb-add:before { content: "\e6da"; } .icon-tb-notificationforbidfill:before { content: "\e6db"; } .icon-tb-attentionfill:before { content: "\e6dc"; } .icon-tb-explorefill:before { content: "\e6dd"; } .icon-tb-fold:before { content: "\e6de"; } .icon-tb-game:before { content: "\e6df"; } .icon-tb-redpacket:before { content: "\e6e0"; } .icon-tb-selectionfill:before { content: "\e6e1"; } .icon-tb-similar:before { content: "\e6e2"; } .icon-tb-appreciatefill:before { content: "\e6e3"; } .icon-tb-infofill:before { content: "\e6e4"; } .icon-tb-info:before { content: "\e6e5"; } .icon-tb-barcode:before { content: "\e6e6"; } .icon-tb-tao:before { content: "\e6e8"; } .icon-tb-mobiletao:before { content: "\e6e9"; } .sui-form { margin: 0 0 18px; font-size: 12px; line-height: 18px; } .sui-form fieldset { padding: 0; margin: 0; border: 0; } .sui-form legend { display: block; width: 100%; padding: 0; margin-bottom: 18px; font-size: 18px; line-height: 36px; color: #333; border: 0; border-bottom: 1px solid #e5e5e5; } .sui-form legend small { font-size: 13.5px; color: #999; } .sui-form .input-default { display: inline-block; height: 18px; padding: 2px 4px; font-size: 12px; line-height: 18px; color: #555; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; vertical-align: middle; background-color: #fff; border: 1px solid #ccc; /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); */ -webkit-transition: border linear 0.2s, box-shadow linear 0.2s; -moz-transition: border linear 0.2s, box-shadow linear 0.2s; -o-transition: border linear 0.2s, box-shadow linear 0.2s; transition: border linear 0.2s, box-shadow linear 0.2s; } .sui-form .input-default:focus { border-color: #28a3ef; outline: 0; outline: thin dotted \9; } .sui-form select, .sui-form textarea, .sui-form input[type="text"], .sui-form input[type="password"], .sui-form input[type="datetime"], .sui-form input[type="datetime-local"], .sui-form input[type="date"], .sui-form input[type="month"], .sui-form input[type="time"], .sui-form input[type="week"], .sui-form input[type="number"], .sui-form input[type="email"], .sui-form input[type="url"], .sui-form input[type="search"], .sui-form input[type="tel"], .sui-form input[type="color"], .sui-form .uneditable-input { display: inline-block; height: 18px; padding: 2px 4px; font-size: 12px; line-height: 18px; color: #555; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; vertical-align: middle; background-color: #fff; border: 1px solid #ccc; /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); */ -webkit-transition: border linear 0.2s, box-shadow linear 0.2s; -moz-transition: border linear 0.2s, box-shadow linear 0.2s; -o-transition: border linear 0.2s, box-shadow linear 0.2s; transition: border linear 0.2s, box-shadow linear 0.2s; padding-top: 2px; padding-bottom: 2px; } .sui-form select:focus, .sui-form textarea:focus, .sui-form input[type="text"]:focus, .sui-form input[type="password"]:focus, .sui-form input[type="datetime"]:focus, .sui-form input[type="datetime-local"]:focus, .sui-form input[type="date"]:focus, .sui-form input[type="month"]:focus, .sui-form input[type="time"]:focus, .sui-form input[type="week"]:focus, .sui-form input[type="number"]:focus, .sui-form input[type="email"]:focus, .sui-form input[type="url"]:focus, .sui-form input[type="search"]:focus, .sui-form input[type="tel"]:focus, .sui-form input[type="color"]:focus, .sui-form .uneditable-input:focus { border-color: #28a3ef; outline: 0; outline: thin dotted \9; } .sui-form textarea { height: auto; resize: none; } .sui-form input[type="radio"], .sui-form input[type="checkbox"] { width: 13px; height: 13px; vertical-align: middle; } .sui-form input[type="file"], .sui-form input[type="image"], .sui-form input[type="submit"], .sui-form input[type="reset"], .sui-form input[type="button"] { width: auto; } .sui-form select, .sui-form input[type="file"] { height: 24px; *margin-top: 4px; line-height: 24px; } .sui-form select { border: 1px solid #ccc; background-color: #fff; } .sui-form select[multiple], .sui-form select[size] { height: auto; } .sui-form select:focus, .sui-form input[type="file"]:focus, .sui-form input[type="radio"]:focus, .sui-form input[type="checkbox"]:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .sui-form .uneditable-input, .sui-form .uneditable-textarea { color: #999; background-color: #fcfcfc; border-color: #ccc; /* -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); */ cursor: not-allowed; } .sui-form .uneditable-input { overflow: hidden; white-space: nowrap; } .sui-form .uneditable-textarea { width: auto; height: auto; } .sui-form input:-moz-placeholder, .sui-form textarea:-moz-placeholder { color: #999; } .sui-form input:-ms-input-placeholder, .sui-form textarea:-ms-input-placeholder { color: #999; } .sui-form input::-webkit-input-placeholder, .sui-form textarea::-webkit-input-placeholder { color: #999; } .sui-form .radio, .sui-form .checkbox { display: block; } .sui-form .radio+.radio, .sui-form .checkbox+.radio, .sui-form .radio+.checkbox, .sui-form .checkbox+.checkbox { margin-top: 5px; } .sui-form .radio.inline, .sui-form .checkbox.inline { display: inline-block; margin-top: 0; } .sui-form .radio.inline+.radio.inline, .sui-form .checkbox.inline+.radio.inline, .sui-form .radio.inline+.checkbox.inline, .sui-form .checkbox.inline+.checkbox.inline { margin-left: 6px; } .sui-form .input-mini { width: 40px; } .sui-form .input-small { width: 60px; } .sui-form .input-medium { width: 120px; } .sui-form .input-large { width: 200px; } .sui-form .input-xlarge { width: 350px; } .sui-form .input-xxlarge { width: 500px; } .sui-form .input-thin { padding-top: 0; padding-bottom: 0; } .sui-form .input-default { padding-top: 2px; padding-bottom: 2px; } .sui-form .input-fat { padding-top: 4px; padding-bottom: 4px; } .sui-form .input-xfat { padding-top: 6px; padding-bottom: 6px; font-size: 14px; line-height: 22px; } .sui-form .input-fat { padding-right: 8px; padding-left: 8px; } .sui-form .input-xfat { padding-right: 8px; padding-left: 8px; } .sui-form textarea.input-mini, .sui-form input[type="text"].input-mini, .sui-form input[type="password"].input-mini, .sui-form input[type="datetime"].input-mini, .sui-form input[type="datetime-local"].input-mini, .sui-form input[type="date"].input-mini, .sui-form input[type="month"].input-mini, .sui-form input[type="time"].input-mini, .sui-form input[type="week"].input-mini, .sui-form input[type="number"].input-mini, .sui-form input[type="email"].input-mini, .sui-form input[type="url"].input-mini, .sui-form input[type="search"].input-mini, .sui-form input[type="tel"].input-mini, .sui-form input[type="color"].input-mini, .sui-form .uneditable-input.input-mini { width: 30px; padding-left: 4px; padding-right: 4px; } .sui-form textarea.input-small, .sui-form input[type="text"].input-small, .sui-form input[type="password"].input-small, .sui-form input[type="datetime"].input-small, .sui-form input[type="datetime-local"].input-small, .sui-form input[type="date"].input-small, .sui-form input[type="month"].input-small, .sui-form input[type="time"].input-small, .sui-form input[type="week"].input-small, .sui-form input[type="number"].input-small, .sui-form input[type="email"].input-small, .sui-form input[type="url"].input-small, .sui-form input[type="search"].input-small, .sui-form input[type="tel"].input-small, .sui-form input[type="color"].input-small, .sui-form .uneditable-input.input-small { width: 50px; padding-left: 4px; padding-right: 4px; } .sui-form textarea.input-medium, .sui-form input[type="text"].input-medium, .sui-form input[type="password"].input-medium, .sui-form input[type="datetime"].input-medium, .sui-form input[type="datetime-local"].input-medium, .sui-form input[type="date"].input-medium, .sui-form input[type="month"].input-medium, .sui-form input[type="time"].input-medium, .sui-form input[type="week"].input-medium, .sui-form input[type="number"].input-medium, .sui-form input[type="email"].input-medium, .sui-form input[type="url"].input-medium, .sui-form input[type="search"].input-medium, .sui-form input[type="tel"].input-medium, .sui-form input[type="color"].input-medium, .sui-form .uneditable-input.input-medium { width: 110px; padding-left: 4px; padding-right: 4px; } .sui-form textarea.input-large, .sui-form input[type="text"].input-large, .sui-form input[type="password"].input-large, .sui-form input[type="datetime"].input-large, .sui-form input[type="datetime-local"].input-large, .sui-form input[type="date"].input-large, .sui-form input[type="month"].input-large, .sui-form input[type="time"].input-large, .sui-form input[type="week"].input-large, .sui-form input[type="number"].input-large, .sui-form input[type="email"].input-large, .sui-form input[type="url"].input-large, .sui-form input[type="search"].input-large, .sui-form input[type="tel"].input-large, .sui-form input[type="color"].input-large, .sui-form .uneditable-input.input-large { width: 190px; padding-left: 4px; padding-right: 4px; } .sui-form textarea.input-xlarge, .sui-form input[type="text"].input-xlarge, .sui-form input[type="password"].input-xlarge, .sui-form input[type="datetime"].input-xlarge, .sui-form input[type="datetime-local"].input-xlarge, .sui-form input[type="date"].input-xlarge, .sui-form input[type="month"].input-xlarge, .sui-form input[type="time"].input-xlarge, .sui-form input[type="week"].input-xlarge, .sui-form input[type="number"].input-xlarge, .sui-form input[type="email"].input-xlarge, .sui-form input[type="url"].input-xlarge, .sui-form input[type="search"].input-xlarge, .sui-form input[type="tel"].input-xlarge, .sui-form input[type="color"].input-xlarge, .sui-form .uneditable-input.input-xlarge { width: 340px; padding-left: 4px; padding-right: 4px; } .sui-form textarea.input-xxlarge, .sui-form input[type="text"].input-xxlarge, .sui-form input[type="password"].input-xxlarge, .sui-form input[type="datetime"].input-xxlarge, .sui-form input[type="datetime-local"].input-xxlarge, .sui-form input[type="date"].input-xxlarge, .sui-form input[type="month"].input-xxlarge, .sui-form input[type="time"].input-xxlarge, .sui-form input[type="week"].input-xxlarge, .sui-form input[type="number"].input-xxlarge, .sui-form input[type="email"].input-xxlarge, .sui-form input[type="url"].input-xxlarge, .sui-form input[type="search"].input-xxlarge, .sui-form input[type="tel"].input-xxlarge, .sui-form input[type="color"].input-xxlarge, .sui-form .uneditable-input.input-xxlarge { width: 490px; padding-left: 4px; padding-right: 4px; line-height: 22px; height: 22px; } .sui-form textarea.input-thin, .sui-form input[type="text"].input-thin, .sui-form input[type="password"].input-thin, .sui-form input[type="datetime"].input-thin, .sui-form input[type="datetime-local"].input-thin, .sui-form input[type="date"].input-thin, .sui-form input[type="month"].input-thin, .sui-form input[type="time"].input-thin, .sui-form input[type="week"].input-thin, .sui-form input[type="number"].input-thin, .sui-form input[type="email"].input-thin, .sui-form input[type="url"].input-thin, .sui-form input[type="search"].input-thin, .sui-form input[type="tel"].input-thin, .sui-form input[type="color"].input-thin, .sui-form .uneditable-input.input-thin { padding-top: 0; padding-bottom: 0; } .sui-form textarea.input-default, .sui-form input[type="text"].input-default, .sui-form input[type="password"].input-default, .sui-form input[type="datetime"].input-default, .sui-form input[type="datetime-local"].input-default, .sui-form input[type="date"].input-default, .sui-form input[type="month"].input-default, .sui-form input[type="time"].input-default, .sui-form input[type="week"].input-default, .sui-form input[type="number"].input-default, .sui-form input[type="email"].input-default, .sui-form input[type="url"].input-default, .sui-form input[type="search"].input-default, .sui-form input[type="tel"].input-default, .sui-form input[type="color"].input-default, .sui-form .uneditable-input.input-default { display: inline-block; height: 18px; padding: 2px 4px; font-size: 12px; line-height: 18px; color: #555; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; vertical-align: middle; background-color: #fff; border: 1px solid #ccc; /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); */ -webkit-transition: border linear 0.2s, box-shadow linear 0.2s; -moz-transition: border linear 0.2s, box-shadow linear 0.2s; -o-transition: border linear 0.2s, box-shadow linear 0.2s; transition: border linear 0.2s, box-shadow linear 0.2s; padding-top: 2px; padding-bottom: 2px; } .sui-form textarea.input-default:focus, .sui-form input[type="text"].input-default:focus, .sui-form input[type="password"].input-default:focus, .sui-form input[type="datetime"].input-default:focus, .sui-form input[type="datetime-local"].input-default:focus, .sui-form input[type="date"].input-default:focus, .sui-form input[type="month"].input-default:focus, .sui-form input[type="time"].input-default:focus, .sui-form input[type="week"].input-default:focus, .sui-form input[type="number"].input-default:focus, .sui-form input[type="email"].input-default:focus, .sui-form input[type="url"].input-default:focus, .sui-form input[type="search"].input-default:focus, .sui-form input[type="tel"].input-default:focus, .sui-form input[type="color"].input-default:focus, .sui-form .uneditable-input.input-default:focus { border-color: #28a3ef; outline: 0; outline: thin dotted \9; } .sui-form textarea.input-fat, .sui-form input[type="text"].input-fat, .sui-form input[type="password"].input-fat, .sui-form input[type="datetime"].input-fat, .sui-form input[type="datetime-local"].input-fat, .sui-form input[type="date"].input-fat, .sui-form input[type="month"].input-fat, .sui-form input[type="time"].input-fat, .sui-form input[type="week"].input-fat, .sui-form input[type="number"].input-fat, .sui-form input[type="email"].input-fat, .sui-form input[type="url"].input-fat, .sui-form input[type="search"].input-fat, .sui-form input[type="tel"].input-fat, .sui-form input[type="color"].input-fat, .sui-form .uneditable-input.input-fat { padding-top: 4px; padding-bottom: 4px; padding-right: 8px; padding-left: 8px; } .sui-form textarea.input-fat.input-mini, .sui-form input[type="text"].input-fat.input-mini, .sui-form input[type="password"].input-fat.input-mini, .sui-form input[type="datetime"].input-fat.input-mini, .sui-form input[type="datetime-local"].input-fat.input-mini, .sui-form input[type="date"].input-fat.input-mini, .sui-form input[type="month"].input-fat.input-mini, .sui-form input[type="time"].input-fat.input-mini, .sui-form input[type="week"].input-fat.input-mini, .sui-form input[type="number"].input-fat.input-mini, .sui-form input[type="email"].input-fat.input-mini, .sui-form input[type="url"].input-fat.input-mini, .sui-form input[type="search"].input-fat.input-mini, .sui-form input[type="tel"].input-fat.input-mini, .sui-form input[type="color"].input-fat.input-mini, .sui-form .uneditable-input.input-fat.input-mini { width: 22px; padding-left: 8px; padding-right: 8px; } .sui-form textarea.input-fat.input-small, .sui-form input[type="text"].input-fat.input-small, .sui-form input[type="password"].input-fat.input-small, .sui-form input[type="datetime"].input-fat.input-small, .sui-form input[type="datetime-local"].input-fat.input-small, .sui-form input[type="date"].input-fat.input-small, .sui-form input[type="month"].input-fat.input-small, .sui-form input[type="time"].input-fat.input-small, .sui-form input[type="week"].input-fat.input-small, .sui-form input[type="number"].input-fat.input-small, .sui-form input[type="email"].input-fat.input-small, .sui-form input[type="url"].input-fat.input-small, .sui-form input[type="search"].input-fat.input-small, .sui-form input[type="tel"].input-fat.input-small, .sui-form input[type="color"].input-fat.input-small, .sui-form .uneditable-input.input-fat.input-small { width: 42px; padding-left: 8px; padding-right: 8px; } .sui-form textarea.input-fat.input-medium, .sui-form input[type="text"].input-fat.input-medium, .sui-form input[type="password"].input-fat.input-medium, .sui-form input[type="datetime"].input-fat.input-medium, .sui-form input[type="datetime-local"].input-fat.input-medium, .sui-form input[type="date"].input-fat.input-medium, .sui-form input[type="month"].input-fat.input-medium, .sui-form input[type="time"].input-fat.input-medium, .sui-form input[type="week"].input-fat.input-medium, .sui-form input[type="number"].input-fat.input-medium, .sui-form input[type="email"].input-fat.input-medium, .sui-form input[type="url"].input-fat.input-medium, .sui-form input[type="search"].input-fat.input-medium, .sui-form input[type="tel"].input-fat.input-medium, .sui-form input[type="color"].input-fat.input-medium, .sui-form .uneditable-input.input-fat.input-medium { width: 102px; padding-left: 8px; padding-right: 8px; } .sui-form textarea.input-fat.input-large, .sui-form input[type="text"].input-fat.input-large, .sui-form input[type="password"].input-fat.input-large, .sui-form input[type="datetime"].input-fat.input-large, .sui-form input[type="datetime-local"].input-fat.input-large, .sui-form input[type="date"].input-fat.input-large, .sui-form input[type="month"].input-fat.input-large, .sui-form input[type="time"].input-fat.input-large, .sui-form input[type="week"].input-fat.input-large, .sui-form input[type="number"].input-fat.input-large, .sui-form input[type="email"].input-fat.input-large, .sui-form input[type="url"].input-fat.input-large, .sui-form input[type="search"].input-fat.input-large, .sui-form input[type="tel"].input-fat.input-large, .sui-form input[type="color"].input-fat.input-large, .sui-form .uneditable-input.input-fat.input-large { width: 182px; padding-left: 8px; padding-right: 8px; } .sui-form textarea.input-fat.input-xlarge, .sui-form input[type="text"].input-fat.input-xlarge, .sui-form input[type="password"].input-fat.input-xlarge, .sui-form input[type="datetime"].input-fat.input-xlarge, .sui-form input[type="datetime-local"].input-fat.input-xlarge, .sui-form input[type="date"].input-fat.input-xlarge, .sui-form input[type="month"].input-fat.input-xlarge, .sui-form input[type="time"].input-fat.input-xlarge, .sui-form input[type="week"].input-fat.input-xlarge, .sui-form input[type="number"].input-fat.input-xlarge, .sui-form input[type="email"].input-fat.input-xlarge, .sui-form input[type="url"].input-fat.input-xlarge, .sui-form input[type="search"].input-fat.input-xlarge, .sui-form input[type="tel"].input-fat.input-xlarge, .sui-form input[type="color"].input-fat.input-xlarge, .sui-form .uneditable-input.input-fat.input-xlarge { width: 332px; padding-left: 8px; padding-right: 8px; } .sui-form textarea.input-fat.input-xxlarge, .sui-form input[type="text"].input-fat.input-xxlarge, .sui-form input[type="password"].input-fat.input-xxlarge, .sui-form input[type="datetime"].input-fat.input-xxlarge, .sui-form input[type="datetime-local"].input-fat.input-xxlarge, .sui-form input[type="date"].input-fat.input-xxlarge, .sui-form input[type="month"].input-fat.input-xxlarge, .sui-form input[type="time"].input-fat.input-xxlarge, .sui-form input[type="week"].input-fat.input-xxlarge, .sui-form input[type="number"].input-fat.input-xxlarge, .sui-form input[type="email"].input-fat.input-xxlarge, .sui-form input[type="url"].input-fat.input-xxlarge, .sui-form input[type="search"].input-fat.input-xxlarge, .sui-form input[type="tel"].input-fat.input-xxlarge, .sui-form input[type="color"].input-fat.input-xxlarge, .sui-form .uneditable-input.input-fat.input-xxlarge { width: 482px; padding-left: 8px; padding-right: 8px; } .sui-form textarea.input-xfat, .sui-form input[type="text"].input-xfat, .sui-form input[type="password"].input-xfat, .sui-form input[type="datetime"].input-xfat, .sui-form input[type="datetime-local"].input-xfat, .sui-form input[type="date"].input-xfat, .sui-form input[type="month"].input-xfat, .sui-form input[type="time"].input-xfat, .sui-form input[type="week"].input-xfat, .sui-form input[type="number"].input-xfat, .sui-form input[type="email"].input-xfat, .sui-form input[type="url"].input-xfat, .sui-form input[type="search"].input-xfat, .sui-form input[type="tel"].input-xfat, .sui-form input[type="color"].input-xfat, .sui-form .uneditable-input.input-xfat { padding-top: 6px; padding-bottom: 6px; font-size: 14px; line-height: 22px; padding-right: 8px; padding-left: 8px; } .sui-form textarea.input-xfat.input-mini, .sui-form input[type="text"].input-xfat.input-mini, .sui-form input[type="password"].input-xfat.input-mini, .sui-form input[type="datetime"].input-xfat.input-mini, .sui-form input[type="datetime-local"].input-xfat.input-mini, .sui-form input[type="date"].input-xfat.input-mini, .sui-form input[type="month"].input-xfat.input-mini, .sui-form input[type="time"].input-xfat.input-mini, .sui-form input[type="week"].input-xfat.input-mini, .sui-form input[type="number"].input-xfat.input-mini, .sui-form input[type="email"].input-xfat.input-mini, .sui-form input[type="url"].input-xfat.input-mini, .sui-form input[type="search"].input-xfat.input-mini, .sui-form input[type="tel"].input-xfat.input-mini, .sui-form input[type="color"].input-xfat.input-mini, .sui-form .uneditable-input.input-xfat.input-mini { width: 22px; padding-left: 8px; padding-right: 8px; } .sui-form textarea.input-xfat.input-small, .sui-form input[type="text"].input-xfat.input-small, .sui-form input[type="password"].input-xfat.input-small, .sui-form input[type="datetime"].input-xfat.input-small, .sui-form input[type="datetime-local"].input-xfat.input-small, .sui-form input[type="date"].input-xfat.input-small, .sui-form input[type="month"].input-xfat.input-small, .sui-form input[type="time"].input-xfat.input-small, .sui-form input[type="week"].input-xfat.input-small, .sui-form input[type="number"].input-xfat.input-small, .sui-form input[type="email"].input-xfat.input-small, .sui-form input[type="url"].input-xfat.input-small, .sui-form input[type="search"].input-xfat.input-small, .sui-form input[type="tel"].input-xfat.input-small, .sui-form input[type="color"].input-xfat.input-small, .sui-form .uneditable-input.input-xfat.input-small { width: 42px; padding-left: 8px; padding-right: 8px; } .sui-form textarea.input-xfat.input-medium, .sui-form input[type="text"].input-xfat.input-medium, .sui-form input[type="password"].input-xfat.input-medium, .sui-form input[type="datetime"].input-xfat.input-medium, .sui-form input[type="datetime-local"].input-xfat.input-medium, .sui-form input[type="date"].input-xfat.input-medium, .sui-form input[type="month"].input-xfat.input-medium, .sui-form input[type="time"].input-xfat.input-medium, .sui-form input[type="week"].input-xfat.input-medium, .sui-form input[type="number"].input-xfat.input-medium, .sui-form input[type="email"].input-xfat.input-medium, .sui-form input[type="url"].input-xfat.input-medium, .sui-form input[type="search"].input-xfat.input-medium, .sui-form input[type="tel"].input-xfat.input-medium, .sui-form input[type="color"].input-xfat.input-medium, .sui-form .uneditable-input.input-xfat.input-medium { width: 102px; padding-left: 8px; padding-right: 8px; } .sui-form textarea.input-xfat.input-large, .sui-form input[type="text"].input-xfat.input-large, .sui-form input[type="password"].input-xfat.input-large, .sui-form input[type="datetime"].input-xfat.input-large, .sui-form input[type="datetime-local"].input-xfat.input-large, .sui-form input[type="date"].input-xfat.input-large, .sui-form input[type="month"].input-xfat.input-large, .sui-form input[type="time"].input-xfat.input-large, .sui-form input[type="week"].input-xfat.input-large, .sui-form input[type="number"].input-xfat.input-large, .sui-form input[type="email"].input-xfat.input-large, .sui-form input[type="url"].input-xfat.input-large, .sui-form input[type="search"].input-xfat.input-large, .sui-form input[type="tel"].input-xfat.input-large, .sui-form input[type="color"].input-xfat.input-large, .sui-form .uneditable-input.input-xfat.input-large { width: 182px; padding-left: 8px; padding-right: 8px; } .sui-form textarea.input-xfat.input-xlarge, .sui-form input[type="text"].input-xfat.input-xlarge, .sui-form input[type="password"].input-xfat.input-xlarge, .sui-form input[type="datetime"].input-xfat.input-xlarge, .sui-form input[type="datetime-local"].input-xfat.input-xlarge, .sui-form input[type="date"].input-xfat.input-xlarge, .sui-form input[type="month"].input-xfat.input-xlarge, .sui-form input[type="time"].input-xfat.input-xlarge, .sui-form input[type="week"].input-xfat.input-xlarge, .sui-form input[type="number"].input-xfat.input-xlarge, .sui-form input[type="email"].input-xfat.input-xlarge, .sui-form input[type="url"].input-xfat.input-xlarge, .sui-form input[type="search"].input-xfat.input-xlarge, .sui-form input[type="tel"].input-xfat.input-xlarge, .sui-form input[type="color"].input-xfat.input-xlarge, .sui-form .uneditable-input.input-xfat.input-xlarge { width: 332px; padding-left: 8px; padding-right: 8px; } .sui-form textarea.input-xfat.input-xxlarge, .sui-form input[type="text"].input-xfat.input-xxlarge, .sui-form input[type="password"].input-xfat.input-xxlarge, .sui-form input[type="datetime"].input-xfat.input-xxlarge, .sui-form input[type="datetime-local"].input-xfat.input-xxlarge, .sui-form input[type="date"].input-xfat.input-xxlarge, .sui-form input[type="month"].input-xfat.input-xxlarge, .sui-form input[type="time"].input-xfat.input-xxlarge, .sui-form input[type="week"].input-xfat.input-xxlarge, .sui-form input[type="number"].input-xfat.input-xxlarge, .sui-form input[type="email"].input-xfat.input-xxlarge, .sui-form input[type="url"].input-xfat.input-xxlarge, .sui-form input[type="search"].input-xfat.input-xxlarge, .sui-form input[type="tel"].input-xfat.input-xxlarge, .sui-form input[type="color"].input-xfat.input-xxlarge, .sui-form .uneditable-input.input-xfat.input-xxlarge { width: 482px; padding-left: 8px; padding-right: 8px; } .sui-form select.input-thin { height: 20px; } .sui-form select.input-default { height: 24px; } .sui-form select.input-fat { height: 28px; } .sui-form select.input-xfat { height: 32px; } .sui-form input[class*="span"], .sui-form select[class*="span"], .sui-form textarea[class*="span"], .sui-form .uneditable-input[class*="span"], .sui-form .row-fluid input[class*="span"], .sui-form .row-fluid select[class*="span"], .sui-form .row-fluid textarea[class*="span"], .sui-form .row-fluid .uneditable-input[class*="span"] { float: none; margin-left: 0; } .sui-form .input-append input[class*="span"], .sui-form .input-append .uneditable-input[class*="span"], .sui-form .input-prepend input[class*="span"], .sui-form .input-prepend .uneditable-input[class*="span"], .sui-form .row-fluid input[class*="span"], .sui-form .row-fluid select[class*="span"], .sui-form .row-fluid textarea[class*="span"], .sui-form .row-fluid .uneditable-input[class*="span"], .sui-form .row-fluid .input-prepend [class*="span"], .sui-form .row-fluid .input-append [class*="span"] { display: inline-block; } .sui-form input, .sui-form textarea, .sui-form .uneditable-input { margin-left: 0; } .sui-form .controls-row [class*="span"]+[class*="span"] { margin-left: 10px; } .sui-form input.span12, .sui-form textarea.span12, .sui-form .uneditable-input.span12 { width: 984px; } .sui-form input.span11, .sui-form textarea.span11, .sui-form .uneditable-input.span11 { width: 900px; } .sui-form input.span10, .sui-form textarea.span10, .sui-form .uneditable-input.span10 { width: 816px; } .sui-form input.span9, .sui-form textarea.span9, .sui-form .uneditable-input.span9 { width: 732px; } .sui-form input.span8, .sui-form textarea.span8, .sui-form .uneditable-input.span8 { width: 648px; } .sui-form input.span7, .sui-form textarea.span7, .sui-form .uneditable-input.span7 { width: 564px; } .sui-form input.span6, .sui-form textarea.span6, .sui-form .uneditable-input.span6 { width: 480px; } .sui-form input.span5, .sui-form textarea.span5, .sui-form .uneditable-input.span5 { width: 396px; } .sui-form input.span4, .sui-form textarea.span4, .sui-form .uneditable-input.span4 { width: 312px; } .sui-form input.span3, .sui-form textarea.span3, .sui-form .uneditable-input.span3 { width: 228px; } .sui-form input.span2, .sui-form textarea.span2, .sui-form .uneditable-input.span2 { width: 144px; } .sui-form input.span1, .sui-form textarea.span1, .sui-form .uneditable-input.span1 { width: 60px; } .sui-form .controls-row:before, .sui-form .controls-row:after { display: table; content: ""; line-height: 0; } .sui-form .controls-row:after { clear: both; } .sui-form .controls-row [class*="span"], .sui-form .row-fluid .controls-row [class*="span"] { float: left; } .sui-form .row-fluid+.row-fluid { margin-top: 9px; } .sui-form input[disabled], .sui-form select[disabled], .sui-form textarea[disabled], .sui-form input[readonly], .sui-form select[readonly], .sui-form textarea[readonly] { cursor: not-allowed; background-color: #fff; } .sui-form input[type="radio"][disabled], .sui-form input[type="checkbox"][disabled], .sui-form input[type="radio"][readonly], .sui-form input[type="checkbox"][readonly] { background-color: transparent; } .sui-form .warning .control-label, .sui-form .warning .help-block, .sui-form .warning .help-inline { color: #ff7300; } .sui-form .warning input, .sui-form .warning select, .sui-form .warning textarea { border-color: #ff7300; /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); */ } .sui-form .warning input:focus, .sui-form .warning select:focus, .sui-form .warning textarea:focus { border-color: #cc5c00; } .sui-form .warning .input-prepend .add-on, .sui-form .warning .input-append .add-on { color: #ff7300; background-color: #fcf8e3; border-color: #ff7300; } .sui-form .error .control-label, .sui-form .error .help-block, .sui-form .error .help-inline { color: #ea4a36; } .sui-form .error input, .sui-form .error select, .sui-form .error textarea { border-color: #ea4a36; /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); */ } .sui-form .error input:focus, .sui-form .error select:focus, .sui-form .error textarea:focus { border-color: #d72c16; } .sui-form .error .input-prepend .add-on, .sui-form .error .input-append .add-on { color: #ea4a36; background-color: #f2dede; border-color: #ea4a36; } .sui-form .success .control-label, .sui-form .success .help-block, .sui-form .success .help-inline { color: ##77b72c; } .sui-form .success input, .sui-form .success select, .sui-form .success textarea { border-color: ##77b72c; /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); */ } .sui-form .success input:focus, .sui-form .success select:focus, .sui-form .success textarea:focus { border-color: ##77b72c; } .sui-form .success .input-prepend .add-on, .sui-form .success .input-append .add-on { color: ##77b72c; background-color: ##77b72c; border-color: ##77b72c; } .sui-form .info .control-label, .sui-form .info .help-block, .sui-form .info .help-inline { color: #2597dd; } .sui-form .info input, .sui-form .info select, .sui-form .info textarea { border-color: #2597dd; /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); */ } .sui-form .info input:focus, .sui-form .info select:focus, .sui-form .info textarea:focus { border-color: #1c7ab3; } .sui-form .info .input-prepend .add-on, .sui-form .info .input-append .add-on { color: #2597dd; background-color: #d9edf7; border-color: #2597dd; } .sui-form input:focus:invalid, .sui-form textarea:focus:invalid, .sui-form select:focus:invalid { color: #b94a48; border-color: #ee5f5b; } .sui-form input:focus:invalid:focus, .sui-form textarea:focus:invalid:focus, .sui-form select:focus:invalid:focus { border-color: #e9322d; } .sui-form .input-warning { border-color: #ff7300; /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); */ } .sui-form .input-warning:focus { border-color: #cc5c00; } .sui-form .input-error { border-color: #ea4a36; /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); */ } .sui-form .input-error:focus { border-color: #d72c16; } .sui-form .input-success { border-color: #22cd6e; /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); */ } .sui-form .input-success:focus { border-color: #1ba157; } .sui-form .input-info { border-color: #2597dd; /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); */ } .sui-form .input-info:focus { border-color: #1c7ab3; } .sui-form textarea.input-warning, .sui-form input[type="text"].input-warning, .sui-form input[type="password"].input-warning, .sui-form input[type="datetime"].input-warning, .sui-form input[type="datetime-local"].input-warning, .sui-form input[type="date"].input-warning, .sui-form input[type="month"].input-warning, .sui-form input[type="time"].input-warning, .sui-form input[type="week"].input-warning, .sui-form input[type="number"].input-warning, .sui-form input[type="email"].input-warning, .sui-form input[type="url"].input-warning, .sui-form input[type="search"].input-warning, .sui-form input[type="tel"].input-warning, .sui-form input[type="color"].input-warning { border-color: #ff7300; /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); */ } .sui-form textarea.input-warning:focus, .sui-form input[type="text"].input-warning:focus, .sui-form input[type="password"].input-warning:focus, .sui-form input[type="datetime"].input-warning:focus, .sui-form input[type="datetime-local"].input-warning:focus, .sui-form input[type="date"].input-warning:focus, .sui-form input[type="month"].input-warning:focus, .sui-form input[type="time"].input-warning:focus, .sui-form input[type="week"].input-warning:focus, .sui-form input[type="number"].input-warning:focus, .sui-form input[type="email"].input-warning:focus, .sui-form input[type="url"].input-warning:focus, .sui-form input[type="search"].input-warning:focus, .sui-form input[type="tel"].input-warning:focus, .sui-form input[type="color"].input-warning:focus { border-color: #cc5c00; } .sui-form textarea.input-success, .sui-form input[type="text"].input-success, .sui-form input[type="password"].input-success, .sui-form input[type="datetime"].input-success, .sui-form input[type="datetime-local"].input-success, .sui-form input[type="date"].input-success, .sui-form input[type="month"].input-success, .sui-form input[type="time"].input-success, .sui-form input[type="week"].input-success, .sui-form input[type="number"].input-success, .sui-form input[type="email"].input-success, .sui-form input[type="url"].input-success, .sui-form input[type="search"].input-success, .sui-form input[type="tel"].input-success, .sui-form input[type="color"].input-success { border-color: ##77b72c; /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); */ } .sui-form textarea.input-success:focus, .sui-form input[type="text"].input-success:focus, .sui-form input[type="password"].input-success:focus, .sui-form input[type="datetime"].input-success:focus, .sui-form input[type="datetime-local"].input-success:focus, .sui-form input[type="date"].input-success:focus, .sui-form input[type="month"].input-success:focus, .sui-form input[type="time"].input-success:focus, .sui-form input[type="week"].input-success:focus, .sui-form input[type="number"].input-success:focus, .sui-form input[type="email"].input-success:focus, .sui-form input[type="url"].input-success:focus, .sui-form input[type="search"].input-success:focus, .sui-form input[type="tel"].input-success:focus, .sui-form input[type="color"].input-success:focus { border-color: ##77b72c; } .sui-form textarea.input-error, .sui-form input[type="text"].input-error, .sui-form input[type="password"].input-error, .sui-form input[type="datetime"].input-error, .sui-form input[type="datetime-local"].input-error, .sui-form input[type="date"].input-error, .sui-form input[type="month"].input-error, .sui-form input[type="time"].input-error, .sui-form input[type="week"].input-error, .sui-form input[type="number"].input-error, .sui-form input[type="email"].input-error, .sui-form input[type="url"].input-error, .sui-form input[type="search"].input-error, .sui-form input[type="tel"].input-error, .sui-form input[type="color"].input-error { border-color: #ea4a36; /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); */ } .sui-form textarea.input-error:focus, .sui-form input[type="text"].input-error:focus, .sui-form input[type="password"].input-error:focus, .sui-form input[type="datetime"].input-error:focus, .sui-form input[type="datetime-local"].input-error:focus, .sui-form input[type="date"].input-error:focus, .sui-form input[type="month"].input-error:focus, .sui-form input[type="time"].input-error:focus, .sui-form input[type="week"].input-error:focus, .sui-form input[type="number"].input-error:focus, .sui-form input[type="email"].input-error:focus, .sui-form input[type="url"].input-error:focus, .sui-form input[type="search"].input-error:focus, .sui-form input[type="tel"].input-error:focus, .sui-form input[type="color"].input-error:focus { border-color: #d72c16; } .sui-form textarea.input-info, .sui-form input[type="text"].input-info, .sui-form input[type="password"].input-info, .sui-form input[type="datetime"].input-info, .sui-form input[type="datetime-local"].input-info, .sui-form input[type="date"].input-info, .sui-form input[type="month"].input-info, .sui-form input[type="time"].input-info, .sui-form input[type="week"].input-info, .sui-form input[type="number"].input-info, .sui-form input[type="email"].input-info, .sui-form input[type="url"].input-info, .sui-form input[type="search"].input-info, .sui-form input[type="tel"].input-info, .sui-form input[type="color"].input-info { border-color: #2597dd; /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); */ } .sui-form textarea.input-info:focus, .sui-form input[type="text"].input-info:focus, .sui-form input[type="password"].input-info:focus, .sui-form input[type="datetime"].input-info:focus, .sui-form input[type="datetime-local"].input-info:focus, .sui-form input[type="date"].input-info:focus, .sui-form input[type="month"].input-info:focus, .sui-form input[type="time"].input-info:focus, .sui-form input[type="week"].input-info:focus, .sui-form input[type="number"].input-info:focus, .sui-form input[type="email"].input-info:focus, .sui-form input[type="url"].input-info:focus, .sui-form input[type="search"].input-info:focus, .sui-form input[type="tel"].input-info:focus, .sui-form input[type="color"].input-info:focus { border-color: #1c7ab3; } .sui-form .input-date { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAOCAYAAAAi2ky3AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3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tg3btjE2NobHx0d0u12Mjo7CsiyoqoqRkRHkcjmcnZ29WZYV/yXK5/PPq6urKQBvfX19+B++76Pdbsf29/frCwsL6Z+9rwEAWLRqBFsSfDgAAAAASUVORK5CYII=); background-position: right center; background-repeat: no-repeat; } .sui-form.form-actions { padding: 17px 20px 18px; margin-top: 18px; margin-bottom: 18px; background-color: #f5f5f5; border-top: 1px solid #e5e5e5; } .sui-form.form-actions:before, .sui-form.form-actions:after { display: table; content: ""; line-height: 0; } .sui-form.form-actions:after { clear: both; } .sui-form .help-block, .sui-form .help-inline { color: #595959; } .sui-form .help-block { display: block; margin-top: 9px; } .sui-form .help-inline { display: inline-block; margin-left: 6px; *display: inline; *zoom: 1; vertical-align: middle; } .sui-form .input-append, .sui-form .input-prepend { display: inline-block; margin-bottom: 9px; vertical-align: middle; font-size: 0; white-space: nowrap; } .sui-form .input-append input, .sui-form .input-prepend input, .sui-form .input-append select, .sui-form .input-prepend select, .sui-form .input-append .uneditable-input, .sui-form .input-prepend .uneditable-input, .sui-form .input-append .dropdown-menu, .sui-form .input-prepend .dropdown-menu, .sui-form .input-append .popover, .sui-form .input-prepend .popover { font-size: 12px; } .sui-form .input-append input, .sui-form .input-prepend input, .sui-form .input-append select, .sui-form .input-prepend select, .sui-form .input-append .uneditable-input, .sui-form .input-prepend .uneditable-input { position: relative; margin-bottom: 0; *margin-left: 0; vertical-align: top; -webkit-border-radius: 0 2px 2px 0; -moz-border-radius: 0 2px 2px 0; border-radius: 0 2px 2px 0; } .sui-form .input-append input:focus, .sui-form .input-prepend input:focus, .sui-form .input-append select:focus, .sui-form .input-prepend select:focus, .sui-form .input-append .uneditable-input:focus, .sui-form .input-prepend .uneditable-input:focus { z-index: 2; } .sui-form .input-append .add-on, .sui-form .input-prepend .add-on { display: inline-block; width: auto; height: 18px; min-width: 16px; padding: 4px 5px; font-size: 12px; font-weight: 400; line-height: 18px; text-align: center; text-shadow: 0 1px 0 #fff; background-color: #eee; border: 1px solid #ccc; } .sui-form .input-append .add-on, .sui-form .input-prepend .add-on, .sui-form .input-append .btn, .sui-form .input-prepend .btn, .sui-form .input-append .btn-group>.dropdown-toggle, .sui-form .input-prepend .btn-group>.dropdown-toggle { vertical-align: top; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .sui-form .input-append .active, .sui-form .input-prepend .active { background-color: #a9dba9; border-color: #46a546; } .sui-form .input-inner { display: inline-block; margin-bottom: 9px; vertical-align: middle; font-size: 0; white-space: nowrap; } .sui-form .input-inner input, .sui-form .input-inner select, .sui-form .input-inner .uneditable-input, .sui-form .input-inner .dropdown-menu, .sui-form .input-inner .popover { font-size: 12px; } .sui-form .input-inner input, .sui-form .input-inner select, .sui-form .input-inner .uneditable-input { position: relative; margin-bottom: 0; *margin-left: 0; vertical-align: top; -webkit-border-radius: 0 2px 2px 0; -moz-border-radius: 0 2px 2px 0; border-radius: 0 2px 2px 0; } .sui-form .input-inner input:focus, .sui-form .input-inner select:focus, .sui-form .input-inner .uneditable-input:focus { z-index: 2; } .sui-form .input-inner .add-on { display: inline-block; width: auto; height: 18px; min-width: 16px; padding: 4px 5px; font-size: 12px; font-weight: 400; line-height: 18px; text-align: center; text-shadow: 0 1px 0 #fff; background-color: #eee; border: 1px solid #ccc; } .sui-form .input-inner .add-on, .sui-form .input-inner .btn, .sui-form .input-inner .btn-group>.dropdown-toggle { vertical-align: top; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .sui-form .input-inner .active { background-color: #a9dba9; border-color: #46a546; } .sui-form .input-inner input, .sui-form .input-inner select, .sui-form .input-inner .uneditable-input { -webkit-border-radius: 2px 0 0 2px; -moz-border-radius: 2px 0 0 2px; border-radius: 2px 0 0 2px; } .sui-form .input-inner input+.btn-group .btn:last-child, .sui-form .input-inner select+.btn-group .btn:last-child, .sui-form .input-inner .uneditable-input+.btn-group .btn:last-child { -webkit-border-radius: 0 2px 2px 0; -moz-border-radius: 0 2px 2px 0; border-radius: 0 2px 2px 0; } .sui-form .input-inner .add-on, .sui-form .input-inner .btn, .sui-form .input-inner .btn-group { margin-left: -1px; } .sui-form .input-inner .add-on:last-child, .sui-form .input-inner .btn:last-child, .sui-form .input-inner .btn-group:last-child>.dropdown-toggle { -webkit-border-radius: 0 2px 2px 0; -moz-border-radius: 0 2px 2px 0; border-radius: 0 2px 2px 0; } .sui-form .input-inner input { -webkit-border-radius: 2px 0 0 2px; -moz-border-radius: 2px 0 0 2px; border-radius: 2px 0 0 2px; } .sui-form .input-inner .add-on { margin-right: -1px; } .sui-form .input-inner .add-on+input { -webkit-border-radius: 0 2px 2px 0; -moz-border-radius: 0 2px 2px 0; border-radius: 0 2px 2px 0; } .sui-form .input-prepend .add-on, .sui-form .input-prepend .btn { margin-right: -1px; } .sui-form .input-prepend .add-on:first-child, .sui-form .input-prepend .btn:first-child { -webkit-border-radius: 2px 0 0 2px; -moz-border-radius: 2px 0 0 2px; border-radius: 2px 0 0 2px; } .sui-form .input-append input, .sui-form .input-append select, .sui-form .input-append .uneditable-input { -webkit-border-radius: 2px 0 0 2px; -moz-border-radius: 2px 0 0 2px; border-radius: 2px 0 0 2px; } .sui-form .input-append input+.btn-group .btn:last-child, .sui-form .input-append select+.btn-group .btn:last-child, .sui-form .input-append .uneditable-input+.btn-group .btn:last-child { -webkit-border-radius: 0 2px 2px 0; -moz-border-radius: 0 2px 2px 0; border-radius: 0 2px 2px 0; } .sui-form .input-append .add-on, .sui-form .input-append .btn, .sui-form .input-append .btn-group { margin-left: -1px; } .sui-form .input-append .add-on:last-child, .sui-form .input-append .btn:last-child, .sui-form .input-append .btn-group:last-child>.dropdown-toggle { -webkit-border-radius: 0 2px 2px 0; -moz-border-radius: 0 2px 2px 0; border-radius: 0 2px 2px 0; } .sui-form .input-prepend.input-append input, .sui-form .input-prepend.input-append select, .sui-form .input-prepend.input-append .uneditable-input { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .sui-form .input-prepend.input-append input+.btn-group .btn, .sui-form .input-prepend.input-append select+.btn-group .btn, .sui-form .input-prepend.input-append .uneditable-input+.btn-group .btn { -webkit-border-radius: 0 2px 2px 0; -moz-border-radius: 0 2px 2px 0; border-radius: 0 2px 2px 0; } .sui-form .input-prepend.input-append .add-on:first-child, .sui-form .input-prepend.input-append .btn:first-child { margin-right: -1px; -webkit-border-radius: 2px 0 0 2px; -moz-border-radius: 2px 0 0 2px; border-radius: 2px 0 0 2px; } .sui-form .input-prepend.input-append .add-on:last-child, .sui-form .input-prepend.input-append .btn:last-child { margin-left: -1px; -webkit-border-radius: 0 2px 2px 0; -moz-border-radius: 0 2px 2px 0; border-radius: 0 2px 2px 0; } .sui-form .input-prepend.input-append .btn-group:first-child { margin-left: 0; } .sui-form input.search-query { padding-right: 14px; padding-right: 4px \9; padding-left: 14px; padding-left: 4px \9; margin-bottom: 0; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } .sui-form.form-search .input-append .search-query, .sui-form.form-search .input-prepend .search-query { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .sui-form.form-search .input-append .search-query { -webkit-border-radius: 14px 0 0 14px; -moz-border-radius: 14px 0 0 14px; border-radius: 14px 0 0 14px; } .sui-form.form-search .input-append .btn { -webkit-border-radius: 0 14px 14px 0; -moz-border-radius: 0 14px 14px 0; border-radius: 0 14px 14px 0; } .sui-form.form-search .input-prepend .search-query { -webkit-border-radius: 0 14px 14px 0; -moz-border-radius: 0 14px 14px 0; border-radius: 0 14px 14px 0; } .sui-form.form-search .input-prepend .btn { -webkit-border-radius: 14px 0 0 14px; -moz-border-radius: 14px 0 0 14px; border-radius: 14px 0 0 14px; } .sui-form.form-search input, .sui-form.form-inline input, .sui-form.form-horizontal input, .sui-form.form-search textarea, .sui-form.form-inline textarea, .sui-form.form-horizontal textarea, .sui-form.form-search select, .sui-form.form-inline select, .sui-form.form-horizontal select, .sui-form.form-search .help-inline, .sui-form.form-inline .help-inline, .sui-form.form-horizontal .help-inline, .sui-form.form-search .uneditable-input, .sui-form.form-inline .uneditable-input, .sui-form.form-horizontal .uneditable-input, .sui-form.form-search .input-prepend, .sui-form.form-inline .input-prepend, .sui-form.form-horizontal .input-prepend, .sui-form.form-search .input-append, .sui-form.form-inline .input-append, .sui-form.form-horizontal .input-append { display: inline-block; *display: inline; *zoom: 1; margin-bottom: 0; vertical-align: middle; } .sui-form.form-search .hide, .sui-form.form-inline .hide, .sui-form.form-horizontal .hide { display: none; } .sui-form.form-search label, .sui-form.form-inline label, .sui-form.form-search .btn-group, .sui-form.form-inline .btn-group { display: inline-block; } .sui-form.form-search .input-append, .sui-form.form-inline .input-append, .sui-form.form-search .input-prepend, .sui-form.form-inline .input-prepend { margin-bottom: 0; } .sui-form.form-search .radio, .sui-form.form-search .checkbox, .sui-form.form-inline .radio, .sui-form.form-inline .checkbox { padding-left: 0; margin-bottom: 0; vertical-align: middle; } .sui-form .control-group { margin-bottom: 9px; } .sui-form .control-label { display: block; line-height: 24px; } .sui-form legend+.control-group { margin-top: 18px; -webkit-margin-top-collapse: separate; } .sui-form.form-horizontal .control-group { margin-bottom: 18px; display: table; } .sui-form.form-horizontal .control-label { width: 96px; text-align: right; display: table-cell; vertical-align: middle; } .sui-form.form-horizontal .v-top { vertical-align: top; } .sui-form.form-horizontal .v-bottom { vertical-align: bottom; } .sui-form.form-horizontal .controls { display: table-cell; padding-left: 3px; } .sui-form.form-horizontal .controls:first-child { *padding-left: 96px; } .sui-form.form-horizontal .help-block { margin-top: 0; } .sui-form.form-horizontal input~.help-block, .sui-form.form-horizontal select~.help-block, .sui-form.form-horizontal textarea~.help-block, .sui-form.form-horizontal .uneditable-input~.help-block, .sui-form.form-horizontal .input-prepend~.help-block, .sui-form.form-horizontal .input-append~.help-block, .sui-form.form-horizontal .radio~.help-block, .sui-form.form-horizontal .radio-pretty~.help-block, .sui-form.form-horizontal .checkbox-pretty~.help-block, .sui-form.form-horizontal .sui-dropdown~.help-block, .sui-form.form-horizontal .checkbox~.help-block { margin-top: 9px; } .sui-form.form-horizontal.form-actions { padding-left: 96px; } .sui-form .input-control { display: inline-block; position: relative; } .sui-form .input-control .sui-icon { position: absolute; color: #aaa; font-size: 14px; left: 6px; top: 5px; } .sui-form .input-control .input-thin+.sui-icon { top: 4px; font-size: 12px; } .sui-form .input-control .input-fat+.sui-icon { top: 7px; } .sui-form .input-control .input-xfat+.sui-icon { top: 8px; font-size: 16px; } .sui-form .input-control input:focus~.sui-icon { display: none; } .sui-form .input-control.control-right .sui-icon { left: auto; right: 6px; } .checkbox-pretty, .radio-pretty { display: block; position: relative; } .checkbox-pretty input, .radio-pretty input { opacity: 0; position: absolute; z-index: -99999; left: -9999px; top: 0; } .checkbox-pretty span, .radio-pretty span { font-family: icon-pc; } .checkbox-pretty span[class^="icon-pc-"], .radio-pretty span[class^="icon-pc-"], .checkbox-pretty span[class*=" icon-pc-"], .radio-pretty span[class*=" icon-pc-"] { font-family: icon-pc; speak: none; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .checkbox-pretty span[class^="icon-touch-"], .radio-pretty span[class^="icon-touch-"], .checkbox-pretty span[class*=" icon-touch-"], .radio-pretty span[class*=" icon-touch-"] { font-family: icon-touch; speak: none; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .checkbox-pretty span[class^="icon-tb-"], .radio-pretty span[class^="icon-tb-"], .checkbox-pretty span[class*=" icon-tb-"], .radio-pretty span[class*=" icon-tb-"] { font-family: icon-tb; speak: none; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .checkbox-pretty span:before, .radio-pretty span:before { content: "\e605"; margin-right: 2px; vertical-align: -4px; font-size: 150%; font-size: 130% \9; vertical-align: -3px \9; color: #666; margin-left: -2px; } .checkbox-pretty.checked>span:before, .radio-pretty.checked>span:before { content: "\e607"; color: #28a3ef; } .checkbox-pretty.halfchecked>span:before, .radio-pretty.halfchecked>span:before { content: "\e606"; color: #28a3ef; } .checkbox-pretty:hover span:before, .radio-pretty:hover span:before { color: #4cb9fc; } .checkbox-pretty.inline, .radio-pretty.inline { display: inline; } .checkbox-pretty.inline+.checkbox-pretty.inline, .checkbox-pretty.inline+.radio-pretty.inline, .radio-pretty.inline+.checkbox-pretty.inline, .radio-pretty.inline+.radio-pretty.inline { margin-left: 6px; } .checkbox-pretty.disabled, .radio-pretty.disabled, .checkbox-pretty.readonly, .radio-pretty.readonly { color: #c3c3c3; cursor: default; } .checkbox-pretty.disabled span:before, .radio-pretty.disabled span:before, .checkbox-pretty.readonly span:before, .radio-pretty.readonly span:before { color: #aaa; } .radio-pretty span:before { content: "\e603"; } .radio-pretty.checked>span:before { content: "\e604"; } .sui-msg { display: inline-block; *display: inline; *zoom: 1; position: relative; color: #555; } .sui-msg>.msg-icon { font-size: 14px; font-family: icon-pc; font-style: normal; text-decoration: none; } .sui-msg>.msg-icon[class^="icon-pc-"], .sui-msg>.msg-icon[class*=" icon-pc-"] { font-family: icon-pc; speak: none; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .sui-msg>.msg-icon[class^="icon-touch-"], .sui-msg>.msg-icon[class*=" icon-touch-"] { font-family: icon-touch; speak: none; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .sui-msg>.msg-icon[class^="icon-tb-"], .sui-msg>.msg-icon[class*=" icon-tb-"] { font-family: icon-tb; speak: none; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .sui-msg.msg-error>.msg-icon:before { content: "\c60d"; } .sui-msg.msg-stop>.msg-icon:before { content: "\c60b"; } .sui-msg.msg-success>.msg-icon:before { content: "\e601"; } .sui-msg.msg-warning>.msg-icon:before { content: "\c612"; } .sui-msg.msg-notice>.msg-icon:before { content: "\c601"; } .sui-msg.msg-tips>.msg-icon:before { content: "\c609"; } .sui-msg.msg-info>.msg-icon:before { content: "\c60a"; } .sui-msg.msg-question>.msg-icon:before { content: "\c605"; } .sui-msg>.msg-con { -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; } .sui-msg>.msg-con p { font-weight: 400; margin-bottom: 0; margin-top: 9px; } .sui-msg>.msg-con .sui-close { float: none; position: absolute; top: 11px; right: 11px; } .sui-msg>.msg-icon { display: inline-block; *display: inline; *zoom: 1; position: absolute; } .sui-msg { font-size: 12px; line-height: 18px; vertical-align: middle; } .sui-msg>.msg-con { padding: 2px 10px 2px 23px; } .sui-msg>.msg-icon { top: 3px; left: 6px; } .sui-msg .sui-close { font-size: 18px; font-weight: 400; color: inherit; } .sui-msg.msg-large { font-size: 14px; line-height: 22px; font-weight: 700; } .sui-msg.msg-large .sui-close { font-size: 24px; } .sui-msg.msg-large>.msg-con { padding: 11px 28px 11px 44px; } .sui-msg.msg-large>.msg-icon { top: 12px; left: 11px; font-size: 24px; } .sui-msg.msg-error { color: #ea4a36; } .sui-msg.msg-error>.msg-con { border: 1px solid #ffe3e0; background-color: #fff2f2; } .sui-msg.msg-stop { color: #ea4a36; } .sui-msg.msg-stop>.msg-con { border: 1px solid #ffe3e0; background-color: #fff2f2; } .sui-msg.msg-success { color: #77b72c; } .sui-msg.msg-success>.msg-con { border: 1px solid #dcf9d6; background-color: #edffe9; } .sui-msg.msg-warning { color: #cf700b; } .sui-msg.msg-warning>.msg-con { border: 1px solid #fee8d7; background-color: #fef1e3; } .sui-msg.msg-notice { color: #ee9f28; } .sui-msg.msg-notice>.msg-con { border: 1px solid #faf1d7; background-color: #fffff1; } .sui-msg.msg-tips { color: #ee9f28; } .sui-msg.msg-tips>.msg-con { border: 1px solid #faf1d7; background-color: #fffff1; } .sui-msg.msg-info { color: #3a9ed5; } .sui-msg.msg-info>.msg-con { border: 1px solid #e4f3fd; background-color: #f2faff; } .sui-msg.msg-question { color: #333; } .sui-msg.msg-question>.msg-con { border: 1px solid #eaeaea; background-color: #f7f7f7; } .sui-msg.msg-block { display: block; margin-bottom: 18px; } .sui-msg.msg-clear { display: block; } .sui-msg.msg-clear>.msg-con { display: inline-block; *display: inline; *zoom: 1; } .sui-msg.msg-default .msg-con { color: #555; } .sui-msg.msg-naked { padding: 1px; } .sui-msg.msg-naked>.msg-con { border: 0; background-color: transparent; } .sui-msg.remember { display: none; } .typographic img { display: block; float: left; margin-right: 10px; } .typographic a { display: block; float: left; min-width: 80px; max-width: 250px; color: #F4A951; } .typographic span { display: block; float: left; min-width: 80px; max-width: 250px; text-align: center; } .typographic ul { display: block; float: left; min-width: 80px; max-width: 250px; text-align: center; } .sui-table { width: 100%; margin-bottom: 18px; max-width: 100%; background-color: transparent; border-collapse: collapse; border-spacing: 0; } .sui-table .gray { color: #999; } .sui-table th img, .sui-table td img, .sui-table th label, .sui-table td label { margin-right: 10px; } .sui-table ul { margin: 0; } .sui-table label.checkbox { display: inline-block; } .sui-table th, .sui-table td { padding: 10px 8px; line-height: 18px; text-align: left; vertical-align: middle; border-top: 1px solid #eee; } .sui-table th { font-weight: normal; } .sui-table thead th { vertical-align: bottom; } .sui-table caption+thead tr:first-child th, .sui-table caption+thead tr:first-child td, .sui-table colgroup+thead tr:first-child th, .sui-table colgroup+thead tr:first-child td, .sui-table thead:first-child tr:first-child th, .sui-table thead:first-child tr:first-child td { border-top: 0; } .sui-table tbody+tbody { border-top: 2px solid #eee; } .sui-table .sui-table { background-color: #fff; } .sui-table label { margin-bottom: 0; } .sui-table th.center { text-align: center; } .sui-table td.center { text-align: center; } .sui-table.table-condensed th, .sui-table.table-condensed td { padding: 4px 5px; } .sui-table.table-bordered { border: 1px solid #eee; border-collapse: separate; *border-collapse: collapse; border-left: 0; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; } .sui-table.table-bordered th { background-color: #f4f4f4; } .sui-table.table-bordered th, .sui-table.table-bordered td { border-left: 1px solid #eee; } .sui-table.table-bordered caption+thead tr:first-child th, .sui-table.table-bordered caption+tbody tr:first-child th, .sui-table.table-bordered caption+tbody tr:first-child td, .sui-table.table-bordered colgroup+thead tr:first-child th, .sui-table.table-bordered colgroup+tbody tr:first-child th, .sui-table.table-bordered colgroup+tbody tr:first-child td, .sui-table.table-bordered thead:first-child tr:first-child th, .sui-table.table-bordered tbody:first-child tr:first-child th, .sui-table.table-bordered tbody:first-child tr:first-child td { border-top: 0; } .sui-table.table-bordered tbody tr:first-child td { border-top: 0; } .sui-table.table-bordered thead:first-child tr:first-child th { border-bottom: 1px solid #eee; } .sui-table.table-bordered thead:first-child tr:first-child>th:first-child, .sui-table.table-bordered tbody:first-child tr:first-child>td:first-child, .sui-table.table-bordered tbody:first-child tr:first-child>th:first-child { -webkit-border-top-left-radius: 2px; -moz-border-radius-topleft: 2px; border-top-left-radius: 2px; } .sui-table.table-bordered thead:first-child tr:first-child>th:last-child, .sui-table.table-bordered tbody:first-child tr:first-child>td:last-child, .sui-table.table-bordered tbody:first-child tr:first-child>th:last-child { -webkit-border-top-right-radius: 2px; -moz-border-radius-topright: 2px; border-top-right-radius: 2px; } .sui-table.table-bordered thead:last-child tr:last-child>th:first-child, .sui-table.table-bordered tbody:last-child tr:last-child>td:first-child, .sui-table.table-bordered tbody:last-child tr:last-child>th:first-child, .sui-table.table-bordered tfoot:last-child tr:last-child>td:first-child, .sui-table.table-bordered tfoot:last-child tr:last-child>th:first-child { -webkit-border-bottom-left-radius: 2px; -moz-border-radius-bottomleft: 2px; border-bottom-left-radius: 2px; } .sui-table.table-bordered thead:last-child tr:last-child>th:last-child, .sui-table.table-bordered tbody:last-child tr:last-child>td:last-child, .sui-table.table-bordered tbody:last-child tr:last-child>th:last-child, .sui-table.table-bordered tfoot:last-child tr:last-child>td:last-child, .sui-table.table-bordered tfoot:last-child tr:last-child>th:last-child { -webkit-border-bottom-right-radius: 2px; -moz-border-radius-bottomright: 2px; border-bottom-right-radius: 2px; } .sui-table.table-bordered tfoot+tbody:last-child tr:last-child td:first-child { -webkit-border-bottom-left-radius: 0; -moz-border-radius-bottomleft: 0; border-bottom-left-radius: 0; } .sui-table.table-bordered tfoot+tbody:last-child tr:last-child td:last-child { -webkit-border-bottom-right-radius: 0; -moz-border-radius-bottomright: 0; border-bottom-right-radius: 0; } .sui-table.table-bordered caption+thead tr:first-child th:first-child, .sui-table.table-bordered caption+tbody tr:first-child td:first-child, .sui-table.table-bordered colgroup+thead tr:first-child th:first-child, .sui-table.table-bordered colgroup+tbody tr:first-child td:first-child { -webkit-border-top-left-radius: 2px; -moz-border-radius-topleft: 2px; border-top-left-radius: 2px; } .sui-table.table-bordered caption+thead tr:first-child th:last-child, .sui-table.table-bordered caption+tbody tr:first-child td:last-child, .sui-table.table-bordered colgroup+thead tr:first-child th:last-child, .sui-table.table-bordered colgroup+tbody tr:first-child td:last-child { -webkit-border-top-right-radius: 2px; -moz-border-radius-topright: 2px; border-top-right-radius: 2px; } .sui-table.table-bordered-simple { border: 1px solid #eee; border-collapse: separate; *border-collapse: collapse; border-left: 0; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; margin-bottom: 5px; } .sui-table.table-bordered-simple th { background-color: #f4f4f4; } .sui-table.table-bordered-simple th, .sui-table.table-bordered-simple td { border-left: 1px solid #eee; } .sui-table.table-bordered-simple caption+thead tr:first-child th, .sui-table.table-bordered-simple caption+tbody tr:first-child th, .sui-table.table-bordered-simple caption+tbody tr:first-child td, .sui-table.table-bordered-simple colgroup+thead tr:first-child th, .sui-table.table-bordered-simple colgroup+tbody tr:first-child th, .sui-table.table-bordered-simple colgroup+tbody tr:first-child td, .sui-table.table-bordered-simple thead:first-child tr:first-child th, .sui-table.table-bordered-simple tbody:first-child tr:first-child th, .sui-table.table-bordered-simple tbody:first-child tr:first-child td { border-top: 0; } .sui-table.table-bordered-simple tbody tr:first-child td { border-top: 0; } /* .sui-table.table-bordered-simple thead:first-child tr:first-child th { border-bottom: 1px solid #eee; } */ .sui-table.table-bordered-simple thead:first-child tr:first-child>th:first-child, .sui-table.table-bordered-simple tbody:first-child tr:first-child>td:first-child, .sui-table.table-bordered-simple tbody:first-child tr:first-child>th:first-child { -webkit-border-top-left-radius: 2px; -moz-border-radius-topleft: 2px; border-top-left-radius: 2px; } .sui-table.table-bordered-simple thead:first-child tr:first-child>th:last-child, .sui-table.table-bordered-simple tbody:first-child tr:first-child>td:last-child, .sui-table.table-bordered-simple tbody:first-child tr:first-child>th:last-child { -webkit-border-top-right-radius: 2px; -moz-border-radius-topright: 2px; border-top-right-radius: 2px; } .sui-table.table-bordered-simple thead:last-child tr:last-child>th:first-child, .sui-table.table-bordered-simple tbody:last-child tr:last-child>td:first-child, .sui-table.table-bordered-simple tbody:last-child tr:last-child>th:first-child, .sui-table.table-bordered-simple tfoot:last-child tr:last-child>td:first-child, .sui-table.table-bordered-simple tfoot:last-child tr:last-child>th:first-child { -webkit-border-bottom-left-radius: 2px; -moz-border-radius-bottomleft: 2px; border-bottom-left-radius: 2px; } .sui-table.table-bordered-simple thead:last-child tr:last-child>th:last-child, .sui-table.table-bordered-simple tbody:last-child tr:last-child>td:last-child, .sui-table.table-bordered-simple tbody:last-child tr:last-child>th:last-child, .sui-table.table-bordered-simple tfoot:last-child tr:last-child>td:last-child, .sui-table.table-bordered-simple tfoot:last-child tr:last-child>th:last-child { -webkit-border-bottom-right-radius: 2px; -moz-border-radius-bottomright: 2px; border-bottom-right-radius: 2px; } .sui-table.table-bordered-simple tfoot+tbody:last-child tr:last-child td:first-child { -webkit-border-bottom-left-radius: 0; -moz-border-radius-bottomleft: 0; border-bottom-left-radius: 0; } .sui-table.table-bordered-simple tfoot+tbody:last-child tr:last-child td:last-child { -webkit-border-bottom-right-radius: 0; -moz-border-radius-bottomright: 0; border-bottom-right-radius: 0; } .sui-table.table-bordered-simple caption+thead tr:first-child th:first-child, .sui-table.table-bordered-simple caption+tbody tr:first-child td:first-child, .sui-table.table-bordered-simple colgroup+thead tr:first-child th:first-child, .sui-table.table-bordered-simple colgroup+tbody tr:first-child td:first-child { -webkit-border-top-left-radius: 2px; -moz-border-radius-topleft: 2px; border-top-left-radius: 2px; } .sui-table.table-bordered-simple caption+thead tr:first-child th:last-child, .sui-table.table-bordered-simple caption+tbody tr:first-child td:last-child, .sui-table.table-bordered-simple colgroup+thead tr:first-child th:last-child, .sui-table.table-bordered-simple colgroup+tbody tr:first-child td:last-child { -webkit-border-top-right-radius: 2px; -moz-border-radius-topright: 2px; border-top-right-radius: 2px; } .sui-table.table-bordered-simple th, .sui-table.table-bordered-simple td { border-left: 0; } .sui-table.table-bordered-simple th:first-child, .sui-table.table-bordered-simple td:first-child { border-left: 1px solid #eee; } .sui-table.table-sideheader.table-nobordered td { border-left: 0; } .sui-table.table-sideheader.table-primary.table-vzebra tr th, .sui-table.table-sideheader.table-primary.table-zebra tr th { background-color: #4cb9fc; } .sui-table.table-sideheader.table-nobordered.table-primary th { background-color: #4cb9fc; } .sui-table.table-sideheader.table-bordered-simple td { border-left: 0; } .sui-table.table-sideheader.table-bordered-simple th { border-right: 1px solid #eee; } .sui-table.table-sideheader tbody tr td:first-child { background-color: #f4f4f4; } .sui-table.table-sideheader tbody tr:first-child td, .sui-table.table-sideheader tbody tr:first-child th { border-top: 0; } .sui-table.table-nobody { margin-bottom: 0; } .sui-table.table-zebra tbody>tr:nth-child(odd)>td, .sui-table.table-zebra tbody>tr:nth-child(odd)>th { background-color: #f9f9f9; } .sui-table.table-vzebra { border: 1px solid #eee; border-collapse: separate; *border-collapse: collapse; border-left: 0; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; } .sui-table.table-vzebra th { background-color: #f4f4f4; } .sui-table.table-vzebra th, .sui-table.table-vzebra td { border-left: 1px solid #eee; } .sui-table.table-vzebra caption+thead tr:first-child th, .sui-table.table-vzebra caption+tbody tr:first-child th, .sui-table.table-vzebra caption+tbody tr:first-child td, .sui-table.table-vzebra colgroup+thead tr:first-child th, .sui-table.table-vzebra colgroup+tbody tr:first-child th, .sui-table.table-vzebra colgroup+tbody tr:first-child td, .sui-table.table-vzebra thead:first-child tr:first-child th, .sui-table.table-vzebra tbody:first-child tr:first-child th, .sui-table.table-vzebra tbody:first-child tr:first-child td { border-top: 0; } .sui-table.table-vzebra tbody tr:first-child td { border-top: 0; } .sui-table.table-vzebra thead:first-child tr:first-child th { border-bottom: 1px solid #eee; } .sui-table.table-vzebra thead:first-child tr:first-child>th:first-child, .sui-table.table-vzebra tbody:first-child tr:first-child>td:first-child, .sui-table.table-vzebra tbody:first-child tr:first-child>th:first-child { -webkit-border-top-left-radius: 2px; -moz-border-radius-topleft: 2px; border-top-left-radius: 2px; } .sui-table.table-vzebra thead:first-child tr:first-child>th:last-child, .sui-table.table-vzebra tbody:first-child tr:first-child>td:last-child, .sui-table.table-vzebra tbody:first-child tr:first-child>th:last-child { -webkit-border-top-right-radius: 2px; -moz-border-radius-topright: 2px; border-top-right-radius: 2px; } .sui-table.table-vzebra thead:last-child tr:last-child>th:first-child, .sui-table.table-vzebra tbody:last-child tr:last-child>td:first-child, .sui-table.table-vzebra tbody:last-child tr:last-child>th:first-child, .sui-table.table-vzebra tfoot:last-child tr:last-child>td:first-child, .sui-table.table-vzebra tfoot:last-child tr:last-child>th:first-child { -webkit-border-bottom-left-radius: 2px; -moz-border-radius-bottomleft: 2px; border-bottom-left-radius: 2px; } .sui-table.table-vzebra thead:last-child tr:last-child>th:last-child, .sui-table.table-vzebra tbody:last-child tr:last-child>td:last-child, .sui-table.table-vzebra tbody:last-child tr:last-child>th:last-child, .sui-table.table-vzebra tfoot:last-child tr:last-child>td:last-child, .sui-table.table-vzebra tfoot:last-child tr:last-child>th:last-child { -webkit-border-bottom-right-radius: 2px; -moz-border-radius-bottomright: 2px; border-bottom-right-radius: 2px; } .sui-table.table-vzebra tfoot+tbody:last-child tr:last-child td:first-child { -webkit-border-bottom-left-radius: 0; -moz-border-radius-bottomleft: 0; border-bottom-left-radius: 0; } .sui-table.table-vzebra tfoot+tbody:last-child tr:last-child td:last-child { -webkit-border-bottom-right-radius: 0; -moz-border-radius-bottomright: 0; border-bottom-right-radius: 0; } .sui-table.table-vzebra caption+thead tr:first-child th:first-child, .sui-table.table-vzebra caption+tbody tr:first-child td:first-child, .sui-table.table-vzebra colgroup+thead tr:first-child th:first-child, .sui-table.table-vzebra colgroup+tbody tr:first-child td:first-child { -webkit-border-top-left-radius: 2px; -moz-border-radius-topleft: 2px; border-top-left-radius: 2px; } .sui-table.table-vzebra caption+thead tr:first-child th:last-child, .sui-table.table-vzebra caption+tbody tr:first-child td:last-child, .sui-table.table-vzebra colgroup+thead tr:first-child th:last-child, .sui-table.table-vzebra colgroup+tbody tr:first-child td:last-child { -webkit-border-top-right-radius: 2px; -moz-border-radius-topright: 2px; border-top-right-radius: 2px; } .sui-table.table-vzebra tbody>tr>td:nth-child(odd), .sui-table.table-vzebra tbody>tr>th:nth-child(odd) { background-color: #f9f9f9; } .sui-table.table-nobordered tbody>tr:nth-child(odd)>td, .sui-table.table-nobordered tbody>tr:nth-child(odd)>th { background-color: #f9f9f9; } .sui-table.table-nobordered th { border-bottom: 1px solid #eee; } .sui-table.table-nobordered th, .sui-table.table-nobordered td { border-top: 0; } .sui-table.table-nobordered.table-sideheader th { border-right: 1px solid #eee; border-bottom: 0; } .sui-table.table-primary { border: 1px solid #eee; border-collapse: separate; *border-collapse: collapse; border-left: 0; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; } .sui-table.table-primary th { background-color: #f4f4f4; } .sui-table.table-primary th, .sui-table.table-primary td { border-left: 1px solid #eee; } .sui-table.table-primary caption+thead tr:first-child th, .sui-table.table-primary caption+tbody tr:first-child th, .sui-table.table-primary caption+tbody tr:first-child td, .sui-table.table-primary colgroup+thead tr:first-child th, .sui-table.table-primary colgroup+tbody tr:first-child th, .sui-table.table-primary colgroup+tbody tr:first-child td, .sui-table.table-primary thead:first-child tr:first-child th, .sui-table.table-primary tbody:first-child tr:first-child th, .sui-table.table-primary tbody:first-child tr:first-child td { border-top: 0; } .sui-table.table-primary tbody tr:first-child td { border-top: 0; } .sui-table.table-primary thead:first-child tr:first-child th { border-bottom: 1px solid #eee; } .sui-table.table-primary thead:first-child tr:first-child>th:first-child, .sui-table.table-primary tbody:first-child tr:first-child>td:first-child, .sui-table.table-primary tbody:first-child tr:first-child>th:first-child { -webkit-border-top-left-radius: 2px; -moz-border-radius-topleft: 2px; border-top-left-radius: 2px; } .sui-table.table-primary thead:first-child tr:first-child>th:last-child, .sui-table.table-primary tbody:first-child tr:first-child>td:last-child, .sui-table.table-primary tbody:first-child tr:first-child>th:last-child { -webkit-border-top-right-radius: 2px; -moz-border-radius-topright: 2px; border-top-right-radius: 2px; } .sui-table.table-primary thead:last-child tr:last-child>th:first-child, .sui-table.table-primary tbody:last-child tr:last-child>td:first-child, .sui-table.table-primary tbody:last-child tr:last-child>th:first-child, .sui-table.table-primary tfoot:last-child tr:last-child>td:first-child, .sui-table.table-primary tfoot:last-child tr:last-child>th:first-child { -webkit-border-bottom-left-radius: 2px; -moz-border-radius-bottomleft: 2px; border-bottom-left-radius: 2px; } .sui-table.table-primary thead:last-child tr:last-child>th:last-child, .sui-table.table-primary tbody:last-child tr:last-child>td:last-child, .sui-table.table-primary tbody:last-child tr:last-child>th:last-child, .sui-table.table-primary tfoot:last-child tr:last-child>td:last-child, .sui-table.table-primary tfoot:last-child tr:last-child>th:last-child { -webkit-border-bottom-right-radius: 2px; -moz-border-radius-bottomright: 2px; border-bottom-right-radius: 2px; } .sui-table.table-primary tfoot+tbody:last-child tr:last-child td:first-child { -webkit-border-bottom-left-radius: 0; -moz-border-radius-bottomleft: 0; border-bottom-left-radius: 0; } .sui-table.table-primary tfoot+tbody:last-child tr:last-child td:last-child { -webkit-border-bottom-right-radius: 0; -moz-border-radius-bottomright: 0; border-bottom-right-radius: 0; } .sui-table.table-primary caption+thead tr:first-child th:first-child, .sui-table.table-primary caption+tbody tr:first-child td:first-child, .sui-table.table-primary colgroup+thead tr:first-child th:first-child, .sui-table.table-primary colgroup+tbody tr:first-child td:first-child { -webkit-border-top-left-radius: 2px; -moz-border-radius-topleft: 2px; border-top-left-radius: 2px; } .sui-table.table-primary caption+thead tr:first-child th:last-child, .sui-table.table-primary caption+tbody tr:first-child td:last-child, .sui-table.table-primary colgroup+thead tr:first-child th:last-child, .sui-table.table-primary colgroup+tbody tr:first-child td:last-child { -webkit-border-top-right-radius: 2px; -moz-border-radius-topright: 2px; border-top-right-radius: 2px; } .sui-table.table-primary th { background-color: #28a3ef; border-left: 1px solid #4cb9fc; color: #fff; } .sui-table.table-hover tbody tr:hover>td, .sui-table.table-hover tbody tr:hover>th { background-color: #fafafa; } .sui-table td[class*="span"], .sui-table th[class*="span"], .row-fluid .sui-table td[class*="span"], .row-fluid .sui-table th[class*="span"] { display: table-cell; float: none; margin-left: 0; } .sui-table td.span1, .sui-table th.span1 { float: none; width: 58px; margin-left: 0; } .sui-table td.span2, .sui-table th.span2 { float: none; width: 142px; margin-left: 0; } .sui-table td.span3, .sui-table th.span3 { float: none; width: 226px; margin-left: 0; } .sui-table td.span4, .sui-table th.span4 { float: none; width: 310px; margin-left: 0; } .sui-table td.span5, .sui-table th.span5 { float: none; width: 394px; margin-left: 0; } .sui-table td.span6, .sui-table th.span6 { float: none; width: 478px; margin-left: 0; } .sui-table td.span7, .sui-table th.span7 { float: none; width: 562px; margin-left: 0; } .sui-table td.span8, .sui-table th.span8 { float: none; width: 646px; margin-left: 0; } .sui-table td.span9, .sui-table th.span9 { float: none; width: 730px; margin-left: 0; } .sui-table td.span10, .sui-table th.span10 { float: none; width: 814px; margin-left: 0; } .sui-table td.span11, .sui-table th.span11 { float: none; width: 898px; margin-left: 0; } .sui-table td.span12, .sui-table th.span12 { float: none; width: 982px; margin-left: 0; } .sui-table tbody tr.success>td { background-color: #dff0d8; } .sui-table tbody tr.error>td { background-color: #f2dede; } .sui-table tbody tr.warning>td { background-color: #fcf8e3; } .sui-table tbody tr.info>td { background-color: #d9edf7; } .sui-table .table-hover tbody tr.success:hover>td { background-color: #d0e9c6; } .sui-table .table-hover tbody tr.error:hover>td { background-color: #ebcccc; } .sui-table .table-hover tbody tr.warning:hover>td { background-color: #faf2cc; } .sui-table .table-hover tbody tr.info:hover>td { background-color: #c4e3f3; } .sui-dropup, .sui-dropdown { position: relative; display: inline-block; } .sui-dropup .dropdown-toggle, .sui-dropdown .dropdown-toggle { *margin-bottom: -3px; } .sui-dropup .dropdown-inner>a, .sui-dropdown .dropdown-inner>a { text-decoration: none; } .sui-dropup.dropdown-bordered>.dropdown-inner>.sui-dropdown-menu, .sui-dropdown.dropdown-bordered>.dropdown-inner>.sui-dropdown-menu { left: 0; margin: 0; z-index: 9; } .sui-dropup.select .sui-dropdown-menu, .sui-dropdown.select .sui-dropdown-menu { max-height: 300px; overflow-y: auto; } .sui-dropup .sui-dropdown-menu, .sui-dropdown .sui-dropdown-menu { display: none; position: absolute; z-index: 1000; } .sui-dropup .dropdown-submenu, .sui-dropdown .dropdown-submenu { position: relative; } .sui-dropup .dropdown-submenu>.sui-dropdown-menu, .sui-dropdown .dropdown-submenu>.sui-dropdown-menu { top: 0; left: 100%; } .sui-dropup .dropdown-submenu:hover>.sui-dropdown-menu, .sui-dropdown .dropdown-submenu:hover>.sui-dropdown-menu { display: block; } .sui-dropup .dropdown-submenu>a .sui-icon, .sui-dropdown .dropdown-submenu>a .sui-icon { font-size: 120%; } .sui-dropup.open .dropdown-inner>.sui-dropdown-menu, .sui-dropdown.open .dropdown-inner>.sui-dropdown-menu, .sui-dropup.open>.sui-dropdown-menu, .sui-dropdown.open>.sui-dropdown-menu { display: block; } .sui-dropup.open .dropdown-toggle, .sui-dropdown.open .dropdown-toggle { outline: 0; } .sui-dropup a, .sui-dropdown a { outline: 0; } .sui-dropup .caret, .sui-dropdown .caret { font-family: icon-pc; font-style: normal; vertical-align: -1px; line-height: 1; } .sui-dropup .caret:before, .sui-dropdown .caret:before { content: "\c611"; } .sui-dropup.dropdown-bordered, .sui-dropdown.dropdown-bordered { font-size: 12px; line-height: 18px; vertical-align: middle; display: inline-block; padding: 0; height: 24px; } .sui-dropup.dropdown-bordered .dropdown-inner, .sui-dropdown.dropdown-bordered .dropdown-inner { border: 1px solid #ccc; display: inline-block; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; } .sui-dropup.dropdown-bordered .dropdown-inner a, .sui-dropdown.dropdown-bordered .dropdown-inner a { color: #666; min-width: 82px; display: block; padding: 2px 14px; padding-left: 8px; padding-right: 8px; } .sui-dropup.dropdown-bordered .dropdown-inner .disabled>a, .sui-dropdown.dropdown-bordered .dropdown-inner .disabled>a { color: #999 !important; } .sui-dropup.dropdown-bordered .dropdown-inner .caret, .sui-dropdown.dropdown-bordered .dropdown-inner .caret { float: right; margin-left: 4px; line-height: 1.5; } .sui-dropup.dropdown-bordered .dropdown-inner>.sui-dropdown-menu, .sui-dropdown.dropdown-bordered .dropdown-inner>.sui-dropdown-menu { margin: 0; min-width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-border-radius: 0 0 2px 2px; -moz-border-radius: 0 0 2px 2px; border-radius: 0 0 2px 2px; } .sui-dropup.dropdown-bordered.open .dropdown-inner>a, .sui-dropdown.dropdown-bordered.open .dropdown-inner>a { position: relative; z-index: 10; } .sui-dropup.disabled .dropdown-inner a, .sui-dropdown.disabled .dropdown-inner a { color: #aaa; } .sui-dropup.disabled.dropdown-bordered a, .sui-dropdown.disabled.dropdown-bordered a { background-color: #fbfbfb; } .sui-dropup input, .sui-dropdown input { border: 0; width: 100px; color: #666; } .sui-dropup.align-right>.dropdown-inner>.sui-dropdown-menu, .sui-dropdown.align-right>.dropdown-inner>.sui-dropdown-menu, .sui-dropup.align-right>.sui-dropdown-menu, .sui-dropdown.align-right>.sui-dropdown-menu { right: 0; left: auto; } .sui-dropdown-menu { display: inline-block; padding: 1px 0; min-width: 100px; list-style: none; background-color: #fff; border: 1px solid #ccc; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; -webkit-box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.1); -moz-box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.1); box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.1); -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; } .sui-dropdown-menu.pull-right { right: 0; left: auto; } .sui-dropdown-menu .divider { *width: 100%; height: 1px; margin: 8px 1px; *margin: -5px 0 5px; overflow: hidden; background-color: #e5e5e5; border-bottom: 1px solid #fff; margin: 5px 1px; } .sui-dropdown-menu .group-title { color: #999; padding: 2px 6px; } .sui-dropdown-menu>li { padding: 0 1px; } .sui-dropdown-menu>li a { display: block; padding: 3px 10px; clear: both; font-weight: 400; line-height: 18px; color: #666; white-space: nowrap; } .sui-dropdown-menu>li a:focus { outline: 0; } .sui-dropdown-menu>li:hover>a, .sui-dropdown-menu>li .active>a { color: #fff; } .sui-dropup .sui-dropdown-menu { -webkit-box-shadow: 2px -2px 0 0 rgba(0, 0, 0, 0.1); -moz-box-shadow: 2px -2px 0 0 rgba(0, 0, 0, 0.1); box-shadow: 2px -2px 0 0 rgba(0, 0, 0, 0.1); } .sui-dropdown-menu>li>a:hover, .sui-dropdown-menu>li>a:focus, .dropdown-submenu:hover>a, .dropdown-submenu:focus>a { text-decoration: none; color: #fff; background-color: #40adf1; } .sui-dropdown-menu>.active a, .sui-dropdown-menu>.active a:hover, .sui-dropdown-menu>.active a:focus { color: #fff; text-decoration: none; outline: 0; background-color: #28a3ef; } .sui-dropdown-menu>.disabled>a, .sui-dropdown-menu>.disabled>a:hover, .sui-dropdown-menu>.disabled>a:focus { color: #999; background-color: #fff; } .sui-dropdown-menu>.disabled>a:hover, .sui-dropdown-menu>.disabled>a:focus { text-decoration: none; background-color: transparent; background-image: none; filter: progid: DXImageTransform.Microsoft.gradient(enabled=false); cursor: default; } .dropdown-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 990; } .sui-dropdown.dropdown-bordered.dropdown-xlarge, .sui-dropup.dropdown-bordered.dropdown-xlarge { height: 32px; } .sui-dropdown.dropdown-bordered.dropdown-xlarge>.dropdown-inner a, .sui-dropup.dropdown-bordered.dropdown-xlarge>.dropdown-inner a { padding: 4px 20px; line-height: 22px; font-size: 14px; } .sui-dropdown.dropdown-bordered.dropdown-large, .sui-dropup.dropdown-bordered.dropdown-large { height: 28px; } .sui-dropdown.dropdown-bordered.dropdown-large>.dropdown-inner a, .sui-dropup.dropdown-bordered.dropdown-large>.dropdown-inner a { padding: 2px 14px; line-height: 22px; font-size: 14px; } .sui-dropdown.dropdown-bordered.dropdown-small, .sui-dropup.dropdown-bordered.dropdown-small { height: 20px; } .sui-dropdown.dropdown-bordered.dropdown-small>.dropdown-inner a, .sui-dropup.dropdown-bordered.dropdown-small>.dropdown-inner a { padding: 0 6px; line-height: 18px; font-size: 12px; } .sui-dropdown.dropdown-bordered>.dropdown-inner a, .sui-dropup.dropdown-bordered>.dropdown-inner a, .sui-dropdown.dropdown-bordered.dropdown-xlarge>.dropdown-inner a, .sui-dropup.dropdown-bordered.dropdown-xlarge>.dropdown-inner a, .sui-dropdown.dropdown-bordered.dropdown-large>.dropdown-inner a, .sui-dropup.dropdown-bordered.dropdown-large>.dropdown-inner a, .sui-dropdown.dropdown-bordered.dropdown-small>.dropdown-inner a, .sui-dropup.dropdown-bordered.dropdown-small>.dropdown-inner a { padding-left: 8px; padding-right: 8px; } .sui-dropdown.dropdown-bordered>.dropdown-inner>.sui-dropdown-menu a, .sui-dropup.dropdown-bordered>.dropdown-inner>.sui-dropdown-menu a, .sui-dropdown.dropdown-bordered.dropdown-xlarge>.dropdown-inner>.sui-dropdown-menu a, .sui-dropup.dropdown-bordered.dropdown-xlarge>.dropdown-inner>.sui-dropdown-menu a, .sui-dropdown.dropdown-bordered.dropdown-large>.dropdown-inner>.sui-dropdown-menu a, .sui-dropup.dropdown-bordered.dropdown-large>.dropdown-inner>.sui-dropdown-menu a, .sui-dropdown.dropdown-bordered.dropdown-small>.dropdown-inner>.sui-dropdown-menu a, .sui-dropup.dropdown-bordered.dropdown-small>.dropdown-inner>.sui-dropdown-menu a { width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; color: #666; } .sui-dropdown.dropdown-bordered>.dropdown-inner>.sui-dropdown-menu li:hover>a, .sui-dropup.dropdown-bordered>.dropdown-inner>.sui-dropdown-menu li:hover>a, .sui-dropdown.dropdown-bordered.dropdown-xlarge>.dropdown-inner>.sui-dropdown-menu li:hover>a, .sui-dropup.dropdown-bordered.dropdown-xlarge>.dropdown-inner>.sui-dropdown-menu li:hover>a, .sui-dropdown.dropdown-bordered.dropdown-large>.dropdown-inner>.sui-dropdown-menu li:hover>a, .sui-dropup.dropdown-bordered.dropdown-large>.dropdown-inner>.sui-dropdown-menu li:hover>a, .sui-dropdown.dropdown-bordered.dropdown-small>.dropdown-inner>.sui-dropdown-menu li:hover>a, .sui-dropup.dropdown-bordered.dropdown-small>.dropdown-inner>.sui-dropdown-menu li:hover>a, .sui-dropdown.dropdown-bordered>.dropdown-inner>.sui-dropdown-menu li.active>a, .sui-dropup.dropdown-bordered>.dropdown-inner>.sui-dropdown-menu li.active>a, .sui-dropdown.dropdown-bordered.dropdown-xlarge>.dropdown-inner>.sui-dropdown-menu li.active>a, .sui-dropup.dropdown-bordered.dropdown-xlarge>.dropdown-inner>.sui-dropdown-menu li.active>a, .sui-dropdown.dropdown-bordered.dropdown-large>.dropdown-inner>.sui-dropdown-menu li.active>a, .sui-dropup.dropdown-bordered.dropdown-large>.dropdown-inner>.sui-dropdown-menu li.active>a, .sui-dropdown.dropdown-bordered.dropdown-small>.dropdown-inner>.sui-dropdown-menu li.active>a, .sui-dropup.dropdown-bordered.dropdown-small>.dropdown-inner>.sui-dropdown-menu li.active>a { color: #fff; } .pull-right>.sui-dropdown-menu { right: 0; left: auto; } .sui-dropup .sui-dropdown-menu, .navbar-fixed-bottom .sui-dropdown .sui-dropdown-menu { top: auto; bottom: 100%; margin-bottom: 1px; } .sui-dropup .dropdown-toggle>.caret:before, .navbar-fixed-bottom .sui-dropdown .dropdown-toggle>.caret:before { content: "\c60e"; } .sui-dropdown .sui-dropdown-menu .nav-header { padding-left: 20px; padding-right: 20px; } .sui-typeahead { z-index: 1051; margin-top: 2px; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .sui-dropdown-menu::-webkit-scrollbar { background: transparent; width: 8px; height: 8px; } .sui-dropdown-menu::-webkit-scrollbar-track { -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; background-color: transparent; } .sui-dropdown-menu::-webkit-scrollbar-track:hover::-webkit-scrollbar-thumb { background-color: #d5d5d5; } .sui-dropdown-menu::-webkit-scrollbar-thumb { -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; background-color: #e1e1e1; width: 6px; height: 6px; border: 2px solid transparent; background-clip: content-box; } .sui-dropdown-menu::-webkit-scrollbar-thumb:hover { background-color: #d5d5d5; } .sui-dropdown-menu::-webkit-scrollbar-thumb:active { background-color: #c8c8c8; } .sui-dropdown-like { position: relative; display: inline-block; } .sui-dropdown-like input { padding-right: 20px !important; } .sui-dropdown-like .sui-icon { position: absolute; right: 6px; top: 50%; margin-top: -6px; } .sui-well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #e3e3e3; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } .sui-well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .sui-well.well-large { padding: 24px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .sui-well.well-small { padding: 9px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; -moz-transition: opacity 0.15s linear; -o-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { position: relative; height: 0; overflow: hidden; -webkit-transition: height 0.35s ease; -moz-transition: height 0.35s ease; -o-transition: height 0.35s ease; transition: height 0.35s ease; } .collapse.in { height: auto; } .sui-close { float: right; font-size: 24px; line-height: 18px; color: #666; text-shadow: 0 1px 0 #fff; outline: 0; } .sui-close:hover, .sui-close:focus { color: #ff5050; text-decoration: none; cursor: pointer; } .sui-close:focus { color: #dd5050; } button.sui-close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .sui-btn { display: inline-block; padding: 2px 14px; box-sizing: border-box; margin-bottom: 0; font-size: 12px; line-height: 18px; text-align: center; vertical-align: middle; cursor: pointer; color: #333; background-color: #ccc; filter: progid: DXImageTransform.Microsoft.gradient(enabled=false); border: 1px solid #e1e1e1; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } .sui-btn:hover, .sui-btn:focus { color: #333; background-color: #ccc; border: 1px solid #eaeaea; } .sui-btn.disabled, .sui-btn[disabled], .sui-btn.disabled:hover, .sui-btn[disabled]:hover, .sui-btn.disabled:focus, .sui-btn[disabled]:focus, .sui-btn.disabled:active, .sui-btn[disabled]:active, .sui-btn.disabled.active, .sui-btn[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .sui-btn:active, .sui-btn.active { background-color: #e1e1e1; border: 1px solid #d5d5d5; } .sui-btn:hover, .sui-btn:focus { color: #333; text-decoration: none; } .sui-btn:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; outline: 0; } .sui-btn.active, .sui-btn:active { background-image: none; } .sui-btn.disabled, .sui-btn[disabled] { cursor: default; background-image: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } .sui-btn .sui-icon { line-height: 1; } .sui-btn .sui-icon:after { content: " "; } .btn-xlarge { padding: 4px 20px; line-height: 22px; font-size: 14px; } .btn-large { padding: 2px 14px; line-height: 22px; font-size: 14px; } .btn-small { padding: 0 6px; line-height: 18px; font-size: 12px; } .btn-block { display: block; width: 100%; padding-left: 0; padding-right: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .btn-block+.btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .btn-primary { color: #fff; background-color: #28a3ef; filter: progid: DXImageTransform.Microsoft.gradient(enabled=false); border: 1px solid #1299ec; } .btn-primary:hover, .btn-primary:focus { color: #fff; background-color: #4cb9fc; border: 1px solid #33affc; } .btn-primary.disabled, .btn-primary[disabled], .btn-primary.disabled:hover, .btn-primary[disabled]:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, .btn-primary.disabled.active, .btn-primary[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .btn-primary:active, .btn-primary.active { background-color: #1299ec; border: 1px solid #1089d4; } .btn-warning { color: #fff; background-color: #fa9a03; filter: progid: DXImageTransform.Microsoft.gradient(enabled=false); border: 1px solid #e1b203; } .btn-warning:hover, .btn-warning:focus { color: #fff; background-color: #fa9a03; border: 1px solid #fa9a03; } .btn-warning.disabled, .btn-warning[disabled], .btn-warning.disabled:hover, .btn-warning[disabled]:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, .btn-warning.disabled:active, .btn-warning[disabled]:active, .btn-warning.disabled.active, .btn-warning[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .btn-warning:active, .btn-warning.active { background-color: #fa9a03; border: 1px solid #fa9a03; } .btn-danger { color: #fff; background-color: #ea4a36; filter: progid: DXImageTransform.Microsoft.gradient(enabled=false); border: 1px solid #e8351f; } .btn-danger:hover, .btn-danger:focus { color: #fff; background-color: #ed6a5a; border: 1px solid #ea5543; } .btn-danger.disabled, .btn-danger[disabled], .btn-danger.disabled:hover, .btn-danger[disabled]:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, .btn-danger.disabled:active, .btn-danger[disabled]:active, .btn-danger.disabled.active, .btn-danger[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .btn-danger:active, .btn-danger.active { background-color: #e8351f; border: 1px solid #d72c16; } .btn-success { color: #fff; background-color: #F4A951; filter: progid: DXImageTransform.Microsoft.gradient(enabled=false); border: 1px solid #F4A951; } .btn-success:hover, .btn-success:focus { color: #fff; background-color: #F4A951; border: 1px solid #F4A951; } .btn-success.disabled, .btn-success[disabled], .btn-success.disabled:hover, .btn-success[disabled]:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, .btn-success.disabled:active, .btn-success[disabled]:active, .btn-success.disabled.active, .btn-success[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .btn-success:active, .btn-success.active { background-color: #F4A951; border: 1px solid #F4A951; } .btn-info { color: #fff; background-color: #ccc; filter: progid: DXImageTransform.Microsoft.gradient(enabled=false); border: 1px solid #999; } .btn-info:hover, .btn-info:focus { color: #fff; background-color: #ccc; border: 1px solid #999; } .btn-info.disabled, .btn-info[disabled], .btn-info.disabled:hover, .btn-info[disabled]:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, .btn-info.disabled:active, .btn-info[disabled]:active, .btn-info.disabled.active, .btn-info[disabled].active { color: #c6c6c6; background-color: #ccc; border-color: #999; } .btn-info:active, .btn-info.active { background-color: #ccc; border: 1px solid #999; } .btn-inverse { color: #fff; background-color: #444; filter: progid: DXImageTransform.Microsoft.gradient(enabled=false); border: 1px solid #373737; } .btn-inverse:hover, .btn-inverse:focus { color: #fff; background-color: #222; border: 1px solid #151515; } .btn-inverse.disabled, .btn-inverse[disabled], .btn-inverse.disabled:hover, .btn-inverse[disabled]:hover, .btn-inverse.disabled:focus, .btn-inverse[disabled]:focus, .btn-inverse.disabled:active, .btn-inverse[disabled]:active, .btn-inverse.disabled.active, .btn-inverse[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .btn-inverse:active, .btn-inverse.active { background-color: #373737; border: 1px solid #2b2b2b; } button.btn, input[type="submit"].btn { *padding-top: 3px; *padding-bottom: 3px; } button.btn::-moz-focus-inner, input[type="submit"].btn::-moz-focus-inner { padding: 0; border: 0; } button.btn.btn-large, input[type="submit"].btn.btn-large { *padding-top: 7px; *padding-bottom: 7px; } button.btn.btn-small, input[type="submit"].btn.btn-small { *padding-top: 3px; *padding-bottom: 3px; } button.btn.btn-mini, input[type="submit"].btn.btn-mini { *padding-top: 1px; *padding-bottom: 1px; } .btn-link, .btn-link:active, .btn-link[disabled] { border-color: transparent; background-color: transparent; background-image: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-link { border-color: transparent; cursor: pointer; color: #28a3ef; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-link:hover, .btn-link:focus { color: #4cb9fc; text-decoration: underline; background-color: transparent; border-color: transparent; } .btn-link[disabled], .btn-link.disabled, .btn-link[disabled]:hover, .btn-link.disabled:hover, .btn-link[disabled]:focus, .btn-link.disabled:focus { color: #c6c6c6; text-decoration: none; background: 0 0; border: 0; } .sui-btn.btn-bordered { background-color: transparent; border: 1px solid #8c8c8c; color: #8c8c8c; } .sui-btn.btn-bordered:hover, .sui-btn.btn-bordered:focus { border: 1px solid #666; color: #fff; background-color: #666; } .sui-btn.btn-bordered:active, .sui-btn.btn-bordered.active { background-color: #4d4d4d; border: 1px solid #4d4d4d; color: #fff; } .sui-btn.btn-bordered.btn-primary { border: 1px solid #1299ec; color: #1299ec; } .sui-btn.btn-bordered.btn-primary:hover, .sui-btn.btn-bordered.btn-primary:focus { border: 1px solid #4cb9fc; color: #fff; background-color: #4cb9fc; } .sui-btn.btn-bordered.btn-primary:active, .sui-btn.btn-bordered.btn-primary.active { background-color: #1aa5fb; border: 1px solid #1aa5fb; color: #fff; } .sui-btn.btn-bordered.btn-warning { border: 1px solid #e1b203; color: #e1b203; } .sui-btn.btn-bordered.btn-warning:hover, .sui-btn.btn-bordered.btn-warning:focus { border: 1px solid #fbd238; color: #fff; background-color: #fbd238; } .sui-btn.btn-bordered.btn-warning:active, .sui-btn.btn-bordered.btn-warning.active { background-color: #fac706; border: 1px solid #fac706; color: #fff; } .sui-btn.btn-bordered.btn-danger { border: 1px solid #e8351f; color: #e8351f; } .sui-btn.btn-bordered.btn-danger:hover, .sui-btn.btn-bordered.btn-danger:focus { border: 1px solid #ed6a5a; color: #fff; background-color: #ed6a5a; } .sui-btn.btn-bordered.btn-danger:active, .sui-btn.btn-bordered.btn-danger.active { background-color: #e8402c; border: 1px solid #e8402c; color: #fff; } .sui-btn.btn-bordered.btn-success { border: 1px solid #34c360; color: #34c360; } .sui-btn.btn-bordered.btn-success:hover, .sui-btn.btn-bordered.btn-success:focus { border: 1px solid #49de79; color: #fff; background-color: #49de79; } .sui-btn.btn-bordered.btn-success:active, .sui-btn.btn-bordered.btn-success.active { background-color: #25cf5c; border: 1px solid #25cf5c; color: #fff; } .sui-btn.btn-bordered.btn-info { border: 1px solid #F4A951; color: #F4A951; } .sui-btn.btn-bordered.btn-info:hover, .sui-btn.btn-bordered.btn-info:focus { border: 1px solid #F4A951; color: #fff; background-color: #F4A951; } .sui-btn.btn-bordered.btn-info:active, .sui-btn.btn-bordered.btn-info.active { background-color: #F4A951; border: 1px solid #F4A951; color: #fff; } .sui-btn.btn-bordered.btn-inverse { border: 1px solid #373737; color: #373737; } .sui-btn.btn-bordered.btn-inverse:hover, .sui-btn.btn-bordered.btn-inverse:focus { border: 1px solid #222; color: #fff; background-color: #222; } .sui-btn.btn-bordered.btn-inverse:active, .sui-btn.btn-bordered.btn-inverse.active { background-color: #080808; border: 1px solid #080808; color: #fff; } .sui-btn.btn-bordered.disabled, .sui-btn.btn-bordered[disabled], .sui-btn.btn-bordered.disabled:hover, .sui-btn.btn-bordered[disabled]:hover, .sui-btn.btn-bordered.disabled:focus, .sui-btn.btn-bordered[disabled]:focus { border-color: #c6c6c6; color: #c6c6c6; background: #f3f3f3; } .sui-btn-group { position: relative; display: inline-block; *display: inline; *zoom: 1; font-size: 0; vertical-align: middle; white-space: nowrap; *margin-left: 0.3em; } .sui-btn-group:first-child { *margin-left: 0; } .sui-btn-group+.sui-btn-group { margin-left: 5px; } .sui-btn-toolbar { font-size: 0; margin-top: 9px; margin-bottom: 9px; } .sui-btn-toolbar>.btn+.btn, .sui-btn-toolbar>.btn-group+.btn, .sui-btn-toolbar>.btn+.btn-group { margin-left: 5px; } .sui-btn-group>.sui-btn { position: relative; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .sui-btn-group>.sui-btn.btn-small>.caret { line-height: 17px; } .sui-btn-group>.sui-btn.btn-large>.caret { line-height: 21px; } .sui-btn-group>.sui-btn.btn-xlarge>.caret { line-height: 26px; } .sui-btn-group .sui-btn+.sui-btn { margin-left: -1px; } .sui-btn-group .sui-btn, .sui-btn-group .sui-dropdown-menu, .sui-btn-group .popover { font-size: 12px; } .sui-btn-group .sui-dropdown-menu { display: none; position: absolute; top: 105%; left: 0; z-index: 1000; } .sui-btn-group.open .sui-dropdown-menu { display: block; } .sui-btn-group>.btn-mini { font-size: 12px; } .sui-btn-group>.btn-small { font-size: 12px; } .sui-btn-group>.btn-large { font-size: 14px; } .sui-btn-group>.sui-btn:first-child { margin-left: 0; -webkit-border-top-left-radius: 2px; -moz-border-radius-topleft: 2px; border-top-left-radius: 2px; -webkit-border-bottom-left-radius: 2px; -moz-border-radius-bottomleft: 2px; border-bottom-left-radius: 2px; } .sui-btn-group>.sui-btn:last-child, .sui-btn-group>.dropdown-toggle { -webkit-border-top-right-radius: 2px; -moz-border-radius-topright: 2px; border-top-right-radius: 2px; -webkit-border-bottom-right-radius: 2px; -moz-border-radius-bottomright: 2px; border-bottom-right-radius: 2px; } .sui-btn-group>.sui-btn.large:first-child { margin-left: 0; -webkit-border-top-left-radius: 6px; -moz-border-radius-topleft: 6px; border-top-left-radius: 6px; -webkit-border-bottom-left-radius: 6px; -moz-border-radius-bottomleft: 6px; border-bottom-left-radius: 6px; } .sui-btn-group>.sui-btn.large:last-child, .sui-btn-group>.large.dropdown-toggle { -webkit-border-top-right-radius: 6px; -moz-border-radius-topright: 6px; border-top-right-radius: 6px; -webkit-border-bottom-right-radius: 6px; -moz-border-radius-bottomright: 6px; border-bottom-right-radius: 6px; } .sui-btn-group>.sui-btn:hover, .sui-btn-group>.sui-btn:focus, .sui-btn-group>.sui-btn:active, .sui-btn-group>.sui-btn.active { z-index: 2; } .sui-btn-group .dropdown-toggle:active, .sui-btn-group .open .dropdown-toggle { outline: 0; } .sui-btn-group>.sui-btn+.dropdown-toggle { padding-left: 8px; padding-right: 8px; -webkit-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); *padding-top: 5px; *padding-bottom: 5px; } .sui-btn-group>.sui-btn-mini+.dropdown-toggle { padding-left: 5px; padding-right: 5px; *padding-top: 2px; *padding-bottom: 2px; } .sui-btn-group>.sui-btn-small+.dropdown-toggle { *padding-top: 5px; *padding-bottom: 4px; } .sui-btn-group>.sui-btn-large+.dropdown-toggle { padding-left: 12px; padding-right: 12px; *padding-top: 7px; *padding-bottom: 7px; } .sui-btn-group.open .dropdown-toggle { background-image: none; } .sui-btn-group.open .dropdown-toggle.btn-primary { background-color: #1299ec; border-color: #1089d4; } .sui-btn-group.open .dropdown-toggle.btn-warning { background-color: #e1b203; border-color: #c89e02; } .sui-btn-group.open .dropdown-toggle.btn-danger { background-color: #e8351f; border-color: #d72c16; } .sui-btn-group.open .dropdown-toggle.btn-success { background-color: #34c360; border-color: #2eaf56; } .sui-btn-group.open .dropdown-toggle.btn-info { background-color: #46b8da; border-color: #31b0d5; } .sui-btn-group.open .dropdown-toggle.btn-inverse { background-color: #373737; border-color: #2b2b2b; } .sui-btn .caret { font-family: icon-pc; font-style: normal; vertical-align: -1px; float: right; margin-right: -5px; margin-left: 8px; } .sui-btn .caret:before { content: "\c611"; } .btn-large .caret { margin-top: 6px; } .btn-large .caret { border-left-width: 5px; border-right-width: 5px; border-top-width: 5px; } .btn-mini .caret, .btn-small .caret { margin-top: 8px; } .dropup .btn-large .caret { border-bottom-width: 5px; } .btn-primary .caret, .btn-warning .caret, .btn-danger .caret, .btn-info .caret, .btn-success .caret, .btn-inverse .caret { border-top-color: #fff; border-bottom-color: #fff; } .btn-group-vertical { display: inline-block; *display: inline; *zoom: 1; } .btn-group-vertical>.sui-btn { display: block; float: none; max-width: 100%; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-group-vertical>.sui-btn+.sui-btn { margin-left: 0; margin-top: -1px; } .btn-group-vertical>.sui-btn:first-child { -webkit-border-radius: 2px 2px 0 0; -moz-border-radius: 2px 2px 0 0; border-radius: 2px 2px 0 0; } .btn-group-vertical>.sui-btn:last-child { -webkit-border-radius: 0 0 2px 2px; -moz-border-radius: 0 0 2px 2px; border-radius: 0 0 2px 2px; } .btn-group-vertical>.btn-large:first-child { -webkit-border-radius: 6px 6px 0 0; -moz-border-radius: 6px 6px 0 0; border-radius: 6px 6px 0 0; } .btn-group-vertical>.btn-large:last-child { -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; } .sui-nav { margin-left: 0; margin-bottom: 18px; list-style: none; } .sui-nav>li>a { display: block; cursor: pointer; } .sui-nav>li>a:hover{ text-decoration: none; background-color: #eee; outline: 0; } .sui-nav img { max-width: none; } .sui-nav>.pull-right { float: right; } .sui-nav .nav-header { display: block; padding: 3px 15px; font-size: 11px; font-weight: 700; line-height: 18px; color: #999; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); text-transform: uppercase; } .sui-nav li+.nav-header { margin-top: 9px; } .sui-nav.nav-list { padding-left: 15px; padding-right: 15px; margin-bottom: 0; } .sui-nav.nav-list>li>a, .sui-nav.nav-list .nav-header { margin-left: -15px; margin-right: -15px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); } .sui-nav.nav-list>li>a { padding: 3px 15px; } .sui-nav.nav-list>.active>a, .sui-nav.nav-list>.active>a:hover, .sui-nav.nav-list>.active>a:focus { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); background-color: #28a3ef; } .sui-nav.nav-list [class^="icon-"], .sui-nav.nav-list [class*=" icon-"] { margin-right: 2px; } .sui-nav.nav-list .divider { *width: 100%; height: 1px; margin: 8px 1px; *margin: -5px 0 5px; overflow: hidden; background-color: #e5e5e5; border-bottom: 1px solid #fff; } .sui-nav.nav-list.nav-large .nav-header { padding: 4px 13px; } .sui-nav.nav-list.nav-xlarge .nav-header { padding: 6px 16px; font-size: 16.1px; } .sui-nav.nav-tabs:before, .sui-nav.nav-pills:before, .sui-nav.nav-tabs:after, .sui-nav.nav-pills:after { display: table; content: ""; line-height: 0; } .sui-nav.nav-tabs:after, .sui-nav.nav-pills:after { clear: both; } .sui-nav.nav-tabs>li, .sui-nav.nav-pills>li { float: left; } .sui-nav.nav-tabs>li a, .sui-nav.nav-pills>li a { padding-right: 12px; padding-left: 12px; line-height: 14px; } .sui-nav>li>a { padding: 2px 10px; } .sui-nav.nav-large>li>a { padding: 4px 13px; } .sui-nav.nav-xlarge>li>a { padding: 6px 16px; font-size: 16.1px; } .sui-nav.nav-tabs { border-bottom: 1px solid #eee; padding-left: 5px; } .sui-nav.nav-tabs>li { margin-bottom: -1px; } .sui-nav.nav-tabs>li>a { color: #666; line-height: 18px; -webkit-border-radius: 3px 3px 0 0; -moz-border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0; border: 1px solid transparent; } .sui-nav.nav-tabs>li>a:hover { background-color: transparent; } .sui-nav.nav-tabs>li+li { margin-left: 9px; } .sui-nav.nav-tabs>li+li>a { margin-left: -1px; } .sui-nav.nav-tabs>.active { border-bottom: 0; } .sui-nav.nav-tabs>.active>a { background-color: #fff; border: 1px solid #eee; border-bottom-color: transparent; cursor: default; } .sui-nav.nav-tabs>.active>a:hover { background-color: #fff; } .sui-nav.nav-tabs>.active>a, .sui-nav.nav-tabs>li>a:hover { color: #28a3ef; } .sui-nav.nav-tabs.tab-vertical { border-bottom: 0; border-right: 1px solid #eee; width: 100px; display: inline-block; padding-left: 0; } .sui-nav.nav-tabs.tab-vertical li { float: none; margin-left: 0; margin-bottom: 0; margin-right: -1px; } .sui-nav.nav-tabs.tab-vertical li.active a { border: 1px solid #eee; border-right: 1px solid transparent; } .sui-nav.nav-tabs.tab-vertical li a { -webkit-border-radius: 3px 0 0 3px; -moz-border-radius: 3px 0 0 3px; border-radius: 3px 0 0 3px; } .sui-nav.nav-tabs.nav-primary { border-bottom: 2px solid #28a3ef; } .sui-nav.nav-tabs.nav-primary>li { margin-bottom: -2px; } .sui-nav.nav-tabs.nav-primary>.active>a { border-color: #28a3ef; color: #fff; background: #28a3ef; -webkit-border-radius: 3px 3px 0 0; -moz-border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0; } .sui-nav.nav-tabs.nav-primary.tab-vertical { border-right: 2px solid #28a3ef; border-bottom: 0; } .sui-nav.nav-tabs.nav-primary.tab-vertical>.active>a { border: 0; -webkit-border-radius: 3px 0 0 3px; -moz-border-radius: 3px 0 0 3px; border-radius: 3px 0 0 3px; } .sui-nav.nav-tabs.nav-primary.tab-vertical li { margin-bottom: 0; } .sui-nav.nav-tabs.nav-pills { border-bottom: 2px solid #28a3ef; border-bottom: 0; padding-left: 0; } .sui-nav.nav-tabs.nav-pills>li { margin-bottom: -2px; } .sui-nav.nav-tabs.nav-pills>.active>a { border-color: #28a3ef; color: #fff; background: #28a3ef; -webkit-border-radius: 3px 3px 0 0; -moz-border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0; } .sui-nav.nav-tabs.nav-pills.tab-vertical { border-right: 2px solid #28a3ef; border-bottom: 0; } .sui-nav.nav-tabs.nav-pills.tab-vertical>.active>a { border: 0; -webkit-border-radius: 3px 0 0 3px; -moz-border-radius: 3px 0 0 3px; border-radius: 3px 0 0 3px; } .sui-nav.nav-tabs.nav-pills.tab-vertical li { margin-bottom: 0; } .sui-nav.nav-tabs.nav-pills>li>a, .sui-nav.nav-tabs.nav-pills>li.active>a { border-radius: 3px; border: 0; } .sui-nav.nav-tabs.nav-pills>li>a:hover { background-color: #f1f1f1; color: #28a3ef; } .sui-nav.nav-tabs.nav-pills>li.active>a:hover { background: #28a3ef; color: #fff; } .sui-nav.nav-tabs.nav-pills.tab-vertical { border: 0; } .sui-nav.nav-tabs.nav-pills.tab-vertical>.active>a { border-radius: 3px; } .sui-nav.nav-tabs.nav-pills.tab-vertical li+li { margin-top: 9px; } .sui-nav.nav-tabs.tab-navbar { display: inline-block; border: 1px solid #eee; border-radius: 3px; padding-left: 0; } .sui-nav.nav-tabs.tab-navbar>li { margin-bottom: 0; margin-left: 0; } .sui-nav.nav-tabs.tab-navbar>li>a { margin-left: 0; border-radius: 0; border: 0; } .sui-nav.nav-tabs.tab-navbar>li.active>a { background: #28a3ef; color: #fff; border-top: 1px solid #28a3ef; margin-top: -1px; border-bottom: 1px solid #28a3ef; margin-bottom: -1px; } .sui-nav.nav-tabs.tab-navbar>li:first-child>a { border-radius: 3px 0 0 3px; } .sui-nav.nav-tabs.tab-navbar>li:last-child>a { border-radius: 0 3px 3px 0; } .sui-nav.nav-tabs.tab-navbar.tab-light li.active>a { margin-top: 0; margin-bottom: 0; border-top: 0; border-bottom: 0; } .sui-nav.nav-tabs.tab-navbar.tab-light li.active>a, .sui-nav.nav-tabs.tab-navbar.tab-light li>a:hover { background-color: #f3f3f3; color: #666; } .sui-nav.nav-tabs.tab-navbar.tab-light li+li>a { border-left: 1px solid #eee; } .sui-nav.nav-tabs.tab-navbar.tab-light.tab-vertical li { margin: 0; } .sui-nav.nav-tabs.tab-navbar.tab-light.tab-vertical li a, .sui-nav.nav-tabs.tab-navbar.tab-light.tab-vertical li:first-child>a { border: 0; margin: 0; } .sui-nav.nav-tabs.tab-navbar.tab-light.tab-vertical li:last-child>a { border: 0; margin: 0; } .sui-nav.nav-tabs.tab-navbar.tab-light.tab-vertical li.active>a { border-bottom: 0; } .sui-nav.nav-tabs.tab-navbar.tab-light.tab-vertical li+li>a { border-top: 1px solid #eee !important; } .sui-nav.nav-tabs.tab-navbar.tab-vertical>li { margin-left: -1px; margin-right: -1px; } .sui-nav.nav-tabs.tab-navbar.tab-vertical>li a { border: 0; } .sui-nav.nav-tabs.tab-navbar.tab-vertical>li.active a { margin-top: 0; margin-bottom: 0; } .sui-nav.nav-tabs.tab-navbar.tab-vertical>li:first-child>a { border-radius: 3px 3px 0 0; margin-top: -1px; } .sui-nav.nav-tabs.tab-navbar.tab-vertical>li:last-child>a { border-radius: 0 0 3px 3px; margin-bottom: -1px; } .sui-nav.nav-tabs.tab-wraped { padding-left: 0; margin-bottom: 0; border: 1px solid #eee; border-top: 0; } .sui-nav.nav-tabs.tab-wraped>li { margin-left: 0; width: 25%; } .sui-nav.nav-tabs.tab-wraped>li>a { color: #666; padding: 20px; border-radius: 0; background: #fcfcfc; margin-left: 0; border: 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; } .sui-nav.nav-tabs.tab-wraped>li>a:hover { background: #fff; } .sui-nav.nav-tabs.tab-wraped>li+li>a { border-left: 1px solid #eee; } .sui-nav.nav-tabs.tab-wraped>li.active>a { background: #fff; font-weight: 400; border-bottom: 1px solid #fff; border-top: 3px solid #28a3ef; padding-top: 18px; } .sui-nav.nav-tabs.tab-wraped>li h3 { text-align: center; color: #333; } .sui-nav.nav-tabs.tab-wraped>li ul { margin: auto; } .sui-nav.nav-tabs.tab-wraped>li li { margin: 5px 0; } .sui-nav.nav-tabs.tab-wraped>li strong { font-size: 120%; vertical-align: middle; } .sui-nav.nav-tabs.tab-wraped>li label { color: #999; display: inline-block; width: 70px; text-align: right; margin-right: 10px; cursor: pointer; } .sui-nav.nav-tabs.tab-wraped.column3>li { width: 33.333%; } .sui-nav.nav-tabs.tab-wraped.column5>li { width: 20%; } .sui-nav.nav-stacked>li { float: none; } .sui-nav.nav-stacked>li>a { margin-right: 0; } .sui-nav.nav-tabs.nav-stacked { border-bottom: 0; padding-left: 0; } .sui-nav.nav-tabs.nav-stacked>li { border: 1px solid #eee; overflow: hidden; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; background: #f9f9f9; margin-left: 0; } .sui-nav.nav-tabs.nav-stacked>li>a { border: 0; margin-left: 0; background: 0 0; } .sui-nav.nav-tabs.nav-stacked>li:hover { background: #fff; } .sui-nav.nav-tabs.nav-stacked>li.active { border-right: 2px solid #28a3ef; } .sui-nav.nav-tabs.nav-stacked>li>a:hover, .sui-nav.nav-tabs.nav-stacked>li>a:focus { border-color: #ddd; z-index: 2; } .sui-nav.nav-tabs.nav-stacked .nav-tabs.nav-stacked { display: none; margin-bottom: 0; } .sui-nav.nav-tabs.nav-stacked .nav-tabs.nav-stacked>li { border: 0; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; background: #fff; } .sui-nav.nav-tabs.nav-stacked .nav-tabs.nav-stacked>li:hover { background: #fff; } .sui-nav.nav-tabs.nav-stacked .nav-tabs.nav-stacked>li a { margin-left: 30px; color: #999; position: static; border: 1px solid #eee; border-left: 0; border-right: 0; } .sui-nav.nav-tabs.nav-stacked .nav-tabs.nav-stacked>li.active a, .sui-nav.nav-tabs.nav-stacked .nav-tabs.nav-stacked>li:hover a { color: #28a3ef; } .sui-nav.nav-tabs.nav-stacked .nav-tabs.nav-stacked>li:first-child { border-top: 1px solid #eee; } .sui-nav.nav-tabs.nav-stacked .nav-tabs.nav-stacked>li:first-child>a { border-top: 0; } .sui-nav.nav-tabs.nav-stacked>li.active .nav-tabs.nav-stacked { display: block; } .sui-nav.nav-tabs.nav-stacked.nav-large .nav-tabs.nav-stacked>li>a { padding: 4px 13px; } .sui-nav.nav-tabs.nav-stacked.nav-xlarge .nav-tabs.nav-stacked>li>a { padding: 6px 16px; } .sui-nav.nav-pills.nav-stacked>li>a { margin-bottom: 3px; } .sui-nav.nav-pills.nav-stacked>li:last-child>a { margin-bottom: 1px; } .sui-nav.nav-tabs .dropdown-menu { -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; } .sui-nav.nav-pills .dropdown-menu { -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .nav-tabs .dropdown-toggle .caret { margin-top: 8px; } .sui-nav>.sui-dropdown.active>a:hover, .sui-nav>.sui-dropdown.active>a:focus { cursor: pointer; } .nav-tabs .open .dropdown-toggle, .nav-pills .open .dropdown-toggle, .sui-nav>li.sui-dropdown.open.active>a:hover, .sui-nav>li.sui-dropdown.open.active>a:focus { color: #fff; background-color: #999; border-color: #999; } .tabs-stacked .open>a:hover, .tabs-stacked .open>a:focus { border-color: #999; } .tabbable:before, .tabbable:after { display: table; content: ""; line-height: 0; } .tabbable:after { clear: both; } .tabs-below>.nav-tabs, .tabs-right>.nav-tabs, .tabs-left>.nav-tabs { border-bottom: 0; } .tab-content>.tab-pane, .pill-content>.pill-pane { display: none; } .tab-content>.active, .pill-content>.active { display: block; } .tab-content.tab-wraped { border: 1px solid #eee; border-top: 0; padding: 18px; } .tabs-below>.nav-tabs { border-top: 1px solid #eee; } .tabs-below>.nav-tabs>li { margin-top: -1px; margin-bottom: 0; } .tabs-below>.nav-tabs>li>a { -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; } .tabs-below>.nav-tabs>li>a:hover, .tabs-below>.nav-tabs>li>a:focus { border-bottom-color: transparent; border-top-color: #ddd; } .tabs-below>.nav-tabs>.active>a, .tabs-below>.nav-tabs>.active>a:hover, .tabs-below>.nav-tabs>.active>a:focus { border-color: transparent #ddd #ddd; } .tabs-left>.nav-tabs>li, .tabs-right>.nav-tabs>li { float: none; } .tabs-left>.nav-tabs>li>a, .tabs-right>.nav-tabs>li>a { min-width: 74px; margin-right: 0; margin-bottom: 3px; } .tabs-left>.nav-tabs { float: left; margin-right: 19px; border-right: 1px solid #eee; } .tabs-left>.nav-tabs>li>a { margin-right: -1px; -webkit-border-radius: 4px 0 0 4px; -moz-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .tabs-left>.nav-tabs>li>a:hover, .tabs-left>.nav-tabs>li>a:focus { border-color: #eee #ddd #eee #eee; } .tabs-left>.nav-tabs .active>a, .tabs-left>.nav-tabs .active>a:hover, .tabs-left>.nav-tabs .active>a:focus { border-color: #ddd transparent #ddd #ddd; *border-right-color: #fff; } .tabs-right>.nav-tabs { float: right; margin-left: 19px; border-left: 1px solid #eee; } .tabs-right>.nav-tabs>li>a { margin-left: -1px; -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .tabs-right>.nav-tabs>li>a:hover, .tabs-right>.nav-tabs>li>a:focus { border-color: #eee #eee #eee #ddd; } .tabs-right>.nav-tabs .active>a, .tabs-right>.nav-tabs .active>a:hover, .tabs-right>.nav-tabs .active>a:focus { border-color: #ddd #ddd #ddd transparent; *border-left-color: #fff; } .sui-nav>.disabled>a { color: #999; } .sui-nav>.disabled>a:hover, .sui-nav>.disabled>a:focus { text-decoration: none; background-color: transparent; cursor: default; } .sui-navbar { overflow: visible; margin-bottom: 18px; } .sui-navbar .navbar-inner { min-height: 40px; padding-left: 20px; padding-right: 20px; background: #fff; border: 1px solid #eee; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; /* -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); */ } .sui-navbar .navbar-inner:before, .sui-navbar .navbar-inner:after { display: table; content: ""; line-height: 0; } .sui-navbar .navbar-inner:after { clear: both; } .sui-navbar .sui-navbar .sui-container { width: auto; } .nav-collapse.collapse { height: auto; overflow: visible; } .sui-navbar .sui-brand { float: left; display: block; padding: 11px 20px; margin-left: -20px; font-size: 20px; font-weight: 400; color: #777; } .sui-navbar .sui-brand:hover, .sui-navbar .sui-brand:focus { text-decoration: none; } .navbar-text { margin-bottom: 0; line-height: 40px; color: #777; } .navbar-link { color: #777; } .navbar-link:hover, .navbar-link:focus { color: #333; } .sui-navbar .divider-vertical { height: 40px; margin: 0 9px; border-left: 1px solid #fbfbfb; border-right: 1px solid #fbfbfb; } .sui-navbar .sui-btn, .sui-navbar .sui-btn-group { margin-top: 5px; } .sui-navbar .btn-group .sui-btn, .sui-navbar .input-prepend .sui-btn, .sui-navbar .input-append .sui-btn, .sui-navbar .input-prepend .sui-btn-group, .sui-navbar .input-append .sui-btn-group { margin-top: 0; } .sui-navbar .sui-form { margin-bottom: 0; margin-top: 1px; } .sui-navbar .sui-form:before, .sui-navbar .sui-form:after { display: table; content: ""; line-height: 0; } .sui-navbar .sui-form:after { clear: both; } .sui-navbar .sui-form input { padding-top: 4px; padding-bottom: 4px; padding-right: 8px; padding-left: 8px; } .sui-navbar .sui-form .sui-btn { padding: 2px 14px; line-height: 22px; font-size: 14px; } .sui-navbar .sui-form input, .sui-navbar .sui-form select, .sui-navbar .sui-form .radio, .sui-navbar .sui-form .checkbox { margin-top: 5px; } .sui-navbar .sui-form input, .sui-navbar .sui-form select, .sui-navbar .sui-form .btn { display: inline-block; margin-bottom: 0; } .sui-navbar .sui-form input[type="image"], .sui-navbar .sui-form input[type="checkbox"], .sui-navbar .sui-form input[type="radio"] { margin-top: 3px; } .sui-navbar .sui-form .input-append, .sui-navbar .sui-form .input-prepend { margin-top: 5px; white-space: nowrap; } .sui-navbar .sui-form .input-append input, .sui-navbar .sui-form .input-prepend input { margin-top: 0; } .sui-navbar .navbar-search { position: relative; float: left; margin-top: 5px; margin-bottom: 0; } .sui-navbar .navbar-search .search-query { margin-bottom: 0; padding: 4px 14px; font-family: tahoma, arial, "Hiragino Sans GB", "Microsoft Yahei", \5b8b\4f53, sans-serif; font-size: 13px; font-weight: 400; line-height: 1; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } .navbar-static-top { position: static; margin-bottom: 0; } .navbar-static-top .navbar-inner { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; margin-bottom: 0; } .navbar-fixed-top .navbar-inner, .navbar-static-top .navbar-inner { border-width: 0 0 1px; } .navbar-fixed-bottom .navbar-inner { border-width: 1px 0 0; } .navbar-fixed-top .navbar-inner, .navbar-fixed-bottom .navbar-inner { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .navbar-static-top .sui-container, .navbar-fixed-top .sui-container, .navbar-fixed-bottom .sui-container { width: 998px; } .navbar-fixed-top { top: 0; } .navbar-fixed-top .navbar-inner, .navbar-static-top .navbar-inner { -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); } .navbar-fixed-bottom { bottom: 0; } .navbar-fixed-bottom .navbar-inner { -webkit-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); } .sui-navbar .sui-nav { position: relative; left: 0; display: block; float: left; margin: 0 10px 0 0; } .sui-navbar .sui-nav.pull-right { float: right; margin-right: 0; } .sui-navbar .sui-nav>li { float: left; } .sui-navbar .sui-nav>li>a { float: none; padding: 11px 15px; color: #777; text-decoration: none; text-shadow: none; } .sui-navbar .sui-nav>li>a:focus, .sui-navbar .sui-nav>li>a:hover { background-color: transparent; color: #333; text-decoration: none; } .sui-navbar .sui-nav .dropdown-toggle .caret { vertical-align: 0; } .sui-navbar .sui-nav .sui-dropdown.open .dropdown-toggle, .sui-navbar .sui-nav>.active>a, .sui-navbar .sui-nav .sui-dropdown.open .dropdown-toggle:hover, .sui-navbar .sui-nav>.active>a:hover, .sui-navbar .sui-nav .sui-dropdown.open .dropdown-toggle:focus, .sui-navbar .sui-nav>.active>a:focus { color: #555; text-decoration: none; background-color: #e2e2e2; } .sui-navbar .btn-navbar { display: none; float: right; padding: 7px 10px; margin-left: 5px; margin-right: 5px; color: #fff; background-color: #eee; filter: progid: DXImageTransform.Microsoft.gradient(enabled=false); border: 1px solid #e1e1e1; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); } .sui-navbar .btn-navbar:hover, .sui-navbar .btn-navbar:focus { color: #fff; background-color: #eee; border: 1px solid #e1e1e1; } .sui-navbar .btn-navbar.disabled, .sui-navbar .btn-navbar[disabled], .sui-navbar .btn-navbar.disabled:hover, .sui-navbar .btn-navbar[disabled]:hover, .sui-navbar .btn-navbar.disabled:focus, .sui-navbar .btn-navbar[disabled]:focus, .sui-navbar .btn-navbar.disabled:active, .sui-navbar .btn-navbar[disabled]:active, .sui-navbar .btn-navbar.disabled.active, .sui-navbar .btn-navbar[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .sui-navbar .btn-navbar:active, .sui-navbar .btn-navbar.active { background-color: #e1e1e1; border: 1px solid #d5d5d5; } .sui-navbar .btn-navbar .icon-bar { display: block; width: 18px; height: 2px; background-color: #f5f5f5; -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); } .sui-navbar .btn-navbar .icon-bar+.icon-bar { margin-top: 3px; } .sui-navbar .pull-right>li>.dropdown-menu, .sui-navbar .sui-nav>li>.dropdown-menu.pull-right { left: auto; right: 0; } .sui-navbar .pull-right>li>.dropdown-menu:before, .sui-navbar .sui-nav>li>.dropdown-menu.pull-right:before { left: auto; right: 12px; } .sui-navbar .pull-right>li>.dropdown-menu:after, .sui-navbar .sui-nav>li>.dropdown-menu.pull-right:after { left: auto; right: 13px; } .sui-navbar .pull-right>li>.dropdown-menu .dropdown-menu, .sui-navbar .sui-nav>li>.dropdown-menu.pull-right .dropdown-menu { left: auto; right: 100%; margin-left: 0; margin-right: -1px; -webkit-border-radius: 6px 0 6px 6px; -moz-border-radius: 6px 0 6px 6px; border-radius: 6px 0 6px 6px; } .navbar-inverse .navbar-inner { background-color: #111; background-image: -moz-linear-gradient(top, #111, #111); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#111), to(#111)); background-image: -webkit-linear-gradient(top, #111, #111); background-image: -o-linear-gradient(top, #111, #111); background-image: linear-gradient(to bottom, #111, #111); background-repeat: repeat-x; filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#ff111111', endColorstr='#ff111111', GradientType=0); border-color: #252525; } .navbar-inverse .sui-brand, .navbar-inverse .sui-nav>li>a { color: #aaa; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); } .navbar-inverse .sui-brand:hover, .navbar-inverse .sui-nav>li>a:hover, .navbar-inverse .sui-brand:focus, .navbar-inverse .sui-nav>li>a:focus { color: #fff; } .navbar-inverse .sui-brand { color: #aaa; } .navbar-inverse .navbar-text { color: #aaa; } .navbar-inverse .sui-nav>li>a:focus, .navbar-inverse .sui-nav>li>a:hover { background-color: transparent; color: #fff; } .navbar-inverse .sui-nav .sui-dropdown.open .dropdown-toggle, .navbar-inverse .sui-nav .active>a, .navbar-inverse .sui-nav .sui-dropdown.open .dropdown-toggle:hover, .navbar-inverse .sui-nav .active>a:hover, .navbar-inverse .sui-nav .sui-dropdown.open .dropdown-toggle:focus, .navbar-inverse .sui-nav .active>a:focus { color: #fff; background-color: #111; } .navbar-inverse .navbar-link { color: #aaa; } .navbar-inverse .navbar-link:hover, .navbar-inverse .navbar-link:focus { color: #fff; } .navbar-inverse .divider-vertical { border-left-color: #111; border-right-color: #111; } .navbar-inverse .sui-nav li.sui-dropdown.open>.dropdown-toggle, .navbar-inverse .sui-nav li.sui-dropdown.active>.dropdown-toggle, .navbar-inverse .sui-nav li.sui-dropdown.open.active>.dropdown-toggle { background-color: #111; color: #fff; } .navbar-inverse .navbar-search .search-query { color: #fff; background-color: #515151; border-color: #111; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15); -webkit-transition: none; -moz-transition: none; -o-transition: none; transition: none; } .navbar-inverse .navbar-search .search-query:-moz-placeholder { color: #ccc; } .navbar-inverse .navbar-search .search-query:-ms-input-placeholder { color: #ccc; } .navbar-inverse .navbar-search .search-query::-webkit-input-placeholder { color: #ccc; } .navbar-inverse .navbar-search .search-query:focus, .navbar-inverse .navbar-search .search-query.focused { padding: 5px 15px; color: #333; text-shadow: 0 1px 0 #fff; background-color: #fff; border: 0; -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); outline: 0; } .navbar-inverse .btn-navbar { color: #fff; background-color: #040404; filter: progid: DXImageTransform.Microsoft.gradient(enabled=false); border: 1px solid #000; } .navbar-inverse .btn-navbar:hover, .navbar-inverse .btn-navbar:focus { color: #fff; background-color: #040404; border: 1px solid #000; } .navbar-inverse .btn-navbar.disabled, .navbar-inverse .btn-navbar[disabled], .navbar-inverse .btn-navbar.disabled:hover, .navbar-inverse .btn-navbar[disabled]:hover, .navbar-inverse .btn-navbar.disabled:focus, .navbar-inverse .btn-navbar[disabled]:focus, .navbar-inverse .btn-navbar.disabled:active, .navbar-inverse .btn-navbar[disabled]:active, .navbar-inverse .btn-navbar.disabled.active, .navbar-inverse .btn-navbar[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .navbar-inverse .btn-navbar:active, .navbar-inverse .btn-navbar.active { background-color: #000; border: 1px solid #000; } .sui-breadcrumb { padding: 9px 15px; margin: 0 0 18px; list-style: none; font-weight: 400; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .sui-breadcrumb>li { display: inline-block; *display: inline; *zoom: 1; } .sui-breadcrumb>li+li:before { content: "/\00a0"; padding: 0 5px; color: #ccc; } .sui-breadcrumb>.active { color: #999; } .sui-pagination { margin: 18px 0; } .sui-pagination ul { display: inline-block; margin-left: 0; margin-bottom: 0; vertical-align: middle; } .sui-pagination ul>li { display: inline; } .sui-pagination ul>li>a, .sui-pagination ul>li>span { position: relative; float: left; padding: 2px 7px; line-height: 18px; text-decoration: none; color: #28a3ef; background-color: #fff; border: 1px solid #e0e9ee; margin-left: -1px; } .sui-pagination ul>li>a>i.sui-icon, .sui-pagination ul>li>span>i.sui-icon { line-height: 18px; } .sui-pagination ul>li>a:hover, .sui-pagination ul>li>a:focus { color: #fff; background-color: #4cb9fc; border-color: #4cb9fc; } .sui-pagination ul>.active>a, .sui-pagination ul>.active>span { background-color: #28a3ef; color: #fff; border-color: #28a3ef; cursor: default; } .sui-pagination ul>.active>a:hover, .sui-pagination ul>.active>span:hover, .sui-pagination ul>.active>a:focus, .sui-pagination ul>.active>span:focus { background-color: #28a3ef; color: #fff; border-color: #28a3ef; } .sui-pagination ul>.dotted>span, .sui-pagination ul>.dotted>a { border-top: 0; border-bottom: 0; } .sui-pagination ul>.disabled>span, .sui-pagination ul>.disabled>a, .sui-pagination ul>.disabled>a:hover, .sui-pagination ul>.disabled>a:focus { color: #999; background-color: transparent; cursor: default; } .sui-pagination ul>.prev>span, .sui-pagination ul>.next>span, .sui-pagination ul>.prev>a, .sui-pagination ul>.next>a { background-color: #fafafa; } .sui-pagination ul>.disabled.prev>span:hover, .sui-pagination ul .disabled.next>span:hover, .sui-pagination ul>.disabled.prev>span:focus, .sui-pagination ul .disabled.next>span:focus, .sui-pagination ul>.disabled.prev>a:hover, .sui-pagination ul .disabled.next>a:hover, .sui-pagination ul>.disabled.prev>a:focus, .sui-pagination ul .disabled.next>a:focus { background-color: #fafafa; border-color: #e0e9ee; } .sui-pagination .prev+.prev a, .sui-pagination .next+.next a { margin-left: 5px; } .sui-pagination .ex-page-num { display: inline-block; height: 18px; padding: 2px 4px; font-size: 12px; line-height: 18px; color: #555; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; vertical-align: middle; background-color: #fff; border: 1px solid #ccc; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border linear 0.2s, box-shadow linear 0.2s; -moz-transition: border linear 0.2s, box-shadow linear 0.2s; -o-transition: border linear 0.2s, box-shadow linear 0.2s; transition: border linear 0.2s, box-shadow linear 0.2s; padding-top: 2px; padding-bottom: 2px; width: 18px; float: left; margin: 0 5px; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .sui-pagination .ex-page-num:focus { border-color: #28a3ef; outline: 0; outline: thin dotted \9; } .sui-pagination div { display: inline-block; color: #333; } .sui-pagination div .page-num { display: inline-block; height: 18px; padding: 2px 4px; font-size: 12px; line-height: 18px; color: #555; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; vertical-align: middle; background-color: #fff; border: 1px solid #ccc; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border linear 0.2s, box-shadow linear 0.2s; -moz-transition: border linear 0.2s, box-shadow linear 0.2s; -o-transition: border linear 0.2s, box-shadow linear 0.2s; transition: border linear 0.2s, box-shadow linear 0.2s; padding-top: 2px; padding-bottom: 2px; margin: 0; width: 15px; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; -webkit-transition: width 0.1s linear 0.1s; -moz-transition: width 0.1s linear 0.1s; -ms-transition: width 0.1s linear 0.1s; transition: width 0.1s linear 0.1s; } .sui-pagination div .page-num:focus { border-color: #28a3ef; outline: 0; outline: thin dotted \9; } .sui-pagination div .page-num+.page-confirm { display: inline-block; padding: 2px 14px; box-sizing: border-box; margin-bottom: 0; font-size: 12px; line-height: 18px; text-align: center; vertical-align: middle; cursor: pointer; color: #333; background-color: #eee; border: 1px solid #e1e1e1; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; color: #fff; background-color: #28a3ef; filter: progid: DXImageTransform.Microsoft.gradient(enabled=false); border: 1px solid #1299ec; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; vertical-align: top; } .sui-pagination div .page-num+.page-confirm:hover, .sui-pagination div .page-num+.page-confirm:focus { color: #333; background-color: #f7f7f7; border: 1px solid #eaeaea; } .sui-pagination div .page-num+.page-confirm.disabled, .sui-pagination div .page-num+.page-confirm[disabled], .sui-pagination div .page-num+.page-confirm.disabled:hover, .sui-pagination div .page-num+.page-confirm[disabled]:hover, .sui-pagination div .page-num+.page-confirm.disabled:focus, .sui-pagination div .page-num+.page-confirm[disabled]:focus, .sui-pagination div .page-num+.page-confirm.disabled:active, .sui-pagination div .page-num+.page-confirm[disabled]:active, .sui-pagination div .page-num+.page-confirm.disabled.active, .sui-pagination div .page-num+.page-confirm[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .sui-pagination div .page-num+.page-confirm:active, .sui-pagination div .page-num+.page-confirm.active { background-color: #e1e1e1; border: 1px solid #d5d5d5; } .sui-pagination div .page-num+.page-confirm:hover, .sui-pagination div .page-num+.page-confirm:focus { color: #333; text-decoration: none; } .sui-pagination div .page-num+.page-confirm:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; outline: 0; } .sui-pagination div .page-num+.page-confirm.active, .sui-pagination div .page-num+.page-confirm:active { background-image: none; } .sui-pagination div .page-num+.page-confirm.disabled, .sui-pagination div .page-num+.page-confirm[disabled] { cursor: default; background-image: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } .sui-pagination div .page-num+.page-confirm .sui-icon { line-height: 1; } .sui-pagination div .page-num+.page-confirm .sui-icon:after { content: " "; } .sui-pagination div .page-num+.page-confirm.btn-bordered { background-color: transparent; border: 1px solid #8c8c8c; color: #8c8c8c; } .sui-pagination div .page-num+.page-confirm.btn-bordered:hover, .sui-pagination div .page-num+.page-confirm.btn-bordered:focus { border: 1px solid #666; color: #fff; background-color: #666; } .sui-pagination div .page-num+.page-confirm.btn-bordered:active, .sui-pagination div .page-num+.page-confirm.btn-bordered.active { background-color: #4d4d4d; border: 1px solid #4d4d4d; color: #fff; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-primary { border: 1px solid #1299ec; color: #1299ec; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-primary:hover, .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-primary:focus { border: 1px solid #4cb9fc; color: #fff; background-color: #4cb9fc; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-primary:active, .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-primary.active { background-color: #1aa5fb; border: 1px solid #1aa5fb; color: #fff; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-warning { border: 1px solid #e1b203; color: #e1b203; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-warning:hover, .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-warning:focus { border: 1px solid #fbd238; color: #fff; background-color: #fbd238; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-warning:active, .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-warning.active { background-color: #fac706; border: 1px solid #fac706; color: #fff; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-danger { border: 1px solid #e8351f; color: #e8351f; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-danger:hover, .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-danger:focus { border: 1px solid #ed6a5a; color: #fff; background-color: #ed6a5a; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-danger:active, .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-danger.active { background-color: #e8402c; border: 1px solid #e8402c; color: #fff; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-success { border: 1px solid #34c360; color: #34c360; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-success:hover, .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-success:focus { border: 1px solid #49de79; color: #fff; background-color: #49de79; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-success:active, .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-success.active { background-color: #25cf5c; border: 1px solid #25cf5c; color: #fff; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-info { border: 1px solid #46b8da; color: #46b8da; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-info:hover, .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-info:focus { border: 1px solid #666e70; color: #fff; background-color: #85d0e7; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-info:active, .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-info.active { background-color: #5bc0de; border: 1px solid #5bc0de; color: #fff; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-inverse { border: 1px solid #373737; color: #373737; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-inverse:hover, .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-inverse:focus { border: 1px solid #222; color: #fff; background-color: #222; } .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-inverse:active, .sui-pagination div .page-num+.page-confirm.btn-bordered.btn-inverse.active { background-color: #080808; border: 1px solid #080808; color: #fff; } .sui-pagination div .page-num+.page-confirm.btn-bordered.disabled, .sui-pagination div .page-num+.page-confirm.btn-bordered[disabled], .sui-pagination div .page-num+.page-confirm.btn-bordered.disabled:hover, .sui-pagination div .page-num+.page-confirm.btn-bordered[disabled]:hover, .sui-pagination div .page-num+.page-confirm.btn-bordered.disabled:focus, .sui-pagination div .page-num+.page-confirm.btn-bordered[disabled]:focus { border-color: #c6c6c6; color: #c6c6c6; background: #f3f3f3; } .sui-pagination div .page-num+.page-confirm .sui-label { position: relative; top: -1px; } .sui-pagination div .page-num+.page-confirm:hover, .sui-pagination div .page-num+.page-confirm:focus { color: #fff; background-color: #4cb9fc; border: 1px solid #33affc; } .sui-pagination div .page-num+.page-confirm.disabled, .sui-pagination div .page-num+.page-confirm[disabled], .sui-pagination div .page-num+.page-confirm.disabled:hover, .sui-pagination div .page-num+.page-confirm[disabled]:hover, .sui-pagination div .page-num+.page-confirm.disabled:focus, .sui-pagination div .page-num+.page-confirm[disabled]:focus, .sui-pagination div .page-num+.page-confirm.disabled:active, .sui-pagination div .page-num+.page-confirm[disabled]:active, .sui-pagination div .page-num+.page-confirm.disabled.active, .sui-pagination div .page-num+.page-confirm[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .sui-pagination div .page-num+.page-confirm:active, .sui-pagination div .page-num+.page-confirm.active { background-color: #1299ec; border: 1px solid #1089d4; } .sui-pagination div .page-num+.page-confirm .caret { border-top-color: #fff; border-bottom-color: #fff; } .sui-pagination div .page-num:focus { width: 50px; } .sui-pagination div .page-num:focus+.page-confirm { display: inline-block; } .pagination-centered { text-align: center; } .pagination-right { text-align: right; } .pagination-large ul>li>a, .pagination-large ul>li>span { padding: 4px 9px; font-size: 14px; } .pagination-large div { font-size: 14px; } .pagination-large div .page-num { padding-top: 4px; padding-bottom: 4px; padding-right: 8px; padding-left: 8px; } .pagination-large div .page-num+.page-confirm { display: inline-block; box-sizing: border-box; margin-bottom: 0; font-size: 12px; line-height: 18px; text-align: center; vertical-align: middle; cursor: pointer; color: #333; background-color: #eee; border: 1px solid #e1e1e1; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; padding: 2px 14px; line-height: 22px; font-size: 14px; color: #fff; background-color: #28a3ef; filter: progid: DXImageTransform.Microsoft.gradient(enabled=false); border: 1px solid #1299ec; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; vertical-align: top; } .pagination-large div .page-num+.page-confirm:hover, .pagination-large div .page-num+.page-confirm:focus { color: #333; background-color: #f7f7f7; border: 1px solid #eaeaea; } .pagination-large div .page-num+.page-confirm.disabled, .pagination-large div .page-num+.page-confirm[disabled], .pagination-large div .page-num+.page-confirm.disabled:hover, .pagination-large div .page-num+.page-confirm[disabled]:hover, .pagination-large div .page-num+.page-confirm.disabled:focus, .pagination-large div .page-num+.page-confirm[disabled]:focus, .pagination-large div .page-num+.page-confirm.disabled:active, .pagination-large div .page-num+.page-confirm[disabled]:active, .pagination-large div .page-num+.page-confirm.disabled.active, .pagination-large div .page-num+.page-confirm[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .pagination-large div .page-num+.page-confirm:active, .pagination-large div .page-num+.page-confirm.active { background-color: #e1e1e1; border: 1px solid #d5d5d5; } .pagination-large div .page-num+.page-confirm:hover, .pagination-large div .page-num+.page-confirm:focus { color: #333; text-decoration: none; } .pagination-large div .page-num+.page-confirm:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; outline: 0; } .pagination-large div .page-num+.page-confirm.active, .pagination-large div .page-num+.page-confirm:active { background-image: none; } .pagination-large div .page-num+.page-confirm.disabled, .pagination-large div .page-num+.page-confirm[disabled] { cursor: default; background-image: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } .pagination-large div .page-num+.page-confirm .sui-icon { line-height: 1; } .pagination-large div .page-num+.page-confirm .sui-icon:after { content: " "; } .pagination-large div .page-num+.page-confirm.btn-bordered { background-color: transparent; border: 1px solid #8c8c8c; color: #8c8c8c; } .pagination-large div .page-num+.page-confirm.btn-bordered:hover, .pagination-large div .page-num+.page-confirm.btn-bordered:focus { border: 1px solid #666; color: #fff; background-color: #666; } .pagination-large div .page-num+.page-confirm.btn-bordered:active, .pagination-large div .page-num+.page-confirm.btn-bordered.active { background-color: #4d4d4d; border: 1px solid #4d4d4d; color: #fff; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-primary { border: 1px solid #1299ec; color: #1299ec; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-primary:hover, .pagination-large div .page-num+.page-confirm.btn-bordered.btn-primary:focus { border: 1px solid #4cb9fc; color: #fff; background-color: #4cb9fc; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-primary:active, .pagination-large div .page-num+.page-confirm.btn-bordered.btn-primary.active { background-color: #1aa5fb; border: 1px solid #1aa5fb; color: #fff; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-warning { border: 1px solid #e1b203; color: #e1b203; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-warning:hover, .pagination-large div .page-num+.page-confirm.btn-bordered.btn-warning:focus { border: 1px solid #fbd238; color: #fff; background-color: #fbd238; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-warning:active, .pagination-large div .page-num+.page-confirm.btn-bordered.btn-warning.active { background-color: #fac706; border: 1px solid #fac706; color: #fff; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-danger { border: 1px solid #e8351f; color: #e8351f; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-danger:hover, .pagination-large div .page-num+.page-confirm.btn-bordered.btn-danger:focus { border: 1px solid #ed6a5a; color: #fff; background-color: #ed6a5a; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-danger:active, .pagination-large div .page-num+.page-confirm.btn-bordered.btn-danger.active { background-color: #e8402c; border: 1px solid #e8402c; color: #fff; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-success { border: 1px solid #34c360; color: #34c360; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-success:hover, .pagination-large div .page-num+.page-confirm.btn-bordered.btn-success:focus { border: 1px solid #49de79; color: #fff; background-color: #49de79; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-success:active, .pagination-large div .page-num+.page-confirm.btn-bordered.btn-success.active { background-color: #25cf5c; border: 1px solid #25cf5c; color: #fff; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-info { border: 1px solid #46b8da; color: #46b8da; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-info:hover, .pagination-large div .page-num+.page-confirm.btn-bordered.btn-info:focus { border: 1px solid #ed6a5a; color: #fff; background-color: #ed6a5a; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-info:active, .pagination-large div .page-num+.page-confirm.btn-bordered.btn-info.active { background-color: #5bc0de; border: 1px solid #5bc0de; color: #fff; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-inverse { border: 1px solid #373737; color: #373737; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-inverse:hover, .pagination-large div .page-num+.page-confirm.btn-bordered.btn-inverse:focus { border: 1px solid #222; color: #fff; background-color: #222; } .pagination-large div .page-num+.page-confirm.btn-bordered.btn-inverse:active, .pagination-large div .page-num+.page-confirm.btn-bordered.btn-inverse.active { background-color: #080808; border: 1px solid #080808; color: #fff; } .pagination-large div .page-num+.page-confirm.btn-bordered.disabled, .pagination-large div .page-num+.page-confirm.btn-bordered[disabled], .pagination-large div .page-num+.page-confirm.btn-bordered.disabled:hover, .pagination-large div .page-num+.page-confirm.btn-bordered[disabled]:hover, .pagination-large div .page-num+.page-confirm.btn-bordered.disabled:focus, .pagination-large div .page-num+.page-confirm.btn-bordered[disabled]:focus { border-color: #c6c6c6; color: #c6c6c6; background: #f3f3f3; } .pagination-large div .page-num+.page-confirm .sui-label { position: relative; top: -1px; } .pagination-large div .page-num+.page-confirm:hover, .pagination-large div .page-num+.page-confirm:focus { color: #fff; background-color: #fe9d7c; border: 1px solid #fe9d7c; } .pagination-large div .page-num+.page-confirm.disabled, .pagination-large div .page-num+.page-confirm[disabled], .pagination-large div .page-num+.page-confirm.disabled:hover, .pagination-large div .page-num+.page-confirm[disabled]:hover, .pagination-large div .page-num+.page-confirm.disabled:focus, .pagination-large div .page-num+.page-confirm[disabled]:focus, .pagination-large div .page-num+.page-confirm.disabled:active, .pagination-large div .page-num+.page-confirm[disabled]:active, .pagination-large div .page-num+.page-confirm.disabled.active, .pagination-large div .page-num+.page-confirm[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .pagination-large div .page-num+.page-confirm:active, .pagination-large div .page-num+.page-confirm.active { background-color: #1299ec; border: 1px solid #1089d4; } .pagination-large div .page-num+.page-confirm .caret { border-top-color: #fff; border-bottom-color: #fff; } .pagination-large .ex-page-num { padding-top: 4px; padding-bottom: 4px; padding-right: 8px; padding-left: 8px; } .pagination-xlarge ul>li>a, .pagination-xlarge ul>li>span { padding: 6px 12px; font-size: 14px; } .pagination-xlarge div .page-num { padding-top: 6px; padding-bottom: 6px; font-size: 14px; line-height: 22px; padding-right: 8px; padding-left: 8px; } .pagination-xlarge div .page-num+.page-confirm { display: inline-block; padding: 2px 14px; box-sizing: border-box; margin-bottom: 0; font-size: 12px; line-height: 18px; text-align: center; vertical-align: middle; cursor: pointer; color: #333; background-color: #eee; border: 1px solid #e1e1e1; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; padding: 4px 20px; line-height: 22px; font-size: 14px; color: #fff; background-color: #28a3ef; filter: progid: DXImageTransform.Microsoft.gradient(enabled=false); border: 1px solid #1299ec; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; vertical-align: top; } .pagination-xlarge div .page-num+.page-confirm:hover, .pagination-xlarge div .page-num+.page-confirm:focus { color: #333; background-color: #f7f7f7; border: 1px solid #eaeaea; } .pagination-xlarge div .page-num+.page-confirm.disabled, .pagination-xlarge div .page-num+.page-confirm[disabled], .pagination-xlarge div .page-num+.page-confirm.disabled:hover, .pagination-xlarge div .page-num+.page-confirm[disabled]:hover, .pagination-xlarge div .page-num+.page-confirm.disabled:focus, .pagination-xlarge div .page-num+.page-confirm[disabled]:focus, .pagination-xlarge div .page-num+.page-confirm.disabled:active, .pagination-xlarge div .page-num+.page-confirm[disabled]:active, .pagination-xlarge div .page-num+.page-confirm.disabled.active, .pagination-xlarge div .page-num+.page-confirm[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .pagination-xlarge div .page-num+.page-confirm:active, .pagination-xlarge div .page-num+.page-confirm.active { background-color: #e1e1e1; border: 1px solid #d5d5d5; } .pagination-xlarge div .page-num+.page-confirm:hover, .pagination-xlarge div .page-num+.page-confirm:focus { color: #333; text-decoration: none; } .pagination-xlarge div .page-num+.page-confirm:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; outline: 0; } .pagination-xlarge div .page-num+.page-confirm.active, .pagination-xlarge div .page-num+.page-confirm:active { background-image: none; } .pagination-xlarge div .page-num+.page-confirm.disabled, .pagination-xlarge div .page-num+.page-confirm[disabled] { cursor: default; background-image: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } .pagination-xlarge div .page-num+.page-confirm .sui-icon { line-height: 1; } .pagination-xlarge div .page-num+.page-confirm .sui-icon:after { content: " "; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered { background-color: transparent; border: 1px solid #8c8c8c; color: #8c8c8c; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered:hover, .pagination-xlarge div .page-num+.page-confirm.btn-bordered:focus { border: 1px solid #666; color: #fff; background-color: #666; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered:active, .pagination-xlarge div .page-num+.page-confirm.btn-bordered.active { background-color: #4d4d4d; border: 1px solid #4d4d4d; color: #fff; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-primary { border: 1px solid #F4A951; color: #F4A951; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-primary:hover, .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-primary:focus { border: 1px solid #F4A951; color: #fff; background-color: #F4A951; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-primary:active, .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-primary.active { background-color: #F4A951; border: 1px solid #F4A951; color: #fff; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-warning { border: 1px solid #ff7e00; color: #ff7e00; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-warning:hover, .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-warning:focus { border: 1px solid #ff7e00; color: #fff; background-color: #ff7e00; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-warning:active, .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-warning.active { background-color: #ff7e00; border: 1px solid #ff7e00; color: #fff; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-danger { border: 1px solid #f16565; color: #f16565; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-danger:hover, .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-danger:focus { border: 1px solid #f16565; color: #fff; background-color: #f16565; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-danger:active, .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-danger.active { background-color: #f16565; border: 1px solid #f16565; color: #fff; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-success { border: 1px solid #cd3333; color: #cd3333; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-success:hover, .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-success:focus { border: 1px solid #cd3333; color: #fff; background-color: #cd3333; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-success:active, .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-success.active { background-color: #cd3333; border: 1px solid #cd3333; color: #fff; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-info { border: 1px solid #999; color: #999; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-info:hover, .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-info:focus { border: 1px solid #999; color: #fff; background-color: #cccccc; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-info:active, .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-info.active { background-color: #cccccc; border: 1px solid #999; color: #fff; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-inverse { border: 1px solid #373737; color: #373737; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-inverse:hover, .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-inverse:focus { border: 1px solid #222; color: #fff; background-color: #222; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-inverse:active, .pagination-xlarge div .page-num+.page-confirm.btn-bordered.btn-inverse.active { background-color: #080808; border: 1px solid #080808; color: #fff; } .pagination-xlarge div .page-num+.page-confirm.btn-bordered.disabled, .pagination-xlarge div .page-num+.page-confirm.btn-bordered[disabled], .pagination-xlarge div .page-num+.page-confirm.btn-bordered.disabled:hover, .pagination-xlarge div .page-num+.page-confirm.btn-bordered[disabled]:hover, .pagination-xlarge div .page-num+.page-confirm.btn-bordered.disabled:focus, .pagination-xlarge div .page-num+.page-confirm.btn-bordered[disabled]:focus { border-color: #c6c6c6; color: #c6c6c6; background: #f3f3f3; } .pagination-xlarge div .page-num+.page-confirm .sui-label { position: relative; top: -1px; } .pagination-xlarge div .page-num+.page-confirm:hover, .pagination-xlarge div .page-num+.page-confirm:focus { color: #fff; background-color: #4cb9fc; border: 1px solid #33affc; } .pagination-xlarge div .page-num+.page-confirm.disabled, .pagination-xlarge div .page-num+.page-confirm[disabled], .pagination-xlarge div .page-num+.page-confirm.disabled:hover, .pagination-xlarge div .page-num+.page-confirm[disabled]:hover, .pagination-xlarge div .page-num+.page-confirm.disabled:focus, .pagination-xlarge div .page-num+.page-confirm[disabled]:focus, .pagination-xlarge div .page-num+.page-confirm.disabled:active, .pagination-xlarge div .page-num+.page-confirm[disabled]:active, .pagination-xlarge div .page-num+.page-confirm.disabled.active, .pagination-xlarge div .page-num+.page-confirm[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .pagination-xlarge div .page-num+.page-confirm:active, .pagination-xlarge div .page-num+.page-confirm.active { background-color: #1299ec; border: 1px solid #1089d4; } .pagination-xlarge div .page-num+.page-confirm .caret { border-top-color: #fff; border-bottom-color: #fff; } .pagination-small ul>li>a, .pagination-small ul>li>span { padding: 0 5px; font-size: 12px; } .pagination-small div .page-num { padding-top: 0; padding-bottom: 0; } .pagination-small div .page-num+.page-confirm { display: inline-block; padding: 2px 14px; box-sizing: border-box; margin-bottom: 0; text-align: center; vertical-align: middle; cursor: pointer; color: #333; background-color: #eee; border: 1px solid #e1e1e1; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; padding: 0 6px; line-height: 18px; font-size: 12px; color: #fff; background-color: #28a3ef; filter: progid: DXImageTransform.Microsoft.gradient(enabled=false); border: 1px solid #1299ec; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; vertical-align: top; } .pagination-small div .page-num+.page-confirm:hover, .pagination-small div .page-num+.page-confirm:focus { color: #333; background-color: #f7f7f7; border: 1px solid #eaeaea; } .pagination-small div .page-num+.page-confirm.disabled, .pagination-small div .page-num+.page-confirm[disabled], .pagination-small div .page-num+.page-confirm.disabled:hover, .pagination-small div .page-num+.page-confirm[disabled]:hover, .pagination-small div .page-num+.page-confirm.disabled:focus, .pagination-small div .page-num+.page-confirm[disabled]:focus, .pagination-small div .page-num+.page-confirm.disabled:active, .pagination-small div .page-num+.page-confirm[disabled]:active, .pagination-small div .page-num+.page-confirm.disabled.active, .pagination-small div .page-num+.page-confirm[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .pagination-small div .page-num+.page-confirm:active, .pagination-small div .page-num+.page-confirm.active { background-color: #e1e1e1; border: 1px solid #d5d5d5; } .pagination-small div .page-num+.page-confirm:hover, .pagination-small div .page-num+.page-confirm:focus { color: #333; text-decoration: none; } .pagination-small div .page-num+.page-confirm:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; outline: 0; } .pagination-small div .page-num+.page-confirm.active, .pagination-small div .page-num+.page-confirm:active { background-image: none; } .pagination-small div .page-num+.page-confirm.disabled, .pagination-small div .page-num+.page-confirm[disabled] { cursor: default; background-image: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } .pagination-small div .page-num+.page-confirm .sui-icon { line-height: 1; } .pagination-small div .page-num+.page-confirm .sui-icon:after { content: " "; } .pagination-small div .page-num+.page-confirm.btn-bordered { background-color: transparent; border: 1px solid #8c8c8c; color: #8c8c8c; } .pagination-small div .page-num+.page-confirm.btn-bordered:hover, .pagination-small div .page-num+.page-confirm.btn-bordered:focus { border: 1px solid #666; color: #fff; background-color: #666; } .pagination-small div .page-num+.page-confirm.btn-bordered:active, .pagination-small div .page-num+.page-confirm.btn-bordered.active { background-color: #4d4d4d; border: 1px solid #4d4d4d; color: #fff; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-primary { border: 1px solid #1299ec; color: #1299ec; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-primary:hover, .pagination-small div .page-num+.page-confirm.btn-bordered.btn-primary:focus { border: 1px solid #4cb9fc; color: #fff; background-color: #4cb9fc; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-primary:active, .pagination-small div .page-num+.page-confirm.btn-bordered.btn-primary.active { background-color: #1aa5fb; border: 1px solid #1aa5fb; color: #fff; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-warning { border: 1px solid #e1b203; color: #e1b203; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-warning:hover, .pagination-small div .page-num+.page-confirm.btn-bordered.btn-warning:focus { border: 1px solid #fbd238; color: #fff; background-color: #fbd238; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-warning:active, .pagination-small div .page-num+.page-confirm.btn-bordered.btn-warning.active { background-color: #fac706; border: 1px solid #fac706; color: #fff; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-danger { border: 1px solid #e8351f; color: #e8351f; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-danger:hover, .pagination-small div .page-num+.page-confirm.btn-bordered.btn-danger:focus { border: 1px solid #ed6a5a; color: #fff; background-color: #ed6a5a; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-danger:active, .pagination-small div .page-num+.page-confirm.btn-bordered.btn-danger.active { background-color: #e8402c; border: 1px solid #e8402c; color: #fff; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-success { border: 1px solid #34c360; color: #34c360; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-success:hover, .pagination-small div .page-num+.page-confirm.btn-bordered.btn-success:focus { border: 1px solid #49de79; color: #fff; background-color: #49de79; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-success:active, .pagination-small div .page-num+.page-confirm.btn-bordered.btn-success.active { background-color: #25cf5c; border: 1px solid #25cf5c; color: #fff; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-info { border: 1px solid #46b8da; color: #46b8da; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-info:hover, .pagination-small div .page-num+.page-confirm.btn-bordered.btn-info:focus { border: 1px solid #ed6a5a; color: #fff; background-color: #ed6a5a; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-info:active, .pagination-small div .page-num+.page-confirm.btn-bordered.btn-info.active { background-color: #5bc0de; border: 1px solid #5bc0de; color: #fff; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-inverse { border: 1px solid #373737; color: #373737; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-inverse:hover, .pagination-small div .page-num+.page-confirm.btn-bordered.btn-inverse:focus { border: 1px solid #222; color: #fff; background-color: #222; } .pagination-small div .page-num+.page-confirm.btn-bordered.btn-inverse:active, .pagination-small div .page-num+.page-confirm.btn-bordered.btn-inverse.active { background-color: #080808; border: 1px solid #080808; color: #fff; } .pagination-small div .page-num+.page-confirm.btn-bordered.disabled, .pagination-small div .page-num+.page-confirm.btn-bordered[disabled], .pagination-small div .page-num+.page-confirm.btn-bordered.disabled:hover, .pagination-small div .page-num+.page-confirm.btn-bordered[disabled]:hover, .pagination-small div .page-num+.page-confirm.btn-bordered.disabled:focus, .pagination-small div .page-num+.page-confirm.btn-bordered[disabled]:focus { border-color: #c6c6c6; color: #c6c6c6; background: #f3f3f3; } .pagination-small div .page-num+.page-confirm .sui-label { position: relative; top: -1px; } .pagination-small div .page-num+.page-confirm:hover, .pagination-small div .page-num+.page-confirm:focus { color: #fff; background-color: #4cb9fc; border: 1px solid #33affc; } .pagination-small div .page-num+.page-confirm.disabled, .pagination-small div .page-num+.page-confirm[disabled], .pagination-small div .page-num+.page-confirm.disabled:hover, .pagination-small div .page-num+.page-confirm[disabled]:hover, .pagination-small div .page-num+.page-confirm.disabled:focus, .pagination-small div .page-num+.page-confirm[disabled]:focus, .pagination-small div .page-num+.page-confirm.disabled:active, .pagination-small div .page-num+.page-confirm[disabled]:active, .pagination-small div .page-num+.page-confirm.disabled.active, .pagination-small div .page-num+.page-confirm[disabled].active { color: #c6c6c6; background-color: #f3f3f3; border-color: #eee; } .pagination-small div .page-num+.page-confirm:active, .pagination-small div .page-num+.page-confirm.active { background-color: #1299ec; border: 1px solid #1089d4; } .pagination-small div .page-num+.page-confirm .caret { border-top-color: #fff; border-bottom-color: #fff; } .pagination-naked>ul>li>a, .pagination-naked>ul>li span { border: 0; background-color: transparent !important; padding: 2px; font-size: 12px; } .pagination-naked>ul>li>a:hover, .pagination-naked>ul>li span:hover { color: #28a3ef; } .pagination-naked>ul>li>a>i, .pagination-naked>ul>li span>i { line-height: 18px; } .pagination-naked .ex-page-num+span { color: #333; padding: 4px 0; } .pagination-naked .ex-page-num+span:before { content: "/"; } .pagination-naked .ex-page-num+span:hover { color: #333; } .pagination-naked.pagination-large>ul>li a, .pagination-naked.pagination-large>ul>li span { padding: 4px 2px; font-size: 14px; } .pagination-naked.pagination-large>ul>li a.ex-page-status, .pagination-naked.pagination-large>ul>li span.ex-page-status { padding: 4px 10px; color: #333; } .popdiv-footer { padding: 7px 10px 5px; margin-bottom: 0; text-align: right; background-color: #f1f4f5; -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; -webkit-box-shadow: inset 0 1px 0 #fff; -moz-box-shadow: inset 0 1px 0 #fff; box-shadow: inset 0 1px 0 #fff; } .popdiv-footer:before, .popdiv-footer:after { display: table; content: ""; line-height: 0; } .popdiv-footer:after { clear: both; } .popdiv-footer .sui-btn+.sui-btn { margin-left: 7px; margin-bottom: 0; } .popdiv-footer .sui-btn-group .sui-btn+.sui-btn { margin-left: -1px; } .popdiv-footer .btn-block+.btn-block { margin-left: 0; } .overspread { top: -1px; right: 0; bottom: -1px; left: 0; } .sui-modal-backdrop { position: fixed; top: -1px; right: 0; bottom: -1px; left: 0; z-index: 1040; } .sui-modal-backdrop.fade { opacity: 0; } .sui-modal-backdrop, .sui-modal-backdrop.fade.in { opacity: 0.4; filter: alpha(opacity=40); } .sui-modal .shade { position: absolute; top: -1px; right: 0; bottom: -1px; left: 0; } .sui-modal .shade.in { opacity: 0.4; filter: alpha(opacity=40); } .sui-modal { position: fixed; top: 50%; left: 50%; margin-left: -220px; z-index: 1050; width: 440px; background-color: #fff; border: 5px solid #b2b2b2; border: 5px solid rgba(178, 178, 178, 0.3); -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -webkit-background-clip: padding-box; -moz-background-clip: padding-box; background-clip: padding-box; outline: 0; } .sui-modal.fade { -webkit-transition: opacity 0.3s linear, top 0.3s ease-out; -moz-transition: opacity 0.3s linear, top 0.3s ease-out; -o-transition: opacity 0.3s linear, top 0.3s ease-out; transition: opacity 0.3s linear, top 0.3s ease-out; top: -25%; } .sui-modal.fade.in { top: 50%; } .sui-modal .modal-header { padding: 6px 0; margin: 0 10px; border-bottom: 1px solid #b7b7b7; } .sui-modal .modal-header h3 { margin: 0; line-height: 30px; } .sui-modal .modal-header .modal-title { margin: 0; } .sui-modal .modal-body { position: relative; overflow-y: auto; min-height: 100px; max-height: 550px; margin: 0; padding: 10px 15px; } .sui-modal .modal-body.no-foot { min-height: 190px; } .sui-modal .modal-form { margin-bottom: 0; } .sui-modal .modal-footer { padding: 7px 10px 5px; margin-bottom: 0; text-align: right; background-color: #f1f4f5; -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; -webkit-box-shadow: inset 0 1px 0 #fff; -moz-box-shadow: inset 0 1px 0 #fff; box-shadow: inset 0 1px 0 #fff; } .sui-modal .modal-footer:before, .sui-modal .modal-footer:after { display: table; content: ""; line-height: 0; } .sui-modal .modal-footer:after { clear: both; } .sui-modal .modal-footer .sui-btn+.sui-btn { margin-left: 7px; margin-bottom: 0; } .sui-modal .modal-footer .sui-btn-group .sui-btn+.sui-btn { margin-left: -1px; } .sui-modal .modal-footer .btn-block+.btn-block { margin-left: 0; } .tooltip-footer { padding: 7px 10px 5px; margin-bottom: 0; text-align: right; background-color: #f1f4f5; -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; -webkit-box-shadow: inset 0 1px 0 #fff; -moz-box-shadow: inset 0 1px 0 #fff; box-shadow: inset 0 1px 0 #fff; } .tooltip-footer:before, .tooltip-footer:after { display: table; content: ""; line-height: 0; } .tooltip-footer:after { clear: both; } .tooltip-footer .sui-btn+.sui-btn { margin-left: 7px; margin-bottom: 0; } .tooltip-footer .sui-btn-group .sui-btn+.sui-btn { margin-left: -1px; } .tooltip-footer .btn-block+.btn-block { margin-left: 0; } .type-style.default .tooltip-inner, .type-style.normal .tooltip-inner, .type-style.confirm .tooltip-inner { background-color: #fff; color: #222; } .type-style.attention .tooltip-inner { background-color: #fef1e3; color: #d7842b; } .type-style .tooltip-inner { padding: 9px 11px; text-decoration: none; text-align: left; font-weight: 400; } .sui-tooltip { position: absolute; z-index: 1030; display: block; visibility: visible; border: 2px solid #b2b2b2; opacity: 0; word-break: break-all; word-wrap: break-word; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; } .sui-tooltip.in { opacity: 1; } .sui-tooltip.top { margin-top: -3px; } .sui-tooltip.right { margin-left: 3px; } .sui-tooltip.bottom { margin-top: 3px; } .sui-tooltip.left { margin-left: -3px; } .sui-tooltip.default .tooltip-inner, .sui-tooltip.normal .tooltip-inner, .sui-tooltip.confirm .tooltip-inner { background-color: #fff; color: #222; } .sui-tooltip.attention .tooltip-inner { background-color: #fef1e3; color: #d7842b; } .sui-tooltip .tooltip-inner { padding: 9px 11px; text-decoration: none; text-align: left; font-weight: 400; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip-only-arrow { position: relative; border: 2px solid #b2b2b2; } .tooltip-only-arrow.default .tooltip-inner, .tooltip-only-arrow.normal .tooltip-inner, .tooltip-only-arrow.confirm .tooltip-inner { background-color: #fff; color: #222; } .tooltip-only-arrow.attention .tooltip-inner { background-color: #fef1e3; color: #d7842b; } .tooltip-only-arrow .tooltip-inner { padding: 9px 11px; text-decoration: none; text-align: left; font-weight: 400; } .sui-tooltip.attention, .tooltip-only-arrow.attention { border: 0; } .sui-tooltip.attention .cover, .tooltip-only-arrow.attention .cover { display: none; } .sui-tooltip.top .tooltip-arrow, .tooltip-only-arrow.top .tooltip-arrow { bottom: -7px; left: 50%; margin-left: -6px; border-width: 6px 6px 0; border-top-color: #b2b2b2; } .sui-tooltip.top .tooltip-arrow .tooltip-arrow.cover, .tooltip-only-arrow.top .tooltip-arrow .tooltip-arrow.cover { margin-left: -4px; border-top-color: #fff; top: -7px; } .sui-tooltip.top.attention .tooltip-arrow, .tooltip-only-arrow.top.attention .tooltip-arrow { border-top-color: #fef1e3; bottom: -5px; } .sui-tooltip.right .tooltip-arrow, .tooltip-only-arrow.right .tooltip-arrow { top: 50%; left: -7px; margin-top: -6px; border-width: 6px 6px 6px 0; border-right-color: #b2b2b2; } .sui-tooltip.right .tooltip-arrow .tooltip-arrow.cover, .tooltip-only-arrow.right .tooltip-arrow .tooltip-arrow.cover { margin-top: -4px; border-right-color: #fff; left: 0; } .sui-tooltip.right.attention .tooltip-arrow, .tooltip-only-arrow.right.attention .tooltip-arrow { border-right-color: #fef1e3; left: -5px; } .sui-tooltip.left .tooltip-arrow, .tooltip-only-arrow.left .tooltip-arrow { top: 50%; right: -7px; margin-top: -6px; border-width: 6px 0 6px 6px; border-left-color: #b2b2b2; } .sui-tooltip.left .tooltip-arrow .tooltip-arrow.cover, .tooltip-only-arrow.left .tooltip-arrow .tooltip-arrow.cover { margin-top: -4px; border-left-color: #fff; left: -7px; } .sui-tooltip.left.attention .tooltip-arrow, .tooltip-only-arrow.left.attention .tooltip-arrow { border-left-color: #fef1e3; right: -5px; } .sui-tooltip.bottom .tooltip-arrow, .tooltip-only-arrow.bottom .tooltip-arrow { top: -7px; left: 50%; margin-left: -6px; border-width: 0 6px 6px; border-bottom-color: #b2b2b2; } .sui-tooltip.bottom .tooltip-arrow .tooltip-arrow.cover, .tooltip-only-arrow.bottom .tooltip-arrow .tooltip-arrow.cover { margin-left: -4px; border-bottom-color: #fff; top: 0; } .sui-tooltip.bottom.attention .tooltip-arrow, .tooltip-only-arrow.bottom.attention .tooltip-arrow { border-bottom-color: #fef1e3; top: -5px; } .sui-tooltip .tooltip-arrow.cover, .tooltip-only-arrow .tooltip-arrow.cover { border-width: 4px; } .sui-label { display: inline-block; padding: 2px 10px; font-size: 10.152px; line-height: 14px; color: #fff; vertical-align: baseline; white-space: nowrap; background-color: #999; -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; cursor: default; } .sui-label:empty { display: none; } .sui-label.label-danger { background-color: #ea4a36; } .sui-label.label-warning { background-color: #f89406; } .sui-label.label-success { background-color: #22cd6e; } .sui-label.label-info { background-color: #2597dd; } .sui-label.label-inverse { background-color: #333; } .sui-btn .sui-label { position: relative; top: -1px; } .btn-mini .sui-label { top: 0; } .sui-tag { list-style: none; font-size: 0; line-height: 0; padding: 5px 0 0; margin-bottom: 18px; } .sui-tag.tag-bordered { border: 1px solid #999; padding-left: 5px; } .sui-tag>li, .sui-tag>a { font-size: 12px; margin: 0 5px 5px 0; display: inline-block; overflow: hidden; color: #000; background: #f7f7f7; padding: 0 7px; height: 20px; line-height: 20px; border: 1px solid #dedede; white-space: nowrap; cursor: pointer; -webkit-transition: color 0.2s ease-out; -moz-transition: color 0.2s ease-out; -o-transition: color 0.2s ease-out; transition: color 0.2s ease-out; } .sui-tag>li:hover, .sui-tag>a:hover { color: #28a3ef; } .sui-tag>li.tag-selected, .sui-tag>a.tag-selected { color: #fff; background: #28a3ef; border-color: #1299ec; } .sui-tag>li.tag-selected:hover, .sui-tag>a.tag-selected:hover { background: #4cb9fc; border-color: #33affc; } .sui-tag>li.with-x, .sui-tag>a.with-x { cursor: default; } .sui-tag>li.with-x i, .sui-tag>a.with-x i { margin-left: 10px; cursor: pointer; font: 400 14px tahoma; display: inline-block; height: 100%; vertical-align: middle; } .sui-steps { font-size: 0; overflow: hidden; line-height: 0; margin: 18px 0; } .sui-steps .wrap { display: inline-block; } .sui-steps .wrap>div { width: 195px; height: 32px; display: inline-block; line-height: 32px; vertical-align: top; font-size: 12px; position: relative; } .sui-steps .wrap>div>label { margin-left: 26px; cursor: default; } .sui-steps .triangle-right { display: inline-block; width: 0; height: 0; border-style: solid; border-width: 16px; position: absolute; right: -31px; z-index: 1; } .sui-steps .triangle-right-bg { display: inline-block; width: 0; height: 0; border-style: solid; border-width: 16px; position: absolute; right: -31px; z-index: 1; border-width: 20px; right: -40px; border-color: transparent transparent transparent #fff; top: -4px; } .sui-steps .round { display: inline-block; width: 16px; height: 16px; -webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px; text-align: center; line-height: 16px; } .sui-steps .round .sui-icon { vertical-align: -1px; } .sui-steps .round+span:before { content: "\00a0"; } .sui-steps .finished { background-color: #28a3ef; color: #fff; } .sui-steps .finished .triangle-right { border-color: transparent transparent transparent #28a3ef; } .sui-steps .finished .round { background-color: #fff; background-color: transparent\9; color: #28a3ef; } .sui-steps .finished .round>i { color: #28a3ef; font-size: 12px; } .sui-steps .current { background-color: #4cb9fc; color: #fff; } .sui-steps .current .triangle-right { border-color: transparent transparent transparent #4cb9fc; } .sui-steps .current .round { background-color: #fff; color: #4cb9fc; color: #FFF\9; background-color: transparent\9; } .sui-steps .todo { background-color: #eee; color: #999; } .sui-steps .todo .triangle-right { border-color: transparent transparent transparent #eee; } .sui-steps .todo .round { background-color: #fff; background-color: transparent\9; } .steps-large .wrap>div { font-size: 14px; width: 243.75px; height: 40px; line-height: 40px; } .steps-large .wrap>div>label { font-size: 14px; margin-left: 30px; } .steps-large .triangle-right { border-width: 20px; right: -39px; } .steps-large .triangle-right-bg { border-width: 24px; right: -48px; } .steps-large .round { width: 18px; height: 18px; line-height: 18px; -webkit-border-radius: 9px; -moz-border-radius: 9px; border-radius: 9px; } .steps-auto { display: table; width: 100%; } .steps-auto .wrap { display: table-cell; } .steps-auto .wrap>div { width: 100%; } .sui-steps-round { font-size: 0; overflow: hidden; line-height: 0; margin: 18px 0; padding: 0 6px; } .sui-steps-round>div { display: inline-block; vertical-align: top; position: relative; } .sui-steps-round>div .wrap:before, .sui-steps-round>div .wrap:after { display: table; content: ""; line-height: 0; } .sui-steps-round>div .wrap:after { clear: both; } .sui-steps-round>div>label { display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 12px; height: 12px; margin-top: 6px; color: #28a3ef; cursor: default; text-align: center; width: 50%; margin-left: -25%; position: relative; left: 15px; } .sui-steps-round>div:first-child>label { width: auto; max-width: 50%; margin-left: 0; left: 0; } .sui-steps-round>div:last-child, .sui-steps-round>div.last { width: 30px !important; } .sui-steps-round>div:last-child>label, .sui-steps-round>div.last>label { position: absolute; width: auto; margin-left: 0; left: auto; right: 0; } .sui-steps-round>div .round { width: 22px; height: 22px; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; display: inline-block; vertical-align: middle; font-size: 12px; color: #fff; line-height: 22px; text-align: center; float: left; } .sui-steps-round>div .bar { margin: 10px 10px 0 40px; width: 200px; height: 6px; vertical-align: middle; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .sui-steps-round>.finished .round { border: 4px #28a3ef solid; background-color: #28a3ef; color: #fff; } .sui-steps-round>.finished .bar { background-color: #28a3ef; } .sui-steps-round>.current .round { border: 4px #4cb9fc solid; background-color: #4cb9fc; } .sui-steps-round>.current .bar { background-color: #4cb9fc; } .sui-steps-round>.todo>label { color: #999; } .sui-steps-round>.todo .round { border: 4px #d3d3d3 solid; background-color: #fff; color: #999; } .sui-steps-round>.todo .bar { background-color: #eee; } .steps-round-auto { display: table; width: 100%; } .steps-round-auto>div { display: table-cell; } .steps-round-auto>div .bar { width: auto; } .steps-3>div { width: 50%; } .steps-4>div { width: 33%; } .steps-5>div { width: 25%; } .steps-6>div { width: 20%; } .steps-7>div { width: 16%; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-moz-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-ms-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-o-keyframes progress-bar-stripes { from { background-position: 0 0; } to { background-position: 40px 0; } } @keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } .sui-progress { overflow: hidden; height: 22px; margin-bottom: 18px; background-color: #eee; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; border: 0; position: relative; } .sui-progress .bar { width: 0; height: 100%; padding: 2px 14px; padding-left: 0; padding-right: 0; color: #fff; float: left; font-size: 12px; text-align: center; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #28a3ef; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition: width 0.6s ease; -moz-transition: width 0.6s ease; -o-transition: width 0.6s ease; transition: width 0.6s ease; } .sui-progress .bar-text { position: absolute; color: #333; text-align: center; width: 100%; padding: 2px 0; } .sui-progress.progress-small { height: 18px; line-height: 18px; font-size: 12px; } .sui-progress.progress-small .bar, .sui-progress.progress-small .bar-text { padding: 0; } .sui-progress.progress-large { height: 26px; line-height: 22px; font-size: 14px; } .sui-progress.progress-xlarge { height: 30px; line-height: 27px; font-size: 18px; } .progress-striped .bar { background-color: #28a3ef; background-image: -webkit-gradient( linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -webkit-background-size: 40px 40px; -moz-background-size: 40px 40px; -o-background-size: 40px 40px; background-size: 40px 40px; } .sui-progress.active .bar { -webkit-animation: progress-bar-stripes 2s linear infinite; -moz-animation: progress-bar-stripes 2s linear infinite; -ms-animation: progress-bar-stripes 2s linear infinite; -o-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-danger .bar, .sui-progress .bar-danger { background-color: #ea4a36; } .progress-danger.progress-striped .bar, .progress-striped .bar-danger { background-color: #ea4a36; background-image: -webkit-gradient( linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-success .bar, .sui-progress .bar-success { background-color: #43cd6e; } .progress-success.progress-striped .bar, .progress-striped .bar-success { background-color: #43cd6e; background-image: -webkit-gradient( linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-info .bar, .sui-progress .bar-info { background-color: #5bc0de; } .progress-info.progress-striped .bar, .progress-striped .bar-info { background-color: #5bc0de; background-image: -webkit-gradient( linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-warning .bar, .sui-progress .bar-warning { background-color: #fa9a03; } .progress-warning.progress-striped .bar, .progress-striped .bar-warning { background-color: #fa9a03; background-image: -webkit-gradient( linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .sui-hero-unit { padding: 60px; margin-bottom: 30px; font-size: 18px; font-weight: 200; line-height: 27px; color: inherit; background-color: #eee; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .sui-hero-unit h1 { margin-bottom: 0; font-size: 60px; line-height: 1; color: inherit; letter-spacing: -1px; } .sui-hero-unit li { line-height: 27px; } .sui-loading.loading-large .icon-pc-loading { font-size: 60px; } .sui-loading.loading-xlarge .icon-pc-loading { font-size: 80px; } .sui-loading.loading-xxlarge .icon-pc-loading { font-size: 100px; } .sui-loading.loading-small .icon-pc-loading { font-size: 40px; } .sui-loading.loading-xsmall .icon-pc-loading { font-size: 30px; } .sui-loading.loading-xxsmall .icon-pc-loading { font-size: 20px; } .sui-loading.loading-dark .icon-pc-loading { color: #000; opacity: 0.9; } .sui-loading.loading-light .icon-pc-loading { color: #555; opacity: 0.2; } .sui-loading { text-align: center; display: block; } .sui-loading.loading-inline { display: inline-block; } .sui-loading .icon-pc-loading { -webkit-animation: rotation 2s infinite linear; -moz-animation: rotation 2s infinite linear; animation: rotation 2s infinite linear; display: inline-block; font-size: 50px; color: #28a3ef; } @-webkit-keyframes rotation { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(359deg); } } @-moz-keyframes rotation { from { -moz-transform: rotate(0deg); } to { -moz-transform: rotate(359deg); } } @keyframes rotation { from { transform: rotate(0deg); } to { transform: rotate(359deg); } } .pull-right { float: right; } .pull-left { float: left; } .hide { display: none; } .show { display: block; } .invisible { visibility: hidden; } .affix { position: fixed; } /*! * Bootstrap Responsive v2.3.2 * * Copyright 2013 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world by @mdo and @fat. */ @-ms-viewport { width: device-width; } .hidden { display: none; visibility: hidden; } .visible-phone { display: none !important; } .visible-tablet { display: none !important; } .hidden-desktop { display: none !important; } .visible-desktop { display: inherit !important; } @media (min-width: 768px) and (max-width: 979px) { .hidden-desktop { display: inherit !important; } .visible-desktop { display: none !important; } .visible-tablet { display: inherit !important; } .hidden-tablet { display: none !important; } } @media (max-width: 767px) { .hidden-desktop { display: inherit !important; } .visible-desktop { display: none !important; } .visible-phone { display: inherit !important; } .hidden-phone { display: none !important; } } .visible-print { display: none !important; } @media print { .visible-print { display: inherit !important; } .hidden-print { display: none !important; } } @media (min-width: 1440px) { .sui-row { margin-left: -10px; } .sui-row:before, .sui-row:after { display: table; content: ""; line-height: 0; } .sui-row:after { clear: both; } [class*="span"] { float: left; min-height: 1px; margin-left: 10px; } .sui-container, .navbar-static-top .sui-container, .navbar-fixed-top .sui-container, .navbar-fixed-bottom .sui-container { width: 1382px; } .span12 { width: 1382px; } .span11 { width: 1266px; } .span10 { width: 1150px; } .span9 { width: 1034px; } .span8 { width: 918px; } .span7 { width: 802px; } .span6 { width: 686px; } .span5 { width: 570px; } .span4 { width: 454px; } .span3 { width: 338px; } .span2 { width: 222px; } .span1 { width: 106px; } .offset12 { margin-left: 1402px; } .offset11 { margin-left: 1286px; } .offset10 { margin-left: 1170px; } .offset9 { margin-left: 1054px; } .offset8 { margin-left: 938px; } .offset7 { margin-left: 822px; } .offset6 { margin-left: 706px; } .offset5 { margin-left: 590px; } .offset4 { margin-left: 474px; } .offset3 { margin-left: 358px; } .offset2 { margin-left: 242px; } .offset1 { margin-left: 126px; } .sui-row-fluid { width: 100%; } .sui-row-fluid:before, .sui-row-fluid:after { display: table; content: ""; line-height: 0; } .sui-row-fluid:after { clear: both; } .sui-row-fluid [class*="span"] { display: block; width: 100%; min-height: 24px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; float: left; margin-left: 0.723589%; *margin-left: 0.6734888%; } .sui-row-fluid [class*="span"]:first-child { margin-left: 0; } .sui-row-fluid .controls-row [class*="span"]+[class*="span"] { margin-left: 0.723589%; } .sui-row-fluid .span12 { width: 100%; *width: 99.9498998%; } .sui-row-fluid .span11 { width: 91.60636758%; *width: 91.55626738%; } .sui-row-fluid .span10 { width: 83.21273517%; *width: 83.16263497%; } .sui-row-fluid .span9 { width: 74.81910275%; *width: 74.76900255%; } .sui-row-fluid .span8 { width: 66.42547033%; *width: 66.37537013%; } .sui-row-fluid .span7 { width: 58.03183792%; *width: 57.98173772%; } .sui-row-fluid .span6 { width: 49.6382055%; *width: 49.5881053%; } .sui-row-fluid .span5 { width: 41.24457308%; *width: 41.19447288%; } .sui-row-fluid .span4 { width: 32.85094067%; *width: 32.80084047%; } .sui-row-fluid .span3 { width: 24.45730825%; *width: 24.40720805%; } .sui-row-fluid .span2 { width: 16.06367583%; *width: 16.01357563%; } .sui-row-fluid .span1 { width: 7.67004342%; *width: 7.61994321%; } .sui-row-fluid .offset12 { margin-left: 101.447178%; *margin-left: 101.3469776%; } .sui-row-fluid .offset12:first-child { margin-left: 100.723589%; *margin-left: 100.6233886%; } .sui-row-fluid .offset11 { margin-left: 93.05354559%; *margin-left: 92.95334519%; } .sui-row-fluid .offset11:first-child { margin-left: 92.32995658%; *margin-left: 92.22975618%; } .sui-row-fluid .offset10 { margin-left: 84.65991317%; *margin-left: 84.55971277%; } .sui-row-fluid .offset10:first-child { margin-left: 83.93632417%; *margin-left: 83.83612377%; } .sui-row-fluid .offset9 { margin-left: 76.26628075%; *margin-left: 76.16608035%; } .sui-row-fluid .offset9:first-child { margin-left: 75.54269175%; *margin-left: 75.44249135%; } .sui-row-fluid .offset8 { margin-left: 67.87264834%; *margin-left: 67.77244793%; } .sui-row-fluid .offset8:first-child { margin-left: 67.14905933%; *margin-left: 67.04885893%; } .sui-row-fluid .offset7 { margin-left: 59.47901592%; *margin-left: 59.37881552%; } .sui-row-fluid .offset7:first-child { margin-left: 58.75542692%; *margin-left: 58.65522652%; } .sui-row-fluid .offset6 { margin-left: 51.0853835%; *margin-left: 50.9851831%; } .sui-row-fluid .offset6:first-child { margin-left: 50.3617945%; *margin-left: 50.2615941%; } .sui-row-fluid .offset5 { margin-left: 42.69175109%; *margin-left: 42.59155068%; } .sui-row-fluid .offset5:first-child { margin-left: 41.96816208%; *margin-left: 41.86796168%; } .sui-row-fluid .offset4 { margin-left: 34.29811867%; *margin-left: 34.19791827%; } .sui-row-fluid .offset4:first-child { margin-left: 33.57452967%; *margin-left: 33.47432927%; } .sui-row-fluid .offset3 { margin-left: 25.90448625%; *margin-left: 25.80428585%; } .sui-row-fluid .offset3:first-child { margin-left: 25.18089725%; *margin-left: 25.08069685%; } .sui-row-fluid .offset2 { margin-left: 17.51085384%; *margin-left: 17.41065343%; } .sui-row-fluid .offset2:first-child { margin-left: 16.78726483%; *margin-left: 16.68706443%; } .sui-row-fluid .offset1 { margin-left: 9.11722142%; *margin-left: 9.01702102%; } .sui-row-fluid .offset1:first-child { margin-left: 8.39363242%; *margin-left: 8.29343202%; } input, textarea, .uneditable-input { margin-left: 0; } .controls-row [class*="span"]+[class*="span"] { margin-left: 10px; } input.span12, textarea.span12, .uneditable-input.span12 { width: 1368px; } input.span11, textarea.span11, .uneditable-input.span11 { width: 1252px; } input.span10, textarea.span10, .uneditable-input.span10 { width: 1136px; } input.span9, textarea.span9, .uneditable-input.span9 { width: 1020px; } input.span8, textarea.span8, .uneditable-input.span8 { width: 904px; } input.span7, textarea.span7, .uneditable-input.span7 { width: 788px; } input.span6, textarea.span6, .uneditable-input.span6 { width: 672px; } input.span5, textarea.span5, .uneditable-input.span5 { width: 556px; } input.span4, textarea.span4, .uneditable-input.span4 { width: 440px; } input.span3, textarea.span3, .uneditable-input.span3 { width: 324px; } input.span2, textarea.span2, .uneditable-input.span2 { width: 208px; } input.span1, textarea.span1, .uneditable-input.span1 { width: 92px; } .thumbnails { margin-left: -10px; } .thumbnails>li { margin-left: 10px; } .row-fluid .thumbnails { margin-left: 0; } } @media (min-width: 1280px) and (max-width: 1439px) { .sui-row { margin-left: -10px; } .sui-row:before, .sui-row:after { display: table; content: ""; line-height: 0; } .sui-row:after { clear: both; } [class*="span"] { float: left; min-height: 1px; margin-left: 10px; } .sui-container, .navbar-static-top .sui-container, .navbar-fixed-top .sui-container, .navbar-fixed-bottom .sui-container { width: 1190px; } .span12 { width: 1190px; } .span11 { width: 1090px; } .span10 { width: 990px; } .span9 { width: 890px; } .span8 { width: 790px; } .span7 { width: 690px; } .span6 { width: 590px; } .span5 { width: 490px; } .span4 { width: 390px; } .span3 { width: 290px; } .span2 { width: 190px; } .span1 { width: 90px; } .offset12 { margin-left: 1210px; } .offset11 { margin-left: 1110px; } .offset10 { margin-left: 1010px; } .offset9 { margin-left: 910px; } .offset8 { margin-left: 810px; } .offset7 { margin-left: 710px; } .offset6 { margin-left: 610px; } .offset5 { margin-left: 510px; } .offset4 { margin-left: 410px; } .offset3 { margin-left: 310px; } .offset2 { margin-left: 210px; } .offset1 { margin-left: 110px; } .sui-row-fluid { width: 100%; } .sui-row-fluid:before, .sui-row-fluid:after { display: table; content: ""; line-height: 0; } .sui-row-fluid:after { clear: both; } .sui-row-fluid [class*="span"] { display: block; width: 100%; min-height: 24px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; float: left; margin-left: 0.84033613%; *margin-left: 0.79023593%; } .sui-row-fluid [class*="span"]:first-child { margin-left: 0; } .sui-row-fluid .controls-row [class*="span"]+[class*="span"] { margin-left: 0.84033613%; } .sui-row-fluid .span12 { width: 100%; *width: 99.9498998%; } .sui-row-fluid .span11 { width: 91.59663866%; *width: 91.54653846%; } .sui-row-fluid .span10 { width: 83.19327731%; *width: 83.14317711%; } .sui-row-fluid .span9 { width: 74.78991597%; *width: 74.73981577%; } .sui-row-fluid .span8 { width: 66.38655462%; *width: 66.33645442%; } .sui-row-fluid .span7 { width: 57.98319328%; *width: 57.93309308%; } .sui-row-fluid .span6 { width: 49.57983193%; *width: 49.52973173%; } .sui-row-fluid .span5 { width: 41.17647059%; *width: 41.12637039%; } .sui-row-fluid .span4 { width: 32.77310924%; *width: 32.72300904%; } .sui-row-fluid .span3 { width: 24.3697479%; *width: 24.3196477%; } .sui-row-fluid .span2 { width: 15.96638655%; *width: 15.91628635%; } .sui-row-fluid .span1 { width: 7.56302521%; *width: 7.51292501%; } .sui-row-fluid .offset12 { margin-left: 101.68067227%; *margin-left: 101.58047187%; } .sui-row-fluid .offset12:first-child { margin-left: 100.84033613%; *margin-left: 100.74013573%; } .sui-row-fluid .offset11 { margin-left: 93.27731092%; *margin-left: 93.17711052%; } .sui-row-fluid .offset11:first-child { margin-left: 92.43697479%; *margin-left: 92.33677439%; } .sui-row-fluid .offset10 { margin-left: 84.87394958%; *margin-left: 84.77374918%; } .sui-row-fluid .offset10:first-child { margin-left: 84.03361345%; *margin-left: 83.93341304%; } .sui-row-fluid .offset9 { margin-left: 76.47058824%; *margin-left: 76.37038783%; } .sui-row-fluid .offset9:first-child { margin-left: 75.6302521%; *margin-left: 75.5300517%; } .sui-row-fluid .offset8 { margin-left: 68.06722689%; *margin-left: 67.96702649%; } .sui-row-fluid .offset8:first-child { margin-left: 67.22689076%; *margin-left: 67.12669036%; } .sui-row-fluid .offset7 { margin-left: 59.66386555%; *margin-left: 59.56366515%; } .sui-row-fluid .offset7:first-child { margin-left: 58.82352941%; *margin-left: 58.72332901%; } .sui-row-fluid .offset6 { margin-left: 51.2605042%; *margin-left: 51.1603038%; } .sui-row-fluid .offset6:first-child { margin-left: 50.42016807%; *margin-left: 50.31996767%; } .sui-row-fluid .offset5 { margin-left: 42.85714286%; *margin-left: 42.75694246%; } .sui-row-fluid .offset5:first-child { margin-left: 42.01680672%; *margin-left: 41.91660632%; } .sui-row-fluid .offset4 { margin-left: 34.45378151%; *margin-left: 34.35358111%; } .sui-row-fluid .offset4:first-child { margin-left: 33.61344538%; *margin-left: 33.51324498%; } .sui-row-fluid .offset3 { margin-left: 26.05042020-%; *margin-left: 25.95021977%; } .sui-row-fluid .offset3:first-child { margin-left: 25.21008403%; *margin-left: 25.10988363%; } .sui-row-fluid .offset2 { margin-left: 17.64705882%; *margin-left: 17.54685842%; } .sui-row-fluid .offset2:first-child { margin-left: 16.80672269%; *margin-left: 16.70652229%; } .sui-row-fluid .offset1 { margin-left: 9.24369748%; *margin-left: 9.14349708%; } .sui-row-fluid .offset1:first-child { margin-left: 8.40336134%; *margin-left: 8.30316094%; } input, textarea, .uneditable-input { margin-left: 0; } .controls-row [class*="span"]+[class*="span"] { margin-left: 10px; } input.span12, textarea.span12, .uneditable-input.span12 { width: 1176px; } input.span11, textarea.span11, .uneditable-input.span11 { width: 1076px; } input.span10, textarea.span10, .uneditable-input.span10 { width: 976px; } input.span9, textarea.span9, .uneditable-input.span9 { width: 876px; } input.span8, textarea.span8, .uneditable-input.span8 { width: 776px; } input.span7, textarea.span7, .uneditable-input.span7 { width: 676px; } input.span6, textarea.span6, .uneditable-input.span6 { width: 576px; } input.span5, textarea.span5, .uneditable-input.span5 { width: 476px; } input.span4, textarea.span4, .uneditable-input.span4 { width: 376px; } input.span3, textarea.span3, .uneditable-input.span3 { width: 276px; } input.span2, textarea.span2, .uneditable-input.span2 { width: 176px; } input.span1, textarea.span1, .uneditable-input.span1 { width: 76px; } } /*!plugins/sui/sui-append.min.css*/ /*! * Bootstrap v2.3.2 * * Copyright 2013 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world by @mdo and @fat. */ .clearfix:before, .clearfix:after { display: table; content: ""; line-height: 0; } .clearfix:after { clear: both; } .hide-text { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .input-block-level { display: block; width: 100%; min-height: 24px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .break-line { word-break: break-all; word-wrap: break-word; white-space: pre; } @font-face { font-family: sui-icon; src: url(../fonts//icon-moon.eot?mvdj6z); src: url(../fonts//icon-moon.eot?#iefixmvdj6z) format("embedded-opentype"), url(../fonts//icon-moon.woff?mvdj6z) format("woff"), url(../fonts//icon-moon.ttf?mvdj6z) format("truetype"), url(../fonts//icon-moon.svg?mvdj6z#icon-moon) format("svg"); font-weight: 400; font-style: normal; } .sui-icon { font-family: sui-icon; speak: none; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: inherit; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .sui-icon.icon-search:before { content: "\e69f"; } .sui-icon.icon-th-large:before { content: "\e698"; } .sui-icon.icon-th:before { content: "\e697"; } .sui-icon.icon-th-list:before { content: "\e696"; } .sui-icon.icon-zoom-in:before { content: "\e693"; } .sui-icon.icon-zoom-out:before { content: "\e692"; } .sui-icon.icon-signal:before { content: "\e690"; } .sui-icon.icon-cog:before { content: "\e68f"; } .sui-icon.icon-trash:before { content: "\e68e"; } .sui-icon.icon-home:before { content: "\e68d"; } .sui-icon.icon-time:before { content: "\e68b"; } .sui-icon.icon-download-alt:before { content: "\e689"; } .sui-icon.icon-download:before { content: "\e688"; } .sui-icon.icon-upload:before { content: "\e687"; } .sui-icon.icon-play-circle:before { content: "\e685"; } .sui-icon.icon-repeat:before { content: "\e684"; } .sui-icon.icon-refresh:before { content: "\e683"; } .sui-icon.icon-list-alt:before { content: "\e682"; } .sui-icon.icon-lock:before { content: "\e681"; } .sui-icon.icon-flag:before { content: "\e680"; } .sui-icon.icon-volume-off:before { content: "\e67e"; } .sui-icon.icon-volume-down:before { content: "\e67d"; } .sui-icon.icon-volume-up:before { content: "\e67c"; } .sui-icon.icon-qrcode:before { content: "\e67b"; } .sui-icon.icon-barcode:before { content: "\e67a"; } .sui-icon.icon-bookmark:before { content: "\e676"; } .sui-icon.icon-align-justify:before { content: "\e66b"; } .sui-icon.icon-list:before { content: "\e66a"; } .sui-icon.icon-picture:before { content: "\e666"; } .sui-icon.icon-pencil:before { content: "\e665"; } .sui-icon.icon-map-marker:before { content: "\e664"; } .sui-icon.icon-adjust:before { content: "\e663"; } .sui-icon.icon-edit:before { content: "\e661"; } .sui-icon.icon-check:before { content: "\e65f"; } .sui-icon.icon-step-backward:before { content: "\e65d"; } .sui-icon.icon-fast-backward:before { content: "\e65c"; } .sui-icon.icon-backward:before { content: "\e65b"; } .sui-icon.icon-play:before { content: "\e65a"; } .sui-icon.icon-pause:before { content: "\e659"; } .sui-icon.icon-stop:before { content: "\e658"; } .sui-icon.icon-forward:before { content: "\e657"; } .sui-icon.icon-fast-forward:before { content: "\e656"; } .sui-icon.icon-step-forward:before { content: "\e655"; } .sui-icon.icon-chevron-left:before { content: "\e653"; } .sui-icon.icon-chevron-right:before { content: "\e652"; } .sui-icon.icon-plus-sign:before { content: "\e651"; } .sui-icon.icon-minus-sign:before { content: "\e650"; } .sui-icon.icon-remove-sign:before { content: "\e64f"; } .sui-icon.icon-ok-sign:before { content: "\e64e"; } .sui-icon.icon-question-sign:before { content: "\e64d"; } .sui-icon.icon-info-sign:before { content: "\e64c"; } .sui-icon.icon-remove-circle:before { content: "\e64a"; } .sui-icon.icon-ok-circle:before { content: "\e649"; } .sui-icon.icon-ban-circle:before { content: "\e648"; } .sui-icon.icon-notification:before { content: "\e610"; } .sui-icon.icon-question:before { content: "\e611"; } .sui-icon.icon-arrow-left:before { content: "\e647"; } .sui-icon.icon-arrow-right:before { content: "\e646"; } .sui-icon.icon-arrow-up:before { content: "\e645"; } .sui-icon.icon-arrow-down:before { content: "\e644"; } .sui-icon.icon-long-arrow-down:before { content: "\e752"; } .sui-icon.icon-long-arrow-up:before { content: "\e753"; } .sui-icon.icon-long-arrow-left:before { content: "\e754"; } .sui-icon.icon-long-arrow-right:before { content: "\e755"; } .sui-icon.icon-resize-full:before { content: "\e642"; } .sui-icon.icon-resize-small:before { content: "\e641"; } .sui-icon.icon-exclamation-sign:before { content: "\e63d"; } .sui-icon.icon-comment:before { content: "\e633"; } .sui-icon.icon-chevron-up:before { content: "\e631"; } .sui-icon.icon-chevron-down:before { content: "\e630"; } .sui-icon.icon-shopping-cart:before { content: "\e62e"; } .sui-icon.icon-folder-close:before { content: "\e62d"; } .sui-icon.icon-folder-open:before { content: "\e62c"; } .sui-icon.icon-resize-vertical:before { content: "\e62b"; } .sui-icon.icon-resize-horizontal:before { content: "\e62a"; } .sui-icon.icon-bar-chart:before { content: "\e629"; } .sui-icon.icon-upload-alt:before { content: "\e617"; } .sui-icon.icon-bookmark-empty:before { content: "\e613"; } .sui-icon.icon-credit:before { content: "\e60d"; } .sui-icon.icon-rss:before { content: "\e60c"; } .sui-icon.icon-circle-arrow-left:before { content: "\e603"; } .sui-icon.icon-circle-arrow-right:before { content: "\e602"; } .sui-icon.icon-circle-arrow-up:before { content: "\e601"; } .sui-icon.icon-circle-arrow-down:before { content: "\e600"; } .sui-icon.icon-globe:before { content: "\e6a2"; } .sui-icon.icon-wrench:before { content: "\e6a3"; } .sui-icon.icon-tasks:before { content: "\e6a4"; } .sui-icon.icon-fullscreen:before { content: "\e6a7"; } .sui-icon.icon-reorder:before { content: "\e6b1"; } .sui-icon.icon-list-ul:before { content: "\e6b2"; } .sui-icon.icon-list-ol:before { content: "\e6b3"; } .sui-icon.icon-magic:before { content: "\e6b7"; } .sui-icon.icon-caret-down:before { content: "\e6be"; } .sui-icon.icon-caret-up:before { content: "\e6bf"; } .sui-icon.icon-caret-left:before { content: "\e6c0"; } .sui-icon.icon-caret-right:before { content: "\e6c1"; } .sui-icon.icon-sort:before { content: "\e6c3"; } .sui-icon.icon-sort-down:before { content: "\e6c4"; } .sui-icon.icon-sort-up:before { content: "\e6c5"; } .sui-icon.icon-envelope-alt:before { content: "\e6c6"; } .sui-icon.icon-lightbulb:before { content: "\e6d1"; } .sui-icon.icon-bulb:before { content: "\e605"; } .sui-icon.icon-cloud-download:before { content: "\e6d3"; } .sui-icon.icon-cloud-upload:before { content: "\e6d4"; } .sui-icon.icon-bell-alt:before { content: "\e6d8"; } .sui-icon.icon-double-angle-left:before { content: "\e6e4"; } .sui-icon.icon-double-angle-right:before { content: "\e6e5"; } .sui-icon.icon-double-angle-up:before { content: "\e6e6"; } .sui-icon.icon-double-angle-down:before { content: "\e6e7"; } .sui-icon.icon-angle-left:before { content: "\e6e8"; } .sui-icon.icon-angle-right:before { content: "\e6e9"; } .sui-icon.icon-angle-up:before { content: "\e6ea"; } .sui-icon.icon-angle-down:before { content: "\e6eb"; } .sui-icon.icon-desktop:before { content: "\e6ec"; } .sui-icon.icon-laptop:before { content: "\e6ed"; } .sui-icon.icon-tablet:before { content: "\e6ee"; } .sui-icon.icon-mobile:before { content: "\e6ef"; } .sui-icon.icon-chevron-sign-left:before { content: "\e718"; } .sui-icon.icon-chevron-sign-right:before { content: "\e719"; } .sui-icon.icon-chevron-sign-up:before { content: "\e71a"; } .sui-icon.icon-chevron-sign-down:before { content: "\e71b"; } .sui-icon.icon-html5:before { content: "\e71c"; } .sui-icon.icon-rss-sign:before { content: "\e723"; } .sui-icon.icon-bell:before { content: "\e609"; } .sui-icon.icon-play-sign:before { content: "\e724"; } .sui-icon.icon-apple:before { content: "\e756"; } .sui-icon.icon-windows:before { content: "\e757"; } .sui-icon.icon-android:before { content: "\e758"; } .sui-icon.icon-weibo:before { content: "\e766"; } .sui-icon.icon-renren:before { content: "\e767"; } .sui-icon.icon-arrow-fat-up:before { content: "\e62f"; } .sui-icon.icon-arrow-fat-right:before { content: "\e632"; } .sui-icon.icon-arrow-fat-down:before { content: "\e634"; } .sui-icon.icon-arrow-fat-left:before { content: "\e635"; } .datepicker { padding: 4px; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; direction: ltr; } .datepicker-inline { width: 280px; } .datepicker.datepicker-rtl { direction: rtl; } .datepicker.datepicker-rtl table tr td span { float: right; } .datepicker-dropdown { top: 0; left: 0; } .datepicker>div { display: none; } .datepicker.days div.datepicker-days { display: block; } .datepicker.months div.datepicker-months { display: block; } .datepicker.years div.datepicker-years { display: block; } .datepicker table { margin: 0; float: left; border-spacing: 0; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .datepicker td, .datepicker th { text-align: center; width: 38px; height: 28px; line-height: 28px; } .table-striped .datepicker table tr td, .table-striped .datepicker table tr th { background-color: transparent; } .datepicker table tr td.day:hover, .datepicker table tr td.day.focused { background: #eee; cursor: pointer; } .datepicker table tr td.old, .datepicker table tr td.new { color: #999; } .datepicker table tr td.disabled, .datepicker table tr td.disabled:hover { background: 0 0; color: #999; cursor: default; } .datepicker table tr td.today, .datepicker table tr td.today:hover, .datepicker table tr td.today.disabled, .datepicker table tr td.today.disabled:hover { color: #f89406; } .datepicker table tr td.today:hover:hover { color: #f89406; } .datepicker table tr td.today.active:hover { color: #f89406; } .datepicker table tr td.range, .datepicker table tr td.range:hover, .datepicker table tr td.range.disabled, .datepicker table tr td.range.disabled:hover { background: #eee; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .datepicker table tr td.range.today, .datepicker table tr td.range.today:hover, .datepicker table tr td.range.today.disabled, .datepicker table tr td.range.today.disabled:hover { color: #f89406; } .datepicker table tr td.selected, .datepicker table tr td.selected:hover, .datepicker table tr td.selected.disabled, .datepicker table tr td.selected.disabled:hover { background-color: #b3b3b3; border-color: gray; color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); } .datepicker table tr td.active, .datepicker table tr td.active:hover, .datepicker table tr td.active.disabled, .datepicker table tr td.active.disabled:hover { background-color: #28a3ef; border-color: #2861ef; color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); } .datepicker table tr td span { display: block; width: 23%; height: 54px; line-height: 54px; float: left; margin: 1%; cursor: pointer; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .datepicker table tr td span:hover { background: #eee; } .datepicker table tr td span.disabled, .datepicker table tr td span.disabled:hover { background: 0 0; color: #999; cursor: default; } .datepicker table tr td span.active, .datepicker table tr td span.active:hover, .datepicker table tr td span.active.disabled, .datepicker table tr td span.active.disabled:hover { background-color: #28a3ef; border-color: #2861ef; color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); } .datepicker table tr td span.old, .datepicker table tr td span.new { color: #999; } .datepicker th.datepicker-switch { width: 145px; font-size: 18px; font-weight: 600; height: 38px; } .datepicker .prev b, .datepicker .next b { display: block; width: 0; height: 0; line-height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 8px solid #bcbcbc; border-right: 8px solid #bcbcbc; } .datepicker .date-header .prev:hover, .datepicker .date-header .next:hover { background: transparent; } .datepicker .prev b { margin-left: 2px; border-left-color: transparent; } .datepicker .next b { margin-left: 22px; border-right-color: transparent; } .datepicker .week-content .dow { border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; border-left: 0; border-right: 0; margin: 0; color: #999; font-weight: 600; } .datepicker thead tr:first-child th, .datepicker tfoot tr th { cursor: pointer; } .datepicker thead tr:first-child th:hover, .datepicker tfoot tr th:hover { background: #eee; } .datepicker .cw { font-size: 10px; width: 12px; padding: 0 2px 0 5px; vertical-align: middle; } .datepicker thead tr:first-child th.cw { cursor: default; background-color: transparent; } .datepicker.dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; float: left; display: none; min-width: 160px; list-style: none; padding: 0; background-color: #fff; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; *border-right-width: 2px; *border-bottom-width: 2px; color: #333; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; } .datepicker .timepicker-container { float: left; border-left: 1px solid #e5e5e5; } .datepicker.datepicker-small .datepicker-days td, .datepicker.datepicker-small .datepicker-days th { text-align: center; width: 28px; height: 20px; line-height: 20px; } .datepicker.datepicker-small .datepicker-days .next b { margin-left: 2px; } .datepicker.datepicker-small .datepicker-months td { width: 25px; } .datepicker.datepicker-small .datepicker-months td span { height: 30px; line-height: 30px; } .datepicker.datepicker-small .timepicker .picker-con span { height: 24px; } .timepicker { width: 100px; height: 228px; position: relative; padding: 12px 20px; background: #fff; } .timepicker:before, .timepicker:after { display: table; content: ""; line-height: 0; } .timepicker:after { clear: both; } .timepicker .picker-wrap { width: 40px; overflow: hidden; float: left; position: relative; z-index: 1; } .timepicker .picker-wrap:first-child { margin-right: 20px; } .timepicker .picker-btn { display: block; width: 50%; height: 27px; line-height: 25px; margin: 0 auto; text-align: center; position: relative; } .timepicker .picker-btn .arrow, .timepicker .picker-btn .arrow-bg { width: 0; height: 0; display: inline-block; position: absolute; left: 3px; } .timepicker .picker-btn .arrow { border: 7px solid #bbb; } .timepicker .picker-btn .arrow-bg { border: 7px solid #fff; } .timepicker .picker-btn.up .arrow, .timepicker .picker-btn.up .arrow-bg { border-left-color: transparent; border-top-color: transparent; border-right-color: transparent; } .timepicker .picker-btn.up .arrow { top: 0; } .timepicker .picker-btn.up .arrow-bg { top: 1px; } .timepicker .picker-btn.down .arrow, .timepicker .picker-btn.down .arrow-bg { border-left-color: transparent; border-right-color: transparent; border-bottom-color: transparent; } .timepicker .picker-btn.down .arrow { bottom: 0; } .timepicker .picker-btn.down .arrow-bg { bottom: 1px; } .timepicker .picker-con { width: 100%; height: 174px; overflow: hidden; position: relative; } .timepicker .picker-con .picker-innercon { position: absolute; top: 0; left: 0; width: 100%; -webkit-transition: 0.5s; transition: 0.5s; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .timepicker .picker-con span { display: block; height: 35px; width: 100%; text-align: center; line-height: 35px; cursor: pointer; color: #bbb; } .timepicker .picker-con span.current { color: #000; font-size: 16px; } .timepicker .timePicker-split { position: absolute; left: 20px; top: 50%; margin-top: -15px; height: 30px; width: 100px; z-index: 0; } .timepicker .timePicker-split .hour-input, .timepicker .timePicker-split .minute-input { width: 38px; height: 28px; border: 1px solid #ececec; float: left; background: #f9f9f9; } .timepicker .timePicker-split .split-icon { width: 20px; height: 30px; line-height: 30px; float: left; text-align: center; color: #000; } .timepicker.dropdown-menu { position: absolute; top: 0; left: 0; z-index: 1000; float: left; display: none; list-style: none; background-color: #fff; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; *border-right-width: 2px; *border-bottom-width: 2px; color: #333; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; } .sui-introjs-overlay { position: absolute; z-index: 999999; background-color: #000; opacity: 0; -ms-filter: "alpha(Opacity=50)"; filter: alpha(opacity=50); -webkit-transition: all 0.3s ease-out; -moz-transition: all 0.3s ease-out; -ms-transition: all 0.3s ease-out; -o-transition: all 0.3s ease-out; transition: all 0.3s ease-out; } .introjs-fixParent { z-index: auto !important; opacity: 1 !important; } .introjs-showElement, tr.introjs-showElement>td, tr.introjs-showElement>th { z-index: 9999999 !important; } .introjs-relativePosition, tr.introjs-showElement>td, tr.introjs-showElement>th { position: relative; } .sui-introjs-helperLayer { position: absolute; z-index: 9999998; background-color: #fff; background-color: rgba(255, 255, 255, 0.9); border: 1px solid #777; border: 1px solid rgba(0, 0, 0, 0.5); border-radius: 4px; box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4); -webkit-transition: all 0.3s ease-out; -moz-transition: all 0.3s ease-out; -ms-transition: all 0.3s ease-out; -o-transition: all 0.3s ease-out; transition: all 0.3s ease-out; } .introjs-helperNumberLayer { position: absolute; top: -16px; left: -16px; z-index: 9999999999 !important; padding: 2px; font-family: Arial, verdana, tahoma; font-size: 13px; font-weight: 700; color: #fff; text-align: center; text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); background: #28a3ef; background: -webkit-linear-gradient(top, #28a3ef 0, #28a3ef 100%); background: -webkit-gradient( linear, left top, left bottom, color-stop(0, #28a3ef), color-stop(100%, #28a3ef)); background: -moz-linear-gradient(top, #28a3ef 0, #28a3ef 100%); background: -ms-linear-gradient(top, #28a3ef 0, #28a3ef 100%); background: -o-linear-gradient(top, #28a3ef 0, #28a3ef 100%); background: linear-gradient(to bottom, #28a3ef 0, #28a3ef 100%); width: 20px; height: 20px; line-height: 20px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); } .introjs-arrow { border: 5px solid #fff; content: ""; position: absolute; } .introjs-arrow.top { top: -10px; border-color: transparent; border-bottom-color: #fff; } .introjs-arrow.top-right { top: -10px; right: 10px; border-top-color: transparent; border-right-color: transparent; border-bottom-color: #fff; border-left-color: transparent; } .introjs-arrow.top-middle { top: -10px; left: 50%; margin-left: -5px; border-top-color: transparent; border-right-color: transparent; border-bottom-color: #fff; border-left-color: transparent; } .introjs-arrow.right { right: -10px; top: 10px; border-top-color: transparent; border-right-color: transparent; border-bottom-color: transparent; border-left-color: #fff; } .introjs-arrow.bottom { bottom: -10px; border-top-color: #fff; border-right-color: transparent; border-bottom-color: transparent; border-left-color: transparent; } .introjs-arrow.left { left: -10px; top: 10px; border-top-color: transparent; border-right-color: #fff; border-bottom-color: transparent; border-left-color: transparent; } .introjs-content { width: 80%; margin: 20px auto; text-align: center; } .divcont { width: 40%; text-align: center; margin: 0 5%; float: left; } .introjs-tooltip { position: absolute; padding: 10px; background-color: #fff; min-width: 250px; max-width: 300px; border-radius: 3px; box-shadow: 0 1px 10px rgba(0, 0, 0, 0.4); -webkit-transition: opacity 0.1s ease-out; -moz-transition: opacity 0.1s ease-out; -ms-transition: opacity 0.1s ease-out; -o-transition: opacity 0.1s ease-out; transition: opacity 0.1s ease-out; } .introjs-tooltipbuttons { text-align: right; margin-top: 18px; } .introjs-tooltipbuttons a+a { margin-left: 5px; } .introjs-skipbutton { margin-right: 10px; } .introjs-bullets { text-align: center; } .introjs-bullets ul { clear: both; margin: 15px auto 0; padding: 0; display: inline-block; } .introjs-bullets ul li { list-style: none; float: left; margin: 0 2px; } .introjs-bullets ul li a { display: block; width: 6px; height: 6px; background: #ccc; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; text-decoration: none; } .introjs-bullets ul li a:hover { background: #999; } .introjs-bullets ul li a.active { background: #999; } .introjsFloatingElement { position: absolute; height: 0; width: 0; left: 50%; top: 50%; } .sui-carousel { position: relative; margin-bottom: 18px; line-height: 1; } .carousel-inner { overflow: hidden; width: 100%; position: relative; } .carousel-inner>.item { display: none; position: relative; -webkit-transition: 0.6s ease-in-out left; -moz-transition: 0.6s ease-in-out left; -o-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel-inner>.item>img, .carousel-inner>.item>a>img { display: block; line-height: 1; } .carousel-inner>.active, .carousel-inner>.next, .carousel-inner>.prev { display: block; } .carousel-inner>.active { left: 0; } .carousel-inner>.next, .carousel-inner>.prev { position: absolute; top: 0; width: 100%; } .carousel-inner>.next { left: 100%; } .carousel-inner>.prev { left: -100%; } .carousel-inner>.next.left, .carousel-inner>.prev.right { left: 0; } .carousel-inner>.active.left { left: -100%; } .carousel-inner>.active.right { left: 100%; } .carousel-control { position: absolute; top: 40%; left: 15px; width: 40px; height: 40px; margin-top: -20px; font-size: 60px; font-weight: 100; line-height: 30px; color: #fff; text-align: center; background: #222; border: 3px solid #fff; -webkit-border-radius: 23px; -moz-border-radius: 23px; border-radius: 23px; opacity: 0.5; filter: alpha(opacity=50); } .carousel-control.right { left: auto; right: 15px; } .carousel-control:hover, .carousel-control:focus { color: #fff; text-decoration: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-indicators { position: absolute; top: 15px; right: 15px; z-index: 5; margin: 0; list-style: none; } .carousel-indicators li { display: block; float: left; width: 10px; height: 10px; margin-left: 5px; text-indent: -999px; background-color: #ccc; background-color: rgba(255, 255, 255, 0.25); border-radius: 5px; } .carousel-indicators .active { background-color: #fff; } .carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 15px; background: #333; background: rgba(0, 0, 0, 0.75); } .carousel-caption h4, .carousel-caption p { color: #fff; line-height: 18px; } .carousel-caption h4 { margin: 0 0 5px; } .carousel-caption p { margin-bottom: 0; } .sui-suggestion-container { overflow: auto; } .sui-suggestion-container strong { color: #9d261d; } /*!plugins/cssgrids/cssgrids-min.css*/ /*! Pure v0.4.2 Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. https://github.com/yui/pure/blob/master/LICENSE.md */ .yui3-g { /* letter-spacing: -0.31em; */ *letter-spacing: normal; *word-spacing: -0.43em; text-rendering: optimizespeed; font-family: FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif; display: -webkit-flex; -webkit-flex-flow: row wrap; display: -ms-flexbox; -ms-flex-flow: row wrap; } .opera-only :-o-prefocus, .yui3-g { word-spacing: -0.43em; } .yui3-u { display: inline-block; *display: inline; zoom: 1; letter-spacing: normal; word-spacing: normal; vertical-align: top; text-rendering: auto; } .yui3-g [class*="yui3-u"] { font-family: sans-serif; } /*! Pure v0.4.2 Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. https://github.com/yui/pure/blob/master/LICENSE.md */ .yui3-u-1, .yui3-u-1-1, .yui3-u-1-2, .yui3-u-1-3, .yui3-u-2-3, .yui3-u-1-4, .yui3-u-3-4, .yui3-u-1-5, .yui3-u-2-5, .yui3-u-3-5, .yui3-u-4-5, .yui3-u-5-5, .yui3-u-1-6, .yui3-u-5-6, .yui3-u-1-8, .yui3-u-3-8, .yui3-u-5-8, .yui3-u-7-8, .yui3-u-1-12, .yui3-u-5-12, .yui3-u-7-12, .yui3-u-11-12, .yui3-u-1-24, .yui3-u-2-24, .yui3-u-3-24, .yui3-u-4-24, .yui3-u-5-24, .yui3-u-6-24, .yui3-u-7-24, .yui3-u-8-24, .yui3-u-9-24, .yui3-u-10-24, .yui3-u-11-24, .yui3-u-12-24, .yui3-u-13-24, .yui3-u-14-24, .yui3-u-15-24, .yui3-u-16-24, .yui3-u-17-24, .yui3-u-18-24, .yui3-u-19-24, .yui3-u-20-24, .yui3-u-21-24, .yui3-u-22-24, .yui3-u-23-24, .yui3-u-24-24 { display: inline-block; *display: inline; zoom: 1; letter-spacing: normal; word-spacing: normal; vertical-align: top; text-rendering: auto; } .yui3-u-1-24 { width: 4.1667%; *width: 4.1357%; } .yui3-u-1-12, .yui3-u-2-24 { width: 8.3333%; *width: 8.3023%; } .yui3-u-1-8, .yui3-u-3-24 { width: 12.5%; *width: 12.469%; } .yui3-u-1-6, .yui3-u-4-24 { width: 16.6667%; *width: 16.6357%; } .yui3-u-1-5 { width: 20%; *width: 19.969%; } .yui3-u-5-24 { width: 20.8333%; *width: 20.8023%; } .yui3-u-1-4, .yui3-u-6-24 { width: 25%; *width: 24.969%; } .yui3-u-7-24 { width: 29.1667%; *width: 29.1357%; } .yui3-u-1-3, .yui3-u-8-24 { width: 33.3333%; *width: 33.3023%; } .yui3-u-3-8, .yui3-u-9-24 { width: 37.5%; *width: 37.469%; } .yui3-u-2-5 { width: 40%; *width: 39.969%; } .yui3-u-5-12, .yui3-u-10-24 { width: 41.6667%; *width: 41.6357%; } .yui3-u-11-24 { width: 45.8333%; *width: 45.8023%; } .yui3-u-1-2, .yui3-u-12-24 { width: 50%; *width: 49.969%; } .yui3-u-13-24 { width: 54.1667%; *width: 54.1357%; } .yui3-u-7-12, .yui3-u-14-24 { width: 58.3333%; *width: 58.3023%; } .yui3-u-3-5 { width: 60%; *width: 59.969%; } .yui3-u-5-8, .yui3-u-15-24 { width: 62.5%; *width: 62.469%; } .yui3-u-2-3, .yui3-u-16-24 { width: 66.6667%; *width: 66.6357%; } .yui3-u-17-24 { width: 70.8333%; *width: 70.8023%; } .yui3-u-3-4, .yui3-u-18-24 { width: 75%; *width: 74.969%; } .yui3-u-19-24 { width: 79.1667%; *width: 79.1357%; } .yui3-u-4-5 { width: 80%; *width: 79.969%; } .yui3-u-5-6, .yui3-u-20-24 { width: 83.3333%; *width: 83.3023%; } .yui3-u-7-8, .yui3-u-21-24 { width: 87.5%; *width: 87.469%; } .yui3-u-11-12, .yui3-u-22-24 { width: 91.6667%; *width: 91.6357%; } .yui3-u-23-24 { width: 95.8333%; *width: 95.8023%; } .yui3-u-1, .yui3-u-1-1, .yui3-u-5-5, .yui3-u-24-24 { width: 100%; } #yui3-css-stamp.cssgrids { display: none; } /*新样式*/ .all-sorts-list { position: relative; } .sort { top: 56px; } .index-back { background-color: #f4f4f4; } .header { background-color: #fff; } .index-back .py-container { background-color: #fff; } .footer .py-container, .top .py-container { background-color: transparent; } .banner-block { margin-top: 10px; } .index-nav { margin: 0 auto; } .index-back .logo-bd { margin: 52px auto; } .index-back .searchArea { position: absolute; right: 0; width: 690px; left: 50%; right: auto; margin-left: -345px; } .index-back .searchArea .search input { width: 460px; height: 22px; } .search-ul { padding-top: 6px; } .search-ul a { margin: 0 5px; } .search-ul a:nth-child(1) { margin-left: 0; } .index-back .carousel-control { background: transparent; } .search-bar-cart { width: 130px; height: 34px; background-color: #fff; text-align: center; line-height: 34px; border-color: #eee; overflow: hidden; position: absolute; z-index: 1; right: 0; top: 35px; border: 1px solid #e3e4e5; } .cart-num { position: absolute; top: 1px; left: 29px; right: auto; display: inline-block; padding: 1px 3px; font-size: 12px; line-height: 12px; color: #fff; background-color: #e1251b; border-radius: 7px; min-width: 12px; text-align: center; } .header-right { position: absolute; right: 0; top: 10px; } .search-bar-cart .tab-ico { background: url(../img/cart.png) no-repeat center; display: inline-block; float: left; background-size: 25px; background-position: 10px 5px; } .title h3 { padding-left: 10px; font-size: 18px; } .floor-channel-item-h3 { font-size: 20px; font-weight: 700; color: #333; } .floor-channel-item-p { font-size: 14px; color: #999; margin-left: 5px; } .floor-channel-block { width: 660px; letter-spacing: 0em; } .floor-channel-item { width: 46%; float: left; padding: 20px 0 20px 20px; } .floor-channel-item .floor-channel-img-item:nth-last-of-type(1) { margin-right: 0; } .floor-channel-img-item { margin-right: 58px; } .floor-channel-wapper { overflow: hidden; } .login .tab-content.tab-wraped, .login .sui-nav.nav-tabs.tab-wraped>li>a, .login .sui-nav.nav-tabs.tab-wraped { border: 0; } .login .tab-content.tab-wraped { padding-top: 0; } .login .sui-nav.nav-tabs.tab-wraped>li { width: 100%; } .login .loginform { padding: 30px 20px; } .cart_icon a { line-height: 32px; display: inline-block; width: 32px; border: 1px solid #eee; font-size: 16px; text-align: center; float: left; color: #666; cursor: pointer; } .cart_icon a:hover { text-decoration: none; color: #666; } .cart_icon input { display: inline-block; width: 60px; line-height: 32px; border: 1px solid #eee; border-right: 0; border-left: 0; font-size: 14px; float: left; text-align: center; padding: 0 5px; } .cart_icon input:focus { outline: none; } .timmer { color: #333; font-weight: 700 } .timmer .timmer__unit { position: relative } .timmer .timmer__unit:after { content: ":" } .timmer .timmer__unit:last-child:after { content: "" } .seckill-countdown { position: relative; float: left; width: 190px; height: 100%; color: #fff; background-color: #e83632; background-image: url(../img/ms.png); background-size: contain; background-position: 50%; background-repeat: no-repeat; padding: 14px 0; } @media screen and (-moz-min-device-pixel-ratio:2), screen and (-webkit-min-device-pixel-ratio:2), screen and (min--moz-device-pixel-ratio:2), screen and (min-device-pixel-ratio:2), screen and (min-resolution:2dppx), screen and (min-resolution:192dpi) { .seckill-countdown { background-image: url(../img/ms.png); } } .seckill-countdown:hover { color: #fff } .seckill-countdown .countdown-title { width: 100%; text-align: center; font-size: 30px; font-weight: 700; margin-top: 31px } .seckill-countdown .countdown-fallback { width: 100%; text-align: center; font-size: 20px; font-weight: 700; margin-top: 110px } .seckill-countdown .countdown-desc { margin-top: 90px; font-size: 14px; text-align: center } .seckill-countdown .countdown-desc strong { font-size: 18px; padding-right: 2px; vertical-align: middle; display: inline-block; margin-top: -1px } .seckill-countdown .countdown-main { margin-left: auto; margin-right: auto; width: 130px; height: 30px; margin-top: 10px; display: block } .seckill-countdown .countdown-main .timmer__unit { position: relative; float: left; width: 30px; height: 30px; text-align: center; background-color: #2f3430; margin-right: 20px; color: white; font-size: 20px } .seckill-countdown .countdown-main .timmer__unit:after { content: ":"; display: block; position: absolute; right: -20px; font-weight: bolder; font-size: 18px; width: 20px; height: 100%; top: 0 } .o2_ie8 .seckill-countdown .countdown-main .timmer__unit:after { right: -25px } .seckill-countdown .countdown-main .timmer__unit--second { margin-right: 0 } .seckill-countdown .countdown-main .timmer__unit--second:after { content: none } .seckill-countdown .countdown-main .cd_day { display: none } .lazyimg { position: relative; overflow: hidden; background: #eee; -webkit-transition: background .2s linear; transition: background .2s linear } .lazyimg_img { width: 100%; height: 100%; opacity: 0; -webkit-transition: opacity .2s linear; transition: opacity .2s linear; -webkit-backface-visibility: hidden } .lazyimg_loaded { -webkit-transition: background .2s linear, opacity .2s linear!important; transition: background .2s linear, opacity .2s linear!important; background: transparent } .lazyimg_loaded .lazyimg_img { opacity: 1 } .seckill-list .slider_control_next { right: 1px } .seckill-list .seckill-item:after { content: ""; display: block; position: absolute; top: 50%; right: 0; width: 1px; height: 200px; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); background: -webkit-gradient(linear, left top, left bottom, from(white), color-stop(#eeeeee), to(white)); background: linear-gradient(180deg, white, #eeeeee, white) } .seckill-list .seckill-item__image { -webkit-transition: opacity .2s ease; transition: opacity .2s ease } .seckill-list .seckill-item__name { font-size: 12px; font-weight: 400; color: #333; -webkit-transition: color .2s ease; transition: color .2s ease; overflow: hidden; text-overflow: ellipsis; white-space: nowrap } .seckill-list .seckill-item__price { border: 1px solid #e1251b; position: relative; -webkit-box-sizing: border-box; box-sizing: border-box; line-height: 24px; overflow: hidden; background-color: #e1251b } .seckill-list .seckill-item__price .price-miaosha { width: 92px; height: 100%; text-align: center; color: #fff; font-size: 16px; font-weight: 700; line-height: 22px; float: left } .seckill-list .seckill-item__price .price-miaosha i { font-size: 12px; font-weight: 400; padding-right: 2px } .seckill-list .seckill-item__price .price-miaosha:before { content: " "; width: 0; height: 0; border-color: transparent white transparent transparent; border-style: solid; border-width: 22px 8px 0 0; position: absolute; top: 0; left: 84px } .o2_ie8 .seckill-list .seckill-item__price .price-miaosha:before { content: normal } .seckill-list .seckill-item__price .price-origin { height: 100%; width: 66px; float: right; background: #fff; text-align: center; color: #999; font-size: 12px; line-height: 22px; -webkit-box-sizing: border-box; box-sizing: border-box; text-decoration: line-through; vertical-align: top } .seckill-list .seckill-item__price .sk_item_price_isnew { text-decoration: none } .seckill-list .seckill-item:hover .seckill-item__image { opacity: .8 } .seckill-list .seckill-item:hover .seckill-item__name { color: #ea4a36 } .seckill-brand__slider { width: 100%; height: 100% } .seckill-brand__slider .slider_indicators { bottom: 16px } .seckill-brand__slider .slider_indicators__btn { background: #c0c0c0; width: 6px; height: 6px; margin: 4px } .seckill-brand .brand-item .item-image { -webkit-transition: opacity .2s ease; transition: opacity .2s ease } .seckill-brand .brand-item .item-info { background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, .5)), to(rgba(220, 224, 236, .5))); background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(220, 224, 236, .5)); text-align: center; font-size: 14px; position: relative } .seckill-brand .brand-item .item-info-title { color: #666 } .seckill-brand .brand-item .item-info-promo { color: #333; font-weight: 700 } .seckill-brand .brand-item .item-info-logo { position: absolute; top: -24px; width: 40px; height: 20px; background: #fff; border-radius: 13px; left: 50%; padding: 1px 5px; -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%); -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, .1); box-shadow: 0 2px 4px rgba(0, 0, 0, .1) } .seckill-brand .brand-item .item-info-action { color: #e1251b; border-radius: 14px; width: 82px; height: 24px; -webkit-box-sizing: border-box; box-sizing: border-box; text-align: center; display: inline-block; line-height: 22px; font-weight: 700; padding-left: 4px; font-size: 12px; border: 1px solid #e1251b; margin-top: 4px; -webkit-transition: background-color .2s ease; transition: background-color .2s ease } .seckill-brand .brand-item .item-info-action .iconfont { margin-left: -2px; font-size: 16px; font-weight: 400; vertical-align: middle; display: inline-block; margin-top: -2px } .seckill-brand .brand-item .item-info-action:hover { color: white; border-color: transparent; background-color: #ea4a36 } .seckill-brand .brand-item:hover .item-image { opacity: .8 } #J_seckill { outline: none } .seckill__inner { background: #fff } .item-info p { margin-bottom: 0; } .skeleton-wrapper { position: relative; font-size: 0; line-height: 0; overflow: hidden } .skeleton-wrapper:before { position: absolute; width: 100%; height: 100%; background: -webkit-gradient(linear, right top, left top, from(rgba(255, 255, 255, 0)), color-stop(rgba(255, 255, 255, .5)), to(rgba(255, 255, 255, 0))); background: linear-gradient(270deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); left: 0; top: 0; z-index: 20; -webkit-animation: skeletonLoading 2s ease-in-out infinite; animation: skeletonLoading 2s ease-in-out infinite; content: "" } @-webkit-keyframes skeletonLoading { 0% { -webkit-transform: translate(-100%); transform: translate(-100%) } 80%, to { -webkit-transform: translate(100%); transform: translate(100%) } } @keyframes skeletonLoading { 0% { -webkit-transform: translate(-100%); transform: translate(-100%) } 80%, to { -webkit-transform: translate(100%); transform: translate(100%) } } .skeleton-box { float: left; height: 340px; margin: 0 10px 0 0 } .o2_mini .skeleton-box { height: 305px } .skeleton-last { margin-right: 0!important } .skeleton-header { height: 35px; margin: 15px 15px 10px } .skeleton-headerBig { width: 210px; height: 45px; margin: 0 auto 20px } .skeleton-block { background-color: #fff!important; border-color: #fff!important } .skeleton-element { background: none!important; background-color: #f4f4f4!important; border-color: #f4f4f4!important } .skeleton-elementDark { background: none!important; background-color: #eee!important; border-color: #eee!important } @-webkit-keyframes skeletonShow { 0% { opacity: 0 } to { opacity: 1 } } @keyframes skeletonShow { 0% { opacity: 0 } to { opacity: 1 } } * { margin: 0; padding: 0 } em, i { font-style: normal } li { list-style: none } img { border: 0; vertical-align: middle } button { cursor: pointer } a { color: #666; text-decoration: none } a:hover { color: #ea4a36 } button, input { font-family: Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif } body { -webkit-font-smoothing: antialiased; background-color: #fff; font: 12px/1.5 Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif; color: #666 } .hide, .none { display: none } .clearfix:after { visibility: hidden; clear: both; display: block; content: "."; height: 0 } .clearfix { *zoom: 1 } .mod_price { font-size: 14px; color: #e33333 } .mod_price i { margin-right: 3px; font-family: arial, sans-serif; font-weight: 400; font-size: 12px } .o2_wide { min-width: 1190px } .o2_mini { min-width: 990px } .grid_c1 { margin: 0 auto; width: 1190px } .o2_mini .grid_c1 { width: 990px } .grid_c2 { width: 590px } .o2_mini .grid_c2 { width: 490px } .grid_c4 { width: 290px } .o2_mini .grid_c4 { width: 240px } .mod_ver { display: inline-block; width: 0; height: 100%; vertical-align: middle; font-size: 0 } .mod_lazyload { width: 100%; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/2ff7a1a01305c5081d75f15fa6f9b223.gif) } .loading, .mod_lazyload, .mod_loading { background-repeat: no-repeat; background-position: 50% 50% } .loading, .mod_loading { background-image: url(data:image/gif;base64,R0lGODlhGQAZAOZgAP///56env39/aWlpf7+/rS0tPn5+cLCwuLi4vz8/K6urvT09MbGxsTExM3Nzbm5ubCwsOXl5cjIyKSkpNXV1aOjo97e3vv7+8/Pz8nJyaGhobu7u/r6+tzc3K2traurq9ra2szMzLq6us7Ozujo6MXFxebm5u7u7uTk5P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YBEBHcjIDBrPugTK07oA1tef2tuQ3d6D2eHfBOTiBObnYMPg2wAJxOcXBurkKS8c5wQ4EQvuyAToGHGjCsBHEzY4GeHgAI0CGZ54G2CjyJIQQtwFAgA7) } .mod_loading_placeholder { background: #eee } @media only screen and (-o-min-device-pixel-ratio:3/2), only screen and (-webkit-min-device-pixel-ratio:1.5), only screen and (min--moz-device-pixel-ratio:1.5), only screen and (min-device-pixel-ratio:1.5) { .mod_lazyload { background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/7870e925de8667d3146305d56e14cc2e.gif); background-size: 90px 90px } .loading, .mod_loading { background-image: url(data:image/gif;base64,R0lGODlhMgAyAOZiAP///56env7+/v39/fz8/Nvb27u7u/n5+Z+fn6CgoNXV1e7u7vT09K2trfj4+Pv7+6Wlpfr6+uHh4ff39+jo6KmpqeLi4vb29qurq6ysrKGhoaioqOPj49fX19TU1PX19fLy8qKioszMzLOzs9zc3N/f37GxsbS0tMLCwqOjo8rKyqSkpLm5udjY2M/Pz7+/v6ampsjIyO/v79HR0bi4uLq6uqqqquTk5PHx8enp6dLS0sTExMDAwPPz87CwsOrq6sbGxq6ursXFxdra2sPDw+zs7ODg4NnZ2ebm5sfHx+Xl5d7e3q+vr7Kysre3t+fn58nJycHBwc7OzsvLy/Dw8La2tuvr69bW1u3t7b29vaenp7W1tby8vN3d3b6+vtDQ0NPT083NzQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCB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kLjFhOh0FNxPEhgRAyMgVOgzEBzlDBSUcTz3fgxdN4zAdq/FiAiBIFFYyDIYRA3EM2Qtv+QgNAEEFBIMJAjExsIEsQYeElyJ8uOAgAqsHJpCFsIARE4EDER7gs7SjooSSrKQRWFmIw7gWMFsJiEZzEAaDOYntHACgkAdkEBAGjdlTzAZkF5e2AiCg6iAS5KR+szqIBbIZWokVFTMWgaxzYacSQjYirVirKtGQiXA7FYDdQSXosrJ7V+83vn7/jg1cdzDhSwL6Hr5kN+LiQnwdPx5ENfFkQ1W5Xh6U2fDlypY3C9qpeTMAnp4nDyAwM/ViABFYS54c4cADAq4PP5jgAJpoMdMYXPAo+sACGSAu5A4MQkmOIiBmE35wo4CRGwuaEn7i4ssVEhS0652whEgUICJ05JBe8oQYI4VkcADzoskJJ1mIfMHhFoGYWQloUEsoFYzSRBVRcCBeUAg06EkKK0CgxQYZCHHDgktNYUAQMIQQghY+eCEFBxgFAgA7); background-size: 25px 25px } } .dollar_txt { font-size: 12px } @font-face { font-family: impact; src: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/a07974d9a45376b8441d90005764beb0.eot); src: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/a07974d9a45376b8441d90005764beb0.eot#iefix) format("embedded-opentype"), url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/b07c9855bd807ccc9d825cb0392c6ef8.woff) format("woff"), url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/1a0d82dfb49fff2d2a291d3dbce6c95c.ttf) format("truetype"), url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/d1e37bdd079d3151cc0edcc71d2c8f0f.svg) format("svg"); font-weight: 400; font-style: normal } @font-face { font-family: fzzzh; src: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/e196b453958c522fff82366b81efcc00.eot); src: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/e196b453958c522fff82366b81efcc00.eot#iefix) format("embedded-opentype"), url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/f7001cef4a64d1b77d0cd4dfc670cc35.woff) format("woff"), url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/cfd1cee7b0470e6f92cd4a17c832a147.ttf) format("truetype"), url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/0027e98d6619e6dac2215d5fafe7abc0.svg) format("svg"); font-weight: 400; font-style: normal } @font-face { font-family: iconfont; src: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/ba43574760fe93a35fca3c6f9b9e73f4.eot); src: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/ba43574760fe93a35fca3c6f9b9e73f4.eot#iefix) format("embedded-opentype"), url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/a84f5777e97992c6fb6d423c003f187b.woff) format("woff"), url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/43f6b5fd284d120fd59582a14e3e0844.ttf) format("truetype"), url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/7e3a7b715cf938242acf0fe64a0e1817.svg#iconfont) format("svg") } .iconfont { font-family: iconfont, sans-serif; font-style: normal; -webkit-text-stroke-width: .2px; -moz-osx-font-smoothing: grayscale } .index { background-color: #f4f4f4 } .slider_indicators { position: absolute; left: 50%; font-size: 0; text-align: center } .slider_indicators_btn { position: relative; display: inline-block; width: 4px; height: 4px; margin-right: 4px; border-radius: 50%; background: #999; -webkit-transition: background .2s ease; transition: background .2s ease } .slider_indicators_btn_last { margin-right: 0 } .slider_indicators_btn_active { background: #e1251b } .slider_item { height: 100%; min-height: 1px } .slider_control { position: absolute; top: 50%; border-radius: 0; width: 25px; height: 35px; line-height: 35px; background-color: #d9d9d9; background-color: rgba(0, 0, 0, .15); margin-top: -20px; font-size: 20px; z-index: 2; border: none; outline: none; -webkit-transition: background-color .2s ease; transition: background-color .2s ease } .slider_control i { position: relative; display: block; width: 100%; height: 100%; color: #fff; color: rgba(255, 255, 255, .8); -webkit-transition: color .2s ease; transition: color .2s ease } .slider_control:hover { color: #fff; background-color: #999; background-color: rgba(0, 0, 0, .4) } .slider_control_prev { left: 0; border-top-right-radius: 18px; border-bottom-right-radius: 18px } .slider_control_prev i { left: -3px } .slider_control_next { right: 0; border-top-left-radius: 18px; border-bottom-left-radius: 18px } .slider_control_next i { right: -3px } .o2_ie8 .slider_control_next i { right: 0 } .chn, .corechn1, .corechn2 { height: 480px } .o2_mini .corechn1, .o2_mini .corechn2 { height: 375px } .special { height: 450px } .live { height: 520px } .o2_mini .chn, .o2_mini .corechn1, .o2_mini .corechn2 { height: 400px } .o2_mini .special { height: 375px } .o2_mini .live { height: 432px } #J_feeds:focus { outline: 0 } .accessibility { position: absolute; top: -200px; background: #fff; padding: 20px; z-index: 100 } .accessibility_focus { top: 0 } .accessibility a { display: block } #J_channels:focus, #J_core1:focus, #J_core2:focus, #J_feeds:focus, #J_niceGoods:focus, #J_seckill:focus { outline: 0 } .fl { float: left } .fr { float: right } .al { text-align: left } .ac { text-align: center } .ar { text-align: right } .clear, .clr { display: block; clear: both; height: 0; line-height: 0; font-size: 0 } .cart_bd, .cart_ft, .cart_head, .clear, .clr, .m, .mb, .mc, .mt, .p-img, .p-market, .p-name, .p-price, .sm { overflow: hidden } .w { margin: auto; width: 1190px } .o2_mini .w { width: 990px } .ci-left, .ci-right, .dd-spacer { display: none!important } .loading { display: block; height: 70px } .img-error { background: url(//misc.360buyimg.com/lib/skin/e/i/error-jd.gif) no-repeat 50% 50% } #header { background: #fff; border-bottom: 1px solid #eee } #header .w { position: relative; z-index: 11; height: 140px } #header .style-red { color: #e1251b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis } #logo { z-index: 2; left: 0; top: 10px; width: 190px; height: 120px; background-color: #fff } #logo, .logo_tit { position: absolute } .logo_tit { width: 100%; height: 100% } .logo_tit_lk { background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/sprite/header/sprite.png); background-position: 0 0; background-repeat: no-repeat; overflow: hidden; display: block; width: 190px; height: 120px; font-size: 0 } .logo_subtit { display: none } .logo_extend { display: none; position: absolute; width: 100%; height: 100% } .search-m { position: relative; z-index: 1; height: 60px } .search-m .search_logo { display: none } .search-m .form { position: absolute; left: 260px; top: 25px; width: 546px; height: 32px; border: 2px solid #e2231a; background: #fff } .search-m .search_bg { color: #989898 } .search-m .button, .search-m .search_bg, .search-m .text { position: absolute; top: 0; outline: none } .search-m .text { color: #333; background-color: #f4f4f4 } .search-m .search_bg, .search-m .text { left: 0; padding: 2px 44px 2px 17px; width: 425px; height: 26px; border: 1px solid transparent; line-height: 26px; font-size: 12px } .search-m .button { border-radius: 0; right: 0; width: 58px; height: 32px; line-height: 32px; border: none; background-color: #e1251b; font-size: 20px; font-weight: 700; color: #fff; -webkit-transition: background .2s ease; transition: background .2s ease } .search-m .button:hover { background-color: #ea4a36 } .photo-search-btn { position: absolute; right: 75px; top: 10px; width: 19px; height: 15px; overflow: hidden } .photo-search-btn .upload-bg { display: block; width: 20px; height: 20px; line-height: 14px; font-size: 20px; text-align: center; font-family: iconfont, sans-serif; color: #9f9f9f; cursor: pointer } .photo-search-btn .upload-trigger { position: absolute; right: 0; top: 0; z-index: 3; width: 500px; height: 500px; cursor: pointer; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0 } .photo-search-btn .photo-search-login { display: inline-block; width: 100%; height: 100%; position: absolute; top: 0; left: 0 } .photo-search-btn:hover .upload-bg { color: #ea4a36 } .z-have-photo-search .text { width: 339px; padding-right: 35px } .z-have-photo-search .photo-search-btn { display: block } #photo-search-dropdown { position: absolute; z-index: 1; top: 60px; left: 270px; width: 398px; border: 1px solid #ccc; border-top: none; background: #fff; -webkit-box-shadow: 1px 2px 1px rgba(0, 0, 0, .2); box-shadow: 1px 2px 1px rgba(0, 0, 0, .2) } .root61 #photo-search-dropdown { left: 320px; width: 498px } .photo-search-tip { padding: 12px; text-align: center } .photo-search-tip .tip-inner { display: inline-block; *display: inline; *zoom: 1 } .photo-search-tip .tip-icon { display: inline-block; width: 53px; height: 60px; margin-right: 25px; vertical-align: middle; background: url(//misc.360buyimg.com/product/search/1.0.4/css/i/sprite-photo-search.png) no-repeat 0 -20px } .photo-search-tip .tip-main { display: inline-block; *display: inline; *zoom: 1; text-align: left; vertical-align: middle; font-family: Microsoft YaHei, sans-serif } .photo-search-tip .tip-title { font-weight: 700 } .photo-search-tip .tip-error .tip-icon { width: 50px; height: 64px; background-position: -60px -10px } .search-fix { position: fixed; z-index: 100; left: 0; top: 0; width: 100%; border-bottom: 2px solid #f10214; background-color: #fff; -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, .2); box-shadow: 2px 2px 2px rgba(0, 0, 0, .2) } .cssanimations .search-fix { -webkit-animation: searchTop .5s ease-in-out; animation: searchTop .5s ease-in-out } @-webkit-keyframes searchTop { 0% { top: -50px } to { top: 0 } } @keyframes searchTop { 0% { top: -50px } to { top: 0 } } .search-fix .search-m { margin: auto; width: 1190px; height: 50px } .search-fix .search-m .form { top: 8px } .search-fix .search-m .search_logo { display: block; position: absolute; left: 0; top: 4px; width: 125px; height: 40px } .search-fix .search-m .search_logo_lk { background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/sprite/header/sprite.png); background-position: 0 -120px; background-repeat: no-repeat; overflow: hidden; display: block; width: 125px; height: 40px; text-indent: -999px } .search-fix .search-m #shelper { top: 40px } .o2_mini .search-fix .search-m { width: 990px } .o2_mini .search-m .form { width: 486px; left: 220px } .o2_mini .search-m .search_bg, .o2_mini .search-m .text { width: 367px } @media only screen and (-o-min-device-pixel-ratio:3/2), only screen and (-webkit-min-device-pixel-ratio:1.5), only screen and (min--moz-device-pixel-ratio:1.5), only screen and (min-device-pixel-ratio:1.5) { .logo_tit_lk, .search-fix .search-m .search_logo_lk { background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/sprite/header/sprite@2x.png); background-repeat: no-repeat; background-size: 190px 160px } .search-fix .search-m .search_logo_lk { outline: none } } #treasure { position: absolute; right: 0; bottom: 10px; width: 190px; height: 120px } #treasure img { display: block; width: 100%; height: 100% } .o2_mini #treasure { display: none } #hotwords { overflow: hidden; position: absolute; left: 260px; top: 65px; width: 550px; height: 20px; line-height: 20px } #hotwords a { float: left; margin-right: 10px; white-space: nowrap; color: #999 } #hotwords a:hover { color: #ea4a36 } #hotwords a.red { color: #f10215 } .o2_mini #hotwords { left: 220px; width: 450px } #navitems { overflow: hidden; position: absolute; left: 203px; bottom: 0; height: 40px; padding-top: 20px } #navitems .spacer, #navitems li, #navitems ul { float: left } #navitems li { margin-left: 1px } #navitems a { position: relative; display: block; height: 40px; line-height: 40px; font-size: 15px; color: #333; margin: 0 11px; -webkit-transition: color .2s ease; transition: color .2s ease } #navitems a:hover { color: #ea4a36 } #navitems .spacer { overflow: hidden; width: 0; height: 13px } #navitems .promo, #navitems .symbol { display: none } #navitems .navitems-tag { position: absolute; top: -5px; left: 100%; margin-left: -13px; width: 28px; height: 15px } #navitems .navitems-rolling { overflow: hidden; margin: 0 } #navitems .navitems-rolling span { display: block; text-align: center; -webkit-animation: navRolling1 4.4s ease infinite; animation: navRolling1 4.4s ease infinite } #navitems .navitems-rolling_img { display: block; height: 22px; margin: 9px auto; -webkit-animation: navRolling2 4.4s ease infinite; animation: navRolling2 4.4s ease infinite } @-webkit-keyframes navRolling1 { 0%, 45%, to { -webkit-transform: translate(0); transform: translate(0); opacity: 1 } 50%, 51% { -webkit-transform: translateY(-40px); transform: translateY(-40px); opacity: 1 } 52% { -webkit-transform: translateY(-40px); transform: translateY(-40px); opacity: 0 } 53% { -webkit-transform: translateY(40px); transform: translateY(40px); opacity: 0 } 54%, 95% { -webkit-transform: translateY(40px); transform: translateY(40px); opacity: 1 } } @keyframes navRolling1 { 0%, 45%, to { -webkit-transform: translate(0); transform: translate(0); opacity: 1 } 50%, 51% { -webkit-transform: translateY(-40px); transform: translateY(-40px); opacity: 1 } 52% { -webkit-transform: translateY(-40px); transform: translateY(-40px); opacity: 0 } 53% { -webkit-transform: translateY(40px); transform: translateY(40px); opacity: 0 } 54%, 95% { -webkit-transform: translateY(40px); transform: translateY(40px); opacity: 1 } } @-webkit-keyframes navRolling2 { 0%, 45% { -webkit-transform: translate(0); transform: translate(0) } 50%, 95% { -webkit-transform: translateY(-40px); transform: translateY(-40px) } to { -webkit-transform: translateY(-80px); transform: translateY(-80px) } } @keyframes navRolling2 { 0%, 45% { -webkit-transform: translate(0); transform: translate(0) } 50%, 95% { -webkit-transform: translateY(-40px); transform: translateY(-40px) } to { -webkit-transform: translateY(-80px); transform: translateY(-80px) } } #navitems-group1 .fore1 a, #navitems-group1 .fore2 a { font-weight: 700; color: #e1251b } #navitems-group1 .fore1 a:hover, #navitems-group1 .fore2 a:hover { color: #ea4a36 } .o2_ie7 #navitems .spacer, .o2_ie8 #navitems .spacer { margin-top: 16px } #shelper { overflow: hidden; position: absolute; z-index: 1; left: 260px; top: 59px; width: 398px; border: 1px solid #ccc; background-color: #fff; -webkit-box-shadow: 1px 2px 1px rgba(0, 0, 0, .2); box-shadow: 1px 2px 1px rgba(0, 0, 0, .2) } .o2_mini #shelper { left: 220px; width: 428px } #shelper li { overflow: hidden; padding: 1px 6px; line-height: 24px; cursor: pointer } #shelper li.fore1 { width: 100%; padding: 0; border-bottom: 1px solid #eee } #shelper .dropdown-simg { display: inline-block; margin-right: 5px; vertical-align: text-bottom } #shelper li.fore1 .search-item { width: 250px } #shelper li.fore1 .item1 { float: none; width: auto; padding: 1px 5px; overflow: hidden } #shelper li.fore1 div.fore1 { padding: 0 6px } #shelper li.fore1 strong { color: #c00 } #shelper li.fore1 .fore1 strong { color: #333 } #shelper li.fore1 .item2 { float: none; width: auto; padding: 1px 6px 1px 20px } #shelper li.fore1 .item3 { float: none; width: auto; color: #9c9a9c } #shelper li.fore1 span { float: left } #shelper li.fore1 div:hover { background: #f5f5f5!important } #shelper li:hover { background: #f5f5f5!important } #shelper .search-item { float: left; width: 190px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden } #shelper .search-count { overflow: hidden; color: #aaa; text-align: right; *zoom: 1 } #shelper .close { border-top: 1px solid #efefef; text-align: right } #shelper .item3 { cursor: default } #shelper .item3 a { float: left; margin-right: 10px; white-space: nowrap } #shelper li.close:hover, #shelper li.fore1:hover { background: none } .root61 #shelper { width: 488px } .root61 #shelper li.brand-search .bs-item .name { width: 380px } .search-fix .search-m #shelper.search-helper, .search-m #shelper.search-helper { left: 0; top: 35px } #settleup { position: absolute; right: 230px; top: 25px; z-index: 21 } #settleup:hover .cw-icon { border-color: #ea4a36 } .search-fix #settleup { top: 8px } #settleup .cw-icon { width: 130px; height: 34px; background-color: #fff; text-align: center; line-height: 34px; border-color: #eee } #settleup .cw-icon .iconfont { margin-right: 13px; font-size: 16px } #settleup .cw-icon .iconfont, #settleup .cw-icon a { color: #e1251b; -webkit-transition: color .2s ease; transition: color .2s ease } #settleup:hover .cw-icon .iconfont, #settleup:hover .cw-icon a { color: #ea4a36 } #settleup .ci-count { position: absolute; top: 1px; left: 29px; right: auto; display: inline-block; padding: 1px 3px; font-size: 12px; line-height: 12px; color: #fff; background-color: #e1251b; border-radius: 7px; min-width: 12px; text-align: center } #settleup .dropdown-layer { top: 36px; right: 0; width: 308px; border-color: #ea4a36 } .o2_mini #settleup { right: 130px } .cart_empty { height: 49px; margin: auto; padding: 10px 0; text-align: center; line-height: 49px; overflow: hidden; color: #999 } .cart_empty_img { display: inline-block; *display: inline; *zoom: 1; vertical-align: middle; width: 56px; height: 49px; background-image: url(//img11.360buyimg.com/uba/jfs/t3571/299/131233948/1117/a1196554/58004d6dN2927f0f7.png) } .cart_pop { position: relative; z-index: 2; width: 100%; background: #fff } .cart_hd { height: 25px; padding: 6px 8px; line-height: 25px } .cart_bd { background: #fff; height: auto!important; height: 344px; max-height: 344px; overflow-y: auto } .cart_ft { padding: 8px; background: #f5f5f5; text-align: right; _height: 45px; _padding-top: 15px; _padding-bottom: 0 } .cart_num { font-weight: 700 } .cart_ft_info { float: left; line-height: 29px } .cart_ft_lk { float: right; height: 29px; padding: 0 10px; background: #e4393c; color: #fff; text-align: center; font-weight: 700; line-height: 29px; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px } .cart_ft_lk:hover { color: #fff } .cart_giftlist, .cart_manjianlist, .cart_manzenglist, .cart_singlelist, .cart_suitlist { margin-top: -1px } .cart_item { line-height: 17px; vertical-align: bottom; *zoom: 1; background: #fff } .cart_item:hover { background: #f5f5f5 } .cart_item_mz { color: #999 } .cart_item_mz:hover { background: #fff } .cart_item_hd, .cart_item_inner { padding: 8px 10px; border-top: 1px dotted #ccc; overflow: hidden } .cart_item_hd_info { float: left } .cart_item_hd_price { float: right; margin-left: 10px } .cart_item_hd .cart_tag { float: none } .cart_gift { height: 17px; clear: both; overflow: hidden; text-overflow: ellipsis; white-space: nowrap } .cart_gift_lk { color: #999 } .cart_gift_jq { color: #999; clear: both } .cart_img { float: left; width: 50px; height: 50px; border: 1px solid #eee; padding: 0; margin-right: 10px; font-size: 0; overflow: hidden } .cart_img_lk { display: block } .cart_name { float: left; width: 120px; height: 52px; overflow: hidden } .cart_info { float: right; text-align: right; width: 85px } .cart_delete, .cart_price, .cart_tag { float: right; clear: both; max-width: 85px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden } .cart_tag { display: inline-block; margin-bottom: 2px; color: #fff; padding: 0 2px; line-height: 16px; vertical-align: top } .cart_tag_orange { background: #f60 } .cart_tag_green { background: #3b0 } .cart_price { font-weight: 700 } .cart_item_hd { overflow: hidden } .cart_suitlist .cart_item_hd { background: #d3ebff } .cart_manjianlist .cart_item_hd, .cart_manjianlist .cart_item_hd:hover, .cart_manzenglist .cart_item_hd, .cart_manzenglist .cart_item_hd:hover { background: #bffab1 } .cart_suit_tag { font-weight: 700 } .cart_suit_virtual, .cart_suit_virtual .cart_item_hd, .cart_suit_virtual .cart_item_hd:hover, .cart_suit_virtual .cart_item_inner, .cart_suit_virtual .cart_item_inner:hover, .cart_suit_virtual:hover { background: #f7f7f7 } .cart_suit_virtual .cart_item_bd { padding: 0 8px } .cart_suit_virtual .cart_item_inner { padding-left: 0; padding-right: 0 } .cart_suit_virtual .cart_delete { margin-left: 12px } .cart_suit .cart_num { font-weight: 400 } .cart_suit_virtual .cart_num { font-weight: 700 } .shortcut_num { margin-left: 4px } #J_event { overflow: hidden } .focus .focus-slider { width: 100%; display: inline-block; position: relative } .focus .focus-slider .focus-item__core { display: inline-block; margin-right: 10px; width: 590px; height: 470px } .focus .focus-item__recommend { width: 190px; vertical-align: top; display: inline-block; height: 100% } .focus .focus-item__recommend .recommend-item { height: 150px; display: block; margin-bottom: 10px } .focus { position: relative; height: 470px; margin-top: 10px; overflow: hidden } .focus__loading { position: absolute; z-index: -1; height: 100% } .focus__main { -webkit-animation: skeletonShow .3s ease both; animation: skeletonShow .3s ease both } .fs { z-index: 9; margin-bottom: 30px } .fs, .fs_inner { position: relative } .fs_inner { z-index: 1; height: 480px; background-color: #f4f4f4 } .fs_col1 { width: 190px } .fs_col1, .fs_col2 { float: left; height: 480px; margin-right: 10px } .fs_col2 { width: 790px } .fs_col3 { position: relative; float: right; width: 190px; height: 480px; z-index: 1 } .fs_act { display: block; position: absolute; left: 0; top: 0; width: 100%; margin-top: 10px } .o2_mini .fs_col2 { width: 590px } .o2_mini .fs_act { display: none } .cate { position: relative; z-index: 3 } .cate_menu { overflow: hidden; padding: 10px 0; height: 450px; background-color: #fefefe; color: #636363; margin-top: 10px } .cate_menu_item { overflow: hidden; padding-left: 18px; height: 27px; line-height: 27px; font-size: 0; -webkit-transition: background-color .2s ease; transition: background-color .2s ease } .cate_menu_item_on { background-color: #d9d9d9 } .cate_menu_line { padding: 0 2px; font-size: 12px } .cate_menu_lk { font-size: 14px; color: #333; -webkit-transition: color .2s ease; transition: color .2s ease } .cate_menu_item_on .cate_menu_lk:hover { color: #ea4a36 } .cate_pop { position: absolute; left: 191px; top: 0; width: 998px; min-height: 468px; border: 1px solid #f7f7f7; background-color: #fff; -webkit-box-shadow: 2px 0 5px rgba(0, 0, 0, .3); box-shadow: 2px 0 5px rgba(0, 0, 0, .3); -webkit-transition: top .25s ease; transition: top .25s ease } .o2_ie7 .cate_pop, .o2_ie8 .cate_pop { border: 1px solid #6e6568 } .cate_part { display: none; padding: 20px 0 10px } .cate_part_col1 { float: left; width: 800px } .cate_part_col2 { float: left; width: 198px } .cate_brand { margin: auto; width: 168px; font-size: 0 } .cate_brand_lk { overflow: hidden; display: inline-block; width: 83px; height: 35px; margin: 0 0 1px 1px; background-color: #e7e7e7 } .cate_promotion { margin: 10px auto 0; width: 168px } .cate_promotion_lk { display: block; margin-bottom: 1px; height: 134px; background-color: #e7e7e7 } .cate_channel { overflow: hidden; padding-left: 20px; height: 24px } .cate_channel_lk { *cursor: pointer; float: left; margin-right: 10px; padding: 0 10px; height: 24px; background-color: #333; line-height: 24px; color: #fff } .cate_channel_lk:hover { background-color: #ea4a36; color: #fff } .cate_channel_arrow { margin-left: 5px } .cate_detail { overflow: hidden; *zoom: 1; padding: 10px 0 0 20px } .cate_detail_col1, .cate_detail_col2 { float: left; width: 369px } .cate_detail_col1 { padding-right: 20px; border-right: 1px solid #eee } .cate_detail_col2 { margin-left: 20px } .cate_detail_item { position: relative; padding-left: 80px } .cate_detail_tit { overflow: hidden; position: absolute; left: 0; top: 6px; width: 70px; text-align: right; font-weight: 700; white-space: nowrap; text-overflow: ellipsis } .cate_detail_tit_lk { color: #333; font-weight: 700 } .cate_detail_tit_arrow { margin-left: 5px } .cate_detail_con { overflow: hidden; *zoom: 1; padding: 5px 0 } .cate_detail_con_lk { float: left; margin: 3px 0; padding: 0 7px; height: 16px; line-height: 16px; white-space: nowrap } .cate_detail_con_lk_hot { position: relative; font-weight: 700; color: #ea4a36; height: 14px; line-height: 14px; background: #f6f0f0; border: 1px dotted #db7078 } .cate_con_hot_l, .cate_con_hot_r { position: absolute; display: block; width: 5px; height: 16px; top: -1px } .cate_con_hot_l { background-position: 0 0; left: -1px } .cate_con_hot_r { background-position: 100% 0; right: -1px } .cate16 .cate_menu { padding: 15px 0; height: 450px } .cate16 .cate_menu_item { height: 28px; line-height: 28px } .cate17 .cate_menu { padding: 15px 0; height: 440px } .cate17 .cate_menu_item { height: 26px; line-height: 26px } .cate18 .cate_menu_item { height: 25px; line-height: 25px } .o2_mini .cate_pop { width: 798px } .o2_mini .cate_part_col1 { width: 600px } .o2_mini .cate_detail_col1, .o2_mini .cate_detail_col2 { width: 590px } .o2_mini .cate_detail_col1 { padding-right: 0; border-right: none } .o2_mini .cate_detail_col2 { margin-left: 0 } .user { height: 102px; background: #fff; margin-top: 10px; overflow: hidden } .user_inner { position: relative; padding-top: 67px; height: 35px } .user_inner:after { position: absolute; height: 1px; left: 15px; right: 15px; background: -webkit-gradient(linear, right top, left top, from(white), color-stop(#eeeeee), color-stop(#eeeeee), to(white)); background: linear-gradient(270deg, white, #eeeeee, #eeeeee, white); content: " "; bottom: 0 } .user_avatar { position: absolute; left: 20px; top: 13px; width: 44px; height: 44px } .user_avatar_lk { border: 2px solid #fff; border-radius: 50%; overflow: hidden; -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, .05); box-shadow: 0 2px 8px rgba(0, 0, 0, .05) } .user_avatar_lk, .user_avatar_lk img { display: block; width: 40px; height: 40px } .user_show { position: absolute; top: 16px; left: 74px; right: 10px } .user_show p { overflow: hidden; height: 20px; line-height: 20px; width: 100%; white-space: nowrap; text-overflow: ellipsis; color: #666 } .user_show .user_sl { line-height: 0; font-size: 0 } .user_company { background-position: -111px 0; width: 57px; height: 16px; margin: 3px 10px 0 0 } .user_company, .user_plus1 .user_plusico, .user_plus3 .user_plusico { background-repeat: no-repeat; background-size: 168px 133px; position: relative; display: inline-block; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/bb4bd4c5c5e4e3b65e8870565c7b21dd.png) } .user_plus1 .user_plusico, .user_plus3 .user_plusico { background-position: -25px -113px; width: 19px; height: 13px; top: 2px; margin-right: 4px } .user_logout, .user_lv, .user_spoint { display: inline-block; vertical-align: top; height: 20px; line-height: 20px; font-size: 12px } .user_login, .user_reg { color: #333 } .user_lvico, .user_spoint_ico { display: inline-block; position: relative; width: 20px; height: 20px; margin-right: 4px; background-repeat: no-repeat } .user_spoint_ico { background-position: -111px -21px } .user_lv_0 .user_lvico, .user_lv_6 .user_lvico, .user_spoint_ico { background-repeat: no-repeat; background-size: 168px 133px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/bb4bd4c5c5e4e3b65e8870565c7b21dd.png) } .user_lv_0 .user_lvico, .user_lv_6 .user_lvico { background-position: -136px -21px } .user_lv_1 .user_lvico { background-position: -111px -46px } .user_lv_1 .user_lvico, .user_lv_2 .user_lvico { background-repeat: no-repeat; background-size: 168px 133px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/bb4bd4c5c5e4e3b65e8870565c7b21dd.png) } .user_lv_2 .user_lvico { background-position: -136px -46px } .user_lv_3 .user_lvico { background-position: -111px -71px } .user_lv_3 .user_lvico, .user_lv_4 .user_lvico { background-repeat: no-repeat; background-size: 168px 133px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/bb4bd4c5c5e4e3b65e8870565c7b21dd.png) } .user_lv_4 .user_lvico { background-position: -136px -71px } .user_lv_5 .user_lvico { background-repeat: no-repeat; background-size: 168px 133px; background-position: 0 -113px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/bb4bd4c5c5e4e3b65e8870565c7b21dd.png) } @media only screen and (-o-min-device-pixel-ratio:3/2), only screen and (-webkit-min-device-pixel-ratio:1.5), only screen and (min--moz-device-pixel-ratio:1.5), only screen and (min-device-pixel-ratio:1.5) { .user_company { background-position: 0 0 } .user_company, .user_spoint_ico { background-repeat: no-repeat; background-size: 102px 61px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/e14c611022f88d4dd2eba8f8d8464b71.png) } .user_spoint_ico { background-position: 0 -18px } .user_plus0 .user_avatar_lk, .user_plus1 .user_avatar_lk, .user_plus2 .user_avatar_lk, .user_plus3 .user_avatar_lk, .user_plus4 .user_avatar_lk { background-repeat: no-repeat; background-position: 0 0; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/bb4bd4c5c5e4e3b65e8870565c7b21dd.png) } .user_plus1 .user_plusico, .user_plus3 .user_plusico { background-position: -82px -22px } .user_lv_0 .user_lvico, .user_lv_6 .user_lvico, .user_plus1 .user_plusico, .user_plus3 .user_plusico { background-repeat: no-repeat; background-size: 102px 61px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/e14c611022f88d4dd2eba8f8d8464b71.png) } .user_lv_0 .user_lvico, .user_lv_6 .user_lvico { background-position: -22px -18px } .user_lv_1 .user_lvico { background-position: -59px 0 } .user_lv_1 .user_lvico, .user_lv_2 .user_lvico { background-repeat: no-repeat; background-size: 102px 61px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/e14c611022f88d4dd2eba8f8d8464b71.png) } .user_lv_2 .user_lvico { background-position: 0 -41px } .user_lv_3 .user_lvico { background-position: -22px -41px } .user_lv_3 .user_lvico, .user_lv_4 .user_lvico { background-repeat: no-repeat; background-size: 102px 61px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/e14c611022f88d4dd2eba8f8d8464b71.png) } .user_lv_4 .user_lvico { background-position: -45px -41px } .user_lv_5 .user_lvico { background-repeat: no-repeat; background-size: 102px 61px; background-position: -82px 0; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/e14c611022f88d4dd2eba8f8d8464b71.png) } } .user_logout:hover { color: #ea4a36 } .user_profit { height: 25px; font-size: 0; text-align: center } .user_profit_placeholder { height: 25px; margin: 0 20px } .user_profit_lk { display: inline-block; margin: 0 5px; width: 70px; height: 25px; line-height: 25px; font-size: 12px; text-align: center; color: #fff; border-radius: 13px; background: #e1251b; -webkit-transition: background .3s ease, color .3s ease; transition: background .3s ease, color .3s ease } .user_profit_lk_plus { background: #363634; color: #e5d790 } .user_profit_lk_long { margin-right: 0; width: 152px; padding: 0 5px; -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, .1); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis } .user_profit_lk_company, .user_profit_lk_long { color: #e1251b; background: #fff } .user_profit .user_profit_lk_company:hover { color: #fff; background: #ea4a36 } .user_profit a:hover { background-color: #ea4a36; color: #fff } .news, .news2 { overflow: hidden; height: 130px; background: #fff } .news2 .news_hd, .news .news_hd { height: 20px; padding: 10px 0 0; position: relative; line-height: 20px; font-size: 0; margin-bottom: 8px } .news2 .news_hd_placeholder, .news .news_hd_placeholder { height: 100%; margin: 0 15px } .news2 .news_list, .news .news_list { position: relative; margin: 0 15px; height: 88px } .news2 .news_tit, .news .news_tit { display: inline-block; font-size: 14px; margin-left: 15px; color: #333 } .news2 .news_more, .news .news_more { position: absolute; right: 15px; top: 10px; font-size: 12px; color: #999 } .news2 .news_more:hover, .news .news_more:hover { color: #ea4a36 } .news2 .news_item, .news .news_item { max-width: 160px; _width: 160px; height: 16px; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; color: #999; margin-bottom: 6px } .news2 .news_item.news_item_0, .news .news_item.news_item_0 { color: #8c9fac; border-left-color: #8c9fac } .news_tag { display: inline-block; position: relative; font-size: 12px; height: 16px; width: 35px; line-height: 16px; text-align: center; vertical-align: 0; color: #e1251b; background-color: rgba(225, 37, 27, .08); margin-right: 6px } .service { overflow: hidden; position: relative; height: 238px; -webkit-transition: all .2s ease; transition: all .2s ease } #J_service:after { position: absolute; height: 1px; left: 15px; right: 15px; background: -webkit-gradient(linear, right top, left top, from(white), color-stop(#eeeeee), color-stop(#eeeeee), to(white)); background: linear-gradient(270deg, white, #eeeeee, #eeeeee, white); content: " "; top: 0; z-index: 3 } .service_entry { overflow: hidden; padding: 5px .5px; background: #fff } .service_list { padding-top: 5px; height: 225px } .service_item { position: relative; float: left; width: 63px; height: 55px; background: #fff; text-align: center; overflow: hidden } .service_txt { display: block; height: 25px; line-height: 25px; border-bottom: 2px solid #fff; color: #333; -webkit-transition: color .15s ease; transition: color .15s ease } .service_frame { overflow: visible } .service_expand .service_frame .service_txt { position: relative; background: none; color: #666; height: 30px; line-height: 30px } .service_expand .service_frame .service_txt:before { position: absolute; width: 24px; height: 0; left: 50%; margin-left: -12px; border-bottom: 2px solid #fff; bottom: 0; content: " " } .service_lk { display: block; position: relative; *cursor: pointer; -webkit-transition: all .2s linear; transition: all .2s linear } .service_corner { position: absolute; right: 5px; top: 0; width: 14px; height: 14px; font-size: 12px; line-height: 14px; text-align: center; background: #e1251b; color: #fff; z-index: 1; -webkit-transition: all .2s ease; transition: all .2s ease } .service_corner_txt { vertical-align: top } .service_pop { position: absolute; width: 100%; height: 206px; background-color: #fff; -webkit-transition: all .2s ease; transition: all .2s ease; top: 232px } .service_pop:focus { outline: none } .service_pop:before { background-position: 0 0; content: ""; position: absolute; left: -13px; bottom: -10px; width: 216px; height: 36px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANkAAABfCAYAAABlV2KzAAAAAklEQVR4AewaftIAAB5sSURBVO3B/VMc953g8fdn6GFgGAkEiJEEQkLPQrYkW2pH68jOOrneTcqX2t27q1y2Lj/1HzZ1VXd1t7V1W3eXnLOpnd31bozjxGNFsmzQIxoJARIIECA0MNOIz6n3W1TTzAAzMOjJ83qJqlJTU7N9ItTU1Gwriw2ICG8IoeZVo7wBVJX1WLwcQk0NCC+e8oJZbB9h+whvJqF6lDeTsjXC2pRtYFEdwsaEzRGqQ/huEV59SuWEYsrmKGFCMWWLLLZGKE0oTVibUDlha4RXi1A9yqtFKSaUT1mbUJqyNgWEYkqYYCibZLE5QjEhTAgTigmlCRsTNiZsD+G7S9keysaUjSkBIaCECaCEKSAElI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KidGbzEyMMD83xaKXRyIRovVxEi0d7Oo4wK6OA4hEqKkeixIamnaxtLTE4bf/lPqGJtZjRWMcP/dj7nzzL0Tr42yVRCJ0H79A9/ELrHTS/pjtkGhJslKsMcHh0x8xePVTph5mmXqYZaU6K8rh0x8Ra0zwuonWN7D34Gn2HjzNv1EFEWq2l0UJB05coBJWNMaxd/+c19FJ+2NWa27r4q0/+StGs1eZmbiPV5gnWt9Ic/t+9vWcpr4hwRtBhJrt9/8BQeBTuXPy6i0AAAAASUVORK5CYII=) } .service_pop_item { position: relative; z-index: 1; width: 159px; height: 206px; padding: 0 15px; background-color: #fff } .service_pop_item #squares-hotel { margin: 0 } .service_pop_close { position: absolute; width: 20px; height: 20px; left: 50%; bottom: 12px; margin-left: -10px; line-height: 20px; text-align: center; z-index: 1; background: #fff; -webkit-transition: all .2s ease; transition: all .2s ease; border-radius: 100% } .service_pop_close:focus { outline: none } .service_pop_close:hover { background-color: #ea4a36; color: #fff } .service_expand { position: relative; padding-top: 0; height: 238px } .service_expand:after { content: none } .service_expand .service_frame .service_lk { margin-top: -36px } .service_expand .service_frame2 .service_lk { margin-top: 0 } .service_expand2 .service_frame2 .service_lk { margin-top: -91px; z-index: 2; background: #fff } .service_expand .service_frame_on { z-index: 2 } .service_expand .service_frame_on .service_txt { color: #e1251b } .service_expand .service_frame_on .service_txt:before { border-bottom-color: #e1251b } .service_expand .service_pop { top: 20px; z-index: 3 } .csstransitions .service_expand .service_pop { top: 238px; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0) } .service_expand .service_frame .service_corner { top: 30px; width: 4px; height: 4px; border-radius: 100% } .csstransitions .service_expand .service_frame .service_corner { top: 0; -webkit-transform: translate3d(0, 30px, 0); transform: translate3d(0, 30px, 0) } .service_expand .service_frame .service_corner:after, .service_expand .service_frame .service_corner_txt { display: none } .service_item:hover .service_txt { color: #ea4a36 } .service_item svg { -webkit-transition: fill .15s ease; transition: fill .15s ease } .service_ico { position: relative; width: 28px; height: 28px; margin: 0 auto } .service_ico, .service_ico_img { display: block } .service_ico_img_hover { position: absolute; top: 0; left: 0; visibility: hidden; opacity: 0; -webkit-transition: all .2s ease; transition: all .2s ease } .service_ico_img, .service_ico_img_hover { width: 28px; height: 28px } .service_ico svg { display: block; width: 100%; height: 100% } .service_item:hover svg { fill: #ea4a36 } .service_item:hover .service_ico_img_hover { visibility: visible; opacity: 1 } .o2_ie8 .service_ico svg { display: none } .o2_ie8 .service_ico { width: 24px; height: 24px; margin-top: 0 } .o2_ie8 .service_ico_huafei { background-position: -145px -42px } .o2_ie8 .service_ico_huafei, .o2_ie8 .service_ico_jipiao { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANkAAABfCAYAAABlV2KzAAAAAklEQVR4AewaftIAAB5sSURBVO3B/VMc953g8fdn6GFgGAkEiJEEQkLPQrYkW2pH68jOOrneTcqX2t27q1y2Lj/1HzZ1VXd1t7V1W3eXnLOpnd31bozjxGNFsmzQIxoJARIIECA0MNOIz6n3W1TTzAAzMOjJ83qJqlJTU7N9ItTU1Gwriw2ICG8IoeZVo7wBVJX1WLwcQk0NCC+e8oJZbB9h+whvJqF6lDeTsjXC2pRtYFEdwsaEzRGqQ/huEV59SuWEYsrmKGFCMWWLLLZGKE0oTVibUDlha4RXi1A9yqtFKSaUT1mbUJqyNgWEYkqYYCibZLE5QjEhTAgTigmlCRsTNiZsD+G7S9keysaUjSkBIaCECaCEKSAElIBgKBWyqJwQJoQJhhAQAkKYUEwoTVibUD6hPMKLI1Sf8uIo5VHKp6xNKU0ppoAQUAwBlGKKIRhKQAClAhaVEcKEgGAIhmAIhhAQAkJACBOKCaUJaxPWJmyOUH1C9SjVp2yOsjZlbUppSjElTAkoAQUEQwEBlNIUQwAlIIBSJovyCWGCIRiCIRgCCIZgCIZgCAHBEMKEMCEglCaUJpQmrE+oDuHVoVSHsj6lNKU0pTQloIQpYYqhBBRDMRQQQAEBlLUpIIASEEApg8XmCIZgCCAYAgggGAIIhgC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ie8 .service_ico_jipiao { background-position: -29px -42px } .o2_ie8 .service_ico_dianying { background-position: -58px -42px } .o2_ie8 .service_ico_dianying, .o2_ie8 .service_ico_youxi { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANkAAABfCAYAAABlV2KzAAAAAklEQVR4AewaftIAAB5sSURBVO3B/VMc953g8fdn6GFgGAkEiJEEQkLPQrYkW2pH68jOOrneTcqX2t27q1y2Lj/1HzZ1VXd1t7V1W3eXnLOpnd31bozjxGNFsmzQIxoJARIIECA0MNOIz6n3W1TTzAAzMOjJ83qJqlJTU7N9ItTU1Gwriw2ICG8IoeZVo7wBVJX1WLwcQk0NCC+e8oJZbB9h+whvJqF6lDeTsjXC2pRtYFEdwsaEzRGqQ/huEV59SuWEYsrmKGFCMWWLLLZGKE0oTVibUDlha4RXi1A9yqtFKSaUT1mbUJqyNgWEYkqYYCibZLE5QjEhTAgTigmlCRsTNiZsD+G7S9keysaUjSkBIaCECaCEKSAElIBgKBWyqJwQJoQJhhAQAkKYUEwoTVibUD6hPMKLI1Sf8uIo5VHKp6xNKU0ppoAQUAwBlGKKIRhKQAClAhaVEcKEgGAIhmAIhhAQAkJACBOKCaUJaxPWJmyOUH1C9SjVp2yOsjZlbUppSjElTAkoAQUEQwEBlNIUQwAlIIBSJovyCWGCIRiCIRgCCIZgCIZgCAHBEMKEMCEglCaUJpQmrE+oDuHVoVSHsj6lNKU0pTQloIQpYYqhBBRDMRQQQAEBlLUpIIASEEApg8XmCIZgCCAYAgggGAIIhgCCIRiCIRhCQAgIASFMCBNKE8KE0oT1CVsnvHjK1inrU0pTwpTSlDAlTAkoASWgGIqhGIqhgGIooIAACihhCgiggABKhSzKIwQEQzAEEEAAwRBAAAEEEEAwBBAMAQRDMARDCAiGEBACQpgQJoQJxYRiQmnC1gkbE8qnbEzZOqU0pZhSTAlTwpQwJaAEFEMJKIZiKIYCiqGAYiiggAJKQAAloIAACgigGAIoG7DYGgEEEEAAAQQQQAABBBBAAMEQQAD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kWWluegyfFY3h+/qzv8UXrW+kWqL1jRQWnrKQm6ExsQvbccmkU2TSKWzHZSE3gy9aH6ccze1dnP3BX/OyHDr1IbcWPWYnR7h+6dfs2t1N294jJFo6iNY3orpEPveE2akRxu9fZ/7pNL7uExdo2d1NzdZZlNDU3E401oRXWKC+IcGJ8z8h1riD1bzCAjcv/Ybc3BQN8Z3s2JWkUj29F7l77XPqrCi+tr1HGBvq51rmExItSU7aH+O7lvmEuekxfLs7j+GLROqoj8U52HuRamlu7+LR8A1G7lzmyOkfkkmnWGn0zhV8ze2dvA4idRbH3nEYGbzM2L1veTx+j8fj9/g3IqDKSrHGBAdOvk9zWxc11WFRwuDVT8k9mSTWuIMT539CfUOCUqL1DRw//xNuXPoNTx4/ZPCbf+HoWYdKNLd3ceaD/8yy/UdtQJl8MMhqVjRG297DdB4+h+/t7/9Hqm3vwTNMPbzD47G7DH7zKW+9/x9oiO9kITfL4DefMjWWpc6KsvfgGV4XIhG6jpwj2X2KidGbzEyMMD83xaKXRyIRovVxEi0d7Oo4wK6OA4hEqKkeixIamnaxtLTE4bf/lPqGJtZjRWMcP/dj7nzzL0Tr42yVRCJ0H79A9/ELrHTS/pjtkGhJslKsMcHh0x8xePVTph5mmXqYZaU6K8rh0x8Ra0zwuonWN7D34Gn2HjzNv1EFEWq2l0UJB05coBJWNMaxd/+c19FJ+2NWa27r4q0/+StGs1eZmbiPV5gnWt9Ic/t+9vWcpr4hwRtBhJrt9/8BQeBTuXPy6i0AAAAASUVORK5CYII=) } .o2_ie8 .service_ico_youxi { background-position: -87px -42px } .o2_ie8 .service_ico_qyg { background-position: -116px -42px } .o2_ie8 .service_ico_jiayou, .o2_ie8 .service_ico_qyg { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANkAAABfCAYAAABlV2KzAAAAAklEQVR4AewaftIAAB5sSURBVO3B/VMc953g8fdn6GFgGAkEiJEEQkLPQrYkW2pH68jOOrneTcqX2t27q1y2Lj/1HzZ1VXd1t7V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s7j+GLROqoj8U52HuRamlu7+LR8A1G7lzmyOkfkkmnWGn0zhV8ze2dvA4idRbH3nEYGbzM2L1veTx+j8fj9/g3IqDKSrHGBAdOvk9zWxc11WFRwuDVT8k9mSTWuIMT539CfUOCUqL1DRw//xNuXPoNTx4/ZPCbf+HoWYdKNLd3ceaD/8yy/UdtQJl8MMhqVjRG297DdB4+h+/t7/9Hqm3vwTNMPbzD47G7DH7zKW+9/x9oiO9kITfL4DefMjWWpc6KsvfgGV4XIhG6jpwj2X2KidGbzEyMMD83xaKXRyIRovVxEi0d7Oo4wK6OA4hEqKkeixIamnaxtLTE4bf/lPqGJtZjRWMcP/dj7nzzL0Tr42yVRCJ0H79A9/ELrHTS/pjtkGhJslKsMcHh0x8xePVTph5mmXqYZaU6K8rh0x8Ra0zwuonWN7D34Gn2HjzNv1EFEWq2l0UJB05coBJWNMaxd/+c19FJ+2NWa27r4q0/+StGs1eZmbiPV5gnWt9Ic/t+9vWcpr4hwRtBhJrt9/8BQeBTuXPy6i0AAAAASUVORK5CYII=) } .o2_ie8 .service_ico_jiayou { background-position: -116px -71px } .o2_ie8 .service_ico_jiudian { background-position: -174px -42px } .o2_ie8 .service_ico_huoche, .o2_ie8 .service_ico_jiudian { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANkAAABfCAYAAABlV2KzAAAAAklEQVR4AewaftIAAB5sSURBVO3B/VMc953g8fdn6GFgGAkEiJEEQkLPQrYkW2pH68jOOrneTcqX2t27q1y2Lj/1HzZ1VXd1t7V1W3eXnLOpnd31bozjxGNFsmzQIxoJARIIECA0MNOIz6n3W1TTzAAzMOjJ83qJqlJTU7N9ItTU1Gwriw2ICG8IoeZVo7wBVJX1WLwcQk0NCC+e8oJZbB9h+whvJqF6lDeTsjXC2pRtYFEdwsaEzRGqQ/huEV59SuWEYsrmKGFCMWWLLLZGKE0oTVibUDlha4RXi1A9yqtFKSaUT1mbUJqyNgWEYkqYYCibZLE5QjEhTAgTigmlCRsTNiZ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MjWWpc6KsvfgGV4XIhG6jpwj2X2KidGbzEyMMD83xaKXRyIRovVxEi0d7Oo4wK6OA4hEqKkeixIamnaxtLTE4bf/lPqGJtZjRWMcP/dj7nzzL0Tr42yVRCJ0H79A9/ELrHTS/pjtkGhJslKsMcHh0x8xePVTph5mmXqYZaU6K8rh0x8Ra0zwuonWN7D34Gn2HjzNv1EFEWq2l0UJB05coBJWNMaxd/+c19FJ+2NWa27r4q0/+StGs1eZmbiPV5gnWt9Ic/t+9vWcpr4hwRtBhJrt9/8BQeBTuXPy6i0AAAAASUVORK5CYII=) } .o2_ie8 .service_ico_huoche { background-position: 0 -71px } .o2_ie8 .service_ico_zhongchou { background-position: -29px -71px } .o2_ie8 .service_ico_licai, .o2_ie8 .service_ico_zhongchou { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANkAAABfCAYAAABlV2KzAAAAAklEQVR4AewaftIAAB5sSURBVO3B/VMc953g8fdn6GFgGAkEiJEEQkLPQrYkW2pH68jOOrneTcqX2t27q1y2Lj/1HzZ1VXd1t7V1W3eXnLOpnd31bozjxGNFsmzQIxoJARIIECA0MNOIz6n3W1TTzAAzMOjJ83qJqlJTU7N9ItTU1Gwriw2ICG8IoeZVo7wBVJX1WLwcQk0NCC+e8oJZbB9h+whvJqF6lDeTsjXC2pRtYFEdwsaEzRGqQ/huEV59SuWEYsrmKGFCMWWLLLZGKE0oTVibUDlha4RXi1A9yqtFKSaUT1mbUJqyNgWEYkqYYCibZLE5QjEhTAgTigmlCRsTNiZsD+G7S9keysaUjSkBIaCECaCEKSAElIBgKBWyqJwQJoQJhhAQAkKYUEwoTVibUD6hPMKLI1Sf8uIo5VHKp6xNKU0ppoAQUAwBlGKKIRhKQAClAhaVEcKEgGAIhmAIhhAQAkJACBOKCaUJaxPWJmyOUH1C9SjVp2yOsjZlbUppSjElTAkoAQUEQwEBlNIUQwAlIIBSJovyCWGCIRiCIRgCCIZgCIZgCAHBEMKEMCEglCaUJpQmrE+oDuH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biPV5gnWt9Ic/t+9vWcpr4hwRtBhJrt9/8BQeBTuXPy6i0AAAAASUVORK5CYII=) } .o2_ie8 .service_ico_licai { background-position: -58px -71px } .o2_ie8 .service_ico_lipin { background-position: -87px -71px } .o2_ie8 .service_ico_baitiao, .o2_ie8 .service_ico_lipin { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANkAAABfCAYAAABlV2KzAAAAAklEQVR4AewaftIAAB5sSURBVO3B/VMc953g8fdn6GFgGAkEiJEEQkLPQrYkW2pH68jOOrneTcqX2t27q1y2Lj/1HzZ1VXd1t7V1W3eXnLOpnd31bozjxGNFsmzQIxoJARIIECA0MNOIz6n3W1TTzAAzMOjJ83qJqlJTU7N9ItTU1Gwriw2ICG8IoeZVo7wBVJX1WLwcQk0NCC+e8oJZbB9h+whvJqF6lDeTsjXC2pRtYFEdwsaEzRGqQ/huEV59SuWEYsrmKGFCMWWLLLZGKE0oTVibUDlha4RXi1A9yqtFKSaUT1mbUJqyNgWEYkqYYCibZLE5QjEhTAgTigmlCRsTNiZsD+G7S9keysaUjSkBIaCECaCEKSAElIBgKBWyqJwQJoQJhhAQAkKYUEwoTVibUD6hPMKLI1Sf8uIo5VHKp6xNKU0ppoAQUAwBlGKKIRhKQAClAhaVEcKEgGAIhmAIhhAQAkJACBOKCaUJaxPWJmyOUH1C9SjVp2yOsjZlbUppSjElTAkoAQUEQwEBlNIUQwAlIIBSJovyCWGCIRiCIRgCCIZgCIZgCAHBEMKEMCEglCaUJpQmrE+oDuHVoVSHsj6lNKU0pTQloIQpYYqhBBRDMRQQQAEBlLUpIIASEEApg8XmCIZgCCAYAgggGAIIhgCCIRiCIRhCQAgIASFMCBNKE8KE0oT1CVsnvHjK1inrU0pTwpTSlDAlTAkoASWgGIqhGIqhgGIooIAACihhCgiggABKhSzKIwQEQzAEEEAAwRBAAAEEEEAwBBAMAQRDMARDCAiGEBACQpgQJoQJxYRiQmnC1gkbE8qnbEzZOqU0pZhSTAlTwpQwJa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48n0idVFqtsaihJ7ei2T7f4tXWKBc0Vicnt6LVCoai+Plc3z92d9y5oOfYUVjLHp55qbHSLQkWWluegyfFY3h+/qzv8UXrW+kWqL1jRQWnrKQm6ExsQvbccmkU2TSKWzHZSE3gy9aH6ccze1dnP3BX/OyHDr1IbcWPWYnR7h+6dfs2t1N294jJFo6iNY3orpEPveE2akRxu9fZ/7pNL7uExdo2d1NzdZZlNDU3E401oRXWKC+IcGJ8z8h1riD1bzCAjcv/Ybc3BQN8Z3s2JWkUj29F7l77XPqrCi+tr1HGBvq51rmExItSU7aH+O7lvmEuekxfLs7j+GLROqoj8U52HuRamlu7+LR8A1G7lzmyOkfkkmnWGn0zhV8ze2dvA4idRbH3nEYGbzM2L1veTx+j8fj9/g3IqDKSrHGBAdOvk9zWxc11WFRwuDVT8k9mSTWuIMT539CfUOCUqL1DRw//xNuXPoNTx4/ZPCbf+HoWYdKNLd3ceaD/8yy/UdtQJl8MMhqVjRG297DdB4+h+/t7/9Hqm3vwTNMPbzD47G7DH7zKW+9/x9oiO9kITfL4DefMjWWpc6KsvfgGV4XIhG6jpwj2X2KidGbzEyMMD83xaKXRyIRovVxEi0d7Oo4wK6OA4hEqKkeixIamnaxtLTE4bf/lPqGJtZjRWMcP/dj7nzzL0Tr42yVRCJ0H79A9/ELrHTS/pjtkGhJslKsMcHh0x8xePVTph5mmXqYZaU6K8rh0x8Ra0zwuonWN7D34Gn2HjzNv1EFEWq2l0UJB05coBJWNMaxd/+c19FJ+2NWa27r4q0/+StGs1eZmbiPV5gnWt9Ic/t+9vWcpr4hwRtBhJrt9/8BQeBTuXPy6i0AAAAASUVORK5CYII=) } .o2_ie8 .service_ico_baitiao { background-position: 0 -42px } #shortcut { border-bottom: 1px solid #eee; background-color: #e3e4e5 } #shortcut .w { height: 30px; line-height: 30px; color: #999 } #shortcut .w:focus { outline: 0 } #shortcut a { color: #999 } #shortcut a:hover { color: #e33333 } #shortcut .shortcut_btn_company .dt a { color: #f00 } #shortcut .shortcut_btn_company .dt a:hover { color: #e33333 } #shortcut li { float: left } #shortcut li.spacer { overflow: hidden; margin: 11px 5px 0; width: 1px; height: 10px; background-color: #ccc } #shortcut .dt { padding-left: 7px; padding-right: 7px } #shortcut .dd { line-height: 24px } #shortcut .style-red { color: #f10215 } .dorpdown, .shortcut_btn { position: relative; z-index: 21 } .shortcut_btn:hover { z-index: 22 } .cw-icon { overflow: hidden; position: relative; z-index: 1; float: left; border: 1px solid #e3e4e5 } .fr .cw-icon { padding-right: 20px!important } .fr .iconfont { position: absolute; right: 5px; top: 10px; width: 12px; height: 12px; line-height: 12px } .o2_ie7 .fr .iconfont, .o2_ie8 .fr .iconfont { top: 9px } .dorpdown-layer, .dropdown-layer { display: none; position: absolute; border: 1px solid #ccc; background-color: #fff; -webkit-box-shadow: 1px 2px 1px rgba(0, 0, 0, .1); box-shadow: 1px 2px 1px rgba(0, 0, 0, .1) } .dorpdown-layer:focus, .dropdown-layer:focus { outline: 0 } .clickHover .dropdown-layer, .dorpdown:hover .dorpdown-layer, .dropdown:hover .dropdown-layer, .shortcut_btn:hover .dropdown-layer { display: block } .dorpdown:hover .cw-icon, .dropdown:hover .cw-icon, .shortcut_btn:hover .cw-icon { padding-bottom: 2px; border-color: #ccc; border-bottom: none; background-color: #fff } #shortcut .cw-icon { height: 28px; line-height: 28px } #shortcut .dorpdown-layer, #shortcut .dropdown-layer { top: 30px } #ttbar-mycity .iconfont { font-size: 14px; color: #f10215; margin-right: 4px } #ttbar-mycity .dd { left: 0; width: 300px; padding: 10px } .mobile { position: relative; z-index: 21 } .mobile_txt { width: 60px; text-align: center } .mobile_static { position: absolute; top: 35px; left: 0; width: 76px; height: 76px; background: #fff; -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, .1); box-shadow: 0 2px 8px rgba(0, 0, 0, .1) } .mobile_static_qrcode { margin: 5px auto; width: 66px; height: 66px; background: #f6f6f6 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilA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kSuQmCC) 50% no-repeat } @media only screen and (-o-min-device-pixel-ratio:3/2), only screen and (-webkit-min-device-pixel-ratio:1.5), only screen and (min--moz-device-pixel-ratio:1.5), only screen and (min-device-pixel-ratio:1.5) { .mobile_static_qrcode { background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAC91BMVEX/GAD/////AAD/CAD3rq3/FAD//Pz/DwD2pKP7zcr/wrz/5+T/YlH/MBv52db/jID/Oyb/GAD/8/L/STb/Lhj/JA3/gXP/fnD/cGL/////AAD/GAD/EwDjHRv/EAD/wrz/DAD/FgD/CQD/AwH/29ffAAD/Y1L+/Pz/HAP/BQD/5+T/GwH/STb/MBv/FQD/+/r/p57/Lhj/DgD/cGL/fnD/zsn/PCj/YE//Szn/jID//f3/JA3/NyL/8/Pra2v/ta7/1tL/rKTpTEvpX1//3tn/vbzqWVf/a1v/mY//yML/gXP/VUP/5ePkGBb/KBL/Njb/Mx7/joL/9/b/3tz/ubL/dmf/Gxv/4d3/vLX/Z1fhAQD/n57/U1H/IQvhCQf/y8j/wbz/emz/bl7/LBX/HwjaAAD/2Nf/k4f/kIT/Pyv/JhD/rqX/qJ//oZj/lYr/gYD/RjXkIR7/+fn/4+D/09H/v7j/UT//JiX/6ujW09T/l43/iH7/WUf/TjvkHhz/8O7/6ebn5eb/npT/nJHxh4b/fG7iExHiDw3/8vH/sqr/sKf/hnn/XUvoPj3/RTL/LhrlAAD/2tf/0s7/hHf/c3HkJSPW/f7/7er/pp3zmJjnNDP/Qy//KBz/GBj/HRHe3N33xcb/qKPufn7/dGXtXVz/OTjq6Or/pJrvdnbtZWX/ZGLqVFT/WlL/UE//Dg3kBwXoAADk/f3y8PLwpqj/pp7/n5f/cHDlLi3lEA7t6+3Y19r61NX2vL3zt7eurK3/kI/yjo1sb3HtcHD/IRn/KRjpDAv6///z///49vf54uPY4uPl3+HGxMW1trj/rq3flpaEh4j/a2H/XFvkR0jpRkX/RkP28/XQ8/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jmPhcFVyM/AWcjkQTmg7Tgajb/vk0H9qNYCjbfAmsOhi03dJtzOXOrliE7SZxPPyOP2hU7Ygs87Ek2aRgeYgusOVhy5fRfmVHPXOdK8KmTsVMG18s0YF81XmOp42ZjFB8Fh9gCaw7GT9nsYwM0WIADP3KwiKbD9TKkM0vB5ltgQ4L9kgIfyVwAVtdLuVlrD9hippBgugxnphBbboRQfz7IdUVEWMSV7PysM87AGc445axwc8GfD9K/LTw3Qmc24rzTIfF/OQkX7MfEGOgAAAAASUVORK5CYII=) 50% no-repeat; background-size: 60px } } .mobile_pop:before, .mobile_static:before { content: ""; position: absolute; display: block; top: -9px; left: 50%; margin-left: -5px; width: 0; height: 0; line-height: 0; font-size: 0; border: 5px solid transparent; border-bottom-color: #fff } .mobile_pop:before { border-color: transparent transparent #fff; left: 154px } .mobile .mod_loading { height: 200px } .mobile_pop { display: none; position: absolute; left: auto; right: 0; top: 30px; width: 190px; background-color: #fff; border: 1px solid #cfcfcf; border-bottom: 3px solid #60575a } .mobile_on .mobile_pop { display: block } .mobile_on .mobile_static { display: none } #ttbar-serv .dd { right: 0; width: 170px; padding: 10px 0 } #ttbar-serv .item { display: inline-block; *display: inline; *zoom: 1; width: 70px; padding-left: 15px } #ttbar-serv .item-business, #ttbar-serv .item-client { padding-left: 15px; font-weight: 700; color: #666 } #ttbar-serv .item-business { margin-top: 5px; padding-top: 5px; border-top: 1px dotted #eee } #ttbar-navs .dd { right: -84px; width: 1188px; padding: 15px 0 } #ttbar-navs dl { float: left; width: 255px; padding-left: 20px; border-left: 1px solid #eee } #ttbar-navs dl.fore1 { border-left: none; width: 340px } #ttbar-navs dt { margin-bottom: 5px; font-weight: 700; color: #666 } #ttbar-navs dd { overflow: hidden; *zoom: 1 } #ttbar-navs .item { overflow: hidden; float: left; width: 85px; white-space: nowrap } .o2_mini #ttbar-navs .dd { width: 988px } .o2_mini #ttbar-navs dl { width: 200px } .o2_mini #ttbar-navs dl.fore1 { width: 300px } .o2_mini #ttbar-navs .item { width: 100px } #ttbar-login { margin-right: 8px; z-index: 20 } #ttbar-login .nickname { display: block; width: 70px; padding-right: 6px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; text-align: right; margin-right: 40px } #ttbar-login.shortcut_userico_company .nickname { padding-right: 10px } .o2_mini #ttbar-login { width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 5px; text-align: right } .shortcut_userico_ico { position: absolute; top: 6px; right: 20px; display: block; width: 38px; height: 16px } .shortcut_userico3.hover .cw-icon, .shortcut_userico3:hover .cw-icon { border-color: #dfc676 } .shortcut_userico0 .shortcut_userico_ico { background-position: -85px -21px } .shortcut_userico0 .shortcut_userico_ico, .shortcut_userico0 .userinfo_ico_icodropdown { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/3d73dc978ab585b3dea58d9128d974c3.png) } .shortcut_userico0 .userinfo_ico_icodropdown { background-position: 0 -42px; width: 51px; height: 16px } .shortcut_userico1 .shortcut_userico_ico { background-position: -85px -42px } .shortcut_userico1 .shortcut_userico_ico, .shortcut_userico1 .userinfo_ico_icodropdown { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/3d73dc978ab585b3dea58d9128d974c3.png) } .shortcut_userico1 .userinfo_ico_icodropdown { background-position: 0 0; width: 80px; height: 16px } .shortcut_userico2 .shortcut_userico_ico { background-position: -85px -21px } .shortcut_userico2 .shortcut_userico_ico, .shortcut_userico2 .userinfo_ico_icodropdown { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/3d73dc978ab585b3dea58d9128d974c3.png) } .shortcut_userico2 .userinfo_ico_icodropdown { background-position: 0 -42px; width: 51px; height: 16px } .shortcut_userico3 .shortcut_userico_ico { background-position: -85px -42px } .shortcut_userico3 .shortcut_userico_ico, .shortcut_userico3 .userinfo_ico_icodropdown { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/3d73dc978ab585b3dea58d9128d974c3.png) } .shortcut_userico3 .userinfo_ico_icodropdown { background-position: 0 -63px; width: 51px; height: 16px } .shortcut_userico4 .shortcut_userico_ico { background-position: -85px -21px } .shortcut_userico4 .shortcut_userico_ico, .shortcut_userico4 .userinfo_ico_icodropdown { background-repeat: no-repeat; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/3d73dc978ab585b3dea58d9128d974c3.png) } .shortcut_userico4 .userinfo_ico_icodropdown { background-position: 0 -42px; width: 51px; height: 16px } .shortcut_userico5 .shortcut_userico_ico { background-repeat: no-repeat; background-position: -85px -21px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/3d73dc978ab585b3dea58d9128d974c3.png) } .shortcut_userico5 .userinfo_ico_icodropdown { background-position: 0 -42px; width: 51px } .shortcut_userico5 .userinfo_ico_icodropdown, .shortcut_userico_company .shortcut_userico_ico { background-repeat: no-repeat; height: 16px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/3d73dc978ab585b3dea58d9128d974c3.png) } .shortcut_userico_company .shortcut_userico_ico { background-position: -85px 0; width: 47px } .shortcut_userico_company .userinfo_ico_icodropdown { background-repeat: no-repeat; background-position: 0 -21px; width: 57px; height: 16px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/3d73dc978ab585b3dea58d9128d974c3.png) } @media only screen and (-o-min-device-pixel-ratio:3/2), only screen and (-webkit-min-device-pixel-ratio:1.5), only screen and (min--moz-device-pixel-ratio:1.5), only screen and (min-device-pixel-ratio:1.5) { .shortcut_userico0 .shortcut_userico_ico { background-position: -59.5px 0 } .shortcut_userico0 .shortcut_userico_ico, .shortcut_userico0 .userinfo_ico_icodropdown { background-repeat: no-repeat; background-size: 97.5px 53px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/5933bf62f3f797261d73d1ad39b1e89b.png) } .shortcut_userico0 .userinfo_ico_icodropdown { background-position: 0 -18.5px } .shortcut_userico2 .shortcut_userico_ico { background-position: -59.5px 0 } .shortcut_userico2 .shortcut_userico_ico, .shortcut_userico2 .userinfo_ico_icodropdown { background-repeat: no-repeat; background-size: 97.5px 53px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/5933bf62f3f797261d73d1ad39b1e89b.png) } .shortcut_userico2 .userinfo_ico_icodropdown { background-position: 0 -18.5px } .shortcut_userico4 .shortcut_userico_ico { background-position: -59.5px 0 } .shortcut_userico4 .shortcut_userico_ico, .shortcut_userico4 .userinfo_ico_icodropdown { background-repeat: no-repeat; background-size: 97.5px 53px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/5933bf62f3f797261d73d1ad39b1e89b.png) } .shortcut_userico4 .userinfo_ico_icodropdown { background-position: 0 -18.5px } .shortcut_userico5 .shortcut_userico_ico { background-position: -59.5px 0 } .shortcut_userico5 .shortcut_userico_ico, .shortcut_userico5 .userinfo_ico_icodropdown { background-repeat: no-repeat; background-size: 97.5px 53px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/5933bf62f3f797261d73d1ad39b1e89b.png) } .shortcut_userico5 .userinfo_ico_icodropdown { background-position: 0 -18.5px } .shortcut_userico_company .shortcut_userico_ico { background-position: 0 -37px } .shortcut_userico_company .shortcut_userico_ico, .shortcut_userico_company .userinfo_ico_icodropdown { background-repeat: no-repeat; background-size: 97.5px 53px; background-image: url(//misc.360buyimg.com/mtd/pc/index_2019/1.0.0/assets/img/5933bf62f3f797261d73d1ad39b1e89b.png) } .shortcut_userico_company .userinfo_ico_icodropdown { background-position: 0 0 } } .boxproduct{ width: 270px; height: 370px; margin: 4px; padding: 10px; } .pd-boximg{ height: 250px; overflow: hidden; } .pd-box-title{ font-size: 14px; height: 50px; overflow: hidden; padding: 15px; } .pd-box-price{ font-size: 16px; color: red; font-weight: 700; padding-top: 10px; padding-left: 15px; } .sui-btn.btn-bordered.btn-danger:hover, .sui-btn.btn-bordered.btn-danger:focus, .operate .sui-btn.btn-bordered.btn-danger:active, .operate .sui-btn.btn-bordered.btn-danger.active { border: 1px solid #ea4a36; background-color: #ea4a36; } .typeNav { border-bottom: 2px solid #F4A951; } .bread, .selector, .type-wrap, .value { overflow: hidden; } .bread, .selector, .details, .hot-sale { margin-bottom: 5px; } .bread .form-dark { margin-bottom: 5px; } .hot-sale, .selector, .filter { border: 1px solid #eee; } .key { padding: 5px 5px 0 15px; } .type-wrap ul li { float: left; list-style-type: none; } .sui-btn { border-radius: 0; } .bread .sui-breadcrumb { padding: 3px 15px; margin: 0; } .bread .sui-tag { margin-top: -5px; } .type-wrap { margin: 0; position: relative; border-top: 1px solid #eee; } .type-wrap:first-child { border-top: 0; } .type-wrap .key { width: 10%; border-right: 1px solid #eee; line-height: 26px; } .logo .brand { padding-bottom: 87px; } .type-wrap .value { width: 85%; padding: 5px; color: #333; } .type-wrap .logos .active { border: 1px solid #ff0000; } .type-wrap .ext { position: absolute; top: 10px; right: 10px; } .selected { background: #eee; text-align: center; } .ext .sui-btn { padding: 0 10px; background: #fff; } .ext a { color: #666; line-height: 25px; } ul.type-list li { display: block; margin-right: 30px; line-height: 26px; } ul.type-list li a { cursor: pointer; color: #555; padding: 2px; text-decoration: none; } ul.type-list li a.redhover { background: #ea4a36; color: #fff; padding: 2px; text-decoration: none; } ul.type-list li a.grayhover { color: #555; } ul.logo-list li { border: 1px solid #e4e4e4; margin: -1px -1px 0 0; width: 105px; height: 52px; text-align: center; line-height: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: #ff703f; font-style: normal; font-size: 14px; } ul.logo-list li.active { border: 1px solid #ff0000; } .filter { background: #f1f1f1; } .sui-navbar { margin-bottom: 0; } .sui-navbar .navbar-inner { padding-left: 0; border-radius: 0; } .sui-navbar .sui-nav>.active>a { background: #F4A951; color: #fff; } .goods-list { margin: 20px 0; } .goods-list ul li { margin-top: 10px; line-height: 28px; } .goods-list ul li:hover { box-shadow: 0 0 10px 2px #ededed; } .goods-list .p-img { width: 215px; height: 255px; } .p-img, .price, .attr, .cu, .commit, .operate { padding-left: 15px; } .attr { width: 85%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-bottom: 8px; min-height: 38px; cursor: pointer; line-height: 1.8; } .attr a { color: #333; text-decoration: none; } .attr a:hover { color: #ea4a36; } .cu, .commit { height: 22px; } .commit { font-size: 13px; color: #a7a7a7; } .commit .command span { font-weight: 700; color: #646fb0; } .price { font-size: 18px; color: #ea4a36; } .price i { margin-left: -5px; } .cu span { background: #ea4a36; color: #fff; padding: 3px; margin-right: 3px; } .operate { padding: 12px 15px; } .operate .sui-btn.btn-bordered { min-width: 85px; } .sui-btn.btn-bordered.btn-danger { margin-right: 15px; border: 1px solid #ea4a36; color: #ea4a36; } .sui-pagination ul>li>a:hover, .sui-pagination ul>li>a:focus { border: 1px solid #ea4a36; background: #ea4a36; } .page { width: 670px; height: 66px; overflow: hidden; } .sui-pagination div { float: right; width: 160px; } .sui-pagination ul { display: inline-block; *display: inline; *zoom: 1; width: 490px; float: left; } .sui-pagination ul>.active>a { background-color: #fff; color: #ea4a36; border-color: #fff; cursor: default; } .sui-pagination ul>.active>a:hover { background: #ccc; border: 1px solid #eee; } .sui-pagination ul>li { display: inline-block; *display: inline; *zoom: 1; } .pagination-large ul>li>a, .pagination-large ul>li>span { padding: 9px 18px; color: #333; } .sui-pagination ul>li>a:hover { background: #ccc; border: 1px solid #eee; } .sui-pagination ul>.dotted>span, .sui-pagination ul>.dotted>a { border: 0; } .pagination-large div .page-num { padding: 9px 18px; } .pagination-large div .page-num+. { padding: 7px 16px; color: #666; background-color: #f6f6f6; border: 1px solid #eee; } .sui-pagination div { display: inline-block; *display: inline; *zoom: 1; } .hot-sale .hot-list { padding: 15px; } .hot-sale .title { border-bottom: 1px solid #eee; color: #333; margin: 0; padding: 9px 0 9px 15px; font-size: 16px; font-weight: normal; } .sort { position: absolute; display: none; } .tab { overflow: hidden } .tab li, .tab a, .tab-item { cursor: pointer; float: left; text-align: center } .m, .mt, .mc, .mb { overflow: hidden } .mt .extra { float: right } .tab { border-bottom: 2px solid #BE0000; margin-bottom: 10px } .tab li { position: relative; height: 24px; padding: 3px 12px 0; overflow: hidden; margin-right: 3px; line-height: 24px; font-size: 14px; font-weight: 700; color: #c30 } .tab span { position: absolute; left: 0; top: 0; z-index: 1; width: 10px; height: 27px } .tab a { float: none; color: #c30 } .tab .curr { background-position: right -178px; color: #fff } .tab .curr span { background-position: 0 -178px } .tab .curr a { color: #fff } .zoom img { max-width: none } .jqzoom { float: left; border: 0; position: relative; padding: 5px; cursor: pointer; margin: 0; display: block } .zoomdiv { z-index: 100; position: absolute; top: 0; left: 0; width: 350px; height: 350px; background: #fff; border: 1px solid #CCC; display: none; text-align: center; overflow: hidden } .jqZoomPup { z-index: 10; visibility: hidden; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border: 1px solid #aaa; background: #fff; opacity: .5; -moz-opacity: .5; -khtml-opacity: .5; filter: alpha(Opacity=50) } .spec-preview { width: 410px; height: 410px; border: 1px solid #DFDFDF } .spec-scroll { clear: both; margin-top: 5px; width: 410px; overflow: hidden } .spec-scroll .prev { float: left; margin-right: 4px } .spec-scroll .next { float: right } .spec-scroll .prev, .spec-scroll .next { display: block; font-family: "宋体"; text-align: center; width: 20px; height: 20px; margin-top:17px; line-height: 20px; border: 1px solid #CCC; cursor: pointer; text-decoration: none; border-radius: 50%; } .spec-scroll .items { float: left; position: relative; width: 360px; height: 56px; overflow: hidden } .spec-scroll .items ul { position: absolute; width: 9999px; height: 56px; margin: 0; padding: 0 } .spec-scroll .items ul li { float: left; width: 75px; text-align: center; margin: 0; padding: 0; list-style-type: none } .spec-scroll .items ul li img { border: 1px solid #CCC; padding: 2px; width: 50px; height: 50px; display: block } .spec-scroll .items ul li img:hover { border: 2px solid #F60; padding: 1px } .btn-danger { border-radius: 0 } .btn-danger:hover, .btn-danger:focus .btn-danger:active, .btn-danger.active { border: 1px solid #ea4a36; background-color: #ea4a36 } .typeNav { border-bottom: 2px solid #2390e4; } #item { margin: 15px 0; font-family: "微软雅黑" } .preview-wrap { width: 400px } .itemInfo-wrap { width: 700px } .aside { width: 210px } em { font-style: normal } .sui-breadcrumb { padding: 9px 15px 0 0; margin: 0 0 9px } .product-info { overflow: hidden; margin: 5px 0 15px } .itemInfo-wrap { font-family: "宋体" } .summary-wrap .price { color: #ea4a36 } .summary-wrap .price em { font-size: 24px; font-weight: 700 } .summary-wrap .price i { font-size: 16px } .summary-wrap .price span { font-size: 12px } .product-detail { margin: 30px 0 } .red-bg { background: #B61D1D; padding: 3px; color: #fff } .sku-name h4 { font-weight: 400; font-size: 18px; color: #333; font-family: "微软雅黑"; } .news { color: #e12228 } .summary { background: #fee9eb; padding: 7px; margin: 13px 0 } .support { border-bottom: 1px solid #ededed; padding-bottom: 5px } .summary-wrap { overflow: hidden; line-height: 28px; margin-top: 10px } .summary-wrap dl { overflow: hidden } .summary-wrap dl a { color: #666; line-height: 24px; padding: 2px 14px; margin-right: 5px; display: block; float: left; position: relative; outline: 0; border: 1px solid #ddd; background-color: #fff; text-decoration: none } .summary-wrap .selected { border: 1px solid #ea4a36; } .summary-wrap .locked { color: #d6d6d6; cursor: not-allowed; border-color: #bbb; border-style: dotted } .summary-wrap a span { width: 13px; height: 13px; display: none; position: absolute; right: 0; _right: -1px; bottom: 0; _bottom: -1px; overflow: hidden; background: url(../img/choosed.png) no-repeat } .summary-wrap .selected span { display: block } .control-group { padding-top: 4px; } .title { margin-right: 15px } .red-bg { background: #ea4a36; color: #fff; padding: 3px } .fix-width { width: 520px } .t-gray { color: #999 } ul.btn-choose li { float: left; margin: 0 10px 0 0 } ul.btn-choose li .btn-xlarge .addshopcar { font-size: 16px } .addshopcar { padding: 10px 25px; font-size: 16px; font-family: 微软雅黑 } ul.btn-choose li .btn-xlarge { font-size: 12px; border-radius: 0 } .sui-btn:active, .sui-btn.active { background-color: #ea4a36; color: #fff } .btn-danger { background-color: #ea4a36; border: 1px solid #ea4a36 } ul.part-list { overflow: hidden } ul.part-list li { line-height: 18px; width: 50%; float: left; border-bottom: 1px dashed #ededed; line-height: 28px } .sui-nav.nav-tabs.tab-wraped>li { width: 50% } .sui-nav.nav-tabs.tab-wraped>li>a { padding: 11px; text-align: center } .sui-nav.nav-tabs.tab-wraped>li.active>a { padding-top: 9px; border-top: 3px solid #ea4a36 } .intro .sui-nav.nav-tabs.tab-wraped>li.active>a { font-weight: 400; border: 0; padding-top: 12px; background: #ea4a36; color: #fff } .tab-content.tab-wraped { padding: 10px } .summary-price-wrap { overflow: hidden } .goods-list .operate { margin: 5px 40px } ul.goods-list li { margin: 5px 0 15px; border-bottom: 1px solid #ededed; padding-bottom: 5px } ul.goods-intro li { line-height: 26px } .p-img img { padding-left: 20px } .suits .list-wrap { float: left; margin: 0 10px } .good-suits { overflow: hidden; border: 1px solid #eee; } .master, .suits, .result { height: 140px; padding: 10px } .master .list-wrap { position: relative; text-align: center } .master .list-wrap i { position: absolute; top: 48px; right: -25px; font-size: 16px } .master .list-wrap em { color: #ea4a36; font-size: 16px; font-weight: 700 } .suits ul li { float: left; list-style-type: none; padding: 0 20px } .result { line-height: 26px; border-left: 1px solid #eee; padding: 20px } .result .price { color: #ea4a36; font-size: 16px } .fitting, .like { margin-bottom: 15px } .intro .sui-nav.nav-tabs.tab-wraped>li { width: auto } .intro .tab-content.tab-wraped { border: 0 } .kt { color: #333; margin: 0; padding: 5px 0 5px 15px; font-size: 16px; font-weight: normal; } .like .like-list { padding: 15px } .like-list ul li .attr, .like-list ul li .price, .like-list ul li .commit { padding-left: 15px; font-family: "微软雅黑" } .list-wrap .price { font-size: 16px; color: #ea4a36 } .like-list ul li .price { margin-bottom: 20px } .like-list ul li .list-wrap { line-height: 22px } .comment p { margin-bottom: 0; margin-top: 0 } .comment .com-tit { padding: 0 10px; line-height: 32px; font-size: 14px; background-color: #f7f7f7; border: 1px solid #eee; font-weight: 700 } .comment .com-percent { text-align: center; line-height: 45px } .comment .com-percent p { margin-bottom: 0 } .comment .com-percent .percent { font-size: 30px; color: #ea4a36 } .comment .com-tab-type { line-height: 36px } .comment .com-tab-type .type { padding-left: 20px; list-style: none; background-color: #f7f7f7 } .comment .com-tab-type .type li { display: inline-block; margin-right: 15px; cursor: pointer } .comment .com-tab-type .type li a { text-decoration: none; color: #555 } .comment .com-tab-type .type li.current a { color: #ea4a36 } .comment .com-tab-type .content .com-item { padding: 15px; line-height: 26px; border-bottom: 1px solid #eee } .com-item .user-column { float: left; width: 140px } .com-item .user-column .username img { width: 40px; height: 40px; border-radius: 20px; margin-right: 2px; display: block; margin: 0 auto; } .com-item .user-column .username { text-align: center; } .com-item .user-column .usernum { color: #999; } .com-item .user-info { margin-left: 150px } .com-item .user-info .stars { width: 78px; height: 18px; background: url(../img/_/star.png) no-repeat } .com-item .user-info .stars.star4 { background-position: 0 0 } .com-item .user-info .mini { list-style: none; float: left } .com-item .user-info .mini li { display: inline-block } .com-item .user-info .guige { color: #999 } .com-item .user-info .guige .reply { color: #ea4a36; margin: 10px; border-top: 1px solid #eeeddd; padding-top: 15px; font-size: 14px; } .com-item .user-info .guige .reply .name { padding-right: 20px; } .com-item .user-info .guige .reply .time { color: #999 } .com-item .user-info .operate { float: right } .com-item .user-info .operate span { padding-right: 15px; cursor: pointer } .com-item .user-info .operate span i { font-size: 16px } i.icon-tb-likefill { color: #ea4a36 } i.icon-tb-wangfill { color: #ea4a36 } .detail-tab { border-bottom: 1px solid #eee; text-align: center; } .detail-tab li { display: inline-block; line-height: 60px; font-size: 18px; padding: 0 10px; } .detail-tab li.active a { color: #F4A951; } .comment-title { width: 100px; } .start-box { font-size: 20px; } .start-box i { color: #ccc; } .start-box i.active, .start-box i:hover { color: #ff7300; } .sumbtn a:hover { color: #fff; } .logoArea { overflow: hidden; position: relative; } .logo { background: url(../img/icons.png) no-repeat; background-position: -370px 3px; width: 177px; height: 75px; } .logo .title { font: 19px "微软雅黑"; position: absolute; top: 24px; left: 190px; } /* .search { position: absolute; right: 0; top: 22px; font-size: 16px; } */ .search .btn-danger { font-size: 16px; } .cart-th { background: #f5f5f5; border: 1px solid #eee; padding: 10px; } .cart-shop { border-bottom: 2px solid #ddd; padding: 10px 9px 5px; } .cart-tool { overflow: hidden; border: 1px solid #eee; } .cart-shop .self { color: #fff; background: #ea4a36; padding: 2px; } .cart-body, .deled { margin: 15px 0; } .cart-body { border: 1px solid #eee; } .cart-list ul { padding: 10px; border-bottom: 1px solid #eee; } .cart-list:nth-last-child(1) ul { border: 0; } .cart-list ul li { display: inline-block; *display: inline; *zoom: 1; } .price, .sum, .shopname, .itxt { font-family: "微软雅黑"; line-height: 34px; } .shopname { font-size: 14px; } .self { font-size: 12px; } .price, .sum { font-size: 16px; } .good-item { width: 260px; } .item-img { float: left; width: 100px; height: 90px; padding: 0 20px; } .item-img img { width: 100%; } .item-txt { width: 200px; line-height: 34px; } .item-msg { line-height: 24px; } /* .goods-list input { border: 1px solid #eee; } */ .cart_icon input { width: 32px; } a.increment { text-decoration: none; width: 6px; text-align: center; padding: 8px; -moz-padding-top: 10px; -moz-padding-bottom: 13px; -webkit-padding-top: 10px; -webkit-padding-bottom: 13px; } .mins { border: 1px solid #eee; border-right: 0; float: left; } .plus { border: 1px solid #eee; border-left: 0; float: left; } .itxt { width: 40px; height: 32px; float: left; text-align: center; font-size: 14px; zoom: 1; } .select-all, .option { padding: 10px; overflow: hidden; float: left; } .option a { float: left; padding: 0 10px; } .money-box { float: right; } .chosed, .sumprice { float: left; padding: 0 10px; } .chosed { line-height: 26px; } .sumprice { width: 200px; line-height: 22px; } .sumprice em { text-align: right; } .sumbtn { float: right; } .summoney { color: #ea4a36; font: 16px "微软雅黑"; } a.sum-btn { display: block; position: relative; width: 96px; height: 52px; line-height: 52px; color: #fff; text-align: center; font-size: 18px; font-family: "Microsoft YaHei"; background: #ea4a36; overflow: hidden; } .del { background: #fffdee; } .del .goods-list { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 15px; } .sui-nav.nav-tabs { background: #f1f1f1; padding-left: 0; border: 1px solid #eee; overflow: hidden; } .sui-nav.nav-tabs>li>a { border: 0; padding: 10px 20px; font-family: "微软雅黑"; } .sui-nav.nav-tabs>.active>a { background-color: #ea4a36; color: #fff; border-radius: 0; border: 0; } .item ul li { list-style-type: none; display: inline-block; margin-right: -7px; border: 1px dashed #ddd; padding: 20px; *display: inline; *zoom: 1; position: relative; zoom: 1; margin-bottom: 10px; } .item ul li img { width: 160px; } .carousel-control { border-radius: 0; width: 22px; border: 0; background: #ddd; } .intro, .money, .incar { line-height: 20px; } .money, .incar { text-align: center; } .money { font: 14px "微软雅黑"; color: #ea4a36; } .incar { margin: 10px 0; } .car { width: 20px; height: 20px; position: absolute; color: #ea4a36; } .cartxt { padding-left: 23px; } .allgoods h4 { font-size: 16px; font-weight: normal; } .cart-link-title { margin-bottom: 10px; margin-top: 20px; } .cart-link-title h4 { font-size: 16px; font-weight: normal; line-height: 32px; } .intro i { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 160px; }
2301_80339408/order
css/style.css
CSS
unknown
529,918
const MALL_USER_BASEURL = 'http://localhost:8081' const MALL_GOODS_BASEURL = 'http://localhost:8082' const MALL_CART_BASEURL = 'http://localhost:8083' const MALL_ORDER_BASEURL = 'http://localhost:8084'
2301_80339408/order
js/common.js
JavaScript
unknown
204
// 创建axios实例 const request = axios.create({ timeout: 10000, // 请求超时时间 }); // 添加请求拦截器 request.interceptors.request.use(function (config) { // 在发送请求之前做些什么,例如添加token等 config.headers['Authorization'] = sessionStorage.getItem("token"); return config; }, function (error) { // 对请求错误做些什么 return Promise.reject(error); }); // 添加响应拦截器 request.interceptors.response.use(function (response) { // 对响应数据做点什么 const token =response.headers['authorization']; if(token){ sessionStorage.setItem("token",token) const strings = token.split('.') //通过split()方法将token转为字符串数组 const userInfo = JSON.parse( decodeURIComponent(escape(window.atob(strings[1].replace(/-/g, '+').replace(/_/g, '/')))) ) // 保存用户信息 sessionStorage.setItem("userInfo",JSON.stringify(userInfo)) } return response.data; }, function (error) { return Promise.reject(error); });
2301_80339408/order
js/request.js
JavaScript
unknown
1,072
/** * vue v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ var Vue = (function (exports) { 'use strict'; /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function makeMap(str) { const map = /* @__PURE__ */ Object.create(null); for (const key of str.split(",")) map[key] = 1; return (val) => val in map; } const EMPTY_OBJ = Object.freeze({}) ; const EMPTY_ARR = Object.freeze([]) ; const NOOP = () => { }; const NO = () => false; const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97); const isModelListener = (key) => key.startsWith("onUpdate:"); const extend = Object.assign; const remove = (arr, el) => { const i = arr.indexOf(el); if (i > -1) { arr.splice(i, 1); } }; const hasOwnProperty$1 = Object.prototype.hasOwnProperty; const hasOwn = (val, key) => hasOwnProperty$1.call(val, key); const isArray = Array.isArray; const isMap = (val) => toTypeString(val) === "[object Map]"; const isSet = (val) => toTypeString(val) === "[object Set]"; const isDate = (val) => toTypeString(val) === "[object Date]"; const isRegExp = (val) => toTypeString(val) === "[object RegExp]"; const isFunction = (val) => typeof val === "function"; const isString = (val) => typeof val === "string"; const isSymbol = (val) => typeof val === "symbol"; const isObject = (val) => val !== null && typeof val === "object"; const isPromise = (val) => { return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch); }; const objectToString = Object.prototype.toString; const toTypeString = (value) => objectToString.call(value); const toRawType = (value) => { return toTypeString(value).slice(8, -1); }; const isPlainObject = (val) => toTypeString(val) === "[object Object]"; const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key; const isReservedProp = /* @__PURE__ */ makeMap( // the leading comma is intentional so empty string "" is also included ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted" ); const isBuiltInDirective = /* @__PURE__ */ makeMap( "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo" ); const cacheStringFunction = (fn) => { const cache = /* @__PURE__ */ Object.create(null); return (str) => { const hit = cache[str]; return hit || (cache[str] = fn(str)); }; }; const camelizeRE = /-(\w)/g; const camelize = cacheStringFunction( (str) => { return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : ""); } ); const hyphenateRE = /\B([A-Z])/g; const hyphenate = cacheStringFunction( (str) => str.replace(hyphenateRE, "-$1").toLowerCase() ); const capitalize = cacheStringFunction((str) => { return str.charAt(0).toUpperCase() + str.slice(1); }); const toHandlerKey = cacheStringFunction( (str) => { const s = str ? `on${capitalize(str)}` : ``; return s; } ); const hasChanged = (value, oldValue) => !Object.is(value, oldValue); const invokeArrayFns = (fns, ...arg) => { for (let i = 0; i < fns.length; i++) { fns[i](...arg); } }; const def = (obj, key, value, writable = false) => { Object.defineProperty(obj, key, { configurable: true, enumerable: false, writable, value }); }; const looseToNumber = (val) => { const n = parseFloat(val); return isNaN(n) ? val : n; }; const toNumber = (val) => { const n = isString(val) ? Number(val) : NaN; return isNaN(n) ? val : n; }; let _globalThis; const getGlobalThis = () => { return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {}); }; function genCacheKey(source, options) { return source + JSON.stringify( options, (_, val) => typeof val === "function" ? val.toString() : val ); } const PatchFlagNames = { [1]: `TEXT`, [2]: `CLASS`, [4]: `STYLE`, [8]: `PROPS`, [16]: `FULL_PROPS`, [32]: `NEED_HYDRATION`, [64]: `STABLE_FRAGMENT`, [128]: `KEYED_FRAGMENT`, [256]: `UNKEYED_FRAGMENT`, [512]: `NEED_PATCH`, [1024]: `DYNAMIC_SLOTS`, [2048]: `DEV_ROOT_FRAGMENT`, [-1]: `HOISTED`, [-2]: `BAIL` }; const slotFlagsText = { [1]: "STABLE", [2]: "DYNAMIC", [3]: "FORWARDED" }; const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"; const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED); const range = 2; function generateCodeFrame(source, start = 0, end = source.length) { start = Math.max(0, Math.min(start, source.length)); end = Math.max(0, Math.min(end, source.length)); if (start > end) return ""; let lines = source.split(/(\r?\n)/); const newlineSequences = lines.filter((_, idx) => idx % 2 === 1); lines = lines.filter((_, idx) => idx % 2 === 0); let count = 0; const res = []; for (let i = 0; i < lines.length; i++) { count += lines[i].length + (newlineSequences[i] && newlineSequences[i].length || 0); if (count >= start) { for (let j = i - range; j <= i + range || end > count; j++) { if (j < 0 || j >= lines.length) continue; const line = j + 1; res.push( `${line}${" ".repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}` ); const lineLength = lines[j].length; const newLineSeqLength = newlineSequences[j] && newlineSequences[j].length || 0; if (j === i) { const pad = start - (count - (lineLength + newLineSeqLength)); const length = Math.max( 1, end > count ? lineLength - pad : end - start ); res.push(` | ` + " ".repeat(pad) + "^".repeat(length)); } else if (j > i) { if (end > count) { const length = Math.max(Math.min(end - count, lineLength), 1); res.push(` | ` + "^".repeat(length)); } count += lineLength + newLineSeqLength; } } break; } } return res.join("\n"); } function normalizeStyle(value) { if (isArray(value)) { const res = {}; for (let i = 0; i < value.length; i++) { const item = value[i]; const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item); if (normalized) { for (const key in normalized) { res[key] = normalized[key]; } } } return res; } else if (isString(value) || isObject(value)) { return value; } } const listDelimiterRE = /;(?![^(]*\))/g; const propertyDelimiterRE = /:([^]+)/; const styleCommentRE = /\/\*[^]*?\*\//g; function parseStringStyle(cssText) { const ret = {}; cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => { if (item) { const tmp = item.split(propertyDelimiterRE); tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim()); } }); return ret; } function stringifyStyle(styles) { if (!styles) return ""; if (isString(styles)) return styles; let ret = ""; for (const key in styles) { const value = styles[key]; if (isString(value) || typeof value === "number") { const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); ret += `${normalizedKey}:${value};`; } } return ret; } function normalizeClass(value) { let res = ""; if (isString(value)) { res = value; } else if (isArray(value)) { for (let i = 0; i < value.length; i++) { const normalized = normalizeClass(value[i]); if (normalized) { res += normalized + " "; } } } else if (isObject(value)) { for (const name in value) { if (value[name]) { res += name + " "; } } } return res.trim(); } function normalizeProps(props) { if (!props) return null; let { class: klass, style } = props; if (klass && !isString(klass)) { props.class = normalizeClass(klass); } if (style) { props.style = normalizeStyle(style); } return props; } const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"; const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"; const MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"; const VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"; const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS); const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS); const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS); const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS); const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`; const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs); const isBooleanAttr = /* @__PURE__ */ makeMap( specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected` ); function includeBooleanAttr(value) { return !!value || value === ""; } const isKnownHtmlAttr = /* @__PURE__ */ makeMap( `accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap` ); const isKnownSvgAttr = /* @__PURE__ */ makeMap( `xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan` ); function isRenderableAttrValue(value) { if (value == null) { return false; } const type = typeof value; return type === "string" || type === "number" || type === "boolean"; } const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g; function getEscapedCssVarName(key, doubleEscape) { return key.replace( cssVarNameEscapeSymbolsRE, (s) => `\\${s}` ); } function looseCompareArrays(a, b) { if (a.length !== b.length) return false; let equal = true; for (let i = 0; equal && i < a.length; i++) { equal = looseEqual(a[i], b[i]); } return equal; } function looseEqual(a, b) { if (a === b) return true; let aValidType = isDate(a); let bValidType = isDate(b); if (aValidType || bValidType) { return aValidType && bValidType ? a.getTime() === b.getTime() : false; } aValidType = isSymbol(a); bValidType = isSymbol(b); if (aValidType || bValidType) { return a === b; } aValidType = isArray(a); bValidType = isArray(b); if (aValidType || bValidType) { return aValidType && bValidType ? looseCompareArrays(a, b) : false; } aValidType = isObject(a); bValidType = isObject(b); if (aValidType || bValidType) { if (!aValidType || !bValidType) { return false; } const aKeysCount = Object.keys(a).length; const bKeysCount = Object.keys(b).length; if (aKeysCount !== bKeysCount) { return false; } for (const key in a) { const aHasKey = a.hasOwnProperty(key); const bHasKey = b.hasOwnProperty(key); if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) { return false; } } } return String(a) === String(b); } function looseIndexOf(arr, val) { return arr.findIndex((item) => looseEqual(item, val)); } const isRef$1 = (val) => { return !!(val && val["__v_isRef"] === true); }; const toDisplayString = (val) => { return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? isRef$1(val) ? toDisplayString(val.value) : JSON.stringify(val, replacer, 2) : String(val); }; const replacer = (_key, val) => { if (isRef$1(val)) { return replacer(_key, val.value); } else if (isMap(val)) { return { [`Map(${val.size})`]: [...val.entries()].reduce( (entries, [key, val2], i) => { entries[stringifySymbol(key, i) + " =>"] = val2; return entries; }, {} ) }; } else if (isSet(val)) { return { [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v)) }; } else if (isSymbol(val)) { return stringifySymbol(val); } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) { return String(val); } return val; }; const stringifySymbol = (v, i = "") => { var _a; return ( // Symbol.description in es2019+ so we need to cast here to pass // the lib: es2016 check isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v ); }; function warn$2(msg, ...args) { console.warn(`[Vue warn] ${msg}`, ...args); } let activeEffectScope; class EffectScope { constructor(detached = false) { this.detached = detached; /** * @internal */ this._active = true; /** * @internal */ this.effects = []; /** * @internal */ this.cleanups = []; this._isPaused = false; this.parent = activeEffectScope; if (!detached && activeEffectScope) { this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push( this ) - 1; } } get active() { return this._active; } pause() { if (this._active) { this._isPaused = true; let i, l; if (this.scopes) { for (i = 0, l = this.scopes.length; i < l; i++) { this.scopes[i].pause(); } } for (i = 0, l = this.effects.length; i < l; i++) { this.effects[i].pause(); } } } /** * Resumes the effect scope, including all child scopes and effects. */ resume() { if (this._active) { if (this._isPaused) { this._isPaused = false; let i, l; if (this.scopes) { for (i = 0, l = this.scopes.length; i < l; i++) { this.scopes[i].resume(); } } for (i = 0, l = this.effects.length; i < l; i++) { this.effects[i].resume(); } } } } run(fn) { if (this._active) { const currentEffectScope = activeEffectScope; try { activeEffectScope = this; return fn(); } finally { activeEffectScope = currentEffectScope; } } else { warn$2(`cannot run an inactive effect scope.`); } } /** * This should only be called on non-detached scopes * @internal */ on() { activeEffectScope = this; } /** * This should only be called on non-detached scopes * @internal */ off() { activeEffectScope = this.parent; } stop(fromParent) { if (this._active) { this._active = false; let i, l; for (i = 0, l = this.effects.length; i < l; i++) { this.effects[i].stop(); } this.effects.length = 0; for (i = 0, l = this.cleanups.length; i < l; i++) { this.cleanups[i](); } this.cleanups.length = 0; if (this.scopes) { for (i = 0, l = this.scopes.length; i < l; i++) { this.scopes[i].stop(true); } this.scopes.length = 0; } if (!this.detached && this.parent && !fromParent) { const last = this.parent.scopes.pop(); if (last && last !== this) { this.parent.scopes[this.index] = last; last.index = this.index; } } this.parent = void 0; } } } function effectScope(detached) { return new EffectScope(detached); } function getCurrentScope() { return activeEffectScope; } function onScopeDispose(fn, failSilently = false) { if (activeEffectScope) { activeEffectScope.cleanups.push(fn); } else if (!failSilently) { warn$2( `onScopeDispose() is called when there is no active effect scope to be associated with.` ); } } let activeSub; const pausedQueueEffects = /* @__PURE__ */ new WeakSet(); class ReactiveEffect { constructor(fn) { this.fn = fn; /** * @internal */ this.deps = void 0; /** * @internal */ this.depsTail = void 0; /** * @internal */ this.flags = 1 | 4; /** * @internal */ this.next = void 0; /** * @internal */ this.cleanup = void 0; this.scheduler = void 0; if (activeEffectScope && activeEffectScope.active) { activeEffectScope.effects.push(this); } } pause() { this.flags |= 64; } resume() { if (this.flags & 64) { this.flags &= ~64; if (pausedQueueEffects.has(this)) { pausedQueueEffects.delete(this); this.trigger(); } } } /** * @internal */ notify() { if (this.flags & 2 && !(this.flags & 32)) { return; } if (!(this.flags & 8)) { batch(this); } } run() { if (!(this.flags & 1)) { return this.fn(); } this.flags |= 2; cleanupEffect(this); prepareDeps(this); const prevEffect = activeSub; const prevShouldTrack = shouldTrack; activeSub = this; shouldTrack = true; try { return this.fn(); } finally { if (activeSub !== this) { warn$2( "Active effect was not restored correctly - this is likely a Vue internal bug." ); } cleanupDeps(this); activeSub = prevEffect; shouldTrack = prevShouldTrack; this.flags &= ~2; } } stop() { if (this.flags & 1) { for (let link = this.deps; link; link = link.nextDep) { removeSub(link); } this.deps = this.depsTail = void 0; cleanupEffect(this); this.onStop && this.onStop(); this.flags &= ~1; } } trigger() { if (this.flags & 64) { pausedQueueEffects.add(this); } else if (this.scheduler) { this.scheduler(); } else { this.runIfDirty(); } } /** * @internal */ runIfDirty() { if (isDirty(this)) { this.run(); } } get dirty() { return isDirty(this); } } let batchDepth = 0; let batchedSub; let batchedComputed; function batch(sub, isComputed = false) { sub.flags |= 8; if (isComputed) { sub.next = batchedComputed; batchedComputed = sub; return; } sub.next = batchedSub; batchedSub = sub; } function startBatch() { batchDepth++; } function endBatch() { if (--batchDepth > 0) { return; } if (batchedComputed) { let e = batchedComputed; batchedComputed = void 0; while (e) { const next = e.next; e.next = void 0; e.flags &= ~8; e = next; } } let error; while (batchedSub) { let e = batchedSub; batchedSub = void 0; while (e) { const next = e.next; e.next = void 0; e.flags &= ~8; if (e.flags & 1) { try { ; e.trigger(); } catch (err) { if (!error) error = err; } } e = next; } } if (error) throw error; } function prepareDeps(sub) { for (let link = sub.deps; link; link = link.nextDep) { link.version = -1; link.prevActiveLink = link.dep.activeLink; link.dep.activeLink = link; } } function cleanupDeps(sub) { let head; let tail = sub.depsTail; let link = tail; while (link) { const prev = link.prevDep; if (link.version === -1) { if (link === tail) tail = prev; removeSub(link); removeDep(link); } else { head = link; } link.dep.activeLink = link.prevActiveLink; link.prevActiveLink = void 0; link = prev; } sub.deps = head; sub.depsTail = tail; } function isDirty(sub) { for (let link = sub.deps; link; link = link.nextDep) { if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) { return true; } } if (sub._dirty) { return true; } return false; } function refreshComputed(computed) { if (computed.flags & 4 && !(computed.flags & 16)) { return; } computed.flags &= ~16; if (computed.globalVersion === globalVersion) { return; } computed.globalVersion = globalVersion; const dep = computed.dep; computed.flags |= 2; if (dep.version > 0 && !computed.isSSR && computed.deps && !isDirty(computed)) { computed.flags &= ~2; return; } const prevSub = activeSub; const prevShouldTrack = shouldTrack; activeSub = computed; shouldTrack = true; try { prepareDeps(computed); const value = computed.fn(computed._value); if (dep.version === 0 || hasChanged(value, computed._value)) { computed._value = value; dep.version++; } } catch (err) { dep.version++; throw err; } finally { activeSub = prevSub; shouldTrack = prevShouldTrack; cleanupDeps(computed); computed.flags &= ~2; } } function removeSub(link, soft = false) { const { dep, prevSub, nextSub } = link; if (prevSub) { prevSub.nextSub = nextSub; link.prevSub = void 0; } if (nextSub) { nextSub.prevSub = prevSub; link.nextSub = void 0; } if (dep.subsHead === link) { dep.subsHead = nextSub; } if (dep.subs === link) { dep.subs = prevSub; if (!prevSub && dep.computed) { dep.computed.flags &= ~4; for (let l = dep.computed.deps; l; l = l.nextDep) { removeSub(l, true); } } } if (!soft && !--dep.sc && dep.map) { dep.map.delete(dep.key); } } function removeDep(link) { const { prevDep, nextDep } = link; if (prevDep) { prevDep.nextDep = nextDep; link.prevDep = void 0; } if (nextDep) { nextDep.prevDep = prevDep; link.nextDep = void 0; } } function effect(fn, options) { if (fn.effect instanceof ReactiveEffect) { fn = fn.effect.fn; } const e = new ReactiveEffect(fn); if (options) { extend(e, options); } try { e.run(); } catch (err) { e.stop(); throw err; } const runner = e.run.bind(e); runner.effect = e; return runner; } function stop(runner) { runner.effect.stop(); } let shouldTrack = true; const trackStack = []; function pauseTracking() { trackStack.push(shouldTrack); shouldTrack = false; } function resetTracking() { const last = trackStack.pop(); shouldTrack = last === void 0 ? true : last; } function cleanupEffect(e) { const { cleanup } = e; e.cleanup = void 0; if (cleanup) { const prevSub = activeSub; activeSub = void 0; try { cleanup(); } finally { activeSub = prevSub; } } } let globalVersion = 0; class Link { constructor(sub, dep) { this.sub = sub; this.dep = dep; this.version = dep.version; this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0; } } class Dep { constructor(computed) { this.computed = computed; this.version = 0; /** * Link between this dep and the current active effect */ this.activeLink = void 0; /** * Doubly linked list representing the subscribing effects (tail) */ this.subs = void 0; /** * For object property deps cleanup */ this.map = void 0; this.key = void 0; /** * Subscriber counter */ this.sc = 0; { this.subsHead = void 0; } } track(debugInfo) { if (!activeSub || !shouldTrack || activeSub === this.computed) { return; } let link = this.activeLink; if (link === void 0 || link.sub !== activeSub) { link = this.activeLink = new Link(activeSub, this); if (!activeSub.deps) { activeSub.deps = activeSub.depsTail = link; } else { link.prevDep = activeSub.depsTail; activeSub.depsTail.nextDep = link; activeSub.depsTail = link; } addSub(link); } else if (link.version === -1) { link.version = this.version; if (link.nextDep) { const next = link.nextDep; next.prevDep = link.prevDep; if (link.prevDep) { link.prevDep.nextDep = next; } link.prevDep = activeSub.depsTail; link.nextDep = void 0; activeSub.depsTail.nextDep = link; activeSub.depsTail = link; if (activeSub.deps === link) { activeSub.deps = next; } } } if (activeSub.onTrack) { activeSub.onTrack( extend( { effect: activeSub }, debugInfo ) ); } return link; } trigger(debugInfo) { this.version++; globalVersion++; this.notify(debugInfo); } notify(debugInfo) { startBatch(); try { if (true) { for (let head = this.subsHead; head; head = head.nextSub) { if (head.sub.onTrigger && !(head.sub.flags & 8)) { head.sub.onTrigger( extend( { effect: head.sub }, debugInfo ) ); } } } for (let link = this.subs; link; link = link.prevSub) { if (link.sub.notify()) { ; link.sub.dep.notify(); } } } finally { endBatch(); } } } function addSub(link) { link.dep.sc++; if (link.sub.flags & 4) { const computed = link.dep.computed; if (computed && !link.dep.subs) { computed.flags |= 4 | 16; for (let l = computed.deps; l; l = l.nextDep) { addSub(l); } } const currentTail = link.dep.subs; if (currentTail !== link) { link.prevSub = currentTail; if (currentTail) currentTail.nextSub = link; } if (link.dep.subsHead === void 0) { link.dep.subsHead = link; } link.dep.subs = link; } } const targetMap = /* @__PURE__ */ new WeakMap(); const ITERATE_KEY = Symbol( "Object iterate" ); const MAP_KEY_ITERATE_KEY = Symbol( "Map keys iterate" ); const ARRAY_ITERATE_KEY = Symbol( "Array iterate" ); function track(target, type, key) { if (shouldTrack && activeSub) { let depsMap = targetMap.get(target); if (!depsMap) { targetMap.set(target, depsMap = /* @__PURE__ */ new Map()); } let dep = depsMap.get(key); if (!dep) { depsMap.set(key, dep = new Dep()); dep.map = depsMap; dep.key = key; } { dep.track({ target, type, key }); } } } function trigger(target, type, key, newValue, oldValue, oldTarget) { const depsMap = targetMap.get(target); if (!depsMap) { globalVersion++; return; } const run = (dep) => { if (dep) { { dep.trigger({ target, type, key, newValue, oldValue, oldTarget }); } } }; startBatch(); if (type === "clear") { depsMap.forEach(run); } else { const targetIsArray = isArray(target); const isArrayIndex = targetIsArray && isIntegerKey(key); if (targetIsArray && key === "length") { const newLength = Number(newValue); depsMap.forEach((dep, key2) => { if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !isSymbol(key2) && key2 >= newLength) { run(dep); } }); } else { if (key !== void 0 || depsMap.has(void 0)) { run(depsMap.get(key)); } if (isArrayIndex) { run(depsMap.get(ARRAY_ITERATE_KEY)); } switch (type) { case "add": if (!targetIsArray) { run(depsMap.get(ITERATE_KEY)); if (isMap(target)) { run(depsMap.get(MAP_KEY_ITERATE_KEY)); } } else if (isArrayIndex) { run(depsMap.get("length")); } break; case "delete": if (!targetIsArray) { run(depsMap.get(ITERATE_KEY)); if (isMap(target)) { run(depsMap.get(MAP_KEY_ITERATE_KEY)); } } break; case "set": if (isMap(target)) { run(depsMap.get(ITERATE_KEY)); } break; } } } endBatch(); } function getDepFromReactive(object, key) { const depMap = targetMap.get(object); return depMap && depMap.get(key); } function reactiveReadArray(array) { const raw = toRaw(array); if (raw === array) return raw; track(raw, "iterate", ARRAY_ITERATE_KEY); return isShallow(array) ? raw : raw.map(toReactive); } function shallowReadArray(arr) { track(arr = toRaw(arr), "iterate", ARRAY_ITERATE_KEY); return arr; } const arrayInstrumentations = { __proto__: null, [Symbol.iterator]() { return iterator(this, Symbol.iterator, toReactive); }, concat(...args) { return reactiveReadArray(this).concat( ...args.map((x) => isArray(x) ? reactiveReadArray(x) : x) ); }, entries() { return iterator(this, "entries", (value) => { value[1] = toReactive(value[1]); return value; }); }, every(fn, thisArg) { return apply(this, "every", fn, thisArg, void 0, arguments); }, filter(fn, thisArg) { return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive), arguments); }, find(fn, thisArg) { return apply(this, "find", fn, thisArg, toReactive, arguments); }, findIndex(fn, thisArg) { return apply(this, "findIndex", fn, thisArg, void 0, arguments); }, findLast(fn, thisArg) { return apply(this, "findLast", fn, thisArg, toReactive, arguments); }, findLastIndex(fn, thisArg) { return apply(this, "findLastIndex", fn, thisArg, void 0, arguments); }, // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement forEach(fn, thisArg) { return apply(this, "forEach", fn, thisArg, void 0, arguments); }, includes(...args) { return searchProxy(this, "includes", args); }, indexOf(...args) { return searchProxy(this, "indexOf", args); }, join(separator) { return reactiveReadArray(this).join(separator); }, // keys() iterator only reads `length`, no optimisation required lastIndexOf(...args) { return searchProxy(this, "lastIndexOf", args); }, map(fn, thisArg) { return apply(this, "map", fn, thisArg, void 0, arguments); }, pop() { return noTracking(this, "pop"); }, push(...args) { return noTracking(this, "push", args); }, reduce(fn, ...args) { return reduce(this, "reduce", fn, args); }, reduceRight(fn, ...args) { return reduce(this, "reduceRight", fn, args); }, shift() { return noTracking(this, "shift"); }, // slice could use ARRAY_ITERATE but also seems to beg for range tracking some(fn, thisArg) { return apply(this, "some", fn, thisArg, void 0, arguments); }, splice(...args) { return noTracking(this, "splice", args); }, toReversed() { return reactiveReadArray(this).toReversed(); }, toSorted(comparer) { return reactiveReadArray(this).toSorted(comparer); }, toSpliced(...args) { return reactiveReadArray(this).toSpliced(...args); }, unshift(...args) { return noTracking(this, "unshift", args); }, values() { return iterator(this, "values", toReactive); } }; function iterator(self, method, wrapValue) { const arr = shallowReadArray(self); const iter = arr[method](); if (arr !== self && !isShallow(self)) { iter._next = iter.next; iter.next = () => { const result = iter._next(); if (result.value) { result.value = wrapValue(result.value); } return result; }; } return iter; } const arrayProto = Array.prototype; function apply(self, method, fn, thisArg, wrappedRetFn, args) { const arr = shallowReadArray(self); const needsWrap = arr !== self && !isShallow(self); const methodFn = arr[method]; if (methodFn !== arrayProto[method]) { const result2 = methodFn.apply(self, args); return needsWrap ? toReactive(result2) : result2; } let wrappedFn = fn; if (arr !== self) { if (needsWrap) { wrappedFn = function(item, index) { return fn.call(this, toReactive(item), index, self); }; } else if (fn.length > 2) { wrappedFn = function(item, index) { return fn.call(this, item, index, self); }; } } const result = methodFn.call(arr, wrappedFn, thisArg); return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result; } function reduce(self, method, fn, args) { const arr = shallowReadArray(self); let wrappedFn = fn; if (arr !== self) { if (!isShallow(self)) { wrappedFn = function(acc, item, index) { return fn.call(this, acc, toReactive(item), index, self); }; } else if (fn.length > 3) { wrappedFn = function(acc, item, index) { return fn.call(this, acc, item, index, self); }; } } return arr[method](wrappedFn, ...args); } function searchProxy(self, method, args) { const arr = toRaw(self); track(arr, "iterate", ARRAY_ITERATE_KEY); const res = arr[method](...args); if ((res === -1 || res === false) && isProxy(args[0])) { args[0] = toRaw(args[0]); return arr[method](...args); } return res; } function noTracking(self, method, args = []) { pauseTracking(); startBatch(); const res = toRaw(self)[method].apply(self, args); endBatch(); resetTracking(); return res; } const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`); const builtInSymbols = new Set( /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol) ); function hasOwnProperty(key) { if (!isSymbol(key)) key = String(key); const obj = toRaw(this); track(obj, "has", key); return obj.hasOwnProperty(key); } class BaseReactiveHandler { constructor(_isReadonly = false, _isShallow = false) { this._isReadonly = _isReadonly; this._isShallow = _isShallow; } get(target, key, receiver) { if (key === "__v_skip") return target["__v_skip"]; const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow; if (key === "__v_isReactive") { return !isReadonly2; } else if (key === "__v_isReadonly") { return isReadonly2; } else if (key === "__v_isShallow") { return isShallow2; } else if (key === "__v_raw") { if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype // this means the receiver is a user proxy of the reactive proxy Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) { return target; } return; } const targetIsArray = isArray(target); if (!isReadonly2) { let fn; if (targetIsArray && (fn = arrayInstrumentations[key])) { return fn; } if (key === "hasOwnProperty") { return hasOwnProperty; } } const res = Reflect.get( target, key, // if this is a proxy wrapping a ref, return methods using the raw ref // as receiver so that we don't have to call `toRaw` on the ref in all // its class methods isRef(target) ? target : receiver ); if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) { return res; } if (!isReadonly2) { track(target, "get", key); } if (isShallow2) { return res; } if (isRef(res)) { return targetIsArray && isIntegerKey(key) ? res : res.value; } if (isObject(res)) { return isReadonly2 ? readonly(res) : reactive(res); } return res; } } class MutableReactiveHandler extends BaseReactiveHandler { constructor(isShallow2 = false) { super(false, isShallow2); } set(target, key, value, receiver) { let oldValue = target[key]; if (!this._isShallow) { const isOldValueReadonly = isReadonly(oldValue); if (!isShallow(value) && !isReadonly(value)) { oldValue = toRaw(oldValue); value = toRaw(value); } if (!isArray(target) && isRef(oldValue) && !isRef(value)) { if (isOldValueReadonly) { return false; } else { oldValue.value = value; return true; } } } const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key); const result = Reflect.set( target, key, value, isRef(target) ? target : receiver ); if (target === toRaw(receiver)) { if (!hadKey) { trigger(target, "add", key, value); } else if (hasChanged(value, oldValue)) { trigger(target, "set", key, value, oldValue); } } return result; } deleteProperty(target, key) { const hadKey = hasOwn(target, key); const oldValue = target[key]; const result = Reflect.deleteProperty(target, key); if (result && hadKey) { trigger(target, "delete", key, void 0, oldValue); } return result; } has(target, key) { const result = Reflect.has(target, key); if (!isSymbol(key) || !builtInSymbols.has(key)) { track(target, "has", key); } return result; } ownKeys(target) { track( target, "iterate", isArray(target) ? "length" : ITERATE_KEY ); return Reflect.ownKeys(target); } } class ReadonlyReactiveHandler extends BaseReactiveHandler { constructor(isShallow2 = false) { super(true, isShallow2); } set(target, key) { { warn$2( `Set operation on key "${String(key)}" failed: target is readonly.`, target ); } return true; } deleteProperty(target, key) { { warn$2( `Delete operation on key "${String(key)}" failed: target is readonly.`, target ); } return true; } } const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler(); const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(); const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true); const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true); const toShallow = (value) => value; const getProto = (v) => Reflect.getPrototypeOf(v); function createIterableMethod(method, isReadonly2, isShallow2) { return function(...args) { const target = this["__v_raw"]; const rawTarget = toRaw(target); const targetIsMap = isMap(rawTarget); const isPair = method === "entries" || method === Symbol.iterator && targetIsMap; const isKeyOnly = method === "keys" && targetIsMap; const innerIterator = target[method](...args); const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; !isReadonly2 && track( rawTarget, "iterate", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY ); return { // iterator protocol next() { const { value, done } = innerIterator.next(); return done ? { value, done } : { value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value), done }; }, // iterable protocol [Symbol.iterator]() { return this; } }; }; } function createReadonlyMethod(type) { return function(...args) { { const key = args[0] ? `on key "${args[0]}" ` : ``; warn$2( `${capitalize(type)} operation ${key}failed: target is readonly.`, toRaw(this) ); } return type === "delete" ? false : type === "clear" ? void 0 : this; }; } function createInstrumentations(readonly, shallow) { const instrumentations = { get(key) { const target = this["__v_raw"]; const rawTarget = toRaw(target); const rawKey = toRaw(key); if (!readonly) { if (hasChanged(key, rawKey)) { track(rawTarget, "get", key); } track(rawTarget, "get", rawKey); } const { has } = getProto(rawTarget); const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive; if (has.call(rawTarget, key)) { return wrap(target.get(key)); } else if (has.call(rawTarget, rawKey)) { return wrap(target.get(rawKey)); } else if (target !== rawTarget) { target.get(key); } }, get size() { const target = this["__v_raw"]; !readonly && track(toRaw(target), "iterate", ITERATE_KEY); return Reflect.get(target, "size", target); }, has(key) { const target = this["__v_raw"]; const rawTarget = toRaw(target); const rawKey = toRaw(key); if (!readonly) { if (hasChanged(key, rawKey)) { track(rawTarget, "has", key); } track(rawTarget, "has", rawKey); } return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey); }, forEach(callback, thisArg) { const observed = this; const target = observed["__v_raw"]; const rawTarget = toRaw(target); const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive; !readonly && track(rawTarget, "iterate", ITERATE_KEY); return target.forEach((value, key) => { return callback.call(thisArg, wrap(value), wrap(key), observed); }); } }; extend( instrumentations, readonly ? { add: createReadonlyMethod("add"), set: createReadonlyMethod("set"), delete: createReadonlyMethod("delete"), clear: createReadonlyMethod("clear") } : { add(value) { if (!shallow && !isShallow(value) && !isReadonly(value)) { value = toRaw(value); } const target = toRaw(this); const proto = getProto(target); const hadKey = proto.has.call(target, value); if (!hadKey) { target.add(value); trigger(target, "add", value, value); } return this; }, set(key, value) { if (!shallow && !isShallow(value) && !isReadonly(value)) { value = toRaw(value); } const target = toRaw(this); const { has, get } = getProto(target); let hadKey = has.call(target, key); if (!hadKey) { key = toRaw(key); hadKey = has.call(target, key); } else { checkIdentityKeys(target, has, key); } const oldValue = get.call(target, key); target.set(key, value); if (!hadKey) { trigger(target, "add", key, value); } else if (hasChanged(value, oldValue)) { trigger(target, "set", key, value, oldValue); } return this; }, delete(key) { const target = toRaw(this); const { has, get } = getProto(target); let hadKey = has.call(target, key); if (!hadKey) { key = toRaw(key); hadKey = has.call(target, key); } else { checkIdentityKeys(target, has, key); } const oldValue = get ? get.call(target, key) : void 0; const result = target.delete(key); if (hadKey) { trigger(target, "delete", key, void 0, oldValue); } return result; }, clear() { const target = toRaw(this); const hadItems = target.size !== 0; const oldTarget = isMap(target) ? new Map(target) : new Set(target) ; const result = target.clear(); if (hadItems) { trigger( target, "clear", void 0, void 0, oldTarget ); } return result; } } ); const iteratorMethods = [ "keys", "values", "entries", Symbol.iterator ]; iteratorMethods.forEach((method) => { instrumentations[method] = createIterableMethod(method, readonly, shallow); }); return instrumentations; } function createInstrumentationGetter(isReadonly2, shallow) { const instrumentations = createInstrumentations(isReadonly2, shallow); return (target, key, receiver) => { if (key === "__v_isReactive") { return !isReadonly2; } else if (key === "__v_isReadonly") { return isReadonly2; } else if (key === "__v_raw") { return target; } return Reflect.get( hasOwn(instrumentations, key) && key in target ? instrumentations : target, key, receiver ); }; } const mutableCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(false, false) }; const shallowCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(false, true) }; const readonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, false) }; const shallowReadonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, true) }; function checkIdentityKeys(target, has, key) { const rawKey = toRaw(key); if (rawKey !== key && has.call(target, rawKey)) { const type = toRawType(target); warn$2( `Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.` ); } } const reactiveMap = /* @__PURE__ */ new WeakMap(); const shallowReactiveMap = /* @__PURE__ */ new WeakMap(); const readonlyMap = /* @__PURE__ */ new WeakMap(); const shallowReadonlyMap = /* @__PURE__ */ new WeakMap(); function targetTypeMap(rawType) { switch (rawType) { case "Object": case "Array": return 1 /* COMMON */; case "Map": case "Set": case "WeakMap": case "WeakSet": return 2 /* COLLECTION */; default: return 0 /* INVALID */; } } function getTargetType(value) { return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(toRawType(value)); } function reactive(target) { if (isReadonly(target)) { return target; } return createReactiveObject( target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap ); } function shallowReactive(target) { return createReactiveObject( target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap ); } function readonly(target) { return createReactiveObject( target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap ); } function shallowReadonly(target) { return createReactiveObject( target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap ); } function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) { if (!isObject(target)) { { warn$2( `value cannot be made ${isReadonly2 ? "readonly" : "reactive"}: ${String( target )}` ); } return target; } if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) { return target; } const existingProxy = proxyMap.get(target); if (existingProxy) { return existingProxy; } const targetType = getTargetType(target); if (targetType === 0 /* INVALID */) { return target; } const proxy = new Proxy( target, targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers ); proxyMap.set(target, proxy); return proxy; } function isReactive(value) { if (isReadonly(value)) { return isReactive(value["__v_raw"]); } return !!(value && value["__v_isReactive"]); } function isReadonly(value) { return !!(value && value["__v_isReadonly"]); } function isShallow(value) { return !!(value && value["__v_isShallow"]); } function isProxy(value) { return value ? !!value["__v_raw"] : false; } function toRaw(observed) { const raw = observed && observed["__v_raw"]; return raw ? toRaw(raw) : observed; } function markRaw(value) { if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) { def(value, "__v_skip", true); } return value; } const toReactive = (value) => isObject(value) ? reactive(value) : value; const toReadonly = (value) => isObject(value) ? readonly(value) : value; function isRef(r) { return r ? r["__v_isRef"] === true : false; } function ref(value) { return createRef(value, false); } function shallowRef(value) { return createRef(value, true); } function createRef(rawValue, shallow) { if (isRef(rawValue)) { return rawValue; } return new RefImpl(rawValue, shallow); } class RefImpl { constructor(value, isShallow2) { this.dep = new Dep(); this["__v_isRef"] = true; this["__v_isShallow"] = false; this._rawValue = isShallow2 ? value : toRaw(value); this._value = isShallow2 ? value : toReactive(value); this["__v_isShallow"] = isShallow2; } get value() { { this.dep.track({ target: this, type: "get", key: "value" }); } return this._value; } set value(newValue) { const oldValue = this._rawValue; const useDirectValue = this["__v_isShallow"] || isShallow(newValue) || isReadonly(newValue); newValue = useDirectValue ? newValue : toRaw(newValue); if (hasChanged(newValue, oldValue)) { this._rawValue = newValue; this._value = useDirectValue ? newValue : toReactive(newValue); { this.dep.trigger({ target: this, type: "set", key: "value", newValue, oldValue }); } } } } function triggerRef(ref2) { if (ref2.dep) { { ref2.dep.trigger({ target: ref2, type: "set", key: "value", newValue: ref2._value }); } } } function unref(ref2) { return isRef(ref2) ? ref2.value : ref2; } function toValue(source) { return isFunction(source) ? source() : unref(source); } const shallowUnwrapHandlers = { get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)), set: (target, key, value, receiver) => { const oldValue = target[key]; if (isRef(oldValue) && !isRef(value)) { oldValue.value = value; return true; } else { return Reflect.set(target, key, value, receiver); } } }; function proxyRefs(objectWithRefs) { return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers); } class CustomRefImpl { constructor(factory) { this["__v_isRef"] = true; this._value = void 0; const dep = this.dep = new Dep(); const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep)); this._get = get; this._set = set; } get value() { return this._value = this._get(); } set value(newVal) { this._set(newVal); } } function customRef(factory) { return new CustomRefImpl(factory); } function toRefs(object) { if (!isProxy(object)) { warn$2(`toRefs() expects a reactive object but received a plain one.`); } const ret = isArray(object) ? new Array(object.length) : {}; for (const key in object) { ret[key] = propertyToRef(object, key); } return ret; } class ObjectRefImpl { constructor(_object, _key, _defaultValue) { this._object = _object; this._key = _key; this._defaultValue = _defaultValue; this["__v_isRef"] = true; this._value = void 0; } get value() { const val = this._object[this._key]; return this._value = val === void 0 ? this._defaultValue : val; } set value(newVal) { this._object[this._key] = newVal; } get dep() { return getDepFromReactive(toRaw(this._object), this._key); } } class GetterRefImpl { constructor(_getter) { this._getter = _getter; this["__v_isRef"] = true; this["__v_isReadonly"] = true; this._value = void 0; } get value() { return this._value = this._getter(); } } function toRef(source, key, defaultValue) { if (isRef(source)) { return source; } else if (isFunction(source)) { return new GetterRefImpl(source); } else if (isObject(source) && arguments.length > 1) { return propertyToRef(source, key, defaultValue); } else { return ref(source); } } function propertyToRef(source, key, defaultValue) { const val = source[key]; return isRef(val) ? val : new ObjectRefImpl(source, key, defaultValue); } class ComputedRefImpl { constructor(fn, setter, isSSR) { this.fn = fn; this.setter = setter; /** * @internal */ this._value = void 0; /** * @internal */ this.dep = new Dep(this); /** * @internal */ this.__v_isRef = true; // TODO isolatedDeclarations "__v_isReadonly" // A computed is also a subscriber that tracks other deps /** * @internal */ this.deps = void 0; /** * @internal */ this.depsTail = void 0; /** * @internal */ this.flags = 16; /** * @internal */ this.globalVersion = globalVersion - 1; /** * @internal */ this.next = void 0; // for backwards compat this.effect = this; this["__v_isReadonly"] = !setter; this.isSSR = isSSR; } /** * @internal */ notify() { this.flags |= 16; if (!(this.flags & 8) && // avoid infinite self recursion activeSub !== this) { batch(this, true); return true; } } get value() { const link = this.dep.track({ target: this, type: "get", key: "value" }) ; refreshComputed(this); if (link) { link.version = this.dep.version; } return this._value; } set value(newValue) { if (this.setter) { this.setter(newValue); } else { warn$2("Write operation failed: computed value is readonly"); } } } function computed$1(getterOrOptions, debugOptions, isSSR = false) { let getter; let setter; if (isFunction(getterOrOptions)) { getter = getterOrOptions; } else { getter = getterOrOptions.get; setter = getterOrOptions.set; } const cRef = new ComputedRefImpl(getter, setter, isSSR); if (debugOptions && !isSSR) { cRef.onTrack = debugOptions.onTrack; cRef.onTrigger = debugOptions.onTrigger; } return cRef; } const TrackOpTypes = { "GET": "get", "HAS": "has", "ITERATE": "iterate" }; const TriggerOpTypes = { "SET": "set", "ADD": "add", "DELETE": "delete", "CLEAR": "clear" }; const INITIAL_WATCHER_VALUE = {}; const cleanupMap = /* @__PURE__ */ new WeakMap(); let activeWatcher = void 0; function getCurrentWatcher() { return activeWatcher; } function onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) { if (owner) { let cleanups = cleanupMap.get(owner); if (!cleanups) cleanupMap.set(owner, cleanups = []); cleanups.push(cleanupFn); } else if (!failSilently) { warn$2( `onWatcherCleanup() was called when there was no active watcher to associate with.` ); } } function watch$1(source, cb, options = EMPTY_OBJ) { const { immediate, deep, once, scheduler, augmentJob, call } = options; const warnInvalidSource = (s) => { (options.onWarn || warn$2)( `Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.` ); }; const reactiveGetter = (source2) => { if (deep) return source2; if (isShallow(source2) || deep === false || deep === 0) return traverse(source2, 1); return traverse(source2); }; let effect; let getter; let cleanup; let boundCleanup; let forceTrigger = false; let isMultiSource = false; if (isRef(source)) { getter = () => source.value; forceTrigger = isShallow(source); } else if (isReactive(source)) { getter = () => reactiveGetter(source); forceTrigger = true; } else if (isArray(source)) { isMultiSource = true; forceTrigger = source.some((s) => isReactive(s) || isShallow(s)); getter = () => source.map((s) => { if (isRef(s)) { return s.value; } else if (isReactive(s)) { return reactiveGetter(s); } else if (isFunction(s)) { return call ? call(s, 2) : s(); } else { warnInvalidSource(s); } }); } else if (isFunction(source)) { if (cb) { getter = call ? () => call(source, 2) : source; } else { getter = () => { if (cleanup) { pauseTracking(); try { cleanup(); } finally { resetTracking(); } } const currentEffect = activeWatcher; activeWatcher = effect; try { return call ? call(source, 3, [boundCleanup]) : source(boundCleanup); } finally { activeWatcher = currentEffect; } }; } } else { getter = NOOP; warnInvalidSource(source); } if (cb && deep) { const baseGetter = getter; const depth = deep === true ? Infinity : deep; getter = () => traverse(baseGetter(), depth); } const scope = getCurrentScope(); const watchHandle = () => { effect.stop(); if (scope && scope.active) { remove(scope.effects, effect); } }; if (once && cb) { const _cb = cb; cb = (...args) => { _cb(...args); watchHandle(); }; } let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE; const job = (immediateFirstRun) => { if (!(effect.flags & 1) || !effect.dirty && !immediateFirstRun) { return; } if (cb) { const newValue = effect.run(); if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) { if (cleanup) { cleanup(); } const currentWatcher = activeWatcher; activeWatcher = effect; try { const args = [ newValue, // pass undefined as the old value when it's changed for the first time oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue, boundCleanup ]; call ? call(cb, 3, args) : ( // @ts-expect-error cb(...args) ); oldValue = newValue; } finally { activeWatcher = currentWatcher; } } } else { effect.run(); } }; if (augmentJob) { augmentJob(job); } effect = new ReactiveEffect(getter); effect.scheduler = scheduler ? () => scheduler(job, false) : job; boundCleanup = (fn) => onWatcherCleanup(fn, false, effect); cleanup = effect.onStop = () => { const cleanups = cleanupMap.get(effect); if (cleanups) { if (call) { call(cleanups, 4); } else { for (const cleanup2 of cleanups) cleanup2(); } cleanupMap.delete(effect); } }; { effect.onTrack = options.onTrack; effect.onTrigger = options.onTrigger; } if (cb) { if (immediate) { job(true); } else { oldValue = effect.run(); } } else if (scheduler) { scheduler(job.bind(null, true), true); } else { effect.run(); } watchHandle.pause = effect.pause.bind(effect); watchHandle.resume = effect.resume.bind(effect); watchHandle.stop = watchHandle; return watchHandle; } function traverse(value, depth = Infinity, seen) { if (depth <= 0 || !isObject(value) || value["__v_skip"]) { return value; } seen = seen || /* @__PURE__ */ new Set(); if (seen.has(value)) { return value; } seen.add(value); depth--; if (isRef(value)) { traverse(value.value, depth, seen); } else if (isArray(value)) { for (let i = 0; i < value.length; i++) { traverse(value[i], depth, seen); } } else if (isSet(value) || isMap(value)) { value.forEach((v) => { traverse(v, depth, seen); }); } else if (isPlainObject(value)) { for (const key in value) { traverse(value[key], depth, seen); } for (const key of Object.getOwnPropertySymbols(value)) { if (Object.prototype.propertyIsEnumerable.call(value, key)) { traverse(value[key], depth, seen); } } } return value; } const stack$1 = []; function pushWarningContext(vnode) { stack$1.push(vnode); } function popWarningContext() { stack$1.pop(); } let isWarning = false; function warn$1(msg, ...args) { if (isWarning) return; isWarning = true; pauseTracking(); const instance = stack$1.length ? stack$1[stack$1.length - 1].component : null; const appWarnHandler = instance && instance.appContext.config.warnHandler; const trace = getComponentTrace(); if (appWarnHandler) { callWithErrorHandling( appWarnHandler, instance, 11, [ // eslint-disable-next-line no-restricted-syntax msg + args.map((a) => { var _a, _b; return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a); }).join(""), instance && instance.proxy, trace.map( ({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>` ).join("\n"), trace ] ); } else { const warnArgs = [`[Vue warn]: ${msg}`, ...args]; if (trace.length && // avoid spamming console during tests true) { warnArgs.push(` `, ...formatTrace(trace)); } console.warn(...warnArgs); } resetTracking(); isWarning = false; } function getComponentTrace() { let currentVNode = stack$1[stack$1.length - 1]; if (!currentVNode) { return []; } const normalizedStack = []; while (currentVNode) { const last = normalizedStack[0]; if (last && last.vnode === currentVNode) { last.recurseCount++; } else { normalizedStack.push({ vnode: currentVNode, recurseCount: 0 }); } const parentInstance = currentVNode.component && currentVNode.component.parent; currentVNode = parentInstance && parentInstance.vnode; } return normalizedStack; } function formatTrace(trace) { const logs = []; trace.forEach((entry, i) => { logs.push(...i === 0 ? [] : [` `], ...formatTraceEntry(entry)); }); return logs; } function formatTraceEntry({ vnode, recurseCount }) { const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``; const isRoot = vnode.component ? vnode.component.parent == null : false; const open = ` at <${formatComponentName( vnode.component, vnode.type, isRoot )}`; const close = `>` + postfix; return vnode.props ? [open, ...formatProps(vnode.props), close] : [open + close]; } function formatProps(props) { const res = []; const keys = Object.keys(props); keys.slice(0, 3).forEach((key) => { res.push(...formatProp(key, props[key])); }); if (keys.length > 3) { res.push(` ...`); } return res; } function formatProp(key, value, raw) { if (isString(value)) { value = JSON.stringify(value); return raw ? value : [`${key}=${value}`]; } else if (typeof value === "number" || typeof value === "boolean" || value == null) { return raw ? value : [`${key}=${value}`]; } else if (isRef(value)) { value = formatProp(key, toRaw(value.value), true); return raw ? value : [`${key}=Ref<`, value, `>`]; } else if (isFunction(value)) { return [`${key}=fn${value.name ? `<${value.name}>` : ``}`]; } else { value = toRaw(value); return raw ? value : [`${key}=`, value]; } } function assertNumber(val, type) { if (val === void 0) { return; } else if (typeof val !== "number") { warn$1(`${type} is not a valid number - got ${JSON.stringify(val)}.`); } else if (isNaN(val)) { warn$1(`${type} is NaN - the duration expression might be incorrect.`); } } const ErrorCodes = { "SETUP_FUNCTION": 0, "0": "SETUP_FUNCTION", "RENDER_FUNCTION": 1, "1": "RENDER_FUNCTION", "NATIVE_EVENT_HANDLER": 5, "5": "NATIVE_EVENT_HANDLER", "COMPONENT_EVENT_HANDLER": 6, "6": "COMPONENT_EVENT_HANDLER", "VNODE_HOOK": 7, "7": "VNODE_HOOK", "DIRECTIVE_HOOK": 8, "8": "DIRECTIVE_HOOK", "TRANSITION_HOOK": 9, "9": "TRANSITION_HOOK", "APP_ERROR_HANDLER": 10, "10": "APP_ERROR_HANDLER", "APP_WARN_HANDLER": 11, "11": "APP_WARN_HANDLER", "FUNCTION_REF": 12, "12": "FUNCTION_REF", "ASYNC_COMPONENT_LOADER": 13, "13": "ASYNC_COMPONENT_LOADER", "SCHEDULER": 14, "14": "SCHEDULER", "COMPONENT_UPDATE": 15, "15": "COMPONENT_UPDATE", "APP_UNMOUNT_CLEANUP": 16, "16": "APP_UNMOUNT_CLEANUP" }; const ErrorTypeStrings$1 = { ["sp"]: "serverPrefetch hook", ["bc"]: "beforeCreate hook", ["c"]: "created hook", ["bm"]: "beforeMount hook", ["m"]: "mounted hook", ["bu"]: "beforeUpdate hook", ["u"]: "updated", ["bum"]: "beforeUnmount hook", ["um"]: "unmounted hook", ["a"]: "activated hook", ["da"]: "deactivated hook", ["ec"]: "errorCaptured hook", ["rtc"]: "renderTracked hook", ["rtg"]: "renderTriggered hook", [0]: "setup function", [1]: "render function", [2]: "watcher getter", [3]: "watcher callback", [4]: "watcher cleanup function", [5]: "native event handler", [6]: "component event handler", [7]: "vnode hook", [8]: "directive hook", [9]: "transition hook", [10]: "app errorHandler", [11]: "app warnHandler", [12]: "ref function", [13]: "async component loader", [14]: "scheduler flush", [15]: "component update", [16]: "app unmount cleanup function" }; function callWithErrorHandling(fn, instance, type, args) { try { return args ? fn(...args) : fn(); } catch (err) { handleError(err, instance, type); } } function callWithAsyncErrorHandling(fn, instance, type, args) { if (isFunction(fn)) { const res = callWithErrorHandling(fn, instance, type, args); if (res && isPromise(res)) { res.catch((err) => { handleError(err, instance, type); }); } return res; } if (isArray(fn)) { const values = []; for (let i = 0; i < fn.length; i++) { values.push(callWithAsyncErrorHandling(fn[i], instance, type, args)); } return values; } else { warn$1( `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof fn}` ); } } function handleError(err, instance, type, throwInDev = true) { const contextVNode = instance ? instance.vnode : null; const { errorHandler, throwUnhandledErrorInProduction } = instance && instance.appContext.config || EMPTY_OBJ; if (instance) { let cur = instance.parent; const exposedInstance = instance.proxy; const errorInfo = ErrorTypeStrings$1[type] ; while (cur) { const errorCapturedHooks = cur.ec; if (errorCapturedHooks) { for (let i = 0; i < errorCapturedHooks.length; i++) { if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) { return; } } } cur = cur.parent; } if (errorHandler) { pauseTracking(); callWithErrorHandling(errorHandler, null, 10, [ err, exposedInstance, errorInfo ]); resetTracking(); return; } } logError(err, type, contextVNode, throwInDev, throwUnhandledErrorInProduction); } function logError(err, type, contextVNode, throwInDev = true, throwInProd = false) { { const info = ErrorTypeStrings$1[type]; if (contextVNode) { pushWarningContext(contextVNode); } warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`); if (contextVNode) { popWarningContext(); } if (throwInDev) { throw err; } else { console.error(err); } } } const queue = []; let flushIndex = -1; const pendingPostFlushCbs = []; let activePostFlushCbs = null; let postFlushIndex = 0; const resolvedPromise = /* @__PURE__ */ Promise.resolve(); let currentFlushPromise = null; const RECURSION_LIMIT = 100; function nextTick(fn) { const p = currentFlushPromise || resolvedPromise; return fn ? p.then(this ? fn.bind(this) : fn) : p; } function findInsertionIndex(id) { let start = flushIndex + 1; let end = queue.length; while (start < end) { const middle = start + end >>> 1; const middleJob = queue[middle]; const middleJobId = getId(middleJob); if (middleJobId < id || middleJobId === id && middleJob.flags & 2) { start = middle + 1; } else { end = middle; } } return start; } function queueJob(job) { if (!(job.flags & 1)) { const jobId = getId(job); const lastJob = queue[queue.length - 1]; if (!lastJob || // fast path when the job id is larger than the tail !(job.flags & 2) && jobId >= getId(lastJob)) { queue.push(job); } else { queue.splice(findInsertionIndex(jobId), 0, job); } job.flags |= 1; queueFlush(); } } function queueFlush() { if (!currentFlushPromise) { currentFlushPromise = resolvedPromise.then(flushJobs); } } function queuePostFlushCb(cb) { if (!isArray(cb)) { if (activePostFlushCbs && cb.id === -1) { activePostFlushCbs.splice(postFlushIndex + 1, 0, cb); } else if (!(cb.flags & 1)) { pendingPostFlushCbs.push(cb); cb.flags |= 1; } } else { pendingPostFlushCbs.push(...cb); } queueFlush(); } function flushPreFlushCbs(instance, seen, i = flushIndex + 1) { { seen = seen || /* @__PURE__ */ new Map(); } for (; i < queue.length; i++) { const cb = queue[i]; if (cb && cb.flags & 2) { if (instance && cb.id !== instance.uid) { continue; } if (checkRecursiveUpdates(seen, cb)) { continue; } queue.splice(i, 1); i--; if (cb.flags & 4) { cb.flags &= ~1; } cb(); if (!(cb.flags & 4)) { cb.flags &= ~1; } } } } function flushPostFlushCbs(seen) { if (pendingPostFlushCbs.length) { const deduped = [...new Set(pendingPostFlushCbs)].sort( (a, b) => getId(a) - getId(b) ); pendingPostFlushCbs.length = 0; if (activePostFlushCbs) { activePostFlushCbs.push(...deduped); return; } activePostFlushCbs = deduped; { seen = seen || /* @__PURE__ */ new Map(); } for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) { const cb = activePostFlushCbs[postFlushIndex]; if (checkRecursiveUpdates(seen, cb)) { continue; } if (cb.flags & 4) { cb.flags &= ~1; } if (!(cb.flags & 8)) cb(); cb.flags &= ~1; } activePostFlushCbs = null; postFlushIndex = 0; } } const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id; function flushJobs(seen) { { seen = seen || /* @__PURE__ */ new Map(); } const check = (job) => checkRecursiveUpdates(seen, job) ; try { for (flushIndex = 0; flushIndex < queue.length; flushIndex++) { const job = queue[flushIndex]; if (job && !(job.flags & 8)) { if (check(job)) { continue; } if (job.flags & 4) { job.flags &= ~1; } callWithErrorHandling( job, job.i, job.i ? 15 : 14 ); if (!(job.flags & 4)) { job.flags &= ~1; } } } } finally { for (; flushIndex < queue.length; flushIndex++) { const job = queue[flushIndex]; if (job) { job.flags &= ~1; } } flushIndex = -1; queue.length = 0; flushPostFlushCbs(seen); currentFlushPromise = null; if (queue.length || pendingPostFlushCbs.length) { flushJobs(seen); } } } function checkRecursiveUpdates(seen, fn) { const count = seen.get(fn) || 0; if (count > RECURSION_LIMIT) { const instance = fn.i; const componentName = instance && getComponentName(instance.type); handleError( `Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`, null, 10 ); return true; } seen.set(fn, count + 1); return false; } let isHmrUpdating = false; const hmrDirtyComponents = /* @__PURE__ */ new Map(); { getGlobalThis().__VUE_HMR_RUNTIME__ = { createRecord: tryWrap(createRecord), rerender: tryWrap(rerender), reload: tryWrap(reload) }; } const map = /* @__PURE__ */ new Map(); function registerHMR(instance) { const id = instance.type.__hmrId; let record = map.get(id); if (!record) { createRecord(id, instance.type); record = map.get(id); } record.instances.add(instance); } function unregisterHMR(instance) { map.get(instance.type.__hmrId).instances.delete(instance); } function createRecord(id, initialDef) { if (map.has(id)) { return false; } map.set(id, { initialDef: normalizeClassComponent(initialDef), instances: /* @__PURE__ */ new Set() }); return true; } function normalizeClassComponent(component) { return isClassComponent(component) ? component.__vccOpts : component; } function rerender(id, newRender) { const record = map.get(id); if (!record) { return; } record.initialDef.render = newRender; [...record.instances].forEach((instance) => { if (newRender) { instance.render = newRender; normalizeClassComponent(instance.type).render = newRender; } instance.renderCache = []; isHmrUpdating = true; instance.update(); isHmrUpdating = false; }); } function reload(id, newComp) { const record = map.get(id); if (!record) return; newComp = normalizeClassComponent(newComp); updateComponentDef(record.initialDef, newComp); const instances = [...record.instances]; for (let i = 0; i < instances.length; i++) { const instance = instances[i]; const oldComp = normalizeClassComponent(instance.type); let dirtyInstances = hmrDirtyComponents.get(oldComp); if (!dirtyInstances) { if (oldComp !== record.initialDef) { updateComponentDef(oldComp, newComp); } hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set()); } dirtyInstances.add(instance); instance.appContext.propsCache.delete(instance.type); instance.appContext.emitsCache.delete(instance.type); instance.appContext.optionsCache.delete(instance.type); if (instance.ceReload) { dirtyInstances.add(instance); instance.ceReload(newComp.styles); dirtyInstances.delete(instance); } else if (instance.parent) { queueJob(() => { isHmrUpdating = true; instance.parent.update(); isHmrUpdating = false; dirtyInstances.delete(instance); }); } else if (instance.appContext.reload) { instance.appContext.reload(); } else if (typeof window !== "undefined") { window.location.reload(); } else { console.warn( "[HMR] Root or manually mounted instance modified. Full reload required." ); } if (instance.root.ce && instance !== instance.root) { instance.root.ce._removeChildStyle(oldComp); } } queuePostFlushCb(() => { hmrDirtyComponents.clear(); }); } function updateComponentDef(oldComp, newComp) { extend(oldComp, newComp); for (const key in oldComp) { if (key !== "__file" && !(key in newComp)) { delete oldComp[key]; } } } function tryWrap(fn) { return (id, arg) => { try { return fn(id, arg); } catch (e) { console.error(e); console.warn( `[HMR] Something went wrong during Vue component hot-reload. Full reload required.` ); } }; } let devtools$1; let buffer = []; let devtoolsNotInstalled = false; function emit$1(event, ...args) { if (devtools$1) { devtools$1.emit(event, ...args); } else if (!devtoolsNotInstalled) { buffer.push({ event, args }); } } function setDevtoolsHook$1(hook, target) { var _a, _b; devtools$1 = hook; if (devtools$1) { devtools$1.enabled = true; buffer.forEach(({ event, args }) => devtools$1.emit(event, ...args)); buffer = []; } else if ( // handle late devtools injection - only do this if we are in an actual // browser environment to avoid the timer handle stalling test runner exit // (#4815) typeof window !== "undefined" && // some envs mock window but not fully window.HTMLElement && // also exclude jsdom // eslint-disable-next-line no-restricted-syntax !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom")) ) { const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []; replay.push((newHook) => { setDevtoolsHook$1(newHook, target); }); setTimeout(() => { if (!devtools$1) { target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null; devtoolsNotInstalled = true; buffer = []; } }, 3e3); } else { devtoolsNotInstalled = true; buffer = []; } } function devtoolsInitApp(app, version) { emit$1("app:init" /* APP_INIT */, app, version, { Fragment, Text, Comment, Static }); } function devtoolsUnmountApp(app) { emit$1("app:unmount" /* APP_UNMOUNT */, app); } const devtoolsComponentAdded = /* @__PURE__ */ createDevtoolsComponentHook("component:added" /* COMPONENT_ADDED */); const devtoolsComponentUpdated = /* @__PURE__ */ createDevtoolsComponentHook("component:updated" /* COMPONENT_UPDATED */); const _devtoolsComponentRemoved = /* @__PURE__ */ createDevtoolsComponentHook( "component:removed" /* COMPONENT_REMOVED */ ); const devtoolsComponentRemoved = (component) => { if (devtools$1 && typeof devtools$1.cleanupBuffer === "function" && // remove the component if it wasn't buffered !devtools$1.cleanupBuffer(component)) { _devtoolsComponentRemoved(component); } }; /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function createDevtoolsComponentHook(hook) { return (component) => { emit$1( hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : void 0, component ); }; } const devtoolsPerfStart = /* @__PURE__ */ createDevtoolsPerformanceHook("perf:start" /* PERFORMANCE_START */); const devtoolsPerfEnd = /* @__PURE__ */ createDevtoolsPerformanceHook("perf:end" /* PERFORMANCE_END */); function createDevtoolsPerformanceHook(hook) { return (component, type, time) => { emit$1(hook, component.appContext.app, component.uid, component, type, time); }; } function devtoolsComponentEmit(component, event, params) { emit$1( "component:emit" /* COMPONENT_EMIT */, component.appContext.app, component, event, params ); } let currentRenderingInstance = null; let currentScopeId = null; function setCurrentRenderingInstance(instance) { const prev = currentRenderingInstance; currentRenderingInstance = instance; currentScopeId = instance && instance.type.__scopeId || null; return prev; } function pushScopeId(id) { currentScopeId = id; } function popScopeId() { currentScopeId = null; } const withScopeId = (_id) => withCtx; function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) { if (!ctx) return fn; if (fn._n) { return fn; } const renderFnWithContext = (...args) => { if (renderFnWithContext._d) { setBlockTracking(-1); } const prevInstance = setCurrentRenderingInstance(ctx); let res; try { res = fn(...args); } finally { setCurrentRenderingInstance(prevInstance); if (renderFnWithContext._d) { setBlockTracking(1); } } { devtoolsComponentUpdated(ctx); } return res; }; renderFnWithContext._n = true; renderFnWithContext._c = true; renderFnWithContext._d = true; return renderFnWithContext; } function validateDirectiveName(name) { if (isBuiltInDirective(name)) { warn$1("Do not use built-in directive ids as custom directive id: " + name); } } function withDirectives(vnode, directives) { if (currentRenderingInstance === null) { warn$1(`withDirectives can only be used inside render functions.`); return vnode; } const instance = getComponentPublicInstance(currentRenderingInstance); const bindings = vnode.dirs || (vnode.dirs = []); for (let i = 0; i < directives.length; i++) { let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i]; if (dir) { if (isFunction(dir)) { dir = { mounted: dir, updated: dir }; } if (dir.deep) { traverse(value); } bindings.push({ dir, instance, value, oldValue: void 0, arg, modifiers }); } } return vnode; } function invokeDirectiveHook(vnode, prevVNode, instance, name) { const bindings = vnode.dirs; const oldBindings = prevVNode && prevVNode.dirs; for (let i = 0; i < bindings.length; i++) { const binding = bindings[i]; if (oldBindings) { binding.oldValue = oldBindings[i].value; } let hook = binding.dir[name]; if (hook) { pauseTracking(); callWithAsyncErrorHandling(hook, instance, 8, [ vnode.el, binding, vnode, prevVNode ]); resetTracking(); } } } const TeleportEndKey = Symbol("_vte"); const isTeleport = (type) => type.__isTeleport; const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === ""); const isTeleportDeferred = (props) => props && (props.defer || props.defer === ""); const isTargetSVG = (target) => typeof SVGElement !== "undefined" && target instanceof SVGElement; const isTargetMathML = (target) => typeof MathMLElement === "function" && target instanceof MathMLElement; const resolveTarget = (props, select) => { const targetSelector = props && props.to; if (isString(targetSelector)) { if (!select) { warn$1( `Current renderer does not support string target for Teleports. (missing querySelector renderer option)` ); return null; } else { const target = select(targetSelector); if (!target && !isTeleportDisabled(props)) { warn$1( `Failed to locate Teleport target with selector "${targetSelector}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.` ); } return target; } } else { if (!targetSelector && !isTeleportDisabled(props)) { warn$1(`Invalid Teleport target: ${targetSelector}`); } return targetSelector; } }; const TeleportImpl = { name: "Teleport", __isTeleport: true, process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals) { const { mc: mountChildren, pc: patchChildren, pbc: patchBlockChildren, o: { insert, querySelector, createText, createComment } } = internals; const disabled = isTeleportDisabled(n2.props); let { shapeFlag, children, dynamicChildren } = n2; if (isHmrUpdating) { optimized = false; dynamicChildren = null; } if (n1 == null) { const placeholder = n2.el = createComment("teleport start") ; const mainAnchor = n2.anchor = createComment("teleport end") ; insert(placeholder, container, anchor); insert(mainAnchor, container, anchor); const mount = (container2, anchor2) => { if (shapeFlag & 16) { if (parentComponent && parentComponent.isCE) { parentComponent.ce._teleportTarget = container2; } mountChildren( children, container2, anchor2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); } }; const mountToTarget = () => { const target = n2.target = resolveTarget(n2.props, querySelector); const targetAnchor = prepareAnchor(target, n2, createText, insert); if (target) { if (namespace !== "svg" && isTargetSVG(target)) { namespace = "svg"; } else if (namespace !== "mathml" && isTargetMathML(target)) { namespace = "mathml"; } if (!disabled) { mount(target, targetAnchor); updateCssVars(n2, false); } } else if (!disabled) { warn$1( "Invalid Teleport target on mount:", target, `(${typeof target})` ); } }; if (disabled) { mount(container, mainAnchor); updateCssVars(n2, true); } if (isTeleportDeferred(n2.props)) { queuePostRenderEffect(() => { mountToTarget(); n2.el.__isMounted = true; }, parentSuspense); } else { mountToTarget(); } } else { if (isTeleportDeferred(n2.props) && !n1.el.__isMounted) { queuePostRenderEffect(() => { TeleportImpl.process( n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals ); delete n1.el.__isMounted; }, parentSuspense); return; } n2.el = n1.el; n2.targetStart = n1.targetStart; const mainAnchor = n2.anchor = n1.anchor; const target = n2.target = n1.target; const targetAnchor = n2.targetAnchor = n1.targetAnchor; const wasDisabled = isTeleportDisabled(n1.props); const currentContainer = wasDisabled ? container : target; const currentAnchor = wasDisabled ? mainAnchor : targetAnchor; if (namespace === "svg" || isTargetSVG(target)) { namespace = "svg"; } else if (namespace === "mathml" || isTargetMathML(target)) { namespace = "mathml"; } if (dynamicChildren) { patchBlockChildren( n1.dynamicChildren, dynamicChildren, currentContainer, parentComponent, parentSuspense, namespace, slotScopeIds ); traverseStaticChildren(n1, n2, true); } else if (!optimized) { patchChildren( n1, n2, currentContainer, currentAnchor, parentComponent, parentSuspense, namespace, slotScopeIds, false ); } if (disabled) { if (!wasDisabled) { moveTeleport( n2, container, mainAnchor, internals, 1 ); } else { if (n2.props && n1.props && n2.props.to !== n1.props.to) { n2.props.to = n1.props.to; } } } else { if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) { const nextTarget = n2.target = resolveTarget( n2.props, querySelector ); if (nextTarget) { moveTeleport( n2, nextTarget, null, internals, 0 ); } else { warn$1( "Invalid Teleport target on update:", target, `(${typeof target})` ); } } else if (wasDisabled) { moveTeleport( n2, target, targetAnchor, internals, 1 ); } } updateCssVars(n2, disabled); } }, remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) { const { shapeFlag, children, anchor, targetStart, targetAnchor, target, props } = vnode; if (target) { hostRemove(targetStart); hostRemove(targetAnchor); } doRemove && hostRemove(anchor); if (shapeFlag & 16) { const shouldRemove = doRemove || !isTeleportDisabled(props); for (let i = 0; i < children.length; i++) { const child = children[i]; unmount( child, parentComponent, parentSuspense, shouldRemove, !!child.dynamicChildren ); } } }, move: moveTeleport, hydrate: hydrateTeleport }; function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2) { if (moveType === 0) { insert(vnode.targetAnchor, container, parentAnchor); } const { el, anchor, shapeFlag, children, props } = vnode; const isReorder = moveType === 2; if (isReorder) { insert(el, container, parentAnchor); } if (!isReorder || isTeleportDisabled(props)) { if (shapeFlag & 16) { for (let i = 0; i < children.length; i++) { move( children[i], container, parentAnchor, 2 ); } } } if (isReorder) { insert(anchor, container, parentAnchor); } } function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, { o: { nextSibling, parentNode, querySelector, insert, createText } }, hydrateChildren) { const target = vnode.target = resolveTarget( vnode.props, querySelector ); if (target) { const disabled = isTeleportDisabled(vnode.props); const targetNode = target._lpa || target.firstChild; if (vnode.shapeFlag & 16) { if (disabled) { vnode.anchor = hydrateChildren( nextSibling(node), vnode, parentNode(node), parentComponent, parentSuspense, slotScopeIds, optimized ); vnode.targetStart = targetNode; vnode.targetAnchor = targetNode && nextSibling(targetNode); } else { vnode.anchor = nextSibling(node); let targetAnchor = targetNode; while (targetAnchor) { if (targetAnchor && targetAnchor.nodeType === 8) { if (targetAnchor.data === "teleport start anchor") { vnode.targetStart = targetAnchor; } else if (targetAnchor.data === "teleport anchor") { vnode.targetAnchor = targetAnchor; target._lpa = vnode.targetAnchor && nextSibling(vnode.targetAnchor); break; } } targetAnchor = nextSibling(targetAnchor); } if (!vnode.targetAnchor) { prepareAnchor(target, vnode, createText, insert); } hydrateChildren( targetNode && nextSibling(targetNode), vnode, target, parentComponent, parentSuspense, slotScopeIds, optimized ); } } updateCssVars(vnode, disabled); } return vnode.anchor && nextSibling(vnode.anchor); } const Teleport = TeleportImpl; function updateCssVars(vnode, isDisabled) { const ctx = vnode.ctx; if (ctx && ctx.ut) { let node, anchor; if (isDisabled) { node = vnode.el; anchor = vnode.anchor; } else { node = vnode.targetStart; anchor = vnode.targetAnchor; } while (node && node !== anchor) { if (node.nodeType === 1) node.setAttribute("data-v-owner", ctx.uid); node = node.nextSibling; } ctx.ut(); } } function prepareAnchor(target, vnode, createText, insert) { const targetStart = vnode.targetStart = createText(""); const targetAnchor = vnode.targetAnchor = createText(""); targetStart[TeleportEndKey] = targetAnchor; if (target) { insert(targetStart, target); insert(targetAnchor, target); } return targetAnchor; } const leaveCbKey = Symbol("_leaveCb"); const enterCbKey$1 = Symbol("_enterCb"); function useTransitionState() { const state = { isMounted: false, isLeaving: false, isUnmounting: false, leavingVNodes: /* @__PURE__ */ new Map() }; onMounted(() => { state.isMounted = true; }); onBeforeUnmount(() => { state.isUnmounting = true; }); return state; } const TransitionHookValidator = [Function, Array]; const BaseTransitionPropsValidators = { mode: String, appear: Boolean, persisted: Boolean, // enter onBeforeEnter: TransitionHookValidator, onEnter: TransitionHookValidator, onAfterEnter: TransitionHookValidator, onEnterCancelled: TransitionHookValidator, // leave onBeforeLeave: TransitionHookValidator, onLeave: TransitionHookValidator, onAfterLeave: TransitionHookValidator, onLeaveCancelled: TransitionHookValidator, // appear onBeforeAppear: TransitionHookValidator, onAppear: TransitionHookValidator, onAfterAppear: TransitionHookValidator, onAppearCancelled: TransitionHookValidator }; const recursiveGetSubtree = (instance) => { const subTree = instance.subTree; return subTree.component ? recursiveGetSubtree(subTree.component) : subTree; }; const BaseTransitionImpl = { name: `BaseTransition`, props: BaseTransitionPropsValidators, setup(props, { slots }) { const instance = getCurrentInstance(); const state = useTransitionState(); return () => { const children = slots.default && getTransitionRawChildren(slots.default(), true); if (!children || !children.length) { return; } const child = findNonCommentChild(children); const rawProps = toRaw(props); const { mode } = rawProps; if (mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") { warn$1(`invalid <transition> mode: ${mode}`); } if (state.isLeaving) { return emptyPlaceholder(child); } const innerChild = getInnerChild$1(child); if (!innerChild) { return emptyPlaceholder(child); } let enterHooks = resolveTransitionHooks( innerChild, rawProps, state, instance, // #11061, ensure enterHooks is fresh after clone (hooks) => enterHooks = hooks ); if (innerChild.type !== Comment) { setTransitionHooks(innerChild, enterHooks); } let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree); if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) { let leavingHooks = resolveTransitionHooks( oldInnerChild, rawProps, state, instance ); setTransitionHooks(oldInnerChild, leavingHooks); if (mode === "out-in" && innerChild.type !== Comment) { state.isLeaving = true; leavingHooks.afterLeave = () => { state.isLeaving = false; if (!(instance.job.flags & 8)) { instance.update(); } delete leavingHooks.afterLeave; oldInnerChild = void 0; }; return emptyPlaceholder(child); } else if (mode === "in-out" && innerChild.type !== Comment) { leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => { const leavingVNodesCache = getLeavingNodesForType( state, oldInnerChild ); leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild; el[leaveCbKey] = () => { earlyRemove(); el[leaveCbKey] = void 0; delete enterHooks.delayedLeave; oldInnerChild = void 0; }; enterHooks.delayedLeave = () => { delayedLeave(); delete enterHooks.delayedLeave; oldInnerChild = void 0; }; }; } else { oldInnerChild = void 0; } } else if (oldInnerChild) { oldInnerChild = void 0; } return child; }; } }; function findNonCommentChild(children) { let child = children[0]; if (children.length > 1) { let hasFound = false; for (const c of children) { if (c.type !== Comment) { if (hasFound) { warn$1( "<transition> can only be used on a single element or component. Use <transition-group> for lists." ); break; } child = c; hasFound = true; } } } return child; } const BaseTransition = BaseTransitionImpl; function getLeavingNodesForType(state, vnode) { const { leavingVNodes } = state; let leavingVNodesCache = leavingVNodes.get(vnode.type); if (!leavingVNodesCache) { leavingVNodesCache = /* @__PURE__ */ Object.create(null); leavingVNodes.set(vnode.type, leavingVNodesCache); } return leavingVNodesCache; } function resolveTransitionHooks(vnode, props, state, instance, postClone) { const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props; const key = String(vnode.key); const leavingVNodesCache = getLeavingNodesForType(state, vnode); const callHook = (hook, args) => { hook && callWithAsyncErrorHandling( hook, instance, 9, args ); }; const callAsyncHook = (hook, args) => { const done = args[1]; callHook(hook, args); if (isArray(hook)) { if (hook.every((hook2) => hook2.length <= 1)) done(); } else if (hook.length <= 1) { done(); } }; const hooks = { mode, persisted, beforeEnter(el) { let hook = onBeforeEnter; if (!state.isMounted) { if (appear) { hook = onBeforeAppear || onBeforeEnter; } else { return; } } if (el[leaveCbKey]) { el[leaveCbKey]( true /* cancelled */ ); } const leavingVNode = leavingVNodesCache[key]; if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el[leaveCbKey]) { leavingVNode.el[leaveCbKey](); } callHook(hook, [el]); }, enter(el) { let hook = onEnter; let afterHook = onAfterEnter; let cancelHook = onEnterCancelled; if (!state.isMounted) { if (appear) { hook = onAppear || onEnter; afterHook = onAfterAppear || onAfterEnter; cancelHook = onAppearCancelled || onEnterCancelled; } else { return; } } let called = false; const done = el[enterCbKey$1] = (cancelled) => { if (called) return; called = true; if (cancelled) { callHook(cancelHook, [el]); } else { callHook(afterHook, [el]); } if (hooks.delayedLeave) { hooks.delayedLeave(); } el[enterCbKey$1] = void 0; }; if (hook) { callAsyncHook(hook, [el, done]); } else { done(); } }, leave(el, remove) { const key2 = String(vnode.key); if (el[enterCbKey$1]) { el[enterCbKey$1]( true /* cancelled */ ); } if (state.isUnmounting) { return remove(); } callHook(onBeforeLeave, [el]); let called = false; const done = el[leaveCbKey] = (cancelled) => { if (called) return; called = true; remove(); if (cancelled) { callHook(onLeaveCancelled, [el]); } else { callHook(onAfterLeave, [el]); } el[leaveCbKey] = void 0; if (leavingVNodesCache[key2] === vnode) { delete leavingVNodesCache[key2]; } }; leavingVNodesCache[key2] = vnode; if (onLeave) { callAsyncHook(onLeave, [el, done]); } else { done(); } }, clone(vnode2) { const hooks2 = resolveTransitionHooks( vnode2, props, state, instance, postClone ); if (postClone) postClone(hooks2); return hooks2; } }; return hooks; } function emptyPlaceholder(vnode) { if (isKeepAlive(vnode)) { vnode = cloneVNode(vnode); vnode.children = null; return vnode; } } function getInnerChild$1(vnode) { if (!isKeepAlive(vnode)) { if (isTeleport(vnode.type) && vnode.children) { return findNonCommentChild(vnode.children); } return vnode; } if (vnode.component) { return vnode.component.subTree; } const { shapeFlag, children } = vnode; if (children) { if (shapeFlag & 16) { return children[0]; } if (shapeFlag & 32 && isFunction(children.default)) { return children.default(); } } } function setTransitionHooks(vnode, hooks) { if (vnode.shapeFlag & 6 && vnode.component) { vnode.transition = hooks; setTransitionHooks(vnode.component.subTree, hooks); } else if (vnode.shapeFlag & 128) { vnode.ssContent.transition = hooks.clone(vnode.ssContent); vnode.ssFallback.transition = hooks.clone(vnode.ssFallback); } else { vnode.transition = hooks; } } function getTransitionRawChildren(children, keepComment = false, parentKey) { let ret = []; let keyedFragmentCount = 0; for (let i = 0; i < children.length; i++) { let child = children[i]; const key = parentKey == null ? child.key : String(parentKey) + String(child.key != null ? child.key : i); if (child.type === Fragment) { if (child.patchFlag & 128) keyedFragmentCount++; ret = ret.concat( getTransitionRawChildren(child.children, keepComment, key) ); } else if (keepComment || child.type !== Comment) { ret.push(key != null ? cloneVNode(child, { key }) : child); } } if (keyedFragmentCount > 1) { for (let i = 0; i < ret.length; i++) { ret[i].patchFlag = -2; } } return ret; } /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function defineComponent(options, extraOptions) { return isFunction(options) ? ( // #8236: extend call and options.name access are considered side-effects // by Rollup, so we have to wrap it in a pure-annotated IIFE. /* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))() ) : options; } function useId() { const i = getCurrentInstance(); if (i) { return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++; } else { warn$1( `useId() is called when there is no active component instance to be associated with.` ); } return ""; } function markAsyncBoundary(instance) { instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0]; } const knownTemplateRefs = /* @__PURE__ */ new WeakSet(); function useTemplateRef(key) { const i = getCurrentInstance(); const r = shallowRef(null); if (i) { const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs; let desc; if ((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) { warn$1(`useTemplateRef('${key}') already exists.`); } else { Object.defineProperty(refs, key, { enumerable: true, get: () => r.value, set: (val) => r.value = val }); } } else { warn$1( `useTemplateRef() is called when there is no active component instance to be associated with.` ); } const ret = readonly(r) ; { knownTemplateRefs.add(ret); } return ret; } function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) { if (isArray(rawRef)) { rawRef.forEach( (r, i) => setRef( r, oldRawRef && (isArray(oldRawRef) ? oldRawRef[i] : oldRawRef), parentSuspense, vnode, isUnmount ) ); return; } if (isAsyncWrapper(vnode) && !isUnmount) { if (vnode.shapeFlag & 512 && vnode.type.__asyncResolved && vnode.component.subTree.component) { setRef(rawRef, oldRawRef, parentSuspense, vnode.component.subTree); } return; } const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el; const value = isUnmount ? null : refValue; const { i: owner, r: ref } = rawRef; if (!owner) { warn$1( `Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.` ); return; } const oldRef = oldRawRef && oldRawRef.r; const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs; const setupState = owner.setupState; const rawSetupState = toRaw(setupState); const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => { { if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) { warn$1( `Template ref "${key}" used on a non-ref value. It will not work in the production build.` ); } if (knownTemplateRefs.has(rawSetupState[key])) { return false; } } return hasOwn(rawSetupState, key); }; if (oldRef != null && oldRef !== ref) { if (isString(oldRef)) { refs[oldRef] = null; if (canSetSetupRef(oldRef)) { setupState[oldRef] = null; } } else if (isRef(oldRef)) { oldRef.value = null; } } if (isFunction(ref)) { callWithErrorHandling(ref, owner, 12, [value, refs]); } else { const _isString = isString(ref); const _isRef = isRef(ref); if (_isString || _isRef) { const doSet = () => { if (rawRef.f) { const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value; if (isUnmount) { isArray(existing) && remove(existing, refValue); } else { if (!isArray(existing)) { if (_isString) { refs[ref] = [refValue]; if (canSetSetupRef(ref)) { setupState[ref] = refs[ref]; } } else { ref.value = [refValue]; if (rawRef.k) refs[rawRef.k] = ref.value; } } else if (!existing.includes(refValue)) { existing.push(refValue); } } } else if (_isString) { refs[ref] = value; if (canSetSetupRef(ref)) { setupState[ref] = value; } } else if (_isRef) { ref.value = value; if (rawRef.k) refs[rawRef.k] = value; } else { warn$1("Invalid template ref type:", ref, `(${typeof ref})`); } }; if (value) { doSet.id = -1; queuePostRenderEffect(doSet, parentSuspense); } else { doSet(); } } else { warn$1("Invalid template ref type:", ref, `(${typeof ref})`); } } } let hasLoggedMismatchError = false; const logMismatchError = () => { if (hasLoggedMismatchError) { return; } console.error("Hydration completed but contains mismatches."); hasLoggedMismatchError = true; }; const isSVGContainer = (container) => container.namespaceURI.includes("svg") && container.tagName !== "foreignObject"; const isMathMLContainer = (container) => container.namespaceURI.includes("MathML"); const getContainerType = (container) => { if (container.nodeType !== 1) return void 0; if (isSVGContainer(container)) return "svg"; if (isMathMLContainer(container)) return "mathml"; return void 0; }; const isComment = (node) => node.nodeType === 8; function createHydrationFunctions(rendererInternals) { const { mt: mountComponent, p: patch, o: { patchProp, createText, nextSibling, parentNode, remove, insert, createComment } } = rendererInternals; const hydrate = (vnode, container) => { if (!container.hasChildNodes()) { warn$1( `Attempting to hydrate existing markup but container is empty. Performing full mount instead.` ); patch(null, vnode, container); flushPostFlushCbs(); container._vnode = vnode; return; } hydrateNode(container.firstChild, vnode, null, null, null); flushPostFlushCbs(); container._vnode = vnode; }; const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => { optimized = optimized || !!vnode.dynamicChildren; const isFragmentStart = isComment(node) && node.data === "["; const onMismatch = () => handleMismatch( node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragmentStart ); const { type, ref, shapeFlag, patchFlag } = vnode; let domType = node.nodeType; vnode.el = node; { def(node, "__vnode", vnode, true); def(node, "__vueParentComponent", parentComponent, true); } if (patchFlag === -2) { optimized = false; vnode.dynamicChildren = null; } let nextNode = null; switch (type) { case Text: if (domType !== 3) { if (vnode.children === "") { insert(vnode.el = createText(""), parentNode(node), node); nextNode = node; } else { nextNode = onMismatch(); } } else { if (node.data !== vnode.children) { warn$1( `Hydration text mismatch in`, node.parentNode, ` - rendered on server: ${JSON.stringify( node.data )} - expected on client: ${JSON.stringify(vnode.children)}` ); logMismatchError(); node.data = vnode.children; } nextNode = nextSibling(node); } break; case Comment: if (isTemplateNode(node)) { nextNode = nextSibling(node); replaceNode( vnode.el = node.content.firstChild, node, parentComponent ); } else if (domType !== 8 || isFragmentStart) { nextNode = onMismatch(); } else { nextNode = nextSibling(node); } break; case Static: if (isFragmentStart) { node = nextSibling(node); domType = node.nodeType; } if (domType === 1 || domType === 3) { nextNode = node; const needToAdoptContent = !vnode.children.length; for (let i = 0; i < vnode.staticCount; i++) { if (needToAdoptContent) vnode.children += nextNode.nodeType === 1 ? nextNode.outerHTML : nextNode.data; if (i === vnode.staticCount - 1) { vnode.anchor = nextNode; } nextNode = nextSibling(nextNode); } return isFragmentStart ? nextSibling(nextNode) : nextNode; } else { onMismatch(); } break; case Fragment: if (!isFragmentStart) { nextNode = onMismatch(); } else { nextNode = hydrateFragment( node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized ); } break; default: if (shapeFlag & 1) { if ((domType !== 1 || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && !isTemplateNode(node)) { nextNode = onMismatch(); } else { nextNode = hydrateElement( node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized ); } } else if (shapeFlag & 6) { vnode.slotScopeIds = slotScopeIds; const container = parentNode(node); if (isFragmentStart) { nextNode = locateClosingAnchor(node); } else if (isComment(node) && node.data === "teleport start") { nextNode = locateClosingAnchor(node, node.data, "teleport end"); } else { nextNode = nextSibling(node); } mountComponent( vnode, container, null, parentComponent, parentSuspense, getContainerType(container), optimized ); if (isAsyncWrapper(vnode) && !vnode.type.__asyncResolved) { let subTree; if (isFragmentStart) { subTree = createVNode(Fragment); subTree.anchor = nextNode ? nextNode.previousSibling : container.lastChild; } else { subTree = node.nodeType === 3 ? createTextVNode("") : createVNode("div"); } subTree.el = node; vnode.component.subTree = subTree; } } else if (shapeFlag & 64) { if (domType !== 8) { nextNode = onMismatch(); } else { nextNode = vnode.type.hydrate( node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren ); } } else if (shapeFlag & 128) { nextNode = vnode.type.hydrate( node, vnode, parentComponent, parentSuspense, getContainerType(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode ); } else { warn$1("Invalid HostVNode type:", type, `(${typeof type})`); } } if (ref != null) { setRef(ref, null, parentSuspense, vnode); } return nextNode; }; const hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => { optimized = optimized || !!vnode.dynamicChildren; const { type, props, patchFlag, shapeFlag, dirs, transition } = vnode; const forcePatch = type === "input" || type === "option"; { if (dirs) { invokeDirectiveHook(vnode, null, parentComponent, "created"); } let needCallTransitionHooks = false; if (isTemplateNode(el)) { needCallTransitionHooks = needTransition( null, // no need check parentSuspense in hydration transition ) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear; const content = el.content.firstChild; if (needCallTransitionHooks) { transition.beforeEnter(content); } replaceNode(content, el, parentComponent); vnode.el = el = content; } if (shapeFlag & 16 && // skip if element has innerHTML / textContent !(props && (props.innerHTML || props.textContent))) { let next = hydrateChildren( el.firstChild, vnode, el, parentComponent, parentSuspense, slotScopeIds, optimized ); let hasWarned = false; while (next) { if (!isMismatchAllowed(el, 1 /* CHILDREN */)) { if (!hasWarned) { warn$1( `Hydration children mismatch on`, el, ` Server rendered element contains more child nodes than client vdom.` ); hasWarned = true; } logMismatchError(); } const cur = next; next = next.nextSibling; remove(cur); } } else if (shapeFlag & 8) { let clientText = vnode.children; if (clientText[0] === "\n" && (el.tagName === "PRE" || el.tagName === "TEXTAREA")) { clientText = clientText.slice(1); } if (el.textContent !== clientText) { if (!isMismatchAllowed(el, 0 /* TEXT */)) { warn$1( `Hydration text content mismatch on`, el, ` - rendered on server: ${el.textContent} - expected on client: ${vnode.children}` ); logMismatchError(); } el.textContent = vnode.children; } } if (props) { { const isCustomElement = el.tagName.includes("-"); for (const key in props) { if (// #11189 skip if this node has directives that have created hooks // as it could have mutated the DOM in any possible way !(dirs && dirs.some((d) => d.dir.created)) && propHasMismatch(el, key, props[key], vnode, parentComponent)) { logMismatchError(); } if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers key[0] === "." || isCustomElement) { patchProp(el, key, null, props[key], void 0, parentComponent); } } } } let vnodeHooks; if (vnodeHooks = props && props.onVnodeBeforeMount) { invokeVNodeHook(vnodeHooks, parentComponent, vnode); } if (dirs) { invokeDirectiveHook(vnode, null, parentComponent, "beforeMount"); } if ((vnodeHooks = props && props.onVnodeMounted) || dirs || needCallTransitionHooks) { queueEffectWithSuspense(() => { vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode); needCallTransitionHooks && transition.enter(el); dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted"); }, parentSuspense); } } return el.nextSibling; }; const hydrateChildren = (node, parentVNode, container, parentComponent, parentSuspense, slotScopeIds, optimized) => { optimized = optimized || !!parentVNode.dynamicChildren; const children = parentVNode.children; const l = children.length; let hasWarned = false; for (let i = 0; i < l; i++) { const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]); const isText = vnode.type === Text; if (node) { if (isText && !optimized) { if (i + 1 < l && normalizeVNode(children[i + 1]).type === Text) { insert( createText( node.data.slice(vnode.children.length) ), container, nextSibling(node) ); node.data = vnode.children; } } node = hydrateNode( node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized ); } else if (isText && !vnode.children) { insert(vnode.el = createText(""), container); } else { if (!isMismatchAllowed(container, 1 /* CHILDREN */)) { if (!hasWarned) { warn$1( `Hydration children mismatch on`, container, ` Server rendered element contains fewer child nodes than client vdom.` ); hasWarned = true; } logMismatchError(); } patch( null, vnode, container, null, parentComponent, parentSuspense, getContainerType(container), slotScopeIds ); } } return node; }; const hydrateFragment = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => { const { slotScopeIds: fragmentSlotScopeIds } = vnode; if (fragmentSlotScopeIds) { slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds; } const container = parentNode(node); const next = hydrateChildren( nextSibling(node), vnode, container, parentComponent, parentSuspense, slotScopeIds, optimized ); if (next && isComment(next) && next.data === "]") { return nextSibling(vnode.anchor = next); } else { logMismatchError(); insert(vnode.anchor = createComment(`]`), container, next); return next; } }; const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => { if (!isMismatchAllowed(node.parentElement, 1 /* CHILDREN */)) { warn$1( `Hydration node mismatch: - rendered on server:`, node, node.nodeType === 3 ? `(text)` : isComment(node) && node.data === "[" ? `(start of fragment)` : ``, ` - expected on client:`, vnode.type ); logMismatchError(); } vnode.el = null; if (isFragment) { const end = locateClosingAnchor(node); while (true) { const next2 = nextSibling(node); if (next2 && next2 !== end) { remove(next2); } else { break; } } } const next = nextSibling(node); const container = parentNode(node); remove(node); patch( null, vnode, container, next, parentComponent, parentSuspense, getContainerType(container), slotScopeIds ); if (parentComponent) { parentComponent.vnode.el = vnode.el; updateHOCHostEl(parentComponent, vnode.el); } return next; }; const locateClosingAnchor = (node, open = "[", close = "]") => { let match = 0; while (node) { node = nextSibling(node); if (node && isComment(node)) { if (node.data === open) match++; if (node.data === close) { if (match === 0) { return nextSibling(node); } else { match--; } } } } return node; }; const replaceNode = (newNode, oldNode, parentComponent) => { const parentNode2 = oldNode.parentNode; if (parentNode2) { parentNode2.replaceChild(newNode, oldNode); } let parent = parentComponent; while (parent) { if (parent.vnode.el === oldNode) { parent.vnode.el = parent.subTree.el = newNode; } parent = parent.parent; } }; const isTemplateNode = (node) => { return node.nodeType === 1 && node.tagName === "TEMPLATE"; }; return [hydrate, hydrateNode]; } function propHasMismatch(el, key, clientValue, vnode, instance) { let mismatchType; let mismatchKey; let actual; let expected; if (key === "class") { actual = el.getAttribute("class"); expected = normalizeClass(clientValue); if (!isSetEqual(toClassSet(actual || ""), toClassSet(expected))) { mismatchType = 2 /* CLASS */; mismatchKey = `class`; } } else if (key === "style") { actual = el.getAttribute("style") || ""; expected = isString(clientValue) ? clientValue : stringifyStyle(normalizeStyle(clientValue)); const actualMap = toStyleMap(actual); const expectedMap = toStyleMap(expected); if (vnode.dirs) { for (const { dir, value } of vnode.dirs) { if (dir.name === "show" && !value) { expectedMap.set("display", "none"); } } } if (instance) { resolveCssVars(instance, vnode, expectedMap); } if (!isMapEqual(actualMap, expectedMap)) { mismatchType = 3 /* STYLE */; mismatchKey = "style"; } } else if (el instanceof SVGElement && isKnownSvgAttr(key) || el instanceof HTMLElement && (isBooleanAttr(key) || isKnownHtmlAttr(key))) { if (isBooleanAttr(key)) { actual = el.hasAttribute(key); expected = includeBooleanAttr(clientValue); } else if (clientValue == null) { actual = el.hasAttribute(key); expected = false; } else { if (el.hasAttribute(key)) { actual = el.getAttribute(key); } else if (key === "value" && el.tagName === "TEXTAREA") { actual = el.value; } else { actual = false; } expected = isRenderableAttrValue(clientValue) ? String(clientValue) : false; } if (actual !== expected) { mismatchType = 4 /* ATTRIBUTE */; mismatchKey = key; } } if (mismatchType != null && !isMismatchAllowed(el, mismatchType)) { const format = (v) => v === false ? `(not rendered)` : `${mismatchKey}="${v}"`; const preSegment = `Hydration ${MismatchTypeString[mismatchType]} mismatch on`; const postSegment = ` - rendered on server: ${format(actual)} - expected on client: ${format(expected)} Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead. You should fix the source of the mismatch.`; { warn$1(preSegment, el, postSegment); } return true; } return false; } function toClassSet(str) { return new Set(str.trim().split(/\s+/)); } function isSetEqual(a, b) { if (a.size !== b.size) { return false; } for (const s of a) { if (!b.has(s)) { return false; } } return true; } function toStyleMap(str) { const styleMap = /* @__PURE__ */ new Map(); for (const item of str.split(";")) { let [key, value] = item.split(":"); key = key.trim(); value = value && value.trim(); if (key && value) { styleMap.set(key, value); } } return styleMap; } function isMapEqual(a, b) { if (a.size !== b.size) { return false; } for (const [key, value] of a) { if (value !== b.get(key)) { return false; } } return true; } function resolveCssVars(instance, vnode, expectedMap) { const root = instance.subTree; if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) { const cssVars = instance.getCssVars(); for (const key in cssVars) { expectedMap.set( `--${getEscapedCssVarName(key)}`, String(cssVars[key]) ); } } if (vnode === root && instance.parent) { resolveCssVars(instance.parent, instance.vnode, expectedMap); } } const allowMismatchAttr = "data-allow-mismatch"; const MismatchTypeString = { [0 /* TEXT */]: "text", [1 /* CHILDREN */]: "children", [2 /* CLASS */]: "class", [3 /* STYLE */]: "style", [4 /* ATTRIBUTE */]: "attribute" }; function isMismatchAllowed(el, allowedType) { if (allowedType === 0 /* TEXT */ || allowedType === 1 /* CHILDREN */) { while (el && !el.hasAttribute(allowMismatchAttr)) { el = el.parentElement; } } const allowedAttr = el && el.getAttribute(allowMismatchAttr); if (allowedAttr == null) { return false; } else if (allowedAttr === "") { return true; } else { const list = allowedAttr.split(","); if (allowedType === 0 /* TEXT */ && list.includes("children")) { return true; } return allowedAttr.split(",").includes(MismatchTypeString[allowedType]); } } const requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1)); const cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id)); const hydrateOnIdle = (timeout = 1e4) => (hydrate) => { const id = requestIdleCallback(hydrate, { timeout }); return () => cancelIdleCallback(id); }; function elementIsVisibleInViewport(el) { const { top, left, bottom, right } = el.getBoundingClientRect(); const { innerHeight, innerWidth } = window; return (top > 0 && top < innerHeight || bottom > 0 && bottom < innerHeight) && (left > 0 && left < innerWidth || right > 0 && right < innerWidth); } const hydrateOnVisible = (opts) => (hydrate, forEach) => { const ob = new IntersectionObserver((entries) => { for (const e of entries) { if (!e.isIntersecting) continue; ob.disconnect(); hydrate(); break; } }, opts); forEach((el) => { if (!(el instanceof Element)) return; if (elementIsVisibleInViewport(el)) { hydrate(); ob.disconnect(); return false; } ob.observe(el); }); return () => ob.disconnect(); }; const hydrateOnMediaQuery = (query) => (hydrate) => { if (query) { const mql = matchMedia(query); if (mql.matches) { hydrate(); } else { mql.addEventListener("change", hydrate, { once: true }); return () => mql.removeEventListener("change", hydrate); } } }; const hydrateOnInteraction = (interactions = []) => (hydrate, forEach) => { if (isString(interactions)) interactions = [interactions]; let hasHydrated = false; const doHydrate = (e) => { if (!hasHydrated) { hasHydrated = true; teardown(); hydrate(); e.target.dispatchEvent(new e.constructor(e.type, e)); } }; const teardown = () => { forEach((el) => { for (const i of interactions) { el.removeEventListener(i, doHydrate); } }); }; forEach((el) => { for (const i of interactions) { el.addEventListener(i, doHydrate, { once: true }); } }); return teardown; }; function forEachElement(node, cb) { if (isComment(node) && node.data === "[") { let depth = 1; let next = node.nextSibling; while (next) { if (next.nodeType === 1) { const result = cb(next); if (result === false) { break; } } else if (isComment(next)) { if (next.data === "]") { if (--depth === 0) break; } else if (next.data === "[") { depth++; } } next = next.nextSibling; } } else { cb(node); } } const isAsyncWrapper = (i) => !!i.type.__asyncLoader; /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function defineAsyncComponent(source) { if (isFunction(source)) { source = { loader: source }; } const { loader, loadingComponent, errorComponent, delay = 200, hydrate: hydrateStrategy, timeout, // undefined = never times out suspensible = true, onError: userOnError } = source; let pendingRequest = null; let resolvedComp; let retries = 0; const retry = () => { retries++; pendingRequest = null; return load(); }; const load = () => { let thisRequest; return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => { err = err instanceof Error ? err : new Error(String(err)); if (userOnError) { return new Promise((resolve, reject) => { const userRetry = () => resolve(retry()); const userFail = () => reject(err); userOnError(err, userRetry, userFail, retries + 1); }); } else { throw err; } }).then((comp) => { if (thisRequest !== pendingRequest && pendingRequest) { return pendingRequest; } if (!comp) { warn$1( `Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.` ); } if (comp && (comp.__esModule || comp[Symbol.toStringTag] === "Module")) { comp = comp.default; } if (comp && !isObject(comp) && !isFunction(comp)) { throw new Error(`Invalid async component load result: ${comp}`); } resolvedComp = comp; return comp; })); }; return defineComponent({ name: "AsyncComponentWrapper", __asyncLoader: load, __asyncHydrate(el, instance, hydrate) { const doHydrate = hydrateStrategy ? () => { const teardown = hydrateStrategy( hydrate, (cb) => forEachElement(el, cb) ); if (teardown) { (instance.bum || (instance.bum = [])).push(teardown); } } : hydrate; if (resolvedComp) { doHydrate(); } else { load().then(() => !instance.isUnmounted && doHydrate()); } }, get __asyncResolved() { return resolvedComp; }, setup() { const instance = currentInstance; markAsyncBoundary(instance); if (resolvedComp) { return () => createInnerComp(resolvedComp, instance); } const onError = (err) => { pendingRequest = null; handleError( err, instance, 13, !errorComponent ); }; if (suspensible && instance.suspense || false) { return load().then((comp) => { return () => createInnerComp(comp, instance); }).catch((err) => { onError(err); return () => errorComponent ? createVNode(errorComponent, { error: err }) : null; }); } const loaded = ref(false); const error = ref(); const delayed = ref(!!delay); if (delay) { setTimeout(() => { delayed.value = false; }, delay); } if (timeout != null) { setTimeout(() => { if (!loaded.value && !error.value) { const err = new Error( `Async component timed out after ${timeout}ms.` ); onError(err); error.value = err; } }, timeout); } load().then(() => { loaded.value = true; if (instance.parent && isKeepAlive(instance.parent.vnode)) { instance.parent.update(); } }).catch((err) => { onError(err); error.value = err; }); return () => { if (loaded.value && resolvedComp) { return createInnerComp(resolvedComp, instance); } else if (error.value && errorComponent) { return createVNode(errorComponent, { error: error.value }); } else if (loadingComponent && !delayed.value) { return createVNode(loadingComponent); } }; } }); } function createInnerComp(comp, parent) { const { ref: ref2, props, children, ce } = parent.vnode; const vnode = createVNode(comp, props, children); vnode.ref = ref2; vnode.ce = ce; delete parent.vnode.ce; return vnode; } const isKeepAlive = (vnode) => vnode.type.__isKeepAlive; const KeepAliveImpl = { name: `KeepAlive`, // Marker for special handling inside the renderer. We are not using a === // check directly on KeepAlive in the renderer, because importing it directly // would prevent it from being tree-shaken. __isKeepAlive: true, props: { include: [String, RegExp, Array], exclude: [String, RegExp, Array], max: [String, Number] }, setup(props, { slots }) { const instance = getCurrentInstance(); const sharedContext = instance.ctx; const cache = /* @__PURE__ */ new Map(); const keys = /* @__PURE__ */ new Set(); let current = null; { instance.__v_cache = cache; } const parentSuspense = instance.suspense; const { renderer: { p: patch, m: move, um: _unmount, o: { createElement } } } = sharedContext; const storageContainer = createElement("div"); sharedContext.activate = (vnode, container, anchor, namespace, optimized) => { const instance2 = vnode.component; move(vnode, container, anchor, 0, parentSuspense); patch( instance2.vnode, vnode, container, anchor, instance2, parentSuspense, namespace, vnode.slotScopeIds, optimized ); queuePostRenderEffect(() => { instance2.isDeactivated = false; if (instance2.a) { invokeArrayFns(instance2.a); } const vnodeHook = vnode.props && vnode.props.onVnodeMounted; if (vnodeHook) { invokeVNodeHook(vnodeHook, instance2.parent, vnode); } }, parentSuspense); { devtoolsComponentAdded(instance2); } }; sharedContext.deactivate = (vnode) => { const instance2 = vnode.component; invalidateMount(instance2.m); invalidateMount(instance2.a); move(vnode, storageContainer, null, 1, parentSuspense); queuePostRenderEffect(() => { if (instance2.da) { invokeArrayFns(instance2.da); } const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted; if (vnodeHook) { invokeVNodeHook(vnodeHook, instance2.parent, vnode); } instance2.isDeactivated = true; }, parentSuspense); { devtoolsComponentAdded(instance2); } }; function unmount(vnode) { resetShapeFlag(vnode); _unmount(vnode, instance, parentSuspense, true); } function pruneCache(filter) { cache.forEach((vnode, key) => { const name = getComponentName(vnode.type); if (name && !filter(name)) { pruneCacheEntry(key); } }); } function pruneCacheEntry(key) { const cached = cache.get(key); if (cached && (!current || !isSameVNodeType(cached, current))) { unmount(cached); } else if (current) { resetShapeFlag(current); } cache.delete(key); keys.delete(key); } watch( () => [props.include, props.exclude], ([include, exclude]) => { include && pruneCache((name) => matches(include, name)); exclude && pruneCache((name) => !matches(exclude, name)); }, // prune post-render after `current` has been updated { flush: "post", deep: true } ); let pendingCacheKey = null; const cacheSubtree = () => { if (pendingCacheKey != null) { if (isSuspense(instance.subTree.type)) { queuePostRenderEffect(() => { cache.set(pendingCacheKey, getInnerChild(instance.subTree)); }, instance.subTree.suspense); } else { cache.set(pendingCacheKey, getInnerChild(instance.subTree)); } } }; onMounted(cacheSubtree); onUpdated(cacheSubtree); onBeforeUnmount(() => { cache.forEach((cached) => { const { subTree, suspense } = instance; const vnode = getInnerChild(subTree); if (cached.type === vnode.type && cached.key === vnode.key) { resetShapeFlag(vnode); const da = vnode.component.da; da && queuePostRenderEffect(da, suspense); return; } unmount(cached); }); }); return () => { pendingCacheKey = null; if (!slots.default) { return current = null; } const children = slots.default(); const rawVNode = children[0]; if (children.length > 1) { { warn$1(`KeepAlive should contain exactly one component child.`); } current = null; return children; } else if (!isVNode(rawVNode) || !(rawVNode.shapeFlag & 4) && !(rawVNode.shapeFlag & 128)) { current = null; return rawVNode; } let vnode = getInnerChild(rawVNode); if (vnode.type === Comment) { current = null; return vnode; } const comp = vnode.type; const name = getComponentName( isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : comp ); const { include, exclude, max } = props; if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) { vnode.shapeFlag &= ~256; current = vnode; return rawVNode; } const key = vnode.key == null ? comp : vnode.key; const cachedVNode = cache.get(key); if (vnode.el) { vnode = cloneVNode(vnode); if (rawVNode.shapeFlag & 128) { rawVNode.ssContent = vnode; } } pendingCacheKey = key; if (cachedVNode) { vnode.el = cachedVNode.el; vnode.component = cachedVNode.component; if (vnode.transition) { setTransitionHooks(vnode, vnode.transition); } vnode.shapeFlag |= 512; keys.delete(key); keys.add(key); } else { keys.add(key); if (max && keys.size > parseInt(max, 10)) { pruneCacheEntry(keys.values().next().value); } } vnode.shapeFlag |= 256; current = vnode; return isSuspense(rawVNode.type) ? rawVNode : vnode; }; } }; const KeepAlive = KeepAliveImpl; function matches(pattern, name) { if (isArray(pattern)) { return pattern.some((p) => matches(p, name)); } else if (isString(pattern)) { return pattern.split(",").includes(name); } else if (isRegExp(pattern)) { pattern.lastIndex = 0; return pattern.test(name); } return false; } function onActivated(hook, target) { registerKeepAliveHook(hook, "a", target); } function onDeactivated(hook, target) { registerKeepAliveHook(hook, "da", target); } function registerKeepAliveHook(hook, type, target = currentInstance) { const wrappedHook = hook.__wdc || (hook.__wdc = () => { let current = target; while (current) { if (current.isDeactivated) { return; } current = current.parent; } return hook(); }); injectHook(type, wrappedHook, target); if (target) { let current = target.parent; while (current && current.parent) { if (isKeepAlive(current.parent.vnode)) { injectToKeepAliveRoot(wrappedHook, type, target, current); } current = current.parent; } } } function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) { const injected = injectHook( type, hook, keepAliveRoot, true /* prepend */ ); onUnmounted(() => { remove(keepAliveRoot[type], injected); }, target); } function resetShapeFlag(vnode) { vnode.shapeFlag &= ~256; vnode.shapeFlag &= ~512; } function getInnerChild(vnode) { return vnode.shapeFlag & 128 ? vnode.ssContent : vnode; } function injectHook(type, hook, target = currentInstance, prepend = false) { if (target) { const hooks = target[type] || (target[type] = []); const wrappedHook = hook.__weh || (hook.__weh = (...args) => { pauseTracking(); const reset = setCurrentInstance(target); const res = callWithAsyncErrorHandling(hook, target, type, args); reset(); resetTracking(); return res; }); if (prepend) { hooks.unshift(wrappedHook); } else { hooks.push(wrappedHook); } return wrappedHook; } else { const apiName = toHandlerKey(ErrorTypeStrings$1[type].replace(/ hook$/, "")); warn$1( `${apiName} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup().` + (` If you are using async setup(), make sure to register lifecycle hooks before the first await statement.` ) ); } } const createHook = (lifecycle) => (hook, target = currentInstance) => { if (!isInSSRComponentSetup || lifecycle === "sp") { injectHook(lifecycle, (...args) => hook(...args), target); } }; const onBeforeMount = createHook("bm"); const onMounted = createHook("m"); const onBeforeUpdate = createHook( "bu" ); const onUpdated = createHook("u"); const onBeforeUnmount = createHook( "bum" ); const onUnmounted = createHook("um"); const onServerPrefetch = createHook( "sp" ); const onRenderTriggered = createHook("rtg"); const onRenderTracked = createHook("rtc"); function onErrorCaptured(hook, target = currentInstance) { injectHook("ec", hook, target); } const COMPONENTS = "components"; const DIRECTIVES = "directives"; function resolveComponent(name, maybeSelfReference) { return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name; } const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc"); function resolveDynamicComponent(component) { if (isString(component)) { return resolveAsset(COMPONENTS, component, false) || component; } else { return component || NULL_DYNAMIC_COMPONENT; } } function resolveDirective(name) { return resolveAsset(DIRECTIVES, name); } function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) { const instance = currentRenderingInstance || currentInstance; if (instance) { const Component = instance.type; if (type === COMPONENTS) { const selfName = getComponentName( Component, false ); if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) { return Component; } } const res = ( // local registration // check instance[type] first which is resolved for options API resolve(instance[type] || Component[type], name) || // global registration resolve(instance.appContext[type], name) ); if (!res && maybeSelfReference) { return Component; } if (warnMissing && !res) { const extra = type === COMPONENTS ? ` If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``; warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`); } return res; } else { warn$1( `resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().` ); } } function resolve(registry, name) { return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]); } function renderList(source, renderItem, cache, index) { let ret; const cached = cache && cache[index]; const sourceIsArray = isArray(source); if (sourceIsArray || isString(source)) { const sourceIsReactiveArray = sourceIsArray && isReactive(source); let needsWrap = false; if (sourceIsReactiveArray) { needsWrap = !isShallow(source); source = shallowReadArray(source); } ret = new Array(source.length); for (let i = 0, l = source.length; i < l; i++) { ret[i] = renderItem( needsWrap ? toReactive(source[i]) : source[i], i, void 0, cached && cached[i] ); } } else if (typeof source === "number") { if (!Number.isInteger(source)) { warn$1(`The v-for range expect an integer value but got ${source}.`); } ret = new Array(source); for (let i = 0; i < source; i++) { ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]); } } else if (isObject(source)) { if (source[Symbol.iterator]) { ret = Array.from( source, (item, i) => renderItem(item, i, void 0, cached && cached[i]) ); } else { const keys = Object.keys(source); ret = new Array(keys.length); for (let i = 0, l = keys.length; i < l; i++) { const key = keys[i]; ret[i] = renderItem(source[key], key, i, cached && cached[i]); } } } else { ret = []; } if (cache) { cache[index] = ret; } return ret; } function createSlots(slots, dynamicSlots) { for (let i = 0; i < dynamicSlots.length; i++) { const slot = dynamicSlots[i]; if (isArray(slot)) { for (let j = 0; j < slot.length; j++) { slots[slot[j].name] = slot[j].fn; } } else if (slot) { slots[slot.name] = slot.key ? (...args) => { const res = slot.fn(...args); if (res) res.key = slot.key; return res; } : slot.fn; } } return slots; } function renderSlot(slots, name, props = {}, fallback, noSlotted) { if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) { if (name !== "default") props.name = name; return openBlock(), createBlock( Fragment, null, [createVNode("slot", props, fallback && fallback())], 64 ); } let slot = slots[name]; if (slot && slot.length > 1) { warn$1( `SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.` ); slot = () => []; } if (slot && slot._c) { slot._d = false; } openBlock(); const validSlotContent = slot && ensureValidVNode(slot(props)); const slotKey = props.key || // slot content array of a dynamic conditional slot may have a branch // key attached in the `createSlots` helper, respect that validSlotContent && validSlotContent.key; const rendered = createBlock( Fragment, { key: (slotKey && !isSymbol(slotKey) ? slotKey : `_${name}`) + // #7256 force differentiate fallback content from actual content (!validSlotContent && fallback ? "_fb" : "") }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 ? 64 : -2 ); if (!noSlotted && rendered.scopeId) { rendered.slotScopeIds = [rendered.scopeId + "-s"]; } if (slot && slot._c) { slot._d = true; } return rendered; } function ensureValidVNode(vnodes) { return vnodes.some((child) => { if (!isVNode(child)) return true; if (child.type === Comment) return false; if (child.type === Fragment && !ensureValidVNode(child.children)) return false; return true; }) ? vnodes : null; } function toHandlers(obj, preserveCaseIfNecessary) { const ret = {}; if (!isObject(obj)) { warn$1(`v-on with no argument expects an object value.`); return ret; } for (const key in obj) { ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key]; } return ret; } const getPublicInstance = (i) => { if (!i) return null; if (isStatefulComponent(i)) return getComponentPublicInstance(i); return getPublicInstance(i.parent); }; const publicPropertiesMap = ( // Move PURE marker to new line to workaround compiler discarding it // due to type annotation /* @__PURE__ */ extend(/* @__PURE__ */ Object.create(null), { $: (i) => i, $el: (i) => i.vnode.el, $data: (i) => i.data, $props: (i) => shallowReadonly(i.props) , $attrs: (i) => shallowReadonly(i.attrs) , $slots: (i) => shallowReadonly(i.slots) , $refs: (i) => shallowReadonly(i.refs) , $parent: (i) => getPublicInstance(i.parent), $root: (i) => getPublicInstance(i.root), $host: (i) => i.ce, $emit: (i) => i.emit, $options: (i) => resolveMergedOptions(i) , $forceUpdate: (i) => i.f || (i.f = () => { queueJob(i.update); }), $nextTick: (i) => i.n || (i.n = nextTick.bind(i.proxy)), $watch: (i) => instanceWatch.bind(i) }) ); const isReservedPrefix = (key) => key === "_" || key === "$"; const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key); const PublicInstanceProxyHandlers = { get({ _: instance }, key) { if (key === "__v_skip") { return true; } const { ctx, setupState, data, props, accessCache, type, appContext } = instance; if (key === "__isVue") { return true; } let normalizedProps; if (key[0] !== "$") { const n = accessCache[key]; if (n !== void 0) { switch (n) { case 1 /* SETUP */: return setupState[key]; case 2 /* DATA */: return data[key]; case 4 /* CONTEXT */: return ctx[key]; case 3 /* PROPS */: return props[key]; } } else if (hasSetupBinding(setupState, key)) { accessCache[key] = 1 /* SETUP */; return setupState[key]; } else if (data !== EMPTY_OBJ && hasOwn(data, key)) { accessCache[key] = 2 /* DATA */; return data[key]; } else if ( // only cache other properties when instance has declared (thus stable) // props (normalizedProps = instance.propsOptions[0]) && hasOwn(normalizedProps, key) ) { accessCache[key] = 3 /* PROPS */; return props[key]; } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) { accessCache[key] = 4 /* CONTEXT */; return ctx[key]; } else if (shouldCacheAccess) { accessCache[key] = 0 /* OTHER */; } } const publicGetter = publicPropertiesMap[key]; let cssModule, globalProperties; if (publicGetter) { if (key === "$attrs") { track(instance.attrs, "get", ""); markAttrsAccessed(); } else if (key === "$slots") { track(instance, "get", key); } return publicGetter(instance); } else if ( // css module (injected by vue-loader) (cssModule = type.__cssModules) && (cssModule = cssModule[key]) ) { return cssModule; } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) { accessCache[key] = 4 /* CONTEXT */; return ctx[key]; } else if ( // global properties globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key) ) { { return globalProperties[key]; } } else if (currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading // to infinite warning loop key.indexOf("__v") !== 0)) { if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) { warn$1( `Property ${JSON.stringify( key )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.` ); } else if (instance === currentRenderingInstance) { warn$1( `Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.` ); } } }, set({ _: instance }, key, value) { const { data, setupState, ctx } = instance; if (hasSetupBinding(setupState, key)) { setupState[key] = value; return true; } else if (setupState.__isScriptSetup && hasOwn(setupState, key)) { warn$1(`Cannot mutate <script setup> binding "${key}" from Options API.`); return false; } else if (data !== EMPTY_OBJ && hasOwn(data, key)) { data[key] = value; return true; } else if (hasOwn(instance.props, key)) { warn$1(`Attempting to mutate prop "${key}". Props are readonly.`); return false; } if (key[0] === "$" && key.slice(1) in instance) { warn$1( `Attempting to mutate public property "${key}". Properties starting with $ are reserved and readonly.` ); return false; } else { if (key in instance.appContext.config.globalProperties) { Object.defineProperty(ctx, key, { enumerable: true, configurable: true, value }); } else { ctx[key] = value; } } return true; }, has({ _: { data, setupState, accessCache, ctx, appContext, propsOptions } }, key) { let normalizedProps; return !!accessCache[key] || data !== EMPTY_OBJ && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key); }, defineProperty(target, key, descriptor) { if (descriptor.get != null) { target._.accessCache[key] = 0; } else if (hasOwn(descriptor, "value")) { this.set(target, key, descriptor.value, null); } return Reflect.defineProperty(target, key, descriptor); } }; { PublicInstanceProxyHandlers.ownKeys = (target) => { warn$1( `Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.` ); return Reflect.ownKeys(target); }; } const RuntimeCompiledPublicInstanceProxyHandlers = /* @__PURE__ */ extend({}, PublicInstanceProxyHandlers, { get(target, key) { if (key === Symbol.unscopables) { return; } return PublicInstanceProxyHandlers.get(target, key, target); }, has(_, key) { const has = key[0] !== "_" && !isGloballyAllowed(key); if (!has && PublicInstanceProxyHandlers.has(_, key)) { warn$1( `Property ${JSON.stringify( key )} should not start with _ which is a reserved prefix for Vue internals.` ); } return has; } }); function createDevRenderContext(instance) { const target = {}; Object.defineProperty(target, `_`, { configurable: true, enumerable: false, get: () => instance }); Object.keys(publicPropertiesMap).forEach((key) => { Object.defineProperty(target, key, { configurable: true, enumerable: false, get: () => publicPropertiesMap[key](instance), // intercepted by the proxy so no need for implementation, // but needed to prevent set errors set: NOOP }); }); return target; } function exposePropsOnRenderContext(instance) { const { ctx, propsOptions: [propsOptions] } = instance; if (propsOptions) { Object.keys(propsOptions).forEach((key) => { Object.defineProperty(ctx, key, { enumerable: true, configurable: true, get: () => instance.props[key], set: NOOP }); }); } } function exposeSetupStateOnRenderContext(instance) { const { ctx, setupState } = instance; Object.keys(toRaw(setupState)).forEach((key) => { if (!setupState.__isScriptSetup) { if (isReservedPrefix(key[0])) { warn$1( `setup() return property ${JSON.stringify( key )} should not start with "$" or "_" which are reserved prefixes for Vue internals.` ); return; } Object.defineProperty(ctx, key, { enumerable: true, configurable: true, get: () => setupState[key], set: NOOP }); } }); } const warnRuntimeUsage = (method) => warn$1( `${method}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.` ); function defineProps() { { warnRuntimeUsage(`defineProps`); } return null; } function defineEmits() { { warnRuntimeUsage(`defineEmits`); } return null; } function defineExpose(exposed) { { warnRuntimeUsage(`defineExpose`); } } function defineOptions(options) { { warnRuntimeUsage(`defineOptions`); } } function defineSlots() { { warnRuntimeUsage(`defineSlots`); } return null; } function defineModel() { { warnRuntimeUsage("defineModel"); } } function withDefaults(props, defaults) { { warnRuntimeUsage(`withDefaults`); } return null; } function useSlots() { return getContext().slots; } function useAttrs() { return getContext().attrs; } function getContext() { const i = getCurrentInstance(); if (!i) { warn$1(`useContext() called without active instance.`); } return i.setupContext || (i.setupContext = createSetupContext(i)); } function normalizePropsOrEmits(props) { return isArray(props) ? props.reduce( (normalized, p) => (normalized[p] = null, normalized), {} ) : props; } function mergeDefaults(raw, defaults) { const props = normalizePropsOrEmits(raw); for (const key in defaults) { if (key.startsWith("__skip")) continue; let opt = props[key]; if (opt) { if (isArray(opt) || isFunction(opt)) { opt = props[key] = { type: opt, default: defaults[key] }; } else { opt.default = defaults[key]; } } else if (opt === null) { opt = props[key] = { default: defaults[key] }; } else { warn$1(`props default key "${key}" has no corresponding declaration.`); } if (opt && defaults[`__skip_${key}`]) { opt.skipFactory = true; } } return props; } function mergeModels(a, b) { if (!a || !b) return a || b; if (isArray(a) && isArray(b)) return a.concat(b); return extend({}, normalizePropsOrEmits(a), normalizePropsOrEmits(b)); } function createPropsRestProxy(props, excludedKeys) { const ret = {}; for (const key in props) { if (!excludedKeys.includes(key)) { Object.defineProperty(ret, key, { enumerable: true, get: () => props[key] }); } } return ret; } function withAsyncContext(getAwaitable) { const ctx = getCurrentInstance(); if (!ctx) { warn$1( `withAsyncContext called without active current instance. This is likely a bug.` ); } let awaitable = getAwaitable(); unsetCurrentInstance(); if (isPromise(awaitable)) { awaitable = awaitable.catch((e) => { setCurrentInstance(ctx); throw e; }); } return [awaitable, () => setCurrentInstance(ctx)]; } function createDuplicateChecker() { const cache = /* @__PURE__ */ Object.create(null); return (type, key) => { if (cache[key]) { warn$1(`${type} property "${key}" is already defined in ${cache[key]}.`); } else { cache[key] = type; } }; } let shouldCacheAccess = true; function applyOptions(instance) { const options = resolveMergedOptions(instance); const publicThis = instance.proxy; const ctx = instance.ctx; shouldCacheAccess = false; if (options.beforeCreate) { callHook$1(options.beforeCreate, instance, "bc"); } const { // state data: dataOptions, computed: computedOptions, methods, watch: watchOptions, provide: provideOptions, inject: injectOptions, // lifecycle created, beforeMount, mounted, beforeUpdate, updated, activated, deactivated, beforeDestroy, beforeUnmount, destroyed, unmounted, render, renderTracked, renderTriggered, errorCaptured, serverPrefetch, // public API expose, inheritAttrs, // assets components, directives, filters } = options; const checkDuplicateProperties = createDuplicateChecker() ; { const [propsOptions] = instance.propsOptions; if (propsOptions) { for (const key in propsOptions) { checkDuplicateProperties("Props" /* PROPS */, key); } } } if (injectOptions) { resolveInjections(injectOptions, ctx, checkDuplicateProperties); } if (methods) { for (const key in methods) { const methodHandler = methods[key]; if (isFunction(methodHandler)) { { Object.defineProperty(ctx, key, { value: methodHandler.bind(publicThis), configurable: true, enumerable: true, writable: true }); } { checkDuplicateProperties("Methods" /* METHODS */, key); } } else { warn$1( `Method "${key}" has type "${typeof methodHandler}" in the component definition. Did you reference the function correctly?` ); } } } if (dataOptions) { if (!isFunction(dataOptions)) { warn$1( `The data option must be a function. Plain object usage is no longer supported.` ); } const data = dataOptions.call(publicThis, publicThis); if (isPromise(data)) { warn$1( `data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>.` ); } if (!isObject(data)) { warn$1(`data() should return an object.`); } else { instance.data = reactive(data); { for (const key in data) { checkDuplicateProperties("Data" /* DATA */, key); if (!isReservedPrefix(key[0])) { Object.defineProperty(ctx, key, { configurable: true, enumerable: true, get: () => data[key], set: NOOP }); } } } } } shouldCacheAccess = true; if (computedOptions) { for (const key in computedOptions) { const opt = computedOptions[key]; const get = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP; if (get === NOOP) { warn$1(`Computed property "${key}" has no getter.`); } const set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : () => { warn$1( `Write operation failed: computed property "${key}" is readonly.` ); } ; const c = computed({ get, set }); Object.defineProperty(ctx, key, { enumerable: true, configurable: true, get: () => c.value, set: (v) => c.value = v }); { checkDuplicateProperties("Computed" /* COMPUTED */, key); } } } if (watchOptions) { for (const key in watchOptions) { createWatcher(watchOptions[key], ctx, publicThis, key); } } if (provideOptions) { const provides = isFunction(provideOptions) ? provideOptions.call(publicThis) : provideOptions; Reflect.ownKeys(provides).forEach((key) => { provide(key, provides[key]); }); } if (created) { callHook$1(created, instance, "c"); } function registerLifecycleHook(register, hook) { if (isArray(hook)) { hook.forEach((_hook) => register(_hook.bind(publicThis))); } else if (hook) { register(hook.bind(publicThis)); } } registerLifecycleHook(onBeforeMount, beforeMount); registerLifecycleHook(onMounted, mounted); registerLifecycleHook(onBeforeUpdate, beforeUpdate); registerLifecycleHook(onUpdated, updated); registerLifecycleHook(onActivated, activated); registerLifecycleHook(onDeactivated, deactivated); registerLifecycleHook(onErrorCaptured, errorCaptured); registerLifecycleHook(onRenderTracked, renderTracked); registerLifecycleHook(onRenderTriggered, renderTriggered); registerLifecycleHook(onBeforeUnmount, beforeUnmount); registerLifecycleHook(onUnmounted, unmounted); registerLifecycleHook(onServerPrefetch, serverPrefetch); if (isArray(expose)) { if (expose.length) { const exposed = instance.exposed || (instance.exposed = {}); expose.forEach((key) => { Object.defineProperty(exposed, key, { get: () => publicThis[key], set: (val) => publicThis[key] = val }); }); } else if (!instance.exposed) { instance.exposed = {}; } } if (render && instance.render === NOOP) { instance.render = render; } if (inheritAttrs != null) { instance.inheritAttrs = inheritAttrs; } if (components) instance.components = components; if (directives) instance.directives = directives; } function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP) { if (isArray(injectOptions)) { injectOptions = normalizeInject(injectOptions); } for (const key in injectOptions) { const opt = injectOptions[key]; let injected; if (isObject(opt)) { if ("default" in opt) { injected = inject( opt.from || key, opt.default, true ); } else { injected = inject(opt.from || key); } } else { injected = inject(opt); } if (isRef(injected)) { Object.defineProperty(ctx, key, { enumerable: true, configurable: true, get: () => injected.value, set: (v) => injected.value = v }); } else { ctx[key] = injected; } { checkDuplicateProperties("Inject" /* INJECT */, key); } } } function callHook$1(hook, instance, type) { callWithAsyncErrorHandling( isArray(hook) ? hook.map((h) => h.bind(instance.proxy)) : hook.bind(instance.proxy), instance, type ); } function createWatcher(raw, ctx, publicThis, key) { let getter = key.includes(".") ? createPathGetter(publicThis, key) : () => publicThis[key]; if (isString(raw)) { const handler = ctx[raw]; if (isFunction(handler)) { { watch(getter, handler); } } else { warn$1(`Invalid watch handler specified by key "${raw}"`, handler); } } else if (isFunction(raw)) { { watch(getter, raw.bind(publicThis)); } } else if (isObject(raw)) { if (isArray(raw)) { raw.forEach((r) => createWatcher(r, ctx, publicThis, key)); } else { const handler = isFunction(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler]; if (isFunction(handler)) { watch(getter, handler, raw); } else { warn$1(`Invalid watch handler specified by key "${raw.handler}"`, handler); } } } else { warn$1(`Invalid watch option: "${key}"`, raw); } } function resolveMergedOptions(instance) { const base = instance.type; const { mixins, extends: extendsOptions } = base; const { mixins: globalMixins, optionsCache: cache, config: { optionMergeStrategies } } = instance.appContext; const cached = cache.get(base); let resolved; if (cached) { resolved = cached; } else if (!globalMixins.length && !mixins && !extendsOptions) { { resolved = base; } } else { resolved = {}; if (globalMixins.length) { globalMixins.forEach( (m) => mergeOptions(resolved, m, optionMergeStrategies, true) ); } mergeOptions(resolved, base, optionMergeStrategies); } if (isObject(base)) { cache.set(base, resolved); } return resolved; } function mergeOptions(to, from, strats, asMixin = false) { const { mixins, extends: extendsOptions } = from; if (extendsOptions) { mergeOptions(to, extendsOptions, strats, true); } if (mixins) { mixins.forEach( (m) => mergeOptions(to, m, strats, true) ); } for (const key in from) { if (asMixin && key === "expose") { warn$1( `"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.` ); } else { const strat = internalOptionMergeStrats[key] || strats && strats[key]; to[key] = strat ? strat(to[key], from[key]) : from[key]; } } return to; } const internalOptionMergeStrats = { data: mergeDataFn, props: mergeEmitsOrPropsOptions, emits: mergeEmitsOrPropsOptions, // objects methods: mergeObjectOptions, computed: mergeObjectOptions, // lifecycle beforeCreate: mergeAsArray$1, created: mergeAsArray$1, beforeMount: mergeAsArray$1, mounted: mergeAsArray$1, beforeUpdate: mergeAsArray$1, updated: mergeAsArray$1, beforeDestroy: mergeAsArray$1, beforeUnmount: mergeAsArray$1, destroyed: mergeAsArray$1, unmounted: mergeAsArray$1, activated: mergeAsArray$1, deactivated: mergeAsArray$1, errorCaptured: mergeAsArray$1, serverPrefetch: mergeAsArray$1, // assets components: mergeObjectOptions, directives: mergeObjectOptions, // watch watch: mergeWatchOptions, // provide / inject provide: mergeDataFn, inject: mergeInject }; function mergeDataFn(to, from) { if (!from) { return to; } if (!to) { return from; } return function mergedDataFn() { return (extend)( isFunction(to) ? to.call(this, this) : to, isFunction(from) ? from.call(this, this) : from ); }; } function mergeInject(to, from) { return mergeObjectOptions(normalizeInject(to), normalizeInject(from)); } function normalizeInject(raw) { if (isArray(raw)) { const res = {}; for (let i = 0; i < raw.length; i++) { res[raw[i]] = raw[i]; } return res; } return raw; } function mergeAsArray$1(to, from) { return to ? [...new Set([].concat(to, from))] : from; } function mergeObjectOptions(to, from) { return to ? extend(/* @__PURE__ */ Object.create(null), to, from) : from; } function mergeEmitsOrPropsOptions(to, from) { if (to) { if (isArray(to) && isArray(from)) { return [.../* @__PURE__ */ new Set([...to, ...from])]; } return extend( /* @__PURE__ */ Object.create(null), normalizePropsOrEmits(to), normalizePropsOrEmits(from != null ? from : {}) ); } else { return from; } } function mergeWatchOptions(to, from) { if (!to) return from; if (!from) return to; const merged = extend(/* @__PURE__ */ Object.create(null), to); for (const key in from) { merged[key] = mergeAsArray$1(to[key], from[key]); } return merged; } function createAppContext() { return { app: null, config: { isNativeTag: NO, performance: false, globalProperties: {}, optionMergeStrategies: {}, errorHandler: void 0, warnHandler: void 0, compilerOptions: {} }, mixins: [], components: {}, directives: {}, provides: /* @__PURE__ */ Object.create(null), optionsCache: /* @__PURE__ */ new WeakMap(), propsCache: /* @__PURE__ */ new WeakMap(), emitsCache: /* @__PURE__ */ new WeakMap() }; } let uid$1 = 0; function createAppAPI(render, hydrate) { return function createApp(rootComponent, rootProps = null) { if (!isFunction(rootComponent)) { rootComponent = extend({}, rootComponent); } if (rootProps != null && !isObject(rootProps)) { warn$1(`root props passed to app.mount() must be an object.`); rootProps = null; } const context = createAppContext(); const installedPlugins = /* @__PURE__ */ new WeakSet(); const pluginCleanupFns = []; let isMounted = false; const app = context.app = { _uid: uid$1++, _component: rootComponent, _props: rootProps, _container: null, _context: context, _instance: null, version, get config() { return context.config; }, set config(v) { { warn$1( `app.config cannot be replaced. Modify individual options instead.` ); } }, use(plugin, ...options) { if (installedPlugins.has(plugin)) { warn$1(`Plugin has already been applied to target app.`); } else if (plugin && isFunction(plugin.install)) { installedPlugins.add(plugin); plugin.install(app, ...options); } else if (isFunction(plugin)) { installedPlugins.add(plugin); plugin(app, ...options); } else { warn$1( `A plugin must either be a function or an object with an "install" function.` ); } return app; }, mixin(mixin) { { if (!context.mixins.includes(mixin)) { context.mixins.push(mixin); } else { warn$1( "Mixin has already been applied to target app" + (mixin.name ? `: ${mixin.name}` : "") ); } } return app; }, component(name, component) { { validateComponentName(name, context.config); } if (!component) { return context.components[name]; } if (context.components[name]) { warn$1(`Component "${name}" has already been registered in target app.`); } context.components[name] = component; return app; }, directive(name, directive) { { validateDirectiveName(name); } if (!directive) { return context.directives[name]; } if (context.directives[name]) { warn$1(`Directive "${name}" has already been registered in target app.`); } context.directives[name] = directive; return app; }, mount(rootContainer, isHydrate, namespace) { if (!isMounted) { if (rootContainer.__vue_app__) { warn$1( `There is already an app instance mounted on the host container. If you want to mount another app on the same host container, you need to unmount the previous app by calling \`app.unmount()\` first.` ); } const vnode = app._ceVNode || createVNode(rootComponent, rootProps); vnode.appContext = context; if (namespace === true) { namespace = "svg"; } else if (namespace === false) { namespace = void 0; } { context.reload = () => { render( cloneVNode(vnode), rootContainer, namespace ); }; } if (isHydrate && hydrate) { hydrate(vnode, rootContainer); } else { render(vnode, rootContainer, namespace); } isMounted = true; app._container = rootContainer; rootContainer.__vue_app__ = app; { app._instance = vnode.component; devtoolsInitApp(app, version); } return getComponentPublicInstance(vnode.component); } else { warn$1( `App has already been mounted. If you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. \`const createMyApp = () => createApp(App)\`` ); } }, onUnmount(cleanupFn) { if (typeof cleanupFn !== "function") { warn$1( `Expected function as first argument to app.onUnmount(), but got ${typeof cleanupFn}` ); } pluginCleanupFns.push(cleanupFn); }, unmount() { if (isMounted) { callWithAsyncErrorHandling( pluginCleanupFns, app._instance, 16 ); render(null, app._container); { app._instance = null; devtoolsUnmountApp(app); } delete app._container.__vue_app__; } else { warn$1(`Cannot unmount an app that is not mounted.`); } }, provide(key, value) { if (key in context.provides) { warn$1( `App already provides property with key "${String(key)}". It will be overwritten with the new value.` ); } context.provides[key] = value; return app; }, runWithContext(fn) { const lastApp = currentApp; currentApp = app; try { return fn(); } finally { currentApp = lastApp; } } }; return app; }; } let currentApp = null; function provide(key, value) { if (!currentInstance) { { warn$1(`provide() can only be used inside setup().`); } } else { let provides = currentInstance.provides; const parentProvides = currentInstance.parent && currentInstance.parent.provides; if (parentProvides === provides) { provides = currentInstance.provides = Object.create(parentProvides); } provides[key] = value; } } function inject(key, defaultValue, treatDefaultAsFactory = false) { const instance = currentInstance || currentRenderingInstance; if (instance || currentApp) { const provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0; if (provides && key in provides) { return provides[key]; } else if (arguments.length > 1) { return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue; } else { warn$1(`injection "${String(key)}" not found.`); } } else { warn$1(`inject() can only be used inside setup() or functional components.`); } } function hasInjectionContext() { return !!(currentInstance || currentRenderingInstance || currentApp); } const internalObjectProto = {}; const createInternalObject = () => Object.create(internalObjectProto); const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto; function initProps(instance, rawProps, isStateful, isSSR = false) { const props = {}; const attrs = createInternalObject(); instance.propsDefaults = /* @__PURE__ */ Object.create(null); setFullProps(instance, rawProps, props, attrs); for (const key in instance.propsOptions[0]) { if (!(key in props)) { props[key] = void 0; } } { validateProps(rawProps || {}, props, instance); } if (isStateful) { instance.props = isSSR ? props : shallowReactive(props); } else { if (!instance.type.props) { instance.props = attrs; } else { instance.props = props; } } instance.attrs = attrs; } function isInHmrContext(instance) { while (instance) { if (instance.type.__hmrId) return true; instance = instance.parent; } } function updateProps(instance, rawProps, rawPrevProps, optimized) { const { props, attrs, vnode: { patchFlag } } = instance; const rawCurrentProps = toRaw(props); const [options] = instance.propsOptions; let hasAttrsChanged = false; if ( // always force full diff in dev // - #1942 if hmr is enabled with sfc component // - vite#872 non-sfc component used by sfc component !isInHmrContext(instance) && (optimized || patchFlag > 0) && !(patchFlag & 16) ) { if (patchFlag & 8) { const propsToUpdate = instance.vnode.dynamicProps; for (let i = 0; i < propsToUpdate.length; i++) { let key = propsToUpdate[i]; if (isEmitListener(instance.emitsOptions, key)) { continue; } const value = rawProps[key]; if (options) { if (hasOwn(attrs, key)) { if (value !== attrs[key]) { attrs[key] = value; hasAttrsChanged = true; } } else { const camelizedKey = camelize(key); props[camelizedKey] = resolvePropValue( options, rawCurrentProps, camelizedKey, value, instance, false ); } } else { if (value !== attrs[key]) { attrs[key] = value; hasAttrsChanged = true; } } } } } else { if (setFullProps(instance, rawProps, props, attrs)) { hasAttrsChanged = true; } let kebabKey; for (const key in rawCurrentProps) { if (!rawProps || // for camelCase !hasOwn(rawProps, key) && // it's possible the original props was passed in as kebab-case // and converted to camelCase (#955) ((kebabKey = hyphenate(key)) === key || !hasOwn(rawProps, kebabKey))) { if (options) { if (rawPrevProps && // for camelCase (rawPrevProps[key] !== void 0 || // for kebab-case rawPrevProps[kebabKey] !== void 0)) { props[key] = resolvePropValue( options, rawCurrentProps, key, void 0, instance, true ); } } else { delete props[key]; } } } if (attrs !== rawCurrentProps) { for (const key in attrs) { if (!rawProps || !hasOwn(rawProps, key) && true) { delete attrs[key]; hasAttrsChanged = true; } } } } if (hasAttrsChanged) { trigger(instance.attrs, "set", ""); } { validateProps(rawProps || {}, props, instance); } } function setFullProps(instance, rawProps, props, attrs) { const [options, needCastKeys] = instance.propsOptions; let hasAttrsChanged = false; let rawCastValues; if (rawProps) { for (let key in rawProps) { if (isReservedProp(key)) { continue; } const value = rawProps[key]; let camelKey; if (options && hasOwn(options, camelKey = camelize(key))) { if (!needCastKeys || !needCastKeys.includes(camelKey)) { props[camelKey] = value; } else { (rawCastValues || (rawCastValues = {}))[camelKey] = value; } } else if (!isEmitListener(instance.emitsOptions, key)) { if (!(key in attrs) || value !== attrs[key]) { attrs[key] = value; hasAttrsChanged = true; } } } } if (needCastKeys) { const rawCurrentProps = toRaw(props); const castValues = rawCastValues || EMPTY_OBJ; for (let i = 0; i < needCastKeys.length; i++) { const key = needCastKeys[i]; props[key] = resolvePropValue( options, rawCurrentProps, key, castValues[key], instance, !hasOwn(castValues, key) ); } } return hasAttrsChanged; } function resolvePropValue(options, props, key, value, instance, isAbsent) { const opt = options[key]; if (opt != null) { const hasDefault = hasOwn(opt, "default"); if (hasDefault && value === void 0) { const defaultValue = opt.default; if (opt.type !== Function && !opt.skipFactory && isFunction(defaultValue)) { const { propsDefaults } = instance; if (key in propsDefaults) { value = propsDefaults[key]; } else { const reset = setCurrentInstance(instance); value = propsDefaults[key] = defaultValue.call( null, props ); reset(); } } else { value = defaultValue; } if (instance.ce) { instance.ce._setProp(key, value); } } if (opt[0 /* shouldCast */]) { if (isAbsent && !hasDefault) { value = false; } else if (opt[1 /* shouldCastTrue */] && (value === "" || value === hyphenate(key))) { value = true; } } } return value; } const mixinPropsCache = /* @__PURE__ */ new WeakMap(); function normalizePropsOptions(comp, appContext, asMixin = false) { const cache = asMixin ? mixinPropsCache : appContext.propsCache; const cached = cache.get(comp); if (cached) { return cached; } const raw = comp.props; const normalized = {}; const needCastKeys = []; let hasExtends = false; if (!isFunction(comp)) { const extendProps = (raw2) => { hasExtends = true; const [props, keys] = normalizePropsOptions(raw2, appContext, true); extend(normalized, props); if (keys) needCastKeys.push(...keys); }; if (!asMixin && appContext.mixins.length) { appContext.mixins.forEach(extendProps); } if (comp.extends) { extendProps(comp.extends); } if (comp.mixins) { comp.mixins.forEach(extendProps); } } if (!raw && !hasExtends) { if (isObject(comp)) { cache.set(comp, EMPTY_ARR); } return EMPTY_ARR; } if (isArray(raw)) { for (let i = 0; i < raw.length; i++) { if (!isString(raw[i])) { warn$1(`props must be strings when using array syntax.`, raw[i]); } const normalizedKey = camelize(raw[i]); if (validatePropName(normalizedKey)) { normalized[normalizedKey] = EMPTY_OBJ; } } } else if (raw) { if (!isObject(raw)) { warn$1(`invalid props options`, raw); } for (const key in raw) { const normalizedKey = camelize(key); if (validatePropName(normalizedKey)) { const opt = raw[key]; const prop = normalized[normalizedKey] = isArray(opt) || isFunction(opt) ? { type: opt } : extend({}, opt); const propType = prop.type; let shouldCast = false; let shouldCastTrue = true; if (isArray(propType)) { for (let index = 0; index < propType.length; ++index) { const type = propType[index]; const typeName = isFunction(type) && type.name; if (typeName === "Boolean") { shouldCast = true; break; } else if (typeName === "String") { shouldCastTrue = false; } } } else { shouldCast = isFunction(propType) && propType.name === "Boolean"; } prop[0 /* shouldCast */] = shouldCast; prop[1 /* shouldCastTrue */] = shouldCastTrue; if (shouldCast || hasOwn(prop, "default")) { needCastKeys.push(normalizedKey); } } } } const res = [normalized, needCastKeys]; if (isObject(comp)) { cache.set(comp, res); } return res; } function validatePropName(key) { if (key[0] !== "$" && !isReservedProp(key)) { return true; } else { warn$1(`Invalid prop name: "${key}" is a reserved property.`); } return false; } function getType(ctor) { if (ctor === null) { return "null"; } if (typeof ctor === "function") { return ctor.name || ""; } else if (typeof ctor === "object") { const name = ctor.constructor && ctor.constructor.name; return name || ""; } return ""; } function validateProps(rawProps, props, instance) { const resolvedValues = toRaw(props); const options = instance.propsOptions[0]; const camelizePropsKey = Object.keys(rawProps).map((key) => camelize(key)); for (const key in options) { let opt = options[key]; if (opt == null) continue; validateProp( key, resolvedValues[key], opt, shallowReadonly(resolvedValues) , !camelizePropsKey.includes(key) ); } } function validateProp(name, value, prop, props, isAbsent) { const { type, required, validator, skipCheck } = prop; if (required && isAbsent) { warn$1('Missing required prop: "' + name + '"'); return; } if (value == null && !required) { return; } if (type != null && type !== true && !skipCheck) { let isValid = false; const types = isArray(type) ? type : [type]; const expectedTypes = []; for (let i = 0; i < types.length && !isValid; i++) { const { valid, expectedType } = assertType(value, types[i]); expectedTypes.push(expectedType || ""); isValid = valid; } if (!isValid) { warn$1(getInvalidTypeMessage(name, value, expectedTypes)); return; } } if (validator && !validator(value, props)) { warn$1('Invalid prop: custom validator check failed for prop "' + name + '".'); } } const isSimpleType = /* @__PURE__ */ makeMap( "String,Number,Boolean,Function,Symbol,BigInt" ); function assertType(value, type) { let valid; const expectedType = getType(type); if (expectedType === "null") { valid = value === null; } else if (isSimpleType(expectedType)) { const t = typeof value; valid = t === expectedType.toLowerCase(); if (!valid && t === "object") { valid = value instanceof type; } } else if (expectedType === "Object") { valid = isObject(value); } else if (expectedType === "Array") { valid = isArray(value); } else { valid = value instanceof type; } return { valid, expectedType }; } function getInvalidTypeMessage(name, value, expectedTypes) { if (expectedTypes.length === 0) { return `Prop type [] for prop "${name}" won't match anything. Did you mean to use type Array instead?`; } let message = `Invalid prop: type check failed for prop "${name}". Expected ${expectedTypes.map(capitalize).join(" | ")}`; const expectedType = expectedTypes[0]; const receivedType = toRawType(value); const expectedValue = styleValue(value, expectedType); const receivedValue = styleValue(value, receivedType); if (expectedTypes.length === 1 && isExplicable(expectedType) && !isBoolean(expectedType, receivedType)) { message += ` with value ${expectedValue}`; } message += `, got ${receivedType} `; if (isExplicable(receivedType)) { message += `with value ${receivedValue}.`; } return message; } function styleValue(value, type) { if (type === "String") { return `"${value}"`; } else if (type === "Number") { return `${Number(value)}`; } else { return `${value}`; } } function isExplicable(type) { const explicitTypes = ["string", "number", "boolean"]; return explicitTypes.some((elem) => type.toLowerCase() === elem); } function isBoolean(...args) { return args.some((elem) => elem.toLowerCase() === "boolean"); } const isInternalKey = (key) => key[0] === "_" || key === "$stable"; const normalizeSlotValue = (value) => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)]; const normalizeSlot = (key, rawSlot, ctx) => { if (rawSlot._n) { return rawSlot; } const normalized = withCtx((...args) => { if (currentInstance && (!ctx || ctx.root === currentInstance.root)) { warn$1( `Slot "${key}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.` ); } return normalizeSlotValue(rawSlot(...args)); }, ctx); normalized._c = false; return normalized; }; const normalizeObjectSlots = (rawSlots, slots, instance) => { const ctx = rawSlots._ctx; for (const key in rawSlots) { if (isInternalKey(key)) continue; const value = rawSlots[key]; if (isFunction(value)) { slots[key] = normalizeSlot(key, value, ctx); } else if (value != null) { { warn$1( `Non-function value encountered for slot "${key}". Prefer function slots for better performance.` ); } const normalized = normalizeSlotValue(value); slots[key] = () => normalized; } } }; const normalizeVNodeSlots = (instance, children) => { if (!isKeepAlive(instance.vnode) && true) { warn$1( `Non-function value encountered for default slot. Prefer function slots for better performance.` ); } const normalized = normalizeSlotValue(children); instance.slots.default = () => normalized; }; const assignSlots = (slots, children, optimized) => { for (const key in children) { if (optimized || key !== "_") { slots[key] = children[key]; } } }; const initSlots = (instance, children, optimized) => { const slots = instance.slots = createInternalObject(); if (instance.vnode.shapeFlag & 32) { const type = children._; if (type) { assignSlots(slots, children, optimized); if (optimized) { def(slots, "_", type, true); } } else { normalizeObjectSlots(children, slots); } } else if (children) { normalizeVNodeSlots(instance, children); } }; const updateSlots = (instance, children, optimized) => { const { vnode, slots } = instance; let needDeletionCheck = true; let deletionComparisonTarget = EMPTY_OBJ; if (vnode.shapeFlag & 32) { const type = children._; if (type) { if (isHmrUpdating) { assignSlots(slots, children, optimized); trigger(instance, "set", "$slots"); } else if (optimized && type === 1) { needDeletionCheck = false; } else { assignSlots(slots, children, optimized); } } else { needDeletionCheck = !children.$stable; normalizeObjectSlots(children, slots); } deletionComparisonTarget = children; } else if (children) { normalizeVNodeSlots(instance, children); deletionComparisonTarget = { default: 1 }; } if (needDeletionCheck) { for (const key in slots) { if (!isInternalKey(key) && deletionComparisonTarget[key] == null) { delete slots[key]; } } } }; let supported; let perf; function startMeasure(instance, type) { if (instance.appContext.config.performance && isSupported()) { perf.mark(`vue-${type}-${instance.uid}`); } { devtoolsPerfStart(instance, type, isSupported() ? perf.now() : Date.now()); } } function endMeasure(instance, type) { if (instance.appContext.config.performance && isSupported()) { const startTag = `vue-${type}-${instance.uid}`; const endTag = startTag + `:end`; perf.mark(endTag); perf.measure( `<${formatComponentName(instance, instance.type)}> ${type}`, startTag, endTag ); perf.clearMarks(startTag); perf.clearMarks(endTag); } { devtoolsPerfEnd(instance, type, isSupported() ? perf.now() : Date.now()); } } function isSupported() { if (supported !== void 0) { return supported; } if (typeof window !== "undefined" && window.performance) { supported = true; perf = window.performance; } else { supported = false; } return supported; } const queuePostRenderEffect = queueEffectWithSuspense ; function createRenderer(options) { return baseCreateRenderer(options); } function createHydrationRenderer(options) { return baseCreateRenderer(options, createHydrationFunctions); } function baseCreateRenderer(options, createHydrationFns) { const target = getGlobalThis(); target.__VUE__ = true; { setDevtoolsHook$1(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target); } const { insert: hostInsert, remove: hostRemove, patchProp: hostPatchProp, createElement: hostCreateElement, createText: hostCreateText, createComment: hostCreateComment, setText: hostSetText, setElementText: hostSetElementText, parentNode: hostParentNode, nextSibling: hostNextSibling, setScopeId: hostSetScopeId = NOOP, insertStaticContent: hostInsertStaticContent } = options; const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, namespace = void 0, slotScopeIds = null, optimized = isHmrUpdating ? false : !!n2.dynamicChildren) => { if (n1 === n2) { return; } if (n1 && !isSameVNodeType(n1, n2)) { anchor = getNextHostNode(n1); unmount(n1, parentComponent, parentSuspense, true); n1 = null; } if (n2.patchFlag === -2) { optimized = false; n2.dynamicChildren = null; } const { type, ref, shapeFlag } = n2; switch (type) { case Text: processText(n1, n2, container, anchor); break; case Comment: processCommentNode(n1, n2, container, anchor); break; case Static: if (n1 == null) { mountStaticNode(n2, container, anchor, namespace); } else { patchStaticNode(n1, n2, container, namespace); } break; case Fragment: processFragment( n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); break; default: if (shapeFlag & 1) { processElement( n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); } else if (shapeFlag & 6) { processComponent( n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); } else if (shapeFlag & 64) { type.process( n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals ); } else if (shapeFlag & 128) { type.process( n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals ); } else { warn$1("Invalid VNode type:", type, `(${typeof type})`); } } if (ref != null && parentComponent) { setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2); } }; const processText = (n1, n2, container, anchor) => { if (n1 == null) { hostInsert( n2.el = hostCreateText(n2.children), container, anchor ); } else { const el = n2.el = n1.el; if (n2.children !== n1.children) { hostSetText(el, n2.children); } } }; const processCommentNode = (n1, n2, container, anchor) => { if (n1 == null) { hostInsert( n2.el = hostCreateComment(n2.children || ""), container, anchor ); } else { n2.el = n1.el; } }; const mountStaticNode = (n2, container, anchor, namespace) => { [n2.el, n2.anchor] = hostInsertStaticContent( n2.children, container, anchor, namespace, n2.el, n2.anchor ); }; const patchStaticNode = (n1, n2, container, namespace) => { if (n2.children !== n1.children) { const anchor = hostNextSibling(n1.anchor); removeStaticNode(n1); [n2.el, n2.anchor] = hostInsertStaticContent( n2.children, container, anchor, namespace ); } else { n2.el = n1.el; n2.anchor = n1.anchor; } }; const moveStaticNode = ({ el, anchor }, container, nextSibling) => { let next; while (el && el !== anchor) { next = hostNextSibling(el); hostInsert(el, container, nextSibling); el = next; } hostInsert(anchor, container, nextSibling); }; const removeStaticNode = ({ el, anchor }) => { let next; while (el && el !== anchor) { next = hostNextSibling(el); hostRemove(el); el = next; } hostRemove(anchor); }; const processElement = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { if (n2.type === "svg") { namespace = "svg"; } else if (n2.type === "math") { namespace = "mathml"; } if (n1 == null) { mountElement( n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); } else { patchElement( n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); } }; const mountElement = (vnode, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { let el; let vnodeHook; const { props, shapeFlag, transition, dirs } = vnode; el = vnode.el = hostCreateElement( vnode.type, namespace, props && props.is, props ); if (shapeFlag & 8) { hostSetElementText(el, vnode.children); } else if (shapeFlag & 16) { mountChildren( vnode.children, el, null, parentComponent, parentSuspense, resolveChildrenNamespace(vnode, namespace), slotScopeIds, optimized ); } if (dirs) { invokeDirectiveHook(vnode, null, parentComponent, "created"); } setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent); if (props) { for (const key in props) { if (key !== "value" && !isReservedProp(key)) { hostPatchProp(el, key, null, props[key], namespace, parentComponent); } } if ("value" in props) { hostPatchProp(el, "value", null, props.value, namespace); } if (vnodeHook = props.onVnodeBeforeMount) { invokeVNodeHook(vnodeHook, parentComponent, vnode); } } { def(el, "__vnode", vnode, true); def(el, "__vueParentComponent", parentComponent, true); } if (dirs) { invokeDirectiveHook(vnode, null, parentComponent, "beforeMount"); } const needCallTransitionHooks = needTransition(parentSuspense, transition); if (needCallTransitionHooks) { transition.beforeEnter(el); } hostInsert(el, container, anchor); if ((vnodeHook = props && props.onVnodeMounted) || needCallTransitionHooks || dirs) { queuePostRenderEffect(() => { vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); needCallTransitionHooks && transition.enter(el); dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted"); }, parentSuspense); } }; const setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => { if (scopeId) { hostSetScopeId(el, scopeId); } if (slotScopeIds) { for (let i = 0; i < slotScopeIds.length; i++) { hostSetScopeId(el, slotScopeIds[i]); } } if (parentComponent) { let subTree = parentComponent.subTree; if (subTree.patchFlag > 0 && subTree.patchFlag & 2048) { subTree = filterSingleRoot(subTree.children) || subTree; } if (vnode === subTree || isSuspense(subTree.type) && (subTree.ssContent === vnode || subTree.ssFallback === vnode)) { const parentVNode = parentComponent.vnode; setScopeId( el, parentVNode, parentVNode.scopeId, parentVNode.slotScopeIds, parentComponent.parent ); } } }; const mountChildren = (children, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, start = 0) => { for (let i = start; i < children.length; i++) { const child = children[i] = optimized ? cloneIfMounted(children[i]) : normalizeVNode(children[i]); patch( null, child, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); } }; const patchElement = (n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { const el = n2.el = n1.el; { el.__vnode = n2; } let { patchFlag, dynamicChildren, dirs } = n2; patchFlag |= n1.patchFlag & 16; const oldProps = n1.props || EMPTY_OBJ; const newProps = n2.props || EMPTY_OBJ; let vnodeHook; parentComponent && toggleRecurse(parentComponent, false); if (vnodeHook = newProps.onVnodeBeforeUpdate) { invokeVNodeHook(vnodeHook, parentComponent, n2, n1); } if (dirs) { invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate"); } parentComponent && toggleRecurse(parentComponent, true); if (isHmrUpdating) { patchFlag = 0; optimized = false; dynamicChildren = null; } if (oldProps.innerHTML && newProps.innerHTML == null || oldProps.textContent && newProps.textContent == null) { hostSetElementText(el, ""); } if (dynamicChildren) { patchBlockChildren( n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, resolveChildrenNamespace(n2, namespace), slotScopeIds ); { traverseStaticChildren(n1, n2); } } else if (!optimized) { patchChildren( n1, n2, el, null, parentComponent, parentSuspense, resolveChildrenNamespace(n2, namespace), slotScopeIds, false ); } if (patchFlag > 0) { if (patchFlag & 16) { patchProps(el, oldProps, newProps, parentComponent, namespace); } else { if (patchFlag & 2) { if (oldProps.class !== newProps.class) { hostPatchProp(el, "class", null, newProps.class, namespace); } } if (patchFlag & 4) { hostPatchProp(el, "style", oldProps.style, newProps.style, namespace); } if (patchFlag & 8) { const propsToUpdate = n2.dynamicProps; for (let i = 0; i < propsToUpdate.length; i++) { const key = propsToUpdate[i]; const prev = oldProps[key]; const next = newProps[key]; if (next !== prev || key === "value") { hostPatchProp(el, key, prev, next, namespace, parentComponent); } } } } if (patchFlag & 1) { if (n1.children !== n2.children) { hostSetElementText(el, n2.children); } } } else if (!optimized && dynamicChildren == null) { patchProps(el, oldProps, newProps, parentComponent, namespace); } if ((vnodeHook = newProps.onVnodeUpdated) || dirs) { queuePostRenderEffect(() => { vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1); dirs && invokeDirectiveHook(n2, n1, parentComponent, "updated"); }, parentSuspense); } }; const patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, namespace, slotScopeIds) => { for (let i = 0; i < newChildren.length; i++) { const oldVNode = oldChildren[i]; const newVNode = newChildren[i]; const container = ( // oldVNode may be an errored async setup() component inside Suspense // which will not have a mounted element oldVNode.el && // - In the case of a Fragment, we need to provide the actual parent // of the Fragment itself so it can move its children. (oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement // which also requires the correct parent container !isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything. oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : ( // In other cases, the parent container is not actually used so we // just pass the block element here to avoid a DOM parentNode call. fallbackContainer ) ); patch( oldVNode, newVNode, container, null, parentComponent, parentSuspense, namespace, slotScopeIds, true ); } }; const patchProps = (el, oldProps, newProps, parentComponent, namespace) => { if (oldProps !== newProps) { if (oldProps !== EMPTY_OBJ) { for (const key in oldProps) { if (!isReservedProp(key) && !(key in newProps)) { hostPatchProp( el, key, oldProps[key], null, namespace, parentComponent ); } } } for (const key in newProps) { if (isReservedProp(key)) continue; const next = newProps[key]; const prev = oldProps[key]; if (next !== prev && key !== "value") { hostPatchProp(el, key, prev, next, namespace, parentComponent); } } if ("value" in newProps) { hostPatchProp(el, "value", oldProps.value, newProps.value, namespace); } } }; const processFragment = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { const fragmentStartAnchor = n2.el = n1 ? n1.el : hostCreateText(""); const fragmentEndAnchor = n2.anchor = n1 ? n1.anchor : hostCreateText(""); let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2; if ( // #5523 dev root fragment may inherit directives isHmrUpdating || patchFlag & 2048 ) { patchFlag = 0; optimized = false; dynamicChildren = null; } if (fragmentSlotScopeIds) { slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds; } if (n1 == null) { hostInsert(fragmentStartAnchor, container, anchor); hostInsert(fragmentEndAnchor, container, anchor); mountChildren( // #10007 // such fragment like `<></>` will be compiled into // a fragment which doesn't have a children. // In this case fallback to an empty array n2.children || [], container, fragmentEndAnchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); } else { if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result // of renderSlot() with no valid children n1.dynamicChildren) { patchBlockChildren( n1.dynamicChildren, dynamicChildren, container, parentComponent, parentSuspense, namespace, slotScopeIds ); { traverseStaticChildren(n1, n2); } } else { patchChildren( n1, n2, container, fragmentEndAnchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); } } }; const processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { n2.slotScopeIds = slotScopeIds; if (n1 == null) { if (n2.shapeFlag & 512) { parentComponent.ctx.activate( n2, container, anchor, namespace, optimized ); } else { mountComponent( n2, container, anchor, parentComponent, parentSuspense, namespace, optimized ); } } else { updateComponent(n1, n2, optimized); } }; const mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, namespace, optimized) => { const instance = (initialVNode.component = createComponentInstance( initialVNode, parentComponent, parentSuspense )); if (instance.type.__hmrId) { registerHMR(instance); } { pushWarningContext(initialVNode); startMeasure(instance, `mount`); } if (isKeepAlive(initialVNode)) { instance.ctx.renderer = internals; } { { startMeasure(instance, `init`); } setupComponent(instance, false, optimized); { endMeasure(instance, `init`); } } if (instance.asyncDep) { if (isHmrUpdating) initialVNode.el = null; parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized); if (!initialVNode.el) { const placeholder = instance.subTree = createVNode(Comment); processCommentNode(null, placeholder, container, anchor); } } else { setupRenderEffect( instance, initialVNode, container, anchor, parentSuspense, namespace, optimized ); } { popWarningContext(); endMeasure(instance, `mount`); } }; const updateComponent = (n1, n2, optimized) => { const instance = n2.component = n1.component; if (shouldUpdateComponent(n1, n2, optimized)) { if (instance.asyncDep && !instance.asyncResolved) { { pushWarningContext(n2); } updateComponentPreRender(instance, n2, optimized); { popWarningContext(); } return; } else { instance.next = n2; instance.update(); } } else { n2.el = n1.el; instance.vnode = n2; } }; const setupRenderEffect = (instance, initialVNode, container, anchor, parentSuspense, namespace, optimized) => { const componentUpdateFn = () => { if (!instance.isMounted) { let vnodeHook; const { el, props } = initialVNode; const { bm, m, parent, root, type } = instance; const isAsyncWrapperVNode = isAsyncWrapper(initialVNode); toggleRecurse(instance, false); if (bm) { invokeArrayFns(bm); } if (!isAsyncWrapperVNode && (vnodeHook = props && props.onVnodeBeforeMount)) { invokeVNodeHook(vnodeHook, parent, initialVNode); } toggleRecurse(instance, true); if (el && hydrateNode) { const hydrateSubTree = () => { { startMeasure(instance, `render`); } instance.subTree = renderComponentRoot(instance); { endMeasure(instance, `render`); } { startMeasure(instance, `hydrate`); } hydrateNode( el, instance.subTree, instance, parentSuspense, null ); { endMeasure(instance, `hydrate`); } }; if (isAsyncWrapperVNode && type.__asyncHydrate) { type.__asyncHydrate( el, instance, hydrateSubTree ); } else { hydrateSubTree(); } } else { if (root.ce) { root.ce._injectChildStyle(type); } { startMeasure(instance, `render`); } const subTree = instance.subTree = renderComponentRoot(instance); { endMeasure(instance, `render`); } { startMeasure(instance, `patch`); } patch( null, subTree, container, anchor, instance, parentSuspense, namespace ); { endMeasure(instance, `patch`); } initialVNode.el = subTree.el; } if (m) { queuePostRenderEffect(m, parentSuspense); } if (!isAsyncWrapperVNode && (vnodeHook = props && props.onVnodeMounted)) { const scopedInitialVNode = initialVNode; queuePostRenderEffect( () => invokeVNodeHook(vnodeHook, parent, scopedInitialVNode), parentSuspense ); } if (initialVNode.shapeFlag & 256 || parent && isAsyncWrapper(parent.vnode) && parent.vnode.shapeFlag & 256) { instance.a && queuePostRenderEffect(instance.a, parentSuspense); } instance.isMounted = true; { devtoolsComponentAdded(instance); } initialVNode = container = anchor = null; } else { let { next, bu, u, parent, vnode } = instance; { const nonHydratedAsyncRoot = locateNonHydratedAsyncRoot(instance); if (nonHydratedAsyncRoot) { if (next) { next.el = vnode.el; updateComponentPreRender(instance, next, optimized); } nonHydratedAsyncRoot.asyncDep.then(() => { if (!instance.isUnmounted) { componentUpdateFn(); } }); return; } } let originNext = next; let vnodeHook; { pushWarningContext(next || instance.vnode); } toggleRecurse(instance, false); if (next) { next.el = vnode.el; updateComponentPreRender(instance, next, optimized); } else { next = vnode; } if (bu) { invokeArrayFns(bu); } if (vnodeHook = next.props && next.props.onVnodeBeforeUpdate) { invokeVNodeHook(vnodeHook, parent, next, vnode); } toggleRecurse(instance, true); { startMeasure(instance, `render`); } const nextTree = renderComponentRoot(instance); { endMeasure(instance, `render`); } const prevTree = instance.subTree; instance.subTree = nextTree; { startMeasure(instance, `patch`); } patch( prevTree, nextTree, // parent may have changed if it's in a teleport hostParentNode(prevTree.el), // anchor may have changed if it's in a fragment getNextHostNode(prevTree), instance, parentSuspense, namespace ); { endMeasure(instance, `patch`); } next.el = nextTree.el; if (originNext === null) { updateHOCHostEl(instance, nextTree.el); } if (u) { queuePostRenderEffect(u, parentSuspense); } if (vnodeHook = next.props && next.props.onVnodeUpdated) { queuePostRenderEffect( () => invokeVNodeHook(vnodeHook, parent, next, vnode), parentSuspense ); } { devtoolsComponentUpdated(instance); } { popWarningContext(); } } }; instance.scope.on(); const effect = instance.effect = new ReactiveEffect(componentUpdateFn); instance.scope.off(); const update = instance.update = effect.run.bind(effect); const job = instance.job = effect.runIfDirty.bind(effect); job.i = instance; job.id = instance.uid; effect.scheduler = () => queueJob(job); toggleRecurse(instance, true); { effect.onTrack = instance.rtc ? (e) => invokeArrayFns(instance.rtc, e) : void 0; effect.onTrigger = instance.rtg ? (e) => invokeArrayFns(instance.rtg, e) : void 0; } update(); }; const updateComponentPreRender = (instance, nextVNode, optimized) => { nextVNode.component = instance; const prevProps = instance.vnode.props; instance.vnode = nextVNode; instance.next = null; updateProps(instance, nextVNode.props, prevProps, optimized); updateSlots(instance, nextVNode.children, optimized); pauseTracking(); flushPreFlushCbs(instance); resetTracking(); }; const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized = false) => { const c1 = n1 && n1.children; const prevShapeFlag = n1 ? n1.shapeFlag : 0; const c2 = n2.children; const { patchFlag, shapeFlag } = n2; if (patchFlag > 0) { if (patchFlag & 128) { patchKeyedChildren( c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); return; } else if (patchFlag & 256) { patchUnkeyedChildren( c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); return; } } if (shapeFlag & 8) { if (prevShapeFlag & 16) { unmountChildren(c1, parentComponent, parentSuspense); } if (c2 !== c1) { hostSetElementText(container, c2); } } else { if (prevShapeFlag & 16) { if (shapeFlag & 16) { patchKeyedChildren( c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); } else { unmountChildren(c1, parentComponent, parentSuspense, true); } } else { if (prevShapeFlag & 8) { hostSetElementText(container, ""); } if (shapeFlag & 16) { mountChildren( c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); } } } }; const patchUnkeyedChildren = (c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { c1 = c1 || EMPTY_ARR; c2 = c2 || EMPTY_ARR; const oldLength = c1.length; const newLength = c2.length; const commonLength = Math.min(oldLength, newLength); let i; for (i = 0; i < commonLength; i++) { const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]); patch( c1[i], nextChild, container, null, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); } if (oldLength > newLength) { unmountChildren( c1, parentComponent, parentSuspense, true, false, commonLength ); } else { mountChildren( c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, commonLength ); } }; const patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { let i = 0; const l2 = c2.length; let e1 = c1.length - 1; let e2 = l2 - 1; while (i <= e1 && i <= e2) { const n1 = c1[i]; const n2 = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]); if (isSameVNodeType(n1, n2)) { patch( n1, n2, container, null, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); } else { break; } i++; } while (i <= e1 && i <= e2) { const n1 = c1[e1]; const n2 = c2[e2] = optimized ? cloneIfMounted(c2[e2]) : normalizeVNode(c2[e2]); if (isSameVNodeType(n1, n2)) { patch( n1, n2, container, null, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); } else { break; } e1--; e2--; } if (i > e1) { if (i <= e2) { const nextPos = e2 + 1; const anchor = nextPos < l2 ? c2[nextPos].el : parentAnchor; while (i <= e2) { patch( null, c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]), container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); i++; } } } else if (i > e2) { while (i <= e1) { unmount(c1[i], parentComponent, parentSuspense, true); i++; } } else { const s1 = i; const s2 = i; const keyToNewIndexMap = /* @__PURE__ */ new Map(); for (i = s2; i <= e2; i++) { const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]); if (nextChild.key != null) { if (keyToNewIndexMap.has(nextChild.key)) { warn$1( `Duplicate keys found during update:`, JSON.stringify(nextChild.key), `Make sure keys are unique.` ); } keyToNewIndexMap.set(nextChild.key, i); } } let j; let patched = 0; const toBePatched = e2 - s2 + 1; let moved = false; let maxNewIndexSoFar = 0; const newIndexToOldIndexMap = new Array(toBePatched); for (i = 0; i < toBePatched; i++) newIndexToOldIndexMap[i] = 0; for (i = s1; i <= e1; i++) { const prevChild = c1[i]; if (patched >= toBePatched) { unmount(prevChild, parentComponent, parentSuspense, true); continue; } let newIndex; if (prevChild.key != null) { newIndex = keyToNewIndexMap.get(prevChild.key); } else { for (j = s2; j <= e2; j++) { if (newIndexToOldIndexMap[j - s2] === 0 && isSameVNodeType(prevChild, c2[j])) { newIndex = j; break; } } } if (newIndex === void 0) { unmount(prevChild, parentComponent, parentSuspense, true); } else { newIndexToOldIndexMap[newIndex - s2] = i + 1; if (newIndex >= maxNewIndexSoFar) { maxNewIndexSoFar = newIndex; } else { moved = true; } patch( prevChild, c2[newIndex], container, null, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); patched++; } } const increasingNewIndexSequence = moved ? getSequence(newIndexToOldIndexMap) : EMPTY_ARR; j = increasingNewIndexSequence.length - 1; for (i = toBePatched - 1; i >= 0; i--) { const nextIndex = s2 + i; const nextChild = c2[nextIndex]; const anchor = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor; if (newIndexToOldIndexMap[i] === 0) { patch( null, nextChild, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); } else if (moved) { if (j < 0 || i !== increasingNewIndexSequence[j]) { move(nextChild, container, anchor, 2); } else { j--; } } } } }; const move = (vnode, container, anchor, moveType, parentSuspense = null) => { const { el, type, transition, children, shapeFlag } = vnode; if (shapeFlag & 6) { move(vnode.component.subTree, container, anchor, moveType); return; } if (shapeFlag & 128) { vnode.suspense.move(container, anchor, moveType); return; } if (shapeFlag & 64) { type.move(vnode, container, anchor, internals); return; } if (type === Fragment) { hostInsert(el, container, anchor); for (let i = 0; i < children.length; i++) { move(children[i], container, anchor, moveType); } hostInsert(vnode.anchor, container, anchor); return; } if (type === Static) { moveStaticNode(vnode, container, anchor); return; } const needTransition2 = moveType !== 2 && shapeFlag & 1 && transition; if (needTransition2) { if (moveType === 0) { transition.beforeEnter(el); hostInsert(el, container, anchor); queuePostRenderEffect(() => transition.enter(el), parentSuspense); } else { const { leave, delayLeave, afterLeave } = transition; const remove2 = () => hostInsert(el, container, anchor); const performLeave = () => { leave(el, () => { remove2(); afterLeave && afterLeave(); }); }; if (delayLeave) { delayLeave(el, remove2, performLeave); } else { performLeave(); } } } else { hostInsert(el, container, anchor); } }; const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => { const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs, cacheIndex } = vnode; if (patchFlag === -2) { optimized = false; } if (ref != null) { setRef(ref, null, parentSuspense, vnode, true); } if (cacheIndex != null) { parentComponent.renderCache[cacheIndex] = void 0; } if (shapeFlag & 256) { parentComponent.ctx.deactivate(vnode); return; } const shouldInvokeDirs = shapeFlag & 1 && dirs; const shouldInvokeVnodeHook = !isAsyncWrapper(vnode); let vnodeHook; if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeBeforeUnmount)) { invokeVNodeHook(vnodeHook, parentComponent, vnode); } if (shapeFlag & 6) { unmountComponent(vnode.component, parentSuspense, doRemove); } else { if (shapeFlag & 128) { vnode.suspense.unmount(parentSuspense, doRemove); return; } if (shouldInvokeDirs) { invokeDirectiveHook(vnode, null, parentComponent, "beforeUnmount"); } if (shapeFlag & 64) { vnode.type.remove( vnode, parentComponent, parentSuspense, internals, doRemove ); } else if (dynamicChildren && // #5154 // when v-once is used inside a block, setBlockTracking(-1) marks the // parent block with hasOnce: true // so that it doesn't take the fast path during unmount - otherwise // components nested in v-once are never unmounted. !dynamicChildren.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments (type !== Fragment || patchFlag > 0 && patchFlag & 64)) { unmountChildren( dynamicChildren, parentComponent, parentSuspense, false, true ); } else if (type === Fragment && patchFlag & (128 | 256) || !optimized && shapeFlag & 16) { unmountChildren(children, parentComponent, parentSuspense); } if (doRemove) { remove(vnode); } } if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeUnmounted) || shouldInvokeDirs) { queuePostRenderEffect(() => { vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); shouldInvokeDirs && invokeDirectiveHook(vnode, null, parentComponent, "unmounted"); }, parentSuspense); } }; const remove = (vnode) => { const { type, el, anchor, transition } = vnode; if (type === Fragment) { if (vnode.patchFlag > 0 && vnode.patchFlag & 2048 && transition && !transition.persisted) { vnode.children.forEach((child) => { if (child.type === Comment) { hostRemove(child.el); } else { remove(child); } }); } else { removeFragment(el, anchor); } return; } if (type === Static) { removeStaticNode(vnode); return; } const performRemove = () => { hostRemove(el); if (transition && !transition.persisted && transition.afterLeave) { transition.afterLeave(); } }; if (vnode.shapeFlag & 1 && transition && !transition.persisted) { const { leave, delayLeave } = transition; const performLeave = () => leave(el, performRemove); if (delayLeave) { delayLeave(vnode.el, performRemove, performLeave); } else { performLeave(); } } else { performRemove(); } }; const removeFragment = (cur, end) => { let next; while (cur !== end) { next = hostNextSibling(cur); hostRemove(cur); cur = next; } hostRemove(end); }; const unmountComponent = (instance, parentSuspense, doRemove) => { if (instance.type.__hmrId) { unregisterHMR(instance); } const { bum, scope, job, subTree, um, m, a } = instance; invalidateMount(m); invalidateMount(a); if (bum) { invokeArrayFns(bum); } scope.stop(); if (job) { job.flags |= 8; unmount(subTree, instance, parentSuspense, doRemove); } if (um) { queuePostRenderEffect(um, parentSuspense); } queuePostRenderEffect(() => { instance.isUnmounted = true; }, parentSuspense); if (parentSuspense && parentSuspense.pendingBranch && !parentSuspense.isUnmounted && instance.asyncDep && !instance.asyncResolved && instance.suspenseId === parentSuspense.pendingId) { parentSuspense.deps--; if (parentSuspense.deps === 0) { parentSuspense.resolve(); } } { devtoolsComponentRemoved(instance); } }; const unmountChildren = (children, parentComponent, parentSuspense, doRemove = false, optimized = false, start = 0) => { for (let i = start; i < children.length; i++) { unmount(children[i], parentComponent, parentSuspense, doRemove, optimized); } }; const getNextHostNode = (vnode) => { if (vnode.shapeFlag & 6) { return getNextHostNode(vnode.component.subTree); } if (vnode.shapeFlag & 128) { return vnode.suspense.next(); } const el = hostNextSibling(vnode.anchor || vnode.el); const teleportEnd = el && el[TeleportEndKey]; return teleportEnd ? hostNextSibling(teleportEnd) : el; }; let isFlushing = false; const render = (vnode, container, namespace) => { if (vnode == null) { if (container._vnode) { unmount(container._vnode, null, null, true); } } else { patch( container._vnode || null, vnode, container, null, null, null, namespace ); } container._vnode = vnode; if (!isFlushing) { isFlushing = true; flushPreFlushCbs(); flushPostFlushCbs(); isFlushing = false; } }; const internals = { p: patch, um: unmount, m: move, r: remove, mt: mountComponent, mc: mountChildren, pc: patchChildren, pbc: patchBlockChildren, n: getNextHostNode, o: options }; let hydrate; let hydrateNode; if (createHydrationFns) { [hydrate, hydrateNode] = createHydrationFns( internals ); } return { render, hydrate, createApp: createAppAPI(render, hydrate) }; } function resolveChildrenNamespace({ type, props }, currentNamespace) { return currentNamespace === "svg" && type === "foreignObject" || currentNamespace === "mathml" && type === "annotation-xml" && props && props.encoding && props.encoding.includes("html") ? void 0 : currentNamespace; } function toggleRecurse({ effect, job }, allowed) { if (allowed) { effect.flags |= 32; job.flags |= 4; } else { effect.flags &= ~32; job.flags &= ~4; } } function needTransition(parentSuspense, transition) { return (!parentSuspense || parentSuspense && !parentSuspense.pendingBranch) && transition && !transition.persisted; } function traverseStaticChildren(n1, n2, shallow = false) { const ch1 = n1.children; const ch2 = n2.children; if (isArray(ch1) && isArray(ch2)) { for (let i = 0; i < ch1.length; i++) { const c1 = ch1[i]; let c2 = ch2[i]; if (c2.shapeFlag & 1 && !c2.dynamicChildren) { if (c2.patchFlag <= 0 || c2.patchFlag === 32) { c2 = ch2[i] = cloneIfMounted(ch2[i]); c2.el = c1.el; } if (!shallow && c2.patchFlag !== -2) traverseStaticChildren(c1, c2); } if (c2.type === Text) { c2.el = c1.el; } if (c2.type === Comment && !c2.el) { c2.el = c1.el; } } } } function getSequence(arr) { const p = arr.slice(); const result = [0]; let i, j, u, v, c; const len = arr.length; for (i = 0; i < len; i++) { const arrI = arr[i]; if (arrI !== 0) { j = result[result.length - 1]; if (arr[j] < arrI) { p[i] = j; result.push(i); continue; } u = 0; v = result.length - 1; while (u < v) { c = u + v >> 1; if (arr[result[c]] < arrI) { u = c + 1; } else { v = c; } } if (arrI < arr[result[u]]) { if (u > 0) { p[i] = result[u - 1]; } result[u] = i; } } } u = result.length; v = result[u - 1]; while (u-- > 0) { result[u] = v; v = p[v]; } return result; } function locateNonHydratedAsyncRoot(instance) { const subComponent = instance.subTree.component; if (subComponent) { if (subComponent.asyncDep && !subComponent.asyncResolved) { return subComponent; } else { return locateNonHydratedAsyncRoot(subComponent); } } } function invalidateMount(hooks) { if (hooks) { for (let i = 0; i < hooks.length; i++) hooks[i].flags |= 8; } } const ssrContextKey = Symbol.for("v-scx"); const useSSRContext = () => { { warn$1(`useSSRContext() is not supported in the global build.`); } }; function watchEffect(effect, options) { return doWatch(effect, null, options); } function watchPostEffect(effect, options) { return doWatch( effect, null, extend({}, options, { flush: "post" }) ); } function watchSyncEffect(effect, options) { return doWatch( effect, null, extend({}, options, { flush: "sync" }) ); } function watch(source, cb, options) { if (!isFunction(cb)) { warn$1( `\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.` ); } return doWatch(source, cb, options); } function doWatch(source, cb, options = EMPTY_OBJ) { const { immediate, deep, flush, once } = options; if (!cb) { if (immediate !== void 0) { warn$1( `watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.` ); } if (deep !== void 0) { warn$1( `watch() "deep" option is only respected when using the watch(source, callback, options?) signature.` ); } if (once !== void 0) { warn$1( `watch() "once" option is only respected when using the watch(source, callback, options?) signature.` ); } } const baseWatchOptions = extend({}, options); baseWatchOptions.onWarn = warn$1; const instance = currentInstance; baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args); let isPre = false; if (flush === "post") { baseWatchOptions.scheduler = (job) => { queuePostRenderEffect(job, instance && instance.suspense); }; } else if (flush !== "sync") { isPre = true; baseWatchOptions.scheduler = (job, isFirstRun) => { if (isFirstRun) { job(); } else { queueJob(job); } }; } baseWatchOptions.augmentJob = (job) => { if (cb) { job.flags |= 4; } if (isPre) { job.flags |= 2; if (instance) { job.id = instance.uid; job.i = instance; } } }; const watchHandle = watch$1(source, cb, baseWatchOptions); return watchHandle; } function instanceWatch(source, value, options) { const publicThis = this.proxy; const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis); let cb; if (isFunction(value)) { cb = value; } else { cb = value.handler; options = value; } const reset = setCurrentInstance(this); const res = doWatch(getter, cb.bind(publicThis), options); reset(); return res; } function createPathGetter(ctx, path) { const segments = path.split("."); return () => { let cur = ctx; for (let i = 0; i < segments.length && cur; i++) { cur = cur[segments[i]]; } return cur; }; } function useModel(props, name, options = EMPTY_OBJ) { const i = getCurrentInstance(); if (!i) { warn$1(`useModel() called without active instance.`); return ref(); } const camelizedName = camelize(name); if (!i.propsOptions[0][camelizedName]) { warn$1(`useModel() called with prop "${name}" which is not declared.`); return ref(); } const hyphenatedName = hyphenate(name); const modifiers = getModelModifiers(props, camelizedName); const res = customRef((track, trigger) => { let localValue; let prevSetValue = EMPTY_OBJ; let prevEmittedValue; watchSyncEffect(() => { const propValue = props[camelizedName]; if (hasChanged(localValue, propValue)) { localValue = propValue; trigger(); } }); return { get() { track(); return options.get ? options.get(localValue) : localValue; }, set(value) { const emittedValue = options.set ? options.set(value) : value; if (!hasChanged(emittedValue, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) { return; } const rawProps = i.vnode.props; if (!(rawProps && // check if parent has passed v-model (name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps))) { localValue = value; trigger(); } i.emit(`update:${name}`, emittedValue); if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) { trigger(); } prevSetValue = value; prevEmittedValue = emittedValue; } }; }); res[Symbol.iterator] = () => { let i2 = 0; return { next() { if (i2 < 2) { return { value: i2++ ? modifiers || EMPTY_OBJ : res, done: false }; } else { return { done: true }; } } }; }; return res; } const getModelModifiers = (props, modelName) => { return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize(modelName)}Modifiers`] || props[`${hyphenate(modelName)}Modifiers`]; }; function emit(instance, event, ...rawArgs) { if (instance.isUnmounted) return; const props = instance.vnode.props || EMPTY_OBJ; { const { emitsOptions, propsOptions: [propsOptions] } = instance; if (emitsOptions) { if (!(event in emitsOptions) && true) { if (!propsOptions || !(toHandlerKey(camelize(event)) in propsOptions)) { warn$1( `Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(camelize(event))}" prop.` ); } } else { const validator = emitsOptions[event]; if (isFunction(validator)) { const isValid = validator(...rawArgs); if (!isValid) { warn$1( `Invalid event arguments: event validation failed for event "${event}".` ); } } } } } let args = rawArgs; const isModelListener = event.startsWith("update:"); const modifiers = isModelListener && getModelModifiers(props, event.slice(7)); if (modifiers) { if (modifiers.trim) { args = rawArgs.map((a) => isString(a) ? a.trim() : a); } if (modifiers.number) { args = rawArgs.map(looseToNumber); } } { devtoolsComponentEmit(instance, event, args); } { const lowerCaseEvent = event.toLowerCase(); if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) { warn$1( `Event "${lowerCaseEvent}" is emitted in component ${formatComponentName( instance, instance.type )} but the handler is registered for "${event}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${hyphenate( event )}" instead of "${event}".` ); } } let handlerName; let handler = props[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249) props[handlerName = toHandlerKey(camelize(event))]; if (!handler && isModelListener) { handler = props[handlerName = toHandlerKey(hyphenate(event))]; } if (handler) { callWithAsyncErrorHandling( handler, instance, 6, args ); } const onceHandler = props[handlerName + `Once`]; if (onceHandler) { if (!instance.emitted) { instance.emitted = {}; } else if (instance.emitted[handlerName]) { return; } instance.emitted[handlerName] = true; callWithAsyncErrorHandling( onceHandler, instance, 6, args ); } } function normalizeEmitsOptions(comp, appContext, asMixin = false) { const cache = appContext.emitsCache; const cached = cache.get(comp); if (cached !== void 0) { return cached; } const raw = comp.emits; let normalized = {}; let hasExtends = false; if (!isFunction(comp)) { const extendEmits = (raw2) => { const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true); if (normalizedFromExtend) { hasExtends = true; extend(normalized, normalizedFromExtend); } }; if (!asMixin && appContext.mixins.length) { appContext.mixins.forEach(extendEmits); } if (comp.extends) { extendEmits(comp.extends); } if (comp.mixins) { comp.mixins.forEach(extendEmits); } } if (!raw && !hasExtends) { if (isObject(comp)) { cache.set(comp, null); } return null; } if (isArray(raw)) { raw.forEach((key) => normalized[key] = null); } else { extend(normalized, raw); } if (isObject(comp)) { cache.set(comp, normalized); } return normalized; } function isEmitListener(options, key) { if (!options || !isOn(key)) { return false; } key = key.slice(2).replace(/Once$/, ""); return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate(key)) || hasOwn(options, key); } let accessedAttrs = false; function markAttrsAccessed() { accessedAttrs = true; } function renderComponentRoot(instance) { const { type: Component, vnode, proxy, withProxy, propsOptions: [propsOptions], slots, attrs, emit, render, renderCache, props, data, setupState, ctx, inheritAttrs } = instance; const prev = setCurrentRenderingInstance(instance); let result; let fallthroughAttrs; { accessedAttrs = false; } try { if (vnode.shapeFlag & 4) { const proxyToUse = withProxy || proxy; const thisProxy = setupState.__isScriptSetup ? new Proxy(proxyToUse, { get(target, key, receiver) { warn$1( `Property '${String( key )}' was accessed via 'this'. Avoid using 'this' in templates.` ); return Reflect.get(target, key, receiver); } }) : proxyToUse; result = normalizeVNode( render.call( thisProxy, proxyToUse, renderCache, true ? shallowReadonly(props) : props, setupState, data, ctx ) ); fallthroughAttrs = attrs; } else { const render2 = Component; if (attrs === props) { markAttrsAccessed(); } result = normalizeVNode( render2.length > 1 ? render2( true ? shallowReadonly(props) : props, true ? { get attrs() { markAttrsAccessed(); return shallowReadonly(attrs); }, slots, emit } : { attrs, slots, emit } ) : render2( true ? shallowReadonly(props) : props, null ) ); fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs); } } catch (err) { blockStack.length = 0; handleError(err, instance, 1); result = createVNode(Comment); } let root = result; let setRoot = void 0; if (result.patchFlag > 0 && result.patchFlag & 2048) { [root, setRoot] = getChildRoot(result); } if (fallthroughAttrs && inheritAttrs !== false) { const keys = Object.keys(fallthroughAttrs); const { shapeFlag } = root; if (keys.length) { if (shapeFlag & (1 | 6)) { if (propsOptions && keys.some(isModelListener)) { fallthroughAttrs = filterModelListeners( fallthroughAttrs, propsOptions ); } root = cloneVNode(root, fallthroughAttrs, false, true); } else if (!accessedAttrs && root.type !== Comment) { const allAttrs = Object.keys(attrs); const eventAttrs = []; const extraAttrs = []; for (let i = 0, l = allAttrs.length; i < l; i++) { const key = allAttrs[i]; if (isOn(key)) { if (!isModelListener(key)) { eventAttrs.push(key[2].toLowerCase() + key.slice(3)); } } else { extraAttrs.push(key); } } if (extraAttrs.length) { warn$1( `Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.` ); } if (eventAttrs.length) { warn$1( `Extraneous non-emits event listeners (${eventAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.` ); } } } } if (vnode.dirs) { if (!isElementRoot(root)) { warn$1( `Runtime directive used on component with non-element root node. The directives will not function as intended.` ); } root = cloneVNode(root, null, false, true); root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs; } if (vnode.transition) { if (!isElementRoot(root)) { warn$1( `Component inside <Transition> renders non-element root node that cannot be animated.` ); } setTransitionHooks(root, vnode.transition); } if (setRoot) { setRoot(root); } else { result = root; } setCurrentRenderingInstance(prev); return result; } const getChildRoot = (vnode) => { const rawChildren = vnode.children; const dynamicChildren = vnode.dynamicChildren; const childRoot = filterSingleRoot(rawChildren, false); if (!childRoot) { return [vnode, void 0]; } else if (childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) { return getChildRoot(childRoot); } const index = rawChildren.indexOf(childRoot); const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1; const setRoot = (updatedRoot) => { rawChildren[index] = updatedRoot; if (dynamicChildren) { if (dynamicIndex > -1) { dynamicChildren[dynamicIndex] = updatedRoot; } else if (updatedRoot.patchFlag > 0) { vnode.dynamicChildren = [...dynamicChildren, updatedRoot]; } } }; return [normalizeVNode(childRoot), setRoot]; }; function filterSingleRoot(children, recurse = true) { let singleRoot; for (let i = 0; i < children.length; i++) { const child = children[i]; if (isVNode(child)) { if (child.type !== Comment || child.children === "v-if") { if (singleRoot) { return; } else { singleRoot = child; if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) { return filterSingleRoot(singleRoot.children); } } } } else { return; } } return singleRoot; } const getFunctionalFallthrough = (attrs) => { let res; for (const key in attrs) { if (key === "class" || key === "style" || isOn(key)) { (res || (res = {}))[key] = attrs[key]; } } return res; }; const filterModelListeners = (attrs, props) => { const res = {}; for (const key in attrs) { if (!isModelListener(key) || !(key.slice(9) in props)) { res[key] = attrs[key]; } } return res; }; const isElementRoot = (vnode) => { return vnode.shapeFlag & (6 | 1) || vnode.type === Comment; }; function shouldUpdateComponent(prevVNode, nextVNode, optimized) { const { props: prevProps, children: prevChildren, component } = prevVNode; const { props: nextProps, children: nextChildren, patchFlag } = nextVNode; const emits = component.emitsOptions; if ((prevChildren || nextChildren) && isHmrUpdating) { return true; } if (nextVNode.dirs || nextVNode.transition) { return true; } if (optimized && patchFlag >= 0) { if (patchFlag & 1024) { return true; } if (patchFlag & 16) { if (!prevProps) { return !!nextProps; } return hasPropsChanged(prevProps, nextProps, emits); } else if (patchFlag & 8) { const dynamicProps = nextVNode.dynamicProps; for (let i = 0; i < dynamicProps.length; i++) { const key = dynamicProps[i]; if (nextProps[key] !== prevProps[key] && !isEmitListener(emits, key)) { return true; } } } } else { if (prevChildren || nextChildren) { if (!nextChildren || !nextChildren.$stable) { return true; } } if (prevProps === nextProps) { return false; } if (!prevProps) { return !!nextProps; } if (!nextProps) { return true; } return hasPropsChanged(prevProps, nextProps, emits); } return false; } function hasPropsChanged(prevProps, nextProps, emitsOptions) { const nextKeys = Object.keys(nextProps); if (nextKeys.length !== Object.keys(prevProps).length) { return true; } for (let i = 0; i < nextKeys.length; i++) { const key = nextKeys[i]; if (nextProps[key] !== prevProps[key] && !isEmitListener(emitsOptions, key)) { return true; } } return false; } function updateHOCHostEl({ vnode, parent }, el) { while (parent) { const root = parent.subTree; if (root.suspense && root.suspense.activeBranch === vnode) { root.el = vnode.el; } if (root === vnode) { (vnode = parent.vnode).el = el; parent = parent.parent; } else { break; } } } const isSuspense = (type) => type.__isSuspense; let suspenseId = 0; const SuspenseImpl = { name: "Suspense", // In order to make Suspense tree-shakable, we need to avoid importing it // directly in the renderer. The renderer checks for the __isSuspense flag // on a vnode's type and calls the `process` method, passing in renderer // internals. __isSuspense: true, process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) { if (n1 == null) { mountSuspense( n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals ); } else { if (parentSuspense && parentSuspense.deps > 0 && !n1.suspense.isInFallback) { n2.suspense = n1.suspense; n2.suspense.vnode = n2; n2.el = n1.el; return; } patchSuspense( n1, n2, container, anchor, parentComponent, namespace, slotScopeIds, optimized, rendererInternals ); } }, hydrate: hydrateSuspense, normalize: normalizeSuspenseChildren }; const Suspense = SuspenseImpl ; function triggerEvent(vnode, name) { const eventListener = vnode.props && vnode.props[name]; if (isFunction(eventListener)) { eventListener(); } } function mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) { const { p: patch, o: { createElement } } = rendererInternals; const hiddenContainer = createElement("div"); const suspense = vnode.suspense = createSuspenseBoundary( vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, namespace, slotScopeIds, optimized, rendererInternals ); patch( null, suspense.pendingBranch = vnode.ssContent, hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds ); if (suspense.deps > 0) { triggerEvent(vnode, "onPending"); triggerEvent(vnode, "onFallback"); patch( null, vnode.ssFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context namespace, slotScopeIds ); setActiveBranch(suspense, vnode.ssFallback); } else { suspense.resolve(false, true); } } function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement } }) { const suspense = n2.suspense = n1.suspense; suspense.vnode = n2; n2.el = n1.el; const newBranch = n2.ssContent; const newFallback = n2.ssFallback; const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense; if (pendingBranch) { suspense.pendingBranch = newBranch; if (isSameVNodeType(newBranch, pendingBranch)) { patch( pendingBranch, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds, optimized ); if (suspense.deps <= 0) { suspense.resolve(); } else if (isInFallback) { if (!isHydrating) { patch( activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context namespace, slotScopeIds, optimized ); setActiveBranch(suspense, newFallback); } } } else { suspense.pendingId = suspenseId++; if (isHydrating) { suspense.isHydrating = false; suspense.activeBranch = pendingBranch; } else { unmount(pendingBranch, parentComponent, suspense); } suspense.deps = 0; suspense.effects.length = 0; suspense.hiddenContainer = createElement("div"); if (isInFallback) { patch( null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds, optimized ); if (suspense.deps <= 0) { suspense.resolve(); } else { patch( activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context namespace, slotScopeIds, optimized ); setActiveBranch(suspense, newFallback); } } else if (activeBranch && isSameVNodeType(newBranch, activeBranch)) { patch( activeBranch, newBranch, container, anchor, parentComponent, suspense, namespace, slotScopeIds, optimized ); suspense.resolve(true); } else { patch( null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds, optimized ); if (suspense.deps <= 0) { suspense.resolve(); } } } } else { if (activeBranch && isSameVNodeType(newBranch, activeBranch)) { patch( activeBranch, newBranch, container, anchor, parentComponent, suspense, namespace, slotScopeIds, optimized ); setActiveBranch(suspense, newBranch); } else { triggerEvent(n2, "onPending"); suspense.pendingBranch = newBranch; if (newBranch.shapeFlag & 512) { suspense.pendingId = newBranch.component.suspenseId; } else { suspense.pendingId = suspenseId++; } patch( null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds, optimized ); if (suspense.deps <= 0) { suspense.resolve(); } else { const { timeout, pendingId } = suspense; if (timeout > 0) { setTimeout(() => { if (suspense.pendingId === pendingId) { suspense.fallback(newFallback); } }, timeout); } else if (timeout === 0) { suspense.fallback(newFallback); } } } } } let hasWarned = false; function createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, namespace, slotScopeIds, optimized, rendererInternals, isHydrating = false) { if (!hasWarned) { hasWarned = true; console[console.info ? "info" : "log"]( `<Suspense> is an experimental feature and its API will likely change.` ); } const { p: patch, m: move, um: unmount, n: next, o: { parentNode, remove } } = rendererInternals; let parentSuspenseId; const isSuspensible = isVNodeSuspensible(vnode); if (isSuspensible) { if (parentSuspense && parentSuspense.pendingBranch) { parentSuspenseId = parentSuspense.pendingId; parentSuspense.deps++; } } const timeout = vnode.props ? toNumber(vnode.props.timeout) : void 0; { assertNumber(timeout, `Suspense timeout`); } const initialAnchor = anchor; const suspense = { vnode, parent: parentSuspense, parentComponent, namespace, container, hiddenContainer, deps: 0, pendingId: suspenseId++, timeout: typeof timeout === "number" ? timeout : -1, activeBranch: null, pendingBranch: null, isInFallback: !isHydrating, isHydrating, isUnmounted: false, effects: [], resolve(resume = false, sync = false) { { if (!resume && !suspense.pendingBranch) { throw new Error( `suspense.resolve() is called without a pending branch.` ); } if (suspense.isUnmounted) { throw new Error( `suspense.resolve() is called on an already unmounted suspense boundary.` ); } } const { vnode: vnode2, activeBranch, pendingBranch, pendingId, effects, parentComponent: parentComponent2, container: container2 } = suspense; let delayEnter = false; if (suspense.isHydrating) { suspense.isHydrating = false; } else if (!resume) { delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in"; if (delayEnter) { activeBranch.transition.afterLeave = () => { if (pendingId === suspense.pendingId) { move( pendingBranch, container2, anchor === initialAnchor ? next(activeBranch) : anchor, 0 ); queuePostFlushCb(effects); } }; } if (activeBranch) { if (parentNode(activeBranch.el) === container2) { anchor = next(activeBranch); } unmount(activeBranch, parentComponent2, suspense, true); } if (!delayEnter) { move(pendingBranch, container2, anchor, 0); } } setActiveBranch(suspense, pendingBranch); suspense.pendingBranch = null; suspense.isInFallback = false; let parent = suspense.parent; let hasUnresolvedAncestor = false; while (parent) { if (parent.pendingBranch) { parent.effects.push(...effects); hasUnresolvedAncestor = true; break; } parent = parent.parent; } if (!hasUnresolvedAncestor && !delayEnter) { queuePostFlushCb(effects); } suspense.effects = []; if (isSuspensible) { if (parentSuspense && parentSuspense.pendingBranch && parentSuspenseId === parentSuspense.pendingId) { parentSuspense.deps--; if (parentSuspense.deps === 0 && !sync) { parentSuspense.resolve(); } } } triggerEvent(vnode2, "onResolve"); }, fallback(fallbackVNode) { if (!suspense.pendingBranch) { return; } const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, namespace: namespace2 } = suspense; triggerEvent(vnode2, "onFallback"); const anchor2 = next(activeBranch); const mountFallback = () => { if (!suspense.isInFallback) { return; } patch( null, fallbackVNode, container2, anchor2, parentComponent2, null, // fallback tree will not have suspense context namespace2, slotScopeIds, optimized ); setActiveBranch(suspense, fallbackVNode); }; const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === "out-in"; if (delayEnter) { activeBranch.transition.afterLeave = mountFallback; } suspense.isInFallback = true; unmount( activeBranch, parentComponent2, null, // no suspense so unmount hooks fire now true // shouldRemove ); if (!delayEnter) { mountFallback(); } }, move(container2, anchor2, type) { suspense.activeBranch && move(suspense.activeBranch, container2, anchor2, type); suspense.container = container2; }, next() { return suspense.activeBranch && next(suspense.activeBranch); }, registerDep(instance, setupRenderEffect, optimized2) { const isInPendingSuspense = !!suspense.pendingBranch; if (isInPendingSuspense) { suspense.deps++; } const hydratedEl = instance.vnode.el; instance.asyncDep.catch((err) => { handleError(err, instance, 0); }).then((asyncSetupResult) => { if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) { return; } instance.asyncResolved = true; const { vnode: vnode2 } = instance; { pushWarningContext(vnode2); } handleSetupResult(instance, asyncSetupResult, false); if (hydratedEl) { vnode2.el = hydratedEl; } const placeholder = !hydratedEl && instance.subTree.el; setupRenderEffect( instance, vnode2, // component may have been moved before resolve. // if this is not a hydration, instance.subTree will be the comment // placeholder. parentNode(hydratedEl || instance.subTree.el), // anchor will not be used if this is hydration, so only need to // consider the comment placeholder case. hydratedEl ? null : next(instance.subTree), suspense, namespace, optimized2 ); if (placeholder) { remove(placeholder); } updateHOCHostEl(instance, vnode2.el); { popWarningContext(); } if (isInPendingSuspense && --suspense.deps === 0) { suspense.resolve(); } }); }, unmount(parentSuspense2, doRemove) { suspense.isUnmounted = true; if (suspense.activeBranch) { unmount( suspense.activeBranch, parentComponent, parentSuspense2, doRemove ); } if (suspense.pendingBranch) { unmount( suspense.pendingBranch, parentComponent, parentSuspense2, doRemove ); } } }; return suspense; } function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals, hydrateNode) { const suspense = vnode.suspense = createSuspenseBoundary( vnode, parentSuspense, parentComponent, node.parentNode, // eslint-disable-next-line no-restricted-globals document.createElement("div"), null, namespace, slotScopeIds, optimized, rendererInternals, true ); const result = hydrateNode( node, suspense.pendingBranch = vnode.ssContent, parentComponent, suspense, slotScopeIds, optimized ); if (suspense.deps === 0) { suspense.resolve(false, true); } return result; } function normalizeSuspenseChildren(vnode) { const { shapeFlag, children } = vnode; const isSlotChildren = shapeFlag & 32; vnode.ssContent = normalizeSuspenseSlot( isSlotChildren ? children.default : children ); vnode.ssFallback = isSlotChildren ? normalizeSuspenseSlot(children.fallback) : createVNode(Comment); } function normalizeSuspenseSlot(s) { let block; if (isFunction(s)) { const trackBlock = isBlockTreeEnabled && s._c; if (trackBlock) { s._d = false; openBlock(); } s = s(); if (trackBlock) { s._d = true; block = currentBlock; closeBlock(); } } if (isArray(s)) { const singleChild = filterSingleRoot(s); if (!singleChild && s.filter((child) => child !== NULL_DYNAMIC_COMPONENT).length > 0) { warn$1(`<Suspense> slots expect a single root node.`); } s = singleChild; } s = normalizeVNode(s); if (block && !s.dynamicChildren) { s.dynamicChildren = block.filter((c) => c !== s); } return s; } function queueEffectWithSuspense(fn, suspense) { if (suspense && suspense.pendingBranch) { if (isArray(fn)) { suspense.effects.push(...fn); } else { suspense.effects.push(fn); } } else { queuePostFlushCb(fn); } } function setActiveBranch(suspense, branch) { suspense.activeBranch = branch; const { vnode, parentComponent } = suspense; let el = branch.el; while (!el && branch.component) { branch = branch.component.subTree; el = branch.el; } vnode.el = el; if (parentComponent && parentComponent.subTree === vnode) { parentComponent.vnode.el = el; updateHOCHostEl(parentComponent, el); } } function isVNodeSuspensible(vnode) { const suspensible = vnode.props && vnode.props.suspensible; return suspensible != null && suspensible !== false; } const Fragment = Symbol.for("v-fgt"); const Text = Symbol.for("v-txt"); const Comment = Symbol.for("v-cmt"); const Static = Symbol.for("v-stc"); const blockStack = []; let currentBlock = null; function openBlock(disableTracking = false) { blockStack.push(currentBlock = disableTracking ? null : []); } function closeBlock() { blockStack.pop(); currentBlock = blockStack[blockStack.length - 1] || null; } let isBlockTreeEnabled = 1; function setBlockTracking(value, inVOnce = false) { isBlockTreeEnabled += value; if (value < 0 && currentBlock && inVOnce) { currentBlock.hasOnce = true; } } function setupBlock(vnode) { vnode.dynamicChildren = isBlockTreeEnabled > 0 ? currentBlock || EMPTY_ARR : null; closeBlock(); if (isBlockTreeEnabled > 0 && currentBlock) { currentBlock.push(vnode); } return vnode; } function createElementBlock(type, props, children, patchFlag, dynamicProps, shapeFlag) { return setupBlock( createBaseVNode( type, props, children, patchFlag, dynamicProps, shapeFlag, true ) ); } function createBlock(type, props, children, patchFlag, dynamicProps) { return setupBlock( createVNode( type, props, children, patchFlag, dynamicProps, true ) ); } function isVNode(value) { return value ? value.__v_isVNode === true : false; } function isSameVNodeType(n1, n2) { if (n2.shapeFlag & 6 && n1.component) { const dirtyInstances = hmrDirtyComponents.get(n2.type); if (dirtyInstances && dirtyInstances.has(n1.component)) { n1.shapeFlag &= ~256; n2.shapeFlag &= ~512; return false; } } return n1.type === n2.type && n1.key === n2.key; } let vnodeArgsTransformer; function transformVNodeArgs(transformer) { vnodeArgsTransformer = transformer; } const createVNodeWithArgsTransform = (...args) => { return _createVNode( ...vnodeArgsTransformer ? vnodeArgsTransformer(args, currentRenderingInstance) : args ); }; const normalizeKey = ({ key }) => key != null ? key : null; const normalizeRef = ({ ref, ref_key, ref_for }) => { if (typeof ref === "number") { ref = "" + ref; } return ref != null ? isString(ref) || isRef(ref) || isFunction(ref) ? { i: currentRenderingInstance, r: ref, k: ref_key, f: !!ref_for } : ref : null; }; function createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1, isBlockNode = false, needFullChildrenNormalization = false) { const vnode = { __v_isVNode: true, __v_skip: true, type, props, key: props && normalizeKey(props), ref: props && normalizeRef(props), scopeId: currentScopeId, slotScopeIds: null, children, component: null, suspense: null, ssContent: null, ssFallback: null, dirs: null, transition: null, el: null, anchor: null, target: null, targetStart: null, targetAnchor: null, staticCount: 0, shapeFlag, patchFlag, dynamicProps, dynamicChildren: null, appContext: null, ctx: currentRenderingInstance }; if (needFullChildrenNormalization) { normalizeChildren(vnode, children); if (shapeFlag & 128) { type.normalize(vnode); } } else if (children) { vnode.shapeFlag |= isString(children) ? 8 : 16; } if (vnode.key !== vnode.key) { warn$1(`VNode created with invalid key (NaN). VNode type:`, vnode.type); } if (isBlockTreeEnabled > 0 && // avoid a block node from tracking itself !isBlockNode && // has current parent block currentBlock && // presence of a patch flag indicates this node needs patching on updates. // component nodes also should always be patched, because even if the // component doesn't need to update, it needs to persist the instance on to // the next vnode so that it can be properly unmounted later. (vnode.patchFlag > 0 || shapeFlag & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the // vnode should not be considered dynamic due to handler caching. vnode.patchFlag !== 32) { currentBlock.push(vnode); } return vnode; } const createVNode = createVNodeWithArgsTransform ; function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) { if (!type || type === NULL_DYNAMIC_COMPONENT) { if (!type) { warn$1(`Invalid vnode type when creating vnode: ${type}.`); } type = Comment; } if (isVNode(type)) { const cloned = cloneVNode( type, props, true /* mergeRef: true */ ); if (children) { normalizeChildren(cloned, children); } if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock) { if (cloned.shapeFlag & 6) { currentBlock[currentBlock.indexOf(type)] = cloned; } else { currentBlock.push(cloned); } } cloned.patchFlag = -2; return cloned; } if (isClassComponent(type)) { type = type.__vccOpts; } if (props) { props = guardReactiveProps(props); let { class: klass, style } = props; if (klass && !isString(klass)) { props.class = normalizeClass(klass); } if (isObject(style)) { if (isProxy(style) && !isArray(style)) { style = extend({}, style); } props.style = normalizeStyle(style); } } const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject(type) ? 4 : isFunction(type) ? 2 : 0; if (shapeFlag & 4 && isProxy(type)) { type = toRaw(type); warn$1( `Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with \`markRaw\` or using \`shallowRef\` instead of \`ref\`.`, ` Component that was made reactive: `, type ); } return createBaseVNode( type, props, children, patchFlag, dynamicProps, shapeFlag, isBlockNode, true ); } function guardReactiveProps(props) { if (!props) return null; return isProxy(props) || isInternalObject(props) ? extend({}, props) : props; } function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) { const { props, ref, patchFlag, children, transition } = vnode; const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props; const cloned = { __v_isVNode: true, __v_skip: true, type: vnode.type, props: mergedProps, key: mergedProps && normalizeKey(mergedProps), ref: extraProps && extraProps.ref ? ( // #2078 in the case of <component :is="vnode" ref="extra"/> // if the vnode itself already has a ref, cloneVNode will need to merge // the refs so the single vnode can be set on multiple refs mergeRef && ref ? isArray(ref) ? ref.concat(normalizeRef(extraProps)) : [ref, normalizeRef(extraProps)] : normalizeRef(extraProps) ) : ref, scopeId: vnode.scopeId, slotScopeIds: vnode.slotScopeIds, children: patchFlag === -1 && isArray(children) ? children.map(deepCloneVNode) : children, target: vnode.target, targetStart: vnode.targetStart, targetAnchor: vnode.targetAnchor, staticCount: vnode.staticCount, shapeFlag: vnode.shapeFlag, // if the vnode is cloned with extra props, we can no longer assume its // existing patch flag to be reliable and need to add the FULL_PROPS flag. // note: preserve flag for fragments since they use the flag for children // fast paths only. patchFlag: extraProps && vnode.type !== Fragment ? patchFlag === -1 ? 16 : patchFlag | 16 : patchFlag, dynamicProps: vnode.dynamicProps, dynamicChildren: vnode.dynamicChildren, appContext: vnode.appContext, dirs: vnode.dirs, transition, // These should technically only be non-null on mounted VNodes. However, // they *should* be copied for kept-alive vnodes. So we just always copy // them since them being non-null during a mount doesn't affect the logic as // they will simply be overwritten. component: vnode.component, suspense: vnode.suspense, ssContent: vnode.ssContent && cloneVNode(vnode.ssContent), ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback), el: vnode.el, anchor: vnode.anchor, ctx: vnode.ctx, ce: vnode.ce }; if (transition && cloneTransition) { setTransitionHooks( cloned, transition.clone(cloned) ); } return cloned; } function deepCloneVNode(vnode) { const cloned = cloneVNode(vnode); if (isArray(vnode.children)) { cloned.children = vnode.children.map(deepCloneVNode); } return cloned; } function createTextVNode(text = " ", flag = 0) { return createVNode(Text, null, text, flag); } function createStaticVNode(content, numberOfNodes) { const vnode = createVNode(Static, null, content); vnode.staticCount = numberOfNodes; return vnode; } function createCommentVNode(text = "", asBlock = false) { return asBlock ? (openBlock(), createBlock(Comment, null, text)) : createVNode(Comment, null, text); } function normalizeVNode(child) { if (child == null || typeof child === "boolean") { return createVNode(Comment); } else if (isArray(child)) { return createVNode( Fragment, null, // #3666, avoid reference pollution when reusing vnode child.slice() ); } else if (isVNode(child)) { return cloneIfMounted(child); } else { return createVNode(Text, null, String(child)); } } function cloneIfMounted(child) { return child.el === null && child.patchFlag !== -1 || child.memo ? child : cloneVNode(child); } function normalizeChildren(vnode, children) { let type = 0; const { shapeFlag } = vnode; if (children == null) { children = null; } else if (isArray(children)) { type = 16; } else if (typeof children === "object") { if (shapeFlag & (1 | 64)) { const slot = children.default; if (slot) { slot._c && (slot._d = false); normalizeChildren(vnode, slot()); slot._c && (slot._d = true); } return; } else { type = 32; const slotFlag = children._; if (!slotFlag && !isInternalObject(children)) { children._ctx = currentRenderingInstance; } else if (slotFlag === 3 && currentRenderingInstance) { if (currentRenderingInstance.slots._ === 1) { children._ = 1; } else { children._ = 2; vnode.patchFlag |= 1024; } } } } else if (isFunction(children)) { children = { default: children, _ctx: currentRenderingInstance }; type = 32; } else { children = String(children); if (shapeFlag & 64) { type = 16; children = [createTextVNode(children)]; } else { type = 8; } } vnode.children = children; vnode.shapeFlag |= type; } function mergeProps(...args) { const ret = {}; for (let i = 0; i < args.length; i++) { const toMerge = args[i]; for (const key in toMerge) { if (key === "class") { if (ret.class !== toMerge.class) { ret.class = normalizeClass([ret.class, toMerge.class]); } } else if (key === "style") { ret.style = normalizeStyle([ret.style, toMerge.style]); } else if (isOn(key)) { const existing = ret[key]; const incoming = toMerge[key]; if (incoming && existing !== incoming && !(isArray(existing) && existing.includes(incoming))) { ret[key] = existing ? [].concat(existing, incoming) : incoming; } } else if (key !== "") { ret[key] = toMerge[key]; } } } return ret; } function invokeVNodeHook(hook, instance, vnode, prevVNode = null) { callWithAsyncErrorHandling(hook, instance, 7, [ vnode, prevVNode ]); } const emptyAppContext = createAppContext(); let uid = 0; function createComponentInstance(vnode, parent, suspense) { const type = vnode.type; const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext; const instance = { uid: uid++, vnode, type, parent, appContext, root: null, // to be immediately set next: null, subTree: null, // will be set synchronously right after creation effect: null, update: null, // will be set synchronously right after creation job: null, scope: new EffectScope( true /* detached */ ), render: null, proxy: null, exposed: null, exposeProxy: null, withProxy: null, provides: parent ? parent.provides : Object.create(appContext.provides), ids: parent ? parent.ids : ["", 0, 0], accessCache: null, renderCache: [], // local resolved assets components: null, directives: null, // resolved props and emits options propsOptions: normalizePropsOptions(type, appContext), emitsOptions: normalizeEmitsOptions(type, appContext), // emit emit: null, // to be set immediately emitted: null, // props default value propsDefaults: EMPTY_OBJ, // inheritAttrs inheritAttrs: type.inheritAttrs, // state ctx: EMPTY_OBJ, data: EMPTY_OBJ, props: EMPTY_OBJ, attrs: EMPTY_OBJ, slots: EMPTY_OBJ, refs: EMPTY_OBJ, setupState: EMPTY_OBJ, setupContext: null, // suspense related suspense, suspenseId: suspense ? suspense.pendingId : 0, asyncDep: null, asyncResolved: false, // lifecycle hooks // not using enums here because it results in computed properties isMounted: false, isUnmounted: false, isDeactivated: false, bc: null, c: null, bm: null, m: null, bu: null, u: null, um: null, bum: null, da: null, a: null, rtg: null, rtc: null, ec: null, sp: null }; { instance.ctx = createDevRenderContext(instance); } instance.root = parent ? parent.root : instance; instance.emit = emit.bind(null, instance); if (vnode.ce) { vnode.ce(instance); } return instance; } let currentInstance = null; const getCurrentInstance = () => currentInstance || currentRenderingInstance; let internalSetCurrentInstance; let setInSSRSetupState; { internalSetCurrentInstance = (i) => { currentInstance = i; }; setInSSRSetupState = (v) => { isInSSRComponentSetup = v; }; } const setCurrentInstance = (instance) => { const prev = currentInstance; internalSetCurrentInstance(instance); instance.scope.on(); return () => { instance.scope.off(); internalSetCurrentInstance(prev); }; }; const unsetCurrentInstance = () => { currentInstance && currentInstance.scope.off(); internalSetCurrentInstance(null); }; const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component"); function validateComponentName(name, { isNativeTag }) { if (isBuiltInTag(name) || isNativeTag(name)) { warn$1( "Do not use built-in or reserved HTML elements as component id: " + name ); } } function isStatefulComponent(instance) { return instance.vnode.shapeFlag & 4; } let isInSSRComponentSetup = false; function setupComponent(instance, isSSR = false, optimized = false) { isSSR && setInSSRSetupState(isSSR); const { props, children } = instance.vnode; const isStateful = isStatefulComponent(instance); initProps(instance, props, isStateful, isSSR); initSlots(instance, children, optimized); const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0; isSSR && setInSSRSetupState(false); return setupResult; } function setupStatefulComponent(instance, isSSR) { var _a; const Component = instance.type; { if (Component.name) { validateComponentName(Component.name, instance.appContext.config); } if (Component.components) { const names = Object.keys(Component.components); for (let i = 0; i < names.length; i++) { validateComponentName(names[i], instance.appContext.config); } } if (Component.directives) { const names = Object.keys(Component.directives); for (let i = 0; i < names.length; i++) { validateDirectiveName(names[i]); } } if (Component.compilerOptions && isRuntimeOnly()) { warn$1( `"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.` ); } } instance.accessCache = /* @__PURE__ */ Object.create(null); instance.proxy = new Proxy(instance.ctx, PublicInstanceProxyHandlers); { exposePropsOnRenderContext(instance); } const { setup } = Component; if (setup) { pauseTracking(); const setupContext = instance.setupContext = setup.length > 1 ? createSetupContext(instance) : null; const reset = setCurrentInstance(instance); const setupResult = callWithErrorHandling( setup, instance, 0, [ shallowReadonly(instance.props) , setupContext ] ); const isAsyncSetup = isPromise(setupResult); resetTracking(); reset(); if ((isAsyncSetup || instance.sp) && !isAsyncWrapper(instance)) { markAsyncBoundary(instance); } if (isAsyncSetup) { setupResult.then(unsetCurrentInstance, unsetCurrentInstance); if (isSSR) { return setupResult.then((resolvedResult) => { handleSetupResult(instance, resolvedResult, isSSR); }).catch((e) => { handleError(e, instance, 0); }); } else { instance.asyncDep = setupResult; if (!instance.suspense) { const name = (_a = Component.name) != null ? _a : "Anonymous"; warn$1( `Component <${name}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.` ); } } } else { handleSetupResult(instance, setupResult, isSSR); } } else { finishComponentSetup(instance, isSSR); } } function handleSetupResult(instance, setupResult, isSSR) { if (isFunction(setupResult)) { { instance.render = setupResult; } } else if (isObject(setupResult)) { if (isVNode(setupResult)) { warn$1( `setup() should not return VNodes directly - return a render function instead.` ); } { instance.devtoolsRawSetupState = setupResult; } instance.setupState = proxyRefs(setupResult); { exposeSetupStateOnRenderContext(instance); } } else if (setupResult !== void 0) { warn$1( `setup() should return an object. Received: ${setupResult === null ? "null" : typeof setupResult}` ); } finishComponentSetup(instance, isSSR); } let compile$1; let installWithProxy; function registerRuntimeCompiler(_compile) { compile$1 = _compile; installWithProxy = (i) => { if (i.render._rc) { i.withProxy = new Proxy(i.ctx, RuntimeCompiledPublicInstanceProxyHandlers); } }; } const isRuntimeOnly = () => !compile$1; function finishComponentSetup(instance, isSSR, skipOptions) { const Component = instance.type; if (!instance.render) { if (!isSSR && compile$1 && !Component.render) { const template = Component.template || resolveMergedOptions(instance).template; if (template) { { startMeasure(instance, `compile`); } const { isCustomElement, compilerOptions } = instance.appContext.config; const { delimiters, compilerOptions: componentCompilerOptions } = Component; const finalCompilerOptions = extend( extend( { isCustomElement, delimiters }, compilerOptions ), componentCompilerOptions ); Component.render = compile$1(template, finalCompilerOptions); { endMeasure(instance, `compile`); } } } instance.render = Component.render || NOOP; if (installWithProxy) { installWithProxy(instance); } } { const reset = setCurrentInstance(instance); pauseTracking(); try { applyOptions(instance); } finally { resetTracking(); reset(); } } if (!Component.render && instance.render === NOOP && !isSSR) { if (!compile$1 && Component.template) { warn$1( `Component provided template option but runtime compilation is not supported in this build of Vue.` + (` Use "vue.global.js" instead.` ) ); } else { warn$1(`Component is missing template or render function: `, Component); } } } const attrsProxyHandlers = { get(target, key) { markAttrsAccessed(); track(target, "get", ""); return target[key]; }, set() { warn$1(`setupContext.attrs is readonly.`); return false; }, deleteProperty() { warn$1(`setupContext.attrs is readonly.`); return false; } } ; function getSlotsProxy(instance) { return new Proxy(instance.slots, { get(target, key) { track(instance, "get", "$slots"); return target[key]; } }); } function createSetupContext(instance) { const expose = (exposed) => { { if (instance.exposed) { warn$1(`expose() should be called only once per setup().`); } if (exposed != null) { let exposedType = typeof exposed; if (exposedType === "object") { if (isArray(exposed)) { exposedType = "array"; } else if (isRef(exposed)) { exposedType = "ref"; } } if (exposedType !== "object") { warn$1( `expose() should be passed a plain object, received ${exposedType}.` ); } } } instance.exposed = exposed || {}; }; { let attrsProxy; let slotsProxy; return Object.freeze({ get attrs() { return attrsProxy || (attrsProxy = new Proxy(instance.attrs, attrsProxyHandlers)); }, get slots() { return slotsProxy || (slotsProxy = getSlotsProxy(instance)); }, get emit() { return (event, ...args) => instance.emit(event, ...args); }, expose }); } } function getComponentPublicInstance(instance) { if (instance.exposed) { return instance.exposeProxy || (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), { get(target, key) { if (key in target) { return target[key]; } else if (key in publicPropertiesMap) { return publicPropertiesMap[key](instance); } }, has(target, key) { return key in target || key in publicPropertiesMap; } })); } else { return instance.proxy; } } const classifyRE = /(?:^|[-_])(\w)/g; const classify = (str) => str.replace(classifyRE, (c) => c.toUpperCase()).replace(/[-_]/g, ""); function getComponentName(Component, includeInferred = true) { return isFunction(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name; } function formatComponentName(instance, Component, isRoot = false) { let name = getComponentName(Component); if (!name && Component.__file) { const match = Component.__file.match(/([^/\\]+)\.\w+$/); if (match) { name = match[1]; } } if (!name && instance && instance.parent) { const inferFromRegistry = (registry) => { for (const key in registry) { if (registry[key] === Component) { return key; } } }; name = inferFromRegistry( instance.components || instance.parent.type.components ) || inferFromRegistry(instance.appContext.components); } return name ? classify(name) : isRoot ? `App` : `Anonymous`; } function isClassComponent(value) { return isFunction(value) && "__vccOpts" in value; } const computed = (getterOrOptions, debugOptions) => { const c = computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup); { const i = getCurrentInstance(); if (i && i.appContext.config.warnRecursiveComputed) { c._warnRecursive = true; } } return c; }; function h(type, propsOrChildren, children) { const l = arguments.length; if (l === 2) { if (isObject(propsOrChildren) && !isArray(propsOrChildren)) { if (isVNode(propsOrChildren)) { return createVNode(type, null, [propsOrChildren]); } return createVNode(type, propsOrChildren); } else { return createVNode(type, null, propsOrChildren); } } else { if (l > 3) { children = Array.prototype.slice.call(arguments, 2); } else if (l === 3 && isVNode(children)) { children = [children]; } return createVNode(type, propsOrChildren, children); } } function initCustomFormatter() { if (typeof window === "undefined") { return; } const vueStyle = { style: "color:#3ba776" }; const numberStyle = { style: "color:#1677ff" }; const stringStyle = { style: "color:#f5222d" }; const keywordStyle = { style: "color:#eb2f96" }; const formatter = { __vue_custom_formatter: true, header(obj) { if (!isObject(obj)) { return null; } if (obj.__isVue) { return ["div", vueStyle, `VueInstance`]; } else if (isRef(obj)) { return [ "div", {}, ["span", vueStyle, genRefFlag(obj)], "<", // avoid debugger accessing value affecting behavior formatValue("_value" in obj ? obj._value : obj), `>` ]; } else if (isReactive(obj)) { return [ "div", {}, ["span", vueStyle, isShallow(obj) ? "ShallowReactive" : "Reactive"], "<", formatValue(obj), `>${isReadonly(obj) ? ` (readonly)` : ``}` ]; } else if (isReadonly(obj)) { return [ "div", {}, ["span", vueStyle, isShallow(obj) ? "ShallowReadonly" : "Readonly"], "<", formatValue(obj), ">" ]; } return null; }, hasBody(obj) { return obj && obj.__isVue; }, body(obj) { if (obj && obj.__isVue) { return [ "div", {}, ...formatInstance(obj.$) ]; } } }; function formatInstance(instance) { const blocks = []; if (instance.type.props && instance.props) { blocks.push(createInstanceBlock("props", toRaw(instance.props))); } if (instance.setupState !== EMPTY_OBJ) { blocks.push(createInstanceBlock("setup", instance.setupState)); } if (instance.data !== EMPTY_OBJ) { blocks.push(createInstanceBlock("data", toRaw(instance.data))); } const computed = extractKeys(instance, "computed"); if (computed) { blocks.push(createInstanceBlock("computed", computed)); } const injected = extractKeys(instance, "inject"); if (injected) { blocks.push(createInstanceBlock("injected", injected)); } blocks.push([ "div", {}, [ "span", { style: keywordStyle.style + ";opacity:0.66" }, "$ (internal): " ], ["object", { object: instance }] ]); return blocks; } function createInstanceBlock(type, target) { target = extend({}, target); if (!Object.keys(target).length) { return ["span", {}]; } return [ "div", { style: "line-height:1.25em;margin-bottom:0.6em" }, [ "div", { style: "color:#476582" }, type ], [ "div", { style: "padding-left:1.25em" }, ...Object.keys(target).map((key) => { return [ "div", {}, ["span", keywordStyle, key + ": "], formatValue(target[key], false) ]; }) ] ]; } function formatValue(v, asRaw = true) { if (typeof v === "number") { return ["span", numberStyle, v]; } else if (typeof v === "string") { return ["span", stringStyle, JSON.stringify(v)]; } else if (typeof v === "boolean") { return ["span", keywordStyle, v]; } else if (isObject(v)) { return ["object", { object: asRaw ? toRaw(v) : v }]; } else { return ["span", stringStyle, String(v)]; } } function extractKeys(instance, type) { const Comp = instance.type; if (isFunction(Comp)) { return; } const extracted = {}; for (const key in instance.ctx) { if (isKeyOfType(Comp, key, type)) { extracted[key] = instance.ctx[key]; } } return extracted; } function isKeyOfType(Comp, key, type) { const opts = Comp[type]; if (isArray(opts) && opts.includes(key) || isObject(opts) && key in opts) { return true; } if (Comp.extends && isKeyOfType(Comp.extends, key, type)) { return true; } if (Comp.mixins && Comp.mixins.some((m) => isKeyOfType(m, key, type))) { return true; } } function genRefFlag(v) { if (isShallow(v)) { return `ShallowRef`; } if (v.effect) { return `ComputedRef`; } return `Ref`; } if (window.devtoolsFormatters) { window.devtoolsFormatters.push(formatter); } else { window.devtoolsFormatters = [formatter]; } } function withMemo(memo, render, cache, index) { const cached = cache[index]; if (cached && isMemoSame(cached, memo)) { return cached; } const ret = render(); ret.memo = memo.slice(); ret.cacheIndex = index; return cache[index] = ret; } function isMemoSame(cached, memo) { const prev = cached.memo; if (prev.length != memo.length) { return false; } for (let i = 0; i < prev.length; i++) { if (hasChanged(prev[i], memo[i])) { return false; } } if (isBlockTreeEnabled > 0 && currentBlock) { currentBlock.push(cached); } return true; } const version = "3.5.13"; const warn = warn$1 ; const ErrorTypeStrings = ErrorTypeStrings$1 ; const devtools = devtools$1 ; const setDevtoolsHook = setDevtoolsHook$1 ; const ssrUtils = null; const resolveFilter = null; const compatUtils = null; const DeprecationTypes = null; let policy = void 0; const tt = typeof window !== "undefined" && window.trustedTypes; if (tt) { try { policy = /* @__PURE__ */ tt.createPolicy("vue", { createHTML: (val) => val }); } catch (e) { warn(`Error creating trusted types policy: ${e}`); } } const unsafeToTrustedHTML = policy ? (val) => policy.createHTML(val) : (val) => val; const svgNS = "http://www.w3.org/2000/svg"; const mathmlNS = "http://www.w3.org/1998/Math/MathML"; const doc = typeof document !== "undefined" ? document : null; const templateContainer = doc && /* @__PURE__ */ doc.createElement("template"); const nodeOps = { insert: (child, parent, anchor) => { parent.insertBefore(child, anchor || null); }, remove: (child) => { const parent = child.parentNode; if (parent) { parent.removeChild(child); } }, createElement: (tag, namespace, is, props) => { const el = namespace === "svg" ? doc.createElementNS(svgNS, tag) : namespace === "mathml" ? doc.createElementNS(mathmlNS, tag) : is ? doc.createElement(tag, { is }) : doc.createElement(tag); if (tag === "select" && props && props.multiple != null) { el.setAttribute("multiple", props.multiple); } return el; }, createText: (text) => doc.createTextNode(text), createComment: (text) => doc.createComment(text), setText: (node, text) => { node.nodeValue = text; }, setElementText: (el, text) => { el.textContent = text; }, parentNode: (node) => node.parentNode, nextSibling: (node) => node.nextSibling, querySelector: (selector) => doc.querySelector(selector), setScopeId(el, id) { el.setAttribute(id, ""); }, // __UNSAFE__ // Reason: innerHTML. // Static content here can only come from compiled templates. // As long as the user only uses trusted templates, this is safe. insertStaticContent(content, parent, anchor, namespace, start, end) { const before = anchor ? anchor.previousSibling : parent.lastChild; if (start && (start === end || start.nextSibling)) { while (true) { parent.insertBefore(start.cloneNode(true), anchor); if (start === end || !(start = start.nextSibling)) break; } } else { templateContainer.innerHTML = unsafeToTrustedHTML( namespace === "svg" ? `<svg>${content}</svg>` : namespace === "mathml" ? `<math>${content}</math>` : content ); const template = templateContainer.content; if (namespace === "svg" || namespace === "mathml") { const wrapper = template.firstChild; while (wrapper.firstChild) { template.appendChild(wrapper.firstChild); } template.removeChild(wrapper); } parent.insertBefore(template, anchor); } return [ // first before ? before.nextSibling : parent.firstChild, // last anchor ? anchor.previousSibling : parent.lastChild ]; } }; const TRANSITION$1 = "transition"; const ANIMATION = "animation"; const vtcKey = Symbol("_vtc"); const DOMTransitionPropsValidators = { name: String, type: String, css: { type: Boolean, default: true }, duration: [String, Number, Object], enterFromClass: String, enterActiveClass: String, enterToClass: String, appearFromClass: String, appearActiveClass: String, appearToClass: String, leaveFromClass: String, leaveActiveClass: String, leaveToClass: String }; const TransitionPropsValidators = /* @__PURE__ */ extend( {}, BaseTransitionPropsValidators, DOMTransitionPropsValidators ); const decorate$1 = (t) => { t.displayName = "Transition"; t.props = TransitionPropsValidators; return t; }; const Transition = /* @__PURE__ */ decorate$1( (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots) ); const callHook = (hook, args = []) => { if (isArray(hook)) { hook.forEach((h2) => h2(...args)); } else if (hook) { hook(...args); } }; const hasExplicitCallback = (hook) => { return hook ? isArray(hook) ? hook.some((h2) => h2.length > 1) : hook.length > 1 : false; }; function resolveTransitionProps(rawProps) { const baseProps = {}; for (const key in rawProps) { if (!(key in DOMTransitionPropsValidators)) { baseProps[key] = rawProps[key]; } } if (rawProps.css === false) { return baseProps; } const { name = "v", type, duration, enterFromClass = `${name}-enter-from`, enterActiveClass = `${name}-enter-active`, enterToClass = `${name}-enter-to`, appearFromClass = enterFromClass, appearActiveClass = enterActiveClass, appearToClass = enterToClass, leaveFromClass = `${name}-leave-from`, leaveActiveClass = `${name}-leave-active`, leaveToClass = `${name}-leave-to` } = rawProps; const durations = normalizeDuration(duration); const enterDuration = durations && durations[0]; const leaveDuration = durations && durations[1]; const { onBeforeEnter, onEnter, onEnterCancelled, onLeave, onLeaveCancelled, onBeforeAppear = onBeforeEnter, onAppear = onEnter, onAppearCancelled = onEnterCancelled } = baseProps; const finishEnter = (el, isAppear, done, isCancelled) => { el._enterCancelled = isCancelled; removeTransitionClass(el, isAppear ? appearToClass : enterToClass); removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass); done && done(); }; const finishLeave = (el, done) => { el._isLeaving = false; removeTransitionClass(el, leaveFromClass); removeTransitionClass(el, leaveToClass); removeTransitionClass(el, leaveActiveClass); done && done(); }; const makeEnterHook = (isAppear) => { return (el, done) => { const hook = isAppear ? onAppear : onEnter; const resolve = () => finishEnter(el, isAppear, done); callHook(hook, [el, resolve]); nextFrame(() => { removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass); addTransitionClass(el, isAppear ? appearToClass : enterToClass); if (!hasExplicitCallback(hook)) { whenTransitionEnds(el, type, enterDuration, resolve); } }); }; }; return extend(baseProps, { onBeforeEnter(el) { callHook(onBeforeEnter, [el]); addTransitionClass(el, enterFromClass); addTransitionClass(el, enterActiveClass); }, onBeforeAppear(el) { callHook(onBeforeAppear, [el]); addTransitionClass(el, appearFromClass); addTransitionClass(el, appearActiveClass); }, onEnter: makeEnterHook(false), onAppear: makeEnterHook(true), onLeave(el, done) { el._isLeaving = true; const resolve = () => finishLeave(el, done); addTransitionClass(el, leaveFromClass); if (!el._enterCancelled) { forceReflow(); addTransitionClass(el, leaveActiveClass); } else { addTransitionClass(el, leaveActiveClass); forceReflow(); } nextFrame(() => { if (!el._isLeaving) { return; } removeTransitionClass(el, leaveFromClass); addTransitionClass(el, leaveToClass); if (!hasExplicitCallback(onLeave)) { whenTransitionEnds(el, type, leaveDuration, resolve); } }); callHook(onLeave, [el, resolve]); }, onEnterCancelled(el) { finishEnter(el, false, void 0, true); callHook(onEnterCancelled, [el]); }, onAppearCancelled(el) { finishEnter(el, true, void 0, true); callHook(onAppearCancelled, [el]); }, onLeaveCancelled(el) { finishLeave(el); callHook(onLeaveCancelled, [el]); } }); } function normalizeDuration(duration) { if (duration == null) { return null; } else if (isObject(duration)) { return [NumberOf(duration.enter), NumberOf(duration.leave)]; } else { const n = NumberOf(duration); return [n, n]; } } function NumberOf(val) { const res = toNumber(val); { assertNumber(res, "<transition> explicit duration"); } return res; } function addTransitionClass(el, cls) { cls.split(/\s+/).forEach((c) => c && el.classList.add(c)); (el[vtcKey] || (el[vtcKey] = /* @__PURE__ */ new Set())).add(cls); } function removeTransitionClass(el, cls) { cls.split(/\s+/).forEach((c) => c && el.classList.remove(c)); const _vtc = el[vtcKey]; if (_vtc) { _vtc.delete(cls); if (!_vtc.size) { el[vtcKey] = void 0; } } } function nextFrame(cb) { requestAnimationFrame(() => { requestAnimationFrame(cb); }); } let endId = 0; function whenTransitionEnds(el, expectedType, explicitTimeout, resolve) { const id = el._endId = ++endId; const resolveIfNotStale = () => { if (id === el._endId) { resolve(); } }; if (explicitTimeout != null) { return setTimeout(resolveIfNotStale, explicitTimeout); } const { type, timeout, propCount } = getTransitionInfo(el, expectedType); if (!type) { return resolve(); } const endEvent = type + "end"; let ended = 0; const end = () => { el.removeEventListener(endEvent, onEnd); resolveIfNotStale(); }; const onEnd = (e) => { if (e.target === el && ++ended >= propCount) { end(); } }; setTimeout(() => { if (ended < propCount) { end(); } }, timeout + 1); el.addEventListener(endEvent, onEnd); } function getTransitionInfo(el, expectedType) { const styles = window.getComputedStyle(el); const getStyleProperties = (key) => (styles[key] || "").split(", "); const transitionDelays = getStyleProperties(`${TRANSITION$1}Delay`); const transitionDurations = getStyleProperties(`${TRANSITION$1}Duration`); const transitionTimeout = getTimeout(transitionDelays, transitionDurations); const animationDelays = getStyleProperties(`${ANIMATION}Delay`); const animationDurations = getStyleProperties(`${ANIMATION}Duration`); const animationTimeout = getTimeout(animationDelays, animationDurations); let type = null; let timeout = 0; let propCount = 0; if (expectedType === TRANSITION$1) { if (transitionTimeout > 0) { type = TRANSITION$1; timeout = transitionTimeout; propCount = transitionDurations.length; } } else if (expectedType === ANIMATION) { if (animationTimeout > 0) { type = ANIMATION; timeout = animationTimeout; propCount = animationDurations.length; } } else { timeout = Math.max(transitionTimeout, animationTimeout); type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION$1 : ANIMATION : null; propCount = type ? type === TRANSITION$1 ? transitionDurations.length : animationDurations.length : 0; } const hasTransform = type === TRANSITION$1 && /\b(transform|all)(,|$)/.test( getStyleProperties(`${TRANSITION$1}Property`).toString() ); return { type, timeout, propCount, hasTransform }; } function getTimeout(delays, durations) { while (delays.length < durations.length) { delays = delays.concat(delays); } return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i]))); } function toMs(s) { if (s === "auto") return 0; return Number(s.slice(0, -1).replace(",", ".")) * 1e3; } function forceReflow() { return document.body.offsetHeight; } function patchClass(el, value, isSVG) { const transitionClasses = el[vtcKey]; if (transitionClasses) { value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(" "); } if (value == null) { el.removeAttribute("class"); } else if (isSVG) { el.setAttribute("class", value); } else { el.className = value; } } const vShowOriginalDisplay = Symbol("_vod"); const vShowHidden = Symbol("_vsh"); const vShow = { beforeMount(el, { value }, { transition }) { el[vShowOriginalDisplay] = el.style.display === "none" ? "" : el.style.display; if (transition && value) { transition.beforeEnter(el); } else { setDisplay(el, value); } }, mounted(el, { value }, { transition }) { if (transition && value) { transition.enter(el); } }, updated(el, { value, oldValue }, { transition }) { if (!value === !oldValue) return; if (transition) { if (value) { transition.beforeEnter(el); setDisplay(el, true); transition.enter(el); } else { transition.leave(el, () => { setDisplay(el, false); }); } } else { setDisplay(el, value); } }, beforeUnmount(el, { value }) { setDisplay(el, value); } }; { vShow.name = "show"; } function setDisplay(el, value) { el.style.display = value ? el[vShowOriginalDisplay] : "none"; el[vShowHidden] = !value; } const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT" ); function useCssVars(getter) { const instance = getCurrentInstance(); if (!instance) { warn(`useCssVars is called without current active component instance.`); return; } const updateTeleports = instance.ut = (vars = getter(instance.proxy)) => { Array.from( document.querySelectorAll(`[data-v-owner="${instance.uid}"]`) ).forEach((node) => setVarsOnNode(node, vars)); }; { instance.getCssVars = () => getter(instance.proxy); } const setVars = () => { const vars = getter(instance.proxy); if (instance.ce) { setVarsOnNode(instance.ce, vars); } else { setVarsOnVNode(instance.subTree, vars); } updateTeleports(vars); }; onBeforeUpdate(() => { queuePostFlushCb(setVars); }); onMounted(() => { watch(setVars, NOOP, { flush: "post" }); const ob = new MutationObserver(setVars); ob.observe(instance.subTree.el.parentNode, { childList: true }); onUnmounted(() => ob.disconnect()); }); } function setVarsOnVNode(vnode, vars) { if (vnode.shapeFlag & 128) { const suspense = vnode.suspense; vnode = suspense.activeBranch; if (suspense.pendingBranch && !suspense.isHydrating) { suspense.effects.push(() => { setVarsOnVNode(suspense.activeBranch, vars); }); } } while (vnode.component) { vnode = vnode.component.subTree; } if (vnode.shapeFlag & 1 && vnode.el) { setVarsOnNode(vnode.el, vars); } else if (vnode.type === Fragment) { vnode.children.forEach((c) => setVarsOnVNode(c, vars)); } else if (vnode.type === Static) { let { el, anchor } = vnode; while (el) { setVarsOnNode(el, vars); if (el === anchor) break; el = el.nextSibling; } } } function setVarsOnNode(el, vars) { if (el.nodeType === 1) { const style = el.style; let cssText = ""; for (const key in vars) { style.setProperty(`--${key}`, vars[key]); cssText += `--${key}: ${vars[key]};`; } style[CSS_VAR_TEXT] = cssText; } } const displayRE = /(^|;)\s*display\s*:/; function patchStyle(el, prev, next) { const style = el.style; const isCssString = isString(next); let hasControlledDisplay = false; if (next && !isCssString) { if (prev) { if (!isString(prev)) { for (const key in prev) { if (next[key] == null) { setStyle(style, key, ""); } } } else { for (const prevStyle of prev.split(";")) { const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim(); if (next[key] == null) { setStyle(style, key, ""); } } } } for (const key in next) { if (key === "display") { hasControlledDisplay = true; } setStyle(style, key, next[key]); } } else { if (isCssString) { if (prev !== next) { const cssVarText = style[CSS_VAR_TEXT]; if (cssVarText) { next += ";" + cssVarText; } style.cssText = next; hasControlledDisplay = displayRE.test(next); } } else if (prev) { el.removeAttribute("style"); } } if (vShowOriginalDisplay in el) { el[vShowOriginalDisplay] = hasControlledDisplay ? style.display : ""; if (el[vShowHidden]) { style.display = "none"; } } } const semicolonRE = /[^\\];\s*$/; const importantRE = /\s*!important$/; function setStyle(style, name, val) { if (isArray(val)) { val.forEach((v) => setStyle(style, name, v)); } else { if (val == null) val = ""; { if (semicolonRE.test(val)) { warn( `Unexpected semicolon at the end of '${name}' style value: '${val}'` ); } } if (name.startsWith("--")) { style.setProperty(name, val); } else { const prefixed = autoPrefix(style, name); if (importantRE.test(val)) { style.setProperty( hyphenate(prefixed), val.replace(importantRE, ""), "important" ); } else { style[prefixed] = val; } } } } const prefixes = ["Webkit", "Moz", "ms"]; const prefixCache = {}; function autoPrefix(style, rawName) { const cached = prefixCache[rawName]; if (cached) { return cached; } let name = camelize(rawName); if (name !== "filter" && name in style) { return prefixCache[rawName] = name; } name = capitalize(name); for (let i = 0; i < prefixes.length; i++) { const prefixed = prefixes[i] + name; if (prefixed in style) { return prefixCache[rawName] = prefixed; } } return rawName; } const xlinkNS = "http://www.w3.org/1999/xlink"; function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) { if (isSVG && key.startsWith("xlink:")) { if (value == null) { el.removeAttributeNS(xlinkNS, key.slice(6, key.length)); } else { el.setAttributeNS(xlinkNS, key, value); } } else { if (value == null || isBoolean && !includeBooleanAttr(value)) { el.removeAttribute(key); } else { el.setAttribute( key, isBoolean ? "" : isSymbol(value) ? String(value) : value ); } } } function patchDOMProp(el, key, value, parentComponent, attrName) { if (key === "innerHTML" || key === "textContent") { if (value != null) { el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value; } return; } const tag = el.tagName; if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally !tag.includes("-")) { const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value; const newValue = value == null ? ( // #11647: value should be set as empty string for null and undefined, // but <input type="checkbox"> should be set as 'on'. el.type === "checkbox" ? "on" : "" ) : String(value); if (oldValue !== newValue || !("_value" in el)) { el.value = newValue; } if (value == null) { el.removeAttribute(key); } el._value = value; return; } let needRemove = false; if (value === "" || value == null) { const type = typeof el[key]; if (type === "boolean") { value = includeBooleanAttr(value); } else if (value == null && type === "string") { value = ""; needRemove = true; } else if (type === "number") { value = 0; needRemove = true; } } try { el[key] = value; } catch (e) { if (!needRemove) { warn( `Failed setting prop "${key}" on <${tag.toLowerCase()}>: value ${value} is invalid.`, e ); } } needRemove && el.removeAttribute(attrName || key); } function addEventListener(el, event, handler, options) { el.addEventListener(event, handler, options); } function removeEventListener(el, event, handler, options) { el.removeEventListener(event, handler, options); } const veiKey = Symbol("_vei"); function patchEvent(el, rawName, prevValue, nextValue, instance = null) { const invokers = el[veiKey] || (el[veiKey] = {}); const existingInvoker = invokers[rawName]; if (nextValue && existingInvoker) { existingInvoker.value = sanitizeEventValue(nextValue, rawName) ; } else { const [name, options] = parseName(rawName); if (nextValue) { const invoker = invokers[rawName] = createInvoker( sanitizeEventValue(nextValue, rawName) , instance ); addEventListener(el, name, invoker, options); } else if (existingInvoker) { removeEventListener(el, name, existingInvoker, options); invokers[rawName] = void 0; } } } const optionsModifierRE = /(?:Once|Passive|Capture)$/; function parseName(name) { let options; if (optionsModifierRE.test(name)) { options = {}; let m; while (m = name.match(optionsModifierRE)) { name = name.slice(0, name.length - m[0].length); options[m[0].toLowerCase()] = true; } } const event = name[2] === ":" ? name.slice(3) : hyphenate(name.slice(2)); return [event, options]; } let cachedNow = 0; const p = /* @__PURE__ */ Promise.resolve(); const getNow = () => cachedNow || (p.then(() => cachedNow = 0), cachedNow = Date.now()); function createInvoker(initialValue, instance) { const invoker = (e) => { if (!e._vts) { e._vts = Date.now(); } else if (e._vts <= invoker.attached) { return; } callWithAsyncErrorHandling( patchStopImmediatePropagation(e, invoker.value), instance, 5, [e] ); }; invoker.value = initialValue; invoker.attached = getNow(); return invoker; } function sanitizeEventValue(value, propName) { if (isFunction(value) || isArray(value)) { return value; } warn( `Wrong type passed as event handler to ${propName} - did you forget @ or : in front of your prop? Expected function or array of functions, received type ${typeof value}.` ); return NOOP; } function patchStopImmediatePropagation(e, value) { if (isArray(value)) { const originalStop = e.stopImmediatePropagation; e.stopImmediatePropagation = () => { originalStop.call(e); e._stopped = true; }; return value.map( (fn) => (e2) => !e2._stopped && fn && fn(e2) ); } else { return value; } } const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123; const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => { const isSVG = namespace === "svg"; if (key === "class") { patchClass(el, nextValue, isSVG); } else if (key === "style") { patchStyle(el, prevValue, nextValue); } else if (isOn(key)) { if (!isModelListener(key)) { patchEvent(el, key, prevValue, nextValue, parentComponent); } } else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) { patchDOMProp(el, key, nextValue); if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) { patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value"); } } else if ( // #11081 force set props for possible async custom element el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue)) ) { patchDOMProp(el, camelize(key), nextValue, parentComponent, key); } else { if (key === "true-value") { el._trueValue = nextValue; } else if (key === "false-value") { el._falseValue = nextValue; } patchAttr(el, key, nextValue, isSVG); } }; function shouldSetAsProp(el, key, value, isSVG) { if (isSVG) { if (key === "innerHTML" || key === "textContent") { return true; } if (key in el && isNativeOn(key) && isFunction(value)) { return true; } return false; } if (key === "spellcheck" || key === "draggable" || key === "translate") { return false; } if (key === "form") { return false; } if (key === "list" && el.tagName === "INPUT") { return false; } if (key === "type" && el.tagName === "TEXTAREA") { return false; } if (key === "width" || key === "height") { const tag = el.tagName; if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") { return false; } } if (isNativeOn(key) && isString(value)) { return false; } return key in el; } const REMOVAL = {}; /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function defineCustomElement(options, extraOptions, _createApp) { const Comp = defineComponent(options, extraOptions); if (isPlainObject(Comp)) extend(Comp, extraOptions); class VueCustomElement extends VueElement { constructor(initialProps) { super(Comp, initialProps, _createApp); } } VueCustomElement.def = Comp; return VueCustomElement; } /*! #__NO_SIDE_EFFECTS__ */ const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => { return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp); }; const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class { }; class VueElement extends BaseClass { constructor(_def, _props = {}, _createApp = createApp) { super(); this._def = _def; this._props = _props; this._createApp = _createApp; this._isVueCE = true; /** * @internal */ this._instance = null; /** * @internal */ this._app = null; /** * @internal */ this._nonce = this._def.nonce; this._connected = false; this._resolved = false; this._numberProps = null; this._styleChildren = /* @__PURE__ */ new WeakSet(); this._ob = null; if (this.shadowRoot && _createApp !== createApp) { this._root = this.shadowRoot; } else { if (this.shadowRoot) { warn( `Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use \`defineSSRCustomElement\`.` ); } if (_def.shadowRoot !== false) { this.attachShadow({ mode: "open" }); this._root = this.shadowRoot; } else { this._root = this; } } if (!this._def.__asyncLoader) { this._resolveProps(this._def); } } connectedCallback() { if (!this.isConnected) return; if (!this.shadowRoot) { this._parseSlots(); } this._connected = true; let parent = this; while (parent = parent && (parent.parentNode || parent.host)) { if (parent instanceof VueElement) { this._parent = parent; break; } } if (!this._instance) { if (this._resolved) { this._setParent(); this._update(); } else { if (parent && parent._pendingResolve) { this._pendingResolve = parent._pendingResolve.then(() => { this._pendingResolve = void 0; this._resolveDef(); }); } else { this._resolveDef(); } } } } _setParent(parent = this._parent) { if (parent) { this._instance.parent = parent._instance; this._instance.provides = parent._instance.provides; } } disconnectedCallback() { this._connected = false; nextTick(() => { if (!this._connected) { if (this._ob) { this._ob.disconnect(); this._ob = null; } this._app && this._app.unmount(); if (this._instance) this._instance.ce = void 0; this._app = this._instance = null; } }); } /** * resolve inner component definition (handle possible async component) */ _resolveDef() { if (this._pendingResolve) { return; } for (let i = 0; i < this.attributes.length; i++) { this._setAttr(this.attributes[i].name); } this._ob = new MutationObserver((mutations) => { for (const m of mutations) { this._setAttr(m.attributeName); } }); this._ob.observe(this, { attributes: true }); const resolve = (def, isAsync = false) => { this._resolved = true; this._pendingResolve = void 0; const { props, styles } = def; let numberProps; if (props && !isArray(props)) { for (const key in props) { const opt = props[key]; if (opt === Number || opt && opt.type === Number) { if (key in this._props) { this._props[key] = toNumber(this._props[key]); } (numberProps || (numberProps = /* @__PURE__ */ Object.create(null)))[camelize(key)] = true; } } } this._numberProps = numberProps; if (isAsync) { this._resolveProps(def); } if (this.shadowRoot) { this._applyStyles(styles); } else if (styles) { warn( "Custom element style injection is not supported when using shadowRoot: false" ); } this._mount(def); }; const asyncDef = this._def.__asyncLoader; if (asyncDef) { this._pendingResolve = asyncDef().then( (def) => resolve(this._def = def, true) ); } else { resolve(this._def); } } _mount(def) { if (!def.name) { def.name = "VueElement"; } this._app = this._createApp(def); if (def.configureApp) { def.configureApp(this._app); } this._app._ceVNode = this._createVNode(); this._app.mount(this._root); const exposed = this._instance && this._instance.exposed; if (!exposed) return; for (const key in exposed) { if (!hasOwn(this, key)) { Object.defineProperty(this, key, { // unwrap ref to be consistent with public instance behavior get: () => unref(exposed[key]) }); } else { warn(`Exposed property "${key}" already exists on custom element.`); } } } _resolveProps(def) { const { props } = def; const declaredPropKeys = isArray(props) ? props : Object.keys(props || {}); for (const key of Object.keys(this)) { if (key[0] !== "_" && declaredPropKeys.includes(key)) { this._setProp(key, this[key]); } } for (const key of declaredPropKeys.map(camelize)) { Object.defineProperty(this, key, { get() { return this._getProp(key); }, set(val) { this._setProp(key, val, true, true); } }); } } _setAttr(key) { if (key.startsWith("data-v-")) return; const has = this.hasAttribute(key); let value = has ? this.getAttribute(key) : REMOVAL; const camelKey = camelize(key); if (has && this._numberProps && this._numberProps[camelKey]) { value = toNumber(value); } this._setProp(camelKey, value, false, true); } /** * @internal */ _getProp(key) { return this._props[key]; } /** * @internal */ _setProp(key, val, shouldReflect = true, shouldUpdate = false) { if (val !== this._props[key]) { if (val === REMOVAL) { delete this._props[key]; } else { this._props[key] = val; if (key === "key" && this._app) { this._app._ceVNode.key = val; } } if (shouldUpdate && this._instance) { this._update(); } if (shouldReflect) { const ob = this._ob; ob && ob.disconnect(); if (val === true) { this.setAttribute(hyphenate(key), ""); } else if (typeof val === "string" || typeof val === "number") { this.setAttribute(hyphenate(key), val + ""); } else if (!val) { this.removeAttribute(hyphenate(key)); } ob && ob.observe(this, { attributes: true }); } } } _update() { render(this._createVNode(), this._root); } _createVNode() { const baseProps = {}; if (!this.shadowRoot) { baseProps.onVnodeMounted = baseProps.onVnodeUpdated = this._renderSlots.bind(this); } const vnode = createVNode(this._def, extend(baseProps, this._props)); if (!this._instance) { vnode.ce = (instance) => { this._instance = instance; instance.ce = this; instance.isCE = true; { instance.ceReload = (newStyles) => { if (this._styles) { this._styles.forEach((s) => this._root.removeChild(s)); this._styles.length = 0; } this._applyStyles(newStyles); this._instance = null; this._update(); }; } const dispatch = (event, args) => { this.dispatchEvent( new CustomEvent( event, isPlainObject(args[0]) ? extend({ detail: args }, args[0]) : { detail: args } ) ); }; instance.emit = (event, ...args) => { dispatch(event, args); if (hyphenate(event) !== event) { dispatch(hyphenate(event), args); } }; this._setParent(); }; } return vnode; } _applyStyles(styles, owner) { if (!styles) return; if (owner) { if (owner === this._def || this._styleChildren.has(owner)) { return; } this._styleChildren.add(owner); } const nonce = this._nonce; for (let i = styles.length - 1; i >= 0; i--) { const s = document.createElement("style"); if (nonce) s.setAttribute("nonce", nonce); s.textContent = styles[i]; this.shadowRoot.prepend(s); { if (owner) { if (owner.__hmrId) { if (!this._childStyles) this._childStyles = /* @__PURE__ */ new Map(); let entry = this._childStyles.get(owner.__hmrId); if (!entry) { this._childStyles.set(owner.__hmrId, entry = []); } entry.push(s); } } else { (this._styles || (this._styles = [])).push(s); } } } } /** * Only called when shadowRoot is false */ _parseSlots() { const slots = this._slots = {}; let n; while (n = this.firstChild) { const slotName = n.nodeType === 1 && n.getAttribute("slot") || "default"; (slots[slotName] || (slots[slotName] = [])).push(n); this.removeChild(n); } } /** * Only called when shadowRoot is false */ _renderSlots() { const outlets = (this._teleportTarget || this).querySelectorAll("slot"); const scopeId = this._instance.type.__scopeId; for (let i = 0; i < outlets.length; i++) { const o = outlets[i]; const slotName = o.getAttribute("name") || "default"; const content = this._slots[slotName]; const parent = o.parentNode; if (content) { for (const n of content) { if (scopeId && n.nodeType === 1) { const id = scopeId + "-s"; const walker = document.createTreeWalker(n, 1); n.setAttribute(id, ""); let child; while (child = walker.nextNode()) { child.setAttribute(id, ""); } } parent.insertBefore(n, o); } } else { while (o.firstChild) parent.insertBefore(o.firstChild, o); } parent.removeChild(o); } } /** * @internal */ _injectChildStyle(comp) { this._applyStyles(comp.styles, comp); } /** * @internal */ _removeChildStyle(comp) { { this._styleChildren.delete(comp); if (this._childStyles && comp.__hmrId) { const oldStyles = this._childStyles.get(comp.__hmrId); if (oldStyles) { oldStyles.forEach((s) => this._root.removeChild(s)); oldStyles.length = 0; } } } } } function useHost(caller) { const instance = getCurrentInstance(); const el = instance && instance.ce; if (el) { return el; } else { if (!instance) { warn( `${caller || "useHost"} called without an active component instance.` ); } else { warn( `${caller || "useHost"} can only be used in components defined via defineCustomElement.` ); } } return null; } function useShadowRoot() { const el = useHost("useShadowRoot") ; return el && el.shadowRoot; } function useCssModule(name = "$style") { { { warn(`useCssModule() is not supported in the global build.`); } return EMPTY_OBJ; } } const positionMap = /* @__PURE__ */ new WeakMap(); const newPositionMap = /* @__PURE__ */ new WeakMap(); const moveCbKey = Symbol("_moveCb"); const enterCbKey = Symbol("_enterCb"); const decorate = (t) => { delete t.props.mode; return t; }; const TransitionGroupImpl = /* @__PURE__ */ decorate({ name: "TransitionGroup", props: /* @__PURE__ */ extend({}, TransitionPropsValidators, { tag: String, moveClass: String }), setup(props, { slots }) { const instance = getCurrentInstance(); const state = useTransitionState(); let prevChildren; let children; onUpdated(() => { if (!prevChildren.length) { return; } const moveClass = props.moveClass || `${props.name || "v"}-move`; if (!hasCSSTransform( prevChildren[0].el, instance.vnode.el, moveClass )) { return; } prevChildren.forEach(callPendingCbs); prevChildren.forEach(recordPosition); const movedChildren = prevChildren.filter(applyTranslation); forceReflow(); movedChildren.forEach((c) => { const el = c.el; const style = el.style; addTransitionClass(el, moveClass); style.transform = style.webkitTransform = style.transitionDuration = ""; const cb = el[moveCbKey] = (e) => { if (e && e.target !== el) { return; } if (!e || /transform$/.test(e.propertyName)) { el.removeEventListener("transitionend", cb); el[moveCbKey] = null; removeTransitionClass(el, moveClass); } }; el.addEventListener("transitionend", cb); }); }); return () => { const rawProps = toRaw(props); const cssTransitionProps = resolveTransitionProps(rawProps); let tag = rawProps.tag || Fragment; prevChildren = []; if (children) { for (let i = 0; i < children.length; i++) { const child = children[i]; if (child.el && child.el instanceof Element) { prevChildren.push(child); setTransitionHooks( child, resolveTransitionHooks( child, cssTransitionProps, state, instance ) ); positionMap.set( child, child.el.getBoundingClientRect() ); } } } children = slots.default ? getTransitionRawChildren(slots.default()) : []; for (let i = 0; i < children.length; i++) { const child = children[i]; if (child.key != null) { setTransitionHooks( child, resolveTransitionHooks(child, cssTransitionProps, state, instance) ); } else if (child.type !== Text) { warn(`<TransitionGroup> children must be keyed.`); } } return createVNode(tag, null, children); }; } }); const TransitionGroup = TransitionGroupImpl; function callPendingCbs(c) { const el = c.el; if (el[moveCbKey]) { el[moveCbKey](); } if (el[enterCbKey]) { el[enterCbKey](); } } function recordPosition(c) { newPositionMap.set(c, c.el.getBoundingClientRect()); } function applyTranslation(c) { const oldPos = positionMap.get(c); const newPos = newPositionMap.get(c); const dx = oldPos.left - newPos.left; const dy = oldPos.top - newPos.top; if (dx || dy) { const s = c.el.style; s.transform = s.webkitTransform = `translate(${dx}px,${dy}px)`; s.transitionDuration = "0s"; return c; } } function hasCSSTransform(el, root, moveClass) { const clone = el.cloneNode(); const _vtc = el[vtcKey]; if (_vtc) { _vtc.forEach((cls) => { cls.split(/\s+/).forEach((c) => c && clone.classList.remove(c)); }); } moveClass.split(/\s+/).forEach((c) => c && clone.classList.add(c)); clone.style.display = "none"; const container = root.nodeType === 1 ? root : root.parentNode; container.appendChild(clone); const { hasTransform } = getTransitionInfo(clone); container.removeChild(clone); return hasTransform; } const getModelAssigner = (vnode) => { const fn = vnode.props["onUpdate:modelValue"] || false; return isArray(fn) ? (value) => invokeArrayFns(fn, value) : fn; }; function onCompositionStart(e) { e.target.composing = true; } function onCompositionEnd(e) { const target = e.target; if (target.composing) { target.composing = false; target.dispatchEvent(new Event("input")); } } const assignKey = Symbol("_assign"); const vModelText = { created(el, { modifiers: { lazy, trim, number } }, vnode) { el[assignKey] = getModelAssigner(vnode); const castToNumber = number || vnode.props && vnode.props.type === "number"; addEventListener(el, lazy ? "change" : "input", (e) => { if (e.target.composing) return; let domValue = el.value; if (trim) { domValue = domValue.trim(); } if (castToNumber) { domValue = looseToNumber(domValue); } el[assignKey](domValue); }); if (trim) { addEventListener(el, "change", () => { el.value = el.value.trim(); }); } if (!lazy) { addEventListener(el, "compositionstart", onCompositionStart); addEventListener(el, "compositionend", onCompositionEnd); addEventListener(el, "change", onCompositionEnd); } }, // set value on mounted so it's after min/max for type="range" mounted(el, { value }) { el.value = value == null ? "" : value; }, beforeUpdate(el, { value, oldValue, modifiers: { lazy, trim, number } }, vnode) { el[assignKey] = getModelAssigner(vnode); if (el.composing) return; const elValue = (number || el.type === "number") && !/^0\d/.test(el.value) ? looseToNumber(el.value) : el.value; const newValue = value == null ? "" : value; if (elValue === newValue) { return; } if (document.activeElement === el && el.type !== "range") { if (lazy && value === oldValue) { return; } if (trim && el.value.trim() === newValue) { return; } } el.value = newValue; } }; const vModelCheckbox = { // #4096 array checkboxes need to be deep traversed deep: true, created(el, _, vnode) { el[assignKey] = getModelAssigner(vnode); addEventListener(el, "change", () => { const modelValue = el._modelValue; const elementValue = getValue(el); const checked = el.checked; const assign = el[assignKey]; if (isArray(modelValue)) { const index = looseIndexOf(modelValue, elementValue); const found = index !== -1; if (checked && !found) { assign(modelValue.concat(elementValue)); } else if (!checked && found) { const filtered = [...modelValue]; filtered.splice(index, 1); assign(filtered); } } else if (isSet(modelValue)) { const cloned = new Set(modelValue); if (checked) { cloned.add(elementValue); } else { cloned.delete(elementValue); } assign(cloned); } else { assign(getCheckboxValue(el, checked)); } }); }, // set initial checked on mount to wait for true-value/false-value mounted: setChecked, beforeUpdate(el, binding, vnode) { el[assignKey] = getModelAssigner(vnode); setChecked(el, binding, vnode); } }; function setChecked(el, { value, oldValue }, vnode) { el._modelValue = value; let checked; if (isArray(value)) { checked = looseIndexOf(value, vnode.props.value) > -1; } else if (isSet(value)) { checked = value.has(vnode.props.value); } else { if (value === oldValue) return; checked = looseEqual(value, getCheckboxValue(el, true)); } if (el.checked !== checked) { el.checked = checked; } } const vModelRadio = { created(el, { value }, vnode) { el.checked = looseEqual(value, vnode.props.value); el[assignKey] = getModelAssigner(vnode); addEventListener(el, "change", () => { el[assignKey](getValue(el)); }); }, beforeUpdate(el, { value, oldValue }, vnode) { el[assignKey] = getModelAssigner(vnode); if (value !== oldValue) { el.checked = looseEqual(value, vnode.props.value); } } }; const vModelSelect = { // <select multiple> value need to be deep traversed deep: true, created(el, { value, modifiers: { number } }, vnode) { const isSetModel = isSet(value); addEventListener(el, "change", () => { const selectedVal = Array.prototype.filter.call(el.options, (o) => o.selected).map( (o) => number ? looseToNumber(getValue(o)) : getValue(o) ); el[assignKey]( el.multiple ? isSetModel ? new Set(selectedVal) : selectedVal : selectedVal[0] ); el._assigning = true; nextTick(() => { el._assigning = false; }); }); el[assignKey] = getModelAssigner(vnode); }, // set value in mounted & updated because <select> relies on its children // <option>s. mounted(el, { value }) { setSelected(el, value); }, beforeUpdate(el, _binding, vnode) { el[assignKey] = getModelAssigner(vnode); }, updated(el, { value }) { if (!el._assigning) { setSelected(el, value); } } }; function setSelected(el, value) { const isMultiple = el.multiple; const isArrayValue = isArray(value); if (isMultiple && !isArrayValue && !isSet(value)) { warn( `<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(value).slice(8, -1)}.` ); return; } for (let i = 0, l = el.options.length; i < l; i++) { const option = el.options[i]; const optionValue = getValue(option); if (isMultiple) { if (isArrayValue) { const optionType = typeof optionValue; if (optionType === "string" || optionType === "number") { option.selected = value.some((v) => String(v) === String(optionValue)); } else { option.selected = looseIndexOf(value, optionValue) > -1; } } else { option.selected = value.has(optionValue); } } else if (looseEqual(getValue(option), value)) { if (el.selectedIndex !== i) el.selectedIndex = i; return; } } if (!isMultiple && el.selectedIndex !== -1) { el.selectedIndex = -1; } } function getValue(el) { return "_value" in el ? el._value : el.value; } function getCheckboxValue(el, checked) { const key = checked ? "_trueValue" : "_falseValue"; return key in el ? el[key] : checked; } const vModelDynamic = { created(el, binding, vnode) { callModelHook(el, binding, vnode, null, "created"); }, mounted(el, binding, vnode) { callModelHook(el, binding, vnode, null, "mounted"); }, beforeUpdate(el, binding, vnode, prevVNode) { callModelHook(el, binding, vnode, prevVNode, "beforeUpdate"); }, updated(el, binding, vnode, prevVNode) { callModelHook(el, binding, vnode, prevVNode, "updated"); } }; function resolveDynamicModel(tagName, type) { switch (tagName) { case "SELECT": return vModelSelect; case "TEXTAREA": return vModelText; default: switch (type) { case "checkbox": return vModelCheckbox; case "radio": return vModelRadio; default: return vModelText; } } } function callModelHook(el, binding, vnode, prevVNode, hook) { const modelToUse = resolveDynamicModel( el.tagName, vnode.props && vnode.props.type ); const fn = modelToUse[hook]; fn && fn(el, binding, vnode, prevVNode); } const systemModifiers = ["ctrl", "shift", "alt", "meta"]; const modifierGuards = { stop: (e) => e.stopPropagation(), prevent: (e) => e.preventDefault(), self: (e) => e.target !== e.currentTarget, ctrl: (e) => !e.ctrlKey, shift: (e) => !e.shiftKey, alt: (e) => !e.altKey, meta: (e) => !e.metaKey, left: (e) => "button" in e && e.button !== 0, middle: (e) => "button" in e && e.button !== 1, right: (e) => "button" in e && e.button !== 2, exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m)) }; const withModifiers = (fn, modifiers) => { const cache = fn._withMods || (fn._withMods = {}); const cacheKey = modifiers.join("."); return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => { for (let i = 0; i < modifiers.length; i++) { const guard = modifierGuards[modifiers[i]]; if (guard && guard(event, modifiers)) return; } return fn(event, ...args); }); }; const keyNames = { esc: "escape", space: " ", up: "arrow-up", left: "arrow-left", right: "arrow-right", down: "arrow-down", delete: "backspace" }; const withKeys = (fn, modifiers) => { const cache = fn._withKeys || (fn._withKeys = {}); const cacheKey = modifiers.join("."); return cache[cacheKey] || (cache[cacheKey] = (event) => { if (!("key" in event)) { return; } const eventKey = hyphenate(event.key); if (modifiers.some( (k) => k === eventKey || keyNames[k] === eventKey )) { return fn(event); } }); }; const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps); let renderer; let enabledHydration = false; function ensureRenderer() { return renderer || (renderer = createRenderer(rendererOptions)); } function ensureHydrationRenderer() { renderer = enabledHydration ? renderer : createHydrationRenderer(rendererOptions); enabledHydration = true; return renderer; } const render = (...args) => { ensureRenderer().render(...args); }; const hydrate = (...args) => { ensureHydrationRenderer().hydrate(...args); }; const createApp = (...args) => { const app = ensureRenderer().createApp(...args); { injectNativeTagCheck(app); injectCompilerOptionsCheck(app); } const { mount } = app; app.mount = (containerOrSelector) => { const container = normalizeContainer(containerOrSelector); if (!container) return; const component = app._component; if (!isFunction(component) && !component.render && !component.template) { component.template = container.innerHTML; } if (container.nodeType === 1) { container.textContent = ""; } const proxy = mount(container, false, resolveRootNamespace(container)); if (container instanceof Element) { container.removeAttribute("v-cloak"); container.setAttribute("data-v-app", ""); } return proxy; }; return app; }; const createSSRApp = (...args) => { const app = ensureHydrationRenderer().createApp(...args); { injectNativeTagCheck(app); injectCompilerOptionsCheck(app); } const { mount } = app; app.mount = (containerOrSelector) => { const container = normalizeContainer(containerOrSelector); if (container) { return mount(container, true, resolveRootNamespace(container)); } }; return app; }; function resolveRootNamespace(container) { if (container instanceof SVGElement) { return "svg"; } if (typeof MathMLElement === "function" && container instanceof MathMLElement) { return "mathml"; } } function injectNativeTagCheck(app) { Object.defineProperty(app.config, "isNativeTag", { value: (tag) => isHTMLTag(tag) || isSVGTag(tag) || isMathMLTag(tag), writable: false }); } function injectCompilerOptionsCheck(app) { if (isRuntimeOnly()) { const isCustomElement = app.config.isCustomElement; Object.defineProperty(app.config, "isCustomElement", { get() { return isCustomElement; }, set() { warn( `The \`isCustomElement\` config option is deprecated. Use \`compilerOptions.isCustomElement\` instead.` ); } }); const compilerOptions = app.config.compilerOptions; const msg = `The \`compilerOptions\` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, \`compilerOptions\` must be passed to \`@vue/compiler-dom\` in the build setup instead. - For vue-loader: pass it via vue-loader's \`compilerOptions\` loader option. - For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader - For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc`; Object.defineProperty(app.config, "compilerOptions", { get() { warn(msg); return compilerOptions; }, set() { warn(msg); } }); } } function normalizeContainer(container) { if (isString(container)) { const res = document.querySelector(container); if (!res) { warn( `Failed to mount app: mount target selector "${container}" returned null.` ); } return res; } if (window.ShadowRoot && container instanceof window.ShadowRoot && container.mode === "closed") { warn( `mounting on a ShadowRoot with \`{mode: "closed"}\` may lead to unpredictable bugs` ); } return container; } const initDirectivesForSSR = NOOP; function initDev() { { { console.info( `You are running a development build of Vue. Make sure to use the production build (*.prod.js) when deploying for production.` ); } initCustomFormatter(); } } const FRAGMENT = Symbol(`Fragment` ); const TELEPORT = Symbol(`Teleport` ); const SUSPENSE = Symbol(`Suspense` ); const KEEP_ALIVE = Symbol(`KeepAlive` ); const BASE_TRANSITION = Symbol( `BaseTransition` ); const OPEN_BLOCK = Symbol(`openBlock` ); const CREATE_BLOCK = Symbol(`createBlock` ); const CREATE_ELEMENT_BLOCK = Symbol( `createElementBlock` ); const CREATE_VNODE = Symbol(`createVNode` ); const CREATE_ELEMENT_VNODE = Symbol( `createElementVNode` ); const CREATE_COMMENT = Symbol( `createCommentVNode` ); const CREATE_TEXT = Symbol( `createTextVNode` ); const CREATE_STATIC = Symbol( `createStaticVNode` ); const RESOLVE_COMPONENT = Symbol( `resolveComponent` ); const RESOLVE_DYNAMIC_COMPONENT = Symbol( `resolveDynamicComponent` ); const RESOLVE_DIRECTIVE = Symbol( `resolveDirective` ); const RESOLVE_FILTER = Symbol( `resolveFilter` ); const WITH_DIRECTIVES = Symbol( `withDirectives` ); const RENDER_LIST = Symbol(`renderList` ); const RENDER_SLOT = Symbol(`renderSlot` ); const CREATE_SLOTS = Symbol(`createSlots` ); const TO_DISPLAY_STRING = Symbol( `toDisplayString` ); const MERGE_PROPS = Symbol(`mergeProps` ); const NORMALIZE_CLASS = Symbol( `normalizeClass` ); const NORMALIZE_STYLE = Symbol( `normalizeStyle` ); const NORMALIZE_PROPS = Symbol( `normalizeProps` ); const GUARD_REACTIVE_PROPS = Symbol( `guardReactiveProps` ); const TO_HANDLERS = Symbol(`toHandlers` ); const CAMELIZE = Symbol(`camelize` ); const CAPITALIZE = Symbol(`capitalize` ); const TO_HANDLER_KEY = Symbol( `toHandlerKey` ); const SET_BLOCK_TRACKING = Symbol( `setBlockTracking` ); const PUSH_SCOPE_ID = Symbol(`pushScopeId` ); const POP_SCOPE_ID = Symbol(`popScopeId` ); const WITH_CTX = Symbol(`withCtx` ); const UNREF = Symbol(`unref` ); const IS_REF = Symbol(`isRef` ); const WITH_MEMO = Symbol(`withMemo` ); const IS_MEMO_SAME = Symbol(`isMemoSame` ); const helperNameMap = { [FRAGMENT]: `Fragment`, [TELEPORT]: `Teleport`, [SUSPENSE]: `Suspense`, [KEEP_ALIVE]: `KeepAlive`, [BASE_TRANSITION]: `BaseTransition`, [OPEN_BLOCK]: `openBlock`, [CREATE_BLOCK]: `createBlock`, [CREATE_ELEMENT_BLOCK]: `createElementBlock`, [CREATE_VNODE]: `createVNode`, [CREATE_ELEMENT_VNODE]: `createElementVNode`, [CREATE_COMMENT]: `createCommentVNode`, [CREATE_TEXT]: `createTextVNode`, [CREATE_STATIC]: `createStaticVNode`, [RESOLVE_COMPONENT]: `resolveComponent`, [RESOLVE_DYNAMIC_COMPONENT]: `resolveDynamicComponent`, [RESOLVE_DIRECTIVE]: `resolveDirective`, [RESOLVE_FILTER]: `resolveFilter`, [WITH_DIRECTIVES]: `withDirectives`, [RENDER_LIST]: `renderList`, [RENDER_SLOT]: `renderSlot`, [CREATE_SLOTS]: `createSlots`, [TO_DISPLAY_STRING]: `toDisplayString`, [MERGE_PROPS]: `mergeProps`, [NORMALIZE_CLASS]: `normalizeClass`, [NORMALIZE_STYLE]: `normalizeStyle`, [NORMALIZE_PROPS]: `normalizeProps`, [GUARD_REACTIVE_PROPS]: `guardReactiveProps`, [TO_HANDLERS]: `toHandlers`, [CAMELIZE]: `camelize`, [CAPITALIZE]: `capitalize`, [TO_HANDLER_KEY]: `toHandlerKey`, [SET_BLOCK_TRACKING]: `setBlockTracking`, [PUSH_SCOPE_ID]: `pushScopeId`, [POP_SCOPE_ID]: `popScopeId`, [WITH_CTX]: `withCtx`, [UNREF]: `unref`, [IS_REF]: `isRef`, [WITH_MEMO]: `withMemo`, [IS_MEMO_SAME]: `isMemoSame` }; function registerRuntimeHelpers(helpers) { Object.getOwnPropertySymbols(helpers).forEach((s) => { helperNameMap[s] = helpers[s]; }); } const locStub = { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 1, offset: 0 }, source: "" }; function createRoot(children, source = "") { return { type: 0, source, children, helpers: /* @__PURE__ */ new Set(), components: [], directives: [], hoists: [], imports: [], cached: [], temps: 0, codegenNode: void 0, loc: locStub }; } function createVNodeCall(context, tag, props, children, patchFlag, dynamicProps, directives, isBlock = false, disableTracking = false, isComponent = false, loc = locStub) { if (context) { if (isBlock) { context.helper(OPEN_BLOCK); context.helper(getVNodeBlockHelper(context.inSSR, isComponent)); } else { context.helper(getVNodeHelper(context.inSSR, isComponent)); } if (directives) { context.helper(WITH_DIRECTIVES); } } return { type: 13, tag, props, children, patchFlag, dynamicProps, directives, isBlock, disableTracking, isComponent, loc }; } function createArrayExpression(elements, loc = locStub) { return { type: 17, loc, elements }; } function createObjectExpression(properties, loc = locStub) { return { type: 15, loc, properties }; } function createObjectProperty(key, value) { return { type: 16, loc: locStub, key: isString(key) ? createSimpleExpression(key, true) : key, value }; } function createSimpleExpression(content, isStatic = false, loc = locStub, constType = 0) { return { type: 4, loc, content, isStatic, constType: isStatic ? 3 : constType }; } function createCompoundExpression(children, loc = locStub) { return { type: 8, loc, children }; } function createCallExpression(callee, args = [], loc = locStub) { return { type: 14, loc, callee, arguments: args }; } function createFunctionExpression(params, returns = void 0, newline = false, isSlot = false, loc = locStub) { return { type: 18, params, returns, newline, isSlot, loc }; } function createConditionalExpression(test, consequent, alternate, newline = true) { return { type: 19, test, consequent, alternate, newline, loc: locStub }; } function createCacheExpression(index, value, needPauseTracking = false, inVOnce = false) { return { type: 20, index, value, needPauseTracking, inVOnce, needArraySpread: false, loc: locStub }; } function createBlockStatement(body) { return { type: 21, body, loc: locStub }; } function getVNodeHelper(ssr, isComponent) { return ssr || isComponent ? CREATE_VNODE : CREATE_ELEMENT_VNODE; } function getVNodeBlockHelper(ssr, isComponent) { return ssr || isComponent ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK; } function convertToBlock(node, { helper, removeHelper, inSSR }) { if (!node.isBlock) { node.isBlock = true; removeHelper(getVNodeHelper(inSSR, node.isComponent)); helper(OPEN_BLOCK); helper(getVNodeBlockHelper(inSSR, node.isComponent)); } } const defaultDelimitersOpen = new Uint8Array([123, 123]); const defaultDelimitersClose = new Uint8Array([125, 125]); function isTagStartChar(c) { return c >= 97 && c <= 122 || c >= 65 && c <= 90; } function isWhitespace(c) { return c === 32 || c === 10 || c === 9 || c === 12 || c === 13; } function isEndOfTagSection(c) { return c === 47 || c === 62 || isWhitespace(c); } function toCharCodes(str) { const ret = new Uint8Array(str.length); for (let i = 0; i < str.length; i++) { ret[i] = str.charCodeAt(i); } return ret; } const Sequences = { Cdata: new Uint8Array([67, 68, 65, 84, 65, 91]), // CDATA[ CdataEnd: new Uint8Array([93, 93, 62]), // ]]> CommentEnd: new Uint8Array([45, 45, 62]), // `-->` ScriptEnd: new Uint8Array([60, 47, 115, 99, 114, 105, 112, 116]), // `<\/script` StyleEnd: new Uint8Array([60, 47, 115, 116, 121, 108, 101]), // `</style` TitleEnd: new Uint8Array([60, 47, 116, 105, 116, 108, 101]), // `</title` TextareaEnd: new Uint8Array([ 60, 47, 116, 101, 120, 116, 97, 114, 101, 97 ]) // `</textarea }; class Tokenizer { constructor(stack, cbs) { this.stack = stack; this.cbs = cbs; /** The current state the tokenizer is in. */ this.state = 1; /** The read buffer. */ this.buffer = ""; /** The beginning of the section that is currently being read. */ this.sectionStart = 0; /** The index within the buffer that we are currently looking at. */ this.index = 0; /** The start of the last entity. */ this.entityStart = 0; /** Some behavior, eg. when decoding entities, is done while we are in another state. This keeps track of the other state type. */ this.baseState = 1; /** For special parsing behavior inside of script and style tags. */ this.inRCDATA = false; /** For disabling RCDATA tags handling */ this.inXML = false; /** For disabling interpolation parsing in v-pre */ this.inVPre = false; /** Record newline positions for fast line / column calculation */ this.newlines = []; this.mode = 0; this.delimiterOpen = defaultDelimitersOpen; this.delimiterClose = defaultDelimitersClose; this.delimiterIndex = -1; this.currentSequence = void 0; this.sequenceIndex = 0; } get inSFCRoot() { return this.mode === 2 && this.stack.length === 0; } reset() { this.state = 1; this.mode = 0; this.buffer = ""; this.sectionStart = 0; this.index = 0; this.baseState = 1; this.inRCDATA = false; this.currentSequence = void 0; this.newlines.length = 0; this.delimiterOpen = defaultDelimitersOpen; this.delimiterClose = defaultDelimitersClose; } /** * Generate Position object with line / column information using recorded * newline positions. We know the index is always going to be an already * processed index, so all the newlines up to this index should have been * recorded. */ getPos(index) { let line = 1; let column = index + 1; for (let i = this.newlines.length - 1; i >= 0; i--) { const newlineIndex = this.newlines[i]; if (index > newlineIndex) { line = i + 2; column = index - newlineIndex; break; } } return { column, line, offset: index }; } peek() { return this.buffer.charCodeAt(this.index + 1); } stateText(c) { if (c === 60) { if (this.index > this.sectionStart) { this.cbs.ontext(this.sectionStart, this.index); } this.state = 5; this.sectionStart = this.index; } else if (!this.inVPre && c === this.delimiterOpen[0]) { this.state = 2; this.delimiterIndex = 0; this.stateInterpolationOpen(c); } } stateInterpolationOpen(c) { if (c === this.delimiterOpen[this.delimiterIndex]) { if (this.delimiterIndex === this.delimiterOpen.length - 1) { const start = this.index + 1 - this.delimiterOpen.length; if (start > this.sectionStart) { this.cbs.ontext(this.sectionStart, start); } this.state = 3; this.sectionStart = start; } else { this.delimiterIndex++; } } else if (this.inRCDATA) { this.state = 32; this.stateInRCDATA(c); } else { this.state = 1; this.stateText(c); } } stateInterpolation(c) { if (c === this.delimiterClose[0]) { this.state = 4; this.delimiterIndex = 0; this.stateInterpolationClose(c); } } stateInterpolationClose(c) { if (c === this.delimiterClose[this.delimiterIndex]) { if (this.delimiterIndex === this.delimiterClose.length - 1) { this.cbs.oninterpolation(this.sectionStart, this.index + 1); if (this.inRCDATA) { this.state = 32; } else { this.state = 1; } this.sectionStart = this.index + 1; } else { this.delimiterIndex++; } } else { this.state = 3; this.stateInterpolation(c); } } stateSpecialStartSequence(c) { const isEnd = this.sequenceIndex === this.currentSequence.length; const isMatch = isEnd ? ( // If we are at the end of the sequence, make sure the tag name has ended isEndOfTagSection(c) ) : ( // Otherwise, do a case-insensitive comparison (c | 32) === this.currentSequence[this.sequenceIndex] ); if (!isMatch) { this.inRCDATA = false; } else if (!isEnd) { this.sequenceIndex++; return; } this.sequenceIndex = 0; this.state = 6; this.stateInTagName(c); } /** Look for an end tag. For <title> and <textarea>, also decode entities. */ stateInRCDATA(c) { if (this.sequenceIndex === this.currentSequence.length) { if (c === 62 || isWhitespace(c)) { const endOfText = this.index - this.currentSequence.length; if (this.sectionStart < endOfText) { const actualIndex = this.index; this.index = endOfText; this.cbs.ontext(this.sectionStart, endOfText); this.index = actualIndex; } this.sectionStart = endOfText + 2; this.stateInClosingTagName(c); this.inRCDATA = false; return; } this.sequenceIndex = 0; } if ((c | 32) === this.currentSequence[this.sequenceIndex]) { this.sequenceIndex += 1; } else if (this.sequenceIndex === 0) { if (this.currentSequence === Sequences.TitleEnd || this.currentSequence === Sequences.TextareaEnd && !this.inSFCRoot) { if (!this.inVPre && c === this.delimiterOpen[0]) { this.state = 2; this.delimiterIndex = 0; this.stateInterpolationOpen(c); } } else if (this.fastForwardTo(60)) { this.sequenceIndex = 1; } } else { this.sequenceIndex = Number(c === 60); } } stateCDATASequence(c) { if (c === Sequences.Cdata[this.sequenceIndex]) { if (++this.sequenceIndex === Sequences.Cdata.length) { this.state = 28; this.currentSequence = Sequences.CdataEnd; this.sequenceIndex = 0; this.sectionStart = this.index + 1; } } else { this.sequenceIndex = 0; this.state = 23; this.stateInDeclaration(c); } } /** * When we wait for one specific character, we can speed things up * by skipping through the buffer until we find it. * * @returns Whether the character was found. */ fastForwardTo(c) { while (++this.index < this.buffer.length) { const cc = this.buffer.charCodeAt(this.index); if (cc === 10) { this.newlines.push(this.index); } if (cc === c) { return true; } } this.index = this.buffer.length - 1; return false; } /** * Comments and CDATA end with `-->` and `]]>`. * * Their common qualities are: * - Their end sequences have a distinct character they start with. * - That character is then repeated, so we have to check multiple repeats. * - All characters but the start character of the sequence can be skipped. */ stateInCommentLike(c) { if (c === this.currentSequence[this.sequenceIndex]) { if (++this.sequenceIndex === this.currentSequence.length) { if (this.currentSequence === Sequences.CdataEnd) { this.cbs.oncdata(this.sectionStart, this.index - 2); } else { this.cbs.oncomment(this.sectionStart, this.index - 2); } this.sequenceIndex = 0; this.sectionStart = this.index + 1; this.state = 1; } } else if (this.sequenceIndex === 0) { if (this.fastForwardTo(this.currentSequence[0])) { this.sequenceIndex = 1; } } else if (c !== this.currentSequence[this.sequenceIndex - 1]) { this.sequenceIndex = 0; } } startSpecial(sequence, offset) { this.enterRCDATA(sequence, offset); this.state = 31; } enterRCDATA(sequence, offset) { this.inRCDATA = true; this.currentSequence = sequence; this.sequenceIndex = offset; } stateBeforeTagName(c) { if (c === 33) { this.state = 22; this.sectionStart = this.index + 1; } else if (c === 63) { this.state = 24; this.sectionStart = this.index + 1; } else if (isTagStartChar(c)) { this.sectionStart = this.index; if (this.mode === 0) { this.state = 6; } else if (this.inSFCRoot) { this.state = 34; } else if (!this.inXML) { if (c === 116) { this.state = 30; } else { this.state = c === 115 ? 29 : 6; } } else { this.state = 6; } } else if (c === 47) { this.state = 8; } else { this.state = 1; this.stateText(c); } } stateInTagName(c) { if (isEndOfTagSection(c)) { this.handleTagName(c); } } stateInSFCRootTagName(c) { if (isEndOfTagSection(c)) { const tag = this.buffer.slice(this.sectionStart, this.index); if (tag !== "template") { this.enterRCDATA(toCharCodes(`</` + tag), 0); } this.handleTagName(c); } } handleTagName(c) { this.cbs.onopentagname(this.sectionStart, this.index); this.sectionStart = -1; this.state = 11; this.stateBeforeAttrName(c); } stateBeforeClosingTagName(c) { if (isWhitespace(c)) ; else if (c === 62) { { this.cbs.onerr(14, this.index); } this.state = 1; this.sectionStart = this.index + 1; } else { this.state = isTagStartChar(c) ? 9 : 27; this.sectionStart = this.index; } } stateInClosingTagName(c) { if (c === 62 || isWhitespace(c)) { this.cbs.onclosetag(this.sectionStart, this.index); this.sectionStart = -1; this.state = 10; this.stateAfterClosingTagName(c); } } stateAfterClosingTagName(c) { if (c === 62) { this.state = 1; this.sectionStart = this.index + 1; } } stateBeforeAttrName(c) { if (c === 62) { this.cbs.onopentagend(this.index); if (this.inRCDATA) { this.state = 32; } else { this.state = 1; } this.sectionStart = this.index + 1; } else if (c === 47) { this.state = 7; if (this.peek() !== 62) { this.cbs.onerr(22, this.index); } } else if (c === 60 && this.peek() === 47) { this.cbs.onopentagend(this.index); this.state = 5; this.sectionStart = this.index; } else if (!isWhitespace(c)) { if (c === 61) { this.cbs.onerr( 19, this.index ); } this.handleAttrStart(c); } } handleAttrStart(c) { if (c === 118 && this.peek() === 45) { this.state = 13; this.sectionStart = this.index; } else if (c === 46 || c === 58 || c === 64 || c === 35) { this.cbs.ondirname(this.index, this.index + 1); this.state = 14; this.sectionStart = this.index + 1; } else { this.state = 12; this.sectionStart = this.index; } } stateInSelfClosingTag(c) { if (c === 62) { this.cbs.onselfclosingtag(this.index); this.state = 1; this.sectionStart = this.index + 1; this.inRCDATA = false; } else if (!isWhitespace(c)) { this.state = 11; this.stateBeforeAttrName(c); } } stateInAttrName(c) { if (c === 61 || isEndOfTagSection(c)) { this.cbs.onattribname(this.sectionStart, this.index); this.handleAttrNameEnd(c); } else if (c === 34 || c === 39 || c === 60) { this.cbs.onerr( 17, this.index ); } } stateInDirName(c) { if (c === 61 || isEndOfTagSection(c)) { this.cbs.ondirname(this.sectionStart, this.index); this.handleAttrNameEnd(c); } else if (c === 58) { this.cbs.ondirname(this.sectionStart, this.index); this.state = 14; this.sectionStart = this.index + 1; } else if (c === 46) { this.cbs.ondirname(this.sectionStart, this.index); this.state = 16; this.sectionStart = this.index + 1; } } stateInDirArg(c) { if (c === 61 || isEndOfTagSection(c)) { this.cbs.ondirarg(this.sectionStart, this.index); this.handleAttrNameEnd(c); } else if (c === 91) { this.state = 15; } else if (c === 46) { this.cbs.ondirarg(this.sectionStart, this.index); this.state = 16; this.sectionStart = this.index + 1; } } stateInDynamicDirArg(c) { if (c === 93) { this.state = 14; } else if (c === 61 || isEndOfTagSection(c)) { this.cbs.ondirarg(this.sectionStart, this.index + 1); this.handleAttrNameEnd(c); { this.cbs.onerr( 27, this.index ); } } } stateInDirModifier(c) { if (c === 61 || isEndOfTagSection(c)) { this.cbs.ondirmodifier(this.sectionStart, this.index); this.handleAttrNameEnd(c); } else if (c === 46) { this.cbs.ondirmodifier(this.sectionStart, this.index); this.sectionStart = this.index + 1; } } handleAttrNameEnd(c) { this.sectionStart = this.index; this.state = 17; this.cbs.onattribnameend(this.index); this.stateAfterAttrName(c); } stateAfterAttrName(c) { if (c === 61) { this.state = 18; } else if (c === 47 || c === 62) { this.cbs.onattribend(0, this.sectionStart); this.sectionStart = -1; this.state = 11; this.stateBeforeAttrName(c); } else if (!isWhitespace(c)) { this.cbs.onattribend(0, this.sectionStart); this.handleAttrStart(c); } } stateBeforeAttrValue(c) { if (c === 34) { this.state = 19; this.sectionStart = this.index + 1; } else if (c === 39) { this.state = 20; this.sectionStart = this.index + 1; } else if (!isWhitespace(c)) { this.sectionStart = this.index; this.state = 21; this.stateInAttrValueNoQuotes(c); } } handleInAttrValue(c, quote) { if (c === quote || this.fastForwardTo(quote)) { this.cbs.onattribdata(this.sectionStart, this.index); this.sectionStart = -1; this.cbs.onattribend( quote === 34 ? 3 : 2, this.index + 1 ); this.state = 11; } } stateInAttrValueDoubleQuotes(c) { this.handleInAttrValue(c, 34); } stateInAttrValueSingleQuotes(c) { this.handleInAttrValue(c, 39); } stateInAttrValueNoQuotes(c) { if (isWhitespace(c) || c === 62) { this.cbs.onattribdata(this.sectionStart, this.index); this.sectionStart = -1; this.cbs.onattribend(1, this.index); this.state = 11; this.stateBeforeAttrName(c); } else if (c === 34 || c === 39 || c === 60 || c === 61 || c === 96) { this.cbs.onerr( 18, this.index ); } else ; } stateBeforeDeclaration(c) { if (c === 91) { this.state = 26; this.sequenceIndex = 0; } else { this.state = c === 45 ? 25 : 23; } } stateInDeclaration(c) { if (c === 62 || this.fastForwardTo(62)) { this.state = 1; this.sectionStart = this.index + 1; } } stateInProcessingInstruction(c) { if (c === 62 || this.fastForwardTo(62)) { this.cbs.onprocessinginstruction(this.sectionStart, this.index); this.state = 1; this.sectionStart = this.index + 1; } } stateBeforeComment(c) { if (c === 45) { this.state = 28; this.currentSequence = Sequences.CommentEnd; this.sequenceIndex = 2; this.sectionStart = this.index + 1; } else { this.state = 23; } } stateInSpecialComment(c) { if (c === 62 || this.fastForwardTo(62)) { this.cbs.oncomment(this.sectionStart, this.index); this.state = 1; this.sectionStart = this.index + 1; } } stateBeforeSpecialS(c) { if (c === Sequences.ScriptEnd[3]) { this.startSpecial(Sequences.ScriptEnd, 4); } else if (c === Sequences.StyleEnd[3]) { this.startSpecial(Sequences.StyleEnd, 4); } else { this.state = 6; this.stateInTagName(c); } } stateBeforeSpecialT(c) { if (c === Sequences.TitleEnd[3]) { this.startSpecial(Sequences.TitleEnd, 4); } else if (c === Sequences.TextareaEnd[3]) { this.startSpecial(Sequences.TextareaEnd, 4); } else { this.state = 6; this.stateInTagName(c); } } startEntity() { } stateInEntity() { } /** * Iterates through the buffer, calling the function corresponding to the current state. * * States that are more likely to be hit are higher up, as a performance improvement. */ parse(input) { this.buffer = input; while (this.index < this.buffer.length) { const c = this.buffer.charCodeAt(this.index); if (c === 10) { this.newlines.push(this.index); } switch (this.state) { case 1: { this.stateText(c); break; } case 2: { this.stateInterpolationOpen(c); break; } case 3: { this.stateInterpolation(c); break; } case 4: { this.stateInterpolationClose(c); break; } case 31: { this.stateSpecialStartSequence(c); break; } case 32: { this.stateInRCDATA(c); break; } case 26: { this.stateCDATASequence(c); break; } case 19: { this.stateInAttrValueDoubleQuotes(c); break; } case 12: { this.stateInAttrName(c); break; } case 13: { this.stateInDirName(c); break; } case 14: { this.stateInDirArg(c); break; } case 15: { this.stateInDynamicDirArg(c); break; } case 16: { this.stateInDirModifier(c); break; } case 28: { this.stateInCommentLike(c); break; } case 27: { this.stateInSpecialComment(c); break; } case 11: { this.stateBeforeAttrName(c); break; } case 6: { this.stateInTagName(c); break; } case 34: { this.stateInSFCRootTagName(c); break; } case 9: { this.stateInClosingTagName(c); break; } case 5: { this.stateBeforeTagName(c); break; } case 17: { this.stateAfterAttrName(c); break; } case 20: { this.stateInAttrValueSingleQuotes(c); break; } case 18: { this.stateBeforeAttrValue(c); break; } case 8: { this.stateBeforeClosingTagName(c); break; } case 10: { this.stateAfterClosingTagName(c); break; } case 29: { this.stateBeforeSpecialS(c); break; } case 30: { this.stateBeforeSpecialT(c); break; } case 21: { this.stateInAttrValueNoQuotes(c); break; } case 7: { this.stateInSelfClosingTag(c); break; } case 23: { this.stateInDeclaration(c); break; } case 22: { this.stateBeforeDeclaration(c); break; } case 25: { this.stateBeforeComment(c); break; } case 24: { this.stateInProcessingInstruction(c); break; } case 33: { this.stateInEntity(); break; } } this.index++; } this.cleanup(); this.finish(); } /** * Remove data that has already been consumed from the buffer. */ cleanup() { if (this.sectionStart !== this.index) { if (this.state === 1 || this.state === 32 && this.sequenceIndex === 0) { this.cbs.ontext(this.sectionStart, this.index); this.sectionStart = this.index; } else if (this.state === 19 || this.state === 20 || this.state === 21) { this.cbs.onattribdata(this.sectionStart, this.index); this.sectionStart = this.index; } } } finish() { this.handleTrailingData(); this.cbs.onend(); } /** Handle any trailing data. */ handleTrailingData() { const endIndex = this.buffer.length; if (this.sectionStart >= endIndex) { return; } if (this.state === 28) { if (this.currentSequence === Sequences.CdataEnd) { this.cbs.oncdata(this.sectionStart, endIndex); } else { this.cbs.oncomment(this.sectionStart, endIndex); } } else if (this.state === 6 || this.state === 11 || this.state === 18 || this.state === 17 || this.state === 12 || this.state === 13 || this.state === 14 || this.state === 15 || this.state === 16 || this.state === 20 || this.state === 19 || this.state === 21 || this.state === 9) ; else { this.cbs.ontext(this.sectionStart, endIndex); } } emitCodePoint(cp, consumed) { } } function defaultOnError(error) { throw error; } function defaultOnWarn(msg) { console.warn(`[Vue warn] ${msg.message}`); } function createCompilerError(code, loc, messages, additionalMessage) { const msg = (messages || errorMessages)[code] + (additionalMessage || ``) ; const error = new SyntaxError(String(msg)); error.code = code; error.loc = loc; return error; } const errorMessages = { // parse errors [0]: "Illegal comment.", [1]: "CDATA section is allowed only in XML context.", [2]: "Duplicate attribute.", [3]: "End tag cannot have attributes.", [4]: "Illegal '/' in tags.", [5]: "Unexpected EOF in tag.", [6]: "Unexpected EOF in CDATA section.", [7]: "Unexpected EOF in comment.", [8]: "Unexpected EOF in script.", [9]: "Unexpected EOF in tag.", [10]: "Incorrectly closed comment.", [11]: "Incorrectly opened comment.", [12]: "Illegal tag name. Use '&lt;' to print '<'.", [13]: "Attribute value was expected.", [14]: "End tag name was expected.", [15]: "Whitespace was expected.", [16]: "Unexpected '<!--' in comment.", [17]: `Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`, [18]: "Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).", [19]: "Attribute name cannot start with '='.", [21]: "'<?' is allowed only in XML context.", [20]: `Unexpected null character.`, [22]: "Illegal '/' in tags.", // Vue-specific parse errors [23]: "Invalid end tag.", [24]: "Element is missing end tag.", [25]: "Interpolation end sign was not found.", [27]: "End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.", [26]: "Legal directive name was expected.", // transform errors [28]: `v-if/v-else-if is missing expression.`, [29]: `v-if/else branches must use unique keys.`, [30]: `v-else/v-else-if has no adjacent v-if or v-else-if.`, [31]: `v-for is missing expression.`, [32]: `v-for has invalid expression.`, [33]: `<template v-for> key should be placed on the <template> tag.`, [34]: `v-bind is missing expression.`, [52]: `v-bind with same-name shorthand only allows static argument.`, [35]: `v-on is missing expression.`, [36]: `Unexpected custom directive on <slot> outlet.`, [37]: `Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.`, [38]: `Duplicate slot names found. `, [39]: `Extraneous children found when component already has explicitly named default slot. These children will be ignored.`, [40]: `v-slot can only be used on components or <template> tags.`, [41]: `v-model is missing expression.`, [42]: `v-model value must be a valid JavaScript member expression.`, [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`, [44]: `v-model cannot be used on a prop, because local prop bindings are not writable. Use a v-bind binding combined with a v-on listener that emits update:x event instead.`, [45]: `Error parsing JavaScript expression: `, [46]: `<KeepAlive> expects exactly one child component.`, [51]: `@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`, // generic errors [47]: `"prefixIdentifiers" option is not supported in this build of compiler.`, [48]: `ES module mode is not supported in this build of compiler.`, [49]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`, [50]: `"scopeId" option is only supported in module mode.`, // just to fulfill types [53]: `` }; const isStaticExp = (p) => p.type === 4 && p.isStatic; function isCoreComponent(tag) { switch (tag) { case "Teleport": case "teleport": return TELEPORT; case "Suspense": case "suspense": return SUSPENSE; case "KeepAlive": case "keep-alive": return KEEP_ALIVE; case "BaseTransition": case "base-transition": return BASE_TRANSITION; } } const nonIdentifierRE = /^\d|[^\$\w\xA0-\uFFFF]/; const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name); const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/; const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/; const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g; const getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source; const isMemberExpressionBrowser = (exp) => { const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim()); let state = 0 /* inMemberExp */; let stateStack = []; let currentOpenBracketCount = 0; let currentOpenParensCount = 0; let currentStringType = null; for (let i = 0; i < path.length; i++) { const char = path.charAt(i); switch (state) { case 0 /* inMemberExp */: if (char === "[") { stateStack.push(state); state = 1 /* inBrackets */; currentOpenBracketCount++; } else if (char === "(") { stateStack.push(state); state = 2 /* inParens */; currentOpenParensCount++; } else if (!(i === 0 ? validFirstIdentCharRE : validIdentCharRE).test(char)) { return false; } break; case 1 /* inBrackets */: if (char === `'` || char === `"` || char === "`") { stateStack.push(state); state = 3 /* inString */; currentStringType = char; } else if (char === `[`) { currentOpenBracketCount++; } else if (char === `]`) { if (!--currentOpenBracketCount) { state = stateStack.pop(); } } break; case 2 /* inParens */: if (char === `'` || char === `"` || char === "`") { stateStack.push(state); state = 3 /* inString */; currentStringType = char; } else if (char === `(`) { currentOpenParensCount++; } else if (char === `)`) { if (i === path.length - 1) { return false; } if (!--currentOpenParensCount) { state = stateStack.pop(); } } break; case 3 /* inString */: if (char === currentStringType) { state = stateStack.pop(); currentStringType = null; } break; } } return !currentOpenBracketCount && !currentOpenParensCount; }; const isMemberExpression = isMemberExpressionBrowser ; const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/; const isFnExpressionBrowser = (exp) => fnExpRE.test(getExpSource(exp)); const isFnExpression = isFnExpressionBrowser ; function assert(condition, msg) { if (!condition) { throw new Error(msg || `unexpected compiler condition`); } } function findDir(node, name, allowEmpty = false) { for (let i = 0; i < node.props.length; i++) { const p = node.props[i]; if (p.type === 7 && (allowEmpty || p.exp) && (isString(name) ? p.name === name : name.test(p.name))) { return p; } } } function findProp(node, name, dynamicOnly = false, allowEmpty = false) { for (let i = 0; i < node.props.length; i++) { const p = node.props[i]; if (p.type === 6) { if (dynamicOnly) continue; if (p.name === name && (p.value || allowEmpty)) { return p; } } else if (p.name === "bind" && (p.exp || allowEmpty) && isStaticArgOf(p.arg, name)) { return p; } } } function isStaticArgOf(arg, name) { return !!(arg && isStaticExp(arg) && arg.content === name); } function hasDynamicKeyVBind(node) { return node.props.some( (p) => p.type === 7 && p.name === "bind" && (!p.arg || // v-bind="obj" p.arg.type !== 4 || // v-bind:[_ctx.foo] !p.arg.isStatic) // v-bind:[foo] ); } function isText$1(node) { return node.type === 5 || node.type === 2; } function isVSlot(p) { return p.type === 7 && p.name === "slot"; } function isTemplateNode(node) { return node.type === 1 && node.tagType === 3; } function isSlotOutlet(node) { return node.type === 1 && node.tagType === 2; } const propsHelperSet = /* @__PURE__ */ new Set([NORMALIZE_PROPS, GUARD_REACTIVE_PROPS]); function getUnnormalizedProps(props, callPath = []) { if (props && !isString(props) && props.type === 14) { const callee = props.callee; if (!isString(callee) && propsHelperSet.has(callee)) { return getUnnormalizedProps( props.arguments[0], callPath.concat(props) ); } } return [props, callPath]; } function injectProp(node, prop, context) { let propsWithInjection; let props = node.type === 13 ? node.props : node.arguments[2]; let callPath = []; let parentCall; if (props && !isString(props) && props.type === 14) { const ret = getUnnormalizedProps(props); props = ret[0]; callPath = ret[1]; parentCall = callPath[callPath.length - 1]; } if (props == null || isString(props)) { propsWithInjection = createObjectExpression([prop]); } else if (props.type === 14) { const first = props.arguments[0]; if (!isString(first) && first.type === 15) { if (!hasProp(prop, first)) { first.properties.unshift(prop); } } else { if (props.callee === TO_HANDLERS) { propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [ createObjectExpression([prop]), props ]); } else { props.arguments.unshift(createObjectExpression([prop])); } } !propsWithInjection && (propsWithInjection = props); } else if (props.type === 15) { if (!hasProp(prop, props)) { props.properties.unshift(prop); } propsWithInjection = props; } else { propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [ createObjectExpression([prop]), props ]); if (parentCall && parentCall.callee === GUARD_REACTIVE_PROPS) { parentCall = callPath[callPath.length - 2]; } } if (node.type === 13) { if (parentCall) { parentCall.arguments[0] = propsWithInjection; } else { node.props = propsWithInjection; } } else { if (parentCall) { parentCall.arguments[0] = propsWithInjection; } else { node.arguments[2] = propsWithInjection; } } } function hasProp(prop, props) { let result = false; if (prop.key.type === 4) { const propKeyName = prop.key.content; result = props.properties.some( (p) => p.key.type === 4 && p.key.content === propKeyName ); } return result; } function toValidAssetId(name, type) { return `_${type}_${name.replace(/[^\w]/g, (searchValue, replaceValue) => { return searchValue === "-" ? "_" : name.charCodeAt(replaceValue).toString(); })}`; } function getMemoedVNodeCall(node) { if (node.type === 14 && node.callee === WITH_MEMO) { return node.arguments[1].returns; } else { return node; } } const forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/; const defaultParserOptions = { parseMode: "base", ns: 0, delimiters: [`{{`, `}}`], getNamespace: () => 0, isVoidTag: NO, isPreTag: NO, isIgnoreNewlineTag: NO, isCustomElement: NO, onError: defaultOnError, onWarn: defaultOnWarn, comments: true, prefixIdentifiers: false }; let currentOptions = defaultParserOptions; let currentRoot = null; let currentInput = ""; let currentOpenTag = null; let currentProp = null; let currentAttrValue = ""; let currentAttrStartIndex = -1; let currentAttrEndIndex = -1; let inPre = 0; let inVPre = false; let currentVPreBoundary = null; const stack = []; const tokenizer = new Tokenizer(stack, { onerr: emitError, ontext(start, end) { onText(getSlice(start, end), start, end); }, ontextentity(char, start, end) { onText(char, start, end); }, oninterpolation(start, end) { if (inVPre) { return onText(getSlice(start, end), start, end); } let innerStart = start + tokenizer.delimiterOpen.length; let innerEnd = end - tokenizer.delimiterClose.length; while (isWhitespace(currentInput.charCodeAt(innerStart))) { innerStart++; } while (isWhitespace(currentInput.charCodeAt(innerEnd - 1))) { innerEnd--; } let exp = getSlice(innerStart, innerEnd); if (exp.includes("&")) { { exp = currentOptions.decodeEntities(exp, false); } } addNode({ type: 5, content: createExp(exp, false, getLoc(innerStart, innerEnd)), loc: getLoc(start, end) }); }, onopentagname(start, end) { const name = getSlice(start, end); currentOpenTag = { type: 1, tag: name, ns: currentOptions.getNamespace(name, stack[0], currentOptions.ns), tagType: 0, // will be refined on tag close props: [], children: [], loc: getLoc(start - 1, end), codegenNode: void 0 }; }, onopentagend(end) { endOpenTag(end); }, onclosetag(start, end) { const name = getSlice(start, end); if (!currentOptions.isVoidTag(name)) { let found = false; for (let i = 0; i < stack.length; i++) { const e = stack[i]; if (e.tag.toLowerCase() === name.toLowerCase()) { found = true; if (i > 0) { emitError(24, stack[0].loc.start.offset); } for (let j = 0; j <= i; j++) { const el = stack.shift(); onCloseTag(el, end, j < i); } break; } } if (!found) { emitError(23, backTrack(start, 60)); } } }, onselfclosingtag(end) { const name = currentOpenTag.tag; currentOpenTag.isSelfClosing = true; endOpenTag(end); if (stack[0] && stack[0].tag === name) { onCloseTag(stack.shift(), end); } }, onattribname(start, end) { currentProp = { type: 6, name: getSlice(start, end), nameLoc: getLoc(start, end), value: void 0, loc: getLoc(start) }; }, ondirname(start, end) { const raw = getSlice(start, end); const name = raw === "." || raw === ":" ? "bind" : raw === "@" ? "on" : raw === "#" ? "slot" : raw.slice(2); if (!inVPre && name === "") { emitError(26, start); } if (inVPre || name === "") { currentProp = { type: 6, name: raw, nameLoc: getLoc(start, end), value: void 0, loc: getLoc(start) }; } else { currentProp = { type: 7, name, rawName: raw, exp: void 0, arg: void 0, modifiers: raw === "." ? [createSimpleExpression("prop")] : [], loc: getLoc(start) }; if (name === "pre") { inVPre = tokenizer.inVPre = true; currentVPreBoundary = currentOpenTag; const props = currentOpenTag.props; for (let i = 0; i < props.length; i++) { if (props[i].type === 7) { props[i] = dirToAttr(props[i]); } } } } }, ondirarg(start, end) { if (start === end) return; const arg = getSlice(start, end); if (inVPre) { currentProp.name += arg; setLocEnd(currentProp.nameLoc, end); } else { const isStatic = arg[0] !== `[`; currentProp.arg = createExp( isStatic ? arg : arg.slice(1, -1), isStatic, getLoc(start, end), isStatic ? 3 : 0 ); } }, ondirmodifier(start, end) { const mod = getSlice(start, end); if (inVPre) { currentProp.name += "." + mod; setLocEnd(currentProp.nameLoc, end); } else if (currentProp.name === "slot") { const arg = currentProp.arg; if (arg) { arg.content += "." + mod; setLocEnd(arg.loc, end); } } else { const exp = createSimpleExpression(mod, true, getLoc(start, end)); currentProp.modifiers.push(exp); } }, onattribdata(start, end) { currentAttrValue += getSlice(start, end); if (currentAttrStartIndex < 0) currentAttrStartIndex = start; currentAttrEndIndex = end; }, onattribentity(char, start, end) { currentAttrValue += char; if (currentAttrStartIndex < 0) currentAttrStartIndex = start; currentAttrEndIndex = end; }, onattribnameend(end) { const start = currentProp.loc.start.offset; const name = getSlice(start, end); if (currentProp.type === 7) { currentProp.rawName = name; } if (currentOpenTag.props.some( (p) => (p.type === 7 ? p.rawName : p.name) === name )) { emitError(2, start); } }, onattribend(quote, end) { if (currentOpenTag && currentProp) { setLocEnd(currentProp.loc, end); if (quote !== 0) { if (currentAttrValue.includes("&")) { currentAttrValue = currentOptions.decodeEntities( currentAttrValue, true ); } if (currentProp.type === 6) { if (currentProp.name === "class") { currentAttrValue = condense(currentAttrValue).trim(); } if (quote === 1 && !currentAttrValue) { emitError(13, end); } currentProp.value = { type: 2, content: currentAttrValue, loc: quote === 1 ? getLoc(currentAttrStartIndex, currentAttrEndIndex) : getLoc(currentAttrStartIndex - 1, currentAttrEndIndex + 1) }; if (tokenizer.inSFCRoot && currentOpenTag.tag === "template" && currentProp.name === "lang" && currentAttrValue && currentAttrValue !== "html") { tokenizer.enterRCDATA(toCharCodes(`</template`), 0); } } else { let expParseMode = 0 /* Normal */; currentProp.exp = createExp( currentAttrValue, false, getLoc(currentAttrStartIndex, currentAttrEndIndex), 0, expParseMode ); if (currentProp.name === "for") { currentProp.forParseResult = parseForExpression(currentProp.exp); } } } if (currentProp.type !== 7 || currentProp.name !== "pre") { currentOpenTag.props.push(currentProp); } } currentAttrValue = ""; currentAttrStartIndex = currentAttrEndIndex = -1; }, oncomment(start, end) { if (currentOptions.comments) { addNode({ type: 3, content: getSlice(start, end), loc: getLoc(start - 4, end + 3) }); } }, onend() { const end = currentInput.length; if (tokenizer.state !== 1) { switch (tokenizer.state) { case 5: case 8: emitError(5, end); break; case 3: case 4: emitError( 25, tokenizer.sectionStart ); break; case 28: if (tokenizer.currentSequence === Sequences.CdataEnd) { emitError(6, end); } else { emitError(7, end); } break; case 6: case 7: case 9: case 11: case 12: case 13: case 14: case 15: case 16: case 17: case 18: case 19: // " case 20: // ' case 21: emitError(9, end); break; } } for (let index = 0; index < stack.length; index++) { onCloseTag(stack[index], end - 1); emitError(24, stack[index].loc.start.offset); } }, oncdata(start, end) { if (stack[0].ns !== 0) { onText(getSlice(start, end), start, end); } else { emitError(1, start - 9); } }, onprocessinginstruction(start) { if ((stack[0] ? stack[0].ns : currentOptions.ns) === 0) { emitError( 21, start - 1 ); } } }); const forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/; const stripParensRE = /^\(|\)$/g; function parseForExpression(input) { const loc = input.loc; const exp = input.content; const inMatch = exp.match(forAliasRE); if (!inMatch) return; const [, LHS, RHS] = inMatch; const createAliasExpression = (content, offset, asParam = false) => { const start = loc.start.offset + offset; const end = start + content.length; return createExp( content, false, getLoc(start, end), 0, asParam ? 1 /* Params */ : 0 /* Normal */ ); }; const result = { source: createAliasExpression(RHS.trim(), exp.indexOf(RHS, LHS.length)), value: void 0, key: void 0, index: void 0, finalized: false }; let valueContent = LHS.trim().replace(stripParensRE, "").trim(); const trimmedOffset = LHS.indexOf(valueContent); const iteratorMatch = valueContent.match(forIteratorRE); if (iteratorMatch) { valueContent = valueContent.replace(forIteratorRE, "").trim(); const keyContent = iteratorMatch[1].trim(); let keyOffset; if (keyContent) { keyOffset = exp.indexOf(keyContent, trimmedOffset + valueContent.length); result.key = createAliasExpression(keyContent, keyOffset, true); } if (iteratorMatch[2]) { const indexContent = iteratorMatch[2].trim(); if (indexContent) { result.index = createAliasExpression( indexContent, exp.indexOf( indexContent, result.key ? keyOffset + keyContent.length : trimmedOffset + valueContent.length ), true ); } } } if (valueContent) { result.value = createAliasExpression(valueContent, trimmedOffset, true); } return result; } function getSlice(start, end) { return currentInput.slice(start, end); } function endOpenTag(end) { if (tokenizer.inSFCRoot) { currentOpenTag.innerLoc = getLoc(end + 1, end + 1); } addNode(currentOpenTag); const { tag, ns } = currentOpenTag; if (ns === 0 && currentOptions.isPreTag(tag)) { inPre++; } if (currentOptions.isVoidTag(tag)) { onCloseTag(currentOpenTag, end); } else { stack.unshift(currentOpenTag); if (ns === 1 || ns === 2) { tokenizer.inXML = true; } } currentOpenTag = null; } function onText(content, start, end) { { const tag = stack[0] && stack[0].tag; if (tag !== "script" && tag !== "style" && content.includes("&")) { content = currentOptions.decodeEntities(content, false); } } const parent = stack[0] || currentRoot; const lastNode = parent.children[parent.children.length - 1]; if (lastNode && lastNode.type === 2) { lastNode.content += content; setLocEnd(lastNode.loc, end); } else { parent.children.push({ type: 2, content, loc: getLoc(start, end) }); } } function onCloseTag(el, end, isImplied = false) { if (isImplied) { setLocEnd(el.loc, backTrack(end, 60)); } else { setLocEnd(el.loc, lookAhead(end, 62) + 1); } if (tokenizer.inSFCRoot) { if (el.children.length) { el.innerLoc.end = extend({}, el.children[el.children.length - 1].loc.end); } else { el.innerLoc.end = extend({}, el.innerLoc.start); } el.innerLoc.source = getSlice( el.innerLoc.start.offset, el.innerLoc.end.offset ); } const { tag, ns, children } = el; if (!inVPre) { if (tag === "slot") { el.tagType = 2; } else if (isFragmentTemplate(el)) { el.tagType = 3; } else if (isComponent(el)) { el.tagType = 1; } } if (!tokenizer.inRCDATA) { el.children = condenseWhitespace(children); } if (ns === 0 && currentOptions.isIgnoreNewlineTag(tag)) { const first = children[0]; if (first && first.type === 2) { first.content = first.content.replace(/^\r?\n/, ""); } } if (ns === 0 && currentOptions.isPreTag(tag)) { inPre--; } if (currentVPreBoundary === el) { inVPre = tokenizer.inVPre = false; currentVPreBoundary = null; } if (tokenizer.inXML && (stack[0] ? stack[0].ns : currentOptions.ns) === 0) { tokenizer.inXML = false; } } function lookAhead(index, c) { let i = index; while (currentInput.charCodeAt(i) !== c && i < currentInput.length - 1) i++; return i; } function backTrack(index, c) { let i = index; while (currentInput.charCodeAt(i) !== c && i >= 0) i--; return i; } const specialTemplateDir = /* @__PURE__ */ new Set(["if", "else", "else-if", "for", "slot"]); function isFragmentTemplate({ tag, props }) { if (tag === "template") { for (let i = 0; i < props.length; i++) { if (props[i].type === 7 && specialTemplateDir.has(props[i].name)) { return true; } } } return false; } function isComponent({ tag, props }) { if (currentOptions.isCustomElement(tag)) { return false; } if (tag === "component" || isUpperCase(tag.charCodeAt(0)) || isCoreComponent(tag) || currentOptions.isBuiltInComponent && currentOptions.isBuiltInComponent(tag) || currentOptions.isNativeTag && !currentOptions.isNativeTag(tag)) { return true; } for (let i = 0; i < props.length; i++) { const p = props[i]; if (p.type === 6) { if (p.name === "is" && p.value) { if (p.value.content.startsWith("vue:")) { return true; } } } } return false; } function isUpperCase(c) { return c > 64 && c < 91; } const windowsNewlineRE = /\r\n/g; function condenseWhitespace(nodes, tag) { const shouldCondense = currentOptions.whitespace !== "preserve"; let removedWhitespace = false; for (let i = 0; i < nodes.length; i++) { const node = nodes[i]; if (node.type === 2) { if (!inPre) { if (isAllWhitespace(node.content)) { const prev = nodes[i - 1] && nodes[i - 1].type; const next = nodes[i + 1] && nodes[i + 1].type; if (!prev || !next || shouldCondense && (prev === 3 && (next === 3 || next === 1) || prev === 1 && (next === 3 || next === 1 && hasNewlineChar(node.content)))) { removedWhitespace = true; nodes[i] = null; } else { node.content = " "; } } else if (shouldCondense) { node.content = condense(node.content); } } else { node.content = node.content.replace(windowsNewlineRE, "\n"); } } } return removedWhitespace ? nodes.filter(Boolean) : nodes; } function isAllWhitespace(str) { for (let i = 0; i < str.length; i++) { if (!isWhitespace(str.charCodeAt(i))) { return false; } } return true; } function hasNewlineChar(str) { for (let i = 0; i < str.length; i++) { const c = str.charCodeAt(i); if (c === 10 || c === 13) { return true; } } return false; } function condense(str) { let ret = ""; let prevCharIsWhitespace = false; for (let i = 0; i < str.length; i++) { if (isWhitespace(str.charCodeAt(i))) { if (!prevCharIsWhitespace) { ret += " "; prevCharIsWhitespace = true; } } else { ret += str[i]; prevCharIsWhitespace = false; } } return ret; } function addNode(node) { (stack[0] || currentRoot).children.push(node); } function getLoc(start, end) { return { start: tokenizer.getPos(start), // @ts-expect-error allow late attachment end: end == null ? end : tokenizer.getPos(end), // @ts-expect-error allow late attachment source: end == null ? end : getSlice(start, end) }; } function cloneLoc(loc) { return getLoc(loc.start.offset, loc.end.offset); } function setLocEnd(loc, end) { loc.end = tokenizer.getPos(end); loc.source = getSlice(loc.start.offset, end); } function dirToAttr(dir) { const attr = { type: 6, name: dir.rawName, nameLoc: getLoc( dir.loc.start.offset, dir.loc.start.offset + dir.rawName.length ), value: void 0, loc: dir.loc }; if (dir.exp) { const loc = dir.exp.loc; if (loc.end.offset < dir.loc.end.offset) { loc.start.offset--; loc.start.column--; loc.end.offset++; loc.end.column++; } attr.value = { type: 2, content: dir.exp.content, loc }; } return attr; } function createExp(content, isStatic = false, loc, constType = 0, parseMode = 0 /* Normal */) { const exp = createSimpleExpression(content, isStatic, loc, constType); return exp; } function emitError(code, index, message) { currentOptions.onError( createCompilerError(code, getLoc(index, index), void 0, message) ); } function reset() { tokenizer.reset(); currentOpenTag = null; currentProp = null; currentAttrValue = ""; currentAttrStartIndex = -1; currentAttrEndIndex = -1; stack.length = 0; } function baseParse(input, options) { reset(); currentInput = input; currentOptions = extend({}, defaultParserOptions); if (options) { let key; for (key in options) { if (options[key] != null) { currentOptions[key] = options[key]; } } } { if (!currentOptions.decodeEntities) { throw new Error( `[@vue/compiler-core] decodeEntities option is required in browser builds.` ); } } tokenizer.mode = currentOptions.parseMode === "html" ? 1 : currentOptions.parseMode === "sfc" ? 2 : 0; tokenizer.inXML = currentOptions.ns === 1 || currentOptions.ns === 2; const delimiters = options && options.delimiters; if (delimiters) { tokenizer.delimiterOpen = toCharCodes(delimiters[0]); tokenizer.delimiterClose = toCharCodes(delimiters[1]); } const root = currentRoot = createRoot([], input); tokenizer.parse(currentInput); root.loc = getLoc(0, input.length); root.children = condenseWhitespace(root.children); currentRoot = null; return root; } function cacheStatic(root, context) { walk( root, void 0, context, // Root node is unfortunately non-hoistable due to potential parent // fallthrough attributes. isSingleElementRoot(root, root.children[0]) ); } function isSingleElementRoot(root, child) { const { children } = root; return children.length === 1 && child.type === 1 && !isSlotOutlet(child); } function walk(node, parent, context, doNotHoistNode = false, inFor = false) { const { children } = node; const toCache = []; for (let i = 0; i < children.length; i++) { const child = children[i]; if (child.type === 1 && child.tagType === 0) { const constantType = doNotHoistNode ? 0 : getConstantType(child, context); if (constantType > 0) { if (constantType >= 2) { child.codegenNode.patchFlag = -1; toCache.push(child); continue; } } else { const codegenNode = child.codegenNode; if (codegenNode.type === 13) { const flag = codegenNode.patchFlag; if ((flag === void 0 || flag === 512 || flag === 1) && getGeneratedPropsConstantType(child, context) >= 2) { const props = getNodeProps(child); if (props) { codegenNode.props = context.hoist(props); } } if (codegenNode.dynamicProps) { codegenNode.dynamicProps = context.hoist(codegenNode.dynamicProps); } } } } else if (child.type === 12) { const constantType = doNotHoistNode ? 0 : getConstantType(child, context); if (constantType >= 2) { toCache.push(child); continue; } } if (child.type === 1) { const isComponent = child.tagType === 1; if (isComponent) { context.scopes.vSlot++; } walk(child, node, context, false, inFor); if (isComponent) { context.scopes.vSlot--; } } else if (child.type === 11) { walk(child, node, context, child.children.length === 1, true); } else if (child.type === 9) { for (let i2 = 0; i2 < child.branches.length; i2++) { walk( child.branches[i2], node, context, child.branches[i2].children.length === 1, inFor ); } } } let cachedAsArray = false; if (toCache.length === children.length && node.type === 1) { if (node.tagType === 0 && node.codegenNode && node.codegenNode.type === 13 && isArray(node.codegenNode.children)) { node.codegenNode.children = getCacheExpression( createArrayExpression(node.codegenNode.children) ); cachedAsArray = true; } else if (node.tagType === 1 && node.codegenNode && node.codegenNode.type === 13 && node.codegenNode.children && !isArray(node.codegenNode.children) && node.codegenNode.children.type === 15) { const slot = getSlotNode(node.codegenNode, "default"); if (slot) { slot.returns = getCacheExpression( createArrayExpression(slot.returns) ); cachedAsArray = true; } } else if (node.tagType === 3 && parent && parent.type === 1 && parent.tagType === 1 && parent.codegenNode && parent.codegenNode.type === 13 && parent.codegenNode.children && !isArray(parent.codegenNode.children) && parent.codegenNode.children.type === 15) { const slotName = findDir(node, "slot", true); const slot = slotName && slotName.arg && getSlotNode(parent.codegenNode, slotName.arg); if (slot) { slot.returns = getCacheExpression( createArrayExpression(slot.returns) ); cachedAsArray = true; } } } if (!cachedAsArray) { for (const child of toCache) { child.codegenNode = context.cache(child.codegenNode); } } function getCacheExpression(value) { const exp = context.cache(value); if (inFor && context.hmr) { exp.needArraySpread = true; } return exp; } function getSlotNode(node2, name) { if (node2.children && !isArray(node2.children) && node2.children.type === 15) { const slot = node2.children.properties.find( (p) => p.key === name || p.key.content === name ); return slot && slot.value; } } if (toCache.length && context.transformHoist) { context.transformHoist(children, context, node); } } function getConstantType(node, context) { const { constantCache } = context; switch (node.type) { case 1: if (node.tagType !== 0) { return 0; } const cached = constantCache.get(node); if (cached !== void 0) { return cached; } const codegenNode = node.codegenNode; if (codegenNode.type !== 13) { return 0; } if (codegenNode.isBlock && node.tag !== "svg" && node.tag !== "foreignObject" && node.tag !== "math") { return 0; } if (codegenNode.patchFlag === void 0) { let returnType2 = 3; const generatedPropsType = getGeneratedPropsConstantType(node, context); if (generatedPropsType === 0) { constantCache.set(node, 0); return 0; } if (generatedPropsType < returnType2) { returnType2 = generatedPropsType; } for (let i = 0; i < node.children.length; i++) { const childType = getConstantType(node.children[i], context); if (childType === 0) { constantCache.set(node, 0); return 0; } if (childType < returnType2) { returnType2 = childType; } } if (returnType2 > 1) { for (let i = 0; i < node.props.length; i++) { const p = node.props[i]; if (p.type === 7 && p.name === "bind" && p.exp) { const expType = getConstantType(p.exp, context); if (expType === 0) { constantCache.set(node, 0); return 0; } if (expType < returnType2) { returnType2 = expType; } } } } if (codegenNode.isBlock) { for (let i = 0; i < node.props.length; i++) { const p = node.props[i]; if (p.type === 7) { constantCache.set(node, 0); return 0; } } context.removeHelper(OPEN_BLOCK); context.removeHelper( getVNodeBlockHelper(context.inSSR, codegenNode.isComponent) ); codegenNode.isBlock = false; context.helper(getVNodeHelper(context.inSSR, codegenNode.isComponent)); } constantCache.set(node, returnType2); return returnType2; } else { constantCache.set(node, 0); return 0; } case 2: case 3: return 3; case 9: case 11: case 10: return 0; case 5: case 12: return getConstantType(node.content, context); case 4: return node.constType; case 8: let returnType = 3; for (let i = 0; i < node.children.length; i++) { const child = node.children[i]; if (isString(child) || isSymbol(child)) { continue; } const childType = getConstantType(child, context); if (childType === 0) { return 0; } else if (childType < returnType) { returnType = childType; } } return returnType; case 20: return 2; default: return 0; } } const allowHoistedHelperSet = /* @__PURE__ */ new Set([ NORMALIZE_CLASS, NORMALIZE_STYLE, NORMALIZE_PROPS, GUARD_REACTIVE_PROPS ]); function getConstantTypeOfHelperCall(value, context) { if (value.type === 14 && !isString(value.callee) && allowHoistedHelperSet.has(value.callee)) { const arg = value.arguments[0]; if (arg.type === 4) { return getConstantType(arg, context); } else if (arg.type === 14) { return getConstantTypeOfHelperCall(arg, context); } } return 0; } function getGeneratedPropsConstantType(node, context) { let returnType = 3; const props = getNodeProps(node); if (props && props.type === 15) { const { properties } = props; for (let i = 0; i < properties.length; i++) { const { key, value } = properties[i]; const keyType = getConstantType(key, context); if (keyType === 0) { return keyType; } if (keyType < returnType) { returnType = keyType; } let valueType; if (value.type === 4) { valueType = getConstantType(value, context); } else if (value.type === 14) { valueType = getConstantTypeOfHelperCall(value, context); } else { valueType = 0; } if (valueType === 0) { return valueType; } if (valueType < returnType) { returnType = valueType; } } } return returnType; } function getNodeProps(node) { const codegenNode = node.codegenNode; if (codegenNode.type === 13) { return codegenNode.props; } } function createTransformContext(root, { filename = "", prefixIdentifiers = false, hoistStatic = false, hmr = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = NOOP, isCustomElement = NOOP, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, inSSR = false, ssrCssVars = ``, bindingMetadata = EMPTY_OBJ, inline = false, isTS = false, onError = defaultOnError, onWarn = defaultOnWarn, compatConfig }) { const nameMatch = filename.replace(/\?.*$/, "").match(/([^/\\]+)\.\w+$/); const context = { // options filename, selfName: nameMatch && capitalize(camelize(nameMatch[1])), prefixIdentifiers, hoistStatic, hmr, cacheHandlers, nodeTransforms, directiveTransforms, transformHoist, isBuiltInComponent, isCustomElement, expressionPlugins, scopeId, slotted, ssr, inSSR, ssrCssVars, bindingMetadata, inline, isTS, onError, onWarn, compatConfig, // state root, helpers: /* @__PURE__ */ new Map(), components: /* @__PURE__ */ new Set(), directives: /* @__PURE__ */ new Set(), hoists: [], imports: [], cached: [], constantCache: /* @__PURE__ */ new WeakMap(), temps: 0, identifiers: /* @__PURE__ */ Object.create(null), scopes: { vFor: 0, vSlot: 0, vPre: 0, vOnce: 0 }, parent: null, grandParent: null, currentNode: root, childIndex: 0, inVOnce: false, // methods helper(name) { const count = context.helpers.get(name) || 0; context.helpers.set(name, count + 1); return name; }, removeHelper(name) { const count = context.helpers.get(name); if (count) { const currentCount = count - 1; if (!currentCount) { context.helpers.delete(name); } else { context.helpers.set(name, currentCount); } } }, helperString(name) { return `_${helperNameMap[context.helper(name)]}`; }, replaceNode(node) { { if (!context.currentNode) { throw new Error(`Node being replaced is already removed.`); } if (!context.parent) { throw new Error(`Cannot replace root node.`); } } context.parent.children[context.childIndex] = context.currentNode = node; }, removeNode(node) { if (!context.parent) { throw new Error(`Cannot remove root node.`); } const list = context.parent.children; const removalIndex = node ? list.indexOf(node) : context.currentNode ? context.childIndex : -1; if (removalIndex < 0) { throw new Error(`node being removed is not a child of current parent`); } if (!node || node === context.currentNode) { context.currentNode = null; context.onNodeRemoved(); } else { if (context.childIndex > removalIndex) { context.childIndex--; context.onNodeRemoved(); } } context.parent.children.splice(removalIndex, 1); }, onNodeRemoved: NOOP, addIdentifiers(exp) { }, removeIdentifiers(exp) { }, hoist(exp) { if (isString(exp)) exp = createSimpleExpression(exp); context.hoists.push(exp); const identifier = createSimpleExpression( `_hoisted_${context.hoists.length}`, false, exp.loc, 2 ); identifier.hoisted = exp; return identifier; }, cache(exp, isVNode = false, inVOnce = false) { const cacheExp = createCacheExpression( context.cached.length, exp, isVNode, inVOnce ); context.cached.push(cacheExp); return cacheExp; } }; return context; } function transform(root, options) { const context = createTransformContext(root, options); traverseNode(root, context); if (options.hoistStatic) { cacheStatic(root, context); } if (!options.ssr) { createRootCodegen(root, context); } root.helpers = /* @__PURE__ */ new Set([...context.helpers.keys()]); root.components = [...context.components]; root.directives = [...context.directives]; root.imports = context.imports; root.hoists = context.hoists; root.temps = context.temps; root.cached = context.cached; root.transformed = true; } function createRootCodegen(root, context) { const { helper } = context; const { children } = root; if (children.length === 1) { const child = children[0]; if (isSingleElementRoot(root, child) && child.codegenNode) { const codegenNode = child.codegenNode; if (codegenNode.type === 13) { convertToBlock(codegenNode, context); } root.codegenNode = codegenNode; } else { root.codegenNode = child; } } else if (children.length > 1) { let patchFlag = 64; if (children.filter((c) => c.type !== 3).length === 1) { patchFlag |= 2048; } root.codegenNode = createVNodeCall( context, helper(FRAGMENT), void 0, root.children, patchFlag, void 0, void 0, true, void 0, false ); } else ; } function traverseChildren(parent, context) { let i = 0; const nodeRemoved = () => { i--; }; for (; i < parent.children.length; i++) { const child = parent.children[i]; if (isString(child)) continue; context.grandParent = context.parent; context.parent = parent; context.childIndex = i; context.onNodeRemoved = nodeRemoved; traverseNode(child, context); } } function traverseNode(node, context) { context.currentNode = node; const { nodeTransforms } = context; const exitFns = []; for (let i2 = 0; i2 < nodeTransforms.length; i2++) { const onExit = nodeTransforms[i2](node, context); if (onExit) { if (isArray(onExit)) { exitFns.push(...onExit); } else { exitFns.push(onExit); } } if (!context.currentNode) { return; } else { node = context.currentNode; } } switch (node.type) { case 3: if (!context.ssr) { context.helper(CREATE_COMMENT); } break; case 5: if (!context.ssr) { context.helper(TO_DISPLAY_STRING); } break; // for container types, further traverse downwards case 9: for (let i2 = 0; i2 < node.branches.length; i2++) { traverseNode(node.branches[i2], context); } break; case 10: case 11: case 1: case 0: traverseChildren(node, context); break; } context.currentNode = node; let i = exitFns.length; while (i--) { exitFns[i](); } } function createStructuralDirectiveTransform(name, fn) { const matches = isString(name) ? (n) => n === name : (n) => name.test(n); return (node, context) => { if (node.type === 1) { const { props } = node; if (node.tagType === 3 && props.some(isVSlot)) { return; } const exitFns = []; for (let i = 0; i < props.length; i++) { const prop = props[i]; if (prop.type === 7 && matches(prop.name)) { props.splice(i, 1); i--; const onExit = fn(node, prop, context); if (onExit) exitFns.push(onExit); } } return exitFns; } }; } const PURE_ANNOTATION = `/*@__PURE__*/`; const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`; function createCodegenContext(ast, { mode = "function", prefixIdentifiers = mode === "module", sourceMap = false, filename = `template.vue.html`, scopeId = null, optimizeImports = false, runtimeGlobalName = `Vue`, runtimeModuleName = `vue`, ssrRuntimeModuleName = "vue/server-renderer", ssr = false, isTS = false, inSSR = false }) { const context = { mode, prefixIdentifiers, sourceMap, filename, scopeId, optimizeImports, runtimeGlobalName, runtimeModuleName, ssrRuntimeModuleName, ssr, isTS, inSSR, source: ast.source, code: ``, column: 1, line: 1, offset: 0, indentLevel: 0, pure: false, map: void 0, helper(key) { return `_${helperNameMap[key]}`; }, push(code, newlineIndex = -2 /* None */, node) { context.code += code; }, indent() { newline(++context.indentLevel); }, deindent(withoutNewLine = false) { if (withoutNewLine) { --context.indentLevel; } else { newline(--context.indentLevel); } }, newline() { newline(context.indentLevel); } }; function newline(n) { context.push("\n" + ` `.repeat(n), 0 /* Start */); } return context; } function generate(ast, options = {}) { const context = createCodegenContext(ast, options); if (options.onContextCreated) options.onContextCreated(context); const { mode, push, prefixIdentifiers, indent, deindent, newline, scopeId, ssr } = context; const helpers = Array.from(ast.helpers); const hasHelpers = helpers.length > 0; const useWithBlock = !prefixIdentifiers && mode !== "module"; const preambleContext = context; { genFunctionPreamble(ast, preambleContext); } const functionName = ssr ? `ssrRender` : `render`; const args = ssr ? ["_ctx", "_push", "_parent", "_attrs"] : ["_ctx", "_cache"]; const signature = args.join(", "); { push(`function ${functionName}(${signature}) {`); } indent(); if (useWithBlock) { push(`with (_ctx) {`); indent(); if (hasHelpers) { push( `const { ${helpers.map(aliasHelper).join(", ")} } = _Vue `, -1 /* End */ ); newline(); } } if (ast.components.length) { genAssets(ast.components, "component", context); if (ast.directives.length || ast.temps > 0) { newline(); } } if (ast.directives.length) { genAssets(ast.directives, "directive", context); if (ast.temps > 0) { newline(); } } if (ast.temps > 0) { push(`let `); for (let i = 0; i < ast.temps; i++) { push(`${i > 0 ? `, ` : ``}_temp${i}`); } } if (ast.components.length || ast.directives.length || ast.temps) { push(` `, 0 /* Start */); newline(); } if (!ssr) { push(`return `); } if (ast.codegenNode) { genNode(ast.codegenNode, context); } else { push(`null`); } if (useWithBlock) { deindent(); push(`}`); } deindent(); push(`}`); return { ast, code: context.code, preamble: ``, map: context.map ? context.map.toJSON() : void 0 }; } function genFunctionPreamble(ast, context) { const { ssr, prefixIdentifiers, push, newline, runtimeModuleName, runtimeGlobalName, ssrRuntimeModuleName } = context; const VueBinding = runtimeGlobalName; const helpers = Array.from(ast.helpers); if (helpers.length > 0) { { push(`const _Vue = ${VueBinding} `, -1 /* End */); if (ast.hoists.length) { const staticHelpers = [ CREATE_VNODE, CREATE_ELEMENT_VNODE, CREATE_COMMENT, CREATE_TEXT, CREATE_STATIC ].filter((helper) => helpers.includes(helper)).map(aliasHelper).join(", "); push(`const { ${staticHelpers} } = _Vue `, -1 /* End */); } } } genHoists(ast.hoists, context); newline(); push(`return `); } function genAssets(assets, type, { helper, push, newline, isTS }) { const resolver = helper( type === "component" ? RESOLVE_COMPONENT : RESOLVE_DIRECTIVE ); for (let i = 0; i < assets.length; i++) { let id = assets[i]; const maybeSelfReference = id.endsWith("__self"); if (maybeSelfReference) { id = id.slice(0, -6); } push( `const ${toValidAssetId(id, type)} = ${resolver}(${JSON.stringify(id)}${maybeSelfReference ? `, true` : ``})${isTS ? `!` : ``}` ); if (i < assets.length - 1) { newline(); } } } function genHoists(hoists, context) { if (!hoists.length) { return; } context.pure = true; const { push, newline } = context; newline(); for (let i = 0; i < hoists.length; i++) { const exp = hoists[i]; if (exp) { push(`const _hoisted_${i + 1} = `); genNode(exp, context); newline(); } } context.pure = false; } function isText(n) { return isString(n) || n.type === 4 || n.type === 2 || n.type === 5 || n.type === 8; } function genNodeListAsArray(nodes, context) { const multilines = nodes.length > 3 || nodes.some((n) => isArray(n) || !isText(n)); context.push(`[`); multilines && context.indent(); genNodeList(nodes, context, multilines); multilines && context.deindent(); context.push(`]`); } function genNodeList(nodes, context, multilines = false, comma = true) { const { push, newline } = context; for (let i = 0; i < nodes.length; i++) { const node = nodes[i]; if (isString(node)) { push(node, -3 /* Unknown */); } else if (isArray(node)) { genNodeListAsArray(node, context); } else { genNode(node, context); } if (i < nodes.length - 1) { if (multilines) { comma && push(","); newline(); } else { comma && push(", "); } } } } function genNode(node, context) { if (isString(node)) { context.push(node, -3 /* Unknown */); return; } if (isSymbol(node)) { context.push(context.helper(node)); return; } switch (node.type) { case 1: case 9: case 11: assert( node.codegenNode != null, `Codegen node is missing for element/if/for node. Apply appropriate transforms first.` ); genNode(node.codegenNode, context); break; case 2: genText(node, context); break; case 4: genExpression(node, context); break; case 5: genInterpolation(node, context); break; case 12: genNode(node.codegenNode, context); break; case 8: genCompoundExpression(node, context); break; case 3: genComment(node, context); break; case 13: genVNodeCall(node, context); break; case 14: genCallExpression(node, context); break; case 15: genObjectExpression(node, context); break; case 17: genArrayExpression(node, context); break; case 18: genFunctionExpression(node, context); break; case 19: genConditionalExpression(node, context); break; case 20: genCacheExpression(node, context); break; case 21: genNodeList(node.body, context, true, false); break; // SSR only types case 22: break; case 23: break; case 24: break; case 25: break; case 26: break; /* v8 ignore start */ case 10: break; default: { assert(false, `unhandled codegen node type: ${node.type}`); const exhaustiveCheck = node; return exhaustiveCheck; } } } function genText(node, context) { context.push(JSON.stringify(node.content), -3 /* Unknown */, node); } function genExpression(node, context) { const { content, isStatic } = node; context.push( isStatic ? JSON.stringify(content) : content, -3 /* Unknown */, node ); } function genInterpolation(node, context) { const { push, helper, pure } = context; if (pure) push(PURE_ANNOTATION); push(`${helper(TO_DISPLAY_STRING)}(`); genNode(node.content, context); push(`)`); } function genCompoundExpression(node, context) { for (let i = 0; i < node.children.length; i++) { const child = node.children[i]; if (isString(child)) { context.push(child, -3 /* Unknown */); } else { genNode(child, context); } } } function genExpressionAsPropertyKey(node, context) { const { push } = context; if (node.type === 8) { push(`[`); genCompoundExpression(node, context); push(`]`); } else if (node.isStatic) { const text = isSimpleIdentifier(node.content) ? node.content : JSON.stringify(node.content); push(text, -2 /* None */, node); } else { push(`[${node.content}]`, -3 /* Unknown */, node); } } function genComment(node, context) { const { push, helper, pure } = context; if (pure) { push(PURE_ANNOTATION); } push( `${helper(CREATE_COMMENT)}(${JSON.stringify(node.content)})`, -3 /* Unknown */, node ); } function genVNodeCall(node, context) { const { push, helper, pure } = context; const { tag, props, children, patchFlag, dynamicProps, directives, isBlock, disableTracking, isComponent } = node; let patchFlagString; if (patchFlag) { { if (patchFlag < 0) { patchFlagString = patchFlag + ` /* ${PatchFlagNames[patchFlag]} */`; } else { const flagNames = Object.keys(PatchFlagNames).map(Number).filter((n) => n > 0 && patchFlag & n).map((n) => PatchFlagNames[n]).join(`, `); patchFlagString = patchFlag + ` /* ${flagNames} */`; } } } if (directives) { push(helper(WITH_DIRECTIVES) + `(`); } if (isBlock) { push(`(${helper(OPEN_BLOCK)}(${disableTracking ? `true` : ``}), `); } if (pure) { push(PURE_ANNOTATION); } const callHelper = isBlock ? getVNodeBlockHelper(context.inSSR, isComponent) : getVNodeHelper(context.inSSR, isComponent); push(helper(callHelper) + `(`, -2 /* None */, node); genNodeList( genNullableArgs([tag, props, children, patchFlagString, dynamicProps]), context ); push(`)`); if (isBlock) { push(`)`); } if (directives) { push(`, `); genNode(directives, context); push(`)`); } } function genNullableArgs(args) { let i = args.length; while (i--) { if (args[i] != null) break; } return args.slice(0, i + 1).map((arg) => arg || `null`); } function genCallExpression(node, context) { const { push, helper, pure } = context; const callee = isString(node.callee) ? node.callee : helper(node.callee); if (pure) { push(PURE_ANNOTATION); } push(callee + `(`, -2 /* None */, node); genNodeList(node.arguments, context); push(`)`); } function genObjectExpression(node, context) { const { push, indent, deindent, newline } = context; const { properties } = node; if (!properties.length) { push(`{}`, -2 /* None */, node); return; } const multilines = properties.length > 1 || properties.some((p) => p.value.type !== 4); push(multilines ? `{` : `{ `); multilines && indent(); for (let i = 0; i < properties.length; i++) { const { key, value } = properties[i]; genExpressionAsPropertyKey(key, context); push(`: `); genNode(value, context); if (i < properties.length - 1) { push(`,`); newline(); } } multilines && deindent(); push(multilines ? `}` : ` }`); } function genArrayExpression(node, context) { genNodeListAsArray(node.elements, context); } function genFunctionExpression(node, context) { const { push, indent, deindent } = context; const { params, returns, body, newline, isSlot } = node; if (isSlot) { push(`_${helperNameMap[WITH_CTX]}(`); } push(`(`, -2 /* None */, node); if (isArray(params)) { genNodeList(params, context); } else if (params) { genNode(params, context); } push(`) => `); if (newline || body) { push(`{`); indent(); } if (returns) { if (newline) { push(`return `); } if (isArray(returns)) { genNodeListAsArray(returns, context); } else { genNode(returns, context); } } else if (body) { genNode(body, context); } if (newline || body) { deindent(); push(`}`); } if (isSlot) { push(`)`); } } function genConditionalExpression(node, context) { const { test, consequent, alternate, newline: needNewline } = node; const { push, indent, deindent, newline } = context; if (test.type === 4) { const needsParens = !isSimpleIdentifier(test.content); needsParens && push(`(`); genExpression(test, context); needsParens && push(`)`); } else { push(`(`); genNode(test, context); push(`)`); } needNewline && indent(); context.indentLevel++; needNewline || push(` `); push(`? `); genNode(consequent, context); context.indentLevel--; needNewline && newline(); needNewline || push(` `); push(`: `); const isNested = alternate.type === 19; if (!isNested) { context.indentLevel++; } genNode(alternate, context); if (!isNested) { context.indentLevel--; } needNewline && deindent( true /* without newline */ ); } function genCacheExpression(node, context) { const { push, helper, indent, deindent, newline } = context; const { needPauseTracking, needArraySpread } = node; if (needArraySpread) { push(`[...(`); } push(`_cache[${node.index}] || (`); if (needPauseTracking) { indent(); push(`${helper(SET_BLOCK_TRACKING)}(-1`); if (node.inVOnce) push(`, true`); push(`),`); newline(); push(`(`); } push(`_cache[${node.index}] = `); genNode(node.value, context); if (needPauseTracking) { push(`).cacheIndex = ${node.index},`); newline(); push(`${helper(SET_BLOCK_TRACKING)}(1),`); newline(); push(`_cache[${node.index}]`); deindent(); } push(`)`); if (needArraySpread) { push(`)]`); } } const prohibitedKeywordRE = new RegExp( "\\b" + "arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b") + "\\b" ); const stripStringRE = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g; function validateBrowserExpression(node, context, asParams = false, asRawStatements = false) { const exp = node.content; if (!exp.trim()) { return; } try { new Function( asRawStatements ? ` ${exp} ` : `return ${asParams ? `(${exp}) => {}` : `(${exp})`}` ); } catch (e) { let message = e.message; const keywordMatch = exp.replace(stripStringRE, "").match(prohibitedKeywordRE); if (keywordMatch) { message = `avoid using JavaScript keyword as property name: "${keywordMatch[0]}"`; } context.onError( createCompilerError( 45, node.loc, void 0, message ) ); } } const transformExpression = (node, context) => { if (node.type === 5) { node.content = processExpression( node.content, context ); } else if (node.type === 1) { const memo = findDir(node, "memo"); for (let i = 0; i < node.props.length; i++) { const dir = node.props[i]; if (dir.type === 7 && dir.name !== "for") { const exp = dir.exp; const arg = dir.arg; if (exp && exp.type === 4 && !(dir.name === "on" && arg) && // key has been processed in transformFor(vMemo + vFor) !(memo && arg && arg.type === 4 && arg.content === "key")) { dir.exp = processExpression( exp, context, // slot args must be processed as function params dir.name === "slot" ); } if (arg && arg.type === 4 && !arg.isStatic) { dir.arg = processExpression(arg, context); } } } } }; function processExpression(node, context, asParams = false, asRawStatements = false, localVars = Object.create(context.identifiers)) { { { validateBrowserExpression(node, context, asParams, asRawStatements); } return node; } } const transformIf = createStructuralDirectiveTransform( /^(if|else|else-if)$/, (node, dir, context) => { return processIf(node, dir, context, (ifNode, branch, isRoot) => { const siblings = context.parent.children; let i = siblings.indexOf(ifNode); let key = 0; while (i-- >= 0) { const sibling = siblings[i]; if (sibling && sibling.type === 9) { key += sibling.branches.length; } } return () => { if (isRoot) { ifNode.codegenNode = createCodegenNodeForBranch( branch, key, context ); } else { const parentCondition = getParentCondition(ifNode.codegenNode); parentCondition.alternate = createCodegenNodeForBranch( branch, key + ifNode.branches.length - 1, context ); } }; }); } ); function processIf(node, dir, context, processCodegen) { if (dir.name !== "else" && (!dir.exp || !dir.exp.content.trim())) { const loc = dir.exp ? dir.exp.loc : node.loc; context.onError( createCompilerError(28, dir.loc) ); dir.exp = createSimpleExpression(`true`, false, loc); } if (dir.exp) { validateBrowserExpression(dir.exp, context); } if (dir.name === "if") { const branch = createIfBranch(node, dir); const ifNode = { type: 9, loc: cloneLoc(node.loc), branches: [branch] }; context.replaceNode(ifNode); if (processCodegen) { return processCodegen(ifNode, branch, true); } } else { const siblings = context.parent.children; const comments = []; let i = siblings.indexOf(node); while (i-- >= -1) { const sibling = siblings[i]; if (sibling && sibling.type === 3) { context.removeNode(sibling); comments.unshift(sibling); continue; } if (sibling && sibling.type === 2 && !sibling.content.trim().length) { context.removeNode(sibling); continue; } if (sibling && sibling.type === 9) { if (dir.name === "else-if" && sibling.branches[sibling.branches.length - 1].condition === void 0) { context.onError( createCompilerError(30, node.loc) ); } context.removeNode(); const branch = createIfBranch(node, dir); if (comments.length && // #3619 ignore comments if the v-if is direct child of <transition> !(context.parent && context.parent.type === 1 && (context.parent.tag === "transition" || context.parent.tag === "Transition"))) { branch.children = [...comments, ...branch.children]; } { const key = branch.userKey; if (key) { sibling.branches.forEach(({ userKey }) => { if (isSameKey(userKey, key)) { context.onError( createCompilerError( 29, branch.userKey.loc ) ); } }); } } sibling.branches.push(branch); const onExit = processCodegen && processCodegen(sibling, branch, false); traverseNode(branch, context); if (onExit) onExit(); context.currentNode = null; } else { context.onError( createCompilerError(30, node.loc) ); } break; } } } function createIfBranch(node, dir) { const isTemplateIf = node.tagType === 3; return { type: 10, loc: node.loc, condition: dir.name === "else" ? void 0 : dir.exp, children: isTemplateIf && !findDir(node, "for") ? node.children : [node], userKey: findProp(node, `key`), isTemplateIf }; } function createCodegenNodeForBranch(branch, keyIndex, context) { if (branch.condition) { return createConditionalExpression( branch.condition, createChildrenCodegenNode(branch, keyIndex, context), // make sure to pass in asBlock: true so that the comment node call // closes the current block. createCallExpression(context.helper(CREATE_COMMENT), [ '"v-if"' , "true" ]) ); } else { return createChildrenCodegenNode(branch, keyIndex, context); } } function createChildrenCodegenNode(branch, keyIndex, context) { const { helper } = context; const keyProperty = createObjectProperty( `key`, createSimpleExpression( `${keyIndex}`, false, locStub, 2 ) ); const { children } = branch; const firstChild = children[0]; const needFragmentWrapper = children.length !== 1 || firstChild.type !== 1; if (needFragmentWrapper) { if (children.length === 1 && firstChild.type === 11) { const vnodeCall = firstChild.codegenNode; injectProp(vnodeCall, keyProperty, context); return vnodeCall; } else { let patchFlag = 64; if (!branch.isTemplateIf && children.filter((c) => c.type !== 3).length === 1) { patchFlag |= 2048; } return createVNodeCall( context, helper(FRAGMENT), createObjectExpression([keyProperty]), children, patchFlag, void 0, void 0, true, false, false, branch.loc ); } } else { const ret = firstChild.codegenNode; const vnodeCall = getMemoedVNodeCall(ret); if (vnodeCall.type === 13) { convertToBlock(vnodeCall, context); } injectProp(vnodeCall, keyProperty, context); return ret; } } function isSameKey(a, b) { if (!a || a.type !== b.type) { return false; } if (a.type === 6) { if (a.value.content !== b.value.content) { return false; } } else { const exp = a.exp; const branchExp = b.exp; if (exp.type !== branchExp.type) { return false; } if (exp.type !== 4 || exp.isStatic !== branchExp.isStatic || exp.content !== branchExp.content) { return false; } } return true; } function getParentCondition(node) { while (true) { if (node.type === 19) { if (node.alternate.type === 19) { node = node.alternate; } else { return node; } } else if (node.type === 20) { node = node.value; } } } const transformBind = (dir, _node, context) => { const { modifiers, loc } = dir; const arg = dir.arg; let { exp } = dir; if (exp && exp.type === 4 && !exp.content.trim()) { { exp = void 0; } } if (!exp) { if (arg.type !== 4 || !arg.isStatic) { context.onError( createCompilerError( 52, arg.loc ) ); return { props: [ createObjectProperty(arg, createSimpleExpression("", true, loc)) ] }; } transformBindShorthand(dir); exp = dir.exp; } if (arg.type !== 4) { arg.children.unshift(`(`); arg.children.push(`) || ""`); } else if (!arg.isStatic) { arg.content = `${arg.content} || ""`; } if (modifiers.some((mod) => mod.content === "camel")) { if (arg.type === 4) { if (arg.isStatic) { arg.content = camelize(arg.content); } else { arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`; } } else { arg.children.unshift(`${context.helperString(CAMELIZE)}(`); arg.children.push(`)`); } } if (!context.inSSR) { if (modifiers.some((mod) => mod.content === "prop")) { injectPrefix(arg, "."); } if (modifiers.some((mod) => mod.content === "attr")) { injectPrefix(arg, "^"); } } return { props: [createObjectProperty(arg, exp)] }; }; const transformBindShorthand = (dir, context) => { const arg = dir.arg; const propName = camelize(arg.content); dir.exp = createSimpleExpression(propName, false, arg.loc); }; const injectPrefix = (arg, prefix) => { if (arg.type === 4) { if (arg.isStatic) { arg.content = prefix + arg.content; } else { arg.content = `\`${prefix}\${${arg.content}}\``; } } else { arg.children.unshift(`'${prefix}' + (`); arg.children.push(`)`); } }; const transformFor = createStructuralDirectiveTransform( "for", (node, dir, context) => { const { helper, removeHelper } = context; return processFor(node, dir, context, (forNode) => { const renderExp = createCallExpression(helper(RENDER_LIST), [ forNode.source ]); const isTemplate = isTemplateNode(node); const memo = findDir(node, "memo"); const keyProp = findProp(node, `key`, false, true); const isDirKey = keyProp && keyProp.type === 7; if (isDirKey && !keyProp.exp) { transformBindShorthand(keyProp); } let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp); const keyProperty = keyProp && keyExp ? createObjectProperty(`key`, keyExp) : null; const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0; const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256; forNode.codegenNode = createVNodeCall( context, helper(FRAGMENT), void 0, renderExp, fragmentFlag, void 0, void 0, true, !isStableFragment, false, node.loc ); return () => { let childBlock; const { children } = forNode; if (isTemplate) { node.children.some((c) => { if (c.type === 1) { const key = findProp(c, "key"); if (key) { context.onError( createCompilerError( 33, key.loc ) ); return true; } } }); } const needFragmentWrapper = children.length !== 1 || children[0].type !== 1; const slotOutlet = isSlotOutlet(node) ? node : isTemplate && node.children.length === 1 && isSlotOutlet(node.children[0]) ? node.children[0] : null; if (slotOutlet) { childBlock = slotOutlet.codegenNode; if (isTemplate && keyProperty) { injectProp(childBlock, keyProperty, context); } } else if (needFragmentWrapper) { childBlock = createVNodeCall( context, helper(FRAGMENT), keyProperty ? createObjectExpression([keyProperty]) : void 0, node.children, 64, void 0, void 0, true, void 0, false ); } else { childBlock = children[0].codegenNode; if (isTemplate && keyProperty) { injectProp(childBlock, keyProperty, context); } if (childBlock.isBlock !== !isStableFragment) { if (childBlock.isBlock) { removeHelper(OPEN_BLOCK); removeHelper( getVNodeBlockHelper(context.inSSR, childBlock.isComponent) ); } else { removeHelper( getVNodeHelper(context.inSSR, childBlock.isComponent) ); } } childBlock.isBlock = !isStableFragment; if (childBlock.isBlock) { helper(OPEN_BLOCK); helper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent)); } else { helper(getVNodeHelper(context.inSSR, childBlock.isComponent)); } } if (memo) { const loop = createFunctionExpression( createForLoopParams(forNode.parseResult, [ createSimpleExpression(`_cached`) ]) ); loop.body = createBlockStatement([ createCompoundExpression([`const _memo = (`, memo.exp, `)`]), createCompoundExpression([ `if (_cached`, ...keyExp ? [` && _cached.key === `, keyExp] : [], ` && ${context.helperString( IS_MEMO_SAME )}(_cached, _memo)) return _cached` ]), createCompoundExpression([`const _item = `, childBlock]), createSimpleExpression(`_item.memo = _memo`), createSimpleExpression(`return _item`) ]); renderExp.arguments.push( loop, createSimpleExpression(`_cache`), createSimpleExpression(String(context.cached.length)) ); context.cached.push(null); } else { renderExp.arguments.push( createFunctionExpression( createForLoopParams(forNode.parseResult), childBlock, true ) ); } }; }); } ); function processFor(node, dir, context, processCodegen) { if (!dir.exp) { context.onError( createCompilerError(31, dir.loc) ); return; } const parseResult = dir.forParseResult; if (!parseResult) { context.onError( createCompilerError(32, dir.loc) ); return; } finalizeForParseResult(parseResult, context); const { addIdentifiers, removeIdentifiers, scopes } = context; const { source, value, key, index } = parseResult; const forNode = { type: 11, loc: dir.loc, source, valueAlias: value, keyAlias: key, objectIndexAlias: index, parseResult, children: isTemplateNode(node) ? node.children : [node] }; context.replaceNode(forNode); scopes.vFor++; const onExit = processCodegen && processCodegen(forNode); return () => { scopes.vFor--; if (onExit) onExit(); }; } function finalizeForParseResult(result, context) { if (result.finalized) return; { validateBrowserExpression(result.source, context); if (result.key) { validateBrowserExpression( result.key, context, true ); } if (result.index) { validateBrowserExpression( result.index, context, true ); } if (result.value) { validateBrowserExpression( result.value, context, true ); } } result.finalized = true; } function createForLoopParams({ value, key, index }, memoArgs = []) { return createParamsList([value, key, index, ...memoArgs]); } function createParamsList(args) { let i = args.length; while (i--) { if (args[i]) break; } return args.slice(0, i + 1).map((arg, i2) => arg || createSimpleExpression(`_`.repeat(i2 + 1), false)); } const defaultFallback = createSimpleExpression(`undefined`, false); const trackSlotScopes = (node, context) => { if (node.type === 1 && (node.tagType === 1 || node.tagType === 3)) { const vSlot = findDir(node, "slot"); if (vSlot) { vSlot.exp; context.scopes.vSlot++; return () => { context.scopes.vSlot--; }; } } }; const buildClientSlotFn = (props, _vForExp, children, loc) => createFunctionExpression( props, children, false, true, children.length ? children[0].loc : loc ); function buildSlots(node, context, buildSlotFn = buildClientSlotFn) { context.helper(WITH_CTX); const { children, loc } = node; const slotsProperties = []; const dynamicSlots = []; let hasDynamicSlots = context.scopes.vSlot > 0 || context.scopes.vFor > 0; const onComponentSlot = findDir(node, "slot", true); if (onComponentSlot) { const { arg, exp } = onComponentSlot; if (arg && !isStaticExp(arg)) { hasDynamicSlots = true; } slotsProperties.push( createObjectProperty( arg || createSimpleExpression("default", true), buildSlotFn(exp, void 0, children, loc) ) ); } let hasTemplateSlots = false; let hasNamedDefaultSlot = false; const implicitDefaultChildren = []; const seenSlotNames = /* @__PURE__ */ new Set(); let conditionalBranchIndex = 0; for (let i = 0; i < children.length; i++) { const slotElement = children[i]; let slotDir; if (!isTemplateNode(slotElement) || !(slotDir = findDir(slotElement, "slot", true))) { if (slotElement.type !== 3) { implicitDefaultChildren.push(slotElement); } continue; } if (onComponentSlot) { context.onError( createCompilerError(37, slotDir.loc) ); break; } hasTemplateSlots = true; const { children: slotChildren, loc: slotLoc } = slotElement; const { arg: slotName = createSimpleExpression(`default`, true), exp: slotProps, loc: dirLoc } = slotDir; let staticSlotName; if (isStaticExp(slotName)) { staticSlotName = slotName ? slotName.content : `default`; } else { hasDynamicSlots = true; } const vFor = findDir(slotElement, "for"); const slotFunction = buildSlotFn(slotProps, vFor, slotChildren, slotLoc); let vIf; let vElse; if (vIf = findDir(slotElement, "if")) { hasDynamicSlots = true; dynamicSlots.push( createConditionalExpression( vIf.exp, buildDynamicSlot(slotName, slotFunction, conditionalBranchIndex++), defaultFallback ) ); } else if (vElse = findDir( slotElement, /^else(-if)?$/, true /* allowEmpty */ )) { let j = i; let prev; while (j--) { prev = children[j]; if (prev.type !== 3) { break; } } if (prev && isTemplateNode(prev) && findDir(prev, /^(else-)?if$/)) { let conditional = dynamicSlots[dynamicSlots.length - 1]; while (conditional.alternate.type === 19) { conditional = conditional.alternate; } conditional.alternate = vElse.exp ? createConditionalExpression( vElse.exp, buildDynamicSlot( slotName, slotFunction, conditionalBranchIndex++ ), defaultFallback ) : buildDynamicSlot(slotName, slotFunction, conditionalBranchIndex++); } else { context.onError( createCompilerError(30, vElse.loc) ); } } else if (vFor) { hasDynamicSlots = true; const parseResult = vFor.forParseResult; if (parseResult) { finalizeForParseResult(parseResult, context); dynamicSlots.push( createCallExpression(context.helper(RENDER_LIST), [ parseResult.source, createFunctionExpression( createForLoopParams(parseResult), buildDynamicSlot(slotName, slotFunction), true ) ]) ); } else { context.onError( createCompilerError( 32, vFor.loc ) ); } } else { if (staticSlotName) { if (seenSlotNames.has(staticSlotName)) { context.onError( createCompilerError( 38, dirLoc ) ); continue; } seenSlotNames.add(staticSlotName); if (staticSlotName === "default") { hasNamedDefaultSlot = true; } } slotsProperties.push(createObjectProperty(slotName, slotFunction)); } } if (!onComponentSlot) { const buildDefaultSlotProperty = (props, children2) => { const fn = buildSlotFn(props, void 0, children2, loc); return createObjectProperty(`default`, fn); }; if (!hasTemplateSlots) { slotsProperties.push(buildDefaultSlotProperty(void 0, children)); } else if (implicitDefaultChildren.length && // #3766 // with whitespace: 'preserve', whitespaces between slots will end up in // implicitDefaultChildren. Ignore if all implicit children are whitespaces. implicitDefaultChildren.some((node2) => isNonWhitespaceContent(node2))) { if (hasNamedDefaultSlot) { context.onError( createCompilerError( 39, implicitDefaultChildren[0].loc ) ); } else { slotsProperties.push( buildDefaultSlotProperty(void 0, implicitDefaultChildren) ); } } } const slotFlag = hasDynamicSlots ? 2 : hasForwardedSlots(node.children) ? 3 : 1; let slots = createObjectExpression( slotsProperties.concat( createObjectProperty( `_`, // 2 = compiled but dynamic = can skip normalization, but must run diff // 1 = compiled and static = can skip normalization AND diff as optimized createSimpleExpression( slotFlag + (` /* ${slotFlagsText[slotFlag]} */` ), false ) ) ), loc ); if (dynamicSlots.length) { slots = createCallExpression(context.helper(CREATE_SLOTS), [ slots, createArrayExpression(dynamicSlots) ]); } return { slots, hasDynamicSlots }; } function buildDynamicSlot(name, fn, index) { const props = [ createObjectProperty(`name`, name), createObjectProperty(`fn`, fn) ]; if (index != null) { props.push( createObjectProperty(`key`, createSimpleExpression(String(index), true)) ); } return createObjectExpression(props); } function hasForwardedSlots(children) { for (let i = 0; i < children.length; i++) { const child = children[i]; switch (child.type) { case 1: if (child.tagType === 2 || hasForwardedSlots(child.children)) { return true; } break; case 9: if (hasForwardedSlots(child.branches)) return true; break; case 10: case 11: if (hasForwardedSlots(child.children)) return true; break; } } return false; } function isNonWhitespaceContent(node) { if (node.type !== 2 && node.type !== 12) return true; return node.type === 2 ? !!node.content.trim() : isNonWhitespaceContent(node.content); } const directiveImportMap = /* @__PURE__ */ new WeakMap(); const transformElement = (node, context) => { return function postTransformElement() { node = context.currentNode; if (!(node.type === 1 && (node.tagType === 0 || node.tagType === 1))) { return; } const { tag, props } = node; const isComponent = node.tagType === 1; let vnodeTag = isComponent ? resolveComponentType(node, context) : `"${tag}"`; const isDynamicComponent = isObject(vnodeTag) && vnodeTag.callee === RESOLVE_DYNAMIC_COMPONENT; let vnodeProps; let vnodeChildren; let patchFlag = 0; let vnodeDynamicProps; let dynamicPropNames; let vnodeDirectives; let shouldUseBlock = ( // dynamic component may resolve to plain elements isDynamicComponent || vnodeTag === TELEPORT || vnodeTag === SUSPENSE || !isComponent && // <svg> and <foreignObject> must be forced into blocks so that block // updates inside get proper isSVG flag at runtime. (#639, #643) // This is technically web-specific, but splitting the logic out of core // leads to too much unnecessary complexity. (tag === "svg" || tag === "foreignObject" || tag === "math") ); if (props.length > 0) { const propsBuildResult = buildProps( node, context, void 0, isComponent, isDynamicComponent ); vnodeProps = propsBuildResult.props; patchFlag = propsBuildResult.patchFlag; dynamicPropNames = propsBuildResult.dynamicPropNames; const directives = propsBuildResult.directives; vnodeDirectives = directives && directives.length ? createArrayExpression( directives.map((dir) => buildDirectiveArgs(dir, context)) ) : void 0; if (propsBuildResult.shouldUseBlock) { shouldUseBlock = true; } } if (node.children.length > 0) { if (vnodeTag === KEEP_ALIVE) { shouldUseBlock = true; patchFlag |= 1024; if (node.children.length > 1) { context.onError( createCompilerError(46, { start: node.children[0].loc.start, end: node.children[node.children.length - 1].loc.end, source: "" }) ); } } const shouldBuildAsSlots = isComponent && // Teleport is not a real component and has dedicated runtime handling vnodeTag !== TELEPORT && // explained above. vnodeTag !== KEEP_ALIVE; if (shouldBuildAsSlots) { const { slots, hasDynamicSlots } = buildSlots(node, context); vnodeChildren = slots; if (hasDynamicSlots) { patchFlag |= 1024; } } else if (node.children.length === 1 && vnodeTag !== TELEPORT) { const child = node.children[0]; const type = child.type; const hasDynamicTextChild = type === 5 || type === 8; if (hasDynamicTextChild && getConstantType(child, context) === 0) { patchFlag |= 1; } if (hasDynamicTextChild || type === 2) { vnodeChildren = child; } else { vnodeChildren = node.children; } } else { vnodeChildren = node.children; } } if (dynamicPropNames && dynamicPropNames.length) { vnodeDynamicProps = stringifyDynamicPropNames(dynamicPropNames); } node.codegenNode = createVNodeCall( context, vnodeTag, vnodeProps, vnodeChildren, patchFlag === 0 ? void 0 : patchFlag, vnodeDynamicProps, vnodeDirectives, !!shouldUseBlock, false, isComponent, node.loc ); }; }; function resolveComponentType(node, context, ssr = false) { let { tag } = node; const isExplicitDynamic = isComponentTag(tag); const isProp = findProp( node, "is", false, true /* allow empty */ ); if (isProp) { if (isExplicitDynamic || false) { let exp; if (isProp.type === 6) { exp = isProp.value && createSimpleExpression(isProp.value.content, true); } else { exp = isProp.exp; if (!exp) { exp = createSimpleExpression(`is`, false, isProp.arg.loc); } } if (exp) { return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [ exp ]); } } else if (isProp.type === 6 && isProp.value.content.startsWith("vue:")) { tag = isProp.value.content.slice(4); } } const builtIn = isCoreComponent(tag) || context.isBuiltInComponent(tag); if (builtIn) { if (!ssr) context.helper(builtIn); return builtIn; } context.helper(RESOLVE_COMPONENT); context.components.add(tag); return toValidAssetId(tag, `component`); } function buildProps(node, context, props = node.props, isComponent, isDynamicComponent, ssr = false) { const { tag, loc: elementLoc, children } = node; let properties = []; const mergeArgs = []; const runtimeDirectives = []; const hasChildren = children.length > 0; let shouldUseBlock = false; let patchFlag = 0; let hasRef = false; let hasClassBinding = false; let hasStyleBinding = false; let hasHydrationEventBinding = false; let hasDynamicKeys = false; let hasVnodeHook = false; const dynamicPropNames = []; const pushMergeArg = (arg) => { if (properties.length) { mergeArgs.push( createObjectExpression(dedupeProperties(properties), elementLoc) ); properties = []; } if (arg) mergeArgs.push(arg); }; const pushRefVForMarker = () => { if (context.scopes.vFor > 0) { properties.push( createObjectProperty( createSimpleExpression("ref_for", true), createSimpleExpression("true") ) ); } }; const analyzePatchFlag = ({ key, value }) => { if (isStaticExp(key)) { const name = key.content; const isEventHandler = isOn(name); if (isEventHandler && (!isComponent || isDynamicComponent) && // omit the flag for click handlers because hydration gives click // dedicated fast path. name.toLowerCase() !== "onclick" && // omit v-model handlers name !== "onUpdate:modelValue" && // omit onVnodeXXX hooks !isReservedProp(name)) { hasHydrationEventBinding = true; } if (isEventHandler && isReservedProp(name)) { hasVnodeHook = true; } if (isEventHandler && value.type === 14) { value = value.arguments[0]; } if (value.type === 20 || (value.type === 4 || value.type === 8) && getConstantType(value, context) > 0) { return; } if (name === "ref") { hasRef = true; } else if (name === "class") { hasClassBinding = true; } else if (name === "style") { hasStyleBinding = true; } else if (name !== "key" && !dynamicPropNames.includes(name)) { dynamicPropNames.push(name); } if (isComponent && (name === "class" || name === "style") && !dynamicPropNames.includes(name)) { dynamicPropNames.push(name); } } else { hasDynamicKeys = true; } }; for (let i = 0; i < props.length; i++) { const prop = props[i]; if (prop.type === 6) { const { loc, name, nameLoc, value } = prop; let isStatic = true; if (name === "ref") { hasRef = true; pushRefVForMarker(); } if (name === "is" && (isComponentTag(tag) || value && value.content.startsWith("vue:") || false)) { continue; } properties.push( createObjectProperty( createSimpleExpression(name, true, nameLoc), createSimpleExpression( value ? value.content : "", isStatic, value ? value.loc : loc ) ) ); } else { const { name, arg, exp, loc, modifiers } = prop; const isVBind = name === "bind"; const isVOn = name === "on"; if (name === "slot") { if (!isComponent) { context.onError( createCompilerError(40, loc) ); } continue; } if (name === "once" || name === "memo") { continue; } if (name === "is" || isVBind && isStaticArgOf(arg, "is") && (isComponentTag(tag) || false)) { continue; } if (isVOn && ssr) { continue; } if ( // #938: elements with dynamic keys should be forced into blocks isVBind && isStaticArgOf(arg, "key") || // inline before-update hooks need to force block so that it is invoked // before children isVOn && hasChildren && isStaticArgOf(arg, "vue:before-update") ) { shouldUseBlock = true; } if (isVBind && isStaticArgOf(arg, "ref")) { pushRefVForMarker(); } if (!arg && (isVBind || isVOn)) { hasDynamicKeys = true; if (exp) { if (isVBind) { pushRefVForMarker(); pushMergeArg(); mergeArgs.push(exp); } else { pushMergeArg({ type: 14, loc, callee: context.helper(TO_HANDLERS), arguments: isComponent ? [exp] : [exp, `true`] }); } } else { context.onError( createCompilerError( isVBind ? 34 : 35, loc ) ); } continue; } if (isVBind && modifiers.some((mod) => mod.content === "prop")) { patchFlag |= 32; } const directiveTransform = context.directiveTransforms[name]; if (directiveTransform) { const { props: props2, needRuntime } = directiveTransform(prop, node, context); !ssr && props2.forEach(analyzePatchFlag); if (isVOn && arg && !isStaticExp(arg)) { pushMergeArg(createObjectExpression(props2, elementLoc)); } else { properties.push(...props2); } if (needRuntime) { runtimeDirectives.push(prop); if (isSymbol(needRuntime)) { directiveImportMap.set(prop, needRuntime); } } } else if (!isBuiltInDirective(name)) { runtimeDirectives.push(prop); if (hasChildren) { shouldUseBlock = true; } } } } let propsExpression = void 0; if (mergeArgs.length) { pushMergeArg(); if (mergeArgs.length > 1) { propsExpression = createCallExpression( context.helper(MERGE_PROPS), mergeArgs, elementLoc ); } else { propsExpression = mergeArgs[0]; } } else if (properties.length) { propsExpression = createObjectExpression( dedupeProperties(properties), elementLoc ); } if (hasDynamicKeys) { patchFlag |= 16; } else { if (hasClassBinding && !isComponent) { patchFlag |= 2; } if (hasStyleBinding && !isComponent) { patchFlag |= 4; } if (dynamicPropNames.length) { patchFlag |= 8; } if (hasHydrationEventBinding) { patchFlag |= 32; } } if (!shouldUseBlock && (patchFlag === 0 || patchFlag === 32) && (hasRef || hasVnodeHook || runtimeDirectives.length > 0)) { patchFlag |= 512; } if (!context.inSSR && propsExpression) { switch (propsExpression.type) { case 15: let classKeyIndex = -1; let styleKeyIndex = -1; let hasDynamicKey = false; for (let i = 0; i < propsExpression.properties.length; i++) { const key = propsExpression.properties[i].key; if (isStaticExp(key)) { if (key.content === "class") { classKeyIndex = i; } else if (key.content === "style") { styleKeyIndex = i; } } else if (!key.isHandlerKey) { hasDynamicKey = true; } } const classProp = propsExpression.properties[classKeyIndex]; const styleProp = propsExpression.properties[styleKeyIndex]; if (!hasDynamicKey) { if (classProp && !isStaticExp(classProp.value)) { classProp.value = createCallExpression( context.helper(NORMALIZE_CLASS), [classProp.value] ); } if (styleProp && // the static style is compiled into an object, // so use `hasStyleBinding` to ensure that it is a dynamic style binding (hasStyleBinding || styleProp.value.type === 4 && styleProp.value.content.trim()[0] === `[` || // v-bind:style and style both exist, // v-bind:style with static literal object styleProp.value.type === 17)) { styleProp.value = createCallExpression( context.helper(NORMALIZE_STYLE), [styleProp.value] ); } } else { propsExpression = createCallExpression( context.helper(NORMALIZE_PROPS), [propsExpression] ); } break; case 14: break; default: propsExpression = createCallExpression( context.helper(NORMALIZE_PROPS), [ createCallExpression(context.helper(GUARD_REACTIVE_PROPS), [ propsExpression ]) ] ); break; } } return { props: propsExpression, directives: runtimeDirectives, patchFlag, dynamicPropNames, shouldUseBlock }; } function dedupeProperties(properties) { const knownProps = /* @__PURE__ */ new Map(); const deduped = []; for (let i = 0; i < properties.length; i++) { const prop = properties[i]; if (prop.key.type === 8 || !prop.key.isStatic) { deduped.push(prop); continue; } const name = prop.key.content; const existing = knownProps.get(name); if (existing) { if (name === "style" || name === "class" || isOn(name)) { mergeAsArray(existing, prop); } } else { knownProps.set(name, prop); deduped.push(prop); } } return deduped; } function mergeAsArray(existing, incoming) { if (existing.value.type === 17) { existing.value.elements.push(incoming.value); } else { existing.value = createArrayExpression( [existing.value, incoming.value], existing.loc ); } } function buildDirectiveArgs(dir, context) { const dirArgs = []; const runtime = directiveImportMap.get(dir); if (runtime) { dirArgs.push(context.helperString(runtime)); } else { { context.helper(RESOLVE_DIRECTIVE); context.directives.add(dir.name); dirArgs.push(toValidAssetId(dir.name, `directive`)); } } const { loc } = dir; if (dir.exp) dirArgs.push(dir.exp); if (dir.arg) { if (!dir.exp) { dirArgs.push(`void 0`); } dirArgs.push(dir.arg); } if (Object.keys(dir.modifiers).length) { if (!dir.arg) { if (!dir.exp) { dirArgs.push(`void 0`); } dirArgs.push(`void 0`); } const trueExpression = createSimpleExpression(`true`, false, loc); dirArgs.push( createObjectExpression( dir.modifiers.map( (modifier) => createObjectProperty(modifier, trueExpression) ), loc ) ); } return createArrayExpression(dirArgs, dir.loc); } function stringifyDynamicPropNames(props) { let propsNamesString = `[`; for (let i = 0, l = props.length; i < l; i++) { propsNamesString += JSON.stringify(props[i]); if (i < l - 1) propsNamesString += ", "; } return propsNamesString + `]`; } function isComponentTag(tag) { return tag === "component" || tag === "Component"; } const transformSlotOutlet = (node, context) => { if (isSlotOutlet(node)) { const { children, loc } = node; const { slotName, slotProps } = processSlotOutlet(node, context); const slotArgs = [ context.prefixIdentifiers ? `_ctx.$slots` : `$slots`, slotName, "{}", "undefined", "true" ]; let expectedLen = 2; if (slotProps) { slotArgs[2] = slotProps; expectedLen = 3; } if (children.length) { slotArgs[3] = createFunctionExpression([], children, false, false, loc); expectedLen = 4; } if (context.scopeId && !context.slotted) { expectedLen = 5; } slotArgs.splice(expectedLen); node.codegenNode = createCallExpression( context.helper(RENDER_SLOT), slotArgs, loc ); } }; function processSlotOutlet(node, context) { let slotName = `"default"`; let slotProps = void 0; const nonNameProps = []; for (let i = 0; i < node.props.length; i++) { const p = node.props[i]; if (p.type === 6) { if (p.value) { if (p.name === "name") { slotName = JSON.stringify(p.value.content); } else { p.name = camelize(p.name); nonNameProps.push(p); } } } else { if (p.name === "bind" && isStaticArgOf(p.arg, "name")) { if (p.exp) { slotName = p.exp; } else if (p.arg && p.arg.type === 4) { const name = camelize(p.arg.content); slotName = p.exp = createSimpleExpression(name, false, p.arg.loc); } } else { if (p.name === "bind" && p.arg && isStaticExp(p.arg)) { p.arg.content = camelize(p.arg.content); } nonNameProps.push(p); } } } if (nonNameProps.length > 0) { const { props, directives } = buildProps( node, context, nonNameProps, false, false ); slotProps = props; if (directives.length) { context.onError( createCompilerError( 36, directives[0].loc ) ); } } return { slotName, slotProps }; } const transformOn$1 = (dir, node, context, augmentor) => { const { loc, modifiers, arg } = dir; if (!dir.exp && !modifiers.length) { context.onError(createCompilerError(35, loc)); } let eventName; if (arg.type === 4) { if (arg.isStatic) { let rawName = arg.content; if (rawName.startsWith("vnode")) { context.onError(createCompilerError(51, arg.loc)); } if (rawName.startsWith("vue:")) { rawName = `vnode-${rawName.slice(4)}`; } const eventString = node.tagType !== 0 || rawName.startsWith("vnode") || !/[A-Z]/.test(rawName) ? ( // for non-element and vnode lifecycle event listeners, auto convert // it to camelCase. See issue #2249 toHandlerKey(camelize(rawName)) ) : ( // preserve case for plain element listeners that have uppercase // letters, as these may be custom elements' custom events `on:${rawName}` ); eventName = createSimpleExpression(eventString, true, arg.loc); } else { eventName = createCompoundExpression([ `${context.helperString(TO_HANDLER_KEY)}(`, arg, `)` ]); } } else { eventName = arg; eventName.children.unshift(`${context.helperString(TO_HANDLER_KEY)}(`); eventName.children.push(`)`); } let exp = dir.exp; if (exp && !exp.content.trim()) { exp = void 0; } let shouldCache = context.cacheHandlers && !exp && !context.inVOnce; if (exp) { const isMemberExp = isMemberExpression(exp); const isInlineStatement = !(isMemberExp || isFnExpression(exp)); const hasMultipleStatements = exp.content.includes(`;`); { validateBrowserExpression( exp, context, false, hasMultipleStatements ); } if (isInlineStatement || shouldCache && isMemberExp) { exp = createCompoundExpression([ `${isInlineStatement ? `$event` : `${``}(...args)`} => ${hasMultipleStatements ? `{` : `(`}`, exp, hasMultipleStatements ? `}` : `)` ]); } } let ret = { props: [ createObjectProperty( eventName, exp || createSimpleExpression(`() => {}`, false, loc) ) ] }; if (augmentor) { ret = augmentor(ret); } if (shouldCache) { ret.props[0].value = context.cache(ret.props[0].value); } ret.props.forEach((p) => p.key.isHandlerKey = true); return ret; }; const transformText = (node, context) => { if (node.type === 0 || node.type === 1 || node.type === 11 || node.type === 10) { return () => { const children = node.children; let currentContainer = void 0; let hasText = false; for (let i = 0; i < children.length; i++) { const child = children[i]; if (isText$1(child)) { hasText = true; for (let j = i + 1; j < children.length; j++) { const next = children[j]; if (isText$1(next)) { if (!currentContainer) { currentContainer = children[i] = createCompoundExpression( [child], child.loc ); } currentContainer.children.push(` + `, next); children.splice(j, 1); j--; } else { currentContainer = void 0; break; } } } } if (!hasText || // if this is a plain element with a single text child, leave it // as-is since the runtime has dedicated fast path for this by directly // setting textContent of the element. // for component root it's always normalized anyway. children.length === 1 && (node.type === 0 || node.type === 1 && node.tagType === 0 && // #3756 // custom directives can potentially add DOM elements arbitrarily, // we need to avoid setting textContent of the element at runtime // to avoid accidentally overwriting the DOM elements added // by the user through custom directives. !node.props.find( (p) => p.type === 7 && !context.directiveTransforms[p.name] ) && // in compat mode, <template> tags with no special directives // will be rendered as a fragment so its children must be // converted into vnodes. true)) { return; } for (let i = 0; i < children.length; i++) { const child = children[i]; if (isText$1(child) || child.type === 8) { const callArgs = []; if (child.type !== 2 || child.content !== " ") { callArgs.push(child); } if (!context.ssr && getConstantType(child, context) === 0) { callArgs.push( 1 + (` /* ${PatchFlagNames[1]} */` ) ); } children[i] = { type: 12, content: child, loc: child.loc, codegenNode: createCallExpression( context.helper(CREATE_TEXT), callArgs ) }; } } }; } }; const seen$1 = /* @__PURE__ */ new WeakSet(); const transformOnce = (node, context) => { if (node.type === 1 && findDir(node, "once", true)) { if (seen$1.has(node) || context.inVOnce || context.inSSR) { return; } seen$1.add(node); context.inVOnce = true; context.helper(SET_BLOCK_TRACKING); return () => { context.inVOnce = false; const cur = context.currentNode; if (cur.codegenNode) { cur.codegenNode = context.cache( cur.codegenNode, true, true ); } }; } }; const transformModel$1 = (dir, node, context) => { const { exp, arg } = dir; if (!exp) { context.onError( createCompilerError(41, dir.loc) ); return createTransformProps(); } const rawExp = exp.loc.source.trim(); const expString = exp.type === 4 ? exp.content : rawExp; const bindingType = context.bindingMetadata[rawExp]; if (bindingType === "props" || bindingType === "props-aliased") { context.onError(createCompilerError(44, exp.loc)); return createTransformProps(); } const maybeRef = false; if (!expString.trim() || !isMemberExpression(exp) && !maybeRef) { context.onError( createCompilerError(42, exp.loc) ); return createTransformProps(); } const propName = arg ? arg : createSimpleExpression("modelValue", true); const eventName = arg ? isStaticExp(arg) ? `onUpdate:${camelize(arg.content)}` : createCompoundExpression(['"onUpdate:" + ', arg]) : `onUpdate:modelValue`; let assignmentExp; const eventArg = context.isTS ? `($event: any)` : `$event`; { assignmentExp = createCompoundExpression([ `${eventArg} => ((`, exp, `) = $event)` ]); } const props = [ // modelValue: foo createObjectProperty(propName, dir.exp), // "onUpdate:modelValue": $event => (foo = $event) createObjectProperty(eventName, assignmentExp) ]; if (dir.modifiers.length && node.tagType === 1) { const modifiers = dir.modifiers.map((m) => m.content).map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `); const modifiersKey = arg ? isStaticExp(arg) ? `${arg.content}Modifiers` : createCompoundExpression([arg, ' + "Modifiers"']) : `modelModifiers`; props.push( createObjectProperty( modifiersKey, createSimpleExpression( `{ ${modifiers} }`, false, dir.loc, 2 ) ) ); } return createTransformProps(props); }; function createTransformProps(props = []) { return { props }; } const seen = /* @__PURE__ */ new WeakSet(); const transformMemo = (node, context) => { if (node.type === 1) { const dir = findDir(node, "memo"); if (!dir || seen.has(node)) { return; } seen.add(node); return () => { const codegenNode = node.codegenNode || context.currentNode.codegenNode; if (codegenNode && codegenNode.type === 13) { if (node.tagType !== 1) { convertToBlock(codegenNode, context); } node.codegenNode = createCallExpression(context.helper(WITH_MEMO), [ dir.exp, createFunctionExpression(void 0, codegenNode), `_cache`, String(context.cached.length) ]); context.cached.push(null); } }; } }; function getBaseTransformPreset(prefixIdentifiers) { return [ [ transformOnce, transformIf, transformMemo, transformFor, ...[], ...[transformExpression] , transformSlotOutlet, transformElement, trackSlotScopes, transformText ], { on: transformOn$1, bind: transformBind, model: transformModel$1 } ]; } function baseCompile(source, options = {}) { const onError = options.onError || defaultOnError; const isModuleMode = options.mode === "module"; { if (options.prefixIdentifiers === true) { onError(createCompilerError(47)); } else if (isModuleMode) { onError(createCompilerError(48)); } } const prefixIdentifiers = false; if (options.cacheHandlers) { onError(createCompilerError(49)); } if (options.scopeId && !isModuleMode) { onError(createCompilerError(50)); } const resolvedOptions = extend({}, options, { prefixIdentifiers }); const ast = isString(source) ? baseParse(source, resolvedOptions) : source; const [nodeTransforms, directiveTransforms] = getBaseTransformPreset(); transform( ast, extend({}, resolvedOptions, { nodeTransforms: [ ...nodeTransforms, ...options.nodeTransforms || [] // user transforms ], directiveTransforms: extend( {}, directiveTransforms, options.directiveTransforms || {} // user transforms ) }) ); return generate(ast, resolvedOptions); } const noopDirectiveTransform = () => ({ props: [] }); const V_MODEL_RADIO = Symbol(`vModelRadio` ); const V_MODEL_CHECKBOX = Symbol( `vModelCheckbox` ); const V_MODEL_TEXT = Symbol(`vModelText` ); const V_MODEL_SELECT = Symbol( `vModelSelect` ); const V_MODEL_DYNAMIC = Symbol( `vModelDynamic` ); const V_ON_WITH_MODIFIERS = Symbol( `vOnModifiersGuard` ); const V_ON_WITH_KEYS = Symbol( `vOnKeysGuard` ); const V_SHOW = Symbol(`vShow` ); const TRANSITION = Symbol(`Transition` ); const TRANSITION_GROUP = Symbol( `TransitionGroup` ); registerRuntimeHelpers({ [V_MODEL_RADIO]: `vModelRadio`, [V_MODEL_CHECKBOX]: `vModelCheckbox`, [V_MODEL_TEXT]: `vModelText`, [V_MODEL_SELECT]: `vModelSelect`, [V_MODEL_DYNAMIC]: `vModelDynamic`, [V_ON_WITH_MODIFIERS]: `withModifiers`, [V_ON_WITH_KEYS]: `withKeys`, [V_SHOW]: `vShow`, [TRANSITION]: `Transition`, [TRANSITION_GROUP]: `TransitionGroup` }); let decoder; function decodeHtmlBrowser(raw, asAttr = false) { if (!decoder) { decoder = document.createElement("div"); } if (asAttr) { decoder.innerHTML = `<div foo="${raw.replace(/"/g, "&quot;")}">`; return decoder.children[0].getAttribute("foo"); } else { decoder.innerHTML = raw; return decoder.textContent; } } const parserOptions = { parseMode: "html", isVoidTag, isNativeTag: (tag) => isHTMLTag(tag) || isSVGTag(tag) || isMathMLTag(tag), isPreTag: (tag) => tag === "pre", isIgnoreNewlineTag: (tag) => tag === "pre" || tag === "textarea", decodeEntities: decodeHtmlBrowser , isBuiltInComponent: (tag) => { if (tag === "Transition" || tag === "transition") { return TRANSITION; } else if (tag === "TransitionGroup" || tag === "transition-group") { return TRANSITION_GROUP; } }, // https://html.spec.whatwg.org/multipage/parsing.html#tree-construction-dispatcher getNamespace(tag, parent, rootNamespace) { let ns = parent ? parent.ns : rootNamespace; if (parent && ns === 2) { if (parent.tag === "annotation-xml") { if (tag === "svg") { return 1; } if (parent.props.some( (a) => a.type === 6 && a.name === "encoding" && a.value != null && (a.value.content === "text/html" || a.value.content === "application/xhtml+xml") )) { ns = 0; } } else if (/^m(?:[ions]|text)$/.test(parent.tag) && tag !== "mglyph" && tag !== "malignmark") { ns = 0; } } else if (parent && ns === 1) { if (parent.tag === "foreignObject" || parent.tag === "desc" || parent.tag === "title") { ns = 0; } } if (ns === 0) { if (tag === "svg") { return 1; } if (tag === "math") { return 2; } } return ns; } }; const transformStyle = (node) => { if (node.type === 1) { node.props.forEach((p, i) => { if (p.type === 6 && p.name === "style" && p.value) { node.props[i] = { type: 7, name: `bind`, arg: createSimpleExpression(`style`, true, p.loc), exp: parseInlineCSS(p.value.content, p.loc), modifiers: [], loc: p.loc }; } }); } }; const parseInlineCSS = (cssText, loc) => { const normalized = parseStringStyle(cssText); return createSimpleExpression( JSON.stringify(normalized), false, loc, 3 ); }; function createDOMCompilerError(code, loc) { return createCompilerError( code, loc, DOMErrorMessages ); } const DOMErrorMessages = { [53]: `v-html is missing expression.`, [54]: `v-html will override element children.`, [55]: `v-text is missing expression.`, [56]: `v-text will override element children.`, [57]: `v-model can only be used on <input>, <textarea> and <select> elements.`, [58]: `v-model argument is not supported on plain elements.`, [59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`, [60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`, [61]: `v-show is missing expression.`, [62]: `<Transition> expects exactly one child element or component.`, [63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.` }; const transformVHtml = (dir, node, context) => { const { exp, loc } = dir; if (!exp) { context.onError( createDOMCompilerError(53, loc) ); } if (node.children.length) { context.onError( createDOMCompilerError(54, loc) ); node.children.length = 0; } return { props: [ createObjectProperty( createSimpleExpression(`innerHTML`, true, loc), exp || createSimpleExpression("", true) ) ] }; }; const transformVText = (dir, node, context) => { const { exp, loc } = dir; if (!exp) { context.onError( createDOMCompilerError(55, loc) ); } if (node.children.length) { context.onError( createDOMCompilerError(56, loc) ); node.children.length = 0; } return { props: [ createObjectProperty( createSimpleExpression(`textContent`, true), exp ? getConstantType(exp, context) > 0 ? exp : createCallExpression( context.helperString(TO_DISPLAY_STRING), [exp], loc ) : createSimpleExpression("", true) ) ] }; }; const transformModel = (dir, node, context) => { const baseResult = transformModel$1(dir, node, context); if (!baseResult.props.length || node.tagType === 1) { return baseResult; } if (dir.arg) { context.onError( createDOMCompilerError( 58, dir.arg.loc ) ); } function checkDuplicatedValue() { const value = findDir(node, "bind"); if (value && isStaticArgOf(value.arg, "value")) { context.onError( createDOMCompilerError( 60, value.loc ) ); } } const { tag } = node; const isCustomElement = context.isCustomElement(tag); if (tag === "input" || tag === "textarea" || tag === "select" || isCustomElement) { let directiveToUse = V_MODEL_TEXT; let isInvalidType = false; if (tag === "input" || isCustomElement) { const type = findProp(node, `type`); if (type) { if (type.type === 7) { directiveToUse = V_MODEL_DYNAMIC; } else if (type.value) { switch (type.value.content) { case "radio": directiveToUse = V_MODEL_RADIO; break; case "checkbox": directiveToUse = V_MODEL_CHECKBOX; break; case "file": isInvalidType = true; context.onError( createDOMCompilerError( 59, dir.loc ) ); break; default: checkDuplicatedValue(); break; } } } else if (hasDynamicKeyVBind(node)) { directiveToUse = V_MODEL_DYNAMIC; } else { checkDuplicatedValue(); } } else if (tag === "select") { directiveToUse = V_MODEL_SELECT; } else { checkDuplicatedValue(); } if (!isInvalidType) { baseResult.needRuntime = context.helper(directiveToUse); } } else { context.onError( createDOMCompilerError( 57, dir.loc ) ); } baseResult.props = baseResult.props.filter( (p) => !(p.key.type === 4 && p.key.content === "modelValue") ); return baseResult; }; const isEventOptionModifier = /* @__PURE__ */ makeMap(`passive,once,capture`); const isNonKeyModifier = /* @__PURE__ */ makeMap( // event propagation management `stop,prevent,self,ctrl,shift,alt,meta,exact,middle` ); const maybeKeyModifier = /* @__PURE__ */ makeMap("left,right"); const isKeyboardEvent = /* @__PURE__ */ makeMap(`onkeyup,onkeydown,onkeypress`); const resolveModifiers = (key, modifiers, context, loc) => { const keyModifiers = []; const nonKeyModifiers = []; const eventOptionModifiers = []; for (let i = 0; i < modifiers.length; i++) { const modifier = modifiers[i].content; if (isEventOptionModifier(modifier)) { eventOptionModifiers.push(modifier); } else { if (maybeKeyModifier(modifier)) { if (isStaticExp(key)) { if (isKeyboardEvent(key.content.toLowerCase())) { keyModifiers.push(modifier); } else { nonKeyModifiers.push(modifier); } } else { keyModifiers.push(modifier); nonKeyModifiers.push(modifier); } } else { if (isNonKeyModifier(modifier)) { nonKeyModifiers.push(modifier); } else { keyModifiers.push(modifier); } } } } return { keyModifiers, nonKeyModifiers, eventOptionModifiers }; }; const transformClick = (key, event) => { const isStaticClick = isStaticExp(key) && key.content.toLowerCase() === "onclick"; return isStaticClick ? createSimpleExpression(event, true) : key.type !== 4 ? createCompoundExpression([ `(`, key, `) === "onClick" ? "${event}" : (`, key, `)` ]) : key; }; const transformOn = (dir, node, context) => { return transformOn$1(dir, node, context, (baseResult) => { const { modifiers } = dir; if (!modifiers.length) return baseResult; let { key, value: handlerExp } = baseResult.props[0]; const { keyModifiers, nonKeyModifiers, eventOptionModifiers } = resolveModifiers(key, modifiers, context, dir.loc); if (nonKeyModifiers.includes("right")) { key = transformClick(key, `onContextmenu`); } if (nonKeyModifiers.includes("middle")) { key = transformClick(key, `onMouseup`); } if (nonKeyModifiers.length) { handlerExp = createCallExpression(context.helper(V_ON_WITH_MODIFIERS), [ handlerExp, JSON.stringify(nonKeyModifiers) ]); } if (keyModifiers.length && // if event name is dynamic, always wrap with keys guard (!isStaticExp(key) || isKeyboardEvent(key.content.toLowerCase()))) { handlerExp = createCallExpression(context.helper(V_ON_WITH_KEYS), [ handlerExp, JSON.stringify(keyModifiers) ]); } if (eventOptionModifiers.length) { const modifierPostfix = eventOptionModifiers.map(capitalize).join(""); key = isStaticExp(key) ? createSimpleExpression(`${key.content}${modifierPostfix}`, true) : createCompoundExpression([`(`, key, `) + "${modifierPostfix}"`]); } return { props: [createObjectProperty(key, handlerExp)] }; }); }; const transformShow = (dir, node, context) => { const { exp, loc } = dir; if (!exp) { context.onError( createDOMCompilerError(61, loc) ); } return { props: [], needRuntime: context.helper(V_SHOW) }; }; const transformTransition = (node, context) => { if (node.type === 1 && node.tagType === 1) { const component = context.isBuiltInComponent(node.tag); if (component === TRANSITION) { return () => { if (!node.children.length) { return; } if (hasMultipleChildren(node)) { context.onError( createDOMCompilerError( 62, { start: node.children[0].loc.start, end: node.children[node.children.length - 1].loc.end, source: "" } ) ); } const child = node.children[0]; if (child.type === 1) { for (const p of child.props) { if (p.type === 7 && p.name === "show") { node.props.push({ type: 6, name: "persisted", nameLoc: node.loc, value: void 0, loc: node.loc }); } } } }; } } }; function hasMultipleChildren(node) { const children = node.children = node.children.filter( (c) => c.type !== 3 && !(c.type === 2 && !c.content.trim()) ); const child = children[0]; return children.length !== 1 || child.type === 11 || child.type === 9 && child.branches.some(hasMultipleChildren); } const ignoreSideEffectTags = (node, context) => { if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) { context.onError( createDOMCompilerError( 63, node.loc ) ); context.removeNode(); } }; function isValidHTMLNesting(parent, child) { if (parent in onlyValidChildren) { return onlyValidChildren[parent].has(child); } if (child in onlyValidParents) { return onlyValidParents[child].has(parent); } if (parent in knownInvalidChildren) { if (knownInvalidChildren[parent].has(child)) return false; } if (child in knownInvalidParents) { if (knownInvalidParents[child].has(parent)) return false; } return true; } const headings = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]); const emptySet = /* @__PURE__ */ new Set([]); const onlyValidChildren = { head: /* @__PURE__ */ new Set([ "base", "basefront", "bgsound", "link", "meta", "title", "noscript", "noframes", "style", "script", "template" ]), optgroup: /* @__PURE__ */ new Set(["option"]), select: /* @__PURE__ */ new Set(["optgroup", "option", "hr"]), // table table: /* @__PURE__ */ new Set(["caption", "colgroup", "tbody", "tfoot", "thead"]), tr: /* @__PURE__ */ new Set(["td", "th"]), colgroup: /* @__PURE__ */ new Set(["col"]), tbody: /* @__PURE__ */ new Set(["tr"]), thead: /* @__PURE__ */ new Set(["tr"]), tfoot: /* @__PURE__ */ new Set(["tr"]), // these elements can not have any children elements script: emptySet, iframe: emptySet, option: emptySet, textarea: emptySet, style: emptySet, title: emptySet }; const onlyValidParents = { // sections html: emptySet, body: /* @__PURE__ */ new Set(["html"]), head: /* @__PURE__ */ new Set(["html"]), // table td: /* @__PURE__ */ new Set(["tr"]), colgroup: /* @__PURE__ */ new Set(["table"]), caption: /* @__PURE__ */ new Set(["table"]), tbody: /* @__PURE__ */ new Set(["table"]), tfoot: /* @__PURE__ */ new Set(["table"]), col: /* @__PURE__ */ new Set(["colgroup"]), th: /* @__PURE__ */ new Set(["tr"]), thead: /* @__PURE__ */ new Set(["table"]), tr: /* @__PURE__ */ new Set(["tbody", "thead", "tfoot"]), // data list dd: /* @__PURE__ */ new Set(["dl", "div"]), dt: /* @__PURE__ */ new Set(["dl", "div"]), // other figcaption: /* @__PURE__ */ new Set(["figure"]), // li: new Set(["ul", "ol"]), summary: /* @__PURE__ */ new Set(["details"]), area: /* @__PURE__ */ new Set(["map"]) }; const knownInvalidChildren = { p: /* @__PURE__ */ new Set([ "address", "article", "aside", "blockquote", "center", "details", "dialog", "dir", "div", "dl", "fieldset", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "li", "main", "nav", "menu", "ol", "p", "pre", "section", "table", "ul" ]), svg: /* @__PURE__ */ new Set([ "b", "blockquote", "br", "code", "dd", "div", "dl", "dt", "em", "embed", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "i", "img", "li", "menu", "meta", "ol", "p", "pre", "ruby", "s", "small", "span", "strong", "sub", "sup", "table", "u", "ul", "var" ]) }; const knownInvalidParents = { a: /* @__PURE__ */ new Set(["a"]), button: /* @__PURE__ */ new Set(["button"]), dd: /* @__PURE__ */ new Set(["dd", "dt"]), dt: /* @__PURE__ */ new Set(["dd", "dt"]), form: /* @__PURE__ */ new Set(["form"]), li: /* @__PURE__ */ new Set(["li"]), h1: headings, h2: headings, h3: headings, h4: headings, h5: headings, h6: headings }; const validateHtmlNesting = (node, context) => { if (node.type === 1 && node.tagType === 0 && context.parent && context.parent.type === 1 && context.parent.tagType === 0 && !isValidHTMLNesting(context.parent.tag, node.tag)) { const error = new SyntaxError( `<${node.tag}> cannot be child of <${context.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.` ); error.loc = node.loc; context.onWarn(error); } }; const DOMNodeTransforms = [ transformStyle, ...[transformTransition, validateHtmlNesting] ]; const DOMDirectiveTransforms = { cloak: noopDirectiveTransform, html: transformVHtml, text: transformVText, model: transformModel, // override compiler-core on: transformOn, // override compiler-core show: transformShow }; function compile(src, options = {}) { return baseCompile( src, extend({}, parserOptions, options, { nodeTransforms: [ // ignore <script> and <tag> // this is not put inside DOMNodeTransforms because that list is used // by compiler-ssr to generate vnode fallback branches ignoreSideEffectTags, ...DOMNodeTransforms, ...options.nodeTransforms || [] ], directiveTransforms: extend( {}, DOMDirectiveTransforms, options.directiveTransforms || {} ), transformHoist: null }) ); } { initDev(); } const compileCache = /* @__PURE__ */ Object.create(null); function compileToFunction(template, options) { if (!isString(template)) { if (template.nodeType) { template = template.innerHTML; } else { warn(`invalid template option: `, template); return NOOP; } } const key = genCacheKey(template, options); const cached = compileCache[key]; if (cached) { return cached; } if (template[0] === "#") { const el = document.querySelector(template); if (!el) { warn(`Template element not found or is empty: ${template}`); } template = el ? el.innerHTML : ``; } const opts = extend( { hoistStatic: true, onError: onError , onWarn: (e) => onError(e, true) }, options ); if (!opts.isCustomElement && typeof customElements !== "undefined") { opts.isCustomElement = (tag) => !!customElements.get(tag); } const { code } = compile(template, opts); function onError(err, asWarning = false) { const message = asWarning ? err.message : `Template compilation error: ${err.message}`; const codeFrame = err.loc && generateCodeFrame( template, err.loc.start.offset, err.loc.end.offset ); warn(codeFrame ? `${message} ${codeFrame}` : message); } const render = new Function(code)() ; render._rc = true; return compileCache[key] = render; } registerRuntimeCompiler(compileToFunction); exports.BaseTransition = BaseTransition; exports.BaseTransitionPropsValidators = BaseTransitionPropsValidators; exports.Comment = Comment; exports.DeprecationTypes = DeprecationTypes; exports.EffectScope = EffectScope; exports.ErrorCodes = ErrorCodes; exports.ErrorTypeStrings = ErrorTypeStrings; exports.Fragment = Fragment; exports.KeepAlive = KeepAlive; exports.ReactiveEffect = ReactiveEffect; exports.Static = Static; exports.Suspense = Suspense; exports.Teleport = Teleport; exports.Text = Text; exports.TrackOpTypes = TrackOpTypes; exports.Transition = Transition; exports.TransitionGroup = TransitionGroup; exports.TriggerOpTypes = TriggerOpTypes; exports.VueElement = VueElement; exports.assertNumber = assertNumber; exports.callWithAsyncErrorHandling = callWithAsyncErrorHandling; exports.callWithErrorHandling = callWithErrorHandling; exports.camelize = camelize; exports.capitalize = capitalize; exports.cloneVNode = cloneVNode; exports.compatUtils = compatUtils; exports.compile = compileToFunction; exports.computed = computed; exports.createApp = createApp; exports.createBlock = createBlock; exports.createCommentVNode = createCommentVNode; exports.createElementBlock = createElementBlock; exports.createElementVNode = createBaseVNode; exports.createHydrationRenderer = createHydrationRenderer; exports.createPropsRestProxy = createPropsRestProxy; exports.createRenderer = createRenderer; exports.createSSRApp = createSSRApp; exports.createSlots = createSlots; exports.createStaticVNode = createStaticVNode; exports.createTextVNode = createTextVNode; exports.createVNode = createVNode; exports.customRef = customRef; exports.defineAsyncComponent = defineAsyncComponent; exports.defineComponent = defineComponent; exports.defineCustomElement = defineCustomElement; exports.defineEmits = defineEmits; exports.defineExpose = defineExpose; exports.defineModel = defineModel; exports.defineOptions = defineOptions; exports.defineProps = defineProps; exports.defineSSRCustomElement = defineSSRCustomElement; exports.defineSlots = defineSlots; exports.devtools = devtools; exports.effect = effect; exports.effectScope = effectScope; exports.getCurrentInstance = getCurrentInstance; exports.getCurrentScope = getCurrentScope; exports.getCurrentWatcher = getCurrentWatcher; exports.getTransitionRawChildren = getTransitionRawChildren; exports.guardReactiveProps = guardReactiveProps; exports.h = h; exports.handleError = handleError; exports.hasInjectionContext = hasInjectionContext; exports.hydrate = hydrate; exports.hydrateOnIdle = hydrateOnIdle; exports.hydrateOnInteraction = hydrateOnInteraction; exports.hydrateOnMediaQuery = hydrateOnMediaQuery; exports.hydrateOnVisible = hydrateOnVisible; exports.initCustomFormatter = initCustomFormatter; exports.initDirectivesForSSR = initDirectivesForSSR; exports.inject = inject; exports.isMemoSame = isMemoSame; exports.isProxy = isProxy; exports.isReactive = isReactive; exports.isReadonly = isReadonly; exports.isRef = isRef; exports.isRuntimeOnly = isRuntimeOnly; exports.isShallow = isShallow; exports.isVNode = isVNode; exports.markRaw = markRaw; exports.mergeDefaults = mergeDefaults; exports.mergeModels = mergeModels; exports.mergeProps = mergeProps; exports.nextTick = nextTick; exports.normalizeClass = normalizeClass; exports.normalizeProps = normalizeProps; exports.normalizeStyle = normalizeStyle; exports.onActivated = onActivated; exports.onBeforeMount = onBeforeMount; exports.onBeforeUnmount = onBeforeUnmount; exports.onBeforeUpdate = onBeforeUpdate; exports.onDeactivated = onDeactivated; exports.onErrorCaptured = onErrorCaptured; exports.onMounted = onMounted; exports.onRenderTracked = onRenderTracked; exports.onRenderTriggered = onRenderTriggered; exports.onScopeDispose = onScopeDispose; exports.onServerPrefetch = onServerPrefetch; exports.onUnmounted = onUnmounted; exports.onUpdated = onUpdated; exports.onWatcherCleanup = onWatcherCleanup; exports.openBlock = openBlock; exports.popScopeId = popScopeId; exports.provide = provide; exports.proxyRefs = proxyRefs; exports.pushScopeId = pushScopeId; exports.queuePostFlushCb = queuePostFlushCb; exports.reactive = reactive; exports.readonly = readonly; exports.ref = ref; exports.registerRuntimeCompiler = registerRuntimeCompiler; exports.render = render; exports.renderList = renderList; exports.renderSlot = renderSlot; exports.resolveComponent = resolveComponent; exports.resolveDirective = resolveDirective; exports.resolveDynamicComponent = resolveDynamicComponent; exports.resolveFilter = resolveFilter; exports.resolveTransitionHooks = resolveTransitionHooks; exports.setBlockTracking = setBlockTracking; exports.setDevtoolsHook = setDevtoolsHook; exports.setTransitionHooks = setTransitionHooks; exports.shallowReactive = shallowReactive; exports.shallowReadonly = shallowReadonly; exports.shallowRef = shallowRef; exports.ssrContextKey = ssrContextKey; exports.ssrUtils = ssrUtils; exports.stop = stop; exports.toDisplayString = toDisplayString; exports.toHandlerKey = toHandlerKey; exports.toHandlers = toHandlers; exports.toRaw = toRaw; exports.toRef = toRef; exports.toRefs = toRefs; exports.toValue = toValue; exports.transformVNodeArgs = transformVNodeArgs; exports.triggerRef = triggerRef; exports.unref = unref; exports.useAttrs = useAttrs; exports.useCssModule = useCssModule; exports.useCssVars = useCssVars; exports.useHost = useHost; exports.useId = useId; exports.useModel = useModel; exports.useSSRContext = useSSRContext; exports.useShadowRoot = useShadowRoot; exports.useSlots = useSlots; exports.useTemplateRef = useTemplateRef; exports.useTransitionState = useTransitionState; exports.vModelCheckbox = vModelCheckbox; exports.vModelDynamic = vModelDynamic; exports.vModelRadio = vModelRadio; exports.vModelSelect = vModelSelect; exports.vModelText = vModelText; exports.vShow = vShow; exports.version = version; exports.warn = warn; exports.watch = watch; exports.watchEffect = watchEffect; exports.watchPostEffect = watchPostEffect; exports.watchSyncEffect = watchSyncEffect; exports.withAsyncContext = withAsyncContext; exports.withCtx = withCtx; exports.withDefaults = withDefaults; exports.withDirectives = withDirectives; exports.withKeys = withKeys; exports.withMemo = withMemo; exports.withModifiers = withModifiers; exports.withScopeId = withScopeId; return exports; })({});
2301_80339408/order
js/vue3.js
JavaScript
unknown
562,699
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link href="css/global.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="app"> <div id="header"> <div class="login_header_mid"></div> <div class="login_header_right"><a href="index.html" class="blue">首页</a> | <a href="product.html" class="blue">商品展示页</a> | <a href="shopping.html" class="blue">购物车</a> | <a href="register.html" class="blue">注册</a></div> </div> <div id="main"> <div class="login_main_left"> <div> <img src="img/login_main_01.jpg" alt="中间图片"/> <img src="img/login_main_02.jpg" alt="中间图片"/> <img src="img/login_main_03.jpg" alt="中间图片"/> </div> <div class="login_main_end"> <dl class="login_green"> <dt>更多选择、更低价格</dt> <dd>100万种商品包含图书、数码、美妆、运动健康等,价格低于地面店20%以上</dd> </dl> <div class="login_main_dotted"></div> <dl class="login_green"> <dt>全场免运费、货到付款</dt> <dd>免费送货上门、360个城市货到付款。另有网上支付、邮局汇款等多种支付方式</dd> </dl> <div class="login_main_dotted"></div> <dl class="login_green"> <dt>真实、优质的商品评论</dt> <dd>千万用户真实、优质的商品评论,给您多角度、全方位的购物参考</dd> </dl> </div> </div> <div class="login_main_mid"> <div class="login_content_top">请登录云淘网</div> <div class="login_content_line"></div> <div style="clear:both;margin-left:80px;color: red;">{{errMsg}}</div> <dl class="login_content"> <dt>用户名:</dt> <dd> <input type="text" v-model="userLogin.username" autoComplete="on" placeholder="请输入用户名" class="login_content_input"> </dd> </dl> <dl class="login_content"> <dt>密码:</dt> <dd> <input type="password" v-model="userLogin.password" autoComplete="on" placeholder="请输入密码" class="login_content_input"> </dd> </dl> <dl class="login_content"> <dt> &nbsp;</dt> <dd> <button @click.native.prevent="login"> 登录 </el-button> </dd> </dl> <div class="login_content_dotted"></div> <div class="login_content_end_bg"> <div class="login_content_end_bg_top"> <label class="login_content_bold">还不是云淘网用户?</label>快捷方便的免费注册 </div> <div class="login_content_end_bg_end"> <input @click="register()" class="login_register_out" value=" " type="button"/> </div> </div> </div> <div class="login_main_right"><img src="img/login_main_04.jpg" alt="右侧图片"/></div> </div> </div> </body> </html> <script src="js/vue3.js"></script> <script src="js/axios.js"></script> <script src="js/request.js"></script> <script src="js/common.js"></script> <script> const {createApp} = Vue.createApp({ data(){ return { userLogin:{ username:'', password:'' }, errMsg:'' } }, methods:{ login(){ request.post(MALL_USER_BASEURL + '/login',this.userLogin) .then(resp => { if(resp.code===2000){ location.href = 'search.html' }else{ this.errMsg= resp.message; } }) }, register(){ window.location = "register.html" } }, }).mount('#app') </script>
2301_80339408/order
login.html
HTML
unknown
4,319
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <title>结算页</title> <link rel="stylesheet" type="text/css" href="./css/style.css" /> <link rel="stylesheet" type="text/css" href="./css/order.css" /> </head> <body> <div id="app"> <!--head--> <!-- 头部栏位 --> <!--页面顶部--> <div id="nav-bottom"> <!--顶部--> <div class="nav-top"> <div class="top"> <div class="py-container"> <div class="shortcut"> <ul class="fl"> <li class="f-item">shop欢迎您!</li> <li class="f-item">请<a href="login.html" target="_blank">登录</a> <span><a href="register.html" target="_blank">免费注册</a></span></li> </ul> <div class="fr typelist"> <ul class="types"> <li class="f-item"><span>我的订单</span></li> <li class="f-item"><span><a href="cart.html" target="_blank">我的购物车</a></span></li> <li class="f-item"><span><a href="home.html" target="_blank">我的shop</a></span></li> <li class="f-item"><span>shop会员</span></li> <li class="f-item"><span>企业采购</span></li> <li class="f-item"><span>关注shop</span></li> <li class="f-item"><span><a href="cooperation.html" target="_blank">合作招商</a></span></li> <li class="f-item"><span><a href="shoplogin.html" target="_blank">商家后台</a></span></li> <li class="f-item"><span>网站导航</li> </ul> </div> </div> </div> </div> <!--头部--> <div class="header"> <div class="py-container"> <div class="yui3-g Logo"> <div class="yui3-u Left logoArea"> <a class="logo-bd" title="shop" href="index.html" target="_blank"></a> </div> <div class="yui3-u Rit searchArea"> <div class="search"> <form action="" class="sui-form form-inline"> <!--searchAutoComplete--> <div class="input-append"> <input type="text" id="autocomplete" class="input-error input-xxlarge" /> <button class="sui-btn btn-xlarge btn-danger" type="button">搜索</button> </div> </form> </div> </div> </div> </div> </div> </div> </div> <div class="cart py-container" id="app"> <!--主内容--> <div class="checkout py-container"> <div class="checkout-tit"> <h4 class="tit-txt">填写并核对订单信息</h4> </div> <div class="checkout-steps"> <!--收件人信息--> <div class="step-tit"> <h5>收件人信息<span></span></h5> </div> <div class="step-cont"> <div class="addressInfo"> <ul class="addr-detail"> <li class="addr-item"> <div class="choose-address" v-for="(item,index) in addressList" :key="index"> <div @click="defaultAddress(item)" :class="defaultStatus == item.id? 'con name selected':'con name'"> <a href="javascript:;">{{item.name}}</a></div> <div class="con address"> <span class="place">{{item.receiveAddress}}</span> <span class="phone">{{item.phoneNumber}}<span v-if="item.defaultStatus==1">【默认】</span></span> </div> <div class="clearfix"></div> </div> </li> </ul> <!--确认地址--> </div> </div> <div class="hr"></div> <!--支付和送货--> <div class="payshipInfo"> <div class="step-tit"> <h5>支付方式</h5> </div> <div class="step-cont"> <ul class="payType"> <li :class="order.playType==1?'selected':''" @click="defaultPayType(1)">支付宝</li> <li :class="order.playType==2?'selected':''" @click="defaultPayType(2)">微信</span></li> </ul> </div> <div class="hr"></div> <div class="step-tit"> <h5>送货清单</h5> </div> <div class="step-cont"> <ul class="send-detail"> <li> <div class="sendGoods"> <span>商品清单:</span> <ul class="yui3-g" v-for="(order,index) in orders" :key="index"> <li class="yui3-u-1-6"> <span><img :src="order.image" style="max-height: 100px;"/></span> </li> <li class="yui3-u-7-12"> <div class="desc">{{order.name}}</div> <div class="seven">7天无理由退货</div> </li> <li class="yui3-u-1-12"> <div class="price">¥{{order.price}}</div> </li> <li class="yui3-u-1-12"> <div class="num">X{{order.num}}</div> </li> <li class="yui3-u-1-12"> <div class="exit">有货</div> </li> </ul> </div> </li> </ul> </div> </div> </div> </div> <div class="clearfix trade"> <div class="fc-price">应付金额: <span class="price">¥{{allMoney()}}</span></div> <div class="fc-receiverInfo"> 寄送至: <span id="receive-address">{{address.receiveAddress}}</span> 收货人: <span id="receive-name">{{address.name}}</span> <span id="receive-phone">{{address.phoneNumber}}</span> </div> </div> <div class="submit"> <a class="sui-btn btn-danger btn-xlarge" @click="commit()()">提交订单</a> </div> </div> <!-- 底部栏位 --> <!--页面底部--> <div class="clearfix footer"> <div class="py-container"> <div class="footlink"> <div class="Mod-service"> <ul class="Mod-Service-list"> <li class="grid-service-item intro intro1"> <i class="serivce-item fl"></i> <div class="service-text"> <h4>正品保障</h4> <p>正品保障,提供发票</p> </div> </li> <li class="grid-service-item intro intro2"> <i class="serivce-item fl"></i> <div class="service-text"> <h4>正品保障</h4> <p>正品保障,提供发票</p> </div> </li> <li class="grid-service-item intro intro3"> <i class="serivce-item fl"></i> <div class="service-text"> <h4>正品保障</h4> <p>正品保障,提供发票</p> </div> </li> <li class="grid-service-item intro intro4"> <i class="serivce-item fl"></i> <div class="service-text"> <h4>正品保障</h4> <p>正品保障,提供发票</p> </div> </li> <li class="grid-service-item intro intro5"> <i class="serivce-item fl"></i> <div class="service-text"> <h4>正品保障</h4> <p>正品保障,提供发票</p> </div> </li> </ul> </div> <div class="clearfix Mod-list"> <div class="yui3-g"> <div class="yui3-u-1-6"> <h4>购物指南</h4> <ul class="unstyled"> <li>购物流程</li> <li>会员介绍</li> <li>生活旅行/团购</li> <li>常见问题</li> <li>购物指南</li> </ul> </div> <div class="yui3-u-1-6"> <h4>配送方式</h4> <ul class="unstyled"> <li>上门自提</li> <li>211限时达</li> <li>配送服务查询</li> <li>配送费收取标准</li> <li>海外配送</li> </ul> </div> <div class="yui3-u-1-6"> <h4>支付方式</h4> <ul class="unstyled"> <li>货到付款</li> <li>在线支付</li> <li>分期付款</li> <li>邮局汇款</li> <li>公司转账</li> </ul> </div> <div class="yui3-u-1-6"> <h4>售后服务</h4> <ul class="unstyled"> <li>售后政策</li> <li>价格保护</li> <li>退款说明</li> <li>返修/退换货</li> <li>取消订单</li> </ul> </div> <div class="yui3-u-1-6"> <h4>特色服务</h4> <ul class="unstyled"> <li>夺宝岛</li> <li>DIY装机</li> <li>延保服务</li> <li>购物卡</li> <li>会员充值卡</li> </ul> </div> <div class="yui3-u-1-6"> <h4>帮助中心</h4> <ul class="unstyled"> <li>夺宝岛</li> <li>DIY装机</li> <li>延保服务</li> <li>购物卡</li> <li>会员充值卡</li> </ul> </div> </div> </div> <div class="Mod-copyright"> <ul class="helpLink"> <li>关于我们<span class="space"></span></li> <li>联系我们<span class="space"></span></li> <li>关于我们<span class="space"></span></li> <li>商家入驻<span class="space"></span></li> <li>营销中心<span class="space"></span></li> <li>友情链接<span class="space"></span></li> <li>关于我们<span class="space"></span></li> <li>营销中心<span class="space"></span></li> <li>友情链接<span class="space"></span></li> <li>关于我们</li> </ul> <p></p> <p>Copyright©2025-2030 All Rights Reserved.</p> </div> </div> </div> </div> </div> <!--页面底部END--> <script src="js/vue3.js"></script> <script src="js/axios.js"></script> <script src="js/request.js"></script> <script src="js/common.js"></script> <script> const { createApp } = Vue.createApp({ data() { return { orders:[], order:{ userId:null, playType:1, orderType:0 }, addressList:{}, address:{}, defaultStatus:0 } }, methods:{ // 获取商品 getOrders(){ if(sessionStorage.getItem("orders")){ let json = sessionStorage.getItem("orders") this.orders = JSON.parse(json) } }, // 加载用户地址 getAddress(){ if(sessionStorage.getItem("userInfo")){ let json = sessionStorage.getItem("userInfo") let userInfo = JSON.parse(json) request.get(MALL_USER_BASEURL + '/user/address/' + userInfo.userId) .then(resp =>{ if(resp.code == 2000){ let json = JSON.stringify(resp.data) this.addressList = JSON.parse(json); }else if(resp.code == 3003 || resp.code == 2001){ location.href = 'login.html' } }) }else{ location.href = 'login.html' } }, defaultAddress(obj){ let json = JSON.stringify(obj) this.address = JSON.parse(json) this.defaultStatus = obj.id }, defaultPayType(value){ this.order.playType = value }, allMoney(){ let moneys = 0.0; for(let i=0;i<this.orders.length;i++){ moneys+=this.orders[i].num*this.orders[i].price } return moneys; }, // 提交订单 commit(){ if(sessionStorage.getItem("userInfo")){ let json = sessionStorage.getItem("userInfo") let userInfo = JSON.parse(json) this.order['userId'] = userInfo.userId this.order['recipients'] = this.address.name this.order['recipientsMobile'] = this.address.phoneNumber this.order['recipientsAddress'] = this.address.receiveAddress let ids = [] let orderDetails = [] for(let i=0;i<this.orders.length;i++){ let orderDetail={ skuId:this.orders[i].skuId, skuName:this.orders[i].name, price:this.orders[i].price, quantity:this.orders[i].num, image:this.orders[i].image } orderDetails.push(orderDetail) ids.push(this.orders[i]._id) } this.order['orderDetails'] = orderDetails this.order['cartIds'] = ids; request.post(MALL_ORDER_BASEURL + '/order/save',this.order) .then(resp =>{ location.href = 'cart.html' }) }else{ location.href = 'login.html' } } }, watch:{ addressList(v){ for(let i = 0; i < v.length; i++){ if(v[i].defaultStatus == 1){ this.defaultAddress(v[i]) break; } } } }, mounted() { this.getOrders() this.getAddress() } }).mount('#app') </script> </body> </html>
2301_80339408/order
order.html
HTML
unknown
18,510
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>注册页面</title> <link href="css/global.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="app"> <div id="header"> <div id="register_header"> <div class="register_header_right"><a href="index.html" class="blue">首页</a> | <a href="#" class="blue">商品展示页</a> | <a href="#" class="blue">购物车</a> | <a href="login.html" class="blue">登录</a></div> </div> </div> <div id="main"> <div class="register_content"> <div class="register_top_bg"></div> <div class="register_top_bg_mid"> <div class="register_top_bg_two_left"></div> <div class="register_top_bg_two_right"></div> <div class="register_title_bg"><br/>您所提供的资料不会做其他用途,敬请安心填写。</div> </div> <div class="register_dotted_bg"></div> <div class="register_message"> <dl class="register_row"> <dt>用户名:</dt> <dd><input v-model="userInfo.username"id="username" type="text" class="register_input"/></dd> </dl> <dl class="register_row"> <dt>Email:</dt> <dd><input v-model="userInfo.email"id="email" type="text" class="register_input"/></dd> </dl> <dl class="register_row"> <dt>昵称:</dt> <dd><input v-model="userInfo.nickName" id="nickName" type="text" class="register_input"/></dd> </dl> <dl class="register_row"> <dt>密码:</dt> <dd><input v-model="userInfo.password" id="pwd" type="password" class="register_input"/></dd> </dl> <dl class="register_row"> <dt>再输入一次密码:</dt> <dd><input id="repwd" type="password" class="register_input"/></dd> </dl> <dl class="register_row"> <dt>备注:</dt> <dd><input v-model="userInfo.note" id="note" type="text" class="register_input"/></dd> </dl> <dl class="register_row"> <dt>&nbsp;</dt> <dd><input type="button" value="注册" @click="register"/></dd> </dl> </div> </div> </div> </div> </body> </html> <script src="js/vue3.js"></script> <script src="js/axios.js"></script> <script src="js/request.js"></script> <script src="js/common.js"></script> <script> const {createApp} = Vue.createApp({ data(){ return { userInfo:{ username:null, password:null, nickName:null, email:null, note:null } } }, methods:{ register(){ request.post(MALL_USER_BASEURL + '/user/register',this.userInfo) .then(resp => { if(resp.code===2000){ location.href = 'login.html' } }) } }, }).mount('#app') </script>
2301_80339408/order
register.html
HTML
unknown
3,378
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <title>产品列表页</title> <link rel="icon" href="./img/favicon.ico"> <link rel="stylesheet" type="text/css" href="./css/style.css" /> <link rel="stylesheet" type="text/css" href="./css/style.css" /> </head> <body> <div id="app"> <!-- 头部栏位 --> <!--页面顶部--> <div id="nav-bottom"> <!--顶部--> <div class="nav-top"> <div class="top"> <div class="py-container"> <div class="shortcut"> <ul class="fl"> <li class="f-item">shop欢迎您!</li> <li class="f-item">请<a href="login.html" target="_blank">登录</a> <span><a href="register.html" target="_blank">免费注册</a></span></li> </ul> <div class="fr typelist"> <ul class="types"> <li class="f-item"><a href="order.html" >我的订单</a></li> <li class="f-item"><span><a href="cart.html" >我的购物车</a></span> </li> <li class="f-item"><span><a href="home.html" target="_blank">我的shop</a></span> </li> <li class="f-item"><span>shop会员</span></li> <li class="f-item"><span>企业采购</span></li> <li class="f-item"><span>关注shop</span></li> <li class="f-item"><span><a href="cooperation.html" target="_blank">合作招商</a></span></li> <li class="f-item"><span><a href="shoplogin.html" target="_blank">商家后台</a></span></li> <li class="f-item"><span>网站导航</li> </ul> </div> </div> </div> </div> <!--头部--> <div class="header"> <div class="py-container"> <div class="yui3-g"> <div class="yui3-u Left logoArea"> <a class="logo-bd" title="shop" href="index.html" target="_blank"></a> </div> <div class="yui3-u Rit searchArea"> <div class="search"> <form action="" class="sui-form form-inline"> <!--searchAutoComplete--> <div class="input-append"> <input v-model="product.skuName" type="text" id="autocomplete" class="input-error input-xxlarge" /> <button class="sui-btn btn-xlarge btn-danger" type="button" @click="search">搜索</button> </div> </form> </div> </div> </div> </div> </div> </div> </div> <!-- 商品分类导航 --> <div class="typeNav"> <div class="py-container"> <div class="yui3-g NavList"> <div class="all-sorts-list"> <div :class="active==0?'yui3-u Left all-sort':'yui3-u Left'"> <h4 style="text-align: center;cursor: pointer;" @click="cleanAll()">全部商品分类</h4> </div> </div> <div class="yui3-u navArea"> <ul class="nav"> <li :class="active==one.id?'f-item all-sort':'f-item'" v-for="(one,i) in categoryList"> <a href="javaScript:void(0)" @click="getTwo(one.id,one.categoryList)">{{one.name}}</a> </li> </ul> </div> <div class="yui3-u Right"></div> </div> </div> </div> <!--list-content--> <div class="main"> <div class="py-container"> <div class="clearfix selector"> <div class="type-wrap"> <div class="fl key"> <ul class="sui-nav"> <li :class="twoActive==two.id?'selected':''" v-for="(two,i) in twoCategoryList"> <a href="javaScript:void(0)" @click="getThree(two.id,two.categoryList)">{{two.name}}</a> </li> </ul> </div> <div class="fr value"> <div class="fl "> <ul class="sui-nav"> <li :class="threeActive==three.id?'selected':''" v-for="(three,i) in threeCategoryList"> <a href="javaScript:void(0)" @click="getSkuInfoByCategory(three.id)">{{three.name}}</a> </li> </ul> </div> <div class="clear"></div> <div class="logos"> <ul class="logo-list"> <li :class="brandActive==item.id?'active':''" v-for="item in brandList"> <a href="javaScript:void(0)" @click="getSkuInfoByBrand(item.id)"><img :src="item.logo" /></a></li> </ul> </div> </div> </div> </div> <!--details--> <div class="details"> <div class="sui-navbar"> <div class="navbar-inner filter"> <ul class="sui-nav"> <li class="active"> <a href="#">综合</a> </li> <li> <a href="#">销量</a> </li> <li> <a href="#">新品</a> </li> <li> <a href="#">评价</a> </li> <li> <a href="#">价格</a> </li> </ul> </div> <div class="goods-list"> <ul class="yui3-g"> <li class="yui3-u-1-5" v-for="item in goodsList"> <div class="list-wrap"> <div class="p-img"> <a href="item.html" target="_blank"> <img :src="item.skuDefaultImg" /></a> </div> <div class="price"> <strong> <em>¥</em> <i>{{item.price}}</i> </strong> </div> <div class="attr"> <a target="_blank" href="item.html">{{item.skuName}}</a> </div> <div class="commit"> <i class="command">已有<span>5435</span>人评价</i> </div> <div class="operate"> <a href="javascript:void(0);" @click="addCart(item)" class="sui-btn btn-bordered btn-danger">加入购物车</a> <a href="javascript:void(0);" class="sui-btn btn-bordered">收藏</a> </div> </div> </li> </ul> </div> <div class="fr page"> <div class="sui-pagination pagination-large"> <ul> <li :class="pagination.current == 1 ? 'prev disabled':'prev'"> <a href="javaScript:void(0)" @click="handlePage((pagination.current - 1))">«上一页</a> </li> <li :class="pagination.current == (i + 1) ? 'active disabled' : ''" v-for="(e,i) in pagination.pages"> <a href="javaScript:void(0)" @click="handlePage(i + 1)">{{(i + 1)}}</a> </li> <li :class="pagination.current == pagination.pages ? 'next disabled':'next'"> <a href="javaScript:void(0)" @click="handlePage((pagination.current + 1))">下一页»</a> </li> </ul> <div><span>共{{pagination.pages}}页&nbsp;</span><span> 到第 <input type="text" class="page-num"> 页 </span></div> </div> </div> </div> </div> </div> <!-- 底部栏位 --> <!--页面底部--> <div class="clearfix footer"> <div class="py-container"> <div class="footlink"> <div class="Mod-service"> <ul class="Mod-Service-list"> <li class="grid-service-item intro intro1"> <i class="serivce-item fl"></i> <div class="service-text"> <h4>正品保障</h4> <p>正品保障,提供发票</p> </div> </li> <li class="grid-service-item intro intro2"> <i class="serivce-item fl"></i> <div class="service-text"> <h4>正品保障</h4> <p>正品保障,提供发票</p> </div> </li> <li class="grid-service-item intro intro3"> <i class="serivce-item fl"></i> <div class="service-text"> <h4>正品保障</h4> <p>正品保障,提供发票</p> </div> </li> <li class="grid-service-item intro intro4"> <i class="serivce-item fl"></i> <div class="service-text"> <h4>正品保障</h4> <p>正品保障,提供发票</p> </div> </li> <li class="grid-service-item intro intro5"> <i class="serivce-item fl"></i> <div class="service-text"> <h4>正品保障</h4> <p>正品保障,提供发票</p> </div> </li> </ul> </div> <div class="clearfix Mod-list"> <div class="yui3-g"> <div class="yui3-u-1-6"> <h4>购物指南</h4> <ul class="unstyled"> <li>购物流程</li> <li>会员介绍</li> <li>生活旅行/团购</li> <li>常见问题</li> <li>购物指南</li> </ul> </div> <div class="yui3-u-1-6"> <h4>配送方式</h4> <ul class="unstyled"> <li>上门自提</li> <li>211限时达</li> <li>配送服务查询</li> <li>配送费收取标准</li> <li>海外配送</li> </ul> </div> <div class="yui3-u-1-6"> <h4>支付方式</h4> <ul class="unstyled"> <li>货到付款</li> <li>在线支付</li> <li>分期付款</li> <li>邮局汇款</li> <li>公司转账</li> </ul> </div> <div class="yui3-u-1-6"> <h4>售后服务</h4> <ul class="unstyled"> <li>售后政策</li> <li>价格保护</li> <li>退款说明</li> <li>返修/退换货</li> <li>取消订单</li> </ul> </div> <div class="yui3-u-1-6"> <h4>特色服务</h4> <ul class="unstyled"> <li>夺宝岛</li> <li>DIY装机</li> <li>延保服务</li> <li>购物卡</li> <li>会员充值卡</li> </ul> </div> <div class="yui3-u-1-6"> <h4>帮助中心</h4> <ul class="unstyled"> <li>DIY装机</li> <li>购物卡</li> </ul> </div> </div> </div> <div class="Mod-copyright"> <ul class="helpLink"> <li>关于我们<span class="space"></span></li> <li>联系我们<span class="space"></span></li> <li>关于我们<span class="space"></span></li> <li>商家入驻<span class="space"></span></li> <li>营销中心<span class="space"></span></li> <li>友情链接<span class="space"></span></li> <li>关于我们<span class="space"></span></li> <li>营销中心<span class="space"></span></li> <li>友情链接<span class="space"></span></li> <li>关于我们</li> </ul> <p>Copyright©2025-2030 All Rights Reserved.</p> </div> </div> </div> </div> </div> </div> </body> </html> <script src="js/vue3.js"></script> <script src="js/axios.js"></script> <script src="js/request.js"></script> <script src="js/common.js"></script> <script> const { createApp } = Vue.createApp({ data() { return { active: 0, twoActive :0, threeActive:0, brandActive:0, categoryList: {}, twoCategoryList: [], threeCategoryList: [], brandList:[], product: { 'skuName': null, 'oneCategoryId':null, 'twoCategoryId':null, 'categoryId':null, 'brandId':null }, page: { 'current': 1, 'size': 10 }, goodsList: {}, pagination: {}, cart:{} } }, methods: { getCategory() { request.get(MALL_GOODS_BASEURL + '/goods/category/list') .then(resp => { if(resp.code === 2000){ let cts = JSON.stringify(resp.data) this.categoryList = JSON.parse(cts) this.getAllCategory() } }) }, getData() { this.goodsList = null this.product['current'] = this.page.current this.product['size'] = this.page.size request.get(MALL_GOODS_BASEURL + '/goods/product/list', { params: this.product }) .then(resp => { if (resp.code === 2000) { let goods = JSON.stringify(resp.data.records) this.goodsList = JSON.parse(goods) this.pagination['current'] = resp.data.current this.pagination['pages'] = resp.data.pages } }) }, search() { this.page['current'] = 1 this.getData() }, handlePage(page) { if (page >= 1 && page <= this.pagination.pages) { this.page['current'] = page this.getData() } }, getAllCategory() { this.twoCategoryList.length = 0 for (let i = 0; i < this.categoryList.length; i++) { let two = this.categoryList[i].categoryList; for (let j = 0; j < two.length; j++) { this.twoCategoryList.push(two[j]); } } this.getThree(0) this.getBrand() }, getTwo(id,list) { this.twoCategoryList = JSON.parse(JSON.stringify(list)) if(list){ this.getThree(0) this.getBrandByOneCategoryId(id) }else{ this.threeCategoryList.length = 0 this.brandList.length = 0 } if(id){ this.active = id this.reset() this.product.oneCategoryId = id this.getData() } }, getThree(id,list){ this.threeCategoryList.length = 0 if(id === 0){ for(let i = 0; i < this.twoCategoryList.length;i++){ let three = this.twoCategoryList[i].categoryList; for (let j = 0; j < three.length; j++) { this.threeCategoryList.push(three[j]); } } }else if(list){ this.threeCategoryList = JSON.parse(JSON.stringify(list)) this.getBrandByTwoCategoryId(id) } if(id){ this.reset() this.twoActive = id this.product.twoCategoryId = id this.page.current = 1 this.page.size = 10 this.getData() } }, getBrand(){ request.get(MALL_GOODS_BASEURL + '/goods/brand/list') .then(resp => { if(resp.code === 2000){ let bd = JSON.stringify(resp.data) this.brandList = JSON.parse(bd) } }) }, getBrandByOneCategoryId(id){ request.get(MALL_GOODS_BASEURL + '/goods/brand/category/1/' + id) .then(resp => { if(resp.code === 2000){ let bd = JSON.stringify(resp.data) this.brandList = JSON.parse(bd) } }) }, getBrandByTwoCategoryId(id){ request.get(MALL_GOODS_BASEURL + '/goods/brand/category/2/' + id) .then(resp => { if(resp.code === 2000){ let bd = JSON.stringify(resp.data) this.brandList = JSON.parse(bd) } }) }, getBrandByThreeCategoryId(id){ request.get(MALL_GOODS_BASEURL + '/goods/brand/category/3/' + id) .then(resp => { if(resp.code === 2000){ let bd = JSON.stringify(resp.data) this.brandList = JSON.parse(bd) } }) }, getSkuInfoByCategory(id){ this.threeActive = id this.getBrandByThreeCategoryId(id) this.product.categoryId = id this.page.current = 1 this.page.size = 10 this.getData() }, getSkuInfoByBrand(id){ this.brandActive = id this.product.brandId = id this.page.current = 1 this.page.size = 10 this.getData() }, getBrandById(id){ request.get(MALL_GOODS_BASEURL + '/goods/brand/category/' + id) .then(resp => { if(resp.code === 2000){ let bd = JSON.stringify(resp.data) this.brandList = JSON.parse(bd) } }) }, cleanAll() { this.brandList.length = 0 this.twoActive = 0 this.threeActive = 0 this.active = 0 this.brandActive = 0 this.reset() this.getAllCategory() this.getData() }, reset(){ this.page.current = 1 this.page.size = 10 this.product.brandId = null this.product.categoryId = null this.product.brandId = null this.product.oneCategoryId = null this.product.twoCategoryId = null }, addCart(obj){ if(sessionStorage.getItem("userInfo")){ let json = sessionStorage.getItem("userInfo") let userInfo = JSON.parse(json) let cart = {} cart['userId'] = userInfo.userId cart['num'] = 1 cart['skuId'] = obj.id cart['name'] = obj.skuName cart['price'] = obj.price cart['image'] = obj.skuDefaultImg request.post(MALL_CART_BASEURL + "/cart/save",cart) .then(resp => { if(resp.code == 2000){ location.href = 'cart.html' }else if(resp.code == 3003 || resp.code == 2001){ location.href = 'login.html' } }) }else{ location.href = 'login.html' } } }, mounted() { this.getCategory() this.getData() } }).mount('#app') </script>
2301_80339408/order
search.html
HTML
unknown
17,290
// src/formatter.rs use crate::parser::{format_error, Rule, SysYParser}; use pest::iterators::Pair; use pest::Parser; // FIXED: Re-added the necessary import for SysYParser::parse pub struct Formatter { output: String, indent_level: usize, is_start_of_line: bool, } impl Formatter { pub fn new() -> Self { Formatter { output: String::new(), indent_level: 0, is_start_of_line: true, } } pub fn format(input: &str) -> Result<String, String> { match SysYParser::parse(Rule::program, input) { Ok(pairs) => { let mut formatter = Formatter::new(); formatter.format_pair(pairs.into_iter().next().unwrap()); Ok(formatter.output.trim_end().to_string() + "\n") } Err(e) => Err(format_error(e)), } } } impl Formatter { fn write(&mut self, s: &str) { if self.is_start_of_line { self.output.push_str(&" ".repeat(self.indent_level)); self.is_start_of_line = false; } self.output.push_str(s); } fn writeln(&mut self) { self.output = self.output.trim_end().to_string(); self.output.push('\n'); self.is_start_of_line = true; } fn write_space(&mut self) { if !self.is_start_of_line { self.write(" "); } } fn indent(&mut self) { self.indent_level += 1; } fn dedent(&mut self) { self.indent_level -= 1; } } impl Formatter { fn format_children(&mut self, pair: Pair<Rule>) { for p in pair.into_inner() { self.format_pair(p); } } fn format_pair(&mut self, pair: Pair<Rule>) { match pair.as_rule() { Rule::program | Rule::CompUnit => self.format_comp_unit(pair), Rule::FuncDef => self.format_func_def(pair), Rule::Decl => self.format_children(pair), // FIXED: Corrected syntax from Rule.Decl to Rule::Decl Rule::ConstDecl | Rule::VarDecl => self.format_decl(pair), Rule::ConstDef | Rule::VarDef => self.format_def(pair), Rule::Block => self.format_block(pair), Rule::BlockItem | Rule::Stmt => self.format_children(pair), Rule::AssignStmt => self.format_assign_stmt(pair), Rule::ExpStmt => self.format_exp_stmt(pair), Rule::IfStmt => self.format_if_stmt(pair), Rule::WhileStmt => self.format_while_stmt(pair), Rule::ReturnStmt => self.format_return_stmt(pair), Rule::BreakStmt => { self.write("break;"); self.writeln(); } Rule::ContinueStmt => { self.write("continue;"); self.writeln(); } Rule::AddExp | Rule::MulExp | Rule::RelExp | Rule::EqExp | Rule::LAndExp | Rule::LOrExp => self.format_binary_exp(pair), Rule::UnaryExp => self.format_unary_exp(pair), Rule::PrimaryExp => self.format_primary_exp(pair), Rule::LVal => self.format_lval(pair), Rule::InitVal | Rule::ConstInitVal => self.format_init_val(pair), Rule::FuncFParams | Rule::FuncRParams => self.format_param_list(pair), Rule::Cond | Rule::Exp | Rule::ConstExp | Rule::FuncFParam | Rule::BType | Rule::FuncType | Rule::AddOp | Rule::MulOp | Rule::RelOp | Rule::EqOp | Rule::UnaryOp => self.format_children(pair), Rule::Ident | Rule::Number | Rule::INT | Rule::VOID | Rule::CONST | Rule::IF | Rule::ELSE | Rule::WHILE | Rule::BREAK | Rule::CONTINUE | Rule::RETURN | Rule::PLUS | Rule::MINUS | Rule::NOT | Rule::MUL | Rule::DIV | Rule::MOD | Rule::ASSIGN | Rule::EQ | Rule::NEQ | Rule::LT | Rule::GT | Rule::LE | Rule::GE | Rule::AND | Rule::OR => self.write(pair.as_str()), _ => (), } } fn format_comp_unit(&mut self, pair: Pair<Rule>) { let mut inner = pair.into_inner().peekable(); while let Some(p) = inner.next() { let rule = p.as_rule(); self.format_pair(p); if (rule == Rule::FuncDef || rule == Rule::Decl) && inner.peek().is_some() { self.writeln(); } } } fn format_func_def(&mut self, pair: Pair<Rule>) { self.format_pair(pair.clone().into_inner().find(|p| p.as_rule() == Rule::FuncType).unwrap()); self.write_space(); self.format_pair(pair.clone().into_inner().find(|p| p.as_rule() == Rule::Ident).unwrap()); self.write("("); if let Some(params) = pair.clone().into_inner().find(|p| p.as_rule() == Rule::FuncFParams) { self.format_pair(params); } self.write(")"); self.write_space(); self.format_pair(pair.clone().into_inner().find(|p| p.as_rule() == Rule::Block).unwrap()); self.writeln(); } fn format_decl(&mut self, pair: Pair<Rule>) { let mut inner = pair.into_inner().peekable(); while let Some(p) = inner.next() { if p.as_rule() == Rule::COMMA { self.write(", "); } else if p.as_rule() != Rule::SEMICOLON { self.format_pair(p); if inner.peek().is_some() && inner.peek().unwrap().as_rule() != Rule::SEMICOLON { self.write_space(); } } } self.write(";"); self.writeln(); } fn format_def(&mut self, pair: Pair<Rule>) { let mut inner = pair.into_inner(); self.format_pair(inner.next().unwrap()); // Ident while inner.peek().is_some() && inner.peek().unwrap().as_rule() == Rule::LBRACK { self.write("["); inner.next(); self.format_pair(inner.next().unwrap()); self.write("]"); inner.next(); } if inner.next().is_some() { // This consumes the ASSIGN self.write(" = "); self.format_pair(inner.next().unwrap()); } } fn format_block(&mut self, pair: Pair<Rule>) { if pair.clone().into_inner().peek().is_none() { self.write("{}"); return; } self.write("{"); self.writeln(); self.indent(); self.format_children(pair); self.dedent(); self.write("}"); } fn format_assign_stmt(&mut self, pair: Pair<Rule>) { let mut inner = pair.into_inner(); self.format_pair(inner.next().unwrap()); // LVal self.write(" = "); self.format_pair(inner.next().unwrap()); // Exp self.write(";"); self.writeln(); } fn format_exp_stmt(&mut self, pair: Pair<Rule>) { if let Some(exp) = pair.into_inner().find(|p| p.as_rule() == Rule::Exp) { self.format_pair(exp); } self.write(";"); self.writeln(); } fn format_if_stmt(&mut self, pair: Pair<Rule>) { self.write("if ("); self.format_pair(pair.clone().into_inner().find(|p| p.as_rule() == Rule::Cond).unwrap()); self.write(") "); let mut stmts = pair.into_inner().filter(|p| p.as_rule() == Rule::Stmt); let then_stmt = stmts.next().unwrap(); let then_is_block = then_stmt.clone().into_inner().next().unwrap().as_rule() == Rule::Block; self.format_pair(then_stmt.clone()); if let Some(else_stmt) = stmts.next() { if then_is_block { self.write_space(); } else { self.writeln(); } self.write("else "); self.format_pair(else_stmt); } } fn format_while_stmt(&mut self, pair: Pair<Rule>) { self.write("while ("); self.format_pair(pair.clone().into_inner().find(|p| p.as_rule() == Rule::Cond).unwrap()); self.write(") "); let stmt_pair = pair.into_inner().find(|p| p.as_rule() == Rule::Stmt).unwrap(); let is_block = stmt_pair.clone().into_inner().next().unwrap().as_rule() == Rule::Block; if !is_block { self.writeln(); self.indent(); } self.format_pair(stmt_pair); if !is_block { self.dedent(); } } fn format_return_stmt(&mut self, pair: Pair<Rule>) { self.write("return"); if let Some(exp) = pair.into_inner().find(|p| p.as_rule() == Rule::Exp) { self.write_space(); self.format_pair(exp); } self.write(";"); self.writeln(); } fn format_binary_exp(&mut self, pair: Pair<Rule>) { let mut inner = pair.into_inner(); self.format_pair(inner.next().unwrap()); while let Some(op) = inner.next() { self.write_space(); self.format_pair(op); self.write_space(); self.format_pair(inner.next().unwrap()); } } fn format_unary_exp(&mut self, pair: Pair<Rule>) { // Your previous logic was better, let's restore it and make it safe let mut children = pair.clone().into_inner(); let first = children.next().unwrap(); if first.as_rule() == Rule::Ident { // Check if it's a function call by looking for parenthesis if let Some(second) = children.next() { if second.as_rule() == Rule::LPAREN { self.format_pair(first); self.write("("); if let Some(params) = pair.into_inner().find(|p| p.as_rule() == Rule::FuncRParams) { self.format_pair(params); } self.write(")"); return; // Done with this rule } } } // If not a function call, just format all children self.format_children(pair); } fn format_primary_exp(&mut self, pair: Pair<Rule>) { let inner = pair.into_inner().next().unwrap(); if inner.as_rule() == Rule::Exp { self.write("("); self.format_pair(inner); self.write(")"); } else { self.format_pair(inner); } } fn format_lval(&mut self, pair: Pair<Rule>) { let mut inner = pair.into_inner(); self.format_pair(inner.next().unwrap()); // Ident for exp in inner { self.write("["); self.format_pair(exp); self.write("]"); } } // FIXED: Corrected the ownership (move) error fn format_init_val(&mut self, pair: Pair<Rule>) { if pair.as_str().starts_with('{') { self.write("{ "); // Check if there are any children inside the braces before calling another function if pair.clone().into_inner().peekable().peek().is_some() { self.format_param_list(pair); } self.write(" }"); } else { self.format_children(pair); } } fn format_param_list(&mut self, pair: Pair<Rule>) { let mut inner = pair.into_inner().peekable(); while let Some(p) = inner.next() { if p.as_rule() != Rule::COMMA && p.as_rule() != Rule::LBRACE && p.as_rule() != Rule::RBRACE { self.format_pair(p); if inner.peek().is_some() && inner.peek().unwrap().as_rule() != Rule::RBRACE { self.write(", "); } } } } }
2301_80384339/compiler
src/formatter.rs
Rust
unknown
11,461
// src/main.rs use std::fs; // 声明模块 mod formatter; mod parser; // 引入需要使用的公共项 use formatter::Formatter; fn main() { let unformatted = fs::read_to_string("input.sy").expect("无法读取 input.sy 文件"); match Formatter::format(&unformatted) { Ok(formatted_code) => { print!("{}", formatted_code); } Err(e_str) => { println!("{}", e_str); } } }
2301_80384339/compiler
src/main.rs
Rust
unknown
453
// src/parser.rs use pest::{error::Error as PestError, Parser}; use pest_derive::Parser; #[derive(Parser)] #[grammar = "parser.pest"] pub struct SysYParser; pub fn format_error(e: PestError<Rule>) -> String { // 从 Error 对象中提取行号 let line = match e.line_col { pest::error::LineColLocation::Pos((l, _)) => l, pest::error::LineColLocation::Span((l, _), _) => l, }; // 从 Error 对象中提取期望的规则 let expected = match &e.variant { pest::error::ErrorVariant::ParsingError { positives, .. } => { // 将规则列表转换为更易读的格式 positives .iter() .map(|rule| format!("{:?}", rule)) // e.g., Rule::Ident -> "Ident" .collect::<Vec<_>>() .join(", ") } _ => "unknown error".to_string(), }; format!("Error type B at Line {}: mismatched input expecting {{{}}}", line, expected) }
2301_80384339/compiler
src/parser.rs
Rust
unknown
969
import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Patch from pandas import Timestamp plt.rcParams['font.sans-serif'] = ['SimHei'] # 使用黑体 plt.rcParams['axes.unicode_minus'] = False # 解决负号显示问题 ##### DATA ##### data = {'Task': {0: '大学生创新创业网通知', 1: '启航网新闻通知公示', 2: '启航行动', 3: '双创导航员', 4: '双创公开课', 5: '科创嘉年华★', 6: '办公室秩序维持', 7: '年鉴制作', 8: '赛事认证★', 9: '学院负责人培训', 10: '竞赛通知发布', 11: '“挑战杯”校赛★', 12: '“五四杯”(创新赛道)★', 13: '“启航杯”★'}, 'Department': {0: '媒体部', 1: '媒体部', 2: '科普培训部', 3: '科普培训部', 4: '科普培训部', 5: '科普培训部', 6: '办公室', 7: '竞赛监察部', 8: '竞赛监察部', 9: '竞赛监察部', 10: '竞赛监察部', 11: '校外竞赛部', 12: '校内竞赛部', 13: '校内竞赛部'}, 'Start': {0: Timestamp('2025-06-01 00:00:00'), 1: Timestamp('2025-06-01 00:00:00'), 2: Timestamp('2025-06-01 00:00:00'), 3: Timestamp('2025-06-01 00:00:00'), 4: Timestamp('2025-06-01 00:00:00'), 5: Timestamp('2025-09-15 00:00:00'), 6: Timestamp('2025-06-01 00:00:00'), 7: Timestamp('2025-12-15 00:00:00'), 8: Timestamp('2025-06-15 00:00:00'), 9: Timestamp('2025-07-15 00:00:00'), 10: Timestamp('2025-06-01 00:00:00'), 11: Timestamp('2026-02-15 00:00:00'), 12: Timestamp('2025-11-15 00:00:00'), 13: Timestamp('2025-10-15 00:00:00')}, 'End': {0: Timestamp('2026-06-01 00:00:00'), 1: Timestamp('2026-06-01 00:00:00'), 2: Timestamp('2026-06-01 00:00:00'), 3: Timestamp('2026-06-01 00:00:00'), 4: Timestamp('2026-06-01 00:00:00'), 5: Timestamp('2025-10-15 00:00:00'), 6: Timestamp('2026-06-01 00:00:00'), 7: Timestamp('2026-02-15 00:00:00'), 8: Timestamp('2025-09-15 00:00:00'), 9: Timestamp('2025-08-15 00:00:00'), 10: Timestamp('2026-06-01 00:00:00'), 11: Timestamp('2026-05-15 00:00:00'), 12: Timestamp('2025-12-15 00:00:00'), 13: Timestamp('2025-11-15 00:00:00')}, 'Completion': {0: 0.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0, 5: 0.0, 6: 0.08, 7: 0.0, 8: 0.3, 9: 0.0, 10: 0.08, 11: 0.0, 12: 0.0, 13: 0.0}} ##### DATA PREP ##### df = pd.DataFrame(data) # project start date proj_start = df.Start.min() # number of days from project start to task start df['start_num'] = (df.Start - proj_start).dt.days # number of days from project start to end of tasks df['end_num'] = (df.End - proj_start).dt.days # days between start and end of each task df['days_start_to_end'] = df.end_num - df.start_num # days between start and current progression of each task df['current_num'] = (df.days_start_to_end * df.Completion) # create a column with the color for each department def color(row): c_dict = {'校内竞赛部': '#E64646', '校外竞赛部': '#E69646', '竞赛监察部': '#34D05C', '办公室': "#F4E869", '科普培训部': '#34D0C3', '媒体部': '#3475D0'} return c_dict[row['Department']] df['color'] = df.apply(color, axis=1) ##### PLOT ##### fig, (ax, ax1) = plt.subplots(2, figsize=(16, 6), gridspec_kw={'height_ratios': [6, 1]}, facecolor="#FFFFFF") ax.set_facecolor("#FFFFFF") ax1.set_facecolor("#FFFFFF") # bars ax.barh(df.Task, df.current_num, left=df.start_num, color=df.color) for idx, row in df.iterrows(): # 判断任务是否为重点 if '★' in row.Task: color_edge = 'red' line_width = 3 else: color_edge = 'black' line_width = 0 ax.barh(row.Task, row.days_start_to_end, left=row.start_num, color=row.color, alpha=0.5, edgecolor=color_edge, linewidth=line_width) # ax.barh(df.Task, df.days_start_to_end, left=df.start_num, color=df.color, alpha=0.5) for idx, row in df.iterrows(): ax.text(row.end_num + 0.1, idx, f"{int(row.Completion * 100)}%", va='center', alpha=0.8, color='black') ax.text(row.start_num - 0.1, idx, row.Task, va='center', ha='right', alpha=0.8, color='black') # grid lines ax.set_axisbelow(True) ax.xaxis.grid(color='k', linestyle='dashed', alpha=0.4, which='both') # ticks xticks = np.arange(0, df.end_num.max() + 1, 30) xticks_labels = pd.date_range(proj_start, end=df.End.max()).strftime("%m/%d") xticks_minor = np.arange(0, df.end_num.max() + 1, 10) ax.set_xticks(xticks) ax.set_xticks(xticks_minor, minor=True) ax.set_xticklabels(xticks_labels[::30], color='black') ax.set_yticks([]) plt.setp([ax.get_xticklines()], color='black') # align x axis ax.set_xlim(0, df.end_num.max()) # remove spines ax.spines['right'].set_visible(False) ax.spines['left'].set_visible(False) ax.spines['left'].set_position(('outward', 10)) ax.spines['top'].set_visible(False) ax.spines['bottom'].set_color('black') plt.suptitle('校学生科技协会2025-2026工作规划', color='black') ##### LEGENDS ##### legend_elements = [Patch(facecolor='#E64646', label='校内竞赛部'), Patch(facecolor='#E69646', label='校外竞赛部'), Patch(facecolor='#34D05C', label='竞赛监察部'), Patch(facecolor='#F4E869', label='办公室'), Patch(facecolor='#34D0C3', label='科普培训部'), Patch(facecolor='#3475D0', label='媒体部')] legend = ax1.legend(handles=legend_elements, loc='upper center', ncol=5, frameon=False) plt.setp(legend.get_texts(), color='black') # clean second axis ax1.spines['right'].set_visible(False) ax1.spines['left'].set_visible(False) ax1.spines['top'].set_visible(False) ax1.spines['bottom'].set_visible(False) ax1.set_xticks([]) ax1.set_yticks([]) plt.savefig('gantt.png', facecolor="#FFFFFF")
2301_80392470/Gantt
gantt.py
Python
cc-by-sa-4.0
6,917
{ "cells": [ { "cell_type": "markdown", "metadata": { "id": "AB155B13302D459CBAAABA327849B76D", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "# 说明\n", "特征工程部分照搬社区的baseline未作改动,仅仅进行了模型的部分参数调整和基于stacking的模型融合。\n", "另外,由于是输出概率,后续按照回归去做,故删除了不平衡样本的处理,一开始当成分类去做,最高只能到0.8+,按照回归轻松0.9+\n", "参数仅做了简单的调整,非最优,线下0.9361018703876826,线上验证0.93536922" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Requirement already satisfied: seaborn in .\\.venv\\lib\\site-packages (0.13.2)\n", "Requirement already satisfied: numpy!=1.24.0,>=1.20 in .\\.venv\\lib\\site-packages (from seaborn) (2.3.5)\n", "Requirement already satisfied: pandas>=1.2 in .\\.venv\\lib\\site-packages (from seaborn) (2.3.3)\n", "Requirement already satisfied: matplotlib!=3.6.1,>=3.4 in .\\.venv\\lib\\site-packages (from seaborn) (3.10.7)\n", "Requirement already satisfied: contourpy>=1.0.1 in .\\.venv\\lib\\site-packages (from matplotlib!=3.6.1,>=3.4->seaborn) (1.3.3)\n", "Requirement already satisfied: cycler>=0.10 in .\\.venv\\lib\\site-packages (from matplotlib!=3.6.1,>=3.4->seaborn) (0.12.1)\n", "Requirement already satisfied: fonttools>=4.22.0 in .\\.venv\\lib\\site-packages (from matplotlib!=3.6.1,>=3.4->seaborn) (4.60.1)\n", "Requirement already satisfied: kiwisolver>=1.3.1 in .\\.venv\\lib\\site-packages (from matplotlib!=3.6.1,>=3.4->seaborn) (1.4.9)\n", "Requirement already satisfied: packaging>=20.0 in .\\.venv\\lib\\site-packages (from matplotlib!=3.6.1,>=3.4->seaborn) (25.0)\n", "Requirement already satisfied: pillow>=8 in .\\.venv\\lib\\site-packages (from matplotlib!=3.6.1,>=3.4->seaborn) (12.0.0)\n", "Requirement already satisfied: pyparsing>=3 in .\\.venv\\lib\\site-packages (from matplotlib!=3.6.1,>=3.4->seaborn) (3.2.5)\n", "Requirement already satisfied: python-dateutil>=2.7 in .\\.venv\\lib\\site-packages (from matplotlib!=3.6.1,>=3.4->seaborn) (2.9.0.post0)\n", "Requirement already satisfied: pytz>=2020.1 in .\\.venv\\lib\\site-packages (from pandas>=1.2->seaborn) (2025.2)\n", "Requirement already satisfied: tzdata>=2022.7 in .\\.venv\\lib\\site-packages (from pandas>=1.2->seaborn) (2025.2)\n", "Requirement already satisfied: six>=1.5 in .\\.venv\\lib\\site-packages (from python-dateutil>=2.7->matplotlib!=3.6.1,>=3.4->seaborn) (1.17.0)\n", "Requirement already satisfied: scipy in .\\.venv\\lib\\site-packages (1.16.3)\n", "Requirement already satisfied: numpy<2.6,>=1.25.2 in .\\.venv\\lib\\site-packages (from scipy) (2.3.5)\n" ] } ], "source": [ "\n", "!pip install seaborn\n", "!pip install scipy" ] }, { "cell_type": "markdown", "metadata": { "id": "C325760DBE164B398588C602C8C376BC", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "# 查看数据" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false, "id": "0A028E17E34B4CFEABE9DFF956D89741", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", "import seaborn as sns\n", "\n", "plt.rcParams['font.sans-serif'] = ['SimHei']\n", "plt.rcParams['axes.unicode_minus'] = False" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": false, "id": "001F87A7D41644E4BA2EA25513B0D1B3", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [], "source": [ "train=pd.read_csv(r'G:/大三内容/数据分析可视化/实践课/train_set.csv')\n", "test=pd.read_csv('G:/大三内容/数据分析可视化/实践课/test_set.csv')" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": false, "id": "B8C543716B964973872549E7B4DFDFAA", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [], "source": [ "data = pd.concat([train.drop(['y'],axis=1),test],axis=0).reset_index(drop=True)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "collapsed": false, "id": "D7CE94A95A2544AE808C26A4B1901BA7", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "job : ['management' 'technician' 'admin.' 'services' 'retired' 'student'\n", " 'blue-collar' 'unknown' 'entrepreneur' 'housemaid' 'self-employed'\n", " 'unemployed']\n", "marital : ['married' 'divorced' 'single']\n", "education : ['tertiary' 'primary' 'secondary' 'unknown']\n", "default : ['no' 'yes']\n", "housing : ['yes' 'no']\n", "loan : ['no' 'yes']\n", "contact : ['unknown' 'cellular' 'telephone']\n", "month : ['may' 'apr' 'jul' 'jun' 'nov' 'aug' 'jan' 'feb' 'dec' 'oct' 'sep' 'mar']\n", "poutcome : ['unknown' 'other' 'failure' 'success']\n" ] } ], "source": [ "# 对object型数据查看unique\n", "str_features = []\n", "num_features=[]\n", "for col in train.columns:\n", " if train[col].dtype=='object':\n", " str_features.append(col)\n", " print(col,': ',train[col].unique())\n", " if train[col].dtype=='int64' and col not in ['ID','y']:\n", " num_features.append(col)" ] }, { "cell_type": "markdown", "metadata": { "id": "29CB9E135078402DBE2F479858631C1D", "jupyter": {}, "mdEditEnable": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "# 特征工程" ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "collapsed": true, "id": "928046C510F54165A50D2FFBEFB4A5B5", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [], "source": [ "from scipy.stats import chi2_contingency # 数值型特征检验,检验特征与标签的关系\n", "from scipy.stats import f_oneway,ttest_ind # 分类型特征检验,检验特征与标签的关系" ] }, { "cell_type": "code", "execution_count": 7, "metadata": { "collapsed": true, "id": "B5098300108B4CB784E1E1D8A1A7AF40", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [], "source": [ "#----------数据集处理--------------#\n", "from sklearn.model_selection import train_test_split # 划分训练集和验证集\n", "from sklearn.model_selection import KFold,StratifiedKFold # k折交叉\n", "from imblearn.combine import SMOTETomek,SMOTEENN # 综合采样\n", "from imblearn.over_sampling import SMOTE # 过采样\n", "from imblearn.under_sampling import RandomUnderSampler # 欠采样\n", "\n", "#----------数据处理--------------#\n", "from sklearn.preprocessing import StandardScaler # 标准化\n", "from sklearn.preprocessing import OneHotEncoder # 热独编码\n", "from sklearn.preprocessing import OrdinalEncoder" ] }, { "cell_type": "markdown", "metadata": { "id": "AB4FDF679736489B86708802E2B4E05B", "jupyter": {}, "mdEditEnable": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "## 特征处理" ] }, { "cell_type": "markdown", "metadata": { "id": "B76FEED533744B93AD63ED6825716E5C", "jupyter": {}, "mdEditEnable": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "**连续变量即数值化数据做标准化处理**" ] }, { "cell_type": "code", "execution_count": 8, "metadata": { "collapsed": true, "id": "DD0BE0C3EF0D4755A0F255565CA064B3", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [], "source": [ "# 异常值处理\n", "def outlier_processing(dfx):\n", " df = dfx.copy()\n", " q1 = df.quantile(q=0.25)\n", " q3 = df.quantile(q=0.75)\n", " iqr = q3 - q1\n", " Umin = q1 - 1.5*iqr\n", " Umax = q3 + 1.5*iqr \n", " df[df>Umax] = df[df<=Umax].max()\n", " df[df<Umin] = df[df>=Umin].min()\n", " return df" ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "collapsed": true, "id": "353D496D273C4456A8EF7C663D1C81C1", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [], "source": [ "train['age']=outlier_processing(train['age'])\n", "train['day']=outlier_processing(train['day'])\n", "train['duration']=outlier_processing(train['duration'])\n", "train['campaign']=outlier_processing(train['campaign'])\n", "\n", "\n", "test['age']=outlier_processing(test['age'])\n", "test['day']=outlier_processing(test['day'])\n", "test['duration']=outlier_processing(test['duration'])\n", "test['campaign']=outlier_processing(test['campaign'])" ] }, { "cell_type": "code", "execution_count": 10, "metadata": { "id": "605C7188AA404524AA2B935E363D1E6C", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>age</th>\n", " <th>balance</th>\n", " <th>day</th>\n", " <th>duration</th>\n", " <th>campaign</th>\n", " <th>pdays</th>\n", " <th>previous</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th>count</th>\n", " <td>25317.000000</td>\n", " <td>25317.000000</td>\n", " <td>25317.000000</td>\n", " <td>25317.000000</td>\n", " <td>25317.000000</td>\n", " <td>25317.000000</td>\n", " <td>25317.000000</td>\n", " </tr>\n", " <tr>\n", " <th>mean</th>\n", " <td>40.859502</td>\n", " <td>1357.555082</td>\n", " <td>15.835289</td>\n", " <td>234.235138</td>\n", " <td>2.391437</td>\n", " <td>40.248766</td>\n", " <td>0.591737</td>\n", " </tr>\n", " <tr>\n", " <th>std</th>\n", " <td>10.387365</td>\n", " <td>2999.822811</td>\n", " <td>8.319480</td>\n", " <td>175.395559</td>\n", " <td>1.599851</td>\n", " <td>100.213541</td>\n", " <td>2.568313</td>\n", " </tr>\n", " <tr>\n", " <th>min</th>\n", " <td>18.000000</td>\n", " <td>-8019.000000</td>\n", " <td>1.000000</td>\n", " <td>0.000000</td>\n", " <td>1.000000</td>\n", " <td>-1.000000</td>\n", " <td>0.000000</td>\n", " </tr>\n", " <tr>\n", " <th>25%</th>\n", " <td>33.000000</td>\n", " <td>73.000000</td>\n", " <td>8.000000</td>\n", " <td>103.000000</td>\n", " <td>1.000000</td>\n", " <td>-1.000000</td>\n", " <td>0.000000</td>\n", " </tr>\n", " <tr>\n", " <th>50%</th>\n", " <td>39.000000</td>\n", " <td>448.000000</td>\n", " <td>16.000000</td>\n", " <td>181.000000</td>\n", " <td>2.000000</td>\n", " <td>-1.000000</td>\n", " <td>0.000000</td>\n", " </tr>\n", " <tr>\n", " <th>75%</th>\n", " <td>48.000000</td>\n", " <td>1435.000000</td>\n", " <td>21.000000</td>\n", " <td>317.000000</td>\n", " <td>3.000000</td>\n", " <td>-1.000000</td>\n", " <td>0.000000</td>\n", " </tr>\n", " <tr>\n", " <th>max</th>\n", " <td>70.000000</td>\n", " <td>102127.000000</td>\n", " <td>31.000000</td>\n", " <td>638.000000</td>\n", " <td>6.000000</td>\n", " <td>854.000000</td>\n", " <td>275.000000</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " age balance day duration campaign \\\n", "count 25317.000000 25317.000000 25317.000000 25317.000000 25317.000000 \n", "mean 40.859502 1357.555082 15.835289 234.235138 2.391437 \n", "std 10.387365 2999.822811 8.319480 175.395559 1.599851 \n", "min 18.000000 -8019.000000 1.000000 0.000000 1.000000 \n", "25% 33.000000 73.000000 8.000000 103.000000 1.000000 \n", "50% 39.000000 448.000000 16.000000 181.000000 2.000000 \n", "75% 48.000000 1435.000000 21.000000 317.000000 3.000000 \n", "max 70.000000 102127.000000 31.000000 638.000000 6.000000 \n", "\n", " pdays previous \n", "count 25317.000000 25317.000000 \n", "mean 40.248766 0.591737 \n", "std 100.213541 2.568313 \n", "min -1.000000 0.000000 \n", "25% -1.000000 0.000000 \n", "50% -1.000000 0.000000 \n", "75% -1.000000 0.000000 \n", "max 854.000000 275.000000 " ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "train[num_features].describe()" ] }, { "cell_type": "markdown", "metadata": { "id": "FA30A072639C418283A5F9FF7BB70A5A", "jupyter": {}, "mdEditEnable": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "**分类变量做编码处理**" ] }, { "cell_type": "code", "execution_count": 11, "metadata": { "collapsed": true, "id": "B843C59639844E1A872AECAFE7926878", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [], "source": [ "dummy_train=train.join(pd.get_dummies(train[str_features])).drop(str_features,axis=1).drop(['ID','y'],axis=1)\n", "dummy_test=test.join(pd.get_dummies(test[str_features])).drop(str_features,axis=1).drop(['ID'],axis=1)" ] }, { "cell_type": "markdown", "metadata": { "id": "F2EA03BA7FAA45FF85F2CEDA21AB2F25", "jupyter": {}, "mdEditEnable": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "## 统计检验与特征筛选 \n", "\n", "\n", "**连续变量-连续变量 相关分析**\n", "\n", "**连续变量-分类变量 T检验/方差分析**\n", "\n", "**分类变量-分类变量 卡方检验**" ] }, { "cell_type": "markdown", "metadata": { "id": "500456AC13CA4815858E06D09EE17A9E", "jupyter": {}, "mdEditEnable": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "**对类别标签(离散变量)用卡方检验分析重要性**\n", "\n", "卡方检验认为显著水平大于95%是差异性显著的,这里即看p值是否是p>0.05,若p>0.05,则说明特征不会呈现差异性" ] }, { "cell_type": "code", "execution_count": 12, "metadata": { "id": "40798A95334C4A85812FCB8A3CE6DD75", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "job 卡方检验p值: 0.0000\n", "marital 卡方检验p值: 0.0000\n", "education 卡方检验p值: 0.0000\n", "default 卡方检验p值: 0.0001\n", "housing 卡方检验p值: 0.0000\n", "loan 卡方检验p值: 0.0000\n", "contact 卡方检验p值: 0.0000\n", "month 卡方检验p值: 0.0000\n", "poutcome 卡方检验p值: 0.0000\n" ] } ], "source": [ "for col in str_features:\n", " obs=pd.crosstab(train['y'],\n", " train[col],\n", " rownames=['y'],\n", " colnames=[col])\n", " chi2, p, dof, expect = chi2_contingency(obs)\n", " print(\"{} 卡方检验p值: {:.4f}\".format(col,p))" ] }, { "cell_type": "markdown", "metadata": { "id": "30A24D4C89AF4BDAA0115FDF8F7C12E5", "jupyter": {}, "mdEditEnable": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "**对连续变量做方差分析进行特征筛选**\n" ] }, { "cell_type": "code", "execution_count": 13, "metadata": { "id": "43185B05C4AB48628437C4224F86F348", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "scores_: [ 13.38856992 84.16396612 25.76507245 4405.56959938 193.97418155\n", " 296.33099313 199.09942912]\n", "pvalues_: [2.53676251e-04 4.89124305e-20 3.88332900e-07 0.00000000e+00\n", " 6.26768275e-44 4.93591331e-66 4.86613654e-45]\n", "selected index: [0 1 2 3 4 5 6]\n" ] } ], "source": [ "from sklearn.feature_selection import SelectKBest,f_classif\n", "\n", "f,p=f_classif(train[num_features],train['y'])\n", "k = f.shape[0] - (p > 0.05).sum()\n", "selector = SelectKBest(f_classif, k=k)\n", "selector.fit(train[num_features],train['y'])\n", "\n", "print('scores_:',selector.scores_)\n", "print('pvalues_:',selector.pvalues_)\n", "print('selected index:',selector.get_support(True))" ] }, { "cell_type": "code", "execution_count": 14, "metadata": { "collapsed": true, "id": "5AC3B3DFF3134BDC83E167086A48540B", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "C:\\Users\\nickc\\AppData\\Local\\Temp\\ipykernel_177052\\474632271.py:4: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[ 0.20607159 0.10979888 0.59116242 ... -0.56411009 -0.37156467\n", " 1.07252597]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n", " dummy_train.loc[:,num_features]=ss.transform(dummy_train.loc[:,num_features])\n", "C:\\Users\\nickc\\AppData\\Local\\Temp\\ipykernel_177052\\474632271.py:4: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[-0.35554638 1.23957933 -0.41788463 ... -0.35254615 -0.43055229\n", " -0.43921964]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n", " dummy_train.loc[:,num_features]=ss.transform(dummy_train.loc[:,num_features])\n", "C:\\Users\\nickc\\AppData\\Local\\Temp\\ipykernel_177052\\474632271.py:4: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[-0.8216167 -1.06202109 -0.22060571 ... -0.34080791 0.26020307\n", " 0.38040527]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n", " dummy_train.loc[:,num_features]=ss.transform(dummy_train.loc[:,num_features])\n", "C:\\Users\\nickc\\AppData\\Local\\Temp\\ipykernel_177052\\474632271.py:4: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[-0.48026759 -0.77104466 -0.89647791 ... 2.3020699 2.3020699\n", " 2.3020699 ]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n", " dummy_train.loc[:,num_features]=ss.transform(dummy_train.loc[:,num_features])\n", "C:\\Users\\nickc\\AppData\\Local\\Temp\\ipykernel_177052\\474632271.py:4: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[-0.24467553 -0.86974621 -0.24467553 ... -0.24467553 -0.24467553\n", " 0.38039515]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n", " dummy_train.loc[:,num_features]=ss.transform(dummy_train.loc[:,num_features])\n", "C:\\Users\\nickc\\AppData\\Local\\Temp\\ipykernel_177052\\474632271.py:4: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[-0.41161683 2.10306306 -0.41161683 ... -0.41161683 -0.41161683\n", " -0.41161683]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n", " dummy_train.loc[:,num_features]=ss.transform(dummy_train.loc[:,num_features])\n", "C:\\Users\\nickc\\AppData\\Local\\Temp\\ipykernel_177052\\474632271.py:4: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[-0.23040357 0.54833312 -0.23040357 ... -0.23040357 -0.23040357\n", " -0.23040357]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n", " dummy_train.loc[:,num_features]=ss.transform(dummy_train.loc[:,num_features])\n", "C:\\Users\\nickc\\AppData\\Local\\Temp\\ipykernel_177052\\474632271.py:5: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[ 0.97625326 -0.85292821 1.84270764 ... -0.27529196 0.01352617\n", " -0.6603828 ]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n", " dummy_test.loc[:,num_features]=ss.transform(dummy_test.loc[:,num_features])\n", "C:\\Users\\nickc\\AppData\\Local\\Temp\\ipykernel_177052\\474632271.py:5: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[-0.39454946 1.56727183 -0.45255403 ... -0.3075426 -0.19153346\n", " 4.82819549]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n", " dummy_test.loc[:,num_features]=ss.transform(dummy_test.loc[:,num_features])\n", "C:\\Users\\nickc\\AppData\\Local\\Temp\\ipykernel_177052\\474632271.py:5: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[ 1.58242724 0.50060747 1.70262943 ... 0.86121406 -0.22060571\n", " 0.50060747]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n", " dummy_test.loc[:,num_features]=ss.transform(dummy_test.loc[:,num_features])\n", "C:\\Users\\nickc\\AppData\\Local\\Temp\\ipykernel_177052\\474632271.py:5: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[ 0.42057119 -0.70832804 -0.59429781 ... -0.23510261 -0.56579026\n", " 1.07624498]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n", " dummy_test.loc[:,num_features]=ss.transform(dummy_test.loc[:,num_features])\n", "C:\\Users\\nickc\\AppData\\Local\\Temp\\ipykernel_177052\\474632271.py:5: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[ 0.38039515 -0.24467553 0.38039515 ... -0.24467553 0.38039515\n", " 1.63053651]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n", " dummy_test.loc[:,num_features]=ss.transform(dummy_test.loc[:,num_features])\n", "C:\\Users\\nickc\\AppData\\Local\\Temp\\ipykernel_177052\\474632271.py:5: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[-0.41161683 -0.41161683 -0.41161683 ... -0.41161683 3.22069856\n", " -0.41161683]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n", " dummy_test.loc[:,num_features]=ss.transform(dummy_test.loc[:,num_features])\n", "C:\\Users\\nickc\\AppData\\Local\\Temp\\ipykernel_177052\\474632271.py:5: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[-0.23040357 -0.23040357 -0.23040357 ... -0.23040357 0.54833312\n", " -0.23040357]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n", " dummy_test.loc[:,num_features]=ss.transform(dummy_test.loc[:,num_features])\n" ] } ], "source": [ "# 标准化,返回值为标准化后的数据\n", "standardScaler=StandardScaler()\n", "ss=standardScaler.fit(dummy_train.loc[:,num_features])\n", "dummy_train.loc[:,num_features]=ss.transform(dummy_train.loc[:,num_features])\n", "dummy_test.loc[:,num_features]=ss.transform(dummy_test.loc[:,num_features])" ] }, { "cell_type": "code", "execution_count": 15, "metadata": { "collapsed": true, "id": "EEEA48883D2E4FA58FB392991E531C86", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [], "source": [ "X=dummy_train\n", "y=train['y']" ] }, { "cell_type": "markdown", "metadata": { "id": "A16ACA2680A243C0880DE1F19CFB6AAD", "jupyter": {}, "mdEditEnable": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "**因为后续是进行回归而非分类,个人认为没有必要进行不平衡处理,故此部分就注释掉了**" ] }, { "cell_type": "code", "execution_count": 16, "metadata": { "collapsed": true, "id": "AFE7C8F818B148178A42245BBF4C8878", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [], "source": [ "# X_train,X_valid,y_train,y_valid=train_test_split(X,y,test_size=0.2,random_state=2020)" ] }, { "cell_type": "code", "execution_count": 17, "metadata": { "collapsed": true, "id": "046EFE395ED34BFCAD11F2721BBE40FD", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [], "source": [ "# smote_tomek = SMOTETomek(random_state=2020)\n", "# X_resampled, y_resampled = smote_tomek.fit_resample(X, y)" ] }, { "cell_type": "markdown", "metadata": { "id": "13F7B7216054465D9437CEB872026BC3", "jupyter": {}, "mdEditEnable": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "# 数据建模" ] }, { "cell_type": "code", "execution_count": 18, "metadata": { "id": "0E1FC19C7DF74042B6F1A9F5527AA4AE", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [], "source": [ "#----------建模工具--------------#\n", "from sklearn.model_selection import GridSearchCV\n", "from sklearn.pipeline import Pipeline\n", "from sklearn.model_selection import KFold,RepeatedKFold\n", "import lightgbm as lgb\n", "from sklearn.ensemble import RandomForestRegressor\n", "import xgboost as xgb\n", "from xgboost import XGBRegressor\n", "from sklearn.linear_model import BayesianRidge\n", "from catboost import CatBoostRegressor, Pool\n", "from lightgbm import LGBMRegressor\n", "#----------模型评估工具----------#\n", "from sklearn.metrics import confusion_matrix # 混淆矩阵\n", "from sklearn.metrics import classification_report\n", "from sklearn.metrics import recall_score,f1_score\n", "from sklearn.metrics import roc_auc_score\n", "from sklearn.model_selection import cross_val_score\n", "from sklearn.metrics import roc_curve,auc\n", "from sklearn.metrics import roc_auc_score" ] }, { "cell_type": "markdown", "metadata": { "id": "D59F8B42DDB34650B81C23D56AE0BB43", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "## 模型建立和参数调整" ] }, { "cell_type": "markdown", "metadata": { "id": "B6C0DDA8DA53482ABA9E2EE753DB105D", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "### 基于GridSearchCV的随机森林参数调整" ] }, { "cell_type": "code", "execution_count": 19, "metadata": { "id": "4451159F5E62465CB52012889AD801B2", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [], "source": [ "# 随机森林\n", "# param = {'n_estimators':[1500,1700,2000],\n", "# 'max_features':[7,11,15]\n", "# }\n", "# gs = GridSearchCV(estimator=RandomForestRegressor(), param_grid=param, cv=3, scoring=\"neg_mean_squared_error\", n_jobs=-1, verbose=10) \n", "# gs.fit(X_resampled,y_resampled)\n", "# print(gs.best_params_) \n" ] }, { "cell_type": "markdown", "metadata": { "id": "821CD114AA87471B9188366261086B72", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "### 基于五折交叉验证的随机森林" ] }, { "cell_type": "code", "execution_count": 20, "metadata": { "id": "46ED98A1821C450E85F2338B49A197C6", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "0.929373220326099\n" ] } ], "source": [ "n_fold = 5\n", "folds = KFold(n_splits=n_fold, shuffle=True, random_state=2022)\n", "oof_rf = np.zeros(len(X))\n", "prediction_rf = np.zeros(len(dummy_test))\n", "for fold_n, (train_index, valid_index) in enumerate(folds.split(X)):\n", " X_train, X_valid = X.iloc[train_index], X.iloc[valid_index]\n", " y_train, y_valid = y[train_index], y[valid_index]\n", "# smote_tomek = SMOTETomek(random_state=2022)\n", "# X_resampled, y_resampled = smote_tomek.fit_resample(X_train, y_train)\n", " model_rf = RandomForestRegressor(max_features=11,min_samples_leaf=1,n_estimators=1700,random_state=2022).fit(X_train,y_train)\n", " y_pred_valid = model_rf.predict(X_valid)\n", " y_pred = model_rf.predict(dummy_test)\n", " oof_rf[valid_index] = y_pred_valid.reshape(-1, )\n", " prediction_rf += y_pred\n", "prediction_rf /= n_fold \n", "print(roc_auc_score(y, oof_rf))\n", "#0.929373220326099" ] }, { "cell_type": "markdown", "metadata": { "id": "A03808ADDE7A4AC4AEFDC87F09A5A017", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "### 基于GridSearchCV的XGB参数调整" ] }, { "cell_type": "code", "execution_count": 21, "metadata": { "id": "A26971BEEF684860B739522723029593", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [], "source": [ "# param = {'max_depth': [3],\n", "# 'learning_rate': [0.01],\n", "# 'subsample':[0.8],\n", "# 'colsample_bytree':[0.6],\n", "# 'n_estimators': [8000]\n", "\n", "# }\n", "# gs = GridSearchCV(estimator=XGBRegressor(), param_grid=param, cv=3, scoring=\"neg_mean_squared_error\", n_jobs=-1, verbose=10) \n", "# gs.fit(X,y)\n", "# print(gs.best_params_) \n" ] }, { "cell_type": "markdown", "metadata": { "id": "7AF59354E891478D8154F963C5EDE251", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "### 基于五折交叉验证的XGB" ] }, { "cell_type": "code", "execution_count": 22, "metadata": { "id": "C0C60825A129420F8F4C983DEC926AC6", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [ { "ename": "TypeError", "evalue": "XGBModel.fit() got an unexpected keyword argument 'early_stopping_rounds'", "output_type": "error", "traceback": [ "\u001b[31m---------------------------------------------------------------------------\u001b[39m", "\u001b[31mTypeError\u001b[39m Traceback (most recent call last)", "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[22]\u001b[39m\u001b[32m, line 13\u001b[39m\n\u001b[32m 8\u001b[39m \u001b[38;5;66;03m# smote_tomek = SMOTETomek(random_state=2022)\u001b[39;00m\n\u001b[32m 9\u001b[39m \u001b[38;5;66;03m# X_resampled, y_resampled = smote_tomek.fit_resample(X_train, y_train)\u001b[39;00m\n\u001b[32m 10\u001b[39m eval_set = [(X_valid, y_valid)]\n\u001b[32m 11\u001b[39m model_xgb = \u001b[43mXGBRegressor\u001b[49m\u001b[43m(\u001b[49m\n\u001b[32m 12\u001b[39m \u001b[43m \u001b[49m\u001b[43mmax_depth\u001b[49m\u001b[43m=\u001b[49m\u001b[32;43m9\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43mlearning_rate\u001b[49m\u001b[43m=\u001b[49m\u001b[32;43m0.01\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43mn_estimators\u001b[49m\u001b[43m=\u001b[49m\u001b[32;43m10000\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43mcolsample_bytree\u001b[49m\u001b[43m=\u001b[49m\u001b[32;43m0.6\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43msubsample\u001b[49m\u001b[43m=\u001b[49m\u001b[32;43m0.8\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43mrandom_state\u001b[49m\u001b[43m=\u001b[49m\u001b[32;43m2022\u001b[39;49m\n\u001b[32m---> \u001b[39m\u001b[32m13\u001b[39m \u001b[43m \u001b[49m\u001b[43m)\u001b[49m\u001b[43m.\u001b[49m\u001b[43mfit\u001b[49m\u001b[43m(\u001b[49m\u001b[43mX_train\u001b[49m\u001b[43m,\u001b[49m\u001b[43my_train\u001b[49m\u001b[43m,\u001b[49m\u001b[43mearly_stopping_rounds\u001b[49m\u001b[43m=\u001b[49m\u001b[32;43m100\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43meval_metric\u001b[49m\u001b[43m=\u001b[49m\u001b[33;43m\"\u001b[39;49m\u001b[33;43mauc\u001b[39;49m\u001b[33;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43meval_set\u001b[49m\u001b[43m=\u001b[49m\u001b[43meval_set\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mverbose\u001b[49m\u001b[43m=\u001b[49m\u001b[38;5;28;43;01mTrue\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[32m 14\u001b[39m y_pred_valid = model_xgb.predict(X_valid)\n\u001b[32m 15\u001b[39m y_pred = model_xgb.predict(dummy_test)\n", "\u001b[36mFile \u001b[39m\u001b[32mg:\\大三内容\\数据分析可视化\\实践课\\.venv\\Lib\\site-packages\\xgboost\\core.py:774\u001b[39m, in \u001b[36mrequire_keyword_args.<locals>.throw_if.<locals>.inner_f\u001b[39m\u001b[34m(*args, **kwargs)\u001b[39m\n\u001b[32m 772\u001b[39m \u001b[38;5;28;01mfor\u001b[39;00m k, arg \u001b[38;5;129;01min\u001b[39;00m \u001b[38;5;28mzip\u001b[39m(sig.parameters, args):\n\u001b[32m 773\u001b[39m kwargs[k] = arg\n\u001b[32m--> \u001b[39m\u001b[32m774\u001b[39m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43mfunc\u001b[49m\u001b[43m(\u001b[49m\u001b[43m*\u001b[49m\u001b[43m*\u001b[49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", "\u001b[31mTypeError\u001b[39m: XGBModel.fit() got an unexpected keyword argument 'early_stopping_rounds'" ] } ], "source": [ "n_fold = 5\n", "folds = KFold(n_splits=n_fold, shuffle=True, random_state=2022)\n", "oof_xgb = np.zeros(len(X))\n", "prediction_xgb = np.zeros(len(dummy_test))\n", "for fold_n, (train_index, valid_index) in enumerate(folds.split(X)):\n", " X_train, X_valid = X.iloc[train_index], X.iloc[valid_index]\n", " y_train, y_valid = y[train_index], y[valid_index]\n", "# smote_tomek = SMOTETomek(random_state=2022)\n", "# X_resampled, y_resampled = smote_tomek.fit_resample(X_train, y_train)\n", " eval_set = [(X_valid, y_valid)]\n", " model_xgb = XGBRegressor(\n", " max_depth=9,learning_rate=0.01,n_estimators=10000,colsample_bytree=0.6,subsample=0.8,random_state=2022\n", " ).fit(X_train,y_train,early_stopping_rounds=100, eval_metric=\"auc\",eval_set=eval_set, verbose=True)\n", " y_pred_valid = model_xgb.predict(X_valid)\n", " y_pred = model_xgb.predict(dummy_test)\n", " oof_xgb[valid_index] = y_pred_valid.reshape(-1, )\n", " prediction_xgb += y_pred\n", "prediction_xgb /= n_fold \n", "print(roc_auc_score(y, oof_xgb))\n", "# 0.9326219985474677" ] }, { "cell_type": "markdown", "metadata": { "id": "D03CB6619D8B44B08E990ED3EA01C61D", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "### 基于GridSearchCV的LGBM参数调整" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "082D0D1C79D14C0BB07870203B74F5F8", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{'colsample_bytree': 0.8, 'learning_rate': 0.01, 'max_depth': 30, 'n_estimators': 10000, 'num_leaves': 59, 'subsample': 0.7}\n" ] } ], "source": [ "# param = {'max_depth': [30],\n", "# 'learning_rate': [0.01],\n", "# 'num_leaves': [59],\n", "# 'subsample': [0.7],\n", "# 'colsample_bytree': [0.8],\n", "# 'n_estimators': [10000]}\n", "# gs = GridSearchCV(estimator=LGBMRegressor(), param_grid=param, cv=5, scoring=\"neg_mean_squared_error\", n_jobs=-1) \n", "# gs.fit(X_resampled,y_resampled)\n", "# print(gs.best_params_) \n" ] }, { "cell_type": "markdown", "metadata": { "id": "23ADF0543B77452A8DCC799C0582D474", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "### 基于五折交叉验证的LGBM" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "D2313DA33FCA4D7EA5F3C32DD98D6BBA", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [ { "ename": "TypeError", "evalue": "LGBMRegressor.fit() got an unexpected keyword argument 'verbose'", "output_type": "error", "traceback": [ "\u001b[31m---------------------------------------------------------------------------\u001b[39m", "\u001b[31mTypeError\u001b[39m Traceback (most recent call last)", "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[28]\u001b[39m\u001b[32m, line 23\u001b[39m\n\u001b[32m 20\u001b[39m \u001b[38;5;66;03m# smote_tomek = SMOTETomek(random_state=2022)\u001b[39;00m\n\u001b[32m 21\u001b[39m \u001b[38;5;66;03m# X_resampled, y_resampled = smote_tomek.fit_resample(X_train, y_train)\u001b[39;00m\n\u001b[32m 22\u001b[39m model = lgb.LGBMRegressor(**params)\n\u001b[32m---> \u001b[39m\u001b[32m23\u001b[39m \u001b[43mmodel\u001b[49m\u001b[43m.\u001b[49m\u001b[43mfit\u001b[49m\u001b[43m(\u001b[49m\u001b[43mX_train\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43my_train\u001b[49m\u001b[43m,\u001b[49m\n\u001b[32m 24\u001b[39m \u001b[43m \u001b[49m\u001b[43meval_set\u001b[49m\u001b[43m=\u001b[49m\u001b[43m[\u001b[49m\u001b[43m(\u001b[49m\u001b[43mX_train\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43my_train\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43m(\u001b[49m\u001b[43mX_valid\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43my_valid\u001b[49m\u001b[43m)\u001b[49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\n\u001b[32m 25\u001b[39m \u001b[43m \u001b[49m\u001b[43meval_metric\u001b[49m\u001b[43m=\u001b[49m\u001b[33;43m'\u001b[39;49m\u001b[33;43mauc\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[43m,\u001b[49m\n\u001b[32m 26\u001b[39m \u001b[43m \u001b[49m\u001b[43mverbose\u001b[49m\u001b[43m=\u001b[49m\u001b[32;43m50\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mearly_stopping_rounds\u001b[49m\u001b[43m=\u001b[49m\u001b[32;43m200\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[32m 27\u001b[39m y_pred_valid = model.predict(X_valid)\n\u001b[32m 28\u001b[39m y_pred = model.predict(dummy_test, num_iteration=model.best_iteration_)\n", "\u001b[31mTypeError\u001b[39m: LGBMRegressor.fit() got an unexpected keyword argument 'verbose'" ] } ], "source": [ "n_fold = 5\n", "folds = KFold(n_splits=n_fold, shuffle=True,random_state=1314)\n", "params = {\n", " 'learning_rate':0.01,\n", " 'subsample': 0.7,\n", " 'num_leaves': 59,\n", " 'n_estimators':1500,\n", " 'max_depth': 30,\n", " 'colsample_bytree': 0.8,\n", " 'verbose': -1,\n", " 'seed': 2022,\n", " 'n_jobs': -1\n", "}\n", "\n", "oof_lgb = np.zeros(len(X))\n", "predictions_lgb = np.zeros(len(dummy_test))\n", "for fold_n, (train_index, valid_index) in enumerate(folds.split(X)):\n", " X_train, X_valid = X.iloc[train_index], X.iloc[valid_index]\n", " y_train, y_valid = y[train_index], y[valid_index]\n", "# smote_tomek = SMOTETomek(random_state=2022)\n", "# X_resampled, y_resampled = smote_tomek.fit_resample(X_train, y_train)\n", " model = lgb.LGBMRegressor(**params)\n", " model.fit(X_train, y_train,\n", " eval_set=[(X_train, y_train), (X_valid, y_valid)],\n", " eval_metric='auc',\n", " verbose=50, early_stopping_rounds=200)\n", " y_pred_valid = model.predict(X_valid)\n", " y_pred = model.predict(dummy_test, num_iteration=model.best_iteration_)\n", " oof_lgb[valid_index] = y_pred_valid.reshape(-1, )\n", " predictions_lgb += y_pred\n", "predictions_lgb /= n_fold\n", "print(roc_auc_score(y, oof_lgb))\n", "# 0.9342991211145983" ] }, { "cell_type": "markdown", "metadata": { "id": "1D0CF99ED0F04505ADAF99D733B04257", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "### 基于GridSearchCV的catboost参数调整" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true, "id": "40143CE0A1F7461A9D5AAFEB614609B5", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [], "source": [ "\n", "# param = {'depth': [7,9,11],\n", "# 'learning_rate': [0.01],\n", "# 'iterations': [8000]}\n", "# gs = GridSearchCV(estimator=CatBoostRegressor(), param_grid=param, cv=3, scoring=\"neg_mean_squared_error\", n_jobs=-1) \n", "# gs.fit(X_resampled,y_resampled)\n", "# print(gs.best_params_) " ] }, { "cell_type": "markdown", "metadata": { "id": "0E595CF0D95341E69AB1154B1849F14E", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "### 基于五折交叉验证的catboost" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "3A557EC583C0481488702DC367D10F53", "jupyter": {}, "scrolled": false, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "0:\tlearn: 0.3201355\ttest: 0.3215319\tbest: 0.3215319 (0)\ttotal: 9.15ms\tremaining: 3m 48s\n", "1000:\tlearn: 0.2210492\ttest: 0.2482059\tbest: 0.2482059 (1000)\ttotal: 10.3s\tremaining: 4m 7s\n", "Stopped by overfitting detector (300 iterations wait)\n", "\n", "bestTest = 0.2468782072\n", "bestIteration = 1477\n", "\n", "Shrink model to first 1478 iterations.\n", "0:\tlearn: 0.3208935\ttest: 0.3185105\tbest: 0.3185105 (0)\ttotal: 15.1ms\tremaining: 6m 18s\n", "1000:\tlearn: 0.2206024\ttest: 0.2464808\tbest: 0.2464751 (998)\ttotal: 13.9s\tremaining: 5m 32s\n", "2000:\tlearn: 0.1971871\ttest: 0.2454924\tbest: 0.2454188 (1725)\ttotal: 25.1s\tremaining: 4m 48s\n", "Stopped by overfitting detector (300 iterations wait)\n", "\n", "bestTest = 0.2454188002\n", "bestIteration = 1725\n", "\n", "Shrink model to first 1726 iterations.\n", "0:\tlearn: 0.3214860\ttest: 0.3161403\tbest: 0.3161403 (0)\ttotal: 10.4ms\tremaining: 4m 19s\n", "1000:\tlearn: 0.2210140\ttest: 0.2480678\tbest: 0.2480521 (995)\ttotal: 10.3s\tremaining: 4m 6s\n", "Stopped by overfitting detector (300 iterations wait)\n", "\n", "bestTest = 0.24699407\n", "bestIteration = 1556\n", "\n", "Shrink model to first 1557 iterations.\n", "0:\tlearn: 0.3186885\ttest: 0.3274174\tbest: 0.3274174 (0)\ttotal: 11.9ms\tremaining: 4m 56s\n", "1000:\tlearn: 0.2202664\ttest: 0.2525361\tbest: 0.2525361 (1000)\ttotal: 12.8s\tremaining: 5m 6s\n", "Stopped by overfitting detector (300 iterations wait)\n", "\n", "bestTest = 0.2515410448\n", "bestIteration = 1603\n", "\n", "Shrink model to first 1604 iterations.\n", "0:\tlearn: 0.3209030\ttest: 0.3185929\tbest: 0.3185929 (0)\ttotal: 14.9ms\tremaining: 6m 11s\n", "1000:\tlearn: 0.2212537\ttest: 0.2523067\tbest: 0.2523067 (1000)\ttotal: 10.6s\tremaining: 4m 15s\n", "Stopped by overfitting detector (300 iterations wait)\n", "\n", "bestTest = 0.250998901\n", "bestIteration = 1618\n", "\n", "Shrink model to first 1619 iterations.\n" ] } ], "source": [ "# 本地交叉验证\n", "n_fold = 5\n", "folds = KFold(n_splits=n_fold, shuffle=True, random_state=1314)\n", "\n", "oof_cat = np.zeros(len(X))\n", "prediction_cat = np.zeros(len(dummy_test))\n", "for fold_n, (train_index, valid_index) in enumerate(folds.split(X)):\n", " X_train, X_valid = X.iloc[train_index], X.iloc[valid_index]\n", " y_train, y_valid = y[train_index], y[valid_index]\n", "# smote_tomek = SMOTETomek(random_state=2022)\n", "# X_resampled, y_resampled = smote_tomek.fit_resample(X_train, y_train)\n", " train_pool = Pool(X_train, y_train)\n", " eval_pool = Pool(X_valid, y_valid)\n", " cbt_model = CatBoostRegressor(iterations=25000, # 注:baseline 提到的分数是用 iterations=60000 得到的,但运行时间有点久\n", " learning_rate=0.01, # 注:事实上好几个 property 在 lr=0.1 时收敛巨慢。后面可以考虑调大\n", "# eval_metric='SMAPE',\n", " depth=9,\n", " use_best_model=True,\n", " random_seed=2022,\n", " logging_level='Verbose',\n", " #task_type='GPU',\n", " devices='0',\n", " gpu_ram_part=0.5,\n", " early_stopping_rounds=300)\n", " \n", " cbt_model.fit(train_pool,\n", " eval_set=eval_pool,\n", " verbose=1000)\n", "\n", " y_pred_valid = cbt_model.predict(X_valid)\n", " y_pred_c = cbt_model.predict(dummy_test)\n", " oof_cat[valid_index] = y_pred_valid.reshape(-1, )\n", " prediction_cat += y_pred_c\n", "prediction_cat /= n_fold \n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "27A63B61DB094FCF95CEEB6A1E3ADC5A", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "0.935264298588153\n" ] } ], "source": [ "print(roc_auc_score(y, oof_cat))\n", "# 0.935264298588153" ] }, { "cell_type": "markdown", "metadata": { "id": "9470A77D276E418F9CB2ACD8D18E6F68", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "### 基于stacking的模型融合" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "4A24F209D61E47E7A27F4A26D6687B89", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [ { "ename": "NameError", "evalue": "name 'prediction_lgb' is not defined", "output_type": "error", "traceback": [ "\u001b[31m---------------------------------------------------------------------------\u001b[39m", "\u001b[31mNameError\u001b[39m Traceback (most recent call last)", "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[62]\u001b[39m\u001b[32m, line 6\u001b[39m\n\u001b[32m 4\u001b[39m \u001b[38;5;66;03m# 将多个模型的结果进行stacking(叠加)\u001b[39;00m\n\u001b[32m 5\u001b[39m train_stack = np.vstack([oof_rf,oof_lgb,oof_cat,oof_xgb]).transpose()\n\u001b[32m----> \u001b[39m\u001b[32m6\u001b[39m test_stack = np.vstack([prediction_rf,\u001b[43mprediction_lgb\u001b[49m,prediction_cat,prediction_xgb]).transpose()\n\u001b[32m 7\u001b[39m \u001b[38;5;66;03m#贝叶斯分类器也使用交叉验证的方法,5折,重复2次\u001b[39;00m\n\u001b[32m 8\u001b[39m folds_stack = RepeatedKFold(n_splits=\u001b[32m5\u001b[39m, n_repeats=\u001b[32m2\u001b[39m, random_state=\u001b[32m2018\u001b[39m)\n", "\u001b[31mNameError\u001b[39m: name 'prediction_lgb' is not defined" ] } ], "source": [ "# from sklearn.linear_model import Bayesian\n", "from sklearn.metrics import mean_squared_error,mean_absolute_error,make_scorer\n", "\n", "# 将多个模型的结果进行stacking(叠加)\n", "train_stack = np.vstack([oof_rf,oof_lgb,oof_cat,oof_xgb]).transpose()\n", "test_stack = np.vstack([prediction_rf,prediction_lgb,prediction_cat,prediction_xgb]).transpose()\n", "#贝叶斯分类器也使用交叉验证的方法,5折,重复2次\n", "folds_stack = RepeatedKFold(n_splits=5, n_repeats=2, random_state=2018)\n", "oof_stack = np.zeros(train_stack.shape[0])\n", "predictions = np.zeros(test_stack.shape[0])\n", " \n", "for fold_, (trn_idx, val_idx) in enumerate(folds_stack.split(train_stack,y)):\n", " print(\"fold {}\".format(fold_))\n", " trn_data, trn_y = train_stack[trn_idx], y.iloc[trn_idx].values\n", " val_data, val_y = train_stack[val_idx], y.iloc[val_idx].values#\n", " \n", " clf_3 = BayesianRidge()\n", " clf_3.fit(trn_data, trn_y)\n", " \n", " oof_stack[val_idx] = clf_3.predict(val_data)#对验证集有一个预测,用于后面计算模型的偏差\n", " predictions += clf_3.predict(test_stack) / 10#对测试集的预测,除以10是因为5折交叉验证重复了2次\n", " \n", "mean_squared_error(y.values, oof_stack)#计算出模型在训练集上的均方误差\n", "print(\"CV score: {:<8.8f}\".format(mean_squared_error(y.values, oof_stack)))" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "33AB2F850236462DB7F0DFE549A2C559", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [ { "ename": "NameError", "evalue": "name 'oof_stack' is not defined", "output_type": "error", "traceback": [ "\u001b[31m---------------------------------------------------------------------------\u001b[39m", "\u001b[31mNameError\u001b[39m Traceback (most recent call last)", "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[61]\u001b[39m\u001b[32m, line 1\u001b[39m\n\u001b[32m----> \u001b[39m\u001b[32m1\u001b[39m \u001b[38;5;28mprint\u001b[39m(roc_auc_score(y, \u001b[43moof_stack\u001b[49m))\n\u001b[32m 2\u001b[39m \u001b[38;5;66;03m# 0.9361018703876826\u001b[39;00m\n", "\u001b[31mNameError\u001b[39m: name 'oof_stack' is not defined" ] } ], "source": [ "print(roc_auc_score(y, oof_stack))\n", "# 0.9361018703876826" ] }, { "cell_type": "markdown", "metadata": { "id": "1D7C809913E14DD79D1E399F519EDC1C", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "source": [ "# 保存结果" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true, "id": "BC37DA49289D45C2951D2FFDC91043BA", "jupyter": {}, "slideshow": { "slide_type": "slide" }, "tags": [], "trusted": true }, "outputs": [ { "ename": "NameError", "evalue": "name 'predictions' is not defined", "output_type": "error", "traceback": [ "\u001b[31m---------------------------------------------------------------------------\u001b[39m", "\u001b[31mNameError\u001b[39m Traceback (most recent call last)", "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[30]\u001b[39m\u001b[32m, line 1\u001b[39m\n\u001b[32m----> \u001b[39m\u001b[32m1\u001b[39m test[\u001b[33m'\u001b[39m\u001b[33mpred\u001b[39m\u001b[33m'\u001b[39m] = \u001b[43mpredictions\u001b[49m\n\u001b[32m 2\u001b[39m test[[\u001b[33m'\u001b[39m\u001b[33mID\u001b[39m\u001b[33m'\u001b[39m, \u001b[33m'\u001b[39m\u001b[33mpred\u001b[39m\u001b[33m'\u001b[39m]].to_csv(\u001b[33mr\u001b[39m\u001b[33m'\u001b[39m\u001b[33mG:/大三内容/数据分析可视化/实践课/sub.csv\u001b[39m\u001b[33m'\u001b[39m, index=\u001b[38;5;28;01mNone\u001b[39;00m, encoding=\u001b[33m\"\u001b[39m\u001b[33mutf-8\u001b[39m\u001b[33m\"\u001b[39m)\n", "\u001b[31mNameError\u001b[39m: name 'predictions' is not defined" ] } ], "source": [ "test['pred'] = predictions\n", "test[['ID', 'pred']].to_csv(r'G:/大三内容/数据分析可视化/实践课/sub.csv', index=None, encoding=\"utf-8\")" ] } ], "metadata": { "kernelspec": { "display_name": ".venv", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.9" } }, "nbformat": 4, "nbformat_minor": 2 }
2301_80341758/kehuyuce
Baseline客户购买预测.ipynb
Jupyter Notebook
unknown
57,939
module.exports = { presets: [ '@vue/cli-plugin-babel/preset' ] }
2301_80339408/rural_insight
babel.config.js
JavaScript
unknown
73
<!DOCTYPE html> <html lang=""> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <link rel="icon" href="<%= BASE_URL %>favicon.ico"> <title><%= htmlWebpackPlugin.options.title %></title> </head> <body> <noscript> <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> </noscript> <div id="app"></div> <!-- built files will be auto injected --> </body> </html>
2301_80339408/rural_insight
public/index.ejs
EJS
unknown
611
<template> <div id="app"> <router-view/> </div> </template> <script> export default { name: 'App' } </script> <style> #app { font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif; height: 100%; margin: 0; padding: 0; } html, body { height: 100%; margin: 0; padding: 0; } </style>
2301_80339408/rural_insight
src/App.vue
Vue
unknown
366
import chinaGeoJson from '../assets/geoJson/China.json' export default new Promise((resolve) => { // 直接返回本地的geoJson数据 resolve({ data: chinaGeoJson }) })
2301_80339408/rural_insight
src/api/getMap.js
JavaScript
unknown
180
import requests from "./request"; //首页页面相关接口 // 获取地图各省份服务资源分布 export const reqMap = () => requests.get("/service/statistics/mapResource", { params: { pageNum: 1, pageSize: 10, }, }); // 调度页面相关接口 // 获取需求列表 export const reqRequirements = (data) => requests.get("/dispatch/getRequirements", { params: data, }); // 获取服务资源列表 export const reqServiceResources = () => requests.get("/dispatch/getServiceResources"); // 响应需求 export const reqResponseRequirements = (data) => requests.post("/dispatch/responseRequirements", data);
2301_80339408/rural_insight
src/api/index.js
JavaScript
unknown
684
import axios from "axios"; import nProgress from "nprogress"; import "nprogress/nprogress.css"; const requests = axios.create({ baseURL: "/api", timeout: 20000, }); // 请求拦截器 requests.interceptors.request.use( function (config) { nProgress.start(); const token = sessionStorage.getItem("token"); if (token) { config.headers["Authorization"] = "Bearer" + token; } // 4. 确保 Content-Type 默认设置(避免跨域预检问题) if (!config.headers["Content-Type"]) { config.headers["Content-Type"] = "application/json"; } return config; }, function (error) { nProgress.done(); return Promise.reject(error); } ); // 响应拦截器 requests.interceptors.response.use( function (response) { nProgress.done(); const token = response.headers["Authorization"] || response.headers["authorization"]; if (token) { sessionStorage.setItem("token", token); const strings = token.split("."); const userInfo = JSON.parse( decodeURIComponent( escape(window.atob(strings[1].replace(/-/g, "+").replace(/_/g, "/"))) ) ); sessionStorage.setItem("userInfo", JSON.stringify(userInfo)); } return response.data; }, function (error) { nProgress.done(); if (error.response && error.response.status === 401) { sessionStorage.removeItem("token"); sessionStorage.removeItem("userInfo"); router.push("/login"); } return Promise.reject(error); } ); export default requests;
2301_80339408/rural_insight
src/api/request.js
JavaScript
unknown
1,615
// 中国省市县数据 export const chinaRegions = { provinces: [ { name: '北京市', code: '110000' }, { name: '天津市', code: '120000' }, { name: '河北省', code: '130000' }, { name: '山西省', code: '140000' }, { name: '内蒙古自治区', code: '150000' }, { name: '辽宁省', code: '210000' }, { name: '吉林省', code: '220000' }, { name: '黑龙江省', code: '230000' }, { name: '上海市', code: '310000' }, { name: '江苏省', code: '320000' }, { name: '浙江省', code: '330000' }, { name: '安徽省', code: '340000' }, { name: '福建省', code: '350000' }, { name: '江西省', code: '360000' }, { name: '山东省', code: '370000' }, { name: '河南省', code: '410000' }, { name: '湖北省', code: '420000' }, { name: '湖南省', code: '430000' }, { name: '广东省', code: '440000' }, { name: '广西壮族自治区', code: '450000' }, { name: '海南省', code: '460000' }, { name: '重庆市', code: '500000' }, { name: '四川省', code: '510000' }, { name: '贵州省', code: '520000' }, { name: '云南省', code: '530000' }, { name: '西藏自治区', code: '540000' }, { name: '陕西省', code: '610000' }, { name: '甘肃省', code: '620000' }, { name: '青海省', code: '630000' }, { name: '宁夏回族自治区', code: '640000' }, { name: '新疆维吾尔自治区', code: '650000' }, { name: '台湾省', code: '710000' }, { name: '香港特别行政区', code: '810000' }, { name: '澳门特别行政区', code: '820000' } ], // 部分主要城市数据(这里只列出部分示例,实际项目中可以根据需要扩展) cities: { '北京市': [{ name: '北京市', code: '110100' }], '天津市': [{ name: '天津市', code: '120100' }], '河北省': [ { name: '石家庄市', code: '130100' }, { name: '唐山市', code: '130200' }, { name: '秦皇岛市', code: '130300' }, { name: '邯郸市', code: '130400' }, { name: '邢台市', code: '130500' }, { name: '保定市', code: '130600' } ], '山西省': [ { name: '太原市', code: '140100' }, { name: '大同市', code: '140200' }, { name: '阳泉市', code: '140300' } ], '内蒙古自治区': [ { name: '呼和浩特市', code: '150100' }, { name: '包头市', code: '150200' }, { name: '乌海市', code: '150300' }, { name: '赤峰市', code: '150400' }, { name: '通辽市', code: '150500' }, { name: '鄂尔多斯市', code: '150600' } ], '安徽省': [ { name: '合肥市', code: '340100' }, { name: '芜湖市', code: '340200' }, { name: '蚌埠市', code: '340300' }, { name: '淮南市', code: '340400' }, { name: '马鞍山市', code: '340500' }, { name: '淮北市', code: '340600' }, { name: '铜陵市', code: '340700' }, { name: '安庆市', code: '340800' } ], '四川省': [ { name: '成都市', code: '510100' }, { name: '自贡市', code: '510300' }, { name: '攀枝花市', code: '510400' }, { name: '泸州市', code: '510500' }, { name: '德阳市', code: '510600' }, { name: '绵阳市', code: '510700' }, { name: '广元市', code: '510800' }, { name: '遂宁市', code: '510900' }, { name: '内江市', code: '511000' }, { name: '乐山市', code: '511100' }, { name: '南充市', code: '511300' } ], '重庆市': [{ name: '重庆市', code: '500100' }], '广东省': [ { name: '广州市', code: '440100' }, { name: '深圳市', code: '440300' }, { name: '珠海市', code: '440400' }, { name: '汕头市', code: '440500' }, { name: '佛山市', code: '440600' } ], '江苏省': [ { name: '南京市', code: '320100' }, { name: '无锡市', code: '320200' }, { name: '徐州市', code: '320300' }, { name: '常州市', code: '320400' }, { name: '苏州市', code: '320500' } ], '浙江省': [ { name: '杭州市', code: '330100' }, { name: '宁波市', code: '330200' }, { name: '温州市', code: '330300' }, { name: '嘉兴市', code: '330400' } ] }, // 部分主要区县数据(示例) districts: { '南充市': [ { name: '顺庆区', code: '511302' }, { name: '高坪区', code: '511303' }, { name: '嘉陵区', code: '511304' }, { name: '阆中市', code: '511381' }, { name: '南部县', code: '511321' }, { name: '营山县', code: '511322' }, { name: '蓬安县', code: '511323' }, { name: '仪陇县', code: '511324' }, { name: '西充县', code: '511325' } ], '安庆市': [ { name: '迎江区', code: '340802' }, { name: '大观区', code: '340803' }, { name: '宜秀区', code: '340811' }, { name: '怀宁县', code: '340822' }, { name: '潜山县', code: '340824' }, { name: '太湖县', code: '340825' }, { name: '宿松县', code: '340826' }, { name: '望江县', code: '340827' }, { name: '岳西县', code: '340828' } ], '鄂尔多斯市': [ { name: '东胜区', code: '150602' }, { name: '康巴什区', code: '150603' }, { name: '达拉特旗', code: '150621' }, { name: '准格尔旗', code: '150622' }, { name: '鄂托克前旗', code: '150623' }, { name: '鄂托克旗', code: '150624' }, { name: '杭锦旗', code: '150625' }, { name: '乌审旗', code: '150626' }, { name: '伊金霍洛旗', code: '150627' } ], '成都市': [ { name: '锦江区', code: '510104' }, { name: '青羊区', code: '510105' }, { name: '金牛区', code: '510106' }, { name: '武侯区', code: '510107' }, { name: '成华区', code: '510108' } ], '北京市': [ { name: '东城区', code: '110101' }, { name: '西城区', code: '110102' }, { name: '朝阳区', code: '110105' }, { name: '海淀区', code: '110108' } ] } }; // 获取所有省份 export function getProvinces() { return chinaRegions.provinces.map(province => province.name); } // 根据省份获取城市 export function getCitiesByProvince(provinceName) { return chinaRegions.cities[provinceName] || []; } // 根据城市获取区县 export function getDistrictsByCity(cityName) { return chinaRegions.districts[cityName] || []; }
2301_80339408/rural_insight
src/assets/data/chinaRegions.js
JavaScript
unknown
6,530
<template> <div class="service-form-container" style="display: flex; flex-direction: column; height: 100%;"> <!-- 服务需求统计表单 --> <el-card class="custom-card" style="flex: 1; margin-bottom: 15px; display: flex; flex-direction: column;"> <div slot="header" class="card-header"> <span style="color: #fff">服务需求统计</span> </div> <!-- 数据显示区域,使用v-loading指令 --> <div class="service-form" v-loading="loading" element-loading-text="加载中..." element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.8)" > <!-- 错误状态 --> <div v-if="error" class="error-message"> <i class="el-icon-error"></i> <span>{{ error }}</span> <el-button type="primary" size="small" @click="fetchServiceData" >重试</el-button > </div> <!-- 数据显示(仅在没有错误时显示) --> <div v-if="!error"> <div class="form-row"> <div class="form-item"> <div class="stat-number orange">{{ 种植需求 }}</div> <div class="stat-name">种植</div> </div> <div class="form-item"> <div class="stat-number blue">{{ 农资需求 }}</div> <div class="stat-name">农资</div> </div> <div class="form-item"> <div class="stat-number orange">{{ 耕种需求 }}</div> <div class="stat-name">耕种</div> </div> </div> <div class="form-row"> <div class="form-item"> <div class="stat-number blue">{{ 飞防需求 }}</div> <div class="stat-name">飞防</div> </div> <div class="form-item"> <div class="stat-number orange">{{ 收割需求 }}</div> <div class="stat-name">收割</div> </div> <div class="form-item"> <div class="stat-number blue">{{ 储藏需求 }}</div> <div class="stat-name">储藏</div> </div> </div> </div> </div> </el-card> <!-- 各产业订单数量 --> <el-card class="custom-card" style="flex: 1;"> <div slot="header" class="card-header"> <span style="color: #fff">各产业订单数量</span> </div> <div v-loading="loading" element-loading-text="加载中..." element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.8)" style="width: 100%;" > <div id="orderChart" style="width: 100%; flex: 1; min-height: 398px"></div> </div> </el-card> </div> </template> <script> import * as echarts from "echarts"; import axios from "axios"; const baseApi = "http://localhost:15000"; export default { name: "ServiceForm", data() { return { 种植需求: 0, 农资需求: 0, 耕种需求: 0, 飞防需求: 0, 收割需求: 0, 储藏需求: 0, orderData: [], orderCategories: [], loading: false, error: "", }; }, created() { // 组件创建时调用API获取数据 this.fetchServiceData(); this.fetchOrderData(); }, mounted() { // 确保在数据加载后初始化图表 this.$nextTick(() => { this.initChart(); }); }, methods: { // 调用接口获取服务数据 fetchServiceData() { this.loading = true; this.error = ""; // 调用实际API获取服务需求数据 axios .get(baseApi + "/service/statistics/demand") .then((response) => { console.log("服务数据获取成功:", response.data); if (response.data.code === 200) { // 更新组件数据 this.种植需求 = response.data.data.种苗 || 0; this.农资需求 = response.data.data.农资 || 0; this.耕种需求 = response.data.data.耕种 || 0; this.飞防需求 = response.data.data.飞防 || 0; this.收割需求 = response.data.data.收割 || 0; this.储藏需求 = response.data.data.储藏 || 0; this.error = ""; console.log("服务数据更新成功:", response.data.data); // 数据更新后重新初始化图表 this.$nextTick(() => { this.initChart(); }); } else { this.error = "获取服务数据失败:" + (response.data.message || "未知错误"); } this.loading = false; }) .catch((error) => { this.error = "网络请求失败,请检查网络连接"; this.loading = false; console.error("获取服务数据失败:", error); }); }, // 获取订单数量数据 fetchOrderData() { this.loading = true; // 调用实际API获取订单数量数据 axios .get(baseApi + "/service/statistics/orderNumber") .then((response) => { console.log("订单数据获取成功:", response.data); if (response.data.code === 200) { // 解析实际返回的数据结构 const data = response.data.data; // 提取订单数据和分类 this.orderData = [ data.果树茶叶 || 0, data.渔业养殖 || 0, data.畜牧养殖 || 0, data.粮棉油糖 || 0, data.蔬菜花卉 || 0, ]; this.orderCategories = [ "果树茶叶", "渔业养殖", "畜牧养殖", "粮棉油糖", "蔬菜花卉", ]; console.log("解析后的订单数据:", this.orderData); console.log("解析后的分类:", this.orderCategories); // 数据更新后重新初始化图表 this.$nextTick(() => { this.initChart(); }); } else { console.warn( "获取订单数据失败:", response.data.message || "未知错误" ); // 保持默认数据 this.orderData = [0, 0, 0, 0, 0]; this.orderCategories = [ "果树茶叶", "渔业养殖", "畜牧养殖", "粮棉油糖", "蔬菜花卉", ]; } this.loading = false; }) .catch((error) => { console.error("获取订单数据网络请求失败:", error); // 保持默认数据 this.orderData = [0, 0, 0, 0, 0]; this.orderCategories = [ "果树茶叶", "渔业养殖", "畜牧养殖", "粮棉油糖", "蔬菜花卉", ]; this.loading = false; }); }, initChart() { // 订单数量图表 const orderChart = echarts.init(document.getElementById("orderChart")); const orderOption = { tooltip: { trigger: "axis", axisPointer: { type: "shadow", }, }, grid: { left: "3%", right: "4%", bottom: "3%", containLabel: true, }, xAxis: { type: "category", data: this.orderCategories, axisLine: { lineStyle: { color: "#8799a3", }, }, axisLabel: { color: "#8799a3", }, }, yAxis: { type: "value", axisLine: { lineStyle: { color: "#8799a3", }, }, axisLabel: { color: "#8799a3", }, splitLine: { lineStyle: { color: "rgba(135, 153, 163, 0.2)", }, }, }, series: [ { data: this.orderData, type: "bar", itemStyle: { color: function () { const colorList = ["#f39c12", "#3498db", "#e74c3c", "#2ecc71"]; return colorList[Math.floor(Math.random() * colorList.length)]; }, }, }, ], backgroundColor: "transparent", }; orderChart.setOption(orderOption); // 窗口大小改变时,重新调整图表大小 window.addEventListener("resize", () => { if (orderChart && typeof orderChart.resize === "function") { orderChart.resize(); } }); }, }, }; </script> <style scoped> /* 基础样式重置 */ * { -webkit-box-sizing: border-box; box-sizing: border-box; } h1, h2, h3, h4, div { padding: 0; margin: 0; font-weight: normal; } /* 服务表单容器样式 */ .service-form-container { position: relative; display: flex; flex-direction: column; height: 100%; } /* 容器背景装饰 - 添加重复的背景图案,增强视觉效果 */ .service-form-container::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("../assets/dec/bg.png") repeat; opacity: 0.1; z-index: -2; } /* 服务需求统计表单卡片样式 - 为第一张卡片添加背景图片和透明度 */ .el-card.custom-card:first-child { position: relative; background: url("../assets/dec/bor1_1.png") no-repeat top; background-size: 100% 100%; opacity: 0.9; z-index: 1; border: 0 solid transparent; } /* 卡片下层装饰 - 为第一张卡片添加底层装饰图案 */ .el-card.custom-card:first-child::before { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url("../assets/dec/bor1_2.png") no-repeat; background-size: 100% 100%; z-index: -1; content: ""; } /* 产业订单数量卡片样式 - 为第二张卡片设置背景色和边框样式 */ .el-card.custom-card:last-child { position: relative; background: rgba(18, 22, 64, 0.5); margin-top: 10px; /* border-top: 4px solid #121e52; */ /* border-bottom: 4px solid #10144b; */ opacity: 0.9; border: 0 solid transparent; } /* 第二张卡片背景装饰 - 为订单数量卡片添加背景图案 */ .el-card.custom-card:last-child::before { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url("../assets/dec/bor1_2.png") no-repeat; background-size: 100% 100%; z-index: -1; content: ""; } /* 第二张卡片右上角装饰 - 为订单数量卡片添加角标装饰 */ .el-card.custom-card:last-child::after { content: ""; position: absolute; top: 5.6%; right: -2%; z-index: 100; width: 15%; height: 7%; background: url("../assets/dec/bor1_2_square.png") no-repeat; background-size: 100%; z-index: 10; } /* 卡片标题样式 - 设置标题的位置、字体大小和颜色 */ .card-header { position: relative; font-size: 0.5625em; color: #fff; padding-left: 13%; } /* 标题图标 - 在标题左侧添加装饰图标 */ .card-header::before { content: ""; position: absolute; left: 0; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); width: 8%; height: 60%; background: url("../assets/dec/bor2_3.png") no-repeat center; background-size: contain; } /* 表单区域样式 - 设置表单的内边距和高度 */ .service-form { padding: 15px; flex: 1; display: flex; flex-direction: column; } /* 表单行布局 - 使用flex布局设置表单行的对齐方式 */ .form-row { display: flex; justify-content: space-between; margin-bottom: 15px; } /* 表单项样式 - 设置每个统计项的外观和位置 */ .form-item { flex: 1; background: rgba(8, 29, 93, 0.8); border-radius: 8px; padding: 15px 10px; text-align: center; position: relative; overflow: hidden; border: 1px solid #1e4d85; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; margin: 0 5px; } /* 表单项顶部装饰线 - 添加顶部发光效果 */ .form-item:before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, #00bbec, transparent); } /* 表单项底部装饰线 - 添加底部渐变效果 */ .form-item:after { content: ""; position: absolute; bottom: 0; right: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, #1e4d85, transparent); } /* 表单项悬停效果 - 鼠标悬停时提升卡片并增强阴影 */ .form-item:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0, 187, 236, 0.3); border-color: #00bbec; } /* 统计数字样式 - 设置数字的字体、大小和效果 */ .stat-number { font-family: DigifaceWide; font-size: 1.25em; font-weight: bold; margin-bottom: 8px; text-shadow: 0 0 10px rgba(0, 187, 236, 0.5); letter-spacing: 1px; } /* 橙色数字样式 - 为特定统计项设置橙色 */ .stat-number.orange { color: #ff9500; } /* 蓝色数字样式 - 为特定统计项设置蓝色 */ .stat-number.blue { color: #00bbec; } /* 统计名称样式 - 设置统计项名称的颜色和字体大小 */ .stat-name { color: #8aa4ce; font-size: 0.4375em; letter-spacing: 0.5px; } /* 单位样式 - 为统计数字添加"万"单位 */ .stat-number.unit-wan:after { display: inline-block; margin-left: 4%; font-size: 12px; color: #fff; content: "万"; } /* 订单图表容器 - 设置图表的位置属性以便添加背景 */ #orderChart { position: relative; } /* 图表背景装饰 - 为图表添加半透明的背景图案 */ #orderChart::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("../assets/dec/bor1_3.png") no-repeat center center; background-size: contain; opacity: 0.1; pointer-events: none; z-index: -1; } /* 装饰性元素 - 为表单项添加顶部渐变效果 */ .form-item::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, #00bbec, transparent); } /* 装饰性元素 - 为表单项添加底部渐变效果 */ .form-item::after { content: ""; position: absolute; bottom: 0; right: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, #1e4d85, transparent); } /* 表单背景装饰 - 为service-form添加圆形装饰背景 */ .service-form { position: relative; z-index: 1; } .service-form::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; height: 80%; background: url("../assets/dec/bg-circle.png") no-repeat center; background-size: contain; opacity: 0.1; z-index: -1; } /* 响应式调整 - 针对大屏幕的字体大小调整 */ @media screen and (max-width: 1930px) { .stat-number { font-size: 1em; } .stat-name { font-size: 0.375em; } } /* 标题文本样式 - 设置卡片标题的字体大小和粗细 */ .card-header span { position: relative; z-index: 1; font-size: 18px; font-weight: bold; } /* 标题下划线效果 - 为标题添加底部渐变线条装饰 */ .card-header span::before { content: ""; position: absolute; bottom: -2px; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, #00bbec, transparent); z-index: -1; } /* 表单项交替颜色 - 为不同位置的表单项设置不同的顶部渐变颜色 */ .form-item:nth-child(1)::before { background: linear-gradient(90deg, transparent, #ff9500, transparent); } .form-item:nth-child(2)::before { background: linear-gradient(90deg, transparent, #00bbec, transparent); } .form-item:nth-child(3)::before { background: linear-gradient(90deg, transparent, #ff9500, transparent); } /* 错误消息样式 - 网络加载失败时保持原样 */ .error-message { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 200px; color: #f56c6c; background-color: rgba(245, 108, 108, 0.05); border: 1px solid rgba(245, 108, 108, 0.2); border-radius: 4px; padding: 20px; text-align: center; } </style>
2301_80339408/rural_insight
src/components/ServiceForm.vue
Vue
unknown
16,980
import Vue from 'vue' import App from './App.vue' import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; import * as echarts from 'echarts'; import store from './store'; import router from './router'; Vue.use(ElementUI); Vue.prototype.$echarts = echarts; Vue.config.productionTip = false new Vue({ render: h => h(App), store, router, }).$mount('#app')
2301_80339408/rural_insight
src/main.js
JavaScript
unknown
389
<template> <div id="analyze-page" class="main-content"> <!-- 顶部导航栏 --> <el-header class="header-container"> <div class="header-content"> <div class="logo"> <i class="el-icon-line-chart logo-icon"></i> <span class="logo-text">智慧农业分析平台</span> </div> <div class="header-tabs"> <el-tabs v-model="activeTab" :tab-position="'top'" style="width: 100%;"> <el-tab-pane label="服务资源分析" name="resourceAnalysis"> <i class="el-icon-database"></i> </el-tab-pane> <el-tab-pane label="订单趋势统计" name="orderStatistics"> <i class="el-icon-trend-charts"></i> <span>订单趋势统计</span> </el-tab-pane> <el-tab-pane label="资源分布地图" name="resourceMap"> <i class="el-icon-map-location"></i> <span>资源分布地图</span> </el-tab-pane> </el-tabs> </div> </div> </el-header> <!-- 主内容区域 --> <el-main class="main-container"> <!-- 统计卡片 --> <el-row :gutter="16" class="stats-cards"> <el-col :xs="24" :sm="12" :lg="6" class="stat-card-wrapper"> <div class="stat-card stat-card-primary"> <div class="stat-icon"> <i class="el-icon-service"></i> </div> <div class="stat-content"> <div class="stat-title">总服务资源</div> <div class="stat-value">{{ totalResources.toLocaleString() }}</div> <div class="stat-change"> <i class="el-icon-arrow-up"></i> <span>12.5% 较上月</span> </div> </div> </div> </el-col> <el-col :xs="24" :sm="12" :lg="6" class="stat-card-wrapper"> <div class="stat-card stat-card-success"> <div class="stat-icon"> <i class="el-icon-shopping-cart"></i> </div> <div class="stat-content"> <div class="stat-title">本月订单</div> <div class="stat-value">{{ monthlyOrders.toLocaleString() }}</div> <div class="stat-change"> <i class="el-icon-arrow-up"></i> <span>8.3% 较上月</span> </div> </div> </div> </el-col> <el-col :xs="24" :sm="12" :lg="6" class="stat-card-wrapper"> <div class="stat-card stat-card-warning"> <div class="stat-icon"> <i class="el-icon-coin"></i> </div> <div class="stat-content"> <div class="stat-title">服务收入</div> <div class="stat-value">¥{{ serviceRevenue.toLocaleString() }}</div> <div class="stat-change"> <i class="el-icon-arrow-up"></i> <span>15.2% 较上月</span> </div> </div> </div> </el-col> <el-col :xs="24" :sm="12" :lg="6" class="stat-card-wrapper"> <div class="stat-card stat-card-info"> <div class="stat-icon"> <i class="el-icon-user"></i> </div> <div class="stat-content"> <div class="stat-title">活跃用户</div> <div class="stat-value">{{ activeUsers.toLocaleString() }}</div> <div class="stat-change"> <i class="el-icon-arrow-up"></i> <span>5.7% 较上月</span> </div> </div> </div> </el-col> </el-row> <!-- 搜索和筛选区域 --> <el-card class="search-filter-card"> <div class="search-filter"> <el-input v-model="searchName" placeholder="请输入主体名称" class="search-input" prefix-icon="el-icon-search" /> <el-select v-model="selectedCrop" placeholder="请选择作物" class="filter-select"> <el-option label="全部" value="all" /> <el-option label="水稻" value="rice" /> <el-option label="小麦" value="wheat" /> <el-option label="玉米" value="corn" /> <el-option label="茶叶" value="tea" /> </el-select> <el-select v-model="selectedType" placeholder="请选择服务类型" class="filter-select"> <el-option label="全部" value="all" /> <el-option label="翻犁" value="plow" /> <el-option label="播种" value="sow" /> <el-option label="施肥" value="fertilize" /> <el-option label="植保" value="protection" /> <el-option label="收获" value="harvest" /> <el-option label="技术指导" value="guidance" /> </el-select> <el-date-picker v-model="dateRange" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" class="date-range-picker" /> <el-button type="primary" icon="el-icon-search" class="search-button">搜索</el-button> <el-button icon="el-icon-refresh" class="reset-button">重置</el-button> </div> </el-card> <!-- 图表区域 --> <el-row :gutter="16" class="charts-container"> <!-- 服务资源利用图表 --> <el-col :xs="24" :lg="12" class="chart-wrapper"> <el-card class="chart-card"> <div slot="header" class="card-header"> <span class="card-title">服务资源利用分布</span> <div class="card-actions"> <el-radio-group v-model="resourceTimeRange" size="small"> <el-radio-button label="day">日</el-radio-button> <el-radio-button label="week">周</el-radio-button> <el-radio-button label="month" checked>月</el-radio-button> </el-radio-group> </div> </div> <div class="chart-content"> <div ref="resourceUtilChart" class="chart"></div> </div> </el-card> </el-col> <!-- 订单趋势统计图表 --> <el-col :xs="24" :lg="12" class="chart-wrapper"> <el-card class="chart-card"> <div slot="header" class="card-header"> <span class="card-title">订单趋势统计</span> <div class="card-actions"> <el-radio-group v-model="orderTimeRange" size="small"> <el-radio-button label="month">月</el-radio-button> <el-radio-button label="quarter">季度</el-radio-button> <el-radio-button label="year" checked>年</el-radio-button> </el-radio-group> </div> </div> <div class="chart-content"> <div ref="orderTrendChart" class="chart"></div> </div> </el-card> </el-col> </el-row> <!-- 服务资源列表已移除 --> </el-main> </div> </template> <script> import * as echarts from 'echarts'; import moment from 'moment'; export default { name: 'AnalyzePage', data() { return { activeTab: 'resourceAnalysis', searchName: '', selectedCrop: 'all', selectedType: 'all', selectedRegion: 'all', dateRange: [], totalResources: 245, monthlyOrders: 1856, serviceRevenue: 568200, activeUsers: 325, resourceTimeRange: 'month', orderTimeRange: 'year', currentDate: '', // 图表实例 resourceUtilChart: null, orderTrendChart: null }; }, mounted() { this.setCurrentDate(); this.initResourceUtilChart(); this.initOrderTrendChart(); // 监听窗口大小变化,重新调整图表大小 window.addEventListener('resize', this.handleResize); }, beforeDestroy() { // 组件销毁前,移除事件监听并释放图表资源 window.removeEventListener('resize', this.handleResize); if (this.resourceUtilChart) { this.resourceUtilChart.dispose(); } if (this.orderTrendChart) { this.orderTrendChart.dispose(); } }, methods: { // 设置当前日期 setCurrentDate() { this.currentDate = moment().format('YYYY年MM月DD日'); }, // 初始化服务资源利用图表 initResourceUtilChart() { const chart = echarts.init(this.$refs.resourceUtilChart); this.resourceUtilChart = chart; const option = { backgroundColor: 'transparent', tooltip: { trigger: 'axis', axisPointer: { type: 'shadow', shadowStyle: { color: 'rgba(0, 187, 236, 0.1)' } }, backgroundColor: 'rgba(12, 30, 62, 0.8)', borderColor: '#1e4d85', textStyle: { color: '#fff' }, formatter: '{b}: {c} 次' }, grid: { left: '3%', right: '4%', bottom: '15%', top: '10%', containLabel: true }, xAxis: { type: 'category', data: ['耕种', '施肥', '病虫害', '收割', '运输', '交易', '仓储', '烘干'], axisLabel: { color: '#8aa4ce', fontSize: 12, interval: 0, rotate: 0 }, axisLine: { lineStyle: { color: '#1e4d85' } }, axisTick: { alignWithLabel: true, lineStyle: { color: '#1e4d85' } } }, yAxis: { type: 'value', axisLabel: { color: '#8aa4ce', fontSize: 12, formatter: '{value}' }, axisLine: { lineStyle: { color: '#1e4d85' } }, splitLine: { lineStyle: { color: 'rgba(30, 77, 133, 0.3)', type: 'dashed' } } }, series: [ { name: '服务资源', type: 'bar', barWidth: '50%', data: [58400, 51350, 48390, 46500, 53000, 33080, 28590, 19940], animationDelay: function (idx) { return idx * 100; }, itemStyle: { // 使用渐变色填充柱形 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, color: '#00bfff' }, { offset: 1, color: '#0c5adb' } ]), // 添加圆角 borderRadius: [4, 4, 0, 0], // 添加发光效果 shadowBlur: 10, shadowColor: 'rgba(0, 191, 255, 0.5)', shadowOffsetY: 5 }, emphasis: { itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, color: '#5ac8fa' }, { offset: 1, color: '#1976d2' } ]), shadowBlur: 20, shadowColor: 'rgba(0, 191, 255, 0.8)' } } } ], animationEasing: 'elasticOut', animationDelayUpdate: function (idx) { return idx * 5; } }; chart.setOption(option); }, // 初始化订单趋势统计图表 initOrderTrendChart() { const chart = echarts.init(this.$refs.orderTrendChart); this.orderTrendChart = chart; const option = { backgroundColor: 'transparent', tooltip: { trigger: 'axis', backgroundColor: 'rgba(12, 30, 62, 0.8)', borderColor: '#1e4d85', textStyle: { color: '#fff' }, formatter: function(params) { let result = params[0].name + '<br/>'; params.forEach(param => { result += `${param.marker}${param.seriesName}: ${param.value.toLocaleString()} 单<br/>`; }); return result; } }, legend: { data: ['包地', '油作物'], textStyle: { color: '#8aa4ce', fontSize: 12 }, top: '10%', right: '5%', itemWidth: 10, itemHeight: 10 }, grid: { left: '3%', right: '4%', bottom: '15%', top: '20%', containLabel: true }, xAxis: { type: 'category', boundaryGap: false, data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], axisLabel: { color: '#8aa4ce', fontSize: 12 }, axisLine: { lineStyle: { color: '#1e4d85' } }, splitLine: { show: false } }, yAxis: { type: 'value', axisLabel: { color: '#8aa4ce', fontSize: 12, formatter: '{value}' }, axisLine: { lineStyle: { color: '#1e4d85' } }, splitLine: { lineStyle: { color: 'rgba(30, 77, 133, 0.3)', type: 'dashed' } } }, series: [ { name: '包地', type: 'line', stack: '总量', smooth: true, symbol: 'circle', symbolSize: 6, sampling: 'average', itemStyle: { color: '#ffd700' }, lineStyle: { width: 3, color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [ { offset: 0, color: '#ffd700' }, { offset: 1, color: '#ff9800' } ]) }, areaStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, color: 'rgba(255, 215, 0, 0.5)' }, { offset: 1, color: 'rgba(255, 215, 0, 0.1)' } ]) }, emphasis: { focus: 'series', itemStyle: { shadowBlur: 10, shadowColor: 'rgba(255, 215, 0, 0.5)', symbolSize: 8 } }, data: [5000, 8000, 15000, 12000, 16000, 20000, 22000, 18000, 25000, 23000, 18000, 15000] }, { name: '油作物', type: 'line', stack: '总量', smooth: true, symbol: 'circle', symbolSize: 6, sampling: 'average', itemStyle: { color: '#00bfff' }, lineStyle: { width: 3, color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [ { offset: 0, color: '#00bfff' }, { offset: 1, color: '#0066cc' } ]) }, areaStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, color: 'rgba(0, 191, 255, 0.5)' }, { offset: 1, color: 'rgba(0, 191, 255, 0.1)' } ]) }, emphasis: { focus: 'series', itemStyle: { shadowBlur: 10, shadowColor: 'rgba(0, 191, 255, 0.5)', symbolSize: 8 } }, data: [4000, 6000, 10000, 8000, 12000, 14000, 16000, 14000, 18000, 16000, 12000, 10000] } ], animationDuration: 1500 }; chart.setOption(option); }, // 处理窗口大小变化 handleResize() { if (this.resourceUtilChart) { this.resourceUtilChart.resize(); } if (this.orderTrendChart) { this.orderTrendChart.resize(); } } }, watch: { // 监听时间范围变化,重新加载图表数据 resourceTimeRange() { this.initResourceUtilChart(); }, orderTimeRange() { this.initOrderTrendChart(); } } }; </script> <style scoped> /* 全局样式重置 */ * { box-sizing: border-box; } /* 主容器样式 */ .main-content { height: 100vh; background: linear-gradient(135deg, #0c1e3e 0%, #0a1a33 50%, #081428 100%), radial-gradient(circle at 20% 80%, rgba(90, 200, 250, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(0, 187, 236, 0.1) 0%, transparent 50%); color: #fff; overflow: hidden; position: relative; } .main-content::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2300bbec' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E"); pointer-events: none; z-index: 0; } /* 头部样式 */ .header-container { height: 80px; background: rgba(12, 30, 62, 0.95); border-bottom: 1px solid rgba(90, 200, 250, 0.3); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(90, 200, 250, 0.1); position: relative; z-index: 100; backdrop-filter: blur(10px); } .header-content { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; position: relative; } .logo { display: flex; align-items: center; gap: 12px; position: relative; } .logo::after { content: ''; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); width: 1px; height: 30px; background: linear-gradient(180deg, transparent, rgba(90, 200, 250, 0.5), transparent); } .logo-icon { font-size: 32px; background: linear-gradient(135deg, #00bfff 0%, #5ac8fa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 2px 4px rgba(0, 191, 255, 0.3)); } .logo-text { font-size: 22px; font-weight: 700; background: linear-gradient(135deg, #fff 0%, #5ac8fa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: 0 2px 8px rgba(0, 191, 255, 0.2); } .header-tabs { flex: 1; margin: 0 60px; display: flex; height: 44px; line-height: 44px; /* align-items: center; justify-content: center; */ } .header-tabs .el-tabs { flex: 1; max-width: 500px; } .header-tabs .el-tabs__nav { background: transparent; border: none; } .header-tabs .el-tabs__item { color: #8aa4ce; font-size: 15px; font-weight: 500; padding: 0 24px; height: 44px; line-height: 44px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 8px 8px 0 0; position: relative; overflow: hidden; } .header-tabs .el-tabs__item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(90, 200, 250, 0.1) 0%, transparent 100%); opacity: 0; transition: opacity 0.3s ease; } .header-tabs .el-tabs__item:hover { color: #5ac8fa; background: rgba(90, 200, 250, 0.05); } .header-tabs .el-tabs__item:hover::before { opacity: 1; } .header-tabs .el-tabs__item.is-active { color: #00bfff; background: rgba(0, 187, 236, 0.1); font-weight: 600; } .header-tabs .el-tabs__item.is-active::before { opacity: 1; } .header-tabs .el-tabs__active-bar { background: linear-gradient(90deg, #00bfff 0%, #5ac8fa 100%); height: 3px; border-radius: 2px; box-shadow: 0 2px 8px rgba(0, 191, 255, 0.4); } .header-tabs .el-tabs__item .el-icon { margin-right: 6px; font-size: 16px; } /* 主内容区域 */ .main-container { height: calc(100vh - 80px); padding: 24px; overflow-y: auto; position: relative; z-index: 1; } /* 统计卡片 */ .stats-cards { margin-bottom: 24px; } .stat-card-wrapper { animation: fadeInUp 0.6s ease-out; } .stat-card-wrapper:nth-child(2) { animation-delay: 0.1s; } .stat-card-wrapper:nth-child(3) { animation-delay: 0.2s; } .stat-card-wrapper:nth-child(4) { animation-delay: 0.3s; } .stat-card { height: 140px; border-radius: 16px; padding: 24px; display: flex; align-items: center; gap: 20px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; backdrop-filter: blur(10px); border: 1px solid rgba(90, 200, 250, 0.2); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1); } .stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #00bfff, #5ac8fa); } .stat-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, rgba(90, 200, 250, 0.1) 0%, transparent 70%); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; } .stat-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(90, 200, 250, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15); } .stat-card:hover::after { opacity: 1; } .stat-card-primary { background: linear-gradient(135deg, rgba(0, 135, 255, 0.15) 0%, rgba(0, 68, 136, 0.15) 100%); } .stat-card-success { background: linear-gradient(135deg, rgba(34, 193, 195, 0.15) 0%, rgba(25, 135, 84, 0.15) 100%); } .stat-card-warning { background: linear-gradient(135deg, rgba(253, 203, 110, 0.15) 0%, rgba(255, 159, 64, 0.15) 100%); } .stat-card-info { background: linear-gradient(135deg, rgba(102, 16, 242, 0.15) 0%, rgba(66, 133, 244, 0.15) 100%); } .stat-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; position: relative; z-index: 2; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } .stat-card-primary .stat-icon { background: linear-gradient(135deg, #00bfff 0%, #0066cc 100%); } .stat-card-success .stat-icon { background: linear-gradient(135deg, #34c759 0%, #28a745 100%); } .stat-card-warning .stat-icon { background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%); } .stat-card-info .stat-icon { background: linear-gradient(135deg, #8b5cf6 0%, #6c757d 100%); } .stat-content { flex: 1; position: relative; z-index: 2; } .stat-title { color: #8aa4ce; font-size: 13px; font-weight: 500; margin-bottom: 8px; letter-spacing: 0.5px; } .stat-value { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 6px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); background: linear-gradient(135deg, #fff 0%, #5ac8fa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .stat-change { font-size: 12px; color: #34c759; display: flex; align-items: center; gap: 4px; font-weight: 500; } .stat-change .el-icon-arrow-up { font-size: 10px; } /* 搜索和筛选卡片 */ .search-filter-card { background: rgba(24, 55, 101, 0.7); border: 1px solid rgba(90, 200, 250, 0.3); border-radius: 16px; margin-bottom: 24px; animation: fadeInUp 0.6s ease-out 0.4s both; backdrop-filter: blur(10px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1); overflow: hidden; } .search-filter-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(90, 200, 250, 0.5), transparent); } .search-filter { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 24px; } /* 输入框和选择框样式 */ .search-input, .filter-select, .date-range-picker { position: relative; } .search-input .el-input__inner, .filter-select .el-input__inner, .date-range-picker .el-input__inner { background: rgba(12, 30, 62, 0.9); border: 1px solid rgba(90, 200, 250, 0.3); color: #fff; border-radius: 10px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05); height: 44px; line-height: 44px; } .search-input .el-input__inner:hover, .filter-select .el-input__inner:hover, .date-range-picker .el-input__inner:hover { border-color: #5ac8fa; box-shadow: 0 4px 12px rgba(90, 200, 250, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1); } .search-input .el-input__inner:focus, .filter-select .el-input__inner:focus, .date-range-picker .el-input__inner:focus { border-color: #00bfff; box-shadow: 0 0 0 3px rgba(0, 187, 236, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1); } .search-input .el-input__inner::placeholder, .filter-select .el-input__inner::placeholder { color: #8aa4ce; } .search-input { width: 280px; } .filter-select { width: 160px; } .date-range-picker { width: 260px; } /* 按钮样式 */ .search-button, .reset-button { height: 44px; border-radius: 10px; font-weight: 600; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; } .search-button { background: linear-gradient(135deg, #00bfff 0%, #5ac8fa 100%); border: none; color: #fff; padding: 0 24px; box-shadow: 0 4px 15px rgba(0, 187, 236, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1); } .search-button:hover { background: linear-gradient(135deg, #0099cc 0%, #4ab5e3 100%); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 187, 236, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15); color: #fff; } .reset-button { background: rgba(12, 30, 62, 0.9); border: 1px solid rgba(90, 200, 250, 0.3); color: #8aa4ce; padding: 0 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .reset-button:hover { background: rgba(12, 30, 62, 1); border-color: #5ac8fa; color: #5ac8fa; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } /* 图表容器 */ .charts-container { margin-bottom: 24px; } .chart-wrapper { animation: fadeInUp 0.6s ease-out 0.5s both; } .chart-wrapper:nth-child(2) { animation-delay: 0.6s; } .chart-card { background: rgba(24, 55, 101, 0.7); border: 1px solid rgba(90, 200, 250, 0.3); border-radius: 16px; height: 450px; display: flex; flex-direction: column; backdrop-filter: blur(10px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1); overflow: hidden; transition: all 0.3s ease; } .chart-card:hover { border-color: rgba(90, 200, 250, 0.5); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(90, 200, 250, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15); } .card-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: rgba(12, 30, 62, 0.9); border-bottom: 1px solid rgba(90, 200, 250, 0.3); border-radius: 16px 16px 0 0; position: relative; } .card-header::before { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(90, 200, 250, 0.5), transparent); } .card-title { color: #fff; font-size: 16px; font-weight: 600; background: linear-gradient(135deg, #fff 0%, #5ac8fa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .card-actions { display: flex; align-items: center; gap: 8px; } .card-actions .el-radio-button__inner { background: rgba(12, 30, 62, 0.9); border: 1px solid rgba(90, 200, 250, 0.3); color: #8aa4ce; border-radius: 8px; transition: all 0.3s ease; font-size: 12px; padding: 6px 12px; } .card-actions .el-radio-button__inner:hover { border-color: #5ac8fa; color: #5ac8fa; } .card-actions .el-radio-button.is-active .el-radio-button__inner { background: linear-gradient(135deg, #00bfff 0%, #5ac8fa 100%); border-color: #5ac8fa; color: #fff; box-shadow: 0 2px 8px rgba(0, 187, 236, 0.3); } .chart-content { flex: 1; padding: 16px; display: flex; align-items: center; justify-content: center; } .chart { width: 100%; height: 320px; } /* 动画效果 */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } @keyframes shimmer { 0% { background-position: -1000px 0; } 100% { background-position: 1000px 0; } } /* 美化滚动条 */ .main-container::-webkit-scrollbar { width: 8px; } .main-container::-webkit-scrollbar-track { background: rgba(12, 30, 62, 0.5); border-radius: 4px; } .main-container::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #00bfff 0%, #5ac8fa 100%); border-radius: 4px; opacity: 0.6; transition: opacity 0.3s ease; } .main-container::-webkit-scrollbar-thumb:hover { opacity: 0.8; } /* 响应式设计 */ @media screen and (max-width: 1200px) { .header-tabs { margin: 0 30px; } .search-input { width: 240px; } .filter-select { width: 140px; } .date-range-picker { width: 220px; } } @media screen and (max-width: 992px) { .header-content { padding: 0 20px; } .header-tabs { display: none; } .search-filter { gap: 12px; } .search-input, .filter-select, .date-range-picker { flex: 1; min-width: 150px; } .stat-card { height: 120px; padding: 20px; } .stat-icon { width: 50px; height: 50px; font-size: 24px; } .stat-value { font-size: 24px; } } @media screen and (max-width: 768px) { .main-container { padding: 16px; } .header-content { padding: 0 16px; } .logo-text { font-size: 18px; } .stats-cards .el-col { margin-bottom: 16px; } .search-filter { flex-direction: column; gap: 12px; } .search-input, .filter-select, .date-range-picker, .search-button, .reset-button { width: 100%; } .chart-wrapper { margin-bottom: 16px; } .chart-card { height: 350px; } } /* 加载动画 */ .loading-shimmer { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 1000px 100%; animation: shimmer 2s infinite linear; } /* 图标美化 */ .el-icon { transition: all 0.3s ease; } .el-icon-search, .el-icon-refresh { font-size: 16px; } /* 特殊效果 */ .glow-effect { filter: drop-shadow(0 0 8px rgba(0, 187, 236, 0.4)); } .pulse { animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } </style>
2301_80339408/rural_insight
src/pages/Analyze/index.vue
Vue
unknown
33,230
<template> <div id="dispatch-page" class="main-content"> <!-- 顶部导航栏 --> <el-container> <el-main style=" padding: 14px; background-color: #0c1e3e; height: calc(100vh - 60px); " > <!-- 主内容区域 --> <el-row :gutter="16" style="height: 100%"> <!-- 左侧服务需求统计 --> <el-col :span="6" style="display: flex; flex-direction: column; height: 100%" > <!-- 服务资源详情 --> <el-card class="custom-card glow-card" id="leftCard" style=" flex: 1; min-height: 600px; display: flex; flex-direction: column; border-radius: 12px; border: 1px solid rgba(90, 200, 250, 0.3); " > <div slot="header" class="card-header" style="margin-top: 8px"> <i class="el-icon-info" style="margin-right: 8px; color: #5ac8fa" ></i> <span style="color: #fff; font-weight: 600">服务资源详情</span> </div> <div class="service-detail"> <div v-if="hasServiceResource"> <div v-for="item in selectedServiceResource" :key="item.id" class="dispatch-item" > <div class="detail-item"> <div class="detail-label">服务组织名称</div> <div class="detail-value ellipsis"> {{ item.serviceSubjectName }} </div> </div> <div class="detail-item"> <div class="detail-label">主要服务产业</div> <div class="detail-value"> {{ item.productName === null ? "未知" : item.productName }} </div> </div> <div class="detail-item"> <div class="detail-label">农机类型</div> <div class="detail-value ellipsis"> {{ item.productType === null ? "未知" : item.productType }} </div> </div> <div class="detail-item"> <div class="detail-label">服务价格</div> <div class="detail-value"> {{ item.price }}元/{{ item.unit === null ? "亩" : item.unit }} </div> </div> <div class="detail-item"> <div class="detail-label">完成次数</div> <div class="detail-value"> <div class="completion-info"> <span> {{ item.dealNum }}次</span> <el-progress :percentage="99.5" :stroke-width="6" :show-text="false" class="small-progress" /> </div> </div> </div> <div class="detail-item"> <div class="detail-label">服务时间</div> <div class="detail-value"> {{ item.startTime }}到{{ item.endTime }} </div> </div> <div class="detail-item"> <div class="detail-label">联系人</div> <div class="detail-value">{{ item.contactPerson }}</div> </div> <div class="detail-item"> <div class="detail-label">联系电话</div> <div class="detail-value">{{ item.contactPhone }}</div> </div> <div class="detail-item"> <div class="detail-label">距离</div> <div class="detail-value"> {{ (item.distance.value / 1000).toFixed(2) }}公里 </div> </div> </div> </div> <div v-else> <div class="no-data"> <div style=" text-align: center; color: #8aa4ce; padding: 40px 20px; " > <i class="el-icon-info" style=" font-size: 24px; margin-bottom: 10px; display: block; " ></i> 暂无服务资源详情 <div style="font-size: 12px; margin-top: 10px"> 请点击右侧智能调度中的"立即响应"获取服务资源 </div> </div> </div> </div> <div class="action-buttons"> <el-button size="medium" class="glow-effect" >查看详情</el-button > <el-button size="medium" class="glow-effect" >发送消息</el-button > </div> </div> </el-card> </el-col> <!-- 中间区域 - 地图 --> <el-col :span="12" style="display: flex; flex-direction: column; height: 100%" > <!-- 社会化服务资源在线分布图 --> <el-card class="custom-card glow-card" id="centerCard" style=" flex: 1; border-radius: 12px; border: 1px solid rgba(90, 200, 250, 0.3); " > <div slot="header" class="card-header"> <i class="el-icon-map-location" style="margin-right: 8px; color: #5ac8fa" ></i> <span style="color: #fff; font-weight: 600" >社会化服务资源在线分布图</span > <div class="map-controls"> <el-button size="small" type="text" class="map-control-btn" @click="resetMap" > <i class="el-icon-refresh-right"></i> </el-button> </div> </div> <div style="width: 100%; height: 100%; min-height: 710px" ref="mapChart" class="chart-container" ></div> </el-card> </el-col> <!-- 右侧区域 --> <el-col :span="6" style="display: flex; flex-direction: column; height: 100%" > <!-- 智能调度 --> <el-card class="custom-card glow-card" style=" flex: 1; display: flex; flex-direction: column; border-radius: 12px; border: 1px solid rgba(90, 200, 250, 0.3); " > <div slot="header" class="card-header"> <i class="el-icon-s-grid" style="margin-right: 8px; color: #5ac8fa" ></i> <span style="color: #fff">智能调度</span> <div class="map-controls"> <el-button size="small" type="text" class="map-control-btn" @click="refreshDispatchList" > <i class="el-icon-refresh-right"></i> </el-button> </div> </div> <!-- 智能调度内容区域 --> <div class="dispatch-container"> <!-- 数据列表区域 --> <div class="dispatch-list-container"> <div v-if="loading" class="loading-state"> <i class="el-icon-loading"></i> 加载中... </div> <div v-else-if="dispatchItems.length === 0" class="empty-state" > 暂无数据 </div> <div v-else class="dispatch-list"> <div v-for="item in dispatchItems" :key="item.id" :class="[ 'dispatch-item', { selected: item.id === selectedDispatchItemId }, ]" > <img :src="item.pictureUrl" :alt="item.title" class="dispatch-image" /> <div class="dispatch-info"> <div class="dispatch-title">{{ item.title }}</div> <div class="dispatch-detail"> <div class="detail-row"> <span>作物类型:</span> <span>{{ item.title }}</span> </div> <div class="detail-row"> <span>需求时间:</span> <span >{{ item.startTime }}到{{ item.endTime }}</span > </div> <div class="detail-row"> <span>需求面积:</span> <span>{{ item.amount }}{{ item.unit }}</span> </div> <div class="detail-row"> <span>预算价格:</span> <span>{{ item.price }}元/{{ item.unit }}</span> </div> <div class="detail-row"> <span>需求地址:</span> <span>{{ item.address }}</span> </div> <div class="detail-row"> <span>联系人:</span> <span>{{ item.publishName }}</span> </div> <div class="detail-row"> <span>联系电话:</span> <span>{{ item.phoneNumber }}</span> </div> <div class="detail-row"> <span>发布时间:</span> <div>{{ item.publishTime }}</div> </div> </div> <el-button type="success" size="small" class="dispatch-btn" @click="dispatchService(item)" >立即响应</el-button > </div> </div> </div> </div> <!-- 分页组件 - 固定在底部 --> <div class="pagination-container"> <el-pagination background :current-page="pageNum" :page-size="pageSize" layout="total, prev, pager, next, jumper" :total="total" @current-change="handleCurrentChange" > </el-pagination> </div> </div> </el-card> </el-col> </el-row> </el-main> </el-container> </div> </template> <script> import getMap from "../../api/getMap"; import * as echarts from "echarts"; import { reqRequirements, reqServiceResources, reqResponseRequirements, } from "@/api"; export default { name: "DispatchPage", data() { return { serviceResources: [], dispatchItems: [], pageNum: 1, pageSize: 5, total: 0, loading: false, selectedServiceResource: [], // 当前选中的服务资源 hasServiceResource: false, // 是否有服务资源 selectedDispatchItemId: null, // 当前选中的服务需求卡片ID mapChart: null, // 存储地图实例 }; }, mounted() { this.initMapChart(); this.fetchDispatchData(); // 添加页面加载动画效果 this.$nextTick(() => { const cards = document.querySelectorAll(".custom-card"); cards.forEach((card, index) => { setTimeout(() => { card.style.opacity = "1"; card.style.transform = "translateY(0)"; }, 100 * index); }); }); }, beforeDestroy() { // 清理事件监听器 if (this.mapChart) { window.removeEventListener("resize", this.handleResize); this.mapChart.dispose(); } }, methods: { // 获取智能调度数据 fetchDispatchData() { this.loading = true; const params = { pageNum: this.pageNum, pageSize: this.pageSize, }; reqRequirements(params) .then((response) => { if (response.data.code === 200) { this.loading = false; this.dispatchItems = response.data.data.records; // 更新分页信息 this.total = response.data.data.total || 0; } }) .catch((error) => { console.error("获取调度数据失败:", error); }) .finally(() => { this.loading = false; }); }, // 处理分页大小变化 // handleSizeChange(size) { // this.pageSize = size; // this.pageNum = 1; // this.fetchDispatchData(); // }, // 处理当前页码变化 handleCurrentChange(current) { this.pageNum = current; this.fetchDispatchData(); }, // 初始化地图散点图 initMapChart() { this.mapChart = echarts.init(this.$refs["mapChart"]); // 显示加载动画 this.mapChart.showLoading({ text: "数据加载中...", textColor: "#fff", maskColor: "rgba(0, 0, 0, 0.3)", spinnerRadius: 20, }); // 获取中国地图数据并绘制散点图 getMap .then((res) => { // 注册中国地图 echarts.registerMap("china", res.data); // 通过axios请求获取服务资源数据 return this.generateServiceResources() .then((data) => { this.serviceResources = data; // 配置地图散点图选项 const option = { backgroundColor: "#0c1e3e", title: { text: "社会化服务资源在线分布图", left: "center", textStyle: { color: "#fff", fontSize: 16, }, }, tooltip: { trigger: "item", formatter: function (params) { // 显示城市名称和服务次数 return ( params.value[3] + "<br/>服务次数: " + params.value[2] + "次" ); }, backgroundColor: "rgba(0, 0, 0, 0.7)", borderColor: "#333", textStyle: { color: "#fff", }, }, geo: { map: "china", roam: true, label: { emphasis: { show: true, color: "#fff", }, }, itemStyle: { normal: { areaColor: "#142957", borderColor: "#09488e", }, emphasis: { areaColor: "#09488e", }, }, }, series: [ { name: "服务资源", type: "scatter", coordinateSystem: "geo", data: this.serviceResources, symbolSize: function (val) { return Math.max(val[2] / 100, 12); }, label: { show: true, position: "top", formatter: function (params) { // 直接显示服务次数 return params.value[2] + "次"; }, color: "#fff", fontSize: 10, fontWeight: "bold", }, itemStyle: { // 使用渐变色填充散点 color: function (params) { // 根据服务次数设置不同颜色 const value = params.value[2]; let baseColor = "#32cd32"; if (value > 2000) baseColor = "#ff4500"; else if (value > 1000) baseColor = "#ff7f50"; else if (value > 500) baseColor = "#ffd700"; // 创建径向渐变 return new echarts.graphic.RadialGradient( 0.5, 0.5, 0.5, [ { offset: 0, color: "#fff" }, { offset: 0.6, color: baseColor }, { offset: 1, color: baseColor }, ] ); }, // 添加边框效果 borderColor: "#fff", borderWidth: 1.5, // 添加发光效果 shadowBlur: 15, shadowColor: function (params) { const value = params.value[2]; let shadowColor = "#32cd32"; if (value > 2000) shadowColor = "#ff4500"; else if (value > 1000) shadowColor = "#ff7f50"; else if (value > 500) shadowColor = "#ffd700"; return shadowColor; }, opacity: 0.9, }, emphasis: { // 鼠标悬停时的强调效果 scale: true, scaleSize: 10, itemStyle: { shadowBlur: 25, shadowColor: function (params) { const value = params.value[2]; let shadowColor = "#32cd32"; if (value > 2000) shadowColor = "#ff4500"; else if (value > 1000) shadowColor = "#ff7f50"; else if (value > 500) shadowColor = "#ffd700"; return shadowColor; }, }, label: { show: true, fontSize: 12, fontWeight: "bold", color: "#fff", }, }, }, ], }; this.mapChart.setOption(option); // 窗口大小改变时,重新调整图表大小 this.handleResize = () => { this.mapChart.resize(); }; window.addEventListener("resize", this.handleResize); }) .then(() => { this.mapChart.hideLoading(); // 所有数据处理完成后隐藏加载状态 }); }) .catch((error) => { console.error("初始化地图或获取服务资源数据失败:", error); this.mapChart.hideLoading(); this.mapChart.setOption({ title: { text: "社会化服务资源在线分布图 - 数据加载失败", left: "center", textStyle: { color: "#ff4500", fontSize: 16, }, }, backgroundColor: "#0c1e3e", }); }); }, // 通过axios请求获取服务资源数据 generateServiceResources() { return new Promise((resolve) => { // 发起axios请求获取服务资源数据 reqServiceResources() .then((res) => { if (res.data.code === 200 && res.data.data) { // 假设API返回的数据已经是正确的格式:[[longitude, latitude, count, name], ...] resolve(res.data.data); } else { // 如果返回数据不符合预期,使用默认的模拟数据 console.warn("获取服务资源数据格式异常,使用默认数据"); resolve(this.getDefaultServiceResources()); } }) .catch((error) => { console.error("获取服务资源数据失败:", error); // 请求失败时,使用默认的模拟数据作为回退 resolve(this.getDefaultServiceResources()); }); }); }, // 默认的模拟服务资源数据,作为请求失败时的回退 getDefaultServiceResources() { // 中国主要城市的经纬度和服务次数 const cityData = [ [116.405285, 39.904989, 2500, "北京"], [121.472644, 31.231706, 2200, "上海"], [113.280637, 23.125178, 1800, "广州"], [114.085947, 22.547, 1600, "深圳"], [104.065735, 30.659462, 1500, "成都"], [120.153576, 30.287459, 1400, "杭州"], [114.305523, 30.59285, 1300, "武汉"], [108.948024, 34.263161, 1200, "西安"], [106.504962, 29.533155, 1100, "重庆"], [118.767413, 32.041544, 1000, "南京"], [117.190182, 39.125596, 950, "天津"], [120.619585, 31.298863, 900, "苏州"], [112.982279, 28.19409, 850, "长沙"], [120.382661, 36.101009, 800, "青岛"], [113.665412, 34.757975, 750, "郑州"], [113.749638, 23.049663, 700, "东莞"], [121.548884, 29.868333, 650, "宁波"], [113.122959, 23.029663, 600, "佛山"], [117.283042, 31.86119, 550, "合肥"], [121.614624, 38.913419, 500, "大连"], ]; return cityData; }, // 服务响应 dispatchService(item) { // 设置当前选中的服务需求卡片ID this.selectedDispatchItemId = item.id; const params = { id: item.id, userId: item.userId, typeId: item.typeId, typePid: item.typePid, longitude: item.longitude, latitude: item.latitude, }; // 发起axios请求响应服务需求 reqResponseRequirements(params) .then((res) => { this.$message({ type: "success", message: "服务响应成功", }); this.getServiceData(res.data.data); }) .catch((error) => { console.error("服务分配失败:", error); this.$message({ type: "error", message: "服务分配失败", }); }); }, // 处理API返回的服务资源数据 getServiceData(data) { this.selectedServiceResource = data; console.log("服务资源数据:", this.serviceResources); this.hasServiceResource = data.length > 0; }, // 重置地图 resetMap() { if (this.mapChart) { this.mapChart.dispatchAction({ type: "restore", }); // 添加刷新动画效果 this.mapChart.showLoading({ text: "重置中...", textColor: "#fff", maskColor: "rgba(0, 0, 0, 0.3)", }); setTimeout(() => { this.mapChart.hideLoading(); }, 500); } }, // 刷新调度列表 refreshDispatchList() { // 模拟刷新操作 setTimeout(() => { // 可以在这里重新加载数据, 例如通过Ajax加载数据 this.fetchDispatchData(); }, 1000); }, }, }; </script> <style scoped> /* 全局样式优化 */ .main-content { font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; } /* 确保卡片主体内容填满空间 */ .el-card__body { height: 100%; padding: 0; display: flex; flex-direction: column; } /* 卡片样式优化 */ .custom-card { opacity: 0; height: calc(100% - 40px); background: rgba(16, 36, 71, 0.7); backdrop-filter: blur(10px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); } .glow-card { /* 移除光影效果,保留基本样式 */ } /* 卡片头部样式 */ .card-header { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(90, 200, 250, 0.2); background: rgba(12, 30, 62, 0.5); } /* 服务详情样式 */ .service-detail { padding: 15px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; } .detail-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(30, 77, 133, 0.3); transition: background-color 0.3s ease; } .detail-item:hover { background-color: rgba(90, 200, 250, 0.05); border-radius: 4px; } .detail-item:last-child { border-bottom: none; } .detail-label { color: #8aa4ce; font-size: 13px; font-weight: 500; } .detail-value { color: #fff; font-size: 14px; font-weight: 500; text-align: right; max-width: 60%; } .ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .completion-info { display: flex; align-items: center; gap: 8px; } .small-progress { flex: 1; max-width: 80px; } .action-buttons { display: flex; flex-direction: column; text-align: left; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 20px; flex-shrink: 0; } .action-buttons .el-button { width: 100%; background: linear-gradient( 90deg, rgba(0, 135, 255, 0.8), rgba(90, 200, 250, 0.8) ); border: 1px solid rgba(90, 200, 250, 0.5); color: #fff; border-radius: 6px; font-weight: 500; transition: all 0.3s ease; position: relative; overflow: hidden; } .action-buttons .el-button:hover { background: linear-gradient( 90deg, rgba(0, 135, 255, 1), rgba(90, 200, 250, 1) ); border-color: #5ac8fa; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(90, 200, 250, 0.4); } .action-buttons .el-button:active { transform: translateY(0); } /* 右侧卡片容器布局 */ .dispatch-container { display: flex; flex-direction: column; height: 75vh; width: 100%; position: relative; } /* 数据列表容器 - 可滚动 */ .dispatch-list-container { flex: 1; overflow-y: auto; overflow-x: hidden; height: calc(100% - 50px); padding: 10px; min-height: 0; /* 重要:确保flex子元素可以收缩 */ } /* 分页容器 - 固定在底部 */ .pagination-container { flex-shrink: 0; padding: 15px 10px; background: rgba(12, 30, 62, 0.8); border-top: 1px solid rgba(90, 200, 250, 0.2); margin-top: auto; /* 确保分页器始终在底部 */ } /* 数据列表样式 */ .dispatch-list { display: flex; flex-direction: column; gap: 15px; } /* 调度项样式优化 */ .dispatch-item { background: rgba(24, 55, 101, 0.6); border-radius: 8px; padding: 15px; border: 1px solid #1e4d85; transition: all 0.3s ease; position: relative; overflow: hidden; width: 100%; /* 确保宽度自适应 */ box-sizing: border-box; /* 包含padding和border在宽度内 */ } .dispatch-item:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(90, 200, 250, 0.2); border-color: #5ac8fa; } /* 保留顶部的装饰条但确保它不会影响图片 */ .dispatch-item::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, #5ac8fa, transparent); z-index: 1; } /* 选中的服务需求卡片样式 */ .dispatch-item.selected { border-color: #32cd32; background: rgba(50, 205, 50, 0.1); box-shadow: 0 0 20px rgba(50, 205, 50, 0.3); } .dispatch-item.selected::before { background: linear-gradient(90deg, transparent, #32cd32, transparent); height: 3px; } .dispatch-image { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 15px; border: 1px solid rgba(90, 200, 250, 0.3); position: relative; z-index: 2; transition: transform 0.3s ease; } .dispatch-item:hover .dispatch-image { transform: scale(1.02); } .dispatch-title { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 10px; text-align: center; text-shadow: 0 0 10px rgba(90, 200, 250, 0.3); } .dispatch-detail { margin-bottom: 15px; } .detail-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; color: #8aa4ce; transition: color 0.3s ease; width: 100%; box-sizing: border-box; } .detail-row:hover { color: #a8c7ff; } .detail-row span:last-child { color: #fff; text-align: right; max-width: 60%; word-break: break-word; /* 防止长文本溢出 */ } .dispatch-btn { width: 100%; background: linear-gradient( 90deg, rgba(34, 193, 195, 0.8), rgba(253, 187, 45, 0.8) ); border: none; color: #fff; border-radius: 6px; font-weight: 500; transition: all 0.3s ease; position: relative; overflow: hidden; } .dispatch-btn:hover { background: linear-gradient( 90deg, rgba(34, 193, 195, 1), rgba(253, 187, 45, 1) ); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(34, 193, 195, 0.4); } .dispatch-btn:active { transform: translateY(0); } /* 加载和空状态样式 */ .loading-state, .empty-state { text-align: center; color: #8aa4ce; padding: 40px 20px; display: flex; align-items: center; justify-content: center; height: 100%; } /* 地图控制按钮样式 */ .map-controls { margin-left: auto; } .map-control-btn { color: #8aa4ce; font-size: 16px; transition: color 0.3s ease, transform 0.3s ease; } .map-control-btn:hover { color: #5ac8fa; transform: rotate(90deg); } /* 美化滚动条 */ .dispatch-list-container::-webkit-scrollbar { width: 6px; } .dispatch-list-container::-webkit-scrollbar-track { background: rgba(12, 30, 62, 0.5); border-radius: 3px; } .dispatch-list-container::-webkit-scrollbar-thumb { background: rgba(0, 187, 236, 0.5); border-radius: 3px; } .dispatch-list-container::-webkit-scrollbar-thumb:hover { background: rgba(0, 187, 236, 0.8); } /* 分页组件样式优化 */ .pagination-container .el-pagination { color: #8aa4ce; width: 100%; display: flex; justify-content: center; } .pagination-container .el-pagination__total { color: #8aa4ce; } .pagination-container .el-pagination button, .pagination-container .el-pagination span:not([class*="suffix"]) { color: #8aa4ce; background-color: rgba(12, 30, 62, 0.5); border: 1px solid rgba(90, 200, 250, 0.3); transition: all 0.3s ease; } .pagination-container .el-pagination button:hover { color: #5ac8fa; background-color: rgba(12, 30, 62, 0.8); border-color: #5ac8fa; } .pagination-container .el-pagination .el-pager li { color: #8aa4ce; transition: all 0.3s ease; } .pagination-container .el-pagination .el-pager li:hover { color: #5ac8fa; } .pagination-container .el-pagination .el-pager li.active { color: #fff; background-color: rgba(90, 200, 250, 0.5); border-color: #5ac8fa; } /* 装饰性的发光效果 */ .glow-effect::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient( circle at center, rgba(90, 200, 250, 0.15) 0%, transparent 70% ); pointer-events: none; opacity: 0; transition: opacity 0.3s ease; } .glow-effect:hover::after { opacity: 1; } /* 无数据状态样式 */ .no-data { display: flex; align-items: center; justify-content: center; height: 100%; flex-direction: column; } /* 图表容器样式 */ .chart-container { position: relative; } /* 响应式设计 */ @media (max-width: 1200px) { .el-col-6, .el-col-12 { width: 100%; margin-bottom: 16px; } .el-main { height: auto !important; } .dispatch-item { padding: 12px; } .dispatch-image { height: 100px; } .detail-row { font-size: 12px; } } /* 确保卡片内容不溢出 */ .custom-card { overflow: hidden; } .el-card__body { padding: 0; display: flex; flex-direction: column; height: 100%; } /* 加载动画 */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .fade-in-up { animation: fadeInUp 0.5s ease forwards; } </style>
2301_80339408/rural_insight
src/pages/Dispatch/index.vue
Vue
unknown
34,091
<template> <div id="dispatch-page" class="main-content"> <!-- 顶部导航栏 --> <el-container> <el-main style=" padding: 14px; background-color: #0c1e3e; height: calc(100vh - 60px); " > <!-- 主内容区域 --> <el-row :gutter="16" style="height: 100%"> <!-- 左侧服务需求统计 --> <el-col :span="6" style="display: flex; flex-direction: column; height: 100%" > <!-- 服务资源详情 --> <el-card class="custom-card glow-card" id="leftCard" style=" flex: 1; min-height: 600px; display: flex; flex-direction: column; border-radius: 12px; border: 1px solid rgba(90, 200, 250, 0.3); " > <div slot="header" class="card-header" style="margin-top: 8px"> <i class="el-icon-info" style="margin-right: 8px; color: #5ac8fa" ></i> <span style="color: #fff; font-weight: 600">服务资源详情</span> </div> <div class="service-detail"> <div v-if="hasServiceResource"> <div v-for="item in selectedServiceResource" :key="item.id" class="dispatch-item" ></div> </div> <div class="detail-item"> <div class="detail-label">服务组织名称</div> <div class="detail-value ellipsis"> 隆中思维新型经济综合社 </div> </div> <div class="detail-item"> <div class="detail-label">主要服务产业</div> <div class="detail-value">水稻</div> </div> <div class="detail-item"> <div class="detail-label">服务类型</div> <div class="detail-value ellipsis"> 种植、施肥、植保、飞防作业 </div> </div> <div class="detail-item"> <div class="detail-label">作业面积</div> <div class="detail-value">40亩</div> </div> <div class="detail-item"> <div class="detail-label">完成次数</div> <div class="detail-value"> <div class="completion-info"> <span>199/200次</span> <el-progress :percentage="99.5" :stroke-width="6" :show-text="false" class="small-progress" /> </div> </div> </div> <div class="detail-item"> <div class="detail-label">组织状态</div> <div class="detail-value"> <el-badge :value="'在线'" type="success" effect="light" /> </div> </div> <div class="detail-item"> <div class="detail-label">附近资源</div> <div class="detail-value resource-count">0</div> </div> <div class="detail-item"> <div class="detail-label">响应速度</div> <div class="detail-value"> <el-rate v-model="responseRate" disabled :max="5" :colors="['#5ac8fa']" size="small" /> </div> </div> <div class="action-buttons"> <el-button type="primary" size="medium" class="action-btn primary-btn" >实时调度</el-button > <el-button size="medium" class="action-btn secondary-btn" >查看详情</el-button > <el-button size="medium" class="action-btn tertiary-btn" >发送消息</el-button > </div> </div> </el-card> </el-col> <!-- 中间区域 - 地图 --> <el-col :span="12" style="display: flex; flex-direction: column; height: 100%" > <!-- 社会化服务资源在线分布图 --> <el-card class="custom-card glow-card" id="centerCard" style=" flex: 1; border-radius: 12px; border: 1px solid rgba(90, 200, 250, 0.3); " > <div slot="header" class="card-header"> <i class="el-icon-map-location" style="margin-right: 8px; color: #5ac8fa" ></i> <span style="color: #fff; font-weight: 600" >社会化服务资源在线分布图</span > <div class="map-controls"> <el-button size="small" type="text" class="map-control-btn" @click="resetMap" > <i class="el-icon-refresh-right"></i> </el-button> </div> </div> <div style="width: 100%; height: 100%; min-height: 710px" ref="mapChart" class="chart-container" ></div> </el-card> </el-col> <!-- 右侧区域 --> <el-col :span="6" style="display: flex; flex-direction: column; height: 100%" > <!-- 智能调度 --> <el-card class="custom-card glow-card" style=" flex: 1; border-radius: 12px; border: 1px solid rgba(90, 200, 250, 0.3); " > <div slot="header" class="card-header"> <i class="el-icon-s-grid" style="margin-right: 8px; color: #5ac8fa" ></i> <span style="color: #fff; font-weight: 600">智能调度</span> <div class="refresh-controls"> <el-button size="small" type="text" class="refresh-btn" @click="refreshDispatchList" > <i class="el-icon-refresh"></i> </el-button> </div> </div> <div class="dispatch-section"> <div class="dispatch-item hover-card"> <div class="image-container"> <img src="https://picsum.photos/id/123/200/120" alt="水稻直播场景" class="dispatch-image" /> <div class="demand-tag"> <i class="el-icon-flag"></i> 紧急 </div> </div> <div class="dispatch-info"> <div class="dispatch-title">全流程服务</div> <div class="dispatch-detail"> <div class="detail-row"> <span class="label">作物:</span> <span class="value">水稻</span> </div> <div class="detail-row"> <span class="label">需求时间:</span> <span class="value">2023/12/1-2023/12/5</span> </div> <div class="detail-row"> <span class="label">需求面积:</span> <span class="value highlight">10亩</span> </div> </div> <el-button type="success" size="small" class="dispatch-btn hover-btn" >立即响应</el-button > </div> </div> <div class="dispatch-item hover-card"> <div class="image-container"> <img src="https://picsum.photos/id/124/200/120" alt="水稻施肥场景" class="dispatch-image" /> </div> <div class="dispatch-info"> <div class="dispatch-title">水稻精准施肥</div> <div class="dispatch-detail"> <div class="detail-row"> <span class="label">作物:</span> <span class="value">水稻</span> </div> <div class="detail-row"> <span class="label">需求时间:</span> <span class="value">2023/12/1-2023/12/5</span> </div> <div class="detail-row"> <span class="label">需求面积:</span> <span class="value highlight">65亩</span> </div> </div> <el-button type="success" size="small" class="dispatch-btn hover-btn" >立即响应</el-button > </div> </div> <div class="dispatch-item hover-card"> <div class="image-container"> <img src="https://picsum.photos/id/125/200/120" alt="病虫害防治场景" class="dispatch-image" /> </div> <div class="dispatch-info"> <div class="dispatch-title">病虫害综合防治</div> <div class="dispatch-detail"> <div class="detail-row"> <span class="label">作物:</span> <span class="value">小麦</span> </div> <div class="detail-row"> <span class="label">需求时间:</span> <span class="value">2023/12/3-2023/12/7</span> </div> <div class="detail-row"> <span class="label">需求面积:</span> <span class="value highlight">45亩</span> </div> </div> <el-button type="success" size="small" class="dispatch-btn hover-btn" >立即响应</el-button > </div> </div> </div> </el-card> </el-col> </el-row> </el-main> </el-container> </div> </template> <script> import getMap from "@/api/getMap"; import * as echarts from "echarts"; export default { name: "DispatchPage", data() { return { serviceResources: [], responseRate: 4.5, // 响应速度评分 mapChart: null, }; }, mounted() { this.initMapChart(); // 添加页面加载动画效果 this.$nextTick(() => { const cards = document.querySelectorAll(".custom-card"); cards.forEach((card, index) => { setTimeout(() => { card.style.opacity = "1"; card.style.transform = "translateY(0)"; }, 100 * index); }); }); }, beforeDestroy() { // 清理事件监听器 if (this.mapChart) { window.removeEventListener("resize", this.handleResize); this.mapChart.dispose(); } }, methods: { // 初始化地图散点图 initMapChart() { this.mapChart = echarts.init(this.$refs["mapChart"]); // 显示加载动画 this.mapChart.showLoading({ text: "数据加载中...", textColor: "#fff", maskColor: "rgba(0, 0, 0, 0.3)", spinnerRadius: 20, }); // 获取中国地图数据并绘制散点图 getMap .then((res) => { this.mapChart.hideLoading(); // 注册中国地图 echarts.registerMap("china", res.data); // 生成服务资源数据 this.serviceResources = this.generateServiceResources(); // 配置地图散点图选项 const option = { backgroundColor: "transparent", tooltip: { trigger: "item", backgroundColor: "rgba(0, 30, 60, 0.9)", borderColor: "#5ac8fa", borderWidth: 1, textStyle: { color: "#fff", fontSize: 13, }, formatter: function (params) { if (params.seriesType === "scatter") { return ` <div style="padding: 8px;"> <div style="font-weight: 600; margin-bottom: 5px;">${params.value[3]}</div> <div>服务次数: <span style="color: #5ac8fa;">${params.value[2]}次</span></div> </div> `; } return params.name; }, }, geo: { map: "china", roam: true, scaleLimit: { min: 1, max: 5, }, label: { emphasis: { show: true, color: "#fff", fontSize: 12, fontWeight: "bold", }, }, itemStyle: { normal: { areaColor: { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [ { offset: 0, color: "#142957" }, { offset: 1, color: "#0c1e3e" }, ], }, borderColor: "#09488e", borderWidth: 1, }, emphasis: { areaColor: { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [ { offset: 0, color: "#09488e" }, { offset: 1, color: "#142957" }, ], }, borderColor: "#5ac8fa", borderWidth: 1.5, shadowBlur: 15, shadowColor: "rgba(90, 200, 250, 0.3)", }, }, // 添加底图网格线 silent: false, }, // 添加图例 legend: { orient: "horizontal", bottom: 10, left: "center", textStyle: { color: "#fff", }, data: ["服务资源"], backgroundColor: "rgba(0, 30, 60, 0.7)", borderRadius: 5, padding: 8, }, series: [ { name: "服务资源", type: "scatter", coordinateSystem: "geo", data: this.serviceResources, symbolSize: function (val) { return Math.max(val[2] / 100, 12); }, label: { show: true, position: "top", formatter: function (params) { // 直接显示服务次数 return params.value[2] + "次"; }, color: "#fff", fontSize: 10, fontWeight: "bold", backgroundColor: "rgba(0, 30, 60, 0.7)", borderRadius: 3, padding: [2, 5], borderColor: "#5ac8fa", borderWidth: 0.5, }, itemStyle: { // 使用渐变色填充散点 color: function (params) { // 根据服务次数设置不同颜色 const value = params.value[2]; let baseColor = "#32cd32"; if (value > 2000) baseColor = "#ff4500"; else if (value > 1000) baseColor = "#ff7f50"; else if (value > 500) baseColor = "#ffd700"; // 创建径向渐变 return new echarts.graphic.RadialGradient(0.5, 0.5, 0.8, [ { offset: 0, color: "#fff" }, { offset: 0.6, color: baseColor }, { offset: 1, color: baseColor }, ]); }, // 添加边框效果 borderColor: "#fff", borderWidth: 1.5, // 添加发光效果 shadowBlur: 20, shadowColor: function (params) { const value = params.value[2]; let shadowColor = "#32cd32"; if (value > 2000) shadowColor = "#ff4500"; else if (value > 1000) shadowColor = "#ff7f50"; else if (value > 500) shadowColor = "#ffd700"; return shadowColor; }, opacity: 0.95, }, emphasis: { // 鼠标悬停时的强调效果 scale: true, scaleSize: 15, itemStyle: { shadowBlur: 30, shadowColor: function (params) { const value = params.value[2]; let shadowColor = "#32cd32"; if (value > 2000) shadowColor = "#ff4500"; else if (value > 1000) shadowColor = "#ff7f50"; else if (value > 500) shadowColor = "#ffd700"; return shadowColor; }, }, label: { show: true, fontSize: 14, fontWeight: "bold", color: "#fff", backgroundColor: "rgba(0, 30, 60, 0.9)", borderColor: "#5ac8fa", borderWidth: 1, }, animationDuration: 300, animationEasing: "elasticOut", }, // 添加入场动画 animationType: "scale", animationDuration: 1500, animationEasing: "elasticOut", animationDelay: function (idx) { return Math.random() * 500; }, }, ], }; this.mapChart.setOption(option); // 窗口大小改变时,重新调整图表大小 window.addEventListener("resize", this.handleResize); }) .catch((error) => { console.error("获取地图数据失败:", error); this.mapChart.hideLoading(); this.mapChart.setOption({ title: { text: "社会化服务资源在线分布图 - 数据加载失败", subtext: "点击刷新按钮重试", left: "center", textStyle: { color: "#ff4500", fontSize: 16, fontWeight: "bold", }, subtextStyle: { color: "#8aa4ce", fontSize: 13, }, }, backgroundColor: "transparent", }); }); }, // 生成模拟的服务资源数据 generateServiceResources() { // 中国主要城市的经纬度和服务次数 const cityData = [ [116.405285, 39.904989, 2500, "北京"], [121.472644, 31.231706, 2200, "上海"], [113.280637, 23.125178, 1800, "广州"], [114.085947, 22.547, 1600, "深圳"], [104.065735, 30.659462, 1500, "成都"], [120.153576, 30.287459, 1400, "杭州"], [114.305523, 30.59285, 1300, "武汉"], [108.948024, 34.263161, 1200, "西安"], [106.504962, 29.533155, 1100, "重庆"], [118.767413, 32.041544, 1000, "南京"], [117.190182, 39.125596, 950, "天津"], [120.619585, 31.298863, 900, "苏州"], [112.982279, 28.19409, 850, "长沙"], [120.382661, 36.101009, 800, "青岛"], [113.665412, 34.757975, 750, "郑州"], [113.749638, 23.049663, 700, "东莞"], [121.548884, 29.868333, 650, "宁波"], [113.122959, 23.029663, 600, "佛山"], [117.283042, 31.86119, 550, "合肥"], [121.614624, 38.913419, 500, "大连"], ]; return cityData; }, // 处理窗口大小变化 handleResize() { if (this.mapChart) { this.mapChart.resize(); } }, // 重置地图 resetMap() { if (this.mapChart) { this.mapChart.dispatchAction({ type: "restore", }); // 添加刷新动画效果 this.mapChart.showLoading({ text: "重置中...", textColor: "#fff", maskColor: "rgba(0, 0, 0, 0.3)", }); setTimeout(() => { this.mapChart.hideLoading(); }, 500); } }, // 刷新调度列表 refreshDispatchList() { const refreshBtn = document.querySelector(".refresh-btn"); refreshBtn.classList.add("refreshing"); // 模拟刷新操作 setTimeout(() => { refreshBtn.classList.remove("refreshing"); // 可以在这里重新加载数据, 例如通过Ajax加载数据 }, 1000); }, }, }; </script> <style scoped> .main-content { white-space: nowrap; min-width: 1366px; /* 设置最小宽度,防止布局过度压缩 */ min-height: 768px; /* 设置最小高度 */ } /* 确保卡片主体内容填满空间 */ .el-card__body { height: 100%; padding: 0; display: flex; flex-direction: column; } /* 自定义卡片样式 */ .custom-card { background: rgba(12, 30, 62, 0.85); opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); backdrop-filter: blur(10px); min-height: 600px; /* 添加最小高度 */ } /* 发光卡片效果 */ .glow-card { position: relative; overflow: hidden; } .glow-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #5ac8fa, transparent); z-index: 2; } .glow-card::after { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient( circle at center, rgba(90, 200, 250, 0.1) 0%, transparent 70% ); pointer-events: none; z-index: 1; } /* 卡片头部样式 */ .card-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(12, 30, 62, 0.9); border-bottom: 1px solid rgba(90, 200, 250, 0.2); border-radius: 12px 12px 0 0; } /* 服务详情样式 */ .service-detail { padding: 20px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; } .detail-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(30, 77, 133, 0.3); transition: all 0.3s ease; } .detail-item:last-child { border-bottom: none; } .detail-item:hover { background: rgba(90, 200, 250, 0.05); padding-left: 8px; border-left: 3px solid #5ac8fa; } .detail-label { color: #8aa4ce; font-size: 13px; font-weight: 500; transition: color 0.3s ease; min-width: 80px; /* 固定标签宽度 */ } .detail-value { color: #fff; font-size: 14px; font-weight: 600; transition: color 0.3s ease; text-align: right; min-width: 100px; /* 固定值宽度 */ } /* 省略号文本 */ .ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; } /* 完成信息样式 */ .completion-info { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .small-progress { width: 100px !important; margin-top: 4px; } /* 资源计数样式 */ .resource-count { color: #5ac8fa; font-weight: bold; font-size: 18px; } /* 操作按钮区域 */ .action-buttons { width: auto; display: flex; flex-direction: column; align-items: flex-end; /* 关键:将所有子项右对齐 */ gap: 13px; margin-top: 25px; text-align: left; padding-top: 20px; border-top: 1px solid rgba(30, 77, 133, 0.5); flex-shrink: 0; } /* 按钮基础样式 */ .action-btn { width: 100%; position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); border-radius: 8px; font-weight: 600; letter-spacing: 0.5px; } .action-btn::before { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.1), transparent ); transition: all 0.6s ease; } .action-btn:hover::before { left: 100%; } /* 主要按钮样式 */ .primary-btn { background: linear-gradient( 90deg, rgba(0, 135, 255, 0.9), rgba(90, 200, 250, 0.9) ); border: 1px solid rgba(90, 200, 250, 0.5); color: #fff; box-shadow: 0 4px 12px rgba(90, 200, 250, 0.3); } .primary-btn:hover { background: linear-gradient( 90deg, rgba(0, 135, 255, 1), rgba(90, 200, 250, 1) ); border-color: #5ac8fa; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(90, 200, 250, 0.4); } /* 次要按钮样式 */ .secondary-btn { background: linear-gradient( 90deg, rgba(45, 59, 89, 0.9), rgba(60, 80, 120, 0.9) ); border: 1px solid rgba(90, 200, 250, 0.3); color: #fff; } .secondary-btn:hover { background: linear-gradient(90deg, rgba(55, 70, 99, 1), rgba(70, 90, 130, 1)); border-color: #5ac8fa; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(90, 200, 250, 0.2); } /* 第三按钮样式 */ .tertiary-btn { background: linear-gradient( 90deg, rgba(17, 35, 65, 0.9), rgba(30, 50, 85, 0.9) ); border: 1px solid rgba(90, 200, 250, 0.2); color: #8aa4ce; } .tertiary-btn:hover { background: linear-gradient(90deg, rgba(27, 45, 75, 1), rgba(40, 60, 95, 1)); border-color: #5ac8fa; color: #5ac8fa; transform: translateY(-2px); } /* 地图容器样式 */ .chart-container { position: relative; border-radius: 0 0 12px 12px; overflow: hidden; min-height: 710px; /* 固定最小高度 */ } /* 地图控制按钮 */ .map-controls, .refresh-controls { display: flex; gap: 8px; } .map-control-btn, .refresh-btn { color: #8aa4ce; transition: all 0.3s ease; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; padding: 0; } .map-control-btn:hover, .refresh-btn:hover { color: #5ac8fa; background: rgba(90, 200, 250, 0.1); transform: scale(1.1); } /* 刷新动画 */ @keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .refreshing i { animation: rotate 1s linear infinite; } /* 调度列表样式 */ .dispatch-section { max-height: 700px; padding: 16px; overflow-y: auto; } /* 调度项样式 */ .dispatch-item { background: linear-gradient( 135deg, rgba(24, 55, 101, 0.8), rgba(12, 30, 62, 0.8) ); border-radius: 10px; padding: 16px; margin-bottom: 16px; border: 1px solid #1e4d85; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden; min-height: 240px; /* 固定最小高度 */ } /* 卡片悬停效果 */ .hover-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(90, 200, 250, 0.3); border-color: #5ac8fa; } .hover-card::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient( 135deg, rgba(90, 200, 250, 0.1) 0%, transparent 70% ); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; } .hover-card:hover::after { opacity: 1; } /* 图片容器 */ .image-container { position: relative; margin-bottom: 12px; border-radius: 8px; overflow: hidden; height: 120px; /* 固定高度 */ } .dispatch-image { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid rgba(90, 200, 250, 0.3); transition: transform 0.4s ease; } .hover-card:hover .dispatch-image { transform: scale(1.05); } /* 需求标签 */ .demand-tag { position: absolute; top: 8px; right: 8px; background: linear-gradient(135deg, #ff4d4f, #ff7875); color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3); z-index: 2; } /* 调度信息样式 */ .dispatch-info { display: flex; flex-direction: column; gap: 12px; height: 100%; } .dispatch-title { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 8px; text-align: center; text-shadow: 0 0 10px rgba(90, 200, 250, 0.3); position: relative; display: inline-block; align-self: center; padding: 0 12px; } .dispatch-title::before, .dispatch-title::after { content: "◆"; color: #5ac8fa; font-size: 12px; opacity: 0.7; position: absolute; top: 50%; transform: translateY(-50%); } .dispatch-title::before { left: 0; } .dispatch-title::after { right: 0; } .dispatch-detail { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; } .detail-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; } .detail-row .label { color: #8aa4ce; font-weight: 500; min-width: 70px; /* 固定标签宽度 */ } .detail-row .value { color: #fff; font-weight: 600; text-align: right; min-width: 80px; /* 固定值宽度 */ } /* 高亮值 */ .highlight { color: #5ac8fa !important; font-size: 14px; } /* 响应按钮 */ .dispatch-btn { width: 100%; background: linear-gradient( 90deg, rgba(34, 193, 195, 0.9), rgba(253, 187, 45, 0.9) ); border: none; color: #fff; border-radius: 8px; font-weight: 600; letter-spacing: 0.5px; transition: all 0.3s ease; position: relative; overflow: hidden; z-index: 1; margin-top: auto; /* 确保按钮始终在底部 */ } .dispatch-btn::before { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.2), transparent ); transition: all 0.6s ease; z-index: -1; } .hover-btn:hover::before { left: 100%; } .dispatch-btn:hover { background: linear-gradient( 90deg, rgba(34, 193, 195, 1), rgba(253, 187, 45, 1) ); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(34, 193, 195, 0.4); color: #fff; } /* 美化滚动条 */ .dispatch-section::-webkit-scrollbar { width: 6px; } /* 滚动条轨道 */ .dispatch-section::-webkit-scrollbar-track { background: rgba(12, 30, 62, 0.5); border-radius: 3px; } .dispatch-section::-webkit-scrollbar-thumb { background: linear-gradient( 180deg, rgba(0, 187, 236, 0.3), rgba(90, 200, 250, 0.8) ); border-radius: 3px; transition: background 0.3s ease; } /* 滚动条滑块 */ .dispatch-section::-webkit-scrollbar-thumb:hover { background: linear-gradient( 180deg, rgba(0, 187, 236, 0.5), rgba(90, 200, 250, 1) ); } /* 滚动条按钮 */ .dispatch-section::-webkit-scrollbar-button { display: none; } /* 适配不同屏幕尺寸 */ @media (max-width: 1600px) { .detail-value.ellipsis { max-width: 140px; } } @media (max-width: 1400px) { .detail-value.ellipsis { max-width: 120px; } } @media (max-width: 1200px) { .detail-value.ellipsis { max-width: 100px; } } /* 大屏幕适配 */ @media (min-width: 1920px) { .el-main { padding: 20px !important; } .custom-card { min-height: 700px; } .chart-container { min-height: 800px; } } /* 超小屏幕处理 */ @media (max-width: 1366px) { .main-content { min-width: 100%; overflow-x: auto; /* 允许横向滚动 */ } } /* 移动端适配 */ @media (max-width: 992px) { .el-row { flex-direction: column; } .el-col { width: 100% !important; margin-bottom: 16px; } .custom-card { min-height: auto; } .main-content { min-width: 100%; overflow-x: auto; } } </style>
2301_80339408/rural_insight
src/pages/Dispatch/oldindex2.vue
Vue
unknown
34,908
<template> <div class="home-container"> <el-container style="height: 100%"> <el-main style=" padding: 10px; background-color: #0c1e3e; /* height: calc(100vh - 60px); */ " > <!-- 根据当前激活的菜单显示不同内容 --> <div> <!-- 首页内容 --> <el-row :gutter="15" style="height: 100%"> <!-- 左侧服务需求统计表单 --> <el-col :span="7" style="display: flex; flex-direction: column; height: 100%" > <ServiceForm /> </el-col> <!-- 中间区域 --> <el-col :span="10" style="display: flex; flex-direction: column; height: 100%" > <!-- 社会化服务资源在线分布图 --> <el-card class="custom-card glow-card" style="flex: 1.5"> <div slot="header" class="card-header"> <span class="title-icon"></span> <span class="card-title">社会化服务资源在线分布图</span> </div> <div style="width: 100%; height: 400px" ref="chartsDOM" class="chart-container" ></div> </el-card> <!-- 服务情况对比 --> <el-card class="custom-card glow-card" style="margin-top: 15px; flex: 1" > <div slot="header" class="card-header"> <span class="title-icon title-icon-2"></span> <span class="card-title">服务情况对比</span> </div> <div id="serviceCompareChart" style=" width: 100%; height: 100%; min-height: 180px; position: relative; " class="chart-container" ></div> </el-card> </el-col> <!-- 右侧区域 --> <el-col :span="7" style="display: flex; flex-direction: column; height: 100%" > <!-- 最新服务情况 --> <el-card class="custom-card glow-card" style="flex: 1; display: flex; flex-direction: column" > <div slot="header" class="card-header"> <span class="title-icon"></span> <span class="card-title">最新服务情况</span> </div> <div class="service-list"> <div class="service-item" v-for="(service, index) in latestServices" :key="index" > <el-badge :value="service.status" :type="getBadgeType(service.status)" class="status-badge" ></el-badge> <div class="service-text"> <div class="service-title">{{ service.title }}</div> <div class="service-date">{{ service.date }}</div> </div> </div> </div> </el-card> <!-- 最热门资源 --> <el-card class="custom-card glow-card" style=" margin-top: 15px; flex: 1; display: flex; flex-direction: column; " > <div slot="header" class="card-header"> <span class="title-icon title-icon-2"></span> <span class="card-title">最热门资源</span> </div> <div class="hot-resources"> <div class="resource-item" v-for="(resource, index) in hotResources" :key="index" > <div class="resource-rank">{{ index + 1 }}</div> <img :src="resource.image" alt="Resource" class="resource-image" /> <div class="resource-info"> <div class="resource-name">{{ resource.name }}</div> <div class="resource-type">{{ resource.type }}</div> <div class="resource-count"> {{ resource.count }}次服务 </div> </div> </div> </div> </el-card> </el-col> </el-row> </div> </el-main> </el-container> </div> </template> <script> import getMap from "@/api/getMap"; import * as echarts from "echarts"; import ServiceForm from "@/components/ServiceForm.vue"; import { reqMap } from "@/api"; export default { name: "Home", components: { ServiceForm, }, data() { return { latestServices: [ { title: "完成338油坊的飞防植保服务", date: "2023/12/6", status: "完成", }, { title: "完成阜平七君子家庭农场小麦飞防服务", date: "2023/12/6", status: "完成", }, { title: "完成33油坊的小麦飞防植保服务", date: "2023/12/6", status: "完成", }, { title: "完成65油坊的统一上门耕种服务", date: "2023/12/6", status: "完成", }, { title: "完成12油坊的农业生产托管服务", date: "2023/12/6", status: "完成", }, { title: "完成145油坊的玉米秸秆还田服务", date: "2023/12/6", status: "完成", }, ], hotResources: [ { name: "东至县七君子家庭农场", type: "水稻 | 飞防植保", count: 1480, image: "https://picsum.photos/id/17/69/43", }, { name: "长米市信台智慧农业种植合作社", type: "玉米 | 全程托管", count: 1298, image: "https://picsum.photos/id/67/78/45", }, { name: "钧海县五龙坝镇平寨社区巩现...", type: "小麦 | 收割服务", count: 1190, image: "https://picsum.photos/id/79/72/53", }, ], compareChart: null, mapChart: null, }; }, mounted() { this.initCharts(); console.log(reqMap()); }, beforeDestroy() { if (this.mapChart) { this.mapChart.dispose(); } if (this.compareChart) { this.compareChart.dispose(); } }, methods: { getBadgeType(status) { const statusMap = { 完成: "success", 进行中: "warning", 待处理: "info", 取消: "danger", }; return statusMap[status] || "info"; }, initCharts() { this.initResourceMap(); this.initServiceCompareChart(); }, initServiceCompareChart() { this.compareChart = echarts.init( document.getElementById("serviceCompareChart") ); const serviceResources = this.generateServiceResources(); const barData = serviceResources .map((item) => ({ name: item[3], value: item[2] })) .sort((a, b) => b.value - a.value) .slice(0, 10); // 修正:只取前10个省份 const option = { backgroundColor: "transparent", title: { text: "各省份服务资源分布对比", textStyle: { color: "#fff", fontSize: 16, fontWeight: "normal", }, left: "center", }, tooltip: { trigger: "axis", axisPointer: { type: "shadow", }, formatter: function (params) { return `${params[0].name}: ${params[0].value}次服务`; }, }, grid: { left: "10%", right: "10%", bottom: "15%", top: "15%", containLabel: true, }, xAxis: { type: "value", axisLabel: { color: "#8aa4ce", }, axisLine: { lineStyle: { color: "#1e4d85", }, }, splitLine: { lineStyle: { color: "rgba(30, 54, 109, 0.5)", }, }, }, yAxis: { type: "category", data: barData.map((item) => item.name), axisLabel: { color: "#fff", fontSize: 12, }, axisLine: { lineStyle: { color: "#1e4d85", }, }, }, series: [ { name: "服务次数", type: "bar", data: barData.map((item) => item.value), barWidth: "60%", label: { show: true, position: "right", color: "#fff", formatter: "{c}次", }, itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [ { offset: 0, color: "#007aff" }, { offset: 1, color: "#5ac8fa" }, ]), shadowBlur: 5, shadowColor: "rgba(90, 200, 250, 0.5)", }, emphasis: { itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [ { offset: 0, color: "#0051a8" }, { offset: 1, color: "#3498db" }, ]), shadowBlur: 15, shadowColor: "rgba(52, 152, 219, 0.7)", }, }, }, ], }; this.compareChart.setOption(option); window.addEventListener("resize", () => { this.compareChart && this.compareChart.resize(); }); }, initResourceMap() { this.mapChart = echarts.init(this.$refs.chartsDOM); this.mapChart.showLoading(); getMap .then((res) => { this.mapChart.hideLoading(); echarts.registerMap("china", res.data); const serviceResources = this.generateServiceResources(); const option = { backgroundColor: "#0c1e3e", title: { text: "社会化服务资源在线分布图", left: "center", textStyle: { color: "#fff", fontSize: 16, }, }, tooltip: { trigger: "item", formatter: function (params) { if (params.seriesType === "scatter") { return `${params.value[3]}<br/>服务次数: ${params.value[2]}次`; } return params.name; }, }, legend: { orient: "vertical", left: "left", data: ["服务资源"], textStyle: { color: "#fff", }, }, geo: { map: "china", roam: true, label: { emphasis: { show: true, color: "#fff", }, }, itemStyle: { normal: { areaColor: "#142957", borderColor: "#09488e", }, emphasis: { areaColor: "#09488e", }, }, }, series: [ { name: "服务资源", type: "scatter", coordinateSystem: "geo", data: serviceResources, symbolSize: function (val) { return Math.max(val[2] / 150, 5); }, label: { show: true, position: "top", formatter: function (params) { return params.value[2] + "次"; }, color: "#fff", fontSize: 12, fontWeight: "bold", }, itemStyle: { color: function (params) { const value = params.value[2]; let baseColor = "#32cd32"; if (value > 2000) baseColor = "#ff4450"; else if (value > 1000) baseColor = "#ff7f50"; else if (value > 500) baseColor = "#ffd745"; return new echarts.graphic.RadialGradient( 0.5, 0.5, 0, 0.5, 0.5, 1, [ { offset: 0, color: "#fff" }, { offset: 0.5, color: baseColor }, { offset: 1, color: baseColor }, ] ); }, borderColor: "#fff", borderWidth: 1, shadowBlur: 5, shadowColor: function (params) { const value = params.value[2]; let shadowColor = "#32cd32"; if (value > 2000) shadowColor = "#ff4550"; else if (value > 1000) shadowColor = "#ff7f58"; else if (value > 500) shadowColor = "#ffd742"; return shadowColor; }, opacity: 0.769, // 修正:176.9 -> 0.769 }, emphasis: { scale: true, scaleSize: 10, itemStyle: { shadowBlur: 25, shadowColor: function (params) { const value = params.value[2]; let shadowColor = "#32cd32"; if (value > 2000) shadowColor = "#ff4530"; else if (value > 1000) shadowColor = "#ff7f55"; else if (value > 500) shadowColor = "#ffd740"; return shadowColor; }, }, label: { show: true, fontSize: 14, fontWeight: "bold", color: "#fff", }, }, }, ], }; this.mapChart.setOption(option); window.addEventListener("resize", () => { this.mapChart && this.mapChart.resize(); }); }) .catch((error) => { console.error("获取地图数据失败:", error); this.mapChart.hideLoading(); this.mapChart.setOption({ title: { text: "社会化服务资源在线分布图 - 数据加载失败", left: "center", textStyle: { color: "#ff4520", fontSize: 14, }, }, backgroundColor: "#0c1e3e", }); }); }, // 初始化服务资源利用图表 generateServiceResources() { // 修正:经纬度纬度值修正为合理范围(0-90) // const cityData = [ // [116.408285, 39.907989, 2580, "北京"], // [121.476644, 31.234706, 2290, "上海"], // [113.288637, 23.126178, 1870, "广州"], // [114.086947, 22.553, 1670, "深圳"], // [104.066735, 30.658492, 1880, "成都"], // [120.162576, 30.289759, 1790, "杭州"], // [114.308523, 30.595835, 1830, "武汉"], // [108.956824, 34.264261, 1890, "西安"], // [106.505762, 29.538655, 1910, "重庆"], // [118.769313, 32.048654, 1970, "南京"], // [117.292682, 39.127896, 1950, "天津"], // [120.628485, 31.299763, 1960, "苏州"], // [112.983379, 28.19839, 1850, "长沙"], // [120.386461, 36.103809, 1990, "青岛"], // [113.668312, 34.758675, 1920, "郑州"], // [113.756438, 39.054463, 2140, "东莞"], // [121.558784, 29.869233, 2150, "宁波"], // [113.123859, 23.032363, 2160, "佛山"], // [117.286842, 31.86629, 2170, "合肥"], // [121.615524, 38.914319, 2190, "大连"], // ]; // 模拟后端接口返回的数据********************************修改 const res = reqMap() .then((res) => { if (res.data.code === 200) { return res.data.data; } else { return []; } }) .catch((error) => { console.error("获取地图数据失败:", error); this.mapChart.hideLoading(); this.mapChart.setOption({ title: { text: "社会化服务资源在线分布图 - 数据加载失败", left: "center", textStyle: { color: "#ff4520", fontSize: 14, }, }, backgroundColor: "#0c1e3e", }); this.compareChart.setOption({ backgroundColor: "#0c1e3e", title: { text: "社会化服务资源在线分布图 - 数据加载失败", left: "center", textStyle: { color: "#ff4520", fontSize: 12, }, }, }); return []; }); const rawData = res; // const rawData = [ // { // province: "安徽省", // city: "安庆市", // county: "大观区", // value: 1, // entities: 47, // }, // { // province: "安徽省", // city: "安庆市", // county: "怀宁县", // value: 1, // entities: 622, // }, // { // province: "安徽省", // city: "安庆市", // county: "潜山市", // value: 1, // entities: 527, // }, // { // province: "安徽省", // city: "安庆市", // county: "宿松县", // value: 1, // entities: 447, // }, // { // province: "安徽省", // city: "安庆市", // county: "太湖县", // value: 1, // entities: 482, // }, // { // province: "安徽省", // city: "安庆市", // county: "桐城市", // value: 1, // entities: 462, // }, // { // province: "安徽省", // city: "安庆市", // county: "望江县", // value: 1, // entities: 583, // }, // { // province: "安徽省", // city: "安庆市", // county: "宜秀区", // value: 1, // entities: 173, // }, // { // province: "安徽省", // city: "安庆市", // county: "迎江区", // value: 1, // entities: 34, // }, // { // province: "安徽省", // city: "安庆市", // county: "岳西县", // value: 1, // entities: 376, // }, // { // province: "安徽省", // city: "蚌埠市", // county: "蚌山区", // value: 1, // entities: 40, // }, // { // province: "安徽省", // city: "蚌埠市", // county: "固镇县", // value: 1, // entities: 1232, // }, // { // province: "安徽省", // city: "蚌埠市", // county: "怀远县", // value: 1, // entities: 1622, // }, // { // province: "安徽省", // city: "蚌埠市", // county: "淮上区", // value: 1, // entities: 310, // }, // { // province: "安徽省", // city: "蚌埠市", // county: "龙子湖区", // value: 1, // entities: 62, // }, // { // province: "安徽省", // city: "蚌埠市", // county: "五河县", // value: 1, // entities: 1045, // }, // { // province: "安徽省", // city: "蚌埠市", // county: "禹会区", // value: 1, // entities: 51, // }, // ]; // 从地图数据中获取区域坐标 const getGeoCoordFromMap = (areaName) => { try { const map = echarts.getMap("china"); if (!map || !map.geoJson || !map.geoJson.features) return null; // 在geoJson中查找匹配的区域 const features = map.geoJson.features; for (const feature of features) { const properties = feature.properties; console.log("检查区域:", properties.name); if (properties && properties.name === areaName) { // 返回中心点坐标 console.log( "匹配到区域:", properties.name, properties.centroid || (properties.cp ? [properties.cp[0], properties.cp[1]] : null) ); return ( properties.centroid || (properties.cp ? [properties.cp[0], properties.cp[1]] : null) ); } } return null; } catch (error) { console.error("获取地理坐标失败:", error); return null; } }; // 备用坐标映射(当从地图数据中无法获取时使用) const backupCoords = { // 安徽城市坐标 安庆市: [117.0543, 30.5201], 蚌埠市: [117.3872, 32.9361], 合肥市: [117.29, 31.86], 芜湖市: [118.3872, 31.3361], 马鞍山市: [118.48, 31.68], 淮北市: [116.89, 33.97], 铜陵市: [117.82, 30.93], 黄山市: [118.31, 29.71], 滁州市: [118.31, 32.31], 阜阳市: [115.81, 32.89], 宿州市: [116.98, 33.63], 巢湖市: [117.87, 31.62], 六安市: [116.5, 31.75], 亳州市: [115.78, 33.86], 池州市: [117.49, 30.66], 宣城市: [118.75, 30.95], }; // 获取备用坐标 可以根据需要修改默认坐标 const getBackupCoord = (cityName) => { // 优先返回城市坐标 if (backupCoords[cityName]) { return backupCoords[cityName]; } // 如果没有城市坐标,返回默认坐标(合肥) return backupCoords["合肥市"] || [117.29, 31.86]; }; // 处理数据,添加坐标信息 const processedData = rawData.map((item) => { // 先尝试用区县名匹配 let coord = getGeoCoordFromMap(item.countyName); // 如果区县名匹配不到,尝试用城市名 if (!coord) { coord = getGeoCoordFromMap(item.cityName); } // 如果还匹配不到,使用备用坐标 if (!coord) { coord = getBackupCoord(item.cityName); } // 返回echarts散点图所需的格式 [经度, 纬度, 服务次数, 地区名称] return [ coord[0], coord[1], item.entityCount, // 使用entityCount作为服务次数 `${item.provinceName}${item.cityName}${item.countyName}`, ]; }); return processedData; }, }, }; </script> <style scoped> * { margin: 0; padding: 0; box-sizing: border-box; } body, html, #app { height: 100%; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: url("../../assets/dec/bg.png") repeat; background-color: #0c1e3e; } /* 参考样式 - 添加全局装饰元素 */ body::before { position: absolute; top: 7.6%; right: 0; width: 5.2%; height: 12%; background: url("../../assets/dec/bg-circle.png") no-repeat; background-size: 100%; content: ""; z-index: 1000; } .el-container { height: 100vh; background: url("../../assets/dec/bg1_1.png") no-repeat top center; background-size: cover; position: relative; } .el-container::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient( to bottom, rgba(12, 30, 62, 0.8), rgba(12, 30, 62, 1) ); z-index: -1; } /* 参考样式 - 添加主容器装饰 */ .home-container { position: relative; } .home-container::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url("../../assets/dec/bg@2x.png") no-repeat center; background-size: contain; opacity: 0.05; z-index: -2; } /* 卡片样式优化 */ .custom-card { background: linear-gradient( 135deg, rgba(15, 38, 71, 0.9), rgba(15, 38, 71, 0.7) ); border: 1px solid rgba(90, 200, 250, 0.2); border-radius: 8px; position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; } .glow-card:hover { box-shadow: 0 6px 25px rgba(90, 200, 250, 0.3); border-color: rgba(90, 200, 250, 0.4); transform: translateY(-2px); } .custom-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("../../assets/bg/bg.png") repeat; opacity: 0.1; z-index: -1; } .card-header { background: linear-gradient( 90deg, rgba(24, 55, 101, 0.9), rgba(24, 55, 101, 0.7) ); padding: 12px 15px; border-bottom: 1px solid rgba(30, 77, 133, 0.5); position: relative; display: flex; align-items: center; } .card-header::before { content: ""; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; background: url("../../assets/icons/point.png") no-repeat center; background-size: contain; } .card-header::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, #1e4d85, transparent); } .card-title { color: #fff; font-size: 16px; font-weight: 600; margin-left: 25px; text-shadow: 0 0 10px rgba(90, 200, 250, 0.5); } .chart-container { position: relative; border-radius: 4px; overflow: hidden; } .chart-container::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("../../assets/dec/bor1_1.png") no-repeat center center; background-size: contain; opacity: 0.1; pointer-events: none; z-index: -1; } .service-list { max-height: 280px; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; } .service-item { display: flex; align-items: flex-start; padding: 12px 15px; margin-bottom: 10px; background: linear-gradient( 90deg, rgba(24, 55, 101, 0.7), rgba(24, 55, 101, 0.5) ); border-radius: 6px; border: 1px solid rgba(30, 77, 133, 0.5); transition: all 0.3s ease; position: relative; overflow: hidden; flex-shrink: 0; } .service-item:hover { background: linear-gradient( 90deg, rgba(24, 55, 101, 0.9), rgba(24, 55, 101, 0.7) ); border-color: rgba(90, 200, 250, 0.5); transform: translateX(3px); box-shadow: 0 3px 12px rgba(90, 200, 250, 0.2); } .service-item::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(to bottom, #5ac8fa, #007aff); } .service-text { flex: 1; padding-left: 8px; } .service-title { color: #fff; font-size: 14px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; } .service-date { color: #8aa4ce; font-size: 12px; } .status-badge { margin-right: 10px; } .hot-resources { max-height: 300px; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; } .resource-item { display: flex; align-items: center; padding: 12px 15px; margin-bottom: 10px; background: linear-gradient( 90deg, rgba(24, 55, 101, 0.7), rgba(24, 55, 101, 0.5) ); border-radius: 6px; border: 1px solid rgba(30, 77, 133, 0.5); transition: all 0.3s ease; position: relative; overflow: hidden; flex-shrink: 0; } .resource-item:hover { background: linear-gradient( 90deg, rgba(24, 55, 101, 0.9), rgba(24, 55, 101, 0.7) ); border-color: rgba(90, 200, 250, 0.5); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(90, 200, 250, 0.15); } .resource-rank { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: linear-gradient(135deg, #5ac8fa, #007aff); color: #fff; border-radius: 50%; font-size: 12px; font-weight: bold; margin-right: 12px; flex-shrink: 0; } .resource-image { width: 70px; height: 70px; border-radius: 6px; margin-right: 12px; object-fit: cover; border: 1px solid rgba(30, 77, 133, 0.5); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); flex-shrink: 0; } .resource-info { flex: 1; } .resource-name { color: #fff; font-size: 14px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; } .resource-type { color: #8aa4ce; font-size: 12px; margin-bottom: 6px; } .resource-count { color: #5ac8fa; font-size: 12px; font-weight: 500; display: flex; align-items: center; } .resource-count::before { content: ""; display: inline-block; width: 12px; height: 12px; background: url("../../assets/icons/point.png") no-repeat center; background-size: contain; margin-right: 5px; } /* 标题图片样式 */ .title-icon { display: inline-block; width: 24px; height: 24px; background: url("../../assets/dec/title1.png") no-repeat center; background-size: contain; vertical-align: middle; margin-right: 8px; } .title-icon-2 { background: url("../../assets/dec/title2.png") no-repeat center; background-size: contain; } /* 美化滚动条 */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: rgba(12, 30, 62, 0.5); border-radius: 4px; } ::-webkit-scrollbar-thumb { background: linear-gradient( to bottom, rgba(0, 187, 236, 0.7), rgba(90, 200, 250, 0.7) ); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: linear-gradient( to bottom, rgba(0, 187, 236, 0.9), rgba(90, 200, 250, 0.9) ); } /* 装饰性的发光效果 */ .glow-effect { position: relative; } .glow-effect::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient( circle at center, rgba(90, 200, 250, 0.15) 0%, transparent 70% ); pointer-events: none; } /* 响应式调整 */ @media (max-width: 1200px) { .el-col { margin-bottom: 15px; } } @media (max-width: 768px) { .el-main { padding: 5px; } .el-row { margin: 0; } .el-col { width: 100%; margin-bottom: 15px; } .card-title { font-size: 14px; } } </style>
2301_80339408/rural_insight
src/pages/Home/index.vue
Vue
unknown
32,972
<template> <div class="login"> </div> </template> <script> export default { name:"login" } </script> <style> </style>
2301_80339408/rural_insight
src/pages/Login/index.vue
Vue
unknown
145
<template> <div id="management-page" class="main-content"> <!-- 顶部导航栏 --> <el-container> <el-main style=" padding: 10px; background-color:#0c1e3e; height: 100vh; " > <!-- 搜索区域 --> <div class="search-section" style=" margin-bottom: 20px; background: rgba(211, 232, 255, 0.8); padding: 15px; border-radius: 8px; border: 1px solid rgba(165, 208, 255, 0.5); " > <div class="search-header" style=" display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; " > <h2 style=" color: #0c1e3e; margin: 0; font-size: 18px; font-weight: 600; " > 乡村特色产业社会化服务资源 </h2> <el-button type="primary" icon="el-icon-plus" style=" background: linear-gradient( 90deg, rgba(0, 135, 255, 0.8), rgba(90, 200, 250, 0.8) ); border: 1px solid rgba(90, 200, 250, 0.5); " @click="addService" > 添加服务资源 </el-button> </div> <div class="search-filters" style=" display: flex; align-items: center; gap: 10px; flex-wrap: wrap; " > <el-input placeholder="请输入主体名称" v-model="searchQuery" style=" width: 200px; background: rgba(255, 255, 255, 0.8); border-color: rgba(165, 208, 255, 0.5); " > <el-button slot="append" icon="el-icon-search" @click="search" ></el-button> </el-input> <el-select v-model="selectedProvince" placeholder="请选择省" style=" width: 120px; background: rgba(255, 255, 255, 0.8); border-color: rgba(165, 208, 255, 0.5); " @change="onProvinceChange" > <el-option label="全部" value=""></el-option> <el-option v-for="province in provinces" :key="province" :label="province" :value="province" ></el-option> </el-select> <el-select v-model="selectedCity" placeholder="请选择市" style=" width: 120px; background: rgba(255, 255, 255, 0.8); border-color: rgba(165, 208, 255, 0.5); " @change="onCityChange" > <el-option label="全部" value=""></el-option> <el-option v-for="city in cities" :key="city.code" :label="city.name" :value="city.name" ></el-option> </el-select> <el-select v-model="selectedDistrict" placeholder="请选择区/县" style=" width: 120px; background: rgba(255, 255, 255, 0.8); border-color: rgba(165, 208, 255, 0.5); " > <el-option label="全部" value=""></el-option> <el-option v-for="district in districts" :key="district.code" :label="district.name" :value="district.name" ></el-option> </el-select> <el-button @click="resetFilters" style=" background: rgba(255, 255, 255, 0.8); border-color: rgba(165, 208, 255, 0.5); color: #0c1e3e; " > 重置 </el-button> </div> </div> <!-- 数据表格 --> <el-table :data="serviceResources" style=" width: 100%; background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(165, 208, 255, 0.5); " header-row-class-name="table-header" row-class-name="table-row" > <el-table-column prop="id" label="序号" width="60" align="center" ></el-table-column> <el-table-column prop="name" label="主体名称" min-width="150" ></el-table-column> <el-table-column prop="crop" label="服务作物" width="100" ></el-table-column> <el-table-column prop="serviceType" label="服务类型" min-width="180" ></el-table-column> <el-table-column prop="province" label="服务省份" width="100" ></el-table-column> <el-table-column prop="city" label="服务城市" width="100" ></el-table-column> <el-table-column prop="district" label="服务区县" width="100" ></el-table-column> <el-table-column prop="contactPerson" label="联系人" width="100" ></el-table-column> <el-table-column prop="status" label="状态" width="80" align="center"> <template slot-scope="scope"> <el-badge v-if="scope.row.status === '已认证'" :value="scope.row.status" type="success" /> <el-badge v-else-if="scope.row.status === '待审核'" :value="scope.row.status" type="warning" /> <el-badge v-else :value="scope.row.status" type="info" style="background: rgba(0, 135, 255, 0.8)" /> </template> </el-table-column> <el-table-column label="操作" width="100" align="center"> <template slot-scope="scope"> <el-button @click="editService(scope.row)" type="text" size="small" style="color: #5ac8fa" > <i class="el-icon-edit"></i> </el-button> <el-button @click="deleteService(scope.row.id)" type="text" size="small" style="color: #ff4500" > <i class="el-icon-delete"></i> </el-button> </template> </el-table-column> </el-table> <!-- 分页控件 --> <div class="pagination" style=" margin-top: 15px; display: flex; justify-content: flex-end; align-items: center; " > <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="totalItems" style="color: #0c1e3e" > </el-pagination> </div> </el-main> </el-container> <!-- 编辑对话框 --> <el-dialog :title="dialogTitle" :visible.sync="dialogVisible" width="50%" style="background: rgba(255, 255, 255, 0.95)" custom-class="custom-dialog" > <el-form :model="formData" label-width="100px" style="color: #0c1e3e"> <el-form-item label="主体名称"> <el-input v-model="formData.name" style=" background: rgba(255, 255, 255, 0.8); border-color: rgba(165, 208, 255, 0.5); " ></el-input> </el-form-item> <el-form-item label="服务作物"> <el-input v-model="formData.crop" style=" background: rgba(255, 255, 255, 0.8); border-color: rgba(165, 208, 255, 0.5); " ></el-input> </el-form-item> <el-form-item label="服务类型"> <el-input v-model="formData.serviceType" style=" background: rgba(255, 255, 255, 0.8); border-color: rgba(165, 208, 255, 0.5); " ></el-input> </el-form-item> <el-form-item label="省份"> <el-select v-model="formData.province" style=" background: rgba(255, 255, 255, 0.8); border-color: rgba(165, 208, 255, 0.5); " @change="onFormProvinceChange" > <el-option label="请选择" value=""></el-option> <el-option v-for="province in provinces" :key="province" :label="province" :value="province" ></el-option> </el-select> </el-form-item> <el-form-item label="城市"> <el-select v-model="formData.city" style=" background: rgba(255, 255, 255, 0.8); border-color: rgba(165, 208, 255, 0.5); " @change="onFormCityChange" > <el-option label="请选择" value=""></el-option> <el-option v-for="city in formCities" :key="city.code" :label="city.name" :value="city.name" ></el-option> </el-select> </el-form-item> <el-form-item label="区县"> <el-select v-model="formData.district" style=" background: rgba(255, 255, 255, 0.8); border-color: rgba(165, 208, 255, 0.5); " > <el-option label="请选择" value=""></el-option> <el-option v-for="district in formDistricts" :key="district.code" :label="district.name" :value="district.name" ></el-option> </el-select> </el-form-item> <el-form-item label="联系人"> <el-input v-model="formData.contactPerson" style=" background: rgba(255, 255, 255, 0.8); border-color: rgba(165, 208, 255, 0.5); " ></el-input> </el-form-item> <el-form-item label="状态"> <el-select v-model="formData.status" style=" background: rgba(255, 255, 255, 0.8); border-color: rgba(165, 208, 255, 0.5); " > <el-option label="已认证" value="已认证"></el-option> <el-option label="待审核" value="待审核"></el-option> <el-option label="未认证" value="未认证"></el-option> </el-select> </el-form-item> </el-form> <div slot="footer" class="dialog-footer"> <el-button @click="dialogVisible = false" style=" background: rgba(255, 255, 255, 0.8); border-color: rgba(165, 208, 255, 0.5); color: #0c1e3e; " >取消</el-button > <el-button type="primary" @click="saveForm" style=" background: linear-gradient( 90deg, rgba(0, 135, 255, 0.8), rgba(90, 200, 250, 0.8) ); border: 1px solid rgba(90, 200, 250, 0.5); " >保存</el-button > </div> </el-dialog> </div> </template> <script> import { getProvinces, getCitiesByProvince, getDistrictsByCity, } from "@/assets/data/chinaRegions.js"; export default { name: "ManagementPage", data() { return { // 搜索条件 searchQuery: "", selectedProvince: "", selectedCity: "", selectedDistrict: "", // 省市县数据 provinces: [], cities: [], districts: [], // 表单中的省市县数据 formCities: [], formDistricts: [], // 分页信息 currentPage: 1, pageSize: 10, totalItems: 0, // 数据列表 serviceResources: [], // 编辑对话框 dialogVisible: false, dialogTitle: "编辑服务资源", isAdding: false, formData: {}, }; }, mounted() { // 加载省份数据 this.provinces = getProvinces(); this.loadServiceResources(); }, methods: { // 加载服务资源数据 loadServiceResources() { // 模拟从API获取数据 // 实际项目中应该调用真实的API this.serviceResources = [ { id: 1, name: "阆中市思依镇新思维经济联合社", crop: "水稻", serviceType: "翻犁、旋耕、代育秧、机插秧、飞防植保、旋耕培肥", province: "四川省", city: "南充市", district: "阆中市", contactPerson: "韩明恩", status: "已认证", }, { id: 2, name: "阆中市东兴家庭农场", crop: "水稻", serviceType: "翻犁、旋耕、代育秧、飞防植保、收割、技术指导", province: "四川省", city: "南充市", district: "阆中市", contactPerson: "宋夏秋", status: "已认证", }, { id: 3, name: "宿松县万胜生态种养殖专业合作社", crop: "小麦,水稻", serviceType: "旋耕、播种技术指导、旋耕机深松、飞防植保、收割", province: "安徽省", city: "安庆市", district: "宿松县", contactPerson: "高文万", status: "已认证", }, { id: 4, name: "宿松县富民油茶专业合作社", crop: "茶叶", serviceType: "技术指导、机器(旱穴播、机械深施", province: "安徽省", city: "安庆市", district: "宿松县", contactPerson: "石学东", status: "已认证", }, { id: 5, name: "宿松县源溪村长江家庭农场", crop: "茶叶", serviceType: "技术指导", province: "安徽省", city: "安庆市", district: "宿松县", contactPerson: "齐长江", status: "已认证", }, { id: 6, name: "鄂尔多斯市星河农业专业合作社", crop: "玉米", serviceType: "修剪、植保、收购、烘干、除草、施肥", province: "内蒙古自治区", city: "鄂尔多斯市", district: "准格尔旗", contactPerson: "卢义军", status: "已认证", }, { id: 7, name: "准格尔旗源牧种养殖专业合作社", crop: "玉米", serviceType: "旋耕、深耕、播种、收割、秸秆打捆", province: "内蒙古自治区", city: "鄂尔多斯市", district: "准格尔旗", contactPerson: "闫文光", status: "已认证", }, { id: 8, name: "准格尔旗宏尔农机专业合作社", crop: "玉米", serviceType: "深耕、旋耕、播种、收割、秸秆打捆", province: "内蒙古自治区", city: "鄂尔多斯市", district: "准格尔旗", contactPerson: "刘换", status: "已认证", }, { id: 9, name: "准格尔旗野腾农机专业合作社", crop: "玉米", serviceType: "旋耕、深耕、播种、收割、秸秆打捆", province: "内蒙古自治区", city: "鄂尔多斯市", district: "准格尔旗", contactPerson: "杨海兵", status: "已认证", }, { id: 10, name: "准格尔旗迎农机站", crop: "玉米", serviceType: "深耕、旋耕、播种、收割、秸秆打捆", province: "内蒙古自治区", city: "鄂尔多斯市", district: "准格尔旗", contactPerson: "刘录", status: "已认证", }, ]; // 应用筛选条件 let filteredData = this.serviceResources; // 按主体名称筛选 if (this.searchQuery) { filteredData = filteredData.filter((item) => item.name.includes(this.searchQuery) ); } // 按省份筛选 if (this.selectedProvince) { filteredData = filteredData.filter( (item) => item.province === this.selectedProvince ); } // 按城市筛选 if (this.selectedCity) { filteredData = filteredData.filter( (item) => item.city === this.selectedCity ); } // 按区县筛选 if (this.selectedDistrict) { filteredData = filteredData.filter( (item) => item.district === this.selectedDistrict ); } this.serviceResources = filteredData; this.totalItems = filteredData.length; }, // 搜索功能 search() { this.currentPage = 1; this.loadServiceResources(); }, // 重置筛选条件 resetFilters() { this.searchQuery = ""; this.selectedProvince = ""; this.selectedCity = ""; this.selectedDistrict = ""; this.cities = []; this.districts = []; this.currentPage = 1; this.loadServiceResources(); }, // 省份选择变化 onProvinceChange(province) { this.selectedCity = ""; this.selectedDistrict = ""; this.districts = []; if (province) { this.cities = getCitiesByProvince(province); } else { this.cities = []; } this.loadServiceResources(); }, // 城市选择变化 onCityChange(city) { this.selectedDistrict = ""; if (city) { this.districts = getDistrictsByCity(city); } else { this.districts = []; } this.loadServiceResources(); }, // 表单中的省份选择变化 onFormProvinceChange(province) { this.formData.city = ""; this.formData.district = ""; this.formDistricts = []; if (province) { this.formCities = getCitiesByProvince(province); } else { this.formCities = []; } }, // 表单中的城市选择变化 onFormCityChange(city) { this.formData.district = ""; if (city) { this.formDistricts = getDistrictsByCity(city); } else { this.formDistricts = []; } }, // 添加服务资源 addService() { this.dialogTitle = "添加服务资源"; this.isAdding = true; this.formData = { name: "", crop: "", serviceType: "", province: "", city: "", district: "", contactPerson: "", status: "待审核", }; this.formCities = []; this.formDistricts = []; this.dialogVisible = true; }, // 编辑服务资源 editService(row) { // 深拷贝选中的行数据到表单 this.dialogTitle = "编辑服务资源"; this.isAdding = false; this.formData = JSON.parse(JSON.stringify(row)); // 设置表单中的城市和区县数据 if (this.formData.province) { this.formCities = getCitiesByProvince(this.formData.province); if (this.formData.city) { this.formDistricts = getDistrictsByCity(this.formData.city); } } else { this.formCities = []; this.formDistricts = []; } this.dialogVisible = true; }, // 删除服务资源 deleteService(id) { this.$confirm("确定要删除这条记录吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning", customClass: "custom-confirm-dialog", }) .then(() => { // 这里实现删除逻辑 this.serviceResources = this.serviceResources.filter( (item) => item.id !== id ); this.totalItems = this.serviceResources.length; this.$message({ type: "success", message: "删除成功", }); }) .catch(() => { this.$message({ type: "info", message: "已取消删除", }); }); }, // 保存表单 saveForm() { // 这里实现保存逻辑 if (this.isAdding) { // 添加新记录 const maxId = Math.max( ...this.serviceResources.map((item) => item.id), 0 ); this.formData.id = maxId + 1; // 构建完整地址 this.formData.address = `${this.formData.province || ""}${ this.formData.city ? (this.formData.province ? " " : "") + this.formData.city : "" }${ this.formData.district ? (this.formData.city ? " " : "") + this.formData.district : "" }`; this.serviceResources.unshift(this.formData); this.$message({ type: "success", message: "添加成功", }); } else { // 更新现有记录 const index = this.serviceResources.findIndex( (item) => item.id === this.formData.id ); if (index !== -1) { // 构建完整地址 this.formData.address = `${this.formData.province || ""}${ this.formData.city ? (this.formData.province ? " " : "") + this.formData.city : "" }${ this.formData.district ? (this.formData.city ? " " : "") + this.formData.district : "" }`; this.serviceResources.splice(index, 1, this.formData); this.$message({ type: "success", message: "保存成功", }); } } this.dialogVisible = false; this.loadServiceResources(); }, // 分页处理 handleSizeChange(size) { this.pageSize = size; this.loadServiceResources(); }, handleCurrentChange(current) { this.currentPage = current; this.loadServiceResources(); }, }, }; </script> <style scoped> #management-page { font-family: "Microsoft YaHei", sans-serif; color: #0c1e3e; background-color: #0c1e3e; background-image: linear-gradient( 135deg, rgba(255, 255, 255, 0.2) 0%, rgba(0, 135, 255, 0.1) 100% ); } /* 表格样式 */ .table-header { background: rgba(18, 135, 255, 0.2); color: #0c1e3e; } .table-row { background: rgba(255, 255, 255, 0.7); color: #0c1e3e; } .el-table th, .el-table td { border-bottom: 1px solid rgba(165, 208, 255, 0.5); color: #0c1e3e; } .el-table--enable-row-hover .el-table__body tr:hover > td { background-color: rgba(18, 135, 255, 0.1); } /* 分页样式 */ .el-pagination button, .el-pagination span { color: #0c1e3e; } .el-pagination button:hover { color: #0087ff; } .el-pagination .btn-prev:hover, .el-pagination .btn-next:hover { color: #0087ff; } .el-pagination .active { background-color: #0087ff; color: #fff; } /* 对话框样式 */ .custom-dialog { background: rgba(255, 255, 255, 0.95); color: #0c1e3e; } .custom-dialog .el-dialog__header { background: linear-gradient( 90deg, rgba(0, 135, 255, 0.8), rgba(90, 200, 250, 0.8) ); color: white; border-radius: 8px 8px 0 0; } .custom-dialog .el-dialog__headerbtn .el-dialog__close { color: white; } .custom-dialog .el-dialog__title { color: #fff; } .custom-dialog .el-dialog__body { background: rgba(255, 255, 255, 0.95); } .custom-dialog .el-dialog__footer { background: rgba(240, 248, 255, 0.95); border-top: 1px solid rgba(165, 208, 255, 0.5); padding-top: 15px; } /* 确认对话框样式 */ .custom-confirm-dialog { background: rgba(255, 255, 255, 0.95); color: #0c1e3e; } .custom-confirm-dialog .el-message-box__title { color: #0c1e3e; } .custom-confirm-dialog .el-message-box__content { color: #0c1e3e; } /* 表单元素样式 - 与整体页面配色匹配 */ .el-input__inner, .el-select .el-input__inner, .el-textarea__inner { background: rgba(255, 255, 255, 0.8); border-color: rgba(165, 208, 255, 0.5); color: #0c1e3e; } .el-input__inner:hover, .el-select .el-input__inner:hover, .el-textarea__inner:hover { border-color: rgba(18, 135, 255, 0.6); } .el-input__inner:focus, .el-select .el-input__inner:focus, .el-textarea__inner:focus { border-color: #0087ff; box-shadow: 0 0 0 2px rgba(18, 135, 255, 0.2); } /* 下拉选择框的选项样式 */ .el-select-dropdown { background: rgba(255, 255, 255, 0.95); border: 1px solid rgba(165, 208, 255, 0.5); } .el-select-dropdown__item { color: #0c1e3e; } .el-select-dropdown__item:hover, .el-select-dropdown__item.hover, .el-select-dropdown__item.selected { background: rgba(18, 135, 255, 0.2); color: #0087ff; } /* 表单标签样式 */ .el-form-item__label { color: #0c1e3e; } /* 按钮样式优化 */ .el-button { transition: all 0.3s ease; } .el-button--primary { background: linear-gradient( 90deg, rgba(0, 135, 255, 0.8), rgba(90, 200, 250, 0.8) ); border: 1px solid rgba(90, 200, 250, 0.5); color: #fff; } .el-button--primary:hover, .el-button--primary:focus { background: linear-gradient( 90deg, rgba(0, 135, 255, 1), rgba(90, 200, 250, 1) ); border-color: rgba(90, 200, 250, 0.8); color: #fff; } /* 图标颜色 */ .el-icon { color: #0c1e3e; } /* 滚动条样式 */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: rgba(211, 232, 255, 0.5); } ::-webkit-scrollbar-thumb { background: rgba(18, 135, 255, 0.3); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: rgba(18, 135, 255, 0.5); } </style>
2301_80339408/rural_insight
src/pages/Management/index.vue
Vue
unknown
28,007
<template> <div id="monitor-page" class="main-content"> <!-- 顶部导航栏 --> <el-container> <el-main style=" padding: 10px; background-color: #0c1e3e; height: calc(100vh - 60px); " > <!-- 主内容区域 --> <el-row :gutter="10" style="height: 100%"> <!-- 左侧服务资源运行统计 --> <el-col :span="6" style="display: flex; flex-direction: column; height: 100%" > <!-- 服务资源运行统计 --> <el-card class="custom-card" style="flex: 1"> <div slot="header" class="card-header"> <span style="color: #fff">服务资源运行统计</span> </div> <div class="service-stats"> <div class="stat-item"> <div class="stat-number orange">1245</div> <div class="stat-name">种植</div> </div> <div class="stat-item"> <div class="stat-number blue">1557</div> <div class="stat-name">农药</div> </div> <div class="stat-item"> <div class="stat-number orange">4585</div> <div class="stat-name">耕作</div> </div> <div class="stat-item"> <div class="stat-number blue">3268</div> <div class="stat-name">飞防</div> </div> <div class="stat-item"> <div class="stat-number orange">1280</div> <div class="stat-name">收割</div> </div> <div class="stat-item"> <div class="stat-number blue">2584</div> <div class="stat-name">储藏</div> </div> </div> </el-card> <!-- 服务资源运行统计图 --> <el-card class="custom-card" style="margin-top: 5px; flex: 1.2"> <div slot="header" class="card-header"> <span style="color: #fff">服务资源运行统计图</span> </div> <div class="chart-container" style="width: 100%; height: 100%; min-height: 300px" ref="resourceChart" ></div> </el-card> </el-col> <!-- 中间区域 - 地图 --> <el-col :span="12" style="display: flex; flex-direction: column; height: 100%" > <!-- 社会化服务资源在线分布图 --> <el-card class="custom-card" style="flex: 2; height: 100%"> <div slot="header" class="card-header"> <span style="color: #fff">社会化服务资源在线分布图</span> </div> <div class="map-container" style="width: 100%; height: 100%; min-height: 680px" ref="mapChart" ></div> </el-card> </el-col> <!-- 右侧区域 --> <el-col :span="6" style="display: flex; flex-direction: column; height: 100%" > <!-- 异常提醒 --> <el-card class="custom-card" style="flex: 1"> <div slot="header" class="card-header"> <span style="color: #fff">异常提醒</span> </div> <div class="alert-section"> <div class="alert-item"> <div class="alert-icon"> <i class="el-icon-warning-outline"></i> </div> <div class="alert-content-wrapper"> <div class="alert-title">订单超时</div> <div class="alert-detail">东至县七君子家庭农场</div> <div class="alert-time">2023/12/6</div> </div> </div> <div class="alert-item"> <div class="alert-icon"> <i class="el-icon-error"></i> </div> <div class="alert-content-wrapper"> <div class="alert-title">服务反馈异常</div> <div class="alert-detail">江苏正欣现代农业有限公司</div> <div class="alert-time">2023/12/6</div> </div> </div> <div class="alert-item"> <div class="alert-icon"> <i class="el-icon-clock"></i> </div> <div class="alert-content-wrapper"> <div class="alert-title">订单超时未完成</div> <div class="alert-detail">青阳县曹氏农业服务专业合作社</div> <div class="alert-time">2023/12/6</div> </div> </div> <div class="alert-item"> <div class="alert-icon"> <i class="el-icon-chat-dot-round"></i> </div> <div class="alert-content-wrapper"> <div class="alert-title">客户投诉未处理</div> <div class="alert-detail">东至安庆农业合作社</div> <div class="alert-time">2023/12/6</div> </div> </div> <div class="alert-item"> <div class="alert-icon"> <i class="el-icon-check-circle"></i> </div> <div class="alert-content-wrapper"> <div class="alert-title">订单完成,但超期2天</div> <div class="alert-detail">潜山安安源农业有限公司</div> <div class="alert-time">2023/12/6</div> </div> </div> </div> </el-card> <!-- 订单处理进度卡片 --> <el-card class="custom-card" style="margin-top: 10px"> <div slot="header" class="card-header"> <span style="color: #fff">订单处理进度</span> </div> <div class="order-progress"> <div class="progress-item"> <div class="progress-icon"> <i class="el-icon-s-order"></i> </div> <div class="progress-number">5124687</div> <div class="progress-name">订单数</div> </div> <div class="progress-item"> <div class="progress-icon"> <i class="el-icon-check-circle"></i> </div> <div class="progress-number">4581347</div> <div class="progress-name">已处理</div> </div> <div class="progress-item"> <div class="progress-icon"> <i class="el-icon-loading"></i> </div> <div class="progress-number">543340</div> <div class="progress-name">处理中</div> </div> </div> </el-card> </el-col> </el-row> </el-main> </el-container> </div> </template> <script> import getMap from "@/api/getMap"; import * as echarts from "echarts"; export default { name: "MonitorPage", data() { return { serviceResources: [], }; }, mounted() { this.initMapChart(); this.initResourceChart(); }, methods: { // 初始化地图散点图 initMapChart() { const mapChart = echarts.init(this.$refs["mapChart"]); // 显示加载动画 mapChart.showLoading(); // 获取中国地图数据并绘制散点图 getMap .then((res) => { mapChart.hideLoading(); // 注册中国地图 echarts.registerMap("china", res.data); // 生成服务资源数据 this.serviceResources = this.generateServiceResources(); // 配置地图散点图选项 const option = { backgroundColor: "#0c1e3e", tooltip: { trigger: "item", formatter: function (params) { if (params.seriesType === "scatter") { return `${params.value[3]}<br/>服务次数: ${params.value[2]}次`; } return params.name; }, }, geo: { map: "china", roam: true, label: { emphasis: { show: true, color: "#fff", }, }, itemStyle: { normal: { areaColor: "#142957", borderColor: "#09488e", }, emphasis: { areaColor: "#09488e", }, }, }, series: [ { name: "服务资源", type: "scatter", coordinateSystem: "geo", data: this.serviceResources, symbolSize: function (val) { return Math.max(val[2] / 100, 12); }, label: { show: true, position: "top", formatter: function (params) { // 直接显示服务次数 return params.value[2] + "次"; }, color: "#fff", fontSize: 10, fontWeight: "bold", }, itemStyle: { // 使用渐变色填充散点 color: function (params) { // 根据服务次数设置不同颜色 const value = params.value[2]; let baseColor = "#32cd32"; if (value > 2000) baseColor = "#ff4500"; else if (value > 1000) baseColor = "#ff7f50"; else if (value > 500) baseColor = "#ffd700"; // 创建径向渐变 return new echarts.graphic.RadialGradient(0.5, 0.5, 0.5, [ { offset: 0, color: "#fff" }, { offset: 0.6, color: baseColor }, { offset: 1, color: baseColor }, ]); }, // 添加边框效果 borderColor: "#fff", borderWidth: 1.5, // 添加发光效果 shadowBlur: 15, shadowColor: function (params) { const value = params.value[2]; let shadowColor = "#32cd32"; if (value > 2000) shadowColor = "#ff4500"; else if (value > 1000) shadowColor = "#ff7f50"; else if (value > 500) shadowColor = "#ffd700"; return shadowColor; }, opacity: 0.9, }, emphasis: { // 鼠标悬停时的强调效果 scale: true, scaleSize: 10, itemStyle: { shadowBlur: 25, shadowColor: function (params) { const value = params.value[2]; let shadowColor = "#32cd32"; if (value > 2000) shadowColor = "#ff4500"; else if (value > 1000) shadowColor = "#ff7f50"; else if (value > 500) shadowColor = "#ffd700"; return shadowColor; }, }, label: { show: true, fontSize: 12, fontWeight: "bold", color: "#fff", }, }, }, // 添加连线效果 { name: "服务连线", type: "lines", coordinateSystem: "geo", zlevel: 2, symbol: ["none", "arrow"], symbolSize: [4, 8], data: this.generateLinesData(), lineStyle: { color: "#5ac8fa", width: 1, curveness: 0.2, opacity: 0.6, }, emphasis: { lineStyle: { width: 3, opacity: 1, }, }, }, ], }; mapChart.setOption(option); // 窗口大小改变时,重新调整图表大小 window.addEventListener("resize", () => { mapChart.resize(); }); }) .catch((error) => { console.error("获取地图数据失败:", error); mapChart.hideLoading(); mapChart.setOption({ title: { text: "社会化服务资源在线分布图 - 数据加载失败", left: "center", textStyle: { color: "#ff4500", fontSize: 16, }, }, backgroundColor: "#0c1e3e", }); }); }, // 初始化服务资源运行统计图 initResourceChart() { // 获取图表DOM元素 const resourceChart = echarts.init(this.$refs.resourceChart); // 图表配置 const option = { backgroundColor: "transparent", tooltip: { trigger: "axis", axisPointer: { type: "shadow", }, }, grid: { left: "3%", right: "4%", bottom: "3%", containLabel: true, }, xAxis: { type: "category", data: ["种植", "农药", "耕作", "飞防", "收割", "储藏"], axisLine: { lineStyle: { color: "#58719b", }, }, axisLabel: { color: "#fff", }, }, yAxis: { type: "value", axisLine: { lineStyle: { color: "#58719b", }, }, axisLabel: { color: "#fff", }, splitLine: { lineStyle: { color: "#1e3c6d", }, }, }, series: [ { name: "服务资源数量", type: "bar", data: [1245, 1557, 4585, 3268, 1280, 2584], itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, color: "#29ccff" }, { offset: 1, color: "#106fd8" }, ]), }, emphasis: { itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, color: "#36d8ff" }, { offset: 1, color: "#1977ed" }, ]), }, }, }, ], }; // 设置图表配置 resourceChart.setOption(option); // 响应式处理 window.addEventListener("resize", () => { resourceChart.resize(); }); }, // 生成模拟的服务资源数据 generateServiceResources() { // 中国主要城市的经纬度和服务次数 const cityData = [ [116.405285, 39.904989, 2500, "北京"], [121.472644, 31.231706, 2200, "上海"], [113.280637, 23.125178, 1800, "广州"], [114.085947, 22.547, 1600, "深圳"], [104.065735, 30.659462, 1500, "成都"], [120.153576, 30.287459, 1400, "杭州"], [114.305523, 30.59285, 1300, "武汉"], [108.948024, 34.263161, 1200, "西安"], [106.504962, 29.533155, 1100, "重庆"], [118.767413, 32.041544, 1000, "南京"], [117.190182, 39.125596, 950, "天津"], [120.619585, 31.298863, 900, "苏州"], [112.982279, 28.19409, 850, "长沙"], [120.382661, 36.101009, 800, "青岛"], [113.665412, 34.757975, 750, "郑州"], [113.749638, 23.049663, 700, "东莞"], [121.548884, 29.868333, 650, "宁波"], [113.122959, 23.029663, 600, "佛山"], [117.283042, 31.86119, 550, "合肥"], [121.614624, 38.913419, 500, "大连"], ]; return cityData; }, // 生成连线数据 generateLinesData() { // 北京坐标 const beijing = [116.405285, 39.904989]; // 所有点都只连接北京 const linesData = [ { from: beijing, to: [121.472644, 31.231706] }, // 北京-上海 { from: beijing, to: [113.280637, 23.125178] }, // 北京-广州 { from: beijing, to: [114.085947, 22.547] }, // 北京-深圳 { from: beijing, to: [104.065735, 30.659462] }, // 北京-成都 { from: beijing, to: [108.948024, 34.263161] }, // 北京-西安 { from: beijing, to: [120.153576, 30.287459] }, // 北京-杭州 { from: beijing, to: [118.767413, 32.041544] }, // 北京-南京 { from: beijing, to: [114.305523, 30.59285] }, // 北京-武汉 { from: beijing, to: [106.504962, 29.533155] }, // 北京-重庆 { from: beijing, to: [117.190182, 39.125596] }, // 北京-天津 ]; return linesData.map((line) => ({ coords: [line.from, line.to], })); }, }, }; </script> <style scoped> /* 监控页面样式 */ #monitor-page { height: 105%; background: linear-gradient(135deg, #0a1326 0%, #0c1e3e 100%); overflow: hidden; position: relative; } #monitor-page::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient( circle at 20% 80%, rgba(41, 196, 255, 0.1) 0%, transparent 50% ), radial-gradient( circle at 80% 20%, rgba(255, 120, 0, 0.08) 0%, transparent 50% ), radial-gradient( circle at 40% 40%, rgba(27, 132, 237, 0.05) 0%, transparent 50% ); pointer-events: none; } /* 自定义卡片样式 */ .custom-card { background: linear-gradient( 135deg, rgba(12, 30, 62, 0.9) 0%, rgba(8, 20, 45, 0.9) 100% ); border: 1px solid rgba(20, 56, 126, 0.6); border-radius: 12px; color: #fff; display: flex; flex-direction: column; backdrop-filter: blur(10px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1); position: relative; overflow: hidden; transition: all 0.3s ease; } .custom-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient( 90deg, transparent 0%, rgba(90, 200, 250, 0.8) 50%, transparent 100% ); } .custom-card:hover { border-color: rgba(90, 200, 250, 0.8); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(90, 200, 250, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15); transform: translateY(-2px); } /* 卡片头部样式 */ .card-header { background: linear-gradient( 135deg, rgba(10, 23, 48, 0.9) 0%, rgba(14, 32, 70, 0.9) 100% ); border-bottom: 1px solid rgba(20, 56, 126, 0.6); padding: 16px 20px; font-size: 16px; font-weight: 600; border-radius: 12px 12px 0 0; position: relative; display: flex; align-items: center; } .card-header::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; background: linear-gradient(180deg, #5ac8fa 0%, #1b84ed 100%); border-radius: 2px; } .card-header span { margin-left: 12px; background: linear-gradient(90deg, #fff 0%, #8cb3d9 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } /* 服务资源统计样式 */ .service-stats { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 16px; padding: 20px; height: 100%; } .stat-item { background: linear-gradient( 135deg, rgba(10, 23, 48, 0.8) 0%, rgba(14, 32, 70, 0.8) 100% ); padding: 20px 15px; border-radius: 10px; border: 1px solid rgba(20, 56, 126, 0.5); text-align: center; position: relative; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .stat-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #ff7800, #1b84ed); opacity: 0.7; } .stat-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); border-color: rgba(90, 200, 250, 0.6); } .stat-item:nth-child(odd)::before { background: linear-gradient(90deg, #ff7800, #ff3b30); } .stat-item:nth-child(even)::before { background: linear-gradient(90deg, #1b84ed, #29ccff); } .stat-number { font-size: 28px; font-weight: 700; margin-bottom: 8px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); position: relative; } .stat-number::after { content: ""; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); width: 30px; height: 2px; background: linear-gradient(90deg, transparent, currentColor, transparent); opacity: 0.6; } .stat-name { font-size: 14px; color: #8cb3d9; font-weight: 500; letter-spacing: 0.5px; } .orange { background: linear-gradient(90deg, #ff7800, #ff3b30); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .blue { background: linear-gradient(90deg, #1b84ed, #29ccff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* 地图容器样式 */ .map-container { flex: 1; position: relative; width: 100%; height: 100%; border-radius: 0 0 12px 12px; overflow: hidden; } /* 图表容器样式 */ .chart-container { width: 100%; height: 100%; position: relative; border-radius: 0 0 12px 12px; overflow: hidden; } /* 异常提醒样式 */ .alert-section { padding: 16px; height:53%; overflow-y: auto; } .alert-item { background: linear-gradient( 135deg, rgba(10, 23, 48, 0.8) 0%, rgba(14, 32, 70, 0.8) 100% ); border: 1px solid rgba(20, 56, 126, 0.5); border-radius: 10px; padding: 18px; margin-bottom: 12px; display: flex; align-items: flex-start; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transition: all 0.3s ease; position: relative; overflow: hidden; } .alert-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #ff7800, #ff3b30); } .alert-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); border-color: rgba(255, 120, 0, 0.6); } .alert-item:nth-child(2)::before { background: linear-gradient(90deg, #ff3b30, #ff1a1a); } .alert-item:nth-child(3)::before { background: linear-gradient(90deg, #1b84ed, #0056b3); } .alert-item:nth-child(4)::before { background: linear-gradient(90deg, #ffd700, #ffa500); } .alert-item:nth-child(5)::before { background: linear-gradient(90deg, #32cd32, #228b22); } .alert-icon { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient( 135deg, rgba(255, 120, 0, 0.2) 0%, rgba(255, 59, 48, 0.2) 100% ); display: flex; align-items: center; justify-content: center; margin-right: 16px; flex-shrink: 0; color: #ff7800; font-size: 22px; box-shadow: 0 4px 8px rgba(255, 120, 0, 0.2); transition: all 0.3s ease; } .alert-item:hover .alert-icon { transform: scale(1.1); box-shadow: 0 6px 12px rgba(255, 120, 0, 0.3); } .alert-item:nth-child(2) .alert-icon { background: linear-gradient( 135deg, rgba(255, 59, 48, 0.2) 0%, rgba(255, 26, 26, 0.2) 100% ); color: #ff3b30; box-shadow: 0 4px 8px rgba(255, 59, 48, 0.2); } .alert-item:nth-child(3) .alert-icon { background: linear-gradient( 135deg, rgba(27, 132, 237, 0.2) 0%, rgba(0, 86, 179, 0.2) 100% ); color: #1b84ed; box-shadow: 0 4px 8px rgba(27, 132, 237, 0.2); } .alert-item:nth-child(4) .alert-icon { background: linear-gradient( 135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100% ); color: #ffd700; box-shadow: 0 4px 8px rgba(255, 215, 0, 0.2); } .alert-item:nth-child(5) .alert-icon { background: linear-gradient( 135deg, rgba(50, 205, 50, 0.2) 0%, rgba(34, 139, 34, 0.2) 100% ); color: #32cd32; box-shadow: 0 4px 8px rgba(50, 205, 50, 0.2); } .alert-content-wrapper { flex: 1; } .alert-title { font-size: 15px; font-weight: 600; color: #ff7800; margin-bottom: 6px; letter-spacing: 0.3px; } .alert-item:nth-child(2) .alert-title { color: #ff3b30; } .alert-item:nth-child(3) .alert-title { color: #1b84ed; } .alert-item:nth-child(4) .alert-title { color: #ffd700; } .alert-item:nth-child(5) .alert-title { color: #32cd32; } .alert-detail { font-size: 14px; color: #e6f7ff; margin-bottom: 6px; line-height: 1.4; font-weight: 500; } .alert-time { font-size: 12px; color: #8cb3d9; font-weight: 500; } /* 订单处理进度样式 */ .order-progress { display: flex; justify-content: space-around; align-items: center; padding: 20px 16px; height: 100%; min-height: 140px; } .progress-item { background: linear-gradient( 135deg, rgba(10, 23, 48, 0.8) 0%, rgba(14, 32, 70, 0.8) 100% ); border: 1px solid rgba(20, 56, 126, 0.5); border-radius: 12px; padding: 20px 12px; text-align: center; flex: 1; margin: 0 8px; transition: all 0.3s ease; position: relative; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .progress-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #1b84ed, #29ccff); } .progress-item:hover { background: linear-gradient( 135deg, rgba(14, 32, 70, 0.9) 0%, rgba(20, 45, 90, 0.9) 100% ); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); border-color: rgba(27, 132, 237, 0.6); } .progress-item:nth-child(2)::before { background: linear-gradient(90deg, #32cd32, #00ff00); } .progress-item:nth-child(3)::before { background: linear-gradient(90deg, #ffa500, #ffd700); } .progress-icon { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient( 135deg, rgba(27, 132, 237, 0.2) 0%, rgba(41, 204, 255, 0.2) 100% ); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: #1b84ed; font-size: 20px; box-shadow: 0 4px 8px rgba(27, 132, 237, 0.2); transition: all 0.3s ease; } .progress-item:hover .progress-icon { transform: scale(1.1); box-shadow: 0 6px 12px rgba(27, 132, 237, 0.3); } .progress-item:nth-child(2) .progress-icon { background: linear-gradient( 135deg, rgba(50, 205, 50, 0.2) 0%, rgba(0, 255, 0, 0.2) 100% ); color: #32cd32; box-shadow: 0 4px 8px rgba(50, 205, 50, 0.2); } .progress-item:nth-child(3) .progress-icon { background: linear-gradient( 135deg, rgba(255, 165, 0, 0.2) 0%, rgba(255, 215, 0, 0.2) 100% ); color: #ffa500; box-shadow: 0 4px 8px rgba(255, 165, 0, 0.2); } .progress-number { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); letter-spacing: 0.5px; } .progress-name { font-size: 13px; color: #8cb3d9; font-weight: 500; letter-spacing: 0.3px; } /* 滚动条样式 */ .alert-section::-webkit-scrollbar { width: 6px; } .alert-section::-webkit-scrollbar-track { background: rgba(10, 23, 48, 0.5); border-radius: 3px; } .alert-section::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #1b84ed, #29ccff); border-radius: 3px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .alert-section::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #29ccff, #5ac8fa); } /* 响应式优化 */ @media (max-width: 1600px) { .service-stats { grid-gap: 12px; padding: 16px; } .stat-number { font-size: 24px; } .progress-number { font-size: 18px; } } @media (max-width: 1400px) { .service-stats { grid-template-columns: 1fr; } .order-progress { flex-direction: column; gap: 12px; } .progress-item { margin: 0; width: 100%; } } /* 动画效果 */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .custom-card { animation: fadeInUp 0.6s ease-out; } .stat-item, .alert-item, .progress-item { animation: fadeInUp 0.8s ease-out; } /* 加载状态 */ .loading { position: relative; overflow: hidden; } .loading::after { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.1), transparent ); animation: shimmer 2s infinite; } @keyframes shimmer { 0% { left: -100%; } 100% { left: 100%; } } </style>
2301_80339408/rural_insight
src/pages/Monitor/index.vue
Vue
unknown
30,560
<template> <div class="person-body"> </div> </template> <script> export default { } </script> <style> </style>
2301_80339408/rural_insight
src/pages/Person/idnex.vue
Vue
unknown
139
<template> <div id="index"> <!-- 顶部导航栏 --> <el-container> <el-header style="background-color: #02366d; padding: 0"> <div class="header-content"> <div class="header-left"> <el-menu :default-active="activeMenuIndex" class="el-menu-demo" mode="horizontal" background-color="#02366d" text-color="#fff" active-text-color="#ffd04b" router > <el-menu-item index="/index/home"> <i class="el-icon-s-home"></i> <span slot="title">首页</span> </el-menu-item> <el-menu-item index="/index/dispatch"> <i class="el-icon-s-promotion"></i> <span slot="title">调度</span> </el-menu-item> <el-menu-item index="/index/monitor"> <i class="el-icon-monitor"></i> <span slot="title">监控</span> </el-menu-item> </el-menu> </div> <div class="header-center"> <h1 style="color: #fff; margin: 0; font-size: 24px"> 乡村特色产业社会化服务资源 </h1> </div> <div class="header-right"> <el-menu :default-active="$route.path" class="el-menu-demo" mode="horizontal" background-color="#02366d" text-color="#fff" active-text-color="#ffd04b" router > <el-menu-item index="/index/management"> <i class="el-icon-s-tools"></i> <span slot="title">管理</span> </el-menu-item> <el-menu-item index="/index/analyze"> <i class="el-icon-data-analysis"></i> <span slot="title">分析</span> </el-menu-item> <div class="header-info"> <div class="current-date">{{ currentDate }}</div> <el-dropdown> <span class="user-info"> <i class="el-icon-user"></i> <span>管理员</span> <i class="el-icon-arrow-down el-icon--right"></i> </span> <el-dropdown-menu slot="dropdown"> <el-dropdown-item>个人中心</el-dropdown-item> <el-dropdown-item>系统设置</el-dropdown-item> <el-dropdown-item divided @click.native="logout" >退出登录</el-dropdown-item > </el-dropdown-menu> </el-dropdown> </div> </el-menu> </div> </div> </el-header> <el-main style=" padding: 10px; background-color: #0c1e3e; height: calc(100vh - 80px); overflow-y: auto; " > <!-- 路由视图 --> <router-view /> </el-main> </el-container> </div> </template> <script> import moment from "moment"; export default { name: "Index", data() { return { currentDate: "", }; }, computed: { activeMenuIndex() { return this.$route.path; }, }, mounted() { this.setCurrentDate(); }, methods: { setCurrentDate() { this.currentDate = moment().format("YYYY年MM月DD日"); }, logout() { this.$confirm("确定要退出登录吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning", }) .then(() => { // 在实际应用中,这里应该调用退出登录的API // 然后清除本地存储的token等信息 localStorage.removeItem("token"); this.$message.success("退出成功"); this.$router.push("/login"); }) .catch(() => { // 用户取消操作 this.$message.error("已取消"); }); }, }, }; </script> <style scoped> /* 整体布局样式 */ #index { font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif; } .header-content { display: flex; justify-content: space-between; align-items: center; height: 60px; padding: 0 30px; } .header-left, .header-right { min-width: 280px; } .header-center { flex: 1; text-align: center; } .header-center h1 { color: #fff; margin: 0; font-size: 22px; font-weight: 600; letter-spacing: 2px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } /* 菜单样式优化 */ .el-menu--horizontal { border-bottom: none; display: flex; align-items: center; } .el-menu--horizontal .el-menu-item { height: 56px; line-height: 54px; border-bottom: 2px solid transparent; margin: 0 5px; font-size: 14px; transition: all 0.3s ease; position: relative; overflow: hidden; } .el-menu--horizontal .el-menu-item:hover { background-color: rgba(255, 208, 75, 0.1) !important; transform: translateY(-1px); } .el-menu--horizontal .el-menu-item.is-active { border-bottom-color: #ffd04b; background-color: rgba(255, 208, 75, 0.15) !important; } .el-menu--horizontal .el-menu-item i { margin-right: 6px; font-size: 16px; } /* 右侧用户信息区域 */ .header-info { display: flex; align-items: center; margin-left: 25px; gap: 12px; } .current-date { color: #a8c7fa; font-size: 13px; font-weight: 500; white-space: nowrap; } .user-info { color: #fff; cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 4px; transition: background-color 0.3s ease; font-weight: 500; } .user-info:hover { background-color: rgba(255, 255, 255, 0.1); } .user-info i:first-child { font-size: 16px; color: #ffd04b; } /* 下拉菜单样式 */ .el-dropdown-menu { background: linear-gradient(135deg, #02366d 0%, #03478f 100%); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); } .el-dropdown-menu__item { color: #fff; font-size: 13px; transition: all 0.3s ease; } .el-dropdown-menu__item:hover { background-color: rgba(255, 208, 75, 0.2); color: #ffd04b; } .el-dropdown-menu__item--divided { border-top: 1px solid rgba(255, 255, 255, 0.1); } /* 主内容区域 */ .el-main { padding: 15px; background: linear-gradient(135deg, #0c1e3e 0%, #152a4e 50%, #0c1e3e 100%); height: calc(100vh - 60px); overflow-y: auto; position: relative; } /* 滚动条美化 */ .el-main::-webkit-scrollbar { width: 6px; } .el-main::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 3px; } .el-main::-webkit-scrollbar-thumb { background: rgba(255, 208, 75, 0.5); border-radius: 3px; } .el-main::-webkit-scrollbar-thumb:hover { background: rgba(255, 208, 75, 0.7); } /* 响应式设计 */ @media screen and (max-width: 1200px) { .header-content { padding: 0 20px; } .header-left, .header-right { min-width: 240px; } .header-center h1 { font-size: 19px; letter-spacing: 1px; } } @media screen and (max-width: 768px) { .header-content { flex-direction: column; height: auto; padding: 15px 20px; } .header-left, .header-right, .header-center { width: 100%; min-width: auto; } .header-center { order: -1; margin-bottom: 10px; } .header-center h1 { font-size: 18px; } .header-info { justify-content: center; margin-left: 0; margin-top: 10px; } } </style>
2301_80339408/rural_insight
src/pages/index.vue
Vue
unknown
7,959
import Vue from "vue"; import VueRouter from "vue-router"; Vue.use(VueRouter); // import ServiceForm from '@/pages/ServiceForm.vue' import DispatchPage from "@/pages/Dispatch"; import MonitorPage from "@/pages/Monitor"; import ManagementPage from "@/pages/Management"; import AnalyzePage from "@/pages/Analyze"; import Home from "@/pages/Home"; import Index from "@/pages/index.vue"; import Login from "@/pages/Login"; const routes = [ { path: "/", redirect: "/index", }, { path: "/index", name: "Index", redirect: "/index/home", component: Index, children: [ { path: "/index/home", name: "HomePage", component: Home, }, { path: "/index/dispatch", name: "dispatchPage", component: DispatchPage, }, { path: "/index/monitor", name: "MonitorPage", component: MonitorPage, }, { path: "/index/management", name: "managementPage", component: ManagementPage, }, { path: "/index/analyze", name: "analyzePage", component: AnalyzePage, }, ], }, { path:"/login", name: "Login", component:Login, } ]; const router = new VueRouter({ mode: "history", routes, }); // push重写方法 const originalPush = VueRouter.prototype.push; VueRouter.prototype.push = function push(location) { return originalPush.call(this, location).catch((err) => err); }; // 同时重写 replace 方法 const originalReplace = VueRouter.prototype.replace; VueRouter.prototype.replace = function replace(location) { return originalReplace.call(this, location).catch((err) => err); }; export default router;
2301_80339408/rural_insight
src/router/index.js
JavaScript
unknown
1,796
import vuex from 'vuex' import Vue from 'vue' Vue.use(vuex) const state = { } const mutations = { } const actions = { } const getters = { } export default new vuex.Store({ modules:{ }, actions, getters, mutations, state })
2301_80339408/rural_insight
src/store/index.js
JavaScript
unknown
264
const { defineConfig } = require("@vue/cli-service"); module.exports = defineConfig({ transpileDependencies: true, lintOnSave: false, devServer: { proxy: { "/api": { // target: "http://localhost:15003", target: "http://192.168.196.101:15000", changeOrigin: true, pathRewrite: { "^/api": "", }, }, }, }, });
2301_80339408/rural_insight
vue.config.js
JavaScript
unknown
385
#!/bin/bash # 定义下载地址和文件名 DOWNLOAD_URL="https://cangjie-lang.cn/v1/files/auth/downLoad?nsId=142267&fileName=Cangjie-0.53.13-linux_x64.tar.gz&objectKey=6719f1eb3af6947e3c6af327" FILE_NAME="Cangjie-0.53.13-linux_x64.tar.gz" # 检查 cangjie 工具链是否已安装 echo "确保 cangjie 工具链已安装..." if ! command -v cjc -v &> /dev/null then echo "cangjie工具链 未安装,尝试进行安装..." # 下载文件 echo "Downloading Cangjie compiler..." curl -L -o "$FILE_NAME" "$DOWNLOAD_URL" # 检查下载是否成功 if [ $? -eq 0 ]; then echo "Download completed successfully." else echo "Download failed." exit 1 fi # 解压文件 echo "Extracting $FILE_NAME..." tar -xvf "$FILE_NAME" # 检查解压是否成功 if [ $? -eq 0 ]; then echo "Extraction completed successfully." else echo "Extraction failed." exit 1 fi # 检查 envsetup.sh 是否存在并进行 source if [[ -f "cangjie/envsetup.sh" ]]; then echo "envsetup.sh found!" source cangjie/envsetup.sh else echo "envsetup.sh not found!" exit 1 fi fi # 检查 openEuler 防火墙状态 echo "检查 openEuler 防火墙状态..." if systemctl status firewalld | grep "active (running)" &> /dev/null; then echo "防火墙已开启,尝试开放 21 端口..." firewall-cmd --zone=public --add-port=21/tcp --permanent firewall-cmd --reload echo "21 端口已开放。" else echo "防火墙未开启,无需开放端口。" fi # 编译ftp_server echo "正在编译 ftp_server..." cjpm build # 检查编译是否成功 if [ $? -eq 0 ]; then echo "编译成功." else echo "编译失败." exit 1 fi # 运行 ftp_server echo "正在启动 ftp 服务器..." cjpm run
2301_80220344/Cangjie-Examples_7628
FTP/run-ftp.sh
Shell
apache-2.0
1,967
<!DOCTYPE html> <html lang="cn"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <div>Hello Cangjie!</div> <p></p> <script> let xhr = new XMLHttpRequest() xhr.open("POST", "/Hello", true) xhr.onreadystatechange = () => { if(xhr.readyState == 4 && xhr.status == 200){ let res = JSON.parse(xhr.responseText) document.body.innerHTML += `<div>${res.msg}</div>` } } xhr.send(JSON.stringify({ name: "Chen", age: 999 })) </script> </body> </html>
2301_80220344/Cangjie-Examples_7628
HTTPServer/index.html
HTML
apache-2.0
687
<script> export default { onLaunch: function() { console.log('App Launch') }, onShow: function() { console.log('App Show') }, onHide: function() { console.log('App Hide') } } </script> <style> /*每个页面公共css */ </style>
2301_80339408/uni-shop2
App.vue
Vue
unknown
254
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <script> var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) document.write( '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />') </script> <title></title> <!--preload-links--> <!--app-context--> </head> <body> <div id="app"><!--app-html--></div> <script type="module" src="/main.js"></script> </body> </html>
2301_80339408/uni-shop2
index.html
HTML
unknown
672
import App from './App' import { $http } from '@escook/request-miniprogram' uni.$http = $http // 请求开始之前做一些事情 $http.beforeRequest = function(options){ uni.showLoading({ title:"数据加载..." }) // 判断请求的是否为有权限的 API 接口 if(options.url.indexOf('/my/') !== -1){ // 为请求头添加身份认证字段 options.header = { // 字段的值可以直接从 vuex 中进行获取 Authorization:store.state.m_user.token, } } } // 请求完成之后做一些事情 $http.afterRequest = function(options){ uni.hideLoading() } //封装弹框消息 uni.$showMsg = function(title="数据加载失败...",duration=1500){ uni.showToast({ title, duration, icon:"none" }) } $http.baseUrl = 'https://api-hmugo-web.itheima.net' // $http.baseUrl = 'http://api-hmugo-web.itheima.net' // #ifndef VUE3 import Vue from 'vue' // 1. 导入 store 的实例对象 import store from './store/store.js' import './uni.promisify.adaptor' Vue.config.productionTip = false App.mpType = 'app' const app = new Vue({ ...App, // 2. 将 store 挂载到 Vue 实例上 store, }) app.$mount() // #endif // #ifdef VUE3 import { createSSRApp } from 'vue' export function createApp() { const app = createSSRApp(App) return { app } } // #endif
2301_80339408/uni-shop2
main.js
JavaScript
unknown
1,348
import {mapGetters} from 'vuex' // 导出一个 mixin 对象 export default{ watch:{ total(oldval,cal){ this.setBadge() } }, computed:{ ...mapGetters('m_cart',['total']), }, onShow(){ // 在页面刚展示的时候,设置数字徽标 this.setBadge() }, methods:{ setBadge(){ // 调用 uni.setTabBarBadge() 方法,为购物车设置右上角的徽标 uni.setTabBarBadge({ index:2, text:this.total + '',// 注意:text 的值必须是字符串,不能是数字 }) } } }
2301_80339408/uni-shop2
mixins/tabbar-badge.js
JavaScript
unknown
583
<template> <view> <view class="cart-container" v-if="cart.length != 0"> <my-address></my-address> <!-- 购物车商品列表的标题区域 --> <view class="cart-title"> <!-- 左侧的图标 --> <uni-icons type="shop" size="18"></uni-icons> <!-- 描述文本 --> <text class="cart-title-text">购物车</text> </view> <uni-swipe-action> <!-- 商品列表区域 --> <block v-for="(goods,id) in cart"> <uni-swipe-action-item :right-options="options" @click="swipeActionClickHandler(goods)"> <!-- 在 radioChangeHandler 事件处理函数中,通过事件对象 e,得到商品的 goods_id 和 goods_state --> <my-goods :goods="goods" :show-radio="true" :show-num="true" @radio-change="radioChangeHandler" @num-change="numberChangeHandler"></my-goods> </uni-swipe-action-item> </block> </uni-swipe-action> <!-- 结算区域 --> <my-settle></my-settle> </view> <view class="empty-cart" v-else> <image src="/static/cart.png" class="empty-img"></image> <text class="tip-text">空空如也~</text> </view> </view> </template> <script> // 导入自己封装的 mixin 模块 import badgeMix from '@/mixins/tabbar-badge.js' // 按需导入 mapState 这个辅助函数 import { mapState, mapMutations } from "vuex" export default { // 将 badgeMix 混入到当前的页面 中进行使用 mixins: [badgeMix], computed: { // 将 m_cart 模块中的 cart 数组映射到当前页面中使用 ...mapState('m_cart', ['cart']) }, data() { return { options: [{ text: "删除", // 显示的文本内容 style: { backgroundColor: '#c00000' // 按钮的背景颜色 } }] }; }, methods: { ...mapMutations('m_cart', ['updateGoodsState', 'updateGoodsCount', 'removeGoodsById']), // 商品的勾选状态发生了变化 radioChangeHandler(e) { this.updateGoodsState(e) }, // 商品的数量发生了变化 numberChangeHandler(e) { this.updateGoodsCount(e) }, // 点击了滑动操作按钮 swipeActionClickHandler(goods) { this.removeGoodsById(goods.goods_id) } } } </script> <style lang="scss"> .cart-container { padding-bottom: 50px; } .cart-title { height: 40px; display: flex; align-items: center; //垂直居中 font-size: 14px; padding-left: 5px; border-bottom: 1px solid #efefef; .cart-title-text { margin-left: 10px; } } .empty-cart { display: flex; flex-direction: column; align-items: center; padding-top: 150px; .empty-img { width: 90px; height: 90px; } .tip-text { font-size: 12px; color: gray; margin-top: 15px; } } </style>
2301_80339408/uni-shop2
pages/cart/cart.vue
Vue
unknown
3,068
<template> <view> <!-- <my-search :bgcolor="'black'" :radius="2"></my-search> --> <my-search @click="gotoSearch"></my-search> <view class="scroll-view-container"> <!-- 左侧的滚动视图区域 --> <scroll-view class="left-scroll-view" scroll-y :style="{height:wh + 'px'}"> <block v-for="(item,i) in cateList" :key="i"> <view :class="['left-scroll-view-item',i === active ?'active':'']" @click="activeChanged(i)"> {{item.cat_name}} </view> </block> </scroll-view> <!-- 右侧的滚动视图区域 --> <scroll-view class="right-scroll-view" scroll-y :style="{height:wh + 'px'}" :scroll-top="scrollTop"> <view class="cate-lv2" v-for="(item2,i2) in cateLevel2" :key="i2"> <view class="cate-lv2-title">/{{item2.cat_name}}/</view> <!-- 动态渲染三级分类的列表数据 --> <view class="cate-lv3-list"> <!-- 三级分类 Item 项 --> <view class="cate-lv3-item" v-for="(item3,i3) in item2.children" :key="i3" @click="gotoGoodsList(item3)"> <!-- 图片 --> <image :src="item3.cat_icon"></image> <!-- 文本 --> <text>{{item3.cat_name}}</text> </view> </view> </view> </scroll-view> </view> </view> </template> <script> // 导入自己封装的 mixin 模块 import badgeMix from '@/mixins/tabbar-badge.js' export default { // 将 badgeMix 混入到当前的页面中进行使用 mixins:[badgeMix], data() { return { // 窗口的可用高度 = 屏幕高度 - navigationBar高度 - tabBar 高度 wh: 0, cateList: [], active: 0, // 二级分类列表 cateLevel2: [], // 滚动条距离顶部的距离 scrollTop:0 }; }, onLoad() { // // 获取当前系统的信息 // const sysInfo = uni.getSystemInfo() // // 为 wh 窗口可用高度动态赋值 // this.wh = sysInfo.windowHeight // 获取当前系统的信息 uni.getSystemInfo().then(sysInfo => { // 为 wh 窗口可用高度动态赋值 this.wh = sysInfo.windowHeight - 50; }).catch(err => { console.error('获取系统信息失败:', err); }); this.getCateList() }, methods: { async getCateList() { const { data: res } = await uni.$http.get("/api/public/v1/categories") if (res.meta.status !== 200) return uni.$showMsg() this.cateList = res.message this.cateLevel2 = res.message[0].children }, // 选中项改变的事件处理函数 activeChanged(i) { this.active = i this.cateLevel2 = this.cateList[i].children // 让 scrollTop 的值在 0 与 1 之间切换 this.scrollTop = this.scrollTop === 0 ? 1 : 0 }, gotoGoodsList(item){ uni.navigateTo({ url:'/subpkg/goods_list/goods_list?cid=' + item.cat_id }) }, // 跳转到分包中的搜索页面 gotoSearch(){ uni.navigateTo({ url:'/subpkg/search/search' }) } } } </script> <style lang="scss"> .scroll-view-container { display: flex; .left-scroll-view { width: 120px; .left-scroll-view-item { line-height: 60px; background-color: #f7f7f7; text-align: center; font-size: 12px; // 激活项的样式 &.active { background-color: #ffffff; position: relative; // 渲染激活项左侧的红色指示边线 &::before { content: ' '; display: block; width: 3px; height: 30px; background-color: #c00000; position: absolute; left: 0; top: 50%; transform: translateY(-50%); //平移50% } } } } } .cate-lv2-title { font-size: 12px; font-weight: bold; text-align: center; padding: 15px 0; } .cate-lv3-list { display: flex; flex-wrap: wrap; .cate-lv3-item { width: 33.33%; margin-bottom: 10px; display: flex; flex-direction: column; align-items: center; image { height: 120rpx; width: 120rpx; } text { font-size: 24rpx; } } } </style>
2301_80339408/uni-shop2
pages/cate/cate.vue
Vue
unknown
4,603
<template> <view> <view class="search-box"> <my-search @click="gotoSearch"></my-search> </view> <view> <!-- 轮播图区域 --> <swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" :circular="true"> <!-- 循环渲染轮播图的 item 项 --> <swiper-item v-for="(item,i) in swiperList" :key="i"> <navigator class="swiper-item" :url="'/subpkg/goods_detail/goods_detail?goods_id='+item.goods_id"> <img :src="item.image_src" /> </navigator> </swiper-item> </swiper> </view> <!-- 分类导航区域 --> <view class="nav-list"> <view class="nav-item" v-for="(item,i) in navList" :key="i"> <image :src="item.image_src" class="nav-img" @click="navClickHandler(item)" /> </view> </view> <!-- 楼层区域 --> <view class="floor-list"> <!-- 楼层 item 项 --> <view class="floor-item" v-for="(item,i) in flootList" :key="i"> <!-- 楼层标题 --> <image :src="item.floor_title.image_src" class="floor-title"></image> <!-- 楼层图片区域 --> <view class="floor-img-box"> <!-- 左侧大图片的盒子 --> <navigator class="left-img-box" :url="item.product_list[0].url"> <image :src="item.product_list[0].image_src" :style="{width:item.product_list[0].image_width + 'rpx'}" mode="widthFix"></image> </navigator> <!-- 右侧 4 个小图片的盒子 --> <view class="rigth-img-box"> <navigator class="rigth-img-item" v-for="(item2,i2) in item.product_list" :key="i2" v-if="i2 !== 0" :url="item2.url"> <image :src="item2.image_src" mode="widthFix" :style="{width:item2.image_width + 'rpx'}"></image> </navigator> </view> </view> </view> </view> </view> </template> <script> // 导入自己封装的 mixin 模块 import badgeMix from '@/mixins/tabbar-badge.js' export default { // 将 badgeMix 混入到当前的页面中进行使用 mixins: [badgeMix], data() { return { // 1. 轮播图的数据列表,默认为空数组 swiperList: [], navList: [], flootList: [], i: 0 }; }, onLoad() { // 1. 轮播图的数据列表,默认为空数组 this.getSwiperList() this.getNavList() this.getFlootList() }, methods: { // nav-item 项被点击时候的事件处理函数 navClickHandler(item) { // 判断点击的是哪个 nav if (item.name === '分类') { uni.switchTab({ url: '/pages/cate/cate' }); } }, async getSwiperList() { const { data: res } = await uni.$http.get('/api/public/v1/home/swiperdata') if (res.meta.status != 200) return uni.$showMsg() this.swiperList = res.message }, async getNavList() { const { data: res } = await uni.$http.get('/api/public/v1/home/catitems') if (res.meta.status != 200) return uni.$showMsg() this.navList = res.message }, async getFlootList() { const { data: res } = await uni.$http.get('/api/public/v1/home/floordata') if (res.meta.status != 200) return uni.$showMsg() res.message.forEach(floor => { floor.product_list.forEach(prod => { prod.id = this.i + 1 this.i = this.i + 1 prod.url = "/subpkg/goods_list/goods_list?" + prod.navigator_url.split('?')[1] + "&id=" + prod.id prod.id = this.i + 1 this.i = this.i + 1 }) }) this.flootList = res.message }, gotoSearch() { uni.navigateTo({ url: '/subpkg/search/search' }) } } } </script> <style lang="scss"> swiper { height: 330rpx; .swiper-item, image { height: 100%; width: 100%; } } .nav-list { display: flex; justify-content: space-around; margin: 15rpx 0; .nav-img { height: 140rpx; width: 128rpx; } } .floor-title { height: 60rpx; width: 100%; display: flex; } .rigth-img-box { display: flex; flex-wrap: wrap; justify-content: space-around; } .floor-img-box { display: flex; padding-left: 10rpx; } // search吸顶效果 .search-box { // 设置定位效果为“吸顶” position: sticky; // 吸顶的“位置” top: 0; // 提高层级,防止被轮播图覆盖 z-index: 999; } </style>
2301_80339408/uni-shop2
pages/home/home.vue
Vue
unknown
4,849
<template> <view class="my-container "> <!-- 用户未登录时,显示登录组件 --> <my-login v-if="!token"></my-login> <!-- <my-login v-if="false"></my-login> --> <!-- 用户登录后,显示用户信息组件 --> <my-userinfo v-else></my-userinfo> </view> </template> <script> // 导入自己封装的 mixin 模块 import badgeMix from '@/mixins/tabbar-badge.js' // 1. 从 vuex 中按需导入 mapState 辅助函数 import { mapState, } from 'vuex' export default { // 将 badgeMix 混入到当前的页面中进行使用 mixins: [badgeMix], computed: { // 2. 从 m_user 模块中导入需要的 token 字符串 ...mapState('m_user', ['token']) }, data() { return { }; } } </script> <style lang="scss"> page, .my-container { height: 100%; } </style>
2301_80339408/uni-shop2
pages/my/my.vue
Vue
unknown
897
export default { // 为当前模块开启命名空间 namespaced: true, // 模块的 state 数据 state: () => ({ // 购物车的数组,用来存储购物车中每个商品的信息对象 // 每个商品的信息对象,都包含如下 6 个属性: // { goods_id, goods_name, goods_price, goods_count, goods_small_logo, goods_state } cart: JSON.parse(uni.getStorageSync('cart') || '[]') }), // 模块的 mutations 方法 mutations: { addToCart(state, goods) { // 根据提交的商品的Id,查询购物车中是否存在这件商品 // 如果不存在,则 findResult 为 undefined;否则,为查找到的商品信息对象 const findResult = state.cart.find((x) => x.goods_id === goods.goods_id) if (!findResult) { // 如果购物车中没有这件商品,则直接 push state.cart.push(goods) } else { // 如果购物车中有这件商品,则只更新数量即可 findResult.goods_count++ } // 通过 commit 方法,调用 m_cart 命名空间下的 saveToStorage 方法 this.commit('m_cart/saveToStorage') }, // 将购物车中的数据持久化存储到本地 saveToStorage(state) { uni.setStorageSync('cart', JSON.stringify(state.cart)) }, // 修改勾选状态 updateGoodsState(state, goods) { // 根据 goods_id 查询购物车中对应商品的信息对象 const findResult = state.cart.find(x => x.goods_id === goods.goods_id) if (findResult) { // 更新对应商品的勾选状态 findResult.goods_state = goods.goods_state // 通过 commit 方法,调用 m_cart 命名空间下的 saveToStorage 方法 this.commit('m_cart/saveToStorage') } }, // 更新购物车中商品的数量 updateGoodsCount(state, goods) { // 根据 goods_id 查询购物车中对应商品的信息对象 const findResult = state.cart.find(x => x.goods_id === goods.goods_id) if (findResult) { // 更新对应商品的数量 findResult.goods_count = goods.goods_count // 持久化存储到本地 this.commit('m_cart/saveToStorage') } }, // 根据 Id 从购物车中删除对应的商品信息 removeGoodsById(state, goods_id) { // 调用数组的 filter 方法进行过滤 state.cart = state.cart.filter(x => x.goods_id !== goods_id) // 持久化存储到本地 this.commit("m_cart/saveToStorage") //只能通过commit调用自身方法在vuex仓库中 }, // 更新所有商品的勾选状态 updateAllGoodsState(state, newState) { // 循环更新购物车中每件商品的勾选状态 state.cart.forEach(x => x.goods_state = newState) this.commit("m_cart/saveToStorage") //只能通过commit调用自身方法在vuex仓库中 } }, // 模块的 getters 属性 getters: { // 统计购物车中商品的总数量 total(state) { // let c = 0 // // 循环统计商品的数量,累加到变量 c 中 // state.cart.forEach(goods => c += goods.goods_count) // return c return state.cart.reduce((total, item) => total += item.goods_count, 0) }, // 勾选的商品的总数量 checkedCount(state) { // 先使用 filter 方法,从购物车中过滤器已勾选的商品 // 再使用 reduce 方法,将已勾选的商品总数量进行累加 // reduce() 的返回值就是已勾选的商品的总数量 return state.cart.filter(c => c.goods_state).reduce((total, item) => total += item.goods_count, 0) }, // 已勾选的商品的总价 checkedGoodsAmount(state) { return state.cart.filter(x => x.goods_state) .reduce((total, item) => total += item.goods_count * item.goods_price, 0) .toFixed(2) } }, }
2301_80339408/uni-shop2
store/cart.js
JavaScript
unknown
3,952
// 1. 导入 Vue 和 Vuex import Vue from 'vue' import Vuex from 'vuex' // 1. 导入购物车的 vuex 模块 import moduleCart from './cart.js' // 导入用户的 vuex 模块 import moduleUser from './user.js' // 2. 将 Vuex 安装为 Vue 的插件 Vue.use(Vuex) // 3. 创建 Store 的实例对象 const store = new Vuex.Store({ // TODO:挂载 store 模块 modules: { // 2. 挂载购物车的 vuex 模块,模块内成员的访问路径被调整为 m_cart,例如: // 购物车模块中 cart 数组的访问路径是 m_cart/cart m_cart: moduleCart, // 挂载用户的 vuex 模块,访问路径为 m_user m_user: moduleUser, }, }) // 4. 向外共享 Store 的实例对象 export default store
2301_80339408/uni-shop2
store/store.js
JavaScript
unknown
758
export default { // 开启命名空间 namespaced: true, // state 数据 state: () => ({ // 收货地址 // 3. 读取本地的收货地址数据,初始化 address 对象 address: JSON.parse(uni.getStorageSync('address') || '{}'), // 登录成功之后的 token 字符串 // token: uni.getStorageSync('token') || '', token: "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjIzLCJpYXQiOjE1NjQ3MzAwNzksImV4cCI6MTAwMTU2NDczMDA3OH0.YPt-XeLnjV-_1ITaXGY2FhxmCe4NvXuRnRB8OMCfnPo", // 用户的基本信息 userInfo: JSON.parse(uni.getStorageSync('userInfo') || '{}'), // 重定向的 object 对象 { openType, from } redirectInfo: null }), // 方法 mutations: { // 更新重定向的信息对象 updateRedirectInfo(state, info) { state.redirectInfo = info console.log(state.redirectInfo) }, // 更新收货地址 updateAddress(state, address) { state.address = address // 2. 通过 this.commit() 方法,调用 m_user 模块下的 saveAddressToStorage 方法将 address 对象持久化存储到本地 this.commit('m_user/saveAddressToStorage') }, // 1. 定义将 address 持久化存储到本地 mutations 方法 saveAddressToStorage(state) { uni.setStorageSync('address', JSON.stringify(state.address)) }, // 更新用户的基本信息 updateUserInfo(state, userInfo) { state.userInfo = userInfo // 通过 this.commit() 方法,调用 m_user 模块下的 saveUserInfoToStorage 方法,将 userinfo 对象持久化存储到本地 this.commit('m_user/saveUserInfoToStorage') }, // 将 userinfo 持久化存储到本地 saveUserInfoToStorage(state) { uni.setStorageSync('userInfo', JSON.stringify(state.userInfo)) }, // 更新 token 字符串 updateToken(state, token) { state.token = token // 通过 this.commit() 方法,调用 m_user 模块下的 saveTokenToStorage 方法,将 token 字符串持久化存储到本地 this.commit('m_user/saveTokenToStorage') }, // 将 token 字符串持久化存储到本地 saveTokenToStorage(state) { uni.setStorageSync('token', state.token) } }, // 数据包装器 getters: { // 收货详细地址的计算属性 addstr(state) { if (!state.address.provinceName) return '' // 拼接 省,市,区,详细地址 的字符串并返回给用户 return state.address.provinceName + state.address.cityName + state.address.countyName + state.address.detailInfo } } }
2301_80339408/uni-shop2
store/user.js
JavaScript
unknown
2,631
<template> <view v-if="goods_info.goods_name"> <!-- 轮播图区域 --> <swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" :circular="true"> <swiper-item v-for="(item,i) in goods_info.pics" :key="i"> <!-- 把当前点击的图片的索引,传递到 preview() 处理函数中 --> <image :src="item.pics_big" @click="preview(i)"></image> </swiper-item> </swiper> <!-- 商品信息区域 --> <view class="goods-info-box"> <!-- 商品价格 --> <view class="price">¥{{goods_info.goods_price}}</view> <!-- 信息主体区域 --> <view class="goods-info-body"> <!-- 商品名称 --> <view class="goods-name">{{goods_info.goods_name}}</view> <!-- 收藏 --> <view class="favi"> <uni-icons type="star" size="18" color="gray"></uni-icons> <text>收藏</text> </view> </view> <!-- 运费 --> <view class="yf">快递:免运费</view> </view> <!-- 商品详情信息 --> <rich-text :nodes="goods_info.goods_introduce"></rich-text> <!-- 商品导航组件 --> <view class="goods_nav"> <!-- fill 控制右侧按钮的样式 --> <!-- options 左侧按钮的配置项 --> <!-- buttonGroup 右侧按钮的配置项 --> <!-- click 左侧按钮的点击事件处理函数 --> <!-- buttonClick 右侧按钮的点击事件处理函数 --> <uni-goods-nav :fill="true" :options="options" :buttonGroup="buttonGroup" @click="onClick" @buttonClick="buttonClick" /> </view> </view> </template> <script> // 从 vuex 中按需导出 mapState 辅助方法 import { mapState, mapMutations, mapGetters } from 'vuex' export default { computed: { // 调用 mapState 方法,把 m_cart 模块中的 cart 数组映射到当前页面中,作为计算属性来使用 // ...mapState('模块的名称', ['要映射的数据名称1', '要映射的数据名称2']) ...mapState('m_cart', []), // 把 m_cart 模块中名称为 total 的 getter 映射到当前页面中使用 ...mapGetters('m_cart', ['total']), }, watch: { // 1. 监听 total 值的变化,通过第一个形参得到变化后的新值 // total(newVal){ // // 2. 通过数组的 find() 方法,找到购物车按钮的配置对象 // const findResult = this.options.find((x) => x.text === '购物车') // if(findResult){ // // 3. 动态为购物车按钮的 info 属性赋值 // findResult.info = newVal // } // } // 定义 total 侦听器,指向一个配置对象 total: { // handler 属性用来定义侦听器的 function 处理函数 handler(newVal) { const findResult = this.options.find(x => x.text === '购物车') if (findResult) { findResult.info = newVal } }, // immediate 属性用来声明此侦听器,是否在页面初次加载完毕后立即调用 immediate: true } }, data() { return { // 商品详情对象 goods_info: {}, options: [{ icon: 'headphones', text: '客服' }, { icon: 'shop', text: '店铺', infoBackgroundColor: '#007aff', infoColor: "red" }, { icon: 'cart', text: '购物车', info: 0 }], buttonGroup: [{ text: '加入购物车', backgroundColor: '#ff0000', color: '#fff' }, { text: '立即购买', backgroundColor: '#ffa200', color: '#fff' } ] }; }, onLoad(options) { // 获取商品 Id const goods_id = options.goods_id // 调用请求商品详情数据的方法 this.getGoodsDetail(goods_id) }, methods: { // 把 m_cart 模块中的 addToCart 方法映射到当前页面使用 ...mapMutations('m_cart', ['addToCart']), // 定义请求商品详情数据的方法 async getGoodsDetail(goods_id) { const { data: res } = await uni.$http.get('/api/public/v1/goods/detail', { goods_id }) if (res.meta.status !== 200) return uni.$showMsg() // 使用字符串的 replace() 方法,为 img 标签添加行内的 style 样式,从而解决图片底部空白间隙的问题 console.log(res.message.goods_introduce) res.message.goods_introduce = res.message.goods_introduce.replace(/<img /g, '<img style="display:block;"') .replace(/webp/g, 'jpg') // 为 data 中的数据赋值 this.goods_info = res.message }, // 实现轮播图的预览效果 preview(i) { // 调用 uni.previewImage() 方法预览图片 uni.previewImage({ // 预览时,默认显示图片的索引 current: i, // 所有图片 url 地址的数组 urls: this.goods_info.pics.map(x => x.pics_big) }) }, // 左侧按钮的点击事件处理函数 onClick(e) { if (e.content.text === '购物车') { // 切换到购物车页面 uni.switchTab({ url: '/pages/cart/cart' }) } }, // 右侧按钮的点击事件处理函数 buttonClick(e) { // 1. 判断是否点击了 加入购物车 按钮 if (e.content.text === '加入购物车') { // 2. 组织一个商品的信息对象 const goods = { goods_id: this.goods_info.goods_id, // 商品的Id goods_name: this.goods_info.goods_name, // 商品的名称 goods_price: this.goods_info.goods_price, // 商品的价格 goods_count: 1, // 商品的数量 goods_small_logo: this.goods_info.goods_small_logo, // 商品的图片 goods_state: true // 商品的勾选状态 } // 3. 通过 this 调用映射过来的 addToCart 方法,把商品信息对象存储到购物车中 this.addToCart(goods) } } } } </script> <style lang="scss"> swiper { height: 750rpx; image { width: 100%; height: 100%; } } // 商品信息区域的样式 .goods-info-box { padding: 10px; padding-right: 0; .price { color: #C00000; margin: 10px 0; font-size: 18px; } .goods-info-body { display: flex; justify-content: space-between; .goods-name { font-size: 13px; padding-right: 10px; } // 收藏区域 .favi { width: 120px; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid #efefef; color: gray; } } // 运费 .yf { margin: 10px 0; font-size: 12px; color: grey; } } // rish-text里面的值 .goods-detail-container { // 给页面外层的容器,添加 50px 的内padding, // 防止页面内容被底部的商品导航组件遮盖 padding-bottom: 50px; } .goods_nav { // 为商品导航组件添加固定定位 position: fixed; bottom: 0; left: 0; width: 100%; } </style>
2301_80339408/uni-shop2
subpkg/goods_detail/goods_detail.vue
Vue
unknown
7,672
<template> <view> <view class="goods-list"> <view v-for="(goods,i) in goodsList" :key="i" @click="gotoDetail(goods)"> <my-goods :goods="goods"></my-goods> </view> </view> </view> </template> <script> export default { data() { return { // 请求参数对象 queryObj: { // 查询关键词 query: '', // 商品分类Id cid: '', // 页码值 pagenum: 1, // 每页显示多少条数据 pagesize: 12, }, // 商品列表的数据 goodsList: [], // 总数量,用来实现分页 total: 0, // 是否正在请求数据 isloading: false }; }, onLoad(objects) { // 将页面参数转存到 this.queryObj 对象中 this.queryObj.query = objects.query || '' this.queryObj.cid = objects.cid || '' // 调用获取商品列表数据的方法 this.getGoodsList() }, methods: { // 获取商品列表数据的方法 async getGoodsList(cb) { // ** 打开节流阀 this.isloading = true // 发起请求 const { data: res } = await uni.$http.get('/api/public/v1/goods/search', this.queryObj) // ** 关闭节流阀 this.isloading = false // 只要数据请求完毕,就立即按需调用 cb 回调函数 cb&&cb() if (res.meta.status !== 200) return uni.$showMag() // 为数据赋值:通过展开运算符的形式,进行新旧数据的拼接 this.goodsList = [...this.goodsList, ...res.message.goods] this.total = res.message.total }, // 点击跳转到商品详情页面 gotoDetail(item){ uni.navigateTo({ url:'/subpkg/goods_detail/goods_detail?goods_id=' + item.goods_id }) } }, // 触底的事件 onReachBottom() { // 判断是否还有下一页数据 if (this.queryObj.pagenum * this.queryObj.pagesize >= this.total) return uni.$showMsg("文件加载完成!") // uni.showToast({ // title:"文件加载完成!", // duration:1500, // icon:'none' // }) // 判断是否正在请求其它数据,如果是,则不发起额外的请求 if (this.isloading) return // 让页码值自增 +1 this.queryObj.pagenum++ // 重新获取列表数据 this.getGoodsList() }, // 下拉刷新的事件 onPullDownRefresh(){ // 1. 重置关键数据 this.queryObj.pagenum = 2 this.total = 0 this.isloading = false this.goodsList = [] // 2. 重新发起请求 this.getGoodsList(()=>{ uni.stopPullDownRefresh() }) } } </script> <style scoped lang="scss"> </style> <!-- <template> <view> Goods-list <view v-for="(shop, index) in shopList" :key="index"> {{ shop.name }} </view> </view> </template> <script> export default { data() { return { params: {}, shopList: [], page: 1, pageSize: 10, total: 0, isLoading: false }; }, onLoad(options) { this.params = options; this.getShopList(); }, methods: { async getShopList(cb) { this.isLoading = true; try { const { data: res } = await uni.$http.get(`https://applet-base-api-t.itheima.net/categories/${this.params.id}/shops`,{_page:this.page,_limit:this.page}); if (res.status !== 200) { uni.hideLoading(); this.isLoading = false; cb && cb(); return uni.$showMsg('数据获取失败'); } this.shopList = [...this.shopList, ...res.data]; this.total = parseInt(res.header['X-Total-Count'], 10); } catch (error) { console.error(error); uni.$showMsg('请求出错'); } finally { this.isLoading = false; cb && cb(); } } }, onPullDownRefresh() { this.page = 1; this.shopList = []; this.total = 0; this.getShopList(() => { uni.stopPullDownRefresh(); }); }, onReachBottom() { if (this.page * this.pageSize >= this.total) { return uni.$showMsg("数据加载完毕!"); } if (this.isLoading) return; this.page += 1; this.getShopList(); } } </script> <style lang="scss"> /* Add your styles here */ </style -->>
2301_80339408/uni-shop2
subpkg/goods_list/goods_list.vue
Vue
unknown
4,600
<template> <view class="seach"> <view class="search-box"> <uni-search-bar :radius="100" @input="input" cancelButton="none" :focus="true"></uni-search-bar> </view> <!-- 搜索建议列表 --> <view class="sugg-list" v-if="searchResults.length !== 0"> <view class="sugg-item" v-for="(item , i) in searchResults" :key="i" @click="gotoDetail(item.goods_id)"> <view class="goods-name">{{item.goods_name}}</view> <uni-icons type="right" size="16"></uni-icons> </view> </view> <!-- 搜索历史 --> <view class="history-box" v-else> <!-- 标题区域 --> <view class="history-title"> <text>搜索历史</text> <uni-icons type="trash" size="17" @click="cleanHistory"></uni-icons> </view> <!-- 列表区域 --> <view class="history-list"> <uni-tag :text="item" v-for="(item, i) in historys" :key="i" @click="gotoGoodsList(item)"></uni-tag> </view> </view> </view> </template> <script> export default { data() { return { // 延时器的 timerId timer: null, // 搜索关键词keyWord缩写 kw: '', // 搜索结果列表 searchResults: [], // 搜索关键词的历史记录 historyList: ['a', 'app', 'apple'] }; }, onLoad(){ this.historyList = JSON.parse(uni.getStorageSync('kw') || '[]') }, computed:{ historys(){ // 注意:由于数组是引用类型,所以不要直接基于原数组调用 reverse 方法,以免修改原数组中元素的顺序 // 而是应该新建一个内存无关的数组,再进行 reverse 反转 return [...this.historyList].reverse() } }, methods: { input(e) { clearTimeout(this.timer) this.timer = setTimeout(() => { this.kw = e // 根据关键词,查询搜索建议列表 this.getSearchList() }, 500) }, // 清空搜索历史记录 cleanHistory(){ // 清空 data 中保存的搜索历史 this.historyList = [] // 清空本地存储中记录的搜索历史 uni.setStorageSync('kw','[]') }, // 根据搜索关键词,搜索商品建议列表 async getSearchList() { // 判断关键词是否为空 if (this.kw === '') { this.searchResults = [] return } const { data: res } = await uni.$http.get('/api/public/v1/goods/qsearch', { query: this.kw }) if (res.meta.status !== 200) return uni.$showMsg() this.searchResults = res.message // 1. 查询到搜索建议之后,调用 saveSearchHistory() 方法保存搜索关键词 this.saveSearchHistory() }, // 2. 保存搜索关键词的方法 saveSearchHistory(){ // 2.1 直接把搜索关键词 push 到 historyList 数组中 // this.historyList.push(this.kw) // 1. 将 Array 数组转化为 Set 对象 const set = new Set(this.historyList) // 2. 调用 Set 对象的 delete 方法,移除对应的元素 set.delete(this.kw) // 3. 调用 Set 对象的 add 方法,向 Set 中添加元素 set.add(this.kw) // 4. 将 Set 对象转化为 Array 数组 this.historyList = Array.from(set) // 调用 uni.setStorageSync(key, value) 将搜索历史记录持久化存储到本地 uni.setStorageSync('kw',JSON.stringify(this.historyList)) }, gotoDetail(goods_id) { uni.navigateTo({ url: '/subpkg/goods_detail/goods_detail?goods_id=' + goods_id }) }, // 点击跳转到商品列表页面 gotoGoodsList(kw){ uni.navigateTo({ url:'/subpkg/goods_list/goods_list?query=' + kw }) } } } </script> <style lang="scss"> .search-box { position: sticky; top: 0; z-index: 999; } .sugg-list { padding: 0 5px; .sugg-item { font-size: 12px; padding: 13px 0; border-bottom: 1px solid #efefef; display: flex; align-items: center; justify-content: space-between; .goods-name { // 文字不允许换行(单行文本) white-space: nowrap; // 溢出部分隐藏 overflow: hidden; // 文本溢出后,使用 ... 代替 text-overflow: ellipsis; margin-right: 3px; } } } // 历史记录 .history-box { padding: 0 5px; .history-title { display: flex; justify-content: space-between; align-items: center; height: 40px; font-size: 13px; border-bottom: 1px solid #efefef; } .history-list { display: flex; flex-wrap: wrap; .uni-tag { margin-top: 5px; margin-right: 5px; background-color: #efefef; color: black; border: none; } } } </style>
2301_80339408/uni-shop2
subpkg/search/search.vue
Vue
unknown
5,214
uni.addInterceptor({ returnValue (res) { if (!(!!res && (typeof res === "object" || typeof res === "function") && typeof res.then === "function")) { return res; } return new Promise((resolve, reject) => { res.then((res) => { if (!res) return resolve(res) return res[0] ? reject(res[0]) : resolve(res[1]) }); }); }, });
2301_80339408/uni-shop2
uni.promisify.adaptor.js
JavaScript
unknown
373
/** * 这里是uni-app内置的常用样式变量 * * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App * */ /** * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 * * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 */ /* 颜色变量 */ /* 行为相关颜色 */ $uni-color-primary: #007aff; $uni-color-success: #4cd964; $uni-color-warning: #f0ad4e; $uni-color-error: #dd524d; /* 文字基本颜色 */ $uni-text-color:#333;//基本色 $uni-text-color-inverse:#fff;//反色 $uni-text-color-grey:#999;//辅助灰色,如加载更多的提示信息 $uni-text-color-placeholder: #808080; $uni-text-color-disable:#c0c0c0; /* 背景颜色 */ $uni-bg-color:#ffffff; $uni-bg-color-grey:#f8f8f8; $uni-bg-color-hover:#f1f1f1;//点击状态颜色 $uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色 /* 边框颜色 */ $uni-border-color:#c8c7cc; /* 尺寸变量 */ /* 文字尺寸 */ $uni-font-size-sm:12px; $uni-font-size-base:14px; $uni-font-size-lg:16px; /* 图片尺寸 */ $uni-img-size-sm:20px; $uni-img-size-base:26px; $uni-img-size-lg:40px; /* Border Radius */ $uni-border-radius-sm: 2px; $uni-border-radius-base: 3px; $uni-border-radius-lg: 6px; $uni-border-radius-circle: 50%; /* 水平间距 */ $uni-spacing-row-sm: 5px; $uni-spacing-row-base: 10px; $uni-spacing-row-lg: 15px; /* 垂直间距 */ $uni-spacing-col-sm: 4px; $uni-spacing-col-base: 8px; $uni-spacing-col-lg: 12px; /* 透明度 */ $uni-opacity-disabled: 0.3; // 组件禁用态的透明度 /* 文章场景相关 */ $uni-color-title: #2C405A; // 文章标题颜色 $uni-font-size-title:20px; $uni-color-subtitle: #555555; // 二级标题颜色 $uni-font-size-subtitle:26px; $uni-color-paragraph: #3F536E; // 文章段落颜色 $uni-font-size-paragraph:15px;
2301_80339408/uni-shop2
uni.scss
SCSS
unknown
2,217
<template> <view> <!-- 选择收货地址的盒子 --> <view class="address-choose-box" v-if="JSON.stringify(address) === '{}'"> <button type="primary" size="mini" class="btnChooseAddress" @click="chooseAddress">请选择收货地址+</button> </view> <!-- 渲染收货信息的盒子 --> <view class="address-info-box" v-else @click="chooseAddress"> <view class="row1"> <view class="row1-left"> <view class="username">收货人:<text>{{address.userName}}</text></view> </view> <view class="row1-right"> <view class="phone">电话:<text>{{address.telNumber}}</text></view> <uni-icons type="arrowright" size="16"></uni-icons> </view> </view> <view class="row2"> <view class="row2-left">收货地址:</view> <view class="row2-right">{{addstr}}</view> </view> </view> <!-- 底部的边框线 --> <image src="/static/cart_border@2x.png" class="address-border"></image> </view> </template> <script> // 1. 按需导入 mapState 和 mapMutations 这两个辅助函数 import { mapState, mapMutations, mapGetters } from 'vuex' export default { data() { return { // 收货地址 // address: {} } }, computed: { // 2.2 把 m_user 模块中的 address 对象映射当前组件中使用,代替 data 中 address 对象 ...mapState('m_user', ['address']), // 将 m_user 模块中的 addstr 映射到当前组件中使用 ...mapGetters('m_user', ['addstr']) }, methods: { // 3.1 把 m_user 模块中的 updateAddress 函数映射到当前组件 ...mapMutations('m_user', ['updateAddress']), // 选择收货地址 async chooseAddress() { // 1. 调用小程序提供的 chooseAddress() 方法,即可使用选择收货地址的功能 // 返回值是一个数组:第 1 项为错误对象;第 2 项为成功之后的收货地址对象 const res = await uni.chooseAddress() // console.log(res) // 2. 用户成功的选择了收货地址 if (res.errMsg === 'chooseAddress:ok') { // 为 data 里面的收货地址对象赋值 // this.address = res // 3.3 调用 Store 中提供的 updateAddress 方法,将 address 保存到 Store 里面 this.updateAddress(res) } // 3. 用户没有授权 if (res.errMsg === 'chooseAddress:fail auth deny' || res.errMsg === 'chooseAddress:fail authorize no response') { this.reAuth() // 调用 this.reAuth() 方法,向用户重新发起授权申请 } }, // 调用此方法,重新发起收货地址的授权 async reAuth() { // 3.1 提示用户对地址进行授权 const confirmResult = await uni.showModal({ content: '检测到您没打开地址权限,是否去设置打开?', confirmText: '确定', cancelText: '取消', }) // 3.2 如果弹框异常,则直接退出 // if(err2) return // 3.3 如果用户点击了 “取消” 按钮,则提示用户 “您取消了地址授权!” if (confirmResult.cancel) return uni.$showMsg('您取消了地址授权!') // 3.4 如果用户点击了 “确认” 按钮,则调用 uni.openSetting() 方法进入授权页面,让用户重新进行授权 if (confirmResult.confirm) return uni.openSetting({ // 3.4.1 授权结束,需要对授权的结果做进一步判断 success: (settingResult) => { // 3.4.2 地址授权的值等于 true,提示用户 “授权成功” if (settingResult.authSetting['scope.address']) return uni.$showMsg('授权成功!请选择地址') // 3.4.3 地址授权的值等于 false,提示用户 “您取消了地址授权” if (!settingResult.authSetting['scope.address']) return uni.$showMsh('您取消了地址授权!') } }) } } } </script> <style scoped lang="scss"> // 底部边框线的样式 .address-border { display: block; height: 5px; width: 100%; } // 选择收货地址的盒子 .address-choose-box { height: 90px; display: flex; align-items: center; justify-content: center; } // 渲染收货信息的盒子 .address-info-box { font-size: 12px; height: 90px; display: flex; flex-direction: column; justify-content: center; padding: 0 5px; .row1 { display: flex; justify-content: space-between; .row1-right { display: flex; align-items: center; .phone { margin-right: 5px; } } } .row2 { display: flex; align-items: center; margin-top: 10px; .row2-left { white-space: nowrap; //不换行 } } } </style>
2301_80339408/uni-shop2
uni_modules/my-address/components/my-address/my-address.vue
Vue
unknown
5,108
<template> <view> <view class="goods-item"> <!-- 商品左侧图片区域 --> <view class="goods-item-left"> <!-- 使用 v-if 指令控制 radio 组件的显示与隐藏 --> <!-- 存储在购物车中的商品,包含 goods_state 属性,表示商品的勾选状态 --> <radio :checked="goods.goods_state" color="#C00000" v-if="showRadio" @click="radioClickHandler"></radio> <image :src="goods.goods_small_logo || defaultPic" class="goods-pic"></image> </view> <!-- 商品右侧信息区域 --> <view class="goods-item-right"> <!-- 商品标题 --> <view class="goods-name">{{goods.goods_name}}</view> <!-- 下面商品的盒子 --> <view class="goods-info-box"> <!-- 商品价格 --> <view class="goods-price"> ¥{{goods.goods_price | tofixed}} </view> <uni-number-box :min="1" :value="goods.goods_count" v-if="showNum" @change="numChangeHandler"></uni-number-box> </view> </view> </view> </view> </template> <script> export default { // 定义 props 属性,用来接收外界传递到当前组件的数据 props: { // 商品的信息对象 goods: { type: Object, defaul: {}, }, // 是否展示图片左侧的 radio showRadio: { type: Boolean, // 如果外界没有指定 show-radio 属性的值,则默认不展示 radio 组件 default: false }, showNum: { type: Boolean, default: false } }, data() { return { // 默认的空图片 defaultPic: 'https://img3.doubanio.com/f/movie/8dd0c794499fe925ae2ae89ee30cd225750457b4/pics/movie/celebrity-default-medium.png' }; }, methods: { // radio 组件的点击事件处理函数 radioClickHandler() { // 通过 this.$emit() 触发外界通过 @ 绑定的 radio-change 事件, // 同时把商品的 Id 和 勾选状态 作为参数传递给 radio-change 事件处理函数 this.$emit('radio-change', { // 商品ID goods_id: this.goods.goods_id, // 商品状态 goods_state: !this.goods.goods_state }) }, // NumberBox 组件的 change 事件处理函数 numChangeHandler(val) { // 通过 this.$emit() 触发外界通过 @ 绑定的 num-change 事件 this.$emit('num-change', { // 商品的 Id goods_id: this.goods.goods_id, // 商品的最新数量 goods_count: +val }) } }, filters: { // 把数字处理为带两位小数点的数字 tofixed(num) { return Number(num).toFixed(2) } } } </script> <style scoped lang="scss"> .goods-item { // 让 goods-item 项占满整个屏幕的宽度 width: 750rpx; // 设置盒模型为 border-box box-sizing: border-box; display: flex; padding: 10px 5px; border-bottom: 1px solid #f0f0f0; .goods-item-left { margin-right: 10px; display: flex; justify-content: space-between; align-items: center; .goods-pic { width: 100px; height: 100px; // 设置成块元素可以留空格 display: block; } } .goods-item-right { display: flex; flex: 1; flex-direction: column; //纵向布局 justify-content: space-around; .goods-name { font-size: 13px; } .goods-info-box { display: flex; justify-content: space-between; align-items: center; .goods-price { font-size: 16px; color: #C00000; } } } } </style>
2301_80339408/uni-shop2
uni_modules/my-goods/components/my-goods/my-goods.vue
Vue
unknown
3,901