'use strict';
import { websiteScanResultPlatformTypes } from './website-scan-result-platform-type.js';

var __defProp=Object['defineProperty'],__name=(_0x138e6d,_0x1fece4)=>__defProp(_0x138e6d,'name',{'value':_0x1fece4,'configurable':!![]});const squarespaceIndicators=['cdn.squarespace.com','static.squarespace.com','squarespace.analytics','window.squarespace','squarespace.com/static/','squarespace-cdn.com','sqspcdn.com','squarespace.auth','squarespace-commerce','squarespace-website','squarespace.site','squarespace-customer.com'],wordpressIndicators=['wp-content','wp-includes','wp-json','meta\x20name=\x27generator\x27\x20content=\x27wordpress','wp-admin','xmlrpc.php','wp-custom','wp-embed','wp-fonts','wp-block','wp-elements','stats.wp.com','i0.wp.com','c0.wp.com'],shopifyIndicators=['cdn.shopify.com','checkout.shopify.com','myshopify.com','shopify.theme','shopify.analytics','window.Shopify'],wixIndicators=['static.parastorage.com','_wixCssInternal','wixstatic.com','meta\x20name=\x27generator\x27\x20content=\x27wix','window.Wix','wix-dropdown','wix.com','wix-script','wixcode-pub','wix-image','/sites/','wix-instantsearchplus','wix-perf-measure','wix-sentinel','wixapps'];function isSquarespaceWebsite(_0xec55f8){const _0x18542c=_0xec55f8['toLowerCase']();return squarespaceIndicators['some'](_0xb5e654=>_0x18542c['includes'](_0xb5e654));}__name(isSquarespaceWebsite,'isSquarespaceWebsite');function isWordPressWebsite(_0x30940b){const _0x7cc3b4=_0x30940b['toLowerCase']();return wordpressIndicators['some'](_0x5f2c25=>_0x7cc3b4['includes'](_0x5f2c25));}__name(isWordPressWebsite,'isWordPressWebsite');function isShopifyWebsite(_0x29b571){const _0x478859=_0x29b571['toLowerCase']();return shopifyIndicators['some'](_0x677997=>_0x478859['includes'](_0x677997));}__name(isShopifyWebsite,'isShopifyWebsite');function isWixWebsite(_0x55ec6f){const _0xb6d7d6=_0x55ec6f['toLowerCase']();return wixIndicators['some'](_0x1c016c=>_0xb6d7d6['includes'](_0x1c016c));}__name(isWixWebsite,'isWixWebsite');function getWebsiteScanResultPlatformByWebsiteHtml(_0x18d70f){if(isWordPressWebsite(_0x18d70f))return websiteScanResultPlatformTypes['wordpress'];else {if(isWixWebsite(_0x18d70f))return websiteScanResultPlatformTypes['wix'];else {if(isShopifyWebsite(_0x18d70f))return websiteScanResultPlatformTypes['shopify'];else return isSquarespaceWebsite(_0x18d70f)?websiteScanResultPlatformTypes['squarespace']:websiteScanResultPlatformTypes['other'];}}}__name(getWebsiteScanResultPlatformByWebsiteHtml,'getWebsiteScanResultPlatformByWebsiteHtml');

export { getWebsiteScanResultPlatformByWebsiteHtml, isShopifyWebsite, isSquarespaceWebsite, isWixWebsite, isWordPressWebsite };
