@liquidcommercedev/rmn-sdk 1.5.0-beta.14 → 1.5.0-beta.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs +1419 -1360
- package/dist/index.esm.js +1419 -1360
- package/dist/types/modules/helper-service/localstorage.service.d.ts +9 -1
- package/dist/types/rmn-client.d.ts +10 -34
- package/dist/types/rmn-client.helper.d.ts +40 -0
- package/package.json +1 -1
- package/umd/liquidcommerce-rmn-sdk.min.js +1 -1
@@ -1 +1 @@
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).LiquidCommerceRmn={})}(this,(function(t){"use strict";var n,e,i,r,o;!function(t){t.RB_HOMEPAGE_HERO="rbHomepageHero",t.RB_HOMEPAGE_HERO_THREE_TILE="rbHomepageHeroThreeTile",t.RB_HOMEPAGE_HERO_TWO_TILE="rbHomepageHeroTwoTile",t.RB_HOMEPAGE_HERO_FULL_IMAGE="rbHomepageHeroFullImage",t.RB_LARGE_CATEGORY_IMAGE_TOUT="rbLargeCategoryImageTout",t.RB_SMALL_DISCOVER_TOUT="rbSmallDiscoverTout",t.RB_SMALL_CATEGORY_IMAGE_TOUT="rbSmallCategoryImageTout",t.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK="rbCollectionBannerWithoutTextBlock",t.RB_PRODUCT_UPCS="rbProductUpcs",t.RB_NAVIGATION_BANNER="rbNavigationBanner",t.BILLBOARD="billboard",t.LARGE_RECTANGLE="largeRectangle",t.VERTICAL_RECTANGLE="verticalRectangle",t.SQUARE="square",t.LARGE_LEADERBOARD="largeLeaderboard",t.WIDE_SKYSCRAPER="wideSkyscraper",t.IN_TEXT="inText",t.SMALL_RECTANGLE="smallRectangle",t.MEDIUM_RECTANGLE="mediumRectangle",t.BANNER="banner",t.LEADERBOARD="leaderboard",t.SKYSCRAPER="skyscraper",t.HALF_PAGE="halfPage",t.SMALL_SQUARE="smallSquare",t.VERTICAL_BANNER="verticalBanner",t.BUTTON_2="button2",t.MICRO_BAR="microBar",t.POP_UP="popUp",t.PORTRAIT="portrait",t.SMARTPHONE_BANNER_1="smartphoneBanner1",t.SMARTPHONE_BANNER_2="smartphoneBanner2",t.MOBILE_PHONE_INTERSTITIAL_1="mobilePhoneInterstitial1",t.MOBILE_PHONE_INTERSTITIAL_2="mobilePhoneInterstitial2",t.MOBILE_PHONE_INTERSTITIAL_3="mobilePhoneInterstitial3",t.FEATURE_PHONE_SMALL_BANNER="featurePhoneSmallBanner",t.FEATURE_PHONE_MEDIUM_BANNER="featurePhoneMediumBanner",t.FEATURE_PHONE_LARGE_BANNER="featurePhoneLargeBanner"}(n||(n={})),function(t){t.KEYWORDS="keywords",t.PAGE_LOCATION="pageLocation",t.PARENTCO="parentCo",t.BRAND="brand",t.CATEGORY="category",t.TYPE="type",t.CLASSIFICATION="classification",t.HOLIDAY="holiday",t.PUBLISHERS="publishers",t.SECTION="section"}(e||(e={})),function(t){t.LIFECYCLE_STATE="LIFECYCLE_STATE",t.SPOT_EVENT="SPOT_EVENT"}(i||(i={})),function(t){t.IMPRESSION="IMPRESSION",t.CLICK="CLICK",t.PURCHASE="PURCHASE",t.ADD_TO_CART="ADD_TO_CART",t.REMOVE_FROM_CART="REMOVE_FROM_CART",t.ADD_TO_CART_FROM_DETAILS="ADD_TO_CART_FROM_DETAILS",t.ADD_TO_WISHLIST="ADD_TO_WISHLIST",t.EXPAND_PRODUCT="EXPAND_PRODUCT",t.BUY_NOW="BUY_NOW"}(r||(r={})),function(t){t.LOCAL="local",t.DEVELOPMENT="development",t.STAGING="staging",t.PRODUCTION="production"}(o||(o={}));const s=[{event:r.CLICK,url:"https://dev.rmn.liquidcommerce.cloud/api/spots/event?e=eyJ2IjoiMS4xMiIsImF2IjozMDY1NzgzLCJhdCI6MTYzLCJidCI6MCwiY20iOjQ0MDE5MjQxOCwiY2giOjYzMTg0LCJjayI6e30sImNyIjo0ODE4NTUzNzUsImRpIjoiOWMxNGFhMGI3NWY4NDMxNTllMTAwYWQzNzA1NzQyYzMiLCJkaiI6MCwiaWkiOiIxZjU0MGM5NmQ1N2M0YmZjODFlZjRkNjhkMzFjNDVkOSIsImRtIjozLCJmYyI6NjU2NjgyNTQ5LCJmbCI6NjQzOTMxODIxLCJpcCI6IjM1LjIyMy4xOTguOTUiLCJudyI6MTE1MDAsInBjIjo1MDAwLCJvcCI6NTAwMCwibXAiOjUwMDAsImVjIjowLCJnbSI6MCwiZXAiOm51bGwsInByIjoyNDkzMTYsInJ0IjoxLCJycyI6NTAwLCJzYSI6IjU1Iiwic2IiOiJpLTA0MDI0ODg4ZDlkMWRjZWQ3Iiwic3AiOjI3MjI3Miwic3QiOjEyODcyOTYsInRyIjp0cnVlLCJ1ayI6IjNhZWRhMWMxLTZhYjItNDUwNy04Mzg5LTEwZTJmNDMxYjM5MSIsInRzIjoxNzI5MzU5MDU0OTI3LCJiZiI6dHJ1ZSwicG4iOiJyYlByb2R1Y3RVcGNzIiwiZ2MiOnRydWUsImdDIjp0cnVlLCJncyI6Im5vbmUiLCJkYyI6MSwidHoiOiJBbWVyaWNhL05ld19Zb3JrIiwidXIiOm51bGx9&s=hWz37kbxi_u95EVNn2aoQhc5Aas"},{event:r.IMPRESSION,url:"https://dev.rmn.liquidcommerce.cloud/api/spots/event?e=eyJ2IjoiMS4xMiIsImF2IjozMDY1NzgzLCJhdCI6MTYzLCJidCI6MCwiY20iOjQ0MDE5MjQxOCwiY2giOjYzMTg0LCJjayI6e30sImNyIjo0ODE4NTUzNzUsImRpIjoiOWMxNGFhMGI3NWY4NDMxNTllMTAwYWQzNzA1NzQyYzMiLCJkaiI6MCwiaWkiOiIxZjU0MGM5NmQ1N2M0YmZjODFlZjRkNjhkMzFjNDVkOSIsImRtIjozLCJmYyI6NjU2NjgyNTQ5LCJmbCI6NjQzOTMxODIxLCJpcCI6IjM1LjIyMy4xOTguOTUiLCJudyI6MTE1MDAsInBjIjo1MDAwLCJvcCI6NTAwMCwibXAiOjUwMDAsImVjIjowLCJnbSI6MCwiZXAiOm51bGwsInByIjoyNDkzMTYsInJ0IjoxLCJycyI6NTAwLCJzYSI6IjU1Iiwic2IiOiJpLTA0MDI0ODg4ZDlkMWRjZWQ3Iiwic3AiOjI3MjI3Miwic3QiOjEyODcyOTYsInRyIjp0cnVlLCJ1ayI6IjNhZWRhMWMxLTZhYjItNDUwNy04Mzg5LTEwZTJmNDMxYjM5MSIsInRzIjoxNzI5MzU5MDU0OTI3LCJiZiI6dHJ1ZSwicG4iOiJyYlByb2R1Y3RVcGNzIiwiZ2MiOnRydWUsImdDIjp0cnVlLCJncyI6Im5vbmUiLCJkYyI6MSwidHoiOiJBbWVyaWNhL05ld19Zb3JrIiwiYmEiOjEsImZxIjowfQ&s=djoysjCimurf-5T11AlNAwwLSS8"},{event:r.PURCHASE,url:"https://dev.rmn.liquidcommerce.cloud/api/spots/event?e=eyJ2IjoiMS4xMiIsImF2IjozMDY1NzgzLCJhdCI6MTYzLCJidCI6MCwiY20iOjQ0MDE5MjQxOCwiY2giOjYzMTg0LCJjayI6e30sImNyIjo0ODE4NTUzNzUsImRpIjoiOWMxNGFhMGI3NWY4NDMxNTllMTAwYWQzNzA1NzQyYzMiLCJkaiI6MCwiaWkiOiIxZjU0MGM5NmQ1N2M0YmZjODFlZjRkNjhkMzFjNDVkOSIsImRtIjozLCJmYyI6NjU2NjgyNTQ5LCJmbCI6NjQzOTMxODIxLCJpcCI6IjM1LjIyMy4xOTguOTUiLCJudyI6MTE1MDAsInBjIjo1MDAwLCJvcCI6NTAwMCwibXAiOjUwMDAsImVjIjowLCJnbSI6MCwiZXAiOm51bGwsInByIjoyNDkzMTYsInJ0IjoxLCJycyI6NTAwLCJzYSI6IjU1Iiwic2IiOiJpLTA0MDI0ODg4ZDlkMWRjZWQ3Iiwic3AiOjI3MjI3Miwic3QiOjEyODcyOTYsInRyIjp0cnVlLCJ1ayI6IjNhZWRhMWMxLTZhYjItNDUwNy04Mzg5LTEwZTJmNDMxYjM5MSIsInRzIjoxNzI5MzU5MDU0OTI3LCJiZiI6dHJ1ZSwicG4iOiJyYlByb2R1Y3RVcGNzIiwiZ2MiOnRydWUsImdDIjp0cnVlLCJncyI6Im5vbmUiLCJkYyI6MSwidHoiOiJBbWVyaWNhL05ld19Zb3JrIiwiZXQiOjU5fQ&s=AAPAw-3SfZ0JMzjEGFSwt9L-2S4"},{event:r.ADD_TO_CART,url:"https://dev.rmn.liquidcommerce.cloud/api/spots/event?e=eyJ2IjoiMS4xMiIsImF2IjozMDY1NzgzLCJhdCI6MTYzLCJidCI6MCwiY20iOjQ0MDE5MjQxOCwiY2giOjYzMTg0LCJjayI6e30sImNyIjo0ODE4NTUzNzUsImRpIjoiOWMxNGFhMGI3NWY4NDMxNTllMTAwYWQzNzA1NzQyYzMiLCJkaiI6MCwiaWkiOiIxZjU0MGM5NmQ1N2M0YmZjODFlZjRkNjhkMzFjNDVkOSIsImRtIjozLCJmYyI6NjU2NjgyNTQ5LCJmbCI6NjQzOTMxODIxLCJpcCI6IjM1LjIyMy4xOTguOTUiLCJudyI6MTE1MDAsInBjIjo1MDAwLCJvcCI6NTAwMCwibXAiOjUwMDAsImVjIjowLCJnbSI6MCwiZXAiOm51bGwsInByIjoyNDkzMTYsInJ0IjoxLCJycyI6NTAwLCJzYSI6IjU1Iiwic2IiOiJpLTA0MDI0ODg4ZDlkMWRjZWQ3Iiwic3AiOjI3MjI3Miwic3QiOjEyODcyOTYsInRyIjp0cnVlLCJ1ayI6IjNhZWRhMWMxLTZhYjItNDUwNy04Mzg5LTEwZTJmNDMxYjM5MSIsInRzIjoxNzI5MzU5MDU0OTI3LCJiZiI6dHJ1ZSwicG4iOiJyYlByb2R1Y3RVcGNzIiwiZ2MiOnRydWUsImdDIjp0cnVlLCJncyI6Im5vbmUiLCJkYyI6MSwidHoiOiJBbWVyaWNhL05ld19Zb3JrIiwiZXQiOjYwfQ&s=uzQFcjgL7m9XqUG8FvTPVN5YkZY"},{event:r.ADD_TO_WISHLIST,url:"https://dev.rmn.liquidcommerce.cloud/api/spots/event?e=eyJ2IjoiMS4xMiIsImF2IjozMDY1NzgzLCJhdCI6MTYzLCJidCI6MCwiY20iOjQ0MDE5MjQxOCwiY2giOjYzMTg0LCJjayI6e30sImNyIjo0ODE4NTUzNzUsImRpIjoiOWMxNGFhMGI3NWY4NDMxNTllMTAwYWQzNzA1NzQyYzMiLCJkaiI6MCwiaWkiOiIxZjU0MGM5NmQ1N2M0YmZjODFlZjRkNjhkMzFjNDVkOSIsImRtIjozLCJmYyI6NjU2NjgyNTQ5LCJmbCI6NjQzOTMxODIxLCJpcCI6IjM1LjIyMy4xOTguOTUiLCJudyI6MTE1MDAsInBjIjo1MDAwLCJvcCI6NTAwMCwibXAiOjUwMDAsImVjIjowLCJnbSI6MCwiZXAiOm51bGwsInByIjoyNDkzMTYsInJ0IjoxLCJycyI6NTAwLCJzYSI6IjU1Iiwic2IiOiJpLTA0MDI0ODg4ZDlkMWRjZWQ3Iiwic3AiOjI3MjI3Miwic3QiOjEyODcyOTYsInRyIjp0cnVlLCJ1ayI6IjNhZWRhMWMxLTZhYjItNDUwNy04Mzg5LTEwZTJmNDMxYjM5MSIsInRzIjoxNzI5MzU5MDU0OTI3LCJiZiI6dHJ1ZSwicG4iOiJyYlByb2R1Y3RVcGNzIiwiZ2MiOnRydWUsImdDIjp0cnVlLCJncyI6Im5vbmUiLCJkYyI6MSwidHoiOiJBbWVyaWNhL05ld19Zb3JrIiwiZXQiOjYzfQ&s=m3ISU_iIy-OFtXrTKpI6cJAEC0k"},{event:r.BUY_NOW,url:"https://dev.rmn.liquidcommerce.cloud/api/spots/event?e=eyJ2IjoiMS4xMiIsImF2IjozMDY1NzgzLCJhdCI6MTYzLCJidCI6MCwiY20iOjQ0MDE5MjQxOCwiY2giOjYzMTg0LCJjayI6e30sImNyIjo0ODE4NTUzNzUsImRpIjoiOWMxNGFhMGI3NWY4NDMxNTllMTAwYWQzNzA1NzQyYzMiLCJkaiI6MCwiaWkiOiIxZjU0MGM5NmQ1N2M0YmZjODFlZjRkNjhkMzFjNDVkOSIsImRtIjozLCJmYyI6NjU2NjgyNTQ5LCJmbCI6NjQzOTMxODIxLCJpcCI6IjM1LjIyMy4xOTguOTUiLCJudyI6MTE1MDAsInBjIjo1MDAwLCJvcCI6NTAwMCwibXAiOjUwMDAsImVjIjowLCJnbSI6MCwiZXAiOm51bGwsInByIjoyNDkzMTYsInJ0IjoxLCJycyI6NTAwLCJzYSI6IjU1Iiwic2IiOiJpLTA0MDI0ODg4ZDlkMWRjZWQ3Iiwic3AiOjI3MjI3Miwic3QiOjEyODcyOTYsInRyIjp0cnVlLCJ1ayI6IjNhZWRhMWMxLTZhYjItNDUwNy04Mzg5LTEwZTJmNDMxYjM5MSIsInRzIjoxNzI5MzU5MDU0OTI3LCJiZiI6dHJ1ZSwicG4iOiJyYlByb2R1Y3RVcGNzIiwiZ2MiOnRydWUsImdDIjp0cnVlLCJncyI6Im5vbmUiLCJkYyI6MSwidHoiOiJBbWVyaWNhL05ld19Zb3JrIiwiZXQiOjY5fQ&s=l6MOscQC-q-FkC2Ksd7w6jjySCQ"}],a={rbHomepageHero:[{id:"abc123",spot:n.RB_HOMEPAGE_HERO_FULL_IMAGE,variant:n.RB_HOMEPAGE_HERO_FULL_IMAGE,width:1140,height:640,header:"Premium Wine Collection",description:"Discover our exclusive selection of vintage wines",ctaText:"Shop Wines",textColor:"#ffffff",ctaTextColor:"#ffffff",primaryImage:"https://placehold.co/1140x640/png?text=Wine+Collection",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Wine",events:s,productIds:[1,2,3]},{id:"jkl012",spot:n.RB_HOMEPAGE_HERO_TWO_TILE,variant:n.RB_HOMEPAGE_HERO_TWO_TILE,width:1140,height:640,header:"Whiskey Collection",description:"Premium whiskeys from around the world",ctaText:"Shop Whiskeys",textColor:"#ffffff",backgroundColor:"#2c1810",ctaTextColor:"#2c1810",primaryImage:"https://placehold.co/1140x640/png?text=Whiskey",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Whiskey",events:s,productIds:[10,11]},{id:"stu901",spot:n.RB_HOMEPAGE_HERO_THREE_TILE,variant:n.RB_HOMEPAGE_HERO_THREE_TILE,width:1140,height:640,header:"Summer Cocktails",description:"Essential spirits for summer mixing",ctaText:"Mix It Up",textColor:"#ffffff",backgroundColor:"#4d3a0a",ctaTextColor:"#4d3a0a",primaryImage:"https://placehold.co/1140x640/png?text=Cocktails",secondaryImage:"https://placehold.co/1140x640/png?text=Mixers",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Cocktails",mobileSecondaryImage:"https://placehold.co/640x320/png?text=Mobile+Mixers",events:s,productIds:[16,17,18]},{id:"def456",spot:n.RB_HOMEPAGE_HERO_FULL_IMAGE,variant:n.RB_HOMEPAGE_HERO_FULL_IMAGE,width:1140,height:640,header:"Craft Beer Festival",description:"Local breweries and exclusive releases",ctaText:"Explore Beers",textColor:"#ffffff",ctaTextColor:"#ffffff",primaryImage:"https://placehold.co/1140x640/png?text=Beer+Festival",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Beer",events:s,productIds:[4,5,6]},{id:"mno345",spot:n.RB_HOMEPAGE_HERO_TWO_TILE,variant:n.RB_HOMEPAGE_HERO_TWO_TILE,width:1140,height:640,header:"Champagne Selection",description:"Finest champagnes for every occasion",ctaText:"View Champagnes",textColor:"#ffffff",backgroundColor:"#1a1a1a",ctaTextColor:"#1a1a1a",primaryImage:"https://placehold.co/1140x640/png?text=Champagne",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Champagne",events:s,productIds:[12,13]},{id:"vwx234",spot:n.RB_HOMEPAGE_HERO_THREE_TILE,variant:n.RB_HOMEPAGE_HERO_THREE_TILE,width:1140,height:640,header:"Wine Regions",description:"Explore wines from top regions",ctaText:"Tour Regions",textColor:"#ffffff",backgroundColor:"#4d0a0a",ctaTextColor:"#4d0a0a",primaryImage:"https://placehold.co/1140x640/png?text=Wine+Regions",secondaryImage:"https://placehold.co/1140x640/png?text=Vineyards",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Regions",mobileSecondaryImage:"https://placehold.co/640x320/png?text=Mobile+Vineyards",events:s,productIds:[19,20,21]},{id:"ghi789",spot:n.RB_HOMEPAGE_HERO_FULL_IMAGE,variant:n.RB_HOMEPAGE_HERO_FULL_IMAGE,width:1140,height:640,header:"Rare Spirits",description:"Limited edition spirits collection",ctaText:"View Collection",textColor:"#ffffff",ctaTextColor:"#ffffff",primaryImage:"https://placehold.co/1140x640/png?text=Rare+Spirits",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Spirits",events:s,productIds:[7,8,9]},{id:"pqr678",spot:n.RB_HOMEPAGE_HERO_TWO_TILE,variant:n.RB_HOMEPAGE_HERO_TWO_TILE,width:1140,height:640,header:"Gin Collection",description:"Artisanal gins and botanicals",ctaText:"Explore Gins",textColor:"#ffffff",backgroundColor:"#0a4d4d",ctaTextColor:"#0a4d4d",primaryImage:"https://placehold.co/1140x640/png?text=Gin",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Gin",events:s,productIds:[14,15]},{id:"yz5678",spot:n.RB_HOMEPAGE_HERO_THREE_TILE,variant:n.RB_HOMEPAGE_HERO_THREE_TILE,width:1140,height:640,header:"Tequila Collection",description:"Premium tequilas and mezcals",ctaText:"Shop Tequila",textColor:"#ffffff",backgroundColor:"#0a4d2b",ctaTextColor:"#0a4d2b",primaryImage:"https://placehold.co/1140x640/png?text=Tequila",secondaryImage:"https://placehold.co/1140x640/png?text=Mezcal",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Tequila",mobileSecondaryImage:"https://placehold.co/640x320/png?text=Mobile+Mezcal",events:s,productIds:[22,23,24]}],rbHomepageHeroFullImage:[{id:"hjk567",spot:n.RB_HOMEPAGE_HERO_FULL_IMAGE,variant:n.RB_HOMEPAGE_HERO_FULL_IMAGE,width:1140,height:640,header:"Holiday Gift Guide",description:"Perfect spirits for every occasion",ctaText:"Shop Gifts",textColor:"#ffffff",ctaTextColor:"#ffffff",primaryImage:"https://placehold.co/1140x640/png?text=Gift+Guide",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Gifts",events:s,productIds:[25,26]},{id:"qwe890",spot:n.RB_HOMEPAGE_HERO_FULL_IMAGE,variant:n.RB_HOMEPAGE_HERO_FULL_IMAGE,width:1140,height:640,header:"Summer Wine Festival",description:"Refreshing wines for summer",ctaText:"Shop Festival",textColor:"#ffffff",ctaTextColor:"#ffffff",primaryImage:"https://placehold.co/1140x640/png?text=Wine+Festival",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Festival",events:s,productIds:[27,28]}],rbHomepageHeroTwoTile:[{id:"iop987",spot:n.RB_HOMEPAGE_HERO_TWO_TILE,variant:n.RB_HOMEPAGE_HERO_TWO_TILE,width:1140,height:640,header:"Bourbon Selection",description:"Kentucky's finest bourbons",ctaText:"Shop Bourbon",textColor:"#ffffff",backgroundColor:"#2c1810",ctaTextColor:"#2c1810",primaryImage:"https://placehold.co/1140x640/png?text=Bourbon",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Bourbon",events:s,productIds:[29,30]},{id:"lkj012",spot:n.RB_HOMEPAGE_HERO_TWO_TILE,variant:n.RB_HOMEPAGE_HERO_TWO_TILE,width:1140,height:640,header:"Vodka Collection",description:"Premium vodkas from around the world",ctaText:"Shop Vodka",textColor:"#ffffff",backgroundColor:"#1a1a1a",ctaTextColor:"#1a1a1a",primaryImage:"https://placehold.co/1140x640/png?text=Vodka",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Vodka",events:s,productIds:[31,32]}],rbHomepageHeroThreeTile:[{id:"bnm345",spot:n.RB_HOMEPAGE_HERO_THREE_TILE,variant:n.RB_HOMEPAGE_HERO_THREE_TILE,width:1140,height:640,header:"Rum Collection",description:"Caribbean and craft rums",ctaText:"Shop Rum",textColor:"#ffffff",backgroundColor:"#4d3a0a",ctaTextColor:"#4d3a0a",primaryImage:"https://placehold.co/1140x640/png?text=Rum",secondaryImage:"https://placehold.co/1140x640/png?text=Craft+Rum",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Rum",mobileSecondaryImage:"https://placehold.co/640x320/png?text=Mobile+Craft",events:s,productIds:[33,34]},{id:"fgh678",spot:n.RB_HOMEPAGE_HERO_THREE_TILE,variant:n.RB_HOMEPAGE_HERO_THREE_TILE,width:1140,height:640,header:"Scotch Selection",description:"Single malts and blends",ctaText:"Shop Scotch",textColor:"#ffffff",backgroundColor:"#4d0a0a",ctaTextColor:"#4d0a0a",primaryImage:"https://placehold.co/1140x640/png?text=Scotch",secondaryImage:"https://placehold.co/1140x640/png?text=Single+Malts",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Scotch",mobileSecondaryImage:"https://placehold.co/640x320/png?text=Mobile+Malts",events:s,productIds:[35,36]}],rbLargeCategoryImageTout:[{id:"cde567",spot:n.RB_LARGE_CATEGORY_IMAGE_TOUT,variant:n.RB_LARGE_CATEGORY_IMAGE_TOUT,width:468,height:410,header:"Rare & Limited Edition",description:"Discover our collection of hard-to-find and limited release spirits.",textColor:"#ffffff",ctaTextColor:"#ffffff",primaryImage:"https://placehold.co/468x410/png?text=Rare+Spirits",mobilePrimaryImage:"https://placehold.co/468x410/png?text=Mobile+Rare+Spirits",ctaText:"Shop Rare Spirits",events:s,productIds:[37,38,39,40,41]},{id:"efg789",spot:n.RB_LARGE_CATEGORY_IMAGE_TOUT,variant:n.RB_LARGE_CATEGORY_IMAGE_TOUT,width:468,height:410,header:"Vintage Champagnes",description:"Explore our prestigious collection of aged champagnes.",textColor:"#ffffff",ctaTextColor:"#ffffff",primaryImage:"https://placehold.co/468x410/png?text=Vintage+Champagne",mobilePrimaryImage:"https://placehold.co/468x410/png?text=Mobile+Champagne",ctaText:"View Collection",events:s,productIds:[42,43,44,45,46]},{id:"ghi012",spot:n.RB_LARGE_CATEGORY_IMAGE_TOUT,variant:n.RB_LARGE_CATEGORY_IMAGE_TOUT,width:468,height:410,header:"Small Batch Bourbon",description:"Hand-selected premium bourbon from craft distilleries.",textColor:"#ffffff",ctaTextColor:"#ffffff",primaryImage:"https://placehold.co/468x410/png?text=Craft+Bourbon",mobilePrimaryImage:"https://placehold.co/468x410/png?text=Mobile+Bourbon",ctaText:"Explore Bourbon",events:s,productIds:[47,48,49,50,51]}],rbSmallDiscoverTout:[{id:"jkl345",spot:n.RB_SMALL_DISCOVER_TOUT,variant:n.RB_SMALL_DISCOVER_TOUT,width:224,height:378,header:"Château Margaux 2015 Bordeaux",textColor:"#ffffff",primaryImage:"https://placehold.co/224x378/png?text=Château+Margaux",mobilePrimaryImage:"https://placehold.co/224x378/png?text=Mobile+Château+Margaux",events:s,productIds:[52,53,54,55,56]},{id:"lmn678",spot:n.RB_SMALL_DISCOVER_TOUT,variant:n.RB_SMALL_DISCOVER_TOUT,width:224,height:378,header:"Macallan 25 Year",textColor:"#ffffff",primaryImage:"https://placehold.co/224x378/png?text=Macallan+25",mobilePrimaryImage:"https://placehold.co/224x378/png?text=Mobile+Macallan",events:s,productIds:[57,58,59,60,61]},{id:"nop901",spot:n.RB_SMALL_DISCOVER_TOUT,variant:n.RB_SMALL_DISCOVER_TOUT,width:224,height:378,header:"Louis XIII Cognac",textColor:"#ffffff",primaryImage:"https://placehold.co/224x378/png?text=Louis+XIII",mobilePrimaryImage:"https://placehold.co/224x378/png?text=Mobile+Louis+XIII",events:s,productIds:[62,63,64,65,66]}],rbSmallCategoryImageTout:[{id:"qrs234",spot:n.RB_SMALL_CATEGORY_IMAGE_TOUT,variant:n.RB_SMALL_CATEGORY_IMAGE_TOUT,width:224,height:410,header:"Japanese Sake",textColor:"#ffffff",primaryImage:"https://placehold.co/224x410/png?text=Japanese+Sake",mobilePrimaryImage:"https://placehold.co/224x410/png?text=Mobile+Japanese+Sake",events:s,productIds:[67,68,69,70,71]},{id:"stu567",spot:n.RB_SMALL_CATEGORY_IMAGE_TOUT,variant:n.RB_SMALL_CATEGORY_IMAGE_TOUT,width:224,height:410,header:"Craft Vermouth",textColor:"#ffffff",primaryImage:"https://placehold.co/224x410/png?text=Craft+Vermouth",mobilePrimaryImage:"https://placehold.co/224x410/png?text=Mobile+Vermouth",events:s,productIds:[72,73,74,75,76]},{id:"vwx890",spot:n.RB_SMALL_CATEGORY_IMAGE_TOUT,variant:n.RB_SMALL_CATEGORY_IMAGE_TOUT,width:224,height:410,header:"Premium Mezcal",textColor:"#ffffff",primaryImage:"https://placehold.co/224x410/png?text=Premium+Mezcal",mobilePrimaryImage:"https://placehold.co/224x410/png?text=Mobile+Mezcal",events:s,productIds:[77,78,79,80,81]}],rbCollectionBannerWithoutTextBlock:[{id:"yz1234",spot:n.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK,variant:n.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK,width:887,height:344,primaryImage:"https://placehold.co/887x344/png?text=Summer+Cocktails",mobilePrimaryImage:"https://placehold.co/887x344/png?text=Mobile+Summer+Cocktails",events:s,productIds:[82,83,84,85,86]},{id:"abc567",spot:n.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK,variant:n.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK,width:887,height:344,primaryImage:"https://placehold.co/887x344/png?text=Holiday+Spirits",mobilePrimaryImage:"https://placehold.co/887x344/png?text=Mobile+Holiday+Spirits",events:s,productIds:[87,88,89,90,91]},{id:"def901",spot:n.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK,variant:n.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK,width:887,height:344,primaryImage:"https://placehold.co/887x344/png?text=Wine+Essentials",mobilePrimaryImage:"https://placehold.co/887x344/png?text=Mobile+Wine+Essentials",events:s,productIds:[92,93,94,95,96]}],rbNavigationBanner:[{id:"ghi234",spot:n.RB_NAVIGATION_BANNER,variant:n.RB_NAVIGATION_BANNER,width:440,height:220,header:"Explore Tequilas",textColor:"#ffffff",primaryImage:"https://placehold.co/440x220/png?text=Tequila+Collection",mobilePrimaryImage:"https://placehold.co/440x220/png?text=Mobile+Tequila+Collection",events:s,productIds:[97,98,99,100,101]},{id:"jkl678",spot:n.RB_NAVIGATION_BANNER,variant:n.RB_NAVIGATION_BANNER,width:440,height:220,header:"Craft Gin Selection",textColor:"#ffffff",primaryImage:"https://placehold.co/440x220/png?text=Gin+Selection",mobilePrimaryImage:"https://placehold.co/440x220/png?text=Mobile+Gin+Selection",events:s,productIds:[102,103,104,105,106]},{id:"mno012",spot:n.RB_NAVIGATION_BANNER,variant:n.RB_NAVIGATION_BANNER,width:440,height:220,header:"Premium Vodka",textColor:"#ffffff",primaryImage:"https://placehold.co/440x220/png?text=Vodka+Premium",mobilePrimaryImage:"https://placehold.co/440x220/png?text=Mobile+Vodka+Premium",events:s,productIds:[107,108,109,110,111]}]},c={banner:[],billboard:[{id:"kol567",spot:n.BILLBOARD,variant:`${n.BILLBOARD}V2`,width:1140,height:640,header:"Holiday Gift Guide",description:"Perfect spirits for every occasion",ctaText:"Shop Gifts",textColor:"#ffffff",ctaTextColor:"#ffffff",primaryImage:"https://placehold.co/1140x640/png?text=Gift+Guide",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Gifts",events:s,productIds:[25,26]},{id:"hpm390",spot:n.BILLBOARD,variant:`${n.BILLBOARD}V2`,width:1140,height:640,header:"Summer Wine Festival",description:"Refreshing wines for summer",ctaText:"Shop Festival",textColor:"#ffffff",ctaTextColor:"#ffffff",primaryImage:"https://placehold.co/1140x640/png?text=Wine+Festival",mobilePrimaryImage:"https://placehold.co/640x640/png?text=Mobile+Festival",events:s,productIds:[27,28]}],button2:[],featurePhoneLargeBanner:[],featurePhoneMediumBanner:[],featurePhoneSmallBanner:[],halfPage:[],inText:[],largeLeaderboard:[],largeRectangle:[],leaderboard:[],mediumRectangle:[],microBar:[],mobilePhoneInterstitial1:[],mobilePhoneInterstitial2:[],mobilePhoneInterstitial3:[],popUp:[],portrait:[],rbProductUpcs:[],skyscraper:[],smallRectangle:[],smallSquare:[],smartphoneBanner1:[],smartphoneBanner2:[],square:[],verticalBanner:[],verticalRectangle:[],wideSkyscraper:[]},l="X-Liquid-Protected",u="X-Liquid-Timestamp",h="X-Liquid-Api-Env",f={url:{[o.LOCAL]:"http://localhost:8300",[o.DEVELOPMENT]:"https://dev.rmn.liquidcommerce.cloud",[o.STAGING]:"https://staging.rmn.liquidcommerce.cloud",[o.PRODUCTION]:"https://rmn.liquidcommerce.cloud"},apiHeader:"X-Liquid-Api-Key",accessHeader:"Authorization",credentials:{authenticated:!1,apiKey:"",token:"",env:o.DEVELOPMENT}};class d{}var p="undefined"!=typeof global?global:"undefined"!=typeof self?self:window;function m(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}var v=m,w=g;function y(t){if(v===setTimeout)return setTimeout(t,0);if((v===m||!v)&&setTimeout)return v=setTimeout,setTimeout(t,0);try{return v(t,0)}catch(n){try{return v.call(null,t,0)}catch(n){return v.call(this,t,0)}}}"function"==typeof p.setTimeout&&(v=setTimeout),"function"==typeof p.clearTimeout&&(w=clearTimeout);var b,x=[],I=!1,S=-1;function C(){I&&b&&(I=!1,b.length?x=b.concat(x):S=-1,x.length&&k())}function k(){if(!I){var t=y(C);I=!0;for(var n=x.length;n;){for(b=x,x=[];++S<n;)b&&b[S].run();S=-1,n=x.length}b=null,I=!1,function(t){if(w===clearTimeout)return clearTimeout(t);if((w===g||!w)&&clearTimeout)return w=clearTimeout,clearTimeout(t);try{return w(t)}catch(n){try{return w.call(null,t)}catch(n){return w.call(this,t)}}}(t)}}function M(t,n){this.fun=t,this.array=n}function T(){}M.prototype.run=function(){this.fun.apply(null,this.array)};var $=T,j=T,_=T,E=T,O=T,z=T,A=T,R=p.performance||{},N=R.now||R.mozNow||R.msNow||R.oNow||R.webkitNow||function(){return(new Date).getTime()},D=new Date,P={nextTick:function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)n[e-1]=arguments[e];x.push(new M(t,n)),1!==x.length||I||y(k)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:$,addListener:j,once:_,off:E,removeListener:O,removeAllListeners:z,emit:A,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var n=.001*N.call(R),e=Math.floor(n),i=Math.floor(n%1*1e9);return t&&(e-=t[0],(i-=t[1])<0&&(e--,i+=1e9)),[e,i]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-D)/1e3}};function J(t,n){return function(){return t.apply(n,arguments)}}const{toString:L}=Object.prototype,{getPrototypeOf:q}=Object,U=(B=Object.create(null),t=>{const n=L.call(t);return B[n]||(B[n]=n.slice(8,-1).toLowerCase())});var B;const F=t=>(t=t.toLowerCase(),n=>U(n)===t),W=t=>n=>typeof n===t,{isArray:H}=Array,Y=W("undefined"),V=F("ArrayBuffer"),Z=W("string"),G=W("function"),Q=W("number"),K=t=>null!==t&&"object"==typeof t,X=t=>{if("object"!==U(t))return!1;const n=q(t);return!(null!==n&&n!==Object.prototype&&null!==Object.getPrototypeOf(n)||Symbol.toStringTag in t||Symbol.iterator in t)},tt=F("Date"),nt=F("File"),et=F("Blob"),it=F("FileList"),rt=F("URLSearchParams"),[ot,st,at,ct]=["ReadableStream","Request","Response","Headers"].map(F);function lt(t,n,{allOwnKeys:e=!1}={}){if(null==t)return;let i,r;if("object"!=typeof t&&(t=[t]),H(t))for(i=0,r=t.length;i<r;i++)n.call(null,t[i],i,t);else{const r=e?Object.getOwnPropertyNames(t):Object.keys(t),o=r.length;let s;for(i=0;i<o;i++)s=r[i],n.call(null,t[s],s,t)}}function ut(t,n){n=n.toLowerCase();const e=Object.keys(t);let i,r=e.length;for(;r-- >0;)if(i=e[r],n===i.toLowerCase())return i;return null}const ht="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,ft=t=>!Y(t)&&t!==ht,dt=(pt="undefined"!=typeof Uint8Array&&q(Uint8Array),t=>pt&&t instanceof pt);var pt;const mt=F("HTMLFormElement"),gt=(({hasOwnProperty:t})=>(n,e)=>t.call(n,e))(Object.prototype),vt=F("RegExp"),wt=(t,n)=>{const e=Object.getOwnPropertyDescriptors(t),i={};lt(e,((e,r)=>{let o;!1!==(o=n(e,r,t))&&(i[r]=o||e)})),Object.defineProperties(t,i)},yt="abcdefghijklmnopqrstuvwxyz",bt="0123456789",xt={DIGIT:bt,ALPHA:yt,ALPHA_DIGIT:yt+yt.toUpperCase()+bt},It=F("AsyncFunction"),St=(Ct="function"==typeof setImmediate,kt=G(ht.postMessage),Ct?setImmediate:kt?(Mt=`axios@${Math.random()}`,Tt=[],ht.addEventListener("message",(({source:t,data:n})=>{t===ht&&n===Mt&&Tt.length&&Tt.shift()()}),!1),t=>{Tt.push(t),ht.postMessage(Mt,"*")}):t=>setTimeout(t));var Ct,kt,Mt,Tt;const $t="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ht):P.nextTick||St;var jt={isArray:H,isArrayBuffer:V,isBuffer:function(t){return null!==t&&!Y(t)&&null!==t.constructor&&!Y(t.constructor)&&G(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let n;return t&&("function"==typeof FormData&&t instanceof FormData||G(t.append)&&("formdata"===(n=U(t))||"object"===n&&G(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let n;return n="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&V(t.buffer),n},isString:Z,isNumber:Q,isBoolean:t=>!0===t||!1===t,isObject:K,isPlainObject:X,isReadableStream:ot,isRequest:st,isResponse:at,isHeaders:ct,isUndefined:Y,isDate:tt,isFile:nt,isBlob:et,isRegExp:vt,isFunction:G,isStream:t=>K(t)&&G(t.pipe),isURLSearchParams:rt,isTypedArray:dt,isFileList:it,forEach:lt,merge:function t(){const{caseless:n}=ft(this)&&this||{},e={},i=(i,r)=>{const o=n&&ut(e,r)||r;X(e[o])&&X(i)?e[o]=t(e[o],i):X(i)?e[o]=t({},i):H(i)?e[o]=i.slice():e[o]=i};for(let t=0,n=arguments.length;t<n;t++)arguments[t]&<(arguments[t],i);return e},extend:(t,n,e,{allOwnKeys:i}={})=>(lt(n,((n,i)=>{e&&G(n)?t[i]=J(n,e):t[i]=n}),{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,n,e,i)=>{t.prototype=Object.create(n.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),e&&Object.assign(t.prototype,e)},toFlatObject:(t,n,e,i)=>{let r,o,s;const a={};if(n=n||{},null==t)return n;do{for(r=Object.getOwnPropertyNames(t),o=r.length;o-- >0;)s=r[o],i&&!i(s,t,n)||a[s]||(n[s]=t[s],a[s]=!0);t=!1!==e&&q(t)}while(t&&(!e||e(t,n))&&t!==Object.prototype);return n},kindOf:U,kindOfTest:F,endsWith:(t,n,e)=>{t=String(t),(void 0===e||e>t.length)&&(e=t.length),e-=n.length;const i=t.indexOf(n,e);return-1!==i&&i===e},toArray:t=>{if(!t)return null;if(H(t))return t;let n=t.length;if(!Q(n))return null;const e=new Array(n);for(;n-- >0;)e[n]=t[n];return e},forEachEntry:(t,n)=>{const e=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=e.next())&&!i.done;){const e=i.value;n.call(t,e[0],e[1])}},matchAll:(t,n)=>{let e;const i=[];for(;null!==(e=t.exec(n));)i.push(e);return i},isHTMLForm:mt,hasOwnProperty:gt,hasOwnProp:gt,reduceDescriptors:wt,freezeMethods:t=>{wt(t,((n,e)=>{if(G(t)&&-1!==["arguments","caller","callee"].indexOf(e))return!1;const i=t[e];G(i)&&(n.enumerable=!1,"writable"in n?n.writable=!1:n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")}))}))},toObjectSet:(t,n)=>{const e={},i=t=>{t.forEach((t=>{e[t]=!0}))};return H(t)?i(t):i(String(t).split(n)),e},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,n,e){return n.toUpperCase()+e})),noop:()=>{},toFiniteNumber:(t,n)=>null!=t&&Number.isFinite(t=+t)?t:n,findKey:ut,global:ht,isContextDefined:ft,ALPHABET:xt,generateString:(t=16,n=xt.ALPHA_DIGIT)=>{let e="";const{length:i}=n;for(;t--;)e+=n[Math.random()*i|0];return e},isSpecCompliantForm:function(t){return!!(t&&G(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const n=new Array(10),e=(t,i)=>{if(K(t)){if(n.indexOf(t)>=0)return;if(!("toJSON"in t)){n[i]=t;const r=H(t)?[]:{};return lt(t,((t,n)=>{const o=e(t,i+1);!Y(o)&&(r[n]=o)})),n[i]=void 0,r}}return t};return e(t,0)},isAsyncFn:It,isThenable:t=>t&&(K(t)||G(t))&&G(t.then)&&G(t.catch),setImmediate:St,asap:$t},_t=[],Et=[],Ot="undefined"!=typeof Uint8Array?Uint8Array:Array,zt=!1;function At(){zt=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0;n<64;++n)_t[n]=t[n],Et[t.charCodeAt(n)]=n;Et["-".charCodeAt(0)]=62,Et["_".charCodeAt(0)]=63}function Rt(t,n,e){for(var i,r,o=[],s=n;s<e;s+=3)i=(t[s]<<16)+(t[s+1]<<8)+t[s+2],o.push(_t[(r=i)>>18&63]+_t[r>>12&63]+_t[r>>6&63]+_t[63&r]);return o.join("")}function Nt(t){var n;zt||At();for(var e=t.length,i=e%3,r="",o=[],s=16383,a=0,c=e-i;a<c;a+=s)o.push(Rt(t,a,a+s>c?c:a+s));return 1===i?(n=t[e-1],r+=_t[n>>2],r+=_t[n<<4&63],r+="=="):2===i&&(n=(t[e-2]<<8)+t[e-1],r+=_t[n>>10],r+=_t[n>>4&63],r+=_t[n<<2&63],r+="="),o.push(r),o.join("")}function Dt(t,n,e,i,r){var o,s,a=8*r-i-1,c=(1<<a)-1,l=c>>1,u=-7,h=e?r-1:0,f=e?-1:1,d=t[n+h];for(h+=f,o=d&(1<<-u)-1,d>>=-u,u+=a;u>0;o=256*o+t[n+h],h+=f,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+t[n+h],h+=f,u-=8);if(0===o)o=1-l;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,i),o-=l}return(d?-1:1)*s*Math.pow(2,o-i)}function Pt(t,n,e,i,r,o){var s,a,c,l=8*o-r-1,u=(1<<l)-1,h=u>>1,f=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(a=isNaN(n)?1:0,s=u):(s=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-s))<1&&(s--,c*=2),(n+=s+h>=1?f/c:f*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(n*c-1)*Math.pow(2,r),s+=h):(a=n*Math.pow(2,h-1)*Math.pow(2,r),s=0));r>=8;t[e+d]=255&a,d+=p,a/=256,r-=8);for(s=s<<r|a,l+=r;l>0;t[e+d]=255&s,d+=p,s/=256,l-=8);t[e+d-p]|=128*m}var Jt={}.toString,Lt=Array.isArray||function(t){return"[object Array]"==Jt.call(t)};function qt(){return Bt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ut(t,n){if(qt()<n)throw new RangeError("Invalid typed array length");return Bt.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(n)).__proto__=Bt.prototype:(null===t&&(t=new Bt(n)),t.length=n),t}function Bt(t,n,e){if(!(Bt.TYPED_ARRAY_SUPPORT||this instanceof Bt))return new Bt(t,n,e);if("number"==typeof t){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return Ht(this,t)}return Ft(this,t,n,e)}function Ft(t,n,e,i){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?function(t,n,e,i){if(n.byteLength,e<0||n.byteLength<e)throw new RangeError("'offset' is out of bounds");if(n.byteLength<e+(i||0))throw new RangeError("'length' is out of bounds");return n=void 0===e&&void 0===i?new Uint8Array(n):void 0===i?new Uint8Array(n,e):new Uint8Array(n,e,i),Bt.TYPED_ARRAY_SUPPORT?(t=n).__proto__=Bt.prototype:t=Yt(t,n),t}(t,n,e,i):"string"==typeof n?function(t,n,e){if("string"==typeof e&&""!==e||(e="utf8"),!Bt.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var i=0|Gt(n,e),r=(t=Ut(t,i)).write(n,e);return r!==i&&(t=t.slice(0,r)),t}(t,n,e):function(t,n){if(Zt(n)){var e=0|Vt(n.length);return 0===(t=Ut(t,e)).length||n.copy(t,0,0,e),t}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||(i=n.length)!=i?Ut(t,0):Yt(t,n);if("Buffer"===n.type&&Lt(n.data))return Yt(t,n.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,n)}function Wt(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Ht(t,n){if(Wt(n),t=Ut(t,n<0?0:0|Vt(n)),!Bt.TYPED_ARRAY_SUPPORT)for(var e=0;e<n;++e)t[e]=0;return t}function Yt(t,n){var e=n.length<0?0:0|Vt(n.length);t=Ut(t,e);for(var i=0;i<e;i+=1)t[i]=255&n[i];return t}function Vt(t){if(t>=qt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+qt().toString(16)+" bytes");return 0|t}function Zt(t){return!(null==t||!t.i)}function Gt(t,n){if(Zt(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var i=!1;;)switch(n){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return Sn(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return Cn(t).length;default:if(i)return Sn(t).length;n=(""+n).toLowerCase(),i=!0}}function Qt(t,n,e){var i=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(n>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return dn(this,n,e);case"utf8":case"utf-8":return ln(this,n,e);case"ascii":return hn(this,n,e);case"latin1":case"binary":return fn(this,n,e);case"base64":return cn(this,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pn(this,n,e);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function Kt(t,n,e){var i=t[n];t[n]=t[e],t[e]=i}function Xt(t,n,e,i,r){if(0===t.length)return-1;if("string"==typeof e?(i=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=r?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(r)return-1;e=t.length-1}else if(e<0){if(!r)return-1;e=0}if("string"==typeof n&&(n=Bt.from(n,i)),Zt(n))return 0===n.length?-1:tn(t,n,e,i,r);if("number"==typeof n)return n&=255,Bt.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,n,e):Uint8Array.prototype.lastIndexOf.call(t,n,e):tn(t,[n],e,i,r);throw new TypeError("val must be string, number or Buffer")}function tn(t,n,e,i,r){var o,s=1,a=t.length,c=n.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||n.length<2)return-1;s=2,a/=2,c/=2,e/=2}function l(t,n){return 1===s?t[n]:t.readUInt16BE(n*s)}if(r){var u=-1;for(o=e;o<a;o++)if(l(t,o)===l(n,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(e+c>a&&(e=a-c),o=e;o>=0;o--){for(var h=!0,f=0;f<c;f++)if(l(t,o+f)!==l(n,f)){h=!1;break}if(h)return o}return-1}function nn(t,n,e,i){e=Number(e)||0;var r=t.length-e;i?(i=Number(i))>r&&(i=r):i=r;var o=n.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(n.substr(2*s,2),16);if(isNaN(a))return s;t[e+s]=a}return s}function en(t,n,e,i){return kn(Sn(n,t.length-e),t,e,i)}function rn(t,n,e,i){return kn(function(t){for(var n=[],e=0;e<t.length;++e)n.push(255&t.charCodeAt(e));return n}(n),t,e,i)}function on(t,n,e,i){return rn(t,n,e,i)}function sn(t,n,e,i){return kn(Cn(n),t,e,i)}function an(t,n,e,i){return kn(function(t,n){for(var e,i,r,o=[],s=0;s<t.length&&!((n-=2)<0);++s)i=(e=t.charCodeAt(s))>>8,r=e%256,o.push(r),o.push(i);return o}(n,t.length-e),t,e,i)}function cn(t,n,e){return 0===n&&e===t.length?Nt(t):Nt(t.slice(n,e))}function ln(t,n,e){e=Math.min(t.length,e);for(var i=[],r=n;r<e;){var o,s,a,c,l=t[r],u=null,h=l>239?4:l>223?3:l>191?2:1;if(r+h<=e)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(o=t[r+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=t[r+1],s=t[r+2],128==(192&o)&&128==(192&s)&&(c=(15&l)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=t[r+1],s=t[r+2],a=t[r+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=h}return function(t){var n=t.length;if(n<=un)return String.fromCharCode.apply(String,t);for(var e="",i=0;i<n;)e+=String.fromCharCode.apply(String,t.slice(i,i+=un));return e}(i)}Bt.TYPED_ARRAY_SUPPORT=void 0===p.TYPED_ARRAY_SUPPORT||p.TYPED_ARRAY_SUPPORT,qt(),Bt.poolSize=8192,Bt.o=function(t){return t.__proto__=Bt.prototype,t},Bt.from=function(t,n,e){return Ft(null,t,n,e)},Bt.TYPED_ARRAY_SUPPORT&&(Bt.prototype.__proto__=Uint8Array.prototype,Bt.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Bt[Symbol.species]),Bt.alloc=function(t,n,e){return function(t,n,e,i){return Wt(n),n<=0?Ut(t,n):void 0!==e?"string"==typeof i?Ut(t,n).fill(e,i):Ut(t,n).fill(e):Ut(t,n)}(null,t,n,e)},Bt.allocUnsafe=function(t){return Ht(null,t)},Bt.allocUnsafeSlow=function(t){return Ht(null,t)},Bt.isBuffer=function(t){return null!=t&&(!!t.i||Mn(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Mn(t.slice(0,0))}(t))},Bt.compare=function(t,n){if(!Zt(t)||!Zt(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var e=t.length,i=n.length,r=0,o=Math.min(e,i);r<o;++r)if(t[r]!==n[r]){e=t[r],i=n[r];break}return e<i?-1:i<e?1:0},Bt.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Bt.concat=function(t,n){if(!Lt(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Bt.alloc(0);var e;if(void 0===n)for(n=0,e=0;e<t.length;++e)n+=t[e].length;var i=Bt.allocUnsafe(n),r=0;for(e=0;e<t.length;++e){var o=t[e];if(!Zt(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},Bt.byteLength=Gt,Bt.prototype.i=!0,Bt.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)Kt(this,n,n+1);return this},Bt.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)Kt(this,n,n+3),Kt(this,n+1,n+2);return this},Bt.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)Kt(this,n,n+7),Kt(this,n+1,n+6),Kt(this,n+2,n+5),Kt(this,n+3,n+4);return this},Bt.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?ln(this,0,t):Qt.apply(this,arguments)},Bt.prototype.equals=function(t){if(!Zt(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Bt.compare(this,t)},Bt.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},Bt.prototype.compare=function(t,n,e,i,r){if(!Zt(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===e&&(e=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),n<0||e>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&n>=e)return 0;if(i>=r)return-1;if(n>=e)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(e>>>=0)-(n>>>=0),a=Math.min(o,s),c=this.slice(i,r),l=t.slice(n,e),u=0;u<a;++u)if(c[u]!==l[u]){o=c[u],s=l[u];break}return o<s?-1:s<o?1:0},Bt.prototype.includes=function(t,n,e){return-1!==this.indexOf(t,n,e)},Bt.prototype.indexOf=function(t,n,e){return Xt(this,t,n,e,!0)},Bt.prototype.lastIndexOf=function(t,n,e){return Xt(this,t,n,e,!1)},Bt.prototype.write=function(t,n,e,i){if(void 0===n)i="utf8",e=this.length,n=0;else if(void 0===e&&"string"==typeof n)i=n,e=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(e)?(e|=0,void 0===i&&(i="utf8")):(i=e,e=void 0)}var r=this.length-n;if((void 0===e||e>r)&&(e=r),t.length>0&&(e<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return nn(this,t,n,e);case"utf8":case"utf-8":return en(this,t,n,e);case"ascii":return rn(this,t,n,e);case"latin1":case"binary":return on(this,t,n,e);case"base64":return sn(this,t,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return an(this,t,n,e);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},Bt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.l||this,0)}};var un=4096;function hn(t,n,e){var i="";e=Math.min(t.length,e);for(var r=n;r<e;++r)i+=String.fromCharCode(127&t[r]);return i}function fn(t,n,e){var i="";e=Math.min(t.length,e);for(var r=n;r<e;++r)i+=String.fromCharCode(t[r]);return i}function dn(t,n,e){var i,r=t.length;(!n||n<0)&&(n=0),(!e||e<0||e>r)&&(e=r);for(var o="",s=n;s<e;++s)o+=(i=t[s])<16?"0"+i.toString(16):i.toString(16);return o}function pn(t,n,e){for(var i=t.slice(n,e),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function mn(t,n,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+n>e)throw new RangeError("Trying to access beyond buffer length")}function gn(t,n,e,i,r,o){if(!Zt(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>r||n<o)throw new RangeError('"value" argument is out of bounds');if(e+i>t.length)throw new RangeError("Index out of range")}function vn(t,n,e,i){n<0&&(n=65535+n+1);for(var r=0,o=Math.min(t.length-e,2);r<o;++r)t[e+r]=(n&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function wn(t,n,e,i){n<0&&(n=4294967295+n+1);for(var r=0,o=Math.min(t.length-e,4);r<o;++r)t[e+r]=n>>>8*(i?r:3-r)&255}function yn(t,n,e,i,r,o){if(e+i>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function bn(t,n,e,i,r){return r||yn(t,0,e,4),Pt(t,n,e,i,23,4),e+4}function xn(t,n,e,i,r){return r||yn(t,0,e,8),Pt(t,n,e,i,52,8),e+8}Bt.prototype.slice=function(t,n){var e,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(n=void 0===n?i:~~n)<0?(n+=i)<0&&(n=0):n>i&&(n=i),n<t&&(n=t),Bt.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,n)).__proto__=Bt.prototype;else{var r=n-t;e=new Bt(r,void 0);for(var o=0;o<r;++o)e[o]=this[o+t]}return e},Bt.prototype.readUIntLE=function(t,n,e){t|=0,n|=0,e||mn(t,n,this.length);for(var i=this[t],r=1,o=0;++o<n&&(r*=256);)i+=this[t+o]*r;return i},Bt.prototype.readUIntBE=function(t,n,e){t|=0,n|=0,e||mn(t,n,this.length);for(var i=this[t+--n],r=1;n>0&&(r*=256);)i+=this[t+--n]*r;return i},Bt.prototype.readUInt8=function(t,n){return n||mn(t,1,this.length),this[t]},Bt.prototype.readUInt16LE=function(t,n){return n||mn(t,2,this.length),this[t]|this[t+1]<<8},Bt.prototype.readUInt16BE=function(t,n){return n||mn(t,2,this.length),this[t]<<8|this[t+1]},Bt.prototype.readUInt32LE=function(t,n){return n||mn(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Bt.prototype.readUInt32BE=function(t,n){return n||mn(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Bt.prototype.readIntLE=function(t,n,e){t|=0,n|=0,e||mn(t,n,this.length);for(var i=this[t],r=1,o=0;++o<n&&(r*=256);)i+=this[t+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*n)),i},Bt.prototype.readIntBE=function(t,n,e){t|=0,n|=0,e||mn(t,n,this.length);for(var i=n,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*n)),o},Bt.prototype.readInt8=function(t,n){return n||mn(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Bt.prototype.readInt16LE=function(t,n){n||mn(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},Bt.prototype.readInt16BE=function(t,n){n||mn(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},Bt.prototype.readInt32LE=function(t,n){return n||mn(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Bt.prototype.readInt32BE=function(t,n){return n||mn(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Bt.prototype.readFloatLE=function(t,n){return n||mn(t,4,this.length),Dt(this,t,!0,23,4)},Bt.prototype.readFloatBE=function(t,n){return n||mn(t,4,this.length),Dt(this,t,!1,23,4)},Bt.prototype.readDoubleLE=function(t,n){return n||mn(t,8,this.length),Dt(this,t,!0,52,8)},Bt.prototype.readDoubleBE=function(t,n){return n||mn(t,8,this.length),Dt(this,t,!1,52,8)},Bt.prototype.writeUIntLE=function(t,n,e,i){t=+t,n|=0,e|=0,i||gn(this,t,n,e,Math.pow(2,8*e)-1,0);var r=1,o=0;for(this[n]=255&t;++o<e&&(r*=256);)this[n+o]=t/r&255;return n+e},Bt.prototype.writeUIntBE=function(t,n,e,i){t=+t,n|=0,e|=0,i||gn(this,t,n,e,Math.pow(2,8*e)-1,0);var r=e-1,o=1;for(this[n+r]=255&t;--r>=0&&(o*=256);)this[n+r]=t/o&255;return n+e},Bt.prototype.writeUInt8=function(t,n,e){return t=+t,n|=0,e||gn(this,t,n,1,255,0),Bt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},Bt.prototype.writeUInt16LE=function(t,n,e){return t=+t,n|=0,e||gn(this,t,n,2,65535,0),Bt.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):vn(this,t,n,!0),n+2},Bt.prototype.writeUInt16BE=function(t,n,e){return t=+t,n|=0,e||gn(this,t,n,2,65535,0),Bt.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):vn(this,t,n,!1),n+2},Bt.prototype.writeUInt32LE=function(t,n,e){return t=+t,n|=0,e||gn(this,t,n,4,4294967295,0),Bt.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):wn(this,t,n,!0),n+4},Bt.prototype.writeUInt32BE=function(t,n,e){return t=+t,n|=0,e||gn(this,t,n,4,4294967295,0),Bt.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):wn(this,t,n,!1),n+4},Bt.prototype.writeIntLE=function(t,n,e,i){if(t=+t,n|=0,!i){var r=Math.pow(2,8*e-1);gn(this,t,n,e,r-1,-r)}var o=0,s=1,a=0;for(this[n]=255&t;++o<e&&(s*=256);)t<0&&0===a&&0!==this[n+o-1]&&(a=1),this[n+o]=(t/s|0)-a&255;return n+e},Bt.prototype.writeIntBE=function(t,n,e,i){if(t=+t,n|=0,!i){var r=Math.pow(2,8*e-1);gn(this,t,n,e,r-1,-r)}var o=e-1,s=1,a=0;for(this[n+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[n+o+1]&&(a=1),this[n+o]=(t/s|0)-a&255;return n+e},Bt.prototype.writeInt8=function(t,n,e){return t=+t,n|=0,e||gn(this,t,n,1,127,-128),Bt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=255&t,n+1},Bt.prototype.writeInt16LE=function(t,n,e){return t=+t,n|=0,e||gn(this,t,n,2,32767,-32768),Bt.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):vn(this,t,n,!0),n+2},Bt.prototype.writeInt16BE=function(t,n,e){return t=+t,n|=0,e||gn(this,t,n,2,32767,-32768),Bt.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):vn(this,t,n,!1),n+2},Bt.prototype.writeInt32LE=function(t,n,e){return t=+t,n|=0,e||gn(this,t,n,4,2147483647,-2147483648),Bt.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):wn(this,t,n,!0),n+4},Bt.prototype.writeInt32BE=function(t,n,e){return t=+t,n|=0,e||gn(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Bt.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):wn(this,t,n,!1),n+4},Bt.prototype.writeFloatLE=function(t,n,e){return bn(this,t,n,!0,e)},Bt.prototype.writeFloatBE=function(t,n,e){return bn(this,t,n,!1,e)},Bt.prototype.writeDoubleLE=function(t,n,e){return xn(this,t,n,!0,e)},Bt.prototype.writeDoubleBE=function(t,n,e){return xn(this,t,n,!1,e)},Bt.prototype.copy=function(t,n,e,i){if(e||(e=0),i||0===i||(i=this.length),n>=t.length&&(n=t.length),n||(n=0),i>0&&i<e&&(i=e),i===e)return 0;if(0===t.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-n<i-e&&(i=t.length-n+e);var r,o=i-e;if(this===t&&e<n&&n<i)for(r=o-1;r>=0;--r)t[r+n]=this[r+e];else if(o<1e3||!Bt.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+n]=this[r+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),n);return o},Bt.prototype.fill=function(t,n,e,i){if("string"==typeof t){if("string"==typeof n?(i=n,n=0,e=this.length):"string"==typeof e&&(i=e,e=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!Bt.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(n<0||this.length<n||this.length<e)throw new RangeError("Out of range index");if(e<=n)return this;var o;if(n>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=n;o<e;++o)this[o]=t;else{var s=Zt(t)?t:Sn(new Bt(t,i).toString()),a=s.length;for(o=0;o<e-n;++o)this[o+n]=s[o%a]}return this};var In=/[^+\/0-9A-Za-z-_]/g;function Sn(t,n){var e;n=n||1/0;for(var i=t.length,r=null,o=[],s=0;s<i;++s){if((e=t.charCodeAt(s))>55295&&e<57344){if(!r){if(e>56319){(n-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(n-=3)>-1&&o.push(239,191,189);continue}r=e;continue}if(e<56320){(n-=3)>-1&&o.push(239,191,189),r=e;continue}e=65536+(r-55296<<10|e-56320)}else r&&(n-=3)>-1&&o.push(239,191,189);if(r=null,e<128){if((n-=1)<0)break;o.push(e)}else if(e<2048){if((n-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((n-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function Cn(t){return function(t){var n,e,i,r,o,s;zt||At();var a=t.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[a-2]?2:"="===t[a-1]?1:0,s=new Ot(3*a/4-o),i=o>0?a-4:a;var c=0;for(n=0,e=0;n<i;n+=4,e+=3)r=Et[t.charCodeAt(n)]<<18|Et[t.charCodeAt(n+1)]<<12|Et[t.charCodeAt(n+2)]<<6|Et[t.charCodeAt(n+3)],s[c++]=r>>16&255,s[c++]=r>>8&255,s[c++]=255&r;return 2===o?(r=Et[t.charCodeAt(n)]<<2|Et[t.charCodeAt(n+1)]>>4,s[c++]=255&r):1===o&&(r=Et[t.charCodeAt(n)]<<10|Et[t.charCodeAt(n+1)]<<4|Et[t.charCodeAt(n+2)]>>2,s[c++]=r>>8&255,s[c++]=255&r),s}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(In,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function kn(t,n,e,i){for(var r=0;r<i&&!(r+e>=n.length||r>=t.length);++r)n[r+e]=t[r];return r}function Mn(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function Tn(t,n,e,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",n&&(this.code=n),e&&(this.config=e),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}jt.inherits(Tn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:jt.toJSONObject(this.config),code:this.code,status:this.status}}});const $n=Tn.prototype,jn={};function _n(t){return jt.isPlainObject(t)||jt.isArray(t)}function En(t){return jt.endsWith(t,"[]")?t.slice(0,-2):t}function On(t,n,e){return t?t.concat(n).map((function(t,n){return t=En(t),!e&&n?"["+t+"]":t})).join(e?".":""):n}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{jn[t]={value:t}})),Object.defineProperties(Tn,jn),Object.defineProperty($n,"isAxiosError",{value:!0}),Tn.from=(t,n,e,i,r,o)=>{const s=Object.create($n);return jt.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),Tn.call(s,t.message,n,e,i,r),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const zn=jt.toFlatObject(jt,{},null,(function(t){return/^is[A-Z]/.test(t)}));function An(t,n,e){if(!jt.isObject(t))throw new TypeError("target must be an object");n=n||new FormData;const i=(e=jt.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,n){return!jt.isUndefined(n[t])}))).metaTokens,r=e.visitor||l,o=e.dots,s=e.indexes,a=(e.Blob||"undefined"!=typeof Blob&&Blob)&&jt.isSpecCompliantForm(n);if(!jt.isFunction(r))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(jt.isDate(t))return t.toISOString();if(!a&&jt.isBlob(t))throw new Tn("Blob is not supported. Use a Buffer instead.");return jt.isArrayBuffer(t)||jt.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Bt.from(t):t}function l(t,e,r){let a=t;if(t&&!r&&"object"==typeof t)if(jt.endsWith(e,"{}"))e=i?e:e.slice(0,-2),t=JSON.stringify(t);else if(jt.isArray(t)&&function(t){return jt.isArray(t)&&!t.some(_n)}(t)||(jt.isFileList(t)||jt.endsWith(e,"[]"))&&(a=jt.toArray(t)))return e=En(e),a.forEach((function(t,i){!jt.isUndefined(t)&&null!==t&&n.append(!0===s?On([e],i,o):null===s?e:e+"[]",c(t))})),!1;return!!_n(t)||(n.append(On(r,e,o),c(t)),!1)}const u=[],h=Object.assign(zn,{defaultVisitor:l,convertValue:c,isVisitable:_n});if(!jt.isObject(t))throw new TypeError("data must be an object");return function t(e,i){if(!jt.isUndefined(e)){if(-1!==u.indexOf(e))throw Error("Circular reference detected in "+i.join("."));u.push(e),jt.forEach(e,(function(e,o){!0===(!(jt.isUndefined(e)||null===e)&&r.call(n,e,jt.isString(o)?o.trim():o,i,h))&&t(e,i?i.concat(o):[o])})),u.pop()}}(t),n}function Rn(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return n[t]}))}function Nn(t,n){this.u=[],t&&An(t,this,n)}const Dn=Nn.prototype;function Pn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jn(t,n,e){if(!n)return t;const i=e&&e.encode||Pn,r=e&&e.serialize;let o;if(o=r?r(n,e):jt.isURLSearchParams(n)?n.toString():new Nn(n,e).toString(i),o){const n=t.indexOf("#");-1!==n&&(t=t.slice(0,n)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}Dn.append=function(t,n){this.u.push([t,n])},Dn.toString=function(t){const n=t?function(n){return t.call(this,n,Rn)}:Rn;return this.u.map((function(t){return n(t[0])+"="+n(t[1])}),"").join("&")};class Ln{constructor(){this.handlers=[]}use(t,n,e){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!e&&e.synchronous,runWhen:e?e.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){jt.forEach(this.handlers,(function(n){null!==n&&t(n)}))}}var qn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Un={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Nn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Bn="undefined"!=typeof document,Fn="object"==typeof navigator&&navigator||void 0,Wn=Bn&&(!Fn||["ReactNative","NativeScript","NS"].indexOf(Fn.product)<0),Hn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Yn=Bn&&window.location.href||"http://localhost";var Vn={...Object.freeze({__proto__:null,hasBrowserEnv:Bn,hasStandardBrowserEnv:Wn,hasStandardBrowserWebWorkerEnv:Hn,navigator:Fn,origin:Yn}),...Un};function Zn(t){function n(t,e,i,r){let o=t[r++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=r>=t.length;return o=!o&&jt.isArray(i)?i.length:o,a?(jt.hasOwnProp(i,o)?i[o]=[i[o],e]:i[o]=e,!s):(i[o]&&jt.isObject(i[o])||(i[o]=[]),n(t,e,i[o],r)&&jt.isArray(i[o])&&(i[o]=function(t){const n={},e=Object.keys(t);let i;const r=e.length;let o;for(i=0;i<r;i++)o=e[i],n[o]=t[o];return n}(i[o])),!s)}if(jt.isFormData(t)&&jt.isFunction(t.entries)){const e={};return jt.forEachEntry(t,((t,i)=>{n(function(t){return jt.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),i,e,0)})),e}return null}const Gn={transitional:qn,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const e=n.getContentType()||"",i=e.indexOf("application/json")>-1,r=jt.isObject(t);if(r&&jt.isHTMLForm(t)&&(t=new FormData(t)),jt.isFormData(t))return i?JSON.stringify(Zn(t)):t;if(jt.isArrayBuffer(t)||jt.isBuffer(t)||jt.isStream(t)||jt.isFile(t)||jt.isBlob(t)||jt.isReadableStream(t))return t;if(jt.isArrayBufferView(t))return t.buffer;if(jt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(r){if(e.indexOf("application/x-www-form-urlencoded")>-1)return function(t,n){return An(t,new Vn.classes.URLSearchParams,Object.assign({visitor:function(t,n,e,i){return Vn.isNode&&jt.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},n))}(t,this.formSerializer).toString();if((o=jt.isFileList(t))||e.indexOf("multipart/form-data")>-1){const n=this.env&&this.env.FormData;return An(o?{"files[]":t}:t,n&&new n,this.formSerializer)}}return r||i?(n.setContentType("application/json",!1),function(t){if(jt.isString(t))try{return(0,JSON.parse)(t),jt.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const n=this.transitional||Gn.transitional,e=n&&n.forcedJSONParsing,i="json"===this.responseType;if(jt.isResponse(t)||jt.isReadableStream(t))return t;if(t&&jt.isString(t)&&(e&&!this.responseType||i)){const e=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(t){if(e){if("SyntaxError"===t.name)throw Tn.from(t,Tn.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vn.classes.FormData,Blob:Vn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};jt.forEach(["delete","get","head","post","put","patch"],(t=>{Gn.headers[t]={}}));const Qn=jt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kn=Symbol("internals");function Xn(t){return t&&String(t).trim().toLowerCase()}function te(t){return!1===t||null==t?t:jt.isArray(t)?t.map(te):String(t)}function ne(t,n,e,i,r){return jt.isFunction(i)?i.call(this,n,e):(r&&(n=e),jt.isString(n)?jt.isString(i)?-1!==n.indexOf(i):jt.isRegExp(i)?i.test(n):void 0:void 0)}class ee{constructor(t){t&&this.set(t)}set(t,n,e){const i=this;function r(t,n,e){const r=Xn(n);if(!r)throw new Error("header name must be a non-empty string");const o=jt.findKey(i,r);(!o||void 0===i[o]||!0===e||void 0===e&&!1!==i[o])&&(i[o||n]=te(t))}const o=(t,n)=>jt.forEach(t,((t,e)=>r(t,e,n)));if(jt.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(jt.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))o((t=>{const n={};let e,i,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),e=t.substring(0,r).trim().toLowerCase(),i=t.substring(r+1).trim(),!e||n[e]&&Qn[e]||("set-cookie"===e?n[e]?n[e].push(i):n[e]=[i]:n[e]=n[e]?n[e]+", "+i:i)})),n})(t),n);else if(jt.isHeaders(t))for(const[n,i]of t.entries())r(i,n,e);else null!=t&&r(n,t,e);return this}get(t,n){if(t=Xn(t)){const e=jt.findKey(this,t);if(e){const t=this[e];if(!n)return t;if(!0===n)return function(t){const n=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(t);)n[i[1]]=i[2];return n}(t);if(jt.isFunction(n))return n.call(this,t,e);if(jt.isRegExp(n))return n.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Xn(t)){const e=jt.findKey(this,t);return!(!e||void 0===this[e]||n&&!ne(0,this[e],e,n))}return!1}delete(t,n){const e=this;let i=!1;function r(t){if(t=Xn(t)){const r=jt.findKey(e,t);!r||n&&!ne(0,e[r],r,n)||(delete e[r],i=!0)}}return jt.isArray(t)?t.forEach(r):r(t),i}clear(t){const n=Object.keys(this);let e=n.length,i=!1;for(;e--;){const r=n[e];t&&!ne(0,this[r],r,t,!0)||(delete this[r],i=!0)}return i}normalize(t){const n=this,e={};return jt.forEach(this,((i,r)=>{const o=jt.findKey(e,r);if(o)return n[o]=te(i),void delete n[r];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,n,e)=>n.toUpperCase()+e))}(r):String(r).trim();s!==r&&delete n[r],n[s]=te(i),e[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return jt.forEach(this,((e,i)=>{null!=e&&!1!==e&&(n[i]=t&&jt.isArray(e)?e.join(", "):e)})),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,n])=>t+": "+n)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const e=new this(t);return n.forEach((t=>e.set(t))),e}static accessor(t){const n=(this[Kn]=this[Kn]={accessors:{}}).accessors,e=this.prototype;function i(t){const i=Xn(t);n[i]||(function(t,n){const e=jt.toCamelCase(" "+n);["get","set","has"].forEach((i=>{Object.defineProperty(t,i+e,{value:function(t,e,r){return this[i].call(this,n,t,e,r)},configurable:!0})}))}(e,t),n[i]=!0)}return jt.isArray(t)?t.forEach(i):i(t),this}}function ie(t,n){const e=this||Gn,i=n||e,r=ee.from(i.headers);let o=i.data;return jt.forEach(t,(function(t){o=t.call(e,o,r.normalize(),n?n.status:void 0)})),r.normalize(),o}function re(t){return!(!t||!t.h)}function oe(t,n,e){Tn.call(this,null==t?"canceled":t,Tn.ERR_CANCELED,n,e),this.name="CanceledError"}function se(t,n,e){const i=e.config.validateStatus;e.status&&i&&!i(e.status)?n(new Tn("Request failed with status code "+e.status,[Tn.ERR_BAD_REQUEST,Tn.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e)):t(e)}ee.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),jt.reduceDescriptors(ee.prototype,(({value:t},n)=>{let e=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(t){this[e]=t}}})),jt.freezeMethods(ee),jt.inherits(oe,Tn,{h:!0});const ae=(t,n,e=3)=>{let i=0;const r=function(t,n){t=t||10;const e=new Array(t),i=new Array(t);let r,o=0,s=0;return n=void 0!==n?n:1e3,function(a){const c=Date.now(),l=i[s];r||(r=c),e[o]=a,i[o]=c;let u=s,h=0;for(;u!==o;)h+=e[u++],u%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),c-r<n)return;const f=l&&c-l;return f?Math.round(1e3*h/f):void 0}}(50,250);return function(t,n){let e,i,r=0,o=1e3/n;const s=(n,o=Date.now())=>{r=o,e=null,i&&(clearTimeout(i),i=null),t.apply(null,n)};return[(...t)=>{const n=Date.now(),a=n-r;a>=o?s(t,n):(e=t,i||(i=setTimeout((()=>{i=null,s(e)}),o-a)))},()=>e&&s(e)]}((e=>{const o=e.loaded,s=e.lengthComputable?e.total:void 0,a=o-i,c=r(a);i=o,t({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:e,lengthComputable:null!=s,[n?"download":"upload"]:!0})}),e)},ce=(t,n)=>{const e=null!=t;return[i=>n[0]({lengthComputable:e,total:t,loaded:i}),n[1]]},le=t=>(...n)=>jt.asap((()=>t(...n)));var ue=Vn.hasStandardBrowserEnv?function(){const t=Vn.navigator&&/(msie|trident)/i.test(Vn.navigator.userAgent),n=document.createElement("a");let e;function i(e){let i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){const n=jt.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},he=Vn.hasStandardBrowserEnv?{write(t,n,e,i,r,o){const s=[t+"="+encodeURIComponent(n)];jt.isNumber(e)&&s.push("expires="+new Date(e).toGMTString()),jt.isString(i)&&s.push("path="+i),jt.isString(r)&&s.push("domain="+r),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function fe(t,n){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)?function(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}(t,n):n}const de=t=>t instanceof ee?{...t}:t;function pe(t,n){n=n||{};const e={};function i(t,n,e){return jt.isPlainObject(t)&&jt.isPlainObject(n)?jt.merge.call({caseless:e},t,n):jt.isPlainObject(n)?jt.merge({},n):jt.isArray(n)?n.slice():n}function r(t,n,e){return jt.isUndefined(n)?jt.isUndefined(t)?void 0:i(void 0,t,e):i(t,n,e)}function o(t,n){if(!jt.isUndefined(n))return i(void 0,n)}function s(t,n){return jt.isUndefined(n)?jt.isUndefined(t)?void 0:i(void 0,t):i(void 0,n)}function a(e,r,o){return o in n?i(e,r):o in t?i(void 0,e):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,n)=>r(de(t),de(n),!0)};return jt.forEach(Object.keys(Object.assign({},t,n)),(function(i){const o=c[i]||r,s=o(t[i],n[i],i);jt.isUndefined(s)&&o!==a||(e[i]=s)})),e}var me=t=>{const n=pe({},t);let e,{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:c}=n;if(n.headers=a=ee.from(a),n.url=Jn(fe(n.baseURL,n.url),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),jt.isFormData(i))if(Vn.hasStandardBrowserEnv||Vn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(e=a.getContentType())){const[t,...n]=e?e.split(";").map((t=>t.trim())).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...n].join("; "))}if(Vn.hasStandardBrowserEnv&&(r&&jt.isFunction(r)&&(r=r(n)),r||!1!==r&&ue(n.url))){const t=o&&s&&he.read(s);t&&a.set(o,t)}return n},ge="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(n,e){const i=me(t);let r=i.data;const o=ee.from(i.headers).normalize();let s,a,c,l,u,{responseType:h,onUploadProgress:f,onDownloadProgress:d}=i;function p(){l&&l(),u&&u(),i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const i=ee.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());se((function(t){n(t),p()}),(function(t){e(t),p()}),{data:h&&"text"!==h&&"json"!==h?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:i,config:t,request:m}),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(e(new Tn("Request aborted",Tn.ECONNABORTED,t,m)),m=null)},m.onerror=function(){e(new Tn("Network Error",Tn.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let n=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||qn;i.timeoutErrorMessage&&(n=i.timeoutErrorMessage),e(new Tn(n,r.clarifyTimeoutError?Tn.ETIMEDOUT:Tn.ECONNABORTED,t,m)),m=null},void 0===r&&o.setContentType(null),"setRequestHeader"in m&&jt.forEach(o.toJSON(),(function(t,n){m.setRequestHeader(n,t)})),jt.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),h&&"json"!==h&&(m.responseType=i.responseType),d&&([c,u]=ae(d,!0),m.addEventListener("progress",c)),f&&m.upload&&([a,l]=ae(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(i.cancelToken||i.signal)&&(s=n=>{m&&(e(!n||n.type?new oe(null,t,m):n),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const v=function(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}(i.url);v&&-1===Vn.protocols.indexOf(v)?e(new Tn("Unsupported protocol "+v+":",Tn.ERR_BAD_REQUEST,t)):m.send(r||null)}))};const ve=(t,n)=>{const{length:e}=t=t?t.filter(Boolean):[];if(n||e){let e,i=new AbortController;const r=function(t){if(!e){e=!0,s();const n=t instanceof Error?t:this.reason;i.abort(n instanceof Tn?n:new oe(n instanceof Error?n.message:n))}};let o=n&&setTimeout((()=>{o=null,r(new Tn(`timeout ${n} of ms exceeded`,Tn.ETIMEDOUT))}),n);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(r):t.removeEventListener("abort",r)})),t=null)};t.forEach((t=>t.addEventListener("abort",r)));const{signal:a}=i;return a.unsubscribe=()=>jt.asap(s),a}},we=function*(t,n){let e=t.byteLength;if(e<n)return void(yield t);let i,r=0;for(;r<e;)i=r+n,yield t.slice(r,i),r=i},ye=(t,n,e,i)=>{const r=async function*(t,n){for await(const e of async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const n=t.getReader();try{for(;;){const{done:t,value:e}=await n.read();if(t)break;yield e}}finally{await n.cancel()}}(t))yield*we(e,n)}(t,n);let o,s=0,a=t=>{o||(o=!0,i&&i(t))};return new ReadableStream({async pull(t){try{const{done:n,value:i}=await r.next();if(n)return a(),void t.close();let o=i.byteLength;if(e){let t=s+=o;e(t)}t.enqueue(new Uint8Array(i))}catch(t){throw a(t),t}},cancel:t=>(a(t),r.return())},{highWaterMark:2})},be="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,xe=be&&"function"==typeof ReadableStream,Ie=be&&("function"==typeof TextEncoder?(t=>n=>t.encode(n))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Se=(t,...n)=>{try{return!!t(...n)}catch(t){return!1}},Ce=xe&&Se((()=>{let t=!1;const n=new Request(Vn.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!n})),ke=xe&&Se((()=>jt.isReadableStream(new Response("").body))),Me={stream:ke&&(t=>t.body)};var Te;be&&(Te=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Me[t]&&(Me[t]=jt.isFunction(Te[t])?n=>n[t]():(n,e)=>{throw new Tn(`Response type '${t}' is not supported`,Tn.ERR_NOT_SUPPORT,e)})})));const $e={http:null,xhr:ge,fetch:be&&(async t=>{let{url:n,method:e,data:i,signal:r,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:h="same-origin",fetchOptions:f}=me(t);l=l?(l+"").toLowerCase():"text";let d,p=ve([r,o&&o.toAbortSignal()],s);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(c&&Ce&&"get"!==e&&"head"!==e&&0!==(g=await(async(t,n)=>{const e=jt.toFiniteNumber(t.getContentLength());return null==e?(async t=>{if(null==t)return 0;if(jt.isBlob(t))return t.size;if(jt.isSpecCompliantForm(t)){const n=new Request(Vn.origin,{method:"POST",body:t});return(await n.arrayBuffer()).byteLength}return jt.isArrayBufferView(t)||jt.isArrayBuffer(t)?t.byteLength:(jt.isURLSearchParams(t)&&(t+=""),jt.isString(t)?(await Ie(t)).byteLength:void 0)})(n):e})(u,i))){let t,e=new Request(n,{method:"POST",body:i,duplex:"half"});if(jt.isFormData(i)&&(t=e.headers.get("content-type"))&&u.setContentType(t),e.body){const[t,n]=ce(g,ae(le(c)));i=ye(e.body,65536,t,n)}}jt.isString(h)||(h=h?"include":"omit");const r="credentials"in Request.prototype;d=new Request(n,{...f,signal:p,method:e.toUpperCase(),headers:u.normalize().toJSON(),body:i,duplex:"half",credentials:r?h:void 0});let o=await fetch(d);const s=ke&&("stream"===l||"response"===l);if(ke&&(a||s&&m)){const t={};["status","statusText","headers"].forEach((n=>{t[n]=o[n]}));const n=jt.toFiniteNumber(o.headers.get("content-length")),[e,i]=a&&ce(n,ae(le(a),!0))||[];o=new Response(ye(o.body,65536,e,(()=>{i&&i(),m&&m()})),t)}l=l||"text";let v=await Me[jt.findKey(Me,l)||"text"](o,t);return!s&&m&&m(),await new Promise(((n,e)=>{se(n,e,{data:v,headers:ee.from(o.headers),status:o.status,statusText:o.statusText,config:t,request:d})}))}catch(n){if(m&&m(),n&&"TypeError"===n.name&&/fetch/i.test(n.message))throw Object.assign(new Tn("Network Error",Tn.ERR_NETWORK,t,d),{cause:n.cause||n});throw Tn.from(n,n&&n.code,t,d)}})};jt.forEach($e,((t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch(t){}Object.defineProperty(t,"adapterName",{value:n})}}));const je=t=>`- ${t}`,_e=t=>jt.isFunction(t)||null===t||!1===t;var Ee=t=>{t=jt.isArray(t)?t:[t];const{length:n}=t;let e,i;const r={};for(let o=0;o<n;o++){let n;if(e=t[o],i=e,!_e(e)&&(i=$e[(n=String(e)).toLowerCase()],void 0===i))throw new Tn(`Unknown adapter '${n}'`);if(i)break;r[n||"#"+o]=i}if(!i){const t=Object.entries(r).map((([t,n])=>`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")));throw new Tn("There is no suitable adapter to dispatch the request "+(n?t.length>1?"since :\n"+t.map(je).join("\n"):" "+je(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function Oe(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new oe(null,t)}function ze(t){return Oe(t),t.headers=ee.from(t.headers),t.data=ie.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ee(t.adapter||Gn.adapter)(t).then((function(n){return Oe(t),n.data=ie.call(t,t.transformResponse,n),n.headers=ee.from(n.headers),n}),(function(n){return re(n)||(Oe(t),n&&n.response&&(n.response.data=ie.call(t,t.transformResponse,n.response),n.response.headers=ee.from(n.response.headers))),Promise.reject(n)}))}const Ae={};["object","boolean","number","function","string","symbol"].forEach(((t,n)=>{Ae[t]=function(e){return typeof e===t||"a"+(n<1?"n ":" ")+t}}));const Re={};Ae.transitional=function(t,n,e){function i(t,n){return"[Axios v1.7.7] Transitional option '"+t+"'"+n+(e?". "+e:"")}return(e,r,o)=>{if(!1===t)throw new Tn(i(r," has been removed"+(n?" in "+n:"")),Tn.ERR_DEPRECATED);return n&&!Re[r]&&(Re[r]=!0,console.warn(i(r," has been deprecated since v"+n+" and will be removed in the near future"))),!t||t(e,r,o)}};var Ne={assertOptions:function(t,n,e){if("object"!=typeof t)throw new Tn("options must be an object",Tn.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const o=i[r],s=n[o];if(s){const n=t[o],e=void 0===n||s(n,o,t);if(!0!==e)throw new Tn("option "+o+" must be "+e,Tn.ERR_BAD_OPTION_VALUE)}else if(!0!==e)throw new Tn("Unknown option "+o,Tn.ERR_BAD_OPTION)}},validators:Ae};const De=Ne.validators;class Pe{constructor(t){this.defaults=t,this.interceptors={request:new Ln,response:new Ln}}async request(t,n){try{return await this.m(t,n)}catch(t){if(t instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;const e=n.stack?n.stack.replace(/^.+\n/,""):"";try{t.stack?e&&!String(t.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+e):t.stack=e}catch(t){}}throw t}}m(t,n){"string"==typeof t?(n=n||{}).url=t:n=t||{},n=pe(this.defaults,n);const{transitional:e,paramsSerializer:i,headers:r}=n;void 0!==e&&Ne.assertOptions(e,{silentJSONParsing:De.transitional(De.boolean),forcedJSONParsing:De.transitional(De.boolean),clarifyTimeoutError:De.transitional(De.boolean)},!1),null!=i&&(jt.isFunction(i)?n.paramsSerializer={serialize:i}:Ne.assertOptions(i,{encode:De.function,serialize:De.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=r&&jt.merge(r.common,r[n.method]);r&&jt.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete r[t]})),n.headers=ee.concat(o,r);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(n)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let u,h=0;if(!a){const t=[ze.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,c),u=t.length,l=Promise.resolve(n);h<u;)l=l.then(t[h++],t[h++]);return l}u=s.length;let f=n;for(h=0;h<u;){const t=s[h++],n=s[h++];try{f=t(f)}catch(t){n.call(this,t);break}}try{l=ze.call(this,f)}catch(t){return Promise.reject(t)}for(h=0,u=c.length;h<u;)l=l.then(c[h++],c[h++]);return l}getUri(t){return Jn(fe((t=pe(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}jt.forEach(["delete","get","head","options"],(function(t){Pe.prototype[t]=function(n,e){return this.request(pe(e||{},{method:t,url:n,data:(e||{}).data}))}})),jt.forEach(["post","put","patch"],(function(t){function n(n){return function(e,i,r){return this.request(pe(r||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:e,data:i}))}}Pe.prototype[t]=n(),Pe.prototype[t+"Form"]=n(!0)}));class Je{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let n;this.promise=new Promise((function(t){n=t}));const e=this;this.promise.then((t=>{if(!e.v)return;let n=e.v.length;for(;n-- >0;)e.v[n](t);e.v=null})),this.promise.then=t=>{let n;const i=new Promise((t=>{e.subscribe(t),n=t})).then(t);return i.cancel=function(){e.unsubscribe(n)},i},t((function(t,i,r){e.reason||(e.reason=new oe(t,i,r),n(e.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this.v?this.v.push(t):this.v=[t]}unsubscribe(t){if(!this.v)return;const n=this.v.indexOf(t);-1!==n&&this.v.splice(n,1)}toAbortSignal(){const t=new AbortController,n=n=>{t.abort(n)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Je((function(n){t=n})),cancel:t}}}const Le={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Le).forEach((([t,n])=>{Le[n]=t}));const qe=function t(n){const e=new Pe(n),i=J(Pe.prototype.request,e);return jt.extend(i,Pe.prototype,e,{allOwnKeys:!0}),jt.extend(i,e,null,{allOwnKeys:!0}),i.create=function(e){return t(pe(n,e))},i}(Gn);qe.Axios=Pe,qe.CanceledError=oe,qe.CancelToken=Je,qe.isCancel=re,qe.VERSION="1.7.7",qe.toFormData=An,qe.AxiosError=Tn,qe.Cancel=qe.CanceledError,qe.all=function(t){return Promise.all(t)},qe.spread=function(t){return function(n){return t.apply(null,n)}},qe.isAxiosError=function(t){return jt.isObject(t)&&!0===t.isAxiosError},qe.mergeConfig=pe,qe.AxiosHeaders=ee,qe.formToJSON=t=>Zn(jt.isHTMLForm(t)?new FormData(t):t),qe.getAdapter=Ee,qe.HttpStatusCode=Le,qe.default=qe;const Ue={[r.ADD_TO_CART_FROM_DETAILS]:{required:["add","cart"],optional:["details","detail","single","profile","page","pdp"]},[r.BUY_NOW]:{required:["buy","now"]},[r.EXPAND_PRODUCT]:{required:["product"],optional:["details","expand","modal","popup","quickview","view"]},[r.ADD_TO_WISHLIST]:{required:["add","wishlist"]},[r.REMOVE_FROM_CART]:{required:["remove","cart"]},[r.PURCHASE]:{required:["purchase"]},[r.ADD_TO_CART]:{required:["add","cart"]}};function Be(t,n){return new RegExp(`^${n}s?$|${n}s?\\W|\\W${n}s?$|\\W${n}s?\\W`).test(` ${t} `)}function Fe(t,n,e){return!!n.every((n=>t.some((t=>Be(t,n)))))&&(!(null==e?void 0:e.length)||e.some((n=>t.some((t=>Be(t,n))))))}class We{static getInstance(t,n){this.instances.has(t)||this.instances.set(t,n());const e=this.instances.get(t);if(!e)throw new Error(`Instance for class ${t} could not be created.`);return e}}We.instances=new Map;class He{static getInstance(){return We.getInstance("ObjectHelper",(()=>new He))}merge(t,...n){for(const e of n)this.mergeValue(t,e);return t}values(t){return Object.values(t)}includes(t,n){return n in t}valuesIncludes(t,n){return Object.values(t).includes(n)}hasAllValues(t,n){const e=Object.keys(t);return n.every((t=>e.includes(t)))}isArray(t){return"[object Array]"===Object.prototype.toString.call(t)}mergeValue(t,n){var e;return this.isArray(n)?this.mergeArrayValues(t,n):"object"==typeof n?this.mergeObjectValues(t,n):null!==(e=null!=n?n:t)&&void 0!==e?e:void 0}mergeArrayValues(t,n){if(!this.isArray(t))return[...n];const e=t;for(let t=0,i=n.length;t<i;t++)e[t]=this.mergeValue(e[t],n[t]);return e}mergeObjectValues(t,n){return t&&"object"==typeof t?(this.innerMerge(t,n),t):n?{...n}:n}innerMerge(t,n){for(const e of Object.keys(n))t[e]=this.mergeValue(t[e],n[e])}}function Ye(t,n){const e=[],i=new Set(["gtin","gtin8","gtin12","gtin13","gtin14","mpn","sku","upc","ean","isbn","isbn10","isbn13","asin","coupon","barcode","product_code","part_number","model_number","item_variant","item_number","article_number","reference","groupingId"].map((t=>t.toLowerCase()))),r=(t,n)=>{if(null!=t)if(n&&(t=>{const n=t.toLowerCase();return n.endsWith("id")||i.has(n)})(n))Array.isArray(t)?e.push(...t.filter((t=>"string"==typeof t||"number"==typeof t))):"string"!=typeof t&&"number"!=typeof t||e.push(t);else if(Array.isArray(t))t.forEach((t=>r(t)));else if("object"==typeof t)for(const[n,e]of Object.entries(t))r(e,n)};return r(t),e}async function Ve({event:t,eventUrl:n}){var e;try{if(!(null===(e=null===navigator||void 0===navigator?void 0:navigator.sendBeacon)||void 0===e?void 0:e.call(navigator,n))&&!await async function(t){try{const n=Promise.race([fetch(t,{method:"POST",keepalive:!0}),new Promise(((t,n)=>setTimeout((()=>n(new Error("Request timeout"))),2e3)))]);return(await n).ok}catch(t){return!1}}(n))return;if(t===r.CLICK){const t=function(t){try{const n=new URL(t).searchParams.get("e");return n&&JSON.parse(atob(n)).ur||null}catch(t){return null}}(n);t&&(window.location.href=t)}}catch(t){}}function Ze(t){const n=1+.35*(Math.sqrt(t)-1);return Math.max(.35,Math.min(1.5,n))}class Ge{static initialize(t=Math.floor(1024*Math.random())){if(t<0||t>=1<<this.nodeBits)throw new Error("Node ID must be between 0 and "+((1<<this.nodeBits)-1));this.nodeId=t}static toBase32(t,n){let e="";for(;t>0;)e=this.base32Chars[Number(t%BigInt(32))]+e,t/=32n;return e.padStart(n,"0")}static getSecureRandom(){if("undefined"!=typeof crypto){const t=new Uint32Array(1);return crypto.getRandomValues(t),t[0]}return Math.floor(4294967295*Math.random())}static waitNextMillis(t){let n=Date.now();for(;n<=t;)n=Date.now();return n}static generate(){void 0===this.nodeId&&this.initialize();let t=Date.now()-this.epoch;if(t<this.lastTimestamp)throw new Error("Clock moved backwards. Refusing to generate ID.");t===this.lastTimestamp?(this.sequence=this.sequence+1&(1<<this.sequenceBits)-1,0===this.sequence&&(t=this.waitNextMillis(this.lastTimestamp))):this.sequence=0,this.lastTimestamp=t;const n=65535&this.getSecureRandom();return`${this.toBase32(BigInt(t),10)}${this.toBase32(BigInt(this.sequence),4)}${this.toBase32(BigInt(this.nodeId),5)}${this.toBase32(BigInt(n),4)}`}static isValid(t){if(!/^[0-9A-HJ-NP-Z]{23}$/.test(t))return!1;try{const n=t.slice(0,10),e=this.decodeBase32(n),i=Date.now()-this.epoch;return e>=0&&e<=i}catch(t){return!1}}static decodeBase32(t){let n=0;for(const e of t)n=32*n+this.base32Chars.indexOf(e);return n}static getTimestamp(t){if(!this.isValid(t))throw new Error("Invalid ID format");const n=t.slice(0,10),e=this.decodeBase32(n);return new Date(e+this.epoch)}}Ge.epoch=15778368e5,Ge.nodeBits=10,Ge.sequenceBits=12,Ge.lastTimestamp=-1,Ge.sequence=0,Ge.base32Chars="0123456789ABCDEFGHJKMNPQRSTVWXYZ";var Qe="undefined"!=typeof globalThis?globalThis:window;function Ke(t){if(t.I)return t;var n=t.default;if("function"==typeof n){var e=function t(){return this instanceof t?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};e.prototype=n.prototype}else e={};return Object.defineProperty(e,"I",{value:!0}),Object.keys(t).forEach((function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})})),e}var Xe,ti={exports:{}},ni={exports:{}},ei=Ke(Object.freeze({__proto__:null,default:{}}));function ii(){return Xe||(Xe=1,function(t){var n;t.exports=(n=n||function(t){var n;if(window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==Qe&&Qe.crypto&&(n=Qe.crypto),!n)try{n=ei}catch(t){}var e=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(n){var e;return t.prototype=n,e=new t,t.prototype=null,e}}(),r={},o=r.lib={},s=o.Base={extend:function(t){var n=i(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=o.WordArray=s.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=null!=n?n:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var n=this.words,e=t.words,i=this.sigBytes,r=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var s=e[o>>>2]>>>24-o%4*8&255;n[i+o>>>2]|=s<<24-(i+o)%4*8}else for(var a=0;a<r;a+=4)n[i+a>>>2]=e[a>>>2];return this.sigBytes+=r,this},clamp:function(){var n=this.words,e=this.sigBytes;n[e>>>2]&=4294967295<<32-e%4*8,n.length=t.ceil(e/4)},clone:function(){var t=s.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],i=0;i<t;i+=4)n.push(e());return new a.init(n,t)}}),c=r.enc={},l=c.Hex={stringify:function(t){for(var n=t.words,e=t.sigBytes,i=[],r=0;r<e;r++){var o=n[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var n=t.length,e=[],i=0;i<n;i+=2)e[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new a.init(e,n/2)}},u=c.Latin1={stringify:function(t){for(var n=t.words,e=t.sigBytes,i=[],r=0;r<e;r++){var o=n[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var n=t.length,e=[],i=0;i<n;i++)e[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new a.init(e,n)}},h=c.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},f=o.BufferedBlockAlgorithm=s.extend({reset:function(){this.S=new a.init,this.C=0},M:function(t){"string"==typeof t&&(t=h.parse(t)),this.S.concat(t),this.C+=t.sigBytes},T:function(n){var e,i=this.S,r=i.words,o=i.sigBytes,s=this.blockSize,c=o/(4*s),l=(c=n?t.ceil(c):t.max((0|c)-this.$,0))*s,u=t.min(4*l,o);if(l){for(var h=0;h<l;h+=s)this.j(r,h);e=r.splice(0,l),i.sigBytes-=u}return new a.init(e,u)},clone:function(){var t=s.clone.call(this);return t.S=this.S.clone(),t},$:0});o.Hasher=f.extend({cfg:s.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){f.reset.call(this),this._()},update:function(t){return this.M(t),this.T(),this},finalize:function(t){return t&&this.M(t),this.O()},blockSize:16,A:function(t){return function(n,e){return new t.init(e).finalize(n)}},R:function(t){return function(n,e){return new d.HMAC.init(t,e).finalize(n)}}});var d=r.algo={};return r}(Math),n)}(ni)),ni.exports}var ri,oi={exports:{}};function si(){return ri||(ri=1,function(t){var n,e,i,r,o,s;t.exports=(e=(n=s=ii()).lib,i=e.Base,r=e.WordArray,(o=n.x64={}).Word=i.extend({init:function(t,n){this.high=t,this.low=n}}),o.WordArray=i.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=null!=n?n:8*t.length},toX32:function(){for(var t=this.words,n=t.length,e=[],i=0;i<n;i++){var o=t[i];e.push(o.high),e.push(o.low)}return r.create(e,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),n=t.words=this.words.slice(0),e=n.length,r=0;r<e;r++)n[r]=n[r].clone();return t}}),s)}(oi)),oi.exports}var ai,ci,li,ui={exports:{}},hi={exports:{}},fi={exports:{}};function di(){return li||(li=1,function(t){var n,e,i;t.exports=(n=ii(),i=(e=n).lib.WordArray,e.enc.Base64={stringify:function(t){var n=t.words,e=t.sigBytes,i=this.N;t.clamp();for(var r=[],o=0;o<e;o+=3)for(var s=(n[o>>>2]>>>24-o%4*8&255)<<16|(n[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|n[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<e;a++)r.push(i.charAt(s>>>6*(3-a)&63));var c=i.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(t){var n=t.length,e=this.N,r=this.D;if(!r){r=this.D=[];for(var o=0;o<e.length;o++)r[e.charCodeAt(o)]=o}var s=e.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(n=a)}return function(t,n,e){for(var r=[],o=0,s=0;s<n;s++)if(s%4){var a=e[t.charCodeAt(s-1)]<<s%4*2|e[t.charCodeAt(s)]>>>6-s%4*2;r[o>>>2]|=a<<24-o%4*8,o++}return i.create(r,o)}(t,n,r)},N:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}(fi)),fi.exports}var pi,mi={exports:{}};var gi,vi={exports:{}};function wi(){return gi||(gi=1,function(t){var n;t.exports=(n=ii(),function(t){var e=n,i=e.lib,r=i.WordArray,o=i.Hasher,s=e.algo,a=[];!function(){for(var n=0;n<64;n++)a[n]=4294967296*t.abs(t.sin(n+1))|0}();var c=s.MD5=o.extend({_:function(){this.P=new r.init([1732584193,4023233417,2562383102,271733878])},j:function(t,n){for(var e=0;e<16;e++){var i=n+e,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this.P.words,s=t[n+0],c=t[n+1],d=t[n+2],p=t[n+3],m=t[n+4],g=t[n+5],v=t[n+6],w=t[n+7],y=t[n+8],b=t[n+9],x=t[n+10],I=t[n+11],S=t[n+12],C=t[n+13],k=t[n+14],M=t[n+15],T=o[0],$=o[1],j=o[2],_=o[3];T=l(T,$,j,_,s,7,a[0]),_=l(_,T,$,j,c,12,a[1]),j=l(j,_,T,$,d,17,a[2]),$=l($,j,_,T,p,22,a[3]),T=l(T,$,j,_,m,7,a[4]),_=l(_,T,$,j,g,12,a[5]),j=l(j,_,T,$,v,17,a[6]),$=l($,j,_,T,w,22,a[7]),T=l(T,$,j,_,y,7,a[8]),_=l(_,T,$,j,b,12,a[9]),j=l(j,_,T,$,x,17,a[10]),$=l($,j,_,T,I,22,a[11]),T=l(T,$,j,_,S,7,a[12]),_=l(_,T,$,j,C,12,a[13]),j=l(j,_,T,$,k,17,a[14]),T=u(T,$=l($,j,_,T,M,22,a[15]),j,_,c,5,a[16]),_=u(_,T,$,j,v,9,a[17]),j=u(j,_,T,$,I,14,a[18]),$=u($,j,_,T,s,20,a[19]),T=u(T,$,j,_,g,5,a[20]),_=u(_,T,$,j,x,9,a[21]),j=u(j,_,T,$,M,14,a[22]),$=u($,j,_,T,m,20,a[23]),T=u(T,$,j,_,b,5,a[24]),_=u(_,T,$,j,k,9,a[25]),j=u(j,_,T,$,p,14,a[26]),$=u($,j,_,T,y,20,a[27]),T=u(T,$,j,_,C,5,a[28]),_=u(_,T,$,j,d,9,a[29]),j=u(j,_,T,$,w,14,a[30]),T=h(T,$=u($,j,_,T,S,20,a[31]),j,_,g,4,a[32]),_=h(_,T,$,j,y,11,a[33]),j=h(j,_,T,$,I,16,a[34]),$=h($,j,_,T,k,23,a[35]),T=h(T,$,j,_,c,4,a[36]),_=h(_,T,$,j,m,11,a[37]),j=h(j,_,T,$,w,16,a[38]),$=h($,j,_,T,x,23,a[39]),T=h(T,$,j,_,C,4,a[40]),_=h(_,T,$,j,s,11,a[41]),j=h(j,_,T,$,p,16,a[42]),$=h($,j,_,T,v,23,a[43]),T=h(T,$,j,_,b,4,a[44]),_=h(_,T,$,j,S,11,a[45]),j=h(j,_,T,$,M,16,a[46]),T=f(T,$=h($,j,_,T,d,23,a[47]),j,_,s,6,a[48]),_=f(_,T,$,j,w,10,a[49]),j=f(j,_,T,$,k,15,a[50]),$=f($,j,_,T,g,21,a[51]),T=f(T,$,j,_,S,6,a[52]),_=f(_,T,$,j,p,10,a[53]),j=f(j,_,T,$,x,15,a[54]),$=f($,j,_,T,c,21,a[55]),T=f(T,$,j,_,y,6,a[56]),_=f(_,T,$,j,M,10,a[57]),j=f(j,_,T,$,v,15,a[58]),$=f($,j,_,T,C,21,a[59]),T=f(T,$,j,_,m,6,a[60]),_=f(_,T,$,j,I,10,a[61]),j=f(j,_,T,$,d,15,a[62]),$=f($,j,_,T,b,21,a[63]),o[0]=o[0]+T|0,o[1]=o[1]+$|0,o[2]=o[2]+j|0,o[3]=o[3]+_|0},O:function(){var n=this.S,e=n.words,i=8*this.C,r=8*n.sigBytes;e[r>>>5]|=128<<24-r%32;var o=t.floor(i/4294967296),s=i;e[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e[14+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n.sigBytes=4*(e.length+1),this.T();for(var a=this.P,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var t=o.clone.call(this);return t.P=this.P.clone(),t}});function l(t,n,e,i,r,o,s){var a=t+(n&e|~n&i)+r+s;return(a<<o|a>>>32-o)+n}function u(t,n,e,i,r,o,s){var a=t+(n&i|e&~i)+r+s;return(a<<o|a>>>32-o)+n}function h(t,n,e,i,r,o,s){var a=t+(n^e^i)+r+s;return(a<<o|a>>>32-o)+n}function f(t,n,e,i,r,o,s){var a=t+(e^(n|~i))+r+s;return(a<<o|a>>>32-o)+n}e.MD5=o.A(c),e.HmacMD5=o.R(c)}(Math),n.MD5)}(vi)),vi.exports}var yi,bi={exports:{}};function xi(){return yi||(yi=1,function(t){var n,e,i,r,o,s,a,c;t.exports=(e=(n=c=ii()).lib,i=e.WordArray,r=e.Hasher,o=n.algo,s=[],a=o.SHA1=r.extend({_:function(){this.P=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},j:function(t,n){for(var e=this.P.words,i=e[0],r=e[1],o=e[2],a=e[3],c=e[4],l=0;l<80;l++){if(l<16)s[l]=0|t[n+l];else{var u=s[l-3]^s[l-8]^s[l-14]^s[l-16];s[l]=u<<1|u>>>31}var h=(i<<5|i>>>27)+c+s[l];h+=l<20?1518500249+(r&o|~r&a):l<40?1859775393+(r^o^a):l<60?(r&o|r&a|o&a)-1894007588:(r^o^a)-899497514,c=a,a=o,o=r<<30|r>>>2,r=i,i=h}e[0]=e[0]+i|0,e[1]=e[1]+r|0,e[2]=e[2]+o|0,e[3]=e[3]+a|0,e[4]=e[4]+c|0},O:function(){var t=this.S,n=t.words,e=8*this.C,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=Math.floor(e/4294967296),n[15+(i+64>>>9<<4)]=e,t.sigBytes=4*n.length,this.T(),this.P},clone:function(){var t=r.clone.call(this);return t.P=this.P.clone(),t}}),n.SHA1=r.A(a),n.HmacSHA1=r.R(a),c.SHA1)}(bi)),bi.exports}var Ii,Si={exports:{}};function Ci(){return Ii||(Ii=1,function(t){var n;t.exports=(n=ii(),function(t){var e=n,i=e.lib,r=i.WordArray,o=i.Hasher,s=e.algo,a=[],c=[];!function(){function n(n){for(var e=t.sqrt(n),i=2;i<=e;i++)if(!(n%i))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var i=2,r=0;r<64;)n(i)&&(r<8&&(a[r]=e(t.pow(i,.5))),c[r]=e(t.pow(i,1/3)),r++),i++}();var l=[],u=s.SHA256=o.extend({_:function(){this.P=new r.init(a.slice(0))},j:function(t,n){for(var e=this.P.words,i=e[0],r=e[1],o=e[2],s=e[3],a=e[4],u=e[5],h=e[6],f=e[7],d=0;d<64;d++){if(d<16)l[d]=0|t[n+d];else{var p=l[d-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=l[d-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[d]=m+l[d-7]+v+l[d-16]}var w=i&r^i&o^r&o,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),b=f+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&h)+c[d]+l[d];f=h,h=u,u=a,a=s+b|0,s=o,o=r,r=i,i=b+(y+w)|0}e[0]=e[0]+i|0,e[1]=e[1]+r|0,e[2]=e[2]+o|0,e[3]=e[3]+s|0,e[4]=e[4]+a|0,e[5]=e[5]+u|0,e[6]=e[6]+h|0,e[7]=e[7]+f|0},O:function(){var n=this.S,e=n.words,i=8*this.C,r=8*n.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=t.floor(i/4294967296),e[15+(r+64>>>9<<4)]=i,n.sigBytes=4*e.length,this.T(),this.P},clone:function(){var t=o.clone.call(this);return t.P=this.P.clone(),t}});e.SHA256=o.A(u),e.HmacSHA256=o.R(u)}(Math),n.SHA256)}(Si)),Si.exports}var ki,Mi,Ti={exports:{}},$i={exports:{}};function ji(){return Mi||(Mi=1,function(t){var n;t.exports=(n=ii(),si(),function(){var t=n,e=t.lib.Hasher,i=t.x64,r=i.Word,o=i.WordArray,s=t.algo;function a(){return r.create.apply(r,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=a()}();var u=s.SHA512=e.extend({_:function(){this.P=new o.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},j:function(t,n){for(var e=this.P.words,i=e[0],r=e[1],o=e[2],s=e[3],a=e[4],u=e[5],h=e[6],f=e[7],d=i.high,p=i.low,m=r.high,g=r.low,v=o.high,w=o.low,y=s.high,b=s.low,x=a.high,I=a.low,S=u.high,C=u.low,k=h.high,M=h.low,T=f.high,$=f.low,j=d,_=p,E=m,O=g,z=v,A=w,R=y,N=b,D=x,P=I,J=S,L=C,q=k,U=M,B=T,F=$,W=0;W<80;W++){var H,Y,V=l[W];if(W<16)Y=V.high=0|t[n+2*W],H=V.low=0|t[n+2*W+1];else{var Z=l[W-15],G=Z.high,Q=Z.low,K=(G>>>1|Q<<31)^(G>>>8|Q<<24)^G>>>7,X=(Q>>>1|G<<31)^(Q>>>8|G<<24)^(Q>>>7|G<<25),tt=l[W-2],nt=tt.high,et=tt.low,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^nt>>>6,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^(et>>>6|nt<<26),ot=l[W-7],st=ot.high,at=ot.low,ct=l[W-16],lt=ct.high,ut=ct.low;Y=(Y=(Y=K+st+((H=X+at)>>>0<X>>>0?1:0))+it+((H+=rt)>>>0<rt>>>0?1:0))+lt+((H+=ut)>>>0<ut>>>0?1:0),V.high=Y,V.low=H}var ht,ft=D&J^~D&q,dt=P&L^~P&U,pt=j&E^j&z^E&z,mt=_&O^_&A^O&A,gt=(j>>>28|_<<4)^(j<<30|_>>>2)^(j<<25|_>>>7),vt=(_>>>28|j<<4)^(_<<30|j>>>2)^(_<<25|j>>>7),wt=(D>>>14|P<<18)^(D>>>18|P<<14)^(D<<23|P>>>9),yt=(P>>>14|D<<18)^(P>>>18|D<<14)^(P<<23|D>>>9),bt=c[W],xt=bt.high,It=bt.low,St=B+wt+((ht=F+yt)>>>0<F>>>0?1:0),Ct=vt+mt;B=q,F=U,q=J,U=L,J=D,L=P,D=R+(St=(St=(St=St+ft+((ht+=dt)>>>0<dt>>>0?1:0))+xt+((ht+=It)>>>0<It>>>0?1:0))+Y+((ht+=H)>>>0<H>>>0?1:0))+((P=N+ht|0)>>>0<N>>>0?1:0)|0,R=z,N=A,z=E,A=O,E=j,O=_,j=St+(gt+pt+(Ct>>>0<vt>>>0?1:0))+((_=ht+Ct|0)>>>0<ht>>>0?1:0)|0}p=i.low=p+_,i.high=d+j+(p>>>0<_>>>0?1:0),g=r.low=g+O,r.high=m+E+(g>>>0<O>>>0?1:0),w=o.low=w+A,o.high=v+z+(w>>>0<A>>>0?1:0),b=s.low=b+N,s.high=y+R+(b>>>0<N>>>0?1:0),I=a.low=I+P,a.high=x+D+(I>>>0<P>>>0?1:0),C=u.low=C+L,u.high=S+J+(C>>>0<L>>>0?1:0),M=h.low=M+U,h.high=k+q+(M>>>0<U>>>0?1:0),$=f.low=$+F,f.high=T+B+($>>>0<F>>>0?1:0)},O:function(){var t=this.S,n=t.words,e=8*this.C,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[30+(i+128>>>10<<5)]=Math.floor(e/4294967296),n[31+(i+128>>>10<<5)]=e,t.sigBytes=4*n.length,this.T(),this.P.toX32()},clone:function(){var t=e.clone.call(this);return t.P=this.P.clone(),t},blockSize:32});t.SHA512=e.A(u),t.HmacSHA512=e.R(u)}(),n.SHA512)}($i)),$i.exports}var _i,Ei,Oi,zi,Ai={exports:{}},Ri={exports:{}},Ni={exports:{}},Di={exports:{}};function Pi(){return zi||(zi=1,function(t){var n,e,i;t.exports=(e=(n=ii()).lib.Base,i=n.enc.Utf8,void(n.algo.HMAC=e.extend({init:function(t,n){t=this.J=new t.init,"string"==typeof n&&(n=i.parse(n));var e=t.blockSize,r=4*e;n.sigBytes>r&&(n=t.finalize(n)),n.clamp();for(var o=this.L=n.clone(),s=this.U=n.clone(),a=o.words,c=s.words,l=0;l<e;l++)a[l]^=1549556828,c[l]^=909522486;o.sigBytes=s.sigBytes=r,this.reset()},reset:function(){var t=this.J;t.reset(),t.update(this.U)},update:function(t){return this.J.update(t),this},finalize:function(t){var n=this.J,e=n.finalize(t);return n.reset(),n.finalize(this.L.clone().concat(e))}})))}(Di)),Di.exports}var Ji,Li,qi={exports:{}},Ui={exports:{}};function Bi(){return Li||(Li=1,function(t){var n,e,i,r,o,s,a,c;t.exports=(c=ii(),xi(),Pi(),i=(e=(n=c).lib).Base,r=e.WordArray,s=(o=n.algo).MD5,a=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,n){for(var e,i=this.cfg,o=i.hasher.create(),s=r.create(),a=s.words,c=i.keySize,l=i.iterations;a.length<c;){e&&o.update(e),e=o.update(t).finalize(n),o.reset();for(var u=1;u<l;u++)e=o.finalize(e),o.reset();s.concat(e)}return s.sigBytes=4*c,s}}),n.EvpKDF=function(t,n,e){return a.create(e).compute(t,n)},c.EvpKDF)}(Ui)),Ui.exports}var Fi,Wi={exports:{}};function Hi(){return Fi||(Fi=1,function(t){var n;t.exports=(n=ii(),Bi(),void(n.lib.Cipher||function(){var t=n,e=t.lib,i=e.Base,r=e.WordArray,o=e.BufferedBlockAlgorithm,s=t.enc;s.Utf8;var a=s.Base64,c=t.algo.EvpKDF,l=e.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(t,n){return this.create(this.B,t,n)},createDecryptor:function(t,n){return this.create(this.F,t,n)},init:function(t,n,e){this.cfg=this.cfg.extend(e),this.W=t,this.H=n,this.reset()},reset:function(){o.reset.call(this),this._()},process:function(t){return this.M(t),this.T()},finalize:function(t){return t&&this.M(t),this.O()},keySize:4,ivSize:4,B:1,F:2,A:function(){function t(t){return"string"==typeof t?w:g}return function(n){return{encrypt:function(e,i,r){return t(i).encrypt(n,e,i,r)},decrypt:function(e,i,r){return t(i).decrypt(n,e,i,r)}}}}()});e.StreamCipher=l.extend({O:function(){return this.T(!0)},blockSize:1});var u=t.mode={},h=e.BlockCipherMode=i.extend({createEncryptor:function(t,n){return this.Encryptor.create(t,n)},createDecryptor:function(t,n){return this.Decryptor.create(t,n)},init:function(t,n){this.Y=t,this.V=n}}),f=u.CBC=function(){var t=h.extend();function n(t,n,e){var i,r=this.V;r?(i=r,this.V=void 0):i=this.Z;for(var o=0;o<e;o++)t[n+o]^=i[o]}return t.Encryptor=t.extend({processBlock:function(t,e){var i=this.Y,r=i.blockSize;n.call(this,t,e,r),i.encryptBlock(t,e),this.Z=t.slice(e,e+r)}}),t.Decryptor=t.extend({processBlock:function(t,e){var i=this.Y,r=i.blockSize,o=t.slice(e,e+r);i.decryptBlock(t,e),n.call(this,t,e,r),this.Z=o}}),t}(),d=(t.pad={}).Pkcs7={pad:function(t,n){for(var e=4*n,i=e-t.sigBytes%e,o=i<<24|i<<16|i<<8|i,s=[],a=0;a<i;a+=4)s.push(o);var c=r.create(s,i);t.concat(c)},unpad:function(t){var n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}};e.BlockCipher=l.extend({cfg:l.cfg.extend({mode:f,padding:d}),reset:function(){var t;l.reset.call(this);var n=this.cfg,e=n.iv,i=n.mode;this.W==this.B?t=i.createEncryptor:(t=i.createDecryptor,this.$=1),this.G&&this.G.K==t?this.G.init(this,e&&e.words):(this.G=t.call(i,this,e&&e.words),this.G.K=t)},j:function(t,n){this.G.processBlock(t,n)},O:function(){var t,n=this.cfg.padding;return this.W==this.B?(n.pad(this.S,this.blockSize),t=this.T(!0)):(t=this.T(!0),n.unpad(t)),t},blockSize:4});var p=e.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),m=(t.format={}).OpenSSL={stringify:function(t){var n=t.ciphertext,e=t.salt;return(e?r.create([1398893684,1701076831]).concat(e).concat(n):n).toString(a)},parse:function(t){var n,e=a.parse(t),i=e.words;return 1398893684==i[0]&&1701076831==i[1]&&(n=r.create(i.slice(2,4)),i.splice(0,4),e.sigBytes-=16),p.create({ciphertext:e,salt:n})}},g=e.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(t,n,e,i){i=this.cfg.extend(i);var r=t.createEncryptor(e,i),o=r.finalize(n),s=r.cfg;return p.create({ciphertext:o,key:e,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,n,e,i){return i=this.cfg.extend(i),n=this.X(n,i.format),t.createDecryptor(e,i).finalize(n.ciphertext)},X:function(t,n){return"string"==typeof t?n.parse(t,this):t}}),v=(t.kdf={}).OpenSSL={execute:function(t,n,e,i,o){if(i||(i=r.random(8)),o)s=c.create({keySize:n+e,hasher:o}).compute(t,i);else var s=c.create({keySize:n+e}).compute(t,i);var a=r.create(s.words.slice(n),4*e);return s.sigBytes=4*n,p.create({key:s,iv:a,salt:i})}},w=e.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:v}),encrypt:function(t,n,e,i){var r=(i=this.cfg.extend(i)).kdf.execute(e,t.keySize,t.ivSize,i.salt,i.hasher);i.iv=r.iv;var o=g.encrypt.call(this,t,n,r.key,i);return o.mixIn(r),o},decrypt:function(t,n,e,i){i=this.cfg.extend(i),n=this.X(n,i.format);var r=i.kdf.execute(e,t.keySize,t.ivSize,n.salt,i.hasher);return i.iv=r.iv,g.decrypt.call(this,t,n,r.key,i)}})}()))}(Wi)),Wi.exports}var Yi,Vi,Zi,Gi={exports:{}},Qi={exports:{}},Ki={exports:{}};var Xi,tr,nr,er,ir,rr,or,sr,ar,cr,lr,ur,hr,fr,dr={exports:{}},pr={exports:{}},mr={exports:{}},gr={exports:{}},vr={exports:{}},wr={exports:{}},yr={exports:{}},br={exports:{}},xr={exports:{}},Ir={exports:{}},Sr={exports:{}},Cr={exports:{}},kr={exports:{}},Mr={exports:{}};!function(t){var n;t.exports=(n=ii(),si(),ai||(ai=1,function(t){var n;t.exports=(n=ii(),function(){if("function"==typeof ArrayBuffer){var t=n.lib.WordArray,e=t.init,i=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,i=[],r=0;r<n;r++)i[r>>>2]|=t[r]<<24-r%4*8;e.call(this,i,n)}else e.apply(this,arguments)};i.prototype=t}}(),n.lib.WordArray)}(ui)),ci||(ci=1,function(t){var n;t.exports=(n=ii(),function(){var t=n,e=t.lib.WordArray,i=t.enc;function r(t){return t<<8&4278255360|t>>>8&16711935}i.Utf16=i.Utf16BE={stringify:function(t){for(var n=t.words,e=t.sigBytes,i=[],r=0;r<e;r+=2){var o=n[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var n=t.length,i=[],r=0;r<n;r++)i[r>>>1]|=t.charCodeAt(r)<<16-r%2*16;return e.create(i,2*n)}},i.Utf16LE={stringify:function(t){for(var n=t.words,e=t.sigBytes,i=[],o=0;o<e;o+=2){var s=r(n[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){for(var n=t.length,i=[],o=0;o<n;o++)i[o>>>1]|=r(t.charCodeAt(o)<<16-o%2*16);return e.create(i,2*n)}}}(),n.enc.Utf16)}(hi)),di(),pi||(pi=1,function(t){var n,e,i;t.exports=(n=ii(),i=(e=n).lib.WordArray,e.enc.Base64url={stringify:function(t,n){void 0===n&&(n=!0);var e=t.words,i=t.sigBytes,r=n?this.tt:this.N;t.clamp();for(var o=[],s=0;s<i;s+=3)for(var a=(e[s>>>2]>>>24-s%4*8&255)<<16|(e[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|e[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<i;c++)o.push(r.charAt(a>>>6*(3-c)&63));var l=r.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(t,n){void 0===n&&(n=!0);var e=t.length,r=n?this.tt:this.N,o=this.D;if(!o){o=this.D=[];for(var s=0;s<r.length;s++)o[r.charCodeAt(s)]=s}var a=r.charAt(64);if(a){var c=t.indexOf(a);-1!==c&&(e=c)}return function(t,n,e){for(var r=[],o=0,s=0;s<n;s++)if(s%4){var a=e[t.charCodeAt(s-1)]<<s%4*2|e[t.charCodeAt(s)]>>>6-s%4*2;r[o>>>2]|=a<<24-o%4*8,o++}return i.create(r,o)}(t,e,o)},N:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",tt:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},n.enc.Base64url)}(mi)),wi(),xi(),Ci(),ki||(ki=1,function(t){var n,e,i,r,o,s;t.exports=(s=ii(),Ci(),e=(n=s).lib.WordArray,i=n.algo,r=i.SHA256,o=i.SHA224=r.extend({_:function(){this.P=new e.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},O:function(){var t=r.O.call(this);return t.sigBytes-=4,t}}),n.SHA224=r.A(o),n.HmacSHA224=r.R(o),s.SHA224)}(Ti)),ji(),_i||(_i=1,function(t){var n,e,i,r,o,s,a,c;t.exports=(c=ii(),si(),ji(),e=(n=c).x64,i=e.Word,r=e.WordArray,o=n.algo,s=o.SHA512,a=o.SHA384=s.extend({_:function(){this.P=new r.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},O:function(){var t=s.O.call(this);return t.sigBytes-=16,t}}),n.SHA384=s.A(a),n.HmacSHA384=s.R(a),c.SHA384)}(Ai)),Ei||(Ei=1,function(t){var n;t.exports=(n=ii(),si(),function(t){var e=n,i=e.lib,r=i.WordArray,o=i.Hasher,s=e.x64.Word,a=e.algo,c=[],l=[],u=[];!function(){for(var t=1,n=0,e=0;e<24;e++){c[t+5*n]=(e+1)*(e+2)/2%64;var i=(2*t+3*n)%5;t=n%5,n=i}for(t=0;t<5;t++)for(n=0;n<5;n++)l[t+5*n]=n+(2*t+3*n)%5*5;for(var r=1,o=0;o<24;o++){for(var a=0,h=0,f=0;f<7;f++){if(1&r){var d=(1<<f)-1;d<32?h^=1<<d:a^=1<<d-32}128&r?r=r<<1^113:r<<=1}u[o]=s.create(a,h)}}();var h=[];!function(){for(var t=0;t<25;t++)h[t]=s.create()}();var f=a.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_:function(){for(var t=this.nt=[],n=0;n<25;n++)t[n]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},j:function(t,n){for(var e=this.nt,i=this.blockSize/2,r=0;r<i;r++){var o=t[n+2*r],s=t[n+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),($=e[r]).high^=s,$.low^=o}for(var a=0;a<24;a++){for(var f=0;f<5;f++){for(var d=0,p=0,m=0;m<5;m++)d^=($=e[f+5*m]).high,p^=$.low;var g=h[f];g.high=d,g.low=p}for(f=0;f<5;f++){var v=h[(f+4)%5],w=h[(f+1)%5],y=w.high,b=w.low;for(d=v.high^(y<<1|b>>>31),p=v.low^(b<<1|y>>>31),m=0;m<5;m++)($=e[f+5*m]).high^=d,$.low^=p}for(var x=1;x<25;x++){var I=($=e[x]).high,S=$.low,C=c[x];C<32?(d=I<<C|S>>>32-C,p=S<<C|I>>>32-C):(d=S<<C-32|I>>>64-C,p=I<<C-32|S>>>64-C);var k=h[l[x]];k.high=d,k.low=p}var M=h[0],T=e[0];for(M.high=T.high,M.low=T.low,f=0;f<5;f++)for(m=0;m<5;m++){var $=e[x=f+5*m],j=h[x],_=h[(f+1)%5+5*m],E=h[(f+2)%5+5*m];$.high=j.high^~_.high&E.high,$.low=j.low^~_.low&E.low}$=e[0];var O=u[a];$.high^=O.high,$.low^=O.low}},O:function(){var n=this.S,e=n.words;this.C;var i=8*n.sigBytes,o=32*this.blockSize;e[i>>>5]|=1<<24-i%32,e[(t.ceil((i+1)/o)*o>>>5)-1]|=128,n.sigBytes=4*e.length,this.T();for(var s=this.nt,a=this.cfg.outputLength/8,c=a/8,l=[],u=0;u<c;u++){var h=s[u],f=h.high,d=h.low;f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(f)}return new r.init(l,a)},clone:function(){for(var t=o.clone.call(this),n=t.nt=this.nt.slice(0),e=0;e<25;e++)n[e]=n[e].clone();return t}});e.SHA3=o.A(f),e.HmacSHA3=o.R(f)}(Math),n.SHA3)}(Ri)),Oi||(Oi=1,function(t){var n;t.exports=(n=ii(),function(){var t=n,e=t.lib,i=e.WordArray,r=e.Hasher,o=t.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=r.extend({_:function(){this.P=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},j:function(t,n){for(var e=0;e<16;e++){var i=n+e,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o,f,y,b,x,I,S,C,k,M,T,$=this.P.words,j=u.words,_=h.words,E=s.words,O=a.words,z=c.words,A=l.words;for(I=o=$[0],S=f=$[1],C=y=$[2],k=b=$[3],M=x=$[4],e=0;e<80;e+=1)T=o+t[n+E[e]]|0,T+=e<16?d(f,y,b)+j[0]:e<32?p(f,y,b)+j[1]:e<48?m(f,y,b)+j[2]:e<64?g(f,y,b)+j[3]:v(f,y,b)+j[4],T=(T=w(T|=0,z[e]))+x|0,o=x,x=b,b=w(y,10),y=f,f=T,T=I+t[n+O[e]]|0,T+=e<16?v(S,C,k)+_[0]:e<32?g(S,C,k)+_[1]:e<48?m(S,C,k)+_[2]:e<64?p(S,C,k)+_[3]:d(S,C,k)+_[4],T=(T=w(T|=0,A[e]))+M|0,I=M,M=k,k=w(C,10),C=S,S=T;T=$[1]+y+k|0,$[1]=$[2]+b+M|0,$[2]=$[3]+x+I|0,$[3]=$[4]+o+S|0,$[4]=$[0]+f+C|0,$[0]=T},O:function(){var t=this.S,n=t.words,e=8*this.C,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),t.sigBytes=4*(n.length+1),this.T();for(var r=this.P,o=r.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return r},clone:function(){var t=r.clone.call(this);return t.P=this.P.clone(),t}});function d(t,n,e){return t^n^e}function p(t,n,e){return t&n|~t&e}function m(t,n,e){return(t|~n)^e}function g(t,n,e){return t&e|n&~e}function v(t,n,e){return t^(n|~e)}function w(t,n){return t<<n|t>>>32-n}t.RIPEMD160=r.A(f),t.HmacRIPEMD160=r.R(f)}(),n.RIPEMD160)}(Ni)),Pi(),Ji||(Ji=1,function(t){var n,e,i,r,o,s,a,c,l;t.exports=(l=ii(),Ci(),Pi(),i=(e=(n=l).lib).Base,r=e.WordArray,s=(o=n.algo).SHA256,a=o.HMAC,c=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:s,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,n){for(var e=this.cfg,i=a.create(e.hasher,t),o=r.create(),s=r.create([1]),c=o.words,l=s.words,u=e.keySize,h=e.iterations;c.length<u;){var f=i.update(n).finalize(s);i.reset();for(var d=f.words,p=d.length,m=f,g=1;g<h;g++){m=i.finalize(m),i.reset();for(var v=m.words,w=0;w<p;w++)d[w]^=v[w]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}}),n.PBKDF2=function(t,n,e){return c.create(e).compute(t,n)},l.PBKDF2)}(qi)),Bi(),Hi(),Yi||(Yi=1,function(t){var n;t.exports=(n=ii(),Hi(),n.mode.CFB=function(){var t=n.lib.BlockCipherMode.extend();function e(t,n,e,i){var r,o=this.V;o?(r=o.slice(0),this.V=void 0):r=this.Z,i.encryptBlock(r,0);for(var s=0;s<e;s++)t[n+s]^=r[s]}return t.Encryptor=t.extend({processBlock:function(t,n){var i=this.Y,r=i.blockSize;e.call(this,t,n,r,i),this.Z=t.slice(n,n+r)}}),t.Decryptor=t.extend({processBlock:function(t,n){var i=this.Y,r=i.blockSize,o=t.slice(n,n+r);e.call(this,t,n,r,i),this.Z=o}}),t}(),n.mode.CFB)}(Gi)),Vi||(Vi=1,function(t){var n,e,i;t.exports=(i=ii(),Hi(),i.mode.CTR=(e=(n=i.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,n){var e=this.Y,i=e.blockSize,r=this.V,o=this.et;r&&(o=this.et=r.slice(0),this.V=void 0);var s=o.slice(0);e.encryptBlock(s,0),o[i-1]=o[i-1]+1|0;for(var a=0;a<i;a++)t[n+a]^=s[a]}}),n.Decryptor=e,n),i.mode.CTR)}(Qi)),Zi||(Zi=1,function(t){var n;t.exports=(n=ii(),Hi(),n.mode.CTRGladman=function(){var t=n.lib.BlockCipherMode.extend();function e(t){if(255&~(t>>24))t+=1<<24;else{var n=t>>16&255,e=t>>8&255,i=255&t;255===n?(n=0,255===e?(e=0,255===i?i=0:++i):++e):++n,t=0,t+=n<<16,t+=e<<8,t+=i}return t}var i=t.Encryptor=t.extend({processBlock:function(t,n){var i=this.Y,r=i.blockSize,o=this.V,s=this.et;o&&(s=this.et=o.slice(0),this.V=void 0),function(t){0===(t[0]=e(t[0]))&&(t[1]=e(t[1]))}(s);var a=s.slice(0);i.encryptBlock(a,0);for(var c=0;c<r;c++)t[n+c]^=a[c]}});return t.Decryptor=i,t}(),n.mode.CTRGladman)}(Ki)),Xi||(Xi=1,function(t){var n,e,i;t.exports=(i=ii(),Hi(),i.mode.OFB=(e=(n=i.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,n){var e=this.Y,i=e.blockSize,r=this.V,o=this.it;r&&(o=this.it=r.slice(0),this.V=void 0),e.encryptBlock(o,0);for(var s=0;s<i;s++)t[n+s]^=o[s]}}),n.Decryptor=e,n),i.mode.OFB)}(dr)),tr||(tr=1,function(t){var n,e;t.exports=(e=ii(),Hi(),e.mode.ECB=((n=e.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,n){this.Y.encryptBlock(t,n)}}),n.Decryptor=n.extend({processBlock:function(t,n){this.Y.decryptBlock(t,n)}}),n),e.mode.ECB)}(pr)),nr||(nr=1,function(t){var n;t.exports=(n=ii(),Hi(),n.pad.AnsiX923={pad:function(t,n){var e=t.sigBytes,i=4*n,r=i-e%i,o=e+r-1;t.clamp(),t.words[o>>>2]|=r<<24-o%4*8,t.sigBytes+=r},unpad:function(t){var n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}},n.pad.Ansix923)}(mr)),er||(er=1,function(t){var n;t.exports=(n=ii(),Hi(),n.pad.Iso10126={pad:function(t,e){var i=4*e,r=i-t.sigBytes%i;t.concat(n.lib.WordArray.random(r-1)).concat(n.lib.WordArray.create([r<<24],1))},unpad:function(t){var n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}},n.pad.Iso10126)}(gr)),ir||(ir=1,function(t){var n;t.exports=(n=ii(),Hi(),n.pad.Iso97971={pad:function(t,e){t.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(t,e)},unpad:function(t){n.pad.ZeroPadding.unpad(t),t.sigBytes--}},n.pad.Iso97971)}(vr)),rr||(rr=1,function(t){var n;t.exports=(n=ii(),Hi(),n.pad.ZeroPadding={pad:function(t,n){var e=4*n;t.clamp(),t.sigBytes+=e-(t.sigBytes%e||e)},unpad:function(t){var n=t.words,e=t.sigBytes-1;for(e=t.sigBytes-1;e>=0;e--)if(n[e>>>2]>>>24-e%4*8&255){t.sigBytes=e+1;break}}},n.pad.ZeroPadding)}(wr)),or||(or=1,function(t){var n;t.exports=(n=ii(),Hi(),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)}(yr)),sr||(sr=1,function(t){var n,e,i,r;t.exports=(r=ii(),Hi(),e=(n=r).lib.CipherParams,i=n.enc.Hex,n.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var n=i.parse(t);return e.create({ciphertext:n})}},r.format.Hex)}(br)),ar||(ar=1,function(t){var n;t.exports=(n=ii(),di(),wi(),Bi(),Hi(),function(){var t=n,e=t.lib.BlockCipher,i=t.algo,r=[],o=[],s=[],a=[],c=[],l=[],u=[],h=[],f=[],d=[];!function(){for(var t=[],n=0;n<256;n++)t[n]=n<128?n<<1:n<<1^283;var e=0,i=0;for(n=0;n<256;n++){var p=i^i<<1^i<<2^i<<3^i<<4;p=p>>>8^255&p^99,r[e]=p,o[p]=e;var m=t[e],g=t[m],v=t[g],w=257*t[p]^16843008*p;s[e]=w<<24|w>>>8,a[e]=w<<16|w>>>16,c[e]=w<<8|w>>>24,l[e]=w,w=16843009*v^65537*g^257*m^16843008*e,u[p]=w<<24|w>>>8,h[p]=w<<16|w>>>16,f[p]=w<<8|w>>>24,d[p]=w,e?(e=m^t[t[t[v^m]]],i^=t[t[i]]):e=i=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],m=i.AES=e.extend({_:function(){if(!this.rt||this.ot!==this.H){for(var t=this.ot=this.H,n=t.words,e=t.sigBytes/4,i=4*((this.rt=e+6)+1),o=this.st=[],s=0;s<i;s++)s<e?o[s]=n[s]:(l=o[s-1],s%e?e>6&&s%e==4&&(l=r[l>>>24]<<24|r[l>>>16&255]<<16|r[l>>>8&255]<<8|r[255&l]):(l=r[(l=l<<8|l>>>24)>>>24]<<24|r[l>>>16&255]<<16|r[l>>>8&255]<<8|r[255&l],l^=p[s/e|0]<<24),o[s]=o[s-e]^l);for(var a=this.ct=[],c=0;c<i;c++){if(s=i-c,c%4)var l=o[s];else l=o[s-4];a[c]=c<4||s<=4?l:u[r[l>>>24]]^h[r[l>>>16&255]]^f[r[l>>>8&255]]^d[r[255&l]]}}},encryptBlock:function(t,n){this.lt(t,n,this.st,s,a,c,l,r)},decryptBlock:function(t,n){var e=t[n+1];t[n+1]=t[n+3],t[n+3]=e,this.lt(t,n,this.ct,u,h,f,d,o),e=t[n+1],t[n+1]=t[n+3],t[n+3]=e},lt:function(t,n,e,i,r,o,s,a){for(var c=this.rt,l=t[n]^e[0],u=t[n+1]^e[1],h=t[n+2]^e[2],f=t[n+3]^e[3],d=4,p=1;p<c;p++){var m=i[l>>>24]^r[u>>>16&255]^o[h>>>8&255]^s[255&f]^e[d++],g=i[u>>>24]^r[h>>>16&255]^o[f>>>8&255]^s[255&l]^e[d++],v=i[h>>>24]^r[f>>>16&255]^o[l>>>8&255]^s[255&u]^e[d++],w=i[f>>>24]^r[l>>>16&255]^o[u>>>8&255]^s[255&h]^e[d++];l=m,u=g,h=v,f=w}m=(a[l>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&f])^e[d++],g=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[f>>>8&255]<<8|a[255&l])^e[d++],v=(a[h>>>24]<<24|a[f>>>16&255]<<16|a[l>>>8&255]<<8|a[255&u])^e[d++],w=(a[f>>>24]<<24|a[l>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^e[d++],t[n]=m,t[n+1]=g,t[n+2]=v,t[n+3]=w},keySize:8});t.AES=e.A(m)}(),n.AES)}(xr)),cr||(cr=1,function(t){var n;t.exports=(n=ii(),di(),wi(),Bi(),Hi(),function(){var t=n,e=t.lib,i=e.WordArray,r=e.BlockCipher,o=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=r.extend({_:function(){for(var t=this.H.words,n=[],e=0;e<56;e++){var i=s[e]-1;n[e]=t[i>>>5]>>>31-i%32&1}for(var r=this.ut=[],o=0;o<16;o++){var l=r[o]=[],u=c[o];for(e=0;e<24;e++)l[e/6|0]|=n[(a[e]-1+u)%28]<<31-e%6,l[4+(e/6|0)]|=n[28+(a[e+24]-1+u)%28]<<31-e%6;for(l[0]=l[0]<<1|l[0]>>>31,e=1;e<7;e++)l[e]=l[e]>>>4*(e-1)+3;l[7]=l[7]<<5|l[7]>>>27}var h=this.ht=[];for(e=0;e<16;e++)h[e]=r[15-e]},encryptBlock:function(t,n){this.lt(t,n,this.ut)},decryptBlock:function(t,n){this.lt(t,n,this.ht)},lt:function(t,n,e){this.ft=t[n],this.dt=t[n+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=e[i],o=this.ft,s=this.dt,a=0,c=0;c<8;c++)a|=l[c][((s^r[c])&u[c])>>>0];this.ft=s,this.dt=o^a}var h=this.ft;this.ft=this.dt,this.dt=h,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),t[n]=this.ft,t[n+1]=this.dt},keySize:2,ivSize:2,blockSize:2});function f(t,n){var e=(this.ft>>>t^this.dt)&n;this.dt^=e,this.ft^=e<<t}function d(t,n){var e=(this.dt>>>t^this.ft)&n;this.ft^=e,this.dt^=e<<t}t.DES=r.A(h);var p=o.TripleDES=r.extend({_:function(){var t=this.H.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=t.slice(0,2),e=t.length<4?t.slice(0,2):t.slice(2,4),r=t.length<6?t.slice(0,2):t.slice(4,6);this.gt=h.createEncryptor(i.create(n)),this.vt=h.createEncryptor(i.create(e)),this.wt=h.createEncryptor(i.create(r))},encryptBlock:function(t,n){this.gt.encryptBlock(t,n),this.vt.decryptBlock(t,n),this.wt.encryptBlock(t,n)},decryptBlock:function(t,n){this.wt.decryptBlock(t,n),this.vt.encryptBlock(t,n),this.gt.decryptBlock(t,n)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=r.A(p)}(),n.TripleDES)}(Ir)),lr||(lr=1,function(t){var n;t.exports=(n=ii(),di(),wi(),Bi(),Hi(),function(){var t=n,e=t.lib.StreamCipher,i=t.algo,r=i.RC4=e.extend({_:function(){for(var t=this.H,n=t.words,e=t.sigBytes,i=this.yt=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var s=r%e,a=n[s>>>2]>>>24-s%4*8&255;o=(o+i[r]+a)%256;var c=i[r];i[r]=i[o],i[o]=c}this.bt=this.xt=0},j:function(t,n){t[n]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this.yt,n=this.bt,e=this.xt,i=0,r=0;r<4;r++){e=(e+t[n=(n+1)%256])%256;var o=t[n];t[n]=t[e],t[e]=o,i|=t[(t[n]+t[e])%256]<<24-8*r}return this.bt=n,this.xt=e,i}t.RC4=e.A(r);var s=i.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_:function(){r._.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});t.RC4Drop=e.A(s)}(),n.RC4)}(Sr)),ur||(ur=1,function(t){var n;t.exports=(n=ii(),di(),wi(),Bi(),Hi(),function(){var t=n,e=t.lib.StreamCipher,i=t.algo,r=[],o=[],s=[],a=i.Rabbit=e.extend({_:function(){for(var t=this.H.words,n=this.cfg.iv,e=0;e<4;e++)t[e]=16711935&(t[e]<<8|t[e]>>>24)|4278255360&(t[e]<<24|t[e]>>>8);var i=this.It=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this.St=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this.Ct=0,e=0;e<4;e++)c.call(this);for(e=0;e<8;e++)r[e]^=i[e+4&7];if(n){var o=n.words,s=o[0],a=o[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=l>>>16|4294901760&u,f=u<<16|65535&l;for(r[0]^=l,r[1]^=h,r[2]^=u,r[3]^=f,r[4]^=l,r[5]^=h,r[6]^=u,r[7]^=f,e=0;e<4;e++)c.call(this)}},j:function(t,n){var e=this.It;c.call(this),r[0]=e[0]^e[5]>>>16^e[3]<<16,r[1]=e[2]^e[7]>>>16^e[5]<<16,r[2]=e[4]^e[1]>>>16^e[7]<<16,r[3]=e[6]^e[3]>>>16^e[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[n+i]^=r[i]},blockSize:4,ivSize:2});function c(){for(var t=this.It,n=this.St,e=0;e<8;e++)o[e]=n[e];for(n[0]=n[0]+1295307597+this.Ct|0,n[1]=n[1]+3545052371+(n[0]>>>0<o[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<o[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<o[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<o[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<o[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<o[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<o[6]>>>0?1:0)|0,this.Ct=n[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var i=t[e]+n[e],r=65535&i,a=i>>>16,c=((r*r>>>17)+r*a>>>15)+a*a,l=((4294901760&i)*i|0)+((65535&i)*i|0);s[e]=c^l}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=e.A(a)}(),n.Rabbit)}(Cr)),hr||(hr=1,function(t){var n;t.exports=(n=ii(),di(),wi(),Bi(),Hi(),function(){var t=n,e=t.lib.StreamCipher,i=t.algo,r=[],o=[],s=[],a=i.RabbitLegacy=e.extend({_:function(){var t=this.H.words,n=this.cfg.iv,e=this.It=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this.St=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this.Ct=0;for(var r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=e[r+4&7];if(n){var o=n.words,s=o[0],a=o[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=h,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=h,i[6]^=u,i[7]^=f,r=0;r<4;r++)c.call(this)}},j:function(t,n){var e=this.It;c.call(this),r[0]=e[0]^e[5]>>>16^e[3]<<16,r[1]=e[2]^e[7]>>>16^e[5]<<16,r[2]=e[4]^e[1]>>>16^e[7]<<16,r[3]=e[6]^e[3]>>>16^e[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[n+i]^=r[i]},blockSize:4,ivSize:2});function c(){for(var t=this.It,n=this.St,e=0;e<8;e++)o[e]=n[e];for(n[0]=n[0]+1295307597+this.Ct|0,n[1]=n[1]+3545052371+(n[0]>>>0<o[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<o[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<o[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<o[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<o[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<o[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<o[6]>>>0?1:0)|0,this.Ct=n[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var i=t[e]+n[e],r=65535&i,a=i>>>16,c=((r*r>>>17)+r*a>>>15)+a*a,l=((4294901760&i)*i|0)+((65535&i)*i|0);s[e]=c^l}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=e.A(a)}(),n.RabbitLegacy)}(kr)),fr||(fr=1,function(t){var n;t.exports=(n=ii(),di(),wi(),Bi(),Hi(),function(){var t=n,e=t.lib.BlockCipher,i=t.algo;const r=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function a(t,n){let e=n>>24&255,i=n>>16&255,r=n>>8&255,o=255&n,s=t.sbox[0][e]+t.sbox[1][i];return s^=t.sbox[2][r],s+=t.sbox[3][o],s}function c(t,n,e){let i,r=n,o=e;for(let n=0;n<16;++n)r^=t.pbox[n],o=a(t,r)^o,i=r,r=o,o=i;return i=r,r=o,o=i,o^=t.pbox[16],r^=t.pbox[17],{left:r,right:o}}var l=i.Blowfish=e.extend({_:function(){if(this.ot!==this.H){var t=this.ot=this.H,n=t.words,e=t.sigBytes/4;!function(t,n,e){for(let n=0;n<4;n++){t.sbox[n]=[];for(let e=0;e<256;e++)t.sbox[n][e]=o[n][e]}let i=0;for(let o=0;o<18;o++)t.pbox[o]=r[o]^n[i],i++,i>=e&&(i=0);let s=0,a=0,l=0;for(let n=0;n<18;n+=2)l=c(t,s,a),s=l.left,a=l.right,t.pbox[n]=s,t.pbox[n+1]=a;for(let n=0;n<4;n++)for(let e=0;e<256;e+=2)l=c(t,s,a),s=l.left,a=l.right,t.sbox[n][e]=s,t.sbox[n][e+1]=a}(s,n,e)}},encryptBlock:function(t,n){var e=c(s,t[n],t[n+1]);t[n]=e.left,t[n+1]=e.right},decryptBlock:function(t,n){var e=function(t,n,e){let i,r=n,o=e;for(let n=17;n>1;--n)r^=t.pbox[n],o=a(t,r)^o,i=r,r=o,o=i;return i=r,r=o,o=i,o^=t.pbox[1],r^=t.pbox[0],{left:r,right:o}}(s,t[n],t[n+1]);t[n]=e.left,t[n+1]=e.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=e.A(l)}(),n.Blowfish)}(Mr)),n)}(ti);var Tr=ti.exports,$r=crypto;const jr=t=>t instanceof CryptoKey,_r=new TextEncoder,Er=new TextDecoder;function Or(...t){const n=t.reduce(((t,{length:n})=>t+n),0),e=new Uint8Array(n);let i=0;for(const n of t)e.set(n,i),i+=n.length;return e}const zr=t=>(t=>{let n=t;"string"==typeof n&&(n=_r.encode(n));const e=[];for(let t=0;t<n.length;t+=32768)e.push(String.fromCharCode.apply(null,n.subarray(t,t+32768)));return btoa(e.join(""))})(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),Ar=t=>{let n=t;n instanceof Uint8Array&&(n=Er.decode(n)),n=n.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(t=>{const n=atob(t),e=new Uint8Array(n.length);for(let t=0;t<n.length;t++)e[t]=n.charCodeAt(t);return e})(n)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class Rr extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(t){super(t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}class Nr extends Rr{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(t,n,e="unspecified",i="unspecified"){super(t),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=e,this.reason=i,this.payload=n}}class Dr extends Rr{static get code(){return"ERR_JWT_EXPIRED"}constructor(t,n,e="unspecified",i="unspecified"){super(t),this.code="ERR_JWT_EXPIRED",this.claim=e,this.reason=i,this.payload=n}}class Pr extends Rr{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class Jr extends Rr{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class Lr extends Rr{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}class qr extends Rr{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}function Ur(t,n="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${n} must be ${t}`)}function Br(t,n){return t.name===n}function Fr(t){return parseInt(t.name.slice(4),10)}function Wr(t,n,...e){if((e=e.filter(Boolean)).length>2){const n=e.pop();t+=`one of type ${e.join(", ")}, or ${n}.`}else 2===e.length?t+=`one of type ${e[0]} or ${e[1]}.`:t+=`of type ${e[0]}.`;return null==n?t+=` Received ${n}`:"function"==typeof n&&n.name?t+=` Received function ${n.name}`:"object"==typeof n&&null!=n&&n.constructor?.name&&(t+=` Received an instance of ${n.constructor.name}`),t}var Hr=(t,...n)=>Wr("Key must be ",t,...n);function Yr(t,n,...e){return Wr(`Key for the ${t} algorithm must be `,n,...e)}var Vr=t=>!!jr(t)||"KeyObject"===t?.[Symbol.toStringTag];const Zr=["CryptoKey"],Gr=(...t)=>{const n=t.filter(Boolean);if(0===n.length||1===n.length)return!0;let e;for(const t of n){const n=Object.keys(t);if(e&&0!==e.size)for(const t of n){if(e.has(t))return!1;e.add(t)}else e=new Set(n)}return!0};function Qr(t){if("object"!=typeof(n=t)||null===n||"[object Object]"!==Object.prototype.toString.call(t))return!1;var n;if(null===Object.getPrototypeOf(t))return!0;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}var Kr=(t,n)=>{if(t.startsWith("RS")||t.startsWith("PS")){const{modulusLength:e}=n.algorithm;if("number"!=typeof e||e<2048)throw new TypeError(`${t} requires key modulusLength to be 2048 bits or larger`)}};function Xr(t){return Qr(t)&&"string"==typeof t.kty}const to=async t=>{if(!t.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:n,keyUsages:e}=function(t){let n,e;switch(t.kty){case"RSA":switch(t.alg){case"PS256":case"PS384":case"PS512":n={name:"RSA-PSS",hash:`SHA-${t.alg.slice(-3)}`},e=t.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":n={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${t.alg.slice(-3)}`},e=t.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":n={name:"RSA-OAEP",hash:`SHA-${parseInt(t.alg.slice(-3),10)||1}`},e=t.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new Pr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(t.alg){case"ES256":n={name:"ECDSA",namedCurve:"P-256"},e=t.d?["sign"]:["verify"];break;case"ES384":n={name:"ECDSA",namedCurve:"P-384"},e=t.d?["sign"]:["verify"];break;case"ES512":n={name:"ECDSA",namedCurve:"P-521"},e=t.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":n={name:"ECDH",namedCurve:t.crv},e=t.d?["deriveBits"]:[];break;default:throw new Pr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(t.alg){case"EdDSA":n={name:t.crv},e=t.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":n={name:t.crv},e=t.d?["deriveBits"]:[];break;default:throw new Pr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new Pr('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:n,keyUsages:e}}(t),i=[n,t.ext??!1,t.key_ops??e],r={...t};return delete r.alg,delete r.use,$r.subtle.importKey("jwk",r,...i)},no=t=>Ar(t);let eo,io;const ro=t=>"KeyObject"===t?.[Symbol.toStringTag],oo=async(t,n,e,i,r=!1)=>{let o=t.get(n);if(o?.[i])return o[i];const s=await to({...e,alg:i});return r&&Object.freeze(n),o?o[i]=s:t.set(n,{[i]:s}),s},so=t=>t?.[Symbol.toStringTag],ao=(t,n,e)=>{if(void 0!==n.use&&"sig"!==n.use)throw new TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==n.key_ops&&!0!==n.key_ops.includes?.(e))throw new TypeError(`Invalid key for this operation, when present its key_ops must include ${e}`);if(void 0!==n.alg&&n.alg!==t)throw new TypeError(`Invalid key for this operation, when present its alg must be ${t}`);return!0};function co(t,n,e,i){n.startsWith("HS")||"dir"===n||n.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(n)?((t,n,e,i)=>{if(!(n instanceof Uint8Array)){if(i&&Xr(n)){if(function(t){return Xr(t)&&"oct"===t.kty&&"string"==typeof t.k}(n)&&ao(t,n,e))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!Vr(n))throw new TypeError(Yr(t,n,...Zr,"Uint8Array",i?"JSON Web Key":null));if("secret"!==n.type)throw new TypeError(`${so(n)} instances for symmetric algorithms must be of type "secret"`)}})(n,e,i,t):((t,n,e,i)=>{if(i&&Xr(n))switch(e){case"sign":if(function(t){return"oct"!==t.kty&&"string"==typeof t.d}(n)&&ao(t,n,e))return;throw new TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(function(t){return"oct"!==t.kty&&void 0===t.d}(n)&&ao(t,n,e))return;throw new TypeError("JSON Web Key for this operation be a public JWK")}if(!Vr(n))throw new TypeError(Yr(t,n,...Zr,i?"JSON Web Key":null));if("secret"===n.type)throw new TypeError(`${so(n)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===e&&"public"===n.type)throw new TypeError(`${so(n)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===e&&"public"===n.type)throw new TypeError(`${so(n)} instances for asymmetric algorithm decryption must be of type "private"`);if(n.algorithm&&"verify"===e&&"private"===n.type)throw new TypeError(`${so(n)} instances for asymmetric algorithm verifying must be of type "public"`);if(n.algorithm&&"encrypt"===e&&"private"===n.type)throw new TypeError(`${so(n)} instances for asymmetric algorithm encryption must be of type "public"`)})(n,e,i,t)}co.bind(void 0,!1);const lo=co.bind(void 0,!0);function uo(t,n,e,i,r){if(void 0!==r.crit&&void 0===i?.crit)throw new t('"crit" (Critical) Header Parameter MUST be integrity protected');if(!i||void 0===i.crit)return new Set;if(!Array.isArray(i.crit)||0===i.crit.length||i.crit.some((t=>"string"!=typeof t||0===t.length)))throw new t('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let o;o=void 0!==e?new Map([...Object.entries(e),...n.entries()]):n;for(const n of i.crit){if(!o.has(n))throw new Pr(`Extension Header Parameter "${n}" is not recognized`);if(void 0===r[n])throw new t(`Extension Header Parameter "${n}" is missing`);if(o.get(n)&&void 0===i[n])throw new t(`Extension Header Parameter "${n}" MUST be integrity protected`)}return new Set(i.crit)}function ho(t,n){const e=`SHA-${t.slice(-3)}`;switch(t){case"HS256":case"HS384":case"HS512":return{hash:e,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:e,name:"RSA-PSS",saltLength:t.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:e,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:e,name:"ECDSA",namedCurve:n.namedCurve};case"EdDSA":return{name:n.name};default:throw new Pr(`alg ${t} is not supported either by JOSE or your javascript runtime`)}}async function fo(t,n,e){if("sign"===e&&(n=await((t,n)=>{if(ro(t)){let e=t.export({format:"jwk"});return e.k?no(e.k):(eo||(eo=new WeakMap),oo(eo,t,e,n))}return Xr(t)?t.k?Ar(t.k):(eo||(eo=new WeakMap),oo(eo,t,t,n,!0)):t})(n,t)),"verify"===e&&(n=await((t,n)=>{if(ro(t)){let e=t.export({format:"jwk"});return delete e.d,delete e.dp,delete e.dq,delete e.p,delete e.q,delete e.qi,e.k?no(e.k):(io||(io=new WeakMap),oo(io,t,e,n))}return Xr(t)?t.k?Ar(t.k):(io||(io=new WeakMap),oo(io,t,t,n,!0)):t})(n,t)),jr(n))return function(t,n,...e){switch(n){case"HS256":case"HS384":case"HS512":{if(!Br(t.algorithm,"HMAC"))throw Ur("HMAC");const e=parseInt(n.slice(2),10);if(Fr(t.algorithm.hash)!==e)throw Ur(`SHA-${e}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!Br(t.algorithm,"RSASSA-PKCS1-v1_5"))throw Ur("RSASSA-PKCS1-v1_5");const e=parseInt(n.slice(2),10);if(Fr(t.algorithm.hash)!==e)throw Ur(`SHA-${e}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!Br(t.algorithm,"RSA-PSS"))throw Ur("RSA-PSS");const e=parseInt(n.slice(2),10);if(Fr(t.algorithm.hash)!==e)throw Ur(`SHA-${e}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==t.algorithm.name&&"Ed448"!==t.algorithm.name)throw Ur("Ed25519 or Ed448");break;case"ES256":case"ES384":case"ES512":{if(!Br(t.algorithm,"ECDSA"))throw Ur("ECDSA");const e=function(t){switch(t){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}(n);if(t.algorithm.namedCurve!==e)throw Ur(e,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}!function(t,n){if(n.length&&!n.some((n=>t.usages.includes(n)))){let t="CryptoKey does not support this operation, its usages must include ";if(n.length>2){const e=n.pop();t+=`one of ${n.join(", ")}, or ${e}.`}else 2===n.length?t+=`one of ${n[0]} or ${n[1]}.`:t+=`${n[0]}.`;throw new TypeError(t)}}(t,e)}(n,t,e),n;if(n instanceof Uint8Array){if(!t.startsWith("HS"))throw new TypeError(Hr(n,...Zr));return $r.subtle.importKey("raw",n,{hash:`SHA-${t.slice(-3)}`,name:"HMAC"},!1,[e])}throw new TypeError(Hr(n,...Zr,"Uint8Array","JSON Web Key"))}var po=t=>Math.floor(t.getTime()/1e3);const mo=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;var go=t=>{const n=mo.exec(t);if(!n||n[4]&&n[1])throw new TypeError("Invalid time period format");const e=parseFloat(n[2]);let i;switch(n[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":i=Math.round(e);break;case"minute":case"minutes":case"min":case"mins":case"m":i=Math.round(60*e);break;case"hour":case"hours":case"hr":case"hrs":case"h":i=Math.round(3600*e);break;case"day":case"days":case"d":i=Math.round(86400*e);break;case"week":case"weeks":case"w":i=Math.round(604800*e);break;default:i=Math.round(31557600*e)}return"-"===n[1]||"ago"===n[4]?-i:i};const vo=t=>t.toLowerCase().replace(/^application\//,"");var wo=(t,n,e={})=>{let i;try{i=JSON.parse(Er.decode(n))}catch{}if(!Qr(i))throw new Lr("JWT Claims Set must be a top-level JSON object");const{typ:r}=e;if(r&&("string"!=typeof t.typ||vo(t.typ)!==vo(r)))throw new Nr('unexpected "typ" JWT header value',i,"typ","check_failed");const{requiredClaims:o=[],issuer:s,subject:a,audience:c,maxTokenAge:l}=e,u=[...o];void 0!==l&&u.push("iat"),void 0!==c&&u.push("aud"),void 0!==a&&u.push("sub"),void 0!==s&&u.push("iss");for(const t of new Set(u.reverse()))if(!(t in i))throw new Nr(`missing required "${t}" claim`,i,t,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(i.iss))throw new Nr('unexpected "iss" claim value',i,"iss","check_failed");if(a&&i.sub!==a)throw new Nr('unexpected "sub" claim value',i,"sub","check_failed");if(c&&(f="string"==typeof c?[c]:c,!("string"==typeof(h=i.aud)?f.includes(h):Array.isArray(h)&&f.some(Set.prototype.has.bind(new Set(h))))))throw new Nr('unexpected "aud" claim value',i,"aud","check_failed");var h,f;let d;switch(typeof e.clockTolerance){case"string":d=go(e.clockTolerance);break;case"number":d=e.clockTolerance;break;case"undefined":d=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:p}=e,m=po(p||new Date);if((void 0!==i.iat||l)&&"number"!=typeof i.iat)throw new Nr('"iat" claim must be a number',i,"iat","invalid");if(void 0!==i.nbf){if("number"!=typeof i.nbf)throw new Nr('"nbf" claim must be a number',i,"nbf","invalid");if(i.nbf>m+d)throw new Nr('"nbf" claim timestamp check failed',i,"nbf","check_failed")}if(void 0!==i.exp){if("number"!=typeof i.exp)throw new Nr('"exp" claim must be a number',i,"exp","invalid");if(i.exp<=m-d)throw new Dr('"exp" claim timestamp check failed',i,"exp","check_failed")}if(l){const t=m-i.iat;if(t-d>("number"==typeof l?l:go(l)))throw new Dr('"iat" claim timestamp check failed (too far in the past)',i,"iat","check_failed");if(t<0-d)throw new Nr('"iat" claim timestamp check failed (it should be in the past)',i,"iat","check_failed")}return i};class yo{constructor(t){if(!(t instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this.kt=t}setProtectedHeader(t){if(this.Mt)throw new TypeError("setProtectedHeader can only be called once");return this.Mt=t,this}setUnprotectedHeader(t){if(this.Tt)throw new TypeError("setUnprotectedHeader can only be called once");return this.Tt=t,this}async sign(t,n){if(!this.Mt&&!this.Tt)throw new Jr("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!Gr(this.Mt,this.Tt))throw new Jr("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const e={...this.Mt,...this.Tt};let i=!0;if(uo(Jr,new Map([["b64",!0]]),n?.crit,this.Mt,e).has("b64")&&(i=this.Mt.b64,"boolean"!=typeof i))throw new Jr('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:r}=e;if("string"!=typeof r||!r)throw new Jr('JWS "alg" (Algorithm) Header Parameter missing or invalid');lo(r,t,"sign");let o,s=this.kt;i&&(s=_r.encode(zr(s))),o=this.Mt?_r.encode(zr(JSON.stringify(this.Mt))):_r.encode("");const a=Or(o,_r.encode("."),s),c=await(async(t,n,e)=>{const i=await fo(t,n,"sign");Kr(t,i);const r=await $r.subtle.sign(ho(t,i.algorithm),i,e);return new Uint8Array(r)})(r,t,a),l={signature:zr(c),payload:""};return i&&(l.payload=Er.decode(s)),this.Tt&&(l.header=this.Tt),this.Mt&&(l.protected=Er.decode(o)),l}}class bo{constructor(t){this.$t=new yo(t)}setProtectedHeader(t){return this.$t.setProtectedHeader(t),this}async sign(t,n){const e=await this.$t.sign(t,n);if(void 0===e.payload)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${e.protected}.${e.payload}.${e.signature}`}}function xo(t,n){if(!Number.isFinite(n))throw new TypeError(`Invalid ${t} input`);return n}class Io{constructor(t={}){if(!Qr(t))throw new TypeError("JWT Claims Set MUST be an object");this.kt=t}setIssuer(t){return this.kt={...this.kt,iss:t},this}setSubject(t){return this.kt={...this.kt,sub:t},this}setAudience(t){return this.kt={...this.kt,aud:t},this}setJti(t){return this.kt={...this.kt,jti:t},this}setNotBefore(t){return"number"==typeof t?this.kt={...this.kt,nbf:xo("setNotBefore",t)}:t instanceof Date?this.kt={...this.kt,nbf:xo("setNotBefore",po(t))}:this.kt={...this.kt,nbf:po(new Date)+go(t)},this}setExpirationTime(t){return"number"==typeof t?this.kt={...this.kt,exp:xo("setExpirationTime",t)}:t instanceof Date?this.kt={...this.kt,exp:xo("setExpirationTime",po(t))}:this.kt={...this.kt,exp:po(new Date)+go(t)},this}setIssuedAt(t){return void 0===t?this.kt={...this.kt,iat:po(new Date)}:t instanceof Date?this.kt={...this.kt,iat:xo("setIssuedAt",po(t))}:this.kt="string"==typeof t?{...this.kt,iat:xo("setIssuedAt",po(new Date)+go(t))}:{...this.kt,iat:xo("setIssuedAt",t)},this}}class So extends Io{setProtectedHeader(t){return this.Mt=t,this}async sign(t,n){const e=new bo(_r.encode(JSON.stringify(this.kt)));if(e.setProtectedHeader(this.Mt),Array.isArray(this.Mt?.crit)&&this.Mt.crit.includes("b64")&&!1===this.Mt.b64)throw new Lr("JWTs MUST NOT use unencoded payload");return e.sign(t,n)}}class Co{constructor(t){var n,e,i,r,o,s,a;const c=t;this.cause=null!==(r=null!==(e=null===(n=null==c?void 0:c.response)||void 0===n?void 0:n.data.statusCode)&&void 0!==e?e:null===(i=null==c?void 0:c.response)||void 0===i?void 0:i.status)&&void 0!==r?r:0,this.errorMessage=null!==(a=null!==(s=null===(o=null==c?void 0:c.response)||void 0===o?void 0:o.data.message)&&void 0!==s?s:null==c?void 0:c.message)&&void 0!==a?a:"There's been an error related to the API request to LiquidCommerce RMN Services."}}class ko{constructor(t){this.apiKey=t}static getInstance(t){return We.getInstance("EncryptedApi",(()=>new ko(t)))}async handleEncryption(t,n){const e=this.getKey(n);try{return this.joseEncrypt(t,e,this.forwardInMinutes(30,n))}catch(t){this.handleError({cause:"Payload decryption error",message:"The decryption of the payload failed"})}}async handleDecryption(t,n){const e=this.getKey(n);return this.joseDecrypt(t,e)}getKey(t){return this.apiKey.slice(Number(`${t}`.replace(/0/g,"").slice(-1)))}forwardInMinutes(t,n){const e=new Date(n);return e.setMinutes(e.getMinutes()+t)}async joseDecrypt(t,n){return async function(t,n,e){const i=await async function(t,n,e){if(t instanceof Uint8Array&&(t=Er.decode(t)),"string"!=typeof t)throw new Jr("Compact JWS must be a string or Uint8Array");const{0:i,1:r,2:o,length:s}=t.split(".");if(3!==s)throw new Jr("Invalid Compact JWS");const a=await async function(t,n,e){if(!Qr(t))throw new Jr("Flattened JWS must be an object");if(void 0===t.protected&&void 0===t.header)throw new Jr('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==t.protected&&"string"!=typeof t.protected)throw new Jr("JWS Protected Header incorrect type");if(void 0===t.payload)throw new Jr("JWS Payload missing");if("string"!=typeof t.signature)throw new Jr("JWS Signature missing or incorrect type");if(void 0!==t.header&&!Qr(t.header))throw new Jr("JWS Unprotected Header incorrect type");let i={};if(t.protected)try{const n=Ar(t.protected);i=JSON.parse(Er.decode(n))}catch{throw new Jr("JWS Protected Header is invalid")}if(!Gr(i,t.header))throw new Jr("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const r={...i,...t.header};let o=!0;if(uo(Jr,new Map([["b64",!0]]),e?.crit,i,r).has("b64")&&(o=i.b64,"boolean"!=typeof o))throw new Jr('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:s}=r;if("string"!=typeof s||!s)throw new Jr('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(o){if("string"!=typeof t.payload)throw new Jr("JWS Payload must be a string")}else if("string"!=typeof t.payload&&!(t.payload instanceof Uint8Array))throw new Jr("JWS Payload must be a string or an Uint8Array instance");let a=!1;"function"==typeof n?(n=await n(i,t),a=!0,lo(s,n,"verify"),Xr(n)&&(n=await async function(t,n){if(!Qr(t))throw new TypeError("JWK must be an object");switch(n||(n=t.alg),t.kty){case"oct":if("string"!=typeof t.k||!t.k)throw new TypeError('missing "k" (Key Value) Parameter value');return Ar(t.k);case"RSA":if(void 0!==t.oth)throw new Pr('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return to({...t,alg:n});default:throw new Pr('Unsupported "kty" (Key Type) Parameter value')}}(n,s))):lo(s,n,"verify");const c=Or(_r.encode(t.protected??""),_r.encode("."),"string"==typeof t.payload?_r.encode(t.payload):t.payload);let l;try{l=Ar(t.signature)}catch{throw new Jr("Failed to base64url decode the signature")}const u=await(async(t,n,e,i)=>{const r=await fo(t,n,"verify");Kr(t,r);const o=ho(t,r.algorithm);try{return await $r.subtle.verify(o,r,e,i)}catch{return!1}})(s,n,l,c);if(!u)throw new qr;let h;if(o)try{h=Ar(t.payload)}catch{throw new Jr("Failed to base64url decode the payload")}else h="string"==typeof t.payload?_r.encode(t.payload):t.payload;const f={payload:h};return void 0!==t.protected&&(f.protectedHeader=i),void 0!==t.header&&(f.unprotectedHeader=t.header),a?{...f,key:n}:f}({payload:r,protected:i,signature:o},n,e),c={payload:a.payload,protectedHeader:a.protectedHeader};return"function"==typeof n?{...c,key:a.key}:c}(t,n,e);if(i.protectedHeader.crit?.includes("b64")&&!1===i.protectedHeader.b64)throw new Lr("JWTs MUST NOT use unencoded payload");const r={payload:wo(i.protectedHeader,i.payload,e),protectedHeader:i.protectedHeader};return"function"==typeof n?{...r,key:i.key}:r}(Tr.AES.decrypt(t,n).toString(Tr.enc.Utf8),Bt.from(n))}async joseEncrypt(t,n,e){const i=new Date,r=new So(t).setProtectedHeader({alg:"HS256"}).setIssuedAt(i.getTime()).setExpirationTime(e),o=await r.sign(Bt.from(n));return Tr.AES.encrypt(o,n).toString()}handleError(t){throw new Co(t)}}class Mo extends d{constructor(t){var n;super(),this.authInfo=t,this.encryptedApi=ko.getInstance(this.authInfo.apiKey),this.objectHelper=He.getInstance(),this.baseUrl=null!==(n=f.url[this.authInfo.env])&&void 0!==n?n:f.url.development;const e={[f.accessHeader]:`Bearer ${this.authInfo.token}`},i=this.getPartnerSite(),r=null==i?void 0:i.startsWith("http");i&&r&&(e["X-Liquid-Partner-Site"]=i),this.client=qe.create({baseURL:this.baseUrl,...this.getConfig(e)})}getPartnerSite(){return window.location?window.location.origin:null}getConfig(t){return{headers:{"Content-Type":"application/json",[h]:this.authInfo.env,...t}}}async get(t,n){return this.createRequest(t,n,this.client.get)}async post(t,n,e){let i=n;if(![o.LOCAL,o.DEVELOPMENT].includes(this.authInfo.env)){const t=(new Date).getTime();e={...e,headers:{...null==e?void 0:e.headers,[l]:"true",[u]:t,[f.apiHeader]:this.authInfo.apiKey}},i={t:await this.encryptedApi.handleEncryption(n,t)}}return this.createRequest(t,e,((t,n)=>this.client.post(t,i,n)))}async createRequest(t,n,e){try{const i=this.createURL(t),r=this.createFullConfig(n),o=await this.sendRequest(i,r,e);return await this.getResponse(o)}catch(t){return{isOk:!1,val:null,isErr:new Co(t)}}}createFullConfig(t){return this.objectHelper.merge(this.getConfig(),null!=t?t:{})}async sendRequest(t,n,e){return e(t,n)}async getResponse(t){var n,e,i,r,o,s,a;let c=(null==t?void 0:t.data)?t.data:null,h=!1,f=0;if((null==t?void 0:t.headers)&&(null===(n=null==t?void 0:t.headers)||void 0===n?void 0:n.has)&&(null===(e=null==t?void 0:t.headers)||void 0===e?void 0:e.has(l))&&(null===(i=null==t?void 0:t.headers)||void 0===i?void 0:i.has(u))&&(null===(r=null==t?void 0:t.headers)||void 0===r?void 0:r.get)&&(h="true"===(null===(o=null==t?void 0:t.headers)||void 0===o?void 0:o.get(l)),f=(null===(s=null==t?void 0:t.headers)||void 0===s?void 0:s.get(u))?Number(null===(a=null==t?void 0:t.headers)||void 0===a?void 0:a.get(u)):0),c&&h&&this.objectHelper.includes(c,"t")&&f>0){const{t:t}=c,n=await this.encryptedApi.handleDecryption(t,f);(null==n?void 0:n.payload)&&(delete n.payload.exp,delete n.payload.iat,c=n.payload)}return{isOk:!0,val:c,isErr:!1}}createURL(t){const n=t&&"/"!==t[0]?`/${t}`:t;return`${this.baseUrl}/api${n}`}}class To extends Mo{constructor(t,n){super({authenticated:!1,apiKey:t,token:"",env:n})}static getInstance(t,n){return We.getInstance("AuthService",(()=>new To(t,n)))}async initialize(){const{isOk:t,isErr:n,val:e}=await this.get("/auth",{headers:{[f.apiHeader]:this.authInfo.apiKey}});if(n)throw new Error(`There was an error during authentication: (${null==n?void 0:n.errorMessage})`);if(!t||!(null==e?void 0:e.data.token))throw new Error("Auth response was not successful");return this.authInfo.token=e.data.token,this.authInfo.authenticated=!0,this.authInfo}}const $o="spot-element",jo="spot-carousel-element",_o="spot-skeleton-element",Eo='\n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n',Oo='\n <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap">\n',zo='\n <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap">\n',Ao={[n.RB_HOMEPAGE_HERO]:{width:1140,height:640},[n.RB_HOMEPAGE_HERO_THREE_TILE]:{width:1140,height:640},[n.RB_HOMEPAGE_HERO_TWO_TILE]:{width:1140,height:640},[n.RB_HOMEPAGE_HERO_FULL_IMAGE]:{width:1140,height:640},[n.RB_LARGE_CATEGORY_IMAGE_TOUT]:{width:468,height:410},[n.RB_SMALL_DISCOVER_TOUT]:{width:224,height:378},[n.RB_SMALL_CATEGORY_IMAGE_TOUT]:{width:224,height:410},[n.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK]:{width:887,height:344},[n.RB_PRODUCT_UPCS]:{width:1,height:1},[n.RB_NAVIGATION_BANNER]:{width:440,height:220},[n.SMALL_RECTANGLE]:{width:180,height:150},[n.MEDIUM_RECTANGLE]:{width:300,height:250},[n.LARGE_RECTANGLE]:{width:336,height:280},[n.VERTICAL_RECTANGLE]:{width:240,height:400},[n.BANNER]:{width:468,height:60},[n.LEADERBOARD]:{width:728,height:90},[n.LARGE_LEADERBOARD]:{width:970,height:90},[n.BILLBOARD]:{width:970,height:250},[n.SKYSCRAPER]:{width:120,height:600},[n.WIDE_SKYSCRAPER]:{width:160,height:600},[n.HALF_PAGE]:{width:300,height:600},[n.SMALL_SQUARE]:{width:200,height:200},[n.SQUARE]:{width:250,height:250},[n.VERTICAL_BANNER]:{width:120,height:240},[n.BUTTON_2]:{width:120,height:60},[n.MICRO_BAR]:{width:88,height:31},[n.POP_UP]:{width:550,height:480},[n.PORTRAIT]:{width:300,height:1050},[n.SMARTPHONE_BANNER_1]:{width:300,height:50},[n.SMARTPHONE_BANNER_2]:{width:320,height:50},[n.MOBILE_PHONE_INTERSTITIAL_1]:{width:640,height:1136},[n.MOBILE_PHONE_INTERSTITIAL_2]:{width:750,height:1334},[n.MOBILE_PHONE_INTERSTITIAL_3]:{width:1080,height:1920},[n.FEATURE_PHONE_SMALL_BANNER]:{width:120,height:20},[n.FEATURE_PHONE_MEDIUM_BANNER]:{width:168,height:28},[n.FEATURE_PHONE_LARGE_BANNER]:{width:216,height:36},[n.IN_TEXT]:{width:1,height:1}};class Ro{constructor(t={}){this.observers=new Map,this.defaultOptions={root:null,rootMargin:"0px",threshold:.5,...t}}observe(t,n,e={}){const i={...this.defaultOptions,...e},r=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&n(t)}))}),i);this.observers.set(t,r),r.observe(t)}unobserve(t){const n=this.observers.get(t);n&&(n.unobserve(t),n.disconnect(),this.observers.delete(t))}unobserveAll(){this.observers.forEach(((t,n)=>{t.unobserve(n),t.disconnect()})),this.observers.clear()}}var No;!function(t){t[t.PLACEMENT_ID=0]="PLACEMENT_ID",t[t.SPOT_ID=1]="SPOT_ID",t[t.SPOT_TYPE=2]="SPOT_TYPE",t[t.EVENTS=3]="EVENTS",t[t.PRODUCT_IDS=4]="PRODUCT_IDS",t[t.CREATED_AT=5]="CREATED_AT"}(No||(No={}));const Do={[r.IMPRESSION]:0,[r.CLICK]:1,[r.PURCHASE]:2,[r.ADD_TO_CART]:3,[r.REMOVE_FROM_CART]:4,[r.ADD_TO_CART_FROM_DETAILS]:5,[r.ADD_TO_WISHLIST]:6,[r.EXPAND_PRODUCT]:7,[r.BUY_NOW]:8};class Po{constructor(){void 0!==window.localStorage?(this.spots=new Map,this.syncLocalStorage(),this.removeExpiredSpots()):console.warn("Local storage is not supported in this environment")}static getInstance(){return Po.instance||(Po.instance=new Po),Po.instance}syncLocalStorage(){const t=window.localStorage.getItem(Po.localStorageKey);if(t)try{const n=this.decryptData(t),e=JSON.parse(n);if(e&&"object"==typeof e){const t={};for(const[n,i]of Object.entries(e))t[n]=this.spotArrayToObject(i);this.spots=this.objectToMap(t)}else this.clearLocalStorage()}catch(t){this.clearLocalStorage()}}setSpot(t,n){var e;n.createdAt=Date.now(),null===(e=this.spots)||void 0===e||e.set(t,n),this.updateLocalStorage()}removeSpot(t){var n;null===(n=this.spots)||void 0===n||n.delete(t),this.updateLocalStorage()}getSpot(t){var n;return null===(n=this.spots)||void 0===n?void 0:n.get(t)}getSpots(){if(this.spots)return this.mapToObject(this.spots)}updateLocalStorage(){if(!this.spots)return;const t=this.mapToObject(this.spots),n={};for(const[e,i]of Object.entries(t))n[e]=this.spotObjectToArray(i);try{const t=this.encryptData(JSON.stringify(n));window.localStorage.setItem(Po.localStorageKey,t)}catch(t){this.clearLocalStorage()}}clearLocalStorage(){window.localStorage.removeItem(Po.localStorageKey)}removeExpiredSpots(){var t;const n=Date.now();null===(t=this.spots)||void 0===t||t.forEach(((t,e)=>{var i,r;n-(null!==(i=t.createdAt)&&void 0!==i?i:0)>Po.spotExpirationTime&&(null===(r=this.spots)||void 0===r||r.delete(e))})),this.updateLocalStorage()}mapToObject(t){return Object.fromEntries(t)}objectToMap(t){return new Map(Object.entries(t))}spotEventObjectToArray(t){return Object.keys(Do).map((n=>{const e=t.find((t=>t.event===n));return e&&e.event===n?e.url:""}))}spotEventArrayToObject(t){return Object.keys(Do).map((n=>({event:n,url:t[Do[n]]})))}spotObjectToArray(t){return[t.placementId,t.spotId,t.spotType,this.spotEventObjectToArray(t.events),t.productIds,t.createdAt]}spotArrayToObject(t){return{placementId:t[No.PLACEMENT_ID],spotId:t[No.SPOT_ID],spotType:t[No.SPOT_TYPE],events:this.spotEventArrayToObject(t[No.EVENTS]),productIds:t[No.PRODUCT_IDS],createdAt:t[No.CREATED_AT]}}encryptData(t){return Po.encryptData?btoa(t):t}decryptData(t){return Po.encryptData?atob(t):t}}Po.localStorageKey="lc_rmn",Po.spotExpirationTime=6048e5,Po.encryptData=!0;class Jo{constructor(){this.subscribers={}}static getInstance(){return Jo.instance||(Jo.instance=new Jo),Jo.instance}subscribe(t,n){return this.subscribers[t]||(this.subscribers[t]=[]),this.subscribers[t].push(n),()=>{this.subscribers[t]=this.subscribers[t].filter((t=>t!==n))}}publish(t,n){this.subscribers[t]&&this.subscribers[t].forEach((t=>t(n)))}}class Lo{constructor({element:t,maxSize:n,minScale:e}){if(this.element=t,!t.parentElement)throw new Error("RmnSdk: Spot element must have a parent container.");this.container=t.parentElement,this.setDimensions(n,e),this.resizeObserver=new ResizeObserver((()=>this.updateElementSize())),this.resizeObserver.observe(this.container),this.updateElementSize()}setDimensions(t,n){if(n<=0||n>1)throw new Error("RmnSdk: Invalid minScale value");const e={width:t.width*n,height:t.height*n};if(t.width<=0||t.height<=0||e.width<=0||e.height<=0)throw new Error("RmnSdk: Invalid dimensions");if(e.width>t.width||e.height>t.height)throw new Error("RmnSdk: Minimum size cannot be greater than maximum size");this.maxSize=t,this.minSize=e,this.aspectRatio=this.maxSize.width/this.maxSize.height}updateElementSize(){const{clientWidth:t,clientHeight:n}=this.container;let e,i;e=Math.min(t,this.maxSize.width),i=e/this.aspectRatio,e>t&&(e=t,i=n*this.aspectRatio),e=Math.max(e,this.minSize.width),i=Math.max(i,this.minSize.height),this.element.style.width=`${e}px`,this.element.style.height=`${i}px`;const r=e/this.maxSize.width,o=i/this.maxSize.height,s=Math.min(r,o);this.element.dispatchEvent(new CustomEvent("spotSizeChanged",{detail:{width:this.maxSize.width,height:this.maxSize.height,newWidth:e,newHeight:i,scale:s}}))}disconnect(){this.resizeObserver.disconnect()}}let qo,Uo,Bo;if(void 0!==window.customElements){class t extends HTMLElement{constructor(){super(),this.currentSlide=0,this.dotElements=[],this.prevButton=null,this.nextButton=null,this.autoplayInterval=null,this.useDots=!1,this.useButtons=!1,this.originalFontSizes=new Map,this.attachShadow({mode:"open"})}connectedCallback(){this.initializeOptions(),this.setupResizeObserver(),this.render(),this.setupCarousel()}disconnectedCallback(){var t;this.stopAutoplay(),null===(t=this.resizeObserver)||void 0===t||t.disconnect()}initializeOptions(){var n,e,i,r,o,s,a,c,l,u;this.useDots=!0===(null===(n=this.data)||void 0===n?void 0:n.useDots)||"object"==typeof(null===(e=this.data)||void 0===e?void 0:e.useDots),this.useButtons=!0===(null===(i=this.data)||void 0===i?void 0:i.useButtons)||"object"==typeof(null===(r=this.data)||void 0===r?void 0:r.useButtons),this.autoplay=null===(s=null===(o=this.data)||void 0===o?void 0:o.autoplay)||void 0===s||s,this.interval=null!==(c=null===(a=this.data)||void 0===a?void 0:a.interval)&&void 0!==c?c:t.defaultInterval,this.dotsOptions={position:"bottom-center",color:"#d9d9d9",activeColor:"#b5914a",size:"base",opacity:1,..."object"==typeof(null===(l=this.data)||void 0===l?void 0:l.useDots)?this.data.useDots:{}},this.buttonsOptions={together:!1,position:"middle-sides",textColor:"#000000",backgroundColor:"#ffffff",borderRadius:"50%",prev:"Prev",next:"Next",size:"base",opacity:1,..."object"==typeof(null===(u=this.data)||void 0===u?void 0:u.useButtons)?this.data.useButtons:{}},this.validateOptions()}setupResizeObserver(){this.data&&!this.data.fluid&&(this.resizeObserver=new Lo({element:this,maxSize:{width:this.data.width,height:this.data.height},minScale:this.data.minScale}),this.addEventListener("spotSizeChanged",this.handleCarouselSizeChanged.bind(this)))}handleCarouselSizeChanged(t){"rbHeroadaksda".startsWith("rb")||this.adjustFontSize(t.detail.scale)}adjustFontSize(t){var n;const e=Ze(t),i=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelectorAll("h1, h2, h3, h4, p, span");null==i||i.forEach((t=>{if(t instanceof HTMLElement){if(!this.originalFontSizes.has(t)){const n=parseFloat(window.getComputedStyle(t).fontSize);this.originalFontSizes.set(t,n)}const n=this.originalFontSizes.get(t)*e;t.style.fontSize=`${n}px`}}))}render(){var t;if(!this.shadowRoot)return;const n=document.createElement("style");n.textContent=(({width:t,height:n,fluid:e})=>`\n :host {\n position: relative;\n display: inline-block;\n margin: 0;\n overflow: hidden;\n width: ${e?"100%":`${t}px`};\n height: ${e?"100%":`${n}px`};\n }\n\n .slides {\n position: relative;\n height: 100%;\n width: 100%;\n display: flex;\n transition: transform 0.5s ease-in-out;\n }\n\n .slide {\n flex: 0 0 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n\n .slide.active {\n display: flex;\n }\n\n .dots {\n position: absolute;\n display: flex;\n align-items: center;\n gap: 8px;\n opacity: var(--opacity, 1);\n }\n\n .dots.small .dot {\n width: 8px;\n height: 8px;\n }\n\n .dots.base .dot {\n width: 12px;\n height: 12px;\n }\n\n .dots.large .dot {\n width: 16px;\n height: 16px;\n }\n\n .dots .dot {\n border-radius: 50%;\n cursor: pointer;\n transition: all 0.3s ease;\n }\n\n .dots.top-left,\n .dots.bottom-left {\n left: 10px;\n }\n\n .dots.top-center,\n .dots.bottom-center {\n left: 50%;\n transform: translateX(-50%);\n }\n\n .dots.top-right,\n .dots.bottom-right {\n right: 10px;\n }\n\n .dots.top-left,\n .dots.top-center,\n .dots.top-right {\n top: 10px;\n }\n\n .dots.bottom-left,\n .dots.bottom-center,\n .dots.bottom-right {\n bottom: 10px;\n }\n\n .dots.middle-left {\n left: 10px;\n top: 50%;\n transform: translateY(-50%);\n flex-direction: column;\n }\n\n .dots.middle-right {\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n flex-direction: column;\n }\n\n .buttons {\n opacity: var(--opacity, 1);\n }\n\n .buttons button {\n background-color: #00000080;\n color: #fff;\n border: none;\n padding: 10px;\n cursor: pointer;\n transition: background-color 0.3s ease;\n }\n\n .buttons.small button {\n padding: 6px;\n }\n\n .buttons.base button {\n padding: 10px;\n }\n\n .buttons.large button {\n padding: 14px;\n }\n\n .buttons button:hover {\n background-color: #000000b3;\n }\n\n .buttons.buttons-separate button {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n }\n\n .buttons.buttons-separate .prev-button {\n left: 10px;\n }\n\n .buttons.buttons-separate .next-button {\n right: 10px;\n }\n\n .buttons.buttons-together {\n position: absolute;\n display: flex;\n gap: 10px;\n }\n\n .buttons.buttons-together.top-left,\n .buttons.buttons-together.bottom-left {\n left: 10px;\n }\n\n .buttons.buttons-together.top-center,\n .buttons.buttons-together.bottom-center {\n left: 50%;\n transform: translateX(-50%);\n }\n\n .buttons.buttons-together.top-right,\n .buttons.buttons-together.bottom-right {\n right: 10px;\n }\n\n .buttons.buttons-together.top-left,\n .buttons.buttons-together.top-center,\n .buttons.buttons-together.top-right {\n top: 10px;\n }\n\n .buttons.buttons-together.bottom-left,\n .buttons.buttons-together.bottom-center,\n .buttons.buttons-together.bottom-right {\n bottom: 10px;\n }\n\n .buttons.buttons-together.middle-left,\n .buttons.buttons-together.middle-right {\n top: 50%;\n transform: translateY(-50%);\n flex-direction: column;\n }\n\n .buttons.buttons-together.middle-left {\n left: 10px;\n }\n\n .buttons.buttons-together.middle-right {\n right: 10px;\n }\n\n @media (max-width: 768px) {\n .buttons button {\n padding: 8px 12px;\n font-size: 14px;\n }\n }\n`)(this.data),this.shadowRoot.appendChild(n);const e=this.renderSlides();if(this.shadowRoot.appendChild(e),this.slidesContainer=null!==(t=this.shadowRoot.querySelector(".slides"))&&void 0!==t?t:void 0,this.useDots){const t=this.renderDots();t&&this.shadowRoot.appendChild(t)}if(this.useButtons){const t=this.renderButtons();t&&this.shadowRoot.appendChild(t)}}setupCarousel(){this.setupDots(),this.setupButtons(),this.autoplay&&this.startAutoplay(),this.updateCarousel()}renderSlides(){const t=document.createElement("div");return t.className="slides",this.slides.forEach((n=>{const e=document.createElement("div");e.className="slide",n instanceof HTMLElement&&e.appendChild(n),t.appendChild(e)})),t}renderDots(){const t=document.createElement("div");return t.className=`dots ${this.dotsOptions.position} ${this.dotsOptions.size}`,t.style.cssText=`--opacity: ${this.dotsOptions.opacity}`,this.slides.forEach(((n,e)=>{const i=document.createElement("span");i.className="dot "+(e===this.currentSlide?"active":""),i.style.backgroundColor=this.dotsOptions.color,t.appendChild(i)})),t}renderButtons(){const t=document.createElement("div"),n=this.buttonsOptions.together?`buttons-together ${this.buttonsOptions.position}`:"buttons-separate";return t.className=`buttons ${n} ${this.buttonsOptions.size}`,t.style.cssText=`--opacity: ${this.buttonsOptions.opacity}`,this.prevButton=this.createButton("prev-button",this.buttonsOptions.prev),this.nextButton=this.createButton("next-button",this.buttonsOptions.next),t.appendChild(this.prevButton),t.appendChild(this.nextButton),t}createButton(t,n){const e=document.createElement("button");return e.className=t,e.textContent=n,e.style.color=this.buttonsOptions.textColor,e.style.backgroundColor=this.buttonsOptions.backgroundColor,e.style.borderRadius=this.buttonsOptions.borderRadius,e}setupDots(){this.shadowRoot&&this.useDots&&(this.dotElements=Array.from(this.shadowRoot.querySelectorAll(".dot")),this.dotElements.forEach(((t,n)=>{t.addEventListener("click",(()=>{this.goToSlide(n),this.resetAutoplay()}))})))}setupButtons(){var t,n;this.useButtons&&(null===(t=this.prevButton)||void 0===t||t.addEventListener("click",(()=>{this.prevSlide(),this.resetAutoplay()})),null===(n=this.nextButton)||void 0===n||n.addEventListener("click",(()=>{this.nextSlide(),this.resetAutoplay()})))}nextSlide(){this.goToSlide((this.currentSlide+1)%this.slides.length)}prevSlide(){this.goToSlide((this.currentSlide-1+this.slides.length)%this.slides.length)}goToSlide(t){this.currentSlide=t,this.updateCarousel()}updateCarousel(){if(!this.slidesContainer)return;const t=100*-this.currentSlide;this.slidesContainer.style.transform=`translateX(${t}%)`,this.updateDots()}updateDots(){this.useDots&&this.dotElements.forEach(((t,n)=>{const e=n===this.currentSlide;t.classList.toggle("active",e),t.style.backgroundColor=e?this.dotsOptions.activeColor:this.dotsOptions.color}))}startAutoplay(){this.autoplayInterval=window.setInterval((()=>this.nextSlide()),this.interval)}stopAutoplay(){null!==this.autoplayInterval&&(window.clearInterval(this.autoplayInterval),this.autoplayInterval=null)}resetAutoplay(){this.autoplay&&(this.stopAutoplay(),this.startAutoplay())}validateOptions(){this.validatePosition(this.dotsOptions.position,"dotsPosition","bottom-center"),this.validateButtonsPosition()}validatePosition(n,e,i){t.validPositions.includes(n)||(console.warn(`Invalid ${e}: ${n}. Defaulting to '${i}'.`),"dotsPosition"===e?this.dotsOptions.position=i:"buttonsPosition"===e&&(this.buttonsOptions.position=i))}validateButtonsPosition(){this.useButtons&&(this.buttonsOptions.together?this.validatePosition(this.buttonsOptions.position,"buttonsPosition","bottom-center"):"middle-sides"!==this.buttonsOptions.position&&(console.warn(`Invalid buttonsPosition: ${this.buttonsOptions.position}. When buttons are not together, only 'middle-sides' is allowed. Defaulting to 'middle-sides'.`),this.buttonsOptions.position="middle-sides"))}}t.defaultInterval=5e3,t.validPositions=["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right","middle-left","middle-right","middle-sides"],qo=t}if(void 0!==window.customElements){class t extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.shadowRoot&&this.data&&(this.shadowRoot.innerHTML=function({fluid:t,width:n,height:e}){return`\n <style>\n :host {\n display: block;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n width: ${t?"100%":`${n}px`};\n height: ${t?"100%":`${e}px`};\n background: #ffffff;\n padding: 20px;\n border-radius: 5px;\n }\n\n .content {\n height: 100%;\n display: flex;\n flex-direction: column;\n gap: 20px;\n }\n\n .image-placeholder {\n width: 100%;\n height: 100%;\n background: #f0f0f0;\n border-radius: 4px;\n position: relative;\n overflow: hidden;\n }\n\n .lines-container {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n }\n\n .line {\n height: 20px;\n background: #f0f0f0;\n border-radius: 4px;\n margin-bottom: 15px;\n position: relative;\n overflow: hidden;\n }\n\n .image-placeholder::after,\n .line::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.5) 50%,\n rgba(255, 255, 255, 0) 100%\n );\n animation: shimmer 1.5s infinite;\n }\n\n .line.header {\n width: 25%;\n }\n\n .line.description {\n width: 65%;\n }\n\n .line.button {\n width: 40%;\n }\n\n @keyframes shimmer {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(100%);\n }\n }\n </style>\n\n <div class="content">\n <div class="image-placeholder"></div>\n <div class="lines-container">\n <div class="line header"></div>\n <div class="line description"></div>\n <div class="line button"></div>\n </div>\n </div>\n `}(this.data))}}Uo=t}if(void 0!==window.customElements){class t extends HTMLElement{constructor(){super(),this.originalFontSizes=new Map,this.attachShadow({mode:"open"})}connectedCallback(){this.setupResizeObserver(),this.render()}disconnectedCallback(){var t;this.removeEventListener("spotSizeChanged",this.handleSpotSizeChanged),null===(t=this.resizeObserver)||void 0===t||t.disconnect()}setupResizeObserver(){this.data&&!this.data.fluid&&(this.resizeObserver=new Lo({element:this,maxSize:{width:this.data.width,height:this.data.height},minScale:this.data.minScale}),this.addEventListener("spotSizeChanged",this.handleSpotSizeChanged.bind(this)))}handleSpotSizeChanged(t){var n,e,i;null!==(i=null===(e=null===(n=this.data)||void 0===n?void 0:n.spot)||void 0===e?void 0:e.startsWith("rb"))&&void 0!==i&&i||this.adjustFontSize(t.detail.scale)}adjustFontSize(t){var n;const e=Ze(t),i=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelectorAll("h1, h2, h3, h4, p, span");null==i||i.forEach((t=>{if(t instanceof HTMLElement){if(!this.originalFontSizes.has(t)){const n=parseFloat(window.getComputedStyle(t).fontSize);this.originalFontSizes.set(t,n)}const n=this.originalFontSizes.get(t)*e;t.style.fontSize=`${n}px`}}))}render(){if(!this.shadowRoot||!this.data||!this.content)return;const t=this.getTemplateStyle(this.data.width,this.data.height);this.content instanceof HTMLElement&&this.shadowRoot.replaceChildren(t,this.content)}getTemplateStyle(t,n){const e=document.createElement("style");return e.textContent=`\n :host {\n display: block;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n width: ${this.data.fluid?"100%":`${t}px`};\n height: ${this.data.fluid?"100%":`${n}px`};\n }\n `,e}}Bo=t}class Fo{static getInstance(){return We.getInstance("ElementService",(()=>new Fo))}createSpotElement({content:t,config:n}){var e;if(!this.ensureBrowserEnvironmentAndDefineElement())return null;const i=document.createElement($o);return i.data={spot:null==n?void 0:n.spot,fluid:null!==(e=null==n?void 0:n.fluid)&&void 0!==e&&e,...n},i.content=t,i}createCarouselElement({slides:t,config:n}){if(!this.ensureBrowserEnvironmentAndDefineElement())return null;const e=document.createElement(jo);return e.data={spot:null==n?void 0:n.spot,fluid:!1,...n},e.slides=t,e}createSkeletonElement(t){if(!this.ensureBrowserEnvironmentAndDefineElement())return null;const n=document.createElement(_o),e=Ao[t.spotType];return n.data={fluid:t.fluid,...e},n}overrideSpotColors(t,n){if(!n)return t;const{textColor:e,backgroundColor:i,ctaTextColor:r,ctaBorderColor:o}=n;return{...t,textColor:null!=e?e:t.textColor,backgroundColor:null!=i?i:t.backgroundColor,ctaTextColor:null!=r?r:t.ctaTextColor,ctaBorderColor:null!=o?o:t.ctaBorderColor}}ensureBrowserEnvironmentAndDefineElement(){return"undefined"==typeof document?(console.warn("LiquidCommerce Rmn Sdk: Methods which create elements are only available in browser environments."),!1):(window.customElements.get($o)||window.customElements.define($o,Bo),window.customElements.get(jo)||window.customElements.define(jo,qo),window.customElements.get(_o)||window.customElements.define(_o,Uo),!0)}}function Wo(t,n=1){const e=t.replace("#","");return`rgba(${parseInt(e.substring(0,2),16)}, ${parseInt(e.substring(2,4),16)}, ${parseInt(e.substring(4,6),16)}, ${n})`}function Ho(t,n=""){if(!t)return n;const{size:e,opacity:i,color:r}=t,o={small:10,base:30,large:50}[e],s={light:.1,medium:.4,dark:.6}[i],a=Wo(r,1),c=Wo(r,0);return`${a} 0%, ${Wo(r,s)} ${o}%, ${c} 100%`}function Yo(t){return`\n ${Eo}\n ${Oo}\n ${zo}\n ${(({primaryImage:t,secondaryImage:n})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: row;\n background-color: #FFFFFF;\n gap: 0.5cqw;\n cursor: pointer;\n color: inherit;\n }\n .big-image {\n width: 65%;\n height: 100%;\n background-image: url("${t}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n .main {\n width: 35%;\n height: 100%;\n display: flex;\n flex-direction: column;\n gap: 0.5cqw;\n }\n .small-image {\n width: 100%;\n height: 50%;\n background-image: url("${n}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n .text {\n background: #E8E6DE;\n text-align: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 50%;\n width: 100%;\n padding: 5% 10%;\n box-sizing: border-box;\n font-family: "Source Sans 3", sans-serif;\n }\n .header {\n font-size: 2.2cqw;\n color: #000000;\n font-style: normal;\n font-weight: 400;\n font-family: "Cormorant", serif;\n margin: 0;\n }\n .description {\n font-size: 1.2cqw;\n color: #000000;\n font-style: normal;\n font-weight: 400;\n margin: 1cqh 0;\n }\n .button {\n font-size: 1cqw;\n color: #000000;\n background-color: transparent;\n font-style: normal;\n font-weight: 700;\n text-decoration: underline;\n text-transform: uppercase;\n border: none;\n cursor: pointer;\n padding: 0;\n transition: opacity 0.3s ease;\n }\n .content:hover .button {\n opacity: 0.7;\n }\n @container (max-width: 600px) {\n .header {\n font-size: 3cqw;\n }\n .description {\n font-size: 1.6cqw;\n margin: 0;\n }\n .button {\n font-size: 1.4cqw;\n }\n }\n </style>\n`)(t)}\n <div class="content">\n <div class="big-image"></div>\n <div class="main">\n <div class="small-image"></div>\n <div class="text">\n <h2 class="header">${t.header}</h2>\n <p class="description">${t.description}</p>\n <span class="button">${t.ctaText}</span>\n </div>\n </div>\n </div>\n `}function Vo(t){return`\n ${Eo}\n ${Oo}\n ${zo}\n ${(({primaryImage:t})=>`\n <style>\n .content {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: flex-start;\n width: 100%;\n height: 100%;\n font-family: "Source Sans 3", sans-serif;\n background-image: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%), url("${t}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n padding: 3%;\n box-sizing: border-box;\n cursor: pointer;\n color: #FFF;\n }\n .text-container {\n max-width: 50%;\n }\n .header {\n font-size: clamp(1.8cqw, 2.4cqw, 2.8cqw);\n font-style: normal;\n font-weight: 700;\n font-family: "Cormorant", serif;\n line-height: 1.2;\n margin: 0 0 0.8cqh 0;\n }\n .description {\n font-size: clamp(1.2cqw, 1.4cqw, 1.6cqw);\n font-style: normal;\n font-weight: 400;\n line-height: 1.4;\n margin: 0 0 1.2cqh 0;\n }\n .cta-button {\n font-size: clamp(1cqw, 1.1cqw, 1.4cqw);\n border-radius: 0.4cqh;\n border: 0.1cqh solid #FFF;\n background: rgba(255, 255, 255, 0.2);\n display: inline-block;\n padding: 0.8cqh 1.6cqw;\n transition: background-color 0.3s, color 0.3s;\n }\n .content:hover .cta-button {\n background-color: #FFF;\n color: #000;\n }\n @container (max-width: 600px) {\n .text-container {\n max-width: 100%;\n }\n .header {\n font-size: clamp(1.6cqw, 4vw, 2.4cqw);\n margin: 0 0 0.4cqh 0;\n }\n .description {\n font-size: clamp(1cqw, 2.5vw, 1.4cqw);\n margin: 0 0 .3cqh 0;\n }\n .cta-button {\n font-size: clamp(0.9cqw, 2vw, 1.2cqw);\n padding: 0.4cqh 0.8cqw;\n }\n }\n </style>\n`)(t)}\n <div class="content">\n <div class="text-container">\n <h2 class="header">${t.header}</h2>\n <p class="description">${t.description}</p>\n <span class="cta-button">${t.ctaText}</span>\n </div>\n </div>\n `}function Zo(t){return`\n ${Eo}\n ${Oo}\n ${zo}\n ${(({primaryImage:t})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: row;\n align-items: stretch;\n cursor: pointer;\n color: inherit;\n }\n .text {\n width: 40%;\n padding: 4cqh 5cqw;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n gap: 0.7cqh;\n font-family: "Source Sans 3", sans-serif;\n background-color: #F9F7F5;\n }\n .header {\n font-size: clamp(18px, 4cqw, 36px);\n color: #000000;\n font-style: normal;\n font-weight: 300;\n font-family: "Cormorant", serif;\n margin: 0;\n line-height: 1.2;\n }\n .description {\n font-size: clamp(12px, 2cqw, 16px);\n color: #000000;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n line-height: 1.5;\n }\n .button {\n font-size: clamp(10px, 1.5cqw, 14px);\n border: 1px solid #000000;\n border-radius: 5px;\n display: inline-block;\n padding: 0.7cqh 1.5cqw;\n color: #000000;\n font-weight: 600;\n text-transform: uppercase;\n transition: background-color 0.3s, color 0.3s;\n }\n .content:hover .button {\n background-color: #000000;\n color: #FFFFFF;\n }\n .image {\n width: 60%;\n background-image: url("${t}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n @container (max-width: 600px) {\n .text {\n padding: 1cqh 4cqw;\n width: 60%;\n }\n .image {\n width: 40%;\n }\n .header {\n font-size: clamp(12px, 3cqw, 24px);\n line-height: 0.5;\n }\n .description {\n font-size: clamp(10px, 2.5cqw, 14px);\n line-height: 1;\n }\n .button {\n font-size: clamp(6px, 2cqw, 12px);\n padding: 0.4cqh 1cqw;\n }\n }\n </style>\n`)(t)}\n <div class="content">\n <div class="text">\n <h2 class="header">${t.header}</h2>\n <p class="description">${t.description}</p>\n <span class="button">${t.ctaText}</span>\n </div>\n <div class="image"></div>\n </div>\n `}function Go(t){return`\n ${Eo}\n ${Oo}\n ${zo}\n \n <style>\n .content {\n display: inline-block;\n cursor: pointer;\n max-width: 100%;\n padding: 0.5em;\n background-color: #fff;\n }\n .header {\n display: block;\n font-size: 1.1em;\n font-weight: 500;\n color: #333;\n font-family: "Cormorant", serif;\n line-height: 1.2;\n margin-bottom: 0.2em;\n }\n .description {\n display: block;\n font-size: 0.9em;\n color: #4d4d4d;\n font-family: "Source Sans 3", sans-serif;\n line-height: 1.3;\n }\n </style>\n\n <div class="content">\n <span class="header">${t.header}</span>\n <span class="description">${t.description}</span>\n </div>\n `}function Qo(t){return`\n ${Eo}\n ${Oo}\n ${zo}\n ${(({primaryImage:t})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n background-image: url("${t}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n font-family: "Source Sans 3", sans-serif;\n cursor: pointer;\n color: inherit;\n }\n .text {\n width: 50%;\n padding-left: 3%;\n display: flex;\n flex-direction: column;\n gap: 0.3cqh;\n }\n .header {\n font-size: clamp(1.8cqh, 2.2cqw, 3cqh);\n font-weight: 300;\n color: #333;\n font-family: "Cormorant", serif;\n line-height: 1.1;\n margin: 0;\n }\n .description {\n font-size: clamp(1.2cqh, 1.3cqw, 2cqh);\n color: #4d4d4d;\n line-height: 1.2;\n margin: 0;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n .cta-button {\n font-size: clamp(1cqh, 1.1cqw, 1.5cqh);\n font-weight: 600;\n color: #98773c;\n text-transform: uppercase;\n margin-top: 0.3cqh;\n display: inline-block;\n position: relative;\n width: fit-content;\n }\n .cta-button::after {\n content: '';\n position: absolute;\n left: 0;\n bottom: -0.2cqh;\n width: 100%;\n height: 1px;\n background-color: #98773c;\n transition: opacity 0.3s ease;\n }\n .content:hover .cta-button::after {\n opacity: 0.7;\n }\n\n @container (max-height: 100px) {\n .text {\n gap: 0.1cqh;\n }\n .description {\n -webkit-line-clamp: 1;\n }\n .cta-button::after {\n bottom: -0.1cqh;\n }\n }\n </style>\n`)(t)}\n <div class="content">\n <div class="text">\n <h2 class="header">${t.header}</h2>\n <p class="description">${t.description}</p>\n <span class="cta-button">${t.ctaText}</span>\n </div>\n </div>\n `}function Ko(t){return`\n ${Eo}\n ${Oo}\n ${zo}\n ${(({primaryImage:t})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n background-image: url("${t}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n font-family: "Source Sans 3", sans-serif;\n cursor: pointer;\n color: #FFF;\n }\n .text {\n width: 50%;\n padding-right: 3%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 0.3cqh;\n }\n .header {\n font-size: clamp(1.8cqh, 2.2cqw, 3cqh);\n font-weight: 300;\n font-family: "Cormorant", serif;\n line-height: 1.1;\n margin: 0;\n text-align: left;\n }\n .description {\n font-size: clamp(1.2cqh, 1.3cqw, 2cqh);\n line-height: 1.2;\n margin: 0;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-align: left;\n }\n .cta-button {\n font-size: clamp(1cqh, 1.1cqw, 1.5cqh);\n font-weight: 600;\n color: #FFF;\n text-transform: uppercase;\n margin-top: 0.3cqh;\n display: inline-block;\n padding: 0.5cqh 1cqw;\n border: 1px solid #FFF;\n border-radius: 4px;\n transition: background-color 0.3s ease;\n }\n .content:hover .cta-button {\n background-color: rgba(255, 255, 255, 0.2);\n }\n\n @container (max-height: 100px) {\n .text {\n gap: 0.1cqh;\n }\n .description {\n -webkit-line-clamp: 1;\n }\n .cta-button {\n padding: 0.3cqh 0.8cqw;\n }\n }\n </style>\n`)(t)}\n <div class="content">\n <div class="text">\n <h2 class="header">${t.header}</h2>\n <p class="description">${t.description}</p>\n <span class="cta-button">${t.ctaText}</span>\n </div>\n </div>\n `}function Xo(t){return`\n ${Eo}\n ${Oo}\n ${zo}\n ${(({primaryImage:t})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-color: #fff;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n }\n .image {\n width: 100%;\n height: 80%;\n background-image: url("${t}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n }\n .text {\n text-align: left;\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: auto;\n width: 100%;\n position: relative;\n overflow: hidden;\n font-family: "Source Sans 3", sans-serif;\n }\n .header {\n font-size: 5.5cqw;\n font-weight: 400;\n color: black;\n padding: 10px 10px 0 10px;\n font-family: "Cormorant", serif;\n }\n .description {\n font-size: 4cqw;\n color: rgb(77, 77, 77);\n padding: 0 10px 10px 10px;\n }\n </style>\n`)(t)}\n <div class="content">\n <div class="image"></div>\n <div class="text">\n <span class="header">${t.header}</span>\n <span class="description">${t.description}</span>\n </div>\n </div>\n `}function ts(t){return`\n ${Eo}\n ${Oo}\n ${zo}\n ${(({primaryImage:t})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.6) 100%), url("${t}") center/cover no-repeat;\n border-radius: 2%;\n overflow: hidden;\n cursor: pointer;\n color: #FFF;\n }\n .text {\n padding: 5%;\n font-family: "Source Sans 3", sans-serif;\n }\n .header {\n font-family: "Cormorant", serif;\n font-size: 7cqw;\n font-weight: 300;\n line-height: 1.2;\n margin: 0 0 0.5cqw 0;\n }\n .description {\n font-size: 4cqw;\n line-height: 1.4;\n margin: 0 0 2cqw 0;\n }\n .cta-button {\n display: inline-block;\n padding: 1.5cqw 3cqw;\n border: 0.3cqw solid rgba(255, 255, 255, 0.5);\n border-radius: 1cqw;\n background: rgba(255, 255, 255, 0.2);\n color: #FFF;\n font-size: 3.5cqw;\n transition: background-color 0.3s ease;\n }\n .content:hover .cta-button {\n background: rgba(255, 255, 255, 0.3);\n }\n\n @container (max-width: 380px) {\n .header {\n font-size: 8cqw;\n }\n .description {\n font-size: 4.5cqw;\n }\n .cta-button {\n font-size: 4cqw;\n padding: 2cqw 4cqw;\n }\n }\n\n @container (min-width: 381px) and (max-width: 480px) {\n .header {\n font-size: 7.5cqw;\n }\n .description {\n font-size: 4.2cqw;\n }\n .cta-button {\n font-size: 3.8cqw;\n }\n }\n\n @container (min-width: 481px) {\n .header {\n font-size: 6.5cqw;\n }\n .description {\n font-size: 3.8cqw;\n }\n .cta-button {\n font-size: 3.2cqw;\n }\n }\n </style>\n`)(t)}\n <div class="content">\n <div class="text">\n <h2 class="header">${t.header}</h2>\n <p class="description">${t.description}</p>\n <span class="cta-button">${t.ctaText}</span>\n </div>\n </div>\n `}function ns(t){return`\n ${Eo}\n ${Oo}\n ${zo}\n ${(({primaryImage:t})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-color: #fff;\n cursor: pointer;\n display: flex;\n justify-content: flex-start;\n align-items: flex-end;\n border-radius: 1cqw;\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 52.1%, #000 100%), url("${t}") lightgray 50% / cover no-repeat;\n overflow: hidden;\n }\n .header {\n font-size: 7cqw;\n color: #FFF;\n font-style: normal;\n font-weight: 400;\n line-height: 1.2;\n font-family: "Cormorant", serif;\n padding: 0 5cqw 5cqw 5cqw;\n }\n\n @container (min-width: 400px) {\n .header {\n font-size: 6cqw;\n padding: 0 4cqw 4cqw 4cqw;\n }\n }\n\n @container (min-width: 800px) {\n .header {\n font-size: 5cqw;\n padding: 0 3cqw 3cqw 3cqw;\n }\n }\n </style>\n`)(t)}\n <div class="content">\n <span class="header">${t.header}</span>\n </div>\n `}function es(t){return`\n ${Eo}\n ${Oo}\n ${zo}\n ${(({primaryImage:t})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-image: url("${t}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n background-color: #000;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n font-family: "Source Sans 3", sans-serif;\n cursor: pointer;\n color: inherit;\n }\n .text {\n padding: 5%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n text-align: left;\n gap: 1.5cqw;\n background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 30%);\n }\n .header {\n font-size: 7cqw;\n color: #FFF;\n font-weight: 300;\n line-height: 1.2;\n font-family: "Cormorant", serif;\n margin: 0;\n }\n .description {\n font-size: 4cqw;\n color: #CCC;\n font-weight: 400;\n line-height: 1.3;\n margin: 0.5cqw 0 1.5cqw 0;\n }\n .cta-button {\n font-size: 3.5cqw;\n font-weight: 600;\n color: #B59048;\n text-transform: uppercase;\n letter-spacing: 0.1em;\n }\n .content:hover .cta-button {\n opacity: 0.8;\n }\n </style>\n`)(t)}\n <div class="content">\n <div class="text">\n <h2 class="header">${t.header}</h2>\n <p class="description">${t.description}</p>\n <span class="cta-button">${t.ctaText}</span>\n </div>\n </div>\n `}function is(t){return`\n ${(({primaryImage:t})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-image: url("${t}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n display: block;\n }\n </style>\n`)(t)}\n <div class="content"></div>\n `}function rs(t,n){const{prefix:e=""}=n;return`\n ${(({primaryImage:t,mobilePrimaryImage:n=t},{prefix:e})=>`\n<style>\n .${e} {\n display: block;\n width: 100%;\n height: 100%;\n background-image: url("${n}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n cursor: pointer;\n container-type: inline-size;\n }\n\n @container (min-width: 640px) {\n .${e} {\n background-image: url("${t}");\n }\n }\n</style>\n`)(t,n)}\n <div class="${e}"></div>\n `}function os(t,n){const{prefix:e=""}=n;return`\n ${Eo}\n ${Oo}\n ${zo}\n ${(({textColor:t="#ffffff",ctaTextColor:n=t,ctaBorderColor:e=n,primaryImage:i,mobilePrimaryImage:r=i},{prefix:o,overlay:s})=>{const a=Ho(s,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%");return`\n <style>\n .${o} {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: flex-start;\n width: 100%;\n height: 100%;\n background-image: linear-gradient(to top, ${a}), url("${r}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n padding: 3%;\n box-sizing: border-box;\n color: ${t};\n cursor: pointer;\n }\n\n .${o}__text {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n width: 100%;\n height: fit-content;\n gap: 8px;\n }\n\n .${o}__header {\n font-size: 24px;\n margin: 0;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${o}__description {\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin: 0;\n }\n\n .${o}__cta-button {\n font-size: 8px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n border-radius: 5px;\n border: 0.5px solid ${e};\n display: inline-block;\n padding: 7px 20px;\n color: ${n};\n transition: background-color 0.3s ease;\n }\n\n .${o}:hover .cta-button {\n background-color: ${7===e.length?`${e}15`:`${e}`};\n }\n\n @container (min-width: 640px) {\n .${o} {\n background-image: linear-gradient(to top, ${a}), url("${i}");\n }\n }\n\n @container (min-width: 768px) {\n .${o}__primary-image {\n width: 66.66666%;\n height: 100%;\n }\n\n .${o}__main {\n flex-direction: column;\n height: 100%;\n width: 33.33333%;\n }\n\n .${o}__secondary-image {\n width: 100%;\n height: 50%;\n }\n\n .${o}__description {\n font-size: 12px;\n }\n\n .${o}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${o}__header {\n font-size: 26px;\n }\n\n .${o}__description {\n font-size: 13px;\n }\n\n .${o}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${o}__header {\n font-size: 28px;\n }\n\n .${o}__description {\n font-size: 14px;\n }\n\n .${o}__cta-button {\n font-size: 14px;\n }\n }\n </style>\n `})(t,n)}\n <div class="${e}">\n <div class="${e}__text">\n ${t.header?`<h2 class="${e}__header">${t.header}</h2>`:""}\n ${t.description?`<p class="${e}__description">${t.description}</p>`:""}\n ${t.ctaText?`<span class="${e}__cta-button">${t.ctaText}</span>`:""}\n </div>\n </div>\n`}function ss(t,n){const{prefix:e=""}=n;return`\n ${Eo}\n ${Oo}\n ${zo}\n ${(({textColor:t="#212121",backgroundColor:n="#e8e6de",ctaTextColor:e=t,primaryImage:i,mobilePrimaryImage:r=i,secondaryImage:o,mobileSecondaryImage:s=o},{prefix:a})=>`\n<style>\n .${a} {\n width: 100%;\n height: 100%;\n display: block;\n position: relative;\n }\n\n .${a}__content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n background-color: transparent;\n gap: 6px;\n color: inherit;\n cursor: pointer;\n }\n\n .${a}__primary-image {\n width: 100%;\n height: 60%;\n background-image: url("${r}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n\n .${a}__main {\n width: 100%;\n height: 40%;\n display: flex;\n flex-direction: row;\n gap: 6px;\n }\n\n .${a}__secondary-image {\n width: 50%;\n height: 100%;\n background-image: url("${s}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n\n .${a}__text {\n color: ${t};\n background-color: ${n};\n text-align: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 50%;\n height: 100%;\n gap: 10px;\n padding: 0 10px;\n box-sizing: border-box;\n }\n\n .${a}__header {\n color: inherit;\n margin: 0;\n font-size: 18px;\n font-family: "Cormorant";\n font-style: normal;\n font-weight: 700;\n line-height: normal;\n }\n\n .${a}__description {\n color: inherit;\n margin: 0;\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n }\n\n .${a}__cta-button {\n color: ${e};\n background-color: transparent;\n font-size: 8px;\n font-style: normal;\n font-weight: 700;\n font-family: "Source Sans 3", system-ui;\n text-decoration-line: underline;\n text-transform: uppercase;\n letter-spacing: 1.4px;\n border: none;\n cursor: pointer;\n padding: 0;\n transition: opacity 0.3s ease;\n }\n\n .${a}__content:hover .${a}__cta-button {\n opacity: 0.8;\n }\n\n @container (min-width: 640px) {\n .${a}__primary-image {\n background-image: url("${i}");\n }\n\n .${a}__secondary-image {\n background-image: url("${o}");\n }\n }\n\n @container (min-width: 768px) {\n .${a}__content {\n flex-direction: row;\n }\n\n .${a}__primary-image {\n width: 66.66666%;\n height: 100%;\n }\n\n .${a}__main {\n flex-direction: column;\n height: 100%;\n width: 33.33333%;\n }\n\n .${a}__secondary-image {\n width: 100%;\n height: 50%;\n }\n\n .${a}__text {\n width: 100%;\n height: 50%;\n }\n .${a}__header {\n font-size: 22px;\n }\n .${a}__description {\n font-size: 12px;\n }\n .${a}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${a}__header {\n font-size: 24px;\n }\n .${a}__description {\n font-size: 13px;\n }\n .${a}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${a}__header {\n font-size: 28px;\n }\n .${a}__description {\n font-size: 14px;\n }\n .${a}__cta-button {\n font-size: 14px;\n }\n }\n</style>\n`)(t,n)}\n <div class="${e}">\n <div class="${e}__content">\n <div class="${e}__primary-image"></div>\n <div class="${e}__main">\n <div class="${e}__secondary-image"></div>\n <div class="${e}__text">\n ${t.header?`<h2 class="${e}__header">${t.header}</h2>`:""}\n ${t.description?`<p class="${e}__description">${t.description}</p>`:""}\n ${t.ctaText?`<span class="${e}__cta-button">${t.ctaText}</span>`:""}\n </div>\n </div>\n </div>\n </div>\n `}function as(t,n){const{prefix:e=""}=n;return`\n ${Eo}\n ${Oo}\n ${zo}\n ${(({textColor:t="#212121",backgroundColor:n="#e8e6de",ctaTextColor:e=t,primaryImage:i,mobilePrimaryImage:r=i},{prefix:o})=>`\n <style>\n .${o} {\n width: 100%;\n height: 100%;\n background-color: transparent;\n cursor: pointer;\n position: relative;\n }\n\n .${o}__content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column-reverse;\n background-color: transparent;\n gap: 6px;\n }\n\n .${o}__image {\n width: 100%;\n height: 100%;\n background-image: url("${r}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n\n .${o}__text {\n color: ${t};\n background-color: ${n};\n text-align: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n gap: 10px;\n padding: 0 10px;\n box-sizing: border-box;\n }\n\n .${o}__header {\n font-size: 18px;\n margin: 0;\n color: inherit;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 700;\n line-height: normal;\n }\n\n .${o}__description {\n color: inherit;\n margin: 0;\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n }\n\n .${o}__cta-button {\n color: ${e};\n background-color: transparent;\n font-size: 8px;\n font-style: normal;\n font-weight: 700;\n font-family: "Source Sans 3", system-ui;\n text-decoration-line: underline;\n text-transform: uppercase;\n letter-spacing: 1.4px;\n border: none;\n cursor: pointer;\n padding: 0;\n transition: opacity 0.3s ease;\n }\n\n .${o}__content:hover .${o}__cta-button {\n opacity: 0.8;\n }\n\n @container (min-width: 640px) {\n .${o}__image {\n background-image: url("${i}");\n }\n }\n\n @container (min-width: 768px) {\n .${o}__content {\n flex-direction: row;\n }\n .${o}__image {\n width: 66.66666%;\n height: 100%;\n }\n .${o}__text {\n width: 33.33333%;\n height: 100%;\n }\n .${o}__header {\n font-size: 22px;\n }\n .${o}__description {\n font-size: 12px;\n }\n .${o}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${o}__header {\n font-size: 24px;\n }\n .${o}__description {\n font-size: 13px;\n }\n .${o}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${o}__header {\n font-size: 28px;\n }\n .${o}__description {\n font-size: 14px;\n }\n .${o}__cta-button {\n font-size: 14px;\n }\n }\n </style>\n`)(t,n)}\n <div class="${e}">\n <div class="${e}__content">\n <div class="${e}__text">\n ${t.header?`<h2 class="${e}__header">${t.header}</h2>`:""}\n ${t.description?`<p class="${e}__description">${t.description}</p>`:""}\n ${t.ctaText?`<span class="${e}__cta-button">${t.ctaText}</span>`:""}\n </div>\n <div class="${e}__image"></div>\n </div>\n </div>\n `}function cs(t,n){const{prefix:e=""}=n;return`\n ${Eo}\n ${Oo}\n ${zo}\n ${(({textColor:t="#ffffff",ctaTextColor:n=t,ctaBorderColor:e=n,primaryImage:i,mobilePrimaryImage:r=i},{prefix:o,overlay:s})=>{const a=Ho(s,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%");return`\n <style>\n .${o} {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n background-image: linear-gradient(to top, ${a}), url("${r}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n border-radius: 5px;\n overflow: hidden;\n cursor: pointer;\n color: ${t};\n }\n\n .${o}__text {\n padding: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 10px;\n }\n\n .${o}__header {\n color: inherit;\n margin: 0;\n font-size: 20px;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${o}__description {\n color: inherit;\n font-size: 12px;\n line-height: 16px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n }\n\n .${o}__cta-button {\n width: fit-content;\n display: inline-block;\n padding: 7px 20px;\n border: 0.5px solid ${e};\n border-radius: 5px;\n color: ${n};\n font-size: 8px;\n transition: background-color 0.3s ease;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n }\n\n .${o}:hover .${o}__cta-button {\n background-color: ${7===e.length?`${e}15`:`${e}`};\n }\n\n @container (min-width: 640px) {\n .${o} {\n background-image: linear-gradient(to top, ${a}), url("${i}");\n }\n }\n\n @container (min-width: 768px) {\n .${o}__text {\n padding: 25px;\n }\n\n .${o}__header {\n font-size: 24px;\n }\n\n .${o}__description {\n font-size: 13px;\n line-height: 18px;\n }\n\n .${o}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${o}__text {\n padding: 30px;\n }\n\n .${o}__header {\n font-size: 28px;\n }\n\n .${o}__description {\n font-size: 14px;\n }\n\n .${o}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${o}__cta-button {\n font-size: 14px;\n }\n }\n </style>\n `})(t,n)}\n <div class="${e}">\n <div class="${e}__text">\n ${t.header?`<h2 class="${e}__header">${t.header}</h2>`:""}\n ${t.description?`<p class="${e}__description">${t.description}</p>`:""}\n ${t.ctaText?`<span class="${e}__cta-button">${t.ctaText}</span>`:""}\n </div>\n </div>\n `}function ls(t,n){const{prefix:e=""}=n;return`\n ${Eo}\n ${Oo}\n ${(({textColor:t="#ffffff",primaryImage:n,mobilePrimaryImage:e=n},{prefix:i,overlay:r})=>{const o=Ho(r,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%");return`\n <style>\n .${i} {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n border-radius: 5px;\n overflow: hidden;\n cursor: pointer;\n background-image: linear-gradient(to top, ${o}), url("${e}");\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n position: relative;\n }\n\n .${i}__header {\n font-size: 16px;\n color: ${t};\n line-height: 20px;\n font-weight: 400;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n margin: 0;\n padding: 15px 10%;\n }\n\n @container (min-width: 640px) {\n .${i} {\n background-image: linear-gradient(to top, ${o}), url("${n}");\n }\n }\n\n @container (min-width: 768px) {\n .${i}__header {\n font-size: 22px;\n }\n }\n\n @container (min-width: 1024px) {\n .${i}__header {\n font-size: 24px;\n }\n }\n\n @container (min-width: 1280px) {\n .${i}__header {\n font-size: 28px;\n }\n }\n </style>\n`})(t,n)}\n <div class="${e}">\n ${t.header?`<h2 class="${e}__header">${t.header}</h2>`:""}\n </div>\n `}function us(t,n){const{prefix:e=""}=n;return`\n ${Eo}\n ${zo}\n ${(({textColor:t="#ffffff",primaryImage:n,mobilePrimaryImage:e=n},{prefix:i,overlay:r})=>{const o=Ho(r,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%");return`\n <style>\n .${i} {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n background-image: linear-gradient(to top, ${o}), url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n border-radius: 5px;\n overflow: hidden;\n cursor: pointer;\n position: relative;\n }\n\n .${i}__header {\n font-size: 12px;\n color: ${t};\n line-height: 16px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n padding: 10px;\n }\n\n @container (min-width: 640px) {\n .${i} {\n background-image: linear-gradient(to top, ${o}), url("${n}");\n }\n }\n </style>\n `})(t,n)}\n <div class="${e}">\n ${t.header?`<h2 class="${e}__header">${t.header}</h2>`:""}\n </div>\n `}function hs(t,n){const{prefix:e=""}=n;return`\n ${Eo}\n ${zo}\n ${(({textColor:t="#000000",backgroundColor:n="transparent",primaryImage:e,mobilePrimaryImage:i=e},{prefix:r})=>`\n <style>\n .${r} {\n width: 100%;\n height: 100%;\n background-color: ${n};\n cursor: pointer;\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n }\n\n .${r}__image {\n width: 100%;\n height: 100%;\n background-image: url("${i}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n border-radius: 5px;\n }\n\n .${r}__text {\n text-align: left;\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: flex-start;\n width: 100%;\n height: fit-content;\n position: relative;\n }\n\n .${r}__header {\n font-size: 12px;\n color: ${t};\n padding-top: 5px;\n line-height: 16px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n }\n\n @container (min-width: 640px) {\n .${r}__image {\n background-image: url("${e}");\n }\n }\n </style>\n`)(t,n)}\n <div class="${e}">\n <div class="${e}__image"></div>\n <div class="${e}__text">\n ${t.header?`<h2 class="${e}__header">${t.header}</h2>`:""}\n </div>\n </div>\n `}const fs=(t,e)=>{const i={[n.RB_HOMEPAGE_HERO_THREE_TILE]:{rbHomepageHeroThreeTile:ss},[n.RB_HOMEPAGE_HERO_TWO_TILE]:{rbHomepageHeroTwoTile:as},[n.RB_HOMEPAGE_HERO_FULL_IMAGE]:{rbHomepageHeroFullImage:os},[n.RB_LARGE_CATEGORY_IMAGE_TOUT]:{rbLargeCategoryImageTout:cs},[n.RB_SMALL_DISCOVER_TOUT]:{rbSmallDiscoverTout:hs},[n.RB_SMALL_CATEGORY_IMAGE_TOUT]:{rbSmallCategoryImageTout:us},[n.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK]:{rbCollectionBannerWithoutTextBlock:rs},[n.RB_NAVIGATION_BANNER]:{rbNavigationBanner:ls},[n.RB_PRODUCT_UPCS]:{rbProductUpcs:()=>""},[n.BILLBOARD]:{billboardV1:Yo,billboardV2:Vo,billboardV3:Zo},[n.LARGE_RECTANGLE]:{largeRectangleV1:Xo},[n.VERTICAL_RECTANGLE]:{verticalRectangleV1:es},[n.SQUARE]:{squareV1:ts,squareV2:ns},[n.LARGE_LEADERBOARD]:{largeLeaderboardV1:Qo,largeLeaderboardV2:Ko},[n.WIDE_SKYSCRAPER]:{wideSkyscraperV1:is},[n.IN_TEXT]:{inTextV1:Go}}[t.spot];if(!i)return null;const r=i[t.variant];return r?function(t){const n=document.createElement("div");return n.className="spot",n.innerHTML=t,Object.assign(n.style,{display:"block",width:"100%",height:"100%",margin:"0",padding:"0",containerType:"inline-size",position:"relative"}),n}(r(t,{...e,prefix:"s"+Ge.generate().toLowerCase()})):null};var ds;!function(t){t.GoogleAnalytics="google-analytics",t.Other="Other"}(ds||(ds={}));class ps{constructor(){window.dataLayer&&(this.originalPush=window.dataLayer.push)}static getInstance(){return ps.instance||(ps.instance=new ps),ps.instance}setListener(t){this.listener=t}start(){window.dataLayer.push=(...t)=>{const n=this.originalPush.apply(window.dataLayer,t),e=t[0];if(this.listener){const t=this.cleanEventData(e);t&&this.listener(t)}return n}}cleanEventData(t){const n=function(t){if(!(null==t?void 0:t.trim()))return null;const n=function(t){return t.toLowerCase().replace(/[^a-z0-9\s]+/g," ").split(/\s+/).filter(Boolean)}(t);for(const[t,{required:e,optional:i}]of Object.entries(Ue))if(Fe(n,e,i))return t;return null}(t.event);return n?{event:n,productIds:Ye(t)}:null}stop(){this.originalPush&&(window.dataLayer.push=this.originalPush),this.listener=void 0}}class ms{constructor(){const t=this.detectAnalyticsTool();switch(t){case ds.GoogleAnalytics:this.implementedMonitor=ps.getInstance();break;case ds.Other:default:console.warn("This site uses an unsupported analytics tool.")}t!==ds.Other&&(this.pubSubService=Jo.getInstance(),this.localStorageService=Po.getInstance())}static getInstance(){return ms.instance||(ms.instance=new ms),ms.instance}start(){this.implementedMonitor&&(this.implementedMonitor.setListener((async t=>{var n;await this.matchAndFireEvent(t,null===(n=this.localStorageService)||void 0===n?void 0:n.getSpots())})),this.implementedMonitor.start())}async matchAndFireEvent(t,n){var e,i;if(!n)return;const o=new Set(t.productIds);for(const s of Object.values(n))s.productIds.length&&s.productIds.find((t=>o.has(t)))&&Object.values(r).includes(t.event)&&await this.fireAndPublishSpotEvent({spotEvent:t.event,eventUrl:null!==(i=null===(e=s.events.find((n=>n.event===t.event)))||void 0===e?void 0:e.url)&&void 0!==i?i:"",placementId:s.placementId,spotId:s.spotId})}async fireAndPublishSpotEvent({spotEvent:t,eventUrl:n,placementId:e,spotId:r}){await Ve({event:t,eventUrl:n}),this.pubSubService&&this.pubSubService.publish(i.SPOT_EVENT,{eventType:t,placementId:e,spotId:r})}detectAnalyticsTool(){let t=ds.Other;return void 0!==window.ga&&(t=ds.GoogleAnalytics),void 0!==window.gtag&&(t=ds.GoogleAnalytics),void 0!==window.google_tag_manager&&(t=ds.GoogleAnalytics),t}}class gs{constructor(){this.pubSubService=Jo.getInstance(),this.localStorageService=Po.getInstance(),this.activeSpots=new Map,this.spotStates=new Map,this.intersectionObserver=new Ro,ms.getInstance().start()}static getInstance(){return gs.instance||(gs.instance=new gs),gs.instance}subscribe(t,n){return this.pubSubService.subscribe(t,n)}publish(t,n){this.pubSubService.publish(t,n)}registerSpot(t){const{placementId:n,spot:e,spotElement:i}=t;this.activeSpots.set(n,{spotElement:i}),this.fireImpressionEvent(n,e),this.handleIntersectionObserver(n,e,i),i.addEventListener("click",(async()=>await this.handleClick(t)))}unregisterSpot(t){const n=t.replace("#",""),e=this.activeSpots.get(n);if(!e)return void this.handleSpotState(n,{state:{error:`Active spot with placementId ${n} not found.`}});this.intersectionObserver.unobserve(e.spotElement),this.handleSpotState(n,{dom:{spotElement:void 0,visibleOnViewport:!1},state:{unmounted:!0,mounted:!1}}),this.activeSpots.delete(n);const i=document.getElementById(n);i?i.innerHTML="":this.handleSpotState(n,{state:{error:`Placement element with id ${n} not found.`}})}handleSpotState(t,n,e=!0){let r=this.spotStates.get(t);r||(r={identifier:{placementId:t,spotId:"",spotType:""},dom:{spotElement:void 0,visibleOnViewport:!1},state:{mounted:!1,unmounted:!1,loading:!1,error:void 0},displayConfig:{isCarousel:!1,isCarouselItem:!1,isSingleItem:!1}});const o=this.deepMerge(r,n);this.spotStates.set(t,o),e&&this.pubSubService.publish(i.LIFECYCLE_STATE,this.spotStates.get(t))}deepMerge(t,n){return{identifier:n.identifier?{...t.identifier,...n.identifier}:t.identifier,dom:n.dom?{...t.dom,...n.dom}:t.dom,state:n.state?{...t.state,...n.state}:t.state,displayConfig:n.displayConfig?{...t.displayConfig,...n.displayConfig}:t.displayConfig}}async handleClick({placementId:t,spot:n}){var e,o,s;this.pubSubService.publish(i.SPOT_EVENT,{eventType:r.CLICK,placementId:t,spotId:n.id}),await Ve({event:r.CLICK,eventUrl:null!==(o=null===(e=n.events.find((t=>t.event===r.CLICK)))||void 0===e?void 0:e.url)&&void 0!==o?o:""}),this.localStorageService.setSpot(n.id,{placementId:t,spotId:n.id,spotType:n.spot,events:n.events,productIds:null!==(s=n.productIds)&&void 0!==s?s:[1,2,3]})}handleIntersectionObserver(t,n,e){this.intersectionObserver.observe(e,(async()=>{this.intersectionObserver.unobserve(e),this.handleSpotState(t,{dom:{spotElement:e,visibleOnViewport:!0}})}))}fireImpressionEvent(t,n){this.pubSubService.publish(i.SPOT_EVENT,{eventType:r.IMPRESSION,placementId:t,spotId:n.id}),(async()=>{var t,e;await Ve({event:r.IMPRESSION,eventUrl:null!==(e=null===(t=n.events.find((t=>t.event===r.IMPRESSION)))||void 0===t?void 0:t.url)&&void 0!==e?e:""})})()}}class vs extends Mo{constructor(t){super(t)}static getInstance(t){return We.getInstance("SelectionService",(()=>new vs(t)))}async spotSelection(t){const{isOk:n,val:e,isErr:i}=await this.post("/spots/selection",t,{});return i?{error:`There was an error during spot selection: (${null==i?void 0:i.errorMessage})`}:n&&e&&e.data&&(null==e?void 0:e.refresh.token)?(this.authInfo.authenticated=!0,this.authInfo.token=e.refresh.token,e.data.spots):{error:"Spot selection response was not successful"}}}class ws{constructor(t){this.selectionService=vs.getInstance(t),this.elementService=Fo.getInstance(),this.eventService=gs.getInstance(),this.intersectionObserver=new Ro}async spotSelection(t){return this.selectionService.spotSelection(t)}async injectSpotElement(t){var n;if("undefined"==typeof document)return void console.warn("LiquidCommerce Rmn Sdk: injectSpotElement method is only available in the browser environment.");const e=t.config;let i=t.inject;if(i.length){for(const t of i)this.eventService.handleSpotState(t.placementId,{identifier:{placementId:t.placementId,spotType:t.spotType}},!1);if(this.preventDuplicateSpotPlacementIds(i)){i=this.preventNonExistentSpotTypes(i);for(const r of i){const i=r.placementId.replace("#",""),o=document.getElementById(i);if(!o){this.eventService.handleSpotState(r.placementId,{state:{error:`Placement not found for id "${i}".`}});continue}o.removeAttribute("style"),o.removeAttribute("class"),Object.assign(o.style,{width:"100%",height:"100%",display:"flex",justifyContent:"center"});const s=this.elementService.createSkeletonElement({fluid:null!==(n=null==e?void 0:e.fluid)&&void 0!==n&&n,spotType:r.spotType});if(!s){this.eventService.handleSpotState(r.placementId,{state:{error:"Failed to create skeleton loader element.",mounted:!1,loading:!0}});continue}o.replaceChildren(s);const a=async()=>{var n;this.eventService.handleSpotState(r.placementId,{state:{loading:!0}}),this.intersectionObserver.unobserve(o);const i=await this.spotSelectionRequest({...t,inject:[r]});if("object"==typeof i&&"error"in i)return this.eventService.handleSpotState(r.placementId,{state:{error:i.error,mounted:!1,loading:!1}}),void this.clearPlacement(r.placementId);const s=null!==(n=r.config)&&void 0!==n?n:e,a=i[r.placementId];if(!(null==a?void 0:a.length))return this.eventService.handleSpotState(r.placementId,{state:{error:`No spots found for type "${r.spotType}".`,mounted:!1,loading:!1}}),void this.clearPlacement(r.placementId);1===a.length&&this.injectOneSpotElement(r,o,a[0],s),a.length>1&&this.injectCarouselSpotElement(o,a,s)};this.intersectionObserver.observe(o,a,{rootMargin:"500px"})}}}else this.eventService.handleSpotState("all",{state:{error:"No spot elements provided for injection."}})}injectCarouselSpotElement(t,n,e){var i;const r=[];for(const i of n){this.eventService.handleSpotState(t.id,{identifier:{placementId:t.id,spotType:i.spot,spotId:i.id},displayConfig:{isSingleItem:!1,isCarousel:!0,isCarouselItem:!0}});const n=this.elementService.overrideSpotColors(i,null==e?void 0:e.colors),o=fs(n,{overlay:null==e?void 0:e.overlay});o?(this.eventService.registerSpot({spot:n,placementId:t.id,spotElement:o}),r.push(o)):this.eventService.handleSpotState(t.id,{state:{error:`Failed to inject carousel spot item element. Could not create element for type "${n.spot}".`,mounted:!1,loading:!1}})}const{maxWidth:o,maxHeight:s}=n.reduce(((t,n)=>({maxWidth:Math.max(t.maxWidth,n.width),maxHeight:Math.max(t.maxHeight,n.height)})),{maxWidth:0,maxHeight:0}),a=this.elementService.createCarouselElement({slides:r,config:{fluid:null==e?void 0:e.fluid,width:o,height:s,minScale:null!==(i=null==e?void 0:e.minScale)&&void 0!==i?i:.25,...null==e?void 0:e.carousel}});if(!a)return this.eventService.handleSpotState(t.id,{state:{error:"Failed to inject spot carousel element. Could not create spot carousel element.",mounted:!1,loading:!1}}),void this.clearPlacement(t.id);t.replaceChildren(a),this.eventService.handleSpotState(t.id,{dom:{spotElement:a,visibleOnViewport:!1},state:{mounted:!0,loading:!1,error:void 0}})}injectOneSpotElement(t,n,e,i){var r;this.eventService.handleSpotState(t.placementId,{identifier:{placementId:t.placementId,spotType:t.spotType,spotId:e.id},displayConfig:{isSingleItem:!0,isCarousel:!1,isCarouselItem:!1}});const o=this.elementService.overrideSpotColors(e,null==i?void 0:i.colors),s=fs(o,{overlay:null==i?void 0:i.overlay});if(!s)return this.eventService.handleSpotState(t.placementId,{state:{error:`Failed to inject spot element. Could not create element for type "${t.spotType}".`,mounted:!1,loading:!1}}),void this.clearPlacement(t.placementId);const a=this.elementService.createSpotElement({content:s,config:{fluid:null==i?void 0:i.fluid,spot:e.spot,width:e.width,height:e.height,minScale:null!==(r=null==i?void 0:i.minScale)&&void 0!==r?r:.25}});if(!a)return this.eventService.handleSpotState(t.placementId,{state:{error:`Failed to inject spot element. Could not create element for type "${t.spotType}".`,mounted:!1,loading:!1}}),void this.clearPlacement(t.placementId);this.eventService.registerSpot({spot:o,placementId:t.placementId,spotElement:a}),n.replaceChildren(a),this.eventService.handleSpotState(t.placementId,{dom:{spotElement:a,visibleOnViewport:!1},state:{mounted:!0,loading:!1,error:void 0}})}clearPlacement(t){var n;null===(n=document.getElementById(t))||void 0===n||n.replaceChildren()}async spotSelectionRequest(t){const{inject:n,filter:e,config:i}=t,r={url:null==i?void 0:i.url,filter:e,spots:n.map((t=>({placementId:t.placementId,spot:t.spotType,count:null==t?void 0:t.count,...null==t?void 0:t.filter})))};return this.spotSelection(r)}preventDuplicateSpotPlacementIds(t){const n=new Set;for(const e of t){if(n.has(e.placementId))return this.eventService.handleSpotState(e.placementId,{state:{error:`Duplicate placement id (${e.placementId}) found. Please provide a unique placement id for each spot element.`}}),!1;n.add(e.placementId)}return!0}preventNonExistentSpotTypes(t){const e=[];for(const i of t)Object.values(n).includes(i.spotType)?e.push(i):this.eventService.handleSpotState(i.placementId,{state:{error:`Invalid spot type (${i.spotType}) found. Please provide a valid spot type for each spot element.`}});return e}useSpotSelectionExample(t){const n={...a,...c},e={};return t.map((t=>{var i,r,o;e[t.placementId]=null!==(o=null===(i=n[t.spotType])||void 0===i?void 0:i.slice(0,null!==(r=t.count)&&void 0!==r?r:1))&&void 0!==o?o:[]})),new Promise((t=>{t(e)}))}}async function RmnClient(t,n){const e=To.getInstance(t,n.env),i=await e.initialize();return new ws(i)}function RmnEventManager(){const t=gs.getInstance();return{subscribe:(n,e)=>t.subscribe(n,e),publish:(n,e)=>{t.publish(n,e)},destroySpot:n=>{t.unregisterSpot(n)}}}function RmnCreateSpotElement(t,n){var e;const i=Fo.getInstance(),r=i.overrideSpotColors(t,null==n?void 0:n.colors),o=fs(r,{overlay:null==n?void 0:n.overlay});return o?i.createSpotElement({content:o,config:{fluid:!0,width:t.width,height:t.height,minScale:null!==(e=null==n?void 0:n.minScale)&&void 0!==e?e:.25}}):(console.warn(`RmnSdk: Failed to create spot element for type "${r.spot}".`),null)}window.RmnClient=RmnClient,window.RmnEventManager=RmnEventManager,window.RmnCreateSpotElement=RmnCreateSpotElement,t.RmnClient=RmnClient,t.RmnCreateSpotElement=RmnCreateSpotElement,t.RmnEventManager=RmnEventManager}));
|
1
|
+
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).LiquidCommerceRmn={})}(this,(function(n){"use strict";var t,e,i,r,o;!function(n){n.RB_HOMEPAGE_HERO="rbHomepageHero",n.RB_HOMEPAGE_HERO_THREE_TILE="rbHomepageHeroThreeTile",n.RB_HOMEPAGE_HERO_TWO_TILE="rbHomepageHeroTwoTile",n.RB_HOMEPAGE_HERO_FULL_IMAGE="rbHomepageHeroFullImage",n.RB_LARGE_CATEGORY_IMAGE_TOUT="rbLargeCategoryImageTout",n.RB_SMALL_DISCOVER_TOUT="rbSmallDiscoverTout",n.RB_SMALL_CATEGORY_IMAGE_TOUT="rbSmallCategoryImageTout",n.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK="rbCollectionBannerWithoutTextBlock",n.RB_PRODUCT_UPCS="rbProductUpcs",n.RB_NAVIGATION_BANNER="rbNavigationBanner",n.BILLBOARD="billboard",n.LARGE_RECTANGLE="largeRectangle",n.VERTICAL_RECTANGLE="verticalRectangle",n.SQUARE="square",n.LARGE_LEADERBOARD="largeLeaderboard",n.WIDE_SKYSCRAPER="wideSkyscraper",n.IN_TEXT="inText",n.SMALL_RECTANGLE="smallRectangle",n.MEDIUM_RECTANGLE="mediumRectangle",n.BANNER="banner",n.LEADERBOARD="leaderboard",n.SKYSCRAPER="skyscraper",n.HALF_PAGE="halfPage",n.SMALL_SQUARE="smallSquare",n.VERTICAL_BANNER="verticalBanner",n.BUTTON_2="button2",n.MICRO_BAR="microBar",n.POP_UP="popUp",n.PORTRAIT="portrait",n.SMARTPHONE_BANNER_1="smartphoneBanner1",n.SMARTPHONE_BANNER_2="smartphoneBanner2",n.MOBILE_PHONE_INTERSTITIAL_1="mobilePhoneInterstitial1",n.MOBILE_PHONE_INTERSTITIAL_2="mobilePhoneInterstitial2",n.MOBILE_PHONE_INTERSTITIAL_3="mobilePhoneInterstitial3",n.FEATURE_PHONE_SMALL_BANNER="featurePhoneSmallBanner",n.FEATURE_PHONE_MEDIUM_BANNER="featurePhoneMediumBanner",n.FEATURE_PHONE_LARGE_BANNER="featurePhoneLargeBanner"}(t||(t={})),function(n){n.KEYWORDS="keywords",n.PAGE_LOCATION="pageLocation",n.PARENTCO="parentCo",n.BRAND="brand",n.CATEGORY="category",n.TYPE="type",n.CLASSIFICATION="classification",n.HOLIDAY="holiday",n.PUBLISHERS="publishers",n.SECTION="section"}(e||(e={})),function(n){n.LIFECYCLE_STATE="LIFECYCLE_STATE",n.SPOT_EVENT="SPOT_EVENT"}(i||(i={})),function(n){n.IMPRESSION="IMPRESSION",n.CLICK="CLICK",n.PURCHASE="PURCHASE",n.ADD_TO_CART="ADD_TO_CART",n.REMOVE_FROM_CART="REMOVE_FROM_CART",n.ADD_TO_CART_FROM_DETAILS="ADD_TO_CART_FROM_DETAILS",n.ADD_TO_WISHLIST="ADD_TO_WISHLIST",n.EXPAND_PRODUCT="EXPAND_PRODUCT",n.BUY_NOW="BUY_NOW"}(r||(r={})),function(n){n.LOCAL="local",n.DEVELOPMENT="development",n.STAGING="staging",n.PRODUCTION="production"}(o||(o={}));const s="X-Liquid-Protected",a="X-Liquid-Timestamp",c="X-Liquid-Api-Env",u={url:{[o.LOCAL]:"http://localhost:8300",[o.DEVELOPMENT]:"https://dev.rmn.liquidcommerce.cloud",[o.STAGING]:"https://staging.rmn.liquidcommerce.cloud",[o.PRODUCTION]:"https://rmn.liquidcommerce.cloud"},apiHeader:"X-Liquid-Api-Key",accessHeader:"Authorization",credentials:{authenticated:!1,apiKey:"",token:"",env:o.DEVELOPMENT}};class h{}var l="undefined"!=typeof global?global:"undefined"!=typeof self?self:window;function f(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}var p=f,m=d;function g(n){if(p===setTimeout)return setTimeout(n,0);if((p===f||!p)&&setTimeout)return p=setTimeout,setTimeout(n,0);try{return p(n,0)}catch(t){try{return p.call(null,n,0)}catch(t){return p.call(this,n,0)}}}"function"==typeof l.setTimeout&&(p=setTimeout),"function"==typeof l.clearTimeout&&(m=clearTimeout);var v,w=[],b=!1,y=-1;function x(){b&&v&&(b=!1,v.length?w=v.concat(w):y=-1,w.length&&S())}function S(){if(!b){var n=g(x);b=!0;for(var t=w.length;t;){for(v=w,w=[];++y<t;)v&&v[y].run();y=-1,t=w.length}v=null,b=!1,function(n){if(m===clearTimeout)return clearTimeout(n);if((m===d||!m)&&clearTimeout)return m=clearTimeout,clearTimeout(n);try{return m(n)}catch(t){try{return m.call(null,n)}catch(t){return m.call(this,n)}}}(n)}}function $(n,t){this.fun=n,this.array=t}function _(){}$.prototype.run=function(){this.fun.apply(null,this.array)};var k=_,E=_,T=_,A=_,R=_,I=_,z=_,O=l.performance||{},C=O.now||O.mozNow||O.msNow||O.oNow||O.webkitNow||function(){return(new Date).getTime()},q=new Date,P={nextTick:function(n){var t=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)t[e-1]=arguments[e];w.push(new $(n,t)),1!==w.length||b||g(S)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:k,addListener:E,once:T,off:A,removeListener:R,removeAllListeners:I,emit:z,binding:function(n){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(n){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(n){var t=.001*C.call(O),e=Math.floor(t),i=Math.floor(t%1*1e9);return n&&(e-=n[0],(i-=n[1])<0&&(e--,i+=1e9)),[e,i]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-q)/1e3}};function j(n,t){return function(){return n.apply(t,arguments)}}const{toString:M}=Object.prototype,{getPrototypeOf:B}=Object,D=(F=Object.create(null),n=>{const t=M.call(n);return F[t]||(F[t]=t.slice(8,-1).toLowerCase())});var F;const N=n=>(n=n.toLowerCase(),t=>D(t)===n),U=n=>t=>typeof t===n,{isArray:H}=Array,L=U("undefined"),W=N("ArrayBuffer"),J=U("string"),K=U("function"),V=U("number"),X=n=>null!==n&&"object"==typeof n,G=n=>{if("object"!==D(n))return!1;const t=B(n);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in n||Symbol.iterator in n)},Y=N("Date"),Z=N("File"),Q=N("Blob"),nn=N("FileList"),tn=N("URLSearchParams"),[en,rn,on,sn]=["ReadableStream","Request","Response","Headers"].map(N);function an(n,t,{allOwnKeys:e=!1}={}){if(null==n)return;let i,r;if("object"!=typeof n&&(n=[n]),H(n))for(i=0,r=n.length;i<r;i++)t.call(null,n[i],i,n);else{const r=e?Object.getOwnPropertyNames(n):Object.keys(n),o=r.length;let s;for(i=0;i<o;i++)s=r[i],t.call(null,n[s],s,n)}}function cn(n,t){t=t.toLowerCase();const e=Object.keys(n);let i,r=e.length;for(;r-- >0;)if(i=e[r],t===i.toLowerCase())return i;return null}const un="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,hn=n=>!L(n)&&n!==un,ln=(fn="undefined"!=typeof Uint8Array&&B(Uint8Array),n=>fn&&n instanceof fn);var fn;const dn=N("HTMLFormElement"),pn=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),mn=N("RegExp"),gn=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};an(e,((e,r)=>{let o;!1!==(o=t(e,r,n))&&(i[r]=o||e)})),Object.defineProperties(n,i)},vn="abcdefghijklmnopqrstuvwxyz",wn="0123456789",bn={DIGIT:wn,ALPHA:vn,ALPHA_DIGIT:vn+vn.toUpperCase()+wn},yn=N("AsyncFunction"),xn=(Sn="function"==typeof setImmediate,$n=K(un.postMessage),Sn?setImmediate:$n?(_n=`axios@${Math.random()}`,kn=[],un.addEventListener("message",(({source:n,data:t})=>{n===un&&t===_n&&kn.length&&kn.shift()()}),!1),n=>{kn.push(n),un.postMessage(_n,"*")}):n=>setTimeout(n));var Sn,$n,_n,kn;const En="undefined"!=typeof queueMicrotask?queueMicrotask.bind(un):P.nextTick||xn;var Tn={isArray:H,isArrayBuffer:W,isBuffer:function(n){return null!==n&&!L(n)&&null!==n.constructor&&!L(n.constructor)&&K(n.constructor.isBuffer)&&n.constructor.isBuffer(n)},isFormData:n=>{let t;return n&&("function"==typeof FormData&&n instanceof FormData||K(n.append)&&("formdata"===(t=D(n))||"object"===t&&K(n.toString)&&"[object FormData]"===n.toString()))},isArrayBufferView:function(n){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(n):n&&n.buffer&&W(n.buffer),t},isString:J,isNumber:V,isBoolean:n=>!0===n||!1===n,isObject:X,isPlainObject:G,isReadableStream:en,isRequest:rn,isResponse:on,isHeaders:sn,isUndefined:L,isDate:Y,isFile:Z,isBlob:Q,isRegExp:mn,isFunction:K,isStream:n=>X(n)&&K(n.pipe),isURLSearchParams:tn,isTypedArray:ln,isFileList:nn,forEach:an,merge:function n(){const{caseless:t}=hn(this)&&this||{},e={},i=(i,r)=>{const o=t&&cn(e,r)||r;G(e[o])&&G(i)?e[o]=n(e[o],i):G(i)?e[o]=n({},i):H(i)?e[o]=i.slice():e[o]=i};for(let n=0,t=arguments.length;n<t;n++)arguments[n]&&an(arguments[n],i);return e},extend:(n,t,e,{allOwnKeys:i}={})=>(an(t,((t,i)=>{e&&K(t)?n[i]=j(t,e):n[i]=t}),{allOwnKeys:i}),n),trim:n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:n=>(65279===n.charCodeAt(0)&&(n=n.slice(1)),n),inherits:(n,t,e,i)=>{n.prototype=Object.create(t.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},toFlatObject:(n,t,e,i)=>{let r,o,s;const a={};if(t=t||{},null==n)return t;do{for(r=Object.getOwnPropertyNames(n),o=r.length;o-- >0;)s=r[o],i&&!i(s,n,t)||a[s]||(t[s]=n[s],a[s]=!0);n=!1!==e&&B(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},kindOf:D,kindOfTest:N,endsWith:(n,t,e)=>{n=String(n),(void 0===e||e>n.length)&&(e=n.length),e-=t.length;const i=n.indexOf(t,e);return-1!==i&&i===e},toArray:n=>{if(!n)return null;if(H(n))return n;let t=n.length;if(!V(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},forEachEntry:(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=e.next())&&!i.done;){const e=i.value;t.call(n,e[0],e[1])}},matchAll:(n,t)=>{let e;const i=[];for(;null!==(e=n.exec(t));)i.push(e);return i},isHTMLForm:dn,hasOwnProperty:pn,hasOwnProp:pn,reduceDescriptors:gn,freezeMethods:n=>{gn(n,((t,e)=>{if(K(n)&&-1!==["arguments","caller","callee"].indexOf(e))return!1;const i=n[e];K(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")}))}))},toObjectSet:(n,t)=>{const e={},i=n=>{n.forEach((n=>{e[n]=!0}))};return H(n)?i(n):i(String(n).split(t)),e},toCamelCase:n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(n,t,e){return t.toUpperCase()+e})),noop:()=>{},toFiniteNumber:(n,t)=>null!=n&&Number.isFinite(n=+n)?n:t,findKey:cn,global:un,isContextDefined:hn,ALPHABET:bn,generateString:(n=16,t=bn.ALPHA_DIGIT)=>{let e="";const{length:i}=t;for(;n--;)e+=t[Math.random()*i|0];return e},isSpecCompliantForm:function(n){return!!(n&&K(n.append)&&"FormData"===n[Symbol.toStringTag]&&n[Symbol.iterator])},toJSONObject:n=>{const t=new Array(10),e=(n,i)=>{if(X(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const r=H(n)?[]:{};return an(n,((n,t)=>{const o=e(n,i+1);!L(o)&&(r[t]=o)})),t[i]=void 0,r}}return n};return e(n,0)},isAsyncFn:yn,isThenable:n=>n&&(X(n)||K(n))&&K(n.then)&&K(n.catch),setImmediate:xn,asap:En},An=[],Rn=[],In="undefined"!=typeof Uint8Array?Uint8Array:Array,zn=!1;function On(){zn=!0;for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)An[t]=n[t],Rn[n.charCodeAt(t)]=t;Rn["-".charCodeAt(0)]=62,Rn["_".charCodeAt(0)]=63}function Cn(n,t,e){for(var i,r,o=[],s=t;s<e;s+=3)i=(n[s]<<16)+(n[s+1]<<8)+n[s+2],o.push(An[(r=i)>>18&63]+An[r>>12&63]+An[r>>6&63]+An[63&r]);return o.join("")}function qn(n){var t;zn||On();for(var e=n.length,i=e%3,r="",o=[],s=16383,a=0,c=e-i;a<c;a+=s)o.push(Cn(n,a,a+s>c?c:a+s));return 1===i?(t=n[e-1],r+=An[t>>2],r+=An[t<<4&63],r+="=="):2===i&&(t=(n[e-2]<<8)+n[e-1],r+=An[t>>10],r+=An[t>>4&63],r+=An[t<<2&63],r+="="),o.push(r),o.join("")}function Pn(n,t,e,i,r){var o,s,a=8*r-i-1,c=(1<<a)-1,u=c>>1,h=-7,l=e?r-1:0,f=e?-1:1,d=n[t+l];for(l+=f,o=d&(1<<-h)-1,d>>=-h,h+=a;h>0;o=256*o+n[t+l],l+=f,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=i;h>0;s=256*s+n[t+l],l+=f,h-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,i),o-=u}return(d?-1:1)*s*Math.pow(2,o-i)}function jn(n,t,e,i,r,o){var s,a,c,u=8*o-r-1,h=(1<<u)-1,l=h>>1,f=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=h):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+l>=1?f/c:f*Math.pow(2,1-l))*c>=2&&(s++,c/=2),s+l>=h?(a=0,s=h):s+l>=1?(a=(t*c-1)*Math.pow(2,r),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,r),s=0));r>=8;n[e+d]=255&a,d+=p,a/=256,r-=8);for(s=s<<r|a,u+=r;u>0;n[e+d]=255&s,d+=p,s/=256,u-=8);n[e+d-p]|=128*m}var Mn={}.toString,Bn=Array.isArray||function(n){return"[object Array]"==Mn.call(n)};function Dn(){return Nn.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Fn(n,t){if(Dn()<t)throw new RangeError("Invalid typed array length");return Nn.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t)).__proto__=Nn.prototype:(null===n&&(n=new Nn(t)),n.length=t),n}function Nn(n,t,e){if(!(Nn.TYPED_ARRAY_SUPPORT||this instanceof Nn))return new Nn(n,t,e);if("number"==typeof n){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Ln(this,n)}return Un(this,n,t,e)}function Un(n,t,e,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(n,t,e,i){if(t.byteLength,e<0||t.byteLength<e)throw new RangeError("'offset' is out of bounds");if(t.byteLength<e+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===e&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,e):new Uint8Array(t,e,i),Nn.TYPED_ARRAY_SUPPORT?(n=t).__proto__=Nn.prototype:n=Wn(n,t),n}(n,t,e,i):"string"==typeof t?function(n,t,e){if("string"==typeof e&&""!==e||(e="utf8"),!Nn.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var i=0|Vn(t,e),r=(n=Fn(n,i)).write(t,e);return r!==i&&(n=n.slice(0,r)),n}(n,t,e):function(n,t){if(Kn(t)){var e=0|Jn(t.length);return 0===(n=Fn(n,e)).length||t.copy(n,0,0,e),n}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?Fn(n,0):Wn(n,t);if("Buffer"===t.type&&Bn(t.data))return Wn(n,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(n,t)}function Hn(n){if("number"!=typeof n)throw new TypeError('"size" argument must be a number');if(n<0)throw new RangeError('"size" argument must not be negative')}function Ln(n,t){if(Hn(t),n=Fn(n,t<0?0:0|Jn(t)),!Nn.TYPED_ARRAY_SUPPORT)for(var e=0;e<t;++e)n[e]=0;return n}function Wn(n,t){var e=t.length<0?0:0|Jn(t.length);n=Fn(n,e);for(var i=0;i<e;i+=1)n[i]=255&t[i];return n}function Jn(n){if(n>=Dn())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Dn().toString(16)+" bytes");return 0|n}function Kn(n){return!(null==n||!n.i)}function Vn(n,t){if(Kn(n))return n.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;"string"!=typeof n&&(n=""+n);var e=n.length;if(0===e)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return yt(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return xt(n).length;default:if(i)return yt(n).length;t=(""+t).toLowerCase(),i=!0}}function Xn(n,t,e){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(t>>>=0))return"";for(n||(n="utf8");;)switch(n){case"hex":return ht(this,t,e);case"utf8":case"utf-8":return st(this,t,e);case"ascii":return ct(this,t,e);case"latin1":case"binary":return ut(this,t,e);case"base64":return ot(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,t,e);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),i=!0}}function Gn(n,t,e){var i=n[t];n[t]=n[e],n[e]=i}function Yn(n,t,e,i,r){if(0===n.length)return-1;if("string"==typeof e?(i=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=r?0:n.length-1),e<0&&(e=n.length+e),e>=n.length){if(r)return-1;e=n.length-1}else if(e<0){if(!r)return-1;e=0}if("string"==typeof t&&(t=Nn.from(t,i)),Kn(t))return 0===t.length?-1:Zn(n,t,e,i,r);if("number"==typeof t)return t&=255,Nn.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(n,t,e):Uint8Array.prototype.lastIndexOf.call(n,t,e):Zn(n,[t],e,i,r);throw new TypeError("val must be string, number or Buffer")}function Zn(n,t,e,i,r){var o,s=1,a=n.length,c=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(n.length<2||t.length<2)return-1;s=2,a/=2,c/=2,e/=2}function u(n,t){return 1===s?n[t]:n.readUInt16BE(t*s)}if(r){var h=-1;for(o=e;o<a;o++)if(u(n,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===c)return h*s}else-1!==h&&(o-=o-h),h=-1}else for(e+c>a&&(e=a-c),o=e;o>=0;o--){for(var l=!0,f=0;f<c;f++)if(u(n,o+f)!==u(t,f)){l=!1;break}if(l)return o}return-1}function Qn(n,t,e,i){e=Number(e)||0;var r=n.length-e;i?(i=Number(i))>r&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;n[e+s]=a}return s}function nt(n,t,e,i){return St(yt(t,n.length-e),n,e,i)}function tt(n,t,e,i){return St(function(n){for(var t=[],e=0;e<n.length;++e)t.push(255&n.charCodeAt(e));return t}(t),n,e,i)}function et(n,t,e,i){return tt(n,t,e,i)}function it(n,t,e,i){return St(xt(t),n,e,i)}function rt(n,t,e,i){return St(function(n,t){for(var e,i,r,o=[],s=0;s<n.length&&!((t-=2)<0);++s)i=(e=n.charCodeAt(s))>>8,r=e%256,o.push(r),o.push(i);return o}(t,n.length-e),n,e,i)}function ot(n,t,e){return 0===t&&e===n.length?qn(n):qn(n.slice(t,e))}function st(n,t,e){e=Math.min(n.length,e);for(var i=[],r=t;r<e;){var o,s,a,c,u=n[r],h=null,l=u>239?4:u>223?3:u>191?2:1;if(r+l<=e)switch(l){case 1:u<128&&(h=u);break;case 2:128==(192&(o=n[r+1]))&&(c=(31&u)<<6|63&o)>127&&(h=c);break;case 3:o=n[r+1],s=n[r+2],128==(192&o)&&128==(192&s)&&(c=(15&u)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(h=c);break;case 4:o=n[r+1],s=n[r+2],a=n[r+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(h=c)}null===h?(h=65533,l=1):h>65535&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),r+=l}return function(n){var t=n.length;if(t<=at)return String.fromCharCode.apply(String,n);for(var e="",i=0;i<t;)e+=String.fromCharCode.apply(String,n.slice(i,i+=at));return e}(i)}Nn.TYPED_ARRAY_SUPPORT=void 0===l.TYPED_ARRAY_SUPPORT||l.TYPED_ARRAY_SUPPORT,Dn(),Nn.poolSize=8192,Nn.o=function(n){return n.__proto__=Nn.prototype,n},Nn.from=function(n,t,e){return Un(null,n,t,e)},Nn.TYPED_ARRAY_SUPPORT&&(Nn.prototype.__proto__=Uint8Array.prototype,Nn.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Nn[Symbol.species]),Nn.alloc=function(n,t,e){return function(n,t,e,i){return Hn(t),t<=0?Fn(n,t):void 0!==e?"string"==typeof i?Fn(n,t).fill(e,i):Fn(n,t).fill(e):Fn(n,t)}(null,n,t,e)},Nn.allocUnsafe=function(n){return Ln(null,n)},Nn.allocUnsafeSlow=function(n){return Ln(null,n)},Nn.isBuffer=function(n){return null!=n&&(!!n.i||$t(n)||function(n){return"function"==typeof n.readFloatLE&&"function"==typeof n.slice&&$t(n.slice(0,0))}(n))},Nn.compare=function(n,t){if(!Kn(n)||!Kn(t))throw new TypeError("Arguments must be Buffers");if(n===t)return 0;for(var e=n.length,i=t.length,r=0,o=Math.min(e,i);r<o;++r)if(n[r]!==t[r]){e=n[r],i=t[r];break}return e<i?-1:i<e?1:0},Nn.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Nn.concat=function(n,t){if(!Bn(n))throw new TypeError('"list" argument must be an Array of Buffers');if(0===n.length)return Nn.alloc(0);var e;if(void 0===t)for(t=0,e=0;e<n.length;++e)t+=n[e].length;var i=Nn.allocUnsafe(t),r=0;for(e=0;e<n.length;++e){var o=n[e];if(!Kn(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},Nn.byteLength=Vn,Nn.prototype.i=!0,Nn.prototype.swap16=function(){var n=this.length;if(n%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<n;t+=2)Gn(this,t,t+1);return this},Nn.prototype.swap32=function(){var n=this.length;if(n%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<n;t+=4)Gn(this,t,t+3),Gn(this,t+1,t+2);return this},Nn.prototype.swap64=function(){var n=this.length;if(n%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<n;t+=8)Gn(this,t,t+7),Gn(this,t+1,t+6),Gn(this,t+2,t+5),Gn(this,t+3,t+4);return this},Nn.prototype.toString=function(){var n=0|this.length;return 0===n?"":0===arguments.length?st(this,0,n):Xn.apply(this,arguments)},Nn.prototype.equals=function(n){if(!Kn(n))throw new TypeError("Argument must be a Buffer");return this===n||0===Nn.compare(this,n)},Nn.prototype.inspect=function(){var n="";return this.length>0&&(n=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(n+=" ... ")),"<Buffer "+n+">"},Nn.prototype.compare=function(n,t,e,i,r){if(!Kn(n))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===e&&(e=n?n.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||e>n.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=e)return 0;if(i>=r)return-1;if(t>=e)return 1;if(this===n)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(e>>>=0)-(t>>>=0),a=Math.min(o,s),c=this.slice(i,r),u=n.slice(t,e),h=0;h<a;++h)if(c[h]!==u[h]){o=c[h],s=u[h];break}return o<s?-1:s<o?1:0},Nn.prototype.includes=function(n,t,e){return-1!==this.indexOf(n,t,e)},Nn.prototype.indexOf=function(n,t,e){return Yn(this,n,t,e,!0)},Nn.prototype.lastIndexOf=function(n,t,e){return Yn(this,n,t,e,!1)},Nn.prototype.write=function(n,t,e,i){if(void 0===t)i="utf8",e=this.length,t=0;else if(void 0===e&&"string"==typeof t)i=t,e=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(e)?(e|=0,void 0===i&&(i="utf8")):(i=e,e=void 0)}var r=this.length-t;if((void 0===e||e>r)&&(e=r),n.length>0&&(e<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Qn(this,n,t,e);case"utf8":case"utf-8":return nt(this,n,t,e);case"ascii":return tt(this,n,t,e);case"latin1":case"binary":return et(this,n,t,e);case"base64":return it(this,n,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rt(this,n,t,e);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},Nn.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.u||this,0)}};var at=4096;function ct(n,t,e){var i="";e=Math.min(n.length,e);for(var r=t;r<e;++r)i+=String.fromCharCode(127&n[r]);return i}function ut(n,t,e){var i="";e=Math.min(n.length,e);for(var r=t;r<e;++r)i+=String.fromCharCode(n[r]);return i}function ht(n,t,e){var i,r=n.length;(!t||t<0)&&(t=0),(!e||e<0||e>r)&&(e=r);for(var o="",s=t;s<e;++s)o+=(i=n[s])<16?"0"+i.toString(16):i.toString(16);return o}function lt(n,t,e){for(var i=n.slice(t,e),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function ft(n,t,e){if(n%1!=0||n<0)throw new RangeError("offset is not uint");if(n+t>e)throw new RangeError("Trying to access beyond buffer length")}function dt(n,t,e,i,r,o){if(!Kn(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw new RangeError('"value" argument is out of bounds');if(e+i>n.length)throw new RangeError("Index out of range")}function pt(n,t,e,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(n.length-e,2);r<o;++r)n[e+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function mt(n,t,e,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(n.length-e,4);r<o;++r)n[e+r]=t>>>8*(i?r:3-r)&255}function gt(n,t,e,i,r,o){if(e+i>n.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function vt(n,t,e,i,r){return r||gt(n,0,e,4),jn(n,t,e,i,23,4),e+4}function wt(n,t,e,i,r){return r||gt(n,0,e,8),jn(n,t,e,i,52,8),e+8}Nn.prototype.slice=function(n,t){var e,i=this.length;if((n=~~n)<0?(n+=i)<0&&(n=0):n>i&&(n=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<n&&(t=n),Nn.TYPED_ARRAY_SUPPORT)(e=this.subarray(n,t)).__proto__=Nn.prototype;else{var r=t-n;e=new Nn(r,void 0);for(var o=0;o<r;++o)e[o]=this[o+n]}return e},Nn.prototype.readUIntLE=function(n,t,e){n|=0,t|=0,e||ft(n,t,this.length);for(var i=this[n],r=1,o=0;++o<t&&(r*=256);)i+=this[n+o]*r;return i},Nn.prototype.readUIntBE=function(n,t,e){n|=0,t|=0,e||ft(n,t,this.length);for(var i=this[n+--t],r=1;t>0&&(r*=256);)i+=this[n+--t]*r;return i},Nn.prototype.readUInt8=function(n,t){return t||ft(n,1,this.length),this[n]},Nn.prototype.readUInt16LE=function(n,t){return t||ft(n,2,this.length),this[n]|this[n+1]<<8},Nn.prototype.readUInt16BE=function(n,t){return t||ft(n,2,this.length),this[n]<<8|this[n+1]},Nn.prototype.readUInt32LE=function(n,t){return t||ft(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+16777216*this[n+3]},Nn.prototype.readUInt32BE=function(n,t){return t||ft(n,4,this.length),16777216*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},Nn.prototype.readIntLE=function(n,t,e){n|=0,t|=0,e||ft(n,t,this.length);for(var i=this[n],r=1,o=0;++o<t&&(r*=256);)i+=this[n+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},Nn.prototype.readIntBE=function(n,t,e){n|=0,t|=0,e||ft(n,t,this.length);for(var i=t,r=1,o=this[n+--i];i>0&&(r*=256);)o+=this[n+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},Nn.prototype.readInt8=function(n,t){return t||ft(n,1,this.length),128&this[n]?-1*(255-this[n]+1):this[n]},Nn.prototype.readInt16LE=function(n,t){t||ft(n,2,this.length);var e=this[n]|this[n+1]<<8;return 32768&e?4294901760|e:e},Nn.prototype.readInt16BE=function(n,t){t||ft(n,2,this.length);var e=this[n+1]|this[n]<<8;return 32768&e?4294901760|e:e},Nn.prototype.readInt32LE=function(n,t){return t||ft(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},Nn.prototype.readInt32BE=function(n,t){return t||ft(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},Nn.prototype.readFloatLE=function(n,t){return t||ft(n,4,this.length),Pn(this,n,!0,23,4)},Nn.prototype.readFloatBE=function(n,t){return t||ft(n,4,this.length),Pn(this,n,!1,23,4)},Nn.prototype.readDoubleLE=function(n,t){return t||ft(n,8,this.length),Pn(this,n,!0,52,8)},Nn.prototype.readDoubleBE=function(n,t){return t||ft(n,8,this.length),Pn(this,n,!1,52,8)},Nn.prototype.writeUIntLE=function(n,t,e,i){n=+n,t|=0,e|=0,i||dt(this,n,t,e,Math.pow(2,8*e)-1,0);var r=1,o=0;for(this[t]=255&n;++o<e&&(r*=256);)this[t+o]=n/r&255;return t+e},Nn.prototype.writeUIntBE=function(n,t,e,i){n=+n,t|=0,e|=0,i||dt(this,n,t,e,Math.pow(2,8*e)-1,0);var r=e-1,o=1;for(this[t+r]=255&n;--r>=0&&(o*=256);)this[t+r]=n/o&255;return t+e},Nn.prototype.writeUInt8=function(n,t,e){return n=+n,t|=0,e||dt(this,n,t,1,255,0),Nn.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[t]=255&n,t+1},Nn.prototype.writeUInt16LE=function(n,t,e){return n=+n,t|=0,e||dt(this,n,t,2,65535,0),Nn.TYPED_ARRAY_SUPPORT?(this[t]=255&n,this[t+1]=n>>>8):pt(this,n,t,!0),t+2},Nn.prototype.writeUInt16BE=function(n,t,e){return n=+n,t|=0,e||dt(this,n,t,2,65535,0),Nn.TYPED_ARRAY_SUPPORT?(this[t]=n>>>8,this[t+1]=255&n):pt(this,n,t,!1),t+2},Nn.prototype.writeUInt32LE=function(n,t,e){return n=+n,t|=0,e||dt(this,n,t,4,4294967295,0),Nn.TYPED_ARRAY_SUPPORT?(this[t+3]=n>>>24,this[t+2]=n>>>16,this[t+1]=n>>>8,this[t]=255&n):mt(this,n,t,!0),t+4},Nn.prototype.writeUInt32BE=function(n,t,e){return n=+n,t|=0,e||dt(this,n,t,4,4294967295,0),Nn.TYPED_ARRAY_SUPPORT?(this[t]=n>>>24,this[t+1]=n>>>16,this[t+2]=n>>>8,this[t+3]=255&n):mt(this,n,t,!1),t+4},Nn.prototype.writeIntLE=function(n,t,e,i){if(n=+n,t|=0,!i){var r=Math.pow(2,8*e-1);dt(this,n,t,e,r-1,-r)}var o=0,s=1,a=0;for(this[t]=255&n;++o<e&&(s*=256);)n<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(n/s|0)-a&255;return t+e},Nn.prototype.writeIntBE=function(n,t,e,i){if(n=+n,t|=0,!i){var r=Math.pow(2,8*e-1);dt(this,n,t,e,r-1,-r)}var o=e-1,s=1,a=0;for(this[t+o]=255&n;--o>=0&&(s*=256);)n<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(n/s|0)-a&255;return t+e},Nn.prototype.writeInt8=function(n,t,e){return n=+n,t|=0,e||dt(this,n,t,1,127,-128),Nn.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),n<0&&(n=255+n+1),this[t]=255&n,t+1},Nn.prototype.writeInt16LE=function(n,t,e){return n=+n,t|=0,e||dt(this,n,t,2,32767,-32768),Nn.TYPED_ARRAY_SUPPORT?(this[t]=255&n,this[t+1]=n>>>8):pt(this,n,t,!0),t+2},Nn.prototype.writeInt16BE=function(n,t,e){return n=+n,t|=0,e||dt(this,n,t,2,32767,-32768),Nn.TYPED_ARRAY_SUPPORT?(this[t]=n>>>8,this[t+1]=255&n):pt(this,n,t,!1),t+2},Nn.prototype.writeInt32LE=function(n,t,e){return n=+n,t|=0,e||dt(this,n,t,4,2147483647,-2147483648),Nn.TYPED_ARRAY_SUPPORT?(this[t]=255&n,this[t+1]=n>>>8,this[t+2]=n>>>16,this[t+3]=n>>>24):mt(this,n,t,!0),t+4},Nn.prototype.writeInt32BE=function(n,t,e){return n=+n,t|=0,e||dt(this,n,t,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),Nn.TYPED_ARRAY_SUPPORT?(this[t]=n>>>24,this[t+1]=n>>>16,this[t+2]=n>>>8,this[t+3]=255&n):mt(this,n,t,!1),t+4},Nn.prototype.writeFloatLE=function(n,t,e){return vt(this,n,t,!0,e)},Nn.prototype.writeFloatBE=function(n,t,e){return vt(this,n,t,!1,e)},Nn.prototype.writeDoubleLE=function(n,t,e){return wt(this,n,t,!0,e)},Nn.prototype.writeDoubleBE=function(n,t,e){return wt(this,n,t,!1,e)},Nn.prototype.copy=function(n,t,e,i){if(e||(e=0),i||0===i||(i=this.length),t>=n.length&&(t=n.length),t||(t=0),i>0&&i<e&&(i=e),i===e)return 0;if(0===n.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),n.length-t<i-e&&(i=n.length-t+e);var r,o=i-e;if(this===n&&e<t&&t<i)for(r=o-1;r>=0;--r)n[r+t]=this[r+e];else if(o<1e3||!Nn.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)n[r+t]=this[r+e];else Uint8Array.prototype.set.call(n,this.subarray(e,e+o),t);return o},Nn.prototype.fill=function(n,t,e,i){if("string"==typeof n){if("string"==typeof t?(i=t,t=0,e=this.length):"string"==typeof e&&(i=e,e=this.length),1===n.length){var r=n.charCodeAt(0);r<256&&(n=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!Nn.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof n&&(n&=255);if(t<0||this.length<t||this.length<e)throw new RangeError("Out of range index");if(e<=t)return this;var o;if(t>>>=0,e=void 0===e?this.length:e>>>0,n||(n=0),"number"==typeof n)for(o=t;o<e;++o)this[o]=n;else{var s=Kn(n)?n:yt(new Nn(n,i).toString()),a=s.length;for(o=0;o<e-t;++o)this[o+t]=s[o%a]}return this};var bt=/[^+\/0-9A-Za-z-_]/g;function yt(n,t){var e;t=t||1/0;for(var i=n.length,r=null,o=[],s=0;s<i;++s){if((e=n.charCodeAt(s))>55295&&e<57344){if(!r){if(e>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=e;continue}if(e<56320){(t-=3)>-1&&o.push(239,191,189),r=e;continue}e=65536+(r-55296<<10|e-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,e<128){if((t-=1)<0)break;o.push(e)}else if(e<2048){if((t-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((t-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function xt(n){return function(n){var t,e,i,r,o,s;zn||On();var a=n.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===n[a-2]?2:"="===n[a-1]?1:0,s=new In(3*a/4-o),i=o>0?a-4:a;var c=0;for(t=0,e=0;t<i;t+=4,e+=3)r=Rn[n.charCodeAt(t)]<<18|Rn[n.charCodeAt(t+1)]<<12|Rn[n.charCodeAt(t+2)]<<6|Rn[n.charCodeAt(t+3)],s[c++]=r>>16&255,s[c++]=r>>8&255,s[c++]=255&r;return 2===o?(r=Rn[n.charCodeAt(t)]<<2|Rn[n.charCodeAt(t+1)]>>4,s[c++]=255&r):1===o&&(r=Rn[n.charCodeAt(t)]<<10|Rn[n.charCodeAt(t+1)]<<4|Rn[n.charCodeAt(t+2)]>>2,s[c++]=r>>8&255,s[c++]=255&r),s}(function(n){if((n=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}(n).replace(bt,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(n))}function St(n,t,e,i){for(var r=0;r<i&&!(r+e>=t.length||r>=n.length);++r)t[r+e]=n[r];return r}function $t(n){return!!n.constructor&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)}function _t(n,t,e,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}Tn.inherits(_t,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Tn.toJSONObject(this.config),code:this.code,status:this.status}}});const kt=_t.prototype,Et={};function Tt(n){return Tn.isPlainObject(n)||Tn.isArray(n)}function At(n){return Tn.endsWith(n,"[]")?n.slice(0,-2):n}function Rt(n,t,e){return n?n.concat(t).map((function(n,t){return n=At(n),!e&&t?"["+n+"]":n})).join(e?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((n=>{Et[n]={value:n}})),Object.defineProperties(_t,Et),Object.defineProperty(kt,"isAxiosError",{value:!0}),_t.from=(n,t,e,i,r,o)=>{const s=Object.create(kt);return Tn.toFlatObject(n,s,(function(n){return n!==Error.prototype}),(n=>"isAxiosError"!==n)),_t.call(s,n.message,t,e,i,r),s.cause=n,s.name=n.name,o&&Object.assign(s,o),s};const It=Tn.toFlatObject(Tn,{},null,(function(n){return/^is[A-Z]/.test(n)}));function zt(n,t,e){if(!Tn.isObject(n))throw new TypeError("target must be an object");t=t||new FormData;const i=(e=Tn.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(n,t){return!Tn.isUndefined(t[n])}))).metaTokens,r=e.visitor||u,o=e.dots,s=e.indexes,a=(e.Blob||"undefined"!=typeof Blob&&Blob)&&Tn.isSpecCompliantForm(t);if(!Tn.isFunction(r))throw new TypeError("visitor must be a function");function c(n){if(null===n)return"";if(Tn.isDate(n))return n.toISOString();if(!a&&Tn.isBlob(n))throw new _t("Blob is not supported. Use a Buffer instead.");return Tn.isArrayBuffer(n)||Tn.isTypedArray(n)?a&&"function"==typeof Blob?new Blob([n]):Nn.from(n):n}function u(n,e,r){let a=n;if(n&&!r&&"object"==typeof n)if(Tn.endsWith(e,"{}"))e=i?e:e.slice(0,-2),n=JSON.stringify(n);else if(Tn.isArray(n)&&function(n){return Tn.isArray(n)&&!n.some(Tt)}(n)||(Tn.isFileList(n)||Tn.endsWith(e,"[]"))&&(a=Tn.toArray(n)))return e=At(e),a.forEach((function(n,i){!Tn.isUndefined(n)&&null!==n&&t.append(!0===s?Rt([e],i,o):null===s?e:e+"[]",c(n))})),!1;return!!Tt(n)||(t.append(Rt(r,e,o),c(n)),!1)}const h=[],l=Object.assign(It,{defaultVisitor:u,convertValue:c,isVisitable:Tt});if(!Tn.isObject(n))throw new TypeError("data must be an object");return function n(e,i){if(!Tn.isUndefined(e)){if(-1!==h.indexOf(e))throw Error("Circular reference detected in "+i.join("."));h.push(e),Tn.forEach(e,(function(e,o){!0===(!(Tn.isUndefined(e)||null===e)&&r.call(t,e,Tn.isString(o)?o.trim():o,i,l))&&n(e,i?i.concat(o):[o])})),h.pop()}}(n),t}function Ot(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,(function(n){return t[n]}))}function Ct(n,t){this.h=[],n&&zt(n,this,t)}const qt=Ct.prototype;function Pt(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jt(n,t,e){if(!t)return n;const i=e&&e.encode||Pt,r=e&&e.serialize;let o;if(o=r?r(t,e):Tn.isURLSearchParams(t)?t.toString():new Ct(t,e).toString(i),o){const t=n.indexOf("#");-1!==t&&(n=n.slice(0,t)),n+=(-1===n.indexOf("?")?"?":"&")+o}return n}qt.append=function(n,t){this.h.push([n,t])},qt.toString=function(n){const t=n?function(t){return n.call(this,t,Ot)}:Ot;return this.h.map((function(n){return t(n[0])+"="+t(n[1])}),"").join("&")};class Mt{constructor(){this.handlers=[]}use(n,t,e){return this.handlers.push({fulfilled:n,rejected:t,synchronous:!!e&&e.synchronous,runWhen:e?e.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){Tn.forEach(this.handlers,(function(t){null!==t&&n(t)}))}}var Bt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ct,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ft="undefined"!=typeof document,Nt="object"==typeof navigator&&navigator||void 0,Ut=Ft&&(!Nt||["ReactNative","NativeScript","NS"].indexOf(Nt.product)<0),Ht="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Lt=Ft&&window.location.href||"http://localhost";var Wt={...Object.freeze({__proto__:null,hasBrowserEnv:Ft,hasStandardBrowserEnv:Ut,hasStandardBrowserWebWorkerEnv:Ht,navigator:Nt,origin:Lt}),...Dt};function Jt(n){function t(n,e,i,r){let o=n[r++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=r>=n.length;return o=!o&&Tn.isArray(i)?i.length:o,a?(Tn.hasOwnProp(i,o)?i[o]=[i[o],e]:i[o]=e,!s):(i[o]&&Tn.isObject(i[o])||(i[o]=[]),t(n,e,i[o],r)&&Tn.isArray(i[o])&&(i[o]=function(n){const t={},e=Object.keys(n);let i;const r=e.length;let o;for(i=0;i<r;i++)o=e[i],t[o]=n[o];return t}(i[o])),!s)}if(Tn.isFormData(n)&&Tn.isFunction(n.entries)){const e={};return Tn.forEachEntry(n,((n,i)=>{t(function(n){return Tn.matchAll(/\w+|\[(\w*)]/g,n).map((n=>"[]"===n[0]?"":n[1]||n[0]))}(n),i,e,0)})),e}return null}const Kt={transitional:Bt,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",i=e.indexOf("application/json")>-1,r=Tn.isObject(n);if(r&&Tn.isHTMLForm(n)&&(n=new FormData(n)),Tn.isFormData(n))return i?JSON.stringify(Jt(n)):n;if(Tn.isArrayBuffer(n)||Tn.isBuffer(n)||Tn.isStream(n)||Tn.isFile(n)||Tn.isBlob(n)||Tn.isReadableStream(n))return n;if(Tn.isArrayBufferView(n))return n.buffer;if(Tn.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let o;if(r){if(e.indexOf("application/x-www-form-urlencoded")>-1)return function(n,t){return zt(n,new Wt.classes.URLSearchParams,Object.assign({visitor:function(n,t,e,i){return Wt.isNode&&Tn.isBuffer(n)?(this.append(t,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(n,this.formSerializer).toString();if((o=Tn.isFileList(n))||e.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return zt(o?{"files[]":n}:n,t&&new t,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),function(n){if(Tn.isString(n))try{return(0,JSON.parse)(n),Tn.trim(n)}catch(n){if("SyntaxError"!==n.name)throw n}return(0,JSON.stringify)(n)}(n)):n}],transformResponse:[function(n){const t=this.transitional||Kt.transitional,e=t&&t.forcedJSONParsing,i="json"===this.responseType;if(Tn.isResponse(n)||Tn.isReadableStream(n))return n;if(n&&Tn.isString(n)&&(e&&!this.responseType||i)){const e=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(n){if(e){if("SyntaxError"===n.name)throw _t.from(n,_t.ERR_BAD_RESPONSE,this,null,this.response);throw n}}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wt.classes.FormData,Blob:Wt.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Tn.forEach(["delete","get","head","post","put","patch"],(n=>{Kt.headers[n]={}}));const Vt=Tn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xt=Symbol("internals");function Gt(n){return n&&String(n).trim().toLowerCase()}function Yt(n){return!1===n||null==n?n:Tn.isArray(n)?n.map(Yt):String(n)}function Zt(n,t,e,i,r){return Tn.isFunction(i)?i.call(this,t,e):(r&&(t=e),Tn.isString(t)?Tn.isString(i)?-1!==t.indexOf(i):Tn.isRegExp(i)?i.test(t):void 0:void 0)}class Qt{constructor(n){n&&this.set(n)}set(n,t,e){const i=this;function r(n,t,e){const r=Gt(t);if(!r)throw new Error("header name must be a non-empty string");const o=Tn.findKey(i,r);(!o||void 0===i[o]||!0===e||void 0===e&&!1!==i[o])&&(i[o||t]=Yt(n))}const o=(n,t)=>Tn.forEach(n,((n,e)=>r(n,e,t)));if(Tn.isPlainObject(n)||n instanceof this.constructor)o(n,t);else if(Tn.isString(n)&&(n=n.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))o((n=>{const t={};let e,i,r;return n&&n.split("\n").forEach((function(n){r=n.indexOf(":"),e=n.substring(0,r).trim().toLowerCase(),i=n.substring(r+1).trim(),!e||t[e]&&Vt[e]||("set-cookie"===e?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)})),t})(n),t);else if(Tn.isHeaders(n))for(const[t,i]of n.entries())r(i,t,e);else null!=n&&r(t,n,e);return this}get(n,t){if(n=Gt(n)){const e=Tn.findKey(this,n);if(e){const n=this[e];if(!t)return n;if(!0===t)return function(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(n);)t[i[1]]=i[2];return t}(n);if(Tn.isFunction(t))return t.call(this,n,e);if(Tn.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,t){if(n=Gt(n)){const e=Tn.findKey(this,n);return!(!e||void 0===this[e]||t&&!Zt(0,this[e],e,t))}return!1}delete(n,t){const e=this;let i=!1;function r(n){if(n=Gt(n)){const r=Tn.findKey(e,n);!r||t&&!Zt(0,e[r],r,t)||(delete e[r],i=!0)}}return Tn.isArray(n)?n.forEach(r):r(n),i}clear(n){const t=Object.keys(this);let e=t.length,i=!1;for(;e--;){const r=t[e];n&&!Zt(0,this[r],r,n,!0)||(delete this[r],i=!0)}return i}normalize(n){const t=this,e={};return Tn.forEach(this,((i,r)=>{const o=Tn.findKey(e,r);if(o)return t[o]=Yt(i),void delete t[r];const s=n?function(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((n,t,e)=>t.toUpperCase()+e))}(r):String(r).trim();s!==r&&delete t[r],t[s]=Yt(i),e[s]=!0})),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const t=Object.create(null);return Tn.forEach(this,((e,i)=>{null!=e&&!1!==e&&(t[i]=n&&Tn.isArray(e)?e.join(", "):e)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([n,t])=>n+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...t){const e=new this(n);return t.forEach((n=>e.set(n))),e}static accessor(n){const t=(this[Xt]=this[Xt]={accessors:{}}).accessors,e=this.prototype;function i(n){const i=Gt(n);t[i]||(function(n,t){const e=Tn.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(n,i+e,{value:function(n,e,r){return this[i].call(this,t,n,e,r)},configurable:!0})}))}(e,n),t[i]=!0)}return Tn.isArray(n)?n.forEach(i):i(n),this}}function ne(n,t){const e=this||Kt,i=t||e,r=Qt.from(i.headers);let o=i.data;return Tn.forEach(n,(function(n){o=n.call(e,o,r.normalize(),t?t.status:void 0)})),r.normalize(),o}function te(n){return!(!n||!n.l)}function ee(n,t,e){_t.call(this,null==n?"canceled":n,_t.ERR_CANCELED,t,e),this.name="CanceledError"}function ie(n,t,e){const i=e.config.validateStatus;e.status&&i&&!i(e.status)?t(new _t("Request failed with status code "+e.status,[_t.ERR_BAD_REQUEST,_t.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e)):n(e)}Qt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Tn.reduceDescriptors(Qt.prototype,(({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(n){this[e]=n}}})),Tn.freezeMethods(Qt),Tn.inherits(ee,_t,{l:!0});const re=(n,t,e=3)=>{let i=0;const r=function(n,t){n=n||10;const e=new Array(n),i=new Array(n);let r,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=i[s];r||(r=c),e[o]=a,i[o]=c;let h=s,l=0;for(;h!==o;)l+=e[h++],h%=n;if(o=(o+1)%n,o===s&&(s=(s+1)%n),c-r<t)return;const f=u&&c-u;return f?Math.round(1e3*l/f):void 0}}(50,250);return function(n,t){let e,i,r=0,o=1e3/t;const s=(t,o=Date.now())=>{r=o,e=null,i&&(clearTimeout(i),i=null),n.apply(null,t)};return[(...n)=>{const t=Date.now(),a=t-r;a>=o?s(n,t):(e=n,i||(i=setTimeout((()=>{i=null,s(e)}),o-a)))},()=>e&&s(e)]}((e=>{const o=e.loaded,s=e.lengthComputable?e.total:void 0,a=o-i,c=r(a);i=o,n({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:e,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),e)},oe=(n,t)=>{const e=null!=n;return[i=>t[0]({lengthComputable:e,total:n,loaded:i}),t[1]]},se=n=>(...t)=>Tn.asap((()=>n(...t)));var ae=Wt.hasStandardBrowserEnv?function(){const n=Wt.navigator&&/(msie|trident)/i.test(Wt.navigator.userAgent),t=document.createElement("a");let e;function i(e){let i=e;return n&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return e=i(window.location.href),function(n){const t=Tn.isString(n)?i(n):n;return t.protocol===e.protocol&&t.host===e.host}}():function(){return!0},ce=Wt.hasStandardBrowserEnv?{write(n,t,e,i,r,o){const s=[n+"="+encodeURIComponent(t)];Tn.isNumber(e)&&s.push("expires="+new Date(e).toGMTString()),Tn.isString(i)&&s.push("path="+i),Tn.isString(r)&&s.push("domain="+r),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ue(n,t){return n&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}(n,t):t}const he=n=>n instanceof Qt?{...n}:n;function le(n,t){t=t||{};const e={};function i(n,t,e){return Tn.isPlainObject(n)&&Tn.isPlainObject(t)?Tn.merge.call({caseless:e},n,t):Tn.isPlainObject(t)?Tn.merge({},t):Tn.isArray(t)?t.slice():t}function r(n,t,e){return Tn.isUndefined(t)?Tn.isUndefined(n)?void 0:i(void 0,n,e):i(n,t,e)}function o(n,t){if(!Tn.isUndefined(t))return i(void 0,t)}function s(n,t){return Tn.isUndefined(t)?Tn.isUndefined(n)?void 0:i(void 0,n):i(void 0,t)}function a(e,r,o){return o in t?i(e,r):o in n?i(void 0,e):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(n,t)=>r(he(n),he(t),!0)};return Tn.forEach(Object.keys(Object.assign({},n,t)),(function(i){const o=c[i]||r,s=o(n[i],t[i],i);Tn.isUndefined(s)&&o!==a||(e[i]=s)})),e}var fe=n=>{const t=le({},n);let e,{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Qt.from(a),t.url=jt(ue(t.baseURL,t.url),n.params,n.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Tn.isFormData(i))if(Wt.hasStandardBrowserEnv||Wt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(e=a.getContentType())){const[n,...t]=e?e.split(";").map((n=>n.trim())).filter(Boolean):[];a.setContentType([n||"multipart/form-data",...t].join("; "))}if(Wt.hasStandardBrowserEnv&&(r&&Tn.isFunction(r)&&(r=r(t)),r||!1!==r&&ae(t.url))){const n=o&&s&&ce.read(s);n&&a.set(o,n)}return t},de="undefined"!=typeof XMLHttpRequest&&function(n){return new Promise((function(t,e){const i=fe(n);let r=i.data;const o=Qt.from(i.headers).normalize();let s,a,c,u,h,{responseType:l,onUploadProgress:f,onDownloadProgress:d}=i;function p(){u&&u(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const i=Qt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());ie((function(n){t(n),p()}),(function(n){e(n),p()}),{data:l&&"text"!==l&&"json"!==l?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:i,config:n,request:m}),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(e(new _t("Request aborted",_t.ECONNABORTED,n,m)),m=null)},m.onerror=function(){e(new _t("Network Error",_t.ERR_NETWORK,n,m)),m=null},m.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||Bt;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),e(new _t(t,r.clarifyTimeoutError?_t.ETIMEDOUT:_t.ECONNABORTED,n,m)),m=null},void 0===r&&o.setContentType(null),"setRequestHeader"in m&&Tn.forEach(o.toJSON(),(function(n,t){m.setRequestHeader(t,n)})),Tn.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),l&&"json"!==l&&(m.responseType=i.responseType),d&&([c,h]=re(d,!0),m.addEventListener("progress",c)),f&&m.upload&&([a,u]=re(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(i.cancelToken||i.signal)&&(s=t=>{m&&(e(!t||t.type?new ee(null,n,m):t),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const v=function(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}(i.url);v&&-1===Wt.protocols.indexOf(v)?e(new _t("Unsupported protocol "+v+":",_t.ERR_BAD_REQUEST,n)):m.send(r||null)}))};const pe=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let e,i=new AbortController;const r=function(n){if(!e){e=!0,s();const t=n instanceof Error?n:this.reason;i.abort(t instanceof _t?t:new ee(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,r(new _t(`timeout ${t} of ms exceeded`,_t.ETIMEDOUT))}),t);const s=()=>{n&&(o&&clearTimeout(o),o=null,n.forEach((n=>{n.unsubscribe?n.unsubscribe(r):n.removeEventListener("abort",r)})),n=null)};n.forEach((n=>n.addEventListener("abort",r)));const{signal:a}=i;return a.unsubscribe=()=>Tn.asap(s),a}},me=function*(n,t){let e=n.byteLength;if(e<t)return void(yield n);let i,r=0;for(;r<e;)i=r+t,yield n.slice(r,i),r=i},ge=(n,t,e,i)=>{const r=async function*(n,t){for await(const e of async function*(n){if(n[Symbol.asyncIterator])return void(yield*n);const t=n.getReader();try{for(;;){const{done:n,value:e}=await t.read();if(n)break;yield e}}finally{await t.cancel()}}(n))yield*me(e,t)}(n,t);let o,s=0,a=n=>{o||(o=!0,i&&i(n))};return new ReadableStream({async pull(n){try{const{done:t,value:i}=await r.next();if(t)return a(),void n.close();let o=i.byteLength;if(e){let n=s+=o;e(n)}n.enqueue(new Uint8Array(i))}catch(n){throw a(n),n}},cancel:n=>(a(n),r.return())},{highWaterMark:2})},ve="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,we=ve&&"function"==typeof ReadableStream,be=ve&&("function"==typeof TextEncoder?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),ye=(n,...t)=>{try{return!!n(...t)}catch(n){return!1}},xe=we&&ye((()=>{let n=!1;const t=new Request(Wt.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t})),Se=we&&ye((()=>Tn.isReadableStream(new Response("").body))),$e={stream:Se&&(n=>n.body)};var _e;ve&&(_e=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((n=>{!$e[n]&&($e[n]=Tn.isFunction(_e[n])?t=>t[n]():(t,e)=>{throw new _t(`Response type '${n}' is not supported`,_t.ERR_NOT_SUPPORT,e)})})));const ke={http:null,xhr:de,fetch:ve&&(async n=>{let{url:t,method:e,data:i,signal:r,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:h,withCredentials:l="same-origin",fetchOptions:f}=fe(n);u=u?(u+"").toLowerCase():"text";let d,p=pe([r,o&&o.toAbortSignal()],s);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(c&&xe&&"get"!==e&&"head"!==e&&0!==(g=await(async(n,t)=>{const e=Tn.toFiniteNumber(n.getContentLength());return null==e?(async n=>{if(null==n)return 0;if(Tn.isBlob(n))return n.size;if(Tn.isSpecCompliantForm(n)){const t=new Request(Wt.origin,{method:"POST",body:n});return(await t.arrayBuffer()).byteLength}return Tn.isArrayBufferView(n)||Tn.isArrayBuffer(n)?n.byteLength:(Tn.isURLSearchParams(n)&&(n+=""),Tn.isString(n)?(await be(n)).byteLength:void 0)})(t):e})(h,i))){let n,e=new Request(t,{method:"POST",body:i,duplex:"half"});if(Tn.isFormData(i)&&(n=e.headers.get("content-type"))&&h.setContentType(n),e.body){const[n,t]=oe(g,re(se(c)));i=ge(e.body,65536,n,t)}}Tn.isString(l)||(l=l?"include":"omit");const r="credentials"in Request.prototype;d=new Request(t,{...f,signal:p,method:e.toUpperCase(),headers:h.normalize().toJSON(),body:i,duplex:"half",credentials:r?l:void 0});let o=await fetch(d);const s=Se&&("stream"===u||"response"===u);if(Se&&(a||s&&m)){const n={};["status","statusText","headers"].forEach((t=>{n[t]=o[t]}));const t=Tn.toFiniteNumber(o.headers.get("content-length")),[e,i]=a&&oe(t,re(se(a),!0))||[];o=new Response(ge(o.body,65536,e,(()=>{i&&i(),m&&m()})),n)}u=u||"text";let v=await $e[Tn.findKey($e,u)||"text"](o,n);return!s&&m&&m(),await new Promise(((t,e)=>{ie(t,e,{data:v,headers:Qt.from(o.headers),status:o.status,statusText:o.statusText,config:n,request:d})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new _t("Network Error",_t.ERR_NETWORK,n,d),{cause:t.cause||t});throw _t.from(t,t&&t.code,n,d)}})};Tn.forEach(ke,((n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch(n){}Object.defineProperty(n,"adapterName",{value:t})}}));const Ee=n=>`- ${n}`,Te=n=>Tn.isFunction(n)||null===n||!1===n;var Ae=n=>{n=Tn.isArray(n)?n:[n];const{length:t}=n;let e,i;const r={};for(let o=0;o<t;o++){let t;if(e=n[o],i=e,!Te(e)&&(i=ke[(t=String(e)).toLowerCase()],void 0===i))throw new _t(`Unknown adapter '${t}'`);if(i)break;r[t||"#"+o]=i}if(!i){const n=Object.entries(r).map((([n,t])=>`adapter ${n} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new _t("There is no suitable adapter to dispatch the request "+(t?n.length>1?"since :\n"+n.map(Ee).join("\n"):" "+Ee(n[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function Re(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ee(null,n)}function Ie(n){return Re(n),n.headers=Qt.from(n.headers),n.data=ne.call(n,n.transformRequest),-1!==["post","put","patch"].indexOf(n.method)&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Ae(n.adapter||Kt.adapter)(n).then((function(t){return Re(n),t.data=ne.call(n,n.transformResponse,t),t.headers=Qt.from(t.headers),t}),(function(t){return te(t)||(Re(n),t&&t.response&&(t.response.data=ne.call(n,n.transformResponse,t.response),t.response.headers=Qt.from(t.response.headers))),Promise.reject(t)}))}const ze={};["object","boolean","number","function","string","symbol"].forEach(((n,t)=>{ze[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}}));const Oe={};ze.transitional=function(n,t,e){function i(n,t){return"[Axios v1.7.7] Transitional option '"+n+"'"+t+(e?". "+e:"")}return(e,r,o)=>{if(!1===n)throw new _t(i(r," has been removed"+(t?" in "+t:"")),_t.ERR_DEPRECATED);return t&&!Oe[r]&&(Oe[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!n||n(e,r,o)}};var Ce={assertOptions:function(n,t,e){if("object"!=typeof n)throw new _t("options must be an object",_t.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let r=i.length;for(;r-- >0;){const o=i[r],s=t[o];if(s){const t=n[o],e=void 0===t||s(t,o,n);if(!0!==e)throw new _t("option "+o+" must be "+e,_t.ERR_BAD_OPTION_VALUE)}else if(!0!==e)throw new _t("Unknown option "+o,_t.ERR_BAD_OPTION)}},validators:ze};const qe=Ce.validators;class Pe{constructor(n){this.defaults=n,this.interceptors={request:new Mt,response:new Mt}}async request(n,t){try{return await this.m(n,t)}catch(n){if(n instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const e=t.stack?t.stack.replace(/^.+\n/,""):"";try{n.stack?e&&!String(n.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+e):n.stack=e}catch(n){}}throw n}}m(n,t){"string"==typeof n?(t=t||{}).url=n:t=n||{},t=le(this.defaults,t);const{transitional:e,paramsSerializer:i,headers:r}=t;void 0!==e&&Ce.assertOptions(e,{silentJSONParsing:qe.transitional(qe.boolean),forcedJSONParsing:qe.transitional(qe.boolean),clarifyTimeoutError:qe.transitional(qe.boolean)},!1),null!=i&&(Tn.isFunction(i)?t.paramsSerializer={serialize:i}:Ce.assertOptions(i,{encode:qe.function,serialize:qe.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=r&&Tn.merge(r.common,r[t.method]);r&&Tn.forEach(["delete","get","head","post","put","patch","common"],(n=>{delete r[n]})),t.headers=Qt.concat(o,r);const s=[];let a=!0;this.interceptors.request.forEach((function(n){"function"==typeof n.runWhen&&!1===n.runWhen(t)||(a=a&&n.synchronous,s.unshift(n.fulfilled,n.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(n){c.push(n.fulfilled,n.rejected)}));let h,l=0;if(!a){const n=[Ie.bind(this),void 0];for(n.unshift.apply(n,s),n.push.apply(n,c),h=n.length,u=Promise.resolve(t);l<h;)u=u.then(n[l++],n[l++]);return u}h=s.length;let f=t;for(l=0;l<h;){const n=s[l++],t=s[l++];try{f=n(f)}catch(n){t.call(this,n);break}}try{u=Ie.call(this,f)}catch(n){return Promise.reject(n)}for(l=0,h=c.length;l<h;)u=u.then(c[l++],c[l++]);return u}getUri(n){return jt(ue((n=le(this.defaults,n)).baseURL,n.url),n.params,n.paramsSerializer)}}Tn.forEach(["delete","get","head","options"],(function(n){Pe.prototype[n]=function(t,e){return this.request(le(e||{},{method:n,url:t,data:(e||{}).data}))}})),Tn.forEach(["post","put","patch"],(function(n){function t(t){return function(e,i,r){return this.request(le(r||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:e,data:i}))}}Pe.prototype[n]=t(),Pe.prototype[n+"Form"]=t(!0)}));class je{constructor(n){if("function"!=typeof n)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(n){t=n}));const e=this;this.promise.then((n=>{if(!e.v)return;let t=e.v.length;for(;t-- >0;)e.v[t](n);e.v=null})),this.promise.then=n=>{let t;const i=new Promise((n=>{e.subscribe(n),t=n})).then(n);return i.cancel=function(){e.unsubscribe(t)},i},n((function(n,i,r){e.reason||(e.reason=new ee(n,i,r),t(e.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){this.reason?n(this.reason):this.v?this.v.push(n):this.v=[n]}unsubscribe(n){if(!this.v)return;const t=this.v.indexOf(n);-1!==t&&this.v.splice(t,1)}toAbortSignal(){const n=new AbortController,t=t=>{n.abort(t)};return this.subscribe(t),n.signal.unsubscribe=()=>this.unsubscribe(t),n.signal}static source(){let n;return{token:new je((function(t){n=t})),cancel:n}}}const Me={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Me).forEach((([n,t])=>{Me[t]=n}));const Be=function n(t){const e=new Pe(t),i=j(Pe.prototype.request,e);return Tn.extend(i,Pe.prototype,e,{allOwnKeys:!0}),Tn.extend(i,e,null,{allOwnKeys:!0}),i.create=function(e){return n(le(t,e))},i}(Kt);Be.Axios=Pe,Be.CanceledError=ee,Be.CancelToken=je,Be.isCancel=te,Be.VERSION="1.7.7",Be.toFormData=zt,Be.AxiosError=_t,Be.Cancel=Be.CanceledError,Be.all=function(n){return Promise.all(n)},Be.spread=function(n){return function(t){return n.apply(null,t)}},Be.isAxiosError=function(n){return Tn.isObject(n)&&!0===n.isAxiosError},Be.mergeConfig=le,Be.AxiosHeaders=Qt,Be.formToJSON=n=>Jt(Tn.isHTMLForm(n)?new FormData(n):n),Be.getAdapter=Ae,Be.HttpStatusCode=Me,Be.default=Be;const De={[r.ADD_TO_CART_FROM_DETAILS]:{required:["add","cart"],optional:["details","detail","single","profile","page","pdp"]},[r.BUY_NOW]:{required:["buy","now"]},[r.EXPAND_PRODUCT]:{required:["product"],optional:["details","expand","modal","popup","quickview","view"]},[r.ADD_TO_WISHLIST]:{required:["add","wishlist"]},[r.REMOVE_FROM_CART]:{required:["remove","cart"]},[r.PURCHASE]:{required:["purchase"]},[r.ADD_TO_CART]:{required:["add","cart"]}};function Fe(n,t){return new RegExp(`^${t}s?$|${t}s?\\W|\\W${t}s?$|\\W${t}s?\\W`).test(` ${n} `)}function Ne(n,t,e){return!!t.every((t=>n.some((n=>Fe(n,t)))))&&(!(null==e?void 0:e.length)||e.some((t=>n.some((n=>Fe(n,t))))))}class Ue{static getInstance(n,t){this.instances.has(n)||this.instances.set(n,t());const e=this.instances.get(n);if(!e)throw new Error(`Instance for class ${n} could not be created.`);return e}}Ue.instances=new Map;class He{static getInstance(){return Ue.getInstance("ObjectHelper",(()=>new He))}merge(n,...t){for(const e of t)this.mergeValue(n,e);return n}values(n){return Object.values(n)}includes(n,t){return t in n}valuesIncludes(n,t){return Object.values(n).includes(t)}hasAllValues(n,t){const e=Object.keys(n);return t.every((n=>e.includes(n)))}isArray(n){return"[object Array]"===Object.prototype.toString.call(n)}mergeValue(n,t){var e;return this.isArray(t)?this.mergeArrayValues(n,t):"object"==typeof t?this.mergeObjectValues(n,t):null!==(e=null!=t?t:n)&&void 0!==e?e:void 0}mergeArrayValues(n,t){if(!this.isArray(n))return[...t];const e=n;for(let n=0,i=t.length;n<i;n++)e[n]=this.mergeValue(e[n],t[n]);return e}mergeObjectValues(n,t){return n&&"object"==typeof n?(this.innerMerge(n,t),n):t?{...t}:t}innerMerge(n,t){for(const e of Object.keys(t))n[e]=this.mergeValue(n[e],t[e])}}function Le(n,t){const e=[],i=new Set(["gtin","gtin8","gtin12","gtin13","gtin14","mpn","sku","upc","ean","isbn","isbn10","isbn13","asin","coupon","barcode","product_code","part_number","model_number","item_variant","item_number","article_number","reference","groupingId"].map((n=>n.toLowerCase()))),r=(n,t)=>{if(null!=n)if(t&&(n=>{const t=n.toLowerCase();return t.endsWith("id")||i.has(t)})(t))Array.isArray(n)?e.push(...n.filter((n=>"string"==typeof n||"number"==typeof n))):"string"!=typeof n&&"number"!=typeof n||e.push(n);else if(Array.isArray(n))n.forEach((n=>r(n)));else if("object"==typeof n)for(const[t,e]of Object.entries(n))r(e,t)};return r(n),e}async function We({event:n,eventUrl:t}){var e;try{if(!(null===(e=null===navigator||void 0===navigator?void 0:navigator.sendBeacon)||void 0===e?void 0:e.call(navigator,t))&&!await async function(n){try{const t=Promise.race([fetch(n,{method:"POST",keepalive:!0}),new Promise(((n,t)=>setTimeout((()=>t(new Error("Request timeout"))),2e3)))]);return(await t).ok}catch(n){return!1}}(t))return;if(n===r.CLICK){const n=function(n){try{const t=new URL(n).searchParams.get("e");return t&&JSON.parse(atob(t)).ur||null}catch(n){return null}}(t);n&&(window.location.href=n)}}catch(n){}}function Je(n){const t=1+.35*(Math.sqrt(n)-1);return Math.max(.35,Math.min(1.5,t))}class Ke{static initialize(n=Math.floor(1024*Math.random())){if(n<0||n>=1<<this.nodeBits)throw new Error("Node ID must be between 0 and "+((1<<this.nodeBits)-1));this.nodeId=n}static toBase32(n,t){let e="";for(;n>0;)e=this.base32Chars[Number(n%BigInt(32))]+e,n/=32n;return e.padStart(t,"0")}static getSecureRandom(){if("undefined"!=typeof crypto){const n=new Uint32Array(1);return crypto.getRandomValues(n),n[0]}return Math.floor(4294967295*Math.random())}static waitNextMillis(n){let t=Date.now();for(;t<=n;)t=Date.now();return t}static generate(){void 0===this.nodeId&&this.initialize();let n=Date.now()-this.epoch;if(n<this.lastTimestamp)throw new Error("Clock moved backwards. Refusing to generate ID.");n===this.lastTimestamp?(this.sequence=this.sequence+1&(1<<this.sequenceBits)-1,0===this.sequence&&(n=this.waitNextMillis(this.lastTimestamp))):this.sequence=0,this.lastTimestamp=n;const t=65535&this.getSecureRandom();return`${this.toBase32(BigInt(n),10)}${this.toBase32(BigInt(this.sequence),4)}${this.toBase32(BigInt(this.nodeId),5)}${this.toBase32(BigInt(t),4)}`}static isValid(n){if(!/^[0-9A-HJ-NP-Z]{23}$/.test(n))return!1;try{const t=n.slice(0,10),e=this.decodeBase32(t),i=Date.now()-this.epoch;return e>=0&&e<=i}catch(n){return!1}}static decodeBase32(n){let t=0;for(const e of n)t=32*t+this.base32Chars.indexOf(e);return t}static getTimestamp(n){if(!this.isValid(n))throw new Error("Invalid ID format");const t=n.slice(0,10),e=this.decodeBase32(t);return new Date(e+this.epoch)}}Ke.epoch=15778368e5,Ke.nodeBits=10,Ke.sequenceBits=12,Ke.lastTimestamp=-1,Ke.sequence=0,Ke.base32Chars="0123456789ABCDEFGHJKMNPQRSTVWXYZ";var Ve="undefined"!=typeof globalThis?globalThis:window;function Xe(n){if(n.S)return n;var t=n.default;if("function"==typeof t){var e=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"S",{value:!0}),Object.keys(n).forEach((function(t){var i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:function(){return n[t]}})})),e}var Ge,Ye={exports:{}},Ze={exports:{}},Qe=Xe(Object.freeze({__proto__:null,default:{}}));function ni(){return Ge||(Ge=1,function(n){var t;n.exports=(t=t||function(n){var t;if(window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==Ve&&Ve.crypto&&(t=Ve.crypto),!t)try{t=Qe}catch(n){}var e=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(n){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(n){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function n(){}return function(t){var e;return n.prototype=t,e=new n,n.prototype=null,e}}(),r={},o=r.lib={},s=o.Base={extend:function(n){var t=i(this);return n&&t.mixIn(n),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var n=this.extend();return n.init.apply(n,arguments),n},init:function(){},mixIn:function(n){for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t]);n.hasOwnProperty("toString")&&(this.toString=n.toString)},clone:function(){return this.init.prototype.extend(this)}},a=o.WordArray=s.extend({init:function(n,t){n=this.words=n||[],this.sigBytes=null!=t?t:4*n.length},toString:function(n){return(n||u).stringify(this)},concat:function(n){var t=this.words,e=n.words,i=this.sigBytes,r=n.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var s=e[o>>>2]>>>24-o%4*8&255;t[i+o>>>2]|=s<<24-(i+o)%4*8}else for(var a=0;a<r;a+=4)t[i+a>>>2]=e[a>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=n.ceil(e/4)},clone:function(){var n=s.clone.call(this);return n.words=this.words.slice(0),n},random:function(n){for(var t=[],i=0;i<n;i+=4)t.push(e());return new a.init(t,n)}}),c=r.enc={},u=c.Hex={stringify:function(n){for(var t=n.words,e=n.sigBytes,i=[],r=0;r<e;r++){var o=t[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(n){for(var t=n.length,e=[],i=0;i<t;i+=2)e[i>>>3]|=parseInt(n.substr(i,2),16)<<24-i%8*4;return new a.init(e,t/2)}},h=c.Latin1={stringify:function(n){for(var t=n.words,e=n.sigBytes,i=[],r=0;r<e;r++){var o=t[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(n){for(var t=n.length,e=[],i=0;i<t;i++)e[i>>>2]|=(255&n.charCodeAt(i))<<24-i%4*8;return new a.init(e,t)}},l=c.Utf8={stringify:function(n){try{return decodeURIComponent(escape(h.stringify(n)))}catch(n){throw new Error("Malformed UTF-8 data")}},parse:function(n){return h.parse(unescape(encodeURIComponent(n)))}},f=o.BufferedBlockAlgorithm=s.extend({reset:function(){this.$=new a.init,this._=0},T:function(n){"string"==typeof n&&(n=l.parse(n)),this.$.concat(n),this._+=n.sigBytes},A:function(t){var e,i=this.$,r=i.words,o=i.sigBytes,s=this.blockSize,c=o/(4*s),u=(c=t?n.ceil(c):n.max((0|c)-this.R,0))*s,h=n.min(4*u,o);if(u){for(var l=0;l<u;l+=s)this.I(r,l);e=r.splice(0,u),i.sigBytes-=h}return new a.init(e,h)},clone:function(){var n=s.clone.call(this);return n.$=this.$.clone(),n},R:0});o.Hasher=f.extend({cfg:s.extend(),init:function(n){this.cfg=this.cfg.extend(n),this.reset()},reset:function(){f.reset.call(this),this.O()},update:function(n){return this.T(n),this.A(),this},finalize:function(n){return n&&this.T(n),this.C()},blockSize:16,P:function(n){return function(t,e){return new n.init(e).finalize(t)}},j:function(n){return function(t,e){return new d.HMAC.init(n,e).finalize(t)}}});var d=r.algo={};return r}(Math),t)}(Ze)),Ze.exports}var ti,ei={exports:{}};function ii(){return ti||(ti=1,function(n){var t,e,i,r,o,s;n.exports=(e=(t=s=ni()).lib,i=e.Base,r=e.WordArray,(o=t.x64={}).Word=i.extend({init:function(n,t){this.high=n,this.low=t}}),o.WordArray=i.extend({init:function(n,t){n=this.words=n||[],this.sigBytes=null!=t?t:8*n.length},toX32:function(){for(var n=this.words,t=n.length,e=[],i=0;i<t;i++){var o=n[i];e.push(o.high),e.push(o.low)}return r.create(e,this.sigBytes)},clone:function(){for(var n=i.clone.call(this),t=n.words=this.words.slice(0),e=t.length,r=0;r<e;r++)t[r]=t[r].clone();return n}}),s)}(ei)),ei.exports}var ri,oi,si,ai={exports:{}},ci={exports:{}},ui={exports:{}};function hi(){return si||(si=1,function(n){var t,e,i;n.exports=(t=ni(),i=(e=t).lib.WordArray,e.enc.Base64={stringify:function(n){var t=n.words,e=n.sigBytes,i=this.M;n.clamp();for(var r=[],o=0;o<e;o+=3)for(var s=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<e;a++)r.push(i.charAt(s>>>6*(3-a)&63));var c=i.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(n){var t=n.length,e=this.M,r=this.B;if(!r){r=this.B=[];for(var o=0;o<e.length;o++)r[e.charCodeAt(o)]=o}var s=e.charAt(64);if(s){var a=n.indexOf(s);-1!==a&&(t=a)}return function(n,t,e){for(var r=[],o=0,s=0;s<t;s++)if(s%4){var a=e[n.charCodeAt(s-1)]<<s%4*2|e[n.charCodeAt(s)]>>>6-s%4*2;r[o>>>2]|=a<<24-o%4*8,o++}return i.create(r,o)}(n,t,r)},M:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},t.enc.Base64)}(ui)),ui.exports}var li,fi={exports:{}};var di,pi={exports:{}};function mi(){return di||(di=1,function(n){var t;n.exports=(t=ni(),function(n){var e=t,i=e.lib,r=i.WordArray,o=i.Hasher,s=e.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*n.abs(n.sin(t+1))|0}();var c=s.MD5=o.extend({O:function(){this.D=new r.init([1732584193,4023233417,2562383102,271733878])},I:function(n,t){for(var e=0;e<16;e++){var i=t+e,r=n[i];n[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this.D.words,s=n[t+0],c=n[t+1],d=n[t+2],p=n[t+3],m=n[t+4],g=n[t+5],v=n[t+6],w=n[t+7],b=n[t+8],y=n[t+9],x=n[t+10],S=n[t+11],$=n[t+12],_=n[t+13],k=n[t+14],E=n[t+15],T=o[0],A=o[1],R=o[2],I=o[3];T=u(T,A,R,I,s,7,a[0]),I=u(I,T,A,R,c,12,a[1]),R=u(R,I,T,A,d,17,a[2]),A=u(A,R,I,T,p,22,a[3]),T=u(T,A,R,I,m,7,a[4]),I=u(I,T,A,R,g,12,a[5]),R=u(R,I,T,A,v,17,a[6]),A=u(A,R,I,T,w,22,a[7]),T=u(T,A,R,I,b,7,a[8]),I=u(I,T,A,R,y,12,a[9]),R=u(R,I,T,A,x,17,a[10]),A=u(A,R,I,T,S,22,a[11]),T=u(T,A,R,I,$,7,a[12]),I=u(I,T,A,R,_,12,a[13]),R=u(R,I,T,A,k,17,a[14]),T=h(T,A=u(A,R,I,T,E,22,a[15]),R,I,c,5,a[16]),I=h(I,T,A,R,v,9,a[17]),R=h(R,I,T,A,S,14,a[18]),A=h(A,R,I,T,s,20,a[19]),T=h(T,A,R,I,g,5,a[20]),I=h(I,T,A,R,x,9,a[21]),R=h(R,I,T,A,E,14,a[22]),A=h(A,R,I,T,m,20,a[23]),T=h(T,A,R,I,y,5,a[24]),I=h(I,T,A,R,k,9,a[25]),R=h(R,I,T,A,p,14,a[26]),A=h(A,R,I,T,b,20,a[27]),T=h(T,A,R,I,_,5,a[28]),I=h(I,T,A,R,d,9,a[29]),R=h(R,I,T,A,w,14,a[30]),T=l(T,A=h(A,R,I,T,$,20,a[31]),R,I,g,4,a[32]),I=l(I,T,A,R,b,11,a[33]),R=l(R,I,T,A,S,16,a[34]),A=l(A,R,I,T,k,23,a[35]),T=l(T,A,R,I,c,4,a[36]),I=l(I,T,A,R,m,11,a[37]),R=l(R,I,T,A,w,16,a[38]),A=l(A,R,I,T,x,23,a[39]),T=l(T,A,R,I,_,4,a[40]),I=l(I,T,A,R,s,11,a[41]),R=l(R,I,T,A,p,16,a[42]),A=l(A,R,I,T,v,23,a[43]),T=l(T,A,R,I,y,4,a[44]),I=l(I,T,A,R,$,11,a[45]),R=l(R,I,T,A,E,16,a[46]),T=f(T,A=l(A,R,I,T,d,23,a[47]),R,I,s,6,a[48]),I=f(I,T,A,R,w,10,a[49]),R=f(R,I,T,A,k,15,a[50]),A=f(A,R,I,T,g,21,a[51]),T=f(T,A,R,I,$,6,a[52]),I=f(I,T,A,R,p,10,a[53]),R=f(R,I,T,A,x,15,a[54]),A=f(A,R,I,T,c,21,a[55]),T=f(T,A,R,I,b,6,a[56]),I=f(I,T,A,R,E,10,a[57]),R=f(R,I,T,A,v,15,a[58]),A=f(A,R,I,T,_,21,a[59]),T=f(T,A,R,I,m,6,a[60]),I=f(I,T,A,R,S,10,a[61]),R=f(R,I,T,A,d,15,a[62]),A=f(A,R,I,T,y,21,a[63]),o[0]=o[0]+T|0,o[1]=o[1]+A|0,o[2]=o[2]+R|0,o[3]=o[3]+I|0},C:function(){var t=this.$,e=t.words,i=8*this._,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32;var o=n.floor(i/4294967296),s=i;e[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e[14+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(e.length+1),this.A();for(var a=this.D,c=a.words,u=0;u<4;u++){var h=c[u];c[u]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}return a},clone:function(){var n=o.clone.call(this);return n.D=this.D.clone(),n}});function u(n,t,e,i,r,o,s){var a=n+(t&e|~t&i)+r+s;return(a<<o|a>>>32-o)+t}function h(n,t,e,i,r,o,s){var a=n+(t&i|e&~i)+r+s;return(a<<o|a>>>32-o)+t}function l(n,t,e,i,r,o,s){var a=n+(t^e^i)+r+s;return(a<<o|a>>>32-o)+t}function f(n,t,e,i,r,o,s){var a=n+(e^(t|~i))+r+s;return(a<<o|a>>>32-o)+t}e.MD5=o.P(c),e.HmacMD5=o.j(c)}(Math),t.MD5)}(pi)),pi.exports}var gi,vi={exports:{}};function wi(){return gi||(gi=1,function(n){var t,e,i,r,o,s,a,c;n.exports=(e=(t=c=ni()).lib,i=e.WordArray,r=e.Hasher,o=t.algo,s=[],a=o.SHA1=r.extend({O:function(){this.D=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},I:function(n,t){for(var e=this.D.words,i=e[0],r=e[1],o=e[2],a=e[3],c=e[4],u=0;u<80;u++){if(u<16)s[u]=0|n[t+u];else{var h=s[u-3]^s[u-8]^s[u-14]^s[u-16];s[u]=h<<1|h>>>31}var l=(i<<5|i>>>27)+c+s[u];l+=u<20?1518500249+(r&o|~r&a):u<40?1859775393+(r^o^a):u<60?(r&o|r&a|o&a)-1894007588:(r^o^a)-899497514,c=a,a=o,o=r<<30|r>>>2,r=i,i=l}e[0]=e[0]+i|0,e[1]=e[1]+r|0,e[2]=e[2]+o|0,e[3]=e[3]+a|0,e[4]=e[4]+c|0},C:function(){var n=this.$,t=n.words,e=8*this._,i=8*n.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(e/4294967296),t[15+(i+64>>>9<<4)]=e,n.sigBytes=4*t.length,this.A(),this.D},clone:function(){var n=r.clone.call(this);return n.D=this.D.clone(),n}}),t.SHA1=r.P(a),t.HmacSHA1=r.j(a),c.SHA1)}(vi)),vi.exports}var bi,yi={exports:{}};function xi(){return bi||(bi=1,function(n){var t;n.exports=(t=ni(),function(n){var e=t,i=e.lib,r=i.WordArray,o=i.Hasher,s=e.algo,a=[],c=[];!function(){function t(t){for(var e=n.sqrt(t),i=2;i<=e;i++)if(!(t%i))return!1;return!0}function e(n){return 4294967296*(n-(0|n))|0}for(var i=2,r=0;r<64;)t(i)&&(r<8&&(a[r]=e(n.pow(i,.5))),c[r]=e(n.pow(i,1/3)),r++),i++}();var u=[],h=s.SHA256=o.extend({O:function(){this.D=new r.init(a.slice(0))},I:function(n,t){for(var e=this.D.words,i=e[0],r=e[1],o=e[2],s=e[3],a=e[4],h=e[5],l=e[6],f=e[7],d=0;d<64;d++){if(d<16)u[d]=0|n[t+d];else{var p=u[d-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=u[d-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[d]=m+u[d-7]+v+u[d-16]}var w=i&r^i&o^r&o,b=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),y=f+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&h^~a&l)+c[d]+u[d];f=l,l=h,h=a,a=s+y|0,s=o,o=r,r=i,i=y+(b+w)|0}e[0]=e[0]+i|0,e[1]=e[1]+r|0,e[2]=e[2]+o|0,e[3]=e[3]+s|0,e[4]=e[4]+a|0,e[5]=e[5]+h|0,e[6]=e[6]+l|0,e[7]=e[7]+f|0},C:function(){var t=this.$,e=t.words,i=8*this._,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=n.floor(i/4294967296),e[15+(r+64>>>9<<4)]=i,t.sigBytes=4*e.length,this.A(),this.D},clone:function(){var n=o.clone.call(this);return n.D=this.D.clone(),n}});e.SHA256=o.P(h),e.HmacSHA256=o.j(h)}(Math),t.SHA256)}(yi)),yi.exports}var Si,$i,_i={exports:{}},ki={exports:{}};function Ei(){return $i||($i=1,function(n){var t;n.exports=(t=ni(),ii(),function(){var n=t,e=n.lib.Hasher,i=n.x64,r=i.Word,o=i.WordArray,s=n.algo;function a(){return r.create.apply(r,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],u=[];!function(){for(var n=0;n<80;n++)u[n]=a()}();var h=s.SHA512=e.extend({O:function(){this.D=new o.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},I:function(n,t){for(var e=this.D.words,i=e[0],r=e[1],o=e[2],s=e[3],a=e[4],h=e[5],l=e[6],f=e[7],d=i.high,p=i.low,m=r.high,g=r.low,v=o.high,w=o.low,b=s.high,y=s.low,x=a.high,S=a.low,$=h.high,_=h.low,k=l.high,E=l.low,T=f.high,A=f.low,R=d,I=p,z=m,O=g,C=v,q=w,P=b,j=y,M=x,B=S,D=$,F=_,N=k,U=E,H=T,L=A,W=0;W<80;W++){var J,K,V=u[W];if(W<16)K=V.high=0|n[t+2*W],J=V.low=0|n[t+2*W+1];else{var X=u[W-15],G=X.high,Y=X.low,Z=(G>>>1|Y<<31)^(G>>>8|Y<<24)^G>>>7,Q=(Y>>>1|G<<31)^(Y>>>8|G<<24)^(Y>>>7|G<<25),nn=u[W-2],tn=nn.high,en=nn.low,rn=(tn>>>19|en<<13)^(tn<<3|en>>>29)^tn>>>6,on=(en>>>19|tn<<13)^(en<<3|tn>>>29)^(en>>>6|tn<<26),sn=u[W-7],an=sn.high,cn=sn.low,un=u[W-16],hn=un.high,ln=un.low;K=(K=(K=Z+an+((J=Q+cn)>>>0<Q>>>0?1:0))+rn+((J+=on)>>>0<on>>>0?1:0))+hn+((J+=ln)>>>0<ln>>>0?1:0),V.high=K,V.low=J}var fn,dn=M&D^~M&N,pn=B&F^~B&U,mn=R&z^R&C^z&C,gn=I&O^I&q^O&q,vn=(R>>>28|I<<4)^(R<<30|I>>>2)^(R<<25|I>>>7),wn=(I>>>28|R<<4)^(I<<30|R>>>2)^(I<<25|R>>>7),bn=(M>>>14|B<<18)^(M>>>18|B<<14)^(M<<23|B>>>9),yn=(B>>>14|M<<18)^(B>>>18|M<<14)^(B<<23|M>>>9),xn=c[W],Sn=xn.high,$n=xn.low,_n=H+bn+((fn=L+yn)>>>0<L>>>0?1:0),kn=wn+gn;H=N,L=U,N=D,U=F,D=M,F=B,M=P+(_n=(_n=(_n=_n+dn+((fn+=pn)>>>0<pn>>>0?1:0))+Sn+((fn+=$n)>>>0<$n>>>0?1:0))+K+((fn+=J)>>>0<J>>>0?1:0))+((B=j+fn|0)>>>0<j>>>0?1:0)|0,P=C,j=q,C=z,q=O,z=R,O=I,R=_n+(vn+mn+(kn>>>0<wn>>>0?1:0))+((I=fn+kn|0)>>>0<fn>>>0?1:0)|0}p=i.low=p+I,i.high=d+R+(p>>>0<I>>>0?1:0),g=r.low=g+O,r.high=m+z+(g>>>0<O>>>0?1:0),w=o.low=w+q,o.high=v+C+(w>>>0<q>>>0?1:0),y=s.low=y+j,s.high=b+P+(y>>>0<j>>>0?1:0),S=a.low=S+B,a.high=x+M+(S>>>0<B>>>0?1:0),_=h.low=_+F,h.high=$+D+(_>>>0<F>>>0?1:0),E=l.low=E+U,l.high=k+N+(E>>>0<U>>>0?1:0),A=f.low=A+L,f.high=T+H+(A>>>0<L>>>0?1:0)},C:function(){var n=this.$,t=n.words,e=8*this._,i=8*n.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(e/4294967296),t[31+(i+128>>>10<<5)]=e,n.sigBytes=4*t.length,this.A(),this.D.toX32()},clone:function(){var n=e.clone.call(this);return n.D=this.D.clone(),n},blockSize:32});n.SHA512=e.P(h),n.HmacSHA512=e.j(h)}(),t.SHA512)}(ki)),ki.exports}var Ti,Ai,Ri,Ii,zi={exports:{}},Oi={exports:{}},Ci={exports:{}},qi={exports:{}};function Pi(){return Ii||(Ii=1,function(n){var t,e,i;n.exports=(e=(t=ni()).lib.Base,i=t.enc.Utf8,void(t.algo.HMAC=e.extend({init:function(n,t){n=this.F=new n.init,"string"==typeof t&&(t=i.parse(t));var e=n.blockSize,r=4*e;t.sigBytes>r&&(t=n.finalize(t)),t.clamp();for(var o=this.N=t.clone(),s=this.U=t.clone(),a=o.words,c=s.words,u=0;u<e;u++)a[u]^=1549556828,c[u]^=909522486;o.sigBytes=s.sigBytes=r,this.reset()},reset:function(){var n=this.F;n.reset(),n.update(this.U)},update:function(n){return this.F.update(n),this},finalize:function(n){var t=this.F,e=t.finalize(n);return t.reset(),t.finalize(this.N.clone().concat(e))}})))}(qi)),qi.exports}var ji,Mi,Bi={exports:{}},Di={exports:{}};function Fi(){return Mi||(Mi=1,function(n){var t,e,i,r,o,s,a,c;n.exports=(c=ni(),wi(),Pi(),i=(e=(t=c).lib).Base,r=e.WordArray,s=(o=t.algo).MD5,a=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:s,iterations:1}),init:function(n){this.cfg=this.cfg.extend(n)},compute:function(n,t){for(var e,i=this.cfg,o=i.hasher.create(),s=r.create(),a=s.words,c=i.keySize,u=i.iterations;a.length<c;){e&&o.update(e),e=o.update(n).finalize(t),o.reset();for(var h=1;h<u;h++)e=o.finalize(e),o.reset();s.concat(e)}return s.sigBytes=4*c,s}}),t.EvpKDF=function(n,t,e){return a.create(e).compute(n,t)},c.EvpKDF)}(Di)),Di.exports}var Ni,Ui={exports:{}};function Hi(){return Ni||(Ni=1,function(n){var t;n.exports=(t=ni(),Fi(),void(t.lib.Cipher||function(){var n=t,e=n.lib,i=e.Base,r=e.WordArray,o=e.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var a=s.Base64,c=n.algo.EvpKDF,u=e.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(n,t){return this.create(this.H,n,t)},createDecryptor:function(n,t){return this.create(this.L,n,t)},init:function(n,t,e){this.cfg=this.cfg.extend(e),this.W=n,this.J=t,this.reset()},reset:function(){o.reset.call(this),this.O()},process:function(n){return this.T(n),this.A()},finalize:function(n){return n&&this.T(n),this.C()},keySize:4,ivSize:4,H:1,L:2,P:function(){function n(n){return"string"==typeof n?w:g}return function(t){return{encrypt:function(e,i,r){return n(i).encrypt(t,e,i,r)},decrypt:function(e,i,r){return n(i).decrypt(t,e,i,r)}}}}()});e.StreamCipher=u.extend({C:function(){return this.A(!0)},blockSize:1});var h=n.mode={},l=e.BlockCipherMode=i.extend({createEncryptor:function(n,t){return this.Encryptor.create(n,t)},createDecryptor:function(n,t){return this.Decryptor.create(n,t)},init:function(n,t){this.K=n,this.V=t}}),f=h.CBC=function(){var n=l.extend();function t(n,t,e){var i,r=this.V;r?(i=r,this.V=void 0):i=this.X;for(var o=0;o<e;o++)n[t+o]^=i[o]}return n.Encryptor=n.extend({processBlock:function(n,e){var i=this.K,r=i.blockSize;t.call(this,n,e,r),i.encryptBlock(n,e),this.X=n.slice(e,e+r)}}),n.Decryptor=n.extend({processBlock:function(n,e){var i=this.K,r=i.blockSize,o=n.slice(e,e+r);i.decryptBlock(n,e),t.call(this,n,e,r),this.X=o}}),n}(),d=(n.pad={}).Pkcs7={pad:function(n,t){for(var e=4*t,i=e-n.sigBytes%e,o=i<<24|i<<16|i<<8|i,s=[],a=0;a<i;a+=4)s.push(o);var c=r.create(s,i);n.concat(c)},unpad:function(n){var t=255&n.words[n.sigBytes-1>>>2];n.sigBytes-=t}};e.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:d}),reset:function(){var n;u.reset.call(this);var t=this.cfg,e=t.iv,i=t.mode;this.W==this.H?n=i.createEncryptor:(n=i.createDecryptor,this.R=1),this.G&&this.G.Y==n?this.G.init(this,e&&e.words):(this.G=n.call(i,this,e&&e.words),this.G.Y=n)},I:function(n,t){this.G.processBlock(n,t)},C:function(){var n,t=this.cfg.padding;return this.W==this.H?(t.pad(this.$,this.blockSize),n=this.A(!0)):(n=this.A(!0),t.unpad(n)),n},blockSize:4});var p=e.CipherParams=i.extend({init:function(n){this.mixIn(n)},toString:function(n){return(n||this.formatter).stringify(this)}}),m=(n.format={}).OpenSSL={stringify:function(n){var t=n.ciphertext,e=n.salt;return(e?r.create([1398893684,1701076831]).concat(e).concat(t):t).toString(a)},parse:function(n){var t,e=a.parse(n),i=e.words;return 1398893684==i[0]&&1701076831==i[1]&&(t=r.create(i.slice(2,4)),i.splice(0,4),e.sigBytes-=16),p.create({ciphertext:e,salt:t})}},g=e.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(n,t,e,i){i=this.cfg.extend(i);var r=n.createEncryptor(e,i),o=r.finalize(t),s=r.cfg;return p.create({ciphertext:o,key:e,iv:s.iv,algorithm:n,mode:s.mode,padding:s.padding,blockSize:n.blockSize,formatter:i.format})},decrypt:function(n,t,e,i){return i=this.cfg.extend(i),t=this.Z(t,i.format),n.createDecryptor(e,i).finalize(t.ciphertext)},Z:function(n,t){return"string"==typeof n?t.parse(n,this):n}}),v=(n.kdf={}).OpenSSL={execute:function(n,t,e,i,o){if(i||(i=r.random(8)),o)s=c.create({keySize:t+e,hasher:o}).compute(n,i);else var s=c.create({keySize:t+e}).compute(n,i);var a=r.create(s.words.slice(t),4*e);return s.sigBytes=4*t,p.create({key:s,iv:a,salt:i})}},w=e.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:v}),encrypt:function(n,t,e,i){var r=(i=this.cfg.extend(i)).kdf.execute(e,n.keySize,n.ivSize,i.salt,i.hasher);i.iv=r.iv;var o=g.encrypt.call(this,n,t,r.key,i);return o.mixIn(r),o},decrypt:function(n,t,e,i){i=this.cfg.extend(i),t=this.Z(t,i.format);var r=i.kdf.execute(e,n.keySize,n.ivSize,t.salt,i.hasher);return i.iv=r.iv,g.decrypt.call(this,n,t,r.key,i)}})}()))}(Ui)),Ui.exports}var Li,Wi,Ji,Ki={exports:{}},Vi={exports:{}},Xi={exports:{}};var Gi,Yi,Zi,Qi,nr,tr,er,ir,rr,or,sr,ar,cr,ur,hr={exports:{}},lr={exports:{}},fr={exports:{}},dr={exports:{}},pr={exports:{}},mr={exports:{}},gr={exports:{}},vr={exports:{}},wr={exports:{}},br={exports:{}},yr={exports:{}},xr={exports:{}},Sr={exports:{}},$r={exports:{}};!function(n){var t;n.exports=(t=ni(),ii(),ri||(ri=1,function(n){var t;n.exports=(t=ni(),function(){if("function"==typeof ArrayBuffer){var n=t.lib.WordArray,e=n.init,i=n.init=function(n){if(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),(n instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&n instanceof Uint8ClampedArray||n instanceof Int16Array||n instanceof Uint16Array||n instanceof Int32Array||n instanceof Uint32Array||n instanceof Float32Array||n instanceof Float64Array)&&(n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength)),n instanceof Uint8Array){for(var t=n.byteLength,i=[],r=0;r<t;r++)i[r>>>2]|=n[r]<<24-r%4*8;e.call(this,i,t)}else e.apply(this,arguments)};i.prototype=n}}(),t.lib.WordArray)}(ai)),oi||(oi=1,function(n){var t;n.exports=(t=ni(),function(){var n=t,e=n.lib.WordArray,i=n.enc;function r(n){return n<<8&4278255360|n>>>8&16711935}i.Utf16=i.Utf16BE={stringify:function(n){for(var t=n.words,e=n.sigBytes,i=[],r=0;r<e;r+=2){var o=t[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(n){for(var t=n.length,i=[],r=0;r<t;r++)i[r>>>1]|=n.charCodeAt(r)<<16-r%2*16;return e.create(i,2*t)}},i.Utf16LE={stringify:function(n){for(var t=n.words,e=n.sigBytes,i=[],o=0;o<e;o+=2){var s=r(t[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(s))}return i.join("")},parse:function(n){for(var t=n.length,i=[],o=0;o<t;o++)i[o>>>1]|=r(n.charCodeAt(o)<<16-o%2*16);return e.create(i,2*t)}}}(),t.enc.Utf16)}(ci)),hi(),li||(li=1,function(n){var t,e,i;n.exports=(t=ni(),i=(e=t).lib.WordArray,e.enc.Base64url={stringify:function(n,t){void 0===t&&(t=!0);var e=n.words,i=n.sigBytes,r=t?this.nn:this.M;n.clamp();for(var o=[],s=0;s<i;s+=3)for(var a=(e[s>>>2]>>>24-s%4*8&255)<<16|(e[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|e[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<i;c++)o.push(r.charAt(a>>>6*(3-c)&63));var u=r.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(n,t){void 0===t&&(t=!0);var e=n.length,r=t?this.nn:this.M,o=this.B;if(!o){o=this.B=[];for(var s=0;s<r.length;s++)o[r.charCodeAt(s)]=s}var a=r.charAt(64);if(a){var c=n.indexOf(a);-1!==c&&(e=c)}return function(n,t,e){for(var r=[],o=0,s=0;s<t;s++)if(s%4){var a=e[n.charCodeAt(s-1)]<<s%4*2|e[n.charCodeAt(s)]>>>6-s%4*2;r[o>>>2]|=a<<24-o%4*8,o++}return i.create(r,o)}(n,e,o)},M:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",nn:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},t.enc.Base64url)}(fi)),mi(),wi(),xi(),Si||(Si=1,function(n){var t,e,i,r,o,s;n.exports=(s=ni(),xi(),e=(t=s).lib.WordArray,i=t.algo,r=i.SHA256,o=i.SHA224=r.extend({O:function(){this.D=new e.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},C:function(){var n=r.C.call(this);return n.sigBytes-=4,n}}),t.SHA224=r.P(o),t.HmacSHA224=r.j(o),s.SHA224)}(_i)),Ei(),Ti||(Ti=1,function(n){var t,e,i,r,o,s,a,c;n.exports=(c=ni(),ii(),Ei(),e=(t=c).x64,i=e.Word,r=e.WordArray,o=t.algo,s=o.SHA512,a=o.SHA384=s.extend({O:function(){this.D=new r.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},C:function(){var n=s.C.call(this);return n.sigBytes-=16,n}}),t.SHA384=s.P(a),t.HmacSHA384=s.j(a),c.SHA384)}(zi)),Ai||(Ai=1,function(n){var t;n.exports=(t=ni(),ii(),function(n){var e=t,i=e.lib,r=i.WordArray,o=i.Hasher,s=e.x64.Word,a=e.algo,c=[],u=[],h=[];!function(){for(var n=1,t=0,e=0;e<24;e++){c[n+5*t]=(e+1)*(e+2)/2%64;var i=(2*n+3*t)%5;n=t%5,t=i}for(n=0;n<5;n++)for(t=0;t<5;t++)u[n+5*t]=t+(2*n+3*t)%5*5;for(var r=1,o=0;o<24;o++){for(var a=0,l=0,f=0;f<7;f++){if(1&r){var d=(1<<f)-1;d<32?l^=1<<d:a^=1<<d-32}128&r?r=r<<1^113:r<<=1}h[o]=s.create(a,l)}}();var l=[];!function(){for(var n=0;n<25;n++)l[n]=s.create()}();var f=a.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),O:function(){for(var n=this.tn=[],t=0;t<25;t++)n[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},I:function(n,t){for(var e=this.tn,i=this.blockSize/2,r=0;r<i;r++){var o=n[t+2*r],s=n[t+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(A=e[r]).high^=s,A.low^=o}for(var a=0;a<24;a++){for(var f=0;f<5;f++){for(var d=0,p=0,m=0;m<5;m++)d^=(A=e[f+5*m]).high,p^=A.low;var g=l[f];g.high=d,g.low=p}for(f=0;f<5;f++){var v=l[(f+4)%5],w=l[(f+1)%5],b=w.high,y=w.low;for(d=v.high^(b<<1|y>>>31),p=v.low^(y<<1|b>>>31),m=0;m<5;m++)(A=e[f+5*m]).high^=d,A.low^=p}for(var x=1;x<25;x++){var S=(A=e[x]).high,$=A.low,_=c[x];_<32?(d=S<<_|$>>>32-_,p=$<<_|S>>>32-_):(d=$<<_-32|S>>>64-_,p=S<<_-32|$>>>64-_);var k=l[u[x]];k.high=d,k.low=p}var E=l[0],T=e[0];for(E.high=T.high,E.low=T.low,f=0;f<5;f++)for(m=0;m<5;m++){var A=e[x=f+5*m],R=l[x],I=l[(f+1)%5+5*m],z=l[(f+2)%5+5*m];A.high=R.high^~I.high&z.high,A.low=R.low^~I.low&z.low}A=e[0];var O=h[a];A.high^=O.high,A.low^=O.low}},C:function(){var t=this.$,e=t.words;this._;var i=8*t.sigBytes,o=32*this.blockSize;e[i>>>5]|=1<<24-i%32,e[(n.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*e.length,this.A();for(var s=this.tn,a=this.cfg.outputLength/8,c=a/8,u=[],h=0;h<c;h++){var l=s[h],f=l.high,d=l.low;f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),u.push(d),u.push(f)}return new r.init(u,a)},clone:function(){for(var n=o.clone.call(this),t=n.tn=this.tn.slice(0),e=0;e<25;e++)t[e]=t[e].clone();return n}});e.SHA3=o.P(f),e.HmacSHA3=o.j(f)}(Math),t.SHA3)}(Oi)),Ri||(Ri=1,function(n){var t;n.exports=(t=ni(),function(){var n=t,e=n.lib,i=e.WordArray,r=e.Hasher,o=n.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=i.create([0,1518500249,1859775393,2400959708,2840853838]),l=i.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=r.extend({O:function(){this.D=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},I:function(n,t){for(var e=0;e<16;e++){var i=t+e,r=n[i];n[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o,f,b,y,x,S,$,_,k,E,T,A=this.D.words,R=h.words,I=l.words,z=s.words,O=a.words,C=c.words,q=u.words;for(S=o=A[0],$=f=A[1],_=b=A[2],k=y=A[3],E=x=A[4],e=0;e<80;e+=1)T=o+n[t+z[e]]|0,T+=e<16?d(f,b,y)+R[0]:e<32?p(f,b,y)+R[1]:e<48?m(f,b,y)+R[2]:e<64?g(f,b,y)+R[3]:v(f,b,y)+R[4],T=(T=w(T|=0,C[e]))+x|0,o=x,x=y,y=w(b,10),b=f,f=T,T=S+n[t+O[e]]|0,T+=e<16?v($,_,k)+I[0]:e<32?g($,_,k)+I[1]:e<48?m($,_,k)+I[2]:e<64?p($,_,k)+I[3]:d($,_,k)+I[4],T=(T=w(T|=0,q[e]))+E|0,S=E,E=k,k=w(_,10),_=$,$=T;T=A[1]+b+k|0,A[1]=A[2]+y+E|0,A[2]=A[3]+x+S|0,A[3]=A[4]+o+$|0,A[4]=A[0]+f+_|0,A[0]=T},C:function(){var n=this.$,t=n.words,e=8*this._,i=8*n.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),n.sigBytes=4*(t.length+1),this.A();for(var r=this.D,o=r.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return r},clone:function(){var n=r.clone.call(this);return n.D=this.D.clone(),n}});function d(n,t,e){return n^t^e}function p(n,t,e){return n&t|~n&e}function m(n,t,e){return(n|~t)^e}function g(n,t,e){return n&e|t&~e}function v(n,t,e){return n^(t|~e)}function w(n,t){return n<<t|n>>>32-t}n.RIPEMD160=r.P(f),n.HmacRIPEMD160=r.j(f)}(),t.RIPEMD160)}(Ci)),Pi(),ji||(ji=1,function(n){var t,e,i,r,o,s,a,c,u;n.exports=(u=ni(),xi(),Pi(),i=(e=(t=u).lib).Base,r=e.WordArray,s=(o=t.algo).SHA256,a=o.HMAC,c=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:s,iterations:25e4}),init:function(n){this.cfg=this.cfg.extend(n)},compute:function(n,t){for(var e=this.cfg,i=a.create(e.hasher,n),o=r.create(),s=r.create([1]),c=o.words,u=s.words,h=e.keySize,l=e.iterations;c.length<h;){var f=i.update(t).finalize(s);i.reset();for(var d=f.words,p=d.length,m=f,g=1;g<l;g++){m=i.finalize(m),i.reset();for(var v=m.words,w=0;w<p;w++)d[w]^=v[w]}o.concat(f),u[0]++}return o.sigBytes=4*h,o}}),t.PBKDF2=function(n,t,e){return c.create(e).compute(n,t)},u.PBKDF2)}(Bi)),Fi(),Hi(),Li||(Li=1,function(n){var t;n.exports=(t=ni(),Hi(),t.mode.CFB=function(){var n=t.lib.BlockCipherMode.extend();function e(n,t,e,i){var r,o=this.V;o?(r=o.slice(0),this.V=void 0):r=this.X,i.encryptBlock(r,0);for(var s=0;s<e;s++)n[t+s]^=r[s]}return n.Encryptor=n.extend({processBlock:function(n,t){var i=this.K,r=i.blockSize;e.call(this,n,t,r,i),this.X=n.slice(t,t+r)}}),n.Decryptor=n.extend({processBlock:function(n,t){var i=this.K,r=i.blockSize,o=n.slice(t,t+r);e.call(this,n,t,r,i),this.X=o}}),n}(),t.mode.CFB)}(Ki)),Wi||(Wi=1,function(n){var t,e,i;n.exports=(i=ni(),Hi(),i.mode.CTR=(e=(t=i.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(n,t){var e=this.K,i=e.blockSize,r=this.V,o=this.en;r&&(o=this.en=r.slice(0),this.V=void 0);var s=o.slice(0);e.encryptBlock(s,0),o[i-1]=o[i-1]+1|0;for(var a=0;a<i;a++)n[t+a]^=s[a]}}),t.Decryptor=e,t),i.mode.CTR)}(Vi)),Ji||(Ji=1,function(n){var t;n.exports=(t=ni(),Hi(),t.mode.CTRGladman=function(){var n=t.lib.BlockCipherMode.extend();function e(n){if(255&~(n>>24))n+=1<<24;else{var t=n>>16&255,e=n>>8&255,i=255&n;255===t?(t=0,255===e?(e=0,255===i?i=0:++i):++e):++t,n=0,n+=t<<16,n+=e<<8,n+=i}return n}var i=n.Encryptor=n.extend({processBlock:function(n,t){var i=this.K,r=i.blockSize,o=this.V,s=this.en;o&&(s=this.en=o.slice(0),this.V=void 0),function(n){0===(n[0]=e(n[0]))&&(n[1]=e(n[1]))}(s);var a=s.slice(0);i.encryptBlock(a,0);for(var c=0;c<r;c++)n[t+c]^=a[c]}});return n.Decryptor=i,n}(),t.mode.CTRGladman)}(Xi)),Gi||(Gi=1,function(n){var t,e,i;n.exports=(i=ni(),Hi(),i.mode.OFB=(e=(t=i.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(n,t){var e=this.K,i=e.blockSize,r=this.V,o=this.rn;r&&(o=this.rn=r.slice(0),this.V=void 0),e.encryptBlock(o,0);for(var s=0;s<i;s++)n[t+s]^=o[s]}}),t.Decryptor=e,t),i.mode.OFB)}(hr)),Yi||(Yi=1,function(n){var t,e;n.exports=(e=ni(),Hi(),e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(n,t){this.K.encryptBlock(n,t)}}),t.Decryptor=t.extend({processBlock:function(n,t){this.K.decryptBlock(n,t)}}),t),e.mode.ECB)}(lr)),Zi||(Zi=1,function(n){var t;n.exports=(t=ni(),Hi(),t.pad.AnsiX923={pad:function(n,t){var e=n.sigBytes,i=4*t,r=i-e%i,o=e+r-1;n.clamp(),n.words[o>>>2]|=r<<24-o%4*8,n.sigBytes+=r},unpad:function(n){var t=255&n.words[n.sigBytes-1>>>2];n.sigBytes-=t}},t.pad.Ansix923)}(fr)),Qi||(Qi=1,function(n){var t;n.exports=(t=ni(),Hi(),t.pad.Iso10126={pad:function(n,e){var i=4*e,r=i-n.sigBytes%i;n.concat(t.lib.WordArray.random(r-1)).concat(t.lib.WordArray.create([r<<24],1))},unpad:function(n){var t=255&n.words[n.sigBytes-1>>>2];n.sigBytes-=t}},t.pad.Iso10126)}(dr)),nr||(nr=1,function(n){var t;n.exports=(t=ni(),Hi(),t.pad.Iso97971={pad:function(n,e){n.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(n,e)},unpad:function(n){t.pad.ZeroPadding.unpad(n),n.sigBytes--}},t.pad.Iso97971)}(pr)),tr||(tr=1,function(n){var t;n.exports=(t=ni(),Hi(),t.pad.ZeroPadding={pad:function(n,t){var e=4*t;n.clamp(),n.sigBytes+=e-(n.sigBytes%e||e)},unpad:function(n){var t=n.words,e=n.sigBytes-1;for(e=n.sigBytes-1;e>=0;e--)if(t[e>>>2]>>>24-e%4*8&255){n.sigBytes=e+1;break}}},t.pad.ZeroPadding)}(mr)),er||(er=1,function(n){var t;n.exports=(t=ni(),Hi(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding)}(gr)),ir||(ir=1,function(n){var t,e,i,r;n.exports=(r=ni(),Hi(),e=(t=r).lib.CipherParams,i=t.enc.Hex,t.format.Hex={stringify:function(n){return n.ciphertext.toString(i)},parse:function(n){var t=i.parse(n);return e.create({ciphertext:t})}},r.format.Hex)}(vr)),rr||(rr=1,function(n){var t;n.exports=(t=ni(),hi(),mi(),Fi(),Hi(),function(){var n=t,e=n.lib.BlockCipher,i=n.algo,r=[],o=[],s=[],a=[],c=[],u=[],h=[],l=[],f=[],d=[];!function(){for(var n=[],t=0;t<256;t++)n[t]=t<128?t<<1:t<<1^283;var e=0,i=0;for(t=0;t<256;t++){var p=i^i<<1^i<<2^i<<3^i<<4;p=p>>>8^255&p^99,r[e]=p,o[p]=e;var m=n[e],g=n[m],v=n[g],w=257*n[p]^16843008*p;s[e]=w<<24|w>>>8,a[e]=w<<16|w>>>16,c[e]=w<<8|w>>>24,u[e]=w,w=16843009*v^65537*g^257*m^16843008*e,h[p]=w<<24|w>>>8,l[p]=w<<16|w>>>16,f[p]=w<<8|w>>>24,d[p]=w,e?(e=m^n[n[n[v^m]]],i^=n[n[i]]):e=i=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],m=i.AES=e.extend({O:function(){if(!this.sn||this.an!==this.J){for(var n=this.an=this.J,t=n.words,e=n.sigBytes/4,i=4*((this.sn=e+6)+1),o=this.cn=[],s=0;s<i;s++)s<e?o[s]=t[s]:(u=o[s-1],s%e?e>6&&s%e==4&&(u=r[u>>>24]<<24|r[u>>>16&255]<<16|r[u>>>8&255]<<8|r[255&u]):(u=r[(u=u<<8|u>>>24)>>>24]<<24|r[u>>>16&255]<<16|r[u>>>8&255]<<8|r[255&u],u^=p[s/e|0]<<24),o[s]=o[s-e]^u);for(var a=this.un=[],c=0;c<i;c++){if(s=i-c,c%4)var u=o[s];else u=o[s-4];a[c]=c<4||s<=4?u:h[r[u>>>24]]^l[r[u>>>16&255]]^f[r[u>>>8&255]]^d[r[255&u]]}}},encryptBlock:function(n,t){this.hn(n,t,this.cn,s,a,c,u,r)},decryptBlock:function(n,t){var e=n[t+1];n[t+1]=n[t+3],n[t+3]=e,this.hn(n,t,this.un,h,l,f,d,o),e=n[t+1],n[t+1]=n[t+3],n[t+3]=e},hn:function(n,t,e,i,r,o,s,a){for(var c=this.sn,u=n[t]^e[0],h=n[t+1]^e[1],l=n[t+2]^e[2],f=n[t+3]^e[3],d=4,p=1;p<c;p++){var m=i[u>>>24]^r[h>>>16&255]^o[l>>>8&255]^s[255&f]^e[d++],g=i[h>>>24]^r[l>>>16&255]^o[f>>>8&255]^s[255&u]^e[d++],v=i[l>>>24]^r[f>>>16&255]^o[u>>>8&255]^s[255&h]^e[d++],w=i[f>>>24]^r[u>>>16&255]^o[h>>>8&255]^s[255&l]^e[d++];u=m,h=g,l=v,f=w}m=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[l>>>8&255]<<8|a[255&f])^e[d++],g=(a[h>>>24]<<24|a[l>>>16&255]<<16|a[f>>>8&255]<<8|a[255&u])^e[d++],v=(a[l>>>24]<<24|a[f>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^e[d++],w=(a[f>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&l])^e[d++],n[t]=m,n[t+1]=g,n[t+2]=v,n[t+3]=w},keySize:8});n.AES=e.P(m)}(),t.AES)}(wr)),or||(or=1,function(n){var t;n.exports=(t=ni(),hi(),mi(),Fi(),Hi(),function(){var n=t,e=n.lib,i=e.WordArray,r=e.BlockCipher,o=n.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=o.DES=r.extend({O:function(){for(var n=this.J.words,t=[],e=0;e<56;e++){var i=s[e]-1;t[e]=n[i>>>5]>>>31-i%32&1}for(var r=this.ln=[],o=0;o<16;o++){var u=r[o]=[],h=c[o];for(e=0;e<24;e++)u[e/6|0]|=t[(a[e]-1+h)%28]<<31-e%6,u[4+(e/6|0)]|=t[28+(a[e+24]-1+h)%28]<<31-e%6;for(u[0]=u[0]<<1|u[0]>>>31,e=1;e<7;e++)u[e]=u[e]>>>4*(e-1)+3;u[7]=u[7]<<5|u[7]>>>27}var l=this.fn=[];for(e=0;e<16;e++)l[e]=r[15-e]},encryptBlock:function(n,t){this.hn(n,t,this.ln)},decryptBlock:function(n,t){this.hn(n,t,this.fn)},hn:function(n,t,e){this.dn=n[t],this.pn=n[t+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=e[i],o=this.dn,s=this.pn,a=0,c=0;c<8;c++)a|=u[c][((s^r[c])&h[c])>>>0];this.dn=s,this.pn=o^a}var l=this.dn;this.dn=this.pn,this.pn=l,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),n[t]=this.dn,n[t+1]=this.pn},keySize:2,ivSize:2,blockSize:2});function f(n,t){var e=(this.dn>>>n^this.pn)&t;this.pn^=e,this.dn^=e<<n}function d(n,t){var e=(this.pn>>>n^this.dn)&t;this.dn^=e,this.pn^=e<<n}n.DES=r.P(l);var p=o.TripleDES=r.extend({O:function(){var n=this.J.words;if(2!==n.length&&4!==n.length&&n.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=n.slice(0,2),e=n.length<4?n.slice(0,2):n.slice(2,4),r=n.length<6?n.slice(0,2):n.slice(4,6);this.mn=l.createEncryptor(i.create(t)),this.gn=l.createEncryptor(i.create(e)),this.vn=l.createEncryptor(i.create(r))},encryptBlock:function(n,t){this.mn.encryptBlock(n,t),this.gn.decryptBlock(n,t),this.vn.encryptBlock(n,t)},decryptBlock:function(n,t){this.vn.decryptBlock(n,t),this.gn.encryptBlock(n,t),this.mn.decryptBlock(n,t)},keySize:6,ivSize:2,blockSize:2});n.TripleDES=r.P(p)}(),t.TripleDES)}(br)),sr||(sr=1,function(n){var t;n.exports=(t=ni(),hi(),mi(),Fi(),Hi(),function(){var n=t,e=n.lib.StreamCipher,i=n.algo,r=i.RC4=e.extend({O:function(){for(var n=this.J,t=n.words,e=n.sigBytes,i=this.wn=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var s=r%e,a=t[s>>>2]>>>24-s%4*8&255;o=(o+i[r]+a)%256;var c=i[r];i[r]=i[o],i[o]=c}this.bn=this.yn=0},I:function(n,t){n[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var n=this.wn,t=this.bn,e=this.yn,i=0,r=0;r<4;r++){e=(e+n[t=(t+1)%256])%256;var o=n[t];n[t]=n[e],n[e]=o,i|=n[(n[t]+n[e])%256]<<24-8*r}return this.bn=t,this.yn=e,i}n.RC4=e.P(r);var s=i.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),O:function(){r.O.call(this);for(var n=this.cfg.drop;n>0;n--)o.call(this)}});n.RC4Drop=e.P(s)}(),t.RC4)}(yr)),ar||(ar=1,function(n){var t;n.exports=(t=ni(),hi(),mi(),Fi(),Hi(),function(){var n=t,e=n.lib.StreamCipher,i=n.algo,r=[],o=[],s=[],a=i.Rabbit=e.extend({O:function(){for(var n=this.J.words,t=this.cfg.iv,e=0;e<4;e++)n[e]=16711935&(n[e]<<8|n[e]>>>24)|4278255360&(n[e]<<24|n[e]>>>8);var i=this.xn=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],r=this.Sn=[n[2]<<16|n[2]>>>16,4294901760&n[0]|65535&n[1],n[3]<<16|n[3]>>>16,4294901760&n[1]|65535&n[2],n[0]<<16|n[0]>>>16,4294901760&n[2]|65535&n[3],n[1]<<16|n[1]>>>16,4294901760&n[3]|65535&n[0]];for(this.$n=0,e=0;e<4;e++)c.call(this);for(e=0;e<8;e++)r[e]^=i[e+4&7];if(t){var o=t.words,s=o[0],a=o[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=u>>>16|4294901760&h,f=h<<16|65535&u;for(r[0]^=u,r[1]^=l,r[2]^=h,r[3]^=f,r[4]^=u,r[5]^=l,r[6]^=h,r[7]^=f,e=0;e<4;e++)c.call(this)}},I:function(n,t){var e=this.xn;c.call(this),r[0]=e[0]^e[5]>>>16^e[3]<<16,r[1]=e[2]^e[7]>>>16^e[5]<<16,r[2]=e[4]^e[1]>>>16^e[7]<<16,r[3]=e[6]^e[3]>>>16^e[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),n[t+i]^=r[i]},blockSize:4,ivSize:2});function c(){for(var n=this.xn,t=this.Sn,e=0;e<8;e++)o[e]=t[e];for(t[0]=t[0]+1295307597+this.$n|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this.$n=t[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var i=n[e]+t[e],r=65535&i,a=i>>>16,c=((r*r>>>17)+r*a>>>15)+a*a,u=((4294901760&i)*i|0)+((65535&i)*i|0);s[e]=c^u}n[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,n[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,n[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,n[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,n[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,n[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,n[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,n[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}n.Rabbit=e.P(a)}(),t.Rabbit)}(xr)),cr||(cr=1,function(n){var t;n.exports=(t=ni(),hi(),mi(),Fi(),Hi(),function(){var n=t,e=n.lib.StreamCipher,i=n.algo,r=[],o=[],s=[],a=i.RabbitLegacy=e.extend({O:function(){var n=this.J.words,t=this.cfg.iv,e=this.xn=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],i=this.Sn=[n[2]<<16|n[2]>>>16,4294901760&n[0]|65535&n[1],n[3]<<16|n[3]>>>16,4294901760&n[1]|65535&n[2],n[0]<<16|n[0]>>>16,4294901760&n[2]|65535&n[3],n[1]<<16|n[1]>>>16,4294901760&n[3]|65535&n[0]];this.$n=0;for(var r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=e[r+4&7];if(t){var o=t.words,s=o[0],a=o[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=u>>>16|4294901760&h,f=h<<16|65535&u;for(i[0]^=u,i[1]^=l,i[2]^=h,i[3]^=f,i[4]^=u,i[5]^=l,i[6]^=h,i[7]^=f,r=0;r<4;r++)c.call(this)}},I:function(n,t){var e=this.xn;c.call(this),r[0]=e[0]^e[5]>>>16^e[3]<<16,r[1]=e[2]^e[7]>>>16^e[5]<<16,r[2]=e[4]^e[1]>>>16^e[7]<<16,r[3]=e[6]^e[3]>>>16^e[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),n[t+i]^=r[i]},blockSize:4,ivSize:2});function c(){for(var n=this.xn,t=this.Sn,e=0;e<8;e++)o[e]=t[e];for(t[0]=t[0]+1295307597+this.$n|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this.$n=t[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var i=n[e]+t[e],r=65535&i,a=i>>>16,c=((r*r>>>17)+r*a>>>15)+a*a,u=((4294901760&i)*i|0)+((65535&i)*i|0);s[e]=c^u}n[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,n[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,n[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,n[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,n[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,n[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,n[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,n[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}n.RabbitLegacy=e.P(a)}(),t.RabbitLegacy)}(Sr)),ur||(ur=1,function(n){var t;n.exports=(t=ni(),hi(),mi(),Fi(),Hi(),function(){var n=t,e=n.lib.BlockCipher,i=n.algo;const r=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function a(n,t){let e=t>>24&255,i=t>>16&255,r=t>>8&255,o=255&t,s=n.sbox[0][e]+n.sbox[1][i];return s^=n.sbox[2][r],s+=n.sbox[3][o],s}function c(n,t,e){let i,r=t,o=e;for(let t=0;t<16;++t)r^=n.pbox[t],o=a(n,r)^o,i=r,r=o,o=i;return i=r,r=o,o=i,o^=n.pbox[16],r^=n.pbox[17],{left:r,right:o}}var u=i.Blowfish=e.extend({O:function(){if(this.an!==this.J){var n=this.an=this.J,t=n.words,e=n.sigBytes/4;!function(n,t,e){for(let t=0;t<4;t++){n.sbox[t]=[];for(let e=0;e<256;e++)n.sbox[t][e]=o[t][e]}let i=0;for(let o=0;o<18;o++)n.pbox[o]=r[o]^t[i],i++,i>=e&&(i=0);let s=0,a=0,u=0;for(let t=0;t<18;t+=2)u=c(n,s,a),s=u.left,a=u.right,n.pbox[t]=s,n.pbox[t+1]=a;for(let t=0;t<4;t++)for(let e=0;e<256;e+=2)u=c(n,s,a),s=u.left,a=u.right,n.sbox[t][e]=s,n.sbox[t][e+1]=a}(s,t,e)}},encryptBlock:function(n,t){var e=c(s,n[t],n[t+1]);n[t]=e.left,n[t+1]=e.right},decryptBlock:function(n,t){var e=function(n,t,e){let i,r=t,o=e;for(let t=17;t>1;--t)r^=n.pbox[t],o=a(n,r)^o,i=r,r=o,o=i;return i=r,r=o,o=i,o^=n.pbox[1],r^=n.pbox[0],{left:r,right:o}}(s,n[t],n[t+1]);n[t]=e.left,n[t+1]=e.right},blockSize:2,keySize:4,ivSize:2});n.Blowfish=e.P(u)}(),t.Blowfish)}($r)),t)}(Ye);var _r=Ye.exports,kr=crypto;const Er=n=>n instanceof CryptoKey,Tr=new TextEncoder,Ar=new TextDecoder;function Rr(...n){const t=n.reduce(((n,{length:t})=>n+t),0),e=new Uint8Array(t);let i=0;for(const t of n)e.set(t,i),i+=t.length;return e}const Ir=n=>(n=>{let t=n;"string"==typeof t&&(t=Tr.encode(t));const e=[];for(let n=0;n<t.length;n+=32768)e.push(String.fromCharCode.apply(null,t.subarray(n,n+32768)));return btoa(e.join(""))})(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),zr=n=>{let t=n;t instanceof Uint8Array&&(t=Ar.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(n=>{const t=atob(n),e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e})(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class Or extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(n){super(n),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}class Cr extends Or{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(n,t,e="unspecified",i="unspecified"){super(n),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=e,this.reason=i,this.payload=t}}class qr extends Or{static get code(){return"ERR_JWT_EXPIRED"}constructor(n,t,e="unspecified",i="unspecified"){super(n),this.code="ERR_JWT_EXPIRED",this.claim=e,this.reason=i,this.payload=t}}class Pr extends Or{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class jr extends Or{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class Mr extends Or{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}class Br extends Or{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}function Dr(n,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${n}`)}function Fr(n,t){return n.name===t}function Nr(n){return parseInt(n.name.slice(4),10)}function Ur(n,t,...e){if((e=e.filter(Boolean)).length>2){const t=e.pop();n+=`one of type ${e.join(", ")}, or ${t}.`}else 2===e.length?n+=`one of type ${e[0]} or ${e[1]}.`:n+=`of type ${e[0]}.`;return null==t?n+=` Received ${t}`:"function"==typeof t&&t.name?n+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(n+=` Received an instance of ${t.constructor.name}`),n}var Hr=(n,...t)=>Ur("Key must be ",n,...t);function Lr(n,t,...e){return Ur(`Key for the ${n} algorithm must be `,t,...e)}var Wr=n=>!!Er(n)||"KeyObject"===n?.[Symbol.toStringTag];const Jr=["CryptoKey"],Kr=(...n)=>{const t=n.filter(Boolean);if(0===t.length||1===t.length)return!0;let e;for(const n of t){const t=Object.keys(n);if(e&&0!==e.size)for(const n of t){if(e.has(n))return!1;e.add(n)}else e=new Set(t)}return!0};function Vr(n){if("object"!=typeof(t=n)||null===t||"[object Object]"!==Object.prototype.toString.call(n))return!1;var t;if(null===Object.getPrototypeOf(n))return!0;let e=n;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(n)===e}var Xr=(n,t)=>{if(n.startsWith("RS")||n.startsWith("PS")){const{modulusLength:e}=t.algorithm;if("number"!=typeof e||e<2048)throw new TypeError(`${n} requires key modulusLength to be 2048 bits or larger`)}};function Gr(n){return Vr(n)&&"string"==typeof n.kty}const Yr=async n=>{if(!n.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:t,keyUsages:e}=function(n){let t,e;switch(n.kty){case"RSA":switch(n.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${n.alg.slice(-3)}`},e=n.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${n.alg.slice(-3)}`},e=n.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(n.alg.slice(-3),10)||1}`},e=n.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new Pr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(n.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},e=n.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},e=n.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},e=n.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:n.crv},e=n.d?["deriveBits"]:[];break;default:throw new Pr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(n.alg){case"EdDSA":t={name:n.crv},e=n.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:n.crv},e=n.d?["deriveBits"]:[];break;default:throw new Pr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new Pr('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:e}}(n),i=[t,n.ext??!1,n.key_ops??e],r={...n};return delete r.alg,delete r.use,kr.subtle.importKey("jwk",r,...i)},Zr=n=>zr(n);let Qr,no;const to=n=>"KeyObject"===n?.[Symbol.toStringTag],eo=async(n,t,e,i,r=!1)=>{let o=n.get(t);if(o?.[i])return o[i];const s=await Yr({...e,alg:i});return r&&Object.freeze(t),o?o[i]=s:n.set(t,{[i]:s}),s},io=n=>n?.[Symbol.toStringTag],ro=(n,t,e)=>{if(void 0!==t.use&&"sig"!==t.use)throw new TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==t.key_ops&&!0!==t.key_ops.includes?.(e))throw new TypeError(`Invalid key for this operation, when present its key_ops must include ${e}`);if(void 0!==t.alg&&t.alg!==n)throw new TypeError(`Invalid key for this operation, when present its alg must be ${n}`);return!0};function oo(n,t,e,i){t.startsWith("HS")||"dir"===t||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?((n,t,e,i)=>{if(!(t instanceof Uint8Array)){if(i&&Gr(t)){if(function(n){return Gr(n)&&"oct"===n.kty&&"string"==typeof n.k}(t)&&ro(n,t,e))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!Wr(t))throw new TypeError(Lr(n,t,...Jr,"Uint8Array",i?"JSON Web Key":null));if("secret"!==t.type)throw new TypeError(`${io(t)} instances for symmetric algorithms must be of type "secret"`)}})(t,e,i,n):((n,t,e,i)=>{if(i&&Gr(t))switch(e){case"sign":if(function(n){return"oct"!==n.kty&&"string"==typeof n.d}(t)&&ro(n,t,e))return;throw new TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(function(n){return"oct"!==n.kty&&void 0===n.d}(t)&&ro(n,t,e))return;throw new TypeError("JSON Web Key for this operation be a public JWK")}if(!Wr(t))throw new TypeError(Lr(n,t,...Jr,i?"JSON Web Key":null));if("secret"===t.type)throw new TypeError(`${io(t)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===e&&"public"===t.type)throw new TypeError(`${io(t)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===e&&"public"===t.type)throw new TypeError(`${io(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===e&&"private"===t.type)throw new TypeError(`${io(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===e&&"private"===t.type)throw new TypeError(`${io(t)} instances for asymmetric algorithm encryption must be of type "public"`)})(t,e,i,n)}oo.bind(void 0,!1);const so=oo.bind(void 0,!0);function ao(n,t,e,i,r){if(void 0!==r.crit&&void 0===i?.crit)throw new n('"crit" (Critical) Header Parameter MUST be integrity protected');if(!i||void 0===i.crit)return new Set;if(!Array.isArray(i.crit)||0===i.crit.length||i.crit.some((n=>"string"!=typeof n||0===n.length)))throw new n('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let o;o=void 0!==e?new Map([...Object.entries(e),...t.entries()]):t;for(const t of i.crit){if(!o.has(t))throw new Pr(`Extension Header Parameter "${t}" is not recognized`);if(void 0===r[t])throw new n(`Extension Header Parameter "${t}" is missing`);if(o.get(t)&&void 0===i[t])throw new n(`Extension Header Parameter "${t}" MUST be integrity protected`)}return new Set(i.crit)}function co(n,t){const e=`SHA-${n.slice(-3)}`;switch(n){case"HS256":case"HS384":case"HS512":return{hash:e,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:e,name:"RSA-PSS",saltLength:n.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:e,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:e,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new Pr(`alg ${n} is not supported either by JOSE or your javascript runtime`)}}async function uo(n,t,e){if("sign"===e&&(t=await((n,t)=>{if(to(n)){let e=n.export({format:"jwk"});return e.k?Zr(e.k):(Qr||(Qr=new WeakMap),eo(Qr,n,e,t))}return Gr(n)?n.k?zr(n.k):(Qr||(Qr=new WeakMap),eo(Qr,n,n,t,!0)):n})(t,n)),"verify"===e&&(t=await((n,t)=>{if(to(n)){let e=n.export({format:"jwk"});return delete e.d,delete e.dp,delete e.dq,delete e.p,delete e.q,delete e.qi,e.k?Zr(e.k):(no||(no=new WeakMap),eo(no,n,e,t))}return Gr(n)?n.k?zr(n.k):(no||(no=new WeakMap),eo(no,n,n,t,!0)):n})(t,n)),Er(t))return function(n,t,...e){switch(t){case"HS256":case"HS384":case"HS512":{if(!Fr(n.algorithm,"HMAC"))throw Dr("HMAC");const e=parseInt(t.slice(2),10);if(Nr(n.algorithm.hash)!==e)throw Dr(`SHA-${e}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!Fr(n.algorithm,"RSASSA-PKCS1-v1_5"))throw Dr("RSASSA-PKCS1-v1_5");const e=parseInt(t.slice(2),10);if(Nr(n.algorithm.hash)!==e)throw Dr(`SHA-${e}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!Fr(n.algorithm,"RSA-PSS"))throw Dr("RSA-PSS");const e=parseInt(t.slice(2),10);if(Nr(n.algorithm.hash)!==e)throw Dr(`SHA-${e}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==n.algorithm.name&&"Ed448"!==n.algorithm.name)throw Dr("Ed25519 or Ed448");break;case"ES256":case"ES384":case"ES512":{if(!Fr(n.algorithm,"ECDSA"))throw Dr("ECDSA");const e=function(n){switch(n){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}(t);if(n.algorithm.namedCurve!==e)throw Dr(e,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}!function(n,t){if(t.length&&!t.some((t=>n.usages.includes(t)))){let n="CryptoKey does not support this operation, its usages must include ";if(t.length>2){const e=t.pop();n+=`one of ${t.join(", ")}, or ${e}.`}else 2===t.length?n+=`one of ${t[0]} or ${t[1]}.`:n+=`${t[0]}.`;throw new TypeError(n)}}(n,e)}(t,n,e),t;if(t instanceof Uint8Array){if(!n.startsWith("HS"))throw new TypeError(Hr(t,...Jr));return kr.subtle.importKey("raw",t,{hash:`SHA-${n.slice(-3)}`,name:"HMAC"},!1,[e])}throw new TypeError(Hr(t,...Jr,"Uint8Array","JSON Web Key"))}var ho=n=>Math.floor(n.getTime()/1e3);const lo=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;var fo=n=>{const t=lo.exec(n);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");const e=parseFloat(t[2]);let i;switch(t[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":i=Math.round(e);break;case"minute":case"minutes":case"min":case"mins":case"m":i=Math.round(60*e);break;case"hour":case"hours":case"hr":case"hrs":case"h":i=Math.round(3600*e);break;case"day":case"days":case"d":i=Math.round(86400*e);break;case"week":case"weeks":case"w":i=Math.round(604800*e);break;default:i=Math.round(31557600*e)}return"-"===t[1]||"ago"===t[4]?-i:i};const po=n=>n.toLowerCase().replace(/^application\//,"");var mo=(n,t,e={})=>{let i;try{i=JSON.parse(Ar.decode(t))}catch{}if(!Vr(i))throw new Mr("JWT Claims Set must be a top-level JSON object");const{typ:r}=e;if(r&&("string"!=typeof n.typ||po(n.typ)!==po(r)))throw new Cr('unexpected "typ" JWT header value',i,"typ","check_failed");const{requiredClaims:o=[],issuer:s,subject:a,audience:c,maxTokenAge:u}=e,h=[...o];void 0!==u&&h.push("iat"),void 0!==c&&h.push("aud"),void 0!==a&&h.push("sub"),void 0!==s&&h.push("iss");for(const n of new Set(h.reverse()))if(!(n in i))throw new Cr(`missing required "${n}" claim`,i,n,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(i.iss))throw new Cr('unexpected "iss" claim value',i,"iss","check_failed");if(a&&i.sub!==a)throw new Cr('unexpected "sub" claim value',i,"sub","check_failed");if(c&&(f="string"==typeof c?[c]:c,!("string"==typeof(l=i.aud)?f.includes(l):Array.isArray(l)&&f.some(Set.prototype.has.bind(new Set(l))))))throw new Cr('unexpected "aud" claim value',i,"aud","check_failed");var l,f;let d;switch(typeof e.clockTolerance){case"string":d=fo(e.clockTolerance);break;case"number":d=e.clockTolerance;break;case"undefined":d=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:p}=e,m=ho(p||new Date);if((void 0!==i.iat||u)&&"number"!=typeof i.iat)throw new Cr('"iat" claim must be a number',i,"iat","invalid");if(void 0!==i.nbf){if("number"!=typeof i.nbf)throw new Cr('"nbf" claim must be a number',i,"nbf","invalid");if(i.nbf>m+d)throw new Cr('"nbf" claim timestamp check failed',i,"nbf","check_failed")}if(void 0!==i.exp){if("number"!=typeof i.exp)throw new Cr('"exp" claim must be a number',i,"exp","invalid");if(i.exp<=m-d)throw new qr('"exp" claim timestamp check failed',i,"exp","check_failed")}if(u){const n=m-i.iat;if(n-d>("number"==typeof u?u:fo(u)))throw new qr('"iat" claim timestamp check failed (too far in the past)',i,"iat","check_failed");if(n<0-d)throw new Cr('"iat" claim timestamp check failed (it should be in the past)',i,"iat","check_failed")}return i};class go{constructor(n){if(!(n instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this._n=n}setProtectedHeader(n){if(this.kn)throw new TypeError("setProtectedHeader can only be called once");return this.kn=n,this}setUnprotectedHeader(n){if(this.En)throw new TypeError("setUnprotectedHeader can only be called once");return this.En=n,this}async sign(n,t){if(!this.kn&&!this.En)throw new jr("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!Kr(this.kn,this.En))throw new jr("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const e={...this.kn,...this.En};let i=!0;if(ao(jr,new Map([["b64",!0]]),t?.crit,this.kn,e).has("b64")&&(i=this.kn.b64,"boolean"!=typeof i))throw new jr('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:r}=e;if("string"!=typeof r||!r)throw new jr('JWS "alg" (Algorithm) Header Parameter missing or invalid');so(r,n,"sign");let o,s=this._n;i&&(s=Tr.encode(Ir(s))),o=this.kn?Tr.encode(Ir(JSON.stringify(this.kn))):Tr.encode("");const a=Rr(o,Tr.encode("."),s),c=await(async(n,t,e)=>{const i=await uo(n,t,"sign");Xr(n,i);const r=await kr.subtle.sign(co(n,i.algorithm),i,e);return new Uint8Array(r)})(r,n,a),u={signature:Ir(c),payload:""};return i&&(u.payload=Ar.decode(s)),this.En&&(u.header=this.En),this.kn&&(u.protected=Ar.decode(o)),u}}class vo{constructor(n){this.Tn=new go(n)}setProtectedHeader(n){return this.Tn.setProtectedHeader(n),this}async sign(n,t){const e=await this.Tn.sign(n,t);if(void 0===e.payload)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${e.protected}.${e.payload}.${e.signature}`}}function wo(n,t){if(!Number.isFinite(t))throw new TypeError(`Invalid ${n} input`);return t}class bo{constructor(n={}){if(!Vr(n))throw new TypeError("JWT Claims Set MUST be an object");this._n=n}setIssuer(n){return this._n={...this._n,iss:n},this}setSubject(n){return this._n={...this._n,sub:n},this}setAudience(n){return this._n={...this._n,aud:n},this}setJti(n){return this._n={...this._n,jti:n},this}setNotBefore(n){return"number"==typeof n?this._n={...this._n,nbf:wo("setNotBefore",n)}:n instanceof Date?this._n={...this._n,nbf:wo("setNotBefore",ho(n))}:this._n={...this._n,nbf:ho(new Date)+fo(n)},this}setExpirationTime(n){return"number"==typeof n?this._n={...this._n,exp:wo("setExpirationTime",n)}:n instanceof Date?this._n={...this._n,exp:wo("setExpirationTime",ho(n))}:this._n={...this._n,exp:ho(new Date)+fo(n)},this}setIssuedAt(n){return void 0===n?this._n={...this._n,iat:ho(new Date)}:n instanceof Date?this._n={...this._n,iat:wo("setIssuedAt",ho(n))}:this._n="string"==typeof n?{...this._n,iat:wo("setIssuedAt",ho(new Date)+fo(n))}:{...this._n,iat:wo("setIssuedAt",n)},this}}class yo extends bo{setProtectedHeader(n){return this.kn=n,this}async sign(n,t){const e=new vo(Tr.encode(JSON.stringify(this._n)));if(e.setProtectedHeader(this.kn),Array.isArray(this.kn?.crit)&&this.kn.crit.includes("b64")&&!1===this.kn.b64)throw new Mr("JWTs MUST NOT use unencoded payload");return e.sign(n,t)}}class xo{constructor(n){var t,e,i,r,o,s,a;const c=n;this.cause=null!==(r=null!==(e=null===(t=null==c?void 0:c.response)||void 0===t?void 0:t.data.statusCode)&&void 0!==e?e:null===(i=null==c?void 0:c.response)||void 0===i?void 0:i.status)&&void 0!==r?r:0,this.errorMessage=null!==(a=null!==(s=null===(o=null==c?void 0:c.response)||void 0===o?void 0:o.data.message)&&void 0!==s?s:null==c?void 0:c.message)&&void 0!==a?a:"There's been an error related to the API request to LiquidCommerce RMN Services."}}class So{constructor(n){this.apiKey=n}static getInstance(n){return Ue.getInstance("EncryptedApi",(()=>new So(n)))}async handleEncryption(n,t){const e=this.getKey(t);try{return this.joseEncrypt(n,e,this.forwardInMinutes(30,t))}catch(n){this.handleError({cause:"Payload decryption error",message:"The decryption of the payload failed"})}}async handleDecryption(n,t){const e=this.getKey(t);return this.joseDecrypt(n,e)}getKey(n){return this.apiKey.slice(Number(`${n}`.replace(/0/g,"").slice(-1)))}forwardInMinutes(n,t){const e=new Date(t);return e.setMinutes(e.getMinutes()+n)}async joseDecrypt(n,t){return async function(n,t,e){const i=await async function(n,t,e){if(n instanceof Uint8Array&&(n=Ar.decode(n)),"string"!=typeof n)throw new jr("Compact JWS must be a string or Uint8Array");const{0:i,1:r,2:o,length:s}=n.split(".");if(3!==s)throw new jr("Invalid Compact JWS");const a=await async function(n,t,e){if(!Vr(n))throw new jr("Flattened JWS must be an object");if(void 0===n.protected&&void 0===n.header)throw new jr('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==n.protected&&"string"!=typeof n.protected)throw new jr("JWS Protected Header incorrect type");if(void 0===n.payload)throw new jr("JWS Payload missing");if("string"!=typeof n.signature)throw new jr("JWS Signature missing or incorrect type");if(void 0!==n.header&&!Vr(n.header))throw new jr("JWS Unprotected Header incorrect type");let i={};if(n.protected)try{const t=zr(n.protected);i=JSON.parse(Ar.decode(t))}catch{throw new jr("JWS Protected Header is invalid")}if(!Kr(i,n.header))throw new jr("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const r={...i,...n.header};let o=!0;if(ao(jr,new Map([["b64",!0]]),e?.crit,i,r).has("b64")&&(o=i.b64,"boolean"!=typeof o))throw new jr('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:s}=r;if("string"!=typeof s||!s)throw new jr('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(o){if("string"!=typeof n.payload)throw new jr("JWS Payload must be a string")}else if("string"!=typeof n.payload&&!(n.payload instanceof Uint8Array))throw new jr("JWS Payload must be a string or an Uint8Array instance");let a=!1;"function"==typeof t?(t=await t(i,n),a=!0,so(s,t,"verify"),Gr(t)&&(t=await async function(n,t){if(!Vr(n))throw new TypeError("JWK must be an object");switch(t||(t=n.alg),n.kty){case"oct":if("string"!=typeof n.k||!n.k)throw new TypeError('missing "k" (Key Value) Parameter value');return zr(n.k);case"RSA":if(void 0!==n.oth)throw new Pr('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return Yr({...n,alg:t});default:throw new Pr('Unsupported "kty" (Key Type) Parameter value')}}(t,s))):so(s,t,"verify");const c=Rr(Tr.encode(n.protected??""),Tr.encode("."),"string"==typeof n.payload?Tr.encode(n.payload):n.payload);let u;try{u=zr(n.signature)}catch{throw new jr("Failed to base64url decode the signature")}const h=await(async(n,t,e,i)=>{const r=await uo(n,t,"verify");Xr(n,r);const o=co(n,r.algorithm);try{return await kr.subtle.verify(o,r,e,i)}catch{return!1}})(s,t,u,c);if(!h)throw new Br;let l;if(o)try{l=zr(n.payload)}catch{throw new jr("Failed to base64url decode the payload")}else l="string"==typeof n.payload?Tr.encode(n.payload):n.payload;const f={payload:l};return void 0!==n.protected&&(f.protectedHeader=i),void 0!==n.header&&(f.unprotectedHeader=n.header),a?{...f,key:t}:f}({payload:r,protected:i,signature:o},t,e),c={payload:a.payload,protectedHeader:a.protectedHeader};return"function"==typeof t?{...c,key:a.key}:c}(n,t,e);if(i.protectedHeader.crit?.includes("b64")&&!1===i.protectedHeader.b64)throw new Mr("JWTs MUST NOT use unencoded payload");const r={payload:mo(i.protectedHeader,i.payload,e),protectedHeader:i.protectedHeader};return"function"==typeof t?{...r,key:i.key}:r}(_r.AES.decrypt(n,t).toString(_r.enc.Utf8),Nn.from(t))}async joseEncrypt(n,t,e){const i=new Date,r=new yo(n).setProtectedHeader({alg:"HS256"}).setIssuedAt(i.getTime()).setExpirationTime(e),o=await r.sign(Nn.from(t));return _r.AES.encrypt(o,t).toString()}handleError(n){throw new xo(n)}}class $o extends h{constructor(n){var t;super(),this.authInfo=n,this.encryptedApi=So.getInstance(this.authInfo.apiKey),this.objectHelper=He.getInstance(),this.baseUrl=null!==(t=u.url[this.authInfo.env])&&void 0!==t?t:u.url.development;const e={[u.accessHeader]:`Bearer ${this.authInfo.token}`},i=this.getPartnerSite(),r=null==i?void 0:i.startsWith("http");i&&r&&(e["X-Liquid-Partner-Site"]=i),this.client=Be.create({baseURL:this.baseUrl,...this.getConfig(e)})}getPartnerSite(){return window.location?window.location.origin:null}getConfig(n){return{headers:{"Content-Type":"application/json",[c]:this.authInfo.env,...n}}}async get(n,t){return this.createRequest(n,t,this.client.get)}async post(n,t,e){let i=t;if(![o.LOCAL,o.DEVELOPMENT].includes(this.authInfo.env)){const n=(new Date).getTime();e={...e,headers:{...null==e?void 0:e.headers,[s]:"true",[a]:n,[u.apiHeader]:this.authInfo.apiKey}},i={t:await this.encryptedApi.handleEncryption(t,n)}}return this.createRequest(n,e,((n,t)=>this.client.post(n,i,t)))}async createRequest(n,t,e){try{const i=this.createURL(n),r=this.createFullConfig(t),o=await this.sendRequest(i,r,e);return await this.getResponse(o)}catch(n){return{isOk:!1,val:null,isErr:new xo(n)}}}createFullConfig(n){return this.objectHelper.merge(this.getConfig(),null!=n?n:{})}async sendRequest(n,t,e){return e(n,t)}async getResponse(n){var t,e,i,r,o,c,u;let h=(null==n?void 0:n.data)?n.data:null,l=!1,f=0;if((null==n?void 0:n.headers)&&(null===(t=null==n?void 0:n.headers)||void 0===t?void 0:t.has)&&(null===(e=null==n?void 0:n.headers)||void 0===e?void 0:e.has(s))&&(null===(i=null==n?void 0:n.headers)||void 0===i?void 0:i.has(a))&&(null===(r=null==n?void 0:n.headers)||void 0===r?void 0:r.get)&&(l="true"===(null===(o=null==n?void 0:n.headers)||void 0===o?void 0:o.get(s)),f=(null===(c=null==n?void 0:n.headers)||void 0===c?void 0:c.get(a))?Number(null===(u=null==n?void 0:n.headers)||void 0===u?void 0:u.get(a)):0),h&&l&&this.objectHelper.includes(h,"t")&&f>0){const{t:n}=h,t=await this.encryptedApi.handleDecryption(n,f);(null==t?void 0:t.payload)&&(delete t.payload.exp,delete t.payload.iat,h=t.payload)}return{isOk:!0,val:h,isErr:!1}}createURL(n){const t=n&&"/"!==n[0]?`/${n}`:n;return`${this.baseUrl}/api${t}`}}class _o extends $o{constructor(n,t){super({authenticated:!1,apiKey:n,token:"",env:t})}static getInstance(n,t){return Ue.getInstance("AuthService",(()=>new _o(n,t)))}async initialize(){const{isOk:n,isErr:t,val:e}=await this.get("/auth",{headers:{[u.apiHeader]:this.authInfo.apiKey}});if(t)throw new Error(`There was an error during authentication: (${null==t?void 0:t.errorMessage})`);if(!n||!(null==e?void 0:e.data.token))throw new Error("Auth response was not successful");return this.authInfo.token=e.data.token,this.authInfo.authenticated=!0,this.authInfo}}const ko="spot-element",Eo="spot-carousel-element",To="spot-skeleton-element",Ao='\n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n',Ro='\n <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap">\n',Io='\n <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap">\n',zo={[t.RB_HOMEPAGE_HERO]:{width:1140,height:640},[t.RB_HOMEPAGE_HERO_THREE_TILE]:{width:1140,height:640},[t.RB_HOMEPAGE_HERO_TWO_TILE]:{width:1140,height:640},[t.RB_HOMEPAGE_HERO_FULL_IMAGE]:{width:1140,height:640},[t.RB_LARGE_CATEGORY_IMAGE_TOUT]:{width:468,height:410},[t.RB_SMALL_DISCOVER_TOUT]:{width:224,height:378},[t.RB_SMALL_CATEGORY_IMAGE_TOUT]:{width:224,height:410},[t.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK]:{width:887,height:344},[t.RB_PRODUCT_UPCS]:{width:1,height:1},[t.RB_NAVIGATION_BANNER]:{width:440,height:220},[t.SMALL_RECTANGLE]:{width:180,height:150},[t.MEDIUM_RECTANGLE]:{width:300,height:250},[t.LARGE_RECTANGLE]:{width:336,height:280},[t.VERTICAL_RECTANGLE]:{width:240,height:400},[t.BANNER]:{width:468,height:60},[t.LEADERBOARD]:{width:728,height:90},[t.LARGE_LEADERBOARD]:{width:970,height:90},[t.BILLBOARD]:{width:970,height:250},[t.SKYSCRAPER]:{width:120,height:600},[t.WIDE_SKYSCRAPER]:{width:160,height:600},[t.HALF_PAGE]:{width:300,height:600},[t.SMALL_SQUARE]:{width:200,height:200},[t.SQUARE]:{width:250,height:250},[t.VERTICAL_BANNER]:{width:120,height:240},[t.BUTTON_2]:{width:120,height:60},[t.MICRO_BAR]:{width:88,height:31},[t.POP_UP]:{width:550,height:480},[t.PORTRAIT]:{width:300,height:1050},[t.SMARTPHONE_BANNER_1]:{width:300,height:50},[t.SMARTPHONE_BANNER_2]:{width:320,height:50},[t.MOBILE_PHONE_INTERSTITIAL_1]:{width:640,height:1136},[t.MOBILE_PHONE_INTERSTITIAL_2]:{width:750,height:1334},[t.MOBILE_PHONE_INTERSTITIAL_3]:{width:1080,height:1920},[t.FEATURE_PHONE_SMALL_BANNER]:{width:120,height:20},[t.FEATURE_PHONE_MEDIUM_BANNER]:{width:168,height:28},[t.FEATURE_PHONE_LARGE_BANNER]:{width:216,height:36},[t.IN_TEXT]:{width:1,height:1}};class Oo{constructor(n={}){this.observers=new Map,this.defaultOptions={root:null,rootMargin:"0px",threshold:.5,...n}}observe(n,t,e={}){const i={...this.defaultOptions,...e},r=new IntersectionObserver((n=>{n.forEach((n=>{n.isIntersecting&&t(n)}))}),i);this.observers.set(n,r),r.observe(n)}unobserve(n){const t=this.observers.get(n);t&&(t.unobserve(n),t.disconnect(),this.observers.delete(n))}unobserveAll(){this.observers.forEach(((n,t)=>{n.unobserve(t),n.disconnect()})),this.observers.clear()}}var Co;!function(n){n[n.PLACEMENT_ID=0]="PLACEMENT_ID",n[n.SPOT_ID=1]="SPOT_ID",n[n.SPOT_TYPE=2]="SPOT_TYPE",n[n.EVENTS=3]="EVENTS",n[n.PRODUCT_IDS=4]="PRODUCT_IDS",n[n.CREATED_AT=5]="CREATED_AT"}(Co||(Co={}));const qo={[r.IMPRESSION]:0,[r.CLICK]:1,[r.PURCHASE]:2,[r.ADD_TO_CART]:3,[r.REMOVE_FROM_CART]:4,[r.ADD_TO_CART_FROM_DETAILS]:5,[r.ADD_TO_WISHLIST]:6,[r.EXPAND_PRODUCT]:7,[r.BUY_NOW]:8};class Po{constructor(){void 0!==window.localStorage?(this.setUserId(),this.spots=new Map,this.syncLocalStorage(),this.removeExpiredSpots()):console.warn("Local storage is not supported in this environment")}static getInstance(){return Po.instance||(Po.instance=new Po),Po.instance}syncLocalStorage(){const n=window.localStorage.getItem(Po.localStorageKey);if(n)try{const t=this.decryptData(n),e=JSON.parse(t);if(e&&"object"==typeof e){const n={};for(const[t,i]of Object.entries(e))n[t]=this.spotArrayToObject(i);this.spots=this.objectToMap(n)}else this.clearLocalStorage()}catch(n){this.clearLocalStorage()}}setSpot(n,t){var e;t.createdAt=Date.now(),null===(e=this.spots)||void 0===e||e.set(n,t),this.updateLocalStorage()}removeSpot(n){var t;null===(t=this.spots)||void 0===t||t.delete(n),this.updateLocalStorage()}getSpot(n){var t;return null===(t=this.spots)||void 0===t?void 0:t.get(n)}getSpots(){if(this.spots)return this.mapToObject(this.spots)}updateLocalStorage(){if(!this.spots)return;const n=this.mapToObject(this.spots),t={};for(const[e,i]of Object.entries(n))t[e]=this.spotObjectToArray(i);try{const n=this.encryptData(JSON.stringify(t));window.localStorage.setItem(Po.localStorageKey,n)}catch(n){this.clearLocalStorage()}}clearLocalStorage(){window.localStorage.removeItem(Po.localStorageKey)}removeExpiredSpots(){var n;const t=Date.now();null===(n=this.spots)||void 0===n||n.forEach(((n,e)=>{var i,r;t-(null!==(i=n.createdAt)&&void 0!==i?i:0)>Po.spotExpirationTime&&(null===(r=this.spots)||void 0===r||r.delete(e))})),this.updateLocalStorage()}getUserId(){return Po.localStorageKey.replace(`${Po.localStorageKeyPrefix}_`,"")}setUserId(){const n=Po.localStorageKeyPrefix,t=Object.keys(window.localStorage).filter((t=>t.startsWith(n))),e=()=>{const t=Ke.generate(),e=`${n}_${t}`;window.localStorage.setItem(e,""),Po.localStorageKey=e};if(0===t.length)e();else{const i=t.find((t=>Ke.isValid(t.replace(`${n}_`,""))));t.forEach((n=>{n!==i&&window.localStorage.removeItem(n)})),i?Po.localStorageKey=i:e()}}mapToObject(n){return Object.fromEntries(n)}objectToMap(n){return new Map(Object.entries(n))}spotEventObjectToArray(n){return Object.keys(qo).map((t=>{const e=n.find((n=>n.event===t));return e&&e.event===t?e.url:""}))}spotEventArrayToObject(n){return Object.keys(qo).map((t=>({event:t,url:n[qo[t]]})))}spotObjectToArray(n){return[n.placementId,n.spotId,n.spotType,this.spotEventObjectToArray(n.events),n.productIds,n.createdAt]}spotArrayToObject(n){return{placementId:n[Co.PLACEMENT_ID],spotId:n[Co.SPOT_ID],spotType:n[Co.SPOT_TYPE],events:this.spotEventArrayToObject(n[Co.EVENTS]),productIds:n[Co.PRODUCT_IDS],createdAt:n[Co.CREATED_AT]}}encryptData(n){return Po.encryptData?btoa(n):n}decryptData(n){return Po.encryptData?atob(n):n}}Po.localStorageKeyPrefix="lc_rmn",Po.localStorageKey="",Po.spotExpirationTime=6048e5,Po.encryptData=!0;class jo{constructor(){this.subscribers={}}static getInstance(){return jo.instance||(jo.instance=new jo),jo.instance}subscribe(n,t){return this.subscribers[n]||(this.subscribers[n]=[]),this.subscribers[n].push(t),()=>{this.subscribers[n]=this.subscribers[n].filter((n=>n!==t))}}publish(n,t){this.subscribers[n]&&this.subscribers[n].forEach((n=>n(t)))}}class Mo{constructor({element:n,maxSize:t,minScale:e}){if(this.element=n,!n.parentElement)throw new Error("RmnSdk: Spot element must have a parent container.");this.container=n.parentElement,this.setDimensions(t,e),this.resizeObserver=new ResizeObserver((()=>this.updateElementSize())),this.resizeObserver.observe(this.container),this.updateElementSize()}setDimensions(n,t){if(t<=0||t>1)throw new Error("RmnSdk: Invalid minScale value");const e={width:n.width*t,height:n.height*t};if(n.width<=0||n.height<=0||e.width<=0||e.height<=0)throw new Error("RmnSdk: Invalid dimensions");if(e.width>n.width||e.height>n.height)throw new Error("RmnSdk: Minimum size cannot be greater than maximum size");this.maxSize=n,this.minSize=e,this.aspectRatio=this.maxSize.width/this.maxSize.height}updateElementSize(){const{clientWidth:n,clientHeight:t}=this.container;let e,i;e=Math.min(n,this.maxSize.width),i=e/this.aspectRatio,e>n&&(e=n,i=t*this.aspectRatio),e=Math.max(e,this.minSize.width),i=Math.max(i,this.minSize.height),this.element.style.width=`${e}px`,this.element.style.height=`${i}px`;const r=e/this.maxSize.width,o=i/this.maxSize.height,s=Math.min(r,o);this.element.dispatchEvent(new CustomEvent("spotSizeChanged",{detail:{width:this.maxSize.width,height:this.maxSize.height,newWidth:e,newHeight:i,scale:s}}))}disconnect(){this.resizeObserver.disconnect()}}let Bo,Do,Fo;if(void 0!==window.customElements){class n extends HTMLElement{constructor(){super(),this.currentSlide=0,this.dotElements=[],this.prevButton=null,this.nextButton=null,this.autoplayInterval=null,this.useDots=!1,this.useButtons=!1,this.originalFontSizes=new Map,this.attachShadow({mode:"open"})}connectedCallback(){this.initializeOptions(),this.setupResizeObserver(),this.render(),this.setupCarousel()}disconnectedCallback(){var n;this.stopAutoplay(),null===(n=this.resizeObserver)||void 0===n||n.disconnect()}initializeOptions(){var t,e,i,r,o,s,a,c,u,h;this.useDots=!0===(null===(t=this.data)||void 0===t?void 0:t.useDots)||"object"==typeof(null===(e=this.data)||void 0===e?void 0:e.useDots),this.useButtons=!0===(null===(i=this.data)||void 0===i?void 0:i.useButtons)||"object"==typeof(null===(r=this.data)||void 0===r?void 0:r.useButtons),this.autoplay=null===(s=null===(o=this.data)||void 0===o?void 0:o.autoplay)||void 0===s||s,this.interval=null!==(c=null===(a=this.data)||void 0===a?void 0:a.interval)&&void 0!==c?c:n.defaultInterval,this.dotsOptions={position:"bottom-center",color:"#d9d9d9",activeColor:"#b5914a",size:"base",opacity:1,..."object"==typeof(null===(u=this.data)||void 0===u?void 0:u.useDots)?this.data.useDots:{}},this.buttonsOptions={together:!1,position:"middle-sides",textColor:"#000000",backgroundColor:"#ffffff",borderRadius:"50%",prev:"Prev",next:"Next",size:"base",opacity:1,..."object"==typeof(null===(h=this.data)||void 0===h?void 0:h.useButtons)?this.data.useButtons:{}},this.validateOptions()}setupResizeObserver(){this.data&&!this.data.fluid&&(this.resizeObserver=new Mo({element:this,maxSize:{width:this.data.width,height:this.data.height},minScale:this.data.minScale}),this.addEventListener("spotSizeChanged",this.handleCarouselSizeChanged.bind(this)))}handleCarouselSizeChanged(n){"rbHeroadaksda".startsWith("rb")||this.adjustFontSize(n.detail.scale)}adjustFontSize(n){var t;const e=Je(n),i=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll("h1, h2, h3, h4, p, span");null==i||i.forEach((n=>{if(n instanceof HTMLElement){if(!this.originalFontSizes.has(n)){const t=parseFloat(window.getComputedStyle(n).fontSize);this.originalFontSizes.set(n,t)}const t=this.originalFontSizes.get(n)*e;n.style.fontSize=`${t}px`}}))}render(){var n;if(!this.shadowRoot)return;const t=document.createElement("style");t.textContent=(({width:n,height:t,fluid:e})=>`\n :host {\n position: relative;\n display: inline-block;\n margin: 0;\n overflow: hidden;\n width: ${e?"100%":`${n}px`};\n height: ${e?"100%":`${t}px`};\n }\n\n .slides {\n position: relative;\n height: 100%;\n width: 100%;\n display: flex;\n transition: transform 0.5s ease-in-out;\n }\n\n .slide {\n flex: 0 0 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n\n .slide.active {\n display: flex;\n }\n\n .dots {\n position: absolute;\n display: flex;\n align-items: center;\n gap: 8px;\n opacity: var(--opacity, 1);\n }\n\n .dots.small .dot {\n width: 8px;\n height: 8px;\n }\n\n .dots.base .dot {\n width: 12px;\n height: 12px;\n }\n\n .dots.large .dot {\n width: 16px;\n height: 16px;\n }\n\n .dots .dot {\n border-radius: 50%;\n cursor: pointer;\n transition: all 0.3s ease;\n }\n\n .dots.top-left,\n .dots.bottom-left {\n left: 10px;\n }\n\n .dots.top-center,\n .dots.bottom-center {\n left: 50%;\n transform: translateX(-50%);\n }\n\n .dots.top-right,\n .dots.bottom-right {\n right: 10px;\n }\n\n .dots.top-left,\n .dots.top-center,\n .dots.top-right {\n top: 10px;\n }\n\n .dots.bottom-left,\n .dots.bottom-center,\n .dots.bottom-right {\n bottom: 10px;\n }\n\n .dots.middle-left {\n left: 10px;\n top: 50%;\n transform: translateY(-50%);\n flex-direction: column;\n }\n\n .dots.middle-right {\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n flex-direction: column;\n }\n\n .buttons {\n opacity: var(--opacity, 1);\n }\n\n .buttons button {\n background-color: #00000080;\n color: #fff;\n border: none;\n padding: 10px;\n cursor: pointer;\n transition: background-color 0.3s ease;\n }\n\n .buttons.small button {\n padding: 6px;\n }\n\n .buttons.base button {\n padding: 10px;\n }\n\n .buttons.large button {\n padding: 14px;\n }\n\n .buttons button:hover {\n background-color: #000000b3;\n }\n\n .buttons.buttons-separate button {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n }\n\n .buttons.buttons-separate .prev-button {\n left: 10px;\n }\n\n .buttons.buttons-separate .next-button {\n right: 10px;\n }\n\n .buttons.buttons-together {\n position: absolute;\n display: flex;\n gap: 10px;\n }\n\n .buttons.buttons-together.top-left,\n .buttons.buttons-together.bottom-left {\n left: 10px;\n }\n\n .buttons.buttons-together.top-center,\n .buttons.buttons-together.bottom-center {\n left: 50%;\n transform: translateX(-50%);\n }\n\n .buttons.buttons-together.top-right,\n .buttons.buttons-together.bottom-right {\n right: 10px;\n }\n\n .buttons.buttons-together.top-left,\n .buttons.buttons-together.top-center,\n .buttons.buttons-together.top-right {\n top: 10px;\n }\n\n .buttons.buttons-together.bottom-left,\n .buttons.buttons-together.bottom-center,\n .buttons.buttons-together.bottom-right {\n bottom: 10px;\n }\n\n .buttons.buttons-together.middle-left,\n .buttons.buttons-together.middle-right {\n top: 50%;\n transform: translateY(-50%);\n flex-direction: column;\n }\n\n .buttons.buttons-together.middle-left {\n left: 10px;\n }\n\n .buttons.buttons-together.middle-right {\n right: 10px;\n }\n\n @media (max-width: 768px) {\n .buttons button {\n padding: 8px 12px;\n font-size: 14px;\n }\n }\n`)(this.data),this.shadowRoot.appendChild(t);const e=this.renderSlides();if(this.shadowRoot.appendChild(e),this.slidesContainer=null!==(n=this.shadowRoot.querySelector(".slides"))&&void 0!==n?n:void 0,this.useDots){const n=this.renderDots();n&&this.shadowRoot.appendChild(n)}if(this.useButtons){const n=this.renderButtons();n&&this.shadowRoot.appendChild(n)}}setupCarousel(){this.setupDots(),this.setupButtons(),this.autoplay&&this.startAutoplay(),this.updateCarousel()}renderSlides(){const n=document.createElement("div");return n.className="slides",this.slides.forEach((t=>{const e=document.createElement("div");e.className="slide",t instanceof HTMLElement&&e.appendChild(t),n.appendChild(e)})),n}renderDots(){const n=document.createElement("div");return n.className=`dots ${this.dotsOptions.position} ${this.dotsOptions.size}`,n.style.cssText=`--opacity: ${this.dotsOptions.opacity}`,this.slides.forEach(((t,e)=>{const i=document.createElement("span");i.className="dot "+(e===this.currentSlide?"active":""),i.style.backgroundColor=this.dotsOptions.color,n.appendChild(i)})),n}renderButtons(){const n=document.createElement("div"),t=this.buttonsOptions.together?`buttons-together ${this.buttonsOptions.position}`:"buttons-separate";return n.className=`buttons ${t} ${this.buttonsOptions.size}`,n.style.cssText=`--opacity: ${this.buttonsOptions.opacity}`,this.prevButton=this.createButton("prev-button",this.buttonsOptions.prev),this.nextButton=this.createButton("next-button",this.buttonsOptions.next),n.appendChild(this.prevButton),n.appendChild(this.nextButton),n}createButton(n,t){const e=document.createElement("button");return e.className=n,e.textContent=t,e.style.color=this.buttonsOptions.textColor,e.style.backgroundColor=this.buttonsOptions.backgroundColor,e.style.borderRadius=this.buttonsOptions.borderRadius,e}setupDots(){this.shadowRoot&&this.useDots&&(this.dotElements=Array.from(this.shadowRoot.querySelectorAll(".dot")),this.dotElements.forEach(((n,t)=>{n.addEventListener("click",(()=>{this.goToSlide(t),this.resetAutoplay()}))})))}setupButtons(){var n,t;this.useButtons&&(null===(n=this.prevButton)||void 0===n||n.addEventListener("click",(()=>{this.prevSlide(),this.resetAutoplay()})),null===(t=this.nextButton)||void 0===t||t.addEventListener("click",(()=>{this.nextSlide(),this.resetAutoplay()})))}nextSlide(){this.goToSlide((this.currentSlide+1)%this.slides.length)}prevSlide(){this.goToSlide((this.currentSlide-1+this.slides.length)%this.slides.length)}goToSlide(n){this.currentSlide=n,this.updateCarousel()}updateCarousel(){if(!this.slidesContainer)return;const n=100*-this.currentSlide;this.slidesContainer.style.transform=`translateX(${n}%)`,this.updateDots()}updateDots(){this.useDots&&this.dotElements.forEach(((n,t)=>{const e=t===this.currentSlide;n.classList.toggle("active",e),n.style.backgroundColor=e?this.dotsOptions.activeColor:this.dotsOptions.color}))}startAutoplay(){this.autoplayInterval=window.setInterval((()=>this.nextSlide()),this.interval)}stopAutoplay(){null!==this.autoplayInterval&&(window.clearInterval(this.autoplayInterval),this.autoplayInterval=null)}resetAutoplay(){this.autoplay&&(this.stopAutoplay(),this.startAutoplay())}validateOptions(){this.validatePosition(this.dotsOptions.position,"dotsPosition","bottom-center"),this.validateButtonsPosition()}validatePosition(t,e,i){n.validPositions.includes(t)||(console.warn(`Invalid ${e}: ${t}. Defaulting to '${i}'.`),"dotsPosition"===e?this.dotsOptions.position=i:"buttonsPosition"===e&&(this.buttonsOptions.position=i))}validateButtonsPosition(){this.useButtons&&(this.buttonsOptions.together?this.validatePosition(this.buttonsOptions.position,"buttonsPosition","bottom-center"):"middle-sides"!==this.buttonsOptions.position&&(console.warn(`Invalid buttonsPosition: ${this.buttonsOptions.position}. When buttons are not together, only 'middle-sides' is allowed. Defaulting to 'middle-sides'.`),this.buttonsOptions.position="middle-sides"))}}n.defaultInterval=5e3,n.validPositions=["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right","middle-left","middle-right","middle-sides"],Bo=n}if(void 0!==window.customElements){class n extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.shadowRoot&&this.data&&(this.shadowRoot.innerHTML=function({fluid:n,width:t,height:e}){return`\n <style>\n :host {\n display: block;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n width: ${n?"100%":`${t}px`};\n height: ${n?"100%":`${e}px`};\n background: #ffffff;\n padding: 20px;\n border-radius: 5px;\n }\n\n .content {\n height: 100%;\n display: flex;\n flex-direction: column;\n gap: 20px;\n }\n\n .image-placeholder {\n width: 100%;\n height: 100%;\n background: #f0f0f0;\n border-radius: 4px;\n position: relative;\n overflow: hidden;\n }\n\n .lines-container {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n }\n\n .line {\n height: 20px;\n background: #f0f0f0;\n border-radius: 4px;\n margin-bottom: 15px;\n position: relative;\n overflow: hidden;\n }\n\n .image-placeholder::after,\n .line::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.5) 50%,\n rgba(255, 255, 255, 0) 100%\n );\n animation: shimmer 1.5s infinite;\n }\n\n .line.header {\n width: 25%;\n }\n\n .line.description {\n width: 65%;\n }\n\n .line.button {\n width: 40%;\n }\n\n @keyframes shimmer {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(100%);\n }\n }\n </style>\n\n <div class="content">\n <div class="image-placeholder"></div>\n <div class="lines-container">\n <div class="line header"></div>\n <div class="line description"></div>\n <div class="line button"></div>\n </div>\n </div>\n `}(this.data))}}Do=n}if(void 0!==window.customElements){class n extends HTMLElement{constructor(){super(),this.originalFontSizes=new Map,this.attachShadow({mode:"open"})}connectedCallback(){this.setupResizeObserver(),this.render()}disconnectedCallback(){var n;this.removeEventListener("spotSizeChanged",this.handleSpotSizeChanged),null===(n=this.resizeObserver)||void 0===n||n.disconnect()}setupResizeObserver(){this.data&&!this.data.fluid&&(this.resizeObserver=new Mo({element:this,maxSize:{width:this.data.width,height:this.data.height},minScale:this.data.minScale}),this.addEventListener("spotSizeChanged",this.handleSpotSizeChanged.bind(this)))}handleSpotSizeChanged(n){var t,e,i;null!==(i=null===(e=null===(t=this.data)||void 0===t?void 0:t.spot)||void 0===e?void 0:e.startsWith("rb"))&&void 0!==i&&i||this.adjustFontSize(n.detail.scale)}adjustFontSize(n){var t;const e=Je(n),i=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll("h1, h2, h3, h4, p, span");null==i||i.forEach((n=>{if(n instanceof HTMLElement){if(!this.originalFontSizes.has(n)){const t=parseFloat(window.getComputedStyle(n).fontSize);this.originalFontSizes.set(n,t)}const t=this.originalFontSizes.get(n)*e;n.style.fontSize=`${t}px`}}))}render(){if(!this.shadowRoot||!this.data||!this.content)return;const n=this.getTemplateStyle(this.data.width,this.data.height);this.content instanceof HTMLElement&&this.shadowRoot.replaceChildren(n,this.content)}getTemplateStyle(n,t){const e=document.createElement("style");return e.textContent=`\n :host {\n display: block;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n width: ${this.data.fluid?"100%":`${n}px`};\n height: ${this.data.fluid?"100%":`${t}px`};\n }\n `,e}}Fo=n}class No{static getInstance(){return Ue.getInstance("ElementService",(()=>new No))}createSpotElement({content:n,config:t}){var e;if(!this.ensureBrowserEnvironmentAndDefineElement())return null;const i=document.createElement(ko);return i.data={spot:null==t?void 0:t.spot,fluid:null!==(e=null==t?void 0:t.fluid)&&void 0!==e&&e,...t},i.content=n,i}createCarouselElement({slides:n,config:t}){if(!this.ensureBrowserEnvironmentAndDefineElement())return null;const e=document.createElement(Eo);return e.data={spot:null==t?void 0:t.spot,fluid:!1,...t},e.slides=n,e}createSkeletonElement(n){if(!this.ensureBrowserEnvironmentAndDefineElement())return null;const t=document.createElement(To),e=zo[n.spotType];return t.data={fluid:n.fluid,...e},t}overrideSpotColors(n,t){if(!t)return n;const{textColor:e,backgroundColor:i,ctaTextColor:r,ctaBorderColor:o}=t;return{...n,textColor:null!=e?e:n.textColor,backgroundColor:null!=i?i:n.backgroundColor,ctaTextColor:null!=r?r:n.ctaTextColor,ctaBorderColor:null!=o?o:n.ctaBorderColor}}ensureBrowserEnvironmentAndDefineElement(){return"undefined"==typeof document?(console.warn("LiquidCommerce Rmn Sdk: Methods which create elements are only available in browser environments."),!1):(window.customElements.get(ko)||window.customElements.define(ko,Fo),window.customElements.get(Eo)||window.customElements.define(Eo,Bo),window.customElements.get(To)||window.customElements.define(To,Do),!0)}}function Uo(n,t=1){const e=n.replace("#","");return`rgba(${parseInt(e.substring(0,2),16)}, ${parseInt(e.substring(2,4),16)}, ${parseInt(e.substring(4,6),16)}, ${t})`}function Ho(n,t=""){if(!n)return t;const{size:e,opacity:i,color:r}=n,o={small:10,base:30,large:50}[e],s={light:.1,medium:.4,dark:.6}[i],a=Uo(r,1),c=Uo(r,0);return`${a} 0%, ${Uo(r,s)} ${o}%, ${c} 100%`}function Lo(n){return`\n ${Ao}\n ${Ro}\n ${Io}\n ${(({primaryImage:n,secondaryImage:t})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: row;\n background-color: #FFFFFF;\n gap: 0.5cqw;\n cursor: pointer;\n color: inherit;\n }\n .big-image {\n width: 65%;\n height: 100%;\n background-image: url("${n}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n .main {\n width: 35%;\n height: 100%;\n display: flex;\n flex-direction: column;\n gap: 0.5cqw;\n }\n .small-image {\n width: 100%;\n height: 50%;\n background-image: url("${t}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n .text {\n background: #E8E6DE;\n text-align: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 50%;\n width: 100%;\n padding: 5% 10%;\n box-sizing: border-box;\n font-family: "Source Sans 3", sans-serif;\n }\n .header {\n font-size: 2.2cqw;\n color: #000000;\n font-style: normal;\n font-weight: 400;\n font-family: "Cormorant", serif;\n margin: 0;\n }\n .description {\n font-size: 1.2cqw;\n color: #000000;\n font-style: normal;\n font-weight: 400;\n margin: 1cqh 0;\n }\n .button {\n font-size: 1cqw;\n color: #000000;\n background-color: transparent;\n font-style: normal;\n font-weight: 700;\n text-decoration: underline;\n text-transform: uppercase;\n border: none;\n cursor: pointer;\n padding: 0;\n transition: opacity 0.3s ease;\n }\n .content:hover .button {\n opacity: 0.7;\n }\n @container (max-width: 600px) {\n .header {\n font-size: 3cqw;\n }\n .description {\n font-size: 1.6cqw;\n margin: 0;\n }\n .button {\n font-size: 1.4cqw;\n }\n }\n </style>\n`)(n)}\n <div class="content">\n <div class="big-image"></div>\n <div class="main">\n <div class="small-image"></div>\n <div class="text">\n <h2 class="header">${n.header}</h2>\n <p class="description">${n.description}</p>\n <span class="button">${n.ctaText}</span>\n </div>\n </div>\n </div>\n `}function Wo(n){return`\n ${Ao}\n ${Ro}\n ${Io}\n ${(({primaryImage:n})=>`\n <style>\n .content {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: flex-start;\n width: 100%;\n height: 100%;\n font-family: "Source Sans 3", sans-serif;\n background-image: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%), url("${n}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n padding: 3%;\n box-sizing: border-box;\n cursor: pointer;\n color: #FFF;\n }\n .text-container {\n max-width: 50%;\n }\n .header {\n font-size: clamp(1.8cqw, 2.4cqw, 2.8cqw);\n font-style: normal;\n font-weight: 700;\n font-family: "Cormorant", serif;\n line-height: 1.2;\n margin: 0 0 0.8cqh 0;\n }\n .description {\n font-size: clamp(1.2cqw, 1.4cqw, 1.6cqw);\n font-style: normal;\n font-weight: 400;\n line-height: 1.4;\n margin: 0 0 1.2cqh 0;\n }\n .cta-button {\n font-size: clamp(1cqw, 1.1cqw, 1.4cqw);\n border-radius: 0.4cqh;\n border: 0.1cqh solid #FFF;\n background: rgba(255, 255, 255, 0.2);\n display: inline-block;\n padding: 0.8cqh 1.6cqw;\n transition: background-color 0.3s, color 0.3s;\n }\n .content:hover .cta-button {\n background-color: #FFF;\n color: #000;\n }\n @container (max-width: 600px) {\n .text-container {\n max-width: 100%;\n }\n .header {\n font-size: clamp(1.6cqw, 4vw, 2.4cqw);\n margin: 0 0 0.4cqh 0;\n }\n .description {\n font-size: clamp(1cqw, 2.5vw, 1.4cqw);\n margin: 0 0 .3cqh 0;\n }\n .cta-button {\n font-size: clamp(0.9cqw, 2vw, 1.2cqw);\n padding: 0.4cqh 0.8cqw;\n }\n }\n </style>\n`)(n)}\n <div class="content">\n <div class="text-container">\n <h2 class="header">${n.header}</h2>\n <p class="description">${n.description}</p>\n <span class="cta-button">${n.ctaText}</span>\n </div>\n </div>\n `}function Jo(n){return`\n ${Ao}\n ${Ro}\n ${Io}\n ${(({primaryImage:n})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: row;\n align-items: stretch;\n cursor: pointer;\n color: inherit;\n }\n .text {\n width: 40%;\n padding: 4cqh 5cqw;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n gap: 0.7cqh;\n font-family: "Source Sans 3", sans-serif;\n background-color: #F9F7F5;\n }\n .header {\n font-size: clamp(18px, 4cqw, 36px);\n color: #000000;\n font-style: normal;\n font-weight: 300;\n font-family: "Cormorant", serif;\n margin: 0;\n line-height: 1.2;\n }\n .description {\n font-size: clamp(12px, 2cqw, 16px);\n color: #000000;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n line-height: 1.5;\n }\n .button {\n font-size: clamp(10px, 1.5cqw, 14px);\n border: 1px solid #000000;\n border-radius: 5px;\n display: inline-block;\n padding: 0.7cqh 1.5cqw;\n color: #000000;\n font-weight: 600;\n text-transform: uppercase;\n transition: background-color 0.3s, color 0.3s;\n }\n .content:hover .button {\n background-color: #000000;\n color: #FFFFFF;\n }\n .image {\n width: 60%;\n background-image: url("${n}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n @container (max-width: 600px) {\n .text {\n padding: 1cqh 4cqw;\n width: 60%;\n }\n .image {\n width: 40%;\n }\n .header {\n font-size: clamp(12px, 3cqw, 24px);\n line-height: 0.5;\n }\n .description {\n font-size: clamp(10px, 2.5cqw, 14px);\n line-height: 1;\n }\n .button {\n font-size: clamp(6px, 2cqw, 12px);\n padding: 0.4cqh 1cqw;\n }\n }\n </style>\n`)(n)}\n <div class="content">\n <div class="text">\n <h2 class="header">${n.header}</h2>\n <p class="description">${n.description}</p>\n <span class="button">${n.ctaText}</span>\n </div>\n <div class="image"></div>\n </div>\n `}function Ko(n){return`\n ${Ao}\n ${Ro}\n ${Io}\n \n <style>\n .content {\n display: inline-block;\n cursor: pointer;\n max-width: 100%;\n padding: 0.5em;\n background-color: #fff;\n }\n .header {\n display: block;\n font-size: 1.1em;\n font-weight: 500;\n color: #333;\n font-family: "Cormorant", serif;\n line-height: 1.2;\n margin-bottom: 0.2em;\n }\n .description {\n display: block;\n font-size: 0.9em;\n color: #4d4d4d;\n font-family: "Source Sans 3", sans-serif;\n line-height: 1.3;\n }\n </style>\n\n <div class="content">\n <span class="header">${n.header}</span>\n <span class="description">${n.description}</span>\n </div>\n `}function Vo(n){return`\n ${Ao}\n ${Ro}\n ${Io}\n ${(({primaryImage:n})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n background-image: url("${n}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n font-family: "Source Sans 3", sans-serif;\n cursor: pointer;\n color: inherit;\n }\n .text {\n width: 50%;\n padding-left: 3%;\n display: flex;\n flex-direction: column;\n gap: 0.3cqh;\n }\n .header {\n font-size: clamp(1.8cqh, 2.2cqw, 3cqh);\n font-weight: 300;\n color: #333;\n font-family: "Cormorant", serif;\n line-height: 1.1;\n margin: 0;\n }\n .description {\n font-size: clamp(1.2cqh, 1.3cqw, 2cqh);\n color: #4d4d4d;\n line-height: 1.2;\n margin: 0;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n .cta-button {\n font-size: clamp(1cqh, 1.1cqw, 1.5cqh);\n font-weight: 600;\n color: #98773c;\n text-transform: uppercase;\n margin-top: 0.3cqh;\n display: inline-block;\n position: relative;\n width: fit-content;\n }\n .cta-button::after {\n content: '';\n position: absolute;\n left: 0;\n bottom: -0.2cqh;\n width: 100%;\n height: 1px;\n background-color: #98773c;\n transition: opacity 0.3s ease;\n }\n .content:hover .cta-button::after {\n opacity: 0.7;\n }\n\n @container (max-height: 100px) {\n .text {\n gap: 0.1cqh;\n }\n .description {\n -webkit-line-clamp: 1;\n }\n .cta-button::after {\n bottom: -0.1cqh;\n }\n }\n </style>\n`)(n)}\n <div class="content">\n <div class="text">\n <h2 class="header">${n.header}</h2>\n <p class="description">${n.description}</p>\n <span class="cta-button">${n.ctaText}</span>\n </div>\n </div>\n `}function Xo(n){return`\n ${Ao}\n ${Ro}\n ${Io}\n ${(({primaryImage:n})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n background-image: url("${n}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n font-family: "Source Sans 3", sans-serif;\n cursor: pointer;\n color: #FFF;\n }\n .text {\n width: 50%;\n padding-right: 3%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 0.3cqh;\n }\n .header {\n font-size: clamp(1.8cqh, 2.2cqw, 3cqh);\n font-weight: 300;\n font-family: "Cormorant", serif;\n line-height: 1.1;\n margin: 0;\n text-align: left;\n }\n .description {\n font-size: clamp(1.2cqh, 1.3cqw, 2cqh);\n line-height: 1.2;\n margin: 0;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-align: left;\n }\n .cta-button {\n font-size: clamp(1cqh, 1.1cqw, 1.5cqh);\n font-weight: 600;\n color: #FFF;\n text-transform: uppercase;\n margin-top: 0.3cqh;\n display: inline-block;\n padding: 0.5cqh 1cqw;\n border: 1px solid #FFF;\n border-radius: 4px;\n transition: background-color 0.3s ease;\n }\n .content:hover .cta-button {\n background-color: rgba(255, 255, 255, 0.2);\n }\n\n @container (max-height: 100px) {\n .text {\n gap: 0.1cqh;\n }\n .description {\n -webkit-line-clamp: 1;\n }\n .cta-button {\n padding: 0.3cqh 0.8cqw;\n }\n }\n </style>\n`)(n)}\n <div class="content">\n <div class="text">\n <h2 class="header">${n.header}</h2>\n <p class="description">${n.description}</p>\n <span class="cta-button">${n.ctaText}</span>\n </div>\n </div>\n `}function Go(n){return`\n ${Ao}\n ${Ro}\n ${Io}\n ${(({primaryImage:n})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-color: #fff;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n }\n .image {\n width: 100%;\n height: 80%;\n background-image: url("${n}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n }\n .text {\n text-align: left;\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: auto;\n width: 100%;\n position: relative;\n overflow: hidden;\n font-family: "Source Sans 3", sans-serif;\n }\n .header {\n font-size: 5.5cqw;\n font-weight: 400;\n color: black;\n padding: 10px 10px 0 10px;\n font-family: "Cormorant", serif;\n }\n .description {\n font-size: 4cqw;\n color: rgb(77, 77, 77);\n padding: 0 10px 10px 10px;\n }\n </style>\n`)(n)}\n <div class="content">\n <div class="image"></div>\n <div class="text">\n <span class="header">${n.header}</span>\n <span class="description">${n.description}</span>\n </div>\n </div>\n `}function Yo(n){return`\n ${Ao}\n ${Ro}\n ${Io}\n ${(({primaryImage:n})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.6) 100%), url("${n}") center/cover no-repeat;\n border-radius: 2%;\n overflow: hidden;\n cursor: pointer;\n color: #FFF;\n }\n .text {\n padding: 5%;\n font-family: "Source Sans 3", sans-serif;\n }\n .header {\n font-family: "Cormorant", serif;\n font-size: 7cqw;\n font-weight: 300;\n line-height: 1.2;\n margin: 0 0 0.5cqw 0;\n }\n .description {\n font-size: 4cqw;\n line-height: 1.4;\n margin: 0 0 2cqw 0;\n }\n .cta-button {\n display: inline-block;\n padding: 1.5cqw 3cqw;\n border: 0.3cqw solid rgba(255, 255, 255, 0.5);\n border-radius: 1cqw;\n background: rgba(255, 255, 255, 0.2);\n color: #FFF;\n font-size: 3.5cqw;\n transition: background-color 0.3s ease;\n }\n .content:hover .cta-button {\n background: rgba(255, 255, 255, 0.3);\n }\n\n @container (max-width: 380px) {\n .header {\n font-size: 8cqw;\n }\n .description {\n font-size: 4.5cqw;\n }\n .cta-button {\n font-size: 4cqw;\n padding: 2cqw 4cqw;\n }\n }\n\n @container (min-width: 381px) and (max-width: 480px) {\n .header {\n font-size: 7.5cqw;\n }\n .description {\n font-size: 4.2cqw;\n }\n .cta-button {\n font-size: 3.8cqw;\n }\n }\n\n @container (min-width: 481px) {\n .header {\n font-size: 6.5cqw;\n }\n .description {\n font-size: 3.8cqw;\n }\n .cta-button {\n font-size: 3.2cqw;\n }\n }\n </style>\n`)(n)}\n <div class="content">\n <div class="text">\n <h2 class="header">${n.header}</h2>\n <p class="description">${n.description}</p>\n <span class="cta-button">${n.ctaText}</span>\n </div>\n </div>\n `}function Zo(n){return`\n ${Ao}\n ${Ro}\n ${Io}\n ${(({primaryImage:n})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-color: #fff;\n cursor: pointer;\n display: flex;\n justify-content: flex-start;\n align-items: flex-end;\n border-radius: 1cqw;\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 52.1%, #000 100%), url("${n}") lightgray 50% / cover no-repeat;\n overflow: hidden;\n }\n .header {\n font-size: 7cqw;\n color: #FFF;\n font-style: normal;\n font-weight: 400;\n line-height: 1.2;\n font-family: "Cormorant", serif;\n padding: 0 5cqw 5cqw 5cqw;\n }\n\n @container (min-width: 400px) {\n .header {\n font-size: 6cqw;\n padding: 0 4cqw 4cqw 4cqw;\n }\n }\n\n @container (min-width: 800px) {\n .header {\n font-size: 5cqw;\n padding: 0 3cqw 3cqw 3cqw;\n }\n }\n </style>\n`)(n)}\n <div class="content">\n <span class="header">${n.header}</span>\n </div>\n `}function Qo(n){return`\n ${Ao}\n ${Ro}\n ${Io}\n ${(({primaryImage:n})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-image: url("${n}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n background-color: #000;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n font-family: "Source Sans 3", sans-serif;\n cursor: pointer;\n color: inherit;\n }\n .text {\n padding: 5%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n text-align: left;\n gap: 1.5cqw;\n background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 30%);\n }\n .header {\n font-size: 7cqw;\n color: #FFF;\n font-weight: 300;\n line-height: 1.2;\n font-family: "Cormorant", serif;\n margin: 0;\n }\n .description {\n font-size: 4cqw;\n color: #CCC;\n font-weight: 400;\n line-height: 1.3;\n margin: 0.5cqw 0 1.5cqw 0;\n }\n .cta-button {\n font-size: 3.5cqw;\n font-weight: 600;\n color: #B59048;\n text-transform: uppercase;\n letter-spacing: 0.1em;\n }\n .content:hover .cta-button {\n opacity: 0.8;\n }\n </style>\n`)(n)}\n <div class="content">\n <div class="text">\n <h2 class="header">${n.header}</h2>\n <p class="description">${n.description}</p>\n <span class="cta-button">${n.ctaText}</span>\n </div>\n </div>\n `}function ns(n){return`\n ${(({primaryImage:n})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-image: url("${n}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n display: block;\n }\n </style>\n`)(n)}\n <div class="content"></div>\n `}function ts(n,t){const{prefix:e=""}=t;return`\n ${(({primaryImage:n,mobilePrimaryImage:t=n},{prefix:e})=>`\n<style>\n .${e} {\n display: block;\n width: 100%;\n height: 100%;\n background-image: url("${t}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n cursor: pointer;\n container-type: inline-size;\n }\n\n @container (min-width: 640px) {\n .${e} {\n background-image: url("${n}");\n }\n }\n</style>\n`)(n,t)}\n <div class="${e}"></div>\n `}function es(n,t){const{prefix:e=""}=t;return`\n ${Ao}\n ${Ro}\n ${Io}\n ${(({textColor:n="#ffffff",ctaTextColor:t=n,ctaBorderColor:e=t,primaryImage:i,mobilePrimaryImage:r=i},{prefix:o,overlay:s})=>{const a=Ho(s,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%");return`\n <style>\n .${o} {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: flex-start;\n width: 100%;\n height: 100%;\n background-image: linear-gradient(to top, ${a}), url("${r}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n padding: 3%;\n box-sizing: border-box;\n color: ${n};\n cursor: pointer;\n }\n\n .${o}__text {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n width: 100%;\n height: fit-content;\n gap: 8px;\n }\n\n .${o}__header {\n font-size: 24px;\n margin: 0;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${o}__description {\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin: 0;\n }\n\n .${o}__cta-button {\n font-size: 8px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n border-radius: 5px;\n border: 0.5px solid ${e};\n display: inline-block;\n padding: 7px 20px;\n color: ${t};\n transition: background-color 0.3s ease;\n }\n\n .${o}:hover .cta-button {\n background-color: ${7===e.length?`${e}15`:`${e}`};\n }\n\n @container (min-width: 640px) {\n .${o} {\n background-image: linear-gradient(to top, ${a}), url("${i}");\n }\n }\n\n @container (min-width: 768px) {\n .${o}__primary-image {\n width: 66.66666%;\n height: 100%;\n }\n\n .${o}__main {\n flex-direction: column;\n height: 100%;\n width: 33.33333%;\n }\n\n .${o}__secondary-image {\n width: 100%;\n height: 50%;\n }\n\n .${o}__description {\n font-size: 12px;\n }\n\n .${o}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${o}__header {\n font-size: 26px;\n }\n\n .${o}__description {\n font-size: 13px;\n }\n\n .${o}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${o}__header {\n font-size: 28px;\n }\n\n .${o}__description {\n font-size: 14px;\n }\n\n .${o}__cta-button {\n font-size: 14px;\n }\n }\n </style>\n `})(n,t)}\n <div class="${e}">\n <div class="${e}__text">\n ${n.header?`<h2 class="${e}__header">${n.header}</h2>`:""}\n ${n.description?`<p class="${e}__description">${n.description}</p>`:""}\n ${n.ctaText?`<span class="${e}__cta-button">${n.ctaText}</span>`:""}\n </div>\n </div>\n`}function is(n,t){const{prefix:e=""}=t;return`\n ${Ao}\n ${Ro}\n ${Io}\n ${(({textColor:n="#212121",backgroundColor:t="#e8e6de",ctaTextColor:e=n,primaryImage:i,mobilePrimaryImage:r=i,secondaryImage:o,mobileSecondaryImage:s=o},{prefix:a})=>`\n<style>\n .${a} {\n width: 100%;\n height: 100%;\n display: block;\n position: relative;\n }\n\n .${a}__content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n background-color: transparent;\n gap: 6px;\n color: inherit;\n cursor: pointer;\n }\n\n .${a}__primary-image {\n width: 100%;\n height: 60%;\n background-image: url("${r}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n\n .${a}__main {\n width: 100%;\n height: 40%;\n display: flex;\n flex-direction: row;\n gap: 6px;\n }\n\n .${a}__secondary-image {\n width: 50%;\n height: 100%;\n background-image: url("${s}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n\n .${a}__text {\n color: ${n};\n background-color: ${t};\n text-align: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 50%;\n height: 100%;\n gap: 10px;\n padding: 0 10px;\n box-sizing: border-box;\n }\n\n .${a}__header {\n color: inherit;\n margin: 0;\n font-size: 18px;\n font-family: "Cormorant";\n font-style: normal;\n font-weight: 700;\n line-height: normal;\n }\n\n .${a}__description {\n color: inherit;\n margin: 0;\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n }\n\n .${a}__cta-button {\n color: ${e};\n background-color: transparent;\n font-size: 8px;\n font-style: normal;\n font-weight: 700;\n font-family: "Source Sans 3", system-ui;\n text-decoration-line: underline;\n text-transform: uppercase;\n letter-spacing: 1.4px;\n border: none;\n cursor: pointer;\n padding: 0;\n transition: opacity 0.3s ease;\n }\n\n .${a}__content:hover .${a}__cta-button {\n opacity: 0.8;\n }\n\n @container (min-width: 640px) {\n .${a}__primary-image {\n background-image: url("${i}");\n }\n\n .${a}__secondary-image {\n background-image: url("${o}");\n }\n }\n\n @container (min-width: 768px) {\n .${a}__content {\n flex-direction: row;\n }\n\n .${a}__primary-image {\n width: 66.66666%;\n height: 100%;\n }\n\n .${a}__main {\n flex-direction: column;\n height: 100%;\n width: 33.33333%;\n }\n\n .${a}__secondary-image {\n width: 100%;\n height: 50%;\n }\n\n .${a}__text {\n width: 100%;\n height: 50%;\n }\n .${a}__header {\n font-size: 22px;\n }\n .${a}__description {\n font-size: 12px;\n }\n .${a}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${a}__header {\n font-size: 24px;\n }\n .${a}__description {\n font-size: 13px;\n }\n .${a}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${a}__header {\n font-size: 28px;\n }\n .${a}__description {\n font-size: 14px;\n }\n .${a}__cta-button {\n font-size: 14px;\n }\n }\n</style>\n`)(n,t)}\n <div class="${e}">\n <div class="${e}__content">\n <div class="${e}__primary-image"></div>\n <div class="${e}__main">\n <div class="${e}__secondary-image"></div>\n <div class="${e}__text">\n ${n.header?`<h2 class="${e}__header">${n.header}</h2>`:""}\n ${n.description?`<p class="${e}__description">${n.description}</p>`:""}\n ${n.ctaText?`<span class="${e}__cta-button">${n.ctaText}</span>`:""}\n </div>\n </div>\n </div>\n </div>\n `}function rs(n,t){const{prefix:e=""}=t;return`\n ${Ao}\n ${Ro}\n ${Io}\n ${(({textColor:n="#212121",backgroundColor:t="#e8e6de",ctaTextColor:e=n,primaryImage:i,mobilePrimaryImage:r=i},{prefix:o})=>`\n <style>\n .${o} {\n width: 100%;\n height: 100%;\n background-color: transparent;\n cursor: pointer;\n position: relative;\n }\n\n .${o}__content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column-reverse;\n background-color: transparent;\n gap: 6px;\n }\n\n .${o}__image {\n width: 100%;\n height: 100%;\n background-image: url("${r}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n\n .${o}__text {\n color: ${n};\n background-color: ${t};\n text-align: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n gap: 10px;\n padding: 0 10px;\n box-sizing: border-box;\n }\n\n .${o}__header {\n font-size: 18px;\n margin: 0;\n color: inherit;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 700;\n line-height: normal;\n }\n\n .${o}__description {\n color: inherit;\n margin: 0;\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n }\n\n .${o}__cta-button {\n color: ${e};\n background-color: transparent;\n font-size: 8px;\n font-style: normal;\n font-weight: 700;\n font-family: "Source Sans 3", system-ui;\n text-decoration-line: underline;\n text-transform: uppercase;\n letter-spacing: 1.4px;\n border: none;\n cursor: pointer;\n padding: 0;\n transition: opacity 0.3s ease;\n }\n\n .${o}__content:hover .${o}__cta-button {\n opacity: 0.8;\n }\n\n @container (min-width: 640px) {\n .${o}__image {\n background-image: url("${i}");\n }\n }\n\n @container (min-width: 768px) {\n .${o}__content {\n flex-direction: row;\n }\n .${o}__image {\n width: 66.66666%;\n height: 100%;\n }\n .${o}__text {\n width: 33.33333%;\n height: 100%;\n }\n .${o}__header {\n font-size: 22px;\n }\n .${o}__description {\n font-size: 12px;\n }\n .${o}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${o}__header {\n font-size: 24px;\n }\n .${o}__description {\n font-size: 13px;\n }\n .${o}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${o}__header {\n font-size: 28px;\n }\n .${o}__description {\n font-size: 14px;\n }\n .${o}__cta-button {\n font-size: 14px;\n }\n }\n </style>\n`)(n,t)}\n <div class="${e}">\n <div class="${e}__content">\n <div class="${e}__text">\n ${n.header?`<h2 class="${e}__header">${n.header}</h2>`:""}\n ${n.description?`<p class="${e}__description">${n.description}</p>`:""}\n ${n.ctaText?`<span class="${e}__cta-button">${n.ctaText}</span>`:""}\n </div>\n <div class="${e}__image"></div>\n </div>\n </div>\n `}function os(n,t){const{prefix:e=""}=t;return`\n ${Ao}\n ${Ro}\n ${Io}\n ${(({textColor:n="#ffffff",ctaTextColor:t=n,ctaBorderColor:e=t,primaryImage:i,mobilePrimaryImage:r=i},{prefix:o,overlay:s})=>{const a=Ho(s,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%");return`\n <style>\n .${o} {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n background-image: linear-gradient(to top, ${a}), url("${r}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n border-radius: 5px;\n overflow: hidden;\n cursor: pointer;\n color: ${n};\n }\n\n .${o}__text {\n padding: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 10px;\n }\n\n .${o}__header {\n color: inherit;\n margin: 0;\n font-size: 20px;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${o}__description {\n color: inherit;\n font-size: 12px;\n line-height: 16px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n }\n\n .${o}__cta-button {\n width: fit-content;\n display: inline-block;\n padding: 7px 20px;\n border: 0.5px solid ${e};\n border-radius: 5px;\n color: ${t};\n font-size: 8px;\n transition: background-color 0.3s ease;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n }\n\n .${o}:hover .${o}__cta-button {\n background-color: ${7===e.length?`${e}15`:`${e}`};\n }\n\n @container (min-width: 640px) {\n .${o} {\n background-image: linear-gradient(to top, ${a}), url("${i}");\n }\n }\n\n @container (min-width: 768px) {\n .${o}__text {\n padding: 25px;\n }\n\n .${o}__header {\n font-size: 24px;\n }\n\n .${o}__description {\n font-size: 13px;\n line-height: 18px;\n }\n\n .${o}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${o}__text {\n padding: 30px;\n }\n\n .${o}__header {\n font-size: 28px;\n }\n\n .${o}__description {\n font-size: 14px;\n }\n\n .${o}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${o}__cta-button {\n font-size: 14px;\n }\n }\n </style>\n `})(n,t)}\n <div class="${e}">\n <div class="${e}__text">\n ${n.header?`<h2 class="${e}__header">${n.header}</h2>`:""}\n ${n.description?`<p class="${e}__description">${n.description}</p>`:""}\n ${n.ctaText?`<span class="${e}__cta-button">${n.ctaText}</span>`:""}\n </div>\n </div>\n `}function ss(n,t){const{prefix:e=""}=t;return`\n ${Ao}\n ${Ro}\n ${(({textColor:n="#ffffff",primaryImage:t,mobilePrimaryImage:e=t},{prefix:i,overlay:r})=>{const o=Ho(r,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%");return`\n <style>\n .${i} {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n border-radius: 5px;\n overflow: hidden;\n cursor: pointer;\n background-image: linear-gradient(to top, ${o}), url("${e}");\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n position: relative;\n }\n\n .${i}__header {\n font-size: 16px;\n color: ${n};\n line-height: 20px;\n font-weight: 400;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n margin: 0;\n padding: 15px 10%;\n }\n\n @container (min-width: 640px) {\n .${i} {\n background-image: linear-gradient(to top, ${o}), url("${t}");\n }\n }\n\n @container (min-width: 768px) {\n .${i}__header {\n font-size: 22px;\n }\n }\n\n @container (min-width: 1024px) {\n .${i}__header {\n font-size: 24px;\n }\n }\n\n @container (min-width: 1280px) {\n .${i}__header {\n font-size: 28px;\n }\n }\n </style>\n`})(n,t)}\n <div class="${e}">\n ${n.header?`<h2 class="${e}__header">${n.header}</h2>`:""}\n </div>\n `}function as(n,t){const{prefix:e=""}=t;return`\n ${Ao}\n ${Io}\n ${(({textColor:n="#ffffff",primaryImage:t,mobilePrimaryImage:e=t},{prefix:i,overlay:r})=>{const o=Ho(r,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%");return`\n <style>\n .${i} {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n background-image: linear-gradient(to top, ${o}), url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n border-radius: 5px;\n overflow: hidden;\n cursor: pointer;\n position: relative;\n }\n\n .${i}__header {\n font-size: 12px;\n color: ${n};\n line-height: 16px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n padding: 10px;\n }\n\n @container (min-width: 640px) {\n .${i} {\n background-image: linear-gradient(to top, ${o}), url("${t}");\n }\n }\n </style>\n `})(n,t)}\n <div class="${e}">\n ${n.header?`<h2 class="${e}__header">${n.header}</h2>`:""}\n </div>\n `}function cs(n,t){const{prefix:e=""}=t;return`\n ${Ao}\n ${Io}\n ${(({textColor:n="#000000",backgroundColor:t="transparent",primaryImage:e,mobilePrimaryImage:i=e},{prefix:r})=>`\n <style>\n .${r} {\n width: 100%;\n height: 100%;\n background-color: ${t};\n cursor: pointer;\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n }\n\n .${r}__image {\n width: 100%;\n height: 100%;\n background-image: url("${i}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n border-radius: 5px;\n }\n\n .${r}__text {\n text-align: left;\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: flex-start;\n width: 100%;\n height: fit-content;\n position: relative;\n }\n\n .${r}__header {\n font-size: 12px;\n color: ${n};\n padding-top: 5px;\n line-height: 16px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n }\n\n @container (min-width: 640px) {\n .${r}__image {\n background-image: url("${e}");\n }\n }\n </style>\n`)(n,t)}\n <div class="${e}">\n <div class="${e}__image"></div>\n <div class="${e}__text">\n ${n.header?`<h2 class="${e}__header">${n.header}</h2>`:""}\n </div>\n </div>\n `}const us=(n,e)=>{const i={[t.RB_HOMEPAGE_HERO_THREE_TILE]:{rbHomepageHeroThreeTile:is},[t.RB_HOMEPAGE_HERO_TWO_TILE]:{rbHomepageHeroTwoTile:rs},[t.RB_HOMEPAGE_HERO_FULL_IMAGE]:{rbHomepageHeroFullImage:es},[t.RB_LARGE_CATEGORY_IMAGE_TOUT]:{rbLargeCategoryImageTout:os},[t.RB_SMALL_DISCOVER_TOUT]:{rbSmallDiscoverTout:cs},[t.RB_SMALL_CATEGORY_IMAGE_TOUT]:{rbSmallCategoryImageTout:as},[t.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK]:{rbCollectionBannerWithoutTextBlock:ts},[t.RB_NAVIGATION_BANNER]:{rbNavigationBanner:ss},[t.RB_PRODUCT_UPCS]:{rbProductUpcs:()=>""},[t.BILLBOARD]:{billboardV1:Lo,billboardV2:Wo,billboardV3:Jo},[t.LARGE_RECTANGLE]:{largeRectangleV1:Go},[t.VERTICAL_RECTANGLE]:{verticalRectangleV1:Qo},[t.SQUARE]:{squareV1:Yo,squareV2:Zo},[t.LARGE_LEADERBOARD]:{largeLeaderboardV1:Vo,largeLeaderboardV2:Xo},[t.WIDE_SKYSCRAPER]:{wideSkyscraperV1:ns},[t.IN_TEXT]:{inTextV1:Ko}}[n.spot];if(!i)return null;const r=i[n.variant];return r?function(n){const t=document.createElement("div");return t.className="spot",t.innerHTML=n,Object.assign(t.style,{display:"block",width:"100%",height:"100%",margin:"0",padding:"0",containerType:"inline-size",position:"relative"}),t}(r(n,{...e,prefix:"s"+Ke.generate().toLowerCase()})):null};var hs;!function(n){n.GoogleAnalytics="google-analytics",n.Other="Other"}(hs||(hs={}));class ls{constructor(){window.dataLayer&&(this.originalPush=window.dataLayer.push)}static getInstance(){return ls.instance||(ls.instance=new ls),ls.instance}setListener(n){this.listener=n}start(){window.dataLayer.push=(...n)=>{const t=this.originalPush.apply(window.dataLayer,n),e=n[0];if(this.listener){const n=this.cleanEventData(e);n&&this.listener(n)}return t}}cleanEventData(n){const t=function(n){if(!(null==n?void 0:n.trim()))return null;const t=function(n){return n.toLowerCase().replace(/[^a-z0-9\s]+/g," ").split(/\s+/).filter(Boolean)}(n);for(const[n,{required:e,optional:i}]of Object.entries(De))if(Ne(t,e,i))return n;return null}(n.event);return t?{event:t,productIds:Le(n)}:null}stop(){this.originalPush&&(window.dataLayer.push=this.originalPush),this.listener=void 0}}class fs{constructor(){const n=this.detectAnalyticsTool();switch(n){case hs.GoogleAnalytics:this.implementedMonitor=ls.getInstance();break;case hs.Other:default:console.warn("This site uses an unsupported analytics tool.")}n!==hs.Other&&(this.pubSubService=jo.getInstance(),this.localStorageService=Po.getInstance())}static getInstance(){return fs.instance||(fs.instance=new fs),fs.instance}start(){this.implementedMonitor&&(this.implementedMonitor.setListener((async n=>{var t;await this.matchAndFireEvent(n,null===(t=this.localStorageService)||void 0===t?void 0:t.getSpots())})),this.implementedMonitor.start())}async matchAndFireEvent(n,t){var e,i;if(!t)return;const o=new Set(n.productIds.map((n=>String(n))));for(const s of Object.values(t))s.productIds.length&&s.productIds.find((n=>o.has(String(n))))&&Object.values(r).includes(n.event)&&await this.fireAndPublishSpotEvent({spotEvent:n.event,eventUrl:null!==(i=null===(e=s.events.find((t=>t.event===n.event)))||void 0===e?void 0:e.url)&&void 0!==i?i:"",placementId:s.placementId,spotId:s.spotId})}async fireAndPublishSpotEvent({spotEvent:n,eventUrl:t,placementId:e,spotId:r}){await We({event:n,eventUrl:t}),this.pubSubService&&this.pubSubService.publish(i.SPOT_EVENT,{eventType:n,placementId:e,spotId:r})}detectAnalyticsTool(){let n=hs.Other;return void 0!==window.ga&&(n=hs.GoogleAnalytics),void 0!==window.gtag&&(n=hs.GoogleAnalytics),void 0!==window.google_tag_manager&&(n=hs.GoogleAnalytics),n}}class ds{constructor(){this.pubSubService=jo.getInstance(),this.localStorageService=Po.getInstance(),this.activeSpots=new Map,this.spotStates=new Map,this.intersectionObserver=new Oo,fs.getInstance().start()}static getInstance(){return ds.instance||(ds.instance=new ds),ds.instance}subscribe(n,t){return this.pubSubService.subscribe(n,t)}publish(n,t){this.pubSubService.publish(n,t)}registerSpot(n){const{placementId:t,spot:e,spotElement:i}=n;this.activeSpots.set(t,{spotElement:i}),this.fireImpressionEvent(t,e),this.handleIntersectionObserver(t,e,i),i.addEventListener("click",(async()=>await this.handleClick(n)))}unregisterSpot(n){const t=n.replace("#",""),e=this.activeSpots.get(t);if(!e)return void this.handleSpotState(t,{state:{error:`Active spot with placementId ${t} not found.`}});this.intersectionObserver.unobserve(e.spotElement),this.handleSpotState(t,{dom:{spotElement:void 0,visibleOnViewport:!1},state:{unmounted:!0,mounted:!1}}),this.activeSpots.delete(t);const i=document.getElementById(t);i?i.innerHTML="":this.handleSpotState(t,{state:{error:`Placement element with id ${t} not found.`}})}handleSpotState(n,t,e=!0){let r=this.spotStates.get(n);r||(r={identifier:{placementId:n,spotId:"",spotType:""},dom:{spotElement:void 0,visibleOnViewport:!1},state:{mounted:!1,unmounted:!1,loading:!1,error:void 0},displayConfig:{isCarousel:!1,isCarouselItem:!1,isSingleItem:!1}});const o=this.deepMerge(r,t);this.spotStates.set(n,o),e&&this.pubSubService.publish(i.LIFECYCLE_STATE,this.spotStates.get(n))}deepMerge(n,t){return{identifier:t.identifier?{...n.identifier,...t.identifier}:n.identifier,dom:t.dom?{...n.dom,...t.dom}:n.dom,state:t.state?{...n.state,...t.state}:n.state,displayConfig:t.displayConfig?{...n.displayConfig,...t.displayConfig}:n.displayConfig}}async handleClick({placementId:n,spot:t}){var e,o,s;this.pubSubService.publish(i.SPOT_EVENT,{eventType:r.CLICK,placementId:n,spotId:t.id}),await We({event:r.CLICK,eventUrl:null!==(o=null===(e=t.events.find((n=>n.event===r.CLICK)))||void 0===e?void 0:e.url)&&void 0!==o?o:""}),this.localStorageService.setSpot(t.id,{placementId:n,spotId:t.id,spotType:t.spot,events:t.events,productIds:null!==(s=t.productIds)&&void 0!==s?s:[1,2,3]})}handleIntersectionObserver(n,t,e){this.intersectionObserver.observe(e,(async()=>{this.intersectionObserver.unobserve(e),this.handleSpotState(n,{dom:{spotElement:e,visibleOnViewport:!0}})}))}fireImpressionEvent(n,t){this.pubSubService.publish(i.SPOT_EVENT,{eventType:r.IMPRESSION,placementId:n,spotId:t.id}),(async()=>{var n,e;await We({event:r.IMPRESSION,eventUrl:null!==(e=null===(n=t.events.find((n=>n.event===r.IMPRESSION)))||void 0===n?void 0:n.url)&&void 0!==e?e:""})})()}}class ps extends $o{constructor(n){super(n)}static getInstance(n){return Ue.getInstance("SelectionService",(()=>new ps(n)))}async spotSelection(n){const{isOk:t,val:e,isErr:i}=await this.post("/spots/selection",n,{});return i?{error:`There was an error during spot selection: (${null==i?void 0:i.errorMessage})`}:t&&e&&e.data&&(null==e?void 0:e.refresh.token)?(this.authInfo.authenticated=!0,this.authInfo.token=e.refresh.token,e.data.spots):{error:"Spot selection response was not successful"}}}function ms(n){var t;null===(t=document.getElementById(n))||void 0===t||t.replaceChildren()}function gs(n){n.removeAttribute("style"),n.removeAttribute("class"),Object.assign(n.style,{width:"100%",height:"100%",display:"flex",justifyContent:"center"})}r.CLICK,r.IMPRESSION,r.PURCHASE,r.ADD_TO_CART,r.ADD_TO_WISHLIST,r.BUY_NOW,t.RB_HOMEPAGE_HERO_FULL_IMAGE,t.RB_HOMEPAGE_HERO_FULL_IMAGE,t.RB_HOMEPAGE_HERO_TWO_TILE,t.RB_HOMEPAGE_HERO_TWO_TILE,t.RB_HOMEPAGE_HERO_THREE_TILE,t.RB_HOMEPAGE_HERO_THREE_TILE,t.RB_HOMEPAGE_HERO_FULL_IMAGE,t.RB_HOMEPAGE_HERO_FULL_IMAGE,t.RB_HOMEPAGE_HERO_TWO_TILE,t.RB_HOMEPAGE_HERO_TWO_TILE,t.RB_HOMEPAGE_HERO_THREE_TILE,t.RB_HOMEPAGE_HERO_THREE_TILE,t.RB_HOMEPAGE_HERO_FULL_IMAGE,t.RB_HOMEPAGE_HERO_FULL_IMAGE,t.RB_HOMEPAGE_HERO_TWO_TILE,t.RB_HOMEPAGE_HERO_TWO_TILE,t.RB_HOMEPAGE_HERO_THREE_TILE,t.RB_HOMEPAGE_HERO_THREE_TILE,t.RB_HOMEPAGE_HERO_FULL_IMAGE,t.RB_HOMEPAGE_HERO_FULL_IMAGE,t.RB_HOMEPAGE_HERO_FULL_IMAGE,t.RB_HOMEPAGE_HERO_FULL_IMAGE,t.RB_HOMEPAGE_HERO_TWO_TILE,t.RB_HOMEPAGE_HERO_TWO_TILE,t.RB_HOMEPAGE_HERO_TWO_TILE,t.RB_HOMEPAGE_HERO_TWO_TILE,t.RB_HOMEPAGE_HERO_THREE_TILE,t.RB_HOMEPAGE_HERO_THREE_TILE,t.RB_HOMEPAGE_HERO_THREE_TILE,t.RB_HOMEPAGE_HERO_THREE_TILE,t.RB_LARGE_CATEGORY_IMAGE_TOUT,t.RB_LARGE_CATEGORY_IMAGE_TOUT,t.RB_LARGE_CATEGORY_IMAGE_TOUT,t.RB_LARGE_CATEGORY_IMAGE_TOUT,t.RB_LARGE_CATEGORY_IMAGE_TOUT,t.RB_LARGE_CATEGORY_IMAGE_TOUT,t.RB_SMALL_DISCOVER_TOUT,t.RB_SMALL_DISCOVER_TOUT,t.RB_SMALL_DISCOVER_TOUT,t.RB_SMALL_DISCOVER_TOUT,t.RB_SMALL_DISCOVER_TOUT,t.RB_SMALL_DISCOVER_TOUT,t.RB_SMALL_CATEGORY_IMAGE_TOUT,t.RB_SMALL_CATEGORY_IMAGE_TOUT,t.RB_SMALL_CATEGORY_IMAGE_TOUT,t.RB_SMALL_CATEGORY_IMAGE_TOUT,t.RB_SMALL_CATEGORY_IMAGE_TOUT,t.RB_SMALL_CATEGORY_IMAGE_TOUT,t.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK,t.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK,t.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK,t.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK,t.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK,t.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK,t.RB_NAVIGATION_BANNER,t.RB_NAVIGATION_BANNER,t.RB_NAVIGATION_BANNER,t.RB_NAVIGATION_BANNER,t.RB_NAVIGATION_BANNER,t.RB_NAVIGATION_BANNER,t.BILLBOARD,t.BILLBOARD,t.BILLBOARD,t.BILLBOARD;class vs{constructor(n){this.selectionService=ps.getInstance(n),this.elementService=No.getInstance(),this.eventService=ds.getInstance(),this.intersectionObserver=new Oo}async spotSelection(n){return this.selectionService.spotSelection(n)}async injectSpotElement(n){var e;await async function(){if(("undefined"!=typeof document||(console.warn("LiquidCommerce Rmn Sdk: Methods which create elements are only available in browser environments."),0))&&"complete"!==document.readyState&&"interactive"!==document.readyState)return new Promise((n=>{document.addEventListener("DOMContentLoaded",(()=>{n()}))}))}();const i=n.config;if(!n.inject.length)return void this.eventService.handleSpotState("all",{state:{error:"No spot elements provided for injection."}});const r=function(n){const e=ds.getInstance(),i=new Set,r=new Set(Object.values(t)),o=[];for(const t of n){const n=t.placementId.replace("#","");i.has(n)?e.handleSpotState(n,{state:{error:`Duplicate placement id (${n}) found. Please provide a unique placement id for each spot element.`}}):r.has(t.spotType)?(i.add(n),o.push(t)):e.handleSpotState(n,{state:{error:`Invalid spot type (${t.spotType}) found. Please provide a valid spot type for each spot element.`}})}return o}(n.inject);for(const t of r){this.eventService.handleSpotState(t.placementId,{identifier:{placementId:t.placementId,spotType:t.spotType}},!1);const r=document.getElementById(t.placementId);if(!r){this.eventService.handleSpotState(t.placementId,{state:{error:`Placement not found for id "${t.placementId}".`}});continue}gs(r);const o=this.elementService.createSkeletonElement({fluid:null!==(e=null==i?void 0:i.fluid)&&void 0!==e&&e,spotType:t.spotType});if(!o){this.eventService.handleSpotState(t.placementId,{state:{error:"Failed to create skeleton loader element.",mounted:!1,loading:!0}});continue}r.replaceChildren(o);const s=async()=>{var e;this.intersectionObserver.unobserve(r),this.eventService.handleSpotState(t.placementId,{state:{loading:!0}});const o=await this.injectSpotSelectionRequest({...n,inject:[t]});if("object"==typeof o&&"error"in o)return this.eventService.handleSpotState(t.placementId,{state:{error:o.error,mounted:!1,loading:!1}}),void ms(t.placementId);const s=null!==(e=t.config)&&void 0!==e?e:i,a=o[t.placementId];if(!(null==a?void 0:a.length))return this.eventService.handleSpotState(t.placementId,{state:{error:`No spots found for type "${t.spotType}".`,mounted:!1,loading:!1}}),void ms(t.placementId);1===a.length&&this.injectOneSpotElement(r,a[0],s),a.length>1&&this.injectCarouselSpotElement(r,a,s)};this.intersectionObserver.observe(r,s,{rootMargin:"500px"})}}injectOneSpotElement(n,t,e){var i;const r=n.id,o=t.spot;this.eventService.handleSpotState(r,{identifier:{placementId:r,spotType:o,spotId:t.id},displayConfig:{isSingleItem:!0,isCarousel:!1,isCarouselItem:!1}});const s=this.elementService.overrideSpotColors(t,null==e?void 0:e.colors),a=us(s,{overlay:null==e?void 0:e.overlay});if(!a)return this.eventService.handleSpotState(r,{state:{error:`Failed to inject spot element. Could not create element for type "${o}".`,mounted:!1,loading:!1}}),void ms(r);const c=this.elementService.createSpotElement({content:a,config:{fluid:null==e?void 0:e.fluid,spot:t.spot,width:t.width,height:t.height,minScale:null!==(i=null==e?void 0:e.minScale)&&void 0!==i?i:.25}});if(!c)return this.eventService.handleSpotState(r,{state:{error:`Failed to inject spot element. Could not create element for type "${o}".`,mounted:!1,loading:!1}}),void ms(r);this.eventService.registerSpot({spot:s,placementId:r,spotElement:c}),n.replaceChildren(c),this.eventService.handleSpotState(r,{dom:{spotElement:c,visibleOnViewport:!1},state:{mounted:!0,loading:!1,error:void 0}})}injectCarouselSpotElement(n,t,e){var i;const r=n.id,o=[];for(const n of t){this.eventService.handleSpotState(r,{identifier:{placementId:r,spotType:n.spot,spotId:n.id},displayConfig:{isSingleItem:!1,isCarousel:!0,isCarouselItem:!0}});const t=this.elementService.overrideSpotColors(n,null==e?void 0:e.colors),i=us(t,{overlay:null==e?void 0:e.overlay});i?(this.eventService.registerSpot({spot:t,placementId:r,spotElement:i}),o.push(i)):this.eventService.handleSpotState(r,{state:{error:`Failed to inject carousel spot item element. Could not create element for type "${t.spot}".`,mounted:!1,loading:!1}})}const{maxWidth:s,maxHeight:a}=t.reduce(((n,t)=>({maxWidth:Math.max(n.maxWidth,t.width),maxHeight:Math.max(n.maxHeight,t.height)})),{maxWidth:0,maxHeight:0}),c=this.elementService.createCarouselElement({slides:o,config:{fluid:null==e?void 0:e.fluid,width:s,height:a,minScale:null!==(i=null==e?void 0:e.minScale)&&void 0!==i?i:.25,...null==e?void 0:e.carousel}});if(!c)return this.eventService.handleSpotState(r,{state:{error:"Failed to inject spot carousel element. Could not create spot carousel element.",mounted:!1,loading:!1}}),void ms(r);n.replaceChildren(c),this.eventService.handleSpotState(r,{dom:{spotElement:c,visibleOnViewport:!1},state:{mounted:!0,loading:!1,error:void 0}})}async injectSpotSelectionRequest(n){const{inject:t,filter:e,config:i}=n,r=Po.getInstance(),o=t.map((n=>({placementId:n.placementId,spot:n.spotType,count:null==n?void 0:n.count,...null==n?void 0:n.filter}))),s={userId:r.getUserId(),url:null==i?void 0:i.url,filter:e,spots:o};return this.spotSelection(s)}}async function RmnClient(n,t){const e=_o.getInstance(n,t.env),i=await e.initialize();return new vs(i)}function RmnEventManager(){const n=ds.getInstance();return{subscribe:(t,e)=>n.subscribe(t,e),publish:(t,e)=>{n.publish(t,e)},destroySpot:t=>{n.unregisterSpot(t)}}}function RmnCreateSpotElement(n,t){var e;const i=No.getInstance(),r=i.overrideSpotColors(n,null==t?void 0:t.colors),o=us(r,{overlay:null==t?void 0:t.overlay});return o?i.createSpotElement({content:o,config:{fluid:!0,width:n.width,height:n.height,minScale:null!==(e=null==t?void 0:t.minScale)&&void 0!==e?e:.25}}):(console.warn(`RmnSdk: Failed to create spot element for type "${r.spot}".`),null)}window.RmnClient=RmnClient,window.RmnEventManager=RmnEventManager,window.RmnCreateSpotElement=RmnCreateSpotElement,n.RmnClient=RmnClient,n.RmnCreateSpotElement=RmnCreateSpotElement,n.RmnEventManager=RmnEventManager}));
|