1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38865,(e,t,r)=>{t.exports=JSON.parse('[{"id":"drQLumZpLP","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"IT","country_code":"IT","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST IT (IT) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST IT (IT) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:34.001Z","updated_at":"2022-08-22T07:28:34.001Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"BXwMuKqnGE","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"AT","country_code":"AT","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST AT (AT) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST AT (AT) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:34.562Z","updated_at":"2022-08-22T07:28:34.562Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"WgnguvLPNk","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"BE","country_code":"BE","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST BE (BE) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST BE (BE) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:35.133Z","updated_at":"2022-08-22T07:28:35.133Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"dxwVuewoZx","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"FR","country_code":"FR","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST FR (FR) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST FR (FR) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:35.703Z","updated_at":"2022-08-22T07:28:35.703Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"bYNyuGmnwR","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"DE","country_code":"DE","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST DE (DE) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST DE (DE) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:36.268Z","updated_at":"2022-08-22T07:28:36.268Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"djekuwqMKx","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"ES","country_code":"ES","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST ES (ES) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST ES (ES) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:36.832Z","updated_at":"2022-08-22T07:28:36.832Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"dmlmuLMYGn","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"NL","country_code":"NL","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST NL (NL) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST NL (NL) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:37.395Z","updated_at":"2022-08-22T07:28:37.395Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"dDqwurQaZe","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"CH","country_code":"CH","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST CH (CH) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST CH (CH) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:37.959Z","updated_at":"2022-08-22T07:28:37.959Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"WLPLuNaKeM","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"GB","country_code":"GB","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST GB (GB) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST GB (GB) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:38.523Z","updated_at":"2022-08-22T07:28:38.523Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"bpyeulyYoe","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"NO","country_code":"NO","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST NO (NO) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST NO (NO) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:39.103Z","updated_at":"2022-08-22T07:28:39.103Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"bGJqumEGeO","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"US","country_code":"US","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST US (US) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST US (US) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:39.682Z","updated_at":"2022-08-22T07:28:39.682Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"bzkouqzXGe","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"JP","country_code":"JP","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST JP (JP) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST JP (JP) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:40.245Z","updated_at":"2022-08-22T07:28:40.245Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"BvoVuxAJxl","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"HK","country_code":"HK","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST HK (HK) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST HK (HK) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:40.803Z","updated_at":"2022-08-22T07:28:40.803Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"WoeluRwoRm","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"NZ","country_code":"NZ","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST NZ (NZ) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST NZ (NZ) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:41.369Z","updated_at":"2022-08-22T07:28:41.369Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"WnNgueMleq","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"IS","country_code":"IS","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST IS (IS) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST IS (IS) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:41.931Z","updated_at":"2022-08-22T07:28:41.931Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"BwgVuyRwyw","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"SG","country_code":"SG","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST SG (SG) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST SG (SG) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:42.497Z","updated_at":"2022-08-22T07:28:42.497Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"bAJxuezMeX","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"ZA","country_code":"ZA","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST ZA (ZA) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST ZA (ZA) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:43.061Z","updated_at":"2022-08-22T07:28:43.061Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"dRMNuyJOyL","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"CO","country_code":"CO","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST CO (CO) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST CO (CO) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:43.625Z","updated_at":"2022-08-22T07:28:43.625Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}},{"id":"dqJkumyKma","type":"addresses","business":false,"first_name":"Mario","last_name":"Rossi","company":null,"full_name":"Mario Rossi","line_1":"Via Roma 69","line_2":null,"city":"TEST","zip_code":"00000","state_code":"TW","country_code":"TW","phone":"000000000000","full_address":"Via Roma 69, 00000 TEST TW (TW) 000000000000","name":"Mario Rossi, Via Roma 69, 00000 TEST TW (TW) 000000000000","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2022-08-22T07:28:44.184Z","updated_at":"2022-08-22T07:28:44.184Z","reference":null,"reference_origin":null,"metadata":{"type":"test"}}]')},63642,(e,t,r)=>{t.exports={projectName:"cusumano",configuration:{theme:"theme-2",logo:{url:"https://www.datocms-assets.com/78812/1676987460-cusumano_logo-header.png"},country:{zoneCode:"IT",title:"Italia"},locale:{title:"Italiano",code:"it"},availabilityShowThreshold:5,maxPromptDeliveryHours:48,cssOverrides:"https://lightland.cusumano.it/wp_style.css",gtmCode:"GTM-MTFRXHK",googleSiteVerification:"",facebookDomainVerification:"",giftMe
1ssage:!0,searchBar:!1,snippets:[{id:"1539324",friendlyName:"Iubenda Script Tag",snippetType:"js-head-link",scriptLoadStrategy:"afterInteractive",scriptParams:{charset:"UTF-8"},_allBodyLocales:[{locale:"de",value:"//cdn.iubenda.com/cs/iubenda_cs.js"},{locale:"en",value:"//cdn.iubenda.com/cs/iubenda_cs.js"},{locale:"it",value:"//cdn.iubenda.com/cs/iubenda_cs.js"}]},{id:"1539323",friendlyName:"Iubenda Configuration",snippetType:"js-block",scriptLoadStrategy:"afterInteractive",scriptParams:null,_allBodyLocales:[{locale:"de",value:'var _iub = _iub || [];\n_iub.csConfiguration = {"consentOnContinuedBrowsing":false,"countryDetection":true,"enableUspr":true,"floatingPreferencesButtonDisplay":"anchored-center-right","floatingPreferencesButtonIcon":false,"invalidateConsentWithoutLog":true,"perPurposeConsent":true,"siteId":2997487,"whitelabel":false,"cookiePolicyId":75042103,"lang":"de", "banner":{ "acceptButtonCaptionColor":"#FFFFFF","acceptButtonColor":"#0073CE","acceptButtonDisplay":true,"backgroundColor":"#FFFFFF","closeButtonRejects":true,"customizeButtonCaptionColor":"#4D4D4D","customizeButtonColor":"#DADADA","customizeButtonDisplay":true,"explicitWithdrawal":true,"listPurposes":true,"position":"float-bottom-center","rejectButtonCaptionColor":"#FFFFFF","rejectButtonColor":"#0073CE","rejectButtonDisplay":true,"textColor":"#000000" }};'},{locale:"en",value:'var _iub = _iub || [];\n_iub.csConfiguration = {"consentOnContinuedBrowsing":false,"countryDetection":true,"enableUspr":true,"floatingPreferencesButtonDisplay":"anchored-center-right","floatingPreferencesButtonIcon":false,"invalidateConsentWithoutLog":true,"perPurposeConsent":true,"siteId":2997487,"whitelabel":false,"cookiePolicyId":69067064,"lang":"en-GB", "banner":{ "acceptButtonCaptionColor":"#FFFFFF","acceptButtonColor":"#0073CE","acceptButtonDisplay":true,"backgroundColor":"#FFFFFF","closeButtonRejects":true,"customizeButtonCaptionColor":"#4D4D4D","customizeButtonColor":"#DADADA","customizeButtonDisplay":true,"explicitWithdrawal":true,"listPurposes":true,"position":"float-bottom-center","rejectButtonCaptionColor":"#FFFFFF","rejectButtonColor":"#0073CE","rejectButtonDisplay":true,"textColor":"#000000" }};'},{locale:"it",value:'var _iub = _iub || [];\n_iub.csConfiguration = {"consentOnContinuedBrowsing":false,"countryDetection":true,"enableUspr":true,"floatingPreferencesButtonDisplay":"anchored-center-right","floatingPreferencesButtonIcon":false,"invalidateConsentWithoutLog":true,"perPurposeConsent":true,"siteId":2997487,"whitelabel":false,"cookiePolicyId":17495588,"lang":"it", "banner":{ "acceptButtonCaptionColor":"#FFFFFF","acceptButtonColor":"#0073CE","acceptButtonDisplay":true,"backgroundColor":"#FFFFFF","closeButtonRejects":true,"customizeButtonCaptionColor":"#4D4D4D","customizeButtonColor":"#DADADA","customizeButtonDisplay":true,"explicitWithdrawal":true,"listPurposes":true,"position":"float-bottom-center","rejectButtonCaptionColor":"#FFFFFF","rejectButtonColor":"#0073CE","rejectButtonDisplay":true,"textColor":"#000000" }};'}]},{id:"FJSNbTI3T2-cJ0uI2Y37pA",friendlyName:"style fix",snippetType:"css-block",scriptLoadStrategy:"afterInteractive",scriptParams:null,_allBodyLocales:[{locale:"de",value:".card__header a, .product-box__header a {\n display: inherit;\n flex-direction: inherit;\n}\n.product-hero {\n margin-left: auto;\n margin-right: auto;\n padding: inherit;\n}\n.product-box__title {\n padding: 0;\n}\n@media screen and (min-width: 768px) {\n .product-hero {\n display: grid;\n grid-template-columns: 50% 50%;\n padding-top: 2.5rem;\n padding-bottom: 2.5rem;\n }\n}\n.cart_nav a.cart_link {\n width: 25px;\n height: 25px;\n display: block;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22.5' height='25.572' viewBox='0 0 22.5 25.572'%3E%3Cpath id='Icon_awesome-shopping-bag' data-name='Icon awesome-shopping-bag' d='M16.893 7.679V6.143a6.143 6.143 0 1 0-12.286 0V7.679H0V20.733a3.839 3.839 0 0 0 3.839 3.839H17.661A3.839 3.839 0 0 0 21.5 20.733V7.679ZM7.679 6.143a3.072 3.072 0 0 1 6.143 0V7.679H7.679ZM15.358 11.9a1.152 1.152 0 1 1 1.152-1.152A1.152 1.152 0 0 1 15.358 11.9Zm-9.214 0A1.152 1.152 0 1 1 7.295 10.75 1.152 1.152 0 0 1 6.143 11.9Z' transform='translate(0.5 0.5)' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E\");\n background-size: contain;\n background-repeat: no-repeat;\n}\n.cart_nav a.cart_link svg {\ndisplay: none;\n}"},{locale:"en",value:".card__header a, .product-box__header a {\n display: inherit;\n flex-direction: inherit;\n}\n.product-hero {\n margin-left: auto;\n margin-right: auto;\n padding: inherit;\n}\n.product-box__title {\n padding: 0;\n}\n@media screen and (min-width: 768px) {\n .product-hero {\n display: grid;\n grid-template-columns: 50% 50%;\n padding-top: 2.5rem;\n padding-bottom: 2.5rem;\n }\n}\n.cart_nav a.cart_link {\n width: 25px;\n height: 25px;\n display: block;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22.5' height='25.572' viewBox='0 0 22.5 25.572'%3E%3Cpath id='Icon_awesome-shopping-bag' data-name='Icon awesome-shopping-bag' d='M16.893 7.679V6.143a6.143 6.143 0 1 0-12.286 0V7.679H0V20.733a3.839 3.839 0 0 0 3.839 3.839H17.661A3.839 3.839 0 0 0 21.5 20.733V7.679ZM7.679 6.143a3.072 3.072 0 0 1 6.143 0V7.679H7.679ZM15.358 11.9a1.152 1.152 0 1 1 1.152-1.152A1.152 1.152 0 0 1 15.358 11.9Zm-9.214 0A1.152 1.152 0 1 1 7.295 10.75 1.152 1.152 0 0 1 6.143 11.9Z' transform='translate(0.5 0.5)' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E\");\n background-size: contain;\n background-repeat: no-repeat;\n}\n.cart_nav a.cart_link svg {\ndisplay: none;\n}"},{locale:"it",value:".card__header a, .product-box__header a {\n display: inherit;\n flex-direction: inherit;\n}\n.product-hero {\n margin-left: auto;\n margin-right: auto;\n padding: inherit;\n}\n.product-box__title {\n padding: 0;\n}\n@media screen and (min-width: 768px) {\n .product-hero {\n display: grid;\n grid-template-columns: 50% 50%;\n padding-top: 2.5rem;\n padding-bottom: 2.5rem;\n }\n}\n.cart_nav a.cart_link {\n width: 25px;\n height: 25px;\n display: block;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22.5' height='25.572' viewBox='0 0 22.5 25.572'%3E%3Cpath id='Icon_awesome-shopping-bag' data-name='Icon awesome-shopping-bag' d='M16.893 7.679V6.143a6.143 6.143 0 1 0-12.286 0V7.679H0V20.733a3.839 3.839 0 0 0 3.839 3.839H17.661A3.839 3.839 0 0 0 21.5 20.733V7.679ZM7.679 6.143a3.072 3.072 0 0 1 6.143 0V7.679H7.679ZM15.358 11.9a1.152 1.152 0 1 1 1.152-1.152A1.152 1.152 0 0 1 15.358 11.9Zm-9.214 0A1.152 1.152 0 1 1 7.295 10.75 1.152 1.152 0 0 1 6.143 11.9Z' transform='translate(0.5 0.5)' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E\");\n background-size: contain;\n background-repeat: no-repeat;\n}\n.cart_nav a.cart_link svg {\ndisplay: none;\n}"}]}],merchantFeedEnabled:!1,merchantFeedLocale:"en"}
1,locales:[{code:"de",title:"Deutsch"},{code:"it",title:"Italiano"},{code:"en",title:"English"}],availableLocales:{locales:["it","en","de"]}}},3187,(e,t,r)=>{t.exports=[{market_id:"GgeMQhrEdg",market_name:"RTW USD",zone_name:"RTW",zone_code:"US|SG|JP|HK|NZ|IS|CO|TW",currency:"USD",shipping_method:"nODkvFPgwE",shipping_method_name:"RTW shipping method"},{market_id:"GgeMQhrEdg",market_name:"RTW USD",zone_name:"RTW US",zone_code:"US",currency:"USD",shipping_method:"GEyXGFJDMV",shipping_method_name:"RTW US shipping method"},{market_id:"rjEPzhdGBo",market_name:"NL EUR",zone_name:"NL",zone_code:"NL",currency:"EUR",shipping_method:"YNPkYFdwaO",shipping_method_name:"NL shipping method"},{market_id:"EjJGehAWQg",market_name:"GB GBP",zone_name:"GB",zone_code:"GB",currency:"GBP",shipping_method:"JVRxbFoqyO",shipping_method_name:"GB shipping method"},{market_id:"vjGRmhpMLo",market_name:"FR EUR",zone_name:"FR",zone_code:"FR",currency:"EUR",shipping_method:"aOQkGFmbxV",shipping_method_name:"FR shipping method"},{market_id:"KgaJYhMbkl",market_name:"ES EUR",zone_name:"ES",zone_code:"ES",currency:"EUR",shipping_method:"mOJQoFlvmE",shipping_method_name:"ES shipping method"},{market_id:"rgbAnhPaZj",market_name:"DE EUR",zone_name:"DE",zone_code:"DE",currency:"EUR",shipping_method:"mVARXFgydE",shipping_method_name:"DE shipping method"},{market_id:"DomJOhKJVj",market_name:"BE EUR",zone_name:"BE",zone_code:"BE",currency:"EUR",shipping_method:"dOLWPFLpPE",shipping_method_name:"BE shipping method"},{market_id:"qlANwhMdZo",market_name:"CH CHF",zone_name:"CH",zone_code:"CH",currency:"CHF",shipping_method:"nEdaPFJaQO",shipping_method_name:"CH shipping method"},{market_id:"vlzmJhdrYg",market_name:"AT EUR",zone_name:"AT",zone_code:"AT",currency:"EUR",shipping_method:"bEegQFlBmN",shipping_method_name:"AT shipping method"},{market_id:"aoXOBhKLZl",market_name:"IT EUR",zone_name:"IT",zone_code:"IT",currency:"EUR",shipping_method:"dEjYgFDQDV",shipping_method_name:"IT shipping method"}]},40772,e=>{"use strict";var t=e.i(67034),r=class extends Error{constructor(e){super(e),this.name="TokenError"}},n=class extends r{constructor(e){super(e),this.name="InvalidTokenError"}};function i(e,r){if("u">typeof atob){let t=atob(e.replaceAll("-","+").replaceAll("_","/").padEnd(e.length+(4-e.length%4)%4,"="));if("utf-8"===r){let e=new Uint8Array([...t].map(e=>e.charCodeAt(0)));return new TextDecoder().decode(e)}return t}return t.Buffer.from(e,"base64url").toString(r)}function s(e){let[t,r,s]=`${e}`.split(".");if(null==t||null==r||null==s)throw new n("Invalid token format");return{header:JSON.parse(i(t,"binary")),payload:JSON.parse(i(r,"utf-8")),signature:s}}function a(e){return e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`)}function o(e,t){return Object.keys(e).reduce((r,n)=>(r[t(n)]=e[n],r),{})}async function l(e){var t;let r=o(e,a),n=(t=s(e.token),t?.payload?.iss?.startsWith("https://auth.")?t.payload.iss:"https://auth.commercelayer.io");return await (await fetch(`${n}/oauth/revoke`,{method:"POST",cache:"no-store",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)})).json()}function u(e){return"owner"in e&&e.owner?.id!=null}function c(e){return e.replace(/([-_][a-z])/g,e=>e.toUpperCase().replace("-","").replace("_",""))}async function B(e,{domain:t="commercelayer.io",headers:r,...n}){let i=o({grant_type:e,...n},a),s=await (await fetch(`https://auth.${t}/oauth/token`,{method:"POST",cache:"no-store",headers:{"Content-Type":"application/json",Accept:"application/json",...r},body:JSON.stringify(i)})).json();return s.errors??(s.expires=new Date(Date.now()+1e3*s.expires_in)),null==s.errors||Array.isArray(s.errors)||(s.errors=[s.errors]),o(s,c)}function h(e){return"string"!=typeof e||e.length<=8?e:`${e.slice(0,4)}...${e.slice(-4)}`}function d(e){if(void 0===e)return e;let t=e.getItem.bind(e);return{...e,async getItem(r){let n=await t(r);return null==n?null:{...n,storageName:n.storageName??e.name}}}}function p(e){if(null==e)return null;let t=s(e.accessToken);if(u(t.payload)&&"customer"!==t.payload.owner.type.toLowerCase())throw Error("The provided access token does not contain a valid customer owner.");let r=u(t.payload)?{ownerType:"customer",ownerId:t.payload.owner.id,refreshToken:e.refreshToken}:{ownerType:"guest"},n=Math.round(t.payload.exp-Date.now()/1e3);return{...r,tokenType:"bearer",createdAt:t.payload.iat,scope:e.scope,accessToken:e.accessToken,expiresIn:n,expires:new Date(Date.now()+1e3*n)}}e.s(["authenticate",0,B,"makeSalesChannel",0,function(e,t){let r=function(e,t,{logPrefix:r,guestOnly:n=!1}){let i,s={...e,scope:e.scope??"market:all"},a={...t,storage:d(t.storage),customerStorage:d(t.customerStorage)},o=function({debug:e,logPrefix:t}){return(r,n,i,...s)=>{null!=e&&("verbose"!==r||"verbose"===e.logLevel)&&console.log(`[CommerceLayer ⢠auth.js] [${t}]${null==n?"":` [${n}]`} ${i}`,...e.maskToken??!0?s.map(e=>"object"==typeof e&&e&&"accessToken"in e?{...e,accessToken:h(e.accessToken),..."refreshToken"in e?{refreshToken:h(e.refreshToken)}:{}}:e):s)}}({debug:s.debug,logPrefix:r}),l=a.getKey??((e,t)=>`cl_${t}-${e.clientId}-${e.scope}`),u=async()=>{try{if(!1===n){let e=await l({clientId:s.clientId,scope:s.scope},"customer"),t=a.customerStorage??a.storage;o("verbose",t.name,"Checking for customer key:",e);let r=await t.getItem(e),n=p(r);if(n?.ownerType==="customer"){if(n.expiresIn>=600)return o("verbose",r?.storageName,'Found "customer" authorization in storage',n),n;if(o("info",r?.storageName,"Customer authorization expired",n),null!=n.refreshToken){let e=await B("refresh_token",{...s,refreshToken:n.refreshToken}),t=await c({accessToken:e.accessToken,scope:e.scope,refreshToken:e.refreshToken});return o("info",r?.storageName,"Refreshed customer authorization",t),t}o("info",r?.storageName,"Customer authorization expired and has no refresh token, removing stale authorization"),await t.removeItem(e).catch(e=>{o("info",r?.storageName,"Unable to remove stale customer authorization",e)})}}let e=await l({clientId:s.clientId,scope:s.scope},"guest"),t=a.storage;o("verbose",t.name,"Checking for guest key:",e);let r=await t.getItem(e),i=p(r);if(i?.ownerType==="guest"&&i.expiresIn>=600)return o("verbose",r?.storageName,'Found "guest" authorization in storage',i),i;o("info",t.name,"No valid authorization found, requesting a new guest token");let u=await B("client_credentials",s);return await c({accessToken:u.accessToken,scope:u.scope})}catch(e){throw o("info",void 0,"Error getting the authorization.",e),e}},c=async e=>{let t=p(e),r=await l({clientId:s.clientId,scope:e.scope},t.ownerType),n={accessToken:t.accessToken,scope:t.scope,refreshToken:"customer"===t.ownerType?t.refreshToken:void 0},i="customer"===t.ownerType?a.customerStorage??a.storage:a.storage;return o("verbose",i.name,`Storing "${t.ownerType}" authorization with key:`,r),await i.setItem(r,n),o("info",i.name,`Stored "${t.ownerType}" authorization to storage`,t),t};return{options:s,getAuthorization:(i=new Map,function(...e){return new Promise((t,r)=>{let n=JSON.stringify(e),s=i.get(n);void 0===s?(i.set(n,{requestQueue:[]}),Promise.resolve(u.apply(this,e)).then(e=>{let r=i.get(n)?.requestQueue??[];for(let s of(i.delete(n),t(e),r))s.resolve(e)}).catch(e=>{let t=i.get(n)?.requestQueue??[];for(let s of(i.delete(n),r(e),t))s.reject(e)})):s.requestQueue.push({resolve:t,reject:r})})}),setAuthorization:c,removeAuthorization:async e=>{let t=await l({clientId:s.clientId,scope:s.scope},e),r="customer"===e?a.customerStorage??a.storage:a.storage;await r.removeItem(t),o("info",r.name,`Removed "${e}" authorization with key:`,t)}}}(e,t,{logPrefix:"sales_channel"});return{options:e,getAuthorization:r.getAuthorization,removeAuthorization:async(e="all")=>{if("all"===e){await r.removeAuthorization("customer"),await r.removeAuthorization("guest");return}return r.removeAuthorization(e)},setCustomer:async e=>{if(u(s(e.accessToken).payload))return await r.setAuthorization(e);throw Error("The provided access token does not contain a valid customer owner.")},logoutCustomer:async()=>{let{ownerType:t,accessToken:n}=await r.getAuthorization();return"customer"===t?(await r.removeAuthorization("customer"),await l({clientId:e.clientId,token:n})):{}}}}])},34663,7653,83535,54165,80732,e=>{"use strict";var t,r=e.z,n=(e,...t)=>{},i=e=>n;try{let e=r("debug");e&&"function"==typeof e&&(i=e)}catch(e){}var s=e=>i(`clsdk:${e}`),a=((t=a||{}).CLIENT="client",t.REQUEST="request",t.RESPONSE="response",t.CANCEL="cancel",t.PARSE="parse",t.TIMEOUT="timeout",t.TOKEN_REFRESH="token-refresh",t),o=class e extends
1Error{static NAME="SdkError";static isSdkError(t){return t&&[e.NAME,l.NAME].includes(t.name)&&Object.values(a).includes(t.type)}type;code;source;constructor(t){super(t.message),this.name=e.NAME,this.type=t.type||"client"}},l=class e extends o{static NAME="ApiError";static isApiError(t){return o.isSdkError(t)&&t.name===e.NAME&&"response"===t.type}errors=[];status;statusText;constructor(t){super({...t,type:"response"}),this.name=e.NAME}first(){return this.errors?.length>0?this.errors[0]:void 0}},u=e=>{let t=["INVALID_TOKEN"];return l.isApiError(e)&&401===e.status&&(t.includes(e.code||"")||e.errors&&e.errors.length>0&&t.includes(e.errors[0].code))},c=e=>{if(o.isSdkError(e)||l.isApiError(e))throw e;let t=new o({message:e.message});if(d.isFetchError(e)){let r=new l(t);r.type="response",r.status=e.status,r.statusText=e.statusText,r.code=String(r.status),r.errors=e.errors||[],!r.message&&r.statusText&&(r.message=r.statusText),t=r}else if(e instanceof TypeError&&"fetch failed"!==e.message)t.type="request";else if(e instanceof DOMException&&"AbortError"===e.name)t.type="cancel";else e instanceof DOMException&&"TimeoutError"===e.name?t.type="timeout":(t.type="client",t.source=e);throw t};function B(e){return l.isApiError(e)}var h=s("fetch"),d=class e extends Error{static NAME="FetchError";static isFetchError=t=>t instanceof e;#e;#t;#r;#n;constructor(t,r,n,i){super(r),this.#t=t,this.#r=r,n&&(this.#e=n.errors),i&&(this.#n=i),this.name=e.NAME}get errors(){return this.#e}get status(){return this.#t}get statusText(){return this.#r}get request(){return this.#n}},p=async(e,t,r)=>{h("fetch: %s, %O, native[%s]",e,t||{},r?.fetch?"no":"yes");let n=r?.interceptors;n?.request?.onSuccess&&({url:e,options:t}=await n.request.onSuccess({url:e,options:t}));let i=r?.fetch||fetch,s=await i(e,t);s.ok?(n?.rawReader?.onSuccess&&await n.rawReader.onSuccess(s),n?.response?.onSuccess&&(s=await n.response.onSuccess(s))):n?.rawReader?.onFailure&&await n.rawReader.onFailure(s);let a=s.body&&204!==s.status?await s.json().then(e=>(h("response: %O",e),e)).catch(e=>{if(h("error: %s",e.message),s.ok)throw new o({message:"Error parsing API response body",type:"parse"})}):void 0;if(!s.ok){let e=new d(s.status,s.statusText,a,t);if(n?.response?.onFailure&&(e=await n.response.onFailure(e)),e)throw e}return a};e.s(["SdkError",0,o,"fetchURL",0,p,"handleError",0,c,"isApiError",0,B,"isExpiredTokenError",0,u,"isSdkError",0,function(e){return o.isSdkError(e)}],7653);var f=s("query"),g=["_any","_all","_in","_not_in_or_null"],C=["_jcont"],m=e=>e&&(e.filters||e.pageNumber||e.pageSize||e.sort),_=(e,t)=>{f("generate query string params: %O, %O",e,t);let r={};return e&&(e.include&&(r.include=e.include.join(",")),e.fields&&(Array.isArray(e.fields)&&(e.fields={[t.type||t]:e.fields}),Object.entries(e.fields).forEach(([e,t])=>{r[`fields[${e}]`]=t.join(",")})),m(e)&&(e.sort&&(Array.isArray(e.sort)?r.sort=e.sort.join(","):r.sort=Object.entries(e.sort).map(([e,t])=>`${"desc"===t?"-":""}${e}`).join(",")),e.pageNumber&&(r["page[number]"]=String(e.pageNumber)),e.pageSize&&(r["page[size]"]=String(e.pageSize)),e.filters&&Object.entries(e.filters).forEach(([e,t])=>{let n;if(Array.isArray(t)){if(!g.some(t=>e.endsWith(t)))throw new o({message:`Incorrect filter [${e}]: Array value is supported only for the following filters: ${g.join(", ")}`,type:"request"});n=t.join(",")}else if("object"==typeof t){if(!C.some(t=>e.endsWith(t)))throw new o({message:`Incorrect filter [${e}]: Object value is supported only for the following filters: ${C.join(", ")}`,type:"request"});n=JSON.stringify(t)}else n=String(t);r[`filter[q][${e}]`]=n})),f("query string params: %O",r)),r},y=e=>{try{let t=JSON.parse(atob(e.split(".")[1]));return{organization:t.organization.slug,domain:t.iss?String(t.iss).replace("https://auth.",""):void 0,expiration:t.exp}}catch(e){return}},E=e=>{try{let t=y(e);return!!t?.expiration&&1e3*t.expiration-Date.now()<0}catch(e){return!1}};e.s(["extractTokenData",0,y,"isTokenExpired",0,E],83535);var v="commercelayer.io",w=1,b=10,D=15e3,T=["organization","accessToken"],I=2,S=s("client"),A=(e,t)=>`https://${e.toLowerCase()}.${t||v}/api`,O=class e{static create(t){if((!t.organization||!t.domain)&&t.accessToken){let e=y(t.accessToken);!t.organization&&e?.organization&&(t.organization=e.organization),!t.domain&&e?.domain&&(t.domain=e.domain)}for(let e of T)if(!t[e])throw new o({message:`Undefined '${e}' parameter`});return new e(t)}#i;#s;#a;#o;#l;#u;constructor(e){S("new client instance %O",e),this.#i=A(e.organization??"",e.domain),this.#s=e.accessToken,this.#a=e.organization??"",this.#o=e.domain;const t={timeout:e.timeout||D,fetch:e.fetch,refreshToken:e.refreshToken},r={...this.customHeaders(e.headers),Accept:"application/vnd.api+json","Content-Type":"application/vnd.api+json",Authorization:"Bearer "+this.#s};e.userAgent&&(r["User-Agent"]=e.userAgent),t.headers=r,this.#l=t,S("fetch config: %O",t),this.#u={}}get interceptors(){return this.#u}get requestHeaders(){return this.#l.headers||(this.#l.headers={}),this.#l.headers}config(e){S("config %o",e);let t=this.#l;return t.headers||(t.headers={}),e.timeout&&(t.timeout=e.timeout),e.userAgent&&this.userAgent(e.userAgent),e.fetch&&(this.#l.fetch=e.fetch),e.refreshToken&&(this.#l.refreshToken=e.refreshToken),(e.organization||e.domain)&&(this.#i=A(e.organization||this.#a,e.domain||this.#o)),e.organization&&(this.#a=e.organization),e.domain&&(this.#o=e.domain),e.accessToken&&(this.#s=e.accessToken,t.headers.Authorization="Bearer "+this.#s),e.headers&&(t.headers={...t.headers,...this.customHeaders(e.headers)}),this}userAgent(e){return e&&(this.requestHeaders["User-Agent"]=e),this}async request(e,t,r,n){S("request %s %s, %O, %O",e,t,r||{},n||{}),n?.userAgent&&S("User-Agent header ignored in request config");let i=n?.organization?A(n.organization,n.domain):this.#i,s=new URL(`${i}/${t}`),a=r?JSON.stringify({data:r}):void 0,l={...this.requestHeaders,...this.customHeaders(n?.headers)},B=n?.accessToken||this.#s;B&&(l.Authorization="Bearer "+B);let h=n?.refreshToken||this.#l.refreshToken,d=n?.fetch||this.#l.fetch,f={method:e,body:a,headers:l},g=n?.timeout||this.#l.timeout;g&&(AbortSignal?.timeout?f.signal=AbortSignal.timeout(g):S("Timeout not set. Undefined function: %s","AbortSignal.timeout")),n?.params&&Object.entries(n?.params).forEac
1h(([e,t])=>{s.searchParams.append(e,String(t))});let C={interceptors:this.interceptors,fetch:d};try{return await p(s,f,C).catch(e=>c(e))}catch(e){if(u(e)&&h&&E(B)){S("Access token has expired");let e=await h(this.#s).catch(e=>{S("Refresh token error: %s",e.message);let t=new o({message:"Error refreshing access token",type:"token-refresh"});throw t.source=e,t});if(e)return S("Access token refreshed"),this.config({accessToken:e}),this.#s=e,f.headers&&(f.headers.Authorization=`Bearer ${e}`),await p(s,f,C).catch(e=>c(e))}else throw e}}customHeaders(e){let t={};if(e)for(let[r,n]of Object.entries(e))["accept","content-type","authorization","user-agent"].includes(r.toLowerCase())||(t[r]=n);return t}get currentAccessToken(){return this.#s}get currentOrganization(){return this.#a}},R=["addresses","adjustments","adyen_gateways","adyen_payments","applications","attachments","authorizations","avalara_accounts","axerve_gateways","axerve_payments","bing_geocoders","braintree_gateways","braintree_payments","bundles","buy_x_pay_y_promotions","captures","carrier_accounts","checkout_com_gateways","checkout_com_payments","cleanups","coupon_codes_promotion_rules","coupon_recipients","coupons","custom_promotion_rules","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","discount_engine_items","discount_engines","easypost_pickups","event_callbacks","event_stores","events","exports","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","flex_promotions","free_gift_promotions","free_shipping_promotions","geocoders","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","links","manual_gateways","manual_tax_calculators","markets","merchants","notifications","order_amount_promotion_rules","order_copies","order_factories","order_subscription_items","order_subscriptions","orders","organizations","packages","parcel_line_items","parcels","payment_gateways","payment_methods","payment_options","paypal_gateways","paypal_payments","percentage_discount_promotions","pickups","price_frequency_tiers","price_list_schedulers","price_lists","price_tiers","price_volume_tiers","prices","promotion_rules","promotions","recurring_order_copies","refunds","reserved_stocks","resource_errors","return_line_items","returns","satispay_gateways","satispay_payments","shipments","shipping_categories","shipping_method_tiers","shipping_methods","shipping_weight_tiers","shipping_zones","sku_list_items","sku_list_promotion_rules","sku_lists","sku_options","skus","stock_items","stock_line_items","stock_locations","stock_reservations","stock_transfers","stores","stripe_gateways","stripe_payments","stripe_tax_accounts","subscription_models","tags","talon_one_accounts","tax_calculators","tax_categories","tax_rules","taxjar_accounts","transactions","vertex_accounts","voids","webhooks","wire_transfers"],N=["applications","organizations"],P=["addresses","adjustments","adyen_gateways","adyen_payments","attachments","avalara_accounts","axerve_gateways","axerve_payments","bing_geocoders","braintree_gateways","braintree_payments","bundles","buy_x_pay_y_promotions","carrier_accounts","checkout_com_gateways","checkout_com_payments","cleanups","coupon_codes_promotion_rules","coupon_recipients","coupons","custom_promotion_rules","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","easypost_pickups","exports","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","flex_promotions","free_gift_promotions","free_shipping_promotions","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","links","manual_gateways","manual_tax_calculators","markets","merchants","notifications","order_amount_promotion_rules","order_copies","order_subscription_items","order_subscriptions","orders","packages","parcel_line_items","parcels","payment_methods","payment_options","paypal_gateways","paypal_payments","percentage_discount_promotions","price_frequency_tiers","price_list_schedulers","price_lists","price_volume_tiers","prices","recurring_order_copies","return_line_items","returns","
1satispay_gateways","satispay_payments","shipments","shipping_categories","shipping_methods","shipping_weight_tiers","shipping_zones","sku_list_items","sku_list_promotion_rules","sku_lists","sku_options","skus","stock_items","stock_line_items","stock_locations","stock_reservations","stock_transfers","stores","stripe_gateways","stripe_payments","stripe_tax_accounts","subscription_models","tags","talon_one_accounts","tax_categories","tax_rules","taxjar_accounts","vertex_accounts","webhooks","wire_transfers"],k=["addresses","adjustments","adyen_gateways","adyen_payments","attachments","authorizations","avalara_accounts","axerve_gateways","axerve_payments","bing_geocoders","braintree_gateways","braintree_payments","bundles","buy_x_pay_y_promotions","captures","carrier_accounts","checkout_com_gateways","checkout_com_payments","cleanups","coupon_codes_promotion_rules","coupon_recipients","coupons","custom_promotion_rules","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","easypost_pickups","events","exports","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","flex_promotions","free_gift_promotions","free_shipping_promotions","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","links","manual_gateways","manual_tax_calculators","markets","merchants","notifications","order_amount_promotion_rules","order_copies","order_subscription_items","order_subscriptions","orders","packages","parcel_line_items","parcels","payment_methods","payment_options","paypal_gateways","paypal_payments","percentage_discount_promotions","price_frequency_tiers","price_list_schedulers","price_lists","price_volume_tiers","prices","recurring_order_copies","refunds","return_line_items","returns","satispay_gateways","satispay_payments","shipments","shipping_categories","shipping_methods","shipping_weight_tiers","shipping_zones","sku_list_items","sku_list_promotion_rules","sku_lists","sku_options","skus","stock_items","stock_line_items","stock_locations","stock_reservations","stock_transfers","stores","stripe_gateways","stripe_payments","stripe_tax_accounts","subscription_models","tags","talon_one_accounts","tax_categories","tax_rules","taxjar_accounts","vertex_accounts","voids","webhooks","wire_transfers"],L=["addresses","adjustments","adyen_gateways","adyen_payments","attachments","avalara_accounts","axerve_gateways","axerve_payments","bing_geocoders","braintree_gateways","braintree_payments","bundles","buy_x_pay_y_promotions","carrier_accounts","checkout_com_gateways","checkout_com_payments","cleanups","coupon_codes_promotion_rules","coupon_recipients","coupons","custom_promotion_rules","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","easypost_pickups","exports","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","flex_promotions","free_gift_promotions","free_shipping_promotions","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","links","manual_gateways","manual_tax_calculators","markets","merchants","notifications","order_amount_promotion_rules","order_copies","order_subscription_items","order_subscriptions","orders","packages","parcel_line_items","parcels","payment_methods","payment_options","paypal_gateways","paypal_payments","percentage_discount_promotions","price_frequency_tiers","price_list_schedulers","price_lists","price_volume_tiers","prices","recurring_order_copies","return_line_items","returns","satispay_gateways","satispay_payments","shipments","shipping_categories","shipping_methods","shipping_weight_tiers","shipping_zones","sku_list_items","sku_list_promotion_rules","sku_lists","sku_options","skus","stock_items","stock_line_items","stock_locations","stock_reservations","stock_transfers","stores","stripe_gateways","stripe_payments","stripe_tax_accounts","subscription_models","tags","talon_one_accounts","tax_categories","tax_rules","taxjar_accounts","vertex_accounts","webhooks","wire_transfers"],F=["addresses","bundles","buy_x_pay_y_promotions","coupons","customers","external_promotions","fixed_amount_promotions","fixed_price_promotions","flex_promotions","free_gift_promotions","free_shipping_promotions","gift_cards","line_item_options","line_items","order_subscriptions","orders","percentage_discount_promotions","promotions","returns","
1shipments","shipping_methods","sku_options","skus"];function x(e){return e?[...R].sort():R}e.s(["getResources",0,x,"getSingletons",0,function(e){return e?[...N].sort():N},"isCreatable",0,function(e){return P.includes(e)},"isDeletable",0,function(e){return L.includes(e)},"isSingleton",0,function(e){return N.includes(e)},"isTaggable",0,function(e){return F.includes(e)},"isUpdatable",0,function(e){return k.includes(e)},"resourceList",0,R],54165);var M=s("resource"),G=class extends Array{meta;constructor(e,t){super(...t||[]),this.meta=e}first(){return this.length?this[0]:void 0}last(){return this.length?this[this.length-1]:void 0}get(e){return this.length&&e>=0?this[e]:void 0}hasNextPage(){return this.meta.currentPage<this.meta.pageCount}hasPrevPage(){return this.meta.currentPage>1}getRecordCount(){return this.meta.recordCount}getPageCount(){return this.meta.pageCount}get recordCount(){return this.meta.recordCount}get pageCount(){return this.meta.pageCount}},U=class e{static adapter;static init(t){return e.adapter=new H(t),M("resource adapter initialized"),e.get()}static get(t){if(t)return e.init(t);if(e.adapter)return e.adapter;throw new o({message:"Commerce Layer not initialized"})}static config(t){e.get().config(t)}},H=class{#c;#B={};constructor(e){this.#c=O.create(e),this.localConfig(e)}localConfig(e){Object.assign(this.#B,e)}config(e){return M("config %o",e),this.localConfig(e),this.#c.config(e),this}get client(){return this.#c}async singleton(e,t,r,n){M("singleton: %o, %O, %O",e,t||{},r||{});let i=_(t,e);return r?.params&&Object.assign(i,r?.params),q(await this.#c.request("GET",`${n||e.type}`,void 0,{...r,params:i}))}async retrieve(e,t,r){M("retrieve: %o, %O, %O",e,t||{},r||{});let n=_(t,e);return r?.params&&Object.assign(n,r?.params),q(await this.#c.request("GET",`${e.type}/${e.id}`,void 0,{...r,params:n}))}async list(e,t,r){M("list: %o, %O, %O",e,t||{},r||{});let n=_(t,e);r?.params&&Object.assign(n,r?.params),n["page[number]"]||(n["page[number]"]="1");let i=await this.#c.request("GET",`${e.type}`,void 0,{...r,params:n}),s=q(i);return new G({pageCount:Number(i.meta?.page_count),recordCount:Number(i.meta?.record_count),currentPage:t?.pageNumber||w,recordsPerPage:t?.pageSize||b},s)}async create(e,t,r){M("create: %o, %O, %O",e,t||{},r||{});let n=_(t,e);r?.params&&Object.assign(n,r?.params);let i=W(e);return q(await this.#c.request("POST",e.type,i,{...r,params:n}))}async update(e,t,r){M("update: %o, %O, %O",e,t||{},r||{});let n=_(t,e);r?.params&&Object.assign(n,r?.params);let i=W(e);return q(await this.#c.request("PATCH",`${e.type}/${e.id}`,i,{...r,params:n}))}async delete(e,t){M("delete: %o, %O",e,t||{}),await this.#c.request("DELETE",`${e.type}/${e.id}`,void 0,t)}async fetch(e,t,r,n){M("fetch: %o, %O, %O",t,r||{},n||{});let i=_(r,e);n?.params&&Object.assign(i,n?.params);let s=await this.#c.request("GET",t,void 0,{...n,params:i}),a=q(s);return Array.isArray(a)?new G({pageCount:Number(s.meta?.page_count),recordCount:Number(s.meta?.record_count),currentPage:r?.pageNumber||w,recordsPerPage:r?.pageSize||b},a):a}},V=class{static TYPE;#h;constructor(e){M("new resource instance: %s",this.type()),e&&(this.#h=e)}get resources(){return this.#h||U.get()}withAdapter(e){return new this.constructor(e)}relationshipOneToOne(e){return null===e||"string"==typeof e?{id:e,type:this.type()}
1:{id:e.id,type:this.type()}}relationshipOneToMany(...e){return null===e||0===e.length||null===e[0]?[{id:null,type:this.type()}]:e.map(e=>({id:e,type:this.type()}))}path(){return this.type()}async update(e,t,r){return this.resources.update({...e,type:this.type()},t,r)}},j=class extends V{async retrieve(e,t,r){let n="string"==typeof e?{type:this.type(),id:e}:e;if(!n.id)throw new o({message:"Resource id cannot be blank"});return this.resources.retrieve(n,t,r)}async list(e,t){return this.resources.list({type:this.type()},e,t)}async count(e,t){let r={filters:m(e)?e.filters:e,pageNumber:1,pageSize:1};return Promise.resolve((await this.list(r,t)).meta.recordCount)}},z=e=>e?.type&&e.id&&R.includes(e.type),J=e=>e&&void 0!==e.type&&e.type&&R.includes(e.type),K=s("jsonapi"),q=e=>{if(!e)return e;e.links&&delete e.links;let t=e.data,r=e.included;return t?Array.isArray(t)?t.map(e=>$(e,r)):$(t,r):t},Y=(e,t=[])=>t.find(t=>e.id===t.id&&e.type===t.type)||e,$=(e,t,r=[])=>{if(K("denormalize resource: %O, %o",e,t||{}),!e)return e;let n={id:e.id,type:e.type,...e.attributes};return e.relationships&&Object.keys(e.relationships).forEach(i=>{let s=e.relationships[i].data;s?r.filter(e=>e.id===s.id&&e.type===s.type).length>=I?n[i]=s:Array.isArray(s)?n[i]=s.map(e=>$(Y(e,t),t,[...r,e])):n[i]=$(Y(s,t),t,[...r,s]):null===s&&(n[i]=null)}),K("denormalized resource: %O",n),n},W=e=>{K("normalize resource: %O",e);let t={},r={};for(let n in e){if(["type","id"].includes(n))continue;let i=e[n];Array.isArray(i)&&1===i.length&&J(i[0])&&null===i[0].id?r[n]={data:[]}:i&&J(i)&&null===i.id?r[n]={data:null}:i&&(z(i)||Array.isArray(i)&&z(i[0]))?r[n]={data:i}:t[n]=i}let n={type:e.type,attributes:t,relationships:r};return z(e)&&(n.id=e.id),K("normalized resource: %O",n),n};e.s(["ApiResource",0,j,"ApiResourceAdapter",0,U],80732);var Q=s("commercelayer"),Z="7.10.3",X=class e{openApiSchemaVersion=Z;static cl;instanceAdapter;static get(t){if(t)return e.cl=new e(t);if(!e.cl)throw Error("CommerceLayer client not initialized");return e.cl}constructor(e){Q("new commercelayer instance %O",e),this.instanceAdapter=U.init(e)}get adapter(){return U.get()}get currentOrganization(){return this.adapter.client?.currentOrganization}get currentAccessToken(){return this.adapter.client?.currentAccessToken}get interceptors(){return this.adapter.client?.interceptors}localConfig(e){}config(e){return Q("config %o",e),this.localConfig(e),this.adapter.config(e),this}resources(e){return x(e)}isApiError(e){return B(e)}addRequestInterceptor(e,t){return this.interceptors.request={onSuccess:e,onFailure:t},1}addResponseInterceptor(e,t){return this.interceptors.response={onSuccess:e,onFailure:t},1}removeInterceptor(e,t=1){this.interceptors[e]=void 0}removeInterceptors(){this.removeInterceptor("request"),this.removeInterceptor("response"),this.removeRawResponseReader()}addRawResponseReader(e){let t={id:0,rawResponse:void 0,headers:void 0,ok:!0};async function r(r){if(t.rawResponse=await r?.clone().json().catch(()=>{}),t.ok=r.ok,e?.headers){let e={};r.headers.forEach((t,r)=>{e[r]=t}),t.headers=e}return r}return this.interceptors.rawReader={onSuccess:r,onFailure:r},t.id=1,t}removeRawResponseReader(){this.interceptors.rawReader=void 0}};e.s(["OPEN_API_SCHEMA_VERSION",0,Z,"commercelayer_default",0,e=>X.get(e)],34663)},63971,92675,61726,77752,e=>{"use strict";var t=e.i(34663);e.s(["default",()=>t.commercelayer_default],63971);var r=e.i(80732),n=new class e extends r.ApiResource{static TYPE="addresses";async create(t,r,n){return this.resources.create({...t,type:e.TYPE},r,n)}async update(t,r,n){return this.resources.update({...t,type:e.TYPE},r,n)}async delete(t,r){await this.resources.delete("string"==typeof t?{id:t,type:e.TYPE}:t,r)}async geocoder(e,t,r){let n=e.id||e;return this.resources.fetch({type:"geocoders"},`addresses/${n}/geocoder`,t,r)}async events(e,t,r){let n=e.id||e;return this.resources.fetch({type:"events"},`addresses/${n}/events`,t,r)}async tags(e,t,r){let n=e.id||e;return this.resources.fetch({type:"tags"},`addresses/${n}/tags`,t,r)}async event_stores(e,t,r){let n=e.id||e;return this.resources.fetch({type:"event_stores"},`addresses/${n}/event_stores`,t,r)}async _add_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_add_tags:r},n,i)}async _remove_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_remove_tags:r},n,i)}isAddress(t){return t.type&&t.type===e.TYPE}relationship(e){return super.relationshipOneToOne(e)}relationshipToMany(...e){return super.relationshipOneToMany(...e)}
1type(){return e.TYPE}};e.s(["addresses",0,n],92675);var i=r,s=new class e extends i.ApiResource{static TYPE="braintree_payments";async create(t,r,n){return this.resources.create({...t,type:e.TYPE},r,n)}async update(t,r,n){return this.resources.update({...t,type:e.TYPE},r,n)}async delete(t,r){await this.resources.delete("string"==typeof t?{id:t,type:e.TYPE}:t,r)}async order(e,t,r){let n=e.id||e;return this.resources.fetch({type:"orders"},`braintree_payments/${n}/order`,t,r)}async payment_gateway(e,t,r){let n=e.id||e;return this.resources.fetch({type:"payment_gateways"},`braintree_payments/${n}/payment_gateway`,t,r)}async event_stores(e,t,r){let n=e.id||e;return this.resources.fetch({type:"event_stores"},`braintree_payments/${n}/event_stores`,t,r)}isBraintreePayment(t){return t.type&&t.type===e.TYPE}relationship(e){return super.relationshipOneToOne(e)}relationshipToMany(...e){return super.relationshipOneToMany(...e)}type(){return e.TYPE}};e.s(["braintree_payments",0,s],61726);var a=r,o=new class e extends a.ApiResource{static TYPE="bundles";async create(t,r,n){return this.resources.create({...t,type:e.TYPE},r,n)}async update(t,r,n){return this.resources.update({...t,type:e.TYPE},r,n)}async delete(t,r){await this.resources.delete("string"==typeof t?{id:t,type:e.TYPE}:t,r)}async market(e,t,r){let n=e.id||e;return this.resources.fetch({type:"markets"},`bundles/${n}/market`,t,r)}async sku_list(e,t,r){let n=e.id||e;return this.resources.fetch({type:"sku_lists"},`bundles/${n}/sku_list`,t,r)}async skus(e,t,r){let n=e.id||e;return this.resources.fetch({type:"skus"},`bundles/${n}/skus`,t,r)}async attachments(e,t,r){let n=e.id||e;return this.resources.fetch({type:"attachments"},`bundles/${n}/attachments`,t,r)}async events(e,t,r){let n=e.id||e;return this.resources.fetch({type:"events"},`bundles/${n}/events`,t,r)}async tags(e,t,r){let n=e.id||e;return this.resources.fetch({type:"tags"},`bundles/${n}/tags`,t,r)}async event_stores(e,t,r){let n=e.id||e;return this.resources.fetch({type:"event_stores"},`bundles/${n}/event_stores`,t,r)}async _compute_price_amount(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_compute_price_amount:!0},r,n)}async _compute_compare_at_amount(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_compute_compare_at_amount:!0},r,n)}async _add_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_add_tags:r},n,i)}async _remove_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_remove_tags:r},n,i)}isBundle(t){return t.type&&t.type===e.TYPE}relationship(e){return super.relationshipOneToOne(e)}relationshipToMany(...e){return super.relationshipOneToMany(...e)}type(){return e.TYPE}};e.s(["bundles",0,o],77752)},92165,e=>{"use strict";var t=e.i(34663),r=e.i(83535),n=e.i(54165),i=e.i(7653);e.s(["CommerceLayerStatic",0,{resources:e=>(0,n.getResources)(e),singletons:e=>(0,n.getSingletons)(e),isSingleton:e=>(0,n.isSingleton)(e),isCreatable:e=>(0,n.isCreatable)(e),isUpdatable:e=>(0,n.isUpdatable)(e),isDeletable:e=>(0,n.isDeletable)(e),isTaggable:e=>(0,n.isTaggable)(e),isSdkError:e=>(0,i.isSdkError)(e),isApiError:e=>(0,i.isApiError)(e),isTokenExpired:e=>(0,r.isTokenExpired)(e),get schemaVersion(){return t.OPEN_API_SCHEMA_VERSION}}])},61316,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({html:e,height:t=null,width:r=null,children:s,dataNtpc:a=""}){return(0,i.useEffect)(()=>{a&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${a}`}})},[a]),(0,n.jsxs)(n.Fragment,{children:[s,e?(0,n.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=r?`${r}px`:"auto"},"data-ntpc":a,dangerouslySetInnerHTML:{__html:e}}):null]})};let n=e.r(43476),i=e.r(71645)},54576,(e,t,r)=>{"use strict";let n;var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=function(e){let{gaId:t,debugMode:r,dataLayerName:i="dataLayer",nonce:l}=e;return void 0===n&&(n=i),(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:` 2 window['${i}'] = window['${i}'] || []; 3 function gtag(){window['${i}'].push(arguments);} 4 gtag('js', new Date()); 5 6 gtag('config', '${t}' ${r?",{ 'debug_mode': true }":""});`},nonce:l}),(0,s.jsx)(o.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?i
6d=${t}`,nonce:l})]})},r.sendGAEvent=function(){void 0===n?console.warn("@next/third-parties: GA has not been initialized"):window[n]?window[n].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${n} does not exist`)};let s=e.r(43476),a=e.r(71645),o=i(e.r(3303))},67345,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{apiKey:t,...r}=e,n={...r,key:t},{html:o}=(0,s.GoogleMapsEmbed)(n);return(0,i.jsx)(a.default,{height:n.height||null,width:n.width||null,html:o,dataNtpc:"GoogleMapsEmbed"})};let i=e.r(43476),s=e.r(81498),a=n(e.r(61316))},19598,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGTMEvent=void 0,r.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:r,dataLayerName:n="dataLayer",auth:l,preview:u,dataLayer:c,nonce:B}=e;o=n;let h=new URL(r||"https://www.googletagmanager.com/gtm.js");return t&&h.searchParams.set("id",t),"dataLayer"!==n&&h.searchParams.set("l",n),l&&h.searchParams.set("gtm_auth",l),u&&(h.searchParams.set("gtm_preview",u),h.searchParams.set("gtm_cookies_win","x")),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:` 7 (function(w,l){ 8 w[l]=w[l]||[]; 9 w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); 10 ${c?`w[l].push(${JSON.stringify(c)})`:""} 11 })(window,'${n}');`},nonce:B}),(0,i.jsx)(a.default,{id:"_next-gtm","data-ntpc":"GTM",src:h.href,nonce:B})]})};
11let i=e.r(43476),s=e.r(71645),a=n(e.r(3303)),o="dataLayer";r.sendGTMEvent=(e,t)=>{let r=t||o;window[r]=window[r]||[],window[r].push(e)}},87644,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGAEvent=r.GoogleAnalytics=r.sendGTMEvent=r.GoogleTagManager=r.YouTubeEmbed=r.GoogleMapsEmbed=void 0;var i=e.r(67345);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n(i).default}});var s=e.r(21783);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return n(s).default}});var a=e.r(19598);Object.defineProperty(r,"GoogleTagManager",{enumerable:!0,get:function(){return a.GoogleTagManager}}),Object.defineProperty(r,"sendGTMEvent",{enumerable:!0,get:function(){return a.sendGTMEvent}});var o=e.r(54576);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return o.GoogleAnalytics}}),Object.defineProperty(r,"sendGAEvent",{enumerable:!0,get:function(){return o.sendGAEvent}})},21783,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{html:t,scripts:r,stylesheets:n}=(0,a.YouTubeEmbed)(e);return(0,i.jsx)(o.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==r?void 0:r.map(e=>(0,i.jsx)(s.default,{src:e.url,strategy:l[e.strategy],stylesheets:n},e.url))})};let i=e.r(43476),s=n(e.r(3303)),a=e.r(81498),o=n(e.r(61316)),l={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},63996,(e,t,r)=>{var n=Object.prototype;t.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},25717,(e,t,r)=>{t.exports=function(e,t){return function(r){return e(t(r))}}},42369,(e,t,r)=>{t.exports=e.r(25717)(Object.keys,Object)},48477,(e,t,r)=>{var n=e.r(63996),i=e.r(42369),s=Object.prototype.hasOwnProperty;t.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))s.call(e,r)&&"constructor"!=r&&t.push(r);return t}},236,(e,t,r)=>{t.exports=e.g&&e.g.Object===Object&&e.g},39088,(e,t,r)=>{var n=e.r(236),i="object"==typeof self&&self&&self.Object===Object&&self;t.exports=n||i||Function("return this")()},30353,(e,t,r)=>{t.exports=e.r(39088).Symbol},43436,(e,t,r)=>{var n=e.r(30353),i=Object.prototype,s=i.hasOwnProperty,a=i.toString,o=n?n.toStringTag:void 0;t.exports=function(e){var t=s.call(e,o),r=e[o];try{e[o]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[o]=r:delete e[o]),i}},23243,(e,t,r)=>{var n=Object.prototype.toString;t.exports=function(e){return n.call(e)}},77684,(e,t,r)=>{var n=e.r(30353),i=e.r(43436),s=e.r(23243),a=n?n.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):s(e)}},12447,(e,t,r)=>{t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},71223,(e,t,r)=>{var n=e.r(77684),i=e.r(12447);t.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},53789,(e,t,r)=>{t.exports=e.r(39088)["__core-js_shared__"]},69553,(e,t,r)=>{var n,i=e.r(53789),s=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(e){return!!s&&s in e}},76366,(e,t,r)=>{var n=Function.prototype.toString;t.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},54368,(e,t,r)=>{var n=e.r(71223),i=e.r(69553),s=e.r(12447),a=e.r(76366),o=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,B=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(e){return!(!s(e)||i(e))&&(n(e)?B:o).test(a(e))}},63958,(e,t,r)=>{t.exports=function(e,t){return null==e?void 0:e[t]}},41920,(e,t,r)=>{var n=e.r(54368),i=e.r(63958);t.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},1419,(e,t,r)=>{t.exports=e.r(41920)(e.r(39088),"DataView")},87362,(e,t,r)=>{t.exports=e.r(41920)(e.r(39088),"Map")}
11,17074,(e,t,r)=>{t.exports=e.r(41920)(e.r(39088),"Promise")},6966,(e,t,r)=>{t.exports=e.r(41920)(e.r(39088),"Set")},73895,(e,t,r)=>{t.exports=e.r(41920)(e.r(39088),"WeakMap")},67426,(e,t,r)=>{var n=e.r(1419),i=e.r(87362),s=e.r(17074),a=e.r(6966),o=e.r(73895),l=e.r(77684),u=e.r(76366),c="[object Map]",B="[object Promise]",h="[object Set]",d="[object WeakMap]",p="[object DataView]",f=u(n),g=u(i),C=u(s),m=u(a),_=u(o),y=l;(n&&y(new n(new ArrayBuffer(1)))!=p||i&&y(new i)!=c||s&&y(s.resolve())!=B||a&&y(new a)!=h||o&&y(new o)!=d)&&(y=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case f:return p;case g:return c;case C:return B;case m:return h;case _:return d}return t}),t.exports=y},77289,(e,t,r)=>{t.exports=function(e){return null!=e&&"object"==typeof e}},66645,(e,t,r)=>{var n=e.r(77684),i=e.r(77289);t.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},73250,(e,t,r)=>{var n=e.r(66645),i=e.r(77289),s=Object.prototype,a=s.hasOwnProperty,o=s.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!o.call(e,"callee")}},45350,(e,t,r)=>{t.exports=Array.isArray},98376,(e,t,r)=>{t.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},51095,(e,t,r)=>{var n=e.r(71223),i=e.r(98376);t.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},24013,(e,t,r)=>{t.exports=function(){return!1}},56956,(e,t,r)=>{var n=e.r(39088),i=e.r(24013),s=r&&!r.nodeType&&r,a=s&&t&&!t.nodeType&&t,o=a&&a.exports===s?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||i},76602,(e,t,r)=>{var n=e.r(77684),i=e.r(98376),s=e.r(77289),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(e){return s(e)&&i(e.length)&&!!a[n(e)]}},33999,(e,t,r)=>{t.exports=function(e){return function(t){return e(t)}}},80156,(e,t,r)=>{var n=e.r(236),i=r&&!r.nodeType&&r,s=i&&t&&!t.nodeType&&t,a=s&&s.exports===i&&n.process;t.exports=function(){try{var e=s&&s.require&&s.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}()},3023,(e,t,r)=>{var n=e.r(76602),i=e.r(33999),s=e.r(80156),a=s&&s.isTypedArray;t.exports=a?i(a):n},46217,(e,t,r)=>{var n=e.r(48477),i=e.r(67426),s=e.r(73250),a=e.r(45350),o=e.r(51095),l=e.r(56956),u=e.r(63996),c=e.r(3023),B=Object.prototype.hasOwnProperty;t.exports=function(e){if(null==e)return!0;if(o(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||s(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!n(e).length;for(var r in e)if(B.call(e,r))return!1;return!0}},74743,e=>{"use strict";var t=e.i(46217);let r=[{label:"Afghanistan",value:"AF"},{label:"Aland Islands",value:"AX"},{label:"Albania",value:"AL"},{label:"Algeria",value:"DZ"},{label:"American Samoa",value:"AS"},{label:"Andorra",value:"AD"},{label:"Angola",value:"AO"},{label:"Anguilla",value:"AI"},{label:"Antarctica",value:"AQ"},{label:"Antigua And Barbuda",value:"AG"},{label:"Argentina",value:"AR"},{label:"Armenia",value:"AM"},{label:"Aruba",value:"AW"},{label:"Australia",value:"AU"},{label:"Austria",value:"AT"},{label:"Azerbaijan",value:"AZ"},{label:"Bahamas The",value:"BS"},{label:"Bahrain",value:"BH"},{label:"Bangladesh",value:"BD"},{label:"Barbados",value:"BB"},{label:"Belarus",value:"BY"},{label:"Belgium",value:"BE"},{label:"Belize",value:"BZ"},{label:"Benin",value:"BJ"},{label:"Bermuda",value:"BM"},{label:"Bhutan",value:"BT"},{label:"Bolivia",value:"BO"},{label:"Bonaire, Sint Eustatius and Saba",value:"BQ"},{label:"Bosnia and Herzegovina",value:"BA"},{label:"Botswana",value:"BW"},{label:"Bouvet Island",value:"BV"},{label:"Brazil",value:"BR"},{label:"British Indian Ocean Territory",value:"IO"},{label:"Brunei",value:"BN"},{label:"Bulgaria",value:"BG"},{label:"Burkina Faso",value:"BF"},{label:"Burundi",value:"BI"},{label:"Cambodia",value:"KH"},{label:"Cameroon",value:"CM"},{label:"Canada",value:"CA"},{label:"Cape Verde",value:"CV"},{label:"Cayman Islands",value:"KY"},{label:"Central African Republic",value:"CF"},{label:"Chad",value:"TD"},{label:"Chile",value:"CL"},{label:"China",value:"CN"},{label:"Christmas Island",value:"CX"},{label:"Cocos (Keeling) Islands",value:"CC"},{label:"Colombia",value:"CO"},{label:"Comoros",value:"KM"},{label:"Congo",value:"CG"},{label:"Cook Islands",value:"CK"},{label:"Costa Rica",value:"CR"}
11,{label:"Cote D'Ivoire (Ivory Coast)",value:"CI"},{label:"Croatia",value:"HR"},{label:"Cuba",value:"CU"},{label:"Curaçao",value:"CW"},{label:"Cyprus",value:"CY"},{label:"Czech Republic",value:"CZ"},{label:"Democratic Republic of the Congo",value:"CD"},{label:"Denmark",value:"DK"},{label:"Djibouti",value:"DJ"},{label:"Dominica",value:"DM"},{label:"Dominican Republic",value:"DO"},{label:"East Timor",value:"TL"},{label:"Ecuador",value:"EC"},{label:"Egypt",value:"EG"},{label:"El Salvador",value:"SV"},{label:"Equatorial Guinea",value:"GQ"},{label:"Eritrea",value:"ER"},{label:"Estonia",value:"EE"},{label:"Ethiopia",value:"ET"},{label:"Falkland Islands",value:"FK"},{label:"Faroe Islands",value:"FO"},{label:"Fiji Islands",value:"FJ"},{label:"Finland",value:"FI"},{label:"France",value:"FR"},{label:"French Guiana",value:"GF"},{label:"French Polynesia",value:"PF"},{label:"French Southern Territories",value:"TF"},{label:"Gabon",value:"GA"},{label:"Gambia The",value:"GM"},{label:"Georgia",value:"GE"},{label:"Germany",value:"DE"},{label:"Ghana",value:"GH"},{label:"Gibraltar",value:"GI"},{label:"Greece",value:"GR"},{label:"Greenland",value:"GL"},{label:"Grenada",value:"GD"},{label:"Guadeloupe",value:"GP"},{label:"Guam",value:"GU"},{label:"Guatemala",value:"GT"},{label:"Guernsey and Alderney",value:"GG"},{label:"Guinea",value:"GN"},{label:"Guinea-Bissau",value:"GW"},{label:"Guyana",value:"GY"},{label:"Haiti",value:"HT"},{label:"Heard Island and McDonald Islands",value:"HM"},{label:"Honduras",value:"HN"},{label:"Hong Kong S.A.R.",value:"HK"},{label:"Hungary",value:"HU"},{label:"Iceland",value:"IS"},{label:"India",value:"IN"},{label:"Indonesia",value:"ID"},{label:"Iran",value:"IR"},{label:"Iraq",value:"IQ"},{label:"Ireland",value:"IE"},{label:"Israel",value:"IL"},{label:"Italy",value:"IT"},{label:"Jamaica",value:"JM"},{label:"Japan",value:"JP"},{label:"Jersey",value:"JE"},{label:"Jordan",value:"JO"},{label:"Kazakhstan",value:"KZ"},{label:"Kenya",value:"KE"},{label:"Kiribati",value:"KI"},{label:"Kosovo",value:"XK"},{label:"Kuwait",value:"KW"},{label:"Kyrgyzstan",value:"KG"},{label:"Laos",value:"LA"},{label:"Latvia",value:"LV"},{label:"Lebanon",value:"LB"},{label:"Lesotho",value:"LS"},{label:"Liberia",value:"LR"},{label:"Libya",value:"LY"},{label:"Liechtenstein",value:"LI"},{label:"Lithuania",value:"LT"},{label:"Luxembourg",value:"LU"},{label:"Macau S.A.R.",value:"MO"},{label:"Macedonia",value:"MK"},{label:"Madagascar",value:"MG"},{label:"Malawi",value:"MW"},{label:"Malaysia",value:"MY"},{label:"Maldives",value:"MV"},{label:"Mali",value:"ML"},{label:"Malta",value:"MT"},{label:"Man (Isle of)",value:"IM"},{label:"Marshall Islands",value:"MH"},{label:"Martinique",value:"MQ"},{label:"Mauritania",value:"MR"},{label:"Mauritius",value:"MU"},{label:"Mayotte",value:"YT"},{label:"Mexico",value:"MX"},{label:"Micronesia",value:"FM"},{label:"Moldova",value:"MD"},{label:"Monaco",value:"MC"},{label:"Mongolia",value:"MN"},{label:"Montenegro",value:"ME"},{label:"Montserrat",value:"MS"},{label:"Morocco",value:"MA"},{label:"Mozambique",value:"MZ"},{label:"Myanmar",value:"MM"},{label:"Namibia",value:"NA"},{label:"Nauru",value:"NR"},{label:"Nepal",value:"NP"},{label:"Netherlands",value:"NL"},{label:"New Caledonia",value:"NC"},{label:"New Zealand",value:"NZ"},{label:"Nicaragua",value:"NI"},{label:"Niger",value:"NE"},{label:"Nigeria",value:"NG"},{label:"Niue",value:"NU"},{label:"Norfolk Island",value:"NF"},{label:"North Korea",value:"KP"},{label:"Northern Mariana Islands",value:"MP"},{label:"Norway",value:"NO"},{label:"Oman",value:"OM"},{label:"Pakistan",value:"PK"},{label:"Palau",value:"PW"},{label:"Palestinian Territory Occupied",value:"PS"},{label:"Panama",value:"PA"},{label:"Papua new Guinea",value:"PG"},{label:"Paraguay",value:"PY"},{label:"Peru",value:"PE"},{label:"Philippines",value:"PH"},{label:"Pitcairn Island",value:"PN"},{label:"Poland",value:"PL"},{label:"Portugal",value:"PT"},{label:"Puerto Rico",value:"PR"},{label:"Qatar",value:"QA"},{label:"Reunion",value:"RE"},{label:"Romania",value:"RO"},{label:"Russia",value:"RU"},{label:"Rwanda",value:"RW"},{label:"Saint Helena",value:"SH"},{label:"Saint Kitts And Nevis",value:"KN"},{label:"Saint Lucia",value:"LC"},{label:"Saint Pierre and Miquelon",value:"PM"},{label:"Saint Vincent And The Grenadines",value:"VC"},{label:"Saint-Barthelemy",value:"BL"},{label:"Saint-Martin (French part)",value:"MF"},{label:"Samoa",value:"WS"},{label:"San Marino",value:"SM"},{label:"Sao Tome and Principe",value:"ST"},{label:"Saudi Arabia",value:"SA"},{label:"Senegal",value:"SN"},{label:"Serbia",value:"RS"},{label:"Seychelles",value:"SC"},{label:"Sierra Leone",value:"SL"},{label:"Singapore",value:"SG"},{label:"Sint Maarten (Dutch part)",value:"SX"},{label:"Slovakia",value:"SK"},{label:"Slovenia",value:"SI"},{label:"Solomon Islands",value:"SB"},{label:"Somalia",value:"SO"},{label:"South Africa",value:"ZA"},{label:"South Georgia",value:"GS"},{label:"South Korea",value:"KR"},{label:"South Sudan",value:"SS"},{label:"Spain",value:"ES"},{label:"Sri Lanka",value:"LK"},{label:"Sudan",value:"SD"},{label:"Suriname",value:"SR"},{label:"Svalbard And Jan Mayen Islands",value:"SJ"},{label:"Swaziland",value:"SZ"},{label:"Sweden",value:"SE"},{label:"Switzerland",value:"CH"},{label:"Syria",value:"SY"},{label:"Taiwan",value:"TW"},{label:"Tajikistan",value:"TJ"},{label:"Tanzania",value:"TZ"},{label:"Thailand",value:"TH"},{label:"Togo",value:"TG"},{label:"Tokelau",value:"TK"},{label:"Tonga",value:"TO"},{label:"Trinidad And Tobago",value:"TT"},{label:"Tunisia",value:"TN"},{label:"Turkey",value:"TR"},{label:"Turkmenistan",value:"TM"},{label:"Turks And Caicos Islands",value:"TC"},{label:"Tuvalu",value:"TV"},{label:"Uganda",value:"UG"},{label:"Ukraine",value:"UA"},{label:"United Arab Emirates",value:"AE"},{label:"United Kingdom",value:"GB"},{label:"United States",value:"US"},{label:"United States Minor Outlying Islands",value:"UM"},{label:"Uruguay",value:"UY"},{label:"Uzbekistan",value:"UZ"},{label:"Vanuatu",value:"VU"},{label:"Vatican City State (Holy See)",value:"VA"},{label:"Venezuela",value:"VE"},{label:"Vietnam",value:"VN"},{label:"Virgin Islands (British)",value:"VG"},{label:"Virgin Islands (US)",value:"VI"},{label:"Wallis And Futuna Islands",value:"WF"},{label:"Western Sahara",value:"EH"},{label:"Yemen",value:"YE"},{label:"Zambia",value:"ZM"},{label:"Zimbabwe",value:"ZW"}],n={US:[{label:"Alabama",value:"AL"},{label:"Alaska",value:"AK"},{label:"Arizona",value:"AZ"},{label:"Arkansas",value:"AR"},{label:"California",value:"CA"},{label:"Colorado",value:"CO"},{label:"Connecticut",value:"CT"},{label:"Delaware",value:"DE"},{label:"District of Columbia",value:"DC"},{label:"Florida",value:"FL"},{label:"Georgia",value:"GA"},{label:"Hawaii",value:"HI"},{label:"Idaho",value:"ID"},{label:"Illinois",value:"IL"},{label:"Indiana",value:"IN"},{label:"Iowa",value:"IA"},{label:"Kansas",value:"KS"},{label:"Kentucky",value:"KY"},{label:"Louisiana",value:"LA"},{label:"Maine",value:"ME"},{label:"Maryland",value:"MD"},{label:"Massachusetts",value:"MA"},{label:"Michigan",value:"MI"},{label:"Minnesota",value:"MN"},{label:"Mississippi",value:"MS"},{label:"Missouri",value:"MO"},{label:"Montana",value:"MT"},{label:"Nebraska",value:"NE"},{label:"Nevada",value:"NV"},{label:"New Hampshire",value:"NH"},{label:"New Jersey",value:"NJ"},{label:"New Mexico",value:"NM"},{label:"New York",value:"NY"},{label:"North Carolina",value:"NC"},{label:"North Dakota",value:"ND"},{label:"Ohio",value:"OH"},{label:"Oklahoma",value:"OK"},{label:"Oregon",value:"OR"},{label:"Pennsylvania",value:"PA"},{label:"Rhode Island",value:"RI"},{label:"South Carolina",value:"SC"},{label:"South Dakota",value:"SD"},{label:"Tennessee",value:"TN"},{label:"Texas",value:"TX"},{label:"Utah",value:"UT"},{label:"Vermont",value:"VT"},{label:"Virginia",value:"VA"},{label:"Washington",value:"WA"},{label:"West Virginia",value:"WV"},{label:"Wisconsin",value:"WI"},{label:"Wyoming",value:"WY"}],IT:[{label:"Agrigento",value:"AG"},{label:"Alessandria",value:"AL"},{label:"Ancona",value:"AN"},{label:"Aosta",value:"AO"},{label:"Arezzo",value:"AR"},{label:"Ascoli Piceno",value:"AP"},{label:"Asti",value:"AT"},{label:"Avellino",value:"AV"},{label:"Bari",value:"BA"},{label:"Barletta-Andria-Trani",value:"BT"},{label:"Belluno",value:"BL"},{label:"Benevento",value:"BN"},{label:"Bergamo",value:"BG"},{label:"Biella",value:"BI"},{label:"Bologna",value:"BO"},{label:"Bolzano",value:"BZ"},{label:"Brescia",value:"BS"},{label:"Brindisi",value:"BR"},{label:"Cagliari",value:"CA"},{label:"Caltanissetta",value:"CL"},{label:"Campobasso",value:"CB"},{label:"Carbonia-Iglesias",value:"CI"},{label:"Caserta",value:"CE"},{label:"Catania",value:"CT"},{label:"Catanzaro",value:"CZ"},{label:"Chieti",value:"CH"},{label:"Como",value:"CO"},{label:"Cosenza",value:"CS"},{label:"Cremona",value:"CR"},{label:"Crotone",value:"KR"},{label:"Cuneo",value:"CN"},{label:"Enna",value:"EN"},{label:"Fermo",value:"FM"},{label:"Ferrara",value:"FE"},{label:"Firenze",value:"FI"},{label:"Foggia",value:"FG"},{label:"Forlì-Cesena",value:"FC"},{label:"Frosinone",value:"FR"},{label:"Genova",value:"GE"},{label:"Gorizia",value:"GO"},{label:"Grosseto",value:"GR"},{label:"Imperia",value:"IM"},{label:"Isernia",value:"IS"},{label:"L'Aquila",value:"AQ"},{label:"La Spezia",value:"SP"},{label:"Latina",value:"LT"},{label:"Lecce",value:"LE"},{label:"Lecco",value:"LC"},{label:"Livorno",value:"LI"},{label:"Lodi",value:"LO"},{label:"Lucca",value:"LU"},{label:"Macerata",value:"MC"},{label:"Mantova",value:"MN"},{label:"Massa e Carrara",value:"MS"},{label:"Matera",value:"MT"},{label:"Medio Campidano",value:"VS"},{label:"Messina",value:"ME"},{label:"Milano",value:"MI"},{label:"Modena",value:"MO"},{label:"Monza e Brianza",value:"MB"},{label:"Napoli",value:"NA"},{label:"Novara",value:"NO"},{label:"Nuoro",value:"NU"},{label:"Ogliastra",value:"OG"},{label:"Olbia-Tempio",value:"OT"},{label:"Oristano",value:"OR"},{label:"Padova",value:"PD"},{label:"Palermo",value:"PA"},{label:"Parma",value:"PR"},{label:"Pavia",value:"PV"},{label:"Perugia",value:"PG"},{label:"Pesaro e Urbino",value:"PU"},{label:"Pescara",value:"PE"},{label:"Piacenza",value:"PC"},{label:"Pisa",value:"PI"},{label:"Pistoia",value:"PT"},{label:"Pordenone",value:"PN"},{label:"Potenza",value:"PZ"},{label:"Prato",value:"PO"},{label:"Ragusa",value:"RG"},{label:"Ravenna",value:"RA"},{label:"Reggio Calabria",value:"RC"},{label:"Reggio Emilia",value:"RE"},{label:"Rieti",value:"RI"},{label:"Rimini",value:"RN"},{label:"Roma",value:"RM"},{label:"Rovigo",value:"RO"},{label:"Salerno",value:"SA"},{label:"Sassari",value:"SS"},{label:"Savona",value:"SV"},{label:"Siena",value:"SI"},{label:"Sondrio",value:"SO"}
11,{label:"Sud Sardegna",value:"SU"},{label:"Siracusa",value:"SR"},{label:"Taranto",value:"TA"},{label:"Teramo",value:"TE"},{label:"Terni",value:"TR"},{label:"Trapani",value:"TP"},{label:"Trento",value:"TN"},{label:"Treviso",value:"TV"},{label:"Trieste",value:"TS"},{label:"Torino",value:"TO"},{label:"Udine",value:"UD"},{label:"Varese",value:"VA"},{label:"Venezia",value:"VE"},{label:"Verbano-Cusio-Ossola",value:"VB"},{label:"Vercelli",value:"VC"},{label:"Verona",value:"VR"},{label:"Vibo Valentia",value:"VV"},{label:"Vicenza",value:"VI"},{label:"Viterbo",value:"VT"}]};e.s(["getCountries",0,function(e){return!(0,t.default)(e)&&e?.every(e=>"value"in e&&"label"in e)?e:[...r]},"getStateOfCountry",0,function({countryCode:e,states:t}){return({...n,...t})[e]??[]}])},42778,(e,t,r)=>{(function(){var n,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",o=1/0,l=0/0,u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",B="[object Array]",h="[object Boolean]",d="[object Date]",p="[object Error]",f="[object Function]",g="[object GeneratorFunction]",C="[object Map]",m="[object Number]",_="[object Object]",y="[object Promise]",E="[object RegExp]",v="[object Set]",w="[object String]",b="[object Symbol]",D="[object WeakMap]",T="[object ArrayBuffer]",I="[object DataView]",S="[object Float32Array]",A="[object Float64Array]",O="[object Int8Array]",R="[object Int16Array]",N="[object Int32Array]",P="[object Uint8Array]",k="[object Uint8ClampedArray]",L="[object Uint16Array]",F="[object Uint32Array]",x=/\b__p \+= '';/g,M=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,V=RegExp(U.source),j=RegExp(H.source),z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(W.source),Z=/^\s+/,X=/\s/,ee=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,et=/\{\n\/\* \[wrapped with (.+)\] \*/,er=/,? & /,en=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ei=/[()=,{}\[\]\/\s]/,es=/\\(\\)?/g,ea=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,eo=/\w*$/,el=/^[-+]0x[0-9a-f]+$/i,eu=/^0b[01]+$/i,ec=/^\[object .+?Constructor\]$/,eB=/^0o[0-7]+$/i,eh=/^(?:0|[1-9]\d*)$/,ed=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 7,522 bytes, line 11
117f]/g,ep=/($^)/,ef=/['\n\r\u2028\u2029\\]/g,eg="\\ud800-\\udfff",eC="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",em="\\u2700-\\u27bf",e_="a-z\\xdf-\\xf6\\xf8-\\xff",ey="A-Z\\xc0-\\xd6\\xd8-\\xde",eE="\\ufe0e\\ufe0f",ev="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ew="['â]",eb="["+ev+"]",eD="["+eC+"]",eT="["+e_+"]",eI="[^"+eg+ev+"\\d+"+em+e_+ey+"]",eS="\\ud83c[\\udffb-\\udfff]",eA="[^"+eg+"]",eO="(?:\\ud83c[\\udde6-\\uddff]){2}",eR="[\\ud800-\\udbff][\\udc00-\\udfff]",eN="["+ey+"]",eP="\\u200d",ek="(?:"+eT+"|"+eI+")",eL="(?:"+eN+"|"+eI+")",eF="(?:"+ew+"(?:d|ll|m|re|s|t|ve))?",ex="(?:"+ew+"(?:D|LL|M|RE|S|T|VE))?",eM="(?:"+eD+"|"+eS+")?",eG="["+eE+"]?",eU="(?:"+eP+"(?:"+[eA,eO,eR].join("|")+")"+eG+eM+")*",eH=eG+eM+eU,eV="(?:"+["["+em+"]",eO,eR].join("|")+")"+eH,ej="(?:"+[eA+eD+"?",eD,eO,eR,"["+eg+"]"].join("|")+")",ez=RegExp(ew,"g"),eJ=RegExp(eD,"g"),eK=RegExp(eS+"(?="+eS+")|"+ej+eH,"g"),eq=RegExp([eN+"?"+eT+"+"+eF+"(?="+[eb,eN,"$"].join("|")+")",eL+"+"+ex+"(?="+[eb,eN+ek,"$"].join("|")+")",eN+"?"+ek+"+"+eF,eN+"+"+ex,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",eV].join("|"),"g"),eY=RegExp("["+eP+eg+eC+eE+"]"),e$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eW=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eQ=-1,eZ={};eZ[S]=eZ[A]=eZ[O]=eZ[R]=eZ[N]=eZ[P]=eZ[k]=eZ[L]=eZ[F]=!0,eZ[c]=eZ[B]=eZ[T]=eZ[h]=eZ[I]=eZ[d]=eZ[p]=eZ[f]=eZ[C]=eZ[m]=eZ[_]=eZ[E]=eZ[v]=eZ[w]=eZ[D]=!1;var eX={};eX[c]=eX[B]=eX[T]=eX[I]=eX[h]=eX[d]=eX[S]=eX[A]=eX[O]=eX[R]=eX[N]=eX[C]=eX[m]=eX[_]=eX[E]=eX[v]=eX[w]=eX[b]=eX[P]=eX[k]=eX[L]=eX[F]=!0,eX[p]=eX[f]=eX[D]=!1;var e0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},e1=parseFloat,e2=parseInt,e3=e.g&&e.g.Object===Object&&e.g,e6="object"==typeof self&&self&&self.Object===Object&&self,e8=e3||e6||Function("return this")(),e4=r&&!r.nodeType&&r,e5=e4&&t&&!t.nodeType&&t,e9=e5&&e5.exports===e4,e7=e9&&e3.process,te=function(){try{var e=e5&&e5.require&&e5.require("util").types;if(e)return e;return e7&&e7.binding&&e7.binding("util")}catch(e){}}(),tt=te&&te.isArrayBuffer,tr=te&&te.isDate,tn=te&&te.isMap,ti=te&&te.isRegExp,ts=te&&te.isSet,ta=te&&te.isTypedArray;function to(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function tl(e,t,r,n){for(var i=-1,s=null==e?0:e.length;++i<s;){var a=e[i];t(n,a,r(a),e)}return n}function tu(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function tc(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function tB(e,t){for(var r=-1,n=null==e?0:e.length,i=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[i++]=a)}return s}function th(e,t){return!!(null==e?0:e.length)&&tv(e,t,0)>-1}function td(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function tp(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function tf(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function tg(e,t,r,n){var i=-1,s=null==e?0:e.length;for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e);return r}function tC(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function tm(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var t_=tT("length");function ty(e,t,r){var n;return r(e,function(e,r,i){if(t(e,r,i))return n=r,!1}),n}function tE(e,t,r,n){for(var i=e.length,s=r+(n?1:-1);n?s--:++s<i;)if(t(e[s],s,e))return s;return -1}function tv(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}(e,t,r):tE(e,tb,r)}function tw(e,t,r,n){for(var i=r-1,s=e.length;++i<s;)if(n(e[i],t))return i;return -1}function tb(e){return e!=e}function tD(e,t){var r=null==e?0:e.length;return r?tA(e,t)/r:l}function tT(e){return function(t){return null==t?n:t[e]}}function tI(e){return function(t){return null==e?n:e[t]}}function tS(e,t,r,n,i){return i(e,function(e,i,s){r=n?(n=!1,e):t(r,e,i,s)}),r}function tA(e,t){for(var r,i=-1,s=e.length;++i<s;){var a=t(e[i]);n!==a&&(r=n===r?a:r+a)}return r}function tO(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function tR(e){return e?e.slice(0,tq(e)+1).replace(Z,""):e}function tN(e){return function(t){return e(t)}}function tP(e,t){return tp(t,function(t){return e[t]})}function tk(e,t){return e.has(t)}function tL(e,t){for(var r=-1,n=e.length;++r<n&&tv(t,e[r],0)>-1;);return r}function tF(e,t){for(var r=e.length;r--&&tv(t,e[r],0)>-1;);return r}var tx=tI({Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"}),tM=tI({"&":"&","<":"<",">":">",'"':""","'":"'"});function tG(e){return"\\"+e0[e]}function tU(e){return eY.test(e)}function tH(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function tV(e,t){return function(r){return e(t(r))}}function tj(e,t){for(var r=-1,n=e.length,i=0,s=[];++r<n;){var o=e[r];(o===t||o===a)&&(e[r]=a,s[i++]=r)}return s}function tz(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function tJ(e){return tU(e)?function(e){for(var t=eK.lastIndex=0;eK.test(e);)++t;return t}(e):t_(e)}function tK(e){return tU(e)?e.match(eK)||[]:e.split("")}function tq(e){for(var t=e.length;t--&&X.test(e.charAt(t)););return t}var tY=tI({"&":"&","<":"<",">":">",""":'"',"'":"'"}),t$=function e(t){var r,X,eg,eC,em=(t=null==t?e8:t$.defaults(e8.Object(),t,t$.pick(e8,eW))).Array,e_=t.Date,ey=t.Error,eE=t.Function,ev=t.Math,ew=t.Object,eb=t.RegExp,eD=t.String,eT=t.TypeError,eI=em.prototype,eS=eE.prototype,eA=ew.prototype,eO=t["__core-js_shared__"],eR=eS.toString,eN=eA.hasOwnProperty,eP=0,ek=(r=/[^.]+$/.exec(eO&&eO.ke
11ys&&eO.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",eL=eA.toString,eF=eR.call(ew),ex=e8._,eM=eb("^"+eR.call(eN).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eG=e9?t.Buffer:n,eU=t.Symbol,eH=t.Uint8Array,eV=eG?eG.allocUnsafe:n,ej=tV(ew.getPrototypeOf,ew),eK=ew.create,eY=eA.propertyIsEnumerable,e0=eI.splice,e3=eU?eU.isConcatSpreadable:n,e6=eU?eU.iterator:n,e4=eU?eU.toStringTag:n,e5=function(){try{var e=id(ew,"defineProperty");return e({},"",{}),e}catch(e){}}(),e7=t.clearTimeout!==e8.clearTimeout&&t.clearTimeout,te=e_&&e_.now!==e8.Date.now&&e_.now,t_=t.setTimeout!==e8.setTimeout&&t.setTimeout,tI=ev.ceil,tW=ev.floor,tQ=ew.getOwnPropertySymbols,tZ=eG?eG.isBuffer:n,tX=t.isFinite,t0=eI.join,t1=tV(ew.keys,ew),t2=ev.max,t3=ev.min,t6=e_.now,t8=t.parseInt,t4=ev.random,t5=eI.reverse,t9=id(t,"DataView"),t7=id(t,"Map"),re=id(t,"Promise"),rt=id(t,"Set"),rr=id(t,"WeakMap"),rn=id(ew,"create"),ri=rr&&new rr,rs={},ra=iG(t9),ro=iG(t7),rl=iG(re),ru=iG(rt),rc=iG(rr),rB=eU?eU.prototype:n,rh=rB?rB.valueOf:n,rd=rB?rB.toString:n;function rp(e){if(sY(e)&&!sx(e)&&!(e instanceof rm)){if(e instanceof rC)return e;if(eN.call(e,"__wrapped__"))return iU(e)}return new rC(e)}var rf=function(){function e(){}return function(t){if(!sq(t))return{};if(eK)return eK(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function rg(){}function rC(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function rm(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function r_(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ry(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function rE(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function rv(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new rE;++t<r;)this.add(e[t])}function rw(e){var t=this.__data__=new ry(e);this.size=t.size}function rb(e,t){var r=sx(e),n=!r&&sF(e),i=!r&&!n&&sH(e),s=!r&&!n&&!i&&s2(e),a=r||n||i||s,o=a?tO(e.length,eD):[],l=o.length;for(var u in e)(t||eN.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||iE(u,l)))&&o.push(u);return o}function rD(e){var t=e.length;return t?e[nu(0,t-1)]:n}rp.templateSettings={escape:z,evaluate:J,interpolate:K,variable:"",imports:{_:rp}},rp.prototype=rg.prototype,rp.prototype.constructor=rp,rC.prototype=rf(rg.prototype),rC.prototype.constructor=rC,rm.prototype=rf(rg.prototype),rm.prototype.constructor=rm,r_.prototype.clear=function(){this.__data__=rn?rn(null):{},this.size=0},r_.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},r_.prototype.get=function(e){var t=this.__data__;if(rn){var r=t[e];return r===s?n:r}return eN.call(t,e)?t[e]:n},r_.prototype.has=function(e){var t=this.__data__;return rn?t[e]!==n:eN.call(t,e)},r_.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=rn&&n===t?s:t,this},ry.prototype.clear=function(){this.__data__=[],this.size=0},ry.prototype.delete=function(e){var t=this.__data__,r=rS(t,e);return!(r<0)&&(r==t.length-1?t.pop():e0.call(t,r,1),--this.size,!0)},ry.prototype.get=function(e){var t=this.__data__,r=rS(t,e);return r<0?n:t[r][1]},ry.prototype.has=function(e){return rS(this.__data__,e)>-1},ry.prototype.set=function(e,t){var r=this.__data__,n=rS(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},rE.prototype.clear=function(){this.size=0,this.__data__={hash:new r_,map:new(t7||ry),string:new r_}},rE.prototype.delete=function(e){var t=iB(this,e).delete(e);return this.size-=!!t,t},rE.prototype.get=function(e){return iB(this,e).get(e)},rE.prototype.has=function(e){return iB(this,e).has(e)},rE.prototype.set=function(e,t){var r=iB(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},rv.prototype.add=rv.prototype.push=function(e){return this.__data__.set(e,s),this},rv.prototype.has=function(e){return this.__data__.has(e)};function rT(e,t,r){(n===r||sP(e[t],r))&&(n!==r||t in e)||rR(e,t,r)}function rI(e,t,r){var i=e[t];eN.call(e,t)&&sP(i,r)&&(n!==r||t in e)||rR(e,t,r)}function rS(e,t){for(var r=e.length;r--;)if(sP(e[r][0],t))return r;return -1}function rA(e,t,r,n){return rM(e,function(e,i,s){t(n,e,r(e),s)}),n}function rO(e,t){return e&&nH(t,ap(t),e)}function rR(e,t,r){"__proto__"==t&&e5?e5(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function rN(e,t){for(var r=-1,i=t.length,s=em(i),a=null==e;++r<i;)s[r]=a?n:au(e,t[r]);return s}function rP(e,t,r){return e==e&&(n!==r&&(e=e<=r?e:r),n!==t&&(e=e>=t?e:t)),e}function rk(e,t,r,i,s,a){var o,l=1&t,u=2&t,B=4&t;if(r&&(o=s?r(e,i,s,a):r(e)),n!==o)return o;if(!sq(e))return e;var p=sx(e);if(p){if(D=(y=e).length,x=new y.constructor(D),D&&"string"==typeof y[0]&&eN.call(y,"index")&&(x.index=y.index,x.input=y.input),o=x,!l)return nU(e,o)}else{var y,D,x,M,G,U,H,V,j=iC(e),z=j==f||j==g;if(sH(e))return nk(e,l);if(j==_||j==c||z&&!s){if(o=u||z?{}
11:i_(e),!l){return u?(M=e,G=(V=o)&&nH(e,af(e),V),nH(M,ig(M),G)):(U=e,H=rO(o,e),nH(U,ip(U),H))}}else{if(!eX[j])return s?e:{};o=function(e,t,r){var n,i,s=e.constructor;switch(t){case T:return nL(e);case h:case d:return new s(+e);case I:return n=r?nL(e.buffer):e.buffer,new e.constructor(n,e.byteOffset,e.byteLength);case S:case A:case O:case R:case N:case P:case k:case L:case F:return nF(e,r);case C:return new s;case m:case w:return new s(e);case E:return(i=new e.constructor(e.source,eo.exec(e))).lastIndex=e.lastIndex,i;case v:return new s;case b:return rh?ew(rh.call(e)):{}}}(e,j,l)}}a||(a=new rw);var J=a.get(e);if(J)return J;a.set(e,o),sX(e)?e.forEach(function(n){o.add(rk(n,t,r,n,e,a))}):s$(e)&&e.forEach(function(n,i){o.set(i,rk(n,t,r,i,e,a))});var K=B?u?ia:is:u?af:ap,q=p?n:K(e);return tu(q||e,function(n,i){q&&(n=e[i=n]),rI(o,i,rk(n,t,r,i,e,a))}),o}function rL(e,t,r){var i=r.length;if(null==e)return!i;for(e=ew(e);i--;){var s=r[i],a=t[s],o=e[s];if(n===o&&!(s in e)||!a(o))return!1}return!0}function rF(e,t,r){if("function"!=typeof e)throw new eT(i);return iN(function(){e.apply(n,r)},t)}function rx(e,t,r,n){var i=-1,s=th,a=!0,o=e.length,l=[],u=t.length;if(!o)return l;r&&(t=tp(t,tN(r))),n?(s=td,a=!1):t.length>=200&&(s=tk,a=!1,t=new rv(t));e:for(;++i<o;){var c=e[i],B=null==r?c:r(c);if(c=n||0!==c?c:0,a&&B==B){for(var h=u;h--;)if(t[h]===B)continue e;l.push(c)}else s(t,B,n)||l.push(c)}return l}rw.prototype.clear=function(){this.__data__=new ry,this.size=0},rw.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},rw.prototype.get=function(e){return this.__data__.get(e)},rw.prototype.has=function(e){return this.__data__.has(e)},rw.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ry){var n=r.__data__;if(!t7||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new rE(n)}return r.set(e,t),this.size=r.size,this};var rM=nz(rK),rG=nz(rq,!0);function rU(e,t){var r=!0;return rM(e,function(e,n,i){return r=!!t(e,n,i)}),r}function rH(e,t,r){for(var i=-1,s=e.length;++i<s;){var a=e[i],o=t(a);if(null!=o&&(n===l?o==o&&!s1(o):r(o,l)))var l=o,u=a}return u}function rV(e,t){var r=[];return rM(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function rj(e,t,r,n,i){var s=-1,a=e.length;for(r||(r=iy),i||(i=[]);++s<a;){var o=e[s];t>0&&r(o)?t>1?rj(o,t-1,r,n,i):tf(i,o):n||(i[i.length]=o)}return i}var rz=nJ(),rJ=nJ(!0);function rK(e,t){return e&&rz(e,t,ap)}function rq(e,t){return e&&rJ(e,t,ap)}function rY(e,t){return tB(t,function(t){return sz(e[t])})}function r$(e,t){t=nR(t,e);for(var r=0,i=t.length;null!=e&&r<i;)e=e[iM(t[r++])];return r&&r==i?e:n}function rW(e,t,r){var n=t(e);return sx(e)?n:tf(n,r(e))}function rQ(e){var t;return null==e?n===e?"[object Undefined]":"[object Null]":e4&&e4 in ew(e)?function(e){var t=eN.call(e,e4),r=e[e4];try{e[e4]=n;var i=!0}catch(e){}var s=eL.call(e);return i&&(t?e[e4]=r:delete e[e4]),s}(e):(t=e,eL.call(t))}function rZ(e,t){return e>t}function rX(e,t){return null!=e&&eN.call(e,t)}function r0(e,t){return null!=e&&t in ew(e)}function r1(e,t,r){for(var i=r?td:th,s=e[0].length,a=e.length,o=a,l=em(a),u=1/0,c=[];o--;){var B=e[o];o&&t&&(B=tp(B,tN(t))),u=t3(B.length,u),l[o]=!r&&(t||s>=120&&B.length>=120)?new rv(o&&B):n}B=e[0];var h=-1,d=l[0];e:for(;++h<s&&c.length<u;){var p=B[h],f=t?t(p):p;if(p=r||0!==p?p:0,!(d?tk(d,f):i(c,f,r))){for(o=a;--o;){var g=l[o];if(!(g?tk(g,f):i(e[o],f,r)))continue e}d&&d.push(f),c.push(p)}}return c}function r2(e,t,r){t=nR(t,e);var i=null==(e=iA(e,t))?e:e[iM(iQ(t))];return null==i?n:to(i,e,r)}function r3(e){return sY(e)&&rQ(e)==c}function r6(e,t,r,i,s){return e===t||(null!=e&&null!=t&&(sY(e)||sY(t))?function(e,t,r,i,s,a){var o=sx(e),l=sx(t),u=o?B:iC(e),f=l?B:iC(t);u=u==c?_:u,f=f==c?_:f;var g=u==_,y=f==_,D=u==f;if(D&&sH(e)){if(!sH(t))return!1;o=!0,g=!1}if(D&&!g)return a||(a=new rw),o||s2(e)?ir(e,t,r,i,s,a):function(e,t,r,n,i,s,a){switch(r){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case T:if(e.byteLength!=t.byteLength||!s(new eH(e),new eH(t)))break;return!0;case h:case d:case m:return sP(+e,+t);case p:return e.name==t.name&&e.message==t.message;case E:case w:return e==t+"";case C:var o=tH;case v:var l=1&n;if(o||(o=tz),e.size!=t.size&&!l)break;var u=a.get(e);if(u)return u==t;n|=2,a.set(e,t);var c=ir(o(e),o(t),n,i,s,a);return a.delete(e),c;case b:if(rh)return rh.call(e)==rh.call(t)}return!1}(e,t,u,r,i,s,a);if(!(1&r)){var S=g&&eN.call(e,"__wrapped__"),A=y&&eN.call(t,"__wrapped__");
11if(S||A){var O=S?e.value():e,R=A?t.value():t;return a||(a=new rw),s(O,R,r,i,a)}}return!!D&&(a||(a=new rw),function(e,t,r,i,s,a){var o=1&r,l=is(e),u=l.length;if(u!=is(t).length&&!o)return!1;for(var c=u;c--;){var B=l[c];if(!(o?B in t:eN.call(t,B)))return!1}var h=a.get(e),d=a.get(t);if(h&&d)return h==t&&d==e;var p=!0;a.set(e,t),a.set(t,e);for(var f=o;++c<u;){var g=e[B=l[c]],C=t[B];if(i)var m=o?i(C,g,B,t,e,a):i(g,C,B,e,t,a);if(!(n===m?g===C||s(g,C,r,i,a):m)){p=!1;break}f||(f="constructor"==B)}if(p&&!f){var _=e.constructor,y=t.constructor;_!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof y&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}(e,t,r,i,s,a))}(e,t,r,i,r6,s):e!=e&&t!=t)}function r8(e,t,r,i){var s=r.length,a=s,o=!i;if(null==e)return!a;for(e=ew(e);s--;){var l=r[s];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++s<a;){var u=(l=r[s])[0],c=e[u],B=l[1];if(o&&l[2]){if(n===c&&!(u in e))return!1}else{var h=new rw;if(i)var d=i(c,B,u,e,t,h);if(!(n===d?r6(B,c,3,i,h):d))return!1}}return!0}function r4(e){var t;return!(!sq(e)||(t=e,ek&&ek in t))&&(sz(e)?eM:ec).test(iG(e))}function r5(e){return"function"==typeof e?e:null==e?aU:"object"==typeof e?sx(e)?nr(e[0],e[1]):nt(e):a$(e)}function r9(e){if(!iT(e))return t1(e);var t=[];for(var r in ew(e))eN.call(e,r)&&"constructor"!=r&&t.push(r);return t}function r7(e,t){return e<t}function ne(e,t){var r=-1,n=sG(e)?em(e.length):[];return rM(e,function(e,i,s){n[++r]=t(e,i,s)}),n}function nt(e){var t=ih(e);return 1==t.length&&t[0][2]?iI(t[0][0],t[0][1]):function(r){return r===e||r8(r,e,t)}}function nr(e,t){var r;return iw(e)&&(r=t)==r&&!sq(r)?iI(iM(e),t):function(r){var i=au(r,e);return n===i&&i===t?ac(r,e):r6(t,i,3)}}function nn(e,t,r,i,s){e!==t&&rz(t,function(a,o){if(s||(s=new rw),sq(a))!function(e,t,r,i,s,a,o){var l=iO(e,r),u=iO(t,r),c=o.get(u);if(c)return rT(e,r,c);var B=a?a(l,u,r+"",e,t,o):n,h=n===B;if(h){var d=sx(u),p=!d&&sH(u),f=!d&&!p&&s2(u);B=u,d||p||f?sx(l)?B=l:sU(l)?B=nU(l):p?(h=!1,B=nk(u,!0)):f?(h=!1,B=nF(u,!0)):B=[]:sQ(u)||sF(u)?(B=l,sF(l)?B=ae(l):(!sq(l)||sz(l))&&(B=i_(u))):h=!1}h&&(o.set(u,B),s(B,u,i,a,o),o.delete(u)),rT(e,r,B)}(e,t,o,r,nn,i,s);else{var l=i?i(iO(e,o),a,o+"",e,t,s):n;n===l&&(l=a),rT(e,o,l)}},af)}function ni(e,t){var r=e.length;if(r)return iE(t+=t<0?r:0,r)?e[t]:n}function ns(e,t,r){t=t.length?tp(t,function(e){return sx(e)?function(t){return r$(t,1===e.length?e[0]:e)}:e}):[aU];var n=-1;t=tp(t,tN(ic()));var i=ne(e,function(e,r,i){return{criteria:tp(t,function(t){return t(e)}),index:++n,value:e}}),s=i.length;for(i.sort(function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,s=t.criteria,a=i.length,o=r.length;++n<a;){var l=nx(i[n],s[n]);if(l){if(n>=o)return l;return l*("desc"==r[n]?-1:1)}}return e.index-t.index}(e,t,r)});s--;)i[s]=i[s].value;return i}function na(e,t,r){for(var n=-1,i=t.length,s={};++n<i;){var a=t[n],o=r$(e,a);r(o,a)&&nh(s,nR(a,e),o)}return s}function no(e,t,r,n){var i=n?tw:tv,s=-1,a=t.length,o=e;for(e===t&&(t=nU(t)),r&&(o=tp(e,tN(r)));++s<a;)for(var l=0,u=t[s],c=r?r(u):u;(l=i(o,c,l,n))>-1;)o!==e&&e0.call(o,l,1),e0.call(e,l,1);return e}function nl(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==s){var s=i;iE(i)?e0.call(e,i,1):nw(e,i)}}return e}function nu(e,t){return e+tW(t4()*(t-e+1))}function nc(e,t){var r="";if(!e||t<1||t>0x1fffffffffffff)return r;do t%2&&(r+=e),(t=tW(t/2))&&(e+=e);while(t)return r}function nB(e,t){return iP(iS(e,t,aU),e+"")}function nh(e,t,r,i){if(!sq(e))return e;t=nR(t,e);for(var s=-1,a=t.length,o=a-1,l=e;null!=l&&++s<a;){var u=iM(t[s]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)break;if(s!=o){var B=l[u];c=i?i(B,u,l):n,n===c&&(c=sq(B)?B:iE(t[s+1])?[]:{})}rI(l,u,c),l=l[u]}return e}var nd=ri?function(e,t){return ri.set(e,t),e}:aU,np=e5?function(e,t){return e5(e,"toString",{configurable:!0,enumerable:!1,value:ax(t),writable:!0})}:aU;function nf(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=em(i);++n<i;)s[n]=e[n+t];return s}function ng(e,t){var r;return rM(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function nC(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=0x7fffffff){for(;n<i;){var s=n+i>>>1,a=e[s];null!==a&&!s1(a)&&(r?a<=t:a<t)?n=s+1:i=s}return i}return nm(e,t,aU,r)}
vendor: 5,042 bytes, line 11
11function nm(e,t,r,i){var s=0,a=null==e?0:e.length;if(0===a)return 0;for(var o=(t=r(t))!=t,l=null===t,u=s1(t),c=n===t;s<a;){var B=tW((s+a)/2),h=r(e[B]),d=n!==h,p=null===h,f=h==h,g=s1(h);if(o)var C=i||f;else C=c?f&&(i||d):l?f&&d&&(i||!p):u?f&&d&&!p&&(i||!g):!p&&!g&&(i?h<=t:h<t);C?s=B+1:a=B}return t3(a,0xfffffffe)}function n_(e,t){for(var r=-1,n=e.length,i=0,s=[];++r<n;){var a=e[r],o=t?t(a):a;if(!r||!sP(o,l)){var l=o;s[i++]=0===a?0:a}}return s}function ny(e){return"number"==typeof e?e:s1(e)?l:+e}function nE(e){if("string"==typeof e)return e;if(sx(e))return tp(e,nE)+"";if(s1(e))return rd?rd.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}function nv(e,t,r){var n=-1,i=th,s=e.length,a=!0,o=[],l=o;if(r)a=!1,i=td;else if(s>=200){var u=t?null:n4(e);if(u)return tz(u);a=!1,i=tk,l=new rv}else l=t?[]:o;e:for(;++n<s;){var c=e[n],B=t?t(c):c;if(c=r||0!==c?c:0,a&&B==B){for(var h=l.length;h--;)if(l[h]===B)continue e;t&&l.push(B),o.push(c)}else i(l,B,r)||(l!==o&&l.push(B),o.push(c))}return o}function nw(e,t){t=nR(t,e);var r=-1,n=t.length;if(!n)return!0;for(;++r<n;){var i=iM(t[r]);if("__proto__"===i&&!eN.call(e,"__proto__")||("constructor"===i||"prototype"===i)&&r<n-1)return!1}var s=iA(e,t);return null==s||delete s[iM(iQ(t))]}function nb(e,t,r,n){return nh(e,t,r(r$(e,t)),n)}function nD(e,t,r,n){for(var i=e.length,s=n?i:-1;(n?s--:++s<i)&&t(e[s],s,e););return r?nf(e,n?0:s,n?s+1:i):nf(e,n?s+1:0,n?i:s)}function nT(e,t){var r=e;return r instanceof rm&&(r=r.value()),tg(t,function(e,t){return t.func.apply(t.thisArg,tf([e],t.args))},r)}function nI(e,t,r){var n=e.length;if(n<2)return n?nv(e[0]):[];for(var i=-1,s=em(n);++i<n;)for(var a=e[i],o=-1;++o<n;)o!=i&&(s[i]=rx(s[i]||a,e[o],t,r));return nv(rj(s,1),t,r)}function nS(e,t,r){for(var i=-1,s=e.length,a=t.length,o={};++i<s;){var l=i<a?t[i]:n;r(o,e[i],l)}return o}function nA(e){return sU(e)?e:[]}function nO(e){return"function"==typeof e?e:aU}function nR(e,t){return sx(e)?e:iw(e,t)?[e]:ix(at(e))}function nN(e,t,r){var i=e.length;return r=n===r?i:r,!t&&r>=i?e:nf(e,t,r)}var nP=e7||function(e){return e8.clearTimeout(e)};function nk(e,t){if(t)return e.slice();var r=e.length,n=eV?eV(r):new e.constructor(r);return e.copy(n),n}function nL(e){var t=new e.constructor(e.byteLength);return new eH(t).set(new eH(e)),t}function nF(e,t){var r=t?nL(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function nx(e,t){if(e!==t){var r=n!==e,i=null===e,s=e==e,a=s1(e),o=n!==t,l=null===t,u=t==t,c=s1(t);if(!l&&!c&&!a&&e>t||a&&o&&u&&!l&&!c||i&&o&&u||!r&&u||!s)return 1;if(!i&&!a&&!c&&e<t||c&&r&&s&&!i&&!a||l&&r&&s||!o&&s||!u)return -1}return 0}function nM(e,t,r,n){for(var i=-1,s=e.length,a=r.length,o=-1,l=t.length,u=t2(s-a,0),c=em(l+u),B=!n;++o<l;)c[o]=t[o];for(;++i<a;)(B||i<s)&&(c[r[i]]=e[i]);for(;u--;)c[o++]=e[i++];return c}function nG(e,t,r,n){for(var i=-1,s=e.length,a=-1,o=r.length,l=-1,u=t.length,c=t2(s-o,0),B=em(c+u),h=!n;++i<c;)B[i]=e[i];for(var d=i;++l<u;)B[d+l]=t[l];for(;++a<o;)(h||i<s)&&(B[d+r[a]]=e[i++]);return B}function nU(e,t){var r=-1,n=e.length;for(t||(t=em(n));++r<n;)t[r]=e[r];return t}function nH(e,t,r,i){var s=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var l=t[a],u=i?i(r[l],e[l],l,r,e):n;n===u&&(u=e[l]),s?rR(r,l,u):rI(r,l,u)}return r}function nV(e,t){return function(r,n){var i=sx(r)?tl:rA,s=t?t():{};return i(r,e,ic(n,2),s)}}function nj(e){return nB(function(t,r){var i=-1,s=r.length,a=s>1?r[s-1]:n,o=s>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(s--,a):n,o&&iv(r[0],r[1],o)&&(a=s<3?n:a,s=1),t=ew(t);++i<s;){var l=r[i];l&&e(t,l,i,a)}return t})}function nz(e,t){return function(r,n){if(null==r)return r;if(!sG(r))return e(r,n);for(var i=r.length,s=t?i:-1,a=ew(r);(t?s--:++s<i)&&!1!==n(a[s],s,a););return r}}function nJ(e){return function(t,r,n){for(var i=-1,s=ew(t),a=n(t),o=a.length;o--;){var l=a[e?o:++i];if(!1===r(s[l],l,s))break}return t}}function nK(e){return function(t){var r=tU(t=at(t))?tK(t):n,i=r?r[0]:t.charAt(0),s=r?nN(r,1).join(""):t.slice(1);return i[e]()+s}}function nq(e){return function(t){return tg(ak(aT(t).replace(ez,"")),e,"")}}function nY(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=rf(e.prototype),n=e.apply(r,t);return sq(n)?n:r}}function n$(e){return function(t,r,i){var s=ew(t);if(!sG(t)){var a=ic(r,3);t=ap(t),r=function(e){return a(s[e],e,s)}}var o=e(t,r,i);return o>-1?s[a?t[o]:o]:n}}function nW(e){return ii(function(t){var r=t.length,s=r,a=rC.prototype.thru;for(e&&t.reverse();s--;){var o=t[s];if("function"!=typeof o)throw new eT(i);if(a&&!l&&"wrapper"==il(o))var l=new rC([],!0)}for(s=l?s:r;++s<r;){var u=il(o=t[s]),c="wrapper"==u?io(o):n;l=c&&ib(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[il(c[0])].apply(l,c[3]):1==o.length&&ib(o)?l[u]():l.thru(o)}return function(){var e=arguments,n=e[0];
11if(l&&1==e.length&&sx(n))return l.plant(n).value();for(var i=0,s=r?t[i].apply(this,e):n;++i<r;)s=t[i].call(this,s);return s}})}function nQ(e,t,r,i,s,a,o,l,u,c){var B=128&t,h=1&t,d=2&t,p=24&t,f=512&t,g=d?n:nY(e);function C(){for(var m=arguments.length,_=em(m),y=m;y--;)_[y]=arguments[y];if(p)var E=iu(C),v=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(_,E);if(i&&(_=nM(_,i,s,p)),a&&(_=nG(_,a,o,p)),m-=v,p&&m<c){var w=tj(_,E);return n6(e,t,nQ,C.placeholder,r,_,w,l,u,c-m)}var b=h?r:this,D=d?b[e]:e;return m=_.length,l?_=function(e,t){for(var r=e.length,i=t3(t.length,r),s=nU(e);i--;){var a=t[i];e[i]=iE(a,r)?s[a]:n}return e}(_,l):f&&m>1&&_.reverse(),B&&u<m&&(_.length=u),this&&this!==e8&&this instanceof C&&(D=g||nY(D)),D.apply(b,_)}return C}function nZ(e,t){return function(r,n){var i,s;return i=t(n),s={},rK(r,function(t,r,n){e(s,i(t),r,n)}),s}}function nX(e,t){return function(r,i){var s;if(n===r&&n===i)return t;if(n!==r&&(s=r),n!==i){if(n===s)return i;"string"==typeof r||"string"==typeof i?(r=nE(r),i=nE(i)):(r=ny(r),i=ny(i)),s=e(r,i)}return s}}function n0(e){return ii(function(t){return t=tp(t,tN(ic())),nB(function(r){var n=this;return e(t,function(e){return to(e,n,r)})})})}function n1(e,t){var r=(t=n===t?" ":nE(t)).length;if(r<2)return r?nc(t,e):t;var i=nc(t,tI(e/tJ(t)));return tU(t)?nN(tK(i),0,e).join(""):i.slice(0,e)}function n2(e){return function(t,r,i){i&&"number"!=typeof i&&iv(t,r,i)&&(r=i=n),t=s4(t),n===r?(r=t,t=0):r=s4(r),i=n===i?t<r?1:-1:s4(i);for(var s=t,a=r,o=i,l=-1,u=t2(tI((a-s)/(o||1)),0),c=em(u);u--;)c[e?u:++l]=s,s+=o;return c}}function n3(e){return function(t,r){return("string"!=typeof t||"string"!=typeof r)&&(t=s7(t),r=s7(r)),e(t,r)}}function n6(e,t,r,i,s,a,o,l,u,c){var B=8&t,h=B?o:n,d=B?n:o,p=B?a:n,f=B?n:a;t|=B?32:64,4&(t&=~(B?64:32))||(t&=-4);var g=[e,t,s,p,h,f,d,l,u,c],C=r.apply(n,g);return ib(e)&&iR(C,g),C.placeholder=i,ik(C,e,t)}function n8(e){var t=ev[e];return function(e,r){if(e=s7(e),(r=null==r?0:t3(s5(r),292))&&tX(e)){var n=(at(e)+"e").split("e");return+((n=(at(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(n[1]-r))}return t(e)}}var n4=rt&&1/tz(new rt([,-0]))[1]==o?function(e){return new rt(e)}:aJ;function n5(e){return function(t){var r,n,i=iC(t);return i==C?tH(t):i==v?(r=-1,n=Array(t.size),t.forEach(function(e){n[++r]=[e,e]}),n):tp(e(t),function(e){return[e,t[e]]})}}function n9(e,t,r,s,o,l,u,c){var B=2&t;if(!B&&"function"!=typeof e)throw new eT(i);var h=s?s.length:0;if(h||(t&=-97,s=o=n),u=n===u?u:t2(s5(u),0),c=n===c?c:s5(c),h-=o?o.length:0,64&t){var d=s,p=o;s=o=n}var f=B?n:io(e),g=[e,t,r,s,o,d,p,l,u,c];if(f&&function(e,t){var r=e[1],n=t[1],i=r|n,s=i<131,o=128==n&&8==r||128==n&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(s||o){1&n&&(e[2]=t[2],i|=1&r?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?nM(u,l,t[4]):l,e[4]=u?tj(e[3],a):t[4]}(l=t[5])&&(u=e[5],e[5]=u?nG(u,l,t[6]):l,e[6]=u?tj(e[5],a):t[6]),(l=t[7])&&(e[7]=l),128&n&&(e[8]=null==e[8]?t[8]:t3(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}}(g,f),e=g[0],t=g[1],r=g[2],s=g[3],o=g[4],(c=g[9]=g[9]===n?B?0:e.length:t2(g[9]-h,0))||!(24&t)||(t&=-25),t&&1!=t)8==t||16==t?S=function(e,t,r){var i=nY(e);function s(){for(var a=arguments.length,o=em(a),l=a,u=iu(s);l--;)o[l]=arguments[l];var c=a<3&&o[0]!==u&&o[a-1]!==u?[]:tj(o,u);return(a-=c.length)<r?n6(e,t,nQ,s.placeholder,n,o,c,n,n,r-a):to(this&&this!==e8&&this instanceof s?i:e,this,o)}return s}(e,t,c):32!=t&&33!=t||o.length?S=nQ.apply(n,g):(C=e,m=t,_=r,y=s,E=1&m,v=nY(C),S=function e(){for(var t=-1,r=arguments.length,n=-1,i=y.length,s=em(i+r),a=this&&this!==e8&&this instanceof e?v:C;++n<i;)s[n]=y[n];for(;r--;)s[n++]=arguments[++t];return to(a,E?_:this,s)});else var C,m,_,y,E,v,w,b,D,T,I,S=(w=e,b=t,D=r,T=1&b,I=nY(w),function e(){return(this&&this!==e8&&this instanceof e?I:w).apply(T?D:this,arguments)});return ik((f?nd:iR)(S,g),e,t)}function n7(e,t,r,i){return n===e||sP(e,eA[r])&&!eN.call(i,r)?t:e}function ie(e,t,r,i,s,a){return sq(e)&&sq(t)&&(a.set(t,e),nn(e,t,n,ie,a),a.delete(t)),e}function it(e){return sQ(e)?n:e}function ir(e,t,r,i,s,a){var o=1&r,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var c=a.get(e),B=a.get(t);if(c&&B)return c==t&&B==e;var h=-1,d=!0,p=2&r?new rv:n;for(a.set(e,t),a.set(t,e);++h<l;){var f=e[h],g=t[h];if(i)var C=o?i(g,f,h,t,e,a):i(f,g,h,e,t,a);if(n!==C){if(C)continue;d=!1;break}
11if(p){if(!tm(t,function(e,t){if(!tk(p,t)&&(f===e||s(f,e,r,i,a)))return p.push(t)})){d=!1;break}}else if(!(f===g||s(f,g,r,i,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function ii(e){return iP(iS(e,n,iK),e+"")}function is(e){return rW(e,ap,ip)}function ia(e){return rW(e,af,ig)}var io=ri?function(e){return ri.get(e)}:aJ;function il(e){for(var t=e.name+"",r=rs[t],n=eN.call(rs,t)?r.length:0;n--;){var i=r[n],s=i.func;if(null==s||s==e)return i.name}return t}function iu(e){return(eN.call(rp,"placeholder")?rp:e).placeholder}function ic(){var e=rp.iteratee||aH;return e=e===aH?r5:e,arguments.length?e(arguments[0],arguments[1]):e}function iB(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function ih(e){for(var t=ap(e),r=t.length;r--;){var n,i=t[r],s=e[i];t[r]=[i,s,(n=s)==n&&!sq(n)]}return t}function id(e,t){var r=null==e?n:e[t];return r4(r)?r:n}var ip=tQ?function(e){return null==e?[]:tB(tQ(e=ew(e)),function(t){return eY.call(e,t)})}:aZ,ig=tQ?function(e){for(var t=[];e;)tf(t,ip(e)),e=ej(e);return t}:aZ,iC=rQ;function im(e,t,r){t=nR(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var a=iM(t[n]);if(!(s=null!=e&&r(e,a)))break;e=e[a]}return s||++n!=i?s:!!(i=null==e?0:e.length)&&sK(i)&&iE(a,i)&&(sx(e)||sF(e))}function i_(e){return"function"!=typeof e.constructor||iT(e)?{}:rf(ej(e))}function iy(e){return sx(e)||sF(e)||!!(e3&&e&&e[e3])}function iE(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&eh.test(e))&&e>-1&&e%1==0&&e<t}function iv(e,t,r){if(!sq(r))return!1;var n=typeof t;return("number"==n?!!(sG(r)&&iE(t,r.length)):"string"==n&&t in r)&&sP(r[t],e)}function iw(e,t){if(sx(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||s1(e))||Y.test(e)||!q.test(e)||null!=t&&e in ew(t)}function ib(e){var t=il(e),r=rp[t];if("function"!=typeof r||!(t in rm.prototype))return!1;if(e===r)return!0;var n=io(r);return!!n&&e===n[0]}(t9&&iC(new t9(new ArrayBuffer(1)))!=I||t7&&iC(new t7)!=C||re&&iC(re.resolve())!=y||rt&&iC(new rt)!=v||rr&&iC(new rr)!=D)&&(iC=function(e){var t=rQ(e),r=t==_?e.constructor:n,i=r?iG(r):"";if(i)switch(i){case ra:return I;case ro:return C;case rl:return y;case ru:return v;case rc:return D}return t});var iD=eO?sz:aX;function iT(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eA)}function iI(e,t){return function(r){return null!=r&&r[e]===t&&(n!==t||e in ew(r))}}function iS(e,t,r){return t=t2(n===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=t2(n.length-t,0),a=em(s);++i<s;)a[i]=n[t+i];i=-1;for(var o=em(t+1);++i<t;)o[i]=n[i];return o[t]=r(a),to(e,this,o)}}function iA(e,t){return t.length<2?e:r$(e,nf(t,0,-1))}function iO(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var iR=iL(nd),iN=t_||function(e,t){return e8.setTimeout(e,t)},iP=iL(np);function ik(e,t,r){var n,i,s,a=t+"";return iP(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ee,"{\n/* [wrapped with "+t+"] */\n")}(a,(n=(s=a.match(et))?s[1].split(er):[],i=r,tu(u,function(e){var t="_."+e[0];i&e[1]&&!th(n,t)&&n.push(t)}),n.sort())))}function iL(e){var t=0,r=0;return function(){var i=t6(),s=16-(i-r);if(r=i,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function iF(e,t){var r=-1,i=e.length,s=i-1;for(t=n===t?i:t;++r<t;){var a=nu(r,s),o=e[a];e[a]=e[r],e[r]=o}return e.length=t,e}var ix=(eg=(X=sI(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace($,function(e,r,n,i){t.push(n?i.replace(es,"$1"):r||e)}),t},function(e){return 500===eg.size&&eg.clear(),e})).cache,X);function iM(e){if("string"==typeof e||s1(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}function iG(e){if(null!=e){try{return eR.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function iU(e){if(e instanceof rm)return e.clone();var t=new rC(e.__wrapped__,e.__chain__);return t.__actions__=nU(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var iH=nB(function(e,t){return sU(e)?rx(e,rj(t,1,sU,!0)):[]}),iV=nB(function(e,t){var r=iQ(t);return sU(r)&&(r=n),sU(e)?rx(e,rj(t,1,sU,!0),ic(r,2)):[]}),ij=nB(function(e,t){var r=iQ(t);return sU(r)&&(r=n),sU(e)?rx(e,rj(t,1,sU,!0),n,r):[]});function iz(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:s5(r);return i<0&&(i=t2(n+i,0)),tE(e,ic(t,3),i)}function iJ(e,t,r){var i=null==e?0:e.length;if(!i)return -1;var s=i-1;return n!==r&&(s=s5(r),s=r<0?t2(i+s,0):t3(s,i-1)),tE(e,ic(t,3),s,!0)}function iK(e){return(null==e?0:e.length)?rj(e,1):[]}function iq(e){return e&&e.length?e[0]:n}var iY=nB(function(e){var t=tp(e,nA);return t.length&&t[0]===e[0]?r1(t):[]}),i$=nB(function(e){var t=iQ(e),r=tp(e,nA);return t===iQ(r)?t=n:r.pop(),r.length&&r[0]===e[0]?r1(r,ic(t,2)):[]}),iW=nB(function(e){var t=iQ(e),r=tp(e,nA);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?r1(r,n,t):[]});function iQ(e){var t=null==e?0:e.length;return t?e[t-1]:n}var iZ=nB(iX);function iX(e,t){return e&&e.length&&t&&t.length?no(e,t):e}var i0=ii(function(e,t){var r=null==e?0:e.length,n=rN(e,t);return nl(e,tp(t,function(e){return iE(e,r)?+e:e}).sort(nx)),n});function i1(e){return null==e?e:t5.call(e)}var i2=nB(function(e){return nv(rj(e,1,sU,!0))}),i3=nB(function(e){var t=iQ(e);return sU(t)&&(t=n),nv(rj(e,1,sU,!0),ic(t,2))}),i6=nB(function(e){var t=iQ(e);return t="function"==typeof t?t:n,nv(rj(e,1,sU,!0),n,t)});function i8(e){if(!(e&&e.length))return[];var t=0;return e=tB(e,function(e){if(sU(e))return t=t2(e.length,t),!0}),tO(t,function(t){return tp(e,tT(t))})}function i4(e,t){if(!(e&&e.length))return[];var r=i8(e);return null==t?r:tp(r,function(e){return to(t,n,e)})}var i5=nB(function(e,t){return sU(e)?rx(e,t):[]}),i9=nB(function(e){return nI(tB(e,sU))}),i7=nB(function(e){var t=iQ(e);return sU(t)&&(t=n),nI(tB(e,sU),ic(t,2))}),se=nB(function(e){var t=iQ(e);return t="function"==typeof t?t:n,nI(tB(e,sU),n,t)}),st=nB(i8),sr=nB(function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,i4(e,r)});function sn(e){var t=rp(e);return t.__chain__=!0,t}function si(e,t){return t(e)}var ss=ii(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,s=function(t){return rN(t,e)};return!(t>1)&&!this.__actions__.length&&i instanceof rm&&iE(r)?((i=i.slice(r,+r+ +!!t)).__actions__.push({func:si,args:[s],thisArg:n}),new rC(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e})):this.thru(s)}),sa=nV(function(e,t,r){eN.call(e,r)?++e[r]:rR(e,r,1)}),so=n$(iz),sl=n$(iJ);function su(e,t){return(sx(e)?tu:rM)(e,ic(t,3))}function sc(e,t){return(sx(e)?function(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}:rG)(e,ic(t,3))}var sB=nV(function(e,t,r){eN.call(e,r)?e[r].push(t):rR(e,r,[t])}),sh=nB(function(e,t,r){var n=-1,i="function"==typeof t,s=sG(e)?em(e.length):[];return rM(e,function(e){s[++n]=i?to(t,e,r):r2(e,t,r)}),s}),sd=nV(function(e,t,r){rR(e,r,t)});function sp(e,t){return(sx(e)?tp:ne)(e,ic(t,3))}var sf=nV(function(e,t,r){e[+!r].push(t)},function(){return[[],[]]}),sg=nB(function(e,t){if(null==e)return[];var r=t.length;return r>1&&iv(e,t[0],t[1])?t=[]:r>2&&iv(t[0],t[1],t[2])&&(t=[t[0]]),ns(e,rj(t,1),[])}),sC=te||function(){return e8.Date.now()};function sm(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,n9(e,128,n,n,n,n,t)}function s_(e,t){var r;if("function"!=typeof t)throw new eT(i);return e=s5(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var sy=nB(function(e,t,r){var n=1;if(r.length){var i=tj(r,iu(sy));n|=32}return n9(e,n,t,r,i)}),sE=nB(function(e,t,r){var n=3;if(r.length){var i=tj(r,iu(sE));n|=32}return n9(t,n,e,r,i)});function sv(e,t,r){t=r?n:t;var i=n9(e,8,n,n,n,n,n,t);return i.placeholder=sv.placeholder,i}function sw(e,t,r){t=r?n:t;var i=n9(e,16,n,n,n,n,n,t);return i.placeholder=sw.placeholder,i}
11function sb(e,t,r){var s,a,o,l,u,c,B=0,h=!1,d=!1,p=!0;if("function"!=typeof e)throw new eT(i);function f(t){var r=s,i=a;return s=a=n,B=t,l=e.apply(i,r)}function g(e){var r=e-c,i=e-B;return n===c||r>=t||r<0||d&&i>=o}function C(){var e,r,n,i=sC();if(g(i))return m(i);u=iN(C,(e=i-c,r=i-B,n=t-e,d?t3(n,o-r):n))}function m(e){return(u=n,p&&s)?f(e):(s=a=n,l)}function _(){var e,r=sC(),i=g(r);if(s=arguments,a=this,c=r,i){if(n===u)return B=e=c,u=iN(C,t),h?f(e):l;if(d)return nP(u),u=iN(C,t),f(c)}return n===u&&(u=iN(C,t)),l}return t=s7(t)||0,sq(r)&&(h=!!r.leading,o=(d="maxWait"in r)?t2(s7(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p),_.cancel=function(){n!==u&&nP(u),B=0,s=c=a=u=n},_.flush=function(){return n===u?l:m(sC())},_}var sD=nB(function(e,t){return rF(e,1,t)}),sT=nB(function(e,t,r){return rF(e,s7(t)||0,r)});function sI(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new eT(i);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var a=e.apply(this,n);return r.cache=s.set(i,a)||s,a};return r.cache=new(sI.Cache||rE),r}function sS(e){if("function"!=typeof e)throw new eT(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}sI.Cache=rE;var sA=nB(function(e,t){var r=(t=1==t.length&&sx(t[0])?tp(t[0],tN(ic())):tp(rj(t,1),tN(ic()))).length;return nB(function(n){for(var i=-1,s=t3(n.length,r);++i<s;)n[i]=t[i].call(this,n[i]);return to(e,this,n)})}),sO=nB(function(e,t){var r=tj(t,iu(sO));return n9(e,32,n,t,r)}),sR=nB(function(e,t){var r=tj(t,iu(sR));return n9(e,64,n,t,r)}),sN=ii(function(e,t){return n9(e,256,n,n,n,t)});function sP(e,t){return e===t||e!=e&&t!=t}var sk=n3(rZ),sL=n3(function(e,t){return e>=t}),sF=r3(function(){return arguments}())?r3:function(e){return sY(e)&&eN.call(e,"callee")&&!eY.call(e,"callee")},sx=em.isArray,sM=tt?tN(tt):function(e){return sY(e)&&rQ(e)==T};function sG(e){return null!=e&&sK(e.length)&&!sz(e)}function sU(e){return sY(e)&&sG(e)}var sH=tZ||aX,sV=tr?tN(tr):function(e){return sY(e)&&rQ(e)==d};function sj(e){if(!sY(e))return!1;var t=rQ(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!sQ(e)}function sz(e){if(!sq(e))return!1;var t=rQ(e);return t==f||t==g||"[object AsyncFunction]"==t||"[object Proxy]"==t}function sJ(e){return"number"==typeof e&&e==s5(e)}function sK(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function sq(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function sY(e){return null!=e&&"object"==typeof e}var s$=tn?tN(tn):function(e){return sY(e)&&iC(e)==C};function sW(e){return"number"==typeof e||sY(e)&&rQ(e)==m}function sQ(e){if(!sY(e)||rQ(e)!=_)return!1;var t=ej(e);if(null===t)return!0;var r=eN.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eR.call(r)==eF}var sZ=ti?tN(ti):function(e){return sY(e)&&rQ(e)==E},sX=ts?tN(ts):function(e){return sY(e)&&iC(e)==v};function s0(e){return"string"==typeof e||!sx(e)&&sY(e)&&rQ(e)==w}function s1(e){return"symbol"==typeof e||sY(e)&&rQ(e)==b}var s2=ta?tN(ta):function(e){return sY(e)&&sK(e.length)&&!!eZ[rQ(e)]},s3=n3(r7),s6=n3(function(e,t){return e<=t});function s8(e){if(!e)return[];if(sG(e))return s0(e)?tK(e):nU(e);if(e6&&e[e6]){for(var t,r=e[e6](),n=[];!(t=r.next()).done;)n.push(t.value);return n}var i=iC(e);return(i==C?tH:i==v?tz:aw)(e)}function s4(e){return e?(e=s7(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}function s5(e){var t=s4(e),r=t%1;return t==t?r?t-r:t:0}function s9(e){return e?rP(s5(e),0,0xffffffff):0}function s7(e){if("number"==typeof e)return e;if(s1(e))return l;if(sq(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=sq(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=tR(e);var r=eu.test(e);return r||eB.test(e)?e2(e.slice(2),r?2:8):el.test(e)?l:+e}function ae(e){return nH(e,af(e))}function at(e){return null==e?"":nE(e)}var ar=nj(function(e,t){if(iT(t)||sG(t))return void nH(t,ap(t),e);for(var r in t)eN.call(t,r)&&rI(e,r,t[r])}),an=nj(function(e,t){nH(t,af(t),e)}),ai=nj(function(e,t,r,n){nH(t,af(t),e,n)}),as=nj(function(e,t,r,n){nH(t,ap(t),e,n)}),aa=ii(rN),ao=nB(function(e,t){e=ew(e);var r=-1,i=t.length,s=i>2?t[2]:n;for(s&&iv(t[0],t[1],s)&&(i=1);++r<i;)for(var a=t[r],o=af(a),l=-1,u=o.length;++l<u;){var c=o[l],B=e[c];(n===B||sP(B,eA[c])&&!eN.call(e,c))&&(e[c]=a[c])}return e}),al=nB(function(e){return e.push(n,ie),to(aC,n,e)});function au(e,t,r){var i=null==e?n:r$(e,t);return n===i?r:i}function ac(e,t){return null!=e&&im(e,t,r0)}var aB=nZ(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=eL.call(t)),e[t]=r},ax(aU)),ah=nZ(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=eL.call(t)),eN.call(e,t)?e[t].push(r):e[t]=[r]},ic),ad=nB(r2);function ap(e){return sG(e)?rb(e):r9(e)}function af(e){return sG(e)?rb(e,!0):function(e){if(!sq(e)){var t=e,r=[];if(null!=t)for(var n in ew(t))r.push(n);return r}var i=iT(e),s=[];for(var a in e)"constructor"==a&&(i||!eN.call(e,a))||s.push(a);return s}(e)}var ag=nj(function(e,t,r){nn(e,t,r)}),aC=nj(function(e,t,r,n){nn(e,t,r,n)}),am=ii(function(e,t){var r={};if(null==e)return r;var n=!1;t=tp(t,function(t){return t=nR(t,e),n||(n=t.length>1),t}),nH(e,ia(e),r),n&&(r=rk(r,7,it));for(var i=t.length;i--;)nw(r,t[i]);return r}),a_=ii(function(e,t){return null==e?{}:na(e,t,function(t,r){return ac(e,r)})});function ay(e,t){if(null==e)return{};var r=tp(ia(e),function(e){return[e]});return t=ic(t),na(e,r,function(e,r){return t(e,r[0])})}var aE=n5(ap),av=n5(af);function aw(e){return null==e?[]:tP(e,ap(e))}var ab=nq(function(e,t,r){return t=t.toLowerCase(),e+(r?aD(t):t)});function aD(e){return aP(at(e).toLowerCase())}function aT(e){return(e=at(e))&&e.replace(ed,tx).replace(eJ,"")}var aI=nq(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),aS=nq(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),aA=nK("toLowerCase"),aO=nq(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),aR=nq(function(e,t,r){return e+(r?" ":"")+aP(t)}),aN=nq(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),aP=nK("toUpperCase");function ak(e,t,r){if(e=at(e),t=r?n:t,n===t){var i;return(i=e,e$.test(i))?e.match(eq)||[]:e.match(en)||[]}return e.match(t)||[]}var aL=nB(function(e,t){try{return to(e,n,t)}catch(e){return sj(e)?e:new ey(e)}}),aF=ii(function(e,t){return tu(t,function(t){rR(e,t=iM(t),sy(e[t],e))}),e});function ax(e){return function(){return e}}var aM=nW(),aG=nW(!0);function aU(e){return e}function aH(e){return r5("function"==typeof e?e:rk(e,1))}var aV=nB(function(e,t){return function(r){return r2(r,e,t)}}),aj=nB(function(e,t){return function(r){return r2(e,r,t)}});function az(e,t,r){var n=ap(t),i=rY(t,n);null!=r||sq(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=rY(t,ap(t)));var s=!(sq(r)&&"chain"in r)||!!r.chain,a=sz(e);return tu(i,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(s||t){var r=e(this.__wrapped__);return(r.__actions__=nU(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,tf([this.value()],arguments))})}),e}function aJ(){}var aK=n0(tp),aq=n0(tc),aY=n0(tm);function a$(e){return iw(e)?tT(iM(e)):function(t){return r$(t,e)}}var aW=n2(),aQ=n2(!0);function aZ(){return[]}function aX(){return!1}var a0=nX(function(e,t){return e+t},0),a1=n8("ceil"),a2=nX(function(e,t){return e/t},1),a3=n8("floor"),a6=nX(function(e,t){return e*t},1),a8=n8("round"),a4=nX(function(e,t){return e-t},0);return rp.after=function(e,t){if("function"!=typeof t)throw new eT(i);return e=s5(e),function(){if(--e<1)return t.apply(this,arguments)}},rp.ary=sm,rp.assign=ar,rp.assignIn=an,rp.assignInWith=ai,rp.assignWith=as,rp.at=aa,rp.before=s_,rp.bind=sy,rp.bindAll=aF,rp.bindKey=sE,rp.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return sx(e)?e:[e]},rp.chain=sn,rp.chunk=function(e,t,r){t=(r?iv(e,t,r):n===t)?1:t2(s5(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,o=em(tI(i/t));s<i;)o[a++]=nf(e,s,s+=t);return o},rp.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var s=e[t];s&&(i[n++]=s)}return i},rp.concat=function(){var e=arguments.length;if(!e)return[];
11for(var t=em(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return tf(sx(r)?nU(r):[r],rj(t,1))},rp.cond=function(e){var t=null==e?0:e.length,r=ic();return e=t?tp(e,function(e){if("function"!=typeof e[1])throw new eT(i);return[r(e[0]),e[1]]}):[],nB(function(r){for(var n=-1;++n<t;){var i=e[n];if(to(i[0],this,r))return to(i[1],this,r)}})},rp.conforms=function(e){var t,r;return r=ap(t=rk(e,1)),function(e){return rL(e,t,r)}},rp.constant=ax,rp.countBy=sa,rp.create=function(e,t){var r=rf(e);return null==t?r:rO(r,t)},rp.curry=sv,rp.curryRight=sw,rp.debounce=sb,rp.defaults=ao,rp.defaultsDeep=al,rp.defer=sD,rp.delay=sT,rp.difference=iH,rp.differenceBy=iV,rp.differenceWith=ij,rp.drop=function(e,t,r){var i=null==e?0:e.length;return i?nf(e,(t=r||n===t?1:s5(t))<0?0:t,i):[]},rp.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?nf(e,0,(t=i-(t=r||n===t?1:s5(t)))<0?0:t):[]},rp.dropRightWhile=function(e,t){return e&&e.length?nD(e,ic(t,3),!0,!0):[]},rp.dropWhile=function(e,t){return e&&e.length?nD(e,ic(t,3),!0):[]},rp.fill=function(e,t,r,i){var s=null==e?0:e.length;if(!s)return[];r&&"number"!=typeof r&&iv(e,t,r)&&(r=0,i=s);var a=r,o=i,l=e.length;for((a=s5(a))<0&&(a=-a>l?0:l+a),(o=n===o||o>l?l:s5(o))<0&&(o+=l),o=a>o?0:s9(o);a<o;)e[a++]=t;return e},rp.filter=function(e,t){return(sx(e)?tB:rV)(e,ic(t,3))},rp.flatMap=function(e,t){return rj(sp(e,t),1)},rp.flatMapDeep=function(e,t){return rj(sp(e,t),o)},rp.flatMapDepth=function(e,t,r){return r=n===r?1:s5(r),rj(sp(e,t),r)},rp.flatten=iK,rp.flattenDeep=function(e){return(null==e?0:e.length)?rj(e,o):[]},rp.flattenDepth=function(e,t){return(null==e?0:e.length)?rj(e,t=n===t?1:s5(t)):[]},rp.flip=function(e){return n9(e,512)},rp.flow=aM,rp.flowRight=aG,rp.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];rR(n,i[0],i[1])}return n},rp.functions=function(e){return null==e?[]:rY(e,ap(e))},rp.functionsIn=function(e){return null==e?[]:rY(e,af(e))},rp.groupBy=sB,rp.initial=function(e){return(null==e?0:e.length)?nf(e,0,-1):[]},rp.intersection=iY,rp.intersectionBy=i$,rp.intersectionWith=iW,rp.invert=aB,rp.invertBy=ah,rp.invokeMap=sh,rp.iteratee=aH,rp.keyBy=sd,rp.keys=ap,rp.keysIn=af,rp.map=sp,rp.mapKeys=function(e,t){var r={};return t=ic(t,3),rK(e,function(e,n,i){rR(r,t(e,n,i),e)}),r},rp.mapValues=function(e,t){var r={};return t=ic(t,3),rK(e,function(e,n,i){rR(r,n,t(e,n,i))}),r},rp.matches=function(e){return nt(rk(e,1))},rp.matchesProperty=function(e,t){return nr(e,rk(t,1))},rp.memoize=sI,rp.merge=ag,rp.mergeWith=aC,rp.method=aV,rp.methodOf=aj,rp.mixin=az,rp.negate=sS,rp.nthArg=function(e){return e=s5(e),nB(function(t){return ni(t,e)})},rp.omit=am,rp.omitBy=function(e,t){return ay(e,sS(ic(t)))},rp.once=function(e){return s_(2,e)},rp.orderBy=function(e,t,r,i){return null==e?[]:(sx(t)||(t=null==t?[]:[t]),sx(r=i?n:r)||(r=null==r?[]:[r]),ns(e,t,r))},rp.over=aK,rp.overArgs=sA,rp.overEvery=aq,rp.overSome=aY,rp.partial=sO,rp.partialRight=sR,rp.partition=sf,rp.pick=a_,rp.pickBy=ay,rp.property=a$,rp.propertyOf=function(e){return function(t){return null==e?n:r$(e,t)}},rp.pull=iZ,rp.pullAll=iX,rp.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?no(e,t,ic(r,2)):e},rp.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?no(e,t,n,r):e},rp.pullAt=i0,rp.range=aW,rp.rangeRight=aQ,rp.rearg=sN,rp.reject=function(e,t){return(sx(e)?tB:rV)(e,sS(ic(t,3)))},rp.remove=function(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,i=[],s=e.length;for(t=ic(t,3);++n<s;){var a=e[n];t(a,n,e)&&(r.push(a),i.push(n))}return nl(e,i),r},rp.rest=function(e,t){if("function"!=typeof e)throw new eT(i);return nB(e,t=n===t?t:s5(t))},rp.reverse=i1,rp.sampleSize=function(e,t,r){return t=(r?iv(e,t,r):n===t)?1:s5(t),(sx(e)?function(e,t){return iF(nU(e),rP(t,0,e.length))}:function(e,t){var r=aw(e);return iF(r,rP(t,0,r.length))})(e,t)},rp.set=function(e,t,r){return null==e?e:nh(e,t,r)},rp.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:nh(e,t,r,i)},rp.shuffle=function(e){return(sx(e)?function(e){return iF(nU(e))}:function(e){return iF(aw(e))})(e)},rp.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&iv(e,t,r)?(t=0,r=i):(t=null==t?0:s5(t),r=n===r?i:s5(r)),nf(e,t,r)):[]},rp.sortBy=sg,rp.sortedUniq=function(e){return e&&e.length?n_(e):[]},rp.sortedUniqBy=function(e,t){return e&&e.length?n_(e,ic(t,2)):[]},rp.split=function(e,t,r){return(r&&"number"!=typeof r&&iv(e,t,r)&&(t=r=n),r=n===r?0xffffffff:r>>>0)?(e=at(e))&&("string"==typeof t||null!=t&&!sZ(t))&&!(t=nE(t))&&tU(e)?nN(tK(e),0,r):e.split(t,r):[]},rp.spread=function(e,t){if("function"!=typeof e)throw new eT(i);return t=null==t?0:t2(s5(t),0),nB(function(r){var n=r[t],i=nN(r,0,t);return n&&tf(i,n),to(e,this,i)})},rp.tail=function(e){var t=null==e?0:e.length;return t?nf(e,1,t):[]}
vendor: 9,589 bytes, line 11
11,rp.take=function(e,t,r){return e&&e.length?nf(e,0,(t=r||n===t?1:s5(t))<0?0:t):[]},rp.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?nf(e,(t=i-(t=r||n===t?1:s5(t)))<0?0:t,i):[]},rp.takeRightWhile=function(e,t){return e&&e.length?nD(e,ic(t,3),!1,!0):[]},rp.takeWhile=function(e,t){return e&&e.length?nD(e,ic(t,3)):[]},rp.tap=function(e,t){return t(e),e},rp.throttle=function(e,t,r){var n=!0,s=!0;if("function"!=typeof e)throw new eT(i);return sq(r)&&(n="leading"in r?!!r.leading:n,s="trailing"in r?!!r.trailing:s),sb(e,t,{leading:n,maxWait:t,trailing:s})},rp.thru=si,rp.toArray=s8,rp.toPairs=aE,rp.toPairsIn=av,rp.toPath=function(e){return sx(e)?tp(e,iM):s1(e)?[e]:nU(ix(at(e)))},rp.toPlainObject=ae,rp.transform=function(e,t,r){var n=sx(e),i=n||sH(e)||s2(e);if(t=ic(t,4),null==r){var s=e&&e.constructor;r=i?n?new s:[]:sq(e)&&sz(s)?rf(ej(e)):{}}return(i?tu:rK)(e,function(e,n,i){return t(r,e,n,i)}),r},rp.unary=function(e){return sm(e,1)},rp.union=i2,rp.unionBy=i3,rp.unionWith=i6,rp.uniq=function(e){return e&&e.length?nv(e):[]},rp.uniqBy=function(e,t){return e&&e.length?nv(e,ic(t,2)):[]},rp.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?nv(e,n,t):[]},rp.unset=function(e,t){return null==e||nw(e,t)},rp.unzip=i8,rp.unzipWith=i4,rp.update=function(e,t,r){return null==e?e:nb(e,t,nO(r))},rp.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:nb(e,t,nO(r),i)},rp.values=aw,rp.valuesIn=function(e){return null==e?[]:tP(e,af(e))},rp.without=i5,rp.words=ak,rp.wrap=function(e,t){return sO(nO(t),e)},rp.xor=i9,rp.xorBy=i7,rp.xorWith=se,rp.zip=st,rp.zipObject=function(e,t){return nS(e||[],t||[],rI)},rp.zipObjectDeep=function(e,t){return nS(e||[],t||[],nh)},rp.zipWith=sr,rp.entries=aE,rp.entriesIn=av,rp.extend=an,rp.extendWith=ai,az(rp,rp),rp.add=a0,rp.attempt=aL,rp.camelCase=ab,rp.capitalize=aD,rp.ceil=a1,rp.clamp=function(e,t,r){return n===r&&(r=t,t=n),n!==r&&(r=(r=s7(r))==r?r:0),n!==t&&(t=(t=s7(t))==t?t:0),rP(s7(e),t,r)},rp.clone=function(e){return rk(e,4)},rp.cloneDeep=function(e){return rk(e,5)},rp.cloneDeepWith=function(e,t){return rk(e,5,t="function"==typeof t?t:n)},rp.cloneWith=function(e,t){return rk(e,4,t="function"==typeof t?t:n)},rp.conformsTo=function(e,t){return null==t||rL(e,t,ap(t))},rp.deburr=aT,rp.defaultTo=function(e,t){return null==e||e!=e?t:e},rp.divide=a2,rp.endsWith=function(e,t,r){e=at(e),t=nE(t);var i=e.length,s=r=n===r?i:rP(s5(r),0,i);return(r-=t.length)>=0&&e.slice(r,s)==t},rp.eq=sP,rp.escape=function(e){return(e=at(e))&&j.test(e)?e.replace(H,tM):e},rp.escapeRegExp=function(e){return(e=at(e))&&Q.test(e)?e.replace(W,"\\$&"):e},rp.every=function(e,t,r){var i=sx(e)?tc:rU;return r&&iv(e,t,r)&&(t=n),i(e,ic(t,3))},rp.find=so,rp.findIndex=iz,rp.findKey=function(e,t){return ty(e,ic(t,3),rK)},rp.findLast=sl,rp.findLastIndex=iJ,rp.findLastKey=function(e,t){return ty(e,ic(t,3),rq)},rp.floor=a3,rp.forEach=su,rp.forEachRight=sc,rp.forIn=function(e,t){return null==e?e:rz(e,ic(t,3),af)},rp.forInRight=function(e,t){return null==e?e:rJ(e,ic(t,3),af)},rp.forOwn=function(e,t){return e&&rK(e,ic(t,3))},rp.forOwnRight=function(e,t){return e&&rq(e,ic(t,3))},rp.get=au,rp.gt=sk,rp.gte=sL,rp.has=function(e,t){return null!=e&&im(e,t,rX)},rp.hasIn=ac,rp.head=iq,rp.identity=aU,rp.includes=function(e,t,r,n){e=sG(e)?e:aw(e),r=r&&!n?s5(r):0;var i=e.length;return r<0&&(r=t2(i+r,0)),s0(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&tv(e,t,r)>-1},rp.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:s5(r);return i<0&&(i=t2(n+i,0)),tv(e,t,i)},rp.inRange=function(e,t,r){var i,s,a;return t=s4(t),n===r?(r=t,t=0):r=s4(r),(i=e=s7(e))>=t3(s=t,a=r)&&i<t2(s,a)},rp.invoke=ad,rp.isArguments=sF,rp.isArray=sx,rp.isArrayBuffer=sM,rp.isArrayLike=sG,rp.isArrayLikeObject=sU,rp.isBoolean=function(e){return!0===e||!1===e||sY(e)&&rQ(e)==h},rp.isBuffer=sH,rp.isDate=sV,rp.isElement=function(e){return sY(e)&&1===e.nodeType&&!sQ(e)},rp.isEmpty=function(e){if(null==e)return!0;if(sG(e)&&(sx(e)||"string"==typeof e||"function"==typeof e.splice||sH(e)||s2(e)||sF(e)))return!e.length;var t=iC(e);if(t==C||t==v)return!e.size;if(iT(e))return!r9(e).length;for(var r in e)if(eN.call(e,r))return!1;return!0},rp.isEqual=function(e,t){return r6(e,t)},rp.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return n===i?r6(e,t,n,r):!!i},rp.isError=sj,rp.isFinite=function(e){return"number"==typeof e&&tX(e)},rp.isFunction=sz,rp.isInteger=sJ,rp.isLength=sK,rp.isMap=s$,rp.isMatch=function(e,t){return e===t||r8(e,t,ih(t))},rp.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,r8(e,t,ih(t),r)},rp.isNaN=function(e){return sW(e)&&e!=+e},rp.isNative=function(e){if(iD(e))throw new ey("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return r4(e)},rp.isNil=function(e){return null==e},rp.isNull=function(e){return null===e},rp.isNumber=sW,rp.isObject=sq,rp.isObjectLike=sY,rp.isPlainObject=sQ,rp.isRegExp=sZ,rp.isSafeInteger=function(e){return sJ(e)&&e>=-0x1fffffffffffff&&e<=0x1fffffffffffff},rp.isSet=sX,rp.isString=s0,rp.isSymbol=s1,rp.isTypedArray=s2,rp.isUndefined=function(e){return n===e},rp.isWeakMap=function(e){return sY(e)&&iC(e)==D},rp.isWeakSet=function(e){return sY(e)&&"[object WeakSet]"==rQ(e)},rp.join=function(e,t){return null==e?"":t0.call(e,t)},rp.kebabCase=aI,rp.last=iQ,rp.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return -1;var s=i;return n!==r&&(s=(s=s5(r))<0?t2(i+s,0):t3(s,i-1)),t==t?function(e,t,r){for(var n=r+1;n--&&e[n]!==t;);return n}(e,t,s):tE(e,tb,s,!0)},rp.lowerCase=aS,rp.lowerFirst=aA,rp.lt=s3,rp.lte=s6,rp.max=function(e){return e&&e.length?rH(e,aU,rZ):n},rp.maxBy=function(e,t){return e&&e.length?rH(e,ic(t,2),rZ):n},rp.mean=function(e){return tD(e,aU)},rp.meanBy=function(e,t){return tD(e,ic(t,2))},rp.min=function(e){return e&&e.length?rH(e,aU,r7):n},rp.minBy=function(e,t){return e&&e.length?rH(e,ic(t,2),r7):n},rp.stubArray=aZ,rp.stubFalse=aX,rp.stubObject=function(){return{}},rp.stubString=function(){return""},rp.stubTrue=function(){return!0},rp.multiply=a6,rp.nth=function(e,t){return e&&e.length?ni(e,s5(t)):n},rp.noConflict=function(){return e8._===this&&(e8._=ex),this},rp.noop=aJ,rp.now=sC,rp.pad=function(e,t,r){e=at(e);var n=(t=s5(t))?tJ(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return n1(tW(i),r)+e+n1(tI(i),r)},rp.padEnd=function(e,t,r){e=at(e);var n=(t=s5(t))?tJ(e):0;return t&&n<t?e+n1(t-n,r):e},rp.padStart=function(e,t,r){e=at(e);var n=(t=s5(t))?tJ(e):0;return t&&n<t?n1(t-n,r)+e:e},rp.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t*=1),t8(at(e).replace(Z,""),t||0)},rp.random=function(e,t,r){if(r&&"boolean"!=typeof r&&iv(e,t,r)&&(t=r=n),n===r&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),n===e&&n===t?(e=0,t=1):(e=s4(e),n===t?(t=e,e=0):t=s4(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var s=t4();return t3(e+s*(t-e+e1("1e-"+((s+"").length-1))),t)}return nu(e,t)},rp.reduce=function(e,t,r){var n=sx(e)?tg:tS,i=arguments.length<3;return n(e,ic(t,4),r,i,rM)},rp.reduceRight=function(e,t,r){var n=sx(e)?tC:tS,i=arguments.length<3;return n(e,ic(t,4),r,i,rG)},rp.repeat=function(e,t,r){return t=(r?iv(e,t,r):n===t)?1:s5(t),nc(at(e),t)},rp.replace=function(){var e=arguments,t=at(e[0]);return e.length<3?t:t.replace(e[1],e[2])},rp.result=function(e,t,r){t=nR(t,e);var i=-1,s=t.length;for(s||(s=1,e=n);++i<s;){var a=null==e?n:e[iM(t[i])];n===a&&(i=s,a=r),e=sz(a)?a.call(e):a}return e},rp.round=a8,rp.runInContext=e,rp.sample=function(e){return(sx(e)?rD:function(e){return rD(aw(e))})(e)},rp.size=function(e){if(null==e)return 0;if(sG(e))return s0(e)?tJ(e):e.length;var t=iC(e);return t==C||t==v?e.size:r9(e).length},rp.snakeCase=aO,rp.some=function(e,t,r){var i=sx(e)?tm:ng;return r&&iv(e,t,r)&&(t=n),i(e,ic(t,3))},rp.sortedIndex=function(e,t){return nC(e,t)},rp.sortedIndexBy=function(e,t,r){return nm(e,t,ic(r,2))},rp.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=nC(e,t);if(n<r&&sP(e[n],t))return n}return -1},rp.sortedLastIndex=function(e,t){return nC(e,t,!0)},rp.sortedLastIndexBy=function(e,t,r){return nm(e,t,ic(r,2),!0)},rp.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=nC(e,t,!0)-1;if(sP(e[r],t))return r}return -1},rp.startCase=aR,rp.startsWith=function(e,t,r){return e=at(e),r=null==r?0:rP(s5(r),0,e.length),t=nE(t),e.slice(r,r+t.length)==t},rp.subtract=a4,rp.sum=function(e){return e&&e.length?tA(e,aU):0},rp.sumBy=function(e,t){return e&&e.length?tA(e,ic(t,2)):0},rp.template=function(e,t,r){var i=rp.templateSettings;r&&iv(e,t,r)&&(t=n),e=at(e),t=as({},t,i,n7);var s=as({},t.imports,i.imports,n7),a=ap(s),o=tP(s,a);tu(a,function(e){if(ei.test(e))throw new ey("Invalid `imports` option passed into `_.template`")});var l,u,c=0,B=t.interpolate||ep,h="__p += '",d=eb((t.escape||ep).source+"|"+B.source+"|"+(B===K?ea:ep).source+"|"+(t.evaluate||ep).source+"|$","g"),p="//# sourceURL="+(eN.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eQ+"]")+"\n";e.replace(d,function(t,r,n,i,s,a){return n||(n=i),h+=e.slice(c,a).replace(ef,tG),r&&(l=!0,h+="' +\n__e("+r+") +\n'"),s&&(u=!0,h+="';\n"+s+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=a+t.length,t}),h+="';\n";var f=eN.call(t,"variable")&&t.variable;if(f){if(ei.test(f))throw new ey("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(u?h.replace(x,""):h).replace(M,"$1").replace(G,"$1;"),h="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
11\n")+h+"return __p\n}";var g=aL(function(){return eE(a,p+"return "+h).apply(n,o)});if(g.source=h,sj(g))throw g;return g},rp.times=function(e,t){if((e=s5(e))<1||e>0x1fffffffffffff)return[];var r=0xffffffff,n=t3(e,0xffffffff);t=ic(t),e-=0xffffffff;for(var i=tO(n,t);++r<e;)t(r);return i},rp.toFinite=s4,rp.toInteger=s5,rp.toLength=s9,rp.toLower=function(e){return at(e).toLowerCase()},rp.toNumber=s7,rp.toSafeInteger=function(e){return e?rP(s5(e),-0x1fffffffffffff,0x1fffffffffffff):0===e?e:0},rp.toString=at,rp.toUpper=function(e){return at(e).toUpperCase()},rp.trim=function(e,t,r){if((e=at(e))&&(r||n===t))return tR(e);if(!e||!(t=nE(t)))return e;var i=tK(e),s=tK(t),a=tL(i,s),o=tF(i,s)+1;return nN(i,a,o).join("")},rp.trimEnd=function(e,t,r){if((e=at(e))&&(r||n===t))return e.slice(0,tq(e)+1);if(!e||!(t=nE(t)))return e;var i=tK(e),s=tF(i,tK(t))+1;return nN(i,0,s).join("")},rp.trimStart=function(e,t,r){if((e=at(e))&&(r||n===t))return e.replace(Z,"");if(!e||!(t=nE(t)))return e;var i=tK(e),s=tL(i,tK(t));return nN(i,s).join("")},rp.truncate=function(e,t){var r=30,i="...";if(sq(t)){var s="separator"in t?t.separator:s;r="length"in t?s5(t.length):r,i="omission"in t?nE(t.omission):i}var a=(e=at(e)).length;if(tU(e)){var o=tK(e);a=o.length}if(r>=a)return e;var l=r-tJ(i);if(l<1)return i;var u=o?nN(o,0,l).join(""):e.slice(0,l);if(n===s)return u+i;if(o&&(l+=u.length-l),sZ(s)){if(e.slice(l).search(s)){var c,B=u;for(s.global||(s=eb(s.source,at(eo.exec(s))+"g")),s.lastIndex=0;c=s.exec(B);)var h=c.index;u=u.slice(0,n===h?l:h)}}else if(e.indexOf(nE(s),l)!=l){var d=u.lastIndexOf(s);d>-1&&(u=u.slice(0,d))}return u+i},rp.unescape=function(e){return(e=at(e))&&V.test(e)?e.replace(U,tY):e},rp.uniqueId=function(e){var t=++eP;return at(e)+t},rp.upperCase=aN,rp.upperFirst=aP,rp.each=su,rp.eachRight=sc,rp.first=iq,az(rp,(eC={},rK(rp,function(e,t){eN.call(rp.prototype,t)||(eC[t]=e)}),eC),{chain:!1}),rp.VERSION="4.18.1",tu(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){rp[e].placeholder=rp}),tu(["drop","take"],function(e,t){rm.prototype[e]=function(r){r=n===r?1:t2(s5(r),0);var i=this.__filtered__&&!t?new rm(this):this.clone();return i.__filtered__?i.__takeCount__=t3(r,i.__takeCount__):i.__views__.push({size:t3(r,0xffffffff),type:e+(i.__dir__<0?"Right":"")}),i},rm.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tu(["filter","map","takeWhile"],function(e,t){var r=t+1,n=1==r||3==r;rm.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ic(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),tu(["head","last"],function(e,t){var r="take"+(t?"Right":"");rm.prototype[e]=function(){return this[r](1).value()[0]}}),tu(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");rm.prototype[e]=function(){return this.__filtered__?new rm(this):this[r](1)}}),rm.prototype.compact=function(){return this.filter(aU)},rm.prototype.find=function(e){return this.filter(e).head()},rm.prototype.findLast=function(e){return this.reverse().find(e)},rm.prototype.invokeMap=nB(function(e,t){return"function"==typeof e?new rm(this):this.map(function(r){return r2(r,e,t)})}),rm.prototype.reject=function(e){return this.filter(sS(ic(e)))},rm.prototype.slice=function(e,t){e=s5(e);var r=this;return r.__filtered__&&(e>0||t<0)?new rm(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==t&&(r=(t=s5(t))<0?r.dropRight(-t):r.take(t-e)),r)},rm.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},rm.prototype.toArray=function(){return this.take(0xffffffff)},rK(rm.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),s=rp[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);s&&(rp.prototype[t]=function(){var t=this.__wrapped__,o=i?[1]:arguments,l=t instanceof rm,u=o[0],c=l||sx(t),B=function(e){var t=s.apply(rp,tf([e],o));return i&&h?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,d=!!this.__actions__.length,p=a&&!h,f=l&&!d;if(!a&&c){t=f?t:new rm(this);var g=e.apply(t,o);return g.__actions__.push({func:si,args:[B],thisArg:n}),new rC(g,h)}return p&&f?e.apply(this,o):(g=this.thru(B),p?i?g.value()[0]:g.value():g)})}),tu(["pop","push","shift","sort","splice","unshift"],function(e){var t=eI[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);rp.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(sx(i)?i:[],e)}return this[r](function(r){return t.apply(sx(r)?r:[],e)})}}),rK(rm.prototype,function(e,t){var r=rp[t];if(r){var n=r.name+"";eN.call(rs,n)||(rs[n]=[]),rs[n].push({name:t,func:r})}}),rs[nQ(n,2).name]=[{name:"wrapper",func:n}],rm.prototype.clone=function(){var e=new rm(this.__wrapped__);return e.__actions__=nU(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=nU(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=nU(this.__views__),e},rm.prototype.reverse=function(){if(this.__filtered__){var e=new rm(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e},rm.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=sx(e),n=t<0,i=r?e.length:0,s=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var s=r[n],a=s.size;switch(s.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=t3(t,e+a);break;case"takeRight":e=t2(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=s.start,o=s.end,l=o-a,u=n?o:a-1,c=this.__iteratees__,B=c.length,h=0,d=t3(l,this.__takeCount__);if(!r||!n&&i==l&&d==l)return nT(e,this.__actions__);var p=[];e:for(;l--&&h<d;){for(var f=-1,g=e[u+=t];++f<B;){var C=c[f],m=C.iteratee,_=C.type,y=m(g);if(2==_)g=y;else if(!y)if(1==_)continue e;else break e}p[h++]=g}return p},rp.prototype.at=ss,rp.prototype.chain=function(){return sn(this)},rp.prototype.commit=function(){return new rC(this.value(),this.__chain__)},rp.prototype.next=function(){this.__values__===n&&(this.__values__=s8(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}},rp.prototype.plant=function(e){for(var t,r=this;r instanceof rg;){var i=iU(r);i.__index__=0,i.__values__=n,t?s.__wrapped__=i:t=i;var s=i;r=r.__wrapped__}return s.__wrapped__=e,t},rp.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof rm){var t=e;return this.__actions__.length&&(t=new rm(this)),(t=t.reverse()).__actions__.push({func:si,args:[i1],thisArg:n}),new rC(t,this.__chain__)}return this.thru(i1)},rp.prototype.toJSON=rp.prototype.valueOf=rp.prototype.value=function(){return nT(this.__wrapped__,this.__actions__)},rp.prototype.first=rp.prototype.head,e6&&(rp.prototype[e6]=function(){return this}),rp}();if("function"==typeof define&&"object"==typeof define.amd&&define.amd)e8._=t$,e.r,n!==t$&&e.v(t$);else e5?((e5.exports=t$)._=t$,e4._=t$):e8._=t$}).call(e.e)},8341,(e,t,r)=>{"use strict";
11Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return a},requestIdleCallback:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},a="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},19083,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ESCAPE_REGEX:function(){return a},htmlEscapeAttributeString:function(){return c},htmlEscapeJsonString:function(){return u}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},a=/[&><\u2028\u2029]/g,o={"&":"&",'"':""","'":"'","<":"<",">":">"},l=/[&"'<>]/g;function u(e){return e.replace(a,e=>s[e])}function c(e){return e.replace(l,e=>o[e])}},79520,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},handleClientScriptLoad:function(){return C},initScriptLoader:function(){return m}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(55682),a=e.r(90809),o=e.r(43476),l=s._(e.r(74080)),u=a._(e.r(71645)),c=e.r(42732),B=e.r(22737),h=e.r(8341),d=e.r(19083),p=new Map,f=new Set,g=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:s,children:a="",strategy:o="afterInteractive",onError:u,stylesheets:c}=e,h=r||t;if(h&&f.has(h))return;if(p.has(t)){f.add(h),p.get(t).then(n,u);return}let d=()=>{i&&i(),f.add(h)},g=document.createElement("script"),C=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),d()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});s?(g.innerHTML=s.__html||"",d()):a?(g.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",d()):t&&(g.src=t,p.set(t,C)),(0,B.setAttributesFromProps)(g,e),"worker"===o&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",o),c&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(c),document.body.appendChild(g)};function C(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,h.requestIdleCallback)(()=>g(e))}):g(e)}function m(e){e.forEach(C),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function _(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:s="afterInteractive",onError:a,stylesheets:B,...p}=e,{updateScripts:C,scripts:m,getIsSsr:_,appDir:y,nonce:E}=(0,u.useContext)(c.HeadManagerContext);E=p.nonce||E;let v=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;v.current||(i&&e&&f.has(e)&&i(),v.current=!0)},[i,t,r]);let w=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!w.current){if("afterInteractive"===s)g(e);else"lazyOnload"===s&&("complete"===document.readyState?(0,h.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,h.requestIdleCallback)(()=>g(e))}));w.current=!0}},[e,s]),("beforeInteractive"===s||"worker"===s)&&(C?(m[s]=(m[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:a,...p,nonce:E}]),C(m)):_&&_()?f.add(t||r):_&&!_()&&g({...e,nonce:E})),y){if(B&&B.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)if(!r)return p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,d.htmlEscapeJsonString)(JSON.stringify([0,{...p,id:t}]))})`}});else return l.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:E,crossOrigin:p.crossOrigin}:{as:"script",nonce:E,crossOrigin:p.crossOrigin}),(0,o.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,d.htmlEscapeJsonString)(JSON.stringify([r,{...p,id:t}]))})`}});"afterInteractive"===s&&r&&l.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:E,crossOrigin:p.crossOrigin}:{as:"script",nonce:E,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(_,"__nextScript",{value:!0});let y=_;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
11dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18566,(e,t,r)=>{t.exports=e.r(76562)},3303,(e,t,r)=>{t.exports=e.r(79520)},84297,(e,t,r)=>{t.exports={id:"google-analytics",description:"Install a Google Analytics tag on your website",website:"https://analytics.google.com/analytics/web/",scripts:[{url:"https://www.googletagmanager.com/gtag/js",params:["id"],strategy:"worker",location:"head",action:"append"},{code:"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag('js',new Date());gtag('config','${args.id}')",strategy:"worker",location:"head",action:"append"}]}},92135,(e,t,r)=>{"use strict";function n(e,t,r=!1){return t?Object.keys(e).filter(e=>r?!t.includes(e):t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{}):{}}function i(e,t,r,n){let i=n&&Object.keys(n).length>0?new URL(Object.values(n)[0],e):new URL(e);return t&&r&&t.forEach(e=>{r[e]&&i.searchParams.set(e,r[e])}),i.toString()}function s(e,t,r,n,s){var a;if(!t)return`<${e}></${e}>`;let o=(null==(a=t.src)?void 0:a.url)?Object.assign(Object.assign({},t),{src:i(t.src.url,t.src.params,n,s)}):t,l=Object.keys(Object.assign(Object.assign({},o),r)).reduce((e,t)=>{let n=null==r?void 0:r[t],i=o[t],s=null!=n?n:i,a=!0===s?t:`${t}="${s}"`;return s?e+` ${a}`:e},"");return`<${e}${l}></${e}>`}Object.defineProperty(r,"__esModule",{value:!0}),r.formatData=r.createHtml=r.formatUrl=void 0,r.formatUrl=i,r.createHtml=s,r.formatData=function(e,t){var r,a,o,l,u;let c=n(t,null==(r=e.scripts)?void 0:r.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),B=n(t,null==(o=null==(a=e.html)?void 0:a.attributes.src)?void 0:o.params),h=n(t,[null==(u=null==(l=e.html)?void 0:l.attributes.src)?void 0:u.slugParam]),d=n(t,[...Object.keys(c),...Object.keys(B),...Object.keys(h)],!0);return Object.assign(Object.assign({},e),{html:e.html?s(e.html.element,e.html.attributes,d,B,h):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:i(e.url,e.params,c)})):null})}},44602,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=void 0;let s=i(e.r(84297)),a=e.r(92135);r.GoogleAnalytics=e=>{var t=n(e,[]);return(0,a.formatData)(s.default,t)}},60262,(e,t,r)=>{t.exports={id:"google-maps-embed",description:"Embed a Google Maps embed on your webpage",website:"https://developers.google.com/maps/documentation/embed/get-started",html:{element:"iframe",attributes:{loading:"lazy",src:{url:"https://www.google.com/maps/embed/v1/place",slugParam:"mode",params:["key","q","center","zoom","maptype","language","region"]},referrerpolicy:"no-referrer-when-downgrade",frameborder:"0",style:"border:0",allowfullscreen:!0,width:null,height:null}}}},77813,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleMapsEmbed=void 0;let s=i(e.r(60262)),a=e.r(92135);r.GoogleMapsEmbed=e=>{var t=n(e,[]);return(0,a.formatData)(s.default,t)}},40674,(e,t,r)=>{t.exports={id:"youtube-embed",description:"Embed a YouTube embed on your webpage.",website:"https://github.com/paulirish/lite-youtube-embed",html:{element:"lite-youtube",attributes:{videoid:null,playlabel:null}},stylesheets:["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],scripts:[{url:"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js",strategy:"idle",location:"head",action:"append"}]}},15465,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}
11,i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=void 0;let s=i(e.r(40674)),a=e.r(92135);r.YouTubeEmbed=e=>{var t=n(e,[]);return(0,a.formatData)(s.default,t)}},81498,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=r.GoogleMapsEmbed=r.GoogleAnalytics=void 0;var n=e.r(44602);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return n.GoogleAnalytics}});var i=e.r(77813);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return i.GoogleMapsEmbed}});var s=e.r(15465);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return s.YouTubeEmbed}})},40783,16086,69841,21816,91476,11892,e=>{"use strict";var t,r=e.i(40772),n=e.i(63971),i=e.i(92675),s=e.i(61726),a=e.i(77752),o=e.i(92165),l=e.i(80732),u=new class e extends l.ApiResource{static TYPE="customer_addresses";async create(t,r,n){return this.resources.create({...t,type:e.TYPE},r,n)}async update(t,r,n){return this.resources.update({...t,type:e.TYPE},r,n)}async delete(t,r){await this.resources.delete("string"==typeof t?{id:t,type:e.TYPE}:t,r)}async customer(e,t,r){let n=e.id||e;return this.resources.fetch({type:"customers"},`customer_addresses/${n}/customer`,t,r)}async address(e,t,r){let n=e.id||e;return this.resources.fetch({type:"addresses"},`customer_addresses/${n}/address`,t,r)}async events(e,t,r){let n=e.id||e;return this.resources.fetch({type:"events"},`customer_addresses/${n}/events`,t,r)}async event_stores(e,t,r){let n=e.id||e;return this.resources.fetch({type:"event_stores"},`customer_addresses/${n}/event_stores`,t,r)}isCustomerAddress(t){return t.type&&t.type===e.TYPE}relationship(e){return super.relationshipOneToOne(e)}relationshipToMany(...e){return super.relationshipOneToMany(...e)}type(){return e.TYPE}},c=l,B=new class e extends c.ApiResource{static TYPE="customer_subscriptions";async create(t,r,n){return this.resources.create({...t,type:e.TYPE},r,n)}async update(t,r,n){return this.resources.update({...t,type:e.TYPE},r,n)}async delete(t,r){await this.resources.delete("string"==typeof t?{id:t,type:e.TYPE}:t,r)}async customer(e,t,r){let n=e.id||e;return this.resources.fetch({type:"customers"},`customer_subscriptions/${n}/customer`,t,r)}async events(e,t,r){let n=e.id||e;return this.resources.fetch({type:"events"},`customer_subscriptions/${n}/events`,t,r)}async event_stores(e,t,r){let n=e.id||e;return this.resources.fetch({type:"event_stores"},`customer_subscriptions/${n}/event_stores`,t,r)}isCustomerSubscription(t){return t.type&&t.type===e.TYPE}relationship(e){return super.relationshipOneToOne(e)}relationshipToMany(...e){return super.relationshipOneToMany(...e)}type(){return e.TYPE}},h=l,d=new class e extends h.ApiResource{static TYPE="customers";async create(t,r,n){return this.resources.create({...t,type:e.TYPE},r,n)}async update(t,r,n){return this.resources.update({...t,type:e.TYPE},r,n)}async delete(t,r){await this.resources.delete("string"==typeof t?{id:t,type:e.TYPE}:t,r)}async customer_group(e,t,r){let n=e.id||e;return this.resources.fetch({type:"customer_groups"},`customers/${n}/customer_group`,t,r)}async customer_addresses(e,t,r){let n=e.id||e;return this.resources.fetch({type:"customer_addresses"},`customers/${n}/customer_addresses`,t,r)}async customer_payment_sources(e,t,r){let n=e.id||e;return this.resources.fetch({type:"customer_payment_sources"},`customers/${n}/customer_payment_sources`,t,r)}async customer_subscriptions(e,t,r){let n=e.id||e;return this.resources.fetch({type:"customer_subscriptions"},`customers/${n}/customer_subscriptions`,t,r)}async orders(e,t,r){let n=e.id||e;return this.resources.fetch({type:"orders"},`customers/${n}/orders`,t,r)}async order_subscriptions(e,t,r){let n=e.id||e;return this.resources.fetch({type:"order_subscriptions"},`customers/${n}/order_subscriptions`,t,r)}async returns(e,t,r){let n=e.id||e;return this.resources.fetch({type:"returns"},`customers/${n}/returns`,t,r)}async sku_lists(e,t,r){let n=e.id||e;return this.resources.fetch({type:"sku_lists"},`customers/${n}/sku_lists`,t,r)}async attachments(e,t,r){let n=e.id||e;return this.resources.fetch({type:"attachments"},`customers/${n}/attachments`,t,r)}async events(e,t,r){let n=e.id||e;return this.resources.fetch({type:"events"},`customers/${n}/events`,t,r)}async tags(e,t,r){let n=e.id||e;return this.resources.fetch({type:"tags"},`customers/${n}/tags`,t,r)}async jwt_customer(e,t,r){let n=e.id||e;return this.resources.fetch({type:"customers"},`customers/${n}/jwt_customer`,t,r)}async jwt_markets(e,t,r){let n=e.id||e;return this.resources.fetch({type:"markets"},`customers/${n}/jwt_markets`,t,r)}async jwt_stock_locations(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stock_locations"},`customers/${n}/jwt_stock_locations`,t,r)}async event_stores(e,t,r){let n=e.id||e;return this.resources.fetch({type:"event_stores"},`customers/${n}/event_stores`,t,r)}async _add_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_add_tags:r},n,i)}async _remove_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_remove_tags:r},n,i)}async _request_anonymization(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_request_anonymization:!0},r,n)}async _cancel_anonymization(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_cancel_anonymization:!0},r,n)}isCustomer(t){return t.type&&t.type===e.TYPE}relationship(e){return super.relationshipOneToOne(e)}relationshipToMany(...e){return super.relationshipOneToMany(...e)}
vendor: 13,450 bytes, line 11
11type(){return e.TYPE}},p=l,f=new class e extends p.ApiResource{static TYPE="line_item_options";async create(t,r,n){return this.resources.create({...t,type:e.TYPE},r,n)}async update(t,r,n){return this.resources.update({...t,type:e.TYPE},r,n)}async delete(t,r){await this.resources.delete("string"==typeof t?{id:t,type:e.TYPE}:t,r)}async line_item(e,t,r){let n=e.id||e;return this.resources.fetch({type:"line_items"},`line_item_options/${n}/line_item`,t,r)}async sku_option(e,t,r){let n=e.id||e;return this.resources.fetch({type:"sku_options"},`line_item_options/${n}/sku_option`,t,r)}async events(e,t,r){let n=e.id||e;return this.resources.fetch({type:"events"},`line_item_options/${n}/events`,t,r)}async tags(e,t,r){let n=e.id||e;return this.resources.fetch({type:"tags"},`line_item_options/${n}/tags`,t,r)}async event_stores(e,t,r){let n=e.id||e;return this.resources.fetch({type:"event_stores"},`line_item_options/${n}/event_stores`,t,r)}async _add_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_add_tags:r},n,i)}async _remove_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_remove_tags:r},n,i)}isLineItemOption(t){return t.type&&t.type===e.TYPE}relationship(e){return super.relationshipOneToOne(e)}relationshipToMany(...e){return super.relationshipOneToMany(...e)}type(){return e.TYPE}},g=l,C=new class e extends g.ApiResource{static TYPE="line_items";async create(t,r,n){return this.resources.create({...t,type:e.TYPE},r,n)}async update(t,r,n){return this.resources.update({...t,type:e.TYPE},r,n)}async delete(t,r){await this.resources.delete("string"==typeof t?{id:t,type:e.TYPE}:t,r)}async order(e,t,r){let n=e.id||e;return this.resources.fetch({type:"orders"},`line_items/${n}/order`,t,r)}async line_item_options(e,t,r){let n=e.id||e;return this.resources.fetch({type:"line_item_options"},`line_items/${n}/line_item_options`,t,r)}async return_line_items(e,t,r){let n=e.id||e;return this.resources.fetch({type:"return_line_items"},`line_items/${n}/return_line_items`,t,r)}async stock_reservations(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stock_reservations"},`line_items/${n}/stock_reservations`,t,r)}async stock_line_items(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stock_line_items"},`line_items/${n}/stock_line_items`,t,r)}async stock_transfers(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stock_transfers"},`line_items/${n}/stock_transfers`,t,r)}async notifications(e,t,r){let n=e.id||e;return this.resources.fetch({type:"notifications"},`line_items/${n}/notifications`,t,r)}async events(e,t,r){let n=e.id||e;return this.resources.fetch({type:"events"},`line_items/${n}/events`,t,r)}async tags(e,t,r){let n=e.id||e;return this.resources.fetch({type:"tags"},`line_items/${n}/tags`,t,r)}async event_stores(e,t,r){let n=e.id||e;return this.resources.fetch({type:"event_stores"},`line_items/${n}/event_stores`,t,r)}async _external_price(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_external_price:!0},r,n)}async _reserve_stock(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_reserve_stock:!0},r,n)}async _reset_restocked_quantity(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_reset_restocked_quantity:!0},r,n)}async _reset_circuit(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_reset_circuit:!0},r,n)}async _add_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_add_tags:r},n,i)}async _remove_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_remove_tags:r},n,i)}isLineItem(t){return t.type&&t.type===e.TYPE}relationship(e){return super.relationshipOneToOne(e)}relationshipToMany(...e){return super.relationshipOneToMany(...e)}type(){return e.TYPE}},m=l,_=new class e extends m.ApiResource{static TYPE="orders";async create(t,r,n){return this.resources.create({...t,type:e.TYPE},r,n)}async update(t,r,n){return this.resources.update({...t,type:e.TYPE},r,n)}async delete(t,r){await this.resources.delete("string"==typeof t?{id:t,type:e.TYPE}:t,r)}async market(e,t,r){let n=e.id||e;return this.resources.fetch({type:"markets"},`orders/${n}/market`,t,r)}async customer(e,t,r){let n=e.id||e;return this.resources.fetch({type:"customers"},`orders/${n}/customer`,t,r)}async shipping_address(e,t,r){let n=e.id||e;return this.resources.fetch({type:"addresses"},`orders/${n}/shipping_address`,t,r)}async billing_address(e,t,r){let n=e.id||e;return this.resources.fetch({type:"addresses"},`orders/${n}/billing_address`,t,r)}async store(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stores"},`orders/${n}/store`,t,r)}async default_shipping_method(e,t,r){let n=e.id||e;return this.resources.fetch({type:"shipping_methods"},`orders/${n}/default_shipping_method`,t,r)}async default_payment_method(e,t,r){let n=e.id||e;return this.resources.fetch({type:"payment_methods"},`orders/${n}/default_payment_method`,t,r)}async available_payment_methods(e,t,r){let n=e.id||e;return this.resources.fetch({type:"payment_methods"},`orders/${n}/available_payment_methods`,t,r)}async available_customer_payment_sources(e,t,r){let n=e.id||e;return this.resources.fetch({type:"customer_payment_sources"},`orders/${n}/available_customer_payment_sources`,t,r)}async available_free_skus(e,t,r){let n=e.id||e;return this.resources.fetch({type:"skus"},`orders/${n}/available_free_skus`,t,r)}async available_free_bundles(e,t,r){let n=e.id||e;return this.resources.fetch({type:"bundles"},`orders/${n}/available_free_bundles`,t,r)}async payment_method(e,t,r){let n=e.id||e;return this.resources.fetch({type:"payment_methods"},`orders/${n}/payment_method`,t,r)}async discount_engine_item(e,t,r){let n=e.id||e;return this.resources.fetch({type:"discount_engine_items"},`orders/${n}/discount_engine_item`,t,r)}async line_items(e,t,r){let n=e.id||e;return this.resources.fetch({type:"line_items"},`orders/${n}/line_items`,t,r)}async line_item_options(e,t,r){let n=e.id||e;return this.resources.fetch({type:"line_item_options"},`orders/${n}/line_item_options`,t,r)}async stock_reservations(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stock_reservations"},`orders/${n}/stock_reservations`,t,r)}async stock_line_items(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stock_line_items"},`orders/${n}/stock_line_items`,t,r)}async stock_transfers(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stock_transfers"},`orders/${n}/stock_transfers`,t,r)}async shipments(e,t,r){let n=e.id||e;return this.resources.fetch({type:"shipments"},`orders/${n}/shipments`,t,r)}async payment_options(e,t,r){let n=e.id||e;return this.resources.fetch({type:"payment_options"},`orders/${n}/payment_options`,t,r)}async authorizations(e,t,r){let n=e.id||e;return this.resources.fetch({type:"authorizations"},`orders/${n}/authorizations`,t,r)}async captures(e,t,r){let n=e.id||e;return this.resources.fetch({type:"captures"},`orders/${n}/captures`,t,r)}async voids(e,t,r){let n=e.id||e;return this.resources.fetch({type:"voids"},`orders/${n}/voids`,t,r)}async refunds(e,t,r){let n=e.id||e;return this.resources.fetch({type:"refunds"},`orders/${n}/refunds`,t,r)}async returns(e,t,r){let n=e.id||e;return this.resources.fetch({type:"returns"},`orders/${n}/returns`,t,r)}async order_subscription(e,t,r){let n=e.id||e;return this.resources.fetch({type:"order_subscriptions"},`orders/${n}/order_subscription`,t,r)}async order_subscriptions(e,t,r){let n=e.id||e;return this.resources.fetch({type:"order_subscriptions"},`orders/${n}/order_subscriptions`,t,r)}async order_factories(e,t,r){let n=e.id||e;return this.resources.fetch({type:"order_factories"},`orders/${n}/order_factories`,t,r)}async order_copies(e,t,r){let n=e.id||e;return this.resources.fetch({type:"order_copies"},`orders/${n}/order_copies`,t,r)}async recurring_order_copies(e,t,r){let n=e.id||e;return this.resources.fetch({type:"recurring_order_copies"},`orders/${n}/recurring_order_copies`,t,r)}async attachments(e,t,r){let n=e.id||e;return this.resources.fetch({type:"attachments"},`orders/${n}/attachments`,t,r)}async notifications(e,t,r){let n=e.id||e;return this.resources.fetch({type:"notifications"},`orders/${n}/notifications`,t,r)}async links(e,t,r){let n=e.id||e;return this.resources.fetch({type:"links"},`orders/${n}/links`,t,r)}async resource_errors(e,t,r){let n=e.id||e;return this.resources.fetch({type:"resource_errors"},`orders/${n}/resource_errors`,t,r)}async events(e,t,r){let n=e.id||e;return this.resources.fetch({type:"events"},`orders/${n}/events`,t,r)}async tags(e,t,r){let n=e.id||e;return this.resources.fetch({type:"tags"},`orders/${n}/tags`,t,r)}async event_stores(e,t,r){let n=e.id||e;return this.resources.fetch({type:"event_stores"},`orders/${n}/event_stores`,t,r)}async _archive(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_archive:!0},r,n)}async _unarchive(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_unarchive:!0},r,n)}async _pending(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_pending:!0},r,n)}async _place(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_place:!0},r,n)}async _cancel(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_cancel:!0},r,n)}async _approve(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_approve:!0},r,n)}async _approve_and_capture(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_approve_and_capture:!0},r,n)}async _authorize(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_authorize:!0},r,n)}async _authorization_amount_cents(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_authorization_amount_cents:r},n,i)}async _capture(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_capture:!0},r,n)}async _refund(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_refund:!0},r,n)}async _fulfill(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_fulfill:!0},r,n)}async _update_taxes(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_update_taxes:!0},r,n)}async _nullify_payment_source(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_nullify_payment_source:!0},r,n)}async _fix_payment_source(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_fix_payment_source:!0},r,n)}async _billing_address_clone_id(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_billing_address_clone_id:r},n,i)}async _shipping_address_clone_id(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_shipping_address_clone_id:r},n,i)}async _customer_payment_source_id(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_customer_payment_source_id:r},n,i)}async _shipping_address_same_as_billing(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_shipping_address_same_as_billing:!0},r,n)}async _billing_address_same_as_shipping(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_billing_address_same_as_shipping:!0},r,n)}async _commit_invoice(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_commit_invoice:!0},r,n)}async _refund_invoice(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_refund_invoice:!0},r,n)}async _save_payment_source_to_customer_wallet(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_save_payment_source_to_customer_wallet:!0},r,n)}async _save_shipping_address_to_customer_address_book(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_save_shipping_address_to_customer_address_book:!0},r,n)}async _save_billing_address_to_customer_address_book(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_save_billing_address_to_customer_address_book:!0},r,n)}async _refresh(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_refresh:!0},r,n)}async _refresh_prices(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_refresh_prices:!0},r,n)}async _validate(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_validate:!0},r,n)}async _create_subscriptions(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_create_subscriptions:!0},r,n)}async _start_editing(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_start_editing:!0},r,n)}async _stop_editing(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_stop_editing:!0},r,n)}async _reset_circuit(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_reset_circuit:!0},r,n)}async _add_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_add_tags:r},n,i)}async _remove_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_remove_tags:r},n,i)}isOrder(t){return t.type&&t.type===e.TYPE}relationship(e){return super.relationshipOneToOne(e)}relationshipToMany(...e){return super.relationshipOneToMany(...e)}
11type(){return e.TYPE}},y=l,E=new class e extends y.ApiResource{static TYPE="payment_methods";async create(t,r,n){return this.resources.create({...t,type:e.TYPE},r,n)}async update(t,r,n){return this.resources.update({...t,type:e.TYPE},r,n)}async delete(t,r){await this.resources.delete("string"==typeof t?{id:t,type:e.TYPE}:t,r)}async market(e,t,r){let n=e.id||e;return this.resources.fetch({type:"markets"},`payment_methods/${n}/market`,t,r)}async payment_gateway(e,t,r){let n=e.id||e;return this.resources.fetch({type:"payment_gateways"},`payment_methods/${n}/payment_gateway`,t,r)}async store(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stores"},`payment_methods/${n}/store`,t,r)}async attachments(e,t,r){let n=e.id||e;return this.resources.fetch({type:"attachments"},`payment_methods/${n}/attachments`,t,r)}async event_stores(e,t,r){let n=e.id||e;return this.resources.fetch({type:"event_stores"},`payment_methods/${n}/event_stores`,t,r)}async _disable(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_disable:!0},r,n)}async _enable(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_enable:!0},r,n)}isPaymentMethod(t){return t.type&&t.type===e.TYPE}relationship(e){return super.relationshipOneToOne(e)}relationshipToMany(...e){return super.relationshipOneToMany(...e)}type(){return e.TYPE}},v=l,w=new class e extends v.ApiResource{static TYPE="shipments";async create(t,r,n){return this.resources.create({...t,type:e.TYPE},r,n)}async update(t,r,n){return this.resources.update({...t,type:e.TYPE},r,n)}async delete(t,r){await this.resources.delete("string"==typeof t?{id:t,type:e.TYPE}:t,r)}async order(e,t,r){let n=e.id||e;return this.resources.fetch({type:"orders"},`shipments/${n}/order`,t,r)}async shipping_category(e,t,r){let n=e.id||e;return this.resources.fetch({type:"shipping_categories"},`shipments/${n}/shipping_category`,t,r)}async inventory_stock_location(e,t,r){let n=e.id||e;return this.resources.fetch({type:"inventory_stock_locations"},`shipments/${n}/inventory_stock_location`,t,r)}async stock_location(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stock_locations"},`shipments/${n}/stock_location`,t,r)}async origin_address(e,t,r){let n=e.id||e;return this.resources.fetch({type:"addresses"},`shipments/${n}/origin_address`,t,r)}async shipping_address(e,t,r){let n=e.id||e;return this.resources.fetch({type:"addresses"},`shipments/${n}/shipping_address`,t,r)}async shipping_method(e,t,r){let n=e.id||e;return this.resources.fetch({type:"shipping_methods"},`shipments/${n}/shipping_method`,t,r)}async delivery_lead_time(e,t,r){let n=e.id||e;return this.resources.fetch({type:"delivery_lead_times"},`shipments/${n}/delivery_lead_time`,t,r)}async pickup(e,t,r){let n=e.id||e;return this.resources.fetch({type:"pickups"},`shipments/${n}/pickup`,t,r)}async stock_line_items(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stock_line_items"},`shipments/${n}/stock_line_items`,t,r)}async stock_transfers(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stock_transfers"},`shipments/${n}/stock_transfers`,t,r)}async line_items(e,t,r){let n=e.id||e;return this.resources.fetch({type:"line_items"},`shipments/${n}/line_items`,t,r)}async available_shipping_methods(e,t,r){let n=e.id||e;return this.resources.fetch({type:"shipping_methods"},`shipments/${n}/available_shipping_methods`,t,r)}async carrier_accounts(e,t,r){let n=e.id||e;return this.resources.fetch({type:"carrier_accounts"},`shipments/${n}/carrier_accounts`,t,r)}async parcels(e,t,r){let n=e.id||e;return this.resources.fetch({type:"parcels"},`shipments/${n}/parcels`,t,r)}async attachments(e,t,r){let n=e.id||e;return this.resources.fetch({type:"attachments"},`shipments/${n}/attachments`,t,r)}async events(e,t,r){let n=e.id||e;return this.resources.fetch({type:"events"},`shipments/${n}/events`,t,r)}async tags(e,t,r){let n=e.id||e;return this.resources.fetch({type:"tags"},`shipments/${n}/tags`,t,r)}async event_stores(e,t,r){let n=e.id||e;return this.resources.fetch({type:"event_stores"},`shipments/${n}/event_stores`,t,r)}async _upcoming(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_upcoming:!0},r,n)}async _cancel(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_cancel:!0},r,n)}async _on_hold(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_on_hold:!0},r,n)}async _picking(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_picking:!0},r,n)}async _packing(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_packing:!0},r,n)}async _ready_to_ship(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_ready_to_ship:!0},r,n)}async _ship(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_ship:!0},r,n)}async _deliver(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_deliver:!0},r,n)}async _reserve_stock(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_reserve_stock:!0},r,n)}async _release_stock(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_release_stock:!0},r,n)}async _decrement_stock(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_decrement_stock:!0},r,n)}async _get_rates(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_get_rates:!0},r,n)}async _purchase(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_purchase:!0},r,n)}async _add_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_add_tags:r},n,i)}async _remove_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_remove_tags:r},n,i)}isShipment(t){return t.type&&t.type===e.TYPE}relationship(e){return super.relationshipOneToOne(e)}relationshipToMany(...e){return super.relationshipOneToMany(...e)}
11type(){return e.TYPE}},b=l,D=new class e extends b.ApiResource{static TYPE="shipping_methods";async create(t,r,n){return this.resources.create({...t,type:e.TYPE},r,n)}async update(t,r,n){return this.resources.update({...t,type:e.TYPE},r,n)}async delete(t,r){await this.resources.delete("string"==typeof t?{id:t,type:e.TYPE}:t,r)}async market(e,t,r){let n=e.id||e;return this.resources.fetch({type:"markets"},`shipping_methods/${n}/market`,t,r)}async shipping_zone(e,t,r){let n=e.id||e;return this.resources.fetch({type:"shipping_zones"},`shipping_methods/${n}/shipping_zone`,t,r)}async shipping_category(e,t,r){let n=e.id||e;return this.resources.fetch({type:"shipping_categories"},`shipping_methods/${n}/shipping_category`,t,r)}async stock_location(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stock_locations"},`shipping_methods/${n}/stock_location`,t,r)}async delivery_lead_time_for_shipment(e,t,r){let n=e.id||e;return this.resources.fetch({type:"delivery_lead_times"},`shipping_methods/${n}/delivery_lead_time_for_shipment`,t,r)}async shipping_method_tiers(e,t,r){let n=e.id||e;return this.resources.fetch({type:"shipping_method_tiers"},`shipping_methods/${n}/shipping_method_tiers`,t,r)}async shipping_weight_tiers(e,t,r){let n=e.id||e;return this.resources.fetch({type:"shipping_weight_tiers"},`shipping_methods/${n}/shipping_weight_tiers`,t,r)}async attachments(e,t,r){let n=e.id||e;return this.resources.fetch({type:"attachments"},`shipping_methods/${n}/attachments`,t,r)}async notifications(e,t,r){let n=e.id||e;return this.resources.fetch({type:"notifications"},`shipping_methods/${n}/notifications`,t,r)}async events(e,t,r){let n=e.id||e;return this.resources.fetch({type:"events"},`shipping_methods/${n}/events`,t,r)}async tags(e,t,r){let n=e.id||e;return this.resources.fetch({type:"tags"},`shipping_methods/${n}/tags`,t,r)}async event_stores(e,t,r){let n=e.id||e;return this.resources.fetch({type:"event_stores"},`shipping_methods/${n}/event_stores`,t,r)}async _disable(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_disable:!0},r,n)}async _enable(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_enable:!0},r,n)}async _reset_circuit(t,r,n){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_reset_circuit:!0},r,n)}async _add_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_add_tags:r},n,i)}async _remove_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_remove_tags:r},n,i)}isShippingMethod(t){return t.type&&t.type===e.TYPE}relationship(e){return super.relationshipOneToOne(e)}relationshipToMany(...e){return super.relationshipOneToMany(...e)}type(){return e.TYPE}},T=l,I=new class e extends T.ApiResource{static TYPE="sku_options";async create(t,r,n){return this.resources.create({...t,type:e.TYPE},r,n)}async update(t,r,n){return this.resources.update({...t,type:e.TYPE},r,n)}async delete(t,r){await this.resources.delete("string"==typeof t?{id:t,type:e.TYPE}:t,r)}async market(e,t,r){let n=e.id||e;return this.resources.fetch({type:"markets"},`sku_options/${n}/market`,t,r)}async attachments(e,t,r){let n=e.id||e;return this.resources.fetch({type:"attachments"},`sku_options/${n}/attachments`,t,r)}async events(e,t,r){let n=e.id||e;return this.resources.fetch({type:"events"},`sku_options/${n}/events`,t,r)}async tags(e,t,r){let n=e.id||e;return this.resources.fetch({type:"tags"},`sku_options/${n}/tags`,t,r)}async event_stores(e,t,r){let n=e.id||e;return this.resources.fetch({type:"event_stores"},`sku_options/${n}/event_stores`,t,r)}async _add_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_add_tags:r},n,i)}async _remove_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_remove_tags:r},n,i)}isSkuOption(t){return t.type&&t.type===e.TYPE}relationship(e){return super.relationshipOneToOne(e)}relationshipToMany(...e){return super.relationshipOneToMany(...e)}type(){return e.TYPE}}
11,S=l,A=new class e extends S.ApiResource{static TYPE="skus";async create(t,r,n){return this.resources.create({...t,type:e.TYPE},r,n)}async update(t,r,n){return this.resources.update({...t,type:e.TYPE},r,n)}async delete(t,r){await this.resources.delete("string"==typeof t?{id:t,type:e.TYPE}:t,r)}async shipping_category(e,t,r){let n=e.id||e;return this.resources.fetch({type:"shipping_categories"},`skus/${n}/shipping_category`,t,r)}async prices(e,t,r){let n=e.id||e;return this.resources.fetch({type:"prices"},`skus/${n}/prices`,t,r)}async stock_items(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stock_items"},`skus/${n}/stock_items`,t,r)}async stock_reservations(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stock_reservations"},`skus/${n}/stock_reservations`,t,r)}async delivery_lead_times(e,t,r){let n=e.id||e;return this.resources.fetch({type:"delivery_lead_times"},`skus/${n}/delivery_lead_times`,t,r)}async sku_options(e,t,r){let n=e.id||e;return this.resources.fetch({type:"sku_options"},`skus/${n}/sku_options`,t,r)}async sku_list_items(e,t,r){let n=e.id||e;return this.resources.fetch({type:"sku_list_items"},`skus/${n}/sku_list_items`,t,r)}async sku_lists(e,t,r){let n=e.id||e;return this.resources.fetch({type:"sku_lists"},`skus/${n}/sku_lists`,t,r)}async attachments(e,t,r){let n=e.id||e;return this.resources.fetch({type:"attachments"},`skus/${n}/attachments`,t,r)}async links(e,t,r){let n=e.id||e;return this.resources.fetch({type:"links"},`skus/${n}/links`,t,r)}async events(e,t,r){let n=e.id||e;return this.resources.fetch({type:"events"},`skus/${n}/events`,t,r)}async tags(e,t,r){let n=e.id||e;return this.resources.fetch({type:"tags"},`skus/${n}/tags`,t,r)}async jwt_customer(e,t,r){let n=e.id||e;return this.resources.fetch({type:"customers"},`skus/${n}/jwt_customer`,t,r)}async jwt_markets(e,t,r){let n=e.id||e;return this.resources.fetch({type:"markets"},`skus/${n}/jwt_markets`,t,r)}async jwt_stock_locations(e,t,r){let n=e.id||e;return this.resources.fetch({type:"stock_locations"},`skus/${n}/jwt_stock_locations`,t,r)}async event_stores(e,t,r){let n=e.id||e;return this.resources.fetch({type:"event_stores"},`skus/${n}/event_stores`,t,r)}async _add_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_add_tags:r},n,i)}async _remove_tags(t,r,n,i){return this.resources.update({id:"string"==typeof t?t:t.id,type:e.TYPE,_remove_tags:r},n,i)}isSku(t){return t.type&&t.type===e.TYPE}relationship(e){return super.relationshipOneToOne(e)}relationshipToMany(...e){return super.relationshipOneToMany(...e)}type(){return e.TYPE}},O=e.i(38865),R=((t={}).De="de",t.En="en",t.Es="es",t.Fr="fr",t.It="it",t);e.s(["SiteLocale",()=>R],16086);var N=e.i(74728),P=e.i(63642);let k="_user",L="_cartId";e.s(["CART_ID_KEY",0,L,"COMMERCE_LAYER_DATE_FORMAT",0,"YYYY-MM-DD","COUNTRY_CODE_KEY",0,"_countryCode","FREE_PAYMENT_METADATA_NAME",0,"free_payment","GIFT_MESSAGE_KEY",0,"_gift_message","MAX_CART_QTY_FALLBACK",0,1e3,"TOAST_TIMEOUT",0,5e3,"USER_KEY",0,k],69841);let F=(e,t)=>{let{projectName:r}=P.default;try{localStorage.setItem(`${r}${e}`,t)}catch(e){console.error("localStorageSetItem",e)}},x=e=>{let{projectName:t}=P.default;try{return localStorage.getItem(`${t}${e}`)}catch(e){console.error("localStorageGetItem",e)}},M=e=>{let{projectName:t}=P.default;try{localStorage.removeItem(`${t}${e}`)}catch(e){console.error("localStorageRemoveItem",e)}},G=()=>{try{let e=x(k);return e?JSON.parse(e):null}catch(e){console.error("ERROR GETTING USER SESSION",e)}},U=e=>{try{F(k,JSON.stringify(e))}catch(e){console.error("ERROR SETTING USER SESSION",e)}},H=()=>{try{M(k)}catch(e){console.error("ERROR DELETING USER SESSION",e)}},V=()=>{try{return x(L)}catch(e){console.error("ERROR GETTING CART ID SESSION",e)}},j=e=>{try{F(L,e)}catch(e){console.error("ERROR SETTING CART ID SESSION",e)}},z=()=>{try{M(L)}catch(e){console.error("ERROR DELETING CART ID SESSION",e)}};e.s(["deleteCartIdSession",0,z,"deleteUserSession",0,H,"getCartIdSession",0,V,"getUserSession",0,G,"localStorageGetItem",0,x,"localStorageRemoveItem",0,M,"localStorageSetItem",0,F,"setCartIdSession",0,j,"setUserSession",0,U],21816);let{Axios:J,AxiosError:K,CanceledError:q,isCancel:Y,CancelToken:$,VERSION:W,all:Q,Cancel:Z,isAxiosError:X,spread:ee,toFormData:et,AxiosHeaders:er,HttpStatusCode:en,formToJSON:ei,getAdapter
11:es,mergeConfig:ea,create:eo}=e.i(81949).default;e.s(["AxiosError",0,K],91476);let el=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,eu=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,ec=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function eB(e,t){var r;return"__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t?void(r=e,console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)):t}function eh(e,t={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return NaN;case"infinity":return 1/0;case"-infinity":return-1/0}if(!ec.test(e)){if(t.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(el.test(e)||eu.test(e)){if(t.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,eB)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}var ed=e.i(67034);function ep(e,...t){try{var r;return(r=e(...t))&&"function"==typeof r.then?r:Promise.resolve(r)}catch(e){return Promise.reject(e)}}function ef(e){let t,r;if(t=typeof e,null===e||"object"!==t&&"function"!==t)return String(e);if(!(r=Object.getPrototypeOf(e))||r.isPrototypeOf(Object)||Array.isArray(e))return JSON.stringify(e);if("function"==typeof e.toJSON)return ef(e.toJSON());throw Error("[unstorage] Cannot stringify value!")}let eg="base64:";function eC(e){return e&&e.split("?")[0]?.replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,"")||""}function em(e){return(e=eC(e))?e+":":""}function e_(e,t,r){return e.watch?e.watch((e,n)=>t(e,r+n)):()=>{}}async function ey(e){"function"==typeof e.dispose&&await ep(e.dispose)}function eE(e,t,r){let n=Error(`[unstorage] [${e}] ${t}`,r);return Error.captureStackTrace&&Error.captureStackTrace(n,eE),n}let ev="localstorage";var ew=e.i(87644);let eb=()=>{(0,ew.sendGTMEvent)({event:"sign_up"})},eD=(e,t,r,n)=>{try{let i={...{event:"add_to_cart",event_trigger:"ecomm",ecommerce:{currency:e.currency_code,value:e.unit_amount_float*t,items:eI([e],!1,t,r,n)}}};eS(i)}catch(e){console.error(e)}},eT=(e,t=e.quantity)=>{try{let r={...{event:"remove_from_cart",event_trigger:"ecomm",ecommerce:{currency:e.currency_code,value:e.unit_amount_float*t,items:eI([e],!1,t)}}};eS(r)}catch(e){console.error(e)}},eI=(e,t=!1,r,n,i)=>e.filter(e=>"skus"==e.item_type||"bundles"==e.item_type).map(e=>({...void 0!==n?{index:n}:{},item_brand:null,item_name:e.name,...!!i&&{item_list_name:i},item_id:e.sku_code||e.bundle_code,price:parseFloat(e.unit_amount_float.toFixed(2)),quantity:r||e.quantity||e.metadata.maxQuantity,...t?{is_saleable:e.metadata.maxQuantity>0}:{}})),eS=e=>{(0,ew.sendGTMEvent)({ecommerce:null}),(0,ew.sendGTMEvent)(e)},eA=(e,t)=>{"u">typeof dataLayer&&dataLayer.splice(e,0,{ecommerce:null},t)};e.s(["trackAddPaymentInfo",0,e=>{if(e)try{let t={...{event:"add_payment_info",event_trigger:"ecomm",ecommerce:{currency:e.currency_code,value:parseFloat(e.formatted_total_amount_with_taxes.replace(/[^\d.,]/g,"").replace(",","."))}}};eS(t)}catch{}},"trackAddShippingInfo",0,e=>{if(e)try{let t={...{event:"add_shipping_info",event_trigger:"ecomm",ecommerce:{currency:e.currency_code,value:parseFloat(e.formatted_total_amount_with_taxes.replace(/[^\d.,]/g,"").replace(",","."))}}};eA(1,t)}catch(e){console.error(e)}},"trackAddToCart",0,eD,"trackLogin",0,()=>{(0,ew.sendGTMEvent)({event:"login"})},"trackProductListView",0,(e,t,r)=>{try{let n=t.map(t=>({item_id:t.item_id,item_name:t.item_name,index:t.index,item_list_name:e,price:t.price,quantity:1}));eS({event:"view_item_list",ecommerce:{currency:r,item_list_name:e,items:n}})}catch(e){console.error(e)}},"trackProductSelectView",0,(e,t)=>{try{let r={event:"select_item",ecommerce:{currency:t,item_list_name:e.item_list_name,items:[{item_id:e.item_id,item_name:e.item_name,index:e.index,item_list_name:e.item_list_name,price:e.price,quantity:e.quantity??1}]}};eS(r)}catch(e){console.error(e)}},"trackProductView",0,e=>{try{e.metadata.maxQuantity=e.maxQuantity;let t={id:e.id,type:"line_items",item_type:"bundles"==e.type?"bundles":"skus",name:e.name,sku_code:e.skuCode,unit_amount_float:e.price.amount_float,quantity:0,total_amount_float:e.price.amount_float,tax_amount_float:0,created_at:null,updated_at:null,metadata:e.metadata}
11,r={...{event:"view_item",event_trigger:"ecomm",ecommerce:{currency:e.price.currency_code,value:parseFloat(e.price.amount_float.toFixed(2)),items:eI([t],!0)}}};eA(1,r)}catch(e){console.error(e)}},"trackPurchase",0,e=>{try{if(!e)return;let t=e.line_items.filter(e=>e?.item_type=="adjustments"&&e?.name=="shipping_cost").reduce((e,t)=>e+t.total_amount_float,0),r={...{event:"purchase",event_trigger:"ecomm",ecommerce:{currency:e.currency_code,transaction_id:e.number,value:e.total_amount_with_taxes_float,shipping:t,tax:e.total_tax_amount_float,coupon:e.coupon_code||null,items:eI(e.line_items)}}};eS(r)}catch(e){console.error(e)}},"trackRemoveFromCart",0,eT,"trackSignUp",0,eb,"trackStepBeginCheckoutEvent",0,e=>{if(e)try{let t={...{event:"begin_checkout",event_trigger:"ecomm",ecommerce:{currency:e.currency_code,value:parseFloat(e.formatted_total_amount_with_taxes.replace(/[^\d.,]/g,"").replace(",",".")),items:eI(e.line_items)}}};eS(t)}catch(e){console.error(e)}},"trackViewCartEvent",0,e=>{try{let t={...{event:"view_cart",event_trigger:"ecomm",ecommerce:{currency:e.currency_code,value:parseFloat(e.formatted_total_amount_with_taxes.replace(/[^\d.,]/g,"").replace(",",".")),items:eI(e.line_items)}}};eA(1,t)}catch(e){console.error(e)}}],11892);let eO="/api",eR="evywPktb8qg3zUYmdEty2HXfSWpZAgRvW60E4iNjmlw";e.s(["AppCommerceLayerClient",0,class{marketId;countryCode;order;customer;apiClientUrl;constructor(e,t){this.marketId=e,this.countryCode=t,this.apiClientUrl="",this.getCustomer=()=>this.customer,this.upsertAddress=async e=>{if(e.id)return await this.updateAddress(e);{let t=await this.createAddress(e),r=await this.getCustomer();return await u.create({customer_email:r.email,customer:d.relationship(r.id),address:i.addresses.relationship(t.id)})}},this.calculateSkusInventoryFromStockItems=e=>e.map(e=>{let t=this.sumStockItemsQuantity(e);return e.inventory={...e.inventory,quantity:t,available:t>0},e}),this.sumStockItemsQuantity=e=>(e.stock_items||[]).reduce((e,t)=>e+=(t?.quantity||0)-(t.reserved_stock?.quantity||0),0),this.verifyOrderConsistency=async e=>{let t=this.getOrderId();if(t){let r=await this.fetchOrder(t),n=r?.billing_address?.id===e?void 0:r?.billing_address?.id,i=r?.shipping_address?.id===e?void 0:r?.shipping_address?.id;n&&i||this.setAddresses({orderId:t,billId:n,shipId:i})}},this.apiClientUrl="https://cusumano.commercelayer.io/api"}async init(){let e=await this.getToken();if((0,n.default)({accessToken:e.accessToken}).addRawResponseReader(),!this.customer){let e=G();if(e)try{let t=await d.retrieve(e.owner_id,{include:["customer_addresses.address"]});this.customer=t}catch(e){this.cleanup(),this.logError("loginFromSession ERROR",e),await this.checkError(e)}}}getOrderId(){return V()}cleanup(){this.deleteCart(),H(),this.customer=void 0}async getProductList(e){let t=[];try{let r=!0,n=1;for(;r;){let i=await A.list({filters:{code_matches_any:e.join(",")},include:["sku_options","prices","stock_items","stock_items.reserved_stock"],pageNumber:n,pageSize:25});t.push(...i),r=++n<=i.meta.pageCount}}catch(e){this.logError("getProductList",e)}return this.calculateSkusInventoryFromStockItems(t)}async getProductFromSku(e){if(!e)return null;try{let t=await A.list({filters:{code_matches_any:e}});if(!t?.first())return null;return this.getProduct(t.first().id)}catch(e){this.logError("getProductFromSku",e)}}async getProduct(e){try{return await A.retrieve(e,{include:["sku_options","prices","stock_items","stock_items.reserved_stock"]})}catch(e){this.logError("getProduct",e)}}async getBundleList(e){let t=[];try{let r=!0,n=1;for(;r;){let i=await a.bundles.list({filters:{code_matches_any:e.join(",")},include:["skus","skus.stock_items","sku_list.sku_list_items","skus.stock_items.reserved_stock"],pageNumber:n,pageSize:25});t.push(...i),r=++n<=i.meta.pageCount}}catch(e){this.logError("getBundleList",e)}return t.map(e=>(e.skus=this.calculateSkusInventoryFromStockItems(e.skus),e))}async getBundleFromSku(e){if(!e)return null;try{let t=await a.bundles.list({filters:{code_matches_any:e}});if(!t?.first())return null;return await this.getBundle(t.first().id)}catch(e){this.logError("getBundleFromSku",e)}}async getBundle(e){try{return await a.bundles.retrieve(e,{include:["skus","skus.stock_items","sku_list.sku_list_items","skus.stock_items.reserved_stock"]})}catch(e){this.logError("getBundle",e)}
11}async login(e){if(!e.email||!e.password)throw"WRONG_CREDENTIALS";try{let t=await this.getCustomerCredentials(e.email,e.password);if(t.errors)throw"WRONG_CREDENTIALS";let r=this.getSalesChannel();await r.setCustomer({accessToken:t.accessToken,scope:t.scope,refreshToken:t.refreshToken}),await r.getAuthorization();let n={email:e.email,owner_id:t.ownerId,accessToken:t.accessToken,refreshToken:t.refreshToken};return U(n),await this.init(),await this.postLoginOperations(),n}catch(e){throw"WRONG_CREDENTIALS"!=e&&this.logError("LOGIN ERROR",e),e}}async register(e,t,r=!1){let{email:n,password:i}=e;return await this.doRegister({email:n,password:i,metadata:t,subscribeConsent:r})}async logout(){this.cleanup();let e=this.getSalesChannel();await e.logoutCustomer(),await this.init(),await this.createOrder()}countOrderProductsQuantity(e){let t=e?.line_items;return t?t.filter(e=>"skus"===e.item_type||"bundles"===e.item_type).map(e=>e.quantity).reduce((e,t)=>e+t,0):0}async addToCart(e,t,r=1,n){let i={error:void 0,success:!0,image:e.image,name:e.name,incQuantity:r},{id:s,skuCode:a,name:o,image:l,option:u,maxQuantity:c,levels:B,url:h,metadata:d}=e;this.order||(this.order=await this.getOrder()),this.order||(this.order=await this.createOrder());try{let e=await C.create({order:_.relationship(this.order.id),item:A.relationship(s),quantity:r,sku_code:a,name:o,image_url:l.src,_update_quantity:!0,metadata:{...d,maxQuantity:c,levels:B,url:h}},{include:["line_item_options"]});u&&(await this.updateOrCreateLineItemOption(u,e),await this.refreshOrder(this.order.id)),eD(e,r,t,n)}catch(e){this.logError("CART CREATE error",e),i={...i,error:e,success:!1}}return i}async addBundleToCart(e,t,r=1,n){let i={error:void 0,success:!0,image:e.image,name:e.name,incQuantity:r},{skuCode:s,name:o,image:l,maxQuantity:u,levels:c,id:B,url:h,metadata:d,option:p}=e,f=this.order;f||(f=await this.getOrder()),f||(f=await this.createOrder());try{let e=await C.create({order:_.relationship(f.id),item:a.bundles.relationship(B),quantity:r,name:o,bundle_code:s,image_url:l.src,_update_quantity:!0,metadata:{...d,maxQuantity:u,levels:c,url:h}},{include:["line_item_options"]});p&&(await this.updateOrCreateLineItemOption(p,e),await this.refreshOrder(f.id)),e.sku_code=e.bundle_code,eD(e,r,t,n)}catch(e){this.logError("addBundleToCart create",e),i={...i,error:e,success:!1}}return i}async removeLineItem(e){try{await C.delete(e.id),eT(e)}catch(e){this.logError("removeLineItem error",e)}}async checkEtagUpdate(e,t=!1){for(let t=0;t<5;t++){let t=await this.getOrder(),r=t?.metadata?.etag;if(r&&r!==e)return t;await this.sleep(1e3)}if(!t)return await this.refreshOrder(this.getOrderId()),this.checkEtagUpdate(e,!0)}async refreshOrder(e){return await _._refresh(e)}async fetchOrder(e){try{let t=await _.retrieve(e,{include:["line_items","billing_address","shipping_address","available_payment_methods","shipments.available_shipping_methods","payment_method","payment_source","customer.customer_addresses.address"]});return this.order=t,t}catch(e){this.logError("fetchOrder",e),await this.checkError(e)}}async addCustomerEmail(e,t){try{return await _.update({id:e,customer_email:t,_refresh:!0})}catch(r){if(!this.isCouponError(r))throw this.logError("addCustomerEmail",r),r;try{return await _.update({id:e,customer_email:t,coupon_code:null,_refresh:!0})}catch(e){throw this.logError("setOrderCustomer retry error",e),e}}}async setPaymentMethod(e,t){try{return await _.update({id:e,payment_method:E.relationship(t)})}catch(e){throw this.logError("setPaymentMethod error",e),e}}async deletePaymentSource(e,t){let r=`${this.apiClientUrl}/${e}/${t}`,n=await N.api.delete(r,{headers:await this.getHeaders()}).catch(function(e){e.response?console.error(e.response.data,e.response.status,e.response.headers):e.request?console.error(e.request):console.error("Error",e.message),console.error(e.config)});if(n)return n.data}async setPaymentSource(e,t="braintree_payments"){let r=`${this.apiClientUrl}/${t}`;try{return(await N.api.post(r,{data:{type:t,attributes:{},relationships:{order:{data:{type:"orders",id:e}}}}},{headers:await this.getHeaders()})).data}catch(e){throw this.logError("setPaymentSource error",e),e}}async updateBraintreePaymentSource(e,t){try{return await s.braintree_payments.update({id:e,payment_method_nonce:t})}catch(e){throw this.logError("updateBraintreePaymentSource error",e),e}}async placeOrder(e,t,r,n={},i=R.En){try{return await _.update({id:e,_place:!0,language_code:i,metadata:n,_shipping_address_clone_id:t,_billing_address_clone_id:r})}catch(e){throw this.logError("placeOrder",e),e}}async addAddressToCustomer(e,t){try{return u.create({customer:d.relationship(e),address:i.addresses.relationship(t)})}catch(e){this.logError("addAddressToCustomer",e)}}async setAddresses(e){try{let t={id:e.orderId};return e.billId&&(t.billing_address=i.addresses.relationship(e.billId)),e.shipId&&(t.shipping_address=i.addresses.relationship(e.shipId)),await _.update(t,{include:["billing_address","shipping_address"]})}catch(e){this.logError("setAddresses",e)}}async setShipping(e){try{return await w.update({id:e.shipmentId,shipping_method:D.relationship(e.shippingMethodId)})}catch(e){throw this.logError("setShipping",e),e}}async removeCoupon(e){try{return await _.update({id:e,coupon_code:null})}catch(e){throw this.logError("removeCoupon",e),e}}async addCoupon(e){return await _.update({id:e.orderId,coupon_code:e.code})}async subscribeToProfilingOrNewsletter(e){let{email:t,metadata:r}=e;try{return await B.create({customer_email:t,reference:r?.consent_type||"Newsletter",metadata:r})}catch(e){if(o.CommerceLayerStatic.isApiError(e)&&422==e.errors[0].status)return;this.logError("subscribeToProfilingOrNewsletter",e)}}async resetPassword(e){let t=`${eO}/resetPassword`;return(await N.api.post(t,e,{headers:this.headers})).data}async changePassword(e){try{let t=`${eO}/changePassword`;return(await N.api.post(t,e,{headers:this.headers})).data}catch(e){throw this.logError("changePassword",e),e}}async updateCustomer(e){let t=this.getCustomer();return d.update({id:t?.id,...e})}async updateAddress(e){try{let t=this.getAddressUpdate(e);return await i.addresses.update(t)}catch(e){throw this.logError("updateAddress",e),e}}async createAddress(e){try{let t=this.getAddressCreate(e);return await i.addresses.create(t)}catch(e){throw this.logError("createAddress",e),e}}async updateItemAvailability(e,t){try{return await C.update({id:e,quantity:t,metadata:{availability:t}})}catch(e){throw this.logError("updateItemAvailability",e),e}}async getOrder(){let e=this.getOrderId();if(e)try{let t;try{t=await this.fetchOrder(e)}
11catch(e){this.deleteCart()}return t&&("pending"===t.status||"draft"===t.status)||(t=await this.createOrder()),this.order=t,t}catch(e){this.logError("GET ORDER ERROR",e),await this.checkError(e)}}async updateLineItemQuantity(e,t){let{quantity:r}=e,n=(await this.updateLineItemQty(e.id,t)).line_item_options;n&&n.length>0&&(n.forEach(async e=>{await this.updateLineItemOptionQty(e.id,t)}),await this.refreshOrder(this.order.id)),r&&r>=t?eT(e,r-t):r&&eD(e,t-r)}getCustomer;async deleteAddressAndCustomerAddressesById(e,t){await u.delete(e),await i.addresses.delete(t),await this.verifyOrderConsistency(t)}async getAddressList(e){let t=[];if("customer"===(await this.getToken()).ownerType){let r=!0,n=0;for(;r;){let i={include:["address"],pageNumber:n+=1,pageSize:25,filters:{}};e&&(i.filters={address_country_code_eq:e});let s=await u.list(i);(!s||s?.length<25)&&(r=!1),t.push(...s)}return t.filter(e=>this.isValidCustomerAddress(e))}return t}isValidCustomerAddress(e){return e.address?.metadata?.type!=="test"}async getAddressById(e){return await i.addresses.retrieve(e)}upsertAddress;async getToken(){try{let e=this.getSalesChannel();return await e.getAuthorization()}catch(e){this.logError("getToken error",e),this.getSalesChannel().removeAuthorization()}let e=this.getSalesChannel();return await e.getAuthorization()}deleteCart(){z(),this.order=void 0}async getCustomerCredentials(e,t){let n=`market:id:${this.marketId}`;return await (0,r.authenticate)("password",{clientId:eR,scope:n,username:e,password:t})}calculateSkusInventoryFromStockItems;sumStockItemsQuantity;async postLoginOperations(){let e=this.getCustomer();if(e.customer_addresses){let t=e.customer_addresses.filter(e=>e.address?.country_code===this.countryCode);t.length>0&&await this.migrateAddressesIfNeeded(t),this.removeInvalidAddress(e.customer_addresses)}let t=await this.getOrder();t&&await this.setOrderCustomer(t.id,e.id)}async removeInvalidAddress(e){e.forEach(async e=>{"US"==e.address.country_code&&2!=e.address.state_code.length&&(await u.delete(e.id),await i.addresses.delete(e.address.id)),e.address?.metadata?.type=="test"&&await u.delete(e.id)})}async migrateAddressesIfNeeded(e){let t=this.extractOldAddresses(e);if(t.length>0)for await(let e of t)e.address&&await this.updateAddress(e.address)}extractOldAddresses(e){return e.filter(e=>!(e.address?.metadata&&"isBilling"in e.address?.metadata&&"isShipping"in e.address?.metadata))}async doRegister(e){let t=`${eO}/signup`;try{let r=await N.api.post(t,e,{headers:this.headers});return eb(),r.data}catch(e){throw e}}async updateOrCreateLineItemOption(e,t){let r=t.quantity,n=t?.line_item_options;n&&n.length>0?n.forEach(async e=>{await this.updateLineItemOptionQty(e.id,r)}):await f.create({name:e.name,quantity:r,options:{description:e.description},line_item:C.relationship(t.id),sku_option:I.relationship(e.id)})}async checkError(e){o.CommerceLayerStatic.isApiError(e)&&401==e.status&&(this.cleanup(),await this.init())}async setOrderCustomer(e,t){let r=d.relationship(t);try{return await _.update({id:e,customer:r,_refresh:!0})}catch(t){if(!this.isCouponError(t))throw this.logError("setOrderCustomer error",t),t;try{return await _.update({id:e,customer:r,coupon_code:null,_refresh:!0})}catch(e){throw this.logError("setOrderCustomer retry error",e),e}}}async getHeaders(){return{Accept:"application/vnd.api+json","Content-Type":"application/vnd.api+json",Authorization:`Bearer ${(await this.getToken())?.accessToken}`}}get headers(){return{accept:"Accept: application/json","content-type":"application/json"}}getAddressCreate(e){let t={business:!!e.company,first_name:e.first_name,last_name:e.last_name,company:e.company,line_1:e.line_1,line_2:e.line_2,city:e.city,zip_code:e.zip_code,state_code:e.state_code,country_code:e.country_code,phone:e.phone,metadata:{...e.metadata,lastUsage:new Date().getTime()}};return"person_type"in e&&(t.metadata={...e.metadata,lastUsage:new Date().getTime(),person_type:e.person_type,sdi:e.sdi,vat:e.vat,iban:e.iban,fiscal_code:e.fiscal_code,pec:e.pec}),t.metadata.person_type?(t.metadata.isShipping=!1,t.metadata.isBilling=!0):(t.metadata.isShipping=!0,t.metadata.isBilling=!1),t}getAddressUpdate(e){return{id:e.id,...this.getAddressCreate(e)}}async updateLineItemQty(e,t){try{return await C.update({id:e,quantity:t},{include:["line_item_options"]})}catch(e){throw this.logError("updateLineItemQty",e),e}}async updateLineItemOptionQty(e,t){try{return await f.update({id:e,quantity:t})}catch(e){throw this.logError("updateLineItemOptionQty",e),e}}logError(e,t){t instanceof K?console.error(e,"AxiosError",t.response??t.message):o.CommerceLayerStatic.isApiError(t)?console.error(e,"ApiError",t.errors):o.CommerceLayerStatic.isSdkError(t)?console.error(e,"SdkError",{message:t.message,name:t.name}):console.error(e,t)}isCouponError(e){return e?.errors[0]?.detail&&e.errors[0].detail.includes("coupon_code")}async createOrder(){try{let e={shipping_country_code_lock:this.countryCode},t=await this.getFakeShippingAddress();t&&(e.shipping_address=t);let r=await _.create(e);return j(r.id),this.order=r,r}catch(e){this.logError("createOrder",e)}throw"ERROR, CANNOT CREATE AN ORDER"}async getFakeShippingAddress(){try{let e=O.default.find(e=>e.country_code.toUpperCase()==this.countryCode.toUpperCase());if(e)return await i.addresses.retrieve(e.id)}catch(e){this.logError("getFakeShippingAddress",e)}return null}verifyOrderConsistency;getSalesChannel(){return(0,r.makeSalesChannel)({clientId:eR,scope:`market:id:${this.marketId}`},{storage:function(e={}){let t,r={mounts:{"":e.driver||(t=new Map,{name:"memory",getInstance:()=>t,hasItem:e=>t.has(e),getItem:e=>t.get(e)??null,getItemRaw:e=>t.get(e)??null,setItem(e,r){t.set(e,r)},setItemRaw(e,r){t.set(e,r)},removeItem(e){t.delete(e)},getKeys:()=>[...t.keys()],clear(){t.clear()},dispose(){t.clear()}})},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}}
11,n=e=>{for(let t of r.mountpoints)if(e.startsWith(t))return{base:t,relativeKey:e.slice(t.length),driver:r.mounts[t]};return{base:"",relativeKey:e,driver:r.mounts[""]}},i=(e,t)=>r.mountpoints.filter(r=>r.startsWith(e)||t&&e.startsWith(r)).map(t=>({relativeBase:e.length>t.length?e.slice(t.length):void 0,mountpoint:t,driver:r.mounts[t]})),s=(e,t)=>{if(r.watching)for(let n of(t=eC(t),r.watchListeners))n(e,t)},a=async()=>{if(!r.watching)for(let e in r.watching=!0,r.mounts)r.unwatch[e]=await e_(r.mounts[e],s,e)},o=async()=>{if(r.watching){for(let e in r.unwatch)await r.unwatch[e]();r.unwatch={},r.watching=!1}},l=(e,t,r)=>{let i=new Map,s=e=>{let t=i.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},i.set(e.base,t)),t};for(let r of e){let e="string"==typeof r,i=eC(e?r:r.key),a=e?void 0:r.value,o=e||!r.options?t:{...t,...r.options},l=n(i);s(l).items.push({key:i,value:a,relativeKey:l.relativeKey,options:o})}return Promise.all([...i.values()].map(e=>r(e))).then(e=>e.flat())},u={hasItem(e,t={}){let{relativeKey:r,driver:i}=n(e=eC(e));return ep(i.hasItem,r,t)},getItem(e,t={}){let{relativeKey:r,driver:i}=n(e=eC(e));return ep(i.getItem,r,t).then(e=>eh(e))},getItems:(e,t={})=>l(e,t,e=>e.driver.getItems?ep(e.driver.getItems,e.items.map(e=>({key:e.relativeKey,options:e.options})),t).then(t=>t.map(t=>({key:function(...e){return eC(e.join(":"))}(e.base,t.key),value:eh(t.value)}))):Promise.all(e.items.map(t=>ep(e.driver.getItem,t.relativeKey,t.options).then(e=>({key:t.key,value:eh(e)}))))),getItemRaw(e,t={}){let{relativeKey:r,driver:i}=n(e=eC(e));return i.getItemRaw?ep(i.getItemRaw,r,t):ep(i.getItem,r,t).then(e=>{var t;return"string"==typeof e&&e.startsWith(eg)?(t=e.slice(eg.length),globalThis.Buffer?ed.Buffer.from(t,"base64"):Uint8Array.from(globalThis.atob(t),e=>e.codePointAt(0))):e})},async setItem(e,t,r={}){if(void 0===t)return u.removeItem(e);let{relativeKey:i,driver:a}=n(e=eC(e));a.setItem&&(await ep(a.setItem,i,ef(t),r),a.watch||s("update",e))},async setItems(e,t){await l(e,t,async e=>{if(e.driver.setItems)return ep(e.driver.setItems,e.items.map(e=>({key:e.relativeKey,value:ef(e.value),options:e.options})),t);e.driver.setItem&&await Promise.all(e.items.map(t=>ep(e.driver.setItem,t.relativeKey,ef(t.value),t.options)))})},async setItemRaw(e,t,r={}){if(void 0===t)return u.removeItem(e,r);let{relativeKey:i,driver:a}=n(e=eC(e));if(a.setItemRaw)await ep(a.setItemRaw,i,t,r);else{var o;if(!a.setItem)return;await ep(a.setItem,i,"string"==typeof t?t:eg+(o=t,globalThis.Buffer?ed.Buffer.from(o).toString("base64"):globalThis.btoa(String.fromCodePoint(...o))),r)}a.watch||s("update",e)},async removeItem(e,t={}){"boolean"==typeof t&&(t={removeMeta:t});let{relativeKey:r,driver:i}=n(e=eC(e));i.removeItem&&(await ep(i.removeItem,r,t),(t.removeMeta||t.removeMata)&&await ep(i.removeItem,r+"$",t),i.watch||s("remove",e))},async getMeta(e,t={}){"boolean"==typeof t&&(t={nativeOnly:t});let{relativeKey:r,driver:i}=n(e=eC(e)),s=Object.create(null);if(i.getMeta&&Object.assign(s,await ep(i.getMeta,r,t)),!t.nativeOnly){let e=await ep(i.getItem,r+"$",t).then(e=>eh(e));e&&"object"==typeof e&&("string"==typeof e.atime&&(e.atime=new Date(e.atime)),"string"==typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(s,e))}return s},setMeta(e,t,r={}){return this.setItem(e+"$",t,r)},removeMeta(e,t={}){return this.removeItem(e+"$",t)},async getKeys(e,t={}){let r=i(e=em(e),!0),n=[],s=[],a=!0;for(let e of r){for(let r of(e.driver.flags?.maxDepth||(a=!1),await ep(e.driver.getKeys,e.relativeBase,t))){let t=e.mountpoint+eC(r);n.some(e=>t.startsWith(e))||s.push(t)}n=[e.mountpoint,...n.filter(t=>!t.startsWith(e.mountpoint))]}let o=void 0!==t.maxDepth&&!a;return s.filter(r=>{var n;return(!o||function(e,t){if(void 0===t)return!0;let r=0,n=e.indexOf(":");for(;n>-1;)r++,n=e.indexOf(":",n+1);return r<=t}(r,t.maxDepth))&&((n=e)?r.startsWith(n)&&"$"!==r[r.length-1]:"$"!==r[r.length-1])})},async clear(e,t={}){e=em(e),await Promise.all(i(e,!1).map(async e=>e.driver.clear?ep(e.driver.clear,e.relativeBase,t):e.driver.removeItem?Promise.all((await e.driver.getKeys(e.relativeBase||"",t)).map(r=>e.driver.removeItem(r,t))):void 0))},async dispose(){await Promise.all(Object.values(r.mounts).map(e=>ey(e)))},watch:async e=>(await a(),r.watchListeners.push(e),async()=>{r.watchListeners=r.watchListeners.filter(t=>
11t!==e),0===r.watchListeners.length&&await o()}),async unwatch(){r.watchListeners=[],await o()},mount(e,t){if((e=em(e))&&r.mounts[e])throw Error(`already mounted at ${e}`);return e&&(r.mountpoints.push(e),r.mountpoints.sort((e,t)=>t.length-e.length)),r.mounts[e]=t,r.watching&&Promise.resolve(e_(t,s,e)).then(t=>{r.unwatch[e]=t}).catch(console.error),u},async unmount(e,t=!0){(e=em(e))&&r.mounts[e]&&(r.watching&&e in r.unwatch&&(r.unwatch[e]?.(),delete r.unwatch[e]),t&&await ey(r.mounts[e]),r.mountpoints=r.mountpoints.filter(t=>t!==e),delete r.mounts[e])},getMount(e=""){let t=n(e=eC(e)+":");return{driver:t.driver,base:t.base}},getMounts:(e="",t={})=>i(e=eC(e),t.parents).map(e=>({driver:e.driver,base:e.mountpoint})),keys:(e,t={})=>u.getKeys(e,t),get:(e,t={})=>u.getItem(e,t),set:(e,t,r={})=>u.setItem(e,t,r),has:(e,t={})=>u.hasItem(e,t),del:(e,t={})=>u.removeItem(e,t),remove:(e,t={})=>u.removeItem(e,t)};return u}({driver:((e={})=>{let t,r=e.storage||e.localStorage||e.sessionStorage||(e.window||globalThis.window)?.[e.windowKey||"localStorage"];if(!r){var n;throw Array.isArray(n="localStorage")?eE(ev,`Missing some of the required options ${n.map(e=>"`"+e+"`").join(", ")}`):eE(ev,`Missing required option \`${n}\`.`)}let i=e.base?function(e,t=":"){return e?e.replace(/[:/\\]/g,t).replace(/^[:/\\]|[:/\\]$/g,""):""}(e.base):"",s=e=>(i?`${i}:`:"")+e,a=()=>{t&&e.window?.removeEventListener("storage",t),t=void 0};return{name:ev,options:e,getInstance:()=>r,hasItem:e=>Object.prototype.hasOwnProperty.call(r,s(e)),getItem:e=>r.getItem(s(e)),setItem:(e,t)=>r.setItem(s(e),t),removeItem:e=>r.removeItem(s(e)),getKeys(){let e=Object.keys(r);return i?e.filter(e=>e.startsWith(`${i}:`)).map(e=>e.slice(i.length+1)):e},clear(e){let t=[i,e].filter(Boolean).join(":");if(t)for(let e of Object.keys(r))e.startsWith(`${t}:`)&&r?.removeItem(e);else r.clear()},dispose(){e.window&&t&&e.window.removeEventListener("storage",t)},watch:r=>(e.window&&(t=e=>{e.key&&r(e.newValue?"update":"remove",e.key)},e.window.addEventListener("storage",t)),a)}})({})})})}async sleep(e){return new Promise(t=>setTimeout(t,e))}}],40783)},23042,e=>{"use strict";let t,r,n;var i,s,a,o,l,u,c,B,h,d,p,f,g,C,m,_,y,E=e.i(43476),v=e.i(71645),w=e.i(47167);let b=function(e){let t=[],r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return t},D=function(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e[r++];if(i<128)t[n++]=String.fromCharCode(i);else if(i>191&&i<224){let s=e[r++];t[n++]=String.fromCharCode((31&i)<<6|63&s)}else if(i>239&&i<365){let s=((7&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=String.fromCharCode(55296+(s>>10)),t[n++]=String.fromCharCode(56320+(1023&s))}else{let s=e[r++],a=e[r++];t[n++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&a)}}return t.join("")},T={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let t=0;t<e.length;t+=3){let i=e[t],s=t+1<e.length,a=s?e[t+1]:0,o=t+2<e.length,l=o?e[t+2]:0,u=i>>2,c=(3&i)<<4|a>>4,B=(15&a)<<2|l>>6,h=63&l;!o&&(h=64,s||(B=64)),n.push(r[u],r[c],r[B],r[h])}return n.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(b(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):D(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let r=t?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let t=0;t<e.length;){let i=r[e.charAt(t++)],s=t<e.length?r[e.charAt(t)]:0,a=++t<e.length?r[e.charAt(t)]:64,o=++t<e.length?r[e.charAt(t)]:64;if(++t,null==i||null==s||null==a||null==o)throw new I;let l=i<<2|s>>4;if(n.push(l),64!==a){let e=s<<4&240|a>>2;if(n.push(e),64!==o){let e=a<<6&192|o;n.push(e)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
11class I extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let S=function(e){let t=b(e);return T.encodeByteArray(t,!0)},A=function(e){return S(e).replace(/\./g,"")},O=function(e){try{return T.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null},R=()=>{try{return("u">typeof self?self:"u">typeof window?window:e.g).__FIREBASE_DEFAULTS__||(()=>{if(void 0===w.default||void 0===w.default.env)return;let e=w.default.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)})()||(()=>{let e;if("u"<typeof document)return;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}let t=e&&O(e[1]);return t&&JSON.parse(t)})()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},N=e=>R()?.emulatorHosts?.[e],P=()=>R()?.config,k=e=>R()?.[`_${e}`];class L{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,r))}}}function F(){return"u">typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}class x extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,x.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,M.prototype.create)}}class M{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){let r=t[0]||{},n=`${this.service}/${e}`,i=this.errors[e],s=i?function(e,t){try{let r=0,n="";for(;r<e.length;){let i=e.indexOf("{$",r);if(-1===i){n+=e.substring(r);break}let s=e.indexOf("}",i+2);if(-1===s){n+=e.substring(r);break}let a=e.substring(i+2,s),o=t[a];n+=e.substring(r,i)+(null!=o?String(o):`<${a}?>`),r=s+1}return n}catch(t){return e}}(i,r):"Error",a=`${this.serviceName}: ${s} (${n}).`;return new x(n,a,r)}}function G(e,t){if(e===t)return!0;let r=Object.keys(e),n=Object.keys(t);for(let i of r){if(!n.includes(i))return!1;let r=e[i],s=t[i];if(U(r)&&U(s)){if(!G(r,s))return!1}else if(r!==s)return!1}for(let e of n)if(!r.includes(e))return!1;return!0}function U(e){return null!==e&&"object"==typeof e}function H(e){let t=[];for(let[r,n]of Object.entries(e))Array.isArray(n)?n.forEach(e=>{t.push(encodeURIComponent(r)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(r)+"="+encodeURIComponent(n));return t.length?"&"+t.join("&"):""}function V(e){let t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){let[r,n]=e.split("=");
11t[decodeURIComponent(r)]=decodeURIComponent(n)}}),t}function j(e){let t=e.indexOf("?");if(!t)return"";let r=e.indexOf("#",t);return e.substring(t,r>0?r:void 0)}class z{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,r){let n;if(void 0===e&&void 0===t&&void 0===r)throw Error("Missing Observer.");void 0===(n=!function(e,t){if("object"!=typeof e||null===e)return!1;for(let r of t)if(r in e&&"function"==typeof e[r])return!0;return!1}(e,["next","error","complete"])?{next:e,error:t,complete:r}:e).next&&(n.next=J),void 0===n.error&&(n.error=J),void 0===n.complete&&(n.complete=J);let i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?n.error(this.finalError):n.complete()}catch(e){}}),this.observers.push(n),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(e){"u">typeof console&&console.error&&console.error(e)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function J(){}function K(e){return e&&e._delegate?e._delegate:e}function q(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch{return!1}}async function Y(e){return(await fetch(e,{credentials:"include"})).ok}class ${constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}let W="[DEFAULT]";class Q{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new L;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:t});r&&e.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){let t=this.normalizeInstanceIdentifier(e?.identifier),r=e?.optional??!1;if(this.isInitialized(t)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:t})}catch(e){if(r)return null;throw e}if(r)return null;throw Error(`Service ${this.name} is not available`)}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:W})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:r});t.resolve(e)}catch(e){}}}}clearInstance(e=W){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=W){return this.instances.has(e)}getOptions(e=W){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let n=this.getOrInitializeService({instanceIdentifier:r,options:t});for(let[e,t]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(e)&&t.resolve(n);return n}onInit(e,t){let r=this.normalizeInstanceIdentifier(t),n=this.onInitCallbacks.get(r)??new Set;n.add(e),this.onInitCallbacks.set(r,n);let i=this.instances.get(r);return i&&e(i,r),()=>{n.delete(e)}}invokeOnInitCallbacks(e,t){let r=this.onInitCallbacks.get(t);if(r)for(let n of r)try{n(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){var r;let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e)===W?void 0:r,options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}return n||null}normalizeInstanceIdentifier(e=W){return this.component?this.component.multipleInstances?e:W:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Z{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new Q(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}let X=[];(i=o||(o={}))[i.DEBUG=0]="DEBUG",i[i.VERBOSE=1]="VERBOSE",i[i.INFO=2]="INFO",i[i.WARN=3]="WARN",i[i.ERROR=4]="ERROR",i[i.SILENT=5]="SILENT";let ee={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},et=o.INFO,er={[o.DEBUG]:"log",[o.VERBOSE]:"log",[o.INFO]:"info",[o.WARN]:"warn",[o.ERROR]:"error"},en=(e,t,...r)=>{if(t<e.logLevel)return;let n=new Date().toISOString(),i=er[t];if(i)console[i](`[${n}] ${e.name}:`,...r);
11else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class ei{constructor(e){this.name=e,this._logLevel=et,this._logHandler=en,this._userLogHandler=null,X.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in o))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?ee[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,o.DEBUG,...e),this._logHandler(this,o.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,o.VERBOSE,...e),this._logHandler(this,o.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,o.INFO,...e),this._logHandler(this,o.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,o.WARN,...e),this._logHandler(this,o.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,o.ERROR,...e),this._logHandler(this,o.ERROR,...e)}}let es=new WeakMap,ea=new WeakMap,eo=new WeakMap,el=new WeakMap,eu=new WeakMap,ec={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return ea.get(e);if("objectStoreNames"===t)return e.objectStoreNames||eo.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return eB(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function eB(e){if(e instanceof IDBRequest){let t;return(t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{t(eB(e.result)),n()},s=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",s)})).then(t=>{t instanceof IDBCursor&&es.set(t,e)}).catch(()=>{}),eu.set(t,e),t}if(el.has(e))return el.get(e);let n=function(e){if("function"==typeof e)return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(r||(r=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(eh(this),t),eB(es.get(this))}:function(...t){return eB(e.apply(eh(this),t))}:function(t,...r){let n=e.call(eh(this),t,...r);return eo.set(n,t.sort?t.sort():[t]),eB(n)};return e instanceof IDBTransaction&&function(e){if(ea.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{t(),n()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});ea.set(e,t)}(e),(t||(t=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(t=>e instanceof t)?new Proxy(e,ec):e}(e);return n!==e&&(el.set(e,n),eu.set(n,e)),n}let eh=e=>eu.get(e),ed=["get","getKey","getAll","getAllKeys","count"],ep=["put","add","delete","clear"],ef=new Map;function eg(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(ef.get(t))return ef.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=ep.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||ed.includes(r)))return;let s=async function(e,...t){let s=this.transaction(e,i?"readwrite":"readonly"),a=s.store;return n&&(a=a.index(t.shift())),(await Promise.all([a[r](...t),i&&s.done]))[0]};return ef.set(t,s),s}ec={...n=ec,get:(e,t,r)=>eg(e,t)||n.get(e,t,r),has:(e,t)=>!!eg(e,t)||n.has(e,t)};class eC{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{let t;if(t=e.getComponent(),t?.type!=="VERSION")return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let em="@firebase/app",e_="0.16.1",ey=new ei("@firebase/app"),eE="[DEFAULT]",ev={[em]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/data-connect":"fire-data-connect","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/ai":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},ew=new Map,eb=new Map,eD=new Map;function eT(e,t){try{e.container.addComponent(t)}catch(r){ey.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function eI(e){let t=e.name;if(eD.has(t))return ey.debug(`There were multiple attempts to register component ${t}.`),!1;
11for(let r of(eD.set(t,e),ew.values()))eT(r,e);for(let t of eb.values())eT(t,e);return!0}function eS(e,t){let r=e.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),e.container.getProvider(t)}function eA(e){return null!=e&&void 0!==e.settings}let eO=new M("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different {$mismatchedParam}. Existing: '{$oldValue}'. New: '{$newValue}'.","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class eR{constructor(e,t,r){this._isDeleted=!1,this._options={...e},this._config={...t},this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new $("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw eO.create("app-deleted",{appName:this._name})}}let eN="12.18.0";function eP(e,t={}){let r=e;"object"!=typeof t&&(t={name:t});let n={name:eE,automaticDataCollectionEnabled:!0,...t},i=n.name;if("string"!=typeof i||!i)throw eO.create("bad-app-name",{appName:String(i)});if(r||(r=P()),!r)throw eO.create("no-options");let s=ew.get(i);if(s)if(G(r,s.options))if(G(n,s.config))return s;else throw eO.create("duplicate-app",{appName:i,mismatchedParam:"config",oldValue:JSON.stringify(s.config),newValue:JSON.stringify(n)});else throw eO.create("duplicate-app",{appName:i,mismatchedParam:"options",oldValue:JSON.stringify(s.options),newValue:JSON.stringify(r)});let a=new Z(i);for(let e of eD.values())a.addComponent(e);let o=new eR(r,n,a);return ew.set(i,o),o}function ek(e=eE){let t=ew.get(e);if(!t&&e===eE&&P())return eP();if(!t)throw eO.create("no-app",{appName:e});return t}function eL(e,t,r){let n=ev[e]??e;r&&(n+=`-${r}`);let i=n.match(/\s|\//),s=t.match(/\s|\//);if(i||s){let e=[`Unable to register library "${n}" with version "${t}":`];i&&e.push(`library name "${n}" contains illegal characters (whitespace or "/")`),i&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),ey.warn(e.join(" "));return}eI(new $(`${n}-version`,()=>({library:n,version:t}),"VERSION"))}let eF="firebase-heartbeat-store",ex=null;function eM(){return ex||(ex=(function(e,{blocked:t,upgrade:r,blocking:n,terminated:i}={}){let s=indexedDB.open(e,1),a=eB(s);return r&&s.addEventListener("upgradeneeded",e=>{r(eB(s.result),e.oldVersion,e.newVersion,eB(s.transaction),e)}),t&&s.addEventListener("blocked",e=>t(e.oldVersion,e.newVersion,e)),a.then(e=>{i&&e.addEventListener("close",()=>i()),n&&e.addEventListener("versionchange",e=>n(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a})("firebase-heartbeat-database",{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(eF)}catch(e){console.warn(e)}}}).catch(e=>{throw eO.create("idb-open",{originalErrorMessage:e.message})})),ex}async function eG(e){try{let t=(await eM()).transaction(eF),r=await t.objectStore(eF).get(eH(e));return await t.done,r}catch(e){if(e instanceof x)ey.warn(e.message);else{let t=eO.create("idb-get",{originalErrorMessage:e?.message});ey.warn(t.message)}}}async function eU(e,t){try{let r=(await eM()).transaction(eF,"readwrite"),n=r.objectStore(eF);await n.put(t,eH(e)),await r.done}catch(e){if(e instanceof x)ey.warn(e.message);else{let t=eO.create("idb-set",{originalErrorMessage:e?.message});ey.warn(t.message)}}}function eH(e){return`${e.name}!${e.options.appId}`}class eV{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new ez(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){try{let e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=ej();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===t||this._heartbeatsCache.heartbeats.some(e=>e.date===t))return;if(this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats.length>30){let e=function(e){if(0===e.length)return -1;let t=0,r=e[0].date;for(let n=1;n<e.length;n++)e[n].date<r&&(r=e[n].date,t=n);return t}(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){ey.warn(e)}}async getHeartbeatsHeader(){try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||0===this._heartbeatsCache.heartbeats.length)return"";let e=ej(),{heartbeatsToSend:t,unsentEntries:r}=function(e,t=1024){let r=[],n=e.slice();for(let i of e){let e=r.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),eJ(r)>t){e.dates.pop();break}}else if(r.push({agent:i.agent,dates:[i.date]}),eJ(r)>t){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}(this._heartbeatsCache.heartbeats),n=A(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),n}catch(e){return ey.warn(e),""}}}function ej(){return new Date().toISOString().substring(0,10)}class ez{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!function(){try{return"object"==typeof indexedDB}catch(e){return!1}}()&&new Promise((e,t)=>
11{try{let r=!0,n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),r||self.indexedDB.deleteDatabase(n),e(!0)},i.onupgradeneeded=()=>{r=!1},i.onerror=()=>{t(i.error?.message||"")}}catch(e){t(e)}}).then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let e=await eG(this.app);return e?.heartbeats?e:{heartbeats:[]}}}async overwrite(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return eU(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return eU(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:[...t.heartbeats,...e.heartbeats]})}}}function eJ(e){return A(JSON.stringify({version:2,heartbeats:e})).length}function eK(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}eI(new $("platform-logger",e=>new eC(e),"PRIVATE")),eI(new $("heartbeat",e=>new eV(e),"PRIVATE")),eL(em,e_,""),eL(em,e_,"esm2020"),eL("fire-js","");let eq=new M("auth","Firebase",eK()),eY=new ei("@firebase/auth");function e$(e,...t){eY.logLevel<=o.WARN&&eY.warn(`Auth (${eN}): ${e}`,...t)}function eW(e,...t){eY.logLevel<=o.ERROR&&eY.error(`Auth (${eN}): ${e}`,...t)}function eQ(e,...t){throw e1(e,...t)}function eZ(e,...t){return e1(e,...t)}function eX(e,t,r){return new M("auth","Firebase",{...eK(),[t]:r}).create(t,{appName:e.name})}function e0(e){return eX(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function e1(e,...t){if("string"!=typeof e){let r=t[0],n=[...t.slice(1)];return n[0]&&(n[0].appName=e.name),e._errorFactory.create(r,...n)}return eq.create(e,...t)}function e2(e,t,...r){if(!e)throw e1(t,...r)}function e3(e){let t="INTERNAL ASSERTION FAILED: "+e;throw eW(t),Error(t)}function e6(){return"u">typeof self&&self.location?.href||""}function e8(){return"u">typeof self&&self.location?.protocol||null}class e4{constructor(e,t){this.shortDelay=e,this.longDelay=t,function(e,t){e||e3(t)}(t>e,"Short delay should be less than long delay!"),this.isMobile="u">typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(F())||"object"==typeof navigator&&"ReactNative"===navigator.product}get(){let e;return!("u">typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&("http:"===e8()||"https:"===e8()||"object"==typeof(e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0)&&void 0!==e.id||"connection"in navigator))||navigator.onLine?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function e5(e,t){var r,n;r=e.emulator,n="Emulator should always be set here",r||e3(n);let{url:i}=e.emulator;return t?`${i}${t.startsWith("/")?t.slice(1):t}`:i}class e9{static initialize(e,t,r){this.fetchImpl=e,t&&(this.headersImpl=t),r&&(this.responseImpl=r)}static fetch(){return this.fetchImpl?this.fetchImpl:"u">typeof self&&"fetch"in self?self.fetch:"u">typeof globalThis&&globalThis.fetch?globalThis.fetch:"u">typeof fetch?fetch:void e3("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"u">typeof self&&"Headers"in self?self.Headers:"u">typeof globalThis&&globalThis.Headers?globalThis.Headers:"u">typeof Headers?Headers:void e3("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"u">typeof self&&"Response"in self?self.Response:"u">typeof globalThis&&globalThis.Response?globalThis.Response:"u">typeof Response?Response:void e3("Could not find Response implementation, make sure you call FetchProvi
11der.initialize() with an appropriate polyfill")}}let e7={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},te=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],tt=new e4(3e4,6e4);function tr(e,t){return e.tenantId&&!t.tenantId?{...t,tenantId:e.tenantId}:t}async function tn(e,t,r,n,i={}){return ti(e,i,async()=>{let i={},s={};n&&("GET"===t?s=n:i={body:JSON.stringify(n)});let a=H({...s,key:e.config.apiKey}).slice(1),o=await e._getAdditionalHeaders();o["Content-Type"]="application/json",e.languageCode&&(o["X-Firebase-Locale"]=e.languageCode);let l={method:t,headers:o,...i};return"u">typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||(l.referrerPolicy="strict-origin-when-cross-origin"),e.emulatorConfig&&q(e.emulatorConfig.host)&&(l.credentials="include"),e9.fetch()(await ta(e,e.config.apiHost,r,a),l)})}async function ti(e,t,r){e._canInitEmulator=!1;let n={...e7,...t};try{let t=new to(e),i=await Promise.race([r(),t.promise]);t.clearNetworkTimeout();let s=await i.json();if("needConfirmation"in s)throw tl(e,"account-exists-with-different-credential",s);if(i.ok&&!("errorMessage"in s))return s;{let[t,r]=(i.ok?s.errorMessage:s.error.message).split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===t)throw tl(e,"credential-already-in-use",s);if("EMAIL_EXISTS"===t)throw tl(e,"email-already-in-use",s);if("USER_DISABLED"===t)throw tl(e,"user-disabled",s);let a=n[t]||t.toLowerCase().replace(/[_\s]+/g,"-");if(r)throw eX(e,a,r);eQ(e,a)}}catch(t){if(t instanceof x)throw t;eQ(e,"network-request-failed",{message:String(t)})}}async function ts(e,t,r,n,i={}){let s=await tn(e,t,r,n,i);return"mfaPendingCredential"in s&&eQ(e,"multi-factor-auth-required",{_serverResponse:s}),s}async function ta(e,t,r,n){let i=`${t}${r}?${n}`,s=e.config.emulator?e5(e.config,i):`${e.config.apiScheme}://${i}`;return te.includes(r)&&(await e._persistenceManagerAvailable,"COOKIE"===e._getPersistenceType())?e._getPersistence()._getFinalTarget(s).toString():s}class to{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>
11{this.timer=setTimeout(()=>t(eZ(this.auth,"network-request-failed")),tt.get())})}}function tl(e,t,r){let n={appName:e.name};r.email&&(n.email=r.email),r.phoneNumber&&(n.phoneNumber=r.phoneNumber);let i=eZ(e,t,n);return i.customData._tokenResponse=r,i}function tu(e){return void 0!==e&&void 0!==e.enterprise}class tc{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(let t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)switch(t.enforcementState){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}}async function tB(e,t){return tn(e,"GET","/v2/recaptchaConfig",tr(e,t))}async function th(e,t){return tn(e,"POST","/v1/accounts:delete",t)}async function td(e,t){return tn(e,"POST","/v1/accounts:lookup",t)}function tp(e){if(e)try{let t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(e){}}async function tf(e,t=!1){let r=K(e),n=await r.getIdToken(t),i=tC(n);e2(i&&i.exp&&i.auth_time&&i.iat,r.auth,"internal-error");let s="object"==typeof i.firebase?i.firebase:void 0,a=s?.sign_in_provider;return{claims:i,token:n,authTime:tp(tg(i.auth_time)),issuedAtTime:tp(tg(i.iat)),expirationTime:tp(tg(i.exp)),signInProvider:a||null,signInSecondFactor:s?.sign_in_second_factor||null}}function tg(e){return 1e3*Number(e)}function tC(e){let[t,r,n]=e.split(".");if(void 0===t||void 0===r||void 0===n)return eW("JWT malformed, contained fewer than 3 sections"),null;try{let e=O(r);if(!e)return eW("Failed to decode base64 JWT payload"),null;return JSON.parse(e)}catch(e){return eW("Caught error parsing JWT payload as JSON",e?.toString()),null}}function tm(e){let t=tC(e);return e2(t,"internal-error"),e2(void 0!==t.exp,"internal-error"),e2(void 0!==t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}async function t_(e,t,r=!1){if(r)return t;try{return await t}catch(t){throw t instanceof x&&function({code:e}){return"auth/user-disabled"===e||"auth/user-token-expired"===e}(t)&&e.auth.currentUser===e&&await e.auth.signOut(),t}}class ty{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){if(!e)return this.errorBackoff=3e4,Math.max(0,(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5);{let e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}}schedule(e=!1){if(!this.isRunning)return;let t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){e?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}class tE{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=tp(this.lastLoginAt),this.creationTime=tp(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function tv(e){var t,r;let n=e.auth,i=await e.getIdToken(),s=await t_(e,td(n,{idToken:i}));e2(s?.users.length,n,"internal-error");let a=s.users[0];e._notifyReloadListener(a);let o=a.providerUserInfo?.length?tb(a.providerUserInfo):[],l=(t=e.providerData,r=o,[...t.filter(e=>!r.some(t=>t.providerId===e.providerId)),...r]),u=e.isAnonymous,c=!(e.email&&a.passwordHash)&&!l?.length;Object.assign(e,{uid:a.localId,displayName:a.displayName||null,photoURL:a.photoUrl||null,email:a.email||null,emailVerified:a.emailVerified||!1,phoneNumber:a.phoneNumber||null,tenantId:a.tenantId||null,providerData:l,metadata:new tE(a.createdAt,a.lastLoginAt),isAnonymous:!!u&&c})}async function tw(e){let t=K(e);await tv(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function tb(e){return e.map(({providerId:e,...t})=>
11({providerId:e,uid:t.rawId||"",displayName:t.displayName||null,email:t.email||null,phoneNumber:t.phoneNumber||null,photoURL:t.photoUrl||null}))}async function tD(e,t){let r=await ti(e,{},async()=>{let r=H({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:n,apiKey:i}=e.config,s=await ta(e,n,"/v1/token",`key=${i}`),a=await e._getAdditionalHeaders();a["Content-Type"]="application/x-www-form-urlencoded";let o={method:"POST",headers:a,body:r};return e.emulatorConfig&&q(e.emulatorConfig.host)&&(o.credentials="include"),e9.fetch()(s,o)});return{accessToken:r.access_token,expiresIn:r.expires_in,refreshToken:r.refresh_token}}async function tT(e,t){return tn(e,"POST","/v2/accounts:revokeToken",tr(e,t))}class tI{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){e2(e.idToken,"internal-error"),e2(void 0!==e.idToken,"internal-error"),e2(void 0!==e.refreshToken,"internal-error");let t="expiresIn"in e&&void 0!==e.expiresIn?Number(e.expiresIn):tm(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){e2(0!==e.length,"internal-error");let t=tm(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e,t=!1){return t||!this.accessToken||this.isExpired?(e2(this.refreshToken,e,"user-token-expired"),this.refreshToken)?(await this.refresh(e,this.refreshToken),this.accessToken):null:this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){let{accessToken:r,refreshToken:n,expiresIn:i}=await tD(e,t);this.updateTokensAndExpiration(r,n,Number(i))}updateTokensAndExpiration(e,t,r){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*r}static fromJSON(e,t){let{refreshToken:r,accessToken:n,expirationTime:i}=t,s=new tI;return r&&(e2("string"==typeof r,"internal-error",{appName:e}),s.refreshToken=r),n&&(e2("string"==typeof n,"internal-error",{appName:e}),s.accessToken=n),i&&(e2("number"==typeof i,"internal-error",{appName:e}),s.expirationTime=i),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new tI,this.toJSON())}_performRefresh(){return e3("not implemented")}}function tS(e,t){e2("string"==typeof e||void 0===e,"internal-error",{appName:t})}class tA{constructor({uid:e,auth:t,stsTokenManager:r,...n}){this.providerId="firebase",this.proactiveRefresh=new ty(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=t,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=n.displayName||null,this.email=n.email||null,this.emailVerified=n.emailVerified||!1,this.phoneNumber=n.phoneNumber||null,this.photoURL=n.photoURL||null,this.isAnonymous=n.isAnonymous||!1,this.tenantId=n.tenantId||null,this.providerData=n.providerData?[...n.providerData]:[],this.metadata=new tE(n.createdAt||void 0,n.lastLoginAt||void 0)}async getIdToken(e){let t=await t_(this,this.stsTokenManager.getToken(this.auth,e));return e2(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return tf(this,e)}reload(){return tw(this)}_assign(e){this!==e&&(e2(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(e=>({...e})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){let t=new tA({...this,auth:e,stsTokenManager:this.stsTokenManager._clone()});return t.metadata._copy(this.metadata),t}_onReload(e){e2(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),t&&await tv(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(eA(this.auth.app))return Promise.reject(e0(this.auth));let e=await this.getIdToken();return await t_(this,th(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return{uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
11nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>({...e})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId,...this.metadata.toJSON(),apiKey:this.auth.config.apiKey,appName:this.auth.name}}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){let r=t.displayName??void 0,n=t.email??void 0,i=t.phoneNumber??void 0,s=t.photoURL??void 0,a=t.tenantId??void 0,o=t._redirectEventId??void 0,l=t.createdAt??void 0,u=t.lastLoginAt??void 0,{uid:c,emailVerified:B,isAnonymous:h,providerData:d,stsTokenManager:p}=t;e2(c&&p,e,"internal-error");let f=tI.fromJSON(this.name,p);e2("string"==typeof c,e,"internal-error"),tS(r,e.name),tS(n,e.name),e2("boolean"==typeof B,e,"internal-error"),e2("boolean"==typeof h,e,"internal-error"),tS(i,e.name),tS(s,e.name),tS(a,e.name),tS(o,e.name),tS(l,e.name),tS(u,e.name);let g=new tA({uid:c,auth:e,email:n,emailVerified:B,displayName:r,isAnonymous:h,photoURL:s,phoneNumber:i,tenantId:a,stsTokenManager:f,createdAt:l,lastLoginAt:u});return d&&Array.isArray(d)&&(g.providerData=d.map(e=>({...e}))),o&&(g._redirectEventId=o),g}static async _fromIdTokenResponse(e,t,r=!1){let n=new tI;n.updateFromServerResponse(t);let i=new tA({uid:t.localId,auth:e,stsTokenManager:n,isAnonymous:r});return await tv(i),i}static async _fromGetAccountInfoResponse(e,t,r){let n=t.users[0];e2(void 0!==n.localId,"internal-error");let i=void 0!==n.providerUserInfo?tb(n.providerUserInfo):[],s=!(n.email&&n.passwordHash)&&!i?.length,a=new tI;a.updateFromIdToken(r);let o=new tA({uid:n.localId,auth:e,stsTokenManager:a,isAnonymous:s});return Object.assign(o,{uid:n.localId,displayName:n.displayName||null,photoURL:n.photoUrl||null,email:n.email||null,emailVerified:n.emailVerified||!1,phoneNumber:n.phoneNumber||null,tenantId:n.tenantId||null,providerData:i,metadata:new tE(n.createdAt,n.lastLoginAt),isAnonymous:!(n.email&&n.passwordHash)&&!i?.length}),o}}let tO=new Map;function tR(e){var t,r;t="Expected a class definition",e instanceof Function||e3(t);let n=tO.get(e);return n?(r="Instance stored in cache mismatched with class",n instanceof e||e3(r)):(n=new e,tO.set(e,n)),n}class tN{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){let t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}function tP(e,t,r){return`firebase:${e}:${t}:${r}`}tN.type="NONE";class tk{constructor(e,t,r){this.persistence=e,this.auth=t,this.userKey=r;const{config:n,name:i}=this.auth;this.fullUserKey=tP(this.userKey,n.apiKey,i),this.fullPersistenceKey=tP("persistence",n.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){let e=await this.persistence._get(this.fullUserKey);if(!e)return null;if("string"==typeof e){let t=await td(this.auth,{idToken:e}).catch(()=>void 0);return t?tA._fromGetAccountInfoResponse(this.auth,t,e):null}return tA._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;let t=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,t)return this.setCurrentUser(t)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,r="authUser"){if(!t.length)return new tk(tR(tN),e,r);let n=(await Promise.all(t.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e),i=n[0]||tR(tN),s=tP(r,e.config.apiKey,e.name),a=null;for(let r of t)try{let t=await r._get(s);if(t){let n;if("string"==typeof t){let r=await td(e,{idToken:t}).catch(()=>void 0);if(!r)break;n=await tA._fromGetAccountInfoResponse(e,r,t)}else n=tA._fromJSON(e,t);r!==i&&(a=n),i=r;break}}catch{}let o=n.filter(e=>e._shouldAllowMigration);return i._shouldAllowMigration&&o.length&&(i=o[0],a&&await i._set(s,a.toJSON()),await Promise.all(t.map(async e=>{if(e!==i)try{await e._remove(s)}catch{}}))),new tk(i,e,r)}}function tL(e){let t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";{if(tG(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(tF(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(tH(t))return"Blackberry";if(tV(t))return"Webos";if(tx(t))return"Safari";if((t.includes("chrome/")||tM(t))&&!t.includes("edge/"))return"Chrome";if(tU(t))return"Android";let r=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(r?.length===2)return r[1]}return"Other"}function tF(e=F()){return/firefox\//i.test(e)}function tx(e=F()){let t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function tM(e=F()){return/crios\//i.test(e)}function tG(e=F()){return/iemobile/i.test(e)}function tU(e=F()){return/android/i.test(e)}function tH(e=F()){return/blackberry/i.test(e)}function tV(e=F()){return/webos/i.test(e)}function tj(e=F()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function tz(e=F()){return tj(e)||tU(e)||tV(e)||tH(e)||/windows phone/i.test(e)||tG(e)}function tJ(e,t=[]){let r;switch(e){case"Browser":r=tL(F());break;case"Worker":r=`${tL(F())}-${e}`;break;default:r=e}let n=t.length?t.join(","):"FirebaseCore-web";return`${r}/JsCore/${eN}/${n}`}class tK{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){let r=t=>new Promise((r,n)=>{try{let n=e(t);r(n)}catch(e){n(e)}});r.onAbort=t,this.queue.push(r);let n=this.queue.length-1;return()=>{this.queue[n]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;let t=[];try{for(let r of this.queue)await r(e),r.onAbort&&t.push(r.onAbort)}catch(e){for(let e of(t.reverse(),t))try{e()}catch(e){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:e?.message})}}}async function tq(e,t={}){return tn(e,"GET","/v2/passwordPolicy",tr(e,t))}class tY{constructor(e){const t=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=t.minPasswordLength??6,t.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=t.maxPasswordLength),void 0!==t.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=t.containsLowercaseCharacter),void 0!==t.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=t.containsUppercaseCharacter),void 0!==t.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=t.containsNumericCharacter),void 0!==t.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=t.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=e.allowedNonAlphanumericCharacters?.join("")??"",this.forceUpgradeOnSignin=e.forceUpgradeOnSignin??!1,this.schemaVersion=e.schemaVersion}validatePassword(e){let t={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,t),this.validatePasswordCharacterOptions(e,t),t.isValid&&
11(t.isValid=t.meetsMinPasswordLength??!0),t.isValid&&(t.isValid=t.meetsMaxPasswordLength??!0),t.isValid&&(t.isValid=t.containsLowercaseLetter??!0),t.isValid&&(t.isValid=t.containsUppercaseLetter??!0),t.isValid&&(t.isValid=t.containsNumericCharacter??!0),t.isValid&&(t.isValid=t.containsNonAlphanumericCharacter??!0),t}validatePasswordLengthOptions(e,t){let r=this.customStrengthOptions.minPasswordLength,n=this.customStrengthOptions.maxPasswordLength;r&&(t.meetsMinPasswordLength=e.length>=r),n&&(t.meetsMaxPasswordLength=e.length<=n)}validatePasswordCharacterOptions(e,t){let r;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let n=0;n<e.length;n++)r=e.charAt(n),this.updatePasswordCharacterOptionsStatuses(t,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,t,r,n,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=n)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}class t${constructor(e,t,r,n){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=r,this.config=n,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new tW(this),this.idTokenSubscription=new tW(this),this.beforeStateQueue=new tK(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=eq,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=n.sdkClientVersion,this._persistenceManagerAvailable=new Promise(e=>this._resolvePersistenceManagerAvailable=e)}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=tR(t)),this._initializationPromise=this.queue(async()=>{if(!this._deleted){if(this.persistenceManager=await tk.create(this,e),this._resolvePersistenceManagerAvailable?.(),!this._deleted){if(this._popupRedirectResolver?._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(e){}await this.initializeCurrentUser(t),this.lastNotifiedUid=this.currentUser?.uid||null,this._deleted||(this._isInitialized=!0)}}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;let e=await this.assertedPersistence.getCurrentUser();if(this.currentUser||e){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUserFromIdToken(e){try{let t=await td(this,{idToken:e}),r=await tA._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(r)}catch(e){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",e),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){if(eA(this.app)){let e=this.app.settings.authIdToken;return e?new Promise(t=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(e).then(t,t))}):this.directlySetCurrentUser(null)}let t=await this.assertedPersistence.getCurrentUser(),r=t,n=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();let t=this.redirectUser?._redirectEventId,i=r?._redirectEventId,s=await this.tryRedirectSignIn(e);(!t||t===i)&&s?.user&&(r=s.user,n=!0)}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(n)try{await this.beforeStateQueue.runMiddleware(r)}catch(e){r=t,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(e))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return(e2(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId)?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(e){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await tv(e)}catch(e){if(e?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("u"<typeof navigator)return null;let e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}
11async updateCurrentUser(e){if(eA(this.app))return Promise.reject(e0(this));let t=e?K(e):null;return t&&e2(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&e2(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return eA(this.app)?Promise.reject(e0(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return eA(this.app)?Promise.reject(e0(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(tR(e))})}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();let t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){let e=new tY(await tq(this));null===this.tenantId?this._projectPasswordPolicy=e:this._tenantPasswordPolicies[this.tenantId]=e}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new M("auth","Firebase",e())}onAuthStateChanged(e,t,r){return this.registerStateListener(this.authStateSubscription,e,t,r)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,r){return this.registerStateListener(this.idTokenSubscription,e,t,r)}authStateReady(){return new Promise((e,t)=>{if(this.currentUser)e();else{let r=this.onAuthStateChanged(()=>{r(),e()},t)}})}async revokeAccessToken(e){if(this.currentUser){let t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await tT(this,t)}}toJSON(){return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}async _setRedirectUser(e,t){let r=await this.getOrInitRedirectPersistenceManager(t);return null===e?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){let t=e&&tR(e)||this._popupRedirectResolver;e2(t,this,"argument-error"),this.redirectPersistenceManager=await tk.create(this,[tR(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){return(this._isInitialized&&await this.queue(async()=>{}),this._currentUser?._redirectEventId===e)?this._currentUser:this.redirectUser?._redirectEventId===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);let e=this.currentUser?.uid??null;this.lastNotifiedUid!==e&&(this.lastNotifiedUid=e,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,r,n){if(this._deleted)return()=>{};let i="function"==typeof t?t:t.next.bind(t),s=!1,a=this._isInitialized?Promise.resolve():this._initializationPromise;if(e2(a,this,"internal-error"),a.then(()=>{s||i(this.currentUser)}),"function"==typeof t){let i=e.addObserver(t,r,n);return()=>{s=!0,i()}}{let r=e.addObserver(t);return()=>{s=!0,r()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return e2(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=tJ(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){let e={"X-Client-Version":this.clientVersion};this.app.options.appId&&(e["X-Firebase-gmpid"]=this.app.options.appId);let t=await this.heartbeatServiceProvider.getImmediate({optional:!0})?.getHeartbeatsHeader();t&&(e["X-Firebase-Client"]=t);let r=await this._getAppCheckToken();return r&&(e["X-Firebase-AppCheck"]=r),e}async _getAppCheckToken(){if(eA(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let e=await this.appCheckServiceProvider.getImmediate({optional:!0})?.getToken();return e?.error&&e$(`Error while retrieving App Check token: ${e.error}`),e?.token}}class tW{constructor(e){this.auth=e,this.observer=null,this.addObserver=function(e){let t=new z(e,void 0);return t.subscribe.bind(t)}(e=>this.observer=e)}get next(){return e2(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let tQ={async loadJS(){throw Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function tZ(e){return`__${e}${Math.floor(1e6*Math.random())}`}class tX{constructor(){this.enterprise=new t0}ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}class t0{ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}let t1="NO_RECAPTCHA",t2="onFirebaseAuthREInstanceReady";class t3{constructor(e){this.type="recaptcha-enterprise",this.auth=function(e){return K(e)}(e)}async verify(e="verify",t=!1){async function r(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise(async(t,r)=>
11{tB(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(n=>{if(void 0===n.recaptchaKey)r(Error("recaptcha Enterprise site key undefined"));else{let r=new tc(n);return null==e.tenantId?e._agentRecaptchaConfig=r:e._tenantRecaptchaConfigs[e.tenantId]=r,t(r.siteKey)}}).catch(e=>{r(e)})})}function n(t,r,n){let i=window.grecaptcha;tu(i)?i.enterprise.ready(()=>{i.enterprise.execute(t,{action:e}).then(e=>{r(e)}).catch(()=>{r(t1)})}):n(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new tX().execute("siteKey",{action:"verify"}):new Promise((e,i)=>{r(this.auth).then(async r=>{if(!t&&tu(window.grecaptcha)&&t3.scriptInjectionDeferred)await t3.scriptInjectionDeferred.promise,n(r,e,i);else{var s;if("u"<typeof window)return void i(Error("RecaptchaVerifier is only supported in browser"));let t=tQ.recaptchaEnterpriseScript;0!==t.length&&(t+=r+`&onload=${t2}`),t3.scriptInjectionDeferred=new L,window[t2]=()=>{t3.scriptInjectionDeferred?.resolve()},(s=t,tQ.loadJS(s)).then(()=>t3.scriptInjectionDeferred?.promise).then(()=>{n(r,e,i)}).catch(e=>{i(e)})}}).catch(e=>{i(e)})})}}async function t6(e,t,r,n=!1,i=!1){let s,a=new t3(e);if(i)s=t1;else try{s=await a.verify(r)}catch(e){s=await a.verify(r,!0)}let o={...t};if("mfaSmsEnrollment"===r||"mfaSmsSignIn"===r){if("phoneEnrollmentInfo"in o){let e=o.phoneEnrollmentInfo.phoneNumber,t=o.phoneEnrollmentInfo.recaptchaToken;Object.assign(o,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:t,captchaResponse:s,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in o){let e=o.phoneSignInInfo.recaptchaToken;Object.assign(o,{phoneSignInInfo:{recaptchaToken:e,captchaResponse:s,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return o}return n?Object.assign(o,{captchaResp:s}):Object.assign(o,{captchaResponse:s}),Object.assign(o,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(o,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),o}async function t8(e,t,r,n,i){if("EMAIL_PASSWORD_PROVIDER"===i)if(!e._getRecaptchaConfig()?.isProviderEnabled("EMAIL_PASSWORD_PROVIDER"))return n(e,t).catch(async i=>{if("auth/missing-recaptcha-token"!==i.code)return Promise.reject(i);{console.log(`${r} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);let i=await t6(e,t,r,"getOobCode"===r);return n(e,i)}});else{let i=await t6(e,t,r,"getOobCode"===r);return n(e,i)}if("PHONE_PROVIDER"!==i)return Promise.reject(i+" provider is not supported.");if(e._getRecaptchaConfig()?.isProviderEnabled("PHONE_PROVIDER")){let i=await t6(e,t,r);return n(e,i).catch(async i=>{if(e._getRecaptchaConfig()?.getProviderEnforcementState("PHONE_PROVIDER")==="AUDIT"&&("auth/missing-recaptcha-token"===i.code||"auth/invalid-app-credential"===i.code)){console.log(`Failed to verify with reCAPTCHA Enterprise. Automatically triggering the reCAPTCHA v2 flow to complete the ${r} flow.`);let i=await t6(e,t,r,!1,!0);return n(e,i)}return Promise.reject(i)})}{let i=await t6(e,t,r,!1,!0);return n(e,i)}}async function t4(e){let t=K(e),r=new tc(await tB(t,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}));null==t.tenantId?t._agentRecaptchaConfig=r:t._tenantRecaptchaConfigs[t.tenantId]=r,r.isAnyProviderEnabled()&&new t3(t).verify()}function t5(e){let t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function t9(e){if(!e)return null;let t=Number(e);return isNaN(t)?null:t}t3.scriptInjectionDeferred=null;class t7{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return e3("not implemented")}_getIdTokenResponse(e){return e3("not implemented")}_linkToIdToken(e,t){return e3("not implemented")}_getReauthenticationResolver(e){return e3("not implemented")}}async function re(e,t){return tn(e,"POST","/v1/accounts:signUp",t)}async function rt(e,t){return ts(e,"POST","/v1/accounts:signInWithPassword",tr(e,t))}async function rr(e,t){return ts(e,"POST","/v1/accounts:signInWithEmailLink",tr(e,t))}async function rn(e,t){return ts(e,"POST","/v1/accounts:signInWithEmailLink",tr(e,t))}class ri extends t7{constructor(e,t,r,n=null){super("password",r),this._email=e,this._password=t,this._tenantId=n}static _fromEmailAndPassword(e,t){return new ri(e,t,"password")}static _fromEmailAndCode(e,t,r=null){return new ri(e,t,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){let t="string"==typeof e?JSON.parse(e):e;if(t?.email&&t?.password){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);else if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return t8(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",rt,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return rr(e,{email:this._email,oobCode:this._password});default:eQ(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return t8(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",re,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return rn(e,{idToken:t,email:this._email,oobCode:this._password});default:eQ(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function rs(e,t){return ts(e,"POST","/v1/accounts:signInWithIdp",tr(e,t))}class ra extends t7{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){let t=new ra(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&
11(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):eQ("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){let{providerId:t,signInMethod:r,...n}="string"==typeof e?JSON.parse(e):e;if(!t||!r)return null;let i=new ra(t,r);return i.idToken=n.idToken||void 0,i.accessToken=n.accessToken||void 0,i.secret=n.secret,i.nonce=n.nonce,i.pendingToken=n.pendingToken||null,i}_getIdTokenResponse(e){return rs(e,this.buildRequest())}_linkToIdToken(e,t){let r=this.buildRequest();return r.idToken=t,rs(e,r)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=!1,rs(e,t)}buildRequest(){let e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{let t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=H(t)}return e}}async function ro(e,t){return tn(e,"POST","/v1/accounts:sendVerificationCode",tr(e,t))}async function rl(e,t){return ts(e,"POST","/v1/accounts:signInWithPhoneNumber",tr(e,t))}async function ru(e,t){let r=await ts(e,"POST","/v1/accounts:signInWithPhoneNumber",tr(e,t));if(r.temporaryProof)throw tl(e,"account-exists-with-different-credential",r);return r}let rc={USER_NOT_FOUND:"user-not-found"};async function rB(e,t){return ts(e,"POST","/v1/accounts:signInWithPhoneNumber",tr(e,{...t,operation:"REAUTH"}),rc)}class rh extends t7{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new rh({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new rh({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return rl(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return ru(e,{idToken:t,...this._makeVerificationRequest()})}_getReauthenticationResolver(e){return rB(e,this._makeVerificationRequest())}_makeVerificationRequest(){let{temporaryProof:e,phoneNumber:t,verificationId:r,verificationCode:n}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:r,code:n}}toJSON(){let e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"==typeof e&&(e=JSON.parse(e));let{verificationId:t,verificationCode:r,phoneNumber:n,temporaryProof:i}=e;return r||t||n||i?new rh({verificationId:t,verificationCode:r,phoneNumber:n,temporaryProof:i}):null}}class rd{constructor(e){const t=V(j(e)),r=t.apiKey??null,n=t.oobCode??null,i=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(t.mode??null);e2(r&&n&&i,"argument-error"),this.apiKey=r,this.operation=i,this.code=n,this.continueUrl=t.continueUrl??null,this.languageCode=t.lang??null,this.tenantId=t.tenantId??null}static parseLink(e){let t,r,n,i=(r=(t=V(j(e)).link)?V(j(t)).deep_link_id:null,((n=V(j(e)).deep_link_id)?V(j(n)).link:null)||n||r||t||e);try{return new rd(i)}catch{return null}}}class rp{constructor(){this.providerId=rp.PROVIDER_ID}static credential(e,t){return ri._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){let r=rd.parseLink(t);return e2(r,"argument-error"),ri._fromEmailAndCode(e,r.code,r.tenantId)}}rp.PROVIDER_ID="password",rp.EMAIL_PASSWORD_SIGN_IN_METHOD="password",rp.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class rf{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class rg extends rf{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class rC extends rg{constructor(){super("facebook.com")}static credential(e){return ra._fromParams({providerId:rC.PROVIDER_ID,signInMethod:rC.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return rC.credentialFromTaggedObject(e)}static credentialFromError(e){return rC.credentialFromTaggedObject(e.customData||{})}
11static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return rC.credential(e.oauthAccessToken)}catch{return null}}}rC.FACEBOOK_SIGN_IN_METHOD="facebook.com",rC.PROVIDER_ID="facebook.com";class rm extends rg{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return ra._fromParams({providerId:rm.PROVIDER_ID,signInMethod:rm.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return rm.credentialFromTaggedObject(e)}static credentialFromError(e){return rm.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthIdToken:t,oauthAccessToken:r}=e;if(!t&&!r)return null;try{return rm.credential(t,r)}catch{return null}}}rm.GOOGLE_SIGN_IN_METHOD="google.com",rm.PROVIDER_ID="google.com";class r_ extends rg{constructor(){super("github.com")}static credential(e){return ra._fromParams({providerId:r_.PROVIDER_ID,signInMethod:r_.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return r_.credentialFromTaggedObject(e)}static credentialFromError(e){return r_.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return r_.credential(e.oauthAccessToken)}catch{return null}}}r_.GITHUB_SIGN_IN_METHOD="github.com",r_.PROVIDER_ID="github.com";class ry extends rg{constructor(){super("twitter.com")}static credential(e,t){return ra._fromParams({providerId:ry.PROVIDER_ID,signInMethod:ry.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return ry.credentialFromTaggedObject(e)}static credentialFromError(e){return ry.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthAccessToken:t,oauthTokenSecret:r}=e;if(!t||!r)return null;try{return ry.credential(t,r)}catch{return null}}}async function rE(e,t){return ts(e,"POST","/v1/accounts:signUp",tr(e,t))}ry.TWITTER_SIGN_IN_METHOD="twitter.com",ry.PROVIDER_ID="twitter.com";class rv{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,r,n=!1){return new rv({user:await tA._fromIdTokenResponse(e,r,n),providerId:rw(r),_tokenResponse:r,operationType:t})}static async _forOperation(e,t,r){return await e._updateTokensIfNecessary(r,!0),new rv({user:e,providerId:rw(r),_tokenResponse:r,operationType:t})}}function rw(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}class rb extends x{constructor(e,t,r,n){super(t.code,t.message),this.operationType=r,this.user=n,Object.setPrototypeOf(this,rb.prototype),this.customData={appName:e.name,tenantId:e.tenantId??void 0,_serverResponse:t.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,t,r,n){return new rb(e,t,r,n)}}function rD(e,t,r,n){return("reauthenticate"===t?r._getReauthenticationResolver(e):r._getIdTokenResponse(e)).catch(r=>{if("auth/multi-factor-auth-required"===r.code)throw rb._fromErrorAndOperation(e,r,t,n);throw r})}async function rT(e,t,r=!1){let n=await t_(e,t._linkToIdToken(e.auth,await e.getIdToken()),r);return rv._forOperation(e,"link",n)}async function rI(e,t,r=!1){let{auth:n}=e;if(eA(n.app))return Promise.reject(e0(n));let i="reauthenticate";try{let s=await t_(e,rD(n,i,t,e),r);e2(s.idToken,n,"internal-error");let a=tC(s.idToken);e2(a,n,"internal-error");let{sub:o}=a;return e2(e.uid===o,n,"user-mismatch"),rv._forOperation(e,i,s)}catch(e){throw e?.code==="auth/user-not-found"&&eQ(n,"user-mismatch"),e}}async function rS(e,t,r=!1){if(eA(e.app))return Promise.reject(e0(e));let n="signIn",i=await rD(e,n,t),s=await rv._fromIdTokenResponse(e,n,i);return r||await e._updateCurrentUser(s.user),s}async function rA(e,t){return rS(K(e),t)}async function rO(e){let t=K(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function rR(e,t,r){if(eA(e.app))return Promise.reject(e0(e));let n=K(e),i=t8(n,{returnSecureToken:!0,email:t,password:r,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",rE,"EMAIL_PASSWORD_PROVIDER"),s=await i.catch(t=>{throw"auth/password-does-not-meet-requirements"===t.code&&rO(e),t}),a=await rv._fromIdTokenResponse(n,"signIn",s);return await n._updateCurrentUser(a.user),a}function rN(e){return K(e).signOut()}function rP(e,t){return tn(e,"POST","/v2/accounts/mfaEnrollment:start",tr(e,t))}new WeakMap;let rk="__sak";class rL{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{if(!this.storage)return Promise.resolve(!1);return this.storage.setItem(rk,"1"),this.storage.removeItem(rk),Promise.resolve(!0)}catch{return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){let t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class rF extends rL{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=tz(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(let t of Object.keys(this.listeners)){let r=this.storage.getItem(t),n=this.localCache[t];r!==n&&e(t,n,r)}}onStorageEvent(e,t=!1){let r;
11if(!e.key)return void this.forAllChangedKeys((e,t,r)=>{this.notifyListeners(e,r)});let n=e.key;t?this.detachListener():this.stopPolling();let i=()=>{let e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},s=this.storage.getItem(n);((r=F()).indexOf("MSIE ")>=0||r.indexOf("Trident/")>=0)&&10===document.documentMode&&s!==e.newValue&&e.newValue!==e.oldValue?setTimeout(i,10):i()}notifyListeners(e,t){this.localCache[e]=t;let r=this.listeners[e];if(r)for(let e of Array.from(r))e(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:r}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){let t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}rF.type="LOCAL";class rx extends rL{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,t){}_removeListener(e,t){}}rx.type="SESSION";class rM{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){let t=this.receivers.find(t=>t.isListeningto(e));if(t)return t;let r=new rM(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){let{eventId:t,eventType:r,data:n}=e.data,i=this.handlersMap[r];if(!i?.size)return;e.ports[0].postMessage({status:"ack",eventId:t,eventType:r});let s=Array.from(i).map(async t=>t(e.origin,n)),a=await Promise.all(s.map(async e=>{try{let t=await e;return{fulfilled:!0,value:t}}catch(e){return{fulfilled:!1,reason:e}}}));e.ports[0].postMessage({status:"done",eventId:t,eventType:r,response:a})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}function rG(e="",t=10){let r="";for(let e=0;e<t;e++)r+=Math.floor(10*Math.random());return e+r}rM.receivers=[];class rU{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t,r=50){let n,i,s="u">typeof MessageChannel?new MessageChannel:null;if(!s)throw Error("connection_unavailable");return new Promise((a,o)=>{let l=rG("",20);s.port1.start();let u=setTimeout(()=>{o(Error("unsupported_event"))},r);i={messageChannel:s,onMessage(e){if(e.data.eventId===l)switch(e.data.status){case"ack":clearTimeout(u),n=setTimeout(()=>{o(Error("timeout"))},3e3);break;case"done":clearTimeout(n),a(e.data.response);break;default:clearTimeout(u),clearTimeout(n),o(Error("invalid_response"))}}},this.handlers.add(i),s.port1.addEventListener("message",i.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[s.port2])}).finally(()=>{i&&this.removeMessageHandler(i)})}}function rH(){return window}function rV(){return void 0!==rH().WorkerGlobalScope&&"function"==typeof rH().importScripts}async function rj(){if(!navigator?.serviceWorker)return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}let rz="firebaseLocalStorageDb",rJ="firebaseLocalStorage",rK="fbase_key";class rq{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>
11{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{t(this.request.error)})})}}function rY(e,t){return e.transaction([rJ],t?"readwrite":"readonly").objectStore(rJ)}async function r$(e,t,r){return new rq(rY(e,!0).put({[rK]:t,value:r})).toPromise()}async function rW(e,t){let r=rY(e,!1).get(t),n=await new rq(r).toPromise();return void 0===n?null:n.value}function rQ(e,t){return new rq(rY(e,!0).delete(t)).toPromise()}class rZ{registerLifecycleListeners(){"u">typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("pagehide",this.onPageHide),window.addEventListener("pageshow",this.onPageShow))}unregisterLifecycleListeners(){"u">typeof window&&"function"==typeof window.removeEventListener&&(window.removeEventListener("pagehide",this.onPageHide),window.removeEventListener("pageshow",this.onPageShow))}constructor(){this.type="LOCAL",this.dbPromise=null,this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.isClosing=!1,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this.onPageHide=()=>{this.isClosing=!0,this.stopPolling(),this.dbPromise&&(this.dbPromise.then(e=>e.close()).catch(()=>{}),this.dbPromise=null)},this.onPageShow=()=>{this.isClosing&&(this.isClosing=!1,Object.keys(this.listeners).length>0&&this.startPolling())},this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){if(this.isClosing)throw Error("Database is closing");return this.dbPromise||(this.dbPromise=function e(){let t=indexedDB.open(rz,1);return new Promise((r,n)=>{t.addEventListener("error",()=>{n(t.error)}),t.addEventListener("upgradeneeded",()=>{let e=t.result;try{e.createObjectStore(rJ,{keyPath:rK})}catch(e){n(e)}}),t.addEventListener("success",async()=>{let n=t.result;n.objectStoreNames.contains(rJ)?r(n):(n.close(),await new rq(indexedDB.deleteDatabase(rz)).toPromise(),r(await e()))})})}(),this.dbPromise.catch(()=>{this.dbPromise=null})),this.dbPromise}async _withRetries(e){let t=0;for(;;)try{let t=await this._openDb();return await e(t)}catch(e){if(this.isClosing||t++>3)throw e;this.dbPromise&&((await this.dbPromise).close(),this.dbPromise=null)}}async initializeServiceWorkerMessaging(){return rV()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=rM._getInstance(rV()?self:null),this.receiver._subscribe("keyChanged",async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)})),this.receiver._subscribe("ping",async(e,t)=>["keyChanged"])}async initializeSender(){if(this.activeServiceWorker=await rj(),!this.activeServiceWorker)return;this.sender=new rU(this.activeServiceWorker);let e=await this.sender._send("ping",{},800);e&&e[0]?.fulfilled&&e[0]?.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(this.sender&&this.activeServiceWorker&&(navigator?.serviceWorker?.controller||null)===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;return await this._withRetries(async e=>{await r$(e,rk,"1"),await rQ(e,rk)}),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite(async()=>(await this._withRetries(r=>r$(r,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){let t=await this._withRetries(t=>rW(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>rQ(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){if(this.isClosing)return[];try{let e=await this._withRetries(e=>{let t=rY(e,!1).getAll();return new rq(t).toPromise()});if(this.isClosing||!e||0!==this.pendingWrites)return[];let t=[],r=new Set;if(0!==e.length)for(let{fbase_key:n,value:i}of e)r.add(n),JSON.stringify(this.localCache[n])!==JSON.stringify(i)&&(this.notifyListeners(n,i),t.push(n));for(let e of Object.keys(this.localCache))this.localCache[e]&&!r.has(e)&&(this.notifyListeners(e,null),t.push(e));return t}catch(e){return this.isClosing||e$(`Firebase Auth cross-tab polling failed with error: ${e}`),[]}}notifyListeners(e,t){this.localCache[e]=t;let r=this.listeners[e];if(r)for(let e of Array.from(r))e(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.startPolling(),this.registerLifecycleListeners()),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.stopPolling(),this.unregisterLifecycleListeners())}}function rX(e,t){return tn(e,"POST","/v2/accounts/mfaSignIn:start",tr(e,t))}
11rZ.type="LOCAL",tZ("rcb"),new e4(3e4,6e4);let r0="recaptcha";async function r1(e,t,r){if(!e._getRecaptchaConfig())try{await t4(e)}catch(e){console.log("Failed to initialize reCAPTCHA Enterprise config. Triggering the reCAPTCHA v2 verification.")}try{let n;if(n="string"==typeof t?{phoneNumber:t}:t,"session"in n){let t=n.session;if("phoneNumber"in n){e2("enroll"===t.type,e,"internal-error");let i={idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:n.phoneNumber,clientType:"CLIENT_TYPE_WEB"}},s=async(e,t)=>{if(t.phoneEnrollmentInfo.captchaResponse===t1){e2(r?.type===r0,e,"argument-error");let n=await r2(e,t,r);return rP(e,n)}return rP(e,t)},a=t8(e,i,"mfaSmsEnrollment",s,"PHONE_PROVIDER");return(await a.catch(e=>Promise.reject(e))).phoneSessionInfo.sessionInfo}{e2("signin"===t.type,e,"internal-error");let i=n.multiFactorHint?.uid||n.multiFactorUid;e2(i,e,"missing-multi-factor-info");let s={mfaPendingCredential:t.credential,mfaEnrollmentId:i,phoneSignInInfo:{clientType:"CLIENT_TYPE_WEB"}},a=async(e,t)=>{if(t.phoneSignInInfo.captchaResponse===t1){e2(r?.type===r0,e,"argument-error");let n=await r2(e,t,r);return rX(e,n)}return rX(e,t)},o=t8(e,s,"mfaSmsSignIn",a,"PHONE_PROVIDER");return(await o.catch(e=>Promise.reject(e))).phoneResponseInfo.sessionInfo}}{let t={phoneNumber:n.phoneNumber,clientType:"CLIENT_TYPE_WEB"},i=async(e,t)=>{if(t.captchaResponse===t1){e2(r?.type===r0,e,"argument-error");let n=await r2(e,t,r);return ro(e,n)}return ro(e,t)},s=t8(e,t,"sendVerificationCode",i,"PHONE_PROVIDER");return(await s.catch(e=>Promise.reject(e))).sessionInfo}}finally{r?._reset()}}async function r2(e,t,r){e2(r.type===r0,e,"argument-error");let n=await r.verify();e2("string"==typeof n,e,"argument-error");let i={...t};if("phoneEnrollmentInfo"in i){let e=i.phoneEnrollmentInfo.phoneNumber,t=i.phoneEnrollmentInfo.captchaResponse,r=i.phoneEnrollmentInfo.clientType,s=i.phoneEnrollmentInfo.recaptchaVersion;return Object.assign(i,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:n,captchaResponse:t,clientType:r,recaptchaVersion:s}}),i}if(!("phoneSignInInfo"in i))return Object.assign(i,{recaptchaToken:n}),i;{let e=i.phoneSignInInfo.captchaResponse,t=i.phoneSignInInfo.clientType,r=i.phoneSignInInfo.recaptchaVersion;return Object.assign(i,{phoneSignInInfo:{recaptchaToken:n,captchaResponse:e,clientType:t,recaptchaVersion:r}}),i}}class r3{constructor(e){this.providerId=r3.PROVIDER_ID,this.auth=function(e){return K(e)}(e)}verifyPhoneNumber(e,t){return r1(this.auth,e,K(t))}static credential(e,t){return rh._fromVerification(e,t)}static credentialFromResult(e){return r3.credentialFromTaggedObject(e)}static credentialFromError(e){return r3.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{phoneNumber:t,temporaryProof:r}=e;return t&&r?rh._fromTokenResponse(t,r):null}}r3.PROVIDER_ID="phone",r3.PHONE_SIGN_IN_METHOD="phone";class r6 extends t7{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return rs(e,this._buildIdpRequest())}_linkToIdToken(e,t){return rs(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return rs(e,this._buildIdpRequest())}_buildIdpRequest(e){let t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function r8(e){return rS(e.auth,new r6(e),e.bypassAuthState)}function r4(e){let{auth:t,user:r}=e;return e2(r,t,"internal-error"),rI(r,new r6(e),e.bypassAuthState)}async function r5(e){let{auth:t,user:r}=e;return e2(r,t,"internal-error"),rT(r,new r6(e),e.bypassAuthState)}class r9{constructor(e,t,r,n,i=!1){this.auth=e,this.resolver=r,this.user=n,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise(async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(e){this.reject(e)}})}async onAuthEvent(e){let{urlResponse:t,sessionId:r,postBody:n,tenantId:i,error:s,type:a}=e;if(s)return void this.reject(s);let o={auth:this.auth,requestUri:t,sessionId:r,tenantId:i||void 0,postBody:n||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(o))}catch(e){this.reject(e)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return r8;case"linkViaPopup":case"linkViaRedirect":return r5;case"reauthViaPopup":case"reauthViaRedirect":return r4;default:eQ(this.auth,"internal-error")}}resolve(e){var t,r;t=this.pendingPromise,r="Pending promise was never set",t||e3(r),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){var t,r;t=this.pendingPromise,r="Pending promise was never set",t||e3(r),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}let r7=new e4(2e3,1e4);class ne extends r9{constructor(e,t,r,n,i){super(e,t,n,i),this.provider=r,this.authWindow=null,this.pollId=null,ne.currentPopupAction&&ne.currentPopupAction.cancel(),ne.currentPopupAction=this}async executeNotNull(){let e=await this.execute();return e2(e,this.auth,"internal-error"),e}async onExecution(){var e,t;e=1===this.filter.length,t="Popup operations only handle one event",e||e3(t);let r=rG();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],r),this.authWindow.associatedEvent=r,this.resolver._originValidation(this.auth).catch(e=>{this.reject(e)}),this.resolver._isIframeWebStorageSupported(this.auth,e=>{e||this.reject(eZ(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){return this.authWindow?.associatedEvent||null}cancel(){this.reject(eZ(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,ne.currentPopupAction=null}pollUserCancellation(){let e=()=>{if(this.authWindow?.window?.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(eZ(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,r7.get())};e()}}ne.currentPopupAction=null;
11let nt=new Map;class nr extends r9{constructor(e,t,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,r),this.eventId=null}async execute(){let e=nt.get(this.auth._key());if(!e){try{let t=await nn(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(t){e=()=>Promise.reject(t)}nt.set(this.auth._key(),e)}return this.bypassAuthState||nt.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"===e.type)return void this.resolve(null);if(e.eventId){let t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function nn(e,t){var r;let n=tP("pendingRedirect",(r=t).config.apiKey,r.name),i=tR(e._redirectPersistence);if(!await i._isAvailable())return!1;let s=await i._get(n)==="true";return await i._remove(n),s}function ni(e,t){nt.set(e._key(),t)}async function ns(e,t,r=!1){if(eA(e.app))return Promise.reject(e0(e));let n=K(e),i=t?tR(t):(e2(n._popupRedirectResolver,n,"argument-error"),n._popupRedirectResolver),s=new nr(n,i,r),a=await s.execute();return a&&!r&&(delete a.user._redirectEventId,await n._persistUserIfCurrent(a.user),await n._setRedirectUser(null,t)),a}class na{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(t=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return nl(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){if(e.error&&!nl(e)){let r=e.error.code?.split("auth/")[1]||"internal-error";t.onError(eZ(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){let r=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(no(e))}saveEventToCache(e){this.cachedEventUids.add(no(e)),this.lastProcessedEventTime=Date.now()}}function no(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join("-")}function nl({type:e,error:t}){return"unknown"===e&&t?.code==="auth/no-auth-event"}async function nu(e,t={}){return tn(e,"GET","/v1/projects",t)}let nc=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,nB=/^https?/;async function nh(e){if(e.config.emulator)return;let{authorizedDomains:t}=await nu(e);for(let e of t)try{if(function(e){let t=e6(),{protocol:r,hostname:n}=new URL(t);if(e.startsWith("chrome-extension://")){let i=new URL(e);return""===i.hostname&&""===n?"chrome-extension:"===r&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===r&&i.hostname===n}if(!nB.test(r))return!1;if(nc.test(e))return n===e;let i=e.replace(/\./g,"\\.");return RegExp("^(.+\\."+i+"|"+i+")$","i").test(n)}(e))return}catch{}eQ(e,"unauthorized-domain")}let nd=new e4(3e4,6e4);function np(){let e=rH().___jsl;if(e?.H){for(let t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let t=0;t<e.CP.length;t++)e.CP[t]=null}}let nf=null,ng=new e4(5e3,15e3),nC={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},nm=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);async function n_(e){let t,r,n,i,s,a=await (nf=nf||new Promise((t,r)=>{function n(){np(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{np(),r(eZ(e,"network-request-failed"))},timeout:nd.get()})}if(rH().gapi?.iframes?.Iframe)t(gapi.iframes.getContext());else if(rH().gapi?.load)n();else{var i;let t=tZ("iframefcb");return rH()[t]=()=>{gapi.load?n():r(eZ(e,"network-request-failed"))},(i=`${tQ.gapiScript}?onload=${t}`,tQ.loadJS(i)).catch(e=>r(e))}}).catch(e=>{throw nf=null,e})),o=rH().gapi;return e2(o,e,"internal-error"),a.open({where:document.body,url:(e2((t=e.config).authDomain,e,"auth-domain-config-required"),r=t.emulator?e5(t,"emulator/auth/iframe"):`https://${e.config.authDomain}
11/__/auth/iframe`,n={apiKey:t.apiKey,appName:e.name,v:eN},(i=nm.get(e.config.apiHost))&&(n.eid=i),(s=e._getFrameworks()).length&&(n.fw=s.join(",")),`${r}?${H(n).slice(1)}`),messageHandlersFilter:o.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:nC,dontclear:!0},t=>new Promise(async(r,n)=>{await t.restyle({setHideOnLeave:!1});let i=eZ(e,"network-request-failed"),s=rH().setTimeout(()=>{n(i)},ng.get());function a(){rH().clearTimeout(s),r(t)}t.ping(a).then(a,()=>{n(i)})}))}let ny={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class nE{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}let nv=encodeURIComponent("fac");async function nw(e,t,r,n,i,s){e2(e.config.authDomain,e,"auth-domain-config-required"),e2(e.config.apiKey,e,"invalid-api-key");let a={apiKey:e.config.apiKey,appName:e.name,authType:r,redirectUrl:n,v:eN,eventId:i};if(t instanceof rf)for(let[r,n]of(t.setDefaultLanguage(e.languageCode),a.providerId=t.providerId||"",!function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(t.getCustomParameters())&&(a.customParameters=JSON.stringify(t.getCustomParameters())),Object.entries(s||{})))a[r]=n;if(t instanceof rg){let e=t.getScopes().filter(e=>""!==e);e.length>0&&(a.scopes=e.join(","))}for(let t of(e.tenantId&&(a.tid=e.tenantId),Object.keys(a)))void 0===a[t]&&delete a[t];let o=await e._getAppCheckToken(),l=o?`#${nv}=${encodeURIComponent(o)}`:"";return`${function({config:e}){return e.emulator?e5(e,"emulator/auth/handler"):`https://${e.authDomain}/__/auth/handler`}(e)}?${H(a).slice(1)}${l}`}let nb="webStorageSupport",nD=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=rx,this._completeRedirectFn=ns,this._overrideRedirectResult=ni}async _openPopup(e,t,r,n){var i,s;i=this.eventManagers[e._key()]?.manager,s="_initialize() not called before _openPopup()",i||e3(s);let a=await nw(e,t,r,e6(),n);return function(e,t,r,n=500,i=600){let s=Math.max((window.screen.availHeight-i)/2,0).toString(),a=Math.max((window.screen.availWidth-n)/2,0).toString(),o="",l={...ny,width:n.toString(),height:i.toString(),top:s,left:a},u=F().toLowerCase();r&&(o=tM(u)?"_blank":r),tF(u)&&(t=t||"http://localhost",l.scrollbars="yes");let c=Object.entries(l).reduce((e,[t,r])=>`${e}${t}=${r},`,"");if(function(e=F()){return tj(e)&&!!window.navigator?.standalone}(u)&&"_self"!==o){var B,h;let e,r;return B=t||"",h=o,(e=document.createElement("a")).href=B,e.target=h,(r=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),e.dispatchEvent(r),new nE(null)}let d=window.open(t||"",o,c);e2(d,e,"popup-blocked");try{d.focus()}catch(e){}return new nE(d)}(e,a,rG())}async _openRedirect(e,t,r,n){var i;return await this._originValidation(e),i=await nw(e,t,r,e6(),n),rH().location.href=i,new Promise(()=>{})}_initialize(e){let t=e._key();if(this.eventManagers[t]){var r;let{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(r="If manager is not set, promise should be",n||e3(r),n)}let n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch(()=>{delete this.eventManagers[t]}),n}async initAndGetManager(e){let t=await n_(e),r=new na(e);return t.register("authEvent",t=>(e2(t?.authEvent,e,"invalid-auth-event"),{status:r.onEvent(t.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=t,r}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(nb,{type:nb},r=>{let n=r?.[0]?.[nb];void 0!==n&&t(!!n),eQ(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){let t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=nh(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return tz()||tx()||tj()}};var nT="@firebase/auth",nI="1.13.5";class nS{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){return this.assertAuthConfigured(),this.auth.currentUser?.uid||null}async getToken(e){return(this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser)?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;let t=this.auth.onIdTokenChanged(t=>{e(t?.stsTokenManager.accessToken||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();let t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){e2(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}let nA=k("authIdTokenMaxAge")||300,nO=null;tQ={loadJS:e=>
11new Promise((t,r)=>{let n=document.createElement("script");n.setAttribute("src",e),n.onload=t,n.onerror=e=>{let t=eZ("internal-error");t.customData=e,r(t)},n.type="text/javascript",n.charset="UTF-8",(document.getElementsByTagName("head")?.[0]??document).appendChild(n)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="},s="Browser",eI(new $("auth",(e,{options:t})=>{let r,n,i=e.getProvider("app").getImmediate(),a=e.getProvider("heartbeat"),o=e.getProvider("app-check-internal"),{apiKey:l,authDomain:u}=i.options;e2(l&&!l.includes(":"),"invalid-api-key",{appName:i.name});let c=new t$(i,a,o,{apiKey:l,authDomain:u,clientPlatform:s,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:tJ(s)});return n=(Array.isArray(r=t?.persistence||[])?r:[r]).map(tR),t?.errorMap&&c._updateErrorMap(t.errorMap),c._initializeWithPersistence(n,t?.popupRedirectResolver),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,r)=>{e.getProvider("auth-internal").initialize()})),eI(new $("auth-internal",e=>new nS(K(e.getProvider("auth").getImmediate())),"PRIVATE").setInstantiationMode("EXPLICIT")),eL(nT,nI,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(s)),eL(nT,nI,"esm2020");var nR=e.i(67034),nN="u">typeof globalThis?globalThis:"u">typeof window?window:e.g,nP={};(function(){function e(){this.blockSize=-1,this.blockSize=64,this.g=[,,,,],this.C=Array(this.blockSize),this.o=this.h=0,this.u()}var t=function(){this.blockSize=-1};function r(){}function n(e,t,r){r||(r=0);let n=Array(16);if("string"==typeof t)for(var i=0;i<16;++i)n[i]=t.charCodeAt(r++)|t.charCodeAt(r++)<<8|t.charCodeAt(r++)<<16|t.charCodeAt(r++)<<24;else for(i=0;i<16;++i)n[i]=t[r++]|t[r++]<<8|t[r++]<<16|t[r++]<<24;t=e.g[0],r=e.g[1],i=e.g[2];let s=e.g[3],a;a=t+(s^r&(i^s))+n[0]+0xd76aa478|0,a=s+(i^(t=r+(a<<7|a>>>25))&(r^i))+n[1]+0xe8c7b756|0,a=i+(r^(s=t+(a<<12|a>>>20))&(t^r))+n[2]+0x242070db|0,a=r+(t^(i=s+(a<<17|a>>>15))&(s^t))+n[3]+0xc1bdceee|0,a=t+(s^(r=i+(a<<22|a>>>10))&(i^s))+n[4]+0xf57c0faf|0,a=s+(i^(t=r+(a<<7|a>>>25))&(r^i))+n[5]+0x4787c62a|0,a=i+(r^(s=t+(a<<12|a>>>20))&(t^r))+n[6]+0xa8304613|0,a=r+(t^(i=s+(a<<17|a>>>15))&(s^t))+n[7]+0xfd469501|0,a=t+(s^(r=i+(a<<22|a>>>10))&(i^s))+n[8]+0x698098d8|0,a=s+(i^(t=r+(a<<7|a>>>25))&(r^i))+n[9]+0x8b44f7af|0,a=i+(r^(s=t+(a<<12|a>>>20))&(t^r))+n[10]+0xffff5bb1|0,a=r+(t^(i=s+(a<<17|a>>>15))&(s^t))+n[11]+0x895cd7be|0,a=t+(s^(r=i+(a<<22|a>>>10))&(i^s))+n[12]+0x6b901122|0,a=s+(i^(t=r+(a<<7|a>>>25))&(r^i))+n[13]+0xfd987193|0,a=i+(r^(s=t+(a<<12|a>>>20))&(t^r))+n[14]+0xa679438e|0,a=r+(t^(i=s+(a<<17|a>>>15))&(s^t))+n[15]+0x49b40821|0,r=i+(a<<22|a>>>10),a=t+(i^s&(r^i))+n[1]+0xf61e2562|0,t=r+(a<<5|a>>>27),a=s+(r^i&(t^r))+n[6]+0xc040b340|0,s=t+(a<<9|a>>>23),a=i+(t^r&(s^t))+n[11]+0x265e5a51|0,i=s+(a<<14|a>>>18),a=r+(s^t&(i^s))+n[0]+0xe9b6c7aa|0,r=i+(a<<20|a>>>12),a=t+(i^s&(r^i))+n[5]+0xd62f105d|0,t=r+(a<<5|a>>>27),a=s+(r^i&(t^r))+n[10]+0x2441453|0,s=t+(a<<9|a>>>23),a=i+(t^r&(s^t))+n[15]+0xd8a1e681|0,i=s+(a<<14|a>>>18),a=r+(s^t&(i^s))+n[4]+0xe7d3fbc8|0,r=i+(a<<20|a>>>12),a=t+(i^s&(r^i))+n[9]+0x21e1cde6|0,t=r+(a<<5|a>>>27),a=s+(r^i&(t^r))+n[14]+0xc33707d6|0,s=t+(a<<9|a>>>23),a=i+(t^r&(s^t))+n[3]+0xf4d50d87|0,i=s+(a<<14|a>>>18),a=r+(s^t&(i^s))+n[8]+0x455a14ed|0,r=i+(a<<20|a>>>12),a=t+(i^s&(r^i))+n[13]+0xa9e3e905|0,t=r+(a<<5|a>>>27),a=s+(r^i&(t^r))+n[2]+0xfcefa3f8|0,s=t+(a<<9|a>>>23),a=i+(t^r&(s^t))+n[7]+0x676f02d9|0,i=s+(a<<14|a>>>18),a=r+(s^t&(i^s))+n[12]+0x8d2a4c8a|0,a=t+((r=i+(a<<20|a>>>12))^i^s)+n[5]+0xfffa3942|0,a=s+((t=r+(a<<4|a>>>28))^r^i)+n[8]+0x8771f681|0,a=i+((s=t+(a<<11|a>>>21))^t^r)+n[11]+0x6d9d6122|0,a=r+((i=s+(a<<16|a>>>16))^s^t)+n[14]+0xfde5380c|0,a=t+((r=i+(a<<23|a>>>9))^i^s)+n[1]+0xa4beea44|0,a=s+((t=r+(a<<4|a>>>28))^r^i)+n[4]+0x4bdecfa9|0,a=i+((s=t+(a<<11|a>>>21))^t^r)+n[7]+0xf6bb4b60|0,a=r+((i=s+(a<<16|a>>>16))^s^t)+n[10]+0xbebfbc70|0,a=t+((r=i+(a<<23|a>>>9))^i^s)+n[13]+0x289b7ec6|0,a=s+((t=r+(a<<4|a>>>28))^r^i)+n[0]+0xeaa127fa|0,a=i+((s=t+(a<<11|a>>>21))^t^r)+n[3]+0xd4ef3085|0,a=r+((i=s+(a<<16|a>>>16))^s^t)+n[6]+0x4881d05|0,a=t+((r=i+(a<<23|a>>>9))^i^s)+n[9]+0xd9d4d039|0,a=s+((t=r+(a<<4|a>>>28))^r^i)+n[12]+0xe6db99e5|0,a=i+((s=t+(a<<11|a>>>21))^t^r)+n[15]+0x1fa27cf8|0,a=r+((i=s+(a<<16|a>>>16))^s^t)+n[2]+0xc4ac5665|0,r=i+(a<<23|a>>>
119),a=t+(i^(r|~s))+n[0]+0xf4292244|0,t=r+(a<<6|a>>>26),a=s+(r^(t|~i))+n[7]+0x432aff97|0,s=t+(a<<10|a>>>22),a=i+(t^(s|~r))+n[14]+0xab9423a7|0,i=s+(a<<15|a>>>17),a=r+(s^(i|~t))+n[5]+0xfc93a039|0,r=i+(a<<21|a>>>11),a=t+(i^(r|~s))+n[12]+0x655b59c3|0,t=r+(a<<6|a>>>26),a=s+(r^(t|~i))+n[3]+0x8f0ccc92|0,s=t+(a<<10|a>>>22),a=i+(t^(s|~r))+n[10]+0xffeff47d|0,i=s+(a<<15|a>>>17),a=r+(s^(i|~t))+n[1]+0x85845dd1|0,r=i+(a<<21|a>>>11),a=t+(i^(r|~s))+n[8]+0x6fa87e4f|0,t=r+(a<<6|a>>>26),a=s+(r^(t|~i))+n[15]+0xfe2ce6e0|0,s=t+(a<<10|a>>>22),a=i+(t^(s|~r))+n[6]+0xa3014314|0,i=s+(a<<15|a>>>17),a=r+(s^(i|~t))+n[13]+0x4e0811a1|0,r=i+(a<<21|a>>>11),a=t+(i^(r|~s))+n[4]+0xf7537e82|0,t=r+(a<<6|a>>>26),a=s+(r^(t|~i))+n[11]+0xbd3af235|0,s=t+(a<<10|a>>>22),a=i+(t^(s|~r))+n[2]+0x2ad7d2bb|0,i=s+(a<<15|a>>>17),a=r+(s^(i|~t))+n[9]+0xeb86d391|0,e.g[0]=e.g[0]+t|0,e.g[1]=e.g[1]+(i+(a<<21|a>>>11))|0,e.g[2]=e.g[2]+i|0,e.g[3]=e.g[3]+s|0}function i(e,t){this.h=t;let r=[],n=!0;for(let i=e.length-1;i>=0;i--){let s=0|e[i];n&&s==t||(r[i]=s,n=!1)}this.g=r}r.prototype=t.prototype,e.F=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.D=function(e,r,n){for(var i=Array(arguments.length-2),s=2;s<arguments.length;s++)i[s-2]=arguments[s];return t.prototype[r].apply(e,i)},e.prototype.u=function(){this.g[0]=0x67452301,this.g[1]=0xefcdab89,this.g[2]=0x98badcfe,this.g[3]=0x10325476,this.o=this.h=0},e.prototype.v=function(e,t){void 0===t&&(t=e.length);let r=t-this.blockSize,i=this.C,s=this.h,a=0;for(;a<t;){if(0==s)for(;a<=r;)n(this,e,a),a+=this.blockSize;if("string"==typeof e){for(;a<t;)if(i[s++]=e.charCodeAt(a++),s==this.blockSize){n(this,i),s=0;break}}else for(;a<t;)if(i[s++]=e[a++],s==this.blockSize){n(this,i),s=0;break}}this.h=s,this.o+=t},e.prototype.A=function(){var e=Array((this.h<56?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;t=8*this.o;for(var r=e.length-8;r<e.length;++r)e[r]=255&t,t/=256;for(this.v(e),e=Array(16),t=0,r=0;r<4;++r)for(let n=0;n<32;n+=8)e[t++]=this.g[r]>>>n&255;return e};var s,a={};function o(e){var t;return -128<=e&&e<128?(t=function(e){return new i([0|e],e<0?-1:0)},Object.prototype.hasOwnProperty.call(a,e)?a[e]:a[e]=t(e)):new i([0|e],e<0?-1:0)}function c(e){if(isNaN(e)||!isFinite(e))return B;if(e<0)return g(c(-e));let t=[],r=1;for(let n=0;e>=r;n++)t[n]=e/r|0,r*=0x100000000;return new i(t,0)}var B=o(0),h=o(1),d=o(0x1000000);function p(e){if(0!=e.h)return!1;for(let t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function f(e){return -1==e.h}function g(e){let t=e.g.length,r=[];for(let n=0;n<t;n++)r[n]=~e.g[n];return new i(r,~e.h).add(h)}function C(e,t){return e.add(g(t))}function m(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function _(e,t){this.g=e,this.h=t}function y(e,t){if(p(t))throw Error("division by zero");if(p(e))return new _(B,B);if(f(e))return t=y(g(e),t),new _(g(t.g),g(t.h));if(f(t))return t=y(e,g(t)),new _(g(t.g),t.h);if(e.g.length>30){if(f(e)||f(t))throw Error("slowDivide_ only works with positive integers.");for(var r=h,n=t;0>=n.l(e);)r=E(r),n=E(n);var i=v(r,1),s=v(n,1);for(n=v(n,2),r=v(r,2);!p(n);){var a=s.add(n);0>=a.l(e)&&(i=i.add(r),s=a),n=v(n,1),r=v(r,1)}return t=C(e,i.j(t)),new _(i,t)}for(i=B;e.l(t)>=0;){for(n=(n=Math.ceil(Math.log(r=Math.max(1,Math.floor(e.m()/t.m())))/Math.LN2))<=48?1:Math.pow(2,n-48),a=(s=c(r)).j(t);f(a)||a.l(e)>0;)r-=n,a=(s=c(r)).j(t);p(s)&&(s=h),i=i.add(s),e=C(e,a)}return new _(i,e)}function E(e){let t=e.g.length+1,r=[];for(let n=0;n<t;n++)r[n]=e.i(n)<<1|e.i(n-1)>>>31;return new i(r,e.h)}function v(e,t){let r=t>>5;t%=32;let n=e.g.length-r,s=[];for(let i=0;i<n;i++)s[i]=t>0?e.i(i+r)>>>t|e.i(i+r+1)<<32-t:e.i(i+r);return new i(s,e.h)}(s=i.prototype).m=function(){if(f(this))return-g(this).m();let e=0,t=1;for(let r=0;r<this.g.length;r++){let n=this.i(r);e+=(n>=0?n:0x100000000+n)*t,t*=0x100000000}return e},s.toString=function(e){if((e=e||10)<2||36<e)throw Error("radix out of range: "+e);if(p(this))return"0";if(f(this))return"-"+g(this).toString(e);let t=c(Math.pow(e,6));var r=this;let n="";for(;;){let i=y(r,t).g,s=(((r=C(r,i.j(t))).g.length>0?r.g[0]:r.h)>>>0).toString(e);if(p(r=i))return s+n;for(;s.length<6;)s="0"+s;n=s+n}},s.i=function(e){return e<0?0:e<this.g.length?this.g[e]:this.h},s.l=function(e){return f(e=C(this,e))?-1:+!p(e)},s.abs=function(){return f(this)?g(this):this},s.add=function(e){let t=Math.max(this.g.length,e.g.length),r=[],n=0;for(let i=0;i<=t;i++){let t=n+(65535&this.i(i))+(65535&e.i(i)),s=(t>>>16)+(this.i(i)>>>16)+(e.i(i)>>>16);n=s>>>16,t&=65535,s&=65535,r[i]=s<<16|t}return new i(r,-0x80000000&r[r.length-1]?-1:0)},s.j=function(e){if(p(this)||p(e))return B;if(f(this))return f(e)?g(this).j(g(e)):g(g(this).j(e));if(f(e))return g(this.j(g(e)));if(0>this.l(d)&&0>e.l(d))return c(this.m()*e.m());let t=this.g.length+e.g.length,r=[];for(var n=0;n<2*t;n++)r[n]=0;for(n=0;n<this.g.length;n++)for(let t=0;t<e.g.length;t++){let i=this.i(n)>>>16,s=65535&this.i(n),a=e.i(t)>>>16,o=65535&e.i(t);r[2*n+2*t]+=s*o,m(r,2*n+2*t),r[2*n+2*t+1]+=i*o,m(r,2*n+2*t+1),r[2*n+2*t+1]+=s*a,m(r,2*n+2*t+1),r[2*n+2*t+2]+=i*a,m(r,2*n+2*t+2)}for(e=0;e<t;e++)r[e]=r[2*e+1]<<16|r[2*e];for(e=t;e<2*t;e++)r[e]=0;return new i(r,0)},s.B=function(e){return y(this,e).h},s.and=function(e){let t=Math.max(this.g.length,e.g.length),r=[];for(let n=0;n<t;n++)r[n]=this.i(n)&e.i(n);return new i(r,this.h&e.h)},s.or=function(e){let t=Math.max(this.g.length,e.g.length),r=[];for(let n=0;n<t;n++)r[n]=this.i(n)|e.i(n);return new i(r,this.h|e.h)},s.xor=function(e){let t=Math.max(this.g.length,e.g.length),r=[];for(let n=0;n<t;n++)r[n]=this.i(n)^e.i(n);return new i(r,this.h^e.h)},e.prototype.digest=e.prototype.A,e.prototype.reset=e.prototype.u,e.prototype.update=e.prototype.v,u=nP.Md5=e,i.prototype.add=i.prototype.add,i.prototype.multiply=i.prototype.j,i.prototype.modulo=i.prototype.B,i.prototype.compare=i.prototype.l,i.prototype.toNumber=i.prototype.m,i.prototype.toString=i.prototype.toString,i.prototype.getBits=i.prototype.i,i.fromNumber=c,i.fromString=function e(t,r){if(0==t.length)throw Error("number format error: empty string");if((r=r||10)<2||36<r)throw Error("radix out of range: "+r);if("-"==t.charAt(0))return g(e(t.substring(1),r));if(t.indexOf("-")>=0)throw Error('number format error: interior "-" character');let n=c(Math.pow(r,8)),i=B;for(let e=0;e<t.length;e+=8){var s=Math.min(8,t.length-e);let a=parseInt(t.substring(e,e+s),r);s<8?(s=c(Math.pow(r,s)),i=i.j(s).add(c(a))):i=(i=i.j(n)).add(c(a))}return i},l=nP.Integer=i}).apply(void 0!==nN?nN:"u">typeof self?self:"u">typeof window?window:{});var nk="u">typeof globalThis?globalThis:"u">typeof window?window:e.g,nL={};(function(){var e,t,r=Object.defineProperty,n=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof nk&&nk];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(this);function i(e,t){if(t)t:{var i=n;e=e.split(".");for(var s=0;s<e.length-1;s++){var a=e[s];if(!(a in i))break t;i=i[a]}(t=t(s=i[e=e[e.length-1]]))!=s&&null!=t&&r(i,e,{configurable:!0,writable:!0,value:t})}}i("Symbol.dispose",function(e){return e||Symbol("Symbol.dispose")}),i("Array.prototype.values",function(e){return e||function(){return this[Symbol.iterator]()}}),i("Object.entries",function(e){return e||function(e){var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push([t,e[t]]);return r}});var s=s||{},a=this||self;function o(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function l(e,t,r){return e.call.apply(e.bind,arguments)}function u(e,t,r){return(u=l).apply(null,arguments)}
11function m(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=r.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function _(e,t){function r(){}r.prototype=t.prototype,e.Z=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.Ob=function(e,r,n){for(var i=Array(arguments.length-2),s=2;s<arguments.length;s++)i[s-2]=arguments[s];return t.prototype[r].apply(e,i)}}var y="u">typeof AsyncContext&&"function"==typeof AsyncContext.Snapshot?e=>e&&AsyncContext.Snapshot.wrap(e):e=>e;function E(e){let t=e.length;if(t>0){let r=Array(t);for(let n=0;n<t;n++)r[n]=e[n];return r}return[]}function v(e,t){for(let t=1;t<arguments.length;t++){let n=arguments[t];var r=typeof n;if("array"==(r="object"!=r?r:n?Array.isArray(n)?"array":r:"null")||"object"==r&&"number"==typeof n.length){r=e.length||0;let t=n.length||0;e.length=r+t;for(let i=0;i<t;i++)e[r+i]=n[i]}else e.push(n)}}var w=new class{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return this.h>0?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}(()=>new b,e=>e.reset());class b{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}let D,T=!1,I=new class{constructor(){this.h=this.g=null}add(e,t){let r=w.get();r.set(e,t),this.h?this.h.next=r:this.g=r,this.h=r}},S=()=>{let e=Promise.resolve(void 0);D=()=>{e.then(A)}};function A(){let e;for(var t;e=null,I.g&&(e=I.g,I.g=I.g.next,I.g||(I.h=null),e.next=null),t=e;){try{t.h.call(t.g)}catch(e){!function(e){a.setTimeout(()=>{throw e},0)}(e)}w.j(t),w.h<100&&(w.h++,t.next=w.g,w.g=t)}T=!1}function O(){this.u=this.u,this.C=this.C}function R(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}O.prototype.u=!1,O.prototype.dispose=function(){this.u||(this.u=!0,this.N())},O.prototype[Symbol.dispose]=function(){this.dispose()},O.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},R.prototype.h=function(){this.defaultPrevented=!0};var N=function(){if(!a.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{let e=()=>{};a.addEventListener("test",e,t),a.removeEventListener("test",e,t)}catch(e){}return e}();function P(e){return/^[\s\xa0]*$/.test(e)}function k(e,t){R.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e&&this.init(e,t)}_(k,R),k.prototype.init=function(e,t){let r=this.type=e.type,n=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;this.target=e.target||e.srcElement,this.g=t,(t=e.relatedTarget)||("mouseover"==r?t=e.fromElement:"mouseout"==r&&(t=e.toElement)),this.relatedTarget=t,n?(this.clientX=void 0!==n.clientX?n.clientX:n.pageX,this.clientY=void 0!==n.clientY?n.clientY:n.pageY,this.screenX=n.screenX||0,this.screenY=n.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=e.pointerType,this.state=e.state,this.i=e,e.defaultPrevented&&k.Z.h.call(this)},k.prototype.h=function(){k.Z.h.call(this);let e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var L="closure_listenable_"+(1e6*Math.random()|0),F=0;function x(e,t,r,n,i){this.listener=e,this.proxy=null,this.src=t,this.type=r,this.capture=!!n,this.ha=i,this.key=++F,this.da=this.fa=!1}function M(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function G(e,t,r){for(let n in e)t.call(r,e[n],n,e)}function U(e){let t={};for(let r in e)t[r]=e[r];return t}let H="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function V(e,t){let r,n;for(let t=1;t<arguments.length;t++){for(r in n=arguments[t])e[r]=n[r];for(let t=0;t<H.length;t++)r=H[t],Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}}function j(e){this.src=e,this.g={},this.h=0}function z(e,t){let r=t.type;if(r in e.g){var n,i=e.g[r],s=Array.prototype.indexOf.call(i,t,void 0);(n=s>=0)&&Array.prototype.splice.call(i,s,1),n&&(M(t),0==e.g[r].length&&(delete e.g[r],e.h--))}}function J(e,t,r,n){for(let i=0;i<e.length;++i){let s=e[i];if(!s.da&&s.listener==t&&!!r==s.capture&&s.ha==n)return i}return -1}j.prototype.add=function(e,t,r,n,i){let s=e.toString();(e=this.g[s])||(e=this.g[s]=[],this.h++);let a=J(e,t,n,i);return a>-1?(t=e[a],r||(t.fa=!1)):((t=new x(t,this.src,s,!!n,i)).fa=r,e.push(t)),t};var K="closure_lm_"+(1e6*Math.random()|0),q={};function Y(e){if("number"!=typeof e&&e&&!e.da){var t=e.src;if(t&&t[L])z(t.i,e);else{var r=e.type,n=e.proxy;t.removeEventListener?t.removeEventListener(r,n,e.capture):t.detachEvent?t.detachEvent($(r),n):t.addListener&&t.removeListener&&t.removeListener(n),(r=Q(t))?(z(r,e),
110==r.h&&(r.src=null,t[K]=null)):M(e)}}}function $(e){return e in q?q[e]:q[e]="on"+e}function W(e,t){if(e.da)e=!0;else{t=new k(t,this);let r=e.listener,n=e.ha||e.src;e.fa&&Y(e),e=r.call(n,t)}return e}function Q(e){return(e=e[K])instanceof j?e:null}var Z="__closure_events_fn_"+(1e9*Math.random()>>>0);function X(e){return"function"==typeof e?e:(e[Z]||(e[Z]=function(t){return e.handleEvent(t)}),e[Z])}function ee(){O.call(this),this.i=new j(this),this.M=this,this.G=null}function et(e,t){let r,n;var i,s=e.G;if(s)for(i=[];s;s=s.G)i.push(s);if(e=e.M,s=t.type||t,"string"==typeof t)t=new R(t,e);else if(t instanceof R)t.target=t.target||e;else{var a=t;V(t=new R(s,e),a)}if(a=!0,i)for(n=i.length-1;n>=0;n--)a=er(r=t.g=i[n],s,!0,t)&&a;if(a=er(r=t.g=e,s,!0,t)&&a,a=er(r,s,!1,t)&&a,i)for(n=0;n<i.length;n++)a=er(r=t.g=i[n],s,!1,t)&&a}function er(e,t,r,n){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();let i=!0;for(let s=0;s<t.length;++s){let a=t[s];if(a&&!a.da&&a.capture==r){let t=a.listener,r=a.ha||a.src;a.fa&&z(e.i,a),i=!1!==t.call(r,n)&&i}}return i&&!n.defaultPrevented}_(ee,O),ee.prototype[L]=!0,ee.prototype.removeEventListener=function(e,t,r,n){!function e(t,r,n,i,s){if(Array.isArray(r))for(var a=0;a<r.length;a++)e(t,r[a],n,i,s);else(i=o(i)?!!i.capture:!!i,n=X(n),t&&t[L])?(t=t.i,(a=String(r).toString())in t.g&&(n=J(r=t.g[a],n,i,s))>-1&&(M(r[n]),Array.prototype.splice.call(r,n,1),0==r.length&&(delete t.g[a],t.h--))):t&&(t=Q(t))&&(r=t.g[r.toString()],t=-1,r&&(t=J(r,n,i,s)),(n=t>-1?r[t]:null)&&Y(n))}(this,e,t,r,n)},ee.prototype.N=function(){if(ee.Z.N.call(this),this.i){var e=this.i;for(let t in e.g){let r=e.g[t];for(let e=0;e<r.length;e++)M(r[e]);delete e.g[t],e.h--}}this.G=null},ee.prototype.J=function(e,t,r,n){return this.i.add(String(e),t,!1,r,n)},ee.prototype.K=function(e,t,r,n){return this.i.add(String(e),t,!0,r,n)};class en extends O{constructor(e,t){super(),this.m=e,this.l=t,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:function e(t){t.g=function(e,t){if("function"!=typeof e)if(e&&"function"==typeof e.handleEvent)e=u(e.handleEvent,e);else throw Error("Invalid listener argument");return Number(t)>0x7fffffff?-1:a.setTimeout(e,t||0)}(()=>{t.g=null,t.i&&(t.i=!1,e(t))},t.l);let r=t.h;t.h=null,t.m.apply(null,r)}(this)}N(){super.N(),this.g&&(a.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function ei(e){O.call(this),this.h=e,this.g={}}_(ei,O);var es=[];function ea(e){G(e.g,function(e,t){this.g.hasOwnProperty(t)&&Y(e)},e),e.g={}}ei.prototype.N=function(){ei.Z.N.call(this),ea(this)},ei.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var eo=a.JSON.stringify,el=a.JSON.parse,eu=class{stringify(e){return a.JSON.stringify(e,void 0)}parse(e){return a.JSON.parse(e,void 0)}};function ec(){}function eB(){}var eh={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function ed(){R.call(this,"d")}function ep(){R.call(this,"c")}_(ed,R),_(ep,R);var ef={},eg=null;function eC(){return eg=eg||new ee}function em(e){R.call(this,ef.Ia,e)}function e_(e){let t=eC();et(t,new em(t))}function ey(e,t){R.call(this,ef.STAT_EVENT,e),this.stat=t}function eE(e){let t=eC();et(t,new ey(t,e))}function ev(e,t){R.call(this,ef.Ja,e),this.size=t}function ew(e,t){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return a.setTimeout(function(){e()},t)}function eb(){this.g=!0}function eD(e,t,r,n){e.info(function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{let s=JSON.parse(t);if(s){for(e=0;e<s.length;e++)if(Array.isArray(s[e])){var r=s[e];if(!(r.length<2)){var n=r[1];if(Array.isArray(n)&&!(n.length<1)){var i=n[0];if("noop"!=i&&"stop"!=i&&"close"!=i)for(let e=1;e<n.length;e++)n[e]=""}}}}return eo(s)}catch(e){return t}}(e,r)+(n?" "+n:"")})}ef.Ia="serverreachability",_(em,R),ef.STAT_EVENT="statevent",_(ey,R),ef.Ja="timingevent",_(ev,R),eb.prototype.ua=function(){this.g=!1},eb.prototype.info=function(){};var eT={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},eI={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"};function eS(){}function eA(e){return encodeURIComponent(String(e))}function eO(e,t,r,n){this.j=e,this.i=t,this.l=r,this.S=n||1,this.V=new ei(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new eR}function eR(){this.i=null,this.g="",this.h=!1}_(eS,ec),eS.prototype.g=function(){return new XMLHttpRequest},e=new eS;var eN={},eP={};function ek(e,t,r){e.M=1,e.A=e6(eX(t)),e.u=r,e.R=!0,eL(e,null)}function eL(e,t){e.F=Date.now(),ex(e),e.B=eX(e.A);var r,n,i,s,a,l,c=e.B,B=e.S;Array.isArray(B)||(B=[String(B)]),tl(c.i,"t",B),e.C=0,c=e.j.L,e.h=new eR,e.g=tY(e.j,c?t:null,!e.u),e.P>0&&(e.O=new en(u(e.Y,e,e.g),e.P)),t=e.V,c=e.g,B=e.ba;var h="readystatechange";Array.isArray(h)||(h&&(es[0]=h.toString()),h=es);for(let e=0;e<h.length;e++){let r=function e(t,r,n,i,s){if(Array.isArray(r)){for(let a=0;a<r.length;a++)e(t,r[a],n,i,s);return null}return n=X(n),t&&t[L]?t.J(r,n,!!o(i)&&!!i.capture,s):function(e,t,r,n,i,s){if(!t)throw Error("Invalid event type");let a=o(i)?!!i.capture:!!i,l=Q(e);if(l||(e[K]=l=new j(e)),(r=l.add(t,r,n,a,s)).proxy)return r;if(n=function e(t){return W.call(e.src,e.listener,t)},r.proxy=n,n.src=e,n.listener=r,e.addEventListener)N||(i=a),void 0===i&&(i=!1),e.addEventListener(t.toString(),n,i);else if(e.attachEvent)e.attachEvent($(t.toString()),n);else if(e.addListener&&e.removeListener)e.addListener(n);else throw Error("addEventListener and attachEvent are unavailable.");return r}(t,r,n,!1,i,s)}(c,h[e],B||t.handleEvent,!1,t.h||t);if(!r)break;t.g[r.key]=r}t=e.J?U(e.J):{},e.u?(e.v||(e.v="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.B,e.v,e.u,t)):(e.v="GET",e.g.ea(e.B,e.v,null,t)),e_(),r=e.i,n=e.v,i=e.B,s=e.l,a=e.S,l=e.u,r.info(function(){if(r.g)if(l){var e="",t=l.split("&");for(let r=0;r<t.length;r++){var o=t[r].split("=");if(o.length>
111){let t=o[0];o=o[1];let r=t.split("_");e=r.length>=2&&"type"==r[1]?e+(t+"=")+o+"&":e+(t+"=redacted&")}}}else e=null;else e=l;return"XMLHTTP REQ ("+s+") [attempt "+a+"]: "+n+"\n"+i+"\n"+e})}function eF(e){return!!e.g&&"GET"==e.v&&2!=e.M&&e.j.Aa}function ex(e){e.T=Date.now()+e.H,eM(e,e.H)}function eM(e,t){if(null!=e.D)throw Error("WatchDog timer not null");e.D=ew(u(e.aa,e),t)}function eG(e){e.D&&(a.clearTimeout(e.D),e.D=null)}function eU(e){0==e.j.I||e.K||tj(e.j,e)}function eH(e){eG(e);var t=e.O;t&&"function"==typeof t.dispose&&t.dispose(),e.O=null,ea(e.V),e.g&&(t=e.g,e.g=null,t.abort(),t.dispose())}function eV(e,t){try{var r=e.j;if(0!=r.I&&(r.g==e||eq(r.h,e))){if(!e.L&&eq(r.h,e)&&3==r.I){try{var n=r.Ba.g.parse(t)}catch(e){n=null}if(Array.isArray(n)&&3==n.length){var i=n;if(0==i[0]){t:if(!r.v){if(r.g)if(r.g.F+3e3<e.F)tV(r),tN(r);else break t;tG(r),eE(18)}}else r.xa=i[1],0<r.xa-r.K&&i[2]<37500&&r.F&&0==r.A&&!r.C&&(r.C=ew(u(r.Va,r),6e3));1>=eK(r.h)&&r.ta&&(r.ta=void 0)}else tJ(r,11)}else if((e.L||r.g==e)&&tV(r),!P(t))for(i=r.Ba.g.parse(t),t=0;t<i.length;t++){let o=i[t],l=o[0];if(!(l<=r.K))if(r.K=l,o=o[1],2==r.I)if("c"==o[0]){r.M=o[1],r.ba=o[2];let t=o[3];null!=t&&(r.ka=t,r.j.info("VER="+r.ka));let i=o[4];null!=i&&(r.za=i,r.j.info("SVER="+r.za));let l=o[5];null!=l&&"number"==typeof l&&l>0&&(r.O=n=1.5*l,r.j.info("backChannelRequestTimeoutMs_="+n)),n=r;let u=e.g;if(u){let e=u.g?u.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var s=n.h;s.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(s.j=s.l,s.g=new Set,s.h&&(eY(s,s.h),s.h=null))}if(n.G){let e=u.g?u.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(n.wa=e,e3(n.J,n.G,e))}}if(r.I=3,r.l&&r.l.ra(),r.aa&&(r.T=Date.now()-e.F,r.j.info("Handshake RTT: "+r.T+"ms")),(n=r).na=tq(n,n.L?n.ba:null,n.W),e.L){e$(n.h,e);var a=n.O;a&&(e.H=a),e.D&&(eG(e),ex(e)),n.g=e}else tM(n);r.i.length>0&&tk(r)}else"stop"!=o[0]&&"close"!=o[0]||tJ(r,7);else 3==r.I&&("stop"==o[0]||"close"==o[0]?"stop"==o[0]?tJ(r,7):tR(r):"noop"!=o[0]&&r.l&&r.l.qa(o),r.A=0)}}e_(4)}catch(e){}}eO.prototype.ba=function(e){e=e.target;let t=this.O;t&&3==tI(e)?t.j():this.Y(e)},eO.prototype.Y=function(e){try{if(e==this.g)t:{let d=tI(this.g),p=this.g.ya(),f=this.g.ca();if(!(d<3)&&(3!=d||this.g&&(this.h.h||this.g.la()||tS(this.g)))){this.K||4!=d||7==p||(8==p||f<=0?e_(3):e_(2)),eG(this);var t=this.g.ca();this.X=t;var r=function(e){if(!eF(e))return e.g.la();let t=tS(e.g);if(""===t)return"";let r="",n=t.length,i=4==tI(e.g);if(!e.h.i){if("u"<typeof TextDecoder)return eH(e),eU(e),"";e.h.i=new a.TextDecoder}for(let s=0;s<n;s++)e.h.h=!0,r+=e.h.i.decode(t[s],{stream:!(i&&s==n-1)});return t.length=0,e.h.g+=r,e.C=0,e.h.g}(this);if(this.o=200==t,n=this.i,i=this.v,s=this.B,o=this.l,l=this.S,n.info(function(){return"XMLHTTP RESP ("+o+") [ attempt "+l+"]: "+i+"\n"+s+"\n"+d+" "+t}),this.o){if(this.U&&!this.L){r:{if(this.g){var n,i,s,o,l,u,c=this.g;if((u=c.g?c.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!P(u)){var B=u;break r}}B=null}if(e=B)eD(this.i,this.l,e,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,eV(this,e);else{this.o=!1,this.m=3,eE(12),eH(this),eU(this);break t}}if(this.R){let t;for(e=!0;!this.K&&this.C<r.length;)if((t=function(e,t){var r=e.C,n=t.indexOf("\n",r);return -1==n?eP:isNaN(r=Number(t.substring(r,n)))?eN:(n+=1)+r>t.length?eP:(t=t.slice(n,n+r),e.C=n+r,t)}(this,r))==eP){4==d&&(this.m=4,eE(14),e=!1),eD(this.i,this.l,null,"[Incomplete Response]");break}else if(t==eN){this.m=4,eE(15),eD(this.i,this.l,r,"[Invalid Chunk]"),e=!1;break}else eD(this.i,this.l,t,null),eV(this,t);if(eF(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=d||0!=r.length||this.h.h||(this.m=1,eE(16),e=!1),this.o=this.o&&e,e){if(r.length>0&&!this.W){this.W=!0;var h=this.j;h.g==this&&h.aa&&!h.P&&(h.j.info("Great, no buffering proxy detected. Bytes received: "+r.length),tU(h),h.P=!0,eE(11))}}else eD(this.i,this.l,r,"[Invalid Chunked Response]"),eH(this),eU(this)}else eD(this.i,this.l,r,null),eV(this,r);4==d&&eH(this),this.o&&!this.K&&(4==d?tj(this.j,this):(this.o=!1,ex(this)))}else(function(e){let t={};e=(e.g&&tI(e)>=2&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let n=0;n<e.length;n++){if(P(e[n]))continue;var r=function(e){var t=1;e=e.split(":");let r=[];for(;t>0&&e.length;)r.push(e.shift()),t--;return e.length&&r.push(e.join(":")),r}(e[n]);let i=r[0];if("string"!=typeof(r=r[1]))continue;r=r.trim();let s=t[i]||[];t[i]=s,s.push(r)}var n=function(e){return e.join(", ")};for(let e in t)n.call(void 0,t[e],e,t)})(this.g),400==t&&r.indexOf("Unknown SID")>0?(this.m=3,eE(12)):(this.m=0,eE(13)),eH(this),eU(this)}}}catch(e){}finally{}},eO.prototype.cancel=function(){this.K=!0,eH(this)},eO.prototype.aa=function(){var e,t;this.D=null;let r=Date.now();r-this.T>=0?(e=this.i,t=this.B,e.info(function(){return"TIMEOUT: "+t}),2!=this.M&&(e_(),eE(17)),eH(this),this.m=2,eU(this)):eM(this,this.T-r)};var ej=class{constructor(e,t){this.g=e,this.map=t}};function ez(e){this.l=e||10,e=a.PerformanceNavigationTiming?(e=a.performance.getEntriesByType("navigation")).length>0&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):!!(a.chrome&&a.chrome.loadTimes&&a.chrome.loadTimes()&&a.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function eJ(e){return!!e.h||!!e.g&&e.g.size>=e.j}function eK(e){return e.h?1:e.g?e.g.size:0}function eq(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function eY(e,t){e.g?e.g.add(t):e.h=t}function e$(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function eW(e){if(null!=e.h)return e.i.concat(e.h.G);if(null!=e.g&&0!==e.g.size){let t=e.i;for(let r of e.g.values())t=t.concat(r.G);return t}return E(e.i)}ez.prototype.cancel=function(){if(this.i=eW(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(let e of this.g.values())e.cancel();this.g.clear()}};var eQ=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function eZ(e){let t;this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1,e instanceof eZ?(this.l=e.l,e0(this,e.j),this.o=e.o,this.g=e.g,e1(this,e.u),this.h=e.h,e2(this,tu(e.i)),this.m=e.m):e&&(t=String(e).match(eQ))?(this.l=!1,e0(this,t[1]||"",!0),this.o=e8(t[2]||""),this.g=e8(t[3]||"",!0),e1(this,t[4]),this.h=e8(t[5]||"",!0),e2(this,t[6]||"",!0),this.m=e8(t[7]||"")):(this.l=!1,this.i=new tn(null,this.l))}function eX(e){return new eZ(e)}function e0(e,t,r){e.j=r?e8(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function e1(e,t){if(t){if(isNaN(t=Number(t))||t<0)throw Error("Bad port number "+t);e.u=t}else e.u=null}function e2(e,t,r){var n,i;t instanceof tn?(e.i=t,n=e.i,(i=e.l)&&!n.j&&(ti(n),n.i=null,n.g.forEach(function(e,t){let r=t.toLowerCase();t!=r&&(ts(this,t),tl(this,r,e))},n)),n.j=i):(r||(t=e4(t,tt)),e.i=new tn(t,e.l))}function e3(e,t,r){e.i.set(t,r)}function e6(e){return e3(e,"zx",Math.floor(0x80000000*Math.random()).toString(36)+Math.abs(Math.floor(0x80000000*Math.random())^Date.now()).toString(36)),e}function e8(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function e4(e,t,r){return"string"==typeof e?(e=encodeURI(e).replace(t,e5),r&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function e5(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}eZ.prototype.toString=function(){let e=[];var t=this.j;t&&e.push(e4(t,e9,!0),":");var r=this.g;return(r||"file"==t)&&(e.push("//"),(t=this.o)&&e.push(e4(t,e9,!0),"@"),e.push(eA(r).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(r=this.u)&&e.push(":",String(r))),(r=this.h)&&(this.g&&"/"!=r.charAt(0)&&e.push("/"),e.push(e4(r,"/"==r.charAt(0)?te:e7,!0))),(r=this.i.toString())&&e.push("?",r),(r=this.m)&&e.push("#",e4(r,tr)),e.join("")},eZ.prototype.resolve=function(e){let t=eX(this),r=!!e.j;r?e0(t,e.j):r=!!e.o,r?t.o=e.o:r=!!e.g,r?t.g=e.g:r=null!=e.u;var n=e.h;if(r)e1(t,e.u);else if(r=!!e.h){if("/"!=n.charAt(0))if(this.g&&!this.h)n="/"+n;else{var i=t.h.lastIndexOf("/");-1!=i&&(n=t.h.slice(0,i+1)+n)}if(".."==(i=n)||"."==i)n="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){n=0==i.lastIndexOf("/",0),i=i.split("/");let e=[];for(let t=0;t<i.length;){let r=i[t++];"."==r?n&&t==i.length&&e.push(""):".."==r?((e.length>1||1==e.length&&""!=e[0])&&e.pop(),n&&t==i.length&&e.push("")):(e.push(r),n=!0)}n=e.join("/")}else n=i}return r?t.h=n:r=""!==e.i.toString(),r?e2(t,tu(e.i)):r=!!e.m,r&&(t.m=e.m),t};var e9=/[#\/\?@]/g,e7=/[#\?:]/g,te=/[#\?]/g,tt=/[#\?@]/g,tr=/#/g;function tn(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function ti(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(let r=0;r<e.length;r++){let n=e[r].indexOf("="),i,s=null;n>=0?(i=e[r].substring(0,n),s=e[r].substring(n+1)):i=e[r],t(i,s?decodeURIComponent(s.replace(/\+/g," ")):"")}}}(e.i,function(t,r){e.add(decodeURIComponent(t.replace(/\+/g," ")),r)}))}function ts(e,t){ti(e),t=tc(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function ta(e,t){return ti(e),t=tc(e,t),e.g.has(t)}function to(e,t){ti(e);let r=[];if("string"==typeof t)ta(e,t)&&(r=r.concat(e.g.get(tc(e,t))));else for(e=Array.from(e.g.values()),t=0;t<e.length;t++)r=r.concat(e[t]);return r}function tl(e,t,r){ts(e,t),r.length>0&&(e.i=null,e.g.set(tc(e,t),E(r)),e.h+=r.length)}function tu(e){let t=new tn;return t.i=e.i,e.g&&(t.g=new Map(e.g),t.h=e.h),t}function tc(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function tB(e,t,r,n,i){try{i&&(i.onload=null,i.onerror=null,i.onabort=null,i.ontimeout=null),n(r)}catch(e){}}function th(){this.g=new eu}function td(e){this.i=e.Sb||null,this.h=e.ab||!1}function tp(e,t){ee.call(this),this.H=e,this.o=t,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}function tf(e){e.j.read().then(e.Ma.bind(e)).catch(e.ga.bind(e))}function tg(e){e.readyState=4,e.l=null,e.j=null,e.B=null,tC(e)}function tC(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function tm(e){let t="";return G(e,function(e,r){t+=r,t+=":",t+=e,t+="\r\n"}),t}function t_(e,t,r){t:{for(n in r){var n=!1;break t}n=!0}n||(r=tm(r),"string"==typeof e?null!=r&&eA(r):e3(e,t,r))}function ty(e){ee.call(this),this.headers=new Map,this.L=e||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}(t=tn.prototype).add=function(e,t){ti(this),this.i=null,e=tc(this,e);let r=this.g.get(e);return r||this.g.set(e,r=[]),r.push(t),this.h+=1,this},t.forEach=function(e,t){ti(this),this.g.forEach(function(r,n){r.forEach(function(r){e.call(t,r,n,this)},this)},this)},t.set=function(e,t){return ti(this),this.i=null,ta(this,e=tc(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},t.get=function(e,t){return e&&(e=to(this,e)).length>0?String(e[0]):t},t.toString=function(){if(this.i)return this.i;if(!this.g)return"";let e=[],t=Array.from(this.g.keys());for(let n=0;n<t.length;n++){var r=t[n];let i=eA(r);r=to(this,r);for(let t=0;t<r.length;t++){let n=i;""!==r[t]&&(n+="="+eA(r[t])),e.push(n)}}return this.i=e.join("&")},_(td,ec),td.prototype.g=function(){return new tp(this.i,this.h)},_(tp,ee),(t=tp.prototype).open=function(e,t){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.F=e,this.D=t,this.readyState=1,tC(this)},t.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");
11if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;let t={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};e&&(t.body=e),(this.H||a).fetch(new Request(this.D,t)).then(this.Pa.bind(this),this.ga.bind(this))},t.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),this.readyState>=1&&this.g&&4!=this.readyState&&(this.g=!1,tg(this)),this.readyState=0},t.Pa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,tC(this)),this.g&&(this.readyState=3,tC(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(void 0!==a.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;tf(this)}else e.text().then(this.Oa.bind(this),this.ga.bind(this))},t.Ma=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var t=e.value?e.value:new Uint8Array(0);(t=this.B.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?tg(this):tC(this),3==this.readyState&&tf(this)}},t.Oa=function(e){this.g&&(this.response=this.responseText=e,tg(this))},t.Na=function(e){this.g&&(this.response=e,tg(this))},t.ga=function(){this.g&&tg(this)},t.setRequestHeader=function(e,t){this.A.append(e,t)},t.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},t.getAllResponseHeaders=function(){if(!this.h)return"";let e=[],t=this.h.entries();for(var r=t.next();!r.done;)e.push((r=r.value)[0]+": "+r[1]),r=t.next();return e.join("\r\n")},Object.defineProperty(tp.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),_(ty,ee);var tE=/^https?$/i,tv=["POST","PUT"];function tw(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.o=5,tb(e),tT(e)}function tb(e){e.A||(e.A=!0,et(e,"complete"),et(e,"error"))}function tD(e){if(e.h&&void 0!==s){if(e.v&&4==tI(e))setTimeout(e.Ca.bind(e),0);else if(et(e,"readystatechange"),4==tI(e)){e.h=!1;try{let s=e.ca();switch(s){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t,r,n=!0;break;default:n=!1}if(!(t=n)){if(r=0===s){let t=String(e.D).match(eQ)[1]||null;!t&&a.self&&a.self.location&&(t=a.self.location.protocol.slice(0,-1)),r=!tE.test(t?t.toLowerCase():"")}t=r}if(t)et(e,"complete"),et(e,"success");else{e.o=6;try{var i=tI(e)>2?e.g.statusText:""}catch(e){i=""}e.l=i+" ["+e.ca()+"]",tb(e)}}finally{tT(e)}}}}function tT(e,t){if(e.g){e.m&&(clearTimeout(e.m),e.m=null);let r=e.g;e.g=null,t||et(e,"ready");try{r.onreadystatechange=null}catch(e){}}}function tI(e){return e.g?e.g.readyState:0}function tS(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.F){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(e){return null}}function tA(e,t,r){return r&&r.internalChannelParams&&r.internalChannelParams[e]||t}function tO(e){this.za=0,this.i=[],this.j=new eb,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=tA("failFast",!1,e),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=tA("baseRetryDelayMs",5e3,e),this.Za=tA("retryDelaySeedMs",1e4,e),this.Ta=tA("forwardChannelMaxRetries",2,e),this.va=tA("forwardChannelRequestTimeoutMs",2e4,e),this.ma=e&&e.xmlHttpFactory||void 0,this.Ua=e&&e.Rb||void 0,this.Aa=e&&e.useFetchStreams||!1,this.O=void 0,this.L=e&&e.supportsCrossDomainXhr||!1,this.M="",this.h=new ez(e&&e.concurrentRequestLimit),this.Ba=new th,this.S=e&&e.fastHandshake||!1,this.R=e&&e.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=e&&e.Pb||!1,e&&e.ua&&this.j.ua(),e&&e.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&e&&e.detectBufferingProxy||!1,this.ia=void 0,e&&e.longPollingTimeout&&e.longPollingTimeout>0&&(this.ia=e.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}function tR(e){if(tP(e),3==e.I){var t=e.V++,r=eX(e.J);if(e3(r,"SID",e.M),e3(r,"RID",t),e3(r,"TYPE","terminate"),tF(e,r),(t=new eO(e,e.j,t)).M=2,t.A=e6(eX(r)),r=!1,a.navigator&&a.navigator.sendBeacon)try{r=a.navigator.sendBeacon(t.A.toString(),"")}catch(e){}!r&&a.Image&&((new Image).src=t.A,r=!0),r||(t.g=tY(t.j,null),t.g.ea(t.A)),t.F=Date.now(),ex(t)}tK(e)}function tN(e){e.g&&(tU(e),e.g.cancel(),e.g=null)}function tP(e){tN(e),e.v&&(a.clearTimeout(e.v),e.v=null),tV(e),e.h.cancel(),e.m&&("number"==typeof e.m&&a.clearTimeout(e.m),e.m=null)}function tk(e){if(!eJ(e.h)&&!e.m){e.m=!0;var t=e.Ea;D||S(),T||(D(),T=!0),I.add(t,e),e.D=0}}function tL(e,t){var r;r=t?t.l:e.V++;let n=eX(e.J);e3(n,"SID",e.M),e3(n,"RID",r),e3(n,"AID",e.K),tF(e,n),e.u&&e.o&&t_(n,e.u,e.o),r=new eO(e,e.j,r,e.D+1),null===e.u&&(r.J=e.o),t&&(e.i=t.G.concat(e.i)),t=tx(e,r,1e3),r.H=Math.round(.5*e.va)+Math.round(.5*e.va*Math.random()),eY(e.h,r),ek(r,n,t)}function tF(e,t){e.H&&G(e.H,function(e,r){e3(t,r,e)}),e.l&&G({},function(e,r){e3(t,r,e)})}function tx(e,t,r){r=Math.min(e.i.length,r);let n=e.l?u(e.l.Ka,e.l,e):null;t:{var i=e.i;let t=-1;for(;;){let e=["count="+r];-1==t?r>0?(t=i[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let l=!0;for(let u=0;u<r;u++){var s=i[u].g;let r=i[u].map;if((s-=t)<0)t=Math.max(0,i[u].g-100),l=!1;else try{s="req"+s+"_";try{var a=r instanceof Map?r:Object.entries(r);for(let[t,r]of a){let n=r;o(r)&&(n=eo(r)),e.push(s+t+"="+encodeURIComponent(n))}}catch(t){throw e.push(s+"type="+encodeURIComponent("_badmap")),t}}catch(e){n&&n(r)}}if(l){a=e.join("&");break t}}a=void 0}return t.G=e=e.i.splice(0,r),a}function tM(e){if(!e.g&&!e.v){e.Y=1;var t=e.Da;D||S(),T||(D(),T=!0),I.add(t,e),e.A=0}}function tG(e){return!e.g&&!e.v&&!(e.A>=3)&&(e.Y++,e.v=ew(u(e.Da,e),tz(e,e.A)),e.A++,!0)}function tU(e){null!=e.B&&(a.clearTimeout(e.B),e.B=null)}function tH(e){e.g=new eO(e,e.j,"rpc",e.Y),null===e.u&&(e.g.J=e.o),e.g.P=0;var t=eX(e.na);e3(t,"RID","rpc"),e3(t,"SID",e.M),e3(t,"AID",e.K),e3(t,"CI",e.F?"0":"1"),!e.F&&e.ia&&e3(t,"TO",e.ia),e3(t,"TYPE","xmlhttp"),tF(e,t),e.u&&e.o&&t_(t,e.u,e.o),e.O&&(e.g.H=e.O);var r=e.g;e=e.ba,r.M=1,r.A=e6(eX(t)),r.u=null,r.R=!0,eL(r,e)}function tV(e){null!=e.C&&(a.clearTimeout(e.C),e.C=null)}function tj(e,t){var r,n=null;if(e.g==t){tV(e),tU(e),e.g=null;var i=2}else{if(!eq(e.h,t))return;n=t.G,e$(e.h,t),i=1}if(0!=e.I){if(t.o)if(1==i){n=t.u?t.u.length:0,t=Date.now()-t.F;var s=e.D;et(i=eC(),new ev(i,n)),tk(e)}else tM(e);else if(3==(s=t.m)||0==s&&t.X>0||!(1==i&&(r=t,!(eK(e.h)>=e.h.j-!!e.m)&&(e.m?(e.i=r.G.concat(e.i),!0):1!=e.I&&2!=e.I&&!(e.D>=(e.Sa?0:e.Ta))&&(e.m=ew(u(e.Ea,e,r),tz(e,e.D)),e.D++,!0)))||2==i&&tG(e)))switch(n&&n.length>0&&((t=e.h).i=t.i.concat(n)),s){case 1:tJ(e,5);break;case 4:tJ(e,10);break;case 3:tJ(e,6);break;default:tJ(e,2)}}}function tz(e,t){let r=e.Qa+Math.floor(Math.random()*e.Za);return e.isActive()||(r*=2),r*t}function tJ(e,t){if(e.j.info("Error code "+t),2==t){let t,s,o;var r,n=u(e.bb,e),i=e.Ua;let l=!i;i=new eZ(i||"//www.google.com/images/cleardot.gif"),a.location&&"http"==a.location.protocol||e0(i,"https"),e6(i),l?function(e,t){let r=new eb;if(a.Image){let n=new Image;n.onload=m(tB,r,"TestLoadImage: loaded",!0,t,n),n.onerror=m(tB,r,"TestLoadImage: error",!1,t,n),n.onabort=m(tB,r,"TestLoadImage: abort",!1,t,n),n.ontimeout=m(tB,r,"TestLoadImage: timeout",!1,t,n),a.setTimeout(function(){n.ontimeout&&n.ontimeout()},1e4),n.src=e}else t(!1)}(i.toString(),n):(r=i.toString(),t=new eb,s=new AbortController,o=setTimeout(()=>{s.abort(),tB(t,"TestPingServer: timeout",!1,n)},1e4),fetch(r,{signal:s.signal}).then(e=>{clearTimeout(o),e.ok?tB(t,"TestPingServer: ok",!0,n):tB(t,"TestPingServer: server error",!1,n)}).catch(()=>{clearTimeout(o),tB(t,"TestPingServer: error",!1,n)}))}else eE(2);e.I=0,e.l&&e.l.pa(t),tK(e),tP(e)}function tK(e){if(e.I=0,e.ja=[],e.l){let t=eW(e.h);(0!=t.length||0!=e.i.length)&&(v(e.ja,t),v(e.ja,e.i),e.h.i.length=0,E(e.i),e.i.length=0),e.l.oa()}}function tq(e,t,r){var n=r instanceof eZ?eX(r):new eZ(r);if(""!=n.g)t&&(n.g=t+"."+n.g),e1(n,n.u);else{var i=a.location;n=i.protocol,t=t?t+"."+i.hostname:i.hostname,i=+i.port;let e=new eZ(null);n&&e0(e,n),t&&(e.g=t),i&&e1(e,i),r&&(e.h=r),n=e}return r=e.G,t=e.wa,r&&t&&e3(n,r,t),e3(n,"VER",e.ka),tF(e,n),n}function tY(e,t,r){if(t&&!e.L)throw Error("Can't create secondary domain capable XhrIo object.");return(t=new ty(e.Aa&&!e.ma?new td({ab:r}):e.ma)).Fa(e.L),t}function t$(){}function tW(){}function tQ(e,t){ee.call(this),this.g=new tO(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.o=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.sa&&(e?e["X-WebChannel-Client-Profile"]=t.sa:e={"X-WebChannel-Client-Profile":t.sa}),this.g.U=e,(e=t&&t.Qb)&&!P(e)&&(this.g.u=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!P(t)&&(this.g.G=t,null!==(e=this.h)&&t in e&&t in(e=this.h)&&delete e[t]),this.j=new t0(this)}function tZ(e){ed.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){t:{for(let r in t){e=r;break t}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function tX(){ep.call(this),this.status=1}function t0(e){this.g=e}(t=ty.prototype).Fa=function(e){this.H=e},t.ea=function(t,r,n,i){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+t);r=r?r.toUpperCase():"GET",this.D=t,this.l="",this.o=0,this.A=!1,this.h=!0,this.g=this.L?this.L.g():e.g(),this.g.onreadystatechange=y(u(this.Ca,this));try{this.B=!0,this.g.open(r,String(t),!0),this.B=!1}catch(e){tw(this,e);return}if(t=n||"",n=new Map(this.headers),i)if(Object.getPrototypeOf(i)===Object.prototype)for(var s in i)n.set(s,i[s]);else if("function"==typeof i.keys&&"function"==typeof i.get)for(let e of i.keys())n.set(e,i.get(e));else throw Error("Unknown input type for opt_headers: "+String(i));
11for(let[e,o]of(i=Array.from(n.keys()).find(e=>"content-type"==e.toLowerCase()),s=a.FormData&&t instanceof a.FormData,!(Array.prototype.indexOf.call(tv,r,void 0)>=0)||i||s||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),n))this.g.setRequestHeader(e,o);this.F&&(this.g.responseType=this.F),"withCredentials"in this.g&&this.g.withCredentials!==this.H&&(this.g.withCredentials=this.H);try{this.m&&(clearTimeout(this.m),this.m=null),this.v=!0,this.g.send(t),this.v=!1}catch(e){tw(this,e)}},t.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.o=e||7,et(this,"complete"),et(this,"abort"),tT(this))},t.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),tT(this,!0)),ty.Z.N.call(this)},t.Ca=function(){this.u||(this.B||this.v||this.j?tD(this):this.Xa())},t.Xa=function(){tD(this)},t.isActive=function(){return!!this.g},t.ca=function(){try{return tI(this)>2?this.g.status:-1}catch(e){return -1}},t.la=function(){try{return this.g?this.g.responseText:""}catch(e){return""}},t.La=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),el(t)}},t.ya=function(){return this.o},t.Ha=function(){return"string"==typeof this.l?this.l:String(this.l)},(t=tO.prototype).ka=8,t.I=1,t.connect=function(e,t,r,n){eE(0),this.W=e,this.H=t||{},r&&void 0!==n&&(this.H.OSID=r,this.H.OAID=n),this.F=this.X,this.J=tq(this,null,this.W),tk(this)},t.Ea=function(e){if(this.m)if(this.m=null,1==this.I){if(!e){this.V=Math.floor(1e5*Math.random()),e=this.V++;let i=new eO(this,this.j,e),s=this.o;if(this.U&&(s?V(s=U(s),this.U):s=this.U),null!==this.u||this.R||(i.J=s,s=null),this.S)t:{for(var t=0,r=0;r<this.i.length;r++){r:{var n=this.i[r];if("__data__"in n.map&&"string"==typeof(n=n.map.__data__)){n=n.length;break r}n=void 0}if(void 0===n)break;if((t+=n)>4096){t=r;break t}if(4096===t||r===this.i.length-1){t=r+1;break t}}t=1e3}else t=1e3;t=tx(this,i,t),e3(r=eX(this.J),"RID",e),e3(r,"CVER",22),this.G&&e3(r,"X-HTTP-Session-Id",this.G),tF(this,r),s&&(this.R?t="headers="+eA(tm(s))+"&"+t:this.u&&t_(r,this.u,s)),eY(this.h,i),this.Ra&&e3(r,"TYPE","init"),this.S?(e3(r,"$req",t),e3(r,"SID","null"),i.U=!0,ek(i,r,null)):ek(i,r,t),this.I=2}}else 3==this.I&&(e?tL(this,e):0==this.i.length||eJ(this.h)||tL(this))},t.Da=function(){if(this.v=null,tH(this),this.aa&&!(this.P||null==this.g||this.T<=0)){var e=4*this.T;this.j.info("BP detection timer enabled: "+e),this.B=ew(u(this.Wa,this),e)}},t.Wa=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.P=!0,eE(10),tN(this),tH(this))},t.Va=function(){null!=this.C&&(this.C=null,tN(this),tG(this),eE(19))},t.bb=function(e){e?(this.j.info("Successfully pinged google.com"),eE(2)):(this.j.info("Failed to ping google.com"),eE(1))},t.isActive=function(){return!!this.l&&this.l.isActive(this)},(t=t$.prototype).ra=function(){},t.qa=function(){},t.pa=function(){},t.oa=function(){},t.isActive=function(){return!0},t.Ka=function(){},tW.prototype.g=function(e,t){return new tQ(e,t)},_(tQ,ee),tQ.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.L=!0),this.g.connect(this.l,this.h||void 0)},tQ.prototype.close=function(){tR(this.g)},tQ.prototype.o=function(e){var t=this.g;if("string"==typeof e){var r={};r.__data__=e,e=r}else this.v&&((r={}).__data__=eo(e),e=r);t.i.push(new ej(t.Ya++,e)),3==t.I&&tk(t)},tQ.prototype.N=function(){this.g.l=null,delete this.j,tR(this.g),delete this.g,tQ.Z.N.call(this)},_(tZ,ed),_(tX,ep),_(t0,t$),t0.prototype.ra=function(){et(this.g,"a")},t0.prototype.qa=function(e){et(this.g,new tZ(e))},t0.prototype.pa=function(e){et(this.g,new tX)},t0.prototype.oa=function(){et(this.g,"b")},tW.prototype.createWebChannel=tW.prototype.g,tQ.prototype.send=tQ.prototype.o,tQ.prototype.open=tQ.prototype.m,tQ.prototype.close=tQ.prototype.close,C=nL.createWebChannelTransport=function(){return new tW},g=nL.getStatEventTarget=function(){return eC()},f=nL.Event=ef,p=nL.Stat={jb:0,mb:1,nb:2,Hb:3,Mb:4,Jb:5,Kb:6,Ib:7,Gb:8,Lb:9,PROXY:10,NOPROXY:11,Eb:12,Ab:13,Bb:14,zb:15,Cb:16,Db:17,fb:18,eb:19,gb:20},eT.NO_ERROR=0,eT.TIMEOUT=8,eT.HTTP_ERROR=6,d=nL.ErrorCode=eT,eI.COMPLETE="complete",h=nL.EventType=eI,eB.EventType=eh,eh.OPEN="a",eh.CLOSE="b",eh.ERROR="c",eh.MESSAGE="d",ee.prototype.listen=ee.prototype.J,B=nL.WebChannel=eB,nL.FetchXmlHttpFactory=td,ty.prototype.listenOnce=ty.prototype.K,ty.prototype.getLastError=ty.prototype.Ha,ty.prototype.getLastErrorCode=ty.prototype.ya,ty.prototype.getStatus=ty.prototype.ca,ty.prototype.getResponseJson=ty.prototype.La,ty.prototype.getResponseText=ty.prototype.la,ty.prototype.send=ty.prototype.ea,ty.prototype.setWithCredentials=ty.prototype.Fa,c=nL.XhrIo=ty}).apply(void 0!==nk?nk:"u">typeof self?self:"u">typeof window?window:{});var nF=class e{static FOLD_CASE=1;static LITERAL=2;static CLASS_NL=4;static DOT_NL=8;static ONE_LINE=16;static NON_GREEDY=32;static PERL_X=64;static UNICODE_GROUPS=128;static WAS_DOLLAR=256;static LOOKBEHIND=512;static MATCH_NL=e.CLASS_NL|e.DOT_NL;static PERL=e.CLASS_NL|e.ONE_LINE|e.PERL_X|e.UNICODE_GROUPS;static POSIX=0;static UNANCHORED=0;static ANCHOR_START=1;static ANCHOR_BOTH=2};let nx=new Int32Array(128),nM=new Int32Array(128);for(let e=0;e<128;
11e++)e>=97&&e<=122?nx[e]=e-32:nx[e]=e,e>=65&&e<=90?nM[e]=e+32:nM[e]=e;var nG=class{static CODES=new Map([["\x07",7],["\b",8],[" ",9],["\n",10],["\v",11],["\f",12],["\r",13],[" ",32],['"',34],["$",36],["&",38],["'",39],["(",40],[")",41],["*",42],["+",43],["-",45],[".",46],["0",48],["1",49],["2",50],["3",51],["4",52],["5",53],["6",54],["7",55],["8",56],["9",57],[":",58],["<",60],[">",62],["?",63],["A",65],["B",66],["C",67],["F",70],["P",80],["Q",81],["U",85],["Z",90],["[",91],["\\",92],["]",93],["^",94],["_",95],["`",96],["a",97],["b",98],["f",102],["i",105],["m",109],["n",110],["r",114],["s",115],["t",116],["v",118],["x",120],["z",122],["{",123],["|",124],["}",125]]);static toUpperCase(e){if(e<128)return nx[e];let t=String.fromCodePoint(e).toUpperCase(),r=t.codePointAt(0)>65535?2:1;if(t.length>r)return e;let n=String.fromCodePoint(t.codePointAt(0)).toLowerCase(),i=n.codePointAt(0)>65535?2:1;return n.length>i||n.codePointAt(0)!==e?e:t.codePointAt(0)}static toLowerCase(e){if(e<128)return nM[e];let t=String.fromCodePoint(e).toLowerCase(),r=t.codePointAt(0)>65535?2:1;if(t.length>r)return e;let n=String.fromCodePoint(t.codePointAt(0)).toUpperCase(),i=n.codePointAt(0)>65535?2:1;return n.length>i||n.codePointAt(0)!==e?e:t.codePointAt(0)}},nU=class{constructor(e,t=!1){this.data=e,this.isStride1=t,this.SIZE=t?2:3}getLo(e){return this.data[e*this.SIZE]}getHi(e){return this.data[e*this.SIZE+1]}getStride(e){return this.isStride1?1:this.data[e*this.SIZE+2]}get length(){return this.data.length/this.SIZE}};let nH=new Uint8Array(256);for(let e=0;e<64;e++)nH["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-".charCodeAt(e)]=e;let nV=e=>{let t=[],r=0,n=0;for(let i=0;i<e.length;i++){let s=nH[e.charCodeAt(i)];r|=(31&s)<<n,(32&s)==0?(t.push(r),r=0,n=0):n+=5}return t},nj=(e,t)=>{let r=nV(e),n=t?r.length/2:r.length/3,i=new Uint32Array(3*n),s=0,a=0;for(let e=0;e<n;e++)s+=r[a++],i[3*e]=s,s+=r[a++],i[3*e+1]=s,i[3*e+2]=t?1:r[a++];return i};var nz=class{constructor(e){this.initializer=e,this.cache=new Map}has(e){return e in this.initializer}get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.initializer[e],r=t?t():null;return this.cache.set(e,r),r}},nJ=class{static _CASE_ORBIT=null;static get CASE_ORBIT(){return this._CASE_ORBIT||(this._CASE_ORBIT=(e=>{let t=nV(e),r=new Map,n=0;for(let e=0;e<t.length;e+=2){n+=t[e];let i=t[e+1],s=i>>>1^-(1&i);r.set(n,n+s)}return r})("rCgCIgCY+rQI4QiCuuBLgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCCgCBgCBgCBgCBgCBgCBgCB+7OB-BB-BB-BB-BB-BBskQB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BC-BB-BB-BB-BB-BB-BB-BByHBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBDCBBBCBBBCBBCCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBCCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBxHBCBBBCBBBCBBB3SBmMBkNBCBBBCBBB8MBCBBB6MB6MBCBBC+EB0MB2MBCBBB6MB+MBiGBmNBiNBCBBBmKBikzCBmNBqNBkIBsNBCBBBCBBBCBBB0NBCBBB0NDCBBB0NBCBBByNByNBCBBBCBBB2NBCBBDCBBCwDFCBCBDBCBCBDBCBCBDBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBB9EBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBCCBCBDBCBBBhGBvDBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBjICCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBH2iVBCBBBlKBwiVB+jVB+jVBCBBBlMBqEBuEBCBBBCBBBCBBBCBBBCBBB+hVB4hVB8hVBjNB7MC5MB5MCzMC1MB+0yCE5MB20yCC9MBu2yCBwyyCBo0yCChNBlNBo0yCBu-UBi0yCDlNC6-UBpNDrNIu+UDzNCm0yCBzNE0yyCBzNBpEBxNBxNBtEG1NLqxyCBkxyCnFoFrBCBBBCBBDCBBEkIBkIBkICoHHsCCqCBqCBqCCgEC+DB+DBmkOBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCC+BBgCBgCBgCBgCBgCBgCBgCBgCBrCBpCBpCBpCBmjOB-BB8BB-BB-BBgEB-BB-BByBBqgOBsDB-BBtwBB-BB-BB-BBsBBgDBCB-BB-BB-BBeB-BB-BB61OB-BB-BB-DB9DB9DBQB7DBmCE9CBrDBPBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBrFB-EBOBnHB3FB-FCCBBBNBCBBCjIBjIBjIBgFBgFBgFBgFBgFBgFBgFBgFBgFBgFBgFBgFBgFBgFBgFBgFBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCB-BB-BB8kMB-BB6kMB-BB-BB-BB-BB-BB-BB-BB-BB-BBokMB-BB-BBkkMBkkMB-BB-BB-BB-BB-BB-BB-BB4jMB-BB-BB-BB-BB-BB-EB-EB-EB-EB-EB-EB-EB-EB-EB-EB-EB-EB-EB-EB-EB-EBCBBBCBoiMBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBJCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBeBCBBBCBBBCBBBCBBBCBBBCBBBCBBBdBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBCgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDL-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-C64CgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOCgmOGgmODg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FDg8FBg8FBg8FhVg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBQBQBQBQBQBQDPBPBPBPBPBPjkC7mMB5mMBnmMBjmMBCBlmMB3lMBpiMBk8kCBCBBG-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FD-7FB-7FB-7F6FoglCEsuHRwjlCyDCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCB0DBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBG1DD97OCCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBQBQBQBQBQBQBQBQBPBPBPBPBPBPBPBPBQBQBQBQBQBQDPBPBPBPBPBPDQBQBQBQBQBQBQBQBPBPBPBPBPBPBPBPBQBQBQBQBQBQBQBQBPBPBPBPBPBPBPBPBQBQBQBQBQBQDPBPBPBPBPBPEQCQCQCQCPCPCPCPBQBQBQBQBQBQBQBQBPBPBPBPBPBPBPBPB0EB0EBsFBsFBsFBsFBoGBoGBgIBgIBgHBgHB8HB8HDQBQBQBQBQBQBQBQBPBPBPBPBPBPBPBPBQBQBQBQBQBQBQBQBPBPBPBPBPBPBPBPBQBQBQBQBQBQBQBQBPBPBPBPBPBPBPBPBQBQCSFPBPBzEBzEBRCxnOFSFrFBrFBrFBrFBREQBQClkOFPBPBnGBnGFQBQCljOCODPBPB-GB-GBNHSF-HB-HB7HB7HBRqJ53OE9tQBrmQH4Bc3BSgBBgBBgBBgBBgBBgBBgBBgBBgBBgBBgBBgBBgBBgBBgBBgBBfBfBfBfBfBfBfBfBfBfBfBfBfBfBfBfECBByZ0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzB34BgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CBCBBBt-UBruHBt+UB1iVBviVBCBBBCBBBCBBB3hVB5-UB9hVB7hVCCBBCCBBI9jVB9jVBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBICBBBCBBECBBN-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOC-lOG-lOzoeCBBBCBBBCBBBCBBBCBBBCBl8kCBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBTC
11BBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBnECBBBCBBBCBBBCBBBCBBBCBBBCBBDCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBKCBBBCBBBnglCBCBBBCBBBCBBBCBBBCBBECBBBvyyCDCBBBCBBBgDCCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBn0yCB90yCB10yCBh0yCBn0yCCjxyCBzyyCBpxyCBg6BBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBB-CBl0yCBvjlCBCBBBCBBBt2yCBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBhkzCZCBB9a-5Bd-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCm6TCBB7gBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCH-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BmlBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvChDwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCFvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvC1DuCBuCBuCBuCBuCBuCBuCBuCBuCBuCBuCCuCBuCBuCBuCBuCBuCBuCBuCBuCBuCBuCBuCBuCBuCBuCCuCBuCBuCBuCBuCBuCBuCCuCBuCCtCBtCBtCBtCBtCBtCBtCBtCBtCBtCBtCCtCBtCBtCBtCBtCBtCBtCBtCBtCBtCBtCBtCBtCBtCBtCCtCBtCBtCBtCBtCBtCBtCCtCBtCk2BgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEO-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-D+CgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCL-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-B74CgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BhrVgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BhB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BD1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BtxekCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjC")),this._CASE_ORBIT}static _Print=null;static get Print(){return this._Print||(this._Print=new nU(nj("hB9CBjBLBCpWBDFBFGBCCCBSBCsMBClBBDxBBDCBC2BBJaBFFBSVBC-FBCvBBD6BBDkDBP6BBDwBBDOBCbBDCCBJBGfBIqCBCgFBCHBDBBDVBCGBCEEBCBDIBDBBDDBJFFBCCBDBDYBDCBCFBFBBDVBCGBCBBCBBCBBDCCBDBFBBDCBEIIBCBCIIBPBLCBCIBCCBCVBCGBCBBCEBDJBCCBCCBDQQBCBDLBIGBCCBCHBDBBDVBCGBCBBCEBDIBDBBDCBICBFBBCEBDRBLBBCFBECBCDBEBBCCCBEEBEEBBBELBFEBECBCDBDHHPUBGMBCCBCWBCPBDIBCCBCDBIBBCCBCBBDDBDJBIVBCCBCWBCJBCEBDIBCCBCDBIBBGCBCDBDJBCCBNMBCCBCyBBCCBCFBFPBDZBCCBCRBEXBCIBCDDBFBEFFBEBCCCBGBHJBDCBN5BBFcBmBBBCCCBDBCXBCCCBVBDEBCCCBFBCJBDDBhBnCBCjBBFmBBCjBBCOBCMBmBlGBCGGD4LBCDBDGBCCCBCBDoBBCDBDgBBCDBDGBCCCBCBDOBC4BBCDBDiCBDfBEZBH1CBDFBD-TBCbBE4CBIVBKXBKTBNMBCCBCBBN9CBDJBHJBHNBCKBH4CBIqBBGlCBLeBCLBFLBFEEBoBBDEBMrBBFZBHKBE9BBDgCBCcBDKBHJBHNBDtBBDLBVsCBClFBJ7BBEOBE9BBGqBBDKBJqBBG1QBDFBDlBBDFBDHBCGCBdBD0BBCOBCNBDFBCSBDCBCIBSXBJuBBSBBDaBCMBEhBBPgBBQrEBF5UBXKBWz4BBD9LBGsBBCGGD3BBIBBPXBKGBCGBCGBCGBCGBCGBCGBCGBC9DBjBZBC4CBN1GBbPBC+BBC1CBDmDBGqBBC9CBC1CBKvBBCszcBE2BBK7KBV3FBJ8GBV7BBEJBH3BBJlCBJLBHzDBMdBEtCBCKBFgBBC2BBKNBDJBDmDBZbBLFBDFBDFBKGBCGBC7BBF9DBDJBHj9KBNWBFwBBloItLBDpDBnBGBNEBGZBCEBCCCBCCBCCBoUBhBpBBHyBBCSBCDBFEBCmEBF9FBEFBDFBDFBDCBEGBCGBOBBDLBCZBCSBCBBCOBDNBjB6DBGCBFsBBE3CBCMBEwBwBBsBBjEcBEwBBQbBFjBBKdBGqBBGdBCkBBFNBrB9EBDJBHjB
11BFjBBFnBBJzBBMLBCOBCGBCBBCKBCOBCGBCBBEzBBN2JBKVBLHBZFBCpBBCIBmCFBDCCBqBBCBBEDDBVBCnCBJIBxBSBCBBGgBBEaBGaBnB3BBFTBDxBBCBBGHBCCBCcBDCBFJBIIBI-BBhBmBBFLBK1BBEcBDaBGZBIDBNGBxCoCB4ByBBOyBBItBBJJBHlBBEcBJBBxGeBCpBBCCBDBBRFBJIBiBtBBJpBBXZBnBbBVWBKtCBFjBBK9BBCEBOYBIJBH0BBCRBJmBBK-CBCTBMRBCuBB-BGBCCCBCBCOBCKBH6BBGJBHDBCHBDBBDVBCGBCBBCEBCJBDBBDCBDHHGGBDGBEEBMJBCDDClBBCJBCDDCDBCJBCBBJBBe7CBCEBfnCBJJBnF1BBDlBBjBkCBMJBHMBU5BBHJBHTBdaBDOBFWB6F7BBlDyCBNHBDDDBGBCBBCdBCBBDLBKJBnCHBDtBBDKBcnCBJyCBOoCBIJB3CHB5ChBBPJBHIBCsBBCNBLcBEfBDVBCNBqCGBCBBCrBBECCBCCBHBJJBHFBCBBCkBBCBBCFBIJBHrBBFJB3HYBIQBCoBBEcB2CQQBwBBO6cBnDuDBCEBMjGBtyCiDBOvhBBRVBL68DBGmSB61G5BBn2B4RBIeBCJBFwCBCJBHdBDFBLlCBLJBCGBCUBGSBxN5BBnG6CBGYBDYBtBqCBF4BBIQBhCEBMGBK1mHBqBfBiDyDB+vIDBCGBCBBCiJBQeeBBBDPPBCBJrMBloCqDBGMBEIBIJBDDBh7D8HBEzNBHWBQQBQtBBDWBKzDB9B1HBLmBBDpCBJvDBWlCB7DTBNTBN2CBKYBoE0CBCmCBCBBDDDBDDBCBCLBCCCBFBCgCBCDBDHBCGBCbBCDBCEBCEEBFBCzKBDjJBD9VBQEBCOBxiBeBHFB2GGBCQBDGBCBBCEBG9BBiBxDxDBrBBENBDJBFBBhKeBS5BBGxOxOBoBB3GqBBFhGhGBdBCVBJBBhHGBCDBCBBCOBCkGBDPBqBrCBFJBFBByYjCBtC8BBjGDBCaBCBBCDDCJBCDBCCCHFFCECBBBCBBCDDCICBCCDDBCGBCDBCDBCCCBIBCQBGCBCEBCQB1BBBvIrBBFjDBNOBDOBCOBCkBBLtFB5BcBOrBBFIBIBBPFB7E4eBEQBEMBE5GBHLBFQQBKBF3BBJJBHnBBJdBDLBFBBPIBoB3KBJNBDMBEKBE4BBCFFBOBDLBFJBIyEBCmDBmgB-2pBBhB9oEBDt0FBDwpHBQtTBjtC9QBjvBq6EBGppIBnkzVvHB",!1))),this._Print}static CATEGORIES=new nz({C:()=>new nU(nj("AfBgDgBBOrWrWBHHBCBICCVuMuMnBBBzBBBE4B4BBGBcDBHQBXhGhGxBBB8BBBmDNB8BBByBBBQddBCCMEBhBGBsCiFiFJBBDBBXIICCBFBBKBBDBBFHBCDBDGGBaaBEEHDBDBBXIIDGDBCCGDBDBBECBCGBFCCBFBSJBEKKEXXIDDGBBLIEBCCBNBFBBNGBIEEJBBDBBXIIDGGBKKBDDBEEBFBEDBDGGBTTBIBDHHBBBEFFBBBDCCDCBDCBECBNDBGCBEFFBCCBEBCNBWEBOEEYRRBKKEFFBFBDEEDBBFBBLGBXEEYLLGBBKEEFGBDEBEFFBLLELBOEE0BEEHDBRBBbEETCBZKKCBBICBCDBHCCJFBLBBELB7BDBekBBDCCGZZCYYBGGCIILBBFfBpClBlBBCBoBlBlBQOOBjBBnGCCBDBCBB6LFFBIICFFBqBqBFBBiBFFBIICFFBQQ6BFFBkCkCBhBhBBBBbFB3CBBHBB+UCB6CGBXIBZIBVLBOEEDLB-CBBLFBLFBPMMBEB6CGBsBEBnCJBgBNNBCBNDBCCBrBBBGKBtBDBbFBMCB-BBBiCeeBMMBEBLFBPBBvBBBNTBuCnFnFBGB9BCBQCB-BEBsBBBMHBsBEB3QBBHBBnBBBHBBJGCgBBB2BQQPBBHUUBEEKMMBDBbEByBPBDBBcOOBBBjBNBiBOBtEDB7UVBMUB14BBB-LEBuBCCBDBCBB5BGBDNBZIBI4BI-DhBBb6C6CBKB3GZBxC3C3CBoDoDBDBsB-C-C3CIBxBuzcuzcBBB4BIB9KTB5FHB+GTB9BCBLFB5BHBnCHBNFB1DKBfCBvCMMBCBiB4B4BBHBPBBLBBoDXBdJBHBBHBBHIBIII9BDB-DBBLFBl9KLBYDByBjoIBvLBBrDlBBILBGEBbGGCGDrUfBrBFB0BUUFDBGoEoEBCB-FCBHBBHBBHBBECBIIIBLBDBBNbbUDDQBBPhBB8DEBEDBuBCB5COOBBBCuBBvBhEBeCByBOBdDBlBIBfEBsBEBfmBmBBCBPpBB-EBBLFBlBDBlBDBpBHB1BKBNQQIDDMQQIDDBBB1BLB4JIBXJBJXBHrBrBKkCBHBBCtBtBDCBCBBYpCpCBGBKvBBUDDBDBiBCBcEBclBB5BDBVBBzBDDBDBJEEeBBEDBLGBKGBhCfBoBDBNIB3BCBeBBcEBbGBFLBIvCBqC2BB0BMB0BGBvBHBLFBnBCBeHBDvGBgBrBrBEBBDPBHHBKgBBvBHBrBVBblBBdTBYIBvCDBlBIB-BGGBLBaGBLFB2BTTBGBoBIBhDVVBJBTwBwBB8BBICCFQQMFB8BEBLFBFJJBDDBXXIDDGLLBDDBEEBCCBEBCEBIBBICBGKBLCCBCCnBLLCBBCFFLDDBGBDcB9CGGBcBpCHBLlFB3BBBnBhBBmCKBLFBOSB7BFBLFBVbBcBBQDBY4FB9BjDB0CLBJBBCBBJDDfDDBNNBHBLlCBJBBvBBBMaBpCHB0CMBqCGBL1CBJ3CBjBNBLFBKuBuBPJBeCBhBBBXPPBnCBIDDtBCBCDDKHBLFBHDDmBDDHGBLFBtBDBL1HBaGBSqBqBBBBe0CBCOBzBMB8clDBwDGGBJBlGryCBkDMBxhBPBXJB88DEBoS41GB7Bl2BB6RGBgBLLBCByCLLBEBfBBHJBnCJBLIIWEBUvNB7BlGB8CEBaBBarBBsCDB6BGBS-BBGKBIIB3mHoBBhBgDB0D8vIBFIIDkJkJBNBCcBEBBCNBFHBtMjoCBsDEBOCBKGBLBBF-6DB+HCB1NFBYOBSOBvBBBYIB1D7BB3HJBoBBBrCHBxDUBnC5DBVLBVLB4CIBamEB2CoCoCDBBCBBDBBFNNCIIiCFFBJJIddFGGCCBI1K1KBlJlJB-V-VBNBGQQBuiBBgBFBH0GBISSBIIDGGBDB-BgBBCvDBuBCBPBBLDBD-JBgBQB7BEBCvOBrB1GBsBDBC-FBgBXXBGBD-GBIFFDQQmGBBRoBBtCDBLDBDwYBlCrCB+BhGBFccDCCBCCLFFCCCBEBCDBCECEDDCBBCICDCCBFFIKFCLLSEBEGGSzBBDtIBtBDBlDLBQBBQQQmBJBvF3BBeMBtBDBKGBDNBH5EB6eCBSCBOCB7GFBNDBCOBNDB5BHBLFBpBHBfBBNDBDNBKmBB5KHBPBBOCBMCB6BCCBCBRBBND
11BLGB0EoDoDBjgBBh3pBfB-oEBBv0FBBypHOBvThtCB-QhvBBs6EEBrpIlkzVBxHvw-FB",!1)),Cc:()=>new nU(nj("AfgDgB",!0)),Cf:()=>new nU(nj("tFzqBzqBBEBXhGhGyBhMhMBxCxCs5D9-B9-BBDBbEByBEBCJBw03B6H6HBBBimEQQj7IPBhjiBDBwmFHBn0rYffB+CB",!1)),Cn:()=>new nU(nj("4bBBHDBICCVuMuMnBBBzBBBE4B4BBGBcDBHKBvI9B9BBmDmDBMB8BBByBBBQddBCCMEBjBEBuHJJBDDBXXICCBBBFBBKBBDBBFHBCDBDGGBaaBEEHDBDBBXIIDGDBCCGDBDBBECBCGBFCCBFBSJBEKKEXXIDDGBBLIEBCCBNBFBBNGBIEEJBBDBBXIIDGGBKKBDDBEEBFBEDBDGGBTTBIBDHHBBBEFFBBBDCCDCBDCBECBNDBGCBEFFBCCBEBCNBWEBOEEYRRBKKEFFBFBDEEDBBFBBLGBXEEYLLGBBKEEFGBDEBEFFBLLELBOEE0BEEHDBRBBbEETCBZKKCBBICBCDBHCCJFBLBBELB7BDBekBBDCCGZZCYYBGGCIILBBFfBpClBlBBCBoBlBlBQOOBjBBnGCCBDBCBB6LFFBIICFFBqBqBFBBiBFFBIICFFBQQ6BFFBkCkCBhBhBBBBbFB3CBBHBB+UCB6CGBXIBZIBVLBOEEDLB-CBBLFBLFBbFB6CGBsBEBnCJBgBNNBCBNDBCCBrBBBGKBtBDBbFBMCB-BBBiCeeBMMBEBLFBPBBvBBBNTBuCnFnFBGB9BCBQCB-BEBsBBBMHBsBEB3QBBHBBnBBBHBBJGCgBBB2BQQPBBHUUBEEKmDmDNBBcOOBBBjBNBiBOBtEDB7UVBMUB14BBB-LEBuBCCBDBCBB5BGBDNBZIBI4BI-DhBBb6C6CBKB3GZBxC3C3CBoDoDBDBsB-C-C3CIBxBuzcuzcBBB4BIB9KTB5FHB+GTB9BCBLFB5BHBnCHBNFB1DKBfCBvCMMBCBiB4B4BBHBPBBLBBoDXBdJBHBBHBBHIBIII9BDB-DBBLFBl9KLBYDByBDBvzIBBrDlBBILBGEBbGGCGDrUfBrBFB0BUUFDBGoEoEBCC-FCBHBBHBBHBBECBIIIBIBGBBNbbUDDQBBPhBB8DEBEDBuBCB5COOBBBCuBBvBhEBeCByBOBdDBlBIBfEBsBEBfmBmBBCBPpBB-EBBLFBlBDBlBDBpBHB1BKBNQQIDDMQQIDDBBB1BLB4JIBXJBJXBHrBrBKkCBHBBCtBtBDCBCBBYpCpCBGBKvBBUDDBDBiBCBcEBclBB5BDBVBBzBDDBDBJEEeBBEDBLGBKGBhCfBoBDBNIB3BCBeBBcEBbGBFLBIvCBqC2BB0BMB0BGBvBHBLFBnBCBeHBDvGBgBrBrBEBBDPBHHBKgBBvBHBrBVBblBBdTBYIBvCDBlBIBlCJBCBBaGBLFB2BTTBGBoBIBhDVVBJBTwBwBB8BBICCFQQMFB8BEBLFBFJJBDDBXXIDDGLLBDDBEEBCCBEBCEBIBBICBGKBLCCBCCnBLLCBBCFFLDDBGBDcB9CGGBcBpCHBLlFB3BBBnBhBBmCKBLFBOSB7BFBLFBVbBcBBQDBY4FB9BjDB0CLBJBBCBBJDDfDDBNNBHBLlCBJBBvBBBMaBpCHB0CMBqCGBL1CBJ3CBjBNBLFBKuBuBPJBeCBhBBBXPPBnCBIDDtBCBCDDKHBLFBHDDmBDDHGBLFBtBDBL1HBaGBSqBqBBBBe0CBCOBzBMB8clDBwDGGBJBlGryCBkDMB3iBJB88DEBoS41GB7Bl2BB6RGBgBLLBCByCLLBEBfBBHJBnCJBLIIWEBUvNB7BlGB8CEBaBBarBBsCDB6BGBS-BBGKBIIB3mHoBBhBgDB0D8vIBFIIDkJkJBNBCcBEBBCNBFHBtMjoCBsDEBOCBKGBLBBJ76DB+HCB1NFBYOBSOBvBBBYIB1D7BB3HJBoBBBjGUBnC5DBVLBVLB4CIBamEB2CoCoCDBBCBBDBBFNNCIIiCFFBJJIddFGGCCBI1K1KBlJlJB-V-VBNBGQQBuiBBgBFBH0GBISSBIIDGGBDB-BgBBCvDBuBCBPBBLDBD-JBgBQB7BEBCvOBrB1GBsBDBC-FBgBXXBGBD-GBIFFDQQmGBBRoBBtCDBLDBDwYBlCrCB+BhGBFccDCCBCCLFFCCCBEBCDBCECEDDCBBCICDCCBFFIKFCLLSEBEGGSzBBDtIBtBDBlDLBQBBQQQmBJBvF3BBeMBtBDBKGBDNBH5EB6eCBSCBOCB7GFBNDBCOBNDB5BHBLFBpBHBfBBNDBDNBKmBB5KHBPBBOCBMCB6BCCBCBRBBND
11BLGB0EoDoDBjgBBh3pBfB-oEBBv0FBBypHOBvThtCB-QhvBBs6EEBrpIm8yVBCdBhD-DBxHvw-BB---BBB---BBB",!1)),Co:()=>new nU(nj("gg4B-nGh4hc9--BD9--B",!0)),Cs:()=>new nU(nj("gg2B--B",!0)),L:()=>new nU(nj("hCZBHZBwBLLFGGBVBCeBCpOBFLBPEBICCiEEBCBBDDBCHHCCBCCCBSBCyCBCqEBJlFBClBBDHHBnBBoCaBFDBuBqBBkBBBCiDBCQQBIIBLLBBBDRRCdBe4CBMZZBfBKBBFGGBUBFKKEYYBXBIKBGXBCGBRpBB7B1BBETTIJBQPBFHBDBBDVBCGBCEEBCBERROBBCCBPBBLJJBEBFBBDVBCGBCBBCBBCBBgBDBCUUBBBRIBCCBCVBCGBCBBCEBETTQBBYMMBGBDBBDVBCGBCBBCEBEffBCCBBBQSSCFBECBCDBEBBCCCBEEBEEBBBELBX1B1BBGBCCBCWBCPBEbbBBBCBBDBBfFFBGBCCBCWBCJBCEBEffBBBCBBQBBSIBCCBCoBBDRRGCBJCBZFBGRBEXBCIBCDDBFB7BvBBCBBNGB7BBBCCCBDBCXBCCCBIBCBBKDDBDBCWWBCBhBgCgCBGBCjBBcEB0DqBBVRRBEBFDBEEEBIIBBBFMBNSSBkBBCGGDqBBCsKBCDBDGBCCCBCBDoBBCDBDgBBCDBDGBCCCBCBDOBC4BBCDBDiCBmBPBR1CBDFBErTBDQBCZBGqCBHHBIRBOSBPRBPMBCCBQzBBkBFFkC4CBIEBDhBBCGGBkCBLeByBdBDEBMrBBFZB3BWBK0BBzC+C+CBtBBSHB3BdBOBBLrBBbjBBqBCBLjBBDKBGqBBDCBqBDBCFBCBBEGGB+FBhC1IBDFBDlBBDFBDHBCGCBdBD0BBCGBCEEBBBCGBEDBDFBFMBGCBCGB1DOORMBmDFFDJBCEEBDBHGCBCBCKBDDBGEBF1B1BB8zC8zCBjHBHDBEBBNlBBCGGD3BBIRRBVBKGBCGBCGBCGBCGBCGBCGBCGBxC2O2OBrBrBBDBGBBF1CBHCBC5CBCDBGqBBC9CBSfBxBPBhQ-tGBhCs0VBkCtBBDsIBEPBLBBVuBBReBDlCByBIBDmDBDxCBVQBCCBCDBCWBezBBPxBB-BFBECCBMMBaBLWBacBIuBBdRRBDBCJBLEBCoBBYCBCHBVWBEEEBwBBCEEBDDBDBDCCZCBDKBICBNFBDFBDFBKGBCGBCqBBCNBHyDBej9KBNWBFwBBloItLBDpDBnBGBNEBGCCBIBCMBCEBCCCBCCBCCBqDBiBqLBT-BBD1BBpBLB1DEBCmEBlBZBHZBM4CBEFBDFBDFBDCBkBLBCZBCSBCBBCOBDNBjB6DBmMcBEwBBwBfBOTBCHBHlBBLdBDjBBFHBxB9EBTjBBFjBBFnBBJzBBNKBCOBCGBCBBCKBCOBCGBCBBEzBBN2JBKVBLHBZFBCpBBCIBmCFBDCCBqBBCBBEDDBVBLWBKeBiCSBCBBLVBLZBHZBnB3BBHBBhCQQBCBCCBCcBrBcBEcBkBHBCbBc1BBLVBLSBORBvDoCB4ByBBOyBBOjBBnBbBKWB7HpBBHBBRFB5BcBLJJBUBrBRBvBUBcWBN0BB6BBBDOOBrBBhBYBbjBBeDDJiBBENNBuBBPDBWCCkBRBCYBUBBgCGBCCCBCBCOBCJBIuBBnBHBDBBDVBCGBCBBCEBETTNEBfJBCDDClBBCaaCtBtBBzBBTDBVCBfvBBVBBC5F5FBtBBqBDBlBvBBV8B8BBpBBOoCoCBZBmBGB6FrBB1D-BBgBHBDDDBGBCBBCXBQCC-CHBDmBBRCCdLLBmBBIWWMtBBUTTBnCBoGgBBgBIBCkBBSyByBBcBxDGBCBBClBBWaaBEBCBBCfBPYYBqBBlISBQCCBLBChBB9DwCwCB4cBnHjGBtyCgDBQvhBBSFBa68DBGmSB61GdBj3B4RBIeBSuCBSdBTvBBRDBgBUBGSBxNsBB0G-BBhBYBDYBtBqCBGjCjCBLBhCBBCPPBNNB0mHBqBfBiDyDB+vIDBCGBCBBCiJBQeeBBBDPPBCBJrMBloCqDBGMBEIBIJBn7F0CBCmCBCBBDDDBDDBCBCLBCCCBFBCgCBCDBDHBCGBCbBCDBCEBCEEBFBCzKBDYBCYBCeBCYBCeBCYBCeBCYBCeBCYBCHB15BeBHFBmI9BBzEsBBLGBRiKiKBcBTrBBlPbBlHdBDwGwGBdBCCBCBBCGBDEBKBBhHGBCDBCBBCOBCkGB8BjCBI1lB1lBBCBCaBCBBCDDCJBCDBCCCHFFCECBBBCBBCDDCICBCCDDBCGBCDBCDBCCCBIBCQBGCBCEBCQBlqE-2pBBhB9oEBDt0FBDwpHBQtTBjtC9QBjvBq6EBGppIB",!1)),LC:()=>new nU(nj("hCZBHZB7BLLBVBCeBCiGBCDBFvGBDZBhGDBDBBECBCHHCCBCCCBSBCyCBCqEBJlFBClBBKoBB44ClBBCGGDqBBDCBhV1CBDFBjkCKBGqBBDCBhCrBBgCMBChBBmD1IBDFBDlBBDFBDHBCGCBdBD0BBCGBCEEBBBCGBEDBDFBFMBGCBCGBmIFFDJBCEEBDBHGCBCBCFBFDDBCBGEBF1B1BB8zC8zCB6DBDmDBHDBEBBNlBBCGGzoetBBTbBnEtCBCWBEDBCsCBZBBE2Z2ZBpBBGIBIvCBh6TGBNEBqgBZBHZBmlBvCBhDjBBFjBB1DKBCOBCGBCBBCKBCOBCGBCBBk2ByBBOyBB+CVBLVB74C-BBhrV-BBhBYBDYBtpZ0CBCmCBCBBDDDBDDBCBCLBCCCBFBCgCBCDBDHBCGBCbBCDBCEBCEEBFBCzKBDYBCYBCeBCYBCeBCYBCeBCYBCeBCYBCHB15BJBCTBHFB2uCjCB",!1)),Ll:()=>new nU(nj("hDZB7BqBqBBWBCHBC2BCBQCBuBCDECBBBDCCDEEBFFDEEBBBDDDCCCDCCBCCDEECDDBDDBBBHGDCOCBSCBDDCEEC4BCBFBDDDBCCFICBjCBDZBiGCCEEEBBBTccBhBBCBBECBCWCBDBCGDB0B0BBuBBCgBCK0BCDMCBgDCxBoBBo6CqBBDCB5XFBjkCIBC2D2DBqBBgCMBChBBnD0ECBHBCgDCBHBJFBLHBJHBJFBLHBJHBJNBDHBJHBJHBJEBCBBHEEBBBCBBJDBDBBJHBLCBCBBzIEEBEEcKFDBBJDBF2B2Bs1CvBBCEEBGCFCCBCCBEBGiDCBIICFFNlBBCGG0oesBCUaCoEMCBBBC+BCBGBCCCDICFCCDCCBBBCSCGGGCMCFCCDOCbEE2ZqBBGIBIvCBh6TGBNEBqhBZBumBnBBpEjBB8EKBCOBCGBCBBk4ByBB+DVB75CfBhsVfB8BYBnqZZBbGBCRBbZBbDBCCCBFBCKBbZBbZBbZBbZBbZBbZBbZBbZBbbBdYBCFBbYBCFBbYBCFBbYBCFBbYBCFBC15B15BBIBCTBHFB4vChBB",!1)),Lm:()=>new nU(nj("wVRBFLBPEBICCmEGG-OnHnHlFBBuIBBFgBgBKEEhFoFoF1mBgEgE2R72B72BsDkTkTxOFBvF+BBOjBjBBjBByVOORMBg-CBByHgGgG2OsBsBBDBGiDiDB+C+CBBB34bjnBjnBBEBvIzDzDdBB6DIBxCYYpDDBEBB2OXXqEtDtDWBBoDDBKngVngVuBBBh-BFBCpBBCIB0sBhBhB2K04D04DnrTDB9PCBpBBBnRMBhCBBCPPB9-P9-PBCBCGBCBByhM9BBqGGBud0Q0QsSAB",!1)),Lo:()=>new nU(nj("qFQQhIFFBCBxGBB7ZaBFDBuBfBCJBkBBBCiDBCZZBLLBBBDRRCdBe4CBMZZBfBWVBrBYBIKBGXBCGBRoBB8B1BBETTIJBROBFHBDBBDVBCGBCEEBCBERROBBCCBPBBLJJBEBFBBDVBCGBCBBCBBCBBgBDBCUUBBBRIBCCBCVBCGBCBBCEBETTQBBYMMBGBDBBDVBCGBCBBCEBEffBCCBBBQSSCFBECBCDBEBBCCCBEEBEEBBBELBX1B1BBGBCCBCWBCPBEbbBBBCBBDBBfFFBGBCCBCWBCJBCEBEffBBBCBBQBBSIBCCBCoBBDRRGCBJCBZFBGRBEXBCIBCDDBFB7BvBBCBBNFB8BBBCCCBDBCXBCCCBIBCBBKDDBDBYDBhBgCgCBGBCjBBcEB0DqBBVRRBEBFDBEEEBIIBBBFMBNyDyDBnKBCDBDGBCCCBCBDoBBCDBDgBBCDBDGBCCCBCBDOBC4BBCDBDiCBmBPByDrTBDQBCZBGqCBHHBIRBOSBPRBPMBCCBQzBBpBkCkCBhBBC0BBIEBDhBBCGGBkCBLeByBdBDEBMrBBFZB3BWBK0BBxFuBBSHB3BdBOBBLrBBbjBBqBCBLdByDDBCFBCBBE7hB7hBBCB4-C3BBZWBKGBCGBCGBCGBCGBCGBCGBCGBoR2B2BF1CBJCCB4CBFGGB
11pBBC9CBSfBxBPBhQ-tGBhC0wUBC2jBBkCnBBJrIBFPBLBBjCyByBBkCBqFoDoDEGBCCBCDBCWBezBBPxBB-BFBECCBMMBaBLWBacBIuBBuBEBDIBLEBCoBBYCBCHBVPBCFBEEEBwBBCEEBDDBDBDCCZBBEKBIPPBEBDFBDFBKGBCGByEiBBej9KBNWBFwBBloItLBDpDBkCCCBIBCMBCEBCCCBCCBCCBqDBiBqLBT-BBD1BBpBLB1DEBCmEBqDJBCsBBDeBEFBDFBDFBDCBkBLBCZBCSBCBBCOBDNBjB6DBmMcBEwBBwBfBOTBCHBHlBBLdBDjBBFHBhEtCBjDnBBJzBB9CzBBN2JBKVBLHB5EFBDCCBqBBCBBEDDBVBLWBKeBiCSBCBBLVBLZBHZBnB3BBHBBhCQQBCBCCBCcBrBcBEcBkBHBCbBc1BBLVBLSBORBvDoCB4FjBBnBDBCxJxJBoBBHBBRCBCBB5BcBLJJBUBrBRBvBUBcWBN0BB6BBBDOOBrBBhBYBbjBBeDDJiBBENNBuBBPDBWCCkBRBCYBUBBgCGBCCCBCBCOBCJBIuBBnBHBDBBDVBCGBCBBCEBETTNEBfJBCDDClBBCaaCtBtBBzBBTDBVCBfvBBVBBC5F5FBtBBqBDBlBvBBV8B8BBpBBOoCoCBZBmBGB6FrBB0GHBDDDBGBCBBCXBQCC-CHBDmBBRCCdLLBmBBIWWMtBBUTTBnCBoGgBBgBIBCkBBSyByBBcBxDGBCBBClBBWaaBEBCBBCfBPYYBnBBCBBlISBQCCBLBChBB9DwCwCB4cBnHjGBtyCgDBQvhBBSFBa68DBGmSB61GdBj3B4RBIeBSuCBSdBTvBB0BUBGSB0NnBB2MqCBGwFwFB0mHBqBfBiDyDBuwIiJBQeeBBBDPPBCBJrMBloCqDBGMBEIBIJBxzI2P2PBrBBiBiKiKBcBTrBBlPaBmHdBDwGwGBdBCCBCBBCGBDEBKiHiHBFBCDBCBBCOBCkGB8pBDBCaBCBBCDDCJBCDBCCCHFFCECBBBCBBCDDCICBCCDDBCGBCDBCDBCCCBIBCQBGCBCEBCQBlqE-2pBBhB9oEBDt0FBDwpHBQtTBjtC9QBjvBq6EBGppIB",!1)),Lt:()=>new nU(nj("lOGDnB2sH2sHBGBJHBJHBNQQwBAB",!1)),Lu:()=>new nU(nj("hCZBmDWBCGBiB2BCDOCDuBCBECEBBCCCBCCBBBDDBCBBCCBEBBCBBCECBCCDCCBCCBBBCCCBEEIJDCMCDQCDDDCCBC4BCIBBCBBDCCBCBCGCiJCCEJJHCCBBBCCCBCCBPBCIBkBDDBBBEWCGDDCBBDyBBxBgBCK2BCBMCD+CCDlBBq6ClBBCGGzW1CB0kCHHBpBBDCBhK0ECKgDCKHBJFBLHBJHBJFBMGCJHBpCDBNDBNDBNEBMDBnIFFECBDCBDEEBDBHGCBCBDDBLBBG+B+B9zCvBBxBCCBBBDGCBCBCDDJCBCgDCJCCFuqeuqeCqBCUaCoEMCE8BCLECBICFCCDCCEUCBDBCEBCOCBCBCCCBQCZs5Vs5VBYBmmBnBBpEjBB9EKBCOBCGBCBBr3ByBB+EVB75CfBhsVfBhCYBoqZZBbZBbZBbCCBGDBDDBCBCHBbZBbBBCDBDHBCGBcBBCDBCEBCEEBFBcZBbZBbZBbZBbZBbZBfYBiBYBiBYBiBYBiBYBiB2pE2pEBgBB",!1)),M:()=>new nU(nj("gYvDB0IGBoIsBBCCCBCCBCCpCKBxBUBRmDmDBFBDFBDBBCDBkBffBZB8CKB7BIBKZZBCBCIBCCBCEBsBCB8BIBrBXBCgBB3BCBCRBCGBLBBeCB5BCCBFBDBBDCBKLLBbbDCB5BCCBDBFBBDCBEffBEEMCB5BCCBGBCCBCCBVBBXFBCCB5BCCBFBDBBDCBICBLBBf8B8BBDBECBCDBKpBpBBDB4BCCBFBCCBCDBIBBMBBeCB5BCCBFBCCBCDBIBBMBBQNNBCB4BBBCGBCCBCDBKLLBeeBBBnCFFBEBCCCBGBTBB+BDDBFBNHBjDDDBHBMGBqCBBcECFBByBTBCBBGKBCjBBKlDlDBSBYDBFCBCCBDGBEDBOLBCLLBCBgWCBzdDBdCBeBBfBBhCfBKuBuBBBBC2D2DBjBjB3DLBFLB8GEB6BJBCcBDxBxBBsBBDLBVEBwBQBnB
11IBNCBfMB5BNBxBTB5ECBCUBFHHDCBnG-BBxWgBB--CCBuEhDhDBeBrRFBqDBB1udDBCJBhBBBxCBBxIEEFYYBDBF0C0CBzBzBBQBbRBOnBnBBGBaMBtBDBwBNBlBkCkCBMBNJJBuBuBBBBzBCCBBBDBBGBBCqBqBBDBGBBtHHBCBBx5TiXiXBOBRPBuejHjH2EEBn0BCBCBBGDBpBCBFmFmFB+R+RBCBiCEB+JBBuCFBnCKByBDB7DCB2BOBqBDDBLLBCBuBKBI+B+BBBBlBNBRBBtBNNBBBxBNBJDBCBB9CLBHDD+ELBWDB4BBBCGBDBBDCBKLLBDDBFBEEBkCIBCDDCDBCEBCPPBzCzCBQBYyCyCBSBsHGBDIBcBBzCQBrDMBmDOBhIOB2HFBCBBDDBCCCBuEuEBFBDGBEddBIBpBGBCDBJKKBJBvBPBnGHBoGHBCHBzCVBCNB7DFBECCBCCBFBCjCjCBDBCBBCEB8KDBKBBCxBxBBFBEEBYmnFmnFHOBpmLRBhuCEB8BGB5gBCCB1BBIDByCMMBslTslTBizEizEBsBBDWB-QEBEFBJHBDGBfDB1ECB89B2BBFxBBJPPXEBCOBxqBGBCQBDGBCBBCEBlDhFhFBFB4L+B+BBCB9PDB-HBB0HDDIBBG7O7OBFBuDGB29lYvHB",!1)),Mc:()=>new nU(nj("joC4B4BDCBJDBCBBzBBB7BCBHBBDBBLsBsB7BCBjC7B7BBBBJCCB2B2BB7B7BCHHBDDBLLnDBBCBBECBCCBLqBqBBBB+BDB+BBB7BCCBDBDBBCBBKBBdPPB7B7BBBBGCBCCBLrBrBBsCsCBBBHHBTBBrKBBgCsFsFBFFHDDBaaBLLBBBDGBWBBDFBDLLBBB5zBffiEIIBGBCBB7KDBDCBFBBCFBhHBB7BCCKCCBJJBEByExBxBGCCBDBCBB+BffFBBD9B9BDCBCEEBxBxBBGBJBBsFWW35EBB0-dBBD5C5CBzBzBBOBvEBBwBxBxBBFFBDDBBBvDBBDBBZuBuBCuDuDDBBGuHuHBCCBCCBCC0gZCCgEuBuBBBBFBB0DZZB8B8BxBCBKBBO+C+CBBBEBBCrFrFBBBgBBB7BBBCDBDBBDCBKLLB1C1CBBBIDDCDBCBBCmDmDBBBJBBErDrDBBBHCCBCBDuHuHBBBHDBDyDyDBBBJBBCuDuDCBBHoDoDCBBFmImIBBBK4H4HBEBCBBFDDCvEvEBBBJDBF1C1CeBB-BqGqGECCoGPPrDIID2G2GBDBFBBC-K-KBNNxBBBJBBCpvQpvQBBBlxD2BBpDBB0rYBBHFB",!1)),Me:()=>new nU(nj("okBBB1xF-wB-wBBCBCCBsshBCB",!1)),Mn:()=>new nU(nj("gYvDB0IEBqIsBBCCCBCCBCCpCKBxBUBRmDmDBFBDFBDBBCDBkBffBZB8CKB7BIBKZZBCBCIBCCBCEBsBCB8BIBrBXBCfB4BCCFHBFEEBFBLBBe7B7BFDBJVVBbbDBB6BFFBFFBDDBBBEffBEEMBB6BFFBDBCBBFVVBXXBEBC7B7BDCCBCBJIIBMMBff+BNNzBEE4BCCBBBGCBCDBIBBMBBe7B7BDHHGBBVBBdBB6BBBFDBJVVBeepCIIBBBC7C7CDGBNHBjDDDBHBMGBqCBBcEC4BNBCEBCBBGKBCjBBKnDnDBCBCFBCBBDBBaBBFCBRDBODDBHHQgWgWBBBzdCBeBBfBBfBBhCBBCGBJDDBJBKuBuBBBBC2D2DBjBjB3DCBFBBKHHBBB8GBBD7B7BCGBCCCDHBHJBDxBxBBMBCeBDLBVDBxBCCBDBCGGpBIBNBBhBDBDBBCCB5BCCBEECCB7BHBDBB5ECBCMBCGBFHHEBBnG-BBxWMBFEEBKB--CCBuEhDhDBeBrRDBsDBB1udFFBIBhBBBxCBBxIEEFaaBGG4EBBbRBOnBnBBGBaKBvBCBxBDDBCBDBBoBkCkCBEBDBBDBBNJJwB0B0BCCBDBBGBBCrBrBBJJvHDDFx5Tx5TiXPBRPBuejHjH2EEBn0BCBCBBGDBpBCBFmFmFB+R+RBCBiCEB+JBBuCFBnCKByBDB8D3B3BBNBqBDDBLLBBByBDBDBBI+B+BBBBlBEBCHB-BNNB1B1BBHBLDBDgDgDBBBDCCBHHD+E+EEHBWBB6BBBEmBmBBFBEEBnCFBOECPBB2CHBDCBCYY1CFBCFFBCCBvHvHBCBHBBCBBcBB2CHBDCCBrDrDCDDBEBCmDmDCDDBCBCEBkIIBCBBhIBBCFFxEDBDBBFhBhBBIBpBFBDDBJKKBEBDCBvBMBCBBnGCCBBBCqGqGBFBCFBCzCzCBUBDGBCBBCBB7DFBECCBCCBFBCpCpCBEEC8K8KBMMB1B1BBDBGCCYmnFmnFHOBpmLLBECBhuCEB8BGB5gBgCgCBCByC5lT5lTBizEizEBsBBDWBhRCBSHBDGBfDB1ECB89B2BBFxBBJPPXEBCOBxqBGBCQBDGBCBBCEBlDhFhFBFB4L+B+BBCB9PDB-HBB0HDDIBBG7O7OBFBuDGB29lYvHB",!1)),N:()=>new nU(nj("wBJB5DBBGDDBBBitBJBnEJBnGJB9MJB3DJBFFBtDJB3DJB3DJBDFBvDMB0DJBJGBoDJBpDGBISBuDJBhDJB3DJBnCTBtIJBnCJBwWTBybCBwHJBHJBXJBtJJBhEKBmFJBHJB3FJB3CJBnEJBHJB3gBEEBEBHJBnGyBBDEB3W7BBvCVB3TdBqrBqYqYaIBPCB4KDBrEJBfHBCOBhBJBoBOBh7cJB9FJBhKFB7EJBnBJBnGJBXJB3CJB3MJB34UJBuPsBBN4BBSBB2KaBlBDBeJJnEEBrGJBvdHBaGBoBIBsCEBXFBhFBBDPBDtBBhCIB1BBBfCBsCEBpDHBZHBqBGBrKFBxBJBHJB3IeB-EJBrBDBxDGBnEdBhEJB9BJBxEJBITB8HJB3KJB3DJB3LJBnDJBHTBtCLBlNSB+CJB3UJB3CcBkHJBnCJB3BJBnLJBnDUBshBuDBimPJBnpCJB3CJBnEJBCGBvQJBnIWB+KCB6nXJBnuBTBNTBtDYB2iBxBBhqCJBnNJB3PJB4HJBtWIBhEJB4Y6BBCCBCDBtCsBBCOBjeMBk3CJB",!1)),Nd:()=>new nU(nj("wBJnxBJnEJnGJ9MJ3DJ3DJ3DJ3DJ3DJ3DJ3DJ3DJ3DJhDJ3DJnCJ3IJnCJn6BJnBJtJJhEJnFJHJ3FJ3CJnEJHJnuiBJnVJnBJnGJXJ3CJ3MJ34UJnsBJnkCJHJ9YJhEJ9BJxEJ3IJ3KJ3DJ3LJnDJHTtCJnNJnDJ3UJ3CJ3HJnCJ3BJnLJ3uQJnpCJ3CJnEJ3QJ37XJ12CxBhqCJnNJ3PJ4HJ2aJ30EJ",!0)),Nl:()=>new nU(nj("u3FCBwzCiBBDDB-zDaaBHBPCBs1dJBxyW0BBtOJJnEEBrhIuDBm8SCB",!1)),No:()=>new nU(nj("yFBBGDDBBB2pCFB5LFB5DCBmEGB6GGBSIByNJB2hBTB0jBJBhP20B20BEFBHJBnGPBqB3W3WB6BBvCVB3TdBqrB1kB1kBBCBrEJBfHBCOBhBJBoBOBxrdFBymWsBBiCDBSBB2KaBlBDB1pBHBaGBoBIBsCEBXFBhFBBDPBDtBBhCIB1BBBfCBsCEBpDHBZHBqBGBrKFBhLeB-EJBrBDBxDGBnETB8LTBmqBBBvNIBobSB0aUBn8SGB-YWBqhZTBNTBtDYBvqFIBid6BBCCBCDBtCsBBCOBjeMB",!1)),P:()=>new nU(nj("hBCBCFBCDBLBBEBBbCBCccCkBkBGEELBBEEE-VJJzOFBqBBB0BCCDDDtBBBVBBCBBOCCBBBrCDBnDsBsBBMBqHCB3BOBgBmImIBLLtE5D5D6DnMnMNwLwL7CLLBpFpFBNBCmBmBBCBoCrCrCBDBFBBwDFBsFlTlTBHB4EuTuTtBBBvCCBoCBB+ECBCCBmBKB6JBB5GBBhEGBCFBhFBBLGBdCB9DDB8BEB-BBBhCHBM9Z9ZBWBJTBCMBCLBfBBPBB6TDBeBB+hBNBwCBBgBJB0MVBgCDBhBBB8XDBCBBxDwEwEBtBBCfBDLBkNCBFJBDLBRNNjD7C7CjgdBBuICBkDLL0DFB9LDB3CBBpBCBCyByBBwBwBiDMBRBB9DDB-DBBRBB6HzqUzqUBxGxGBI
11BXiBBCNBCFFCBB2ECBCFBCDBLBBEBBbCBCccCCCBFB7MCB9UxBxB-MoXoXoGgBgBxIIBnBxDxDBFBjCGB6CDByO-J-JjBlElEBDBtBDB+FGBuDBBCDB-DDBxBBBwCDBFOOCCB5CFBsDrJrJBCCBzDzDBDBLBBCpDpD7HWBqDCBdMBtCjEjEBBB9HpIpIBBB8E9C9CBGB0CCBCEB+CJB4GgDgDBDBrBBBmUBBrCMBwFxjBxjBBDB97CBB8zOBBmEiCiCBDBJpRpRBBBoJDBoK9lT9lTovHEB07C-a-aBAB",!1)),Pc:()=>new nU(nj("-Cg-Hg-HBUU-u3BBBZCBwHAB",!1)),Pd:()=>new nU(nj("tB9qB9qB0BiyDiyDmgBqgCqgCBEBiwDDDgBBBFdd-NUUwDxszBxszBBmBmBLqFqFhzD-J-J",!1)),Pe:()=>new nU(nj("pB0B0BgB+1D+1DC-6B-6BqtC4B4BQ7T7TCff-hBMCxChBhBCGC1MUChCCCiBmhBmhBCECtBGCtNICEGCDBB-ozB6G6GeOCESSCCCrF0B0BgBGD",!1)),Pf:()=>new nU(nj("7F+6H+6HEddpuDCCFDDQEE",!1)),Pi:()=>new nU(nj("rFt7Ht7HDBBDaapuDCCFDDQEE",!1)),Po:()=>new nU(nj("hBCBCCBDECBLLBEEBcclCGGPBBI-V-VJzOzOBEBqB3B3BDDDtBBBVBBCBBOCCBBBrCDBnDsBsBBMBqHCB3BOBgBmImIBLLtE5D5D6DnMnMNwLwL7CLLBpFpFBNBCxDxDrCEBFBBwDFBsFlTlTBHBmY9D9DBBBoCBB+ECBCCBmBFBCDB6JBB5GBBhEGBCFBhFBBLGBdCB9DDB8BEB-BBBhCHBMjajaBJJBGBJIBDDBDCBEKBCCCBIB7kDDBCBBxDwEwEBFFBBBDDDBHBCBBCDDBLLBDBCJBDDBCCCBLBDCBtNCB6B+F+FjgdBBuICBkDLL0DFB9LDB3CBBpBCBCyByBBwBwBiDMBRBB9DDB-DBBRBB6HlxUlxUBFBDXXVBBDDBECBCDBICBHCCB2E2EBBBCCBDECBLLBEEBcclBDDB7M7MBBB9UxBxB-MoXoXoGgBgBxIIBnBxDxDBFBjCGB6CDB0ZlElEBDBtBDB+FGBuDBBCDB-DDBxBBBwCDBFOOCCB5CFBsDrJrJBCCBzDzDBDBLBBCpDpD7HWBqDCBdMBtCjEjEBBB9HpIpIBBB8E9C9CBGB0CCBCEB+CJB4GgDgDBDBrBBBmUBBrCMBwFxjBxjBBDB97CBB8zOBBmEiCiCBDBJpRpRBBBoJDBoK9lT9lTovHEB07C-a-aBAB",!1)),Ps:()=>new nU(nj("oBzBzBgB-1D-1DC-6B-6B-rCEEnB4B4BQ7T7TCff-hBMCxChBhBCGC1MUChCCCiBmhBmhBCECaTTCECtNICEGCDipzBipzB4GeeCMCESSCCCrFzBzBgBEEDAB",!1)),S:()=>new nU(nj("kBHHRCBgBCCcCCkBEBCBBDCCBCBDEEfgBgBrODBNNBGGBCCCBPB2DPPBxDxDsErIrIBBB3DCBDDDBvGvGLUUB4H4HIBBpEqLqLBHHB2H2H-DjEjEBGBlEwGwGqBmGmGiGCBQCCBBBDFBVECmEHBCFBCBBGDBmGBBxXJB0WuLuLlL+E+EBgBBiLJBKIBhiBCCBBBMCBOCBOCBOBBmCOOoBCBOCBUhBB-BBBCDBCBBLCCBBBGFBCECFMMBFFBDBGDBC7B7BBFFB2LBFcBD+HBXKByCtCBXnTBtBwBBDeBLyMBX+BBFfBD1LBDpEBmHFBmLBBvBZBC4CBN1GBbPBFOOBNNWBBHBB8CBB0HBBFJBhBlBBKRRBdBMdBJQQBeBLmBBQ-JBhuG-BBx0V2BB6RWBKBBoDBB+EDBLDB+RCBiHPPB+9T+9TpEgBBuLPBhCBB3BHBtBDBjDCCBBBD7E7EHRRBBBgBCCcCCiEGBCGBOBB6JIB6BQBDCBCMBEwBwBBrBB7zBBBwSmWmWBiKiKBGBnjC2kC2kCBbBr6SDBG3qU3qUk7DvHBLCBEzNBHWBQQBgDzDB9B1HBLmBBD7BBGCBXBBIdBF8BBWhCBE7F7FB1CBrbaagBaagBaagBaagBaa9B-PB4BDBzBHBCNBCBBp2BwNwNttCEE+DiOiOBvIvIBqBBFjDBNOBDOBCOBCkBBYgFB5BcBOrBBFIBIBBPFB7E4eBEQBEMBE5GBHLBFQQBKBF3BBJJBHnBBJdBDLBFBBPIBoB3KBJNBDMBEKBE4BBCFFBOBDLBFJBIyEBC7CBLAB",!1)),Sc:()=>new nU(nj("kB+D+DBCBqnB8D8DzPBBzPBBI2H2HoImSmS8sClmClmCBgBB37hBkuVkuVtD7E7E8GBBEBB3-HDB-4wBxtCxtC",!1)),Sk:()=>new nU(nj("+CCCoCHHFEEqQDBNNBGGBCCCBPB2DPPBjoBjoB15FCCBBBMCBOCBOCBOBB9kEBBkzdWBKBBoDBBxePPBniUniUBPB8bCCjF4g9B4g9BBDB",!1)),Sm:()=>new nU(nj("rBRRBBB+BCCuBFFmBgBgB-XwQwQBBB8xGOOoBCBOCBsEoBoBBDBHlClCBDBGBBFGDIgBgBBDDCgBgBBqIBhBBB7CffBXBpBFB2OKK3BHBwDxKxKBDBDeBLPBhIiEBX+BBFfBDhIBxBUBDFB9+zB5Z5ZCCBlFRRBBB+BCCkEHHBCBitDBBhrwBx+Bx+BagBgBagBgBagBgBagBgBat5Ft5FB-uC-uCBHB",!1)),So:()=>new nU(nj("mFDDFCCyerIrIBgEgEBvGvGLUUB4H4HkQ2L2LjEFBClElEwGqBqBoMCBQCCBBBDFBVECmEHBCFBCBBGDBmGBBxXJB0WzWzW+EhBBiLJBKIBksBBBCDBCBBLCCBHHBEBCECFMMBPPCBBC7B7BBKKBDBDDBCBBCBBCGBCeBDBBCCCBdBtIHBFTBDGBDwCBCdBanBBHnCBXKByCtCBX2FBCIBC1BBJuDBC3HBtBrBBhC-HBhQvBBWBBHmBBDpEBmHFBmLBBvBZBC4CBN1GBbPBFOOBNNWBBHBBxKBBFJBhBlBBKRRBdBMdBJQQBeBLmBBQ-JBhuG-BBx0V2BBibDBLBBC+R+RBBBqqUPBuLPBhCBB3BHBuBCBlPEEFBBOBB6JIB6BQBDCBCMBEwBwBBrBB7zBBBwSpgBpgBBGBnjC2kC2kCBGBFQBr6SDBG3qU3qUk7DvHBLCBEzNBHWBQPBhDzDB9B1HBLmBBD7BBGCBXBBIdBF8BBWhCBE7F7FB1CBqlB-PB4BDBzBHBCNBCBBp2B96C96CiEyWyWBqBBFjDBNOBDOBCOBCkBBYgFB5BcBOrBBFIBIBBPFB7E6HBG4WBEQBEMBE5GBHLBFQQBKBF3BBJJBHnBBJdBDLBFBB-B3KBJNBDMBEKBE4BBCFFBOBDLBFJBIyEBC7CBLAB",!1)),Z:()=>new nU(nj("gBgEgEgvFgsCgsCBJBeBBGwBwBh9DAB",!1)),Zl:()=>new nU(nj("ohIA",!0)),Zp:()=>new nU(nj("phIA",!0)),Zs:()=>new nU(nj("gBgEgEgvFgsCgsCBJBlBwBwBh9DAB",!1)),ASCII_Hex_Digit:()=>new nU(nj("wBJIFbF",!0)),Alphabetic:()=>new nU(nj("hCZBHZBwBLLFGGBVBCeBCpOBFLBPEBICC3CeeBQBCBBDDBCHHCCBCCCBSBCyCBCqEBJlFBClBBDHHBnBBoBNBCCCBCCBCCJaBFDBeKBG3BBCGBPlDBCHBFHBFCBLCBDRRBuBBOkDBZgBBKBBFGGBWBDSBUYBIKBGXBCGBIJJBoBBLLBEGBHrCBCPBCCBFOBOSBCHBDBBDVBCGBCEEBCBEHBDBBDBBCJJFBBCEBNBBLFFBBBCFBFBBDVBCGBCBBCBBCBBFEBFBBDBBFIIBCBCSSBEBMCBCIBCCBCVBCGBCBBCEBEIBCCBCBBEQQBCBWDBFCBCHBDBBDVBCGBCBBCEBEHBDBBDBBKBBFBBCEBORRBCCBEBECBCDBEBBCCCBEEBEEBBBELBFEBECBCCBEHHpBMBCCBCWBCPBEHBCCBCCBJBBCCBCBBDDBdDBCHBCCBCWBCJBCEBEHBCCBCCBJBBGCBCDBOCBNMBCCBCoBBDHBCCBCCBCGGBCBIEBXFBCCBCRBEXBCIBCDDBFBJFBCCCBGBTBBO5BBGGBH0B0BBECBDBCXBCCCBRBCCBDEBCHHPDBhBgCgCBGBCjBBFSBFPBCjBBkC2BBCDDBDBR-BBLDBDlBBCGGDqBBCsKBCDBDGBCCCBCBDoBBCDBDgBBCDBDGBCCCBCBDOBC4BBCDBDiCBmBPBR1CBDFBErTBDQBCZBGqCBEKBITBMUBNTBNMBCCBCBBNzBBDSBPFFkC4CBIqBBGlCBLeBCLBFIBYdBDEBMrBBFZB3BbBF+BBDTBzBYYBMMBBByBzBBCOBCHB0BpBBDDBLrBBCKBP2BBXCBLjBBDKBGqBBDCBqBDBCFBCBBEGGB+FBUhBBM1IBDFBDlBBDFBDHBCGCBdBD0BBCGBCEEBBBCGBEDBDFBFMBGCBCGB1DOORMBmDFFDJBCEEBDBHGCBCBCKBDDBGEBFSSBnBBuZzBB34BkHBHDBEBBNlBBCGGD3BBI
11RRBVBKGBCGBCGBCGBCGBCGBCGBCGBCfBwB2O2OBBBaIBIEBDEBF1CBHCBC5CBCDBGqBBC9CBSfBxBPBhQ-tGBhCs0VBkCtBBDsIBEPBLBBVuBBGHBEwDBoBIBDmDBDxCBVUBCgBBZzBBNjCBCtBtBBEBECCBBBLgBBGiBBOcBEyBBCLBQRRBOBLEBC2BBKNBTWBEkCBCCCZCBDPBDDBMFBDFBDFBKGBCGBCqBBCNBH6DBWj9KBNWBFwBBloItLBDpDBnBGBNEBGLBCMBCEBCCCBCCBCCBqDBiBqLBT-BBD1BBpBLB1DEBCmEBlBZBHZBM4CBEFBDFBDFBDCBkBLBCZBCSBCBBCOBDNBjB6DBmC0BBsIcBEwBBwBfBOdBGqBBGdBDjBBFHBCEBrB9EBTjBBFjBBFnBBJzBBNKBCOBCGBCBBCKBCOBCGBCBBEzBBN2JBKVBLHBZFBCpBBCIBmCFBDCCBqBBCBBEDDBVBLWBKeBiCSBCBBLVBLZBHZBnB3BBHBBhCDBCBBGHBCCBCcBrBcBEcBkBHBCbBc1BBLVBLSBORBvDoCB4ByBBOyBBOnBBjBbBEGGBVB7HpBBCBBEBBRFBzBCBEcBLJJBUBrBRBvBUBcWBKlCBsBEBL4BBKOOBXBYyBBSDBJiBBEKKB+BBCDBKBBLCCkBRBChBBDHHBCB-BGBCCCBCBCOBCJBI4BBYDBCHBDBBDVBCGBCBBCEBEHBDBBDBBEHHGGBdJBCDDClBBCJBCDDCDBCBBECCtBhCBCCBCDBVCBfhCBDBBC5F5FB0BBDGBaFBjB+BBCEE8B1BBDoCoCBZBDNBWGB6F4BBoD-BBgBHBDDDBGBCBBCdBCBBDBBDDB+CHBDtBBDFBCCCBccBxBBDJBSnCBGTTBnCBoDHB5CgBBgBIBCsBBCGBCyByBBcBDVBCNBqCGBCBBCrBBECCBCCBBBCDDBZZBEBCBBCkBBCBBCDBCYYBqBBlIWBKQBCoBBECBwDwCwCB4cBnDuDBSjGBtyCgDBQvhBBSFBa68DBGmSB61GuBBy2B4RBIeBSuCBSdBTvBBRDBgBUBGSBxNsBB0G-BBhBYBDYBtBqCBF4BBIQBhCBBCNNBFBK1mHBqBfBiDyDB+vIDBCGBCBBCiJBQeeBBBDPPBCBJrMBloCqDBGMBEIBIJBFi7Fi7FBzCBCmCBCBBDDDBDDBCBCLBCCCBFBCgCBCDBDHBCGBCbBCDBCEBCEEBFBCzKBDYBCYBCeBCYBCeBCYBCeBCYBCeBCYBCHB15BeBHFB2GGBCQBDGBCBBCEBG9BBiBxDxDBrBBLGBRiKiKBcBTrBBlPbBlHdBDwGwGBdBCVBJBBhHGBCDBCBBCOBCkGB8BjCBEEE1lBDBCaBCBBCDDCJBCDBCCCHFFCECBBBCBBCDDCICBCCDDBCGBCDBCDBCCCBIBCQBGCBCEBCQB1TZBHZBHZB3zD-2pBBhB9oEBDt0FBDwpHBQtTBjtC9QBjvBq6EBGppIB",!1)),Dash:()=>new nU(nj("tB9qB9qB0BiyDiyDmgBqgCqgCBEB+BoBoBQnMnMlgDDDgBBBFdd-NUUwDxszBxszBBmBmBLqFqFhzD-J-J",!1)),Emoji:()=>new nU(nj("jBHHGJBwDFFu8HNN5GXX7CFBQBBwLBBNnFnFaKBFCBoGoHoHBLLK7B7BBCBCEBKGDBDDFDDCBBDIEBJJBBBGCCGLBMBBDCCBCCTDDBTTBEBCCCBEEBGGDBBFBBMBBGBBDGGBECBVVBGGBEBCDBDFFDDDBEBCDDCCCHEEHLLBQQDFFCFFBBBCMMBxBxBBBBKeP1LBBwOCBUBB0BFF7mBNN6SCCrrvDrGrGhFBBNBBPDDBIBsCZBCBBYVVDIBWBBvFhBBDvDBDBBCCBDyCBDCBCmIBC+BBMFBCXBIBBDHBNDDBCBDFFBOOBDDJBBKGGBBBNCBJCBDCCFHHEHHB0CBxBlCBGHBDDBEJBECCBEEDJBkHLBF8I8IBtBBCJBC4FBxDMBEKBE4BBCFFBOBDLBFJB",!1)),Emoji_Component:()=>new nU(nj("jBHHGJB0+H2G2Gsp3B3+8B3+8BBYB8PEBxtBDBtzhY-CB",!1)),Emoji_Modifier:()=>new nU(nj("7-8DE",!0)),Emoji_Modifier_Base:()=>new nU(nj("9wJ8G8GRDB4jzD9B9BBBBDDDBBB2DBBDKBWSBEFFBBBCCBICCZqGqGBFFWFFBvFvFBBBEEB0CRRBBBKMMgSDDJHBHKKBIBDCB5B+B+BBCCBCCSCBCMBmHCBrBIB",!1)),Emoji_Presentation:()=>new nU(nj("64IBBuGDBEDDqQBBWBBzBLBsBUUOJJBSSBGGBJJGWWIBBCFFDIIFBBdkBkBCFFBBBC+B+BBBBZPP8aBB0BFFvlxDrGrG-FDDBIBsCZBCZZVDDBDBCCBWBBvFgBBNIBClCBCVBNqBBFEBNQBEEEBlCBCCCB5FBD+BBODBCXBTbbBOO3C0CBxBlCBHEEBBBDDBEDBMBBIIBkHLBF8I8IBtBBCJBC4FBxDMBEKBE4BBCFFBOBDLBFJB",!1)),Extended_Pictographic:()=>new nU(nj("pFFFu8HNN5GXX7CFBQBBwLBBNnFnFaKBFCBoGoHoHBLLK7B7BBCBCEBKGDBDDFDDCBBDIEBJJBBBGCCGLBMBBDCCBCCTDDBTTBEBCCCBEEBGGDBBFBBMBBGBBDGGBECBVVBGGBEBCDBDFFDDDBEBCDDCCCHEEHLLBQQDFFCFFBBBCMMBxBxBBBBKeP1LBBwOCBUBB0BFF7mBNN6SCCrrvDoBoBBCBlDLBQBBQPPBmBmBBIBxDBBNBBPDDBIBU3BBcOBLVVDIBCDBKWBH7FBDvDBDBBCCBDyCBDCBCDBG9HBC+BBMFBCXBIBBDHBNDDBCBDFFBOOBDDJBBKGGBBBNCBJCBDCCFHHEHHB0CBxBlCBGHBDQBECCBEBDMB7GlBBNDB5BHBLFBpBHBfBBNDBDNBKmBBNuBBCJBC4FB5CHBPxEBhI9fB",!1)),Hex_Digit:()=>new nU(nj("wBJIFbFq1-BJIFbF",!0)),Lowercase:()=>new nU(nj("hDZBwBLLFlBlBBWBCHBC2BCBQCBuBCDECBBBDCCDEEBFFDEEBBBDDDCCCDCCBCCDEECDDBDDBBBHGDCOCBSCBDDCEEC4BCBFBDDDBCCFICBjCBDiBBIBBfEBhDsBsBCEEDDBTccBhBBCBBECBCWCBDBCGDB0B0BBuBBCgBCK0BCDMCBgDCxBoBBo6CqBBCDB5XFBjkCIBC2D2DB+FBiC0ECBHBCgDCBHBJFBLHBJHBJFBLHBJHBJNBDHBJHBJHBJEBCBBHEEBBBCBBJDBDBBJHBLCBCBB6DOORMBuDEEBEEcKFDBBJDBFiBiBBOBFsasaBYBn6BvBBCEEBGCFCCBCCBGBEiDCBIICFFNlBBCGG0oesBCUaCBBBmEMCBBBC8BCBIBCCCDICFCCDCCBBBCSCGGGCMCFCCDOCWDBCCCBBB2ZqBBCNBHvCBh6TGBNEBqhBZBumBnBBpEjBB8EKBCOBCGBCBBkODDBBBCpBBCIBmoByBB+DVB75CfBhsVfB8BYBnqZZBbGBCRBbZBbDBCCCBFBCKBbZBbZBbZBbZBbZBbZBbZBbZBbbBdYBCFBbYBCFBbYBCFBbYBCFBbYBCFBC15B15BBIBCTBHFBmI9BB1lChBB",!1)),Math:()=>new nU(nj("rBRRBBBgBeeCuBuBFmBmBgB5W5WBBBDbbBDDBBBwQCBuwGccBBBMEEOPPBCBWEBMEBiCMBFEEBFFBDBTFFDJBCDDBEBHEEBDDBCCBBBCFBENBClClCBWBCFBCBBFBBFfBCHHBPPBqIBJDBVBB7CffBZBCZZMGB+NBBNJBFFBFBBDBBEEBPCCDFBMHBGBB6BCCeDBKCBxK-BBhI-PBxBUBDFB9+zB4Z4ZBEBCjFjFRCBeCCeCCkEHHBCBitDBBhrwBwoBwoBBzCBCmCBCBBDDDBDDBCBCLBCCCBFBCgCBCDBDHBCGBCbBCDBCEBCEEBFBCzKBDjJBDxBBhwFDBCaBCBBCDDCJBCDBCCCHFFCECBBBCBBCDDCICBCCDDBCGBCDBCDBCCCBIBCQBGCBCEBCQB1BBB-uCIB",!1)),Quotation_Mark:()=>new nU(nj("iBFFkEQQ96HHBaBBowDqOqOBCBOCBixzBDB+FFF7CBB",!1)),Terminal_Punctuation:()=>new nU(nj("hBLLCMMBEE-ZJJiQ6B6BpCPPCCB1FsBsBBJBCsHsHB3B3BBEBCHBgBmImIB1nB1nBBtFtFFFB4JBB2YHBmY9D9DBBBoCBB+ECBEoBoBBCBDBB7JBBjLDBjFBBLBBCCBeCB8FEB-BBBldYYBKKBBBwlDCBzJOOFLLCBBEBBtNBB8ndBBuICBkHEB-LBB3CBBgD4E4EBBB0ECBgERRB6H6HnxUDDB6B6BBBBCDBqFLLCMMBEEiCDD7hBxBxBnkBoGoG3JBB5EFBlCFB6CDB5dEBtBDB+FGBxDDBgECBiEBBHRRB5C5CBDBtDrJrJB2D2DBBBNBBnLDBEOBqDBB6HCBmQCC8HBB4CBBFBB-MCBuBmUmUBrCrCBspBspBBDB6vRBBmEiCiCBBBLqRqRBoJoJBnwTnwTovHDB",!1)),Uppercase:()=>new nU(nj("hCZBmDWBCGBiB2BCDOCDuBCBECEBBCCCBCCBBBDDBCBBCCBEBBCBBCECBCCDCCBCCBBBCCCBEEIJDCMCDQCDDDCCBC4BCIBBCBBDCCBCBCGCiJCCEJJHCCBBBCCCBCCBPBCIBkBDDBBBEWCGDDCBBDyBBxBgBCK2BCBMCD+CCDlBBq6ClBBCGGzW1CB0kCHHBpBBDCBhK0ECKgDCKHBJFBLHBJHBJFBMGCJHBpCDBNDBNDBNEBMDBnIFFECBDCBDEEBDBHGCBCBDDBLBBGbbBOBUzZzZBYBx5BvBBxBCCB
11BBDGCBCBCDDJCBCgDCJCCFuqeuqeCqBCUaCoEMCE8BCLECBICFCCDCCEUCBDBCEBCOCBCBCCCBQCZs5Vs5VBYBmmBnBBpEjBB9EKBCOBCGBCBBr3ByBB+EVB75CfBhsVfBhCYBoqZZBbZBbZBbCCBGDBDDBCBCHBbZBbBBCDBDHBCGBcBBCDBCEBCEEBFBcZBbZBbZBbZBbZBbZBfYBiBYBiBYBiBYBiBYBiB2pE2pEBgBBvgCZBHZBHZB",!1)),White_Space:()=>new nU(nj("JEBTlDlDbgvFgvFgsCKBeBBGwBwBh9DAB",!1))});static get Upper(){return this.CATEGORIES.get("Lu")}static SCRIPTS=new nz({Adlam:()=>new nU(nj("go6DrCFJFB",!0)),Ahom:()=>new nU(nj("g4lCaDOFW",!0)),Anatolian_Hieroglyphs:()=>new nU(nj("ggxCmS",!0)),Arabic:()=>new nU(nj("gwBEBCFBCNBCCBCfBCJBMZBCrDBChBBxCvBBxHhBBGqCBCcBxy8BtPBDvEBhBPBxDEBCmEBk7DeBkCFBJIBiBFBh43BDBCaBCBBCDDCJBCDBCCCHFFCECBBBCBBCDDCICBCCDDBCGBCDBCDBCCCBIBCQBGCBCEBCQB1BBB",!1)),Armenian:()=>new nU(nj("xpBlBDxBDCks9BE",!0)),Avestan:()=>new nU(nj("g4iC1BEG",!0)),Balinese:()=>new nU(nj("g4GsCCxB",!0)),Bamum:()=>new nU(nj("g1pB3CpowB4R",!0)),Bassa_Vah:()=>new nU(nj("w26CdDF",!0)),Batak:()=>new nU(nj("g+GzBJD",!0)),Bengali:()=>new nU(nj("gsCDBCHBDBBDVBCGBCEEBCBDIBDBBDDBJFFBCCBDBDYB",!1)),Beria_Erfe:()=>new nU(nj("g17CYDY",!0)),Bhaiksuki:()=>new nU(nj("ggnCICsBCNLc",!0)),Bopomofo:()=>new nU(nj("qXB6wLqBxDf",!0)),Brahmi:()=>new nU(nj("ggkCtCFjBKA",!0)),Braille:()=>new nU(nj("ggK-H",!0)),Buginese:()=>new nU(nj("gwGbDB",!0)),Buhid:()=>new nU(nj("g6FT",!0)),Canadian_Aboriginal:()=>new nU(nj("ggF-TxRlC7tgCP",!0)),Carian:()=>new nU(nj("g1gCwB",!0)),Caucasian_Albanian:()=>new nU(nj("wphCzBMA",!0)),Chakma:()=>new nU(nj("gokC0BCR",!0)),Cham:()=>new nU(nj("gwqB2BKNDJDD",!0)),Cherokee:()=>new nU(nj("g9E1CDFz7lBvC",!0)),Chorasmian:()=>new nU(nj("w9jCb",!0)),Common:()=>new nU(nj("AgCBbFBbuBBCOBCEBYgBgBiOmBBGEBDTB1DKKHCC+THHPEEhB9E9ElQiEiEB6mB6mB2MDBjJwvBwvBBBBoCBBsGBBCumBumBOIIBCBCFBCCBDmYmYBKBD2CBCKBEKBCOBShBB-BlBBCCBDFBCaBCQBqBCBF5UBXKBW-cBhIzTBDpEBhQ9CBzMUBCCCBXBQHBFDB8CBBE7C7CB0E0EBOBhBlBBKxBxBB+BBgBwCBwB5C5CBmFBhuG-BBhoWhBBnDCBmFJB1HhFhFsMPPBzuUzuUBxGxGBIBXiBBCSBCDB0ECCBeBbFBbKBLuBuBBhChCBFBCGBLEBjICBFsBBEIBxCMB0BsBBlHaBltuBDB96D8HBEzNBHWBQQBgDzDB9B1HBLmBBD9BBEQBJBBIdBF8BB2GTBNTBN2CBKYBoE0CBCmCBCBBDDDBDDBCBCLBCCCBFBCgCBCDBDHBCGBCbBCDBCEBCEEBFBCzKBDjJBDxBByjFjCBtC8BBjWrBBFjDBNOBDOBCOBCkBBLtFB5BZBCBBOrBBFIBIBBPFB7E4eBEQBEMBE5GBHLBFQQBKBF3BBJJBHnBBJdBDLBFBBPIBoB3KBJNBDMBEKBE4BBCFFBOBDLBFJBIyEBCmDBnghYffB+CB",!1)),Coptic:()=>new nU(nj("ifNxkKzDGG",!0)),Cuneiform:()=>new nU(nj("ggoC5cnDuDCEMjG",!0)),Cypriot:()=>new nU(nj("ggiCFBDCCBqBBCBBEDD",!1)),Cypro_Minoan:()=>new nU(nj("w8rCiD",!0)),Cyrillic:()=>new nU(nj("ggBkEBDoFBx6FKBhFtCtCojEfBhie-CBv8VBBhw4B9BBiBAB",!1)),Deseret:()=>new nU(nj("gghCvC",!0)),Devanagari:()=>new nU(nj("goCwCFODZh7nBfhwcJ",!0)),Dives_Akuru:()=>new nU(nj("gomCGBDDDBGBCBBCdBCBBDLBKJB",!1)),Dogra:()=>new nU(nj("ggmC7B",!0)),Duployan:()=>new nU(nj("ggvDqDGMEIIJDD",!0)),Egyptian_Hieroglyphs:()=>new nU(nj("ggsC1iBL68D",!0)),Elbasan:()=>new nU(nj("gohCnB",!0)),Elymaic:()=>new nU(nj("g-jCW",!0)),Ethiopic:()=>new nU(nj("gwEoCBCDBDGBCCCBCBDoBBCDBDgBBCDBDGBCCCBCBDOBC4BBCDBDiCBDfBEZBnvGWBKGBCGBCGBCGBCGBCGBCGBCGBjpfFBDFBDFBKGBCGBylvCGBCD
11BCBBCOB",!1)),Garay:()=>new nU(nj("gqjClBEcJB",!0)),Georgian:()=>new nU(nj("glElBBCGGDqBBCDBx8CqBBDCBhiElBBCGG",!1)),Glagolitic:()=>new nU(nj("ggL-Ch9sDGCQDGCBCE",!0)),Gothic:()=>new nU(nj("w5gCa",!0)),Grantha:()=>new nU(nj("g4kCDBCHBDBBDVBCGBCBBCEBDIBDBBDCBDHHGGBDGBEEB",!1)),Greek:()=>new nU(nj("wbDBCCBDDBCFFCCCBBBCCCBSBC+BBPPBnpGEBzBEBFEB1ChKhKBUBDFBDlBBDFBDHBCGCBdBD0BBCOBCNBDFBCSBDCBCIBoJ-xiB-xiB7uVuCBSgj0Bgj0BBkCB",!1)),Gujarati:()=>new nU(nj("h0CCBCIBCCBCVBCGBCBBCEBDJBCCBCCBDQQBCBDLBIGB",!1)),Gunjala_Gondi:()=>new nU(nj("grnCFCBCkBCBCFIJ",!0)),Gurmukhi:()=>new nU(nj("hwCCBCFBFBBDVBCGBCBBCBBCBBDCCBDBFBBDCBEIIBCBCIIBPB",!1)),Gurung_Khema:()=>new nU(nj("go4C5B",!0)),Han:()=>new nU(nj("g0LZBC4CBN1GBwBCCaIBPDBle-tGBhC-vUBhoWtLBDpDBpodBBNGBqgkB-2pBBhB9oEBDt0FBDwpHBQtTBjtC9QBjvBq6EBGppIB",!1)),Hangul:()=>new nU(nj("goE-HvxHBiI9CyDeiCei3dckUj9KNWFwBl9JeEFDFDFDC",!0)),Hanifi_Rohingya:()=>new nU(nj("gojCnBJJ",!0)),Hanunoo:()=>new nU(nj("g5FU",!0)),Hatran:()=>new nU(nj("gniCSCBGE",!0)),Hebrew:()=>new nU(nj("xsB2BBJaBFFBpp9BZBCEBCCCBCCBCCBIB",!1)),Hiragana:()=>new nU(nj("hiM1CBHCBi7-C+IBTeeBBBulQAB",!1)),Imperial_Aramaic:()=>new nU(nj("giiCVCI",!0)),Inherited:()=>new nU(nj("gYvDB2IBBlOKBbhXhXBCB8qEtBBDLBlPCBCMBCGBFHHEBBnG-BBtQBBjGgBB65DDBsDBBmrzBPBRNBwejHjH7iEl+uBl+uBBsBBDWBhRCBSHBDGBfDBz6rYvHB",!1)),Inscriptional_Pahlavi:()=>new nU(nj("g7iCSGH",!0)),Inscriptional_Parthian:()=>new nU(nj("g6iCVDH",!0)),Javanese:()=>new nU(nj("gsqBtCDJFB",!0)),Kaithi:()=>new nU(nj("gkkCiCLA",!0)),Kannada:()=>new nU(nj("gkDMCCCWCJCEDICCCDIBGCCDDJCC",!0)),Katakana:()=>new nU(nj("hlM5CBDCBxHPBxGuBBC3CBvgzBJBCsBBzisBDBCGBCBBCgJgJBBBzBPPBCB",!1)),Kawi:()=>new nU(nj("g4nCQCoBEc",!0)),Kayah_Li:()=>new nU(nj("goqBtBCA",!0)),Kharoshthi:()=>new nU(nj("gwiCDCBGHCCCcDCFJII",!0)),Khitan_Small_Script:()=>new nU(nj("k-7C84G84GB0OBqBAB",!1)),Khmer:()=>new nU(nj("g8F9CDJHJnPf",!0)),Khojki:()=>new nU(nj("gwkCRCuB",!0)),Khudawadi:()=>new nU(nj("w1kC6BGJ",!0)),Kirat_Rai:()=>new nU(nj("gq7C5B",!0)),Lao:()=>new nU(nj("h0DBBCCCBDBCXBCCCBVBDEBCCCBFBCJBDDB",!1)),Latin:()=>new nU(nj("hCZBHZBwBQQGWBCeBCgOBoBEB8wGlBBHwBBGDBGMBClCBiC-HByLOORMBuEBBHccSoBB42CfBj1elDBExCBVOBxZqBBCIBCDB38TGB7gBZBHZBmhCFBCpBBCIBm61BeBHFB",!1)),Lepcha:()=>new nU(nj("ggH3BEOEC",!0)),Limbu:()=>new nU(nj("goGeBCLBFLBFEEBKB",!1)),Linear_A:()=>new nU(nj("gwhC2JKVLH",!0)),Linear_B:()=>new nU(nj("gggCLCZCSCBCODNjB6D",!0)),Lisu:()=>new nU(nj("wmpBvBx1eA",!0)),Lycian:()=>new nU(nj("g0gCc",!0)),Lydian:()=>new nU(nj("gpiCZGA",!0)),Mahajani:()=>new nU(nj("wqkCmB",!0)),Makasar:()=>new nU(nj("g3nCY",!0)),Malayalam:()=>new nU(nj("goDMCCCyBCCCFFPDZ",!0)),Mandaic:()=>new nU(nj("giCbDA",!0)),Manichaean:()=>new nU(nj("g2iCmBFL",!0)),Marchen:()=>new nU(nj("wjnCfDVCN",!0)),Masaram_Gondi:()=>new nU(nj("gonCGBCBBCrBBECCBCCBHBJJB",!1)),Medefaidrin:()=>new nU(nj("gy7C6C",!0)),Meetei_Mayek:()=>new nU(nj("g3qBWqGtBDJ",!0)),Mende_Kikakui:()=>new nU(nj("gg6DkGDP",!0)),Meroitic_Cursive:()=>new nU(nj("gtiCXFTDtB",!0)),Meroitic_Hieroglyphs:()=>new nU(nj("gsiCf",!0)),Miao:()=>new nU(nj("g47CqCF4BIQ",!0)),Modi:()=>new nU(nj("gwlCkCMJ",!0)),Mongolian:()=>new nU(nj("ggGBBDCCBSBH4CBIqBB2t-BMB",!1)),Mro:()=>new nU(nj("gy6CeCJFB",!0)),Multani:()=>new nU(nj("g0kCGBCCCBCBCOBCKB",!1)),Myanmar:()=>new nU(nj("ggE-EhqmBeiDfxibT",!0)),Nabataean:()=>new nU(nj("gkiCeJI",!0)),Nag_Mundari:()=>new nU(nj("wm5DpB",!0)),Nandinagari:()=>new nU(nj("gtmCHDtBDK",!0)),New_Tai_Lue:()=>new nU(nj("gsGrBFZHKEB",!0)),Newa:()=>new nU(nj("gglC7CCE",!0)),Nko:()=>new nU(nj("g+B6BDC",!0)),Nushu:()=>new nU(nj("h-7CvsQvsQBqMB",!1)),Nyiakeng_Puachue_Hmong:()=>new nU(nj("go4DsBENDJFB",!0)),Ogham:()=>new nU(nj("g0Fc",!0)),Ol_Chiki:()=>new nU(nj("wiHvB",!0)),Ol_Onal:()=>new nU(nj("wu5DqBFA",!0)),Old_Hungarian:()=>new nU(nj("gkjCyBOyBIF",!0)),Old_Italic:()=>new nU(nj("g4gCjBKC",!0)),Old_North_Arabian:()=>new nU(nj("g0iCf",!0)),Old_Permic:()=>new nU(nj("w6gCqB",!0)),Old_Persian:()=>new nU(nj("g9gCjBFN",!0)),Old_Sogdian:()=>new nU(nj("g4jCnB",!0)),Old_South_Arabian:()=>new nU(nj("gziCf",!0)),Old_Turkic:()=>new nU(nj("ggjCoC",!0)),Old_Uyghur:()=>new nU(nj("w7jCZ",!0)),Oriya:()=>new nU(nj("h4CCCHDBDVCGCBCEDIDBDCICFBCEDR",!0)),Osage:()=>new nU(nj("wlhCjBFjB",!0)),Osmanya:()=>new nU(nj("gkhCdDJ",!0)),Pahawh_Hmong:()=>new nU(nj("g46ClCLJCGCUGS",!0)),Palmyrene:()=>new nU(nj("gjiCf",!0)),Pau_Cin_Hau:()=>new nU(nj("g2mC4B",!0)),Phags_Pa:()=>new nU(nj("giqB3B",!0)),Phoenician:()=>new nU(nj("goiCbEA",!0)),Psalter_Pahlavi:()=>new nU(nj("g8iCRIDNG",!0)),Rejang:()=>new nU(nj("wpqBjBMA",!0)),Runic:()=>new nU(nj("g1FqCEK",!0)),Samaritan:()=>new nU(nj("ggCtBDO",!0)),Saurashtra:()=>new nU(nj("gkqBlCJL",!0)),Sharada:()=>new nU(nj("gskC-ChsCH",!0)),Shavian:()=>new nU(nj("wihCvB",!0)),Siddham:()=>new nU(nj("gslC1BDlB",!0)),Sidetic:()=>new nU(nj("gqiCZ",!0)),SignWriting:()=>new nU(nj("gg2DrUQECO",!0)),Sinhala:()=>new nU(nj("hsDCBCRBEXBCIBCDDBFBEFFBEBCCCBGBHJBDCBt-gCTB",!1)),Sogdian:()=>new nU(nj("w5jCpB",!0)),Sora_Sompeng:()=>new nU(nj("wmkCYIJ",!0)),Soyombo:()=>new nU(nj("wymCyC",!0)),Sundanese:()=>new nU(nj("g8G-BhIH",!0)),Sunuwar:()=>new nU(nj("g+mChBPJ",!0)),Syloti_Nagri:()=>new nU(nj("ggqBsB",!0)),Syriac:()=>new nU(nj("g4BNC7BDCxIK",!0)),Tagalog:()=>new nU(nj("g4FVKA",!0)),Tagbanwa:()=>new nU(nj("g7FMCCCB",!0)),Tai_Le:()=>new nU(nj("wqGdDE",!0)),Tai_Tham:()=>new nU(nj("gxG+BCcDKHJHN",!0)),Tai_Viet:()=>new nU(nj("g0qBiCZE",!0)),Tai_Yo:()=>new nU(nj("g25DeCVJB",!0)),Takri:()=>new nU(nj("g0lC5BHJ",!0)),Tamil:()=>new nU(nj("i8CBBCFBECBCDBEBBCCCBEEBEEBBBELBFEBECBCDBDHHPUBm+kCxBBOAB",!1)),Tangsa:()=>new nU(nj("wz6CuCCJ",!0)),Tangut:()=>new nU(nj("g-7CgBgBB+3GBhQeBiDyDB",!1)),Telugu:()=>
11new nU(nj("ggDMCCCWCPDICCCDIBCCCBDDDJII",!0)),Thaana:()=>new nU(nj("g8BxB",!0)),Thai:()=>new nU(nj("hwD5BGb",!0)),Tibetan:()=>new nU(nj("g4DnCCjBFmBCjBCOCGFB",!0)),Tifinagh:()=>new nU(nj("wpL3BIBPA",!0)),Tirhuta:()=>new nU(nj("gklCnCJJ",!0)),Todhri:()=>new nU(nj("guhCzB",!0)),Tolong_Siki:()=>new nU(nj("wtnCrBFJ",!0)),Toto:()=>new nU(nj("w04De",!0)),Tulu_Tigalari:()=>new nU(nj("g8kCJBCDDClBBCJBCDDCDBCJBCBBJBB",!1)),Ugaritic:()=>new nU(nj("g8gCdCA",!0)),Unknown:()=>new nU(nj("4bBBHDBICCVuMuMnBBBzBBBE4B4BBGBcDBHKBvI9B9BBmDmDBMB8BBByBBBQddBCCMEBjBEBuHJJBDDBXXICCBBBFBBKBBDBBFHBCDBDGGBaaBEEHDBDBBXIIDGDBCCGDBDBBECBCGBFCCBFBSJBEKKEXXIDDGBBLIEBCCBNBFBBNGBIEEJBBDBBXIIDGGBKKBDDBEEBFBEDBDGGBTTBIBDHHBBBEFFBBBDCCDCBDCBECBNDBGCBEFFBCCBEBCNBWEBOEEYRRBKKEFFBFBDEEDBBFBBLGBXEEYLLGBBKEEFGBDEBEFFBLLELBOEE0BEEHDBRBBbEETCBZKKCBBICBCDBHCCJFBLBBELB7BDBekBBDCCGZZCYYBGGCIILBBFfBpClBlBBCBoBlBlBQOOBjBBnGCCBDBCBB6LFFBIICFFBqBqBFBBiBFFBIICFFBQQ6BFFBkCkCBhBhBBBBbFB3CBBHBB+UCB6CGBXIBZIBVLBOEEDLB-CBBLFBLFBbFB6CGBsBEBnCJBgBNNBCBNDBCCBrBBBGKBtBDBbFBMCB-BBBiCeeBMMBEBLFBPBBvBBBNTBuCnFnFBGB9BCBQCB-BEBsBBBMHBsBEB3QBBHBBnBBBHBBJGCgBBB2BQQPBBHUUBEEKmDmDNBBcOOBBBjBNBiBOBtEDB7UVBMUB14BBB-LEBuBCCBDBCBB5BGBDNBZIBI4BI-DhBBb6C6CBKB3GZBxC3C3CBoDoDBDBsB-C-C3CIBxBuzcuzcBBB4BIB9KTB5FHB+GTB9BCBLFB5BHBnCHBNFB1DKBfCBvCMMBCBiB4B4BBHBPBBLBBoDXBdJBHBBHBBHIBIII9BDB-DBBLFBl9KLBYDByBjoIBvLBBrDlBBILBGEBbGGCGDrUfBrBFB0BUUFDBGoEoEBCC-FCBHBBHBBHBBECBIIIBIBGBBNbbUDDQBBPhBB8DEBEDBuBCB5COOBBBCuBBvBhEBeCByBOBdDBlBIBfEBsBEBfmBmBBCBPpBB-EBBLFBlBDBlBDBpBHB1BKBNQQIDDMQQIDDBBB1BLB4JIBXJBJXBHrBrBKkCBHBBCtBtBDCBCBBYpCpCBGBKvBBUDDBDBiBCBcEBclBB5BDBVBBzBDDBDBJEEeBBEDBLGBKGBhCfBoBDBNIB3BCBeBBcEBbGBFLBIvCBqC2BB0BMB0BGBvBHBLFBnBCBeHBDvGBgBrBrBEBBDPBHHBKgBBvBHBrBVBblBBdTBYIBvCDBlBIBlCJBCBBaGBLFB2BTTBGBoBIBhDVVBJBTwBwBB8BBICCFQQMFB8BEBLFBFJJBDDBXXIDDGLLBDDBEEBCCBEBCEBIBBICBGKBLCCBCCnBLLCBBCFFLDDBGBDcB9CGGBcBpCHBLlFB3BBBnBhBBmCKBLFBOSB7BFBLFBVbBcBBQDBY4FB9BjDB0CLBJBBCBBJDDfDDBNNBHBLlCBJBBvBBBMaBpCHB0CMBqCGBL1CBJ3CBjBNBLFBKuBuBPJBeCBhBBBXPPBnCBIDDtBCBCDDKHBLFBHDDmBDDHGBLFBtBDBL1HBaGBSqBqBBBBe0CBCOBzBMB8clDBwDGGBJBlGryCBkDMB3iBJB88DEBoS41GB7Bl2BB6RGBgBLLBCByCLLBEBfBBHJBnCJBLIIWEBUvNB7BlGB8CEBaBBarBBsCDB6BGBS-BBGKBIIB3mHoBBhBgDB0D8vIBFIIDkJkJBNBCcBEBBCNBFHBtMjoCBsDEBOCBKGBLBBJ76DB+HCB1NFBYOBSOBvBBBYIB1D7BB3HJBoBBBjGUBnC5DBVLBVLB4CIBamEB2CoCoCDBBCBBDBBFNNCIIiCFFBJJIddFGGCCBI1K1KBlJlJB-V-VBNBGQQBuiBBgBFBH0GBISSBIIDGGBDB-BgBBCvDBuBCBPBBLDBD-JBgBQB7BEBCvOBrB1GBsBDBC-FBgBXXBGBD-GBIFFDQQmGBBRoBBtCDBLDBDwYBlCrCB+BhGBFccDCCBCCLFFCCCBEBCDBCECEDDCBBCICDCCBFFIKFCLLSEBEGGSzBBDtIBtBDBlDLBQBBQQQmBJBvF3BBeMBtBDBKGBDNBH5EB6eCBSCBOCB7GFBNDBCOBNDB5BHBLFBpBHBfBBNDBDNBKmBB5KHBPBBOCBMCB6BCCBCBRBBND
11BLGB0EoDoDBjgBBh3pBfB-oEBBv0FBBypHOBvThtCB-QhvBBs6EEBrpIm8yVBCdBhD-DBxHvw-FB",!1)),Vai:()=>new nU(nj("gopBrJ",!0)),Vithkuqi:()=>new nU(nj("wrhCKCOCGCBCKCOCGCB",!0)),Wancho:()=>new nU(nj("g24D5BGA",!0)),Warang_Citi:()=>new nU(nj("glmCyCNA",!0)),Yezidi:()=>new nU(nj("g0jCpBCCDB",!0)),Yi:()=>new nU(nj("ggoBskBE2B",!0)),Zanabazar_Square:()=>new nU(nj("gwmCnC",!0))});static FOLD_CATEGORIES=new nz({L:()=>new nU(nj("laA",!0)),LC:()=>new nU(nj("laA",!0)),Ll:()=>new nU(nj("hCZBmDWBCGBiBuBCEECDOCDuBCBECEBBCCCBCCBBBDDBCBBCCBEBBCBBCECBCCDCCBCCBBBCCCBEEIBBCBBCBBCOCDQCDBBCCCBBBC4BCIBBCBBDCCBCBCGC3HrBrBCEEJHHCCBCCCBCCBPBCIBkBJJCUCGDDCBBDyBBxBgBCK2BCBMCD+CCDlBBq6ClBBCGGzW1CB0kCHHBpBBDCBhK0ECKgDCKHBJFBLHBJHBJFBMGCJHBZHBJHBJHBJEBMEBMDBNEBMEBqJEEBHHxC9zC9zCBuBBxBCCBBBDGCBCBCDDJCBCgDCJCCFuqeuqeCqBCUaCoEMCE8BCLECBICFCCDCCEUCBDBCEBCOCBCBCCCBQCZs5Vs5VBYBmmBnBBpEjBB9EKBCOBCGBCBBr3ByBB+EVB75CfBhsVfBhCYBoyehBB",!1)),Lt:()=>new nU(nj("kOCCBCCBCClBCCtsHHBJHBJHBMQQwBAB",!1)),Lu:()=>new nU(nj("hDZB7BqBqBBWBCHBCuBCEECDOCDsBCDECBBBDCCDEEGDDECBDDDCCCDFFDEECDDECCGBBCBBCBBCOCBSCDBBCEECkBCEQCJDDBCCFICBEBCBBCCCBEEBCCBCBCEBDCCBDDIDDCBBEFBGLLBnFnFsBCCEEEBBBvBDBCdBCBBECBCWCBDBCGD1BvBBCgBCK0BCDMCBgDCyBlBBq6CqBBDCB5XFBjkCIBCvHvHERRzD0ECGGGC8CCBHBJFBLHBJHBJFBMGCJHBJNBzBBBNSSBPPBEEpL2B2Bs1CvBBCEEBGCHDDLiDCJCCFNNBkBBCGG0oesBCUaCoEMCE8BCLCCDICFFFCBBDSCMOCFCCDOCb9a9advCBi8UZBumBnBBpEjBB8EKBCOBCGBCBBk4ByBB+DVB75CfBhsVfB8BYBvyehBB",!1)),M:()=>new nU(nj("5cgBgBlgHAB",!1)),Mn:()=>new nU(nj("5cgBgBlgHAB",!1)),Emoji:()=>new nU(nj("8mJA",!0)),Extended_Pictographic:()=>new nU(nj("8mJA",!0)),Lowercase:()=>new nU(nj("hCZBmDWBCGBiBuBCEECDOCDuBCBECEBBCCCBCCBBBDDBCBBCCBEBBCBBCECBCCDCCBCCBBBCCCBEEIBBCBBCBBCOCDQCDBBCCCBBBC4BCIBBCBBDCCBCBCGCiJCCEJJHCCBBBCCCBCCBPBCIBkBJJCUCGDDCBBDyBBxBgBCK2BCBMCD+CCDlBBq6ClBBCGGzW1CB0kCHHBpBBDCBhK0ECKgDCKHBJFBLHBJHBJFBMGCJHBZHBJHBJHBJEBMEBMDBNEBMEBqJEEBHHuBPBUzZzZBYBx5BvBBxBCCBBBDGCBCBCDDJCBCgDCJCCFuqeuqeCqBCUaCoEMCE8BCLECBICFCCDCCEUCBDBCEBCOCBCBCCCBQCZs5Vs5VBYBmmBnBBpEjBB9EKBCOBCGBCBBr3ByBB+EVB75CfBhsVfBhCYBoyehBB",!1)),Math:()=>new nU(nj("ycGDCHHFMMDDDCHHFAB",!1)),Uppercase:()=>new nU(nj("hDZB7BqBqBBWBCHBCuBCEECDOCDsBCDECBBBDCCDEEGDDECBDDDCCCDFFDEECDDECCGBBCBBCBBCOCBSCDBBCEECkBCEQCJDDBCCFICBEBCBBCCCBEEBCCBCBCEBDCCBDDIDDCBBEFBGLLBnFnFsBCCEEEBBBvBDBCdBCBBECBCWCBDBCGD1BvBBCgBCK0BCDMCBgDCyBlBBq6CqBBDCB5XFBjkCIBCvHvHERRzD0ECGGGC8CCBHBJFBLHBJHBJFBMGCJHBJNBzBBBNSSBPPBEEpLiBiBBOBFsasaBYBn6BvBBCEEBGCHDDLiDCJCCFNNBkBBCGG0oesBCUaCoEMCE8BCLCCDICFFFCBBDSCMOCFCCDOCb9a9advCBi8UZBumBnBBpEjBB8EKBCOBCGBCBBk4ByBB+DVB75CfBhsVfB8BYBvyehBB",!1))});static FOLD_SCRIPT=new nz({Common:()=>new nU(nj("8cgBgB",!1)),Greek:()=>new nU(nj("1FwUwU",!1)),Inherited:()=>new nU(nj("5cgBgBlgHAB",!1))})},nK=class e{static MAX_RUNE=1114111;static MAX_ASCII=127;static MAX_LATIN1=255;static MAX_BMP=65535;static MIN_FOLD=65;static MAX_FOLD=125251;static MIN_HIGH_SURROGATE=55296;static MAX_HIGH_SURROGATE=56319;static MIN_LOW_SURROGATE=56320;static MAX_LOW_SURROGATE=57343;static MIN_SUPPLEMENTARY_CODE_POINT=65536;static is32(e,t){let r=0,n=e.length;for(;r<n;){let i=r+Math.floor((n-r)/2),s=e.getLo(i),a=e.getHi(i);if(s<=t&&t<=a)return(t-s)%e.getStride(i)==0;t<s?n=i:r=i+1}return!1}static is(t,r){if(r<=e.MAX_LATIN1){for(let e=0;e<t.length;e++){if(r>t.getHi(e))continue;let n=t.getLo(e);if(r<n)break;return(r-n)%t.getStride(e)==0}return!1}return t.length>0&&r>=t.getLo(0)&&e.is32(t,r)}static isUpper(t){if(t<=e.MAX_LATIN1){let e=String.fromCodePoint(t);return e.toUpperCase()===e&&e.toLowerCase()!==e}return e.is(nJ.Upper,t)}static isPrint(t){return t<=e.MAX_LATIN1?t>=32&&t<e.MAX_ASCII||t>=161&&173!==t:e.is(nJ.Print,t)}static simpleFold(e){if(nJ.CASE_ORBIT.has(e))return nJ.CASE_ORBIT.get(e);let t=nG.toLowerCase(e);return t!==e?t:nG.toUpperCase(e)}static equalsIgnoreCase(t,r){if(t===r)return!0;if(t<0||r<0)return!1;if(t<=e.MAX_ASCII&&r<=e.MAX_ASCII)return 65<=t&&t<=90&&(t|=32),65<=r&&r<=90&&(r|=32),t===r;for(let n=e.simpleFold(t);n!==t;n=e.simpleFold(n))if(n===r)return!0;return!1}};let nq=new Uint8Array(256);for(let e=0;e<256;e++)nq[e]=+(97<=e&&e<=122||65<=e&&e<=90||48<=e&&e<=57||95===e);let nY=null,n$=null;var nW=class e{static METACHARACTERS="\\.+*?()|[]{}^$";static EMPTY_BEGIN_LINE=1;static EMPTY_END_LINE=2;static EMPTY_BEGIN_TEXT=4;static EMPTY_END_TEXT=8;static EMPTY_WORD_BOUNDARY=16;static EMPTY_NO_WORD_BOUNDARY=32;static EMPTY_ALL=-1;static emptyInts(){return[]}static isByteArray(e){return Array.isArray(e)||e instanceof Uint8Array}static isalnum(e){return nG.CODES.get("0")<=e&&e<=nG.CODES.get("9")||nG.CODES.get("a")<=e&&e<=nG.CODES.get("z")||nG.CODES.get("A")<=e&&e<=nG.CODES.get("Z")}static unhex(e){return nG.CODES.get("0")<=e&&e<=nG.CODES.get("9")?e-nG.CODES.get("0"):nG.CODES.get("a")<=e&&e<=nG.CODES.get("f")?e-nG.CODES.get("a")+10:nG.CODES.get("A")<=e&&e<=nG.CODES.get("F")?e-nG.CODES.get("A")+10:-1}static escapeRune(t){let r="";if(nK.isPrint(t))e.METACHARACTERS.indexOf(String.fromCodePoint(t))>=0&&(r+="\\"),r+=String.fromCodePoint(t);else switch(t){case nG.CODES.get('"'):r+='\\"';break;case nG.CODES.get("\\"):r+="\\\\";break;case nG.CODES.get(" "):r+="\\t";break;case nG.CODES.get("\n"):r+="\\n";break;case nG.CODES.get("\r"):r+="\\r";break;case nG.CODES.get("\b"):r+="\\b";break;case nG.CODES.get("\f"):r+="\\f";break;default:{let e=t.toString(16);t<256?(r+="\\x",1===e.length&&(r+="0"),r+=e):r+=`\\x{${e}}`}}return r}static stringToRunes(e){let t=String(e),r=[],n=0;for(;n<t.length;){let e=t.codePointAt(n);
11r.push(e),n+=e>nK.MAX_BMP?2:1}return r}static runeToString(e){return String.fromCodePoint(e)}static isWordRune(e){return e<256&&1===nq[e]}static emptyOpContext(t,r){let n=0;return t<0&&(n|=e.EMPTY_BEGIN_TEXT|e.EMPTY_BEGIN_LINE),10===t&&(n|=e.EMPTY_BEGIN_LINE),r<0&&(n|=e.EMPTY_END_TEXT|e.EMPTY_END_LINE),10===r&&(n|=e.EMPTY_END_LINE),e.isWordRune(t)!==e.isWordRune(r)?n|=e.EMPTY_WORD_BOUNDARY:n|=e.EMPTY_NO_WORD_BOUNDARY,n}static quoteMeta(t){return t.split("").map(t=>e.METACHARACTERS.indexOf(t)>=0?`\\${t}`:t).join("")}static charCount(e){return e>nK.MAX_BMP?2:1}static toArray(e){let t=e.length,r=Array(t);for(let n=0;n<t;n++)r[n]=e[n];return r}static stringToUtf8ByteArray(e){if(globalThis.TextEncoder)return nY||(nY=new TextEncoder),nY.encode(e);{let t=[],r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)===nK.MIN_HIGH_SURROGATE&&n+1<e.length&&(64512&e.charCodeAt(n+1))===nK.MIN_LOW_SURROGATE?(i=nK.MIN_SUPPLEMENTARY_CODE_POINT+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return t}}static utf8ByteArrayToString(e){if(globalThis.TextDecoder){n$||(n$=new TextDecoder("utf-8"));let t=e instanceof Uint8Array?e:new Uint8Array(e);return n$.decode(t)}{let t=[],r=0,n=0;for(;r<e.length;){let i=e[r++];if(i<128)t[n++]=String.fromCharCode(i);else if(i>191&&i<224){let s=e[r++];t[n++]=String.fromCharCode((31&i)<<6|63&s)}else if(i>239&&i<365){let s=((7&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-nK.MIN_SUPPLEMENTARY_CODE_POINT;t[n++]=String.fromCharCode(nK.MIN_HIGH_SURROGATE+(s>>10)),t[n++]=String.fromCharCode(nK.MIN_LOW_SURROGATE+(1023&s))}else{let s=e[r++],a=e[r++];t[n++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&a)}}return t.join("")}}};let nQ=(e=[],t=0)=>{let r=Object.create(null);for(let n=0;n<e.length;n++){let i=e[n],s=t+n;r[i]=s,r[s]=i}return Object.freeze(r)};var nZ=class e{static Encoding=nQ(["UTF_16","UTF_8"]);getEncoding(){throw Error("not implemented")}asCharSequence(){throw Error("not implemented")}asBytes(){throw Error("not implemented")}length(){throw Error("not implemented")}isUTF8Encoding(){return this.getEncoding()===e.Encoding.UTF_8}isUTF16Encoding(){return this.getEncoding()===e.Encoding.UTF_16}},nX=class extends nZ{constructor(e=null){super(),this.bytes=e}getEncoding(){return nZ.Encoding.UTF_8}asCharSequence(){return nW.utf8ByteArrayToString(this.bytes)}asBytes(){return this.bytes}length(){return this.bytes.length}},n0=class extends nZ{constructor(e=null){super(),this.charSequence=e}getEncoding(){return nZ.Encoding.UTF_16}asCharSequence(){return this.charSequence}asBytes(){return nW.stringToUtf8ByteArray(this.charSequence.toString())}length(){return this.charSequence.length}},n1=class{static utf16(e){return new n0(e)}static utf8(e){return new nX(nW.isByteArray(e)?e:nW.stringToUtf8ByteArray(e))}},n2=class{static EOF(){return -8}constructor(){this.end=0}canCheckPrefix(){return!0}endPos(){return this.end}hasString(){return!1}hasAnyString(){return!1}prefixLength(){return 0}},n3=class extends n2{constructor(e,t=0,r=e.length){super(),this.bytes=e,this.start=t,this.end=r}hasString(e,t){let r=e.bytes;if(0===r.length)return!0;let n=this.indexOf(this.bytes,r,this.start+t);return -1!==n&&n<=this.end-r.length}hasAnyString(e,t){return!!e.ac8&&e.ac8.searchUTF8(this.bytes,this.start+t,this.end)}step(e){if((e+=this.start)>=this.end)return n2.EOF();let t=255&this.bytes[e];if(t<128)return t<<3|1;if(t>=194&&t<=223&&e+1<this.end){let r=255&this.bytes[e+1];return(192&r)!=128?t<<3|1:((31&t)<<6|63&r)<<3|2}if(t>=224&&t<=239&&e+2<this.end){let r=255&this.bytes[e+1];if((192&r)!=128)return t<<3|1;let n=255&this.bytes[e+2];return(192&n)!=128?t<<3|1:((15&t)<<12|(63&r)<<6|63&n)<<3|3}{if(!(t>=240)||!(t<=244)||!(e+3<this.end))return t<<3|1;let r=255&this.bytes[e+1];if((192&r)!=128)return t<<3|1;let n=255&this.bytes[e+2];if((192&n)!=128)return t<<3|1;let i=255&this.bytes[e+3];return(192&i)!=128?t<<3|1:((7&t)<<18|(63&r)<<12|(63&n)<<6|63&i)<<3|4}}index(e,t){t+=this.start;let r=this.indexOf(this.bytes,e.prefixUTF8,t);return r<0?r:r-t}context(e){e+=this.start;let t=-1;if(e>this.start&&e<=this.end){let r=e-1;if((t=this.bytes[r--])>=128){let n=e-4;for(n<this.start&&(n=this.start);r>=n&&(192&this.bytes[r])==128;)r--;r<this.start&&(r=this.start),t=this.step(r-this.start)>>3}}let r=e<this.end?this.step(e-this.start)>>3:-1;return nW.emptyOpContext(t,r)}indexOf(e,t,r=0){let n=t.length;if(0===n)return r<=this.end?r:-1;let i=t[0],s=this.end-n,a="function"==typeof e.indexOf,o=r;for(;o<=s;){if(a){if(-1===(o=e.indexOf(i,o))||o>s)break}else{for(;o<=s&&e[o]!==i;)o++;if(o>s)break}let r=!0;for(let i=1;i<n;i++)if(e[o+i]!==t[i]){r=!1;break}if(r)return o;o++}return -1}prefixLength(e){return e.prefixUTF8.length}},n6=class extends n2{constructor(e,t=0,r=e.length){super(),this.charSequence=e,this.start=t,this.end=r}hasString(e,t){let r=this.charSequence.indexOf(e.str,this.start+t);return -1!==r&&r<=this.end-e.str.length}hasAnyString(e,t){return!!e.ac16&&e.ac16.searchUTF16(this.charSequence,this.start+t,this.end)}step(e){if((e+=this.start)>=this.end)return n2.EOF();let t=this.charSequence.charCodeAt(e);if(t<nK.MIN_HIGH_SURROGATE||t>nK.MAX_HIGH_SURROGATE||e+1>=this.end)return t<<3|1;let r=this.charSequence.charCodeAt(e+1);return r>=nK.MIN_LOW_SURROGATE&&r<=nK.MAX_LOW_SURROGATE?(t-nK.MIN_HIGH_SURROGATE)*1024+(r-nK.MIN_LOW_SURROGATE)+nK.MIN_SUPPLEMENTARY_CODE_POINT<<3|2:t<<3|1}index(e,t){t+=this.start;let r=this.charSequence.indexOf(e.prefix,t);return r<0||r>this.end-e.prefix.length?-1:r-t}context(e){let t=(e+=this.start)>this.start&&e<=this.end?this.charSequence.charCodeAt(e-1):-1,r=e<this.end?this.charSequence.charCodeAt(e):-1;return nW.emptyOpContext(t,r)}prefixLength(e){return e.prefix.length}},n8=class{static fromUTF8(e,t=0,r=e.length){return new n3(e,t,r)}static fromUTF16(e,t=0,r=e.length){return new n6(e,t,r)}}
11,n4=class extends Error{constructor(e){super(e),this.name="RE2JSException"}},n5=class extends n4{constructor(e,t=null){let r=`error parsing regexp: ${e}`;t&&(r+=`: \`${t}\``),super(r),this.name="RE2JSSyntaxException",this.message=r,this.error=e,this.input=t}getDescription(){return this.error}getPattern(){return this.input}},n9=class extends n4{constructor(e){super(e),this.name="RE2JSCompileException"}},n7=class extends n4{constructor(e){super(e),this.name="RE2JSGroupException"}},ie=class extends n4{constructor(e){super(e),this.name="RE2JSFlagsException"}},it=class extends n4{constructor(e){super(e),this.name="RE2JSInternalException"}},ir=class e{static MAX_REPLACER_ARGS=65535;static quoteReplacement(e,t=!1){return t?0>e.indexOf("\\")&&0>e.indexOf("$")?e:e.split("").map(e=>{let t=e.codePointAt(0);return t===nG.CODES.get("\\")||t===nG.CODES.get("$")?`\\${e}`:e}).join(""):0>e.indexOf("$")?e:e.split("").map(e=>e.codePointAt(0)===nG.CODES.get("$")?"$$":e).join("")}constructor(e,t){if(null===e)throw Error("pattern is null");this.patternInput=e;const r=this.patternInput.re2();this.patternGroupCount=r.numberOfCapturingGroups(),this.groups=[],this.namedGroups=r.namedGroups,this.numberOfInstructions=r.numberOfInstructions(),t instanceof nZ?this.resetMatcherInput(t):nW.isByteArray(t)?this.resetMatcherInput(n1.utf8(t)):this.resetMatcherInput(n1.utf16(t))}pattern(){return this.patternInput}reset(){return this.matcherInputLength=this.matcherInput.length(),this.appendPos=0,this.hasMatch=!1,this.hasGroups=!1,this.anchorFlag=0,this}resetMatcherInput(e){if(null===e)throw Error("input is null");return e instanceof nZ||(e=nW.isByteArray(e)?n1.utf8(e):n1.utf16(e)),this.matcherInput=e,this.reset(),this}start(e=0){if("string"==typeof e){let t=this.namedGroups[e];if(!Number.isFinite(t))throw new n7(`group '${e}' not found`);e=t}return this.loadGroup(e),this.groups[2*e]}end(e=0){if("string"==typeof e){let t=this.namedGroups[e];if(!Number.isFinite(t))throw new n7(`group '${e}' not found`);e=t}return this.loadGroup(e),this.groups[2*e+1]}programSize(){return this.numberOfInstructions}group(e=0){if("string"==typeof e){let t=this.namedGroups[e];if(!Number.isFinite(t))throw new n7(`group '${e}' not found`);e=t}let t=this.start(e),r=this.end(e);return t<0&&r<0?null:this.substring(t,r)}getNamedGroups(){if(!this.hasMatch)throw new n7("perhaps no match attempted");let e=Object.create(null);for(let t of Object.keys(this.namedGroups))e[t]=this.group(t);return e}groupCount(){return this.patternGroupCount}loadGroup(e){if(e<0||e>this.patternGroupCount)throw new n7(`Group index out of bounds: ${e}`);if(!this.hasMatch)throw new n7("perhaps no match attempted");if(0===e||this.hasGroups)return;let t=this.matcherInputLength,r=this.patternInput.re2().matchMachineInput(this.matcherInput,this.groups[0],t,this.anchorFlag,1+this.patternGroupCount);if(!r[0])throw new n7("inconsistency in matching group data");this.groups=r[1],this.hasGroups=!0}matches(){return this.genMatch(0,nF.ANCHOR_BOTH)}lookingAt(){return this.genMatch(0,nF.ANCHOR_START)}find(e=null){if(null!==e){if(e<0||e>this.matcherInputLength)throw new n7(`start index out of bounds: ${e}`);return this.reset(),this.genMatch(e,0)}if(e=0,this.hasMatch&&(e=this.groups[1],this.groups[0]===this.groups[1])){let t=(this.matcherInput.isUTF16Encoding()?n8.fromUTF16(this.matcherInput.asCharSequence(),0,this.matcherInputLength):n8.fromUTF8(this.matcherInput.asBytes(),0,this.matcherInputLength)).step(e);t<0?e++:e+=7&t}return this.genMatch(e,nF.UNANCHORED)}genMatch(e,t){let r=this.patternInput.re2().matchMachineInput(this.matcherInput,e,this.matcherInputLength,t,1);return r[0]?(this.groups=r[1],this.hasMatch=!0,this.hasGroups=0===this.patternGroupCount,this.anchorFlag=t,!0):(this.hasMatch=!1,!1)}substring(e,t){return this.matcherInput.isUTF8Encoding()?nW.utf8ByteArrayToString(this.matcherInput.asBytes().slice(e,t)):this.matcherInput.asCharSequence().substring(e,t).toString()}inputLength(){return this.matcherInputLength}appendReplacement(e,t=!1){let r="",n=this.start(),i=this.end();return this.appendPos<n&&(r+=this.substring(this.appendPos,n)),this.appendPos=i,r+=t?this.appendReplacementInternalJava(e):this.appendReplacementInternalJs(e)}appendReplacementInternalJava(e){let t="",r=0,n=e.length,i=0;for(;i<n;){let s=e.codePointAt(i);if(s===nG.CODES.get("\\")){if(r<i&&(t+=e.substring(r,i)),++i>=n)throw new n7("character to be escaped is missing");r=i,i++;continue}if(s===nG.CODES.get("$")){if(r<i&&(t+=e.substring(r,i)),i+1>=n)throw new n7("Illegal group reference: group index is missing");let s=e.codePointAt(i+1);if(nG.CODES.get("0")<=s&&s<=nG.CODES.get("9")){let a=s-nG.CODES.get("0"),o=i+2;for(;o<n;o++){let t=e.codePointAt(o);if(t<nG.CODES.get("0")||t>nG.CODES.get("9")||10*a+t-nG.CODES.get("0")>this.patternGroupCount)break;a=10*a+t-nG.CODES.get("0")}if(a>this.patternGroupCount)throw new n7(`n > number of groups: ${a}`);let l=this.group(a);null!==l&&(t+=l),r=i=o}else if(s===nG.CODES.get("{")){let s=i+2;for(;s<n&&e.codePointAt(s)!==nG.CODES.get("}");)s++;
11if(s>=n)throw new n7("named capture group is missing trailing '}'");let a=e.substring(i+2,s),o=this.group(a);null!==o&&(t+=o),r=i=s+1}else throw new n7("Illegal group reference");continue}i++}return r<n&&(t+=e.substring(r,n)),t}appendReplacementInternalJs(e){let t="",r=0,n=e.length;for(let i=0;i<n-1;i++)if(e.codePointAt(i)===nG.CODES.get("$")){let s=e.codePointAt(i+1);if(nG.CODES.get("$")===s){r<i&&(t+=e.substring(r,i)),t+="$",r=++i+1;continue}if(nG.CODES.get("&")===s){r<i&&(t+=e.substring(r,i));let n=this.group(0);null!==n?t+=n:t+="$&",r=++i+1;continue}if(nG.CODES.get("`")===s){r<i&&(t+=e.substring(r,i)),t+=this.substring(0,this.start(0)),r=++i+1;continue}else if(nG.CODES.get("'")===s){r<i&&(t+=e.substring(r,i)),t+=this.substring(this.end(0),this.matcherInputLength),r=++i+1;continue}else if(nG.CODES.get("1")<=s&&s<=nG.CODES.get("9")){let a=s-nG.CODES.get("0");for(r<i&&(t+=e.substring(r,i)),i+=2;i<n&&!((s=e.codePointAt(i))<nG.CODES.get("0")||s>nG.CODES.get("9")||10*a+s-nG.CODES.get("0")>this.patternGroupCount);i++)a=10*a+s-nG.CODES.get("0");if(a>this.patternGroupCount){t+=`$${a}`,r=i,i--;continue}let o=this.group(a);null!==o&&(t+=o),r=i,i--;continue}else if(s===nG.CODES.get("<")){r<i&&(t+=e.substring(r,i));let n=++i+1;for(;n<e.length&&e.codePointAt(n)!==nG.CODES.get(">")&&e.codePointAt(n)!==nG.CODES.get(" ");)n++;if(n===e.length||e.codePointAt(n)!==nG.CODES.get(">")){t+=e.substring(i-1,n+1),r=n+1,i=n;continue}let s=e.substring(i+1,n);if(Object.prototype.hasOwnProperty.call(this.namedGroups,s)){let e=this.group(s);null!==e&&(t+=e)}else t+=`$<${s}>`;r=n+1,i=n;continue}}return r<n&&(t+=e.substring(r,n)),t}appendTail(){return this.substring(this.appendPos,this.matcherInputLength)}replaceAll(e,t=!1){return this.replace(e,!0,t)}replaceFirst(e,t=!1){return this.replace(e,!1,t)}replace(t,r=!0,n=!1){let i="";this.reset();let s="function"==typeof t,a=Object.keys(this.namedGroups).length>0,o=null;if(s){if(this.groupCount()>=e.MAX_REPLACER_ARGS)throw new n7("Too many capture groups to safely invoke replacer function");o=this.matcherInput.isUTF8Encoding()?this.matcherInput.asBytes():this.matcherInput.asCharSequence()}for(;this.find()&&(i+=s?this.appendReplacementFunc(t,a,o):this.appendReplacement(t,n),r););return i+this.appendTail()}appendReplacementFunc(e,t,r){let n="",i=this.start(),s=this.end();return this.appendPos<i&&(n+=this.substring(this.appendPos,i)),this.appendPos=s,n+=String(e(...this.buildReplacerArgs(i,t,r)))}buildReplacerArgs(e,t,r){let n=[this.group(0)],i=this.groupCount();for(let e=1;e<=i;e++){let t=this.start(e);t<0?n.push(void 0):n.push(this.substring(t,this.end(e)))}if(n.push(e),n.push(r),t){let e=this.getNamedGroups();for(let t in e)null===e[t]&&(e[t]=void 0);n.push(e)}return n}},ii=class e{static ALT=1;static ALT_MATCH=2;static CAPTURE=3;static EMPTY_WIDTH=4;static FAIL=5;static MATCH=6;static NOP=7;static RUNE=8;static RUNE1=9;static RUNE_ANY=10;static RUNE_ANY_NOT_NL=11;static LB_WRITE=12;static LB_CHECK=13;static isRuneOp(t){return e.RUNE<=t&&t<=e.RUNE_ANY_NOT_NL}static escapeRunes(e){let t='"';for(let r of e)t+=nW.escapeRune(r);return t+'"'}constructor(e){this.op=e,this.out=0,this.arg=0,this.runes=[],this.next=null}matchRune(e){if(1===this.runes.length){let t=this.runes[0];return(this.arg&nF.FOLD_CASE)!=0?nK.equalsIgnoreCase(t,e):e===t}let t=this.runes.length;if(0===t)return!1;if(2===t||4===t||6===t||8===t){for(let r=0;r<t&&!(e<this.runes[r]);r+=2)if(e<=this.runes[r+1])return!0;return!1}let r=0,n=t>>1;for(;n>1;){let t=n>>1;r+=this.runes[r+t<<1]<=e?t:0,n-=t}let i=(r+=+(this.runes[r<<1]<=e))-1;return i>=0&&e<=this.runes[i<<1|1]}matchRunePos(e){if(1===this.runes.length){let t=this.runes[0];return(this.arg&nF.FOLD_CASE)!=0?nK.equalsIgnoreCase(t,e)?0:-1:e===t?0:-1}let t=this.runes.length;if(0===t)return -1;if(2===t||4===t||6===t||8===t){for(let r=0;r<t&&!(e<this.runes[r]);r+=2)if(e<=this.runes[r+1])return Math.floor(r/2);return -1}let r=0,n=t>>1;for(;n>1;){let t=n>>1;r+=this.runes[r+t<<1]<=e?t:0,n-=t}let i=(r+=+(this.runes[r<<1]<=e))-1;return i>=0&&e<=this.runes[i<<1|1]?i:-1}toString(){switch(this.op){case e.ALT:return`alt -> ${this.out}, ${this.arg}`;case e.ALT_MATCH:return`altmatch -> ${this.out}, ${this.arg}`;case e.CAPTURE:return`cap ${this.arg} -> ${this.out}`;case e.EMPTY_WIDTH:return`empty ${this.arg} -> ${this.out}`;case e.MATCH:return`match${0!==this.arg?` ${this.arg}`:""}`;case e.FAIL:return"fail";case e.NOP:return`nop -> ${this.out}`;case e.LB_WRITE:return`lbwrite ${this.arg} -> ${this.out}`;case e.LB_CHECK:return`lbcheck ${this.arg} -> ${this.out}`;case e.RUNE:if(null===this.runes)return"rune <null>";return["rune ",e.escapeRunes(this.runes),(this.arg&nF.FOLD_CASE)!=0?"/i":""," -> ",this.out].join("");case e.RUNE1:return`rune1 ${e.escapeRunes(this.runes)} -> ${this.out}`;case e.RUNE_ANY:return`any -> ${this.out}`;case e.RUNE_ANY_NOT_NL:return`anynotnl -> ${this.out}`;default:throw Error("unhandled case in Inst.toString")}}},is=class{constructor(e){this.sparse=new Int32Array(e),this.densePcs=new Int32Array(e),this.denseCaps=null,this.size=0,this.ncap=0}init(e){this.ncap=e;let t=this.densePcs.length*e;(!this.denseCaps||this.denseCaps.length<t)&&(this.denseCaps=new Int32Array(t))}contains(e){let t=this.sparse[e];return t<this.size&&this.densePcs[t]===e}isEmpty(){return 0===this.size}add(e){let t=this.size++;return this.sparse[e]=t,this.densePcs[t]=e,t}clear(){this.size=0}toString(){let e="{";for(let t=0;t<this.size;t++)0!==t&&(e+=", "),e+=this.densePcs[t];return e+"}"}},ia=class e{static fromRE2(t){let r=new e;return r.prog=t.prog,r.re2=t,r.q0=new is(r.prog.numInst()),r.q1=new is(r.prog.numInst()),r.matched=!1,r.matchcap=new Int32Array(r.prog.numCap<2?2:r.prog.numCap),r.ncap=0,r}static fromMachine(t){return e.fromRE2(t.re2)}constructor(){this.prog=null,this.re2=null,this.q0=null,this.q1=null,this.matched=!1,this.matchcap=null,this.ncap=0,this.lbTable=null}init(e){this.ncap=e,e>this.matchcap.length?this.matchcap=new Int32Array(e).fill(-1):this.matchcap.fill(-1),this.q0.init(e),this.q1.init(e),this.prog.numLb>0&&((!this.lbTable||this.lbTable.length<this.prog.numLb+1)&&(this.lbTable=new Int32Array(this.prog.numLb+1)),this.lbTable.fill(-1))}submatches(){return 0===this.ncap?nW.emptyInts():nW.toArray(this.matchcap.subarray(0,this.ncap))}match(e,t,r){let n,i=this.re2.cond;if(i===nW.EMPTY_ALL||(r===nF.ANCHOR_START||r===nF.ANCHOR_BOTH)&&0!==t)return!1;this.matched=!1,this.matchcap.fill(-1);let s=this.prog.numLb>0?0:t,a=this.q0,o=this.q1,l=e.step(s),u=l>>3,c=7&l,B=-1,h=0;
11for(l!==n2.EOF()&&(B=(l=e.step(s+c))>>3,h=7&l),n=0===s?nW.emptyOpContext(-1,u):e.context(s);;){if(a.isEmpty()){if((i&nW.EMPTY_BEGIN_TEXT)!=0&&0!==s||(r===nF.ANCHOR_START||r===nF.ANCHOR_BOTH)&&0!==s||this.matched)break;if(0===this.prog.numLb&&0!==this.re2.prefix.length&&B!==this.re2.prefixRune&&e.canCheckPrefix()){let t=e.index(this.re2,s);if(t<0)break;s+=t,u=(l=e.step(s))>>3,c=7&l,B=(l=e.step(s+c))>>3,h=7&l,n=e.context(s)}}if(0===s&&this.prog.numLb>0)for(let e=0;e<this.prog.lbStarts.length;e++)this.add(a,this.prog.lbStarts[e],s,this.matchcap,0,n);!this.matched&&(0===s||r===nF.UNANCHORED)&&s>=t&&(this.ncap>0&&(this.matchcap[0]=s),this.add(a,this.prog.start,s,this.matchcap,0,n));let d=s+c;if(n=e.context(d),this.step(a,o,s,d,u,n,r,s===e.endPos()),0===c||0===this.ncap&&this.matched)break;s+=c,u=B,c=h,-1!==u&&(B=(l=e.step(s+c))>>3,h=7&l);let p=a;a=o,o=p}return o.clear(),this.matched}matchSet(e,t,r){let n=this.re2.cond;if(n===nW.EMPTY_ALL||(r===nF.ANCHOR_START||r===nF.ANCHOR_BOTH)&&0!==t)return[];let i=this.prog.numLb>0?0:t,s=this.q0,a=this.q1,o=e.step(i),l=o>>3,u=7&o,c=-1,B=0;o!==n2.EOF()&&(c=(o=e.step(i+u))>>3,B=7&o);let h=0===i?nW.emptyOpContext(-1,l):e.context(i),d=new Set;for(;!s.isEmpty()||((n&nW.EMPTY_BEGIN_TEXT)==0||0===i)&&(r!==nF.ANCHOR_START&&r!==nF.ANCHOR_BOTH||0===i);){if(0===i&&this.prog.numLb>0)for(let e=0;e<this.prog.lbStarts.length;e++)this.add(s,this.prog.lbStarts[e],i,this.matchcap,0,h);(0===i||r===nF.UNANCHORED)&&i>=t&&this.add(s,this.prog.start,i,this.matchcap,0,h);let n=i+u;h=e.context(n);for(let t=0;t<s.size;t++){let o=s.densePcs[t],u=this.prog.inst[o],c=t*this.ncap,B=!1;switch(u.op){case ii.MATCH:if(r===nF.ANCHOR_BOTH&&i!==e.endPos())break;d.add(u.arg);break;case ii.RUNE:B=u.matchRune(l);break;case ii.RUNE1:B=l===u.runes[0];break;case ii.RUNE_ANY:B=!0;break;case ii.RUNE_ANY_NOT_NL:B=10!==l;break;default:continue}B&&this.add(a,u.out,n,s.denseCaps,c,h)}if(s.clear(),0===u)break;i+=u,l=c,u=B,-1!==l&&(c=(o=e.step(i+u))>>3,B=7&o);let p=s;s=a,a=p}return a.clear(),Array.from(d).sort((e,t)=>e-t)}step(e,t,r,n,i,s,a,o){let l=this.re2.longest;for(let u=0;u<e.size;u++){let c=e.densePcs[u],B=u*this.ncap;if(l&&this.matched&&this.ncap>0&&this.matchcap[0]<e.denseCaps[B])continue;let h=this.prog.inst[c],d=!1;switch(h.op){case ii.MATCH:if(a===nF.ANCHOR_BOTH&&!o)break;if(this.ncap>0&&(!l||!this.matched||this.matchcap[1]<r)){e.denseCaps[B+1]=r;for(let t=0;t<this.ncap;t++)this.matchcap[t]=e.denseCaps[B+t]}l||(e.size=0),this.matched=!0;break;case ii.RUNE:d=h.matchRune(i);break;case ii.RUNE1:d=i===h.runes[0];break;case ii.RUNE_ANY:d=!0;break;case ii.RUNE_ANY_NOT_NL:d=10!==i;break;default:continue}d&&this.add(t,h.out,n,e.denseCaps,B,s)}e.clear()}add(e,t,r,n,i,s){for(;;){if(0===t||e.contains(t))return;let a=e.add(t),o=this.prog.inst[t];switch(o.op){case ii.FAIL:return;case ii.ALT:case ii.ALT_MATCH:this.add(e,o.out,r,n,i,s),t=o.arg;continue;case ii.EMPTY_WIDTH:if((o.arg&~s)==0){t=o.out;continue}return;case ii.NOP:t=o.out;continue;case ii.CAPTURE:if(o.arg<this.ncap){let t=n[i+o.arg];n[i+o.arg]=r,this.add(e,o.out,r,n,i,s),n[i+o.arg]=t;return}t=o.out;continue;case ii.LB_WRITE:this.lbTable[Math.abs(o.arg)]=r,t=o.out;continue;case ii.LB_CHECK:if(o.arg>0){if(this.lbTable[o.arg]===r){t=o.out;continue}}else if(this.lbTable[-o.arg]!==r){t=o.out;continue}return;case ii.MATCH:case ii.RUNE:case ii.RUNE1:case ii.RUNE_ANY:case ii.RUNE_ANY_NOT_NL:if(this.ncap>0){let t=a*this.ncap;for(let r=0;r<this.ncap;r++)e.denseCaps[t+r]=n[i+r]}return;default:throw new it("unhandled")}}}};let io=e=>{let t=-0x7ee3623b;for(let r=0;r<e.length;r++)t^=e[r],t=Math.imul(t,0x1000193);return t},il=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0};var iu=class{constructor(e,t,r=[]){this.nfaStates=e,this.isMatch=t,this.matchIDs=r,this.nextLatin1=Array(nK.MAX_LATIN1+1).fill(null),this.nextLatin1Anchored=Array(nK.MAX_LATIN1+1).fill(null),this.transKeys=[],this.transVals=[],this.lastSeen=0}},ic=class e{static MAX_CACHE_CLEARS=5;static STATE_MEMORY_ESTIMATE=838;constructor(t,r=8388608){this.prog=t,this.stateCache=new Map,this.stateCount=0,this.startState=null,this.stateLimit=Math.max(1,Math.floor(r/e.STATE_MEMORY_ESTIMATE)),this.cacheClears=0,this.failed=!1,this.clock=0}computeClosure(e){let t=new Set,r=[...e],n=!1,i=[];for(;r.length>0;){let e=r.pop();if(t.has(e))continue;t.add(e);let s=this.prog.getInst(e);switch(s.op){case ii.MATCH:n=!0,i.includes(s.arg)||i.push(s.arg);break;case ii.ALT:case ii.ALT_MATCH:r.push(s.out),r.push(s.arg);break;case ii.NOP:case ii.CAPTURE:r.push(s.out);break;case ii.EMPTY_WIDTH:case ii.LB_WRITE:case ii.LB_CHECK:return null}}let s=Int32Array.from(t).sort();return i.sort((e,t)=>
11e-t),{pcs:s,isMatch:n,matchIDs:i}}getState(t){let r=this.computeClosure(t);if(!r)return null;let n=r.pcs,i=io(n),s=this.stateCache.get(i);if(s)for(let e=0;e<s.length;e++){let t=s[e];if(il(t.nfaStates,n))return t.lastSeen=++this.clock,t}else s=[],this.stateCache.set(i,s);if(this.failed)return null;if(this.stateCount>=this.stateLimit){if(this.cacheClears++,this.cacheClears>=e.MAX_CACHE_CLEARS)return this.failed=!0,this.stateCache.clear(),this.stateCount=0,this.startState=null,null;this.evictCache(),(s=this.stateCache.get(i))||(s=[],this.stateCache.set(i,s))}let a=new iu(n,r.isMatch,r.matchIDs);return a.lastSeen=++this.clock,s.push(a),this.stateCount++,a}evictCache(){let e=[];for(let t of this.stateCache.values())for(let r=0;r<t.length;r++)e.push(t[r]);e.sort((e,t)=>e.lastSeen-t.lastSeen);let t=Math.max(1,Math.floor(this.stateLimit/2)),r=e.length-t,n=e.slice(r),i=new Set(n);this.stateCache.clear(),this.stateCount=0;for(let e=0;e<n.length;e++){let t=n[e];t.nextLatin1.fill(null),t.nextLatin1Anchored.fill(null),t.transKeys.length=0,t.transVals.length=0;let r=io(t.nfaStates),i=this.stateCache.get(r);i||(i=[],this.stateCache.set(r,i)),i.push(t),this.stateCount++}this.startState&&!i.has(this.startState)&&(this.startState=null)}step(e,t,r){if(t<=nK.MAX_LATIN1)if(r===nF.UNANCHORED){let r=e.nextLatin1[t];if(null!==r)return r}else{let r=e.nextLatin1Anchored[t];if(null!==r)return r}else{let n=t+(r===nF.UNANCHORED?0:nK.MAX_RUNE+1),i=e.transKeys,s=i.length;for(let t=0;t<s;t++)if(i[t]===n)return e.transVals[t]}let n=[];for(let r=0;r<e.nfaStates.length;r++){let i=e.nfaStates[r],s=this.prog.getInst(i);ii.isRuneOp(s.op)&&s.matchRune(t)&&n.push(s.out)}r===nF.UNANCHORED&&n.push(this.prog.start);let i=this.getState(n);if(t<=nK.MAX_LATIN1)r===nF.UNANCHORED?e.nextLatin1[t]=i:e.nextLatin1Anchored[t]=i;else{let n=t+(r===nF.UNANCHORED?0:nK.MAX_RUNE+1);e.transKeys.push(n),e.transVals.push(i)}return i}match(e,t,r){if((r===nF.ANCHOR_START||r===nF.ANCHOR_BOTH)&&0!==t)return!1;if(!this.startState&&(this.startState=this.getState([this.prog.start]),!this.startState))return null;let n=e.endPos(),i=this.startState;if(i.isMatch){if(r!==nF.ANCHOR_BOTH)return!0;else if(t===n)return!0}let s=t;for(;s<n;){let t=e.step(s),a=t>>3,o=7&t;if(0===o)break;if(null===(i=r===nF.UNANCHORED&&a<=nK.MAX_LATIN1&&i.nextLatin1[a]||this.step(i,a,r)))return null;if(i.lastSeen=++this.clock,i.isMatch){if(r!==nF.ANCHOR_BOTH)return!0;else if(s+o===n)return!0}if(0===i.nfaStates.length&&r!==nF.UNANCHORED)break;s+=o}return!1}matchSet(e,t,r){if((r===nF.ANCHOR_START||r===nF.ANCHOR_BOTH)&&0!==t)return[];if(!this.startState&&(this.startState=this.getState([this.prog.start]),!this.startState))return null;let n=e.endPos(),i=this.startState,s=new Set,a=(e,t)=>{e.isMatch&&(r===nF.ANCHOR_BOTH?t===n&&e.matchIDs.forEach(e=>s.add(e)):e.matchIDs.forEach(e=>s.add(e)))};a(i,t);let o=t;for(;o<n;){let t=e.step(o),n=t>>3,s=7&t;if(0===s)break;if(null===(i=r===nF.UNANCHORED&&n<=nK.MAX_LATIN1&&i.nextLatin1[n]||this.step(i,n,r)))return null;if(i.lastSeen=++this.clock,a(i,o+=s),0===i.nfaStates.length&&r!==nF.UNANCHORED)break}return Array.from(s).sort((e,t)=>e-t)}},iB=class{constructor(){this.end=0,this.cap=new Int32Array(0),this.matchcap=new Int32Array(0),this.ncap=0,this.jobPc=new Int32Array(256),this.jobArg=new Uint8Array(256),this.jobPos=new Int32Array(256),this.jobLen=0,this.visited=new Uint32Array(0)}reset(e,t,r){this.end=t,this.jobLen=0,this.ncap=r;let n=e.numInst()*(t+1)+32-1>>>5;this.visited.length<n?this.visited=new Uint32Array(n):this.visited.fill(0,0,n),this.cap.length<r?this.cap=new Int32Array(r).fill(-1):this.cap.fill(-1,0,r),this.matchcap.length<r?this.matchcap=new Int32Array(r).fill(-1):this.matchcap.fill(-1,0,r)}shouldVisit(e,t){let r=e*(this.end+1)+t,n=r>>>5,i=1<<(31&r);return(this.visited[n]&i)==0&&(this.visited[n]|=i,!0)}push(e,t,r,n){if(e.prog.getInst(t).op!==ii.FAIL&&(n||this.shouldVisit(t,r))){if(this.jobLen>=this.jobPc.length){let e=2*this.jobPc.length,t=new Int32Array(e);t.set(this.jobPc),this.jobPc=t;let r=new Uint8Array(e);r.set(this.jobArg),this.jobArg=r;let n=new Int32Array(e);n.set(this.jobPos),this.jobPos=n}this.jobPc[this.jobLen]=t,this.jobArg[this.jobLen]=+!!n,this.jobPos[this.jobLen]=r,this.jobLen++}}tryBacktrack(e,t,r,n,i){let s=e.longest;for(this.push(e,r,n,!1);this.jobLen>0;){this.jobLen--;let r=this.jobPc[this.jobLen],n=1===this.jobArg[this.jobLen],a=this.jobPos[this.jobLen],o=!0;for(;o||this.shouldVisit(r,a);){o=!1;let l=e.prog.getInst(r);switch(l.op){case ii.FAIL:throw new it("unexpected InstFail");case ii.ALT:if(n){n=!1,r=l.arg;continue}this.push(e,r,a,!0),r=l.out;continue;case ii.ALT_MATCH:{let t=e.prog.getInst(l.out);if(ii.isRuneOp(t.op)){this.push(e,l.arg,a,!1),r=l.arg,a=this.end;continue}this.push(e,l.out,this.end,!1),r=l.out;continue}case ii.RUNE:{let e=t.step(a);if(e===n2.EOF()||!l.matchRune(e>>3))break;a+=7&e,r=l.out;continue}case ii.RUNE1:{let e=t.step(a);if(e===n2.EOF()||e>>3!==l.runes[0])break;a+=7&e,r=l.out;continue}case ii.RUNE_ANY_NOT_NL:{let e=t.step(a);if(e===n2.EOF()||e>>3==10)break;a+=7&e,r=l.out;continue}case ii.RUNE_ANY:{let e=t.step(a);if(e===n2.EOF())break;a+=7&e,r=l.out;continue}case ii.CAPTURE:if(n){this.cap[l.arg]=a;break}l.arg<this.ncap&&(this.push(e,r,this.cap[l.arg],!0),this.cap[l.arg]=a),r=l.out;continue;case ii.EMPTY_WIDTH:{let e=t.context(a);if((l.arg&~e)!=0)break;r=l.out;continue}case ii.NOP:r=l.out;continue;case ii.MATCH:{if(i===nF.ANCHOR_BOTH&&a!==this.end)break;if(0===this.ncap)return!0;this.ncap>1&&(this.cap[1]=a);let e=this.matchcap[1];if((-1===e||s&&a>0&&a>e)&&this.matchcap.set(this.cap),!s||a===this.end)return!0;break}case ii.LB_WRITE:case ii.LB_CHECK:throw new it("Backtracker cannot evaluate Lookbehind instructions");default:throw new it("bad inst")}break}}return s&&this.matchcap.length>1&&this.matchcap[1]>=0}};let ih=[];var id=class e{static shouldBacktrack(e){return 500>=e.numInst()}static maxBitStateLen(t){return e.shouldBacktrack(t)?Math.floor(262144/t.numInst()):0}static execute(e,t,r,n,i){let s=e.cond;if(s===nW.EMPTY_ALL||(n===nF.ANCHOR_START||n===nF.ANCHOR_BOTH)&&0!==r||(s&nW.EMPTY_BEGIN_TEXT)!=0&&0!==r)return null;let a=ih.length>0?ih.pop():new iB,o=t.endPos();a.reset(e.prog,o,i);let l=!1;if((s&nW.EMPTY_BEGIN_TEXT)!=0||n===nF.ANCHOR_START||n===nF.ANCHOR_BOTH)a.ncap>
110&&(a.cap[0]=r),a.tryBacktrack(e,t,e.prog.start,r,n)&&(l=!0);else{let i=-1;for(;r<=o&&0!==i;r+=i){if(e.prefix.length>0){let n=t.index(e,r);if(n<0)break;r+=n}if(a.ncap>0&&(a.cap[0]=r),a.tryBacktrack(e,t,e.prog.start,r,n)){l=!0;break}let s=t.step(r);i=s===n2.EOF()?0:7&s}}if(!l)return ih.push(a),null;let u=0===i?[]:nW.toArray(a.matchcap.subarray(0,i));return ih.push(a),u}},ip=class{constructor(e){this.sparse=new Uint32Array(e),this.dense=new Uint32Array(e),this.size=0,this.nextIndex=0}empty(){return this.nextIndex>=this.size}next(){return this.dense[this.nextIndex++]}clear(){this.size=0,this.nextIndex=0}contains(e){return e<this.sparse.length&&this.sparse[e]<this.size&&this.dense[this.sparse[e]]===e}insert(e){this.contains(e)||this.insertNew(e)}insertNew(e){!(e>=this.sparse.length)&&(this.sparse[e]=this.size,this.dense[this.size]=e,this.size++)}},ig=class{constructor(e){this.start=e.start,this.numCap=e.numCap,this.inst=Array(e.inst.length);for(let t=0;t<e.inst.length;t++){const r=e.inst[t],n=new ii(r.op);n.out=r.out,n.arg=r.arg,n.runes=r.runes?r.runes.slice():[],n.next=null,this.inst[t]=n}}},iC=class e{static compile(e){if(0===e.start||e.numLb>0)return null;let t=e.inst[e.start];if(t.op!==ii.EMPTY_WIDTH||(t.arg&nW.EMPTY_BEGIN_TEXT)==0)return null;let r=!1;for(let t=0;t<e.inst.length;t++)if(e.inst[t].op===ii.ALT||e.inst[t].op===ii.ALT_MATCH){r=!0;break}for(let t=0;t<e.inst.length;t++){let n=e.inst[t],i=e.inst[n.out].op;switch(n.op){case ii.ALT:case ii.ALT_MATCH:if(i===ii.MATCH||e.inst[n.arg].op===ii.MATCH)return null;break;case ii.EMPTY_WIDTH:if(i===ii.MATCH){if((n.arg&nW.EMPTY_END_TEXT)===nW.EMPTY_END_TEXT)continue;return null}break;default:if(i===ii.MATCH&&r)return null}}let n=(e=>{let t=new ig(e);for(let e=0;e<t.inst.length;e++){let r=t.inst[e];if(r.op!==ii.ALT&&r.op!==ii.ALT_MATCH)continue;let n="out",i="arg",s=t.inst[r[i]];if(s.op!==ii.ALT&&s.op!==ii.ALT_MATCH&&(n="arg",i="out",(s=t.inst[r[i]]).op!==ii.ALT&&s.op!==ii.ALT_MATCH))continue;let a=t.inst[r[n]];if(a.op===ii.ALT||a.op===ii.ALT_MATCH)continue;let o="out",l="arg",u=!1;s.out===e?u=!0:s.arg===e&&(u=!0,o="arg",l="out"),u&&(s[o]=r[n]),r[n]===s[o]&&(r[i]=s[l])}return t})(e);return null!==(n=(e=>{if(e.inst.length>=1e3)return null;let t=new ip(e.inst.length),r=new ip(e.inst.length),n=Array(e.inst.length),i=Array(e.inst.length).fill(!1),s=a=>{let o=!0,l=e.inst[a];if(r.contains(a))return!0;switch(r.insert(a),l.op){case ii.ALT:case ii.ALT_MATCH:{o=s(l.out)&&s(l.arg);let e=i[l.out],t=i[l.arg];if(e&&t)return!1;if(t){let r=l.out;l.out=l.arg,l.arg=r;let n=e;e=t,t=n}e&&(i[a]=!0,l.op=ii.ALT_MATCH);let r=((e,t,r,n)=>{let i=e.length,s=t.length,a=0,o=0,l=[],u=[],c=-1,B=i=>{let s=i?e:t,B=i?a:o;return(!(c>0)||!(s[B]<=l[c]))&&(l.push(s[B],s[B+1]),i?a+=2:o+=2,c+=2,u.push(i?r:n),!0)};for(;a<i||o<s;)if(!B(!!(o>=s)||!(a>=i)&&!(t[o]<e[a])&&!0))return null;return{merged:l,next:u}})(n[l.out]||[],n[l.arg]||[],l.out,l.arg);if(!r)return!1;n[a]=r.merged,l.next=new Uint32Array(r.next);break}case ii.CAPTURE:case ii.EMPTY_WIDTH:case ii.NOP:o=s(l.out),i[a]=i[l.out],n[a]=n[l.out]?n[l.out].slice():[],l.next=new Uint32Array(Math.floor(n[a].length/2)+1).fill(l.out);break;case ii.MATCH:case ii.FAIL:i[a]=l.op===ii.MATCH;break;case ii.RUNE:{if(i[a]=!1,l.next&&l.next.length>0)break;if(t.insert(l.out),!l.runes||0===l.runes.length){n[a]=[],l.next=new Uint32Array([l.out]);break}let e=[];if(1===l.runes.length&&(l.arg&nF.FOLD_CASE)!=0){let t=l.runes[0];e.push(t,t);for(let r=nK.simpleFold(t);r!==t;r=nK.simpleFold(r))e.push(r,r);e.sort((e,t)=>e-t)}else for(let t=0;t<l.runes.length;t++)e.push(l.runes[t]);n[a]=e,l.next=new Uint32Array(Math.floor(e.length/2)+1).fill(l.out),l.op=ii.RUNE;break}case ii.RUNE1:{if(i[a]=!1,l.next&&l.next.length>0)break;t.insert(l.out);let e=[];
11if((l.arg&nF.FOLD_CASE)!=0){let t=l.runes[0];e.push(t,t);for(let r=nK.simpleFold(t);r!==t;r=nK.simpleFold(r))e.push(r,r);e.sort((e,t)=>e-t)}else e.push(l.runes[0],l.runes[0]);n[a]=e,l.next=new Uint32Array(Math.floor(e.length/2)+1).fill(l.out),l.op=ii.RUNE;break}case ii.RUNE_ANY:if(i[a]=!1,l.next&&l.next.length>0)break;t.insert(l.out),n[a]=[0,nK.MAX_RUNE],l.next=new Uint32Array([l.out]);break;case ii.RUNE_ANY_NOT_NL:if(i[a]=!1,l.next&&l.next.length>0)break;t.insert(l.out),n[a]=[0,9,11,nK.MAX_RUNE],l.next=new Uint32Array(Math.floor(n[a].length/2)+1).fill(l.out)}return o};for(t.clear(),t.insert(e.start);!t.empty();)if(r.clear(),!s(t.next()))return null;for(let t=0;t<e.inst.length;t++)n[t]&&(e.inst[t].runes=n[t]);return e})(n))&&((e,t)=>{for(let r=0;r<t.inst.length;r++){let n=t.inst[r];switch(n.op){case ii.ALT:case ii.ALT_MATCH:case ii.RUNE:break;case ii.CAPTURE:case ii.EMPTY_WIDTH:case ii.NOP:case ii.MATCH:case ii.FAIL:e.inst[r].next=null;break;case ii.RUNE1:case ii.RUNE_ANY:case ii.RUNE_ANY_NOT_NL:e.inst[r].next=null,e.inst[r].op=n.op,e.inst[r].runes=n.runes?n.runes.slice():[]}}})(n,e),n}static next(e,t){let r=e.matchRunePos(t);return r>=0?e.next[r]:e.op===ii.ALT_MATCH?e.out:0}static execute(t,r,n,i,s){let a,o=t.onepass;if(!o)return null;let l=new Int32Array(s).fill(-1),u=!1,c=r.step(n),B=c>>3,h=7&c,d=n2.EOF(),p=-1,f=0;c!==n2.EOF()&&(d=r.step(n+h))!==n2.EOF()&&(p=d>>3,f=7&d);let g=0===n?nW.emptyOpContext(-1,B):r.context(n),C=o.start;for(;;){switch(C=(a=o.inst[C]).out,a.op){case ii.MATCH:if(i===nF.ANCHOR_BOTH&&n!==r.endPos())return null;return u=!0,l.length>0&&(l[0]=0,l[1]=n),0===s?[]:nW.toArray(l);case ii.RUNE:if(!a.matchRune(B))return null;break;case ii.RUNE1:if(B!==a.runes[0])return null;break;case ii.RUNE_ANY:break;case ii.RUNE_ANY_NOT_NL:if(10===B)return null;break;case ii.ALT:case ii.ALT_MATCH:C=e.next(a,B);continue;case ii.FAIL:return null;case ii.NOP:continue;case ii.EMPTY_WIDTH:if((a.arg&~g)!=0)return null;continue;case ii.CAPTURE:a.arg<l.length&&(l[a.arg]=n);continue;default:throw new it("bad inst")}if(0===h)break;g=nW.emptyOpContext(B,p),n+=h,B=p,h=f,-1!==B&&((d=r.step(n+h))!==n2.EOF()?(p=d>>3,f=7&d):(p=-1,f=0))}return u?0===s?[]:nW.toArray(l):null}},im=class e{static Op=nQ(["NO_MATCH","EMPTY_MATCH","LITERAL","CHAR_CLASS","ANY_CHAR_NOT_NL","ANY_CHAR","BEGIN_LINE","END_LINE","BEGIN_TEXT","END_TEXT","WORD_BOUNDARY","NO_WORD_BOUNDARY","CAPTURE","STAR","PLUS","QUEST","REPEAT","CONCAT","ALTERNATE","PLB","NLB","LEFT_PAREN","VERTICAL_BAR"]);static isPseudoOp(t){return t>=e.Op.LEFT_PAREN}static emptySubs(){return[]}static quoteIfHyphen(e){return e===nG.CODES.get("-")?"\\":""}static fromRegexp(t){let r=new e(t.op);return r.flags=t.flags,r.subs=t.subs,r.runes=t.runes,r.cap=t.cap,r.min=t.min,r.max=t.max,r.name=t.name,r.namedGroups=t.namedGroups,r.lb=t.lb,r}constructor(t){this.op=t,this.flags=0,this.subs=e.emptySubs(),this.runes=[],this.min=0,this.max=0,this.cap=0,this.name=null,this.namedGroups=Object.create(null),this.lb=0}reinit(){this.flags=0,this.subs=e.emptySubs(),this.runes=[],this.cap=0,this.min=0,this.max=0,this.name=null,this.namedGroups=Object.create(null),this.lb=0}toString(){return this.appendTo()}appendTo(){let t="";switch(this.op){case e.Op.NO_MATCH:t+="[^\\x00-\\x{10FFFF}]";break;case e.Op.EMPTY_MATCH:t+="(?:)";break;case e.Op.STAR:case e.Op.PLUS:case e.Op.QUEST:case e.Op.REPEAT:{let r=this.subs[0];switch(r.op>e.Op.CAPTURE||r.op===e.Op.LITERAL&&r.runes.length>1?t+=`(?:${r.appendTo()})`:t+=r.appendTo(),this.op){case e.Op.STAR:t+="*";break;case e.Op.PLUS:t+="+";break;case e.Op.QUEST:t+="?";break;case e.Op.REPEAT:t+=`{${this.min}`,this.min!==this.max&&(t+=",",this.max>=0&&(t+=this.max)),t+="}"}(this.flags&nF.NON_GREEDY)!=0&&(t+="?");break}case e.Op.CONCAT:for(let r of this.subs)r.op===e.Op.ALTERNATE?t+=`(?:${r.appendTo()})`:t+=r.appendTo();break;case e.Op.ALTERNATE:{let e="";for(let r of this.subs)t+=e,e="|",t+=r.appendTo();break}case e.Op.LITERAL:for(let e of((this.flags&nF.FOLD_CASE)!=0&&(t+="(?i:"),this.runes))t+=nW.escapeRune(e);(this.flags&nF.FOLD_CASE)!=0&&(t+=")");break;case e.Op.ANY_CHAR_NOT_NL:t+="(?-s:.)";break;case e.Op.ANY_CHAR:t+="(?s:.)";break;
vendor: 14,423 bytes, line 11
11case e.Op.PLB:t+=`(?<=${this.subs[0].appendTo()})`;break;case e.Op.NLB:t+=`(?<!${this.subs[0].appendTo()})`;break;case e.Op.CAPTURE:null===this.name||0===this.name.length?t+="(":t+=`(?P<${this.name}>`,this.subs[0].op!==e.Op.EMPTY_MATCH&&(t+=this.subs[0].appendTo()),t+=")";break;case e.Op.BEGIN_TEXT:t+="\\A";break;case e.Op.END_TEXT:(this.flags&nF.WAS_DOLLAR)!=0?t+="(?-m:$)":t+="\\z";break;case e.Op.BEGIN_LINE:t+="^";break;case e.Op.END_LINE:t+="$";break;case e.Op.WORD_BOUNDARY:t+="\\b";break;case e.Op.NO_WORD_BOUNDARY:t+="\\B";break;case e.Op.CHAR_CLASS:if(this.runes.length%2!=0){t+="[invalid char class]";break}if(t+="[",0===this.runes.length)t+="^\\x00-\\x{10FFFF}";else if(0===this.runes[0]&&this.runes[this.runes.length-1]===nK.MAX_RUNE){t+="^";for(let r=1;r<this.runes.length-1;r+=2){let n=this.runes[r]+1,i=this.runes[r+1]-1;t+=e.quoteIfHyphen(n),t+=nW.escapeRune(n),n!==i&&(t+="-",t+=e.quoteIfHyphen(i),t+=nW.escapeRune(i))}}else for(let r=0;r<this.runes.length;r+=2){let n=this.runes[r],i=this.runes[r+1];t+=e.quoteIfHyphen(n),t+=nW.escapeRune(n),n!==i&&(t+="-",t+=e.quoteIfHyphen(i),t+=nW.escapeRune(i))}t+="]";break;default:t+=this.op}return t}maxCap(){let t=0;if(this.op===e.Op.CAPTURE&&(t=this.cap),null!==this.subs)for(let e of this.subs){let r=e.maxCap();t<r&&(t=r)}return t}equals(t){if(!(null!==t&&t instanceof e)||this.op!==t.op)return!1;switch(this.op){case e.Op.END_TEXT:if((this.flags&nF.WAS_DOLLAR)!=(t.flags&nF.WAS_DOLLAR))return!1;break;case e.Op.LITERAL:case e.Op.CHAR_CLASS:if(null===this.runes&&null===t.runes)break;if(null===this.runes||null===t.runes||this.runes.length!==t.runes.length)return!1;for(let e=0;e<this.runes.length;e++)if(this.runes[e]!==t.runes[e])return!1;break;case e.Op.ALTERNATE:case e.Op.CONCAT:if(this.subs.length!==t.subs.length)return!1;for(let e=0;e<this.subs.length;++e)if(!this.subs[e].equals(t.subs[e]))return!1;break;case e.Op.STAR:case e.Op.PLUS:case e.Op.QUEST:if((this.flags&nF.NON_GREEDY)!=(t.flags&nF.NON_GREEDY)||!this.subs[0].equals(t.subs[0]))return!1;break;case e.Op.REPEAT:if((this.flags&nF.NON_GREEDY)!=(t.flags&nF.NON_GREEDY)||this.min!==t.min||this.max!==t.max||!this.subs[0].equals(t.subs[0]))return!1;break;case e.Op.CAPTURE:if(this.cap!==t.cap||(null===this.name?null!==t.name:this.name!==t.name)||!this.subs[0].equals(t.subs[0]))return!1;break;case e.Op.PLB:case e.Op.NLB:if(this.lb!==t.lb||!this.subs[0].equals(t.subs[0]))return!1}return!0}},i_=class{constructor(e){for(const t of(this.next=[Object.create(null)],this.fail=[0],this.match=[!1],e)){let e=0;for(let r=0;r<t.length;r++){const n=t[r];n in this.next[e]||(this.next.push(Object.create(null)),this.fail.push(0),this.match.push(!1),this.next[e][n]=this.next.length-1),e=this.next[e][n]}this.match[e]=!0}const t=[];for(const e in this.next[0])if(Object.prototype.hasOwnProperty.call(this.next[0],e)){const r=this.next[0][e];this.fail[r]=0,t.push(r)}for(;t.length>0;){const e=t.shift();for(const r in this.next[e])if(Object.prototype.hasOwnProperty.call(this.next[e],r)){const n=this.next[e][r];let i=this.fail[e];for(;0!==i&&!(r in this.next[i]);)i=this.fail[i];r in this.next[i]?this.fail[n]=this.next[i][r]:this.fail[n]=0,this.match[n]=this.match[n]||this.match[this.fail[n]],t.push(n)}}}searchUTF16(e,t,r){let n=0;for(let i=t;i<r;i++){let t=e.charCodeAt(i);for(;0!==n&&!(t in this.next[n]);)n=this.fail[n];if(t in this.next[n]&&(n=this.next[n][t]),this.match[n])return!0}return!1}searchUTF8(e,t,r){let n=0;for(let i=t;i<r;i++){let t=e[i];for(;0!==n&&!(t in this.next[n]);)n=this.fail[n];if(t in this.next[n]&&(n=this.next[n][t]),this.match[n])return!0}return!1}},iy=class e{static Type={NONE:0,EXACT:1,AND:2,OR:3};constructor(e){this.type=e,this.subs=[],this.str="",this.bytes=null,this.ac16=null,this.ac8=null}eval(t,r){switch(this.type){case e.Type.NONE:return!0;case e.Type.EXACT:return t.hasString(this,r);case e.Type.AND:for(let e=0;e<this.subs.length;e++)if(!this.subs[e].eval(t,r))return!1;return!0;case e.Type.OR:if(this.ac16&&this.ac8)return t.hasAnyString(this,r);for(let e=0;e<this.subs.length;e++)if(this.subs[e].eval(t,r))return!0;return!1;default:return!0}}},iE=class e{static build(t){let r=e.fromRegexp(t);return e.simplify(r)}static fromRegexp(t){if(!t)return new iy(iy.Type.NONE);switch(t.op){case im.Op.PLB:case im.Op.NLB:case im.Op.NO_MATCH:case im.Op.EMPTY_MATCH:case im.Op.BEGIN_LINE:case im.Op.END_LINE:case im.Op.BEGIN_TEXT:case im.Op.END_TEXT:case im.Op.WORD_BOUNDARY:case im.Op.NO_WORD_BOUNDARY:case im.Op.CHAR_CLASS:case im.Op.ANY_CHAR_NOT_NL:case im.Op.ANY_CHAR:return new iy(iy.Type.NONE);case im.Op.LITERAL:{if(0===t.runes.length||(t.flags&nF.FOLD_CASE)!=0)return new iy(iy.Type.NONE);let e=new iy(iy.Type.EXACT),r="";for(let e=0;e<t.runes.length;e++)r+=String.fromCodePoint(t.runes[e]);return e.str=r,e.bytes=nW.stringToUtf8ByteArray(e.str),e}case im.Op.CAPTURE:case im.Op.PLUS:return e.fromRegexp(t.subs[0]);case im.Op.REPEAT:if(t.min>=1)return e.fromRegexp(t.subs[0]);return new iy(iy.Type.NONE);case im.Op.CONCAT:{let r=new iy(iy.Type.AND);for(let n of t.subs)r.subs.push(e.fromRegexp(n));return r}case im.Op.ALTERNATE:{let r=new iy(iy.Type.OR);for(let n of t.subs)r.subs.push(e.fromRegexp(n));return r}default:return new iy(iy.Type.NONE)}}static simplify(t){if(t.type===iy.Type.EXACT||t.type===iy.Type.NONE)return t;if(t.type===iy.Type.AND){let r=[];for(let n of t.subs){let t=e.simplify(n);if(t.type!==iy.Type.NONE)if(t.type===iy.Type.AND)for(let e=0;e<t.subs.length;e++)r.push(t.subs[e]);else r.push(t)}return 0===r.length?new iy(iy.Type.NONE):1===r.length?r[0]:(t.subs=r,t)}if(t.type===iy.Type.OR){let r=[];for(let n of t.subs){let t=e.simplify(n);if(t.type===iy.Type.NONE)return new iy(iy.Type.NONE);if(t.type===iy.Type.OR)for(let e=0;e<t.subs.length;e++)r.push(t.subs[e]);else r.push(t)}if(0===r.length)return new iy(iy.Type.NONE);if(1===r.length)return r[0];let n=new Set,i=[];for(let e of r)e.type===iy.Type.EXACT?n.has(e.str)||(n.add(e.str),i.push(e)):i.push(e);t.subs=i;let s=!0;for(let e of i)if(e.type!==iy.Type.EXACT){s=!1;break}s&&i.length>1&&(t.ac16=new i_(i.map(e=>{let t=[];for(let r=0;r<e.str.length;r++)t.push(e.str.charCodeAt(r));return t})),t.ac8=new i_(i.map(e=>e.bytes)))}return t}},iv=class{constructor(e=0,t=0){this.head=e,this.tail=t}},iw=class{constructor(){this.inst=[],this.start=0,this.numCap=2,this.lbStarts=[],this.numLb=0}getInst(e){return this.inst[e]}numInst(){return this.inst.length}addInst(e){this.inst.push(new ii(e))}skipNop(e){let t=this.inst[e];for(;t.op===ii.NOP||t.op===ii.CAPTURE;)e=(t=this.inst[e]).out;return t}prefix(){let e="",t=this.skipNop(this.start);if(!ii.isRuneOp(t.op)||1!==t.runes.length)return[t.op===ii.MATCH,e];for(;ii.isRuneOp(t.op)&&1===t.runes.length&&(t.arg&nF.FOLD_CASE)==0;)e+=String.fromCodePoint(t.runes[0]),t=this.skipNop(t.out);return[t.op===ii.MATCH,e]}startCond(){let e=0,t=this.start;n:for(;;){let r=this.inst[t];switch(r.op){case ii.EMPTY_WIDTH:e|=r.arg;break;case ii.FAIL:return -1;case ii.CAPTURE:case ii.NOP:break;default:break n}t=r.out}return e}patch(e,t){let r=e.head;for(;0!==r;){let e=this.inst[r>>1];(1&r)==0?(r=e.out,e.out=t):(r=e.arg,e.arg=t)}}append(e,t){if(0===e.head)return t;if(0===t.head)return e;let r=this.inst[e.tail>>1];return(1&e.tail)==0?r.out=t.head:r.arg=t.head,new iv(e.head,t.tail)}toString(){let e="";for(let t=0;t<this.inst.length;t++){let r=e.length;e+=t,t===this.start&&(e+="*"),e+=" ".substring(e.length-r),e+=this.inst[t],e+="\n"}return e}},ib=class{constructor(e=0,t=new iv,r=!1){this.i=e,this.out=t,this.nullable=r}},iD=class e{static ANY_RUNE_NOT_NL(){return[0,nG.CODES.get("\n")-1,nG.CODES.get("\n")+1,nK.MAX_RUNE]}static ANY_RUNE(){return[0,nK.MAX_RUNE]}static compileRegexp(t){let r=new e,n=r.compile(t);return r.prog.patch(n.out,r.newInst(ii.MATCH).i),r.prog.start=n.i,r.prog}static compileSet(t){let r=new e;if(0===t.length)return r.prog.start=r.newInst(ii.FAIL).i,r.prog;let n=[];for(let e=0;e<t.length;e++){let i=r.compile(t[e]),s=r.newInst(ii.MATCH);r.prog.getInst(s.i).arg=e,r.prog.patch(i.out,s.i),n.push(i.i)}let i=n[0];for(let e=1;e<n.length;e++){let t=r.newInst(ii.ALT),s=r.prog.getInst(t.i);s.out=i,s.arg=n[e],i=t.i}return r.prog.start=i,r.prog}constructor(){this.prog=new iw,this.newInst(ii.FAIL)}newInst(e){return this.prog.addInst(e),new ib(this.prog.numInst()-1,new iv,!0)}nop(){let e=this.newInst(ii.NOP);return e.out=new iv(e.i<<1,e.i<<1),e}fail(){return new ib}cap(e){let t=this.newInst(ii.CAPTURE);return t.out=new iv(t.i<<1,t.i<<1),this.prog.getInst(t.i).arg=e,this.prog.numCap<e+1&&(this.prog.numCap=e+1),t}cat(e,t){return 0===e.i||0===t.i?this.fail():(this.prog.patch(e.out,t.i),new ib(e.i,t.out,e.nullable&&t.nullable))}alt(e,t){if(0===e.i)return t;if(0===t.i)return e;let r=this.newInst(ii.ALT),n=this.prog.getInst(r.i);return n.out=e.i,n.arg=t.i,r.out=this.prog.append(e.out,t.out),r.nullable=e.nullable||t.nullable,r}loop(e,t){let r=this.newInst(ii.ALT),n=this.prog.getInst(r.i);return t?(n.arg=e.i,r.out=new iv(r.i<<1,r.i<<1)):(n.out=e.i,r.out=new iv(r.i<<1|1,r.i<<1|1)),this.prog.patch(e.out,r.i),r}quest(e,t){let r=this.newInst(ii.ALT),n=this.prog.getInst(r.i);return t?(n.arg=e.i,r.out=new iv(r.i<<1,r.i<<1)):(n.out=e.i,r.out=new iv(r.i<<1|1,r.i<<1|1)),r.out=this.prog.append(r.out,e.out),r}star(e,t){return e.nullable?this.quest(this.plus(e,t),t):this.loop(e,t)}plus(e,t){return new ib(e.i,this.loop(e,t).out,e.nullable)}empty(e){let t=this.newInst(ii.EMPTY_WIDTH);return this.prog.getInst(t.i).arg=e,t.out=new iv(t.i<<1,t.i<<1),t}rune(e,t){let r=this.newInst(ii.RUNE);r.nullable=!1;let n=this.prog.getInst(r.i);return n.runes=e,t&=nF.FOLD_CASE,(1!==e.length||nK.simpleFold(e[0])===e[0])&&(t&=~nF.FOLD_CASE),n.arg=t,r.out=new iv(r.i<<1,r.i<<1),(t&nF.FOLD_CASE)==0&&1===e.length||2===e.length&&e[0]===e[1]?n.op=ii.RUNE1:2===e.length&&0===e[0]&&e[1]===nK.MAX_RUNE?n.op=ii.RUNE_ANY:4===e.length&&0===e[0]&&e[1]===nG.CODES.get("\n")-1&&e[2]===nG.CODES.get("\n")+1&&e[3]===nK.MAX_RUNE&&(n.op=ii.RUNE_ANY_NOT_NL),r}lookBehind(t,r){let n=this.newInst(ii.LB_WRITE);this.prog.getInst(n.i).arg=r;let i=this.rune(e.ANY_RUNE(),0),s=this.star(i,!0),a=this.cat(s,t);this.prog.patch(a.out,n.i);let o=this.newInst(ii.LB_CHECK);return this.prog.getInst(o.i).arg=r,this.prog.lbStarts.push(a.i),Math.abs(r)>this.prog.numLb&&(this.prog.numLb=Math.abs(r)),o.out=new iv(o.i<<1,o.i<<1),o}compile(t){switch(t.op){case im.Op.NO_MATCH:return this.fail();case im.Op.EMPTY_MATCH:return this.nop();case im.Op.LITERAL:if(0===t.runes.length)return this.nop();{let e=null;for(let r of t.runes){let n=this.rune([r],t.flags);e=null===e?n:this.cat(e,n)}return e}case im.Op.CHAR_CLASS:return this.rune(t.runes,t.flags);case im.Op.ANY_CHAR_NOT_NL:return this.rune(e.ANY_RUNE_NOT_NL(),0);case im.Op.ANY_CHAR:return this.rune(e.ANY_RUNE(),0);case im.Op.BEGIN_LINE:return this.empty(nW.EMPTY_BEGIN_LINE);case im.Op.END_LINE:return this.empty(nW.EMPTY_END_LINE);case im.Op.BEGIN_TEXT:return this.empty(nW.EMPTY_BEGIN_TEXT);case im.Op.END_TEXT:return this.empty(nW.EMPTY_END_TEXT);case im.Op.WORD_BOUNDARY:return this.empty(nW.EMPTY_WORD_BOUNDARY);case im.Op.NO_WORD_BOUNDARY:return this.empty(nW.EMPTY_NO_WORD_BOUNDARY);case im.Op.PLB:case im.Op.NLB:return this.lookBehind(this.compile(t.subs[0]),t.lb);case im.Op.CAPTURE:{let e=this.cap(t.cap<<1),r=this.compile(t.subs[0]),n=this.cap(t.cap<<1|1);return this.cat(this.cat(e,r),n)}case im.Op.STAR:return this.star(this.compile(t.subs[0]),(t.flags&nF.NON_GREEDY)!=0);case im.Op.PLUS:return this.plus(this.compile(t.subs[0]),(t.flags&nF.NON_GREEDY)!=0);case im.Op.QUEST:return this.quest(this.compile(t.subs[0]),(t.flags&nF.NON_GREEDY)!=0);case im.Op.CONCAT:if(0===t.subs.length)return this.nop();{let e=null;for(let r of t.subs){let t=this.compile(r);e=null===e?t:this.cat(e,t)}return e}case im.Op.ALTERNATE:if(0===t.subs.length)return this.nop();{let e=null;for(let r of t.subs){let t=this.compile(r);e=null===e?t:this.alt(e,t)}return e}default:throw new n9("regexp: unhandled case in compile")}}},iT=class e{static simplify(t){if(null===t)return null;switch(t.op){case im.Op.PLB:case im.Op.NLB:case im.Op.CAPTURE:{let r=e.simplify(t.subs[0]);if(r!==t.subs[0]){let e=im.fromRegexp(t);return e.runes=[],e.subs=[r],e}break}case im.Op.CONCAT:case im.Op.ALTERNATE:{let r=[],n=!1;for(let i=0;i<t.subs.length;i++){let s=t.subs[i],a=e.simplify(s);if(a!==s&&(n=!0),t.op===im.Op.CONCAT){if(a.op===im.Op.NO_MATCH)return new im(im.Op.NO_MATCH);if(a.op===im.Op.EMPTY_MATCH){n=!0;continue}if(a.op===im.Op.CONCAT){n=!0;for(let e=0;e<a.subs.length;e++)r.push(a.subs[e]);continue}}else if(t.op===im.Op.ALTERNATE){if(a.op===im.Op.NO_MATCH){n=!0;continue}if(a.op===im.Op.ALTERNATE){n=!0;for(let e=0;e<a.subs.length;e++)r.push(a.subs[e]);continue}}r.push(a)}if(n){if(0===r.length)return new im(t.op===im.Op.CONCAT?im.Op.EMPTY_MATCH:im.Op.NO_MATCH);if(1===r.length)return r[0];let e=im.fromRegexp(t);return e.runes=[],e.subs=r,e}break}case im.Op.CHAR_CLASS:if(null===t.runes)break;if(0===t.runes.length)return new im(im.Op.NO_MATCH);if(2===t.runes.length&&0===t.runes[0]&&t.runes[1]===nK.MAX_RUNE)return new im(im.Op.ANY_CHAR);if(4===t.runes.length&&0===t.runes[0]&&t.runes[1]===nG.CODES.get("\n")-1&&t.runes[2]===nG.CODES.get("\n")+1&&t.runes[3]===nK.MAX_RUNE)return new im(im.Op.ANY_CHAR_NOT_NL);break;case im.Op.STAR:case im.Op.PLUS:case im.Op.QUEST:{let r=e.simplify(t.subs[0]);return e.simplify1(t.op,t.flags,r,t)}case im.Op.REPEAT:{if(0===t.min&&0===t.max)return new im(im.Op.EMPTY_MATCH);let r=e.simplify(t.subs[0]);if(-1===t.max){if(0===t.min)return e.simplify1(im.Op.STAR,t.flags,r,null);if(1===t.min)return e.simplify1(im.Op.PLUS,t.flags,r,null);let n=new im(im.Op.CONCAT),i=[];for(let e=0;e<t.min-1;e++)i.push(r);return i.push(e.simplify1(im.Op.PLUS,t.flags,r,null)),n.subs=i.slice(0),e.simplify(n)}if(1===t.min&&1===t.max)return r;let n=null;if(t.min>0){n=[];for(let e=0;e<t.min;e++)n.push(r)}if(t.max>t.min){let i=e.simplify1(im.Op.QUEST,t.flags,r,null);for(let n=t.min+1;n<t.max;n++){let n=new im(im.Op.CONCAT);n.subs=[r,i],i=e.simplify1(im.Op.QUEST,t.flags,n,null)}if(null===n)return i;n.push(i)}if(null!==n){let t=new im(im.Op.CONCAT);return t.subs=n.slice(0),e.simplify(t)}return new im(im.Op.NO_MATCH)}}return t}static simplify1(e,t,r,n){if(r.op===im.Op.EMPTY_MATCH)return r;if(r.op===im.Op.NO_MATCH)return e===im.Op.PLUS?r:new im(im.Op.EMPTY_MATCH);if(e===r.op&&(t&nF.NON_GREEDY)==(r.flags&nF.NON_GREEDY))return r;if(null!==n&&n.op===e&&(n.flags&nF.NON_GREEDY)==(t&nF.NON_GREEDY)&&r===n.subs[
110])return n;let i=new im(e);return i.flags=t,i.subs=[r],i}},iI=class{constructor(e,t){this.sign=e,this.cls=t}};let iS=[48,57],iA=[9,10,12,13,32,32],iO=[48,57,65,90,95,95,97,122],iR=new Map([["\\d",new iI(1,iS)],["\\D",new iI(-1,iS)],["\\s",new iI(1,iA)],["\\S",new iI(-1,iA)],["\\w",new iI(1,iO)],["\\W",new iI(-1,iO)]]),iN=[48,57,65,90,97,122],iP=[65,90,97,122],ik=[0,127],iL=[9,9,32,32],iF=[0,31,127,127],ix=[48,57],iM=[33,126],iG=[97,122],iU=[32,126],iH=[33,47,58,64,91,96,123,126],iV=[9,13,32,32],ij=[65,90],iz=[48,57,65,90,95,95,97,122],iJ=[48,57,65,70,97,102],iK=new Map([["[:alnum:]",new iI(1,iN)],["[:^alnum:]",new iI(-1,iN)],["[:alpha:]",new iI(1,iP)],["[:^alpha:]",new iI(-1,iP)],["[:ascii:]",new iI(1,ik)],["[:^ascii:]",new iI(-1,ik)],["[:blank:]",new iI(1,iL)],["[:^blank:]",new iI(-1,iL)],["[:cntrl:]",new iI(1,iF)],["[:^cntrl:]",new iI(-1,iF)],["[:digit:]",new iI(1,ix)],["[:^digit:]",new iI(-1,ix)],["[:graph:]",new iI(1,iM)],["[:^graph:]",new iI(-1,iM)],["[:lower:]",new iI(1,iG)],["[:^lower:]",new iI(-1,iG)],["[:print:]",new iI(1,iU)],["[:^print:]",new iI(-1,iU)],["[:punct:]",new iI(1,iH)],["[:^punct:]",new iI(-1,iH)],["[:space:]",new iI(1,iV)],["[:^space:]",new iI(-1,iV)],["[:upper:]",new iI(1,ij)],["[:^upper:]",new iI(-1,ij)],["[:word:]",new iI(1,iz)],["[:^word:]",new iI(-1,iz)],["[:xdigit:]",new iI(1,iJ)],["[:^xdigit:]",new iI(-1,iJ)]]);var iq=class e{static charClassToString(e,t){let r="[";for(let n=0;n<t;n+=2){n>0&&(r+=" ");let t=e[n],i=e[n+1];t===i?r+=`0x${t.toString(16)}`:r+=`0x${t.toString(16)}-0x${i.toString(16)}`}return r+"]"}static cmp(e,t,r,n){let i=e[t]-r;return 0!==i?i:n-e[t+1]}static qsortIntPair(t,r,n){let i=(r+n)/2&-2,s=t[i],a=t[i+1],o=r,l=n;for(;o<=l;){for(;o<n&&0>e.cmp(t,o,s,a);)o+=2;for(;l>r&&e.cmp(t,l,s,a)>0;)l-=2;if(o<=l){if(o!==l){let e=t[o];t[o]=t[l],t[l]=e,e=t[o+1],t[o+1]=t[l+1],t[l+1]=e}o+=2,l-=2}}r<l&&e.qsortIntPair(t,r,l),o<n&&e.qsortIntPair(t,o,n)}constructor(e=nW.emptyInts()){this.r=e,this.len=e.length}toArray(){return this.len===this.r.length?this.r:this.r.slice(0,this.len)}cleanClass(){if(this.len<4)return this;e.qsortIntPair(this.r,0,this.len-2);let t=2;for(let e=2;e<this.len;e+=2){let r=this.r[e],n=this.r[e+1];if(r<=this.r[t-1]+1){n>this.r[t-1]&&(this.r[t-1]=n);continue}this.r[t]=r,this.r[t+1]=n,t+=2}return this.len=t,this}appendLiteral(e,t){return(t&nF.FOLD_CASE)!=0?this.appendFoldedRange(e,e):this.appendRange(e,e)}appendRange(e,t){if(this.len>0){for(let r=2;r<=4;r+=2)if(this.len>=r){let n=this.r[this.len-r],i=this.r[this.len-r+1];if(e<=i+1&&n<=t+1)return e<n&&(this.r[this.len-r]=e),t>i&&(this.r[this.len-r+1]=t),this}}return this.r[this.len++]=e,this.r[this.len++]=t,this}appendFoldedRange(e,t){if(e<=nK.MIN_FOLD&&t>=nK.MAX_FOLD||t<nK.MIN_FOLD||e>nK.MAX_FOLD)return this.appendRange(e,t);e<nK.MIN_FOLD&&(this.appendRange(e,nK.MIN_FOLD-1),e=nK.MIN_FOLD),t>nK.MAX_FOLD&&(this.appendRange(nK.MAX_FOLD+1,t),t=nK.MAX_FOLD);for(let r=e;r<=t;r++){this.appendRange(r,r);for(let e=nK.simpleFold(r);e!==r;e=nK.simpleFold(e))this.appendRange(e,e)}return this}appendClass(e){for(let t=0;t<e.length;t+=2)this.appendRange(e[t],e[t+1]);return this}appendFoldedClass(e){for(let t=0;t<e.length;t+=2)this.appendFoldedRange(e[t],e[t+1]);return this}appendNegatedClass(e){let t=0;for(let r=0;r<e.length;r+=2){let n=e[r],i=e[r+1];t<=n-1&&this.appendRange(t,n-1),t=i+1}return t<=nK.MAX_RUNE&&this.appendRange(t,nK.MAX_RUNE),this}appendTable(e){for(let t=0;t<e.length;++t){let r=e.getLo(t),n=e.getHi(t),i=e.getStride(t);if(1===i){this.appendRange(r,n);continue}for(let e=r;e<=n;e+=i)this.appendRange(e,e)}return this}appendNegatedTable(e){let t=0;for(let r=0;r<e.length;++r){let n=e.getLo(r),i=e.getHi(r),s=e.getStride(r);if(1===s){t<=n-1&&this.appendRange(t,n-1),t=i+1;continue}for(let e=n;e<=i;e+=s)t<=e-1&&this.appendRange(t,e-1),t=e+1}return t<=nK.MAX_RUNE&&this.appendRange(t,nK.MAX_RUNE),this}appendTableWithSign(e,t){return t<0?this.appendNegatedTable(e):this.appendTable(e)}negateClass(){let e=0,t=0;for(let r=0;r<this.len;r+=2){let n=this.r[r],i=this.r[r+1];e<=n-1&&(this.r[t]=e,this.r[t+1]=n-1,t+=2),e=i+1}return this.len=t,e<=nK.MAX_RUNE&&(this.r[this.len++]=e,this.r[this.len++]=nK.MAX_RUNE),this}appendClassWithSign(e,t){return t<0?this.appendNegatedClass(e):this.appendClass(e)}appendGroup(t,r){let n=t.cls;return r&&(n=new e().appendFoldedClass(n).cleanClass().toArray()),this.appendClassWithSign(n,t.sign)}toString(){return e.charClassToString(this.r,this.len)}},iY=class{constructor(e){this.str=e,this.position=0}pos(){return this.position}rewindTo(e){this.position=e}more(){return this.position<this.str.length}peek(){return this.str.codePointAt(this.position)}skip(e){this.position+=e}skipString(e){this.position+=e.length}pop(){let e=this.str.codePointAt(this.position);return this.position+=nW.charCount(e),e}lookingAt(e){return this.str.startsWith(e,this.position)}rest(){return this.str.substring(this.position)}from(e){return this.str.substring(e,this.position)}toString(){return this.rest()}},i$=class e{static ERR_INTERNAL_ERROR="regexp/syntax: internal error";static ERR_INVALID_CHAR_RANGE="invalid character class range";static ERR_INVALID_ESCAPE="invalid escape sequence";
11static ERR_INVALID_NAMED_CAPTURE="invalid named capture";static ERR_INVALID_PERL_OP="invalid or unsupported Perl syntax";static ERR_INVALID_REPEAT_OP="invalid nested repetition operator";static ERR_INVALID_REPEAT_SIZE="invalid repeat count";static ERR_MISSING_BRACKET="missing closing ]";static ERR_MISSING_PAREN="missing closing )";static ERR_MISSING_REPEAT_ARGUMENT="missing argument to repetition operator";static ERR_TRAILING_BACKSLASH="trailing backslash at end of expression";static ERR_DUPLICATE_NAMED_CAPTURE="duplicate capture group name";static ERR_UNEXPECTED_PAREN="unexpected )";static ERR_NESTING_DEPTH="expression nests too deeply";static ERR_LARGE="expression too large";static ERR_INVALID_CAPTURE_IN_LOOKBEHIND="invalid capture in lookbehind";static MAX_HEIGHT=1e3;static MAX_SIZE=3355443;static MAX_RUNES=0x2000000;static ANY_TABLE=new nU(new Uint32Array([0,nK.MAX_RUNE,1]));static ASCII_TABLE=new nU(new Uint32Array([0,127,1]));static ASCII_FOLD_TABLE=new nU(new Uint32Array([0,127,1,383,383,1,8490,8490,1]));static unicodeTable(t){return"Any"===t?{tab:e.ANY_TABLE,fold:e.ANY_TABLE,sign:1}:"Ascii"===t?{tab:e.ASCII_TABLE,fold:e.ASCII_FOLD_TABLE,sign:1}:"Assigned"===t?{tab:nJ.CATEGORIES.get("Cn"),fold:nJ.CATEGORIES.get("Cn"),sign:-1}:"Lc"===t?{tab:nJ.CATEGORIES.get("LC"),fold:nJ.FOLD_CATEGORIES.get("LC"),sign:1}:nJ.CATEGORIES.has(t)?{tab:nJ.CATEGORIES.get(t),fold:nJ.FOLD_CATEGORIES.get(t),sign:1}:nJ.SCRIPTS.has(t)?{tab:nJ.SCRIPTS.get(t),fold:nJ.FOLD_SCRIPT.get(t),sign:1}:null}static minFoldRune(e){if(e<nK.MIN_FOLD||e>nK.MAX_FOLD)return e;let t=e,r=e;for(e=nK.simpleFold(e);e!==r;e=nK.simpleFold(e))t>e&&(t=e);return t}static leadingRegexp(e){if(e.op===im.Op.EMPTY_MATCH)return null;if(e.op===im.Op.CONCAT&&e.subs.length>0){let t=e.subs[0];return t.op===im.Op.EMPTY_MATCH?null:t}return e}static literalRegexp(e,t){let r=new im(im.Op.LITERAL);return r.flags=t,r.runes=nW.stringToRunes(e),r}static parse(t,r){return new e(t,r).parseInternal()}static parseRepeat(t){let r,n=t.pos();if(!t.more()||!t.lookingAt("{"))return -1;t.skip(1);let i=e.parseInt(t);if(-1===i||!t.more())return -1;if(t.lookingAt(",")){if(t.skip(1),!t.more())return -1;if(t.lookingAt("}"))r=-1;else if(-1===(r=e.parseInt(t)))return -1}else r=i;if(!t.more()||!t.lookingAt("}"))return -1;if(t.skip(1),i<0||i>1e3||-2===r||r>1e3||r>=0&&i>r)throw new n5(e.ERR_INVALID_REPEAT_SIZE,t.from(n));return i<<16|r&nK.MAX_BMP}static isValidCaptureName(e){if(0===e.length)return!1;for(let t=0;t<e.length;t++){let r=e.codePointAt(t);if(r!==nG.CODES.get("_")&&!nW.isalnum(r))return!1}return!0}static parseInt(e){let t=e.pos();for(;e.more()&&e.peek()>=nG.CODES.get("0")&&e.peek()<=nG.CODES.get("9");)e.skip(1);let r=e.from(t);return 0===r.length||r.length>1&&r.codePointAt(0)===nG.CODES.get("0")?-1:r.length>8?-2:parseInt(r,10)}static isCharClass(e){return e.op===im.Op.LITERAL&&1===e.runes.length||e.op===im.Op.CHAR_CLASS||e.op===im.Op.ANY_CHAR_NOT_NL||e.op===im.Op.ANY_CHAR}static matchRune(e,t){switch(e.op){case im.Op.LITERAL:return 1===e.runes.length&&e.runes[0]===t;case im.Op.CHAR_CLASS:for(let r=0;r<e.runes.length;r+=2)if(e.runes[r]<=t&&t<=e.runes[r+1])return!0;break;case im.Op.ANY_CHAR_NOT_NL:return t!==nG.CODES.get("\n");case im.Op.ANY_CHAR:return!0}return!1}static mergeCharClass(t,r){switch(t.op){case im.Op.ANY_CHAR:break;case im.Op.ANY_CHAR_NOT_NL:e.matchRune(r,nG.CODES.get("\n"))&&(t.op=im.Op.ANY_CHAR);break;case im.Op.CHAR_CLASS:r.op===im.Op.LITERAL?t.runes=new iq(t.runes).appendLiteral(r.runes[0],r.flags).toArray():t.runes=new iq(t.runes).appendClass(r.runes).toArray();break;case im.Op.LITERAL:if(r.runes[0]===t.runes[0]&&r.flags===t.flags)break;t.op=im.Op.CHAR_CLASS,t.runes=new iq().appendLiteral(t.runes[0],t.flags).appendLiteral(r.runes[0],r.flags).toArray()}}static parseEscape(t){let r=t.pos();if(t.skip(1),!t.more())throw new n5(e.ERR_TRAILING_BACKSLASH);let n=t.pop();i:switch(n){case nG.CODES.get("1"):case nG.CODES.get("2"):case nG.CODES.get("3"):case nG.CODES.get("4"):case nG.CODES.get("5"):case nG.CODES.get("6"):case nG.CODES.get("7"):if(!t.more()||t.peek()<nG.CODES.get("0")||t.peek()>nG.CODES.get("7"))break;case nG.CODES.get("0"):{let e=n-nG.CODES.get("0");for(let r=1;r<3&&!(!t.more()||t.peek()<nG.CODES.get("0")||t.peek()>nG.CODES.get("7"));r++)e=8*e+t.peek()-nG.CODES.get("0"),t.skip(1);return e}case nG.CODES.get("x"):{if(!t.more())break;if((n=t.pop())===nG.CODES.get("{")){let e=0,r=0;for(;;
11){if(!t.more())break i;if((n=t.pop())===nG.CODES.get("}"))break;let i=nW.unhex(n);if(i<0||(r=16*r+i)>nK.MAX_RUNE)break i;e++}if(0===e)break;return r}let e=nW.unhex(n);if(!t.more())break;n=t.pop();let r=nW.unhex(n);if(e<0||r<0)break;return 16*e+r}case nG.CODES.get("a"):return nG.CODES.get("\x07");case nG.CODES.get("f"):return nG.CODES.get("\f");case nG.CODES.get("n"):return nG.CODES.get("\n");case nG.CODES.get("r"):return nG.CODES.get("\r");case nG.CODES.get("t"):return nG.CODES.get(" ");case nG.CODES.get("v"):return nG.CODES.get("\v");default:if(n<=nK.MAX_ASCII&&!nW.isalnum(n))return n}throw new n5(e.ERR_INVALID_ESCAPE,t.from(r))}static parseClassChar(t,r){if(!t.more())throw new n5(e.ERR_MISSING_BRACKET,t.from(r));return t.lookingAt("\\")?e.parseEscape(t):t.pop()}static concatRunes(e,t){for(let r=0;r<t.length;r++)e.push(t[r]);return e}static hasCapture(t){if(null===t)return!1;if(t.op===im.Op.CAPTURE)return!0;if(t.subs){for(let r of t.subs)if(e.hasCapture(r))return!0}return!1}constructor(e,t=0){this.wholeRegexp=e,this.flags=t,this.numCap=0,this.namedGroups=Object.create(null),this.stack=[],this.free=null,this.numRegexp=0,this.numRunes=0,this.repeats=0,this.height=null,this.size=null,this.nlb=0}newRegexp(e){let t=this.free;return null!==t&&null!==t.subs&&t.subs.length>0?(this.free=t.subs[0],t.reinit(),t.op=e):(t=new im(e),this.numRegexp+=1),t}reuse(e){null!==this.height&&this.height.has(e)&&this.height.delete(e),null!==e.subs&&e.subs.length>0&&(e.subs[0]=this.free),this.free=e}checkLimits(t){if(this.numRunes>e.MAX_RUNES)throw new n5(e.ERR_LARGE);this.checkSize(t),this.checkHeight(t)}checkSize(t){if(null===this.size){if(0===this.repeats&&(this.repeats=1),t.op===im.Op.REPEAT){let r=t.max;-1===r&&(r=t.min),r<=0&&(r=1),r>Math.floor(e.MAX_SIZE/this.repeats)?this.repeats=e.MAX_SIZE:this.repeats*=r}if(this.numRegexp<Math.floor(e.MAX_SIZE/this.repeats))return;for(let e of(this.size=new Map,this.stack))this.checkSize(e)}if(this.calcSize(t,!0)>e.MAX_SIZE)throw new n5(e.ERR_LARGE)}calcSize(e,t=!1){if(!t&&null!==this.size&&this.size.has(e))return this.size.get(e);let r=0;switch(e.op){case im.Op.LITERAL:r=e.runes.length;break;case im.Op.PLB:case im.Op.NLB:case im.Op.CAPTURE:case im.Op.STAR:r=2+this.calcSize(e.subs[0]);break;case im.Op.PLUS:case im.Op.QUEST:r=1+this.calcSize(e.subs[0]);break;case im.Op.CONCAT:for(let t of e.subs)r+=this.calcSize(t);break;case im.Op.ALTERNATE:for(let t of e.subs)r+=this.calcSize(t);e.subs.length>1&&(r=r+e.subs.length-1);break;case im.Op.REPEAT:{let t=this.calcSize(e.subs[0]);if(-1===e.max){r=0===e.min?2+t:1+e.min*t;break}r=e.max*t+(e.max-e.min)}}return r=Math.max(1,r),null===this.size&&(this.size=new Map),this.size.set(e,r),r}checkHeight(t){if(!(this.numRegexp<e.MAX_HEIGHT)){if(null===this.height)for(let e of(this.height=new Map,this.stack))this.checkHeight(e);if(this.calcHeight(t,!0)>e.MAX_HEIGHT)throw new n5(e.ERR_NESTING_DEPTH)}}calcHeight(e,t=!1){if(!t&&null!==this.height&&this.height.has(e))return this.height.get(e);let r=1;for(let t of e.subs){let e=this.calcHeight(t);r<1+e&&(r=1+e)}return null===this.height&&(this.height=new Map),this.height.set(e,r),r}pop(){return this.stack.pop()}popToPseudo(){let e=this.stack.length,t=e;for(;t>0&&!im.isPseudoOp(this.stack[t-1].op);)t--;let r=this.stack.slice(t,e);return this.stack=this.stack.slice(0,t),r}push(e){if(this.numRunes+=e.runes.length,e.op===im.Op.CHAR_CLASS&&2===e.runes.length&&e.runes[0]===e.runes[1]){if(this.maybeConcat(e.runes[0],this.flags&~nF.FOLD_CASE))return null;e.op=im.Op.LITERAL,e.runes=[e.runes[0]],e.flags=this.flags&~nF.FOLD_CASE}else if(e.op===im.Op.CHAR_CLASS&&4===e.runes.length&&e.runes[0]===e.runes[1]&&e.runes[2]===e.runes[3]&&nK.simpleFold(e.runes[0])===e.runes[2]&&nK.simpleFold(e.runes[2])===e.runes[0]||e.op===im.Op.CHAR_CLASS&&2===e.runes.length&&e.runes[0]+1===e.runes[1]&&nK.simpleFold(e.runes[0])===e.runes[1]&&nK.simpleFold(e.runes[1])===e.runes[0]){if(this.maybeConcat(e.runes[0],this.flags|nF.FOLD_CASE))return null;e.op=im.Op.LITERAL,e.runes=[e.runes[0]],e.flags=this.flags|nF.FOLD_CASE}else this.maybeConcat(-1,0);return this.stack.push(e),this.checkLimits(e),e}maybeConcat(t,r){let n=this.stack.length;if(n<2)return!1;let i=this.stack[n-1],s=this.stack[n-2];return i.op===im.Op.LITERAL&&s.op===im.Op.LITERAL&&(i.flags&nF.FOLD_CASE)==(s.flags&nF.FOLD_CASE)&&((s.runes=e.concatRunes(s.runes,i.runes),t>=0)?(i.runes=[t],i.flags=r,!0):(this.pop(),this.reuse(i),!1))}newLiteral(t,r){let n=this.newRegexp(im.Op.LITERAL);return n.flags=r,(r&nF.FOLD_CASE)!=0&&(t=e.minFoldRune(t)),n.runes=[t],n}literal(e){this.push(this.newLiteral(e,this.flags))}op(e){let t=this.newRegexp(e);return t.flags=this.flags,this.push(t)}repeat(t,r,n,i,s,a){let o=this.flags;if((o&nF.PERL_X)!=0&&(s.more()&&s.lookingAt("?")&&(s.skip(1),o^=nF.NON_GREEDY),-1!==a))throw new n5(e.ERR_INVALID_REPEAT_OP,s.from(a));let l=this.stack.length;if(0===l)throw new n5(e.ERR_MISSING_REPEAT_ARGUMENT,s.from(i));let u=this.stack[l-1];if(im.isPseudoOp(u.op))throw new n5(e.ERR_MISSING_REPEAT_ARGUMENT,s.from(i));let c=this.newRegexp(t);if(c.min=r,c.max=n,c.flags=o,c.subs=[u],this.stack[l-1]=c,this.checkLimits(c),t===im.Op.REPEAT&&(r>=2||n>=2)&&!this.repeatIsValid(c,1e3))throw new n5(e.ERR_INVALID_REPEAT_SIZE,s.from(i))}repeatIsValid(e,t){if(e.op===im.Op.REPEAT){let r=e.max;if(0===r)return!0;
11if(r<0&&(r=e.min),r>t)return!1;r>0&&(t=Math.trunc(t/r))}for(let r of e.subs)if(!this.repeatIsValid(r,t))return!1;return!0}concat(){this.maybeConcat(-1,0);let e=this.popToPseudo();return 0===e.length?this.push(this.newRegexp(im.Op.EMPTY_MATCH)):this.push(this.collapse(e,im.Op.CONCAT))}alternate(){let e=this.popToPseudo();return(e.length>0&&this.cleanAlt(e[e.length-1]),0===e.length)?this.push(this.newRegexp(im.Op.NO_MATCH)):this.push(this.collapse(e,im.Op.ALTERNATE))}cleanAlt(e){e.op===im.Op.CHAR_CLASS&&(e.runes=new iq(e.runes).cleanClass().toArray(),2===e.runes.length&&0===e.runes[0]&&e.runes[1]===nK.MAX_RUNE?(e.runes=[],e.op=im.Op.ANY_CHAR):4===e.runes.length&&0===e.runes[0]&&e.runes[1]===nG.CODES.get("\n")-1&&e.runes[2]===nG.CODES.get("\n")+1&&e.runes[3]===nK.MAX_RUNE&&(e.runes=[],e.op=im.Op.ANY_CHAR_NOT_NL))}collapse(e,t){if(1===e.length)return e[0];let r=0;for(let n of e)r+=n.op===t?n.subs.length:1;let n=Array(r).fill(null),i=0;for(let r of e)if(r.op===t){for(let e=0;e<r.subs.length;e++)n[i++]=r.subs[e];this.reuse(r)}else n[i++]=r;let s=this.newRegexp(t);if(s.subs=n,t===im.Op.ALTERNATE&&(s.subs=this.factor(s.subs),1===s.subs.length)){let e=s;s=s.subs[0],this.reuse(e)}return s}factor(t){if(t.length<2)return t;let r=0,n=t.length,i=0,s=null,a=0,o=0,l=0;for(let e=0;e<=n;e++){let u=null,c=0,B=0;if(e<n){let n=t[r+e];if(n.op===im.Op.CONCAT&&n.subs.length>0&&(n=n.subs[0]),n.op===im.Op.LITERAL&&(u=n.runes,c=n.runes.length,B=n.flags&nF.FOLD_CASE),B===o){let e=0;for(;e<a&&e<c&&s[e]===u[e];)e++;if(e>0){a=e;continue}}}if(e===l);else if(e===l+1)t[i++]=t[r+l];else{let n=this.newRegexp(im.Op.LITERAL);n.flags=o,n.runes=s.slice(0,a);for(let n=l;n<e;n++)t[r+n]=this.removeLeadingString(t[r+n],a),this.checkLimits(t[r+n]);let u=this.collapse(t.slice(r+l,r+e),im.Op.ALTERNATE),c=this.newRegexp(im.Op.CONCAT);c.subs=[n,u],t[i++]=c}l=e,s=u,a=c,o=B}n=i,r=0,l=0,i=0;let u=null;for(let s=0;s<=n;s++){let a=null;if(!(s<n&&(a=e.leadingRegexp(t[r+s]),null!==u&&u.equals(a)&&(e.isCharClass(u)||u.op===im.Op.REPEAT&&u.min===u.max&&e.isCharClass(u.subs[0]))))){if(s===l);else if(s===l+1)t[i++]=t[r+l];else{let e=u;for(let e=l;e<s;e++){let n=e!==l;t[r+e]=this.removeLeadingRegexp(t[r+e],n),this.checkLimits(t[r+e])}let n=this.collapse(t.slice(r+l,r+s),im.Op.ALTERNATE),a=this.newRegexp(im.Op.CONCAT);a.subs=[e,n],t[i++]=a}l=s,u=a}}n=i,r=0,l=0,i=0;for(let s=0;s<=n;s++)if(!(s<n&&e.isCharClass(t[r+s]))){if(s===l);else if(s===l+1)t[i++]=t[r+l];else{let n=l;for(let e=l+1;e<s;e++){let i=t[r+n],s=t[r+e];(i.op<s.op||i.op===s.op&&(null!==i.runes?i.runes.length:0)<(null!==s.runes?s.runes.length:0))&&(n=e)}let a=t[r+l];t[r+l]=t[r+n],t[r+n]=a;for(let n=l+1;n<s;n++)e.mergeCharClass(t[r+l],t[r+n]),this.reuse(t[r+n]);this.cleanAlt(t[r+l]),t[i++]=t[r+l]}s<n&&(t[i++]=t[r+s]),l=s+1}n=i,r=0,l=0,i=0;for(let e=0;e<n;++e)e+1<n&&t[r+e].op===im.Op.EMPTY_MATCH&&t[r+e+1].op===im.Op.EMPTY_MATCH||(t[i++]=t[r+e]);return n=i,r=0,t.slice(r,n)}removeLeadingString(e,t){if(e.op===im.Op.CONCAT&&e.subs.length>0){let r=this.removeLeadingString(e.subs[0],t);if(e.subs[0]=r,r.op===im.Op.EMPTY_MATCH)switch(this.reuse(r),e.subs.length){case 0:case 1:e.op=im.Op.EMPTY_MATCH,e.subs=im.emptySubs();break;case 2:{let t=e;e=e.subs[1],this.reuse(t);break}default:e.subs=e.subs.slice(1,e.subs.length)}return e}return e.op===im.Op.LITERAL&&(e.runes=e.runes.slice(t,e.runes.length),0===e.runes.length&&(e.op=im.Op.EMPTY_MATCH)),e}removeLeadingRegexp(e,t){if(e.op===im.Op.CONCAT&&e.subs.length>0){switch(t&&this.reuse(e.subs[0]),e.subs=e.subs.slice(1,e.subs.length),e.subs.length){case 0:e.op=im.Op.EMPTY_MATCH,e.subs=im.emptySubs();break;case 1:{let t=e;e=e.subs[0],this.reuse(t)}}return e}return t&&this.reuse(e),this.newRegexp(im.Op.EMPTY_MATCH)}parseInternal(){if((this.flags&nF.LITERAL)!=0)return e.literalRegexp(this.wholeRegexp,this.flags);let t=-1,r=-1,n=-1,i=new iY(this.wholeRegexp);for(;i.more();){let s=-1;i:switch(i.peek()){case nG.CODES.get("("):if((this.flags&nF.LOOKBEHIND)!=0){if(i.lookingAt("(?<=")){this.parsePosLookBehind(),i.skip(4);break}if(i.lookingAt("(?<!")){this.parseNegLookBehind(),i.skip(4);break}}if((this.flags&nF.PERL_X)!=0&&i.lookingAt("(?")){this.parsePerlFlags(i);break}this.op(im.Op.LEFT_PAREN).cap=++this.numCap,i.skip(1);break;case nG.CODES.get("|"):this.parseVerticalBar(),i.skip(1);break;case nG.CODES.get(")"):this.parseRightParen(),i.skip(1);break;case nG.CODES.get("^"):(this.flags&nF.ONE_LINE)!=0?this.op(im.Op.BEGIN_TEXT):this.op(im.Op.BEGIN_LINE),i.skip(1);break;case nG.CODES.get("$"):(this.flags&nF.ONE_LINE)!=0?this.op(im.Op.END_TEXT).flags|=nF.WAS_DOLLAR:this.op(im.Op.END_LINE),i.skip(1);break;case nG.CODES.get("."):(this.flags&nF.DOT_NL)!=0?this.op(im.Op.ANY_CHAR):this.op(im.Op.ANY_CHAR_NOT_NL),i.skip(1);break;case nG.CODES.get("["):this.parseClass(i);break;case nG.CODES.get("*"):case nG.CODES.get("+"):case nG.CODES.get("?"):{s=i.pos();let e=null;switch(i.pop()){case nG.CODES.get("*"):e=im.Op.STAR;break;case nG.CODES.get("+"):e=im.Op.PLUS;break;case nG.CODES.get("?"):e=im.Op.QUEST}this.repeat(e,r,n,s,i,t);break}case nG.CODES.get("{"):{s=i.pos();let a=e.parseRepeat(i);if(a<0){i.rewindTo(s),this.literal(i.pop());break}r=a>>16,n=(a&nK.MAX_BMP)<<16>>16,this.repeat(im.Op.REPEAT,r,n,s,i,t);break}case nG.CODES.get("\\"):{let t=i.pos();if(i.skip(1),(this.flags&nF.PERL_X)!=0&&i.more())switch(i.pop()){case nG.CODES.get("A"):this.op(im.Op.BEGIN_TEXT);break i;case nG.CODES.get("b"):this.op(im.Op.WORD_BOUNDARY);break i;case nG.CODES.get("B"):this.op(im.Op.NO_WORD_BOUNDARY);break i;case nG.CODES.get("C"):throw new n5(e.ERR_INVALID_ESCAPE,"\\C");case nG.CODES.get("Q"):{let e=i.rest(),t=e.indexOf("\\E");t>=0?(e=e.substring(0,t),i.skipString(e),i.skipString("\\E")):i.skipString(e);let r=0;for(;r<e.length;){let t=e.codePointAt(r);this.literal(t),r+=nW.charCount(t)}
11break i}case nG.CODES.get("z"):this.op(im.Op.END_TEXT);break i;default:i.rewindTo(t)}else i.rewindTo(t);let r=this.newRegexp(im.Op.CHAR_CLASS);if(r.flags=this.flags,i.lookingAt("\\p")||i.lookingAt("\\P")){let e=new iq;if(this.parseUnicodeClass(i,e)){r.runes=e.toArray(),this.push(r);break}}let n=new iq;if(this.parsePerlClassEscape(i,n)){r.runes=n.toArray(),this.push(r);break}i.rewindTo(t),this.reuse(r),this.literal(e.parseEscape(i));break}default:this.literal(i.pop())}t=s}if(this.concat(),this.swapVerticalBar()&&this.pop(),this.alternate(),1!==this.stack.length)throw new n5(e.ERR_MISSING_PAREN,this.wholeRegexp);return this.stack[0].namedGroups=this.namedGroups,this.stack[0]}parsePerlFlags(t){let r=t.pos(),n=t.rest();if(n.startsWith("(?P<")||n.startsWith("(?<")){let r="P"===n.charAt(2)?4:3,i=n.indexOf(">");if(i<0)throw new n5(e.ERR_INVALID_NAMED_CAPTURE,n);let s=n.substring(r,i);if(t.skipString(s),t.skip(r+1),!e.isValidCaptureName(s))throw new n5(e.ERR_INVALID_NAMED_CAPTURE,n.substring(0,i+1));let a=this.op(im.Op.LEFT_PAREN);if(a.cap=++this.numCap,this.namedGroups[s])throw new n5(e.ERR_DUPLICATE_NAMED_CAPTURE,s);this.namedGroups[s]=this.numCap,a.name=s;return}t.skip(2);let i=this.flags,s=1,a=!1;n:for(;t.more();){let e=t.pop();switch(e){case nG.CODES.get("i"):i|=nF.FOLD_CASE,a=!0;break;case nG.CODES.get("m"):i&=~nF.ONE_LINE,a=!0;break;case nG.CODES.get("s"):i|=nF.DOT_NL,a=!0;break;case nG.CODES.get("U"):i|=nF.NON_GREEDY,a=!0;break;case nG.CODES.get("-"):if(s<0)break n;s=-1,i=~i,a=!1;break;case nG.CODES.get(":"):case nG.CODES.get(")"):if(s<0){if(!a)break n;i=~i}e===nG.CODES.get(":")&&this.op(im.Op.LEFT_PAREN),this.flags=i;return;default:break n}}throw new n5(e.ERR_INVALID_PERL_OP,t.from(r))}parsePosLookBehind(){let e=this.newRegexp(im.Op.LEFT_PAREN);return e.flags=this.flags,e.lb=++this.nlb,this.push(e)}parseNegLookBehind(){let e=this.newRegexp(im.Op.LEFT_PAREN);return e.flags=this.flags,e.lb=-++this.nlb,this.push(e)}parseVerticalBar(){this.concat(),this.swapVerticalBar()||this.op(im.Op.VERTICAL_BAR)}swapVerticalBar(){let t=this.stack.length;if(t>=3&&this.stack[t-2].op===im.Op.VERTICAL_BAR&&e.isCharClass(this.stack[t-1])&&e.isCharClass(this.stack[t-3])){let r=this.stack[t-1],n=this.stack[t-3];if(r.op>n.op){let e=n;n=r,r=e,this.stack[t-3]=n}return e.mergeCharClass(n,r),this.reuse(r),this.pop(),!0}if(t>=2){let e=this.stack[t-1],r=this.stack[t-2];if(r.op===im.Op.VERTICAL_BAR)return t>=3&&this.cleanAlt(this.stack[t-3]),this.stack[t-2]=e,this.stack[t-1]=r,!0}return!1}parseRightParen(){if(this.concat(),this.swapVerticalBar()&&this.pop(),this.alternate(),this.stack.length<2)throw new n5(e.ERR_UNEXPECTED_PAREN,this.wholeRegexp);let t=this.pop(),r=this.pop();if(r.op!==im.Op.LEFT_PAREN)throw new n5(e.ERR_UNEXPECTED_PAREN,this.wholeRegexp);if(this.flags=r.flags,0!==r.lb){if(e.hasCapture(t))throw new n5(e.ERR_INVALID_CAPTURE_IN_LOOKBEHIND,this.wholeRegexp);r.lb>0?r.op=im.Op.PLB:r.op=im.Op.NLB,r.subs=[t],this.push(r);return}0===r.cap?this.push(t):(r.op=im.Op.CAPTURE,r.subs=[t],this.push(r))}parsePerlClassEscape(e,t){let r=e.pos();if((this.flags&nF.PERL_X)==0||!e.more()||e.pop()!==nG.CODES.get("\\")||!e.more())return!1;e.pop();let n=e.from(r),i=iR.has(n)?iR.get(n):null;return null!==i&&(t.appendGroup(i,(this.flags&nF.FOLD_CASE)!=0),!0)}parseNamedClass(t,r){let n=t.rest(),i=n.indexOf(":]");if(i<0)return!1;let s=n.substring(0,i+2);t.skipString(s);let a=iK.has(s)?iK.get(s):null;if(null===a)throw new n5(e.ERR_INVALID_CHAR_RANGE,s);return r.appendGroup(a,(this.flags&nF.FOLD_CASE)!=0),!0}parseUnicodeClass(t,r){let n,i=t.pos();if((this.flags&nF.UNICODE_GROUPS)==0||!t.lookingAt("\\p")&&!t.lookingAt("\\P"))return!1;t.skip(1);let s=1,a=t.pop();if(a===nG.CODES.get("P")&&(s=-1),!t.more())throw t.rewindTo(i),new n5(e.ERR_INVALID_CHAR_RANGE,t.rest());if((a=t.pop())!==nG.CODES.get("{"))n=nW.runeToString(a);else{let r=t.rest(),s=r.indexOf("}");if(s<0)throw t.rewindTo(i),new n5(e.ERR_INVALID_CHAR_RANGE,t.rest());n=r.substring(0,s),t.skipString(n),t.skip(1)}0!==n.length&&n.codePointAt(0)===nG.CODES.get("^")&&(s=0-s,n=n.substring(1));let o=e.unicodeTable(n);if(null===o)throw new n5(e.ERR_INVALID_CHAR_RANGE,t.from(i));o.sign<0&&(s=0-s);let l=o.tab,u=o.fold;if((this.flags&nF.FOLD_CASE)==0||null===u)r.appendTableWithSign(l,s);else{let e=new iq().appendTable(l).appendTable(u).cleanClass().toArray();r.appendClassWithSign(e,s)}return!0}parseClass(t){let r=t.pos();t.skip(1);let n=this.newRegexp(im.Op.CHAR_CLASS);n.flags=this.flags;let i=new iq,s=1;
11t.more()&&t.lookingAt("^")&&(s=-1,t.skip(1),(this.flags&nF.CLASS_NL)==0&&i.appendRange(nG.CODES.get("\n"),nG.CODES.get("\n")));let a=!0;for(;!t.more()||t.peek()!==nG.CODES.get("]")||a;){if(t.more()&&t.lookingAt("-")&&(this.flags&nF.PERL_X)==0&&!a){let n=t.rest();if("-"===n||!n.startsWith("-]"))throw t.rewindTo(r),new n5(e.ERR_INVALID_CHAR_RANGE,t.rest())}a=!1;let n=t.pos();if(t.lookingAt("[:")){if(this.parseNamedClass(t,i))continue;t.rewindTo(n)}if(this.parseUnicodeClass(t,i)||this.parsePerlClassEscape(t,i))continue;t.rewindTo(n);let s=e.parseClassChar(t,r),o=s;if(t.more()&&t.lookingAt("-")){if(t.skip(1),t.more()&&t.lookingAt("]"))t.skip(-1);else if((o=e.parseClassChar(t,r))<s)throw new n5(e.ERR_INVALID_CHAR_RANGE,t.from(n))}(this.flags&nF.FOLD_CASE)==0?i.appendRange(s,o):i.appendFoldedRange(s,o)}t.skip(1),i.cleanClass(),s<0&&i.negateClass(),n.runes=i.toArray(),this.push(n)}},iW=class e{static initTest(t){let r=e.compile(t),n=new e(r.expr,r.prog,r.numSubexp,r.longest);return n.cond=r.cond,n.prefix=r.prefix,n.prefixUTF8=r.prefixUTF8,n.prefixComplete=r.prefixComplete,n.prefixRune=r.prefixRune,n.prefilter=r.prefilter,n}static compile(t){return e.compileImpl(t,nF.PERL,!1)}static compilePOSIX(t){return e.compileImpl(t,nF.POSIX,!0)}static compileImpl(t,r,n){let i=i$.parse(t,r),s=i.maxCap();i=iT.simplify(i);let a=iE.build(i),o=iD.compileRegexp(i),l=new e(t,o,s,n);l.prefilter=a.type===iy.Type.NONE?null:a;let[u,c]=o.prefix();return l.prefixComplete=u,l.prefix=c,l.prefixUTF8=nW.stringToUtf8ByteArray(l.prefix),l.prefix.length>0&&(l.prefixRune=l.prefix.codePointAt(0)),l.namedGroups=i.namedGroups,l}static match(t,r){return e.compile(t).match(r)}constructor(e,t,r=0,n=0){this.expr=e,this.prog=t,this.numSubexp=r,this.longest=n,this.cond=t.startCond(),this.prefix=null,this.prefixUTF8=null,this.prefixComplete=!1,this.prefixRune=0,this.machinePool=[],this.dfa=new ic(this.prog),this.onepass=iC.compile(this.prog),this.prefilter=null}matchPrefixComplete(e,t,r,n){if((r===nF.ANCHOR_START||r===nF.ANCHOR_BOTH)&&0!==t)return null;let i=-1,s=-1,a=e.prefixLength(this);if(r===nF.UNANCHORED){let r=e.index(this,t);if(r<0)return null;s=(i=t+r)+a}else if(r===nF.ANCHOR_BOTH){if(e.endPos()!==a||0!==e.index(this,0))return null;i=0,s=a}else if(r===nF.ANCHOR_START){if(0!==e.index(this,0))return null;i=0,s=a}if(i<0)return null;if(n>0){let e=new Int32Array(n).fill(-1);return e[0]=i,e[1]=s,Array.from(e)}return[]}executeEngine(e,t,r,n){if(this.prefixComplete&&(0===n||0===this.numSubexp))return this.matchPrefixComplete(e,t,r,n);if(null!==this.prefilter&&r===nF.UNANCHORED&&!this.prefilter.eval(e,t))return null;if(null!==this.onepass)return iC.execute(this,e,t,r,n);if(n>0)return 0===this.prog.numLb&&e.endPos()<=id.maxBitStateLen(this.prog)?id.execute(this,e,t,r,n):this.doExecuteNFA(e,t,r,n);if(0===this.prog.numLb){let i=this.dfa.match(e,t,r);if(null!==i)return i?[]:null;if(e.endPos()<=id.maxBitStateLen(this.prog))return id.execute(this,e,t,r,n)}return this.doExecuteNFA(e,t,r,n)}numberOfCapturingGroups(){return this.numSubexp}numberOfInstructions(){return this.prog.numInst()}get(){return this.machinePool.length>0?this.machinePool.pop():null}reset(){this.machinePool.length=0}put(e){this.machinePool.push(e)}toString(){return this.expr}doExecuteNFA(e,t,r,n){let i=this.get();i||(i=ia.fromRE2(this)),i.init(n);let s=i.match(e,t,r)?i.submatches():null;return this.put(i),s}match(e){return null!==this.executeEngine(n8.fromUTF16(e),0,nF.UNANCHORED,0)}matchWithGroup(e,t,r,n,i){return e instanceof nZ||(e=nW.isByteArray(e)?n1.utf8(e):n1.utf16(e)),this.matchMachineInput(e,t,r,n,i)}matchMachineInput(e,t,r,n,i){if(t>r)return[!1,null];let s=e.isUTF16Encoding()?n8.fromUTF16(e.asCharSequence(),0,r):n8.fromUTF8(e.asBytes(),0,r),a=this.executeEngine(s,t,n,2*i);return null===a?[!1,null]:[!0,a]}matchUTF8(e){return null!==this.executeEngine(n8.fromUTF8(e),0,nF.UNANCHORED,0)}replaceAll(e,t){return this.replaceAllFunc(e,()=>t,2*e.length+1)}replaceFirst(e,t){return this.replaceAllFunc(e,()=>t,1)}replaceAllFunc(e,t,r){let n=0,i=0,s="",a=n8.fromUTF16(e),o=0;for(;i<=e.length;){let l=this.executeEngine(a,i,nF.UNANCHORED,2);if(null===l||0===l.length)break;s+=e.substring(n,l[0]),(l[1]>n||0===l[0])&&(s+=t(e.substring(l[0],l[1])),o++),n=l[1];let u=7&a.step(i);if(i+u>l[1]?i+=u:i+1>l[1]?i++:i=l[1],o>=r)break}return s+e.substring(n)}pad(e){if(null===e)return null;let t=(1+this.numSubexp)*2;if(e.length<t){let r=Array(t).fill(-1);for(let t=0;t<e.length;t++)r[t]=e[t];e=r}return e}allMatches(e,t,r=e=>e){let n=[],i=e.endPos();t<0&&(t=i+1);let s=0,a=0,o=-1;for(;a<t&&s<=i;){let t=this.executeEngine(e,s,nF.UNANCHORED,this.prog.numCap);if(null===t||0===t.length)break;let l=!0;if(t[1]===s){t[0]===o&&(l=!1);let r=e.step(s);r<0?s=i+1:s+=7&r}else s=t[1];o=t[1],l&&(n.push(r(this.pad(t))),a++)}return n}findUTF8(e){let t=this.executeEngine(n8.fromUTF8(e),0,nF.UNANCHORED,2);return null===t?null:e.slice(t[0],t[1])}findUTF8Index(e){let t=this.executeEngine(n8.fromUTF8(e),0,nF.UNANCHORED,2);return null===t?null:t.slice(0,2)}find(e){let t=this.executeEngine(n8.fromUTF16(e),0,nF.UNANCHORED,2);return null===t?"":e.substring(t[0],t[1])}findIndex(e){return this.executeEngine(n8.fromUTF16(e),0,nF.UNANCHORED,2)}findUTF8Submatch(e){let t=this.executeEngine(n8.fromUTF8(e),0,nF.UNANCHORED,this.prog.numCap);if(null===t)return null;let r=Array(1+this.numSubexp).fill(null);for(let n=0;n<r.length;n++)2*n<t.length&&t[2*n]>=0&&(r[n]=e.slice(t[2*n],t[2*n+1]));return r}findUTF8SubmatchIndex(e){return this.pad(this.executeEngine(n8.fromUTF8(e),0,nF.UNANCHORED,this.prog.numCap))}findSubmatch(e){let t=this.executeEngine(n8.fromUTF16(e),0,nF.UNANCHORED,this.prog.numCap);if(null===t)return null;let r=Array(1+this.numSubexp).fill(null);for(let n=0;n<r.length;n++)2*n<t.length&&t[2*n]>=0&&(r[n]=e.substring(t[2*n],t[2*n+1]));return r}findSubmatchIndex(e){return this.pad(this.executeEngine(n8.fromUTF16(e),0,nF.UNANCHORED,this.prog.numCap))}findAllUTF8(e,t){let r=this.allMatches(n8.fromUTF8(e),t,t=>e.slice(t[0],t[1]));return 0===r.length?null:r}findAllUTF8Index(e,t){let r=this.allMatches(n8.fromUTF8(e),t,e=>e.slice(0,2));return 0===r.length?null:r}findAll(e,t){let r=this.allMatches(n8.fromUTF16(e),t,t=>e.substring(t[0],t[1]));return 0===r.length?null:r}findAllIndex(e,t){let r=this.allMatches(n8.fromUTF16(e),t,e=>e.slice(0,2));return 0===r.length?null:r}findAllUTF8Submatch(e,t){let r=this.allMatches(n8.fromUTF8(e),t,t=>
11{let r=Array(t.length/2|0).fill(null);for(let n=0;n<r.length;n++)t[2*n]>=0&&(r[n]=e.slice(t[2*n],t[2*n+1]));return r});return 0===r.length?null:r}findAllUTF8SubmatchIndex(e,t){let r=this.allMatches(n8.fromUTF8(e),t);return 0===r.length?null:r}findAllSubmatch(e,t){let r=this.allMatches(n8.fromUTF16(e),t,t=>{let r=Array(t.length/2|0).fill(null);for(let n=0;n<r.length;n++)t[2*n]>=0&&(r[n]=e.substring(t[2*n],t[2*n+1]));return r});return 0===r.length?null:r}findAllSubmatchIndex(e,t){let r=this.allMatches(n8.fromUTF16(e),t);return 0===r.length?null:r}};nF.UNANCHORED,nF.ANCHOR_START,nF.ANCHOR_BOTH;var iQ=class e{static isHexadecimal(e){return"0"<=e&&e<="9"||"A"<=e&&e<="F"||"a"<=e&&e<="f"}static translate(t){let r="";if(t instanceof RegExp&&(t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t=t.source),"string"!=typeof t)return t;let n="",i=!1,s=t.length;0===s&&(n="(?:)",i=!0);let a=!1,o=0;for(;o<s;){let r=t[o];if("\\"===r){if(o+1<s)switch(r=t[o+1]){case"\\":n+="\\\\",o+=2;continue;case"c":if(o+2<s){let e=t[o+2].charCodeAt(0);if(e>=65&&e<=90||e>=97&&e<=122){let t=e%32;n+="\\x",n+=(t>>4).toString(16).toUpperCase(),n+=(15&t).toString(16).toUpperCase(),o+=3,i=!0;continue}}n+="c",o+=2,i=!0;continue;case"u":if(o+2<s){if("{"===t[o+2]){let r=o+3,a=!1,l=!1;for(;r<s;){let n=t[r];if("}"===n){l=!0;break}if(!e.isHexadecimal(n))break;a=!0,r++}if(l&&a){n+="\\x",o+=2,i=!0;continue}}else if(o+5<s){let r=!0;for(let n=0;n<4;n++)if(!e.isHexadecimal(t[o+2+n])){r=!1;break}if(r){n+="\\x{"+t.substring(o+2,o+6)+"}",o+=6,i=!0;continue}}}n+="u",o+=2,i=!0;continue;case"x":{let r=!1;if(o+2<s&&"{"===t[o+2]){let n=o+3,i=!1,a=!1;for(;n<s;){let r=t[n];if("}"===r){a=!0;break}if(!e.isHexadecimal(r))break;i=!0,n++}a&&i&&(r=!0)}else o+3<s&&e.isHexadecimal(t[o+2])&&e.isHexadecimal(t[o+3])&&(r=!0);r?(n+="\\x",o+=2):(n+="x",o+=2,i=!0);continue}case"n":case"r":case"t":case"a":case"f":case"v":case"d":case"D":case"s":case"S":case"w":case"W":case"b":case"B":case"p":case"P":case"A":case"z":case"Q":case"E":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":n+="\\"+r,o+=2;continue;default:{let e=t.codePointAt(o+1);if(e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122){let r=nW.charCount(e);n+=t.substring(o+1,o+1+r),o+=r+1,i=!0}else{n+="\\";let r=nW.charCount(e);n+=t.substring(o+1,o+1+r),o+=r+1}continue}}}else if("/"===r){n+="\\/",o+=1,i=!0;continue}else if("["===r)a=!0;else if("]"===r)a=!1;else if(!a&&"("===r&&o+2<s&&"?"===t[o+1]&&"<"===t[o+2]&&o+3<s&&!"=!>)".includes(t[o+3])){n+="(?P<",o+=3,i=!0;continue}let l=t.codePointAt(o),u=nW.charCount(l);n+=t.substring(o,o+u),o+=u}let l=i?n:t;return r.length>0?`(?${r})${l}`:l}},iZ=class e{static CASE_INSENSITIVE=1;static DOTALL=2;static MULTILINE=4;static DISABLE_UNICODE_GROUPS=8;static LONGEST_MATCH=16;static LOOKBEHINDS=512;static quote(e){return nW.quoteMeta(e)}static quoteReplacement(e,t=!1){return ir.quoteReplacement(e,t)}static translateRegExp(e){return iQ.translate(e)}static compile(t,r=0){let n=t;if((r&e.CASE_INSENSITIVE)!=0&&(n=`(?i)${n}`),(r&e.DOTALL)!=0&&(n=`(?s)${n}`),(r&e.MULTILINE)!=0&&(n=`(?m)${n}`),(r&~(e.MULTILINE|e.DOTALL|e.CASE_INSENSITIVE|e.DISABLE_UNICODE_GROUPS|e.LONGEST_MATCH|e.LOOKBEHINDS))!=0)throw new ie("Flags should only be a combination of MULTILINE, DOTALL, CASE_INSENSITIVE, DISABLE_UNICODE_GROUPS, LONGEST_MATCH, LOOKBEHINDS");let i=nF.PERL;(r&e.DISABLE_UNICODE_GROUPS)!=0&&(i&=~nF.UNICODE_GROUPS),(r&e.LOOKBEHINDS)!=0&&(i|=nF.LOOKBEHIND);let s=new e(t,r);return s.re2Input=iW.compileImpl(n,i,(r&e.LONGEST_MATCH)!=0),s}static matches(t,r){return e.compile(t).testExact(r)}static initTest(t,r,n){if(null==t)throw Error("pattern is null");if(null==n)throw Error("re2 is null");let i=new e(t,r);return i.re2Input=n,i}constructor(e,t){this.patternInput=e,this.flagsInput=t,this.re2Input=null}reset(){this.re2Input.reset()}flags(){return this.flagsInput}pattern(){return this.patternInput}re2(){return this.re2Input}matches(e){return this.testExact(e)}matcher(e){return nW.isByteArray(e)&&(e=n1.utf8(e)),new ir(this,e)}test(e){return nW.isByteArray(e)?this.re2Input.matchUTF8(e):this.re2Input.match(e)}testExact(e){let t=nW.isByteArray(e)?n8.fromUTF8(e):n8.fromUTF16(e);return null!==this.re2Input.executeEngine(t,0,nF.ANCHOR_BOTH,0)}exec(e){let t=this.matcher(e);if(!t.find())return null;let r=[t.group(0)];for(let e=1;e<=t.groupCount();e++){let n=t.group(e);r.push(null===n?void 0:n)}
11if(r.index=t.start(0),r.input=e,Object.keys(this.namedGroups()).length>0){let e=t.getNamedGroups();for(let t in e)null===e[t]&&(e[t]=void 0);r.groups=e}else r.groups=void 0;return r}split(e,t=0){let r=this.matcher(e),n=[],i=0,s=0;for(;r.find();){if(0===s&&0===r.end()){s=r.end();continue}if(t>0&&n.length===t-1)break;if(s===r.start()){if(0===t){i+=1,s=r.end();continue}}else for(;i>0;)n.push(""),i-=1;n.push(r.substring(s,r.start())),s=r.end()}if(0===t&&s!==r.inputLength()){for(;i>0;)n.push(""),i-=1;n.push(r.substring(s,r.inputLength()))}return 0===t&&(0!==n.length||s===r.inputLength()&&s>0)||n.push(r.substring(s,r.inputLength())),n}*matchAll(e){let t=this.matcher(e);for(;t.find();){let r=[t.group(0)];for(let e=1;e<=t.groupCount();e++){let n=t.group(e);r.push(null===n?void 0:n)}if(r.index=t.start(0),r.input=e,Object.keys(this.namedGroups()).length>0){let e=t.getNamedGroups();for(let t in e)null===e[t]&&(e[t]=void 0);r.groups=e}else r.groups=void 0;yield r}}toString(){return this.patternInput}programSize(){return this.re2Input.numberOfInstructions()}groupCount(){return this.re2Input.numberOfCapturingGroups()}namedGroups(){return this.re2Input.namedGroups}equals(e){return this===e||null!==e&&this.constructor===e.constructor&&this.flagsInput===e.flagsInput&&this.patternInput===e.patternInput}};let iX="12.18.0",i0=new ei("@firebase/firestore");function i1(){return i0.logLevel}function i2(e,...t){if(i0.logLevel<=o.DEBUG){let r=t.map(i8);i0.debug(`Firestore (${iX}): ${e}`,...r)}}function i3(e,...t){if(i0.logLevel<=o.ERROR){let r=t.map(i8);i0.error(`Firestore (${iX}): ${e}`,...r)}}function i6(e,...t){if(i0.logLevel<=o.WARN){let r=t.map(i8);i0.warn(`Firestore (${iX}): ${e}`,...r)}}function i8(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch(t){return e}}function i4(e,t,r){let n="Unexpected state";"string"==typeof t?n=t:r=t,i5(e,n,r)}function i5(e,t,r){let n=`FIRESTORE (${iX}) INTERNAL ASSERTION FAILED: ${t} (ID: ${e.toString(16)})`;if(void 0!==r)try{n+=" CONTEXT: "+JSON.stringify(r)}catch(e){n+=" CONTEXT: "+r}throw i3(n),Error(n)}function i9(e,t,r,n){let i="Unexpected state";"string"==typeof r?i=r:n=r,e||i5(t,i,n)}class i7{static newId(){let e=62*Math.floor(256/62),t="";for(;t.length<20;){let r=function(){let e="u">typeof self&&(self.crypto||self.msCrypto),t=new Uint8Array(40);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(t);else for(let e=0;e<40;e++)t[e]=Math.floor(256*Math.random());return t}();for(let n=0;n<r.length;++n)t.length<20&&r[n]<e&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(r[n]%62))}return t}}function se(e,t){return e<t?-1:+(e>t)}function st(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++){let r=e.charAt(n),i=t.charAt(n);if(r!==i)return sr(r)===sr(i)?se(r,i):sr(r)?1:-1}return se(e.length,t.length)}function sr(e){let t=e.charCodeAt(0);return t>=55296&&t<=57343}function sn(e,t,r){return e.length===t.length&&e.every((e,n)=>r(e,t[n]))}class si{constructor(e,t){this.comparator=e,this.root=t||sa.EMPTY}insert(e,t){return new si(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,sa.BLACK,null,null))}remove(e){return new si(this.comparator,this.root.remove(e,this.comparator).copy(null,null,sa.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){let r=this.comparator(e,t.key);if(0===r)return t.value;r<0?t=t.left:r>0&&(t=t.right)}return null}indexOf(e){let t=0,r=this.root;for(;!r.isEmpty();){let n=this.comparator(e,r.key);if(0===n)return t+r.left.size;n<0?r=r.left:(t+=r.left.size+1,r=r.right)}return -1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((t,r)=>(e(t,r),!1))}toString(){let e=[];return this.inorderTraversal((t,r)=>(e.push(`${t}:${r}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new ss(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new ss(this.root,e,this.comparator,!1)}getReverseIterator(){return new ss(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new ss(this.root,e,this.comparator,!0)}}class ss{constructor(e,t,r,n){this.isReverse=n,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=t?r(e.key,t):1,t&&n&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(0===i){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;let e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class sa{constructor(e,t,r,n,i){this.key=e,this.value=t,this.color=null!=r?r:sa.RED,this.left=null!=n?n:sa.EMPTY,this.right=null!=i?i:sa.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,r,n,i){return new sa(null!=e?e:this.key,null!=t?t:this.value,
11null!=r?r:this.color,null!=n?n:this.left,null!=i?i:this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,r){let n=this,i=r(e,n.key);return(n=i<0?n.copy(null,null,null,n.left.insert(e,t,r),null):0===i?n.copy(null,t,null,null,null):n.copy(null,null,null,null,n.right.insert(e,t,r))).fixUp()}removeMin(){if(this.left.isEmpty())return sa.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),(e=e.copy(null,null,null,e.left.removeMin(),null)).fixUp()}remove(e,t){let r,n=this;if(0>t(e,n.key))n.left.isEmpty()||n.left.isRed()||n.left.left.isRed()||(n=n.moveRedLeft()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed()&&(n=n.rotateRight()),n.right.isEmpty()||n.right.isRed()||n.right.left.isRed()||(n=n.moveRedRight()),0===t(e,n.key)){if(n.right.isEmpty())return sa.EMPTY;r=n.right.min(),n=n.copy(r.key,r.value,null,null,n.right.removeMin())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight())).rotateLeft()).colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=(e=e.rotateRight()).colorFlip()),e}rotateLeft(){let e=this.copy(null,null,sa.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){let e=this.copy(null,null,sa.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){let e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){return Math.pow(2,this.check())<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw i4(43730,{key:this.key,value:this.value});if(this.right.isRed())throw i4(14113,{key:this.key,value:this.value});let e=this.left.check();if(e!==this.right.check())throw i4(27949);return e+ +!this.isRed()}}
11sa.EMPTY=null,sa.RED=!0,sa.BLACK=!1,sa.EMPTY=new class{constructor(){this.size=0}get key(){throw i4(57766)}get value(){throw i4(16141)}get color(){throw i4(16727)}get left(){throw i4(29726)}get right(){throw i4(36894)}copy(e,t,r,n,i){return this}insert(e,t,r){return new sa(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class so{constructor(e){this.comparator=e,this.data=new si(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((t,r)=>(e(t),!1))}forEachInRange(e,t){let r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){let n=r.getNext();if(this.comparator(n.key,e[1])>=0)return;t(n.key)}}forEachWhile(e,t){let r;for(r=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){let t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new sl(this.data.getIterator())}getIteratorFrom(e){return new sl(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach(e=>{t=t.add(e)}),t}isEqual(e){if(!(e instanceof so)||this.size!==e.size)return!1;let t=this.data.getIterator(),r=e.data.getIterator();for(;t.hasNext();){let e=t.getNext().key,n=r.getNext().key;if(0!==this.comparator(e,n))return!1}return!0}toArray(){let e=[];return this.forEach(t=>{e.push(t)}),e}toString(){let e=[];return this.forEach(t=>e.push(t)),"SortedSet("+e.toString()+")"}copy(e){let t=new so(this.comparator);return t.data=e,t}}class sl{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}let su={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class sc extends x{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}let sB="__name__";class sh{constructor(e,t,r){void 0===t?t=0:t>e.length&&i4(637,{offset:t,range:e.length}),void 0===r?r=e.length-t:r>e.length-t&&i4(1746,{length:r,range:e.length-t}),this.segments=e,this.offset=t,this.len=r}get length(){return this.len}isEqual(e){return 0===sh.comparator(this,e)}child(e){let t=this.segments.slice(this.offset,this.limit());return e instanceof sh?e.forEach(e=>{t.push(e)}):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,r=this.limit();t<r;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++){let r=sh.compareSegments(e.get(n),t.get(n));if(0!==r)return r}return se(e.length,t.length)}static compareSegments(e,t){let r=sh.isNumericId(e),n=sh.isNumericId(t);return r&&!n?-1:!r&&n?1:r&&n?sh.extractNumericId(e).compare(sh.extractNumericId(t)):st(e,t)}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return l.fromString(e.substring(4,e.length-2))}}class sd extends sh{construct(e,t,r){return new sd(e,t,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toStringWithLeadingSlash(){return`/${this.canonicalString()}`}
11toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){let t=[];for(let r of e){if(r.indexOf("//")>=0)throw new sc(su.INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);t.push(...r.split("/").filter(e=>e.length>0))}return new sd(t)}static emptyPath(){return new sd([])}}let sp=/^[_a-zA-Z][_a-zA-Z0-9]*$/,sf=class e extends sh{construct(t,r,n){return new e(t,r,n)}static isValidIdentifier(e){return sp.test(e)}canonicalString(){return this.toArray().map(t=>(t=t.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),e.isValidIdentifier(t)||(t="`"+t+"`"),t)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&this.get(0)===sB}static keyField(){return new e([sB])}static fromServerFormat(t){let r=[],n="",i=0,s=()=>{if(0===n.length)throw new sc(su.INVALID_ARGUMENT,`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);r.push(n),n=""},a=!1;for(;i<t.length;){let e=t[i];if("\\"===e){if(i+1===t.length)throw new sc(su.INVALID_ARGUMENT,"Path has trailing escape character: "+t);let e=t[i+1];if("\\"!==e&&"."!==e&&"`"!==e)throw new sc(su.INVALID_ARGUMENT,"Path has invalid escape sequence: "+t);n+=e,i+=2}else"`"===e?a=!a:"."!==e||a?n+=e:s(),i++}if(s(),a)throw new sc(su.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(r)}static emptyPath(){return new e([])}};class sg{constructor(e){this.fields=e,e.sort(sf.comparator)}static empty(){return new sg([])}unionWith(e){let t=new so(sf.comparator);for(let e of this.fields)t=t.add(e);for(let r of e)t=t.add(r);return new sg(t.toArray())}covers(e){for(let t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return sn(this.fields,e.fields,(e,t)=>e.isEqual(t))}}function sC(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}function sm(e,t){for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t(r,e[r])}function s_(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}class sy{constructor(e){this.path=e}static fromPath(e){return new sy(sd.fromString(e))}static fromName(e){return new sy(sd.fromString(e).popFirst(5))}static empty(){return new sy(sd.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===sd.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return sd.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new sy(new sd(e.slice()))}}function sE(e){if(!sy.isDocumentKey(e))throw new sc(su.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${e} has ${e.length}.`)}function sv(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}function sw(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e=`${e.substring(0,20)}...`),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";{var t;let r=(t=e).constructor?t.constructor.name:null;return r?`a custom ${r} object`:"an object"}}return"function"==typeof e?"a function":i4(12329,{type:typeof e})}function sb(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new sc(su.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{let r=sw(e);throw new sc(su.INVALID_ARGUMENT,`Expected type '${t.name}', but it was: ${r}`)}}return e}function sD(e,t){let r={typeString:e};return t&&(r.value=t),r}function sT(e,t){let r;if(!sv(e))throw new sc(su.INVALID_ARGUMENT,"JSON must be an object");for(let n in t)if(t[n]){let i=t[n].typeString,s="value"in t[n]?{value:t[n].value}:void 0;if(!(n in e)){r=`JSON missing required field: '${n}'`;break}let a=e[n];if(i&&typeof a!==i){r=`JSON field '${n}' must be a ${i}.`;break}if(void 0!==s&&a!==s.value){r=`Expected '${n}' field to equal '${s.value}'`;break}}if(r)throw new sc(su.INVALID_ARGUMENT,r);return!0}class sI{static now(){return sI.fromMillis(Date.now())}static fromDate(e){return sI.fromMillis(e.getTime())}static fromMillis(e){let t=Math.floor(e/1e3),r=Math.floor((e-1e3*t)*1e6);return new sI(t,r)}constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0||t>=1e9)throw new sc(su.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-0xe7791f700||e>=0x3afff44180)throw new sc(su.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?se(this.nanoseconds,e.nanoseconds):se(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{type:sI._jsonSchemaVersion,seconds:this.seconds,nanoseconds:this.nanoseconds}}static fromJSON(e){if(sT(e,sI._jsonSchema))return new sI(e.seconds,e.nanoseconds)}valueOf(){return String(this.seconds- -0xe7791f700).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}
11}sI._jsonSchemaVersion="firestore/timestamp/1.0",sI._jsonSchema={type:sD("string",sI._jsonSchemaVersion),seconds:sD("number"),nanoseconds:sD("number")};class sS extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class sA{constructor(e){this.binaryString=e}static fromBase64String(e){return new sA(function(e){try{return atob(e)}catch(e){throw"u">typeof DOMException&&e instanceof DOMException?new sS("Invalid base64 string: "+e):e}}(e))}static fromUint8Array(e){return new sA(function(e){let t="";for(let r=0;r<e.length;++r)t+=String.fromCharCode(e[r]);return t}(e))}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return btoa(this.binaryString)}toUint8Array(){var e=this.binaryString;let t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return se(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}sA.EMPTY_BYTE_STRING=new sA("");let sO=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function sR(e){if(i9(!!e,39018),"string"==typeof e){let t=0,r=sO.exec(e);if(i9(!!r,46558,{timestamp:e}),r[1]){let e=r[1];t=Number(e=(e+"000000000").substr(0,9))}return{seconds:Math.floor(new Date(e).getTime()/1e3),nanos:t}}return{seconds:sN(e.seconds),nanos:sN(e.nanos)}}function sN(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function sP(e){return"string"==typeof e?sA.fromBase64String(e):sA.fromUint8Array(e)}let sk="server_timestamp",sL="__type__",sF="__previous_value__",sx="__local_write_time__";function sM(e){return(e?.mapValue?.fields||{})[sL]?.stringValue===sk}function sG(e){let t=e.mapValue.fields[sF];return sM(t)?sG(t):t}function sU(e){let t=sR(e.mapValue.fields[sx].timestampValue);return new sI(t.seconds,t.nanos)}class sH{constructor(e,t,r,n,i,s,a,o,l,u,c,B,h){this.databaseId=e,this.appId=t,this.persistenceKey=r,this.host=n,this.ssl=i,this.forceLongPolling=s,this.autoDetectLongPolling=a,this.longPollingOptions=o,this.useFetchStreams=l,this.isUsingEmulator=u,this.apiKey=c,this._customHeaders=B,this.grpcFlowControlWindow=h}}let sV="(default)";class sj{constructor(e,t){this.projectId=e,this.database=t||sV}static empty(){return new sj("","")}get isDefaultDatabase(){return this.database===sV}isEqual(e){return e instanceof sj&&e.projectId===this.projectId&&e.database===this.database}}function sz(e){return 0===e&&1/e==-1/0}let sJ="__type__",sK="__max__",sq={fields:{__type__:{stringValue:sK}}},sY="__vector__",s$="value",sW={nullValue:"NULL_VALUE"},sQ={booleanValue:!0},sZ={booleanValue:!1};function sX(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?sM(e)?4:aa(e)?0x1fffffffffffff:an(e)?10:11:i4(28295,{value:e})}function s0(e,t,r){if(e===t)return!0;let n=sX(e);if(n!==sX(t))return!1;switch(n){case 0:case 0x1fffffffffffff:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return sU(e).isEqual(sU(t));case 3:if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;let i=sR(e.timestampValue),s=sR(t.timestampValue);return i.seconds===s.seconds&&i.nanos===s.nanos;case 5:return e.stringValue===t.stringValue;case 6:return sP(e.bytesValue).isEqual(sP(t.bytesValue));case 7:return e.referenceValue===t.referenceValue;case 8:return sN(e.geoPointValue.latitude)===sN(t.geoPointValue.latitude)&&sN(e.geoPointValue.longitude)===sN(t.geoPointValue.longitude);case 2:let a,o;if("integerValue"in e&&"integerValue"in t)return sN(e.integerValue)===sN(t.integerValue);if("doubleValue"in e&&"doubleValue"in t)a=sN(e.doubleValue),o=sN(t.doubleValue);else{if(!r?.t)return!1;a=sN(e.integerValue??e.doubleValue),o=sN(t.integerValue??t.doubleValue)}return a===o?!!r?.i||sz(a)===sz(o):!!(void 0===r||r.o)&&isNaN(a)&&isNaN(o);case 9:return sn(e.arrayValue.values||[],t.arrayValue.values||[],(e,t)=>s0(e,t,r));case 10:case 11:let l=e.mapValue.fields||{},u=t.mapValue.fields||{};if(sC(l)!==sC(u))return!1;for(let e in l)if(l.hasOwnProperty(e)&&(void 0===u[e]||!s0(l[e],u[e],r)))return!1;return!0;default:return i4(52216,{left:e})}}function s1(e,t){return void 0!==(e.values||[]).find(e=>s0(e,t))}function s2(e,t){var r,n,i,s,a,o;if(e===t)return 0;let l=sX(e),u=sX(t);if(l!==u)return se(l,u);switch(l){case 0:case 0x1fffffffffffff:return 0;case 1:return se(e.booleanValue,t.booleanValue);case 2:let c,B;return c=sN(e.integerValue||e.doubleValue),c<(B=sN(t.integerValue||t.doubleValue))?-1:c>B?1:c===B?0:isNaN(c)?isNaN(B)?0:-1:1;case 3:return s3(e.timestampValue,t.timestampValue);case 4:return s3(sU(e),sU(t));case 5:return st(e.stringValue,t.stringValue);case 6:let h,d;return r=e.bytesValue,n=t.bytesValue,h=sP(r),d=sP(n),h.compareTo(d);case 7:return function(e,t){let r=e.split("/"),n=t.split("/");for(let e=0;e<r.length&&e<n.length;e++){let t=se(r[e],n[e]);if(0!==t)return t}return se(r.length,n.length)}(e.referenceValue,t.referenceValue);case 8:let p;return i=e.geoPointValue,s=t.geoPointValue,0!==(p=se(sN(i.latitude),sN(s.latitude)))?p:se(sN(i.longitude),sN(s.longitude));case 9:return s6(e.arrayValue,t.arrayValue);case 10:let f,g,C,m,_;return a=e.mapValue,o=t.mapValue,f=a.fields||{},g=o.fields||{},C=f[s$]?.arrayValue,m=g[s$]?.arrayValue,0!==(_=se(C?.values?.length||0,m?.values?.length||0))?_:s6(C,m);case 11:return function(e,t){if(e===sq&&t===sq)return 0;if(e===sq)return 1;if(t===sq)return -1;let r=e.fields||{},n=Object.keys(r),i=t.fields||{},s=Object.keys(i);n.sort(),s.sort();for(let e=0;e<n.length&&e<s.length;++e){let t=st(n[e],s[e]);if(0!==t)return t;let a=s2(r[n[e]],i[s[e]]);if(0!==a)return a}return se(n.length,s.length)}(e.mapValue,t.mapValue);default:throw i4(23264,{u:l})}}function s3(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return se(e,t);let r=sR(e),n=sR(t),i=se(r.seconds,n.seconds);return 0!==i?i:se(r.nanos,n.nanos)}function s6(e,t){let r=e.values||[],n=t.values||[];for(let e=0;e<r.length&&e<n.length;++e){let t=s2(r[e],n[e]);if(void 0!==t&&0!==t)return t}return se(r.length,n.length)}function s8(e){var t,r;let n;return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?(n=sR(e.timestampValue),`time(${n.seconds},${n.nanos}
11)`):"stringValue"in e?e.stringValue:"bytesValue"in e?sP(e.bytesValue).toBase64():"referenceValue"in e?(t=e.referenceValue,sy.fromName(t).toString()):"geoPointValue"in e?(r=e.geoPointValue,`geo(${r.latitude},${r.longitude})`):"arrayValue"in e?function(e){let t="[",r=!0;for(let n of e.values||[])r?r=!1:t+=",",t+=s8(n);return t+"]"}(e.arrayValue):"mapValue"in e?function(e){let t=Object.keys(e.fields||{}).sort(),r="{",n=!0;for(let i of t)n?n=!1:r+=",",r+=`${i}:${s8(e.fields[i])}`;return r+"}"}(e.mapValue):i4(61005,{value:e})}function s4(e){return!!e&&"integerValue"in e}function s5(e){return!!e&&"doubleValue"in e}function s9(e){return s4(e)||s5(e)}function s7(e){return!!e&&"arrayValue"in e}function ae(e){return!!e&&"nullValue"in e}function at(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function ar(e){return!!e&&"mapValue"in e}function an(e){return(e?.mapValue?.fields||{})[sJ]?.stringValue===sY}function ai(e){return(e?.mapValue?.fields||{})[s$]?.arrayValue}function as(e){if(e.geoPointValue)return{geoPointValue:{...e.geoPointValue}};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:{...e.timestampValue}};if(e.mapValue){let t={mapValue:{fields:{}}};return sm(e.mapValue.fields,(e,r)=>t.mapValue.fields[e]=as(r)),t}if(e.arrayValue){let t={arrayValue:{values:[]}};for(let r=0;r<(e.arrayValue.values||[]).length;++r)t.arrayValue.values[r]=as(e.arrayValue.values[r]);return t}return{...e}}function aa(e){return(((e.mapValue||{}).fields||{}).__type__||{}).stringValue===sK}class ao{constructor(e){this.value=e}static empty(){return new ao({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let r=0;r<e.length-1;++r)if(!ar(t=(t.mapValue.fields||{})[e.get(r)]))return null;return(t=(t.mapValue.fields||{})[e.lastSegment()])||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=as(t)}setAll(e){let t=sf.emptyPath(),r={},n=[];e.forEach((e,i)=>{if(!t.isImmediateParentOf(i)){let e=this.getFieldsMap(t);this.applyChanges(e,r,n),r={},n=[],t=i.popLast()}e?r[i.lastSegment()]=as(e):n.push(i.lastSegment())});let i=this.getFieldsMap(t);this.applyChanges(i,r,n)}delete(e){let t=this.field(e.popLast());ar(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return s0(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let r=0;r<e.length;++r){let n=t.mapValue.fields[e.get(r)];ar(n)&&n.mapValue.fields||(n={mapValue:{fields:{}}},t.mapValue.fields[e.get(r)]=n),t=n}return t.mapValue.fields}applyChanges(e,t,r){for(let n of(sm(t,(t,r)=>e[t]=r),r))delete e[n]}clone(){return new ao(as(this.value))}}function al(e,t){if(e.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:sz(t)?"-0":t}}function au(e){return{integerValue:""+e}}function ac(e,t,r){return"number"==typeof t&&Number.isInteger(t)&&!sz(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER?au(t):al(e,t)}class aB{constructor(){this._=void 0}}class ah extends aB{}class ad extends aB{constructor(e){super(),this.elements=e}}function ap(e,t){let r=aw(t);for(let t of e.elements)r.some(e=>s0(e,t))||r.push(t);return{arrayValue:{values:r}}}class af extends aB{constructor(e){super(),this.elements=e}}function ag(e,t){let r=aw(t);for(let t of e.elements)r=r.filter(e=>!s0(e,t));return{arrayValue:{values:r}}}class aC extends aB{constructor(e,t){super(),this.serializer=e,this.l=t}}class am extends aC{}class a_ extends aC{}class ay extends aC{}function aE(e,t,r){if(!s9(t))return e.l;let n=r(av(t),av(e.l));return s4(t)&&s4(e.l)?au(n):al(e.serializer,n)}function av(e){return sN(e.integerValue||e.doubleValue)}function aw(e){return s7(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}class ab{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new ab}static exists(e){return new ab(void 0,e)}static updateTime(e){return new ab(e)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function aD(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}class aT{}function aI(e,t){if(!e.hasLocalMutations||t&&0===t.fields.length)return null;if(null===t)return e.isNoDocument()?new aL(e.key,ab.none()):new aO(e.key,e.data,ab.none());{let r=e.data,n=ao.empty(),i=new so(sf.comparator);for(let e of t.fields)if(!i.has(e)){let t=r.field(e);null===t&&e.length>1&&(e=e.popLast(),t=r.field(e)),null===t?n.delete(e):n.set(e,t),i=i.add(e)}return new aR(e.key,n,new sg(i.toArray()),ab.none())}}function aS(e,t,r,n){return e instanceof aO?function(e,t,r,n){if(!aD(e.precondition,t))return r;let i=e.value.clone(),s=ak(e.fieldTransforms,n,t);return i.setAll(s),t.convertToFoundDocument(t.version,i).setHasLocalMutations(),null}(e,t,r,n):e instanceof aR?function(e,t,r,n){if(!aD(e.precondition,t))return r;let i=ak(e.fieldTransforms,n,t),s=t.data;return(s.setAll(aN(e)),s.setAll(i),t.convertToFoundDocument(t.version,s).setHasLocalMutations(),null===r)?null:r.unionWith(e.fieldMask.fields).unionWith(e.fieldTransforms.map(e=>e.field))}(e,t,r,n):aD(e.precondition,t)?(t.convertToNoDocument(t.version).setHasLocalMutations(),null):r}function aA(e,t){var r,n;return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&(r=e.fieldTransforms,n=t.fieldTransforms,!!(void 0===r&&void 0===n||!(!r||!n)&&sn(r,n,(e,t)=>{var r,n;return e.field.isEqual(t.field)&&(r=e.transform,n=t.transform,r instanceof ad&&n instanceof ad||r instanceof af&&n instanceof af?sn(r.elements,n.elements,s0):r instanceof am&&n instanceof am||r instanceof a_&&n instanceof a_||r instanceof ay&&n instanceof ay?s0(r.l,n.l):r instanceof ah&&n instanceof ah)}
11)))&&(0===e.type?e.value.isEqual(t.value):1!==e.type||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask))}class aO extends aT{constructor(e,t,r,n=[]){super(),this.key=e,this.value=t,this.precondition=r,this.fieldTransforms=n,this.type=0}getFieldMask(){return null}}class aR extends aT{constructor(e,t,r,n,i=[]){super(),this.key=e,this.data=t,this.fieldMask=r,this.precondition=n,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}}function aN(e){let t=new Map;return e.fieldMask.fields.forEach(r=>{if(!r.isEmpty()){let n=e.data.field(r);t.set(r,n)}}),t}function aP(e,t,r){let n=new Map;i9(e.length===r.length,32656,{h:r.length,T:e.length});for(let s=0;s<r.length;s++){var i;let a=e[s],o=a.transform,l=t.data.field(a.field);n.set(a.field,(i=r[s],o instanceof ad?ap(o,l):o instanceof af?ag(o,l):i))}return n}function ak(e,t,r){let n=new Map;for(let i of e){let e=i.transform,s=r.data.field(i.field);n.set(i.field,function(e,t,r){var n,i,s;let a,o,l;return e instanceof ah?(n=t,a={fields:{[sL]:{stringValue:sk},[sx]:{timestampValue:{seconds:r.seconds,nanos:r.nanoseconds}}}},n&&sM(n)&&(n=sG(n)),n&&(a.fields[sF]=n),{mapValue:a}):e instanceof ad?ap(e,t):e instanceof af?ag(e,t):e instanceof am?(i=e,s=t,l=av(o=i instanceof am?s9(s)?s:{integerValue:0}:null)+av(e.l),s4(o)&&s4(e.l)?au(l):al(e.serializer,l)):e instanceof a_?aE(e,t,Math.min):e instanceof ay?aE(e,t,Math.max):void 0}(e,s,t))}return n}class aL extends aT{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class aF{constructor(e,t){this.position=e,this.inclusive=t}}function ax(e,t,r){let n=0;for(let i=0;i<e.position.length;i++){let s=t[i],a=e.position[i];if(n=s.field.isKeyField()?sy.comparator(sy.fromName(a.referenceValue),r.key):s2(a,r.data.field(s.field)),"desc"===s.dir&&(n*=-1),0!==n)break}return n}function aM(e,t){if(null===e)return null===t;if(null===t||e.inclusive!==t.inclusive||e.position.length!==t.position.length)return!1;for(let r=0;r<e.position.length;r++)if(!s0(e.position[r],t.position[r]))return!1;return!0}class aG{}class aU extends aG{constructor(e,t,r){super(),this.field=e,this.op=t,this.value=r}static create(e,t,r){return e.isKeyField()?"in"===t||"not-in"===t?this.createKeyFieldInFilter(e,t,r):new az(e,t,r):"array-contains"===t?new aY(e,r):"in"===t?new a$(e,r):"not-in"===t?new aW(e,r):"array-contains-any"===t?new aQ(e,r):new aU(e,t,r)}static createKeyFieldInFilter(e,t,r){return"in"===t?new aJ(e,r):new aK(e,r)}matches(e){let t=e.data.field(this.field);return"!="===this.op?null!==t&&void 0===t.nullValue&&this.matchesComparison(s2(t,this.value)):null!==t&&sX(this.value)===sX(t)&&this.matchesComparison(s2(t,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return i4(47266,{operator:this.op})}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class aH extends aG{constructor(e,t){super(),this.filters=e,this.op=t,this.P=null}static create(e,t){return new aH(e,t)}matches(e){return aV(this)?void 0===this.filters.find(t=>!t.matches(e)):void 0!==this.filters.find(t=>t.matches(e))}getFlattenedFilters(){return null!==this.P||(this.P=this.filters.reduce((e,t)=>e.concat(t.getFlattenedFilters()),[])),this.P}getFilters(){return Object.assign([],this.filters)}}function aV(e){return"and"===e.op}function aj(e){for(let t of e.filters)if(t instanceof aH)return!1;return!0}class az extends aU{constructor(e,t,r){super(e,t,r),this.key=sy.fromName(r.referenceValue)}matches(e){let t=sy.comparator(e.key,this.key);return this.matchesComparison(t)}}class aJ extends aU{constructor(e,t){super(e,"in",t),this.keys=aq("in",t)}matches(e){return this.keys.some(t=>t.isEqual(e.key))}}class aK extends aU{constructor(e,t){super(e,"not-in",t),this.keys=aq("not-in",t)}matches(e){return!this.keys.some(t=>t.isEqual(e.key))}}function aq(e,t){return(t.arrayValue?.values||[]).map(e=>sy.fromName(e.referenceValue))}class aY extends aU{constructor(e,t){super(e,"array-contains",t)}matches(e){let t=e.data.field(this.field);return s7(t)&&s1(t.arrayValue,this.value)}}class a$ extends aU{constructor(e,t){super(e,"in",t)}matches(e){let t=e.data.field(this.field);return null!==t&&s1(this.value.arrayValue,t)}}class aW extends aU{constructor(e,t){super(e,"not-in",t)}matches(e){if(s1(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;let t=e.data.field(this.field);return null!==t&&void 0===t.nullValue&&!s1(this.value.arrayValue,t)}}class aQ extends aU{constructor(e,t){super(e,"array-contains-any",t)}matches(e){let t=e.data.field(this.field);return!(!s7(t)||!t.arrayValue.values)&&t.arrayValue.values.some(e=>s1(this.value.arrayValue,e))}}class aZ{constructor(e,t="asc"){this.field=e,this.dir=t}}class aX{static fromTimestamp(e){return new aX(e)}static min(){return new aX(new sI(0,0))}static max(){return new aX(new sI(0x3afff4417f,0x3b9ac9ff))}constructor(e){this.timestamp=e}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class a0{constructor(e,t,r,n,i,s,a){this.key=e,this.documentType=t,this.version=r,this.readTime=n,this.createTime=i,this.data=s,this.documentState=a}static newInvalidDocument(e){return new a0(e,0,aX.min(),aX.min(),aX.min(),ao.empty(),0)}static newFoundDocument(e,t,r,n){return new a0(e,1,t,aX.min(),r,n,0)}static newNoDocument(e,t){return new a0(e,2,t,aX.min(),aX.min(),ao.empty(),0)}static newUnknownDocument(e,t){return new a0(e,3,t,aX.min(),aX.min(),ao.empty(),2)}convertToFoundDocument(e,t){return this.createTime.isEqual(aX.min())&&(2===this.documentType||0===this.documentType)&&(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=ao.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=ao.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=aX.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(e){return e instanceof a0&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new a0(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}
11class a1{constructor(e,t,r){this.readTime=e,this.documentKey=t,this.largestBatchId=r}static min(){return new a1(aX.min(),sy.empty(),-1)}static max(){return new a1(aX.max(),sy.empty(),-1)}}class a2{constructor(e,t=null,r=[],n=[],i=null,s=null,a=null){this.path=e,this.collectionGroup=t,this.orderBy=r,this.filters=n,this.limit=i,this.startAt=s,this.endAt=a,this.R=null}}function a3(e,t=null,r=[],n=[],i=null,s=null,a=null){return new a2(e,t,r,n,i,s,a)}function a6(e){if(null===e.R){let t=e.path.canonicalString();null!==e.collectionGroup&&(t+="|cg:"+e.collectionGroup),t+="|f:",t+=e.filters.map(e=>(function e(t){if(t instanceof aU)return t.field.canonicalString()+t.op.toString()+s8(t.value);if(aj(t)&&aV(t))return t.filters.map(t=>e(t)).join(",");{let r=t.filters.map(t=>e(t)).join(",");return`${t.op}(${r})`}})(e)).join(","),t+="|ob:",t+=e.orderBy.map(e=>e.field.canonicalString()+e.dir).join(","),null==e.limit||(t+="|l:",t+=e.limit),e.startAt&&(t+="|lb:",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map(e=>s8(e)).join(",")),e.endAt&&(t+="|ub:",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map(e=>s8(e)).join(",")),e.R=t}return e.R}function a8(e,t){if(e.limit!==t.limit||e.orderBy.length!==t.orderBy.length)return!1;for(let i=0;i<e.orderBy.length;i++){var r,n;if(r=e.orderBy[i],n=t.orderBy[i],!(r.dir===n.dir&&r.field.isEqual(n.field)))return!1}if(e.filters.length!==t.filters.length)return!1;for(let r=0;r<e.filters.length;r++)if(!function e(t,r){return t instanceof aU?r instanceof aU&&t.op===r.op&&t.field.isEqual(r.field)&&s0(t.value,r.value):t instanceof aH?r instanceof aH&&t.op===r.op&&t.filters.length===r.filters.length&&t.filters.reduce((t,n,i)=>t&&e(n,r.filters[i]),!0):void i4(19439)}(e.filters[r],t.filters[r]))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!aM(e.startAt,t.startAt)&&aM(e.endAt,t.endAt)}function a4(e){return!!e.isCorePipeline}function a5(e){return!!e.path&&sy.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}class a9{constructor(e,t=null,r=[],n=[],i=null,s="F",a=null,o=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=r,this.filters=n,this.limit=i,this.limitType=s,this.startAt=a,this.endAt=o,this.I=null,this.A=null,this.V=null,this.startAt,this.endAt}}function a7(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.explicitOrderBy.length||1===e.explicitOrderBy.length&&e.explicitOrderBy[0].field.isKeyField())}function oe(e){if(null===e.I){let t;e.I=[];let r=new Set;for(let t of e.explicitOrderBy)e.I.push(t),r.add(t.field.canonicalString());let n=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(t=new so(sf.comparator),e.filters.forEach(e=>{e.getFlattenedFilters().forEach(e=>{e.isInequality()&&(t=t.add(e.field))})}),t).forEach(t=>{r.has(t.canonicalString())||t.isKeyField()||e.I.push(new aZ(t,n))}),r.has(sf.keyField().canonicalString())||e.I.push(new aZ(sf.keyField(),n))}return e.I}function ot(e){return e.A||(e.A=function(e,t){if("F"===e.limitType)return a3(e.path,e.collectionGroup,t,e.filters,e.limit,e.startAt,e.endAt);{t=t.map(e=>{let t="desc"===e.dir?"asc":"desc";return new aZ(e.field,t)});let r=e.endAt?new aF(e.endAt.position,e.endAt.inclusive):null,n=e.startAt?new aF(e.startAt.position,e.startAt.inclusive):null;return a3(e.path,e.collectionGroup,t,e.filters,e.limit,r,n)}}(e,oe(e))),e.A}function or(e,t,r){return new a9(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,r,e.startAt,e.endAt)}function on(e){var t;let r;return`Query(target=${r=(t=ot(e)).path.canonicalString(),null!==t.collectionGroup&&(r+=" collectionGroup="+t.collectionGroup),t.filters.length>0&&(r+=`, filters: [${t.filters.map(e=>(function e(t){return t instanceof aU?`${t.field.canonicalString()} ${t.op} ${s8(t.value)}`:t instanceof aH?t.op.toString()+" {"+t.getFilters().map(e).join(" ,")+"}":"Filter"})(e)).join(", ")}]`),null==t.limit||(r+=", limit: "+t.limit),t.orderBy.length>0&&(r+=`, orderBy: [${t.orderBy.map(e=>`${e.field.canonicalString()} (${e.dir})`).join(", ")}]`),t.startAt&&(r+=", startAt: ",r+=t.startAt.inclusive?"b:":"a:",r+=t.startAt.position.map(e=>s8(e)).join(",")),t.endAt&&(r+=", endAt: ",r+=t.endAt.inclusive?"a:":"b:",r+=t.endAt.position.map(e=>s8(e)).join(",")),`Target(${r})`}; limitType=${e.limitType})`}function oi(e,t){var r,n,i,s;let a,o,l;
11return t.isFoundDocument()&&(a=t.key.path,null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(a):sy.isDocumentKey(e.path)?e.path.isEqual(a):e.path.isImmediateParentOf(a))&&function(e,t){for(let r of oe(e))if(!r.field.isKeyField()&&null===t.data.field(r.field))return!1;return!0}(e,t)&&function(e,t){for(let r of e.filters)if(!r.matches(t))return!1;return!0}(e,t)&&(r=e,n=t,(!r.startAt||(i=r.startAt,o=ax(i,oe(r),n),i.inclusive?!!(o<=0):!!(o<0)))&&(!r.endAt||(s=r.endAt,l=ax(s,oe(r),n),s.inclusive?!!(l>=0):!!(l>0))))}function os(e){return(t,r)=>{let n=!1;for(let i of oe(e)){let e=function(e,t,r){var n;let i,s,a=e.field.isKeyField()?sy.comparator(t.key,r.key):(n=e.field,i=t.data.field(n),s=r.data.field(n),null!==i&&null!==s?s2(i,s):i4(42886));switch(e.dir){case"asc":return a;case"desc":return -1*a;default:return i4(19790,{direction:e.dir})}}(i,t,r);if(0!==e)return e;n=n||i.field.isKeyField()}return 0}}class oa{constructor(e,t){this.count=e,this.unchangedNames=t}}function oo(e){if(void 0===e)return i3("GRPC error has no .code"),su.UNKNOWN;switch(e){case m.OK:return su.OK;case m.CANCELLED:return su.CANCELLED;case m.UNKNOWN:return su.UNKNOWN;case m.DEADLINE_EXCEEDED:return su.DEADLINE_EXCEEDED;case m.RESOURCE_EXHAUSTED:return su.RESOURCE_EXHAUSTED;case m.INTERNAL:return su.INTERNAL;case m.UNAVAILABLE:return su.UNAVAILABLE;case m.UNAUTHENTICATED:return su.UNAUTHENTICATED;case m.INVALID_ARGUMENT:return su.INVALID_ARGUMENT;case m.NOT_FOUND:return su.NOT_FOUND;case m.ALREADY_EXISTS:return su.ALREADY_EXISTS;case m.PERMISSION_DENIED:return su.PERMISSION_DENIED;case m.FAILED_PRECONDITION:return su.FAILED_PRECONDITION;case m.ABORTED:return su.ABORTED;case m.OUT_OF_RANGE:return su.OUT_OF_RANGE;case m.UNIMPLEMENTED:return su.UNIMPLEMENTED;case m.DATA_LOSS:return su.DATA_LOSS;default:return i4(39323,{code:e})}}(_=m||(m={}))[_.OK=0]="OK",_[_.CANCELLED=1]="CANCELLED",_[_.UNKNOWN=2]="UNKNOWN",_[_.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",_[_.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",_[_.NOT_FOUND=5]="NOT_FOUND",_[_.ALREADY_EXISTS=6]="ALREADY_EXISTS",_[_.PERMISSION_DENIED=7]="PERMISSION_DENIED",_[_.UNAUTHENTICATED=16]="UNAUTHENTICATED",_[_.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",_[_.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",_[_.ABORTED=10]="ABORTED",_[_.OUT_OF_RANGE=11]="OUT_OF_RANGE",_[_.UNIMPLEMENTED=12]="UNIMPLEMENTED",_[_.INTERNAL=13]="INTERNAL",_[_.UNAVAILABLE=14]="UNAVAILABLE",_[_.DATA_LOSS=15]="DATA_LOSS";class ol{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){let t=this.mapKeyFn(e),r=this.inner[t];if(void 0!==r){for(let[t,n]of r)if(this.equalsFn(t,e))return n}}has(e){return void 0!==this.get(e)}set(e,t){let r=this.mapKeyFn(e),n=this.inner[r];if(void 0===n)return this.inner[r]=[[e,t]],void this.innerSize++;for(let r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return void(n[r]=[e,t]);n.push([e,t]),this.innerSize++}delete(e){let t=this.mapKeyFn(e),r=this.inner[t];if(void 0===r)return!1;for(let n=0;n<r.length;n++)if(this.equalsFn(r[n][0],e))return 1===r.length?delete this.inner[t]:r.splice(n,1),this.innerSize--,!0;return!1}forEach(e){sm(this.inner,(t,r)=>{for(let[t,n]of r)e(t,n)})}isEmpty(){return s_(this.inner)}size(){return this.innerSize}}let ou=new si(sy.comparator),oc=new si(sy.comparator);function oB(...e){let t=oc;for(let r of e)t=t.insert(r.key,r);return t}function oh(){return new ol(e=>e.toString(),(e,t)=>e.isEqual(t))}new si(sy.comparator);let od=new so(sy.comparator);function op(...e){let t=od;for(let r of e)t=t.add(r);return t}let of=new so(se),og=new l([0xffffffff,0xffffffff],0);function oC(e){let t=(new TextEncoder).encode(e),r=new u;return r.update(t),new Uint8Array(r.digest())}function om(e){let t=new DataView(e.buffer),r=t.getUint32(0,!0),n=t.getUint32(4,!0),i=t.getUint32(8,!0),s=t.getUint32(12,!0);return[new l([r,n],0),new l([i,s],0)]}class o_{constructor(e,t,r){if(this.bitmap=e,this.padding=t,this.hashCount=r,t<0||t>=8)throw new oy(`Invalid padding: ${t}`);if(r<0||e.length>0&&0===this.hashCount)throw new oy(`Invalid hash count: ${r}`);if(0===e.length&&0!==t)throw new oy(`Invalid padding when bitmap length is 0: ${t}`);this.m=8*e.length-t,this.p=l.fromNumber(this.m)}S(e,t,r){let n=e.add(t.multiply(l.fromNumber(r)));return 1===n.compare(og)&&(n=new l([n.getBits(0),n.getBits(1)],0)),n.modulo(this.p).toNumber()}v(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(0===this.m)return!1;let[t,r]=om(oC(e));for(let e=0;e<this.hashCount;e++){let n=this.S(t,r,e);if(!this.v(n))return!1}return!0}static create(e,t,r){let n=new o_(new Uint8Array(Math.ceil(e/8)),e%8==0?0:8-e%8,t);
11return r.forEach(e=>n.insert(e)),n}insert(e){if(0===this.m)return;let[t,r]=om(oC(e));for(let e=0;e<this.hashCount;e++){let n=this.S(t,r,e);this.D(n)}}D(e){let t=Math.floor(e/8);this.bitmap[t]|=1<<e%8}}class oy extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}class oE{constructor(e,t,r,n,i,s){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=r,this.documentUpdates=n,this.augmentedDocumentUpdates=i,this.resolvedLimboDocuments=s}static createSynthesizedRemoteEventForCurrentChange(e,t,r){let n=new Map;return n.set(e,ov.createSynthesizedTargetChangeForCurrentChange(e,t,r)),new oE(aX.min(),n,new si(se),ou,ou,op())}}class ov{constructor(e,t,r,n,i){this.resumeToken=e,this.current=t,this.addedDocuments=r,this.modifiedDocuments=n,this.removedDocuments=i}static createSynthesizedTargetChangeForCurrentChange(e,t,r){return new ov(r,t,op(),op(),op())}}class ow{constructor(e,t,r,n){this.C=e,this.removedTargetIds=t,this.key=r,this.F=n}}class ob{constructor(e,t){this.targetId=e,this.O=t}}class oD{constructor(e,t,r=sA.EMPTY_BYTE_STRING,n=null){this.state=e,this.targetIds=t,this.resumeToken=r,this.cause=n}}class oT{constructor(e){this.targetId=e,this.M=0,this.N=oO(),this.L=sA.EMPTY_BYTE_STRING,this.B=!1,this.U=!0}get current(){return this.B}get resumeToken(){return this.L}get k(){return 0!==this.M}get q(){return this.U}$(e){e.approximateByteSize()>0&&(this.U=!0,this.L=e)}K(){let e=op(),t=op(),r=op();return this.N.forEach((n,i)=>{switch(i){case 0:e=e.add(n);break;case 2:t=t.add(n);break;case 1:r=r.add(n);break;default:i4(38017,{changeType:i})}}),new ov(this.L,this.B,e,t,r)}W(){this.U=!1,this.N=oO()}G(e,t){this.U=!0,this.N=this.N.insert(e,t)}j(e){this.U=!0,this.N=this.N.remove(e)}H(){this.M+=1}J(){this.M-=1,i9(this.M>=0,3241,{M:this.M,targetId:this.targetId})}Y(){this.U=!0,this.B=!0}}let oI="WatchChangeAggregator";class oS{constructor(e){this.Z=e,this.X=new Map,this.ee=ou,this.te=oA(),this.ne=ou,this.re=oA(),this.ie=new si(se)}se(e){for(let t of e.C)e.F&&e.F.isFoundDocument()?this._e(t,e.F):this.oe(t,e.key,e.F);for(let t of e.removedTargetIds)this.oe(t,e.key,e.F)}ae(e){this.forEachTarget(e,t=>{let r=this.X.get(t);if(r)switch(e.state){case 0:this.ue(t)&&r.$(e.resumeToken);break;case 1:r.J(),r.k||r.W(),r.$(e.resumeToken);break;case 2:r.J(),r.k||this.removeTarget(t);break;case 3:this.ue(t)&&(r.Y(),r.$(e.resumeToken));break;case 4:this.ue(t)&&(this.ce(t),r.$(e.resumeToken));break;default:i4(56790,{state:e.state})}else i2(oI,`handleTargetChange received targetChange for untracked target ID (${t}) with state (${e.state})`)})}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.X.forEach((e,r)=>{this.ue(r)&&t(r)})}le(e){return a4(e)?"documents"===e.getPipelineSourceType()&&1===e.getPipelineDocuments()?.length:a5(e)}Ee(e){let t=e.targetId,r=e.O.count,n=this.he(t);if(n){let i=n.target;if(this.le(i))if(0===r){let e=new sy(a4(i)?sd.fromString(i.getPipelineDocuments()[0]):i.path);this.oe(t,e,a0.newNoDocument(e,aX.min()))}else i9(1===r,20013,"Single document existence filter with count: "+r);else{let n=this.Te(t);if(n!==r){let r=this.Pe(e),i=r?this.Re(r,e,n):1;0!==i&&(this.ce(t),this.ie=this.ie.insert(t,2===i?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Pe(e){let t,r,n=e.O.unchangedNames;if(!n||!n.bits)return null;let{bits:{bitmap:i="",padding:s=0},hashCount:a=0}=n;try{t=sP(i).toUint8Array()}catch(e){if(e instanceof sS)return i6("Decoding the base64 bloom filter in existence filter failed ("+e.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw e}try{r=new o_(t,s,a)}catch(e){return i6(e instanceof oy?"BloomFilter error: ":"Applying bloom filter failed: ",e),null}return 0===r.m?null:r}Re(e,t,r){return 2*(t.O.count!==r-this.Ve(e,t.targetId))}Ve(e,t){let r=this.Z.getRemoteKeysForTarget(t),n=0;return r.forEach(r=>{let i=this.Z.Ae(),s=`projects/${i.projectId}/databases/${i.database}/documents/${r.path.canonicalString()}`;e.mightContain(s)||(this.oe(t,r,null),n++)}),n}de(e){let t=new Map;this.X.forEach((r,n)=>{let i=this.he(n);if(i){if(r.current&&this.le(i.target)){let t=new sy(a4(i.target)?sd.fromString(i.target.getPipelineDocuments()[0]):i.target.path);this.fe(t).has(n)||this.me(n,t)||this.oe(n,t,a0.newNoDocument(t,e))}r.q&&(t.set(n,r.K()),r.W())}});let r=op();this.re.forEach((e,t)=>{let n=!0;t.forEachWhile(e=>{let t=this.he(e);return!t||"TargetPurposeLimboResolution"===t.purpose||(n=!1,!1)}),n&&(r=r.add(e))}),this.ee.forEach((t,r)=>r.setReadTime(e)),this.ne.forEach((t,r)=>r.setReadTime(e));let n=new oE(e,t,this.ie,this.ee,this.ne,r);return this.ee=ou,this.te=oA(),this.ne=ou,this.re=oA(),this.ie=new si(se),n}_e(e,t){let r=this.X.get(e);if(!r||!this.ue(e))return void i2(oI,`addDocumentToTarget received document for unknown inactive target (${e})`);
11let n=2*!!this.me(e,t.key);r.G(t.key,n),a4(this.he(e).target)&&"exact"!==this.he(e).target.getPipelineFlavor()?this.ne=this.ne.insert(t.key,t):this.ee=this.ee.insert(t.key,t),this.te=this.te.insert(t.key,this.fe(t.key).add(e)),this.re=this.re.insert(t.key,this.pe(t.key).add(e))}oe(e,t,r){let n=this.X.get(e);n&&this.ue(e)?(this.me(e,t)?n.G(t,1):n.j(t),this.re=this.re.insert(t,this.pe(t).delete(e)),this.re=this.re.insert(t,this.pe(t).add(e)),r&&(a4(this.he(e).target)&&"exact"!==this.he(e).target.getPipelineFlavor()?this.ne=this.ne.insert(t,r):this.ee=this.ee.insert(t,r))):i2(oI,`removeDocumentFromTarget received document for unknown or inactive target (${e})`)}removeTarget(e){this.X.delete(e)}Te(e){let t=this.X.get(e);if(!t)return 0;let r=t.K();return this.Z.getRemoteKeysForTarget(e).size+r.addedDocuments.size-r.removedDocuments.size}H(e){let t=this.X.get(e);t||(i2(oI,`recordPendingTargetRequest set up tracking for target ID ${e}`),t=new oT(e),this.X.set(e,t)),t.H()}pe(e){let t=this.re.get(e);return t||(t=new so(se),this.re=this.re.insert(e,t)),t}fe(e){let t=this.te.get(e);return t||(t=new so(se),this.te=this.te.insert(e,t)),t}ue(e){let t=null!==this.he(e);return t||i2(oI,"Detected inactive target",e),t}he(e){let t=this.X.get(e);return void 0===t||t.k?null:this.Z.ge(e)}ce(e){this.X.set(e,new oT(e)),this.Z.getRemoteKeysForTarget(e).forEach(t=>{this.oe(e,t,null)})}me(e,t){return this.Z.getRemoteKeysForTarget(e).has(t)}}function oA(){return new si(sy.comparator)}function oO(){return new si(sy.comparator)}let oR={asc:"ASCENDING",desc:"DESCENDING"},oN={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},oP={and:"AND",or:"OR"};class ok{constructor(e,t){this.databaseId=e,this.useProto3Json=t}}function oL(e,t){return e.useProto3Json||null==t?t:{value:t}}function oF(e,t){return e.useProto3Json?`${new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+t.nanoseconds).slice(-9)}Z`:{seconds:""+t.seconds,nanos:t.nanoseconds}}function ox(e){let t=sR(e);return new sI(t.seconds,t.nanos)}function oM(e,t){return e.useProto3Json?t.toBase64():t.toUint8Array()}function oG(e,t){return oF(e,t.toTimestamp())}function oU(e){return i9(!!e,49232),aX.fromTimestamp(ox(e))}function oH(e,t){return oV(e,t).canonicalString()}function oV(e,t){let r=new sd(["projects",e.projectId,"databases",e.database]).child("documents");return void 0===t?r:r.child(t)}function oj(e){let t=sd.fromString(e);return i9(oW(t),10190,{key:t.toString()}),t}function oz(e,t){let r=oj(t);if(r.get(1)!==e.databaseId.projectId)throw new sc(su.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+r.get(1)+" vs "+e.databaseId.projectId);if(r.get(3)!==e.databaseId.database)throw new sc(su.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+r.get(3)+" vs "+e.databaseId.database);return new sy(oq(r))}function oJ(e,t){return oH(e.databaseId,t)}function oK(e){return new sd(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function oq(e){return i9(e.length>4&&"documents"===e.get(4),29091,{key:e.toString()}),e.popFirst(5)}function oY(e){return{fieldPath:e.canonicalString()}}function o$(e){return sf.fromServerFormat(e.fieldPath)}function oW(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}function oQ(e){return!!e&&"function"==typeof e._toProto&&"ProtoValue"===e._protoValueType}function oZ(e,t){let r={fields:{}};return t.forEach((t,n)=>{if("string"!=typeof n)throw Error(`Cannot encode map with non-string key: ${n}`);r.fields[n]=t._toProto(e)}),{mapValue:r}}function oX(e){return{stringValue:e}}class o0{constructor(e){this._byteString=e}static fromBase64String(e){try{return new o0(sA.fromBase64String(e))}catch(e){throw new sc(su.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(e){return new o0(sA.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}toJSON(){return{type:o0._jsonSchemaVersion,bytes:this.toBase64()}}static fromJSON(e){if(sT(e,o0._jsonSchema))return o0.fromBase64String(e.bytes)}}
11o0._jsonSchemaVersion="firestore/bytes/1.0",o0._jsonSchema={type:sD("string",o0._jsonSchemaVersion),bytes:sD("string")};class o1{constructor(...e){for(let t=0;t<e.length;++t)if(0===e[t].length)throw new sc(su.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new sf(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class o2{constructor(e){this._methodName=e}}class o3{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new sc(su.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new sc(su.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}_compareTo(e){return se(this._lat,e._lat)||se(this._long,e._long)}toJSON(){return{latitude:this._lat,longitude:this._long,type:o3._jsonSchemaVersion}}static fromJSON(e){if(sT(e,o3._jsonSchema))return new o3(e.latitude,e.longitude)}}o3._jsonSchemaVersion="firestore/geoPoint/1.0",o3._jsonSchema={type:sD("string",o3._jsonSchemaVersion),latitude:sD("number"),longitude:sD("number")};class o6{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}o6.UNAUTHENTICATED=new o6(null),o6.GOOGLE_CREDENTIALS=new o6("google-credentials-uid"),o6.FIRST_PARTY=new o6("first-party-uid"),o6.MOCK_USER=new o6("mock-user");class o8{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}class o4{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class o5{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(o6.UNAUTHENTICATED))}shutdown(){}}class o9{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,t){this.changeListener=t,e.enqueueRetryable(()=>t(this.token.user))}shutdown(){this.changeListener=null}}class o7{constructor(e){this.ve=e,this.currentUser=o6.UNAUTHENTICATED,this.De=0,this.forceRefresh=!1,this.auth=null}start(e,t){i9(void 0===this.xe,42304);let r=this.De,n=e=>this.De!==r?(r=this.De,t(e)):Promise.resolve(),i=new o8;this.xe=()=>{this.De++,this.currentUser=this.Ce(),i.resolve(),i=new o8,e.enqueueRetryable(()=>n(this.currentUser))};let s=()=>{let t=i;e.enqueueRetryable(async()=>{await t.promise,await n(this.currentUser)})},a=e=>{i2("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=e,this.xe&&(this.auth.addAuthTokenListener(this.xe),s())};this.ve.onInit(e=>a(e)),setTimeout(()=>{if(!this.auth){let e=this.ve.getImmediate({optional:!0});e?a(e):(i2("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new o8)}},0),s()}getToken(){let e=this.De,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(t=>this.De!==e?(i2("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):t?(i9("string"==typeof t.accessToken,31837,{Fe:t}),new o4(t.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.xe&&this.auth.removeAuthTokenListener(this.xe),this.xe=void 0}Ce(){let e=this.auth&&this.auth.getUid();return i9(null===e||"string"==typeof e,2055,{Oe:e}),new o6(e)}}class le{constructor(e,t,r){this.Me=e,this.Ne=t,this.Le=r,this.type="FirstParty",this.user=o6.FIRST_PARTY,this.Be=new Map}Ue(){return this.Le?this.Le():null}get headers(){this.Be.set("X-Goog-AuthUser",this.Me);let e=this.Ue();return e&&this.Be.set("Authorization",e),this.Ne&&this.Be.set("X-Goog-Iam-Authorization-Token",this.Ne),this.Be}}class lt{constructor(e,t,r){this.Me=e,this.Ne=t,this.Le=r}getToken(){return Promise.resolve(new le(this.Me,this.Ne,this.Le))}start(e,t){e.enqueueRetryable(()=>t(o6.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class lr{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class ln{constructor(e,t){this.ke=t,this.forceRefresh=!1,this.appCheck=null,this.qe=null,this.$e=null,eA(e)&&e.settings.appCheckToken&&(this.$e=e.settings.appCheckToken)}start(e,t){i9(void 0===this.xe,3512);let r=e=>{null!=e.error&&i2("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${e.error.message}`);let r=e.token!==this.qe;return this.qe=e.token,i2("FirebaseAppCheckTokenProvider",`Received ${r?"new":"existing"} token.`),r?t(e.token):Promise.resolve()};this.xe=t=>{e.enqueueRetryable(()=>r(t))};let n=e=>{i2("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=e,this.xe&&this.appCheck.addTokenListener(this.xe)};this.ke.onInit(e=>n(e)),setTimeout(()=>{if(!this.appCheck){let e=this.ke.getImmediate({optional:!0});e?n(e):i2("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){if(this.$e)return Promise.resolve(new lr(this.$e));let e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(e=>e?(i9("string"==typeof e.token,44558,{tokenResult:e}),this.qe=e.token,new lr(e.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.xe&&this.appCheck.removeTokenListener(this.xe),this.xe=void 0}}function li(e){let t={};return void 0!==e.timeoutSeconds&&(t.timeoutSeconds=e.timeoutSeconds),t}class ls{Ke(e){}shutdown(){}}let la="ConnectivityMonitor";class lo{constructor(){this.Qe=()=>this.We(),this.Ge=()=>this.ze(),this.je=[],this.He()}Ke(e){this.je.push(e)}shutdown(){window.removeEventListener("online",this.Qe),window.removeEventListener("offline",this.Ge)}He(){window.addEventListener("online",this.Qe),window.addEventListener("offline",this.Ge)}We(){for(let e of(i2(la,"Network connectivity changed: AVAILABLE"),this.je))e(0)}ze(){for(let e of(i2(la,"Network connectivity changed: UNAVAILABLE"),this.je))e(1)}static Je(){return"u">typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let ll=null;function lu(){return null===ll?ll=0x10000000+Math.round(0x80000000*Math.random()):ll++,"0x"+ll.toString(16)}let lc="RestConnection",lB={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregation
11Query:"runAggregationQuery",ExecutePipeline:"executePipeline"};class lh{get Ye(){return!1}constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const t=e.ssl?"https":"http",r=encodeURIComponent(this.databaseId.projectId),n=encodeURIComponent(this.databaseId.database);this.Ze=t+"://"+e.host,this.Xe=`projects/${r}/databases/${n}`,this.et=this.databaseId.database===sV?`project_id=${r}`:`project_id=${r}&database_id=${n}`}tt(e,t,r,n,i){let s=lu(),a=this.nt(e,t.toUriEncodedString());i2(lc,`Sending RPC '${e}' ${s}:`,a,r);let o={"google-cloud-resource-prefix":this.Xe,"x-goog-request-params":this.et};this.rt(o,n,i);let{host:l}=new URL(a),u=q(l);return this.it(e,a,o,r,u).then(t=>(i2(lc,`Received RPC '${e}' ${s}: `,t),t),t=>{throw i6(lc,`RPC '${e}' ${s} failed with error: `,t,"url: ",a,"request:",r),t})}st(e,t,r,n,i,s){return this.tt(e,t,r,n,i)}rt(e,t,r){if(e["X-Goog-Api-Client"]="gl-js/ fire/"+iX,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((t,r)=>e[r]=t),r&&r.headers.forEach((t,r)=>e[r]=t),this.databaseInfo._customHeaders)for(let t of Object.keys(this.databaseInfo._customHeaders))e[t]=this.databaseInfo._customHeaders[t]}nt(e,t){let r=lB[e],n=`${this.Ze}/v1/${t}:${r}`;return this.databaseInfo.apiKey&&(n=`${n}?key=${encodeURIComponent(this.databaseInfo.apiKey)}`),n}terminate(){}}class ld{constructor(e){this._t=e._t,this.ot=e.ot}ut(e){this.ct=e}lt(e){this.Et=e}ht(e){this.Tt=e}onMessage(e){this.Pt=e}close(){this.ot()}send(e){this._t(e)}Rt(){this.ct()}It(){this.Et()}At(e){this.Tt(e)}Vt(e){this.Pt(e)}}let lp="WebChannelConnection",lf=(e,t,r)=>{e.listen(t,e=>{try{r(e)}catch(e){setTimeout(()=>{throw e},0)}})};class lg extends lh{constructor(e){super(e),this.dt=[],this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}static ft(){lg.gt||(lf(g(),f.STAT_EVENT,e=>{e.stat===p.PROXY?i2(lp,"STAT_EVENT: detected buffering proxy"):e.stat===p.NOPROXY&&i2(lp,"STAT_EVENT: detected no buffering proxy")}),lg.gt=!0)}it(e,t,r,n,i){let s=lu();return new Promise((i,a)=>{let o=new c;o.setWithCredentials(!0),o.listenOnce(h.COMPLETE,()=>{try{switch(o.getLastErrorCode()){case d.NO_ERROR:let t=o.getResponseJson();i2(lp,`XHR for RPC '${e}' ${s} received:`,JSON.stringify(t)),i(t);break;case d.TIMEOUT:i2(lp,`RPC '${e}' ${s} timed out`),a(new sc(su.DEADLINE_EXCEEDED,"Request time out"));break;case d.HTTP_ERROR:let r=o.getStatus();if(i2(lp,`RPC '${e}' ${s} failed with status:`,r,"response text:",o.getResponseText()),r>0){let e=o.getResponseJson();Array.isArray(e)&&(e=e[0]);let t=e?.error;if(t&&t.status&&t.message){let e,r=(e=t.status.toLowerCase().replace(/_/g,"-"),Object.values(su).indexOf(e)>=0?e:su.UNKNOWN);a(new sc(r,t.message))}else a(new sc(su.UNKNOWN,"Server responded with status "+o.getStatus()))}else a(new sc(su.UNAVAILABLE,"Connection failed."));break;default:i4(9055,{yt:e,streamId:s,wt:o.getLastErrorCode(),bt:o.getLastError()})}}finally{i2(lp,`RPC '${e}' ${s} completed.`)}});let l=JSON.stringify(n);i2(lp,`RPC '${e}' ${s} sending request:`,n),o.send(t,"POST",l,r,15)})}St(e,t,r){let n=lu(),i=[this.Ze,"/","google.firestore.v1.Firestore","/",e,"/channel"],s=this.createWebChannelTransport(),a={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},o=this.longPollingOptions.timeoutSeconds;void 0!==o&&(a.longPollingTimeout=Math.round(1e3*o)),this.useFetchStreams&&(a.useFetchStreams=!0),this.rt(a.initMessageHeaders,t,r),a.encodeInitMessageHeaders=!0;let l=i.join("");i2(lp,`Creating RPC '${e}' stream ${n}: ${l}`,a);let u=s.createWebChannel(l,a);this.vt(u);let c=!1,h=!1,d=new ld({_t:t=>{h?i2(lp,`Not sending because RPC '${e}' stream ${n} is closed:`,t):(c||(i2(lp,`Opening RPC '${e}' stream ${n} transport.`),u.open(),c=!0),i2(lp,`RPC '${e}' stream ${n} sending:`,t),u.send(t))},ot:()=>u.close()});return lf(u,B.EventType.OPEN,()=>{h||(i2(lp,`RPC '${e}' stream ${n} transport opened.`),d.Rt())}),lf(u,B.EventType.CLOSE,()=>{h||(h=!0,i2(lp,`RPC '${e}' stream ${n} transport closed`),d.At(),this.Dt(u))}
vendor: 4,257 bytes, line 11
11),lf(u,B.EventType.ERROR,t=>{h||(h=!0,i6(lp,`RPC '${e}' stream ${n} transport errored. Name:`,t.name,"Message:",t.message),d.At(new sc(su.UNAVAILABLE,"The operation could not be completed")))}),lf(u,B.EventType.MESSAGE,t=>{if(!h){let r=t.data[0];i9(!!r,16349);let i=r?.error||r[0]?.error;if(i){i2(lp,`RPC '${e}' stream ${n} received error:`,i);let t=i.status,r=function(e){let t=m[e];if(void 0!==t)return oo(t)}(t),s=i.message;"NOT_FOUND"===t&&s.includes("database")&&s.includes("does not exist")&&s.includes(this.databaseId.database)&&i6(`Database '${this.databaseId.database}' not found. Please check your project configuration.`),void 0===r&&(r=su.INTERNAL,s="Unknown error status: "+t+" with message "+i.message),h=!0,d.At(new sc(r,s)),u.close()}else i2(lp,`RPC '${e}' stream ${n} received:`,r),d.Vt(r)}}),lg.ft(),setTimeout(()=>{d.It()},0),d}terminate(){this.dt.forEach(e=>e.close()),this.dt=[]}vt(e){this.dt.push(e)}Dt(e){this.dt=this.dt.filter(t=>t===e)}rt(e,t,r){super.rt(e,t,r),this.databaseInfo.apiKey&&(e["x-goog-api-key"]=this.databaseInfo.apiKey)}createWebChannelTransport(){return C()}}lg.gt=!1;class lC{constructor(e,t,r=1e3,n=1.5,i=6e4){this.xt=e,this.timerId=t,this.Ct=r,this.Ft=n,this.Ot=i,this.Mt=0,this.Nt=null,this.Lt=Date.now(),this.reset()}reset(){this.Mt=0}Bt(){this.Mt=this.Ot}Ut(e){this.cancel();let t=Math.floor(this.Mt+this.kt()),r=Math.max(0,Date.now()-this.Lt),n=Math.max(0,t-r);n>0&&i2("ExponentialBackoff",`Backing off for ${n} ms (base delay: ${this.Mt} ms, delay with jitter: ${t} ms, last attempt: ${r} ms ago)`),this.Nt=this.xt.enqueueAfterDelay(this.timerId,n,()=>(this.Lt=Date.now(),e())),this.Mt*=this.Ft,this.Mt<this.Ct&&(this.Mt=this.Ct),this.Mt>this.Ot&&(this.Mt=this.Ot)}qt(){null!==this.Nt&&(this.Nt.skipDelay(),this.Nt=null)}cancel(){null!==this.Nt&&(this.Nt.cancel(),this.Nt=null)}kt(){return(Math.random()-.5)*this.Mt}}let lm="PersistentStream";class l_{constructor(e,t,r,n,i,s,a,o){this.xt=e,this.$t=r,this.Kt=n,this.connection=i,this.authCredentialsProvider=s,this.appCheckCredentialsProvider=a,this.listener=o,this.state=0,this.Qt=0,this.Wt=null,this.Gt=null,this.stream=null,this.zt=0,this.jt=new lC(e,t)}Ht(){return 1===this.state||5===this.state||this.Jt()}Jt(){return 2===this.state||3===this.state}start(){this.zt=0,4!==this.state?this.auth():this.Yt()}async stop(){this.Ht()&&await this.close(0)}Zt(){this.state=0,this.jt.reset()}Xt(){this.Jt()&&null===this.Wt&&(this.Wt=this.xt.enqueueAfterDelay(this.$t,6e4,()=>this.en()))}tn(e){this.nn(),this.stream.send(e)}async en(){if(this.Jt())return this.close(0)}nn(){this.Wt&&(this.Wt.cancel(),this.Wt=null)}rn(){this.Gt&&(this.Gt.cancel(),this.Gt=null)}async close(e,t){this.nn(),this.rn(),this.jt.cancel(),this.Qt++,4!==e?this.jt.reset():t&&t.code===su.RESOURCE_EXHAUSTED?(i3(t.toString()),i3("Using maximum backoff delay to prevent overloading the backend."),this.jt.Bt()):t&&t.code===su.UNAUTHENTICATED&&3!==this.state&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),null!==this.stream&&(this.sn(),this.stream.close(),this.stream=null),this.state=e,await this.listener.ht(t)}sn(){}auth(){this.state=1;let e=this._n(this.Qt),t=this.Qt;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([e,r])=>{this.Qt===t&&this.an(e,r)},t=>{e(()=>{let e=new sc(su.UNKNOWN,"Fetching auth token failed: "+t.message);return this.un(e)})})}an(e,t){let r=this._n(this.Qt);this.stream=this.cn(e,t),this.stream.ut(()=>{r(()=>this.listener.ut())}),this.stream.lt(()=>{r(()=>(this.state=2,this.Gt=this.xt.enqueueAfterDelay(this.Kt,1e4,()=>(this.Jt()&&(this.state=3),Promise.resolve())),this.listener.lt()))}),this.stream.ht(e=>{r(()=>this.un(e))}),this.stream.onMessage(e=>{r(()=>1==++this.zt?this.En(e):this.onNext(e))})}Yt(){this.state=5,this.jt.Ut(async()=>{this.state=0,this.start()})}un(e){return i2(lm,`close with error: ${e}`),this.stream=null,this.close(4,e)}_n(e){return t=>{this.xt.enqueueAndForget(()=>this.Qt===e?t():(i2(lm,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class ly extends l_{constructor(e,t,r,n,i,s){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,r,n,s),this.serializer
11=i}cn(e,t){return this.connection.St("Listen",e,t)}En(e){return this.onNext(e)}onNext(e){this.jt.reset();let t=function(e,t){let r;if("targetChange"in t){var n,i;t.targetChange;let s="NO_CHANGE"===(n=t.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===n?1:"REMOVE"===n?2:"CURRENT"===n?3:"RESET"===n?4:i4(39313,{state:n}),a=t.targetChange.targetIds||[],o=(i=t.targetChange.resumeToken,e.useProto3Json?(i9(void 0===i||"string"==typeof i,58123),sA.fromBase64String(i||"")):(i9(void 0===i||i instanceof nR.Buffer||i instanceof Uint8Array,16193),sA.fromUint8Array(i||new Uint8Array))),l=t.targetChange.cause;r=new oD(s,a,o,l&&new sc(void 0===l.code?su.UNKNOWN:oo(l.code),l.message||"")||null)}else if("documentChange"in t){t.documentChange;let n=t.documentChange;n.document,n.document.name,n.document.updateTime;let i=oz(e,n.document.name),s=oU(n.document.updateTime),a=n.document.createTime?oU(n.document.createTime):aX.min(),o=new ao({mapValue:{fields:n.document.fields}}),l=a0.newFoundDocument(i,s,a,o);r=new ow(n.targetIds||[],n.removedTargetIds||[],l.key,l)}else if("documentDelete"in t){t.documentDelete;let n=t.documentDelete;n.document;let i=oz(e,n.document),s=n.readTime?oU(n.readTime):aX.min(),a=a0.newNoDocument(i,s);r=new ow([],n.removedTargetIds||[],a.key,a)}else if("documentRemove"in t){t.documentRemove;let n=t.documentRemove;n.document;let i=oz(e,n.document);r=new ow([],n.removedTargetIds||[],i,null)}else{if(!("filter"in t))return i4(11601,{ye:t});{t.filter;let e=t.filter;e.targetId;let{count:n=0,unchangedNames:i}=e,s=new oa(n,i);r=new ob(e.targetId,s)}}return r}(this.serializer,e),r=function(e){if(!("targetChange"in e))return aX.min();let t=e.targetChange;return t.targetIds&&t.targetIds.length?aX.min():t.readTime?oU(t.readTime):aX.min()}(e);return this.listener.hn(t,r)}Tn(e){let t,r={};r.database=oK(this.serializer),r.addTarget=function(e,t){var r,n;let i,s,a,o,l,u,c,B=t.target;if((i=a4(B)?{pipelineQuery:{structuredPipeline:{pipeline:{stages:B.stages.map(t=>t._toProto(e))}}}}:a5(B)?{documents:{documents:[oJ(e,B.path)]}}:{query:(a={structuredQuery:{}},o=B.path,null!==B.collectionGroup?(s=o,a.structuredQuery.from=[{collectionId:B.collectionGroup,allDescendants:!0}]):(s=o.popLast(),a.structuredQuery.from=[{collectionId:o.lastSegment()}]),a.parent=oJ(e,s),(l=function(e){if(0!==e.length)return function e(t){var r;let n;return t instanceof aU?function(e){if("=="===e.op){if(at(e.value))return{unaryFilter:{field:oY(e.field),op:"IS_NAN"}};if(ae(e.value))return{unaryFilter:{field:oY(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(at(e.value))return{unaryFilter:{field:oY(e.field),op:"IS_NOT_NAN"}};if(ae(e.value))return{unaryFilter:{field:oY(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:oY(e.field),op:oN[e.op],value:e.value}}}(t):t instanceof aH?1===(n=(r=t).getFilters().map(t=>e(t))).length?n[0]:{compositeFilter:{op:oP[r.op],filters:n}}:i4(54877,{filter:t})}(aH.create(e,"and"))}(B.filters))&&(a.structuredQuery.where=l),(u=function(e){if(0!==e.length)return e.map(e=>({field:oY(e.field),direction:oR[e.dir]}))}(B.orderBy))&&(a.structuredQuery.orderBy=u),null!==(c=oL(e,B.limit))&&(a.structuredQuery.limit=c),B.startAt&&(a.structuredQuery.startAt={before:(r=B.startAt).inclusive,values:r.position}),B.endAt&&(a.structuredQuery.endAt={before:!(n=B.endAt).inclusive,values:n.position}),{be:a,parent:s}).be}).targetId=t.targetId,t.resumeToken.approximateByteSize()>0){i.resumeToken=oM(e,t.resumeToken);let r=oL(e,t.expectedCount);null!==r&&(i.expectedCount=r)}else if(t.snapshotVersion.compareTo(aX.min())>0){i.readTime=oF(e,t.snapshotVersion.toTimestamp());let r=oL(e,t.expectedCount);null!==r&&(i.expectedCount=r)}return i}(this.serializer,e);let n=(this.serializer,null==(t=function(e){switch(e){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return i4(28987,{purpose:e})}}(e.purpose))?null:{"goog-listen-tags":t});n&&(r.labels=n),this.tn(r)}Pn(e){let t={};t.database=oK(this.serializer),t.removeTarget=e,this.tn(t)}}class lE{}class lv extends lE{constructor(e,t,r,n){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=r,this.serializer
vendor: 5,837 bytes, line 11
11=n,this.fn=!1}mn(){if(this.fn)throw new sc(su.FAILED_PRECONDITION,"The client has already been terminated.")}tt(e,t,r,n){return this.mn(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([i,s])=>this.connection.tt(e,oV(t,r),n,i,s)).catch(e=>{throw"FirebaseError"===e.name?(e.code===su.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new sc(su.UNKNOWN,e.toString())})}st(e,t,r,n,i){return this.mn(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([s,a])=>this.connection.st(e,oV(t,r),n,s,a,i)).catch(e=>{throw"FirebaseError"===e.name?(e.code===su.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new sc(su.UNKNOWN,e.toString())})}terminate(){this.fn=!0,this.connection.terminate()}}let lw=new Map,lb={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0};class lD{static withCacheSize(e){return new lD(e,lD.DEFAULT_COLLECTION_PERCENTILE,lD.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,t,r){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=r}}lD.DEFAULT_COLLECTION_PERCENTILE=10,lD.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,lD.DEFAULT=new lD(0x2800000,lD.DEFAULT_COLLECTION_PERCENTILE,lD.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),lD.DISABLED=new lD(-1,0,0);class lT{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=e=>this.pn(e),this.gn=e=>t.writeSequenceNumber(e))}pn(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){let e=++this.previousValue;return this.gn&&this.gn(e),e}}lT.yn=-1;class lI{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}async function lS(e){if(e.code!==su.FAILED_PRECONDITION||"The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab."!==e.message)throw e;i2("LocalStore","Unexpectedly lost primary lease")}class lA{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(e=>{this.isDone=!0,this.result=e,this.nextCallback&&this.nextCallback(e)},e=>{this.isDone=!0,this.error=e,this.catchCallback&&this.catchCallback(e)})}catch(e){return this.next(void 0,e)}next(e,t){return this.callbackAttached&&i4(59440),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new lA((r,n)=>{this.nextCallback=t=>{this.wrapSuccess(e,t).next(r,n)},this.catchCallback=e=>{this.wrapFailure(t,e).next(r,n)}})}toPromise(){return new Promise((e,t)=>{this.next(e,t)})}wrapUserFunction(e){try{let t=e();return t instanceof lA?t:lA.resolve(t)}catch(e){return lA.reject(e)}}wrapSuccess(e,t){return e?this.wrapUserFunction(()=>e(t)):lA.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction(()=>e(t)):lA.reject(t)}static resolve(e){return new lA((t,r)=>{t(e)})}static reject(e){return new lA((t,r)=>{r(e)})}static waitFor(e){return new lA((t,r)=>{let n=0,i=0,s=!1;e.forEach(e=>{++n,e.next(()=>{++i,s&&i===n&&t()},e=>r(e))}),s=!0,i===n&&t()})}static or(e){let t=lA.resolve(!1);for(let r of e)t=t.next(e=>e?lA.resolve(e):r());return t}static forEach(e,t){let r=[];return e.forEach((e,n)=>{r.push(t.call(this,e,n))}),this.waitFor(r)}static mapArray(e,t){return new lA((r,n)=>{let i=e.length,s=Array(i),a=0;for(let o=0;o<i;o++){let l=o;t(e[l]).next(e=>{s[l]=e,++a===i&&r(s)},e=>n(e))}})}static doWhile(e,t){return new lA((r,n)=>{let i=()=>{!0===e()?t().next(()=>{i()},n):r()};i()})}}function lO(e){return"IndexedDbTransactionError"===e.name}let lR="LruGarbageCollector";function lN([e,t],[r,n]){let i=se(e,r);return 0===i?se(t,n):i}class lP{constructor(e){this.Jn=e,this.buffer=new so(lN),this.Yn=0}Zn(){return++this.Yn}Xn(e){let t=[e,this.Zn()];if(this.buffer.size<this.Jn)this.buffer=this.buffer.add(t);else{let e=this.buffer.last();0>lN(t,e)&&(this.buffer=this.buffer.delete(e).add(t))}}get maxValue(){return this.buffer.last()[0]}}class lk{constructor(e,t,r){this.garbageCollector=e,this.asyncQueue=t,this.localStore=r,this.er=null}start(){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.tr(6e4)}stop(){this.er&&(this.er.cancel(),this.er=null)}get started(){return null!==this.er}tr(e){i2(lR,`Garbage collection scheduled in ${e}ms`),this.er=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,async()=>{this.er=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(e){lO(e)?i2(lR,"Ignoring IndexedDB error during garbage collection: ",e):await lS(e)}await this.tr(3e5)})}}class lL{constructor(e,t){this.nr=e,this.params=t}calculateTargetCount(e,t){return this.nr.rr(e).next(e=>Math.floor(t/100*e))}nthSequenceNumber(e,t){if(0===t)return lA.resolve(lT.yn);let r=new lP(t);return this.nr.forEachTarget(e,e=>r.Xn(e.sequenceNumber)).next(()=>this.nr.ir(e,e=>r.Xn(e))).next(()=>r.maxValue)}removeTargets(e,t,r){return this.nr.removeTargets(e,t,r)}removeOrphanedDocuments(e,t){return this.nr.removeOrphanedDocuments(e,t)}collect(e,t){return -1===this.params.cacheSizeCollectionThreshold?(i2("LruGarbageCollector","Garbage collection skipped; disabled"),lA.resolve(lb)):this.getCacheSize(e).next(r=>r<this.params.cacheSizeCollectionThreshold?(i2("LruGarbageCollector",`Garbage collection skipped; Cache size ${r} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),lb):this.sr(e,t))}getCacheSize(e){return this.nr.getCacheSize(e)}sr(e,t){let r,n,i,s,a,l,u,c=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next(t=>(t>this.params.maximumSequenceNumbersToCollect?(i2("LruGarbageCollector",`C
11apping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${t}`),n=this.params.maximumSequenceNumbersToCollect):n=t,s=Date.now(),this.nthSequenceNumber(e,n))).next(n=>(r=n,a=Date.now(),this.removeTargets(e,r,t))).next(t=>(i=t,l=Date.now(),this.removeOrphanedDocuments(e,r))).next(e=>(u=Date.now(),i1()<=o.DEBUG&&i2("LruGarbageCollector",`LRU Garbage Collection 12 Counted targets in ${s-c}ms 13 Determined least recently used ${n} in `+(a-s)+"ms\n"+` Removed ${i} targets in `+(l-a)+"ms\n"+` Removed ${e} documents in `+(u-l)+"ms\n"+`Total Duration: ${u-c}ms`),lA.resolve({didRun:!0,sequenceNumbersCollected:n,targetsRemoved:i,documentsRemoved:e})))}}let lF="firestore.googleapis.com";class lx{constructor(e){if(void 0===e.host){if(void 0!==e.ssl)throw new sc(su.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=lF,this.ssl=!0}else this.host=e.host,this.ssl=e.ssl??!0;if(this.isUsingEmulator=void 0!==e.emulatorOptions,this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e._customHeaders&&(this._customHeaders={...e._customHeaders}),void 0===e.cacheSizeBytes)this.cacheSizeBytes=0x2800000;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new sc(su.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}if(function(e,t,r,n){if(!0===t&&!0===n)throw new sc(su.INVALID_ARGUMENT,`${e} and ${r} cannot be used together.`)}("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:void 0===e.experimentalAutoDetectLongPolling?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=li(e.experimentalLongPollingOptions??{}),function(e){if(void 0!==e.timeoutSeconds){if(isNaN(e.timeoutSeconds))throw new sc(su.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (must not be NaN)`);if(e.timeoutSeconds<5)throw new sc(su.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (minimum allowed value is 5)`);if(e.timeoutSeconds>30)throw new sc(su.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams,void 0!==e.grpcFlowControlWindow){if("number"!=typeof e.grpcFlowControlWindow||e.grpcFlowControlWindow<=0||e.grpcFlowControlWindow>0x7fffffff||!Number.isInteger(e.grpcFlowControlWindow))throw new sc(su.INVALID_ARGUMENT,"grpcFlowControlWindow must be a positive integer and cannot exceed 2147483647");this.grpcFlowControlWindow=e.grpcFlowControlWindow}}isEqual(e){var t,r;return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&(t=this.experimentalLongPollingOptions,r=e.experimentalLongPollingOptions,t.timeoutSeconds===r.timeoutSeconds)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams&&this.grpcFlowControlWindow===e.grpcFlowControlWindow&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(e[n]!==t[n])return!1;return!0}(this._customHeaders,e._customHeaders)}}let lM=class{constructor(e,t,r,n){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=r,this._app=n,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new lx({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new sc(su.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return"notTerminated"!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new sc(su.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new lx(e),this._emulatorOptions=e.emulatorOptions||{},void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new o5;switch(e.type){case"firstParty":return new lt(e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new sc(su.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invali
13d credential type")}}(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return"notTerminated"===this._terminateTask&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){"notTerminated"===this._terminateTask?await this._terminate():this._terminateTask="notTerminated"}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){let e;return(e=lw.get(this))&&(i2("ComponentProvider","Removing Datastore"),lw.delete(this),e.terminate()),Promise.resolve()}};class lG{constructor(e,t,r){this.converter=t,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new lG(this.firestore,e,this._query)}}class lU{constructor(e,t,r){this.converter=t,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new lH(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new lU(this.firestore,e,this._key)}toJSON(){return{type:lU._jsonSchemaVersion,referencePath:this._key.toString()}}static fromJSON(e,t,r){if(sT(t,lU._jsonSchema))return new lU(e,r||null,new sy(sd.fromString(t.referencePath)))}}lU._jsonSchemaVersion="firestore/documentReference/1.0",lU._jsonSchema={type:sD("string",lU._jsonSchemaVersion),referencePath:sD("string")};class lH extends lG{constructor(e,t,r){super(e,t,function(e){return new a9(e)}(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){let e=this._path.popLast();return e.isEmpty()?null:new lU(this.firestore,null,new sy(e))}withConverter(e){return new lH(this.firestore,e,this._path)}}class lV{constructor(e){this._values=(e||[]).map(e=>e)}toArray(){return this._values.map(e=>e)}isEqual(e){return function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}(this._values,e._values)}toJSON(){return{type:lV._jsonSchemaVersion,vectorValues:this._values}}static fromJSON(e){if(sT(e,lV._jsonSchema)){if(Array.isArray(e.vectorValues)&&e.vectorValues.every(e=>"number"==typeof e))return new lV(e.vectorValues);throw new sc(su.INVALID_ARGUMENT,"Expected 'vectorValues' field to be a number array")}}}function lj(e,t,r){if(lz(e=K(e))){var n,i;let r;return function(e,t,r){if(!lz(r)||!sv(r)){let n=sw(r);throw"an object"===n?t.createError(e+" a custom object"):t.createError(e+" "+n)}}("Unsupported field value:",t,e),n=e,i=t,r={},s_(n)?i.path&&i.path.length>0&&i.fieldMask.push(i.path):sm(n,(e,t)=>{let n=lj(t,i.childContextForField(e));null!=n&&(r[e]=n)}),{mapValue:{fields:r}}}if(e instanceof o2)return function(e,t){if(!function(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw i4(40011,{dataSource:e})}}(t.dataSource))throw t.createError(`${e._methodName}() can only be used with update() and set()`);if(!t.path)throw t.createError(`${e._methodName}() is not currently supported inside arrays`);let r=e._toFieldTransform(t);r&&t.fieldTransforms.push(r)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.arrayElement&&4!==t.dataSource)throw t.createError("Nested arrays are not supported");let r=[],n=0;for(let i of e){let e=lj(i,t.childContextForArray(n));null==e&&(e={nullValue:"NULL_VALUE"}),r.push(e),n++}return{arrayValue:{values:r}}}return function(e,t){if(null===(e=K(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return ac(t.serializer,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){let r=sI.fromDate(e);return{timestampValue:oF(t.serializer,r)}}if(e instanceof sI){let r=new sI(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:oF(t.serializer,r)}}if(e instanceof o3)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof o0)return{bytesValue:oM(t.serializer,e._byteString)};if(e instanceof lU){let r=t.databaseId,n=e.firestore._databaseId;if(!n.isEqual(r))throw t.createError(`Document reference is for database ${n.projectId}/${n.database} but should be for database ${r.projectId}/${r.database}`);return{referenceValue:oH(e.firestore._databaseId||t.databaseId,e._key.path)}}if(e instanceof lV){var r;return{mapValue:{fields:{[sJ]:{stringValue:sY},[s$]:{arrayValue:{values:((r=e)instanceof lV?r.toArray():r).map(e=>{if("number"!=typeof e)throw t.createError("VectorValues must only contain numeric values.");return al(t.serializer,e)})}}}}}}if(oQ(e))return e._toProto(t.serializer);throw t.createError(`Unsupported field value: ${sw(e)}`)}(e,t)}function lz(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof sI||e instanceof o3||e instanceof o0||e instanceof lU||e instanceof o2||e instanceof lV||oQ(e))}function lJ(e,t,r){if((t=K(t))instanceof o1)return t._internalPath;if("string"==typeof t){var n=e,i=t;if(i.search(lK)>=0)throw lq(`Invalid field path (${i}). Paths must not contain '~', '*', '/', '[', or ']'`,n,!1,void 0,void 0);try{return new o1(...i.split("."))._internalPath}catch(e){throw lq(`Invalid field path (${i}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,n,!1,void 0,void 0)}}throw lq("Field path arguments must be of type string or ",e,!1,void 0,r)}lV._jsonSchemaVersion="firestore/vectorValue/1.0",lV._jsonSchema={type:sD("string",lV._jsonSchemaVersion),vectorValues:sD("object")};let lK=RegExp("[~\\*/\\[\\]]");function lq(e,t,r,n,i){let s=n&&!n.isEmpty(),a=void 0!==i,o=`Function ${t}
13() called with invalid data`;r&&(o+=" (via `toFirestore()`)"),o+=". ";let l="";return(s||a)&&(l+=" (found",s&&(l+=` in field ${n}`),a&&(l+=` in document ${i}`),l+=")"),new sc(su.INVALID_ARGUMENT,o+e+l)}class lY{constructor(e){this.optionDefinitions=e}_getKnownOptions(e,t){let r=ao.empty();for(let n in this.optionDefinitions)if(this.optionDefinitions.hasOwnProperty(n)){let i=this.optionDefinitions[n];if(n in e){let s,a=e[n];i.nestedOptions&&sv(a)?s={mapValue:{fields:new lY(i.nestedOptions).getOptionsProto(t,a)}}:a&&(s=lj(a,t)??void 0),s&&r.set(sf.fromServerFormat(i.serverName),s)}}return r}getOptionsProto(e,t,r){let n=this._getKnownOptions(t,e);if(r){let t=new Map(function(e,t){let r=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.push(t(e[n],n,e));return r}(r,(t,r)=>[sf.fromServerFormat(r),void 0!==t?lj(t,e):null]));n.setAll(t)}return n.value.mapValue.fields??{}}}function l$(e){return e instanceof lZ?e:sv(e)?function(e){let t=[];for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let n=e[r];t.push(l8(r)),t.push(l$(n))}return new l5("map",t,"map")}(e):e instanceof Array?function(e){return new l5("array",e.map(e=>l$(e)),"array")}(e):l4(e,void 0)}function lW(e){if(e instanceof lZ)return e;if(e instanceof lV)return l8(e);if(Array.isArray(e))return l8(new lV(e));throw Error("Unsupported value: "+typeof e)}function lQ(e){var t,r;return"string"==typeof e?(r="field",new l3("string"==typeof(t=e)?sB===t?new o1(sB)._internalPath:lJ("field",t):t._internalPath,r)):l$(e)}class lZ{constructor(){this._protoValueType="ProtoValue"}add(e){return new l5("add",[this,l$(e)],"add")}asBoolean(){if(this instanceof l9)return this;if(this instanceof l6)return new ue(this);if(this instanceof l3)return new ut(this);if(this instanceof l5)return new l7(this);throw new sc("invalid-argument",`Conversion of type ${typeof this} to BooleanExpression not supported.`)}subtract(e){return new l5("subtract",[this,l$(e)],"subtract")}multiply(e){return new l5("multiply",[this,l$(e)],"multiply")}divide(e){return new l5("divide",[this,l$(e)],"divide")}mod(e){return new l5("mod",[this,l$(e)],"mod")}equal(e){return new l5("equal",[this,l$(e)],"equal").asBoolean()}notEqual(e){return new l5("not_equal",[this,l$(e)],"notEqual").asBoolean()}lessThan(e){return new l5("less_than",[this,l$(e)],"lessThan").asBoolean()}lessThanOrEqual(e){return new l5("less_than_or_equal",[this,l$(e)],"lessThanOrEqual").asBoolean()}greaterThan(e){return new l5("greater_than",[this,l$(e)],"greaterThan").asBoolean()}greaterThanOrEqual(e){return new l5("greater_than_or_equal",[this,l$(e)],"greaterThanOrEqual").asBoolean()}arrayConcat(e,...t){return new l5("array_concat",[this,...[e,...t].map(e=>l$(e))],"arrayConcat")}arrayContains(e){return new l5("array_contains",[this,l$(e)],"arrayContains").asBoolean()}arrayContainsAll(e){return new l5("array_contains_all",[this,Array.isArray(e)?new l2(e.map(l$),"arrayContainsAll"):e],"arrayContainsAll").asBoolean()}arrayContainsAny(e){return new l5("array_contains_any",[this,Array.isArray(e)?new l2(e.map(l$),"arrayContainsAny"):e],"arrayContainsAny").asBoolean()}arrayReverse(){return new l5("array_reverse",[this])}arrayLength(){return new l5("array_length",[this],"arrayLength")}equalAny(e){return new l5("equal_any",[this,Array.isArray(e)?new l2(e.map(l$),"equalAny"):e],"equalAny").asBoolean()}notEqualAny(e){return new l5("not_equal_any",[this,Array.isArray(e)?new l2(e.map(l$),"notEqualAny"):e],"notEqualAny").asBoolean()}exists(){return new l5("exists",[this],"exists").asBoolean()}charLength(){return new l5("char_length",[this],"charLength")}like(e){return new l5("like",[this,l$(e)],"like").asBoolean()}regexContains(e){return new l5("regex_contains",[this,l$(e)],"regexContains").asBoolean()}regexFind(e){return new l5("regex_find",[this,l$(e)],"regexFind")}regexFindAll(e){return new l5("regex_find_all",[this,l$(e)],"regexFindAll")}regexMatch(e){return new l5("regex_match",[this,l$(e)],"regexMatch").asBoolean()}stringContains(e){return new l5("string_contains",[this,l$(e)],"stringContains").asBoolean()}startsWith(e){return new l5("starts_with",[this,l$(e)],"startsWith").asBoolean()}endsWith(e){return new l5("ends_with",[this,l$(e)],"endsWith").asBoolean()}toLower(){return new l5("to_lower",[this],"toLower")}toUpper(){return new l5("to_upper",[this],"toUpper")}trim(e){let t=[this];return e&&t.push(l$(e)),new l5("trim",t,"trim")}ltrim(e){let t=[this];return e&&t.push(l$(e)),new l5("ltrim",t,"ltrim")}rtrim(e){let t=[this];return e&&t.push(l$(e)),new l5("rtrim",t,"rtrim")}type(){return new l5("type",[this])}isType(e){return new l5("is_type",[this,l8(e)],"isType").asBoolean()}stringConcat(e,...t){return new l5("string_concat",[this,...[e,...t].map(l$)],"stringConcat")}stringIndexOf(e){return new l5("string_index_of",[this,l$(e)],"stringIndexOf")}stringRepeat(e){return new l5("string_repeat",[this,l$(e)],"stringRepeat")}stringReplaceAll(e,t){return new l5("string_replace_all",[this,l$(e),l$(t)],"stringReplaceAll")}stringReplaceOne(e,t){return new l5("string_replace_one",[this,l$(e),l$(t)],"stringReplaceOne")}concat(e,...t){return new l5("concat",[this,...[e,...t].map(l$)],"concat")}reverse(){return new l5("reverse",[this],"reverse")}arrayFilter(e,t){return new l5("array_filter",[this,l$(e),t],"arrayFilter")}arrayTransform(e,t){return new l5("array_transform",[this,l$(e),t],"arrayTransform")}arrayTransformWithIndex(e,t,r){return new l5("array_transform",[this,l$(e),l$(t),r],"arrayTransformWithIndex")}arraySlice(e,t){let r=[this,l$(e)];return void 0!==t&&r.push(l$(t)),new l5("array_slice",r,"arraySlice")}arrayFirst(){return new l5("array_first",[this],"arrayFirst")}arrayFirstN(e){return new l5("array_first_n",[this,l$(e)],"arrayFirstN")}arrayLast(){return new l5("array_last",[this],"arrayLast")}arrayLastN(e){return new l5("array_last_n",[this,l$(e)],"arrayLastN")}arrayMaximum(){return new l5("maximum",[this],"arrayMaximum")}arrayMaximumN(e){return new l5("maximum_n",[this,l$(e)],"arrayMaximumN")}arrayMinimum(){return new l5("minimum",[this],"arrayMinimum")}arrayMinimumN(e){return new l5("minimum_n",[this,l$(e)],"arrayMinimumN")}arrayIndexOf(e){return new l5("array_index_of",[this,l$(e),l$("first")],"arrayIndexOf")}arrayLastIndexOf(e){return new l5("array_index_of",[this,l$(e),l$("last")],"arrayLastIndexOf")}arrayIndexOfAll(e){return new l5("array_index_of_all",[this,l$(e)],"arrayIndexOfAll")}byteLength(){return new l5("byte_length",[this],"byteLength")}ceil(){return new l5("ceil",[this])}floor(){return new l5("floor",[this])}abs(){return new l5("abs",[this])}exp(){return new l5("exp",[this])}mapGet(e){return new l5("map_get",[this,l8(e)],"mapGet")}mapSet(e,t,...r){return new l5("map_set",[this,l$(e),l$(t),...r.map(l$)],"mapSet")}mapKeys(){return new l5("map_keys",[this],"mapKeys")}mapValues(){return new l5("map_values",[this],"mapValues")}mapEntries(){return new l5("map_entries",[this],"mapEntries")}getField(e){return new l5("get_field",[this,l$(e)],"get_field")}count(){return lX._create("count",[this],"count")}sum(){return lX._create("sum",[this],"sum")}average(){return lX._create("average",[this],"average")}minimum(){return lX._create("minimum",[this],"minimum")}maximum(){return lX._create("maximum",[this],"maximum")}first(){return lX._create("first",[this],"first")}last(){return lX._create("last",[this],"last")}arrayAgg(){return lX._create("array_agg",[this],"arrayAgg")}arrayAggDistinct(){return lX._create("array_agg_distinct",[this],"arrayAggDistinct")}countDistinct(){return lX._create("count_distinct",[this],"countDistinct")}logicalMaximum(e,...t){return new l5("maximum",[this,...[e,...t].map(l$)],"logicalMaximum")}logicalMinimum(e,...t){return new l5("minimum",[this,...[e,...t].map(l$)],"minimum")}vectorLength(){return new l5("vector_length",[this],"vectorLength")}cosineDistance(e){return new l5("cosine_distance",[this,lW(e)],"cosineDistance")}dotProduct(e){return new l5("dot_product",[this,lW(e)],"dotProduct")}euclideanDistance(e){return new l5("euclidean_distance",[this,lW(e)],"euclideanDistance")}unixMicrosToTimestamp(){return new l5("unix_micros_to_timestamp",[this],"unixMicrosToTimestamp")}timestampToUnixMicros(){return new l5("timestamp_to_unix_micros",[this],"timestampToUnixMicros")}unixMillisToTimestamp(){return new l5("unix_millis_to_timestamp",[this],"unixMillisToTimestamp")}timestampToUnixMillis(){return new l5("timestamp_to_unix_millis",[this],"timestampToUnixMillis")}unixSecondsToTimestamp(){return new l5("unix_seconds_to_timestamp",[this],"unixSecondsToTimestamp")}timestampToUnixSeconds(){return new l5("timestamp_to_unix_seconds",[this],"timestampToUnixSeconds")}timestampAdd(e,t){return new l5("timestamp_add",[this,l$(e),l$(t)],"timestampAdd")}timestampSubtract(e,t){return new l5("timestamp_subtract",[this,l$(e),l$(t)],"timestampSubtract")}timestampDiff(e,t){return new l5("timestamp_diff",[this,lQ(e),l$(t)],"timestampDiff")}timestampExtract(e,t){let r=[this,l$(e)];return t&&r.push(l$(t)),new l5("timestamp_extract",r,"timestampExtract")}documentId(){return new l5("document_id",[this],"documentId")}parent(){return new l5("parent",[this],"parent")}substring(e,t){let r=l$(e);return new l5("substring",void 0===t?[this,r]:[this,r,l$(t)],"substring")}arrayGet(e){return new l5("array_get",[this,l$(e)],"arrayGet")}isError(){return new l5("is_error",[this],"isError").asBoolean()}ifError(e){let t=new l5("if_error",[this,l$(e)],"ifError");return e instanceof l9?t.asBoolean():t}isAbsent(){return new l5("is_absent",[this],"isAbsent").asBoolean()}mapRemove(e){return new l5("map_remove",[this,l$(e)],"mapRemove")}mapMerge(e,...t){return new l5("map_merge",[this,l$(e),...t.map(l$)],"mapMerge")}pow(e){return new l5("pow",[this,l$(e)])}trunc(e){return void 0===e?new l5("trunc",[this]):new l5("trunc",[this,l$(e)],"trunc")}round(e){return void 0===e?new l5("round",[this]):new l5("round",[this,l$(e)],"round")}collectionId(){return new l5("collection_id",[this])}length(){return new l5("length",[this])}ln(){return new l5("ln",[this])}sqrt(){return new l5("sqrt",[this])}
13stringReverse(){return new l5("string_reverse",[this])}ifAbsent(e){return new l5("if_absent",[this,l$(e)],"ifAbsent")}ifNull(e){return new l5("if_null",[this,l$(e)],"ifNull")}coalesce(e,...t){return new l5("coalesce",[this,l$(e),...t.map(l$)],"coalesce")}join(e){return new l5("join",[this,l$(e)],"join")}log10(){return new l5("log10",[this])}arraySum(){return new l5("sum",[this])}split(e){return new l5("split",[this,l$(e)])}timestampTruncate(e,t){let r=[this,l$(e)];return t&&r.push(l$(t)),new l5("timestamp_trunc",r)}ascending(){var e;return e=this,new ur(lQ(e),"ascending","ascending")}descending(){var e;return e=this,new ur(lQ(e),"descending","descending")}as(e){return new l1(this,e,"as")}}class lX{constructor(e,t){this.name=e,this.params=t,this.exprType="AggregateFunction",this._protoValueType="ProtoValue"}static _create(e,t,r){let n=new lX(e,t);return n._methodName=r,n}as(e){return new l0(this,e,"as")}_toProto(e){return{functionValue:{name:this.name,args:this.params.map(t=>t._toProto(e))}}}_readUserData(e){e=this._methodName?e.contextWith({methodName:this._methodName}):e,this.params.forEach(t=>t._readUserData(e))}}class l0{constructor(e,t,r){this.aggregate=e,this.alias=t,this._methodName=r}_readUserData(e){this.aggregate._readUserData(e)}}class l1{constructor(e,t,r){this.expr=e,this.alias=t,this._methodName=r,this.exprType="AliasedExpression",this.selectable=!0}_readUserData(e){this.expr._readUserData(e)}}class l2 extends lZ{constructor(e,t){super(),this.ur=e,this._methodName=t,this.expressionType="ListOfExpressions"}_toProto(e){return{arrayValue:{values:this.ur.map(t=>t._toProto(e))}}}_readUserData(e){this.ur.forEach(t=>t._readUserData(e))}}class l3 extends lZ{constructor(e,t){super(),this.fieldPath=e,this._methodName=t,this.expressionType="Field",this.selectable=!0}get _fieldPath(){return this.fieldPath}get fieldName(){return this.fieldPath.canonicalString()}get alias(){return this.fieldName}get expr(){return this}geoDistance(e){return new l5("geo_distance",[this,l$(e)],"geoDistance")}_toProto(e){return{fieldReferenceValue:this.fieldPath.canonicalString()}}_readUserData(e){}}class l6 extends lZ{constructor(e,t){super(),this.value=e,this._methodName=t,this.expressionType="Constant"}static _fromProto(e){let t=new l6(e,void 0);return t._protoValue=e,t}_toProto(e){return i9(void 0!==this._protoValue,237),this._protoValue}_getValue(){return this._protoValue}_readUserData(e){var t,r,n,i,s,a,o;e=this._methodName?e.contextWith({methodName:this._methodName}):e,"object"==typeof(t=this._protoValue)&&null!==t&&("nullValue"in t&&(null===t.nullValue||"NULL_VALUE"===t.nullValue)||"booleanValue"in t&&(null===t.booleanValue||"boolean"==typeof t.booleanValue)||"integerValue"in t&&(null===t.integerValue||"number"==typeof t.integerValue||"string"==typeof t.integerValue)||"doubleValue"in t&&(null===t.doubleValue||"number"==typeof t.doubleValue)||"timestampValue"in t&&(null===t.timestampValue||"object"==typeof(r=t.timestampValue)&&null!==r&&"seconds"in r&&(null===r.seconds||"number"==typeof r.seconds||"string"==typeof r.seconds)&&"nanos"in r&&(null===r.nanos||"number"==typeof r.nanos))||"stringValue"in t&&(null===t.stringValue||"string"==typeof t.stringValue)||"bytesValue"in t&&(null===t.bytesValue||t.bytesValue instanceof Uint8Array)||"referenceValue"in t&&(null===t.referenceValue||"string"==typeof t.referenceValue)||"geoPointValue"in t&&(null===t.geoPointValue||"object"==typeof(n=t.geoPointValue)&&null!==n&&"latitude"in n&&(null===n.latitude||"number"==typeof n.latitude)&&"longitude"in n&&(null===n.longitude||"number"==typeof n.longitude))||"arrayValue"in t&&(null===t.arrayValue||"object"==typeof(i=t.arrayValue)&&null!==i&&!(!("values"in i)||null!==i.values&&!Array.isArray(i.values)))||"mapValue"in t&&(null===t.mapValue||"object"==typeof(s=t.mapValue)&&null!==s&&!(!("fields"in s)||null!==s.fields&&!sv(s.fields)))||"fieldReferenceValue"in t&&(null===t.fieldReferenceValue||"string"==typeof t.fieldReferenceValue)||"functionValue"in t&&(null===t.functionValue||"object"==typeof(a=t.functionValue)&&null!==a&&!(!("name"in a)||null!==a.name&&"string"!=typeof a.name||!("args"in a)||null!==a.args&&!Array.isArray(a.args)))||"pipelineValue"in t&&(null===t.pipelineValue||"object"==typeof(o=t.pipelineValue)&&null!==o&&!(!("stages"in o)||null!==o.stages&&!Array.isArray(o.stages))))||(this._protoValue=lj(this.value,e))}}function l8(e,t){return l4(e,"constant")}function l4(e,t){let r=new l6(e,t);return"boolean"==typeof e?new ue(r):r}class l5 extends lZ{constructor(e,t,r,n){super(),this.name=e,this.params=t,this.expressionType="Function",this._optionsProto=void 0,void 0!==r&&(this._methodName=r),void 0!==n&&(this._options=n)}get _optionsUtil(){return new lY({})}_toProto(e){let t={functionValue:{name:this.name,args:this.params.map(t=>t._toProto(e))}};return this._optionsProto&&(t.functionValue.options=this._optionsProto),t}_readUserData(e){e=this._methodName?e.contextWith({methodName:this._methodName}
vendor: 5,136 bytes, line 13
13):e,this.params.forEach(t=>t._readUserData(e)),this._options&&(this._optionsProto=this._optionsUtil.getOptionsProto(e,this._options))}}class l9 extends lZ{get _methodName(){return this._expr._methodName}countIf(){return lX._create("count_if",[this],"countIf")}not(){return new l5("not",[this],"not").asBoolean()}conditional(e,t){return new l5("conditional",[this,e,t],"conditional")}ifError(e){let t=l$(e),r=new l5("if_error",[this,t],"ifError");return t instanceof l9?r.asBoolean():r}_toProto(e){return this._expr._toProto(e)}_readUserData(e){this._expr._readUserData(e)}}class l7 extends l9{constructor(e){super(),this._expr=e,this.expressionType="Function"}}class ue extends l9{constructor(e){super(),this._expr=e,this.expressionType="Constant"}_getValue(){return this._expr._getValue()}}class ut extends l9{constructor(e){super(),this._expr=e,this.expressionType="Field"}}class ur{constructor(e,t,r){this.expr=e,this.direction=t,this._methodName=r,this._protoValueType="ProtoValue"}_toProto(e){return{mapValue:{fields:{direction:oX(this.direction),expression:this.expr._toProto(e)}}}}_readUserData(e){this.expr._readUserData(e)}}class un{constructor(e){this.optionsProto=void 0,{rawOptions:this.rawOptions,...this.knownOptions}=e}_readUserData(e){this.optionsProto=this._optionsUtil.getOptionsProto(e,this.knownOptions,this.rawOptions)}_toProto(e){return{name:this._name,options:this.optionsProto}}}class ui extends un{get _name(){return"add_fields"}get _optionsUtil(){return new lY({})}constructor(e,t){super(t),this.fields=e}_toProto(e){return{...super._toProto(e),args:[oZ(e,this.fields)]}}_readUserData(e){super._readUserData(e),uC(this.fields,e)}}class us extends un{get _name(){return"aggregate"}get _optionsUtil(){return new lY({})}constructor(e,t,r){super(r),this.groups=e,this.accumulators=t}_toProto(e){return{...super._toProto(e),args:[oZ(e,this.accumulators),oZ(e,this.groups)]}}_readUserData(e){super._readUserData(e),uC(this.groups,e),uC(this.accumulators,e)}}class ua extends un{get _name(){return"distinct"}get _optionsUtil(){return new lY({})}constructor(e,t){super(t),this.groups=e}_toProto(e){return{...super._toProto(e),args:[oZ(e,this.groups)]}}_readUserData(e){super._readUserData(e),uC(this.groups,e)}}class uo extends un{get _name(){return"collection"}get _optionsUtil(){return new lY({forceIndex:{serverName:"force_index"}})}constructor(e,t){super(t),this.Er=e.startsWith("/")?e:"/"+e}_toProto(e){return{...super._toProto(e),args:[{referenceValue:this.Er}]}}_readUserData(e){super._readUserData(e)}}class ul extends un{get _name(){return"collection_group"}get _optionsUtil(){return new lY({forceIndex:{serverName:"force_index"}})}constructor(e,t){super(t),this.collectionId=e}_toProto(e){return{...super._toProto(e),args:[{referenceValue:""},{stringValue:this.collectionId}]}}_readUserData(e){super._readUserData(e)}}class uu extends un{get _name(){return"database"}get _optionsUtil(){return new lY({})}_toProto(e){return{...super._toProto(e)}}_readUserData(e){super._readUserData(e)}}class uc extends un{get _name(){return"documents"}get _optionsUtil(){return new lY({})}constructor(e,t){if(super(t),!e||0===e.length)throw new sc(su.INVALID_ARGUMENT,"Empty document paths are not allowed in DocumentsSource");const r=e.map(e=>e.startsWith("/")?e:"/"+e),n=new Set(r);if(n.size!==r.length)throw new sc(su.INVALID_ARGUMENT,"Duplicate document paths are not allowed in DocumentsSource");this.hr=r,this.Tr=n}_toProto(e){return{...super._toProto(e),args:this.hr.map(e=>({referenceValue:e}))}}_readUserData(e){super._readUserData(e)}}class uB extends un{get _name(){return"where"}get _optionsUtil(){return new lY({})}constructor(e,t){super(t),this.condition=e}_toProto(e){return{...super._toProto(e),args:[this.condition._toProto(e)]}}_readUserData(e){super._readUserData(e),uC(this.condition,e)}}class uh extends un{get _name(){return"limit"}get _optionsUtil(){return new lY({})}constructor(e,t){i9(!isNaN(e)&&e!==1/0&&e!==-1/0,34860),super(t),this.limit=e}_toProto(e){return{...super._toProto(e),args:[ac(e,this.limit)]}}}class ud extends un{get _name(){return"offset"}get _optionsUtil(){return new lY({})}constructor(e,t){super(t),this.offset=e}_toProto(e){return{...super._toProto(e),args:[ac(e,this.offset)]}}}class up extends un{get _name(){return"select"}get _optionsUtil(){return new lY({})}constructor(e,t){super(t),this.selections=e}_toProto(e){return{...super._toProto(e),args:[oZ(e,this.selections)]}}_readUserData(e){super._readUserData(e),uC(this.selections,e)}}class uf extends un{get _name(){return"sort"}get _optionsUtil(){return new lY({})}constructor(e,t){super(t),this.orderings=e}_toProto(e){return{...super._toProto(e),args:this.orderings.map(t=>t._toProto(e))}}_readUserData(e){super._readUserData(e),uC(this.orderings,e)}}class ug extends un{get _name(){return"replace_with"}get _optionsUtil(){return new lY({})}constructor(e,t){super(t),this.map=e}_toProto(e){return{...super._toProto(e),args:[this.map._toProto(e),oX(ug.Pr)]}}_readUserData(e){super._readUserData(e),uC(this.map,e)}}function uC(e,t){return"function"==typeof e._readUserData?e._readUserData(t):Array.isArray(e)?e.forEach(e
13=>e._readUserData(t)):e instanceof Map?e.forEach(e=>e._readUserData(t)):Object.values(e).forEach(e=>e._readUserData(t)),e}ug.Pr="full_replace";class um{constructor(e,t,r){this.serializer=e,this.stages=t,this.listenOptions=r,this.isCorePipeline=!0}getPipelineCollection(){return uy(this)}getPipelineCollectionGroup(){return uE(this)}getPipelineCollectionId(){var e=this;switch(u_(e)){case"collection":return sd.fromString(uy(e)).lastSegment();case"collection_group":return uE(e);default:return}}getPipelineDocuments(){return uv(this)}getPipelineFlavor(){var e;let t;return e=this,t="exact",e.stages.forEach((r,n)=>{r._name!==ua.name&&r._name!==us.name||(t="keyless"),r._name===up.name&&"exact"===t&&(t="augmented"),r._name===ui.name&&n<e.stages.length-1&&"exact"===t&&(t="augmented")}),t}getPipelineSourceType(){return u_(this)}}function u_(e){let t=e.stages[0];return t instanceof uo||t instanceof ul||t instanceof uu||t instanceof uc?t._name:"unknown"}function uy(e){if("collection"===u_(e))return e.stages[0].Er}function uE(e){if("collection_group"===u_(e))return e.stages[0].collectionId}function uv(e){if("documents"===u_(e))return e.stages[0].hr}class uw{constructor(e,t){this.type=e,this.value=t}static dr(){return new uw("ERROR",void 0)}static mr(){return new uw("UNSET",void 0)}static pr(){return new uw("NULL",sW)}static newValue(e){return ae(e)?new uw("NULL",sW):e&&"booleanValue"in e?new uw("BOOLEAN",e):s4(e)?new uw("INT",e):s5(e)?new uw("DOUBLE",e):e&&"timestampValue"in e&&e.timestampValue?new uw("TIMESTAMP",e):e&&"stringValue"in e?new uw("STRING",e):e&&"bytesValue"in e?new uw("BYTES",e):e.referenceValue?new uw("REFERENCE",e):e.geoPointValue?new uw("GEO_POINT",e):s7(e)?new uw("ARRAY",e):an(e)?new uw("VECTOR",e):ar(e)?new uw("MAP",e):new uw("ERROR",void 0)}gr(){return"ERROR"===this.type||"UNSET"===this.type}yr(){return"NULL"===this.type}}function ub(e){if(!e.gr())return e.value}function uD(e){return e instanceof l9?e._expr:e}function uT(e){if((e=uD(e))instanceof l3)return new uI(e);if(e instanceof l6)return new uS(e);if(e instanceof l2)return new uA(e);if(e instanceof l5){if("add"===e.name)return new uF(e);if("subtract"===e.name)return new ux(e);if("multiply"===e.name)return new uM(e);if("divide"===e.name)return new uG(e);if("mod"===e.name)return new uU(e);if("and"===e.name)return new uH(e);if("equal"===e.name)return new u3(e);if("not_equal"===e.name)return new u6(e);if("less_than"===e.name)return new u8(e);if("less_than_or_equal"===e.name)return new u4(e);if("greater_than"===e.name)return new u5(e);if("greater_than_or_equal"===e.name)return new u9(e);if("array_concat"===e.name)return new u7(e);if("array_reverse"===e.name)return new ce(e);if("array_contains"===e.name)return new ct(e);if("array_contains_all"===e.name)return new cr(e);if("array_contains_any"===e.name)return new cn(e);if("array_length"===e.name)return new ci(e);if("array_element"===e.name)return new cs(e);if("equal_any"===e.name)return new uJ(e);if("not_equal_any"===e.name)return new uK(e);if("is_nan"===e.name)return new uq(e);if("is_not_nan"===e.name)return new uY(e);if("is_null"===e.name)return new u$(e);if("is_not_null"===e.name)return new uW(e);if("is_error"===e.name)return new uQ(e);if("exists"===e.name)return new uZ(e);if("not"===e.name)return new uV(e);if("or"===e.name)return new uj(e);if("xor"===e.name)return new uz(e);if("conditional"===e.name)return new uX(e);if("maximum"===e.name)return new u0(e);if("minimum"===e.name)return new u1(e);if("reverse"===e.name)return new ca(e);if("replace_first"===e.name)return new co(e);if("replace_all"===e.name)return new cl(e);if("char_length"===e.name)return new cu(e);if("byte_length"===e.name)return new cc(e);if("like"===e.name)return new ch(e);if("regex_contains"===e.name)return new cd(e);if("regex_match"===e.name)return new cp(e);if("string_contains"===e.name)return new cf(e);if("starts_with"===e.name)return new cg(e);if("ends_with"===e.name)return new cC(e);if("to_lower"===e.name)return new cm(e);if("to_upper"===e.name)return new c_(e);if("trim"===e.name)return new cy(e);if("string_concat"===e.name)return new cE(e);if("map_get"===e.name)return new cv(e);if("cosine_distance"===e.name)return new cb(e);
13if("dot_product"===e.name)return new cD(e);if("euclidean_distance"===e.name)return new cT(e);if("vector_length"===e.name)return new cI(e);if("unix_micros_to_timestamp"===e.name)return new cH(e);if("timestamp_to_unix_micros"===e.name)return new cJ(e);if("unix_millis_to_timestamp"===e.name)return new cV(e);if("timestamp_to_unix_millis"===e.name)return new cK(e);if("unix_seconds_to_timestamp"===e.name)return new cj(e);if("timestamp_to_unix_seconds"===e.name)return new cq(e);if("timestamp_add"===e.name)return new c$(e);if("timestamp_subtract"===e.name)return new cW(e)}throw Error(`Unknown Expr : ${e}`)}class uI{constructor(e){this.expr=e}evaluate(e,t){if(this.expr.fieldName===sB){var r,n;return uw.newValue({referenceValue:(r=e.serializer,n=t.key,oH(r.databaseId,n.path))})}if("__update_time__"===this.expr.fieldName)return uw.newValue({timestampValue:oG(e.serializer,t.version)});if("__create_time__"===this.expr.fieldName)return uw.newValue({timestampValue:oG(e.serializer,t.createTime)});let i=t.data.field(this.expr._fieldPath);return i?sM(i)?uw.newValue(function(e,t){if("estimate"===e.serverTimestampBehavior)return{timestampValue:oG(e.serializer,aX.fromTimestamp(sU(t)))};if("previous"===e.serverTimestampBehavior){let e=sG(t);if(e)return e}return{nullValue:"NULL_VALUE"}}(e,i)):uw.newValue(i):uw.mr()}}class uS{constructor(e){this.expr=e}evaluate(e,t){return uw.newValue(this.expr._getValue())}}class uA{constructor(e){this.expr=e}evaluate(e,t){let r=this.expr.ur.map(r=>uT(r).evaluate(e,t));return r.some(e=>e.gr())?uw.dr():uw.newValue({arrayValue:{values:r.map(e=>e.value)}})}}function uO(e){return s5(e)?Number(e.doubleValue):Number(e.integerValue)}function uR(e){return BigInt(e.integerValue)}let uN=BigInt("0x7fffffffffffffff"),uP=-BigInt("0x8000000000000000");class uk{constructor(e){this.expr=e}evaluate(e,t){i9(this.expr.params.length>=2,24778);let r=uT(this.expr.params[0]).evaluate(e,t),n=uT(this.expr.params[1]).evaluate(e,t),i=this.wr(r,n);for(let r of this.expr.params.slice(2)){let n=uT(r).evaluate(e,t);i=this.wr(i,n)}return i}wr(e,t){if(e.gr()||t.gr())return uw.dr();if(e.yr()||t.yr())return uw.pr();let r=e.value,n=t.value;if(!s5(r)&&!s4(r)||!s5(n)&&!s4(n))return uw.dr();if(s5(r)||s5(n)){let e=this.br(r,n);return e?uw.newValue(e):uw.dr()}if(s4(r)&&s4(n)){let e=this.Sr(r,n);return void 0===e?uw.dr():"number"==typeof e?uw.newValue({doubleValue:e}):e<uP||e>uN?uw.dr():uw.newValue({integerValue:`${e}`})}return uw.dr()}}function uL(e,t){return sX(e)!==sX(t)?"TYPE_MISMATCH":at(e)||at(t)?"NOT_EQ":ae(e)&&ae(t)?"EQ":ae(e)||ae(t)?"NULL":s7(e)&&s7(t)?function(e,t){if(e.values?.length!==t.values?.length)return"NOT_EQ";let r=!1;for(let n=0;n<(e.values?.length??0);n++){let i=e.values[n],s=t.values[n];switch(uL(i,s)){case"EQ":break;case"NOT_EQ":case"TYPE_MISMATCH":return"NOT_EQ";case"NULL":r=!0;break;default:i4(44609,{vr:i,Dr:s})}}return r?"NULL":"EQ"}(e.arrayValue,t.arrayValue):an(e)&&an(t)||ar(e)&&ar(t)?function(e,t){let r=e.fields||{},n=t.fields||{};if(sC(r)!==sC(n))return"NOT_EQ";let i=!1;for(let e in r)if(r.hasOwnProperty(e)){if(void 0===n[e])return"NOT_EQ";switch(uL(r[e],n[e])){case"NOT_EQ":case"TYPE_MISMATCH":return"NOT_EQ";case"NULL":i=!0}}return i?"NULL":"EQ"}(e.mapValue,t.mapValue):s0(e,t,{o:!1,t:!0,i:!0})?"EQ":"NOT_EQ"}class uF extends uk{Sr(e,t){return uR(e)+uR(t)}br(e,t){return{doubleValue:uO(e)+uO(t)}}}class ux extends uk{constructor(e){super(e),this.expr=e}Sr(e,t){return uR(e)-uR(t)}br(e,t){return{doubleValue:uO(e)-uO(t)}}}class uM extends uk{constructor(e){super(e),this.expr=e}Sr(e,t){return uR(e)*uR(t)}br(e,t){return{doubleValue:uO(e)*uO(t)}}}class uG extends uk{constructor(e){super(e),this.expr=e}Sr(e,t){let r=uR(t);if(r!==BigInt(0))return uR(e)/r}br(e,t){let r=uO(t);return 0===r?{doubleValue:sz(r)?-1/0:1/0}:{doubleValue:uO(e)/r}}}class uU extends uk{constructor(e){super(e),this.expr=e}Sr(e,t){let r=uR(t);if(r!==BigInt(0))return uR(e)%r}br(e,t){let r=uO(t);if(0!==r)return{doubleValue:uO(e)%r}}}class uH{constructor(e){this.expr=e}evaluate(e,t){let r=!1,n=!1;for(let i of this.expr.params){let s=uT(i).evaluate(e,t);switch(s.type){case"BOOLEAN":if(!s.value?.booleanValue)return uw.newValue(sZ);break;case"NULL":n=!0;break;default:r=!0}}return r?uw.dr():n?uw.pr():uw.newValue(sQ)}}class uV{constructor(e){this.expr=e}evaluate(e,t){i9(1===this.expr.params.length,9634);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"BOOLEAN":return uw.newValue({booleanValue:!r.value?.booleanValue});case"NULL":return uw.pr();default:return uw.dr()}}}class uj{constructor(e){this.expr=e}evaluate(e,t){let r=!1,n=!1;for(let i of this.expr.params){let s=uT(i).evaluate(e,t);switch(s.type){case"BOOLEAN":if(s.value?.booleanValue)return uw.newValue(sQ);break;case"NULL":n=!0;break;default:r=!0}}return r?uw.dr():n?uw.pr():uw.newValue(sZ)}}class uz{constructor(e){this.expr=e}evaluate(e,t){let r=!1,n=!1;for(let i of this.expr.params){let s=uT(i).evaluate(e,t);switch(s.type){case"BOOLEAN":r=uz.xor(r,!!s.value?.booleanValue);break;case"NULL":n=!0;break;default:return uw.dr()}}return n?uw.pr():uw.newValue({booleanValue:r})}static xor(e,t){return(e||t)&&!(e&&t)}}class uJ{constructor(e){this.expr=e}evaluate(e,t){i9(2===this.expr.params.length,55094);let r=!1,n=uT(this.expr.params[0]).evaluate(e,t);switch(n.type){case"NULL":r=!0;break;case"ERROR":case"UNSET":return uw.dr()}let i=uT(this.expr.params[1]).evaluate(e,t);switch(i.type){case"ARRAY":break;case"NULL":r=!0;break;default:return uw.dr()}if(r)return uw.pr();for(let e of i.value?.arrayValue?.values??[])switch(ae(n.value)&&ae(e)?"EQ":uL(n.value,e)){case"EQ":return uw.newValue(sQ);case"NOT_EQ":case"TYPE_MISMATCH":break;case"NULL":r=!0;break;default:i4(44608,{value:n.value,candidate:e})}return r?uw.pr():uw.newValue(sZ)}}class uK{constructor(e){this.expr=e}evaluate(e,t){return new uV(new l5("not",[new l5("equal_any",this.expr.params)])).evaluate(e,t)}}class uq{constructor(e){this.expr=e}evaluate(e,t){i9(1===this.expr.params.length,23322);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"INT":return uw.newValue(sZ);case"DOUBLE":return uw.newValue({booleanValue:isNaN(uO(r.value))});case"NULL":return uw.pr();default:return uw.dr()}}}class uY{constructor(e){this.expr=e}evaluate(e,t){return i9(1===this.expr.params.length,50406),new uV(new l5("not",[new l5("is_nan",this.expr.params)])).evaluate(e,t)}}class u${constructor(e){this.expr=e}evaluate(e,t){switch(i9(1===this.expr.params.length,23123),uT(this.expr.params[0]).evaluate(e,t).type){case"NULL":return uw.newValue(sQ);case"UNSET":case"ERROR":return uw.dr();default:return uw.newValue(sZ)}}}
13class uW{constructor(e){this.expr=e}evaluate(e,t){return i9(1===this.expr.params.length,23167),new uV(new l5("not",[new l5("is_null",this.expr.params)])).evaluate(e,t)}}class uQ{constructor(e){this.expr=e}evaluate(e,t){return i9(1===this.expr.params.length,5228),"ERROR"===uT(this.expr.params[0]).evaluate(e,t).type?uw.newValue(sQ):uw.newValue(sZ)}}class uZ{constructor(e){this.expr=e}evaluate(e,t){switch(i9(1===this.expr.params.length,6877),uT(this.expr.params[0]).evaluate(e,t).type){case"ERROR":return uw.dr();case"UNSET":return uw.newValue(sZ);default:return uw.newValue(sQ)}}}class uX{constructor(e){this.expr=e}evaluate(e,t){i9(3===this.expr.params.length,11706);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"BOOLEAN":return r.value?.booleanValue?uT(this.expr.params[1]).evaluate(e,t):uT(this.expr.params[2]).evaluate(e,t);case"NULL":return uT(this.expr.params[2]).evaluate(e,t);default:return uw.dr()}}}class u0{constructor(e){this.expr=e}evaluate(e,t){let r;for(let n of this.expr.params.map(r=>uT(r).evaluate(e,t)))switch(n.type){case"ERROR":case"UNSET":case"NULL":continue;default:r=void 0===r||s2(n.value,r.value)>0?n:r}return void 0===r?uw.pr():r}}class u1{constructor(e){this.expr=e}evaluate(e,t){let r;for(let n of this.expr.params.map(r=>uT(r).evaluate(e,t)))switch(n.type){case"ERROR":case"UNSET":case"NULL":continue;default:r=void 0===r||0>s2(n.value,r.value)?n:r}return void 0===r?uw.pr():r}}class u2{constructor(e){this.expr=e}evaluate(e,t){i9(2===this.expr.params.length,31033,`${this.expr.name}() function should have exactly 2 params`);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"ERROR":case"UNSET":return uw.dr()}let n=uT(this.expr.params[1]).evaluate(e,t);switch(n.type){case"ERROR":case"UNSET":return uw.dr()}return this.Cr(r,n)}}class u3 extends u2{constructor(e){super(e),this.expr=e}Cr(e,t){if(e.yr()&&t.yr())return uw.newValue(sQ);if(e.yr()||t.yr()||at(e.value)||at(t.value)||sX(e.value)!==sX(t.value))return uw.newValue(sZ);switch(uL(e.value,t.value)){case"EQ":return uw.newValue(sQ);case"NOT_EQ":return uw.newValue(sZ);case"NULL":return uw.pr();default:i4(44615,{left:e,right:t})}}}class u6 extends u2{constructor(e){super(e),this.expr=e}Cr(e,t){switch(uL(e.value,t.value)){case"EQ":return uw.newValue(sZ);case"NOT_EQ":case"TYPE_MISMATCH":return uw.newValue(sQ);case"NULL":return uw.pr();default:i4(44614,{left:e,right:t})}}}class u8 extends u2{constructor(e){super(e),this.expr=e}Cr(e,t){return sX(e.value)!==sX(t.value)||at(e.value)||at(t.value)?uw.newValue(sZ):uw.newValue({booleanValue:0>s2(e.value,t.value)})}}class u4 extends u2{constructor(e){super(e),this.expr=e}Cr(e,t){return sX(e.value)!==sX(t.value)||at(e.value)||at(t.value)?uw.newValue(sZ):"EQ"===uL(e.value,t.value)?uw.newValue(sQ):uw.newValue({booleanValue:0>s2(e.value,t.value)})}}class u5 extends u2{constructor(e){super(e),this.expr=e}Cr(e,t){return sX(e.value)!==sX(t.value)||at(e.value)||at(t.value)?uw.newValue(sZ):uw.newValue({booleanValue:s2(e.value,t.value)>0})}}class u9 extends u2{constructor(e){super(e),this.expr=e}Cr(e,t){return sX(e.value)!==sX(t.value)||at(e.value)||at(t.value)?uw.newValue(sZ):"EQ"===uL(e.value,t.value)?uw.newValue(sQ):uw.newValue({booleanValue:s2(e.value,t.value)>0})}}class u7{constructor(e){this.expr=e}evaluate(e,t){throw Error("Unimplemented")}}class ce{constructor(e){this.expr=e}evaluate(e,t){i9(1===this.expr.params.length,216);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"NULL":return uw.pr();case"ARRAY":{let e=r.value.arrayValue?.values??[];return uw.newValue({arrayValue:{values:[...e].reverse()}})}default:return uw.dr()}}}class ct{constructor(e){this.expr=e}evaluate(e,t){return i9(2===this.expr.params.length,52884),new uJ(new l5("eq_any",[this.expr.params[1],this.expr.params[0]])).evaluate(e,t)}}class cr{constructor(e){this.expr=e}evaluate(e,t){i9(2===this.expr.params.length,1392);let r=!1,n=uT(this.expr.params[0]).evaluate(e,t);switch(n.type){case"ARRAY":break;case"NULL":r=!0;break;default:return uw.dr()}let i=uT(this.expr.params[1]).evaluate(e,t);switch(i.type){case"ARRAY":break;case"NULL":r=!0;break;default:return uw.dr()}if(r)return uw.pr();let s=i.value?.arrayValue?.values??[],a=n.value?.arrayValue?.values??[];for(let e of s){let t=!1;for(let n of(r=!1,a)){switch(ae(e)&&ae(n)?"EQ":uL(e,n)){case"EQ":t=!0;break;case"NOT_EQ":case"TYPE_MISMATCH":break;case"NULL":r=!0;break;default:i4(44613,{value:n,search:e})}if(t)break}if(!t)return uw.newValue(sZ)}return uw.newValue(sQ)}}class cn{constructor(e){this.expr=e}evaluate(e,t){i9(2===this.expr.params.length,2680);let r=!1,n=uT(this.expr.params[0]).evaluate(e,t);switch(n.type){case"ARRAY":break;case"NULL":r=!0;break;default:return uw.dr()}let i=uT(this.expr.params[1]).evaluate(e,t);switch(i.type){case"ARRAY":break;case"NULL":r=!0;break;default:return uw.dr()}if(r)return uw.pr();let s=i.value?.arrayValue?.values??[];for(let e of n.value?.arrayValue?.values??[])for(let t of s)switch(ae(e)&&ae(t)?"EQ":uL(e,t)){case"EQ":return uw.newValue(sQ);case"NOT_EQ":case"TYPE_MISMATCH":break;case"NULL":r=!0;break;default:i4(60403,{value:e,search:t})}return r?uw.pr():uw.newValue(sZ)}}class ci{constructor(e){this.expr=e}evaluate(e,t){i9(1===this.expr.params.length,38605);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"NULL":return uw.pr();case"ARRAY":return uw.newValue({integerValue:`${r.value?.arrayValue?.values?.length??0}`});default:return uw.dr()}}}class cs{constructor(e){this.expr=e}evaluate(e,t){throw Error("Unimplemented")}}class ca{constructor(e){this.expr=e}evaluate(e,t){i9(1===this.expr.params.length,1508);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"NULL":return uw.pr();case"BYTES":{let e=r.value?.bytesValue;if("string"==typeof e){let t=sA.fromBase64String(e).toUint8Array();return t.reverse(),uw.newValue({bytesValue:sA.fromUint8Array(t).toBase64()})}return uw.newValue({bytesValue:new Uint8Array(e).reverse()})}case"STRING":{let e=r.value?.stringValue,t=Array.from(new Intl.__PRIVATE_Segmenter(void 0,{granularity:"grapheme"}).segment(e),e=>e.segment).reverse();return uw.newValue({stringValue:t.join("")})}default:return uw.dr()}}}class co{constructor(e){this.expr=e}evaluate(e,t){throw Error("Unimplemented")}}class cl{constructor(e){this.expr=e}evaluate(e,t){throw Error("Unimplemented")}}class cu{constructor(e){this.expr=e}evaluate(e,t){i9(1===this.expr.params.length,19400);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"NULL":return uw.pr();case"STRING":{let e=function(e){let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);if(void 0===n)return;if(n<=65535)if(n>=55296&&n<=57343)if(n<=56319){let n=e.codePointAt(r+1);void 0!==n&&n>=56320&&n<=57343?(t+=1,r++):t+=1}else t+=1;else t+=1;else{if(!(n<=1114111))return;t+=1,r++}}return t}(r.value.stringValue);return void 0===e?uw.dr():uw.newValue({integerValue:e})}default:return uw.dr()}}}class cc{constructor(e){this.expr=e}evaluate(e,t){i9(1===this.expr.params.length,8486);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"BYTES":{let e=r.value?.bytesValue;return"string"==typeof e?uw.newValue({integerValue:sA.fromBase64String(e).toUint8Array().length}):uw.newValue({integerValue:new Uint8Array(e).length})}case"STRING":{let e=function(e){let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);if(void 0===n)return;if(n>=55296&&n<=57343){if(!(n<=56319))return;{let n=e.codePointAt(r+1);if(void 0===n||!(n>=56320&&n<=57343))return;t+=4,r++}}else if(n<=127)t+=1;else if(n<=2047)t+=2;else if(n<=65535)t+=3;else{if(!(n<=1114111))return;t+=4,r++}}return t}(r.value?.stringValue);return void 0===e?uw.dr():uw.newValue({integerValue:e})}case"NULL":return uw.pr();default:return uw.dr()}}}class cB{constructor(e){this.expr=e}evaluate(e,t){i9(2===this.expr.params.length,39773,`${this.expr.name}() function should have exactly two parameters`);let r=!1,n=uT(this.expr.params[0]).evaluate(e,t);switch(n.type){case"STRING":break;case"NULL":r=!0;break;default:return uw.dr()}let i=uT(this.expr.params[1]).evaluate(e,t);switch(i.type){case"STRING":break;case"NULL":r=!0;break;default:return uw.dr()}return r?uw.pr():this.Fr(n.value?.stringValue,i.value?.stringValue)}}class ch extends cB{Fr(e,t){try{let r=function(e){let t="";for(let r=0;r<e.length;r++){let n=e.charAt(r);switch(n){case"_":t+=".";break;case"%":t+=".*";break;case"\\":case".":case"*":case"?":case"+":case"^":case"$":case"|":case"(":case")":case"[":case"]":case"{":case"}":t+="\\"+n;break;default:t+=n}}return"^"+t+"$"}(t),n=iZ.compile(r);return uw.newValue({booleanValue:n.matches(e)})}catch(e){return i6(`Invalid LIKE pattern converted to regex: ${t}, returning error. Error: ${e}`),uw.dr()}}}class cd extends cB{Fr(e,t){try{let r=iZ.compile(t);return uw.newValue({booleanValue:r.test(e)})}catch(e){return i6(`Invalid regex pattern found in regex_contains: ${t}, returning error`),uw.dr()}}}class cp extends cB{Fr(e,t){try{return uw.newValue({booleanValue:iZ.compile(t).matches(e)})}catch(e){return i6(`Invalid regex pattern found in regex_match: ${t}, returning error`),uw.dr()}}}class cf extends cB{Fr(e,t){return uw.newValue({booleanValue:e.includes(t)})}}class cg extends cB{Fr(e,t){return uw.newValue({booleanValue:e.startsWith(t)})}}class cC extends cB{Fr(e,t){return uw.newValue({booleanValue:e.endsWith(t)})}}
13class cm{constructor(e){this.expr=e}evaluate(e,t){i9(1===this.expr.params.length,29079);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"STRING":return uw.newValue({stringValue:r.value?.stringValue?.toLowerCase()});case"NULL":return uw.pr();default:return uw.dr()}}}class c_{constructor(e){this.expr=e}evaluate(e,t){i9(1===this.expr.params.length,60487);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"STRING":return uw.newValue({stringValue:r.value?.stringValue?.toUpperCase()});case"NULL":return uw.pr();default:return uw.dr()}}}class cy{constructor(e){this.expr=e}evaluate(e,t){i9(1===this.expr.params.length,28544);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"STRING":return uw.newValue({stringValue:r.value?.stringValue?.trim()});case"NULL":return uw.pr();default:return uw.dr()}}}class cE{constructor(e){this.expr=e}evaluate(e,t){let r=this.expr.params.map(r=>uT(r).evaluate(e,t)),n="",i=!1;for(let e of r)switch(e.type){case"STRING":n+=e.value.stringValue;break;case"NULL":i=!0;break;default:return uw.dr()}return i?uw.pr():uw.newValue({stringValue:n})}}class cv{constructor(e){this.expr=e}evaluate(e,t){i9(2===this.expr.params.length,4483);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"UNSET":return uw.mr();case"MAP":break;default:return uw.dr()}let n=uT(this.expr.params[1]).evaluate(e,t);if("STRING"!==n.type)return uw.dr();let i=r.value?.mapValue?.fields?.[n.value?.stringValue];return void 0===i?uw.mr():uw.newValue(i)}}class cw{constructor(e){this.expr=e}evaluate(e,t){i9(2===this.expr.params.length,25231,`${this.expr.name}() function should have exactly 2 params`);let r=!1,n=uT(this.expr.params[0]).evaluate(e,t);switch(n.type){case"VECTOR":break;case"NULL":r=!0;break;default:return uw.dr()}let i=uT(this.expr.params[1]).evaluate(e,t);switch(i.type){case"VECTOR":break;case"NULL":r=!0;break;default:return uw.dr()}if(r)return uw.pr();let s=ai(n.value),a=ai(i.value);if(void 0===s||void 0===a||s.values?.length!==a.values?.length)return uw.dr();let o=this.Or(s,a);return void 0===o||isNaN(o)?uw.dr():uw.newValue({doubleValue:o})}}class cb extends cw{Or(e,t){let r=e?.values??[],n=t?.values??[];if(0===r.length)return;let i=0,s=0,a=0;for(let e=0;e<r.length;e++){if(!s9(r[e])||!s9(n[e]))return;let t=uO(r[e]),o=uO(n[e]);i+=t*o,s+=t*t,a+=o*o}let o=Math.sqrt(s)*Math.sqrt(a);if(0!==o)return 1-Math.max(-1,Math.min(1,i/o))}}class cD extends cw{Or(e,t){let r=e?.values??[],n=t?.values??[];if(0===r.length)return 0;let i=0;for(let e=0;e<r.length;e++){if(!s9(r[e])||!s9(n[e]))return;i+=uO(r[e])*uO(n[e])}return i}}class cT extends cw{Or(e,t){let r=e?.values??[],n=t?.values??[];if(0===r.length)return 0;let i=0;for(let e=0;e<r.length;e++){if(!s9(r[e])||!s9(n[e]))return;i+=Math.pow(uO(r[e])-uO(n[e]),2)}return Math.sqrt(i)}}
13class cI{constructor(e){this.expr=e}evaluate(e,t){i9(1===this.expr.params.length,39044);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"VECTOR":{let e=ai(r.value);return uw.newValue({integerValue:e?.values?.length??0})}case"NULL":return uw.pr();default:return uw.dr()}}}let cS=BigInt(-0xe7791f700),cA=BigInt(0x3afff4417f),cO=BigInt(1e3),cR=BigInt(1e6),cN=cS*cO,cP=cA*cO+BigInt(999),ck=cS*cR,cL=cA*cR+BigInt(999999);function cF(e){return e>=ck&&e<=cL}function cx(e,t){let r=BigInt(e);return!(r<cS||r>cA)&&!(t<0||t>=1e9)&&(r!==cS||0===t)&&!(r===cA&&t>0x3b9ac9ff)}function cM(e,t){return t<0?{seconds:e-1,nanos:t+1e9}:{seconds:e,nanos:t}}function cG(e){return BigInt(e.seconds)*cR+BigInt(Math.trunc(e.nanoseconds/1e3))}class cU{constructor(e){this.expr=e}evaluate(e,t){i9(1===this.expr.params.length,49262,`${this.expr.name}() function should have exactly one parameter`);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"INT":return this.toTimestamp(BigInt(r.value.integerValue));case"NULL":return uw.pr();default:return uw.dr()}}}class cH extends cU{toTimestamp(e){if(!cF(e))return uw.dr();let t=Number(e/cR),r=Number(e%cR*BigInt(1e3)),n=cM(t,r);return cx(t=n.seconds,r=n.nanos)?uw.newValue({timestampValue:{seconds:t,nanos:r}}):uw.dr()}}class cV extends cU{toTimestamp(e){if(!(e>=cN&&e<=cP))return uw.dr();let t=Number(e/cO),r=Number(e%cO*BigInt(1e6)),n=cM(t,r);return cx(t=n.seconds,r=n.nanos)?uw.newValue({timestampValue:{seconds:t,nanos:r}}):uw.dr()}}class cj extends cU{toTimestamp(e){if(!(e>=cS&&e<=cA))return uw.dr();let t=Number(e);return uw.newValue({timestampValue:{seconds:t,nanos:0}})}}class cz{constructor(e){this.expr=e}evaluate(e,t){i9(1===this.expr.params.length,1265,`${this.expr.name}() function should have exactly one parameter`);let r=uT(this.expr.params[0]).evaluate(e,t);switch(r.type){case"TIMESTAMP":break;case"NULL":return uw.pr();default:return uw.dr()}let n=ox(r.value.timestampValue);return cx(n.seconds,n.nanoseconds)?this.Mr(n):uw.dr()}}class cJ extends cz{Mr(e){let t=cG(e);return cF(t)?uw.newValue({integerValue:`${t.toString()}`}):uw.dr()}}class cK extends cz{Mr(e){let t=cG(e),r=t/BigInt(1e3),n=t%BigInt(1e3);return r>BigInt(0)||n===BigInt(0)?uw.newValue({integerValue:r.toString()}):uw.newValue({integerValue:(r-BigInt(1)).toString()})}}class cq extends cz{Mr(e){let t=BigInt(e.seconds);return t>=cS&&t<=cA?uw.newValue({integerValue:t.toString()}):uw.dr()}}class cY{constructor(e){this.expr=e}evaluate(e,t){let r,n;i9(3===this.expr.params.length,2775,`${this.expr.name}() function should have exactly 3 parameters`);let i=!1,s=uT(this.expr.params[0]).evaluate(e,t);switch(s.type){case"TIMESTAMP":break;case"NULL":i=!0;break;default:return uw.dr()}let a=uT(this.expr.params[1]).evaluate(e,t);switch(a.type){case"STRING":if(void 0===(r=function(e){switch(e){case"microsecond":return"microsecond";case"millisecond":return"millisecond";case"second":return"second";case"minute":return"minute";case"hour":return"hour";case"day":return"day";default:return}}(a.value.stringValue)))return uw.dr();break;case"NULL":i=!0;break;default:return uw.dr()}let o=uT(this.expr.params[2]).evaluate(e,t);switch(o.type){case"INT":break;case"NULL":i=!0;break;default:return uw.dr()}if(i)return uw.pr();let l=BigInt(o.value.integerValue);try{switch(r){case"microsecond":n=l;break;case"millisecond":n=l*BigInt(1e3);break;case"second":n=l*BigInt(1e6);break;case"minute":n=l*BigInt(6e7);break;case"hour":n=l*BigInt(36e8);break;case"day":n=l*BigInt(864e8);break;default:return uw.dr()}if("microsecond"!==r&&l!==BigInt(0)&&n/l!==BigInt(this.Nr(r)))return uw.dr()}catch(e){return i6(`Error during timestamp arithmetic: ${e}`),uw.dr()}let u=ox(s.value.timestampValue);if(!cx(u.seconds,u.nanoseconds))return uw.dr();let c=cG(u),B=this.Lr(c,n);if(!cF(B))return uw.dr();let h=Number(B/cR),d=B%cR,p=Number((d<0?d+cR:d)*BigInt(1e3)),f=d<0?h-1:h;return cx(f,p)?uw.newValue({timestampValue:{seconds:f,nanos:p}}):uw.dr()}Nr(e){switch(e){case"millisecond":return 1e3;case"second":return 1e6;case"minute":return 6e7;case"hour":return 36e8;case"day":return 864e8;default:return 1}}}class c$ extends cY{Lr(e,t){return e+t}}class cW extends cY{Lr(e,t){return e-t}}function cQ(e){if((e=uD(e))instanceof l3)return`fld(${e.fieldName})`;if(e instanceof l6){var t;return`cst(${null===(t=e.value)?"null":"number"==typeof t?t.toString():"string"==typeof t?`"${t}"`:t instanceof lU?`ref(${t.path})`:t instanceof lV?`vec(${JSON.stringify(t)})`:JSON.stringify(t)})`}if(e instanceof l5)return`fn(${e.name},[${e.params.map(cQ).join(",")}])`;if("ListOfExpressions"===e.expressionType)return`list([${e.ur.map(cQ).join(",")}])`;throw Error(`Unrecognized expr ${JSON.stringify(e,null,2)}`)}function cZ(e){return`${Array.from(e.entries()).sort().map(([e,t])=>`${e}=${cQ(t)}`).join(",")}`}function cX(e){return e.stages.map(e=>(function(e){if(e instanceof ui)return`${e._name}(${cZ(e.fields)})`;if(e instanceof us){let t=`${e._name}(${cZ(e.accumulators)})`;return e.groups.size>0&&(t+=`grouping(${cZ(e.groups)})`),t}if(e instanceof ua)return`${e._name}(${cZ(e.groups)})`;if(e instanceof uo)return`${e._name}
13(${e.Er})`;if(e instanceof ul)return`${e._name}(${e.collectionId})`;if(e instanceof uu)return`${e._name}()`;if(e instanceof uc)return`${e._name}(${e.hr.sort()})`;if(e instanceof uB)return`${e._name}(${cQ(e.condition)})`;if(e instanceof uh)return`${e._name}(${e.limit})`;if(e instanceof uf)return`${e._name}(${e.orderings.map(e=>`${cQ(e.expr)}${e.direction}`).join(",")})`;throw Error(`Unrecognized stage ${e._name}`)})(e)).join("|")}function c0(e){return e instanceof um}function c1(e){return c0(e)?cX(e):on(e)}function c2(e){return c0(e)?cX(e):`${a6(ot(e))}|lt:${e.limitType}`}function c3(e,t){return e instanceof um&&t instanceof um?cX(e)===cX(t):!(e instanceof um&&!(t instanceof um)||!(e instanceof um)&&t instanceof um)&&a8(ot(e),ot(t))&&e.limitType===t.limitType}function c6(e){return a4(e)?cX(e):a6(e)}function c8(e,t){return e instanceof um&&t instanceof um?cX(e)===cX(t):!(e instanceof um&&!(t instanceof um)||!(e instanceof um)&&t instanceof um)&&a8(e,t)}class c4{constructor(e,t,r,n){this.batchId=e,this.localWriteTime=t,this.baseMutations=r,this.mutations=n}applyToRemoteDocument(e,t){let r=t.mutationResults;for(let t=0;t<this.mutations.length;t++){let n=this.mutations[t];n.key.isEqual(e.key)&&function(e,t,r){let n,i;e instanceof aO?(n=e.value.clone(),i=aP(e.fieldTransforms,t,r.transformResults),n.setAll(i),t.convertToFoundDocument(r.version,n).setHasCommittedMutations()):e instanceof aR?function(e,t,r){if(!aD(e.precondition,t))return t.convertToUnknownDocument(r.version);let n=aP(e.fieldTransforms,t,r.transformResults),i=t.data;i.setAll(aN(e)),i.setAll(n),t.convertToFoundDocument(r.version,i).setHasCommittedMutations()}(e,t,r):t.convertToNoDocument(r.version).setHasCommittedMutations()}(n,e,r[t])}}applyToLocalView(e,t){for(let r of this.baseMutations)r.key.isEqual(e.key)&&(t=aS(r,e,t,this.localWriteTime));for(let r of this.mutations)r.key.isEqual(e.key)&&(t=aS(r,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){let r=oh();return this.mutations.forEach(n=>{let i=e.get(n.key),s=i.overlayedDocument,a=this.applyToLocalView(s,i.mutatedFields),o=aI(s,a=t.has(n.key)?null:a);null!==o&&r.set(n.key,o),s.isValidDocument()||s.convertToNoDocument(aX.min())}),r}keys(){return this.mutations.reduce((e,t)=>e.add(t.key),op())}isEqual(e){return this.batchId===e.batchId&&sn(this.mutations,e.mutations,(e,t)=>aA(e,t))&&sn(this.baseMutations,e.baseMutations,(e,t)=>aA(e,t))}}class c5{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return null!==e&&this.mutation===e.mutation}toString(){return`Overlay{ 14 largestBatchId: ${this.largestBatchId}, 15 mutation: ${this.mutation.toString()} 16 }`}}class c9{constructor(e,t,r,n,i=aX.min(),s=aX.min(),a=sA.EMPTY_BYTE_STRING,o=null){this.target=e,this.targetId=t,this.purpose=r,this.sequenceNumber=n,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=s,this.resumeToken=a,this.expectedCount=o}withSequenceNumber(e){return new c9(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,t){return new c9(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new c9(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new c9(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}class c7{constructor(e){this.qr=e}}class Be{Xr(e,t){this.ei(e,t),t.ti()}ei(e,t){if("nullValue"in e)this.ni(t,5);else if("booleanValue"in e)this.ni(t,10),t.ri(+!!e.booleanValue);else if("integerValue"in e)this.ni(t,15),t.ri(sN(e.integerValue));else if("doubleValue"in e){let r=sN(e.doubleValue);isNaN(r)?this.ni(t,13):(this.ni(t,15),sz(r)?t.ri(0):t.ri(r))}else if("timestampValue"in e){let r=e.timestampValue;this.ni(t,20),"string"==typeof r&&(r=sR(r)),t.ii(`${r.seconds||""}`),t.ri(r.nanos||0)}else if("stringValue"in e)this.si(e.stringValue,t),this._i(t);else if("bytesValue"in e)this.ni(t,30),t.oi(sP(e.bytesValue)),this._i(t);else if("referenceValue"in e)this.ai(e.referenceValue,t);else if("geoPointValue"in e){let r=e.geoPointValue;this.ni(t,45),t.ri(r.latitude||0),t.ri(r.longitude||0)}else"mapValue"in e?aa(e)?this.ni(t,Number.MAX_SAFE_INTEGER):an(e)?this.ui(e.mapValue,t):(this.ci(e.mapValue,t),this._i(t)):"arrayValue"in e?(this.li(e.arrayValue,t),this._i(t)):i4(19022,{Ei:e})}si(e,t){this.ni(t,25),this.hi(e,t)}hi(e,t){t.ii(e)}ci(e,t){let r=e.fields||{};for(let e of(this.ni(t,55),Object.keys(r)))this.si(e,t),this.ei(r[e],t)}ui(e,t){let r=e.fields||{};this.ni(t,53);let n=r[s$].arrayValue?.values?.length||0;this.ni(t,15),t.ri(sN(n)),this.si(s$,t),this.ei(r[s$],t)}li(e,t){let r=e.values||[];for(let e of(this.ni(t,50),r))this.ei(e,t)}
16ai(e,t){this.ni(t,37),sy.fromName(e).path.forEach(e=>{this.ni(t,60),this.hi(e,t)})}ni(e,t){e.ri(t)}_i(e){e.ri(2)}}Be.Ti=new Be;class Bt{constructor(){this.Yi=new Br}addToCollectionParentIndex(e,t){return this.Yi.add(t),lA.resolve()}getCollectionParents(e,t){return lA.resolve(this.Yi.getEntries(t))}addFieldIndex(e,t){return lA.resolve()}deleteFieldIndex(e,t){return lA.resolve()}deleteAllFieldIndexes(e){return lA.resolve()}createTargetIndexes(e,t){return lA.resolve()}getDocumentsMatchingTarget(e,t){return lA.resolve(null)}getIndexType(e,t){return lA.resolve(0)}getFieldIndexes(e,t){return lA.resolve([])}getNextCollectionGroupToUpdate(e){return lA.resolve(null)}getMinOffset(e,t){return lA.resolve(a1.min())}getMinOffsetFromCollectionGroup(e,t){return lA.resolve(a1.min())}updateCollectionGroup(e,t,r){return lA.resolve()}updateIndexEntries(e,t){return lA.resolve()}}class Br{constructor(){this.index={}}add(e){let t=e.lastSegment(),r=e.popLast(),n=this.index[t]||new so(sd.comparator),i=!n.has(r);return this.index[t]=n.add(r),i}has(e){let t=e.lastSegment(),r=e.popLast(),n=this.index[t];return n&&n.has(r)}getEntries(e){return(this.index[e]||new so(sd.comparator)).toArray()}}new Uint8Array(0);class Bn{constructor(e){this.gs=e}next(){return this.gs+=2,this.gs}static ys(){return new Bn(0)}static ws(){return new Bn(-1)}}function Bi(e,t){let r=t;for(let t of e.stages)r=function(e,t,r){if(t instanceof uo)return r.filter(e=>e.isFoundDocument()&&`/${e.key.getCollectionPath().canonicalString()}`===t.Er);if(t instanceof uB)return r.filter(r=>{let n=ub(uT(t.condition).evaluate(e,r));return void 0!==n&&s0(n,sQ)});if(t instanceof ul)return r.filter(e=>e.isFoundDocument()&&e.key.getCollectionPath().lastSegment()===t.collectionId);if(t instanceof uu)return r.filter(e=>e.isFoundDocument());if(t instanceof uc)return r.filter(e=>e.isFoundDocument()&&t.Tr.has(e.key.path.toStringWithLeadingSlash()));if(t instanceof uh)return r.slice(0,t.limit);if(t instanceof uf){let n;return n=t.orderings.map(e=>({Os:uT(e.expr),direction:e.direction})),[...r].sort((t,r)=>{for(let{Os:i,direction:s}of n){let n=s2(ub(i.evaluate(e,t))??sW,ub(i.evaluate(e,r))??sW);if(0!==n)return"ascending"===s?n:-n}return 0})}throw Error(`Unknown stage: ${t._name}`)}({serializer:e.serializer,serverTimestampBehavior:e.listenOptions?.serverTimestampBehavior},t,r);return r}function Bs(e,t){return Bi(e,[t]).length>0}function Ba(e){let t=function(e){for(let t=e.stages.length-1;t>=0;t--){let r=e.stages[t];if(r instanceof uf)return r.orderings}throw Error("Pipeline must contain at least one Sort stage")}(e);return(r,n)=>{for(let i of t){let t=s2(ub(uT(i.expr).evaluate({serializer:e.serializer},r))||sW,ub(uT(i.expr).evaluate({serializer:e.serializer},n))||sW);if(0!==t)return"ascending"===i.direction?t:-t}return 0}}function Bo(e){for(let t=e.stages.length-1;t>=0;t--){let r=e.stages[t];if(r instanceof uh)return{limit:r.limit}}}class Bl{constructor(){this.changes=new ol(e=>e.toString(),(e,t)=>e.isEqual(t)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,a0.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();let r=this.changes.get(t);return void 0!==r?lA.resolve(r):this.getFromCache(e,t)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}class Bu{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}class Bc{constructor(e,t,r,n){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=r,this.indexManager=n}getDocument(e,t){let r=null;return this.documentOverlayCache.getOverlay(e,t).next(n=>(r=n,this.remoteDocumentCache.getEntry(e,t))).next(e=>(null!==r&&aS(r.mutation,e,sg.empty(),sI.now()),e))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.getLocalViewOfDocuments(e,t,op()).next(()=>t))}getLocalViewOfDocuments(e,t,r=op()){let n=oh();return this.populateOverlays(e,n,t).next(()=>this.computeViews(e,t,n,r).next(e=>{let t=oB();return e.forEach((e,r)=>{t=t.insert(e,r.overlayedDocument)}),t}))}getOverlayedDocuments(e,t){let r=oh();return this.populateOverlays(e,r,t).next(()=>this.computeViews(e,t,r,op()))}populateOverlays(e,t,r){let n=[];
16return r.forEach(e=>{t.has(e)||n.push(e)}),this.documentOverlayCache.getOverlays(e,n).next(e=>{e.forEach((e,r)=>{t.set(e,r)})})}computeViews(e,t,r,n){let i=ou,s=oh(),a=oh();return t.forEach((e,t)=>{let a=r.get(t.key);n.has(t.key)&&(void 0===a||a.mutation instanceof aR)?i=i.insert(t.key,t):void 0!==a?(s.set(t.key,a.mutation.getFieldMask()),aS(a.mutation,t,a.mutation.getFieldMask(),sI.now())):s.set(t.key,sg.empty())}),this.recalculateAndSaveOverlays(e,i).next(e=>(e.forEach((e,t)=>s.set(e,t)),t.forEach((e,t)=>a.set(e,new Bu(t,s.get(e)??null))),a))}recalculateAndSaveOverlays(e,t){let r=oh(),n=new si((e,t)=>e-t),i=op();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next(e=>{for(let i of e)i.keys().forEach(e=>{let s=t.get(e);if(null===s)return;let a=r.get(e)||sg.empty();a=i.applyToLocalView(s,a),r.set(e,a);let o=(n.get(i.batchId)||op()).add(e);n=n.insert(i.batchId,o)})}).next(()=>{let s=[],a=n.getReverseIterator();for(;a.hasNext();){let n=a.getNext(),o=n.key,l=n.value,u=oh();l.forEach(e=>{if(!i.has(e)){let n=aI(t.get(e),r.get(e));null!==n&&u.set(e,n),i=i.add(e)}}),s.push(this.documentOverlayCache.saveOverlays(e,o,u))}return lA.waitFor(s)}).next(()=>r)}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.recalculateAndSaveOverlays(e,t))}getDocumentsMatchingQuery(e,t,r,n){return c0(t)?this.getDocumentsMatchingPipeline(e,t,r,n):sy.isDocumentKey(t.path)&&null===t.collectionGroup&&0===t.filters.length?this.getDocumentsMatchingDocumentQuery(e,t.path):null!==t.collectionGroup?this.getDocumentsMatchingCollectionGroupQuery(e,t,r,n):this.getDocumentsMatchingCollectionQuery(e,t,r,n)}getNextDocuments(e,t,r,n){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,r,n).next(i=>{let s=n-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,r.largestBatchId,n-i.size):lA.resolve(oh()),a=-1,o=i;return s.next(t=>lA.forEach(t,(t,r)=>(a<r.largestBatchId&&(a=r.largestBatchId),i.get(t)?lA.resolve():this.remoteDocumentCache.getEntry(e,t).next(e=>{o=o.insert(t,e)}))).next(()=>this.populateOverlays(e,t,i)).next(()=>this.computeViews(e,o,t,op())).next(e=>{let t;return{batchId:a,changes:(t=oc,e.forEach((e,r)=>t=t.insert(e,r.overlayedDocument)),t)}}))})}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new sy(t)).next(e=>{let t=oB();return e.isFoundDocument()&&(t=t.insert(e.key,e)),t})}getDocumentsMatchingCollectionGroupQuery(e,t,r,n){let i=t.collectionGroup,s=oB();return this.indexManager.getCollectionParents(e,i).next(a=>lA.forEach(a,a=>{let o=new a9(a.child(i),null,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,t.startAt,t.endAt);return this.getDocumentsMatchingCollectionQuery(e,o,r,n).next(e=>{e.forEach((e,t)=>{s=s.insert(e,t)})})}).next(()=>s))}getDocumentsMatchingCollectionQuery(e,t,r,n){let i;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,r.largestBatchId).next(s=>(i=s,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,r,i,n))).next(e=>this.retrieveMatchingLocalDocuments(i,e,e=>oi(t,e)))}getDocumentsMatchingPipeline(e,t,r,n){if("collection_group"===u_(t)){let i=uE(t),s=oB();return this.indexManager.getCollectionParents(e,i).next(a=>lA.forEach(a,a=>{var o;let l,u=(o=a.child(i),l=t.stages.map(e=>e instanceof ul?new uo(o.canonicalString(),{}):e),new um(t.serializer,l));return this.getDocumentsMatchingPipeline(e,u,r,n).next(e=>{e.forEach((e,t)=>{s=s.insert(e,t)})})}).next(()=>s))}{let i;return this.getOverlaysForPipeline(e,t,r.largestBatchId).next(s=>{switch(i=s,u_(t)){case"collection":return this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,r,i,n);case"documents":let a=op();for(let e of uv(t))a=a.add(sy.fromPath(e));return this.remoteDocumentCache.getEntries(e,a);case"database":return this.remoteDocumentCache.getAllEntries(e);default:throw new sc("invalid-argument",`Invalid pipeline source to execute offline: ${cX(t)}`)}}).next(e=>this.retrieveMatchingLocalDocuments(i,e,e=>Bs(t,e)))}}retrieveMatchingLocalDocuments(e,t,r){e.forEach((e,r)=>{let n=r.getKey();null===t.get(n)&&(t=t.insert(n,a0.newInvalidDocument(n)))});let n=oB();return t.forEach((t,i)=>{let s=e.get(t);void 0!==s&&aS(s.mutation,i,sg.empty(),sI.now()),r(i)&&(n=n.insert(t,i))}),n}getOverlaysForPipeline(e,t,r){switch(u_(t)){case"collection":return this.documentOverlayCache.getOverlaysForCollection(e,sd.fromString(uy(t)),r);case"collection_group":throw new sc("invalid-argument",`Unexpected collection group pipeline: ${cX(t)}`);case"documents":return this.documentOverlayCache.getOverlays(e,uv(t).map(e=>sy.fromPath(e)));case"database":return this.documentOverlayCache.getAllOverlays(e,r);default:throw new sc("invalid-argument",`Failed to get overlays for pipeline: ${cX(t)}`)}}}
16class BB{constructor(e){this.serializer=e,this.Ks=new Map,this.Qs=new Map}getBundleMetadata(e,t){return lA.resolve(this.Ks.get(t))}saveBundleMetadata(e,t){return this.Ks.set(t.id,{id:t.id,version:t.version,createTime:oU(t.createTime)}),lA.resolve()}getNamedQuery(e,t){return lA.resolve(this.Qs.get(t))}saveNamedQuery(e,t){var r;let n;return this.Qs.set(t.name,{name:t.name,query:(n=function(e){var t,r,n,i;let s,a,o,l,u,c=4===(s=oj(e.parent)).length?sd.emptyPath():oq(s),B=e.structuredQuery,h=B.from?B.from.length:0,d=null;if(h>0){i9(1===h,65062);let e=B.from[0];e.allDescendants?d=e.collectionId:c=c.child(e.collectionId)}let p=[];B.where&&(p=(a=function e(t){return void 0!==t.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":let t=o$(e.unaryFilter.field);return aU.create(t,"==",{doubleValue:NaN});case"IS_NULL":let r=o$(e.unaryFilter.field);return aU.create(r,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":let n=o$(e.unaryFilter.field);return aU.create(n,"!=",{doubleValue:NaN});case"IS_NOT_NULL":let i=o$(e.unaryFilter.field);return aU.create(i,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":return i4(61313);default:return i4(60726)}}(t):void 0!==t.fieldFilter?aU.create(o$(t.fieldFilter.field),function(e){switch(e){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":return i4(58110);default:return i4(50506)}}(t.fieldFilter.op),t.fieldFilter.value):void 0!==t.compositeFilter?aH.create(t.compositeFilter.filters.map(t=>e(t)),function(e){switch(e){case"AND":return"and";case"OR":return"or";default:return i4(1026)}}(t.compositeFilter.op)):i4(30097,{filter:t})}(B.where))instanceof aH&&aj(t=a)&&aV(t)?a.getFilters():[a]);let f=[];B.orderBy&&(f=B.orderBy.map(e=>new aZ(o$(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))));let g=null;B.limit&&(g=null==(o="object"==typeof(r=B.limit)?r.value:r)?null:o);let C=null;B.startAt&&(l=!!(n=B.startAt).before,C=new aF(n.values||[],l));let m=null;return B.endAt&&(u=!(i=B.endAt).before,m=new aF(i.values||[],u)),new a9(c,d,f,p,g,"F",C,m)}({parent:(r=t.bundledQuery).parent,structuredQuery:r.structuredQuery}),"LAST"===r.limitType?or(n,n.limit,"L"):n),readTime:oU(t.readTime)}),lA.resolve()}}class Bh{constructor(){this.overlays=new si(sy.comparator),this.Ws=new Map}getOverlay(e,t){return lA.resolve(this.overlays.get(t))}getOverlays(e,t){let r=oh();return lA.forEach(t,t=>this.getOverlay(e,t).next(e=>{null!==e&&r.set(t,e)})).next(()=>r)}getAllOverlays(e,t){let r=oh();return this.overlays.forEach((e,n)=>{n.largestBatchId>t&&r.set(e,n)}),lA.resolve(r)}saveOverlays(e,t,r){return r.forEach((r,n)=>{this.Yr(e,t,n)}),lA.resolve()}removeOverlaysForBatchId(e,t,r){let n=this.Ws.get(r);return void 0!==n&&(n.forEach(e=>this.overlays=this.overlays.remove(e)),this.Ws.delete(r)),lA.resolve()}getOverlaysForCollection(e,t,r){let n=oh(),i=t.length+1,s=new sy(t.child("")),a=this.overlays.getIteratorFrom(s);for(;a.hasNext();){let e=a.getNext().value,s=e.getKey();if(!t.isPrefixOf(s.path))break;s.path.length===i&&e.largestBatchId>r&&n.set(e.getKey(),e)}return lA.resolve(n)}getOverlaysForCollectionGroup(e,t,r,n){let i=new si((e,t)=>e-t),s=this.overlays.getIterator();for(;s.hasNext();){let e=s.getNext().value;if(e.getKey().getCollectionGroup()===t&&e.largestBatchId>r){let t=i.get(e.largestBatchId);null===t&&(t=oh(),i=i.insert(e.largestBatchId,t)),t.set(e.getKey(),e)}}let a=oh(),o=i.getIterator();for(;o.hasNext()&&(o.getNext().value.forEach((e,t)=>a.set(e,t)),!(a.size()>=n)););return lA.resolve(a)}Yr(e,t,r){let n=this.overlays.get(r.key);if(null!==n){let e=this.Ws.get(n.largestBatchId).delete(r.key);this.Ws.set(n.largestBatchId,e)}this.overlays=this.overlays.insert(r.key,new c5(t,r));let i=this.Ws.get(t);void 0===i&&(i=op(),this.Ws.set(t,i)),this.Ws.set(t,i.add(r.key))}}class Bd{constructor(){this.sessionToken=sA.EMPTY_BYTE_STRING}getSessionToken(e){return lA.resolve(this.sessionToken)}setSessionToken(e,t){return this.sessionToken=t,lA.resolve()}}class Bp{constructor(){this.Gs=new so(Bf.zs),this.js=new so(Bf.Hs)}isEmpty(){return this.Gs.isEmpty()}addReference(e,t){let r=new Bf(e,t);this.Gs=this.Gs.add(r),this.js=this.js.add(r)}
16Js(e,t){e.forEach(e=>this.addReference(e,t))}removeReference(e,t){this.Ys(new Bf(e,t))}Zs(e,t){e.forEach(e=>this.removeReference(e,t))}Xs(e){let t=new sy(new sd([])),r=new Bf(t,e),n=new Bf(t,e+1),i=[];return this.js.forEachInRange([r,n],e=>{this.Ys(e),i.push(e.key)}),i}e_(){this.Gs.forEach(e=>this.Ys(e))}Ys(e){this.Gs=this.Gs.delete(e),this.js=this.js.delete(e)}t_(e){let t=new sy(new sd([])),r=new Bf(t,e),n=new Bf(t,e+1),i=op();return this.js.forEachInRange([r,n],e=>{i=i.add(e.key)}),i}containsKey(e){let t=new Bf(e,0),r=this.Gs.firstAfterOrEqual(t);return null!==r&&e.isEqual(r.key)}}class Bf{constructor(e,t){this.key=e,this.n_=t}static zs(e,t){return sy.comparator(e.key,t.key)||se(e.n_,t.n_)}static Hs(e,t){return se(e.n_,t.n_)||sy.comparator(e.key,t.key)}}class Bg{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.Wr=1,this.r_=new so(Bf.zs)}checkEmpty(e){return lA.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,r,n){let i=this.Wr;this.Wr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];let s=new c4(i,t,r,n);for(let t of(this.mutationQueue.push(s),n))this.r_=this.r_.add(new Bf(t.key,i)),this.indexManager.addToCollectionParentIndex(e,t.key.path.popLast());return lA.resolve(s)}lookupMutationBatch(e,t){return lA.resolve(this.i_(t))}getNextMutationBatchAfterBatchId(e,t){let r=this.s_(t+1),n=r<0?0:r;return lA.resolve(this.mutationQueue.length>n?this.mutationQueue[n]:null)}getHighestUnacknowledgedBatchId(){return lA.resolve(0===this.mutationQueue.length?-1:this.Wr-1)}getAllMutationBatches(e){return lA.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){let r=new Bf(t,0),n=new Bf(t,1/0),i=[];return this.r_.forEachInRange([r,n],e=>{let t=this.i_(e.n_);i.push(t)}),lA.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,t){let r=new so(se);return t.forEach(e=>{let t=new Bf(e,0),n=new Bf(e,1/0);this.r_.forEachInRange([t,n],e=>{r=r.add(e.n_)})}),lA.resolve(this.__(r))}getAllMutationBatchesAffectingQuery(e,t){let r=t.path,n=r.length+1,i=r;sy.isDocumentKey(i)||(i=i.child(""));let s=new Bf(new sy(i),0),a=new so(se);return this.r_.forEachWhile(e=>{let t=e.key.path;return!!r.isPrefixOf(t)&&(t.length===n&&(a=a.add(e.n_)),!0)},s),lA.resolve(this.__(a))}__(e){let t=[];return e.forEach(e=>{let r=this.i_(e);null!==r&&t.push(r)}),t}removeMutationBatch(e,t){i9(0===this.o_(t.batchId,"removed"),55003),this.mutationQueue.shift();let r=this.r_;return lA.forEach(t.mutations,n=>{let i=new Bf(n.key,t.batchId);return r=r.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,n.key)}).next(()=>{this.r_=r})}jr(e){}containsKey(e,t){let r=new Bf(t,0),n=this.r_.firstAfterOrEqual(r);return lA.resolve(t.isEqual(n&&n.key))}performConsistencyCheck(e){return this.mutationQueue.length,lA.resolve()}o_(e,t){return this.s_(e)}s_(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}i_(e){let t=this.s_(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}class BC{constructor(e){this.a_=e,this.docs=new si(sy.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){let r=t.key,n=this.docs.get(r),i=n?n.size:0,s=this.a_(t);return this.docs=this.docs.insert(r,{document:t.mutableCopy(),size:s}),this.size+=s-i,this.indexManager.addToCollectionParentIndex(e,r.path.popLast())}removeEntry(e){let t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){let r=this.docs.get(t);return lA.resolve(r?r.document.mutableCopy():a0.newInvalidDocument(t))}getEntries(e,t){let r=ou;return t.forEach(e=>{let t=this.docs.get(e);r=r.insert(e,t?t.document.mutableCopy():a0.newInvalidDocument(e))}),lA.resolve(r)}getAllEntries(e){let t=ou;return this.docs.forEach((e,r)=>{t=t.insert(e,r.document)}),lA.resolve(t)}getDocumentsMatchingQuery(e,t,r,n){let i,s;c0(t)?(i=sd.fromString(uy(t)),s=e=>Bs(t,e)):(i=t.path,s=e=>oi(t,e));let a=ou,o=new sy(i.child("__id-9223372036854775808__")),l=this.docs.getIteratorFrom(o);for(;l.hasNext();){let{key:e,value:{document:t}}=l.getNext();if(!i.isPrefixOf(e.path))break;e.path.length>i.length+1||0>=function(e,t){let r=e.readTime.compareTo(t.readTime);return 0!==r||0!==(r=sy.comparator(e.documentKey,t.documentKey))?r:se(e.largestBatchId,t.largestBatchId)}(new a1(t.readTime,t.key,-1),r)||(n.has(t.key)||s(t))&&(a=a.insert(t.key,t.mutableCopy()))}return lA.resolve(a)}getAllFromCollectionGroup(e,t,r,n){i4(9500)}u_(e,t){return lA.forEach(this.docs,e=>t(e))}newChangeBuffer(e){return new Bm(this)}getSize(e){return lA.resolve(this.size)}}class Bm extends Bl{constructor(e){super(),this.qs=e}applyChanges(e){let t=[];
16return this.changes.forEach((r,n)=>{n.isValidDocument()?t.push(this.qs.addEntry(e,n)):this.qs.removeEntry(r)}),lA.waitFor(t)}getFromCache(e,t){return this.qs.getEntry(e,t)}getAllFromCache(e,t){return this.qs.getEntries(e,t)}}class B_{constructor(e){this.persistence=e,this.c_=new ol(e=>c6(e),c8),this.lastRemoteSnapshotVersion=aX.min(),this.highestTargetId=0,this.l_=0,this.E_=new Bp,this.targetCount=0,this.h_=Bn.ys()}forEachTarget(e,t){return this.c_.forEach((e,r)=>t(r)),lA.resolve()}getLastRemoteSnapshotVersion(e){return lA.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return lA.resolve(this.l_)}allocateTargetId(e){return this.highestTargetId=this.h_.next(),lA.resolve(this.highestTargetId)}setTargetsMetadata(e,t,r){return r&&(this.lastRemoteSnapshotVersion=r),t>this.l_&&(this.l_=t),lA.resolve()}vs(e){this.c_.set(e.target,e);let t=e.targetId;t>this.highestTargetId&&(this.h_=new Bn(t),this.highestTargetId=t),e.sequenceNumber>this.l_&&(this.l_=e.sequenceNumber)}addTargetData(e,t){return this.vs(t),this.targetCount+=1,lA.resolve()}updateTargetData(e,t){return this.vs(t),lA.resolve()}removeTargetData(e,t){return this.c_.delete(t.target),this.E_.Xs(t.targetId),this.targetCount-=1,lA.resolve()}removeTargets(e,t,r){let n=0,i=[];return this.c_.forEach((s,a)=>{a.sequenceNumber<=t&&null===r.get(a.targetId)&&(this.c_.delete(s),i.push(this.removeMatchingKeysForTargetId(e,a.targetId)),n++)}),lA.waitFor(i).next(()=>n)}getTargetCount(e){return lA.resolve(this.targetCount)}getTargetData(e,t){let r=this.c_.get(t)||null;return lA.resolve(r)}addMatchingKeys(e,t,r){return this.E_.Js(t,r),lA.resolve()}removeMatchingKeys(e,t,r){this.E_.Zs(t,r);let n=this.persistence.referenceDelegate,i=[];return n&&t.forEach(t=>{i.push(n.markPotentiallyOrphaned(e,t))}),lA.waitFor(i)}removeMatchingKeysForTargetId(e,t){return this.E_.Xs(t),lA.resolve()}getMatchingKeysForTargetId(e,t){let r=this.E_.t_(t);return lA.resolve(r)}containsKey(e,t){return lA.resolve(this.E_.containsKey(t))}}class By{constructor(e,t){this.T_={},this.overlays={},this.P_=new lT(0),this.R_=!1,this.R_=!0,this.I_=new Bd,this.referenceDelegate=e(this),this.A_=new B_(this),this.indexManager=new Bt,this.remoteDocumentCache=function(e){return new BC(e)}(e=>this.referenceDelegate.V_(e)),this.serializer=new c7(t),this.d_=new BB(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.R_=!1,Promise.resolve()}get started(){return this.R_}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new Bh,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let r=this.T_[e.toKey()];return r||(r=new Bg(t,this.referenceDelegate),this.T_[e.toKey()]=r),r}getGlobalsCache(){return this.I_}getTargetCache(){return this.A_}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.d_}runTransaction(e,t,r){i2("MemoryPersistence","Starting transaction:",e);let n=new BE(this.P_.next());return this.referenceDelegate.f_(),r(n).next(e=>this.referenceDelegate.m_(n).next(()=>e)).toPromise().then(e=>(n.raiseOnCommittedEvent(),e))}p_(e,t){return lA.or(Object.values(this.T_).map(r=>()=>r.containsKey(e,t)))}}class BE extends lI{constructor(e){super(),this.currentSequenceNumber=e}}class Bv{constructor(e){this.persistence=e,this.g_=new Bp,this.y_=null}static w_(e){return new Bv(e)}get b_(){if(this.y_)return this.y_;throw i4(60996)}addReference(e,t,r){return this.g_.addReference(r,t),this.b_.delete(r.toString()),lA.resolve()}removeReference(e,t,r){return this.g_.removeReference(r,t),this.b_.add(r.toString()),lA.resolve()}markPotentiallyOrphaned(e,t){return this.b_.add(t.toString()),lA.resolve()}removeTarget(e,t){this.g_.Xs(t.targetId).forEach(e=>this.b_.add(e.toString()));let r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,t.targetId).next(e=>{e.forEach(e=>this.b_.add(e.toString()))}).next(()=>r.removeTargetData(e,t))}f_(){this.y_=new Set}m_(e){let t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return lA.forEach(this.b_,r=>{let n=sy.fromPath(r);return this.S_(e,n).next(e=>{e||t.removeEntry(n,aX.min())})}).next(()=>(this.y_=null,t.apply(e)))}updateLimboDocument(e,t){return this.S_(e,t).next(e=>{e?this.b_.delete(t.toString()):this.b_.add(t.toString())})}V_(e){return 0}S_(e,t){return lA.or([()=>lA.resolve(this.g_.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.p_(e,t)])}}class Bw{constructor(e,t){this.persistence=e,this.v_=new ol(e=>(function(e){let t="";for(let r=0;r<e.length;r++)t.length>0&&(t+="\x01\x01"),t=function(e,t){let r=t,n=e.length;for(let t=0;t<n;t++){let n=e.charAt(t);switch(n){case"\0":r+="\x01\x10";break;case"\x01":r+="\x01\x11";break;default:r+=n}}return r}(e.get(r),t);return t+"\x01\x01"})(e.path),(e,t)=>e.isEqual(t)),this.garbageCollector=function(e,t){return new lL(e,t)}(this,t)}static w_(e,t){return new Bw(e,t)}f_(){}m_(e){return lA.resolve()}forEachTarget(e,t){return this.persistence.getTargetCache().forEac
16hTarget(e,t)}rr(e){let t=this.xs(e);return this.persistence.getTargetCache().getTargetCount(e).next(e=>t.next(t=>e+t))}xs(e){let t=0;return this.ir(e,e=>{t++}).next(()=>t)}ir(e,t){return lA.forEach(this.v_,(r,n)=>this.Fs(e,r,n).next(e=>e?lA.resolve():t(n)))}removeTargets(e,t,r){return this.persistence.getTargetCache().removeTargets(e,t,r)}removeOrphanedDocuments(e,t){let r=0,n=this.persistence.getRemoteDocumentCache(),i=n.newChangeBuffer();return n.u_(e,n=>this.Fs(e,n,t).next(e=>{e||(r++,i.removeEntry(n,aX.min()))})).next(()=>i.apply(e)).next(()=>r)}markPotentiallyOrphaned(e,t){return this.v_.set(t,e.currentSequenceNumber),lA.resolve()}removeTarget(e,t){let r=t.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,r)}addReference(e,t,r){return this.v_.set(r,e.currentSequenceNumber),lA.resolve()}removeReference(e,t,r){return this.v_.set(r,e.currentSequenceNumber),lA.resolve()}updateLimboDocument(e,t){return this.v_.set(t,e.currentSequenceNumber),lA.resolve()}V_(e){let t=e.key.toString().length;return e.isFoundDocument()&&(t+=function e(t){switch(sX(t)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:let r=sG(t);return r?16+e(r):16;case 5:return 2*t.stringValue.length;case 6:return sP(t.bytesValue).approximateByteSize();case 7:return t.referenceValue.length;case 9:return(t.arrayValue.values||[]).reduce((t,r)=>t+e(r),0);case 10:case 11:var n;let i;return n=t.mapValue,i=0,sm(n.fields,(t,r)=>{i+=t.length+e(r)}),i;default:throw i4(13486,{value:t})}}(e.data.value)),t}Fs(e,t,r){return lA.or([()=>this.persistence.p_(e,t),()=>this.persistence.getTargetCache().containsKey(e,t),()=>{let e=this.v_.get(t);return lA.resolve(void 0!==e&&e>r)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}}class Bb{constructor(e,t,r,n){this.targetId=e,this.fromCache=t,this.Ao=r,this.Vo=n}static fo(e,t){let r=op(),n=op();for(let e of t.docChanges)switch(e.type){case 0:r=r.add(e.doc.key);break;case 1:n=n.add(e.doc.key)}return new Bb(e,t.fromCache,r,n)}}function BD(e,t){return sy.comparator(e.key,t.key)}class BT{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}class BI{constructor(){this.mo=!1,this.po=!1,this.yo=100,this.wo=function(){let t;return!function(){let t=R()?.forceEnvironment;if("node"===t)return!0;if("browser"===t)return!1;try{return"[object process]"===Object.prototype.toString.call(e.g.process)}catch(e){return!1}}()&&navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")?8:Number((t=F().match(/Android ([\d.]+)/i))?t[1].split(".").slice(0,2).join("."):"-1")>0?6:4}()}initialize(e,t){this.bo=e,this.indexManager=t,this.mo=!0}getDocumentsMatchingQuery(e,t,r,n){let i={result:null};return this.So(e,t).next(e=>{i.result=e}).next(()=>{if(!i.result)return this.vo(e,t,n,r).next(e=>{i.result=e})}).next(()=>{if(i.result)return;let r=new BT;return this.Do(e,t,r).next(n=>{if(i.result=n,this.po)return this.xo(e,t,r,n.size)})}).next(()=>i.result)}xo(e,t,r,n){return c0(t)?lA.resolve():r.documentReadCount<this.yo?(i1()<=o.DEBUG&&i2("QueryEngine","SDK will not create cache indexes for query:",on(t),"since it only creates cache indexes for collection contains","more than or equal to",this.yo,"documents"),lA.resolve()):(i1()<=o.DEBUG&&i2("QueryEngine","Query:",on(t),"scans",r.documentReadCount,"local documents and returns",n,"documents as results."),r.documentReadCount>this.wo*n?(i1()<=o.DEBUG&&i2("QueryEngine","The SDK decides to create cache indexes for query:",on(t),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,ot(t))):lA.resolve())}So(e,t){if(c0(t))return lA.resolve(null);let r=t;if(a7(r))return lA.resolve(null);let n=ot(r);return this.indexManager.getIndexType(e,n).next(t=>0===t?null:(null!==r.limit&&1===t&&(n=ot(r=or(r,null,"F"))),this.indexManager.getDocumentsMatchingTarget(e,n).next(t=>{let i=op(...t);return this.bo.getDocuments(e,i).next(t=>this.indexManager.getMinOffset(e,n).next(n=>{let s=this.Co(r,t);return this.Fo(r,s,i,n.readTime)?this.So(e,or(r,null,"F")):this.Oo(e,s,r,n)}))})))}vo(e,t,r,n){return(c0(t)?function(e){for(let t of e.stages){if(t instanceof uh||t instanceof ud)return!1;if(t instanceof uB){if(t.condition instanceof l7&&"exists"===t.condition._expr.name&&t.condition._expr.params[0]instanceof l3&&t.condition._expr.params[0].fieldName===sB)continue;return!1}}return!0}(t):a7(t))||n.isEqual(aX.min())?lA.resolve(null):this.bo.getDocuments(e,r).next(i=>{let s,a,l=this.Co(t,i);return this.Fo(t,l,r,n)?lA.resolve(null):(i1()<=o.DEBUG&&i2("QueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),c1(t)),this.Oo(e,l,t,(s=n.toTimestamp().seconds,a=n.toTimestamp().nanoseconds+1,new a1(aX.fromTimestamp(1e9===a?new sI(s+1,0):new sI(s,a)),sy.empty(),-1))
16).next(e=>e))})}Co(e,t){let r,n;return c0(e)?(r=new so(BD),n=t=>Bs(e,t)):(r=new so(os(e)),n=t=>oi(e,t)),t.forEach((e,t)=>{n(t)&&(r=r.add(t))}),r}Fo(e,t,r,n){if(c0(e))return e.stages.some(e=>e instanceof uh||e instanceof ud);if(null===e.limit)return!1;if(r.size!==t.size)return!0;let i="F"===e.limitType?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(n)>0)}Do(e,t,r){return i1()<=o.DEBUG&&i2("QueryEngine","Using full collection scan to execute query:",c1(t)),this.bo.getDocumentsMatchingQuery(e,t,a1.min(),r)}Oo(e,t,r,n){return this.bo.getDocumentsMatchingQuery(e,r,n).next(e=>(t.forEach(t=>{e=e.insert(t.key,t)}),e))}}let BS="LocalStore";class BA{constructor(e,t,r,n){this.persistence=e,this.Mo=t,this.serializer=n,this.No=new si(se),this.Lo=new ol(e=>c6(e),c8),this.Bo=new Map,this.Uo=e.getRemoteDocumentCache(),this.A_=e.getTargetCache(),this.d_=e.getBundleCache(),this.ko(r)}ko(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new Bc(this.Uo,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Uo.setIndexManager(this.indexManager),this.Mo.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",t=>e.collect(t,this.No))}}async function BO(e,t){return await e.persistence.runTransaction("Handle user change","readonly",r=>{let n;return e.mutationQueue.getAllMutationBatches(r).next(i=>(n=i,e.ko(t),e.mutationQueue.getAllMutationBatches(r))).next(t=>{let i=[],s=[],a=op();for(let e of n)for(let t of(i.push(e.batchId),e.mutations))a=a.add(t.key);for(let e of t)for(let t of(s.push(e.batchId),e.mutations))a=a.add(t.key);return e.localDocuments.getDocuments(r,a).next(e=>({qo:e,removedBatchIds:i,addedBatchIds:s}))})})}function BR(e){return e.persistence.runTransaction("Get last remote snapshot version","readonly",t=>e.A_.getLastRemoteSnapshotVersion(t))}async function BN(e,t,r){let n=e.No.get(t);try{r||await e.persistence.runTransaction("Release target",r?"readwrite":"readwrite-primary",t=>e.persistence.referenceDelegate.removeTarget(t,n))}catch(e){if(!lO(e))throw e;i2(BS,`Failed to update sequence numbers for target ${t}: ${e}`)}e.No=e.No.remove(t),e.Lo.delete(n.target)}function BP(e,t,r){let n=aX.min(),i=op();return e.persistence.runTransaction("Execute query","readwrite",s=>{var a;let o;return(a=c0(t)?t:ot(t),void 0!==(o=e.Lo.get(a))?lA.resolve(e.No.get(o)):e.A_.getTargetData(s,a)).next(t=>{if(t)return n=t.lastLimboFreeSnapshotVersion,e.A_.getMatchingKeysForTargetId(s,t.targetId).next(e=>{i=e})}).next(()=>e.Mo.getDocumentsMatchingQuery(s,t,r?n:aX.min(),r?i:op())).next(t=>{var r;return r=e,t.forEach((e,t)=>{let n=t.key.getCollectionGroup(),i=r.Bo.get(n)||aX.min();t.readTime.compareTo(i)>0&&r.Bo.set(n,t.readTime)}),{documents:t,Qo:i}})})}class Bk{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.Jo=0,this.Yo=null,this.Zo=!0}Xo(){0===this.Jo&&(this.ea("Unknown"),this.Yo=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.Yo=null,this.ta("Backend didn't respond within 10 seconds."),this.ea("Offline"),Promise.resolve())))}na(e){"Online"===this.state?this.ea("Unknown"):(this.Jo++,this.Jo>=1&&(this.ra(),this.ta(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.ea("Offline")))}set(e){this.ra(),this.Jo=0,"Online"===e&&(this.Zo=!1),this.ea(e)}ea(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}ta(e){let t=`Could not reach Cloud Firestore backend. ${e} 17This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.Zo?(i3(t),this.Zo=!1):i2("OnlineStateTracker",t)}ra(){null!==this.Yo&&(this.Yo.cancel(),this.Yo=null)}}let BL="RemoteStore";class BF{constructor(e,t,r,n,i){this.localStore=e,this.datastore=t,this.asyncQueue=r,this.remoteSyncer={},this.ia=[],this.sa=new Map,this._a=new Map,this.oa=new Map,this.aa=new Bn(1e3),this.ua=new Bn(1001),this.ca=new Set,this.la=[],this.Ea=i,this.Ea.Ke(e=>{r.enqueueAndForget(async()=>
17{BK(this)&&(i2(BL,"Restarting streams for network reachability change."),await async function(e){e.ca.add(4),await BM(e),e.ha.set("Unknown"),e.ca.delete(4),await Bx(e)}(this))})}),this.ha=new Bk(r,n)}}async function Bx(e){if(BK(e))for(let t of e.la)await t(!0)}async function BM(e){for(let t of e.la)await t(!1)}function BG(e,t){return e._a.get(t)||void 0}function BU(e,t){var r;let n,i,s=BG(e,t.targetId);if(void 0!==s&&e.sa.has(s))return;let a=(void 0!==(n=BG(e,r=t.targetId))&&e.oa.delete(n),i=r%2!=0?e.ua.next():e.aa.next(),e._a.set(r,i),e.oa.set(i,r),i);i2(BL,"remoteStoreListen mapping SDK target ID to remote",t.targetId,a);let o=new c9(t.target,a,t.purpose,t.sequenceNumber,t.snapshotVersion,t.lastLimboFreeSnapshotVersion,t.resumeToken);e.sa.set(a,o),BJ(e)?Bz(e):B0(e).Jt()&&BV(e,o)}function BH(e,t){let r=B0(e),n=BG(e,t);i2(BL,"remoteStoreUnlisten removing mapping of SDK target ID to remote",t,n),e.sa.delete(n),e._a.delete(t),e.oa.delete(n),r.Jt()&&Bj(e,n),0===e.sa.size&&(r.Jt()?r.Xt():BK(e)&&e.ha.set("Unknown"))}function BV(e,t){if(e.Ta.H(t.targetId),t.resumeToken.approximateByteSize()>0||t.snapshotVersion.compareTo(aX.min())>0){let r=e.oa.get(t.targetId);if(void 0===r)return void i2(BL,"SDK target ID not found for remote ID: "+t.targetId);let n=e.remoteSyncer.getRemoteKeysForTarget(r).size;t=t.withExpectedCount(n)}B0(e).Tn(t)}function Bj(e,t){e.Ta.H(t),B0(e).Pn(t)}function Bz(e){e.Ta=new oS({getRemoteKeysForTarget:t=>{let r=e.oa.get(t);return void 0!==r?e.remoteSyncer.getRemoteKeysForTarget(r):op()},ge:t=>e.sa.get(t)||null,Ae:()=>e.datastore.serializer.databaseId}),B0(e).start(),e.ha.Xo()}function BJ(e){return BK(e)&&!B0(e).Ht()&&e.sa.size>0}function BK(e){return 0===e.ca.size}async function Bq(e){e.ha.set("Online")}async function BY(e){e.sa.forEach((t,r)=>{BV(e,t)})}async function B$(e,t){e.Ta=void 0,BJ(e)?(e.ha.na(t),Bz(e)):e.ha.set("Unknown")}async function BW(e,t,r){if(e.ha.set("Online"),t instanceof oD&&2===t.state&&t.cause)try{await async function(e,t){let r=t.cause;for(let n of t.targetIds){if(e.sa.has(n)){let t=e.oa.get(n);void 0!==t&&(await e.remoteSyncer.rejectListen(t,r),e._a.delete(t),e.oa.delete(n)),e.sa.delete(n)}e.Ta.removeTarget(n)}}(e,t)}catch(r){i2(BL,"Failed to remove targets %s: %s ",t.targetIds.join(","),r),await BQ(e,r)}else if(t instanceof ow?e.Ta.se(t):t instanceof ob?e.Ta.Ee(t):e.Ta.ae(t),!r.isEqual(aX.min()))try{let t,n,i,s,a=await BR(e.localStore);r.compareTo(a)>
17=0&&await ((t=e.Ta.de(r)).targetChanges.forEach((t,n)=>{if(t.resumeToken.approximateByteSize()>0){let i=e.sa.get(n);i&&e.sa.set(n,i.withResumeToken(t.resumeToken,r))}}),t.targetMismatches.forEach((t,r)=>{let n=e.sa.get(t);if(!n)return;e.sa.set(t,n.withResumeToken(sA.EMPTY_BYTE_STRING,n.snapshotVersion)),Bj(e,t);let i=new c9(n.target,t,r,n.sequenceNumber);BV(e,i)}),n=new Map,t.targetChanges.forEach((t,r)=>{let i=e.oa.get(r);void 0!==i&&n.set(i,t)}),i=new si(se),t.targetMismatches.forEach((t,r)=>{let n=e.oa.get(t);void 0!==n&&(i=i.insert(n,r))}),s=new oE(t.snapshotVersion,n,i,t.documentUpdates,t.augmentedDocumentUpdates,t.resolvedLimboDocuments),e.remoteSyncer.applyRemoteEvent(s))}catch(t){i2(BL,"Failed to raise snapshot:",t),await BQ(e,t)}}async function BQ(e,t,r){if(!lO(t))throw t;e.ca.add(1),await BM(e),e.ha.set("Offline"),r||(r=()=>BR(e.localStore)),e.asyncQueue.enqueueRetryable(async()=>{i2(BL,"Retrying IndexedDB access"),await r(),e.ca.delete(1),await Bx(e)})}async function BZ(e,t){e.asyncQueue.verifyOperationInProgress(),i2(BL,"RemoteStore received new credentials");let r=BK(e);e.ca.add(3),await BM(e),r&&e.ha.set("Unknown"),await e.remoteSyncer.handleCredentialChange(t),e.ca.delete(3),await Bx(e)}async function BX(e,t){t?(e.ca.delete(2),await Bx(e)):t||(e.ca.add(2),await BM(e),e.ha.set("Unknown"))}function B0(e){var t,r,n;return e.Pa||(t=e.datastore,r=e.asyncQueue,n={ut:Bq.bind(null,e),lt:BY.bind(null,e),ht:B$.bind(null,e),hn:BW.bind(null,e)},t.mn(),e.Pa=new ly(r,t.connection,t.authCredentials,t.appCheckCredentials,t.serializer,n),e.la.push(async t=>{t?(e.Pa.Zt(),BJ(e)?Bz(e):e.ha.set("Unknown")):(await e.Pa.stop(),e.Ta=void 0)})),e.Pa}class B1{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.Ia(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.Ia(this.observer.error,e):i3("Uncaught Error in snapshot listener:",e.toString()))}Aa(){this.muted=!0}Ia(e,t){setTimeout(()=>{this.muted||e(t)},0)}}class B2{constructor(e,t,r,n,i){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=r,this.op=n,this.removalCallback=i,this.deferred=new o8,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(e=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,t,r,n,i){let s=new B2(e,t,Date.now()+r,n,i);return s.start(r),s}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new sc(su.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function B3(e,t){if(i3("AsyncQueue",`${t}: ${e}`),lO(e))return new sc(su.UNAVAILABLE,`${t}: ${e}`);throw e}class B6{constructor(){this.activeTargetIds=of}La(e){this.activeTargetIds=this.activeTargetIds.add(e)}Ba(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Na(){return JSON.stringify({activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()})}}class B8{constructor(){this.du=new B6,this.fu={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,r){}addLocalQueryTarget(e,t=!0){return t&&this.du.La(e),this.fu[e]||"not-current"}updateQueryState(e,t,r){this.fu[e]=t}removeLocalQueryTarget(e){this.du.Ba(e)}isLocalQueryTarget(e){return this.du.activeTargetIds.has(e)}clearQueryState(e){delete this.fu[e]}getAllActiveQueryTargets(){return this.du.activeTargetIds}isActiveQueryTarget(e){return this.du.activeTargetIds.has(e)}start(){return this.du=new B6,Promise.resolve()}handleUserChange(e,t,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}function B4(){return"u">typeof document?document:null}class B5{static emptySet(e){return new B5(e.comparator)}constructor(e){this.comparator=e?(t,r)=>e(t,r)||sy.comparator(t.key,r.key):(e,t)=>sy.comparator(e.key,t.key),this.keyedMap=oB(),this.sortedSet=new si(this.comparator)}has(e){return null!=this.keyedMap.get(e)}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){let t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((t,r)=>(e(t),!1))}add(e){let t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){let t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(e){if(!(e instanceof B5)||this.size!==e.size)return!1;let t=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();for(;t.hasNext();){let e=t.getNext().key,n=r.getNext().key;if(!e.isEqual(n))return!1}return!0}toString(){let e=[];return this.forEach(t=>{e.push(t.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n "+e.join(" \n")+"\n)"}copy(e,t){let r=new B5;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=t,r}}class B9{constructor(){this.mu=new si(sy.comparator)}track(e){let t=e.doc.key,r=this.mu.get(t);r?0!==e.type&&3===r.type?this.mu=this.mu.insert(t,e):3===e.type&&1!==r.type?this.mu=this.mu.insert(t,{type:r.type,doc:e.doc}):2===e.type&&2===r.type?this.mu=this.mu.insert(t,{type:2,doc:e.doc}):2===e.type&&0===r.type?this.mu=this.mu.insert(t,{type:0,doc:e.doc}):1===e.type&&0===r.type?this.mu=this.mu.remove(t):1===e.type&&2===r.type?this.mu=this.mu.insert(t,{type:1,doc:r.doc}):0===e.type&&1===r.type?this.mu=this.mu.insert(t,{type:2,doc:e.doc}):i4(63341,{ye:e,pu:r}):this.mu=this.mu.insert(t,e)}gu(){let e=[];return this.mu.inorderTraversal((t,r)=>{e.push(r)}),e}}class B7{constructor(e,t,r,n,i,s,a,o,l){this.query=e,this.docs=t,this.oldDocs=r,this.docChanges=n,this.mutatedKeys=i,this.fromCache=s,this.syncStateChanged=a,this.excludesMetadataChanges=o,this.hasCachedResults=l}static fromInitialDocuments(e,t,r,n,i){let s=[];
17return t.forEach(e=>{s.push({type:0,doc:e})}),new B7(e,t,B5.emptySet(t),s,r,n,!0,!1,i)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&c3(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;let t=this.docChanges,r=e.docChanges;if(t.length!==r.length)return!1;for(let e=0;e<t.length;e++)if(t[e].type!==r[e].type||!t[e].doc.isEqual(r[e].doc))return!1;return!0}}class he{constructor(){this.yu=void 0,this.wu=[]}bu(){return this.wu.some(e=>e.Su())}}class ht{constructor(){this.queries=hr(),this.onlineState="Unknown",this.vu=new Set}terminate(){var e;let t;e=new sc(su.ABORTED,"Firestore shutting down"),t=this.queries,this.queries=hr(),t.forEach((t,r)=>{for(let t of r.wu)t.onError(e)})}}function hr(){return new ol(e=>c2(e),c3)}async function hn(e,t){let r=3,n=t.query,i=e.queries.get(n);i?!i.bu()&&t.Su()&&(r=2):(i=new he,r=+!t.Su());try{switch(r){case 0:i.yu=await e.onListen(n,!0);break;case 1:i.yu=await e.onListen(n,!1);break;case 2:await e.onFirstRemoteStoreListen(n)}}catch(r){let e=B3(r,`Initialization of query '${c0(t.query)?cX(t.query):on(t.query)}' failed`);return void t.onError(e)}e.queries.set(n,i),i.wu.push(t),t.Du(e.onlineState),i.yu&&t.xu(i.yu)&&ho(e)}async function hi(e,t){let r=t.query,n=3,i=e.queries.get(r);if(i){let e=i.wu.indexOf(t);e>=0&&(i.wu.splice(e,1),0===i.wu.length?n=+!t.Su():!i.bu()&&t.Su()&&(n=2))}switch(n){case 0:return e.queries.delete(r),e.onUnlisten(r,!0);case 1:return e.queries.delete(r),e.onUnlisten(r,!1);case 2:return e.onLastRemoteStoreUnlisten(r);default:return}}function hs(e,t){let r=!1;for(let n of t){let t=n.query,i=e.queries.get(t);if(i){for(let e of i.wu)e.xu(n)&&(r=!0);i.yu=n}}r&&ho(e)}function ha(e,t,r){let n=e.queries.get(t);if(n)for(let e of n.wu)e.onError(r);e.queries.delete(t)}function ho(e){e.vu.forEach(e=>{e.next()})}(a=y||(y={})).Default="default",a.Cache="cache";class hl{constructor(e,t,r){this.query=e,this.Cu=t,this.Fu=!1,this.Ou=null,this.onlineState="Unknown",this.options=r||{}}xu(e){if(!this.options.includeMetadataChanges){let t=[];for(let r of e.docChanges)3!==r.type&&t.push(r);e=new B7(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.Fu?this.Mu(e)&&(this.Cu.next(e),t=!0):this.Nu(e,this.onlineState)&&(this.Lu(e),t=!0),this.Ou=e,t}onError(e){this.Cu.error(e)}Du(e){this.onlineState=e;let t=!1;return this.Ou&&!this.Fu&&this.Nu(this.Ou,e)&&(this.Lu(this.Ou),t=!0),t}Nu(e,t){return!(e.fromCache&&this.Su())||(!this.options.waitForSyncWhenOnline||"Offline"===t)&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}Mu(e){if(e.docChanges.length>0)return!0;let t=this.Ou&&this.Ou.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}Lu(e){e=B7.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Fu=!0,this.Cu.next(e)}Su(){return this.options.source!==y.Cache}}class hu{constructor(e){this.key=e}}class hc{constructor(e){this.key=e}}class hB{constructor(e,t){this.query=e,this.Gu=t,this.zu=null,this.hasCachedResults=!1,this.current=!1,this.ju=op(),this.mutatedKeys=op(),this.Hu=c0(e)?Ba(e):os(e),this.Ju=new B5(this.Hu)}get Yu(){return this.Gu}Zu(e,t){let r=t?t.Xu:new B9,n=t?t.Ju:this.Ju,i=t?t.mutatedKeys:this.mutatedKeys,s=n,a=!1,[o,l]=this.ec(this.query,n);e.inorderTraversal((e,t)=>{var u;let c=n.get(e),B=(u=this.query,c0(u)?Bs(u,t):oi(u,t))?t:null,h=!!c&&this.mutatedKeys.has(c.key),d=!!B&&(B.hasLocalMutations||this.mutatedKeys.has(B.key)&&B.hasCommittedMutations),p=!1;c&&B?c.data.isEqual(B.data)?h!==d&&(r.track({type:3,doc:B}),p=!0):this.tc(c,B)||(r.track({type:2,doc:B}),p=!0,(o&&this.Hu(B,o)>0||l&&0>this.Hu(B,l))&&(a=!0)):!c&&B?(r.track({type:0,doc:B}),p=!0):c&&!B&&(r.track({type:1,doc:c}),p=!0,(o||l)&&(a=!0)),p&&(B?(s=s.add(B),i=d?i.add(e):i.delete(e)):(s=s.delete(e),i=i.delete(e)))});let u=this.nc(this.query);if(u)if(c0(this.query)){let e=[];
17s.forEach(t=>e.push(t));let t=Bi(this.query,e),n=new B5(Ba(this.query));for(let e of t)n=n.add(e);s.forEach(e=>{n.has(e.key)||(i=i.delete(e.key),r.track({type:1,doc:e}))}),s=n}else{let e=this.rc(this.query);for(;s.size>u;){let t="F"===e?s.last():s.first();s=s.delete(t.key),i=i.delete(t.key),r.track({type:1,doc:t})}}return{Ju:s,Xu:r,Fo:a,mutatedKeys:i}}nc(e){return c0(e)?Bo(e)?.limit:e.limit||void 0}rc(e){if(c0(e)){let t=Bo(e);return t&&t.limit<0?"L":"F"}return e.limitType}ec(e,t){if(c0(e)){let r=Bo(e)?.limit;return[t.size===r?t.last():null,null]}return["F"===e.limitType&&t.size===this.nc(this.query)?t.last():null,"L"===e.limitType&&t.size===this.nc(this.query)?t.first():null]}tc(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,r,n){let i=this.Ju;this.Ju=e.Ju,this.mutatedKeys=e.mutatedKeys;let s=e.Xu.gu();s.sort((e,t)=>{var r,n;let i;return r=e.type,n=t.type,(i=e=>{switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return i4(20277,{ye:e})}})(r)-i(n)||this.Hu(e.doc,t.doc)}),this.sc(r),n=n??!1;let a=t&&!n?this._c():[],o=0===this.ju.size&&this.current&&!n?1:0,l=o!==this.zu;return(this.zu=o,0!==s.length||l)?{snapshot:new B7(this.query,e.Ju,i,s,e.mutatedKeys,0===o,l,!1,!!r&&r.resumeToken.approximateByteSize()>0),oc:a}:{oc:a}}Du(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({Ju:this.Ju,Xu:new B9,mutatedKeys:this.mutatedKeys,Fo:!1},!1)):{oc:[]}}ac(e){return!this.Gu.has(e)&&!!this.Ju.has(e)&&!this.Ju.get(e).hasLocalMutations}sc(e){e&&(e.addedDocuments.forEach(e=>this.Gu=this.Gu.add(e)),e.modifiedDocuments.forEach(e=>{}),e.removedDocuments.forEach(e=>this.Gu=this.Gu.delete(e)),this.current=e.current)}_c(){if(!this.current)return[];let e=this.ju;this.ju=op(),this.Ju.forEach(e=>{this.ac(e.key)&&(this.ju=this.ju.add(e.key))});let t=[];return e.forEach(e=>{this.ju.has(e)||t.push(new hc(e))}),this.ju.forEach(r=>{e.has(r)||t.push(new hu(r))}),t}uc(e){this.Gu=e.Qo,this.ju=op();let t=this.Zu(e.documents);return this.applyChanges(t,!0)}cc(){return B7.fromInitialDocuments(this.query,this.Ju,this.mutatedKeys,0===this.zu,this.hasCachedResults)}}let hh="SyncEngine";class hd{constructor(e,t,r){this.query=e,this.targetId=t,this.view=r}}class hp{constructor(e){this.key=e,this.lc=!1}}class hf{constructor(e,t,r,n,i,s){this.localStore=e,this.remoteStore=t,this.eventManager=r,this.sharedClientState=n,this.currentUser=i,this.maxConcurrentLimboResolutions=s,this.Ec={},this.hc=new ol(e=>c2(e),c3),this.Tc=new Map,this.Pc=new Set,this.Rc=new si(sy.comparator),this.Ic=new Map,this.Ac=new Bp,this.Vc={},this.dc=new Map,this.fc=Bn.ws(),this.onlineState="Unknown",this.mc=void 0}get isPrimaryClient(){return!0===this.mc}}async function hg(e,t,r=!0){let n,i=hN(e),s=i.hc.get(t);return s?(i.sharedClientState.addLocalQueryTarget(s.targetId),n=s.view.cc()):n=await hm(i,t,r,!0),n}async function hC(e,t){let r=hN(e);await hm(r,t,!0,!1)}async function hm(e,t,r,n){var i,s;let a,o=await (i=e.localStore,s=c0(t)?t:ot(t),i.persistence.runTransaction("Allocate target","readwrite",e=>{let t;return i.A_.getTargetData(e,s).next(r=>r?(t=r,lA.resolve(t)):i.A_.allocateTargetId(e).next(r=>(t=new c9(s,r,"TargetPurposeListen",e.currentSequenceNumber),i.A_.addTargetData(e,t).next(()=>t))))}).then(e=>{let t=i.No.get(e.targetId);return(null===t||e.snapshotVersion.compareTo(t.snapshotVersion)>0)&&(i.No=i.No.insert(e.targetId,e),i.Lo.set(s,e.targetId)),e})),l=o.targetId,u=e.sharedClientState.addLocalQueryTarget(l,r);return n&&(a=await h_(e,t,l,"current"===u,o.resumeToken)),e.isPrimaryClient&&r&&BU(e.remoteStore,o),a}async function h_(e,t,r,n,i){e.gc=(t,r,n)=>(async function(e,t,r,n){let i=t.view.Zu(r);i.Fo&&(i=await BP(e.localStore,t.query,!1).then(({documents:e})=>t.view.Zu(e,i)));let s=n&&n.targetChanges.get(t.targetId),a=n&&null!=n.targetMismatches.get(t.targetId),o=t.view.applyChanges(i,e.isPrimaryClient,s,a);return hI(e,t.targetId,o.oc),o.snapshot})(e,t,r,n);let s=await BP(e.localStore,t,!0),a=new hB(t,s.Qo),o=a.Zu(s.documents),l=ov.createSynthesizedTargetChangeForCurrentChange(r,n&&"Offline"!==e.onlineState,i),u=a.applyChanges(o,e.isPrimaryClient,l);hI(e,r,u.oc);let c=new hd(t,r,a);return e.hc.set(t,c),e.Tc.has(r)?e.Tc.get(r).push(t):e.Tc.set(r,[t]),u.snapshot}async function hy(e,t,r){let n=e.hc.get(t),i=e.Tc.get(n.targetId);i.length>1?(e.Tc.set(n.targetId,i.filter(e=>
17!c3(e,t))),e.hc.delete(t)):e.isPrimaryClient?(e.sharedClientState.removeLocalQueryTarget(n.targetId),e.sharedClientState.isActiveQueryTarget(n.targetId)||await BN(e.localStore,n.targetId,!1).then(()=>{e.sharedClientState.clearQueryState(n.targetId),r&&BH(e.remoteStore,n.targetId),hD(e,n.targetId)}).catch(lS)):(hD(e,n.targetId),await BN(e.localStore,n.targetId,!0))}async function hE(e,t){let r=e.hc.get(t),n=e.Tc.get(r.targetId);e.isPrimaryClient&&1===n.length&&(e.sharedClientState.removeLocalQueryTarget(r.targetId),BH(e.remoteStore,r.targetId))}async function hv(e,t){try{var r,n;let i,s,a=await (r=e.localStore,i=(n=t).snapshotVersion,s=r.No,r.persistence.runTransaction("Apply remote event","readwrite-primary",e=>{var t,a,o;let l,u,c=r.Uo.newChangeBuffer({trackRemovals:!0});s=r.No;let B=[];n.targetChanges.forEach((t,a)=>{var o;let l=s.get(a);if(!l)return;B.push(r.A_.removeMatchingKeys(e,t.removedDocuments,a).next(()=>r.A_.addMatchingKeys(e,t.addedDocuments,a)));let u=l.withSequenceNumber(e.currentSequenceNumber);null!==n.targetMismatches.get(a)?u=u.withResumeToken(sA.EMPTY_BYTE_STRING,aX.min()).withLastLimboFreeSnapshotVersion(aX.min()):t.resumeToken.approximateByteSize()>0&&(u=u.withResumeToken(t.resumeToken,i)),s=s.insert(a,u),o=u,(0===l.resumeToken.approximateByteSize()||o.snapshotVersion.toMicroseconds()-l.snapshotVersion.toMicroseconds()>=3e8||t.addedDocuments.size+t.modifiedDocuments.size+t.removedDocuments.size>0)&&B.push(r.A_.updateTargetData(e,u))});let h=ou,d=op();if(n.documentUpdates.forEach(t=>{n.resolvedLimboDocuments.has(t)&&B.push(r.persistence.referenceDelegate.updateLimboDocument(e,t))}),B.push((t=e,a=c,o=n.documentUpdates,l=op(),u=op(),o.forEach(e=>l=l.add(e)),a.getEntries(t,l).next(e=>{let t=ou;return o.forEach((r,n)=>{let i=e.get(r);n.isFoundDocument()!==i.isFoundDocument()&&(u=u.add(r)),n.isNoDocument()&&n.version.isEqual(aX.min())?(a.removeEntry(r,n.readTime),t=t.insert(r,n)):!i.isValidDocument()||n.version.compareTo(i.version)>0||0===n.version.compareTo(i.version)&&i.hasPendingWrites?(a.addEntry(n),t=t.insert(r,n)):i2(BS,"Ignoring outdated watch update for ",r,". Current version:",i.version," Watch version:",n.version)}),{$o:t,Ko:u}})).next(e=>{h=e.$o,d=e.Ko})),!i.isEqual(aX.min())){let t=r.A_.getLastRemoteSnapshotVersion(e).next(t=>r.A_.setTargetsMetadata(e,e.currentSequenceNumber,i));B.push(t)}return lA.waitFor(B).next(()=>c.apply(e)).next(()=>r.localDocuments.getLocalViewOfDocuments(e,h,d)).next(()=>h)}).then(e=>(r.No=s,e)));
17t.targetChanges.forEach((t,r)=>{let n=e.Ic.get(r);n&&(i9(t.addedDocuments.size+t.modifiedDocuments.size+t.removedDocuments.size<=1,22616),t.addedDocuments.size>0?n.lc=!0:t.modifiedDocuments.size>0?i9(n.lc,14607):t.removedDocuments.size>0&&(i9(n.lc,42227),n.lc=!1))}),await hA(e,a,t)}catch(e){await lS(e)}}function hw(e,t,r){if(e.isPrimaryClient&&0===r||!e.isPrimaryClient&&1===r){var n;let r,i=[];e.hc.forEach((e,r)=>{let n=r.view.Du(t);n.snapshot&&i.push(n.snapshot)}),(n=e.eventManager).onlineState=t,r=!1,n.queries.forEach((e,n)=>{for(let e of n.wu)e.Du(t)&&(r=!0)}),r&&ho(n),i.length&&e.Ec.hn(i),e.onlineState=t,e.isPrimaryClient&&e.sharedClientState.setOnlineState(t)}}async function hb(e,t,r){e.sharedClientState.updateQueryState(t,"rejected",r);let n=e.Ic.get(t),i=n&&n.key;if(i){let r=new si(sy.comparator);r=r.insert(i,a0.newNoDocument(i,aX.min()));let n=op().add(i),s=new oE(aX.min(),new Map,new si(se),r,ou,n);await hv(e,s),e.Rc=e.Rc.remove(i),e.Ic.delete(t),hS(e)}else await BN(e.localStore,t,!1).then(()=>hD(e,t,r)).catch(lS)}function hD(e,t,r=null){for(let n of(e.sharedClientState.removeLocalQueryTarget(t),e.Tc.get(t)))e.hc.delete(n),r&&e.Ec.yc(n,r);e.Tc.delete(t),e.isPrimaryClient&&e.Ac.Xs(t).forEach(t=>{e.Ac.containsKey(t)||hT(e,t)})}function hT(e,t){e.Pc.delete(t.path.canonicalString());let r=e.Rc.get(t);null!==r&&(BH(e.remoteStore,r),e.Rc=e.Rc.remove(t),e.Ic.delete(r),hS(e))}function hI(e,t,r){for(let n of r)n instanceof hu?(e.Ac.addReference(n.key,t),function(e,t){let r=t.key,n=r.path.canonicalString();e.Rc.get(r)||e.Pc.has(n)||(i2(hh,"New document in limbo: "+r),e.Pc.add(n),hS(e))}(e,n)):n instanceof hc?(i2(hh,"Document no longer in limbo: "+n.key),e.Ac.removeReference(n.key,t),e.Ac.containsKey(n.key)||hT(e,n.key)):i4(19791,{wc:n})}function hS(e){for(;e.Pc.size>0&&e.Rc.size<e.maxConcurrentLimboResolutions;){let t=e.Pc.values().next().value;e.Pc.delete(t);let r=new sy(sd.fromString(t)),n=e.fc.next();e.Ic.set(n,new hp(r)),e.Rc=e.Rc.insert(r,n),BU(e.remoteStore,new c9(ot(new a9(r.path)),n,"TargetPurposeLimboResolution",lT.yn))}}async function hA(e,t,r){let n=[],i=[],s=[];e.hc.isEmpty()||(e.hc.forEach((a,o)=>{s.push(e.gc(o,t,r).then(t=>{if((t||r)&&e.isPrimaryClient){let n=t?!t.fromCache:r?.targetChanges.get(o.targetId)?.current;e.sharedClientState.updateQueryState(o.targetId,n?"current":"not-current")}if(t){n.push(t);let e=Bb.fo(o.targetId,t);i.push(e)}}))}),await Promise.all(s),e.Ec.hn(n),await async function(e,t){try{await e.persistence.runTransaction("notifyLocalViewChanges","readwrite",r=>lA.forEach(t,t=>lA.forEach(t.Ao,n=>e.persistence.referenceDelegate.addReference(r,t.targetId,n)).next(()=>lA.forEach(t.Vo,n=>e.persistence.referenceDelegate.removeReference(r,t.targetId,n)))))}catch(e){if(!lO(e))throw e;i2(BS,"Failed to update sequence numbers: "+e)}for(let r of t){let t=r.targetId;if(!r.fromCache){let r=e.No.get(t),n=r.snapshotVersion,i=r.withLastLimboFreeSnapshotVersion(n);e.No=e.No.insert(t,i)}}}(e.localStore,i))}async function hO(e,t){if(!e.currentUser.isEqual(t)){i2(hh,"User change. New user:",t.toKey());let r=await BO(e.localStore,t);e.currentUser=t,e.dc.forEach(e=>{e.forEach(e=>{e.reject(new sc(su.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),e.dc.clear(),e.sharedClientState.handleUserChange(t,r.removedBatchIds,r.addedBatchIds),await hA(e,r.qo)}}function hR(e,t){let r=e.Ic.get(t);if(r&&r.lc)return op().add(r.key);{let r=op(),n=e.Tc.get(t);if(!n)return r;for(let t of n??[]){let n=e.hc.get(t);r=r.unionWith(n.view.Yu)}return r}}function hN(e){return e.remoteStore.remoteSyncer.applyRemoteEvent=hv.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=hR.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=hb.bind(null,e),e.Ec.hn=hs.bind(null,e.eventManager),e.Ec.yc=ha.bind(null,e.eventManager),e}class hP{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(e){this.serializer=new ok(e.databaseInfo.databaseId,!0),this.sharedClientState=this.Sc(e),this.persistence=this.vc(e),await this.persistence.start(),this.localStore=this.Dc(e),this.gcScheduler=this.xc(e,this.localStore),this.indexBackfillerScheduler
17=this.Cc(e,this.localStore)}xc(e,t){return null}Cc(e,t){return null}Dc(e){var t,r;return t=this.persistence,r=new BI,new BA(t,r,e.initialUser,this.serializer)}vc(e){return new By(Bv.w_,this.serializer)}Sc(e){return new B8}async terminate(){this.gcScheduler?.stop(),this.indexBackfillerScheduler?.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}hP.provider={build:()=>new hP};class hk extends hP{constructor(e){super(),this.cacheSizeBytes=e}xc(e,t){return i9(this.persistence.referenceDelegate instanceof Bw,46915),new lk(this.persistence.referenceDelegate.garbageCollector,e.asyncQueue,t)}vc(e){let t=void 0!==this.cacheSizeBytes?lD.withCacheSize(this.cacheSizeBytes):lD.DEFAULT;return new By(e=>Bw.w_(e,t),this.serializer)}}class hL{async initialize(e,t){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(t),this.remoteStore=this.createRemoteStore(t),this.eventManager=this.createEventManager(t),this.syncEngine=this.createSyncEngine(t,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=e=>hw(this.syncEngine,e,1),this.remoteStore.remoteSyncer.handleCredentialChange=hO.bind(null,this.syncEngine),await BX(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return new ht}createDatastore(e){var t;let r=new ok(e.databaseInfo.databaseId,!0),n=new lg(e.databaseInfo);return t=e.authCredentials,new lv(t,e.appCheckCredentials,n,r)}createRemoteStore(e){var t,r;return t=this.localStore,r=this.datastore,new BF(t,r,e.asyncQueue,e=>hw(this.syncEngine,e,0),lo.Je()?new lo:new ls)}createSyncEngine(e,t){var r,n,i,s,a,o;let l;return r=this.localStore,n=this.remoteStore,i=this.eventManager,s=this.sharedClientState,a=e.initialUser,o=e.maxConcurrentLimboResolutions,l=new hf(r,n,i,s,a,o),t&&(l.mc=!0),l}async terminate(){await async function(e){i2(BL,"RemoteStore shutting down."),e.ca.add(5),await BM(e),e.Ea.shutdown(),e.ha.set("Unknown")}(this.remoteStore),this.datastore?.terminate(),this.eventManager?.terminate()}}hL.provider={build:()=>new hL};let hF="FirestoreClient";class hx{constructor(e,t,r,n,i){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=r,this._databaseInfo=n,this.user=o6.UNAUTHENTICATED,this.clientId=i7.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=i,this.authCredentials.start(r,async e=>{i2(hF,"Received user=",e.uid),await this.authCredentialListener(e),this.user=e}),this.appCheckCredentials.start(r,e=>(i2(hF,"Received new app check token=",e),this.appCheckCredentialListener(e,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this._databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}terminate(){this.asyncQueue.enterRestrictedMode();let e=new o8;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(r){let t=B3(r,"Failed to shutdown persistence");e.reject(t)}}),e.promise}}async function hM(e,t){e.asyncQueue.verifyOperationInProgress(),i2(hF,"Initializing OfflineComponentProvider");let r=e.configuration;await t.initialize(r);let n=r.initialUser;e.setCredentialChangeListener(async e=>{n.isEqual(e)||(await BO(t.localStore,e),n=e)}),t.persistence.setDatabaseDeletedListener(()=>e.terminate()),e._offlineComponents=t}async function hG(e,t){e.asyncQueue.verifyOperationInProgress();let r=await hU(e);i2(hF,"Initializing OnlineComponentProvider"),await t.initialize(r,e.configuration),e.setCredentialChangeListener(e=>BZ(t.remoteStore,e)),e.setAppCheckTokenChangeListener((e,r)=>BZ(t.remoteStore,r)),e._onlineComponents=t}async function hU(e){if(!e._offlineComponents)if(e._uninitializedComponentsProvider){i2(hF,"Using user provided OfflineComponentProvider");try{await hM(e,e._uninitializedComponentsProvider._offline)}catch(t){if(!("FirebaseError"===t.name?t.code===su.FAILED_PRECONDITION||t.code===su.UNIMPLEMENT
17ED:!("u">typeof DOMException&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code))throw t;i6("Error using user provided cache. Falling back to memory cache: "+t),await hM(e,new hP)}}else i2(hF,"Using default OfflineComponentProvider"),await hM(e,new hk(void 0));return e._offlineComponents}async function hH(e){return e._onlineComponents||(e._uninitializedComponentsProvider?(i2(hF,"Using user provided OnlineComponentProvider"),await hG(e,e._uninitializedComponentsProvider._online)):(i2(hF,"Using default OnlineComponentProvider"),await hG(e,new hL))),e._onlineComponents}async function hV(e){let t=await hH(e),r=t.eventManager;return r.onListen=hg.bind(null,t.syncEngine),r.onUnlisten=hy.bind(null,t.syncEngine),r.onFirstRemoteStoreListen=hC.bind(null,t.syncEngine),r.onLastRemoteStoreUnlisten=hE.bind(null,t.syncEngine),r}let hj=class{constructor(e,t,r,n,i){this._firestore=e,this._userDataWriter=t,this._key=r,this._document=n,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new lU(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){let e=new hz(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}_fieldsProto(){return this._document?.data.clone().value.mapValue.fields??void 0}get(e){if(this._document){let t=this._document.data.field(lJ("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}},hz=class extends hj{data(){return super.data()}};class hJ{convertValue(e,t="none"){switch(sX(e)){case 0:return null;case 1:return e.booleanValue;case 2:return sN(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(sP(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 11:return this.convertObject(e.mapValue,t);case 10:return this.convertVectorValue(e.mapValue);default:throw i4(62114,{value:e})}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e,t="none"){let r={};return sm(e,(e,n)=>{r[e]=this.convertValue(n,t)}),r}convertVectorValue(e){return new lV(e.fields?.[s$].arrayValue?.values?.map(e=>sN(e.doubleValue)))}convertGeoPoint(e){return new o3(sN(e.latitude),sN(e.longitude))}convertArray(e,t){return(e.values||[]).map(e=>this.convertValue(e,t))}convertServerTimestamp(e,t){switch(t){case"previous":let r=sG(e);return null==r?null:this.convertValue(r,t);case"estimate":return this.convertTimestamp(sU(e));default:return null}}convertTimestamp(e){let t=sR(e);return new sI(t.seconds,t.nanos)}convertDocumentKey(e,t){let r=sd.fromString(e);i9(oW(r),9688,{name:e});let n=new sj(r.get(1),r.get(3)),i=new sy(r.popFirst(5));return n.isEqual(t)||i3(`A document reference to ${i} refers to a different database (${n.projectId}/${n.database}), which is not supported. It will be treated as a reference in the current database (${t.projectId}/${t.database}) instead.`),i}}let hK="AsyncQueue";class hq{constructor(e=Promise.resolve()){this.qc=[],this.$c=!1,this.Kc=[],this.Qc=null,this.Wc=!1,this.Gc=!1,this.zc=[],this.jt=new lC(this,"async_queue_retry"),this.jc=()=>{let e=B4();e&&i2(hK,"Visibility state changed to "+e.visibilityState),this.jt.qt()},this.Hc=e;const t=B4();t&&"function"==typeof t.addEventListener&&t.addEventListener("visibilitychange",this.jc)}get isShuttingDown(){return this.$c}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Jc(),this.Yc(e)}enterRestrictedMode(e){if(!this.$c){this.$c=!0,this.Gc=e||!1;let t=B4();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.jc)}}enqueue(e){if(this.Jc(),this.$c)return new Promise(()=>{});let t=new o8;return this.Yc(()=>this.$c&&this.Gc?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.qc.push(e),this.Zc()))}
17async Zc(){if(0!==this.qc.length){try{await this.qc[0](),this.qc.shift(),this.jt.reset()}catch(e){if(!lO(e))throw e;i2(hK,"Operation failed with retryable error: "+e)}this.qc.length>0&&this.jt.Ut(()=>this.Zc())}}Yc(e){let t=this.Hc.then(()=>(this.Wc=!0,e().catch(e=>{throw this.Qc=e,this.Wc=!1,i3("INTERNAL UNHANDLED ERROR: ",hY(e)),e}).then(e=>(this.Wc=!1,e))));return this.Hc=t,t}enqueueAfterDelay(e,t,r){this.Jc(),this.zc.indexOf(e)>-1&&(t=0);let n=B2.createAndSchedule(this,e,t,r,e=>this.Xc(e));return this.Kc.push(n),n}Jc(){this.Qc&&i4(47125,{el:hY(this.Qc)})}verifyOperationInProgress(){}async tl(){let e;do e=this.Hc,await e;while(e!==this.Hc)}nl(e){for(let t of this.Kc)if(t.timerId===e)return!0;return!1}rl(e){return this.tl().then(()=>{for(let t of(this.Kc.sort((e,t)=>e.targetTimeMs-t.targetTimeMs),this.Kc))if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.tl()})}il(e){this.zc.push(e)}Xc(e){let t=this.Kc.indexOf(e);this.Kc.splice(t,1)}}function hY(e){let t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}class h$ extends lM{constructor(e,t,r,n){super(e,t,r,n),this.type="firestore",this._queue=new hq,this._persistenceKey=n?.name||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){let e=this._firestoreClient.terminate();this._queue=new hq(e),this._firestoreClient=void 0,await e}}}class hW extends hJ{constructor(e){super(),this.firestore=e}convertBytes(e){return new o0(e)}convertReference(e){let t=this.convertDocumentKey(e,this.firestore._databaseId);return new lU(this.firestore,null,t)}}class hQ{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class hZ extends hj{constructor(e,t,r,n,i,s){super(e,t,r,n,s),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){let t=new hX(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){let r=this._document.data.field(lJ("DocumentSnapshot.get",e));if(null!==r)return this._userDataWriter.convertValue(r,t.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new sc(su.FAILED_PRECONDITION,"DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");let e=this._document,t={};return t.type=hZ._jsonSchemaVersion,t.bundle="",t.bundleSource="DocumentSnapshot",t.bundleName=this._key.toString(),e&&e.isValidDocument()&&e.isFoundDocument()&&(this._userDataWriter.convertObjectMap(e.data.value.mapValue.fields,"previous"),this._firestore,this.ref.path,t.bundle="NOT SUPPORTED"),t}}hZ._jsonSchemaVersion="firestore/documentSnapshot/1.0",hZ._jsonSchema={type:sD("string",hZ._jsonSchemaVersion),bundleSource:sD("string","DocumentSnapshot"),bundleName:sD("string"),bundle:sD("string")};class hX extends hZ{data(e={}){return super.data(e)}}class h0{constructor(e,t,r,n){this._firestore=e,this._userDataWriter=t,this._snapshot=n,this.metadata=new hQ(n.hasPendingWrites,n.fromCache),this.query=r}get docs(){let e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(r=>{e.call(t,new hX(this._firestore,this._userDataWriter,r.key,r,new hQ(this._snapshot.mutatedKeys.has(r.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){let t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new sc(su.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){let t=0;return e._snapshot.docChanges.map(r=>
17{c0(e._snapshot.query)?Ba(e._snapshot.query):os(e.query._query);let n=new hX(e._firestore,e._userDataWriter,r.doc.key,r.doc,new hQ(e._snapshot.mutatedKeys.has(r.doc.key),e._snapshot.fromCache),e.query.converter);return r.doc,{type:"added",doc:n,oldIndex:-1,newIndex:t++}})}{let r=e._snapshot.oldDocs;return e._snapshot.docChanges.filter(e=>t||3!==e.type).map(t=>{let n=new hX(e._firestore,e._userDataWriter,t.doc.key,t.doc,new hQ(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),i=-1,s=-1;return 0!==t.type&&(i=r.indexOf(t.doc.key),r=r.delete(t.doc.key)),1!==t.type&&(s=(r=r.add(t.doc)).indexOf(t.doc.key)),{type:function(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return i4(61501,{type:e})}}(t.type),doc:n,oldIndex:i,newIndex:s}})}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new sc(su.FAILED_PRECONDITION,"QuerySnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");let e={};e.type=h0._jsonSchemaVersion,e.bundleSource="QuerySnapshot",e.bundleName=i7.newId(),this._firestore._databaseId.database,this._firestore._databaseId.projectId;let t=[],r=[],n=[];return this.docs.forEach(e=>{null!==e._document&&(t.push(e._document),r.push(this._userDataWriter.convertObjectMap(e._document.data.value.mapValue.fields,"previous")),n.push(e.ref.path))}),this._firestore,this.query._query,e.bundleName,e.bundle="NOT SUPPORTED",e}}h0._jsonSchemaVersion="firestore/querySnapshot/1.0",h0._jsonSchema={type:sD("string",h0._jsonSchemaVersion),bundleSource:sD("string","QuerySnapshot"),bundleName:sD("string"),bundle:sD("string")},new WeakMap;let h1="@firebase/firestore",h2="4.17.1";!function(e=!0){iX=eN,eI(new $("firestore",(t,{instanceIdentifier:r,options:n})=>{let i=t.getProvider("app").getImmediate(),s=new h$(new o7(t.getProvider("auth-internal")),new ln(i,t.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new sc(su.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new sj(e.options.projectId,t)}(i,r),i);return n={useFetchStreams:e,...n},s._setSettings(n),s},"PUBLIC").setMultipleInstances(!0)),eL(h1,h2,void 0),eL(h1,h2,"esm2020")}();var h3=e.i(74728);eL("firebase","12.18.0","app");let h6=eP({apiKey:w.default.env.NEXT_PUBLIC_FIREBASE_API_KEY,authDomain:w.default.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,projectId:w.default.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,storageBucket:w.default.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET,messagingSenderId:w.default.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID,appId:w.default.env.NEXT_PUBLIC_FIREBASE_APP_ID}),h8=h3.isB2BEnabled?function(e){let t=eS("object"==typeof e?e:ek(),"firestore").getImmediate({identifier:"string"==typeof e?e:sV});if(!t._initialized){let e=(e=>{let t=N(e);if(!t)return;let r=t.lastIndexOf(":");if(r<=0||r+1===t.length)throw Error(`Invalid host ${t} with no separate hostname and port!`);let n=parseInt(t.substring(r+1),10);return"["===t[0]?[t.substring(1,r-1),n]:[t.substring(0,r),n]})("firestore");e&&function(e,t,r,n={}){e=sb(e,lM);let i=q(t),s=e._getSettings(),a={...s,emulatorOptions:e._getEmulatorOptions()},o=`${t}:${r}`;i&&Y(`https://${o}`),s.host!==lF&&s.host!==o&&i6("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");let l={...s,host:o,ssl:i,emulatorOptions:n};if(!G(l,a)&&(e._setSettings(l),n.mockUserToken)){let t,r;if("string"==typeof n.mockUserToken)t=n.mockUserToken,r=o6.MOCK_USER;else{t=function(e,t){if(e.uid)throw Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');let r=t||"demo-project",n=e.iat||0,i=e.sub||e.user_id;if(!i)throw Error("mockUserToken must contain 'sub' or 'user_id' field!");let s={iss:`https://securetoken.google.com/${r}`,aud:r,iat:n,exp:n+3600,auth_time:n,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}},...e};return[A(JSON.stringify({alg:"none",type:"JWT"})),A(JSON.stringify(s)),""].join(".")}(n.mockUserToken,e._app?.options.projectId);let i=n.mockUserToken.sub||n.mockUserToken.user_id;if(!i)throw new sc(su.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");r=new o6(i)}
17e._authCredentials=new o9(new o4(t,r))}}(t,...e)}return t}(h6):null,h4=h3.isB2BEnabled?function(e=ek()){let t=eS(e,"auth");if(t.isInitialized())return t.getImmediate();let r=function(e,t){let r=eS(e,"auth");if(r.isInitialized()){let e=r.getImmediate();if(G(r.getOptions(),t??{}))return e;eQ(e,"already-initialized")}return r.initialize({options:t})}(e,{popupRedirectResolver:nD,persistence:[rZ,rF,rx]}),n=k("authTokenSyncURL");if(n&&"boolean"==typeof isSecureContext&&isSecureContext){let e=new URL(n,location.origin);if(location.origin===e.origin){let t,n=(t=e.toString(),async e=>{let r=e&&await e.getIdTokenResult(),n=r&&(new Date().getTime()-Date.parse(r.issuedAtTime))/1e3;if(n&&n>nA)return;let i=r?.token;nO!==i&&(nO=i,await fetch(t,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))});K(r).beforeAuthStateChanged(n,()=>n(r.currentUser)),K(r).onIdTokenChanged(e=>n(e),void 0,void 0)}}let i=N("auth");return i&&function(e,t){let r=K(e);e2(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");let n=t5(t),{host:i,port:s}=function(e){let t=t5(e),r=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!r)return{host:"",port:null};let n=r[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(n);if(i){let e=i[1];return{host:e,port:t9(n.substr(e.length+1))}}{let[e,t]=n.split(":");return{host:e,port:t9(t)}}}(t),a=null===s?"":`:${s}`,o={url:`${n}//${i}${a}/`},l=Object.freeze({host:i,port:s,protocol:n.replace(":",""),options:Object.freeze({disableWarnings:!1})});if(!r._canInitEmulator){e2(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),e2(G(o,r.config.emulator)&&G(l,r.emulatorConfig),r,"emulator-config-failed");return}r.config.emulator=o,r.emulatorConfig=l,r.settings.appVerificationDisabledForTesting=!0,q(i)?Y(`${n}//${i}${a}`):function(){function e(){let e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"u">typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),"u">typeof window&&"u">typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}(r,`http://${i}`),r}(h6):null;async function h5(e){var t;let r,n=function(e,t,...r){if(e=K(e),1==arguments.length&&(t=i7.newId()),function(e,t){if(!t)throw new sc(su.INVALID_ARGUMENT,`Function doc() cannot be called with an empty ${e}.`)}("path",t),e instanceof lM){let n=sd.fromString(t,...r);return sE(n),new lU(e,null,new sy(n))}{if(!(e instanceof lU||e instanceof lH))throw new sc(su.INVALID_ARGUMENT,"Expected first argument to doc() to be a CollectionReference, a DocumentReference or FirebaseFirestore");let n=e._path.child(sd.fromString(t,...r));return sE(n),new lU(e.firestore,e instanceof lH?e.converter:null,new sy(n))}}(h8,"profile",e),i=await (t=sb(t=n,lU),(function(e,t,r={}){let n=new o8;return e.asyncQueue.enqueueAndForget(async()=>{var i,s;let a,o;return i=await hV(e),s=e.asyncQueue,a=new B1({next:e=>{a.Aa(),s.enqueueAndForget(()=>hi(i,o));let l=e.docs.has(t);!l&&e.fromCache?n.reject(new sc(su.UNAVAILABLE,"Failed to get document because the client is offline.")):l&&e.fromCache&&r&&"server"===r.source?n.reject(new sc(su.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):n.resolve(e)},error:e=>n.reject(e)}),hn(i,o=new hl(new a9(t.path),a,{includeMetadataChanges:!0,waitForSyncWhenOnline:!0}))}),n.promise})(function(e){if(e._terminated)throw new sc(su.FAILED_PRECONDITION,"The client has already been terminated.");return e._firestoreClient||function(e){var t,r,n,i,s;let a,o=e._freezeSettings(),l=(t=e._databaseId,r=e._app?.options.appId||"",n=e._persistenceKey,i=e._app?.options.apiKey,new sH(t,r,n,o.host,o.ssl,o.experimentalForceLongPolling,o.experimentalAutoDetectLongPolling,li(o.experimentalLongPollingOptions),o.useFetchStreams,o.isUsingEmulator,i,o._customHeaders,o.grpc
17FlowControlWindow));e._componentsProvider||o.localCache?._offlineComponentProvider&&o.localCache?._onlineComponentProvider&&(e._componentsProvider={_offline:o.localCache._offlineComponentProvider,_online:o.localCache._onlineComponentProvider}),e._firestoreClient=new hx(e._authCredentials,e._appCheckCredentials,e._queue,l,e._componentsProvider&&(s=e._componentsProvider,a=s?._online.build(),{_offline:s?._offline.build(a),_online:a}))}(e),e._firestoreClient}(r=sb(t.firestore,h$)),t._key).then(e=>{var n,i,s;let a,o;return n=r,i=t,a=(s=e).docs.get(i._key),o=new hW(n),new hZ(n,o,i._key,a,new hQ(s.hasPendingWrites,s.fromCache),i.converter)})),s=null;return i.exists()?s=i.data():console.log("No such document!"),s&&delete s.password,s}let h9=(0,v.createContext)({user:{email:""},loading:!0,login:async e=>!1,signUp:async(e,t)=>null,logOut:async()=>{}});e.s(["AuthUserProvider",0,function({children:e}){let t=function(){let[e,t]=(0,v.useState)(null),[r,n]=(0,v.useState)(!0),i=()=>{t(null)},s=async e=>{let r;if(!e){t(null),n(!1);return}n(!0);let s=null;if(e.accessToken)try{s=await h5(e.uid)}catch(e){console.error("error getting profile",e)}let a=(r=s,{uid:e.uid,email:e.email,token:e.accessToken,role:r?.role,org:r?.org,name:r?.name});""===a.org?t(a):rN(h4).then(i),n(!1)},a=async({email:e,password:t})=>{n(!0);try{return await (eA(h4.app)?Promise.reject(e0(h4)):rA(K(h4),rp.credential(e,t)).catch(async e=>{throw"auth/password-does-not-meet-requirements"===e.code&&rO(h4),e})),!0}catch(e){console.error("login error",e)}finally{n(!1)}return!1},o=async()=>{await rN(h4),i()},l=e=>!!e&&"SUPER_ADMIN"===e;return(0,v.useEffect)(()=>{let e=K(h4).onAuthStateChanged(s,void 0,void 0);return()=>e()},[]),{user:e,loading:r,login:a,signUp:(e,t)=>rR(h4,e,t),logOut:o,isAdmin:e=>!!e&&("ADMIN"===e||l(e)),isSuperAdmin:l}}();return(0,E.jsx)(h9.Provider,{value:t,children:e})},"useAuth",0,()=>(0,v.useContext)(h9)],23042)},78980,65804,e=>{"use strict";var t=e.i(43476),r=e.i(63642),n=e.i(40783),i=e.i(3187),s=e.i(39418),a=e.i(74743),o=e.i(42778);let l=e=>{let t=i.default.reduce((e,t)=>{let{zone_code:r}=t;return e=[...e,...r.split("|")],o.default.uniq(e)},[]),r=(0,a.getCountries)().filter(e=>t.includes(e.value));return e?[r.find(t=>t.value===e.toUpperCase()),...r.filter(t=>t.value!==e.toUpperCase())]:r},u=e=>i.default.find(t=>t.zone_code.indexOf(e.toUpperCase())>-1),c=e=>{try{let{country:t,currency:r}=function(e){let t=e.replace(/^\/|\/$/g,"").split("/");if(t.length<3)return{country:null,currency:null,locale:null};let r=t[0],n=t[1];return{country:r,currency:n,locale:t[2]}}(e),n=((e,t)=>{let r=i.default.find(r=>r.currency===t.toUpperCase()&&r.zone_code.indexOf(e.toUpperCase())>-1);if(!r){let n=`${e} ${t}`.toUpperCase();r=i.default.find(e=>e.market_name===n)}return r})(t,r),{market_id:s}=n,a=t.toUpperCase(),o=n.zone_code.split("|");return o.includes(t.toUpperCase())||(a=o[0]),{marketId:s,countryCode:a}}catch(e){console.log("getMarketFromPathname",e)}};e.s(["filterCountries",0,l,"filterMarketByCountryCode",0,e=>i.default.filter(t=>t.zone_code.indexOf(e.toUpperCase())>-1),"formatAddress",0,e=>{let t={id:e.id||"",first_name:e.first_name||"",company:e.company||"",last_name:e.last_name||"",line_1:e.line_1||"",line_2:e.line_2||"",city:e.city||"",country_code:e.country_code||"",state_code:e.state_code||"",zip_code:e.zip_code||"",phone:e.phone||"",type:"addresses",created_at:null,updated_at:null,metadata:{...e.metadata}};return"person_type"in e&&(t.metadata={...e.metadata,person_type:e.person_type,sdi:e.sdi,vat:e.vat,iban:e.iban,fiscal_code:e.fiscal_code,pec:e.pec}),t},"getCountryName",0,(e,t)=>{if(t)return(0,s.default)(e,`countries.${t}`)},"getDateRange",0,(e,t,r)=>{let n=new Date;n.setDate(n.getDate()+t);let i=new Date;i.setDate(i.getDate()+r);let a=new Intl.DateTimeFormat([e,"en"]).format(n),o=new Intl.DateTimeFormat([e,"en"]).format(i);return(0,s.tt)(e,"delivery_dates",{min:a,max:o})},"getFormattedAvailabilityText",0,(e,t,r=2,n=10,i=1)=>{let a=e.filter(function(e){return e.quantity>=i})[0]??null;if(a){let e=(a.delivery_lead_times||[]).reduce((e,t)=>e>t.max.days?e:t.max.days,0);if(e>=r)if(a.quantity>n)return(0,s.tt)(t,"delivery_times",{days:e.toString()});else return`${(0,s.tt)(t,"delivery_times",{days:e.toString()})} ${(0,s.tt)(t,"until_items",{num:a.quantity.toString()})} ${(0,s.default)(t,1==a.quantity?"single_product_basepath":"product_basepath")}`;return(0,s.default)(t,"ready_in_stock")}return null},"getMarketByCountryCode",0,u,"getMarketFromPathname",0,c,"getMaxDeliveryDays",0,(e,t=1)=>{let r=e.filter(function(e){return e.quantity>=t})[0]??null;return r?{minDay:(r.delivery_lead_times||[]).reduce((e,t)=>
17e>t.min.days?e:t.min.days,0),maxDay:(r.delivery_lead_times||[]).reduce((e,t)=>e>t.max.days?e:t.max.days,0)}:{minDay:7,maxDay:14}},"getPathFromMarket",0,(e,t="it")=>{let r=i.default.find(t=>{let{market_id:r}=t;return r===e});if(!r)return null;{let{market_name:e}=r;return((e,t="it")=>{let r=e.split(" "),n=r[r.length-1];r.pop();let i=r.join("-");return`/${i}/${n}/${t}`.toLowerCase()})(e,t)}},"hasBothAddresses",0,e=>{if(!e||0==e.length)return!1;let t=!1,r=!1;for(let n of e)if(n.address.metadata.isBilling&&(t=!0),n.address.metadata.isShipping&&(r=!0),t&&r)return!0;return!1},"hasCountryAddress",0,(e,t)=>!!e&&0!=e.length&&e.filter(e=>"test"!=e.address.metadata.type&&e.address.country_code===t).length>0],65804);var B=e.i(69841),h=e.i(21816),d=e.i(18566),p=e.i(71645);let f=r.default.projectName,g=r.default.configuration.locale.code,C=r.default.configuration.country,m=u(C.zoneCode),_=r.default.availableLocales.locales,y=l(C.zoneCode).length>1,E=m.market_id;function v(e,t){let{type:r,data:n}=t;switch(r){case"TOGGLE_COUNTRY_MODAL":return{...e,countryModal:n};case"TOGGLE_AUTH_MODAL":return{...e,authModal:n};case"TOGGLE_FEEDBACK_MODAL":return{...e,feedbackModal:n};case"TOGGLE_FEEDBACK_MODAL_USER":return{...e,feedbackModalUser:n};case"TOGGLE_FEEDBACK_MODAL_QUANTITY":return{...e,feedbackModalQuantity:n};case"TOGGLE_FEEDBACK_MODAL_COUNTRY":return{...e,feedbackModalCountry:n};case"TOGGLE_PAYMENT_ERROR_MODAL":return{...e,paymentErrorModal:n};case"SET_NUM_ITEMS":return{...e,numItems:n};case"SET_ORDER":return{...e,order:n};case"SET_LOCALE":return{...e,locale:n};case"SET_BASE_URL":return{...e,baseUrl:n};case"INIT_MARKET":return{...e,marketId:n.marketId,countryCode:n.countryCode};case"SHOW_TOAST":return{...e,toast:{show:!0,message:n.message,error:n.error,autoClose:n.autoClose,action:n.action}};case"HIDE_TOAST":return{...e,toast:{show:!1,message:""}};default:return e}}let w={locales:_,projectName:f,defaultMarketId:E,hasMultipleCountries:y,locale:g,countryCode:C.zoneCode,marketId:y?null:E,cartId:null,countryModal:!1,authModal:!1,feedbackModal:!1,numItems:null,order:null,baseUrl:null,toast:{show:!1,message:""}},b=(0,p.createContext)(null);e.s(["default",0,function({children:e}){let[r,i]=(0,p.useReducer)(v,w),[s,a]=(0,p.useState)(null),{defaultMarketId:o,marketId:l,countryCode:f}=r,g=(0,d.usePathname)();function C(){}return(0,p.useEffect)(()=>{let e,t=(0,h.localStorageGetItem)(B.COUNTRY_CODE_KEY);C();let r=t?u(t):null;if(C(),g.length>1)try{let n=c(g);C(),e={marketId:n.marketId,countryCode:n.countryCode},r&&n.marketId===r.market_id&&(e={marketId:n.marketId,countryCode:t})}catch(e){console.log("error INIT_MARKET",e)}else r&&(e={marketId:r.market_id,countryCode:t});C(e=e||{marketId:o,countryCode:f}),i({type:"INIT_MARKET",data:{marketId:e.marketId,countryCode:e.countryCode}})},[g]),(0,p.useEffect)(()=>{l&&f&&(C(),(async()=>{try{let e=new n.AppCommerceLayerClient(l,f);await e.init(),a(e)}catch(e){console.error("Failed to connect to Commerce Layer",e),a(null)}})())},[l,f]),(0,t.jsx)(b.Provider,{value:{state:r,dispatch:i,client:s},children:e})},"useAppContext",0,function(){return(0,p.useContext)(b)}],78980)},23542,(e,t,r)=>{t.exports=JSON.parse('{"it":"Italienisch","en":"Englisch","de":"Deutsch","fr":"French","change_market":"Versand nach","add_to_cart":"In den Warenkorb legen","you_might_also_like":"das könnte dir auch gefallen","category_basepath":"Kategorien","product_basepath":"Produkte","checkout":"Bestellung abschlieÃen","unavailable_message":"Artikel nicht verfügbar","loading":"Laden...","availability":"Verfügbarkeit","compareAt":"vorheriger Preis","remove":"entfernen","num":"Gesamtmenge","cart":"Warenkorb","go_to_cart":"Zum warenkorb gehen","quantity":"Menge","amount":"Preis","discount":"Rabatt","shipping_cost":"Versandkosten","free_shipping":"Umsonst","fees_included":"inkl. Gebühren","total":"Gesamt","subtotal":"Zwischensumme","delivery_dates":"vom #min bis #max","delivery_date":"Versand","choose_shipping_country":"Versandland wählen","choose_locale":"Sprache wählen","select":"auswählen","profile":"Profil","logged_as":"Bestätigen Sie, dass Sie sich von Ihrem Konto abmelden möchten?","login":"anmelden","register":"Konto erstellen","logout":"abmelden","login_button":"Haben Sie bereits ein Konto? Anmelden","register_button":"Haben Sie kein Konto? Erstellen Sie Ihr Konto","ok":"Ok","email":"E-Mail-Addresse","password":"Passwort","invali
17d_credentials":"Ungültige E-Mail oder Passwort","send":"senden","cancel":"stornieren","close":"mit dem Einkaufen fortfahren","add_more_products":"Füge weitere Produkte hinzu","edit":"verändern","order_summary":"Bestellübersicht","step_payment":"Bezahlung","step_error":"ein Fehler ist aufgetreten","step_success":"Ihre Bestellung ist eingegangen","step_success_message":"Sie erhalten eine Auftragsbestätigung per E-Mail mit den Details Ihrer Bestellung und den Link, um den Fortschritt zu verfolgen","payment_info_title":"Zahlungsinformationen","payment_info_list":"Der Kunde zahlt bei Lieferung der Ware. Es ist möglich, nur in bar und direkt an den Kurier zu bezahlen. Sie müssen den genauen Betrag Ihrer Bestellung bezahlen, weil der Kurier kein Wechselgeld geben kann","change_method":"Bezahlungsmethode ändern","place_order":"mit Einkauf fortfahren","billing_address":"Rechnungsadresse","shipping_address":"Lieferadresse","customer":"Kunde","company":"Firma","address":"Adresse","address_two":"StraÃe 2","phone":"Telefon","wire_transfer_note":"Barzahlung bei Lieferung","wire_transfers":"Banküberweisung","contrassegno_note":"Barzahlung bei Lieferung","contrassegno":"Banküberweisung","wire_transfer_payment":"Ãberweisung","braintree_payments":"Kreditkarte / Paypal","field_required":"Pflichtfeld","required":"(Pflichtfeld)","optional":"(fakultativ)","tips_address":"zB: über berlin 1","tips_company":"zB: Acme GmbH","tips_company_freelance":"Acme von Marco Rossi (individuelles Unternehmen) oder \'Marco Rossi\'(Profi)","tips_company_onlus":"Rechnungsinhaber. zB: Acme GmbH or Acme Rechts Studio","tips_sdi":"zB: M5X4UG9","tips_phone":"zB: +49 123 456789","tips_fiscal_code_private":"zB: MRORSS78B19D234J","tips_fiscal_code_company":"Beispiel: 01572538910","tips_fiscal_code_onlus":"zB: 92345678901","tips_fiscal_code_freelance":"Beispiel: MRORSS78B19D234J oder 01562538910","tips_vat":"zB: MRORSS78B19D234J oder 01562538910","tips_address_two":"zB: Acme GmbH","tips_province":"Bitte wählen Sie Region, Land oder Bundesland","tips_pec":"Legen Sie PEC E-Mail-Adresse, wo Sie die Rechnung erhalten","enter_valid_email":"eine gültige Email-Adresse eingaben","person_type":"Personentyp","first_name":"Vorname","last_name":"Nachname","city":"Stadt","state_province":"Provinz","zip":"PLZ","fiscal_code":"Steuernummer","vat":"USt-IdNr","sdi":"SDI-Code","pec":"PEC-Adresse","person_private":"Privatperson","person_legal":"gemeinnützige Organisation, Vereinigung oder rechtliche Einheit, die keine natürliche Person ist","person_company":"Firma / Berufsorganisation","person_professional":"Freiberufler oder Einmannbetrieb mit Ust.Id.Nr","authorize_payment":"Bestätige Zahlung","retry":"versuchen Sie nochmal","back":"zurück","empty_order":"die Bestellung ist leer","cart_empty":"Einkaufswagen ist leer","order_placed_notice":"Ihr Bestellcode lautet","coupon":"Gutscheincode","invalid_coupon_code":"Der Gutscheincode existiert leider nicht","ready_in_stock":"sofort lieferbar","delivery_times":"Versand innerhalb von #days Werktagen","until_items":"bis zu #num","forgot_password":"Passwort vergessen?","forgot_disclaimer":"Sie erhalten Anweisungen zur Passwortwiederherstellung per E-Mail","password_changed_message":"Passwort erfolgreich aktualisiert","change_password":"Passwort ändern","confirm_password":"Passwort bestätigen","passwords_must_match":"Passwörter müssen übereinstimmen","missing_parameters":"fehlende Parameter","password_min_chars":"Das Passwort muss mindestens #min Zeichen lang sein","add_cart_success":"Zum Warenkorb hinzugefügt","add_cart_error":"Beim Hinzufügen des Artikels zum Warenkorb ist ein Fehler aufgetreten","update_cart":"aktualisieren","invalid_email":"Fehler, die E-Mail ist ungültig","invalid_password":"Fehler, Passwort ist ungültig, mindestens 6 Zeichen","email_already_registered":"Fehler, die angegebene E-Mail ist bereits registriert","generic_error":"Während des Vorgangs ist ein Fehler aufgetreten","country":"Land","bt_validation_error":"Verifizierungsfehler, bitte verwenden Sie eine alternative Zahlungsmethode","cl_validation_error":"Bitte geben Sie die richtigen Werte für die Zahlung ein","cl_place_order_error":"Kann keine Bestellung aufgeben","only_text_allowed":"Es sind nur Buchstaben und Leerzeichen erlaubt","only_alphanumeric_allowed":"Es sind nur Buchstaben, Zahlen und Leerzeichen erlaubt","only_numbers_allowed":"Es sind nur Zahlen und Leerzeichen erlaubt","only_alphanumeric_35_char_limit":"Nur Buchstaben, Zahlen und Leerzeichen sind erlaubt, bis zu einer maximalen Länge von 35 Zeichen","info_message_form":"Sie können bis zu 8 Zeilen sc
17hreiben, 35 Zeichen pro Zeile","greeting_card":"Glückwunschkarte","insert_message":"Ihre Nachricht eingeben","subtitle_greeting_card":"Dem Paket legen wir ohne Zusatzkosten ein Begleitkärtchen bei","countries.AD":"Andorra","countries.AX":"Aland Islands","countries.AE":"United Arab Emirates","countries.AF":"Afghanistan","countries.AG":"Antigua and Barbuda","countries.AI":"Anguilla","countries.AL":"Albania","countries.AM":"Armenia","countries.AN":"Netherlands Antilles","countries.AO":"Angola","countries.AQ":"Antarctica","countries.AR":"Argentina","countries.AS":"American Samoa","countries.AT":"Ãsterreich","countries.AU":"Australien","countries.AW":"Aruba","countries.AZ":"Azerbaijan","countries.BA":"Bosnia and Herzegovina","countries.BB":"Barbados","countries.BD":"Bangladesh","countries.BE":"Belgien","countries.BF":"Burkina Faso","countries.BG":"Bulgarien","countries.BH":"Bahrain","countries.BI":"Burundi","countries.BJ":"Benin","countries.BM":"Bermuda","countries.BN":"Brunei","countries.BO":"Bolivien","countries.BQ":"Bonaire, Sint Eustatius and Saba","countries.BR":"Brasilien","countries.BS":"Bahamas","countries.BT":"Bhutan","countries.BV":"Bouvet Island","countries.BW":"Botswana","countries.BY":"Belarus","countries.BZ":"Belize","countries.CA":"Kanada","countries.CC":"Cocos (Keeling) Islands","countries.CD":"The Democratic Republic of Congo","countries.CF":"Central African Republic","countries.CG":"Congo","countries.CH":"Schweiz","countries.CI":"Ivory Coast","countries.CK":"Cook Islands","countries.CL":"Chile","countries.CM":"Cameroon","countries.CN":"China","countries.CO":"Kolumbien","countries.CR":"Costa Rica","countries.CU":"Cuba","countries.CW":"Curaçao","countries.CV":"Cape Verde","countries.CX":"Christmas Island","countries.CY":"Cyprus","countries.CZ":"Czech Republic","countries.DE":"Deutschland","countries.DJ":"Djibouti","countries.DK":"Dänemark","countries.DM":"Dominica","countries.DO":"Dominican Republic","countries.TL":"East Timor","countries.DZ":"Algeria","countries.EC":"Ecuador","countries.EE":"Estonia","countries.EG":"Egypt","countries.EH":"Western Sahara","countries.ER":"Eritrea","countries.ES":"Spanien","countries.ET":"Ethiopia","countries.FI":"Finnland","countries.FJ":"Fiji Islands","countries.FK":"Falkland Islands","countries.FM":"Micronesia, Federated States of","countries.FO":"Faroe Islands","countries.FR":"Frankreich","countries.GA":"Gabon","countries.GB":"Vereinigtes Königreich","countries.GD":"Grenada","countries.GE":"Georgia","countries.GF":"French Guiana","countries.GH":"Ghana","countries.GI":"Gibraltar","countries.GL":"Greenland","countries.GM":"Gambia","countries.GN":"Guinea","countries.GP":"Guadeloupe","countries.GQ":"Equatorial Guinea","countries.GR":"Griechenland","countries.GS":"South Georgia and the South Sandwich Islands","countries.GT":"Guatemala","countries.GG":"Guernsey and Alderney","countries.GU":"Guam","countries.GW":"Guinea Bissau","countries.GY":"Guyana","countries.HK":"Hong Kong","countries.HM":"Heard Island and McDonald Islands","countries.HN":"Honduras","countries.HR":"Croatia","countries.HT":"Haiti","countries.HU":"Hungary","countries.ID":"Indonesia","countries.IE":"Ireland","countries.IL":"Israel","countries.IN":"India","countries.IO":"British Indian Ocean Territory","countries.IQ":"Iraq","countries.IR":"Iran","countries.IS":"Island","countries.IT":"Italien","countries.JM":"Jamaica","countries.JO":"Jordan","countries.JP":"Japan","countries.JE":"Jersey","countries.KE":"Kenya","countries.KG":"Kyrgyzstan","countries.KH":"Cambodia","countries.KI":"Kiribati","countries.XK":"Kosovo","countries.KM":"Comoros","countries.KN":"Saint Kitts and Nevis","countries.KP":"North Korea","countries.KR":"South Korea","countries.KW":"Kuwait","countries.KY":"Cayman Islands","countries.KZ":"Kazakhstan","countries.LA":"Laos","countries.LB":"Lebanon","countries.LC":"Saint Lucia","countries.LI":"Liechtenstein","countries.LK":"Sri Lanka","countries.LR":"Liberia","countries.LS":"Lesotho","countries.LT":"Lithuania","countries.LU":"Luxembourg","countries.LV":"Latvia","countries.LY":"Libyan Arab Jamahiriya","countries.MA":"Morocco","countries.MC":"Monaco","countries.MD":"Moldova","countries.MG":"Madagascar","countries.MH":"Marshall Islands","countries.MK":"North Macedonia","countries.ML":"Mali","countries.MM":"Myanmar","countries.MN":"Mongolia","countries.ME":"Montenegro","countries.MO":"Macao","countries.MP":"Northern Mariana Islands","countries.MQ":"Martinique","countries.MR":"Mauritania","countries.MS":"Montserrat","countries.MT":"Malta","countries.IM":"Man (
17Isle of)","countries.MU":"Mauritius","countries.MV":"Maldives","countries.MW":"Malawi","countries.MX":"Mexico","countries.MY":"Malaysia","countries.MZ":"Mozambique","countries.NA":"Namibia","countries.NC":"New Caledonia","countries.NE":"Niger","countries.NF":"Norfolk Island","countries.NG":"Nigeria","countries.NI":"Nicaragua","countries.NL":"Holland","countries.NO":"Norway","countries.NP":"Nepal","countries.NR":"Nauru","countries.NU":"Niue","countries.NZ":"Neuseeland","countries.OM":"Oman","countries.PA":"Panama","countries.PE":"Peru","countries.PF":"French Polynesia","countries.PG":"Papua New Guinea","countries.PH":"Philippines","countries.PK":"Pakistan","countries.PL":"Poland","countries.PM":"Saint Pierre and Miquelon","countries.PN":"Pitcairn","countries.PR":"Puerto Rico","countries.PS":"Palestine","countries.PT":"Portugal","countries.PW":"Palau","countries.PY":"Paraguay","countries.QA":"Qatar","countries.RE":"Reunion","countries.RO":"Rumänien","countries.RU":"Russian Federation","countries.RW":"Rwanda","countries.SA":"Saudi Arabia","countries.SB":"Solomon Islands","countries.SC":"Seychelles","countries.SD":"Sudan","countries.SE":"Schweden","countries.SG":"Singapore","countries.SX":"Sint Maarten (Dutch part)","countries.SH":"Saint Helena","countries.SI":"Slovenia","countries.SJ":"Svalbard and Jan Mayen","countries.SK":"Slovakia","countries.SL":"Sierra Leone","countries.SM":"San Marino","countries.SN":"Senegal","countries.RS":"Serbia","countries.SO":"Somalia","countries.SR":"Suriname","countries.SS":"South Sudan","countries.ST":"Sao Tome and Principe","countries.SV":"El Salvador","countries.SY":"Syria","countries.SZ":"Swaziland","countries.TC":"Turks and Caicos Islands","countries.TD":"Chad","countries.TF":"French Southern territories","countries.TG":"Togo","countries.TH":"Thailand","countries.TJ":"Tajikistan","countries.TK":"Tokelau","countries.TM":"Turkmenistan","countries.TN":"Tunisia","countries.TO":"Tonga","countries.TP":"East Timor","countries.TR":"Turkey","countries.TT":"Trinidad and Tobago","countries.TV":"Tuvalu","countries.TW":"Taiwan","countries.TZ":"Tanzania","countries.UA":"Ukraine","countries.UG":"Uganda","countries.UM":"United States Minor Outlying Islands","countries.US":"Vereinigte Staaten","countries.UY":"Uruguay","countries.UZ":"Uzbekistan","countries.VA":"Holy See (Vatican City State)","countries.VC":"Saint Vincent and the Grenadines","countries.BL":"Saint-Barthelemy","countries.MF":"Saint-Martin (French part)","countries.VE":"Venezuela","countries.VG":"Virgin Islands, British","countries.VI":"Virgin Islands, U.S.","countries.VN":"Vietnam","countries.VU":"Vanuatu","countries.WF":"Wallis and Futuna","countries.WS":"Samoa","countries.YE":"Yemen","countries.YT":"Mayotte","countries.YU":"Yugoslavia","countries.ZA":"South Africa","countries.ZM":"Zambia","countries.ZW":"Zimbabwe","maximum_elements_added":"Es ist möglich bis zu #n #p hinzufügen","single_product_basepath":"produkt","credit_assignment":"Kreditzuweisung","error_boundary_title":"Ein Fehler ist aufgetreten!","error_boundary_subtitle":"Wir arbeiten daran, bitte versuchen Sie es später erneut","404_title":"Ups!","404_subtitle":"Wir können die Seite nicht finden, die du suchst.","404_back":"Zurück zur Startseite","200_password":"Passwort erfolgreich geändert: Bitte loggen Sie sich mit dem neuen Passwort ein","200_personal_data":"Persönliche Informationen erfolgreich aktualisiert","switch_sdi":"YSie verfügen nicht über die SDI-Code? ... Klicken Sie und Ihre PEC-Adresse eingeben","switch_pec":"Sie haben nicht die PEC-Adresse? ... Klicken Sie auf und geben Sie Ihre SDI-Code","iban":"Iban","enter_valid_iban":"Geben Sie eine gültige IBAN ein","address_two_b2b":"bei","tips_address_two_b2b":"zB: im Hotel Bellavita","pages":"seiten","research_in_progress":"Suche im Gange...","no_results":"Keine Einträge gefunden.","search_product":"Suche nach einem Produkt...","account":"Profil","account_section_title_1":"Personliche Informationen bearbeiten","account_section_title_2":"E-Mail bearbeiten.","account_section_title_3":"Passwort bearbeiten.","account_login_again_action":"(Nach der Ãnderung müssen Sie sich erneut anmelden)","brith_date":"Geburtsdatum","new_password":"Neues Passwort","old_password":"Altes Passwort","error_old_password":"Ungültiges aktuelles Passwort","passwords_not_match":"Die beiden Passwörter stimmen nicht überein","addresses":"Adressen","update":"Aktualisieren","billing":"Abrechnung","shipping":"Versand","modify_personal_data":"Ãndern, hinzufügen und speichern Sie Ihre Daten und Passwörter in diesem Abschnitt.","modify_addresses_detail":"Ãndern und speichern Sie hier Ihre Lieferpräferenzen.","modify_billing_addresses":"Ãndern und speichern Sie hier Ihre Firmenbezeichnung, Steuernummer, Umsatzsteuer-Identifikationsnummer und Adressen.","welcome":"Willkommen","subtitle_shipping_address_section":"Vervollständigen
17Sie Ihre Einkäufe einfacher und schneller, indem Sie Ihre Versandadressen auf dieser Seite speichern.","subtitle_billing_address_section":"Geben Sie Ihre Rechnungsadressen auf dieser Seite ein, um Ihre Bestellung einfacher und schneller abzuschlieÃen.","go_to_account":"Zu Ihrem Profil gehen","delete_address_confirm":"Adresse löschen bestätigen","delete_address_confirm_subtitle":"Möchten Sie diese Adresse wirklich löschen?","change_shipping_address":"Versandadresse ändern","change_billing_address":"Rechnungsadresse ändern","200_address":"Adresse erfolgreich gespeichert","section_account_back":"Zurück","ask_for_invoice":"Ich möchte eine Rechnung erhalten","save_shipping_address":"Versandadresse speichern","save_billing_address":"Rechnungsinformationen speichern","delivery_to_this_address":"An diese Adresse liefern","use_this_address":"Diese Adresse verwenden","billing_addresses":"Rechnungsadressen","shipping_addresses":"Versandadressen","insert_shipping_address":"Versandadresse eingeben","insert_billing_address":"Rechnungsadresse eingeben","edit_shipping_address":"Versandadresse bearbeiten","edit_billing_address":"Rechnungsadresse bearbeiten","edit_address":"Adresse bearbeiten","delete_address":"Adresse löschen","select_shipping_address":"Versandadresse auswählen","confirm":"Bestätigen","add_address":"Neue Adresse hinzufügen","add_address_shipping":"Neue Versandadresse hinzufügen","add_address_billing":"Neue Rechnungsinformationen hinzufügen","my_account":"Mein Konto","personal_data":"Profil","enter_valid_vat":"Bitte geben Sie eine gültige Umsatzsteuer-Identifikationsnummer ein","enter_valid_fiscal_code":"Bitte geben Sie einen gültigen Steuercode ein","enter_valid_sdi":"Bitte geben Sie einen gültigen SDI-Code ein","forgot_password_label":"Passwort vergessen","proceed":"Weiter","1.cart":"1. Warenkorb","2.shipping_and_payment":"2. Versand und Zahlung","3.confirm_order":"3. Bestellung bestätigt","complete_order_step":"SchlieÃen Sie die Bestellung ab, indem Sie sich registrieren, sich anmelden, wenn Sie bereits registriert sind, oder als Gast fortfahren","register_title_section":"Registrieren","register_subtitle_section":"Registrieren Sie sich, um Ihre Adressen zu speichern und den Kaufvorgang zu beschleunigen.","login_title_section":"Anmelden","login_subtitle_section":"Wenn Sie bereits ein Konto haben, melden Sie sich an und fahren Sie mit dem Kauf fort.","guest_title_section":"Als Gast fortfahren","guest_subtitle_section":"Geben Sie Ihre E-Mail-Adresse ein, um Bestellaktualisierungen zu erhalten.","check_cart":"Die nicht verfügbaren Artikel wurden aus dem Warenkorb entfernt oder angepasst.","payment_error":"Wir können Ihre Zahlung nicht verarbeiten. Bitte versuchen Sie es mit einer anderen Karte oder Zahlungsmethode.","couponOrGift.label":"Rabattcode vorhanden?","couponOrGift.submit":"Anwenden","couponOrGift.placeholder.gift_card_or_coupon_code":"Geschenkkarte oder Rabattcode","couponOrGift.placeholder.gift_card_code":"Geschenkkarte","couponOrGift.placeholder.coupon_code":"Rabattcode","couponOrGift.error.gift_card_or_coupon_code":"Bitte einen gültigen Geschenkkarten- oder Rabattcode eingeben","couponOrGift.error.gift_card_code":"Bitte eine gültige Geschenkkarte eingeben","couponOrGift.error.coupon_code":"Bitte eine gültigen Rabattcode eingeben","my_orders":"Meine bestellungen","ship_to_another_country":"Möchten Sie in ein anderes Land versenden?","confirm_change_country":"Sie sind dabei, das Versandland zu wechseln, sind Sie sicher?","back_change_country":"Zurück zum vorherigen Land","continue_change_country":"Weiter mit dem neuen Land","transactionSecure":"Alle Transaktionen sind sicher und verschlüsselt.","contact":"ContKontaktact"}')},42941,(e,t,r)=>{t.exports=JSON.parse('{"it":"Italiano","en":"English","de":"Deutsch","fr":"French","change_market":"Shipping to","add_to_cart":"Add to cart","you_might_also_like":"You might also like","category_basepath":"Categories","product_basepath":"products","checkout":"Checkout","unavailable_message":"Product not available","loading":"Loading...","availability":"Availability","compareAt":"Compare at","remove":"Remove","num":"Number of Items","cart":"Cart","go_to_cart":"Go to cart","quantity":"Quantity","amount":"Amount","discount":"Discount","shipping_cost":"Shipping costs","free_shipping":"Free","fees_included":"fees incl.","total":"Total","subtotal":"Subtotal","delivery_dates":"from #min to #max","delivery_date":"Shipping ","choose_shipping_country":"Choose Shipping Country","choose_locale":"Select the language","select":"Select","profile":"Profile","logged_as":"Do you confirm that you want to log out of your account?","login":"Login","register":"Register","logout":"Logout","login_button":"Already a member? Log in","register_button":"Don\'t have an account yet? Register","ok":"Ok","email":"Email","password":"Password","invali
17d_credentials":"Invalid email or password","send":"Send","cancel":"Cancel","close":"Continue shopping","add_more_products":"Add more products","edit":"Edit","order_summary":"Summary","step_payment":"Payment","step_error":"An error occurred during the process","step_success":"Your order has been received","step_success_message":"You will receive an order confirmation by email with the details of your order and the link to follow its progress","payment_info_title":"Pament Info.","payment_info_list":"The payment by the customer will take place upon delivery of the goods|It will be possible to pay only in cash and directly to the courier|The courier will not be able to give any change, so we advise you to prepare the exact amount of your purchases that you find in the order total","change_method":"Change Method","place_order":"Place Order","billing_address":"Billing Address","shipping_address":"Shipping Address","customer":"Customer","company":"Company","address":"Address","address_two":"Street Address 2","phone":"Phone","wire_transfers":"Wire Transfer","wire_transfer_note":"Cash on delivery","contrassegno":"Cash on delivery","contrassegno_note":"Cash on delivery","wire_transfer_payment":"Wire Transfer","braintree_payments":"Credit Card / Paypal","field_required":"This field is required","required":"(mandatory)","optional":"(optional)","tips_address":"Eg: 49 Featherstone Street","tips_company":"Eg: Acme inc","tips_company_freelance":"Eg: \'Acme of Marco Rossi\' (individual company) or \'Marco Rossi\' (professional)","tips_company_onlus":"Invoice owner. Eg: Acme inc or Acme Studio","tips_sdi":"Eg: M5X4UG9","tips_phone":"Eg: +44 123 456789","tips_fiscal_code_private":"Eg: MRORSS78B19D234J","tips_fiscal_code_company":"eg: 01572538910","tips_fiscal_code_onlus":"eg: 92345678901","tips_fiscal_code_freelance":"eg: MRORSS78B19D234J or 01562538910","tips_vat":"eg: MRORSS78B19D234J or 01562538910","tips_address_two":"Eg: Acme inc","tips_province":"Please select region, state or province","tips_pec":"Insert you PEC email address, where you will receive the invoice","enter_valid_email":"Enter a valid email","person_type":"Person Type","first_name":"First Name","last_name":"Last Name","city":"City","state_province":"State/Province","zip":"Zip Code","fiscal_code":"Fiscal Code","vat":"Vat","sdi":"SDI code","pec":"Pec email","person_private":"I\'m a Private","person_legal":"I am a Legal Person","person_company":"I am a Company","person_professional":"I am a Professional","authorize_payment":"Confirm payment","retry":"Try again","back":"Back","empty_order":"Order is empty","cart_empty":"Cart is empty","order_placed_notice":"Your order number is","coupon":"Coupon","invalid_coupon_code":"Invalid coupon code","ready_in_stock":"Ready in stock","delivery_times":"Shipped in #days days","until_items":"up to #num","forgot_password":"Forgot password","forgot_disclaimer":"You will receive recover instructions by email","password_changed_message":"Password updated successfully","change_password":"Change password","confirm_password":"Confirm password","passwords_must_match":"Passwords must match","missing_parameters":"Sorry, some parameters are missing","password_min_chars":"Password must be at least #min characthers","add_cart_success":"Item added to cart","add_cart_error":"An error occurred while adding the item to cart","update_cart":"Update cart","invalid_email":"Error, the email is invalid","invalid_password":"Error, password is invalid, minimum is 6 chars","email_already_registered":"Error, the email provided is already registered","generic_error":"An error occurred during the process","country":"Country","bt_validation_error":"Verification error, please use an alternative payment method","cl_validation_error":"Please fill correct values for payment","cl_place_order_error":"Can not place order","only_text_allowed":"Only letters and spaces are allowed","only_alphanumeric_allowed":"Only letters, numbers and spaces are allowed","only_alphanumeric_35_char_limit":"Only letters, numbers, and spaces are allowed, up to a maximum of 35 characters","only_numbers_allowed":"Only numbers and spaces are allowed","info_message_form":"You can write up to 8 rows, 35 characters per line","greeting_card":"Gift Message","insert_message":"Insert your message","subtitle_greeting_card":"We will put in the box, without extra costs, an accompanying card","countries.AF":"Afghanistan","countries.AX":"Aland Islands","countries.AL":"Albania","countries.DZ":"Algeria","countries.AS":"American Samoa","countries.AD":"Andorra","countries.AO":"Angola","countries.AI":"Anguilla","countries.AQ":"Antarctica","countries.AG":"Antigua and Barbuda","countries.AR":"Argentina","countries.AM":"Armenia","countries.AW":"Aruba","countries.AU":"Australia","countries.AT":"Austria","countries.AZ":"Azerbaijan","countries.BS":"Bahamas","countries.BH":"Bahrain","countries.BD":"Bangladesh","countries.BB":"Barbados","countries.BY":"Belarus","countries.BE":"Belgium","countries.BZ":"Belize","countries.BJ"
17:"Benin","countries.BM":"Bermuda","countries.BT":"Bhutan","countries.BO":"Bolivia","countries.BQ":"Bonaire, Sint Eustatius and Saba","countries.BA":"Bosnia and Herzegovina","countries.BW":"Botswana","countries.BV":"Bouvet Island","countries.BR":"Brazil","countries.IO":"British Indian Ocean Territory","countries.BN":"Brunei","countries.BG":"Bulgaria","countries.BF":"Burkina Faso","countries.BI":"Burundi","countries.KH":"Cambodia","countries.CM":"Cameroon","countries.CA":"Canada","countries.CV":"Cape Verde","countries.KY":"Cayman Islands","countries.CF":"Central African Republic","countries.TD":"Chad","countries.CL":"Chile","countries.CN":"China","countries.CX":"Christmas Island","countries.CC":"Cocos (Keeling) Islands","countries.CO":"Colombia","countries.KM":"Comoros","countries.CG":"Congo","countries.CK":"Cook Islands","countries.CR":"Costa Rica","countries.HR":"Croatia","countries.CU":"Cuba","countries.CW":"Curaçao","countries.CY":"Cyprus","countries.CZ":"Czech Republic","countries.DK":"Denmark","countries.DJ":"Djibouti","countries.DM":"Dominica","countries.DO":"Dominican Republic","countries.TL":"East Timor","countries.TP":"East Timor","countries.EC":"Ecuador","countries.EG":"Egypt","countries.SV":"El Salvador","countries.GQ":"Equatorial Guinea","countries.ER":"Eritrea","countries.EE":"Estonia","countries.ET":"Ethiopia","countries.FK":"Falkland Islands","countries.FO":"Faroe Islands","countries.FJ":"Fiji Islands","countries.FI":"Finland","countries.FR":"France","countries.GF":"French Guiana","countries.PF":"French Polynesia","countries.TF":"French Southern territories","countries.GA":"Gabon","countries.GM":"Gambia","countries.GE":"Georgia","countries.DE":"Germany","countries.GH":"Ghana","countries.GI":"Gibraltar","countries.GR":"Greece","countries.GL":"Greenland","countries.GD":"Grenada","countries.GP":"Guadeloupe","countries.GU":"Guam","countries.GT":"Guatemala","countries.GG":"Guernsey and Alderney","countries.GN":"Guinea","countries.GW":"Guinea Bissau","countries.GY":"Guyana","countries.HT":"Haiti","countries.HM":"Heard Island and McDonald Islands","countries.VA":"Holy See (Vatican City State)","countries.HN":"Honduras","countries.HK":"Hong Kong","countries.HU":"Hungary","countries.IS":"Iceland","countries.IN":"India","countries.ID":"Indonesia","countries.IR":"Iran","countries.IQ":"Iraq","countries.IE":"Ireland","countries.IL":"Israel","countries.IT":"Italy","countries.CI":"Ivory Coast","countries.JM":"Jamaica","countries.JP":"Japan","countries.JE":"Jersey","countries.JO":"Jordan","countries.KZ":"Kazakhstan","countries.KE":"Kenya","countries.KI":"Kiribati","countries.XK":"Kosovo","countries.KW":"Kuwait","countries.KG":"Kyrgyzstan","countries.LA":"Laos","countries.LV":"Latvia","countries.LB":"Lebanon","countries.LS":"Lesotho","countries.LR":"Liberia","countries.LY":"Libyan Arab Jamahiriya","countries.LI":"Liechtenstein","countries.LT":"Lithuania","countries.LU":"Luxembourg","countries.MO":"Macao","countries.MK":"North Macedonia","countries.MG":"Madagascar","countries.MW":"Malawi","countries.MY":"Malaysia","countries.MV":"Maldives","countries.ML":"Mali","countries.MT":"Malta","countries.IM":"Man (Isle of)","countries.MH":"Marshall Islands","countries.MQ":"Martinique","countries.MR":"Mauritania","countries.MU":"Mauritius","countries.YT":"Mayotte","countries.MX":"Mexico","countries.FM":"Micronesia, Federated States of","countries.MD":"Moldova","countries.MC":"Monaco","countries.MN":"Mongolia","countries.ME":"Montenegro","countries.MS":"Montserrat","countries.MA":"Morocco","countries.MZ":"Mozambique","countries.MM":"Myanmar","countries.NA":"Namibia","countries.NR":"Nauru","countries.NP":"Nepal","countries.NL":"Netherlands","countries.AN":"Netherlands Antilles","countries.NC":"New Caledonia","countries.NZ":"New Zealand","countries.NI":"Nicaragua","countries.NE":"Niger","countries.NG":"Nigeria","countries.NU":"Niue","countries.NF":"Norfolk Island","countries.KP":"North Korea","countries.MP":"Northern Mariana Islands","countries.NO":"Norway","countries.OM":"Oman","countries.PK":"Pakistan","countries.PW":"Palau","countries.PS":"Palestine","countries.PA":"Panama","countries.PG":"Papua New Guinea","countries.PY":"Paraguay","countries.PE":"Peru","countries.PH":"Philippines","countries.PN":"Pitcairn","countries.PL":"Poland","countries.PT":"Portugal","countries.PR":"Puerto Rico","countries.QA":"Qatar","countries.RE":"Reunion","countries.RO":"Romania","countries.RU":"Russian Federation","countries.RW":"Rwanda","countries.SH":"Saint Helena","countries.KN":"Saint Kitts and Nevis","countries.LC":"Saint Lucia","countries.PM":"Saint Pierre and Miquelon","countries.VC":"Saint Vincent and the Grenadines","countries.BL":"Saint-Barthelemy","countries.MF":"Saint-Martin (French part)","countries.WS":"Samoa","countries.SM":"San Marino","countries.ST":"Sao Tome and Principe","countries.SA":"Saudi Arabia","countries.SN":"Senegal","countries.RS":"Serbia","countries.SC":"Seychelles","countries.SL":"Sierra Leone","countries.SG":"Singapore","countries.SX":"Sint Maarten (Dutch part)","countries.SK":"Slovakia","countries.SI":"Slovenia","countries.SB":"Solomon Islands","countries.SO":"Somalia","countries.ZA":"South Africa","countries.GS":"South Georgia and the South Sandwich Islands","countries.KR":"South Korea","countries.SS":"South Sudan","countries.ES":"Spain","countries.LK":"Sri Lanka","countries.SD":"Sudan","countries.SR":"Suriname","countries.SJ":"Svalbard and Jan Mayen","countries.SZ":"Swaziland","countries.SE":"Sweden","countries.CH":"Switzerland","countries.SY":"Syria","countries.TJ":"Tajikistan","countries.TZ":"Tanzania","countries.TH":"Thailand","countries.CD":"The Democratic Republic of Congo","countries.TG":"Togo","countries.TK":"Tokelau","countries.TO":"Tonga","countries.TT":"Trinidad and Tobago","countries.TN":"Tunisia","countries.TR":"Turkey","countries.TM":"Turkmenistan","countries.TC":"Turks and Caicos Islands","countries.TV":"Tuvalu","countries.TW":"Taiwan","countries.UG":"Uganda","countries.UA":"Ukraine","countries.AE":"United Arab Emirates","countries.GB":"United Kingdom","countries.US":"United States","countries.UM":"United States Minor Outlying Islands","countries.UY":"Uruguay","countries.UZ":"Uzbekistan","countries.VU":"Vanuatu","countries.VE":"Venezuela","countries.VN":"Vietnam","countries.VG":"Virgin Islands, British","countries.VI":"Virgin Islands, U.S.","countries.WF":"Wallis and Futuna","countries.EH":"Western Sahara","countries.YE":"Yemen","countries.YU":"Yugoslavia","countries.ZM":"Zambia","countries.ZW":"Zimbabwe","maximum_elements_added":"Up to #n #p can be added","single_product_basepath":"product","credit_assignment":"Credit Assignment","error_boundary_title":"An error has occurred!","error_boundary_subt
17itle":"We are working on it, please try again later.","404_title":"Ops!","404_subtitle":"We can\'t seem to find the page you\'re looking for.","404_back":"Back to Homepage","200_password":"Password successfully changed: please log in with the new password","200_personal_data":"Personal information updated successfully","switch_sdi":"You do not have the SDI code? ... Click and enter your PEC address","switch_pec":"You do not have the PEC address? ... Click and enter your SDI code","iban":"Iban","enter_valid_iban":"Enter a valid iban","address_two_b2b":"Chez","tips_address_two_b2b":"Eg: at Hotel Bellavita","pages":"pages","research_in_progress":"Search in progress...","no_results":"No results","search_product":"Product search...","account":"Profile","account_section_title_1":"Edit personal information","account_section_title_2":"Edit email.","account_section_title_3":"Edit password.","account_login_again_action":"(after modification, you will have to log in again)","brith_date":"Birth date","new_password":"New password","old_password":"Old password","error_old_password":"Invalid current password","passwords_not_match":"The two passwords do not match","addresses":"Addresses","update":"Update","billing":"Billing","shipping":"Shipping","modify_personal_data":"Edit, add and save your data and password in this section.","modify_addresses_detail":"Edit and save your delivery preferences in this section.","modify_billing_addresses":"Edit and save your company name, tax code, VAT number, and addresses here.","welcome":"Welcome","subtitle_shipping_address_section":"Complete your purchases more easily and quickly by saving your shipping addresses on this page.","subtitle_billing_address_section":"Enter your billing addresses on this page to complete your order more easily and quickly.","go_to_account":"Go to your profile","delete_address_confirm":"Confirm address deletion","delete_address_confirm_subtitle":"Are you sure you want to delete this address?","change_shipping_address":"Change shipping address","change_billing_address":"Change billing address","200_address":"Address saved successfully","section_account_back":"Back","ask_for_invoice":"I want to receive an invoice","save_shipping_address":"Save shipping address","save_billing_address":"Save billing information","delivery_to_this_address":"Deliver to this address","use_this_address":"Use this address","billing_addresses":"Billing addresses","shipping_addresses":"Shipping addresses","insert_shipping_address":"Enter a shipping address","insert_billing_address":"Enter a billing address","edit_shipping_address":"Edit shipping address","edit_billing_address":"Edit billing address","edit_address":"Edit address","delete_address":"Delete address","select_shipping_address":"Select shipping address","confirm":"Confirm","add_address":"Add a new address","add_address_shipping":"Add a new shipping address","add_address_billing":"Add new billing information","my_account":"My Account","personal_data":"Profile","enter_valid_vat":"Please enter a valid VAT number","enter_valid_fiscal_code":"Please enter a valid fiscal code","enter_valid_sdi":"Please enter a valid SDI code","forgot_password_label":"Forgot password","proceed":"Proceed","1.cart":"1. Cart","2.shipping_and_payment":"2. Shipping and Payment","3.confirm_order":"3. Order confirmed","complete_order_step":"Complete the order by registering, logging in if you are already registered or continuing as a guest","register_title_section":"Sign Up","register_subtitle_section":"Sign up to save your addresses and speed up your purchases.","login_title_section":"Log In","login_subtitle_section":"If you already have an account, log in and proceed with the purchase.","guest_title_section":"Continue as Guest","guest_subtitle_section":"Enter your email to receive order updates.","check_cart":"Some out of stock products has been removed/modified","payment_error":"We\'re unable to process your payment, please try another card or payment method.","couponOrGift.label":"Have a promo code?","couponOrGift.submit":"Apply","couponOrGift.placeholder.gift_card_or_coupon_code":"Gift card or coupon code","couponOrGift.placeholder.gift_card_code":"Gift card","couponOrGift.placeholder.coupon_code":"Coupon code","couponOrGift.error.gift_card_or_coupon_code":"Please enter a valid gift card or coupon","couponOrGift.error.gift_card_code":"Please enter a valid gift card","couponOrGift.error.coupon_code":"Please enter a valid coupon","my_orders":"My orders","ship_to_another_country":"Do you want to ship to another country?","confirm_change_country":"You are going to change the shipping country, are you sure?","back_change_country":"Back to previous country","continue_change_country":"Continue with the new country","transactionSecure":"All transactions are secure and encrypted.","contact":"Contact"}')},33099,(e,t,r)=>{t.exports=JSON.parse('{"it":"Italiano","en":"English","de":"Deutsch","fr":"French","es":"Español","change_market":"EnvÃo a","add_to_cart":"Añadir al carrito","you_might_also_like":"También te puede gustar","category_basepath":"CategorÃas","product_basepath":"productos","checkout":"Finalizar compra","unavailable_message":"Temporalmente no disponible","loading":"Cargando...","availability":"Disponibilidad","compareAt":"Precio anterior","remove":"Eliminar","num":"Cantidad total","cart":"Carrito","go_to_cart":"Ir al carrito","quantity":"Cantidad","amount":"Importe","discount":"Descuento","shipping_cost":"Costes de envÃo","free_shipping":"Gratis","fees_included":"tasas incl.","total":"Total","subtotal":"Subtotal","delivery_dates":"del #min al #max","delivery_date":"EnvÃo","choose_shipping_country":"Selecciona el paÃs de envÃo","choose_locale":"Selecciona el idioma","select":"Seleccionar","profile":"Perfil","logged_as":"¿Confirmas que quieres salir de tu cuenta?","login":"Iniciar sesión","register":"Registrarse","logout":"Salir","login_button":"¿Ya tienes una cuenta? Inicia sesión","register_button":"¿No tienes cuenta? RegÃstrate","ok":"Ok","email":"Correo electrónico","password":"Contraseña","invali
17d_credentials":"Correo y/o contraseña no válidos","send":"Enviar","cancel":"Cancelar","close":"Continuar la compra","add_more_products":"Añadir más productos","edit":"Editar","order_summary":"Resumen del pedido","step_payment":"Pago","step_error":"Ha ocurrido un error","step_success":"Tu pedido ha sido recibido","step_success_message":"Recibirás una confirmación del pedido por correo con los detalles y el enlace para seguir el progreso","payment_info_title":"Información de pago","payment_info_list":"El pago por parte del cliente se realizará a la entrega de la mercancÃa|Sólo será posible pagar en efectivo y directamente al mensajero|El mensajero no podrá dar cambio, por lo que te aconsejamos preparar el importe exacto de tu compra indicado en el total del pedido","change_method":"Cambiar método de pago","place_order":"Confirmar pedido","billing_address":"Dirección de facturación","shipping_address":"Dirección de envÃo","customer":"Cliente","company":"Razón social","address":"Dirección","address_two":"C/o","phone":"Teléfono","wire_transfer_note":"Pago en efectivo a la entrega","wire_transfers":"Contra reembolso","contrassegno_note":"Pago en efectivo a la entrega","contrassegno":"Contra reembolso","wire_transfer_payment":"Contra reembolso","braintree_payments":"Tarjeta de crédito / Paypal","field_required":"Este campo es obligatorio","required":"(obligatorio)","optional":"(opcional)","tips_address":"Ejemplo: calle Mayor 1","tips_company":"Ejemplo: Acme S.A.","tips_company_freelance":"Ejemplo: \'Acme de Juan Pérez\' (empresa individual) o \'Juan Pérez\' (profesional)","tips_company_onlus":"En la factura aparecerá como titular. Ejemplo: Acme S.A. o Acme Estudio Legal","tips_sdi":"Ejemplo: M5X4UG9","tips_phone":"Ejemplo: +34 123 456789","tips_fiscal_code_private":"Ejemplo: 12345678A","tips_fiscal_code_company":"Ejemplo: B12345678","tips_fiscal_code_onlus":"Ejemplo: G12345678","tips_fiscal_code_freelance":"Ejemplo: 12345678A o B12345678","tips_vat":"Ejemplo: ESB12345678","tips_address_two":"Ejemplo: c/o Estudio Pérez","tips_province":"Introduce región, estado o provincia","tips_pec":"Introduce el correo PEC habilitado para la facturación electrónica","enter_valid_email":"Introduce un correo válido","person_type":"Tipo de persona","first_name":"Nombre","last_name":"Apellido","city":"Ciudad","state_province":"Provincia","zip":"Código postal","fiscal_code":"Código Fiscal","vat":"NIF/CIF","sdi":"Código SDI","pec":"Correo PEC","person_private":"Soy un particular","person_legal":"Soy una ONG, Asociación u otro sujeto distinto de persona fÃsica","person_company":"Soy una Sociedad / Asociación de profesionales","person_professional":"Soy un Profesional o Empresa individual con NIF/CIF","authorize_payment":"Proceder con la compra","retry":"Reintentar","back":"Atrás","empty_order":"El pedido está vacÃo","cart_empty":"El carrito está vacÃo","order_placed_notice":"Tu código de pedido es","coupon":"Cupón","invalid_coupon_code":"Cupón no válido","ready_in_stock":"Entrega inmediata","delivery_times":"EnvÃo en #days dÃas laborables","until_items":"hasta #num","forgot_password":"Recuperar contraseña","forgot_disclaimer":"Recibirás las instrucciones para recuperar tu contraseña por correo","password_changed_message":"Contraseña actualizada con éxito.","change_password":"Cambiar contraseña","confirm_password":"Confirmar contraseña","passwords_must_match":"Las contraseñas deben coincidir","missing_parameters":"Error, faltan parámetros","password_min_chars":"La contraseña debe tener al menos #min caracteres","add_cart_success":"Producto añadido al carrito","add_cart_error":"Ha ocurrido un error, el producto no se añadió al carrito","update_cart":"Actualizar carrito","invalid_email":"Error, el correo utilizado no es válido","invalid_password":"Error, la contraseña no cumple con los criterios requeridos, mÃnimo 6 caracteres","email_already_registered":"Error, el correo ya está registrado","generic_error":"Ha ocurrido un error","country":"PaÃs","bt_validation_error":"Error de verificación, por favor utiliza un método de pago alternativo","cl_validation_error":"Introduce valores válidos para el pago","cl_place_order_error":"No es posible completar el pedido.","only_text_allowed":"Sólo se permiten letras y espacios","only_alphanumeric_allowed":"Sólo se permiten letras, números y espacios","only_alphanumeric_35_char_limit":"Sólo se permiten letras, números y espacios, hasta un máximo de 35 caracteres","only_numbers_allowed":"Sólo se permiten números y espacios","info_message_form":"Puedes introducir hasta 8 lÃneas, 35 caracteres por lÃnea","greeting_card":"Tarjeta de felicitación","insert_message":"Introduce tu mensaje","subtitle_greeting_card":"Incluiremos en el paquete, sin coste adicional, una tarjeta de acompañamiento","countries.AF":"Afganistán","countries.AX":"Islas Ã
land","countries.AL":"Albania","countries.DZ":"Argelia","countries.AS":"Samoa Americana","countries.AD":"Andorra","countries.AO":"Angola","countries.AI":"Anguila","countries.AQ":"Antártida","countries.AG":"Antigua y Barbuda","countries.AR":"Argentina","countries.AM":"Armenia","countries.AW":"Aruba","countries.AU":"Australia","countries.AT":"Austria","countries.AZ":"Azerbaiyán","countries.BS":"Bahamas","countries.BH":"Baréin","countries.BD":"Bangladés","countries.BB":"Barbados","countries.BY":"Bielorrusia","countries.BE":"Bélgica","countries.BZ":"Belice","countries.BJ"
17:"BenÃn","countries.BM":"Bermudas","countries.BT":"Bután","countries.BO":"Bolivia","countries.BQ":"Bonaire, San Eustaquio y Saba","countries.BA":"Bosnia y Herzegovina","countries.BW":"Botsuana","countries.BV":"Isla Bouvet","countries.BR":"Brasil","countries.IO":"Territorio Británico del Océano Ãndico","countries.BN":"Brunéi","countries.BG":"Bulgaria","countries.BF":"Burkina Faso","countries.BI":"Burundi","countries.KH":"Camboya","countries.CM":"Camerún","countries.CA":"Canadá","countries.CV":"Cabo Verde","countries.KY":"Islas Caimán","countries.CF":"República Centroafricana","countries.TD":"Chad","countries.CL":"Chile","countries.CN":"China","countries.CX":"Isla de Navidad","countries.CC":"Islas Cocos (Keeling)","countries.CO":"Colombia","countries.KM":"Comoras","countries.CG":"Congo","countries.CK":"Islas Cook","countries.CR":"Costa Rica","countries.HR":"Croacia","countries.CU":"Cuba","countries.CW":"Curazao","countries.CY":"Chipre","countries.CZ":"Chequia","countries.DK":"Dinamarca","countries.DJ":"Yibuti","countries.DM":"Dominica","countries.DO":"República Dominicana","countries.TL":"Timor Oriental","countries.TP":"Timor Oriental","countries.EC":"Ecuador","countries.EG":"Egipto","countries.SV":"El Salvador","countries.GQ":"Guinea Ecuatorial","countries.ER":"Eritrea","countries.EE":"Estonia","countries.ET":"EtiopÃa","countries.FK":"Islas Malvinas","countries.FO":"Islas Feroe","countries.FJ":"Islas Fiyi","countries.FI":"Finlandia","countries.FR":"Francia","countries.GF":"Guayana Francesa","countries.PF":"Polinesia Francesa","countries.TF":"Territorios Australes Franceses","countries.GA":"Gabón","countries.GM":"Gambia","countries.GE":"Georgia","countries.DE":"Alemania","countries.GH":"Ghana","countries.GI":"Gibraltar","countries.GR":"Grecia","countries.GL":"Groenlandia","countries.GD":"Granada","countries.GP":"Guadalupe","countries.GU":"Guam","countries.GT":"Guatemala","countries.GG":"Guernsey y Alderney","countries.GN":"Guinea","countries.GW":"Guinea-Bisáu","countries.GY":"Guyana","countries.HT":"HaitÃ","countries.HM":"Islas Heard y McDonald","countries.VA":"Santa Sede (Ciudad del Vaticano)","countries.HN":"Honduras","countries.HK":"Hong Kong","countries.HU":"HungrÃa","countries.IS":"Islandia","countries.IN":"India","countries.ID":"Indonesia","countries.IR":"Irán","countries.IQ":"Irak","countries.IE":"Irlanda","countries.IL":"Israel","countries.IT":"Italia","countries.CI":"Costa de Marfil","countries.JM":"Jamaica","countries.JP":"Japón","countries.JE":"Jersey","countries.JO":"Jordania","countries.KZ":"Kazajistán","countries.KE":"Kenia","countries.KI":"Kiribati","countries.XK":"Kosovo","countries.KW":"Kuwait","countries.KG":"Kirguistán","countries.LA":"Laos","countries.LV":"Letonia","countries.LB":"LÃbano","countries.LS":"Lesoto","countries.LR":"Liberia","countries.LY":"Libia","countries.LI":"Liechtenstein","countries.LT":"Lituania","countries.LU":"Luxemburgo","countries.MO":"Macao","countries.MK":"Macedonia del Norte","countries.MG":"Madagascar","countries.MW":"Malaui","countries.MY":"Malasia","countries.MV":"Maldivas","countries.ML":"MalÃ","countries.MT":"Malta","countries.IM":"Isla de Man","countries.MH":"Islas Marshall","countries.MQ":"Martinica","countries.MR":"Mauritania","countries.MU":"Mauricio","countries.YT":"Mayotte","countries.MX":"México","countries.FM":"Micronesia, Estados Federados de","countries.MD":"Moldavia","countries.MC":"Mónaco","countries.MN":"Mongolia","countries.ME":"Montenegro","countries.MS":"Montserrat","countries.MA":"Marruecos","countries.MZ":"Mozambique","countries.MM":"Myanmar","countries.NA":"Namibia","countries.NR":"Nauru","countries.NP":"Nepal","countries.NL":"PaÃses Bajos","countries.AN":"Antillas Neerlandesas","countries.NC":"Nueva Caledonia","countries.NZ":"Nueva Zelanda","countries.NI":"Nicaragua","countries.NE":"NÃger","countries.NG":"Nigeria","countries.NU":"Niue","countries.NF":"Isla Norfolk","countries.KP":"Corea del Norte","countries.MP":"Islas Marianas del Norte","countries.NO":"Noruega","countries.OM":"Omán","countries.PK":"Pakistán","countries.PW":"Palaos","countries.PS":"Palestina","countries.PA":"Panamá","countries.PG":"Papúa Nueva Guinea","countries.PY":"Paraguay","countries.PE":"Perú","countries.PH":"Filipinas","countries.PN":"Islas Pitcairn","countries.PL":"Polonia","countries.PT":"Portugal","countries.PR":"Puerto Rico","countries.QA":"Catar","countries.RE":"Reunión","countries.RO":"RumanÃa","countries.RU":"Rusia","countries.RW":"Ruanda","countries.SH":"Santa Elena","countries.KN":"San Cristóbal y Nieves","countries.LC":"Santa LucÃa","countries.PM":"San Pedro y Miquelón","countries.VC":"San Vicente y las Granadinas","countries.BL":"San Bartolomé","countries.MF":"San MartÃn (parte francesa)","countries.WS":"Samoa","countries.SM":"San Marino","countries.ST":"Santo Tomé y PrÃncipe","countries.SA":"Arabia Saudita","countries.SN":"Senegal","countries.RS":"Serbia","countries.SC":"Seychelles","countries.SL":"Sierra Leona","countries.SG":"Singapur","countries.SX":"Sint Maarten (parte neerlandesa)","countries.SK":"Eslovaquia","countries.SI":"Eslovenia","countries.SB":"Islas Salomón","countries.SO":"Somalia","countries.ZA":"Sudáfrica","countries.GS":"Islas Georgias del Sur y Sandwich del Sur","countries.KR":"Corea del Sur","countries.SS":"Sudán del Sur","countries.ES":"España","countries.LK":"Sri Lanka","countries.SD":"Sudán","countries.SR":"Surinam","countries.SJ":"Svalbard y Jan Mayen","countries.SZ":"Esuatini","countries.SE":"Suecia","countries.CH":"Suiza","countries.SY":"Siria","countries.TJ":"Tayikistán","countries.TZ":"Tanzania","countries.TH":"Tailandia","countries.CD":"República Democrática del Congo","countries.TG":"Togo","countries.TK":"Tokelau","countries.TO":"Tonga","countries.TT":"Trinidad y Tobago","countries.TN":"Túnez","countries.TR":"TurquÃa","countries.TM":"Turkmenistán","countries.TC":"Islas Turcas y Caicos","countries.TV":"Tuvalu","countries.TW":"Taiwán","countries.UG":"Uganda","countries.UA":"Ucrania","countries.AE":"Emiratos Ãrabes Unidos","countries.GB":"Reino Unido","countries.US":"Estados Unidos","countries.UM":"Islas Ultramarinas Menores de Estados Unidos","countries.UY":"Uruguay","countries.UZ":"Uzbekistán","countries.VU":"Vanuatu","countries.VE":"Venezuela","countries.VN":"Vietnam","countries.VG":"Islas VÃrgenes Británicas","countries.VI":"Islas VÃrgenes de los Estados Unidos","countries.WF":"Wallis y Futuna","countries.EH":"Sahara Occidental","countries.YE":"Yemen","countries.YU":"Yugoslavia","countries.ZM":"Zambia","countries.ZW":"Zimbabue","maximum_elements_added":"Es posible añadir hasta #n #p","single_product_basepath":"producto","credit_assignment":"Cesión de crédito","error_boundary_title":"¡Ha ocurrido un error!","error_boundary_subt
17itle":"Estamos trabajando en ello, por favor inténtalo más tarde","404_title":"¡Ups!","404_subtitle":"No encontramos la página que buscas.","404_back":"Volver a la página principal","200_password":"Contraseña cambiada con éxito: Por favor inicia sesión con la nueva contraseña","200_personal_data":"Perfil modificado con éxito","switch_sdi":"¿No tienes el código destinatario? ... Haz clic e introduce tu PEC","switch_pec":"¿No tienes PEC? ... Haz clic e introduce tu código destinatario","iban":"IBAN","enter_valid_iban":"Introduce un IBAN válido","enter_valid_sdi":"Introduce un código SDI válido","enter_valid_vat":"Introduce un NIF/CIF válido","enter_valid_fiscal_code":"Introduce un código fiscal válido","address_two_b2b":"C/o / Rótulo","tips_address_two_b2b":"Ejemplo: c/o Hotel Bellavita","pages":"páginas","research_in_progress":"Búsqueda en curso...","no_results":"Sin resultados","search_product":"Buscar producto...","account":"Perfil","account_section_title_1":"Modificar datos personales","account_section_title_2":"Modificar correo","account_section_title_3":"Cambiar contraseña","account_login_again_action":"(después de la modificación tendrás que iniciar sesión de nuevo)","brith_date":"Fecha de nacimiento","new_password":"Nueva contraseña","old_password":"Contraseña actual","error_old_password":"Contraseña actual no válida","passwords_not_match":"Las dos contraseñas no coinciden","addresses":"Direcciones","update":"Actualizar","billing":"Facturación","shipping":"EnvÃo","insert_shipping_address":"Introduce una dirección de envÃo","insert_billing_address":"Introduce una dirección de facturación","edit_shipping_address":"Editar dirección de envÃo","edit_billing_address":"Editar dirección de facturación","edit_address":"Editar dirección","delete_address":"Eliminar dirección","select_shipping_address":"Selecciona dirección de envÃo","confirm":"Confirmar","add_address":"Añadir nueva dirección","add_address_shipping":"Añadir nueva dirección de envÃo","add_address_billing":"Añadir nuevos datos de facturación","my_account":"Mi cuenta","personal_data":"Perfil","modify_personal_data":"Modifica, añade y guarda tus datos y tu contraseña en esta sección.","shipping_addresses":"Direcciones de envÃo","modify_addresses_detail":"Modifica y guarda en esta sección las preferencias de entrega.","billing_addresses":"Datos de facturación","modify_billing_addresses":"Modifica y guarda aquà razón social, NIF/CIF y direcciones.","200_address":"Dirección guardada con éxito","section_account_back":"Atrás","ask_for_invoice":"Quiero recibir factura fiscal","save_shipping_address":"Guardar dirección de envÃo","save_billing_address":"Guardar datos de facturación","delivery_to_this_address":"Entrega en esta dirección","use_this_address":"Usar esta dirección","subtitle_shipping_address_section":"Completa tus compras de forma más fácil y rápida guardando en esta página tus direcciones de envÃo.","subtitle_billing_address_section":"Introduce en esta página tus direcciones de facturación para completar el pedido de forma más fácil y rápida.","welcome":"Bienvenido","go_to_account":"Ir a tu perfil","delete_address_confirm":"Confirmar eliminación de dirección","delete_address_confirm_subtitle":"¿Confirmas que deseas eliminar esta dirección?","change_shipping_address":"Cambiar dirección de envÃo","change_billing_address":"Cambiar datos de facturación","forgot_password_label":"Contraseña olvidada","proceed":"Proceder","1.cart":"1. Carrito","2.shipping_and_payment":"2. EnvÃo y pago","3.confirm_order":"3. Pedido confirmado","complete_order_step":"Completa el pedido registrándote, iniciando sesión si ya estás registrado o continuando como invitado","register_title_section":"RegÃstrate","register_subtitle_section":"RegÃstrate para guardar tus direcciones y agilizar las compras.","login_title_section":"Iniciar sesión","login_subtitle_section":"Si ya tienes una cuenta inicia sesión y procede con la compra","guest_title_section":"Continuar como invitado","guest_subtitle_section":"Introduce el correo para recibir actualizaciones sobre el pedido","check_cart":"Hemos eliminado/modificado las cantidades de los productos no dis
17ponibles en el carrito","payment_error":"Lo sentimos, no es posible procesar este pago, por favor inténtalo con otra tarjeta o método de pago.","couponOrGift.label":"¿Tienes un código para usar?","couponOrGift.submit":"Aplicar","couponOrGift.placeholder.gift_card_or_coupon_code":"Código de descuento o tarjeta regalo","couponOrGift.placeholder.gift_card_code":"Código de tarjeta regalo","couponOrGift.placeholder.coupon_code":"Código de cupón","couponOrGift.error.gift_card_or_coupon_code":"No corresponde a ningún código de descuento o tarjeta regalo activo","couponOrGift.error.gift_card_code":"No corresponde a una tarjeta regalo activa","couponOrGift.error.coupon_code":"No corresponde a un código de descuento activo","my_orders":"Mis pedidos","ship_to_another_country":"¿Quieres enviar a otro paÃs?","confirm_change_country":"Estás a punto de cambiar el paÃs de envÃo, ¿estás seguro?","back_change_country":"Volver al paÃs anterior","continue_change_country":"Continuar con el nuevo paÃs","transactionSecure":"Todas las transacciones son seguras y encriptadas.","contact":"Contacto"}')},22265,(e,t,r)=>{t.exports=JSON.parse('{"it":"Italiano","en":"English","de":"Deutsch","fr":"French","change_market":"Livraison en","add_to_cart":"Ajouter au panier","you_might_also_like":"Vous pourriez aussi aimer","category_basepath":"Catégories","product_basepath":"produits","checkout":"Complétez votre commande","unavailable_message":"Produit non disponible","loading":"Chargement en cours...","availability":"Disponibilité","compareAt":"Prix Précédent","remove":"Supprimer","num":"Total quantité","cart":"Panier","go_to_cart":"Aller au panier","quantity":"Quantité","amount":"Prix","discount":"Réduction","shipping_cost":"Frais d\'Expédition","free_shipping":"Libre","fees_included":"droits d\'accises inclus","total":"Total","subtotal":"Subtotal","delivery_dates":"du #min au #max","delivery_date":"Livraison","choose_shipping_country":"Sélectionner le pays de livraison","choose_locale":"Sélectionner la langue","select":"Sélectionner","profile":"Profil","logged_as":"Confirmez-vous votre volonté de vous déconnecter de votre compte?","login":"Accéder","register":"Créer un compte","logout":"Se déconnecter","login_button":"Vous avez un compte? Connectez-vous","register_button":"Créer un compte","ok":"Ok","email":"E-mail","password":"Mot de passe","invalid_credentials":"E-mail et/ou mot de passe invalide","send":"Envoyer","cancel":"Annuler","close":"Poursuivre l\'achat","add_more_products":"Ajouter d\'autres produits","edit":"Modifier","order_summary":"Récapitulatif Commande","step_payment":"Paiement","step_error":"Une erreur est survenue","step_success":"Nous avons reçu votre commande","step_success_message":"Vous allez recevoir une confirmation par mail avec les détails de votre commande et un lien pour suivre son état d\'avancement","payment_info_title":"Informations sur le paiement","payment_info_list":"Le paiement par le client sera effectué à la livraison des marchandises|Le paiement ne pourra se faire qu\'en espèces et directement au coursier|Le coursier ne pourra pas vous rendre la monnaie, nous vous conseillons de préparer le montant exact correspondant au total de la commande","change_method":"Modifiez votre mode de paiement","place_order":"Confirmez votre commande","billing_address":"Adresse de facturation","shipping_address":"Adresse de livraison","customer":"Client","company":"Entreprise","address":"Adresse","address_two":"Adresse 2","phone":"Tél","wire_transfer_note":"Paiement en espèce à la livraison","wire_transfers":"Contre-remboursement","contrassegno_note":"Paiement en espèce à la livraison","contrassegno":"Contre-remboursement","wire_transfer_payment":"Contre-remboursement","braintree_payments":"CB / Paypal","field_required":"Champ obligatoire","required":"(obligatoire)","optional":"(facultatif)","tips_address":"Exemple: via Paris 1","tips_company":"Exemple: Acme sarl","tips_company_freelance":"Exemple: \'Acme de Marco Rossi\' (entreprise individuelle) ou \'Marco Rossi\' (professionnel)","tips_company_onlus":"Pour facture. Exemple: Acme sarl or Acme studio juridique","tips_sdi":"Exemple: M5X4UG9","tips_phone":"Exemple: +33 123 456789","t
17ips_fiscal_code_private":"Exemple: MRORSS78B19D234J","tips_fiscal_code_company":"Exemple: 01572538910","tips_fiscal_code_onlus":"Exemple: 92345678901","tips_fiscal_code_freelance":"Exemple: 999999909 ou 01562538910","tips_vat":"Exemple: 999999909 ou 01562538910","tips_address_two":"Exemple: Acme sarl","tips_province":"Veuillez sélectionner la région/département","tips_pec":"Insérez votre adresse e-mail PEC, où vous recevrez la facture","enter_valid_email":"Saisir une adresse mail valide","person_type":"Typologie personne","first_name":"Prénom","last_name":"Nom","city":"Ville","state_province":"Provincia","zip":"Code Postal","fiscal_code":"Code Fiscal","vat":"N° de TVA","sdi":"SDI code","pec":"Adresse email Pec","person_private":"Je suis un particulier","person_legal":"Je suis une Association ou un sujet autre qu\'une personne physique","person_company":"Je suis une Société / Association de professionnels","person_professional":"Je suis un Entrepreneur ou une Entreprise individuelle avec n° de TVA","authorize_payment":"Confirmer le paiement","retry":"Réessayer","back":"Retour","empty_order":"La commande est vide","cart_empty":"Le panier est vide","order_placed_notice":"Voici le code de votre commande","coupon":"Coupon","invalid_coupon_code":"Coupon non valide","ready_in_stock":"Disponible en stock","delivery_times":"Livré sous #days jours","until_items":"jusqu\'à #num","forgot_password":"Récupérer mon mot de passe","forgot_disclaimer":"Nous allons vous envoyer un mail pour changer votre mot de passe","password_changed_message":"Votre mot de passe a été validé.","change_password":"Modifier le mot de passe","confirm_password":"Confirmer le mot de passe","passwords_must_match":"Les mots de passe doivent être identiques","missing_parameters":"Erreur, champs obligatoires non renseignés","password_min_chars":"Le mot de passe doit contenir au moins #min caractères","add_cart_success":"Article ajouté au paner","add_cart_error":"Une erreur s\'est produite, l\'article n\'a pas été ajouté au panier","update_cart":"Mettre à jour le panier","invalid_email":"Erreur, l\'adresse mail n\'est pas valide","invalid_password":"Erreur, veuillez saisir un mot de passe d\'au moins 6 caractères","email_already_registered":"Erreur, cette adresse mail est déjà utilisée","generic_error":"Une erreur s\'est produite","country":"Pays","bt_validation_error":"Vérification impossible, merci d\'utiliser un autre mode de paiement","cl_validation_error":"Veuillez saisir des coordonnées de paiement valides","cl_place_order_error":"L\'achat ne peut pas être finalisé.","only_text_allowed":"Lettres et espaces uniquement","only_alphanumeric_allowed":"Lettres, chiffres et espaces uniquement","only_alphanumeric_35_char_limit":"Seules les lettres, les chiffres et les espaces sont autorisés, jusqu\'à un maximum de 35 caractères","only_numbers_allowed":"Chiffres et espaces uniquement","info_message_form":"Vous pouvez écrire jusqu\'à 8 lignes, 35 caractères par ligne","greeting_card":"Carte de vÅux","insert_message":"Insérez votre message ici","subtitle_greeting_card":"Nous allons ajouter gratuitement un mot d\'accompagnement à votre colis","countries.AF":"Afghanistan","countries.AX":"Aland Islands","countries.AL":"Albanie","countries.DZ":"Algérie","countries.AS":"Samoa américaines","countries.AD":"Andorre","countries.AO":"Angola","countries.AI":"Anguilla","countries.AQ":"Antarctique","countries.AG":"Antigua-et-Barbuda","countries.AR":"Argentine","countries.AM":"Arménie","countries.AW":"Aruba","countries.AU":"Australie","countries.AT":"Autriche","countries.AZ":"Azerbaïdjan","countries.BS":"Bahamas","countries.BH":"Bahreïn","countries.BD":"Bangladesh","countries.BB":"Barbade","countries.BY":"Belarus","countries.BE":"Belgique","countries.BZ":"Belize","countries.BJ"
17:"Bénin","countries.BM":"Bermudes","countries.BT":"Bhoutan","countries.BO":"Bolivie","countries.BQ":"Bonaire, Sint Eustatius and Saba","countries.BA":"Bosnie-Herzégovine","countries.BW":"Botswana","countries.BV":"Ãle Bouvet","countries.BR":"Brésil","countries.IO":"Territoire britannique de l\'océan Indien","countries.BN":"Brunei","countries.BG":"Bulgarie","countries.BF":"Burkina Faso","countries.BI":"Burundi","countries.KH":"Cambodge","countries.CM":"Cameroun","countries.CA":"Canada","countries.CV":"Cap-Vert","countries.KY":"Ãles Caïmans","countries.CF":"République centrafricaine","countries.TD":"Tchad","countries.CL":"Chili","countries.CN":"Chine","countries.CX":"Christmas Island","countries.CC":"Ãles Cocos (Keeling)","countries.CO":"Colombie","countries.KM":"Comores","countries.CG":"Congo","countries.CK":"Ãles Cook","countries.CR":"Costa Rica","countries.HR":"Croatie","countries.CU":"Cuba","countries.CW":"Curaçao","countries.CY":"Chypre","countries.CZ":"République tchèque","countries.DK":"Danemark","countries.DJ":"Djibouti","countries.DM":"Dominique","countries.DO":"République dominicaine","countries.TL":"East Timor","countries.TP":"Timor oriental","countries.EC":"Ãquateur","countries.EG":"Ãgypte","countries.SV":"El Salvador","countries.GQ":"Guinée équatoriale","countries.ER":"Ãrythrée","countries.EE":"Estonie","countries.ET":"Ãthiopie","countries.FK":"Falkland (îles)","countries.FO":"Ãles Féroé","countries.FJ":"Ãles Fidji","countries.FI":"Finlande","countries.FR":"France","countries.GF":"Guyane française","countries.PF":"Polynésie française","countries.TF":"Territoires français du Sud","countries.GA":"Gabon","countries.GM":"Gambie","countries.GE":"Géorgie","countries.DE":"Allemagne","countries.GH":"Ghana","countries.GI":"Gibraltar","countries.GR":"Grèce","countries.GL":"Groenland","countries.GD":"Grenade","countries.GP":"Guadeloupe","countries.GU":"Guam","countries.GT":"Guatemala","countries.GG":"Guernsey and Alderney","countries.GN":"Guinée","countries.GW":"Guinée Bissau","countries.GY":"Guyane","countries.HT":"Haïti","countries.HM":"île Heard et îles McDonald","countries.VA":"Saint-Siège (Ãtat de la Cité du Vatican)","countries.HN":"Honduras","countries.HK":"Hong Kong","countries.HU":"Hongrie","countries.IS":"Islande","countries.IN":"Inde","countries.ID":"Indonésie","countries.IR":"Iran","countries.IQ":"Irak","countries.IE":"Irlande","countries.IL":"Israël","countries.IT":"Italie","countries.CI":"Côte d\'Ivoire","countries.JM":"Jamaïque","countries.JP":"Japon","countries.JE":"Jersey","countries.JO":"Jordanie","countries.KZ":"Kazakhstan","countries.KE":"Kenya","countries.KI":"Kiribati","countries.XK":"Kosovo","countries.KW":"Koweït","countries.KG":"Kirghizistan","countries.LA":"Laos","countries.LV":"Lettonie","countries.LB":"Liban","countries.LS":"Lesotho","countries.LR":"Liberia","countries.LY":"Jamahiriya arabe libyenne","countries.LI":"Liechtenstein","countries.LT":"Lituanie","countries.LU":"Luxembourg","countries.MO":"Macao","countries.MK":"Macédoine du Nord","countries.MG":"Madagascar","countries.MW":"Malawi","countries.MY":"Malaisie","countries.MV":"Maldives","countries.ML":"Mali","countries.MT":"Malte","countries.IM":"Man (Isle of)","countries.MH":"Ãles Marshall","countries.MQ":"Martinique","countries.MR":"Mauritanie","countries.MU":"Maurice","countries.YT":"Mayotte","countries.MX":"Mexique","countries.FM":"Micronésie, Ãtats fédérés de","countries.MD":"Moldavie","countries.MC":"Monaco","countries.MN":"Mongolie","countries.ME":"Montenegro","countries.MS":"Montserrat","countries.MA":"Maroc","countries.MZ":"Mozambique","countries.MM":"Myanmar","countries.NA":"Namibie","countries.NR":"Nauru","countries.NP":"Népal","countries.NL":"Pays-Bas","countries.AN":"Antilles néerlandaises","countries.NC":"Nouvelle-Calédonie","countries.NZ":"Nouvelle-Zélande","countries.NI":"Nicaragua","countries.NE":"Niger","countries.NG":"Nigéria","countries.NU":"Niue","countries.NF":"Ãle Norfolk","countries.KP":"Corée du Nord","countries.MP":"Ãles Mariannes du Nord","countries.NO":"Norvège","countries.OM":"Oman","countries.PK":"Pakistan","countries.PW":"Palau","countries.PS":"Palestine","countries.PA":"Panama","countries.PG":"Papouasie-Nouvelle-Guinée","countries.PY":"Paraguay","countries.PE":"Pérou","countries.PH":"Philippines","countries.PN":"Pitcairn","countries.PL":"Pologne","countries.PT":"Portugal","countries.PR":"Porto Rico","countries.QA":"Qatar","countries.RE":"Réunion","countries.RO":"Roumanie","countries.RU":"Fédération de Russie","countries.RW":"Rwanda","countries.SH":"Sainte-Hélène","countries.KN":"Saint-Kitts-et-Nevis","countries.LC":"Sainte-Lucie","countries.PM":"Saint Pierre et Miquelon","countries.VC":"Saint-Vincent-et-les-Grenadines","countries.BL":"Saint-Barthelemy","countries.MF":"Saint-Martin (French part)","countries.WS":"Samoa","countries.SM":"Saint-Marin","countries.ST":"Sao Tomé-et-Principe","countries.SA":"Arabie Saoudite","countries.SN":"Sénégal","countries.RS":"Serbia","countries.SC":"Seychelles","countries.SL":"Sierra Leone","countries.SG":"Singapour","countries.SX":"Sint Maarten (Dutch part)","countries.SK":"Slovaquie","countries.SI":"Slovénie","countries.SB":"Ãles Salomon","countries.SO":"Somalie","countries.ZA":"Afrique du Sud","countries.GS":"Géorgie du Sud et les îles Sandwich du Sud","countries.KR":"Corée du Sud","countries.SS":"Sud-Soudan","countries.ES":"Espagne","countries.LK":"Sri Lanka","countries.SD":"Soudan","countries.SR":"Suriname","countries.SJ":"Svalbard et Jan Mayen","countries.SZ":"Swaziland","countries.SE":"Suède","countries.CH":"Suisse","countries.SY":"Syrie","countries.TJ":"Tadjikistan","countries.TZ":"Tanzanie","countries.TH":"Thaïlande","countries.CD":"République démocratique du Congo","countries.TG":"Togo","countries.TK":"Tokelau","countries.TO":"Tonga","countries.TT":"Trinit
17é-et-Tobago","countries.TN":"Tunisie","countries.TR":"Turquie","countries.TM":"Turkménistan","countries.TC":"Ãles Turks et Caicos","countries.TV":"Tuvalu","countries.TW":"Taiwan","countries.UG":"Ouganda","countries.UA":"Ukraine","countries.AE":"Ãmirats arabes unis","countries.GB":"Royaume-Uni","countries.US":"Ãtats-Unis","countries.UM":"Ãles mineures éloignées des Ãtats-Unis","countries.UY":"Uruguay","countries.UZ":"Ouzbékistan","countries.VU":"Vanuatu","countries.VE":"Venezuela","countries.VN":"Vietnam","countries.VG":"Ãles Vierges britanniques","countries.VI":"Vierges américaines (îles)","countries.WF":"Wallis et Futuna","countries.EH":"Sahara occidental","countries.YE":"Yémen","countries.YU":"Yougoslavie","countries.ZM":"Zambie","countries.ZW":"Zimbabwe","maximum_elements_added":"Jusqu\'à #n #p peuvent être ajoutés","single_product_basepath":"produit","credit_assignment":"Affectation de crédit","error_boundary_title":"Une erreur est survenue!","error_boundary_subtitle":"Nous y travaillons, veuillez réessayer plus tard","404_title":"Oups!","404_subtitle":"La page que vous recherchez semble introuvable.","404_back":"Retour à la page d\'accueil","200_password":"Mot de passe modifié avec succès: veuillez vous connecter avec le nouveau mot de passe","200_personal_data":"Informations personnelles mises à jour avec succès","switch_sdi":"Vous ne disposez pas du code SDI? ... Cliquez et entrez votre adresse PEC","switch_pec":"Vous n\'avez pas l\'adresse PEC? ... Cliquez et entrez votre code SDI","iban":"Iban","enter_valid_iban":"Entrez un IBAN valide","address_two_b2b":"Street Address 2","tips_address_two_b2b":"Ex: at Hotel Bellavita","pages":"pages","research_in_progress":"Recherche en cours....","no_results":"Aucun résultat","search_product":"Recherche de produit...","account":"Profil","account_section_title_1":"Modifier les informations personnelles","account_section_title_2":"Modifier l\'email.","account_section_title_3":"Modifier le mot de passe.","account_login_again_action":"(après modification, vous devrez vous reconnecter)","brith_date":"Date de naissance","new_password":"Nouveau mot de passe","old_password":"Ancien mot de passe","error_old_password":"Mot de passe actuel invalide","passwords_not_match":"Les deux mots de passe ne correspondent pas","addresses":"Adresses","update":"Mettre à jour","billing":"Facturation","shipping":"Expédition","modify_personal_data":"Modifiez, ajoutez et enregistrez vos données et votre mot de passe dans cette section.","modify_addresses_detail":"Modifiez et enregistrez vos préférences de livraison dans cette section.","modify_billing_addresses":"Modifiez et enregistrez votre raison sociale, votre code fiscal, votre numéro de TVA et vos adresses ici.","welcome":"Bienvenue","subtitle_shipping_address_section":"Complétez vos achats plus facilement et rapidement en enregistrant vos adresses de livraison sur cette page.","subtitle_billing_address_section":"Entrez vos adresses de facturation sur cette page pour compléter votre commande plus facilement et rapidement.","go_to_account":"Aller à votre profil","delete_address_confirm":"Confirmer la suppression de l\'adresse","delete_address_confirm_subtitle":"Ãtes-vous sûr de vouloir supprimer cette adresse ?","change_shipping_address":"Changer l\'adresse de livraison","change_billing_address":"Changer l\'adresse de facturation","200_address":"Adresse enregistrée avec succès","section_account_back":"Retour","ask_for_invoice":"Je souhaite recevoir une facture","save_shipping_address":"Enregistrer l\'adresse de livraison","save_billing_address":"Enregistrer les informations de facturation","delivery_to_this_address":"Livrer à cette adresse","use_this_address":"Utiliser cette adresse","billing_addresses":"Adresses de facturation","shipping_addresses":"Adresses de livraison","insert_shipping_address":"Saisir une adresse de livraison","insert_billing_address":"Saisir une adresse de facturation","edit_shipping_address":"Modifier l\'adresse de livraison","edit_billing_address":"Modifier l\'adresse de facturation","edit_address":"Modifier l\'adresse","delete_address":"Supprimer l\'adresse","select_shipping_address":"Sélectionner une adresse de livraison","confirm":"Confirmer","add_address":"Ajouter une nouvelle adresse","add_address_shipping":"Ajouter une nouvelle adresse de livraison","add_address_billing":"Ajouter de nouvelles informations de facturation","my_account":"Mon compte","personal_data":"Profil","enter_valid_vat":"Veuillez saisir un numéro de TVA valide","enter_valid_fiscal_code":"Veuillez saisir un code fiscal valide","enter_valid_sdi":"Veuillez saisir un code SDI valide","forgot_password_label":"Mot de passe oublié","proceed":"Continuer","1.cart":"1. Panier","2.shipping_and_payment":"2. Livraison et paiement","3.confirm_order":"3. Commande confirmée","complete_order_step":"Complétez la commande en vous inscrivant, en vous connectant si vous êtes déjà inscrit ou en continuant en tant qu\'invité","register_title_section":"Inscrivez-vous","register_subtitle_section":"Inscrivez-vous pour enregistrer vos adresses et accélérer vos achats.","login_title_section":"Se connecter","login_subtitle_section":"Si vous avez déjà un compte, connectez-vous et procédez à l\'achat.","guest_title_section":" Continuer en tant qu\'invité","guest_subtitle_section":"Entrez votre adresse e-mail pour recevoir les mises à jour de la commande.","check_cart":"Les articles non disponibles ont été retirés ou modifiés du panier.","payment_error":"Nous ne sommes pas en mesure de traiter votre paiement. Veuillez essayer une autre carte ou un autre mode de paiement.","couponOrGift.label":"Avez-vous un code à utiliser?","couponOrGift.submit":"Appliquer","couponOrGift.placeholder.gift_card_or_coupon_code":"Code de carte cadeau ou coupon","couponOrGift.placeholder.gift_card_code":"Code de carte cadeau","couponOrGift.placeholder.coupon_code":"Code de coupon","couponOrGift.error.gift_card_or_coupon_code":"Ne correspond à aucune carte cadeau ou coupon actif","couponOrGift.error.gift_card_code":"Ne correspond à aucune carte cadeau active","couponOrGift.error.coupon_code":"Ne correspond à aucun coupon actif","my_orders":"Mes achats","ship_to_another_country":"Souhaitez-vous expédier votre commande dans un autre pays?","confirm_change_country":"Vous êtes sur le point de changer le pays d\'expédition, êtes-vous sûr?","back_change_country":"Retour au pays précédent","continue_change_country":"Continuer avec le nouveau pays","transactionSecure":"Toutes les transactions sont sécurisées et cryptées.","contact":"Contact"}')},73150,(e,t,r)=>{t.exports=JSON.parse('{"it":"Italiano","en":"English","de":"Deutsch","fr":"French","change_market":"Spedizione in","add_to_cart":"Aggiungi al carrello","you_might_also_like":"Potrebbe piacerti","category_basepath":"Categorie","product_basepath":"prodotti","checkout":"Completa l\'acquisto","unavailable_message":"Momentaneamente non disponibile","loading":"Caricamento...","availability":"Disponibilità ","compareAt":"Prezzo Precedente","remove":"Rimuovi","num":"Totale quantità ","cart":"Carrello","go_to_cart":"Vai al carrello","quantity":"Quantità ","amount":"Prezzo","discount":"Sconto","shipping_cost":"Costi di Spedizione","free_shipping":"Gratuiti","fees_included":"accise incl.","total":"Totale","subtotal":"Totale parziale","delivery_dates":"dal #min al #max","delivery_date":"Spedizione ","choose_shipping_country":"Seleziona il paese di spedizione","choose_locale":"Seleziona la lingua","select":"Seleziona","profile":"Profilo","logged_as":"Confermi di voler uscire dal tuo account?","login":"Accedi","register":"Registrati","logout":"Esci","login_button":"Hai già un account? Accedi","register_button":"Non hai un account? Registrati","ok":"Ok","email":"Email","password":"Password","invali
17d_credentials":"Email e/o password non valide","send":"Invia","cancel":"Annulla","close":"Continua l\'acquisto","add_more_products":"Aggiungi altri prodotti","edit":"Modifica","order_summary":"Riepilogo Ordine","step_payment":"Pagamento","step_error":"Si è verificato un errore","step_success":"Il tuo ordine è stato ricevuto","step_success_message":"Riceverai una conferma dell\'ordine via mail con i dettagli del tuo ordine ed il link per seguirne i progressi","payment_info_title":"Informazioni sul pagamento","payment_info_list":"Il pagamento da parte del cliente avverrà alla consegna della merce|Sarà possibile pagare solamente in contanti e direttamente al corriere|Il corriere non potrà dare alcun resto, quindi ti consigliamo di preparare l\'importo esatto dei tuoi acquisti che trovi nel totale dell\'ordine","change_method":"Cambia metodo di pagamento","place_order":"Conferma l\'ordine","billing_address":"Indirizzo di fatturazione","shipping_address":"Indirizzo di spedizione","customer":"Cliente","company":"Ragione sociale","address":"Indirizzo","address_two":"Presso","phone":"Telefono","wire_transfer_note":"Pagamento in contanti alla consegna della merce","wire_transfers":"Contrassegno","contrassegno_note":"Pagamento in contanti alla consegna della merce","contrassegno":"Contrassegno","wire_transfer_payment":"Contrassegno","braintree_payments":"Carta di credito / Paypal","field_required":"Questo campo è obbligatorio","required":"(obbligatorio)","optional":"(facoltativo)","tips_address":"Esempio: via Chiossetto 1","tips_company":"Esempio: Acme Spa","tips_company_freelance":"Esempio: \'Acme di Marco Rossi\' (ditta individuale) o \'Marco Rossi\' (professionista)","tips_company_onlus":"In fattura comparirà come Intestatario. Esempio: Acme Spa o Acme Studio Legale","tips_sdi":"Esempio: M5X4UG9","tips_phone":"Esempio: +39 123 456789","tips_fiscal_code_private":"Esempio: MRORSS78B19D234J","tips_fiscal_code_company":"Esempio: 01572538910","tips_fiscal_code_onlus":"Esempio: 92345678901","tips_fiscal_code_freelance":"Esempio: MRORSS78B19D234J oppure 01562538910","tips_vat":"Esempio: 01572538910","tips_address_two":"Esempio: presso Studio Associato Rossi","tips_province":"Inserisci regione, stato o provincia","tips_pec":"Inserisci l\'indirizzo email PEC abilitato alla ricezione della fattura elettronica","enter_valid_email":"Inserire una email valida","person_type":"Tipologia persona","first_name":"Nome","last_name":"Cognome","city":"Città ","state_province":"Provincia","zip":"CAP","fiscal_code":"Codice Fiscale","vat":"P.Iva","sdi":"Codice SDI","pec":"Pec email","person_private":"Sono un privato","person_legal":"Sono una Onlus, Associazioni o soggetto diverso da persona fisica","person_company":"Sono una Società / Associazione tra professionisti","person_professional":"Sono un Professionista o Ditta individuale con Partita IVA","authorize_payment":"Procedi all\'acquisto","retry":"Riprova","back":"Indietro","empty_order":"L\'ordine è vuoto","cart_empty":"Il carrello è vuoto","order_placed_notice":"Il tuo codice ordine è","coupon":"Coupon","invalid_coupon_code":"Coupon non valido","ready_in_stock":"Pronta Consegna","delivery_times":"Spedito entro #days giorni lavorativi","until_items":"fino a #num","forgot_password":"Recupero password","forgot_disclaimer":"Riceverai le istruzioni per il recupero password tramite email","password_changed_message":"Password aggiornata con successo.","change_password":"Modifica password","confirm_password":"Conferma password","passwords_must_match":"Le password devono coincidere","missing_parameters":"Errore, parametri mancanti","password_min_chars":"La password deve essere di almeno #min caratteri","add_cart_success":"Prodotto aggiunto al carrello","add_cart_error":"Si è verificato un errore, il prodotto non è stato aggiunto al carello","update_cart":"Aggiorna carrello","invalid_email":"Errore, la mail utilizzata non è valida","invalid_password":"Errore, la password utilizzata non non soddisfa i criteri richiesti, minimo 6 caratteri","email_already_registered":"Errore, la mail risulta già registrata","generic_error":"Si è verificato un errore","country":"Paese","bt_validation_error":"Errore di verifica, si prega di utilizzare un metodo alternativo di pagamento","cl_validation_error":"Inserire de
17i valori validi per il pagamento","cl_place_order_error":"Impossibile completare l\'ordine.","only_text_allowed":"Sono permessi solo lettere e spazi","only_alphanumeric_allowed":"Sono permessi solo lettere, numeri e spazi","only_alphanumeric_35_char_limit":"Sono permessi solo lettere, numeri e spazi, fino a un massimo di 35 caratteri","only_numbers_allowed":"Sono permessi solo numeri e spazi","info_message_form":"Puoi inserire fino a 8 righe, 35 caratteri per riga","greeting_card":"Biglietto di auguri","insert_message":"Inserisci il tuo messaggio","subtitle_greeting_card":"Inseriremo nel pacco, senza costi aggiuntivi, un biglietto di accompagnamento","countries.AF":"Afghanistan","countries.AX":"Aland Islands","countries.AL":"Albania","countries.DZ":"Algeria","countries.AS":"American Samoa","countries.AD":"Andorra","countries.AO":"Angola","countries.AI":"Anguilla","countries.AQ":"Antarctica","countries.AG":"Antigua and Barbuda","countries.AR":"Argentina","countries.AM":"Armenia","countries.AW":"Aruba","countries.AU":"Australia","countries.AT":"Austria","countries.AZ":"Azerbaijan","countries.BS":"Bahamas","countries.BH":"Bahrain","countries.BD":"Bangladesh","countries.BB":"Barbados","countries.BY":"Belarus","countries.BE":"Belgio","countries.BZ":"Belize","countries.BJ"
17:"Benin","countries.BM":"Bermuda","countries.BT":"Bhutan","countries.BO":"Bolivia","countries.BQ":"Bonaire, Sint Eustatius and Saba","countries.BA":"Bosnia and Herzegovina","countries.BW":"Botswana","countries.BV":"Bouvet Island","countries.BR":"Brasile","countries.IO":"British Indian Ocean Territory","countries.BN":"Brunei","countries.BG":"Bulgaria","countries.BF":"Burkina Faso","countries.BI":"Burundi","countries.KH":"Cambogia","countries.CM":"Cameroon","countries.CA":"Canada","countries.CV":"Capo Verde","countries.KY":"Cayman Islands","countries.CF":"Central African Republic","countries.TD":"Chad","countries.CL":"Chile","countries.CN":"Cina","countries.CX":"Christmas Island","countries.CC":"Cocos (Keeling) Islands","countries.CO":"Colombia","countries.KM":"Comoros","countries.CG":"Congo","countries.CK":"Cook Islands","countries.CR":"Costa Rica","countries.HR":"Croazia","countries.CU":"Cuba","countries.CW":"Curaçao","countries.CY":"Cyprus","countries.CZ":"Czech Republic","countries.DK":"Danimarca","countries.DJ":"Djibouti","countries.DM":"Dominica","countries.DO":"Dominican Republic","countries.TL":"East Timor","countries.TP":"East Timor","countries.EC":"Ecuador","countries.EG":"Egitto","countries.SV":"El Salvador","countries.GQ":"Equatorial Guinea","countries.ER":"Eritrea","countries.EE":"Estonia","countries.ET":"Ethiopia","countries.FK":"Falkland Islands","countries.FO":"Faroe Islands","countries.FJ":"Fiji Islands","countries.FI":"Finlandia","countries.FR":"Francia","countries.GF":"French Guiana","countries.PF":"French Polynesia","countries.TF":"French Southern territories","countries.GA":"Gabon","countries.GM":"Gambia","countries.GE":"Georgia","countries.DE":"Germania","countries.GH":"Ghana","countries.GI":"Gibraltar","countries.GR":"Grecia","countries.GL":"Greenland","countries.GD":"Grenada","countries.GP":"Guadeloupe","countries.GU":"Guam","countries.GT":"Guatemala","countries.GG":"Guernsey and Alderney","countries.GN":"Guinea","countries.GW":"Guinea Bissau","countries.GY":"Guyana","countries.HT":"Haiti","countries.HM":"Heard Island and McDonald Islands","countries.VA":"Holy See (Vatican City State)","countries.HN":"Honduras","countries.HK":"Hong Kong","countries.HU":"Hungary","countries.IS":"Islanda","countries.IN":"India","countries.ID":"Indonesia","countries.IR":"Iran","countries.IQ":"Iraq","countries.IE":"Irlanda","countries.IL":"Israele","countries.IT":"Italia","countries.CI":"Ivory Coast","countries.JM":"Jamaica","countries.JP":"Giappone","countries.JE":"Jersey","countries.JO":"Jordan","countries.KZ":"Kazakhstan","countries.KE":"Kenya","countries.KI":"Kiribati","countries.XK":"Kosovo","countries.KW":"Kuwait","countries.KG":"Kyrgyzstan","countries.LA":"Laos","countries.LV":"Latvia","countries.LB":"Lebanon","countries.LS":"Lesotho","countries.LR":"Liberia","countries.LY":"Libyan Arab Jamahiriya","countries.LI":"Liechtenstein","countries.LT":"Lithuania","countries.LU":"Luxembourg","countries.MO":"Macao","countries.MK":"North Macedonia","countries.MG":"Madagascar","countries.MW":"Malawi","countries.MY":"Malesia","countries.MV":"Maldive","countries.ML":"Mali","countries.MT":"Malta","countries.IM":"Man (Isle of)","countries.MH":"Marshall Islands","countries.MQ":"Martinique","countries.MR":"Mauritania","countries.MU":"Mauritius","countries.YT":"Mayotte","countries.MX":"Messico","countries.FM":"Micronesia, Federated States of","countries.MD":"Moldova","countries.MC":"Monaco","countries.MN":"Mongolia","countries.ME":"Montenegro","countries.MS":"Montserrat","countries.MA":"Marocco","countries.MZ":"Mozambique","countries.MM":"Myanmar","countries.NA":"Namibia","countries.NR":"Nauru","countries.NP":"Nepal","countries.NL":"Paesi Bassi","countries.AN":"Netherlands Antilles","countries.NC":"Nuova Caledonia","countries.NZ":"Nuova Zelanda","countries.NI":"Nicaragua","countries.NE":"Niger","countries.NG":"Nigeria","countries.NU":"Niue","countries.NF":"Norfolk Island","countries.KP":"Nord Korea","countries.MP":"Northern Mariana Islands","countries.NO":"Norvegia","countries.OM":"Oman","countries.PK":"Pakistan","countries.PW":"Palau","countries.PS":"Palestine","countries.PA":"Panama","countries.PG":"Papua New Guinea","countries.PY":"Paraguay","countries.PE":"Peru","countries.PH":"Filippine","countries.PN":"Pitcairn","countries.PL":"Polonia","countries.PT":"Portogallo","countries.PR":"Puerto Rico","countries.QA":"Qatar","countries.RE":"Reunion","countries.RO":"Romania","countries.RU":"Russian Federation","countries.RW":"Rwanda","countries.SH":"Saint Helena","countries.KN":"Saint Kitts and Nevis","countries.LC":"Saint Lucia","countries.PM":"Saint Pierre and Miquelon","countries.VC":"Saint Vincent and the Grenadines","countries.BL":"Saint-Barthelemy","countries.MF":"Saint-Martin (French part)","countries.WS":"Samoa","countries.SM":"San Marino","countries.ST":"Sao Tome and Principe","countries.SA":"Saudi Arabia","countries.SN":"Senegal","countries.RS":"Serbia","countries.SC":"Seychelles","countries.SL":"Sierra Leone","countries.SG":"Singapore","countries.SX":"Sint Maarten (Dutch part)","countries.SK":"Slovakia","countries.SI":"Slovenia","countries.SB":"Solomon Islands","countries.SO":"Somalia","countries.ZA":"Sud Africa","countries.GS":"South Georgia and the South Sandwich Islands","countries.KR":"Sud Korea","countries.SS":"South Sudan","countries.ES":"Spagna","countries.LK":"Sri Lanka","countries.SD":"Sudan","countries.SR":"Suriname","countries.SJ":"Svalbard and Jan Mayen","countries.SZ":"Swaziland","countries.SE":"Svezia","countries.CH":"Svizzera","countries.SY":"Syria","countries.TJ":"Tajikistan","countries.TZ":"Tanzania","countries.TH":"Tailandia","countries.CD":"The Democratic Republic of Congo","countries.TG":"Togo","countries.TK":"Tokelau","countries.TO":"Tonga","countries.TT":"Trinidad and Tobago","countries.TN":"Tunisia","countries.TR":"Turchia","countries.TM":"Turkmenistan","countries.TC":"Turks and Caicos Islands","countries.TV":"Tuvalu","countries.TW":"Taiwan","countries.UG":"Uganda","countries.UA":"Ukraine","countries.AE":"United Arab Emirates","countries.GB":"Regno Unito","countries.US":"Stati Uniti","countries.UM":"United States Minor Outlying Islands","countries.UY":"Uruguay","countries.UZ":"Uzbekistan","countries.VU":"Vanuatu","countries.VE":"Venezuela","countries.VN":"Vietnam","countries.VG":"Virgin Islands, British","countries.VI":"Virgin Islands, U.S.","countries.WF":"Wallis and Futuna","countries.EH":"Western Sahara","countries.YE":"Yemen","countries.YU":"Yugoslavia","countries.ZM":"Zambia","countries.ZW":"Zimbabwe","maximum_elements_added":"E\' possibile aggiungere fino a #n #p","single_product_basepath":"prodotto","credit_assignment":"Cessione del credito","error_boundary_title":"Si è verificato un errore!","error_boundary_subt
17itle":"Ci stiamo lavorando, per favore riprova più tardi","404_title":"Ops!","404_subtitle":"Non troviamo la pagina che stai cercando.","404_back":"Torna in Homepage","200_password":"Password modificata con successo: Per favore effettua l\'accesso con la nuova password","200_personal_data":"Modifica profilo con successo","switch_sdi":"Non hai il codice destinatario? ... Clicca e inserisci la tua PEC","switch_pec":"Non hai la PEC? ... Clicca e inserisci il tuo codice destinatario","iban":"Iban","enter_valid_iban":"Inserire un iban valido","enter_valid_sdi":"Inserire un codice SDI valido","enter_valid_vat":"Inserire una partita iva valida","enter_valid_fiscal_code":"Inserire un codice fiscale valido","address_two_b2b":"Presso / Insegna","tips_address_two_b2b":"Esempio: presso Hotel Bellavita","pages":"pagine","research_in_progress":"Ricerca in corso...","no_results":"Nessun risultato","search_product":"Cerca prodotto...","account":"Profilo","account_section_title_1":"Modifica i dati anagrafici","account_section_title_2":"Modifica la mail.","account_section_title_3":"Modifica password","account_login_again_action":"(a seguito della modifica dovrai effettuare nuovamente l\'accesso)","brith_date":"Data nascita","new_password":"Nuova password","old_password":"Vecchia password","error_old_password":"Password corrente non valida","passwords_not_match":"Le due password non coincidono","addresses":"Indirizzi","update":"Aggiorna","billing":"Fatturazione","shipping":"Spedizione","insert_shipping_address":"Inserisci un indirizzo di spedizione","insert_billing_address":"Inserisci un indirizzo di fatturazione","edit_shipping_address":"Modifica indirizzo di spedizione","edit_billing_address":"Modifica indirizzo di fatturazione","edit_address":"Modifica indirizzo","delete_address":"Elimina indirizzo","select_shipping_address":"Seleziona indirizzo di spedizione","confirm":"Conferma","add_address":"Aggiungi un nuovo indirizzo","add_address_shipping":"Aggiungi un nuovo indirizzo di spedizione","add_address_billing":"Aggiungi nuovi dati di fatturazione","my_account":"Il mio account","personal_data":"Profilo","modify_personal_data":"Modifica, aggiungi e salva i tuoi dati e la tua password in questa sezione.","shipping_addresses":"Indirizzi di spedizione","modify_addresses_detail":"Modifica e salva in questa sezione le preferenze di consegna.","billing_addresses":"Dati di fatturazione","modify_billing_addresses":"Modifica e salva qui ragione sociale, codice fiscale, partita iva e indirizzi.","200_address":"Indirizzo salvato con successo","section_account_back":"Indietro","ask_for_invoice":"Voglio ricevere fattura fiscale","save_shipping_address":"Salva indirizzo di spedizione","save_billing_address":"Salva dati di fatturazione","delivery_to_this_address":"Consegna a questo indirizzo","use_this_address":"Usa questo indirizzo","subtitle_shipping_address_section":"Completa i tuoi acquisti in modo più semplice e veloce salvando in questa pagina i tuoi indirizzi di spedizione.","subtitle_billing_address_section":"Inserisci in questa pagina i tuoi indirizzi di fatturazione per completare l\'ordine in modo più semplice e veloce.","welcome":"Benvenuto","go_to_account":"Vai al tuo profilo","delete_address_confirm":"Conferma eliminazione indirizzo","delete_address_confirm_subtitle":"Confermi di voler eliminare questo indirizzo?","change_shipping_address":"Cambia indirizzo di spedizione","change_billing_address":"Cambia dati di fatturazione","forgot_password_label":"Password dimenticata","proceed":"Procedi","1.cart":"1. Carrello","2.shipping_and_payment":"2. Spedizione e pagamento","3.confirm_order":"3. Ordine confermato","complete_order_step":"Concludi lâordine registrandoti, accedendo se sei già registrato o continuando come ospite","register_title_section":"Registrati","register_subtitle_section":"Registrati per salvare i tuoi indirizzi e velocizzare gli acquisti.","login_title_section":"Accedi","login_subtitle_section":"Se hai già un account effettua il login e procedi con l\'acquisto","guest_title_section":"Continua come ospite","guest_subtitle_section":"Inserisci l\'email per ricevere gli aggiornamenti sull\'ordine","check_cart":"Abbiamo eliminato/modificato le quantità dei prodotti non disponibili nel carrello","payment_error":"Siamo spiacenti ma non ci è possibile elaborare questo pagamento, per favore riprova con un\'altra carta o con un altro metodo di pagamento.","couponOrGift.label":"Hai un codice da usare?","couponOrGift.submit":"Applica","couponOrGift.placeholder.gift_card_or_coupon_code":"Codice sconto o buono regalo","couponOrGift.placeholder.gift_card_code":"Codice gift card","couponOrGift.placeholder.coupon_code":"Codice coupon","couponOrGift.error.gift_card_or_coupon_code":"Non corrisponde ad alcun codice sconto o buono regalo attivo","couponOrGift.error.gift_card_code":"Non corrisponde ad un buono regalo attivo","couponOrGift.error.coupon_code":"Non corrisponde ad un codice sconto attivo","my_orders":"I miei ordini","ship_to_another_country":"Vuoi spedire in un altro paese?","confirm_change_country":"Stai per cambiare il paese di spedizione, sei sicuro?","back_change_country":"Torna al precedente paese","continue_change_country":"Continua con il nuovo paese","transactionSecure":"Tutte le transazioni sono sicure e criptate.","contact":"Contatto"}')},39418,e=>{"use strict";var t=e.i(23542),r=e.i(42941),n=e.i(33099),i=e.i(22265),s=e.i(73150);let a={en:r.default,it:s.default,de:t.default,fr:i.default,es:n.default};function o(e,t){let r=e+" - "+t;return a[e]&&a[e][t]&&(r=a[e][t]),r}e.s(["default",0,o,"tt",0,function(e,t,r){let n=o(e,t);for(let[e,t]of Object.entries(r))n=n.replace(`#${e}`,t);return n}])},74728,81949,e=>{"use strict";let t,r,n,i;var s,a,o,l,u=e.i(47167);function c(e,t){return function(){return e.apply(t,arguments)}}let{toString:B}=Object.prototype,{getPrototypeOf:h}=Object,{iterator:d,toStringTag:p}=Symbol,f=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),g=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),C=(e,t,r)=>e===Object.prototype||!r&&null===t,m=(e,t)=>
17{let r=e,n=[];for(;null!=r&&-1===n.indexOf(r);){n.push(r);let i=h(r);if(C(r,i,r===e))break;if(f(r,t))return!0;r=i}return!1},_=(t=Object.create(null),e=>{let r=B.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())}),y=e=>(e=e.toLowerCase(),t=>_(t)===e),E=e=>t=>typeof t===e,{isArray:v}=Array,w=E("undefined");function b(e){return null!==e&&!w(e)&&null!==e.constructor&&!w(e.constructor)&&I(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let D=y("ArrayBuffer"),T=E("string"),I=E("function"),S=E("number"),A=e=>null!==e&&"object"==typeof e,O=e=>{if(!A(e))return!1;let t=h(e);return(null===t||t===Object.prototype||null===h(t))&&!m(e,p)&&!m(e,d)},R=y("Date"),N=y("File"),P=y("Blob"),k=y("FileList"),L=y("Set"),F="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g,x=void 0!==F.FormData?F.FormData:void 0,M=y("URLSearchParams"),[G,U,H,V]=["ReadableStream","Request","Response","Headers"].map(y);function j(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e)if("object"!=typeof e&&(e=[e]),v(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;if(b(e))return;let s=r?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;for(n=0;n<a;n++)i=s[n],t.call(null,e[i],i,e)}}function z(e,t){let r;if(b(e))return null;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let J="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g,K=e=>!w(e)&&e!==J,q=(r="u">typeof Uint8Array&&h(Uint8Array),e=>r&&e instanceof r),Y=y("HTMLFormElement"),{propertyIsEnumerable:$}=Object.prototype,W=y("RegExp"),Q=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};j(r,(r,i)=>{let s;!1!==(s=t(r,i,e))&&(n[i]=s||r)}),Object.defineProperties(e,n)},Z=y("AsyncFunction"),X=(s="function"==typeof setImmediate,a=I(J.postMessage),s?setImmediate:a?(o=`axios@${Math.random()}`,l=[],J.addEventListener("message",({source:e,data:t})=>{e===J&&t===o&&l.length&&l.shift()()},!1),e=>{l.push(e),J.postMessage(o,"*")}):e=>setTimeout(e)),ee="u">typeof queueMicrotask?queueMicrotask.bind(J):void 0!==u.default&&u.default.nextTick||X,et=e=>null!=e&&I(e[d]),er={isArray:v,isArrayBuffer:D,isBuffer:b,isFormData:e=>{if(!e)return!1;if(x&&e instanceof x)return!0;let t=h(e);if(!t||t===Object.prototype||!I(e.append))return!1;let r=_(e);return"formdata"===r||"object"===r&&I(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&D(e.buffer)},isString:T,isNumber:S,isBoolean:e=>!0===e||!1===e,isObject:A,isPlainObject:O,isEmptyObject:e=>{if(!A(e)||b(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:G,isRequest:U,isResponse:H,isHeaders:V,isUndefined:w,isDate:R,isFile:N,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:P,isRegExp:W,isFunction:I,isStream:e=>A(e)&&I(e.pipe),isURLSearchParams:M,isTypedArray:q,isFileList:k,forEach:j,merge:function e(...t){let{caseless:r,skipUndefined:n}=K(this)&&this||{},i={},s=(t,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;let a=r&&"string"==typeof s&&z(i,s)||s,o=f(i,a)?i[a]:void 0;O(o)&&O(t)?i[a]=e(o,t):O(t)?i[a]=e({},t):v(t)?i[a]=t.slice():n&&w(t)||(i[a]=t)};for(let e=0,r=t.length;e<r;e++){let r=t[e];if(!r||b(r)||(j(r,s),"object"!=typeof r||v(r)))continue;let n=Object.getOwnPropertySymbols(r);for(let e=0;e<n.length;e++){let t=n[e];$.call(r,t)&&s(r[t],t)}}return i},extend:(e,t,r,{allOwnKeys:n}={})=>(j(t,(t,n)=>{r&&I(t)?Object.defineProperty(e,n,{__proto__:null,value:c(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
17configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,s,a,o={};if(t=t||{},null==e)return t;do{for(s=(i=Object.getOwnPropertyNames(e)).length;s-- >0;)a=i[s],(!n||n(a,e,t))&&!o[a]&&(t[a]=e[a],o[a]=!0);e=!1!==r&&h(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype)return t},kindOf:_,kindOfTest:y,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(v(e))return e;let t=e.length;if(!S(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,n=(e&&e[d]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:Y,hasOwnProperty:f,hasOwnProp:f,hasOwnInPrototypeChain:m,getSafeProp:(e,t)=>null!=e&&m(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=h(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(g(t))return!1;let r=Object.getOwnPropertyDescriptor(e,t);return!!r&&r.configurable&&!0===r.writable})})(e))return e;let r=Object.create(null),n=Object.create(null),i=[],s=e;for(;null!=s&&-1===i.indexOf(s);){i.push(s);let a=s===e?t:h(s);if(C(s,a,s===e))break;let o=Object.getOwnPropertyNames(s);for(let t of(Object.getOwnPropertySymbols&&o.push(...Object.getOwnPropertySymbols(s)),o))!g(t)&&(f(n,t)||(r[t]=e[t],n[t]=!0));s=a}return r},reduceDescriptors:Q,freezeMethods:e=>{Q(e,(t,r)=>{if(I(e)&&["arguments","caller","callee"].includes(r))return!1;if(I(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(v(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:z,global:J,isContextDefined:K,isSpecCompliantForm:function(e){return!!(e&&I(e.append)&&"FormData"===e[p]&&e[d])},toJSONObject:e=>{let t=new WeakSet,r=e=>{if(A(e)){if(t.has(e))return;if(b(e))return e;if(!("toJSON"in e)){let n;if(t.add(e),L(e))for(let t of(n=[],e)){let e=r(t);w(e)||n.push(e)}else n=v(e)?[]:{},j(e,(e,t)=>{let i=r(e);w(i)||(n[t]=i)});return t.delete(e),n}}return e};return r(e)},isAsyncFn:Z,isThenable:e=>e&&(A(e)||I(e))&&I(e.then)&&I(e.catch),setImmediate:X,asap:ee,isIterable:et,isSafeIterable:e=>null!=e&&m(e,d)&&et(e)},en=er.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"]),ei=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),es=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ea(e,t){return er.isArray(e)?e.map(e=>ea(e,t)):function(e){let t=0,r=e.length;for(;t<r;){let r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(t,""))}function eo(e){let t=Object.create(null);return er.forEach(e.toJSON(),(e,r)=>{t[r]=ea(e,es)}),t}let el=Symbol("internals");function eu(e){return e&&String(e).trim().toLowerCase()}function ec(e){return!1===e||null==e?e:er.isArray(e)?e.map(ec):ea(String(e),ei)}let eB=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function eh(e){let t=0,r=e.length;for(;t<r;){let r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}function ed(e,t,r,n,i){if(er.isFunction(n))return n.call(this,t,r);if(i&&(t=r),er.isString(t)){if(er.isString(n))return -1!==t.indexOf(n);if(er.isRegExp(n))return n.test(t)}}class ep{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=eu(t);if(!i)return;let s=er.findKey(n,i);s&&void 0!==n[s]&&!0!==r&&(void 0!==r||!1===n[s])||(n[s||t]=ec(e))}let s=(e,t)=>er.forEach(e,(e,r)=>i(e,r,t));if(er.isPlainObject(e)||e instanceof this.constructor)s(e,t);else{let n;if(er.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var a;let r,n,i,o;s((o={},(a=e)&&a.split("\n").forEach(function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim();let t=er.hasOwnProp(o,r);!r||t&&er.hasOwnProp(en,r)||("set-cookie"===r?t?o[r].push(n):o[r]=[n]:o[r]=t?o[r]+", "+n:n)}),o),t)}else if(er.isObject(e)&&er.isSafeIterable(e)){let r=Object.create(null),n,i;for(let t of e){if(!er.isArray(t))throw TypeError("Object iterator must return a key-value pair");i=t[0],er.hasOwnProp(r,i)?(n=r[i],r[i]=er.isArray(n)?[...n,t[1]]:[n,t[1]]):r[i]=t[1]}s(r,t)}else null!=e&&i(t,e,r)}return this}get(e,t){if(e=eu(e)){let r=er.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),n=/([^\s,;
17=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}if(er.isFunction(t))return t.call(this,e,r);if(er.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eu(e)){let r=er.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||ed(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=eu(e)){let i=er.findKey(r,e);i&&(!t||ed(r,r[i],i,t))&&(delete r[i],n=!0)}}return er.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||ed(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return er.forEach(this,(n,i)=>{let s=er.findKey(r,i);if(s){t[s]=ec(n),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();a!==i&&delete t[i],t[a]=ec(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return er.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&er.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){let e=this.get("set-cookie");return er.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),r=String(e),n=0,i=!1,s=!1;function a(e){let i=eh(r.slice(n,e)),s=i.indexOf("=");if(s<1)return;let a=eh(i.slice(0,s));if(!eB.test(a))return;let o=a.toLowerCase();if("__proto__"===o||"constructor"===o||"prototype"===o)return;let l=eh(i.slice(s+1));t[o]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let r="";for(let n=1;n<t;n++){let i=e.charCodeAt(n);if(34===i||92===i&&(n+=1)>=t)return e;r+=e[n]}return r}(l)}for(let e=0;e<r.length;e++){let t=r.charCodeAt(e);i?s?s=!1:92===t?s=!0:34===t&&(i=!1):34===t?i=!0:(44===t||59===t)&&(a(e),n=e+1)}return a(r.length),t}(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[el]=this[el]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=eu(e);if(!t[n]){let i;i=er.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(r,t+i,{__proto__:null,value:function(r,n,i){return this[t].call(this,e,r,n,i)},configurable:!0})}),t[n]=!0}}return er.isArray(e)?e.forEach(n):n(e),this}}ep.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),er.reduceDescriptors(ep.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),er.freezeMethods(ep);let ef="[REDACTED ****]";function eg(e){try{return String(e)}catch(e){return""}}class eC extends Error{static from(e,t,r,n,i,s){let a=e.message;!a&&er.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?eg(e.message):eg(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let o=new eC(a,t||e.code,r,n,i);return Object.defineProperty(o,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),o.name=e.name,null!=e.status&&null==o.status&&(o.status=e.status),s&&Object.assign(o,s),o}constructor(e,t,r,n,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){let e,t,r,n=this.config,i=n&&er.hasOwnProp(n,"redact")?n.redact:void 0,s=er.isArray(i)&&i.length>0?(e=new Set(i.map(e=>String(e).toLowerCase())),t=[],(r=n=>{let i;if(null===n||"object"!=typeof n||er.isBuffer(n))return n;if(-1===t.indexOf(n)){if(n instanceof ep&&(n=n.toJSON()),t.push(n),er.isArray(n))i=[],n.forEach((e,t)=>{let n=r(e);er.isUndefined(n)||(i[t]=n)});else{if(!er.isPlainObject(n)&&function(e){if(er.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(er.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(n))return t.pop(),n;for(let[t,s]of(i=Object.create(null),Object.entries(n))){let n=e.has(t.toLowerCase())?ef:r(s);er.isUndefined(n)||(i[t]=n)}}return t.pop(),i}})(n)):er.toJSONObject(n);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:s,code:this.code,status:this.status}}}eC.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",eC.ERR_BAD_OPTION="ERR_BAD_OPTION",eC.ECONNABORTED="ECONNABORTED",eC.ETIMEDOUT="ETIMEDOUT",eC.ECONNREFUSED="ECONNREFUSED",eC.ERR_NETWORK="ERR_NETWORK",eC.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",eC.ERR_DEPRECATED="ERR_DEPRECATED",eC.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",eC.ERR_BAD_REQUEST="ERR_BAD_REQUEST",eC.ERR_CANCELED="ERR_CANCELED",eC.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",eC.ERR_INVALID_URL="ERR_INVALID_URL",eC.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let em=eC;function e_(e){return er.isPlainObject(e)||er.isArray(e)}function ey(e){return er.endsWith(e,"[]")?e.slice(0,-2):e}function eE(e,t,r){return e?e.concat(t).map(function(e,t){return e=ey(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let ev=er.toFlatObject(er,{},null,function(e){return/^is[A-Z]/.test(e)}),ew=function(e,t,r){if(!er.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(e,t)=>{let n=er.getSafeProp(r,e);return er.isUndefined(n)?t:n},i=n("metaTokens",!0),s=n("visitor")||p,a=n("dots",!1),o=n("indexes",!1),l=n("Blob")||"u">typeof Blob&&Blob,u=n("maxDepth",100),c=l&&er.isSpecCompliantForm(t),B=[];if(!er.isFunction(s))throw TypeError("visitor must be a function");function h(e){if(null===e)return"";if(er.isDate(e))return e.toISOString();if(er.isBoolean(e))return e.toString();if(!c&&er.isBlob(e))throw new em("Blob is not supported. Use a Buffer instead.");if(er.isArrayBuffer(e)||er.isTypedArray(e)){if(c&&"function"==typeof l)return new l([e]);throw new em("Blob is not supported. Use a Buffer instead.",em.ERR_NOT_SUPPORT)}return e}function d(e){if(e>u)throw new em("Object is too deeply nested ("+e+" levels). Max depth: "+u,em.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,r,n){let s=e;if(er.isReactNative(t)&&er.isReactNativeBlob(e))return t.append(eE(n,r,a),h(e)),!1;if(e&&!n&&"object"==typeof e)if(er.endsWith(r,"{}"))r=i?r:r.slice(0,-2),e=function(e){if(u===1/0)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,r){if(!er.isObject(r))return r;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(r),d(1+t.length-1),r})}(e);else{var l;if(er.isArray(e)&&(l=e,er.isArray(l)&&!l.some(e_))||(er.isFileList(e)||er.endsWith(r,"[]"))&&(s=er.toArray(e)))return r=ey(r),s.forEac
17h(function(e,n){er.isUndefined(e)||null===e||t.append(!0===o?eE([r],n,a):null===o?r:r+"[]",h(e))}),!1}return!!e_(e)||(t.append(eE(n,r,a),h(e)),!1)}let f=Object.assign(ev,{defaultVisitor:p,convertValue:h,isVisitable:e_});if(!er.isObject(e))throw TypeError("data must be an object");return!function e(r,n,i=0){if(!er.isUndefined(r)){if(d(i),-1!==B.indexOf(r))throw Error("Circular reference detected in "+n.join("."));B.push(r),er.forEach(r,function(r,a){!0===(!(er.isUndefined(r)||null===r)&&s.call(t,r,er.isString(a)?a.trim():a,n,f))&&e(r,n?n.concat(a):[a],i+1)}),B.pop()}}(e),t};function eb(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function eD(e,t){this._pairs=[],e&&ew(e,this,t)}let eT=eD.prototype;function eI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function eS(e,t,r){let n;if(!t)return e;e=e||"";let i=er.isFunction(r)?{serialize:r}:r,s=er.getSafeProp(i,"encode")||eI,a=er.getSafeProp(i,"serialize");if(n=a?a(t,i):er.isURLSearchParams(t)?t.toString():new eD(t,i).toString(s)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}eT.append=function(e,t){this._pairs.push([e,t])},eT.toString=function(e){let t=e?t=>e.call(this,t,eb):eb;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let eA=Symbol("internals");function eO(e){return e?e.length:0}function eR(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function eN(e,t){let r=e.handlers,n=eO(r);r!==t.handlersRef?(t.handlersRef=r,t.handlerEntries.clear()):n!==t.handlersLength&&(n?t.handlerEntries.forEach(function(e,n){r[e.index]!==e.handler&&t.handlerEntries.delete(n)}):t.handlerEntries.clear()),t.handlersLength=n}let eP=class{constructor(){this.handlers=[],this[eA]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,r){let n={fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null},i=this[eA];null==this.handlers&&(this.handlers=[]),eN(this,i);let s=i.nextId++;return this.handlers.push(n),i.handlerEntries.set(s,{handler:n,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,s}eject(e){let t=this[eA];eN(this,t);let r=t.handlerEntries.get(e);if(r){if(t.handlerEntries.delete(e),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(eR(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],eN(this,this[eA]))}forEach(e){let t=this[eA];eN(this,t),t.iterationDepth++;try{er.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(eN(this,t),eR(this.handlers),t.handlersLength=eO(this.handlers))}}},ek={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},eL="u">typeof URLSearchParams?URLSearchParams:eD,eF="u">typeof FormData?FormData:null,ex="u">typeof Blob?Blob:null,eM="u">typeof window&&"u">typeof document,eG="object"==typeof navigator&&navigator||void 0,eU=eM&&(!eG||0>["ReactNative","NativeScript","NS"].indexOf(eG.product)),eH="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eV=eM&&window.location.href||"http://localhost";e.s(["hasBrowserEnv",0,eM,"hasStandardBrowserEnv",0,eU,"hasStandardBrowserWebWorkerEnv",0,eH,"navigator",0,eG,"origin",0,eV],57536);let ej={...e.i(57536),isBrowser:!0,classes:{URLSearchParams:eL,FormData:eF,Blob:ex},protocols:["http","https","file","blob","url","data"]};function ez(e){if(e>100)throw new em("FormData field is too deeply nested ("+e+" levels). Max depth: 100",em.ERR_FORM_DATA_DEPTH_EXCEEDED)}let eJ=function(e){if(er.isFormData(e)&&er.isFunction(e.entries)){let t={};return er.forEachEntry(e,(e,r)=>{!function e(t,r,n,i){ez(i);let s=t[i++];if("__proto__"===s)return!0;let a=Number.isFinite(+s),o=i>=t.length;return(s=!s&&er.isArray(n)?n.length:s,o)?er.hasOwnProp(n,s)?n[s]=er.isArray(n[s])?n[s].concat(r):[n[s],r]:n[s]=r:(er.hasOwnProp(n,s)&&er.isObject(n[s])||(n[s]=[]),e(t,r,n[s],i)&&er.isArray(n[s])&&(n[s]=function(e){let t,r,n={},i=Object.keys(e),s=i.length;for(t=0;t<s;t++)n[r=i[t]]=e[r];return n}(n[s]))),!a}(function(e){let t,r=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=n.exec(e));)ez(r.length),r.push("[]"===t[0]?"":t[1]||t[0]);return r}(e),r,t,0)}),t}return null},eK=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),eq=(e,t)=>
17null!=e&&er.hasOwnProp(e,t)?e[t]:void 0,eY={transitional:ek,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=er.isObject(e);if(s&&er.isHTMLForm(e)&&(e=new FormData(e)),er.isFormData(e))return i?JSON.stringify(eJ(e)):e;if(er.isArrayBuffer(e)||er.isBuffer(e)||er.isStream(e)||er.isFile(e)||er.isBlob(e)||er.isReadableStream(e))return e;if(er.isArrayBufferView(e))return e.buffer;if(er.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(s){let t=eq(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return ew(e,new ej.classes.URLSearchParams,{visitor:function(e,t,r,n){return ej.isNode&&er.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((r=er.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=eq(this,"env"),i=n&&n.FormData;return ew(r?{"files[]":e}:e,i&&new i,t)}}if(s||i){t.setContentType("application/json",!1);var a=e;if(er.isString(a))try{return(0,JSON.parse)(a),er.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=eq(this,"transitional")||eY.transitional,r=t&&t.forcedJSONParsing,n=eq(this,"responseType"),i="json"===n;if(er.isResponse(e)||er.isReadableStream(e))return e;if(e&&er.isString(e)&&(r&&!n||i)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,eq(this,"parseReviver"))}catch(e){if(!r&&i){if("SyntaxError"===e.name)throw em.from(e,em.ERR_BAD_RESPONSE,this,null,eq(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ej.classes.FormData,Blob:ej.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function e$(e,t){let r=this||eY,n=t||r,i=ep.from(n.headers),s=n.data;return er.forEach(e,function(e){s=e.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function eW(e){return!!(e&&e.__CANCEL__)}er.forEach(eK,e=>{eY.headers[e]={}});let eQ=class extends em{constructor(e,t,r){super(null==e?"canceled":e,em.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function eZ(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new em("Request failed with status code "+r.status,r.status>=400&&r.status<500?em.ERR_BAD_REQUEST:em.ERR_BAD_RESPONSE,r.config,r.request,r))}let eX=/[\t\n\r]/g;function e0(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(eX,"")}function e1(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let e2=function(e,t){let r,n=Array(e=e||10),i=Array(e),s=0,a=0;return t=void 0!==t?t:1e3,function(o){let l=Date.now(),u=i[a];r||(r=l),n[s]=o,i[s]=l;let c=a,B=0;for(;c!==s;)B+=n[c++],c%=e;if((s=(s+1)%e)===a&&(a=(a+1)%e),l-r<t)return;let h=u&&l-u;return h?Math.round(1e3*B/h):void 0}},e3=function(e,t){let r,n,i=0,s=1e3/t,a=(t,s=Date.now())=>{i=s,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),o=t-i;o>=s?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},s-o)))},()=>r&&a(r),(...e)=>a(e)]},e6=(e,t,r=3)=>{let n=0,i=e2(50,250);return e3(r=>{if(!r||!er.isNumber(r.loaded))return;let s=r.loaded,a=r.lengthComputable?r.total:void 0,o=Math.max(0,null!=a?Math.min(s,a):s),l=Math.max(0,o-n),u=i(l);n=Math.max(n,o),e({loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a?(a-o)/u:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},e8=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},e4=(e,t=er.asap)=>(...r)=>t(()=>e(...r)),e5=ej.hasStandardBrowserEnv?(n=new URL(ej.origin),i=ej.navigator&&/(msie|trident)/i.test(ej.navigator.userAgent),e=>(e=new URL(e,ej.origin),n.protocol===e.protocol&&n.host===e.host&&(i||n.port===e.port))):()=>!0,e9=ej.hasStandardBrowserEnv?{write(e,t,r,n,i,s,a){if("u"<typeof document)return;let o=[`${e}=${encodeURIComponent(t)}`];er.isNumber(r)&&o.push(`expires=${new Date(r).toUTCString()}`),er.isString(n)&&o.push(`path=${n}`),er.isString(i)&&o.push(`domain=${i}`),!0===s&&o.push("secure"),er.isString(a)&&o.push(`SameSite=${a}`),document.cookie=o.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r].replace(/^\s+/,""),i=n.indexOf("=");if(-1!==i&&n.slice(0,i)===e)try{return decodeURIComponent(n.slice(i+1))}catch(e){return n.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},e7=/^https?:(?!\/\/)/i;function te(e,t){if("string"==typeof e){let n=e0(e);if(e7.test(n)){var r;let e,i,s;throw new em(`Invalid URL ${JSON.stringify((s=(-1===(i=(e=n.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ef}@`)).indexOf("#"))?e:e.slice(0,i)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ef}`),-1===i?s:`${s}#${!(r=e.slice(i+1))?r:r.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,r="")=>`${t}${r}${ef}`)}`))}: missing "//" after protocol`,em.ERR_INVALID_URL,t)}}}function tt(e,t,r,n){te(t,n);let i=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(i||!1===r)){te(e,n);if(!t)return e;let r=e.length;for(;r>0&&47===e.charCodeAt(r-1);)r--;return e.slice(0,r)+"/"+t.replace(/^\/+/,"")}return t}let tr=e=>e instanceof ep?{...e}:e;function tn(e,t){var r;e=e||{},t=t||{};let n=Object.create(null);function i(e,t,r,n){return er.isPlainObject(e)&&er.isPlainObject(t)?er.merge.call({caseless:n},e,t):er.isPlainObject(t)?er.merge({},t):er.isArray(t)?t.slice():t}function s(e,t,r,n){return er.isUndefined(t)?er.isUndefined(e)?void 0:i(void 0,e,r,n):i(e,t,r,n)}function a(e,t){if(!er.isUndefined(t))return i(void 0,t)}function o(e,t){return er.isUndefined(t)?er.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function l(r,n,s){return er.hasOwnProp(t,s)?i(r,n):er.hasOwnProp(e,s)?i(void 0,r):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let u={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutErrorMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBo
17dyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:l,headers:(e,t,r)=>s(tr(e),tr(t),r,!0)};return er.forEach((r={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(r).concat(Object.getOwnPropertySymbols(r).filter(e=>Object.getOwnPropertyDescriptor(r,e).enumerable)):Object.keys(r)),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;let i=er.hasOwnProp(u,r)?u[r]:s,a=i(er.hasOwnProp(e,r)?e[r]:void 0,er.hasOwnProp(t,r)?t[r]:void 0,r);er.isUndefined(a)&&i!==l||(n[r]=a)}),er.hasOwnProp(t,"validateStatus")&&er.isUndefined(t.validateStatus)&&!1===function(r){let n=er.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!er.isUndefined(n)){if(!er.isPlainObject(n))return;else if(er.hasOwnProp(n,r))return n[r]}let i=er.hasOwnProp(e,"transitional")?e.transitional:void 0;if(er.isPlainObject(i)&&er.hasOwnProp(i,r))return i[r]}("validateStatusUndefinedResolves")&&(er.hasOwnProp(e,"validateStatus")?n.validateStatus=i(void 0,e.validateStatus):delete n.val
17idateStatus),n}let ti=["content-type","content-length"],ts=function(e){let t=tn({},e),r=e=>er.hasOwnProp(t,e)?t[e]:void 0,n=r("data"),i=r("withXSRFToken"),s=r("xsrfHeaderName"),a=r("xsrfCookieName"),o=r("headers"),l=r("auth"),u=r("baseURL"),c=r("allowAbsoluteUrls"),B=r("url");if(t.headers=o=ep.from(o),t.url=eS(tt(u,B,c,t),r("params"),r("paramsSerializer")),l){let t=er.getSafeProp(l,"username")||"",r=er.getSafeProp(l,"password")||"";try{o.set("Authorization","Basic "+btoa(t+":"+(r?encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw em.from(t,em.ERR_BAD_OPTION_VALUE,e)}}if(er.isFormData(n)){let e=er.getSafeProp(n,"getHeaders");if(ej.hasStandardBrowserEnv||ej.hasStandardBrowserWebWorkerEnv||er.isReactNative(n))o.setContentType(void 0);else{var h,d;er.isFunction(e)&&(h=o,d=e.call(n),"content-only"!==r("formDataHeaderPolicy")?h.set(d):Object.entries(d||{}).forEach(([e,t])=>{ti.includes(e.toLowerCase())&&h.set(e,t)}))}}if(ej.hasStandardBrowserEnv&&(er.isFunction(i)&&(i=i(t)),!0===i||null==i&&e5(t.url))){let e=s&&a&&e9.read(a);e&&o.set(s,e)}return t},ta="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,i,s,a,o,l,u=ts(e),c=u.data,B=ep.from(u.headers).normalize(),{responseType:h,onUploadProgress:d,onDownloadProgress:p}=u;function f(){a&&a(),o&&o(),u.cancelToken&&u.cancelToken.unsubscribe(n),u.signal&&u.signal.removeEventListener("abort",n)}let g=new XMLHttpRequest;function C(n){if(!g)return;if(0===g.status&&"file"!==(e1(e0(u.url))||e1(ej.origin))&&!(g.responseURL&&g.responseURL.startsWith("file:"))){r(new em("Request aborted",em.ECONNABORTED,e,g)),f(),g=null;return}try{n?l&&l(n):o&&o()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let i=ep.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());eZ(function(e){t(e),f()},function(e){r(e),f()},{data:h&&"text"!==h&&"json"!==h?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:i,config:e,request:g}),g=null}g.open(u.method.toUpperCase(),u.url,!0),g.timeout=u.timeout,"onloadend"in g?g.onloadend=C:g.onreadystatechange=function(){!g||4!==g.readyState||(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(C)},g.onabort=function(){g&&(r(new em("Request aborted",em.ECONNABORTED,e,g)),f(),g=null)},g.onerror=function(t){let n=new em(t&&t.message?t.message:"Network Error",em.ERR_NETWORK,e,g);n.event=t||null,r(n),f(),g=null},g.ontimeout=function(){let t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",n=u.transitional||ek;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),r(new em(t,n.clarifyTimeoutError?em.ETIMEDOUT:em.ECONNABORTED,e,g)),f(),g=null},void 0===c&&B.setContentType(null),"setRequestHeader"in g&&er.forEach(eo(B),function(e,t){g.setRequestHeader(t,e)}),er.isUndefined(u.withCredentials)||(g.withCredentials=!!u.withCredentials),h&&"json"!==h&&(g.responseType=u.responseType),p&&([s,o,l]=e6(p,!0),g.addEventListener("progress",s)),d&&g.upload&&([i,a]=e6(d),g.upload.addEventListener("progress",i),g.upload.addEventListener("loadend",a)),(u.cancelToken||u.signal)&&(n=t=>{g&&(r(!t||t.type?new eQ(null,e,g):t),g.abort(),f(),g=null)},u.cancelToken&&u.cancelToken.subscribe(n),u.signal&&(u.signal.aborted?n():u.signal.addEventListener("abort",n)));let m=e1(u.url);if(m&&!ej.protocols.includes(m)){r(new em("Unsupported protocol "+m+":",em.ERR_BAD_REQUEST,e)),f();return}g.send(c||null)})},to=function*(e,t){let r,n=e.byteLength;if(!t||n<t)return void(yield e);let i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},tl=async function*(e,t){for await(let r of tu(e))yield*to(r,t)},tu=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},tc=(e,t,r,n)=>{let i,s=tl(e,t),a=0,o=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await s.next();if(t){o(),e.close();return}let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw o(e),e}},cancel:e=>(o(e),s.return())},{highWaterMark:2})},tB=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,th=(e,t,r)=>t+2<r&&tB(e.charCodeAt(t+1))&&tB(e.charCodeAt(t+2)),td=e=>e<=57?e-48:(223&e)-55,tp=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,tf=e=>9===e||10===e||12===e||13===e||32===e,tg=e=>{var t;let r,n,i=e.length,s=0,a=0,o=!1;for(let t=0;t<i;t++){let r=e.charCodeAt(t);if(37===r&&th(e,t,i)&&(r=16*td(e.charCodeAt(t+1))+td(e.charCodeAt(t+2)),t+=2),!tf(r)){if(61===r){a++;continue}if(!tp(r)||a>0){o=!0;continue}s++}}if(o||a>2||a>0&&(s+a)%4!=0||s%4==1){let t,r;return t=e.length,r=0,t>0&&61===e.charCodeAt(t-1)&&(r++,t>1&&61===e.charCodeAt(t-2)&&r++),Math.floor((t-r)*3/4)}return r=Math.floor((t=s)/4),3*r+(2==(n=t%4)?1:2*(3===n))},tC="1.20.0",tm={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:t_}=er,ty=e=>{if(!er.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},tE=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},tv=e=>{let t,r=void 0!==er.global&&null!==er.global?er.global:globalThis,{ReadableStream:n,TextEncoder:i}=r,{fetch:s,Request:a,Response:o}=e=er.merge.call({skipUndefined:!0},{Request:r.Request,Response:r.Response},e),l=s?t_(s):"function"==typeof fetch,u=t_(a),c=t_(o);if(!l)return!1;
17let B=l&&t_(n),h=l&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),d=u&&B&&tE(()=>{let e=!1,t=new a(ej.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),p=c&&B&&tE(()=>er.isReadableStream(new o("").body)),f={stream:p&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{f[e]||(f[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new em(`Response type '${e}' is not supported`,em.ERR_NOT_SUPPORT,r)})});let g=async e=>{if(null==e)return 0;if(er.isBlob(e))return e.size;if(er.isSpecCompliantForm(e)){let t=new a(ej.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return er.isArrayBufferView(e)||er.isArrayBuffer(e)?e.byteLength:(er.isURLSearchParams(e)&&(e+=""),er.isString(e))?(await h(e)).byteLength:void 0},C=async(e,t)=>{let r=er.toFiniteNumber(e.getContentLength());return null==r?g(t):r};return async e=>{let t,{url:r,method:n,data:l,signal:c,cancelToken:h,timeout:m,onDownloadProgress:_,onUploadProgress:y,responseType:E,headers:v,withCredentials:w="same-origin",fetchOptions:b,maxContentLength:D,maxBodyLength:T,maxRedirects:I}=ts(e),S=er.isNumber(D)&&D>-1,A=er.isNumber(T)&&T>-1,O=s||fetch;E=E?(E+"").toLowerCase():"text";let R=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let r=new AbortController,n=!1,i=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;r.abort(t instanceof em?t:new eQ(t instanceof Error?t.message:t))}},s=t&&setTimeout(()=>{s=null,i(new em(`timeout of ${t}ms exceeded`,em.ETIMEDOUT))},t),a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>{if(!n){if(e.aborted)return void i.call(e);e.addEventListener("abort",i,{once:!0})}});let{signal:o}=r;return o.unsubscribe=()=>er.asap(a),o})([c,h&&h.toAbortSignal()],m),N=null,P=R&&R.unsubscribe&&(()=>{R.unsubscribe()}),k=null,L=()=>new em("Request body larger than maxBodyLength limit",em.ERR_BAD_REQUEST,e,N);try{var F,x;let s,c,h,m,M=(c="auth",er.hasOwnProp(e,c)?e[c]:void 0);if(M){let e=er.getSafeProp(M,"username")||"",t=er.getSafeProp(M,"password")||"";s={username:e,password:t}}if(h=(F=r).indexOf("://"),m=F,-1!==h&&(m=m.slice(h+3)),m.includes("@")||m.includes(":")){let e=new URL(r,ej.origin);if(!s&&(e.username||e.password)){let t=ty(e.username),r=ty(e.password);s={username:t,password:r}}(e.username||e.password)&&(e.username="",e.password="",r=e.href)}if(s){let e;v.delete("authorization"),v.set("Authorization","Basic "+btoa((e=(s.username||"")+":"+(s.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(S&&"string"==typeof r&&r.startsWith("data:")){let t;if(x=r,t="string"==typeof x?x.indexOf("#"):-1,((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let r=e.indexOf(",");if(r<0)return 0;let n=e.slice(5,r),i=e.slice(r+1);if(/;base64/i.test(n))return t(i);let s=0;for(let e=0,t=i.length;e<t;e++){let r=i.charCodeAt(e);if(37===r&&th(i,e,t))s+=1,e+=2;else if(r<128)s+=1;else if(r<2048)s+=2;else if(r>=55296&&r<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(s+=4,e++):s+=3}else s+=3}return s})(-1===t?x:x.slice(0,t),tg)>D)throw new em("maxContentLength size of "+D+" exceeded",em.ERR_BAD_RESPONSE,e,N)}if(A&&"get"!==n&&"head"!==n){let e=await g(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>T))throw L()}let G=A&&(er.isReadableStream(l)||er.isStream(l)),U=(e,t,r)=>tc(e,65536,e=>{if(A&&e>T)throw k=L();t&&t(e)},r);if(d&&"get"!==n&&"head"!==n&&(y||G)){if(t=null==t?await C(v,l):t,0!==t||G){let e,n=new a(r,{method:"POST",body:l,duplex:"half"});if(er.isFormData(l)&&(e=n.headers.get("content-type"))&&v.setContentType(e),n.body){let[e,r]=y&&e8(t,e6(e4(y)))||[];l=U(n.body,e,r)}}}else if(G&&!u&&B&&"get"!==n&&"head"!==n)l=U(l);else if(G&&u&&!d&&"get"!==n&&"head"!==n)throw new em("Stream request bodies are not supported by the current fetch implementation",em.ERR_NOT_SUPPORT,e,N);er.isString(w)||(w=w?"include":"omit");let H=u&&"credentials"in a.prototype;if(er.isFormData(l)){let e=v.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&v.delete("content-type")}v.set("User-Agent","axios/"+tC,!1);let V=null==b?b:Object.assign(Object.create(null),b);V&&(delete V.body,delete V.headers,delete V.method,delete V.signal,delete V.duplex,delete V.credentials);let j=Object.assign(Object.create(null),V,{signal:R,method:n.toUpperCase(),headers:eo(v.normalize()),body:l,duplex:"half",credentials:H?w:void 0});u&&(er.forEach(tm,(e,t)=>{void 0===j[t]&&(j[t]=e)}),void 0===j.signal&&(j.signal=null),void 0===j.body&&(j.body=null)),0===I&&(j.redirect="manual",V&&(V.redirect="manual")),N=u&&new a(r,j);let z=await (u?O(N,V):O(r,j)),J=ep.from(z.headers);if(S){let t=er.toFiniteNumber(J.getContentLength());if(null!=t&&t>D)throw new em("maxContentLength size of "+D+" exceeded",em.ERR_BAD_RESPONSE,e,N)}let K=p&&("stream"===E||"response"===E);if(p&&z.body&&(_||S||K&&P)){let t={};
17["status","statusText","headers"].forEach(e=>{t[e]=z[e]});let r=er.toFiniteNumber(J.getContentLength()),[n,i]=_&&e8(r,e6(e4(_),!0))||[];z=new o(tc(z.body,65536,t=>{if(S&&t>D)throw new em("maxContentLength size of "+D+" exceeded",em.ERR_BAD_RESPONSE,e,N);n&&n(t)},()=>{i&&i(),P&&P()}),t)}E=E||"text";let q=await f[er.findKey(f,E)||"text"](z,e);if(S&&!p&&!K){let t;if(null!=q&&("number"==typeof q.byteLength?t=q.byteLength:"number"==typeof q.size?t=q.size:"string"==typeof q&&(t="function"==typeof i?new i().encode(q).byteLength:q.length)),"number"==typeof t&&t>D)throw new em("maxContentLength size of "+D+" exceeded",em.ERR_BAD_RESPONSE,e,N)}return!K&&P&&P(),await new Promise((t,r)=>{eZ(t,r,{data:q,headers:ep.from(z.headers),status:z.status,statusText:z.statusText,config:e,request:N})})}catch(t){if(P&&P(),R&&R.aborted&&R.reason instanceof em){let r=R.reason;throw r.config=e,N&&(r.request=N),t!==r&&Object.defineProperty(r,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),r}if(k)throw N&&!k.request&&(k.request=N),k;if(t instanceof em)throw N&&!t.request&&(t.request=N),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let r=new em("Network Error",em.ERR_NETWORK,e,N,t&&t.response);throw Object.defineProperty(r,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),r}throw em.from(t,t&&t.code,e,N,t&&t.response)}}},tw=new Map,tb=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:i}=t,s=[n,i,r],a=s.length,o,l,u=tw;for(;a--;)o=s[a],void 0===(l=u.get(o))&&u.set(o,l=a?new Map:tv(t)),u=l;return l};tb();let tD={http:null,xhr:ta,fetch:{get:tb}};er.forEach(tD,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let tT=e=>`- ${e}`,tI=e=>er.isFunction(e)||null===e||!1===e,tS=function(e,t){let r,n,{length:i}=e=er.isArray(e)?e:[e],s={};for(let a=0;a<i;a++){let i;if(n=r=e[a],!tI(r)&&void 0===(n=tD[(i=String(r)).toLowerCase()]))throw new em(`Unknown adapter '${i}'`);if(n&&(er.isFunction(n)||(n=n.get(t))))break;s[i||"#"+a]=n}if(!n){let e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new em("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(tT).join("\n"):" "+tT(e[0]):"as no adapter specified"),em.ERR_NOT_SUPPORT)}return n};function tA(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eQ(null,e)}function tO(e){let t=er.toSafeFlatObject(e);return tA(t),t.headers=ep.from(er.getSafeProp(t,"headers")),t.data=e$.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),tS(t.adapter||eY.adapter,t)(t).then(function(e){tA(t),t.response=e;try{e.data=e$.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=ep.from(e.headers),e},function(e){if(!eW(e)&&(tA(t),e&&e.response)){t.response=e.response;try{e.response.data=e$.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=ep.from(e.response.headers)}return Promise.reject(e)})}let tR={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tR[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let tN={};tR.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tC+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,s)=>{if(!1===e)throw new em(n(i," has been removed"+(t?" in "+t:"")),em.ERR_DEPRECATED);return t&&!tN[i]&&(tN[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,s)}},tR.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};let tP=function(e,t,r){if("object"!=typeof e||null===e)throw new em("options must be an object",em.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let s=n[i],a=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(a){let t=e[s],r=void 0===t||a(t,s,e);if(!0!==r)throw new em("option "+s+" must be "+r,em.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new em("Unknown option "+s,em.ERR_BAD_OPTION)}};class tk{constructor(e){this.defaults=e||{},this.interceptors={request:new eP,response:new eP}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack,n="";if("string"==typeof r){let e=r.indexOf("\n");n=-1===e?"":r.slice(e+1)}if(e.stack){if(n){let t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),i=-1===r?"":n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:s,headers:a}=t=tn(this.defaults,t);void 0!==i&&tP(i,{silentJSONParsing:tR.transitional(tR.boolean),forcedJSONParsing:tR.transitional(tR.boolean),clarifyTimeoutError:tR.transitional(tR.boolean),legacyInterceptorReqResOrdering:tR.transitional(tR.boolean),advertiseZstdAcceptEncoding:tR.transitional(tR.boolean),validateStatusUndefinedResolves:tR.transitional(tR.boolean)}
17,!1),null!=s&&(er.isFunction(s)?t.paramsSerializer={serialize:s}:tP(s,{encode:tR.function,serialize:tR.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tP(t,{baseUrl:tR.spelling("baseURL"),withXsrfToken:tR.spelling("withXSRFToken")},!0),t.method=(er.getSafeProp(t,"method")||er.getSafeProp(this.defaults,"method")||"get").toLowerCase();let o=a&&er.merge(a.common,a[t.method]);a&&er.forEach(eK.concat("common"),e=>{delete a[e]}),t.headers=ep.concat(o,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;u=u&&e.synchronous;let r=t.transitional||ek;r&&r.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let B=0;if(!u){let e=[tO.bind(this),void 0];for(e.unshift(...l),e.push(...c),n=e.length,r=Promise.resolve(t);B<n;)r=r.then(e[B++],e[B++]);return r}n=l.length;let h=t;for(;B<n;){let e=l[B++],t=l[B++];try{h=e?e(h):h}catch(e){if(!t){r=Promise.reject(e);break}try{let n=t.call(this,e);er.isThenable(n)&&(r=Promise.resolve(n).then(()=>tO.call(this,h)))}catch(e){r=Promise.reject(e)}break}}if(!r)try{r=tO.call(this,h)}catch(e){r=Promise.reject(e)}for(B=0,n=c.length;B<n;)r=r.then(c[B++],c[B++]);return r}getUri(e){return eS(tt((e=tn(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}er.forEach(["delete","get","head","options"],function(e){tk.prototype[e]=function(t,r){return this.request(tn(r||{},{method:e,url:t,data:r&&er.hasOwnProp(r,"data")?r.data:void 0}))}}),er.forEach(["post","put","patch","query"],function(e){function t(t){return function(r,n,i){return this.request(tn(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tk.prototype[e]=t(),"query"!==e&&(tk.prototype[e+"Form"]=t(!0))});let tL=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new eQ(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},tF={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
17alContent: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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(tF).forEach(([e,t])=>{void 0===tF[t]&&(tF[t]=e)});let tx=function e(t){let r=new tk(t),n=c(tk.prototype.request,r);return er.extend(n,tk.prototype,r,{allOwnKeys:!0}),er.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(tn(t,r))},n}(eY);tx.Axios=tk,tx.CanceledError=eQ,tx.CancelToken=tL,tx.isCancel=eW,tx.VERSION=tC,tx.toFormData=ew,tx.AxiosError=em,tx.Cancel=tx.CanceledError,tx.all=function(e){return Promise.all(e)},tx.spread=function(e){return function(t){return e.apply(null,t)}},tx.isAxiosError=function(e){return er.isObject(e)&&!0===e.isAxiosError},tx.mergeConfig=tn,tx.AxiosHeaders=ep,tx.formToJSON=e=>eJ(er.isHTMLForm(e)?new FormData(e):e),tx.getAdapter=tS,tx.HttpStatusCode=tF,tx.default=tx,e.s(["default",0,tx],81949);let tM=tx.create({timeout:4e4});e.s(["api",0,tM,"isB2BEnabled",0,!1],74728)}]); 18 19//# sourceMappingURL=1yc7pfyij4ze8.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.