@remit/web-client-dist 0.0.300 → 0.0.301

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/assets/{ErrorState-fTSnQm24.js → ErrorState-K_DfCEXi.js} +1 -1
  2. package/assets/{OnboardingWizard-fxENOx3_.js → OnboardingWizard-CFBfC_Cx.js} +1 -1
  3. package/assets/{account-form-helpers-tzWGkuwE.js → account-form-helpers-BbRUMYkd.js} +1 -1
  4. package/assets/{accounts-DhTQAW84.js → accounts-Do8sVKGo.js} +1 -1
  5. package/assets/{advanced-T1USmwbt.js → advanced-D1fiZ_fQ.js} +1 -1
  6. package/assets/{appearance-HxmtBphn.js → appearance-gQ1gWf6o.js} +1 -1
  7. package/assets/{avatar-CNVLVI-H.js → avatar-CzdzqSzA.js} +1 -1
  8. package/assets/{browser-ponyfill-vZmAO0yp.js → browser-ponyfill-BG8I-k7n.js} +1 -1
  9. package/assets/{circle-check-YlWZv9Mc.js → circle-check-DT1Ux51L.js} +1 -1
  10. package/assets/confirm-dialog-CIXlJwmO.js +1 -0
  11. package/assets/{download-BPUwUMyv.js → download-R6QdKZCO.js} +1 -1
  12. package/assets/{filters-DvBwrQoM.js → filters-sVqTGjIM.js} +1 -1
  13. package/assets/{flagged-C-GEyHjm.js → flagged-CoKvDI2R.js} +1 -1
  14. package/assets/{folders--i3KprM0.js → folders-CDTrujI2.js} +1 -1
  15. package/assets/{index-9nXytSEy.js → index-BRWYLOII.js} +1 -1
  16. package/assets/index-D60kRk0L.js +1 -0
  17. package/assets/{index-rCP-8V3i.css → index-DZJcX74M.css} +1 -1
  18. package/assets/{index-VdDpazZy.js → index-DxTf7mJG.js} +5 -5
  19. package/assets/{kbd-C_D2WkrL.js → kbd-BszviWxW.js} +1 -1
  20. package/assets/labels-wYIFrXzO.js +1 -0
  21. package/assets/mail-B1GD7zkK.js +118 -0
  22. package/assets/{move-options-AJw5FKbX.js → move-options-bqfNnf-5.js} +1 -1
  23. package/assets/{onboarding-Tw77yHgF.js → onboarding-BlmHjHRm.js} +1 -1
  24. package/assets/{pencil-QGnkKuCC.js → pencil-BatcrqbL.js} +1 -1
  25. package/assets/{ComposeBody-juaUBP4S.js → rich-text-Cch_7nLF.js} +2 -2
  26. package/assets/{senders-CVxr8qGf.js → senders-CXTCeTh1.js} +1 -1
  27. package/assets/settings-C_MIWHGc.js +1 -0
  28. package/assets/{settings-screen-DT-hrfDz.js → settings-screen-DMiZMh86.js} +1 -1
  29. package/assets/{shield-check-COYytpct.js → shield-check-Bx44AaEs.js} +1 -1
  30. package/assets/{suggested-vips-ce9dYb3K.js → suggested-vips-oROGBDZu.js} +1 -1
  31. package/assets/{useDebouncedValue-jZo-6AMN.js → useDebouncedValue-CyeiGvID.js} +1 -1
  32. package/assets/{useFilters-DywOhPbr.js → useFilters-Cw-yMezD.js} +1 -1
  33. package/assets/{useLabels-B-Dlq3rb.js → useLabels-B7zuz_GA.js} +1 -1
  34. package/assets/{useSignature-CrZdaMCZ.js → useSignature-BH3ArXBe.js} +1 -1
  35. package/index.html +2 -2
  36. package/package.json +1 -1
  37. package/assets/ConfirmDialog-ibkpk4-g.js +0 -1
  38. package/assets/index-VtPj5yVn.js +0 -1
  39. package/assets/labels-CVh5IQqs.js +0 -1
  40. package/assets/mail-C5gYU3Wn.js +0 -118
  41. package/assets/settings-CYzcIkDy.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mail-C5gYU3Wn.js","assets/pencil-QGnkKuCC.js","assets/avatar-CNVLVI-H.js","assets/kbd-C_D2WkrL.js","assets/shield-check-COYytpct.js","assets/account-form-helpers-tzWGkuwE.js","assets/useSignature-CrZdaMCZ.js","assets/useDebouncedValue-jZo-6AMN.js","assets/useFilters-DywOhPbr.js","assets/ErrorState-fTSnQm24.js","assets/format-CKZmh-Ru.js","assets/move-options-AJw5FKbX.js","assets/download-BPUwUMyv.js","assets/useLabels-B-Dlq3rb.js","assets/ConfirmDialog-ibkpk4-g.js","assets/circle-check-YlWZv9Mc.js","assets/onboarding-Tw77yHgF.js","assets/OnboardingWizard-fxENOx3_.js","assets/index-9nXytSEy.js","assets/flagged-C-GEyHjm.js","assets/accounts-DhTQAW84.js","assets/settings-screen-DT-hrfDz.js","assets/advanced-T1USmwbt.js","assets/appearance-HxmtBphn.js","assets/filters-DvBwrQoM.js","assets/folders--i3KprM0.js","assets/labels-CVh5IQqs.js","assets/senders-CVxr8qGf.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mail-B1GD7zkK.js","assets/pencil-BatcrqbL.js","assets/avatar-CzdzqSzA.js","assets/kbd-BszviWxW.js","assets/shield-check-Bx44AaEs.js","assets/account-form-helpers-BbRUMYkd.js","assets/useSignature-BH3ArXBe.js","assets/useDebouncedValue-CyeiGvID.js","assets/useFilters-Cw-yMezD.js","assets/ErrorState-K_DfCEXi.js","assets/format-CKZmh-Ru.js","assets/move-options-bqfNnf-5.js","assets/download-R6QdKZCO.js","assets/useLabels-B7zuz_GA.js","assets/confirm-dialog-CIXlJwmO.js","assets/circle-check-DT1Ux51L.js","assets/onboarding-BlmHjHRm.js","assets/OnboardingWizard-CFBfC_Cx.js","assets/index-BRWYLOII.js","assets/flagged-CoKvDI2R.js","assets/accounts-Do8sVKGo.js","assets/settings-screen-DMiZMh86.js","assets/advanced-D1fiZ_fQ.js","assets/appearance-gQ1gWf6o.js","assets/filters-sVqTGjIM.js","assets/folders-CDTrujI2.js","assets/labels-wYIFrXzO.js","assets/senders-CXTCeTh1.js"])))=>i.map(i=>d[i]);
2
2
  function oD(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in t)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();var Ym=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var dS={exports:{}},If={};var D4;function WW(){if(D4)return If;D4=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,a,s){var i=null;if(s!==void 0&&(i=""+s),a.key!==void 0&&(i=""+a.key),"key"in a){s={};for(var u in a)u!=="key"&&(s[u]=a[u])}else s=a;return a=s.ref,{$$typeof:t,type:r,key:i,ref:a!==void 0?a:null,props:s}}return If.Fragment=e,If.jsx=n,If.jsxs=n,If}var L4;function VW(){return L4||(L4=1,dS.exports=WW()),dS.exports}var C=VW();const GW="Logging",KW="x-amz-user-agent",YW="NoHubcallbackProvidedException";var oa;(function(t){t.DEBUG="DEBUG",t.ERROR="ERROR",t.INFO="INFO",t.WARN="WARN",t.VERBOSE="VERBOSE",t.NONE="NONE"})(oa||(oa={}));const U4={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,NONE:6};class or{constructor(e,n=oa.WARN){this.name=e,this.level=n,this._pluggables=[]}_padding(e){return e<10?"0"+e:""+e}_ts(){const e=new Date;return[this._padding(e.getMinutes()),this._padding(e.getSeconds())].join(":")+"."+e.getMilliseconds()}configure(e){return e?(this._config=e,this._config):this._config}_log(e,...n){let r=this.level;or.LOG_LEVEL&&(r=or.LOG_LEVEL),typeof window<"u"&&window.LOG_LEVEL&&(r=window.LOG_LEVEL);const a=U4[r];if(!(U4[e]>=a))return;let i=console.log.bind(console);e===oa.ERROR&&console.error&&(i=console.error.bind(console)),e===oa.WARN&&console.warn&&(i=console.warn.bind(console)),or.BIND_ALL_LOG_LEVELS&&(e===oa.INFO&&console.info&&(i=console.info.bind(console)),e===oa.DEBUG&&console.debug&&(i=console.debug.bind(console)));const u=`[${e}] ${this._ts()} ${this.name}`;let c="";if(n.length===1&&typeof n[0]=="string")c=`${u} - ${n[0]}`,i(c);else if(n.length===1)c=`${u} ${n[0]}`,i(u,n[0]);else if(typeof n[0]=="string"){let f=n.slice(1);f.length===1&&(f=f[0]),c=`${u} - ${n[0]} ${f}`,i(`${u} - ${n[0]}`,f)}else c=`${u} ${n}`,i(u,n);for(const f of this._pluggables){const h={message:c,timestamp:Date.now()};f.pushLogs([h])}}log(...e){this._log(oa.INFO,...e)}info(...e){this._log(oa.INFO,...e)}warn(...e){this._log(oa.WARN,...e)}error(...e){this._log(oa.ERROR,...e)}debug(...e){this._log(oa.DEBUG,...e)}verbose(...e){this._log(oa.VERBOSE,...e)}addPluggable(e){e&&e.getCategoryName()===GW&&(this._pluggables.push(e),e.configure(this._config))}listPluggables(){return this._pluggables}}or.LOG_LEVEL=null;or.BIND_ALL_LOG_LEVELS=!1;class Hr extends Error{constructor({message:e,name:n,recoverySuggestion:r,underlyingError:a,metadata:s}){if(super(e),this.name=n,this.underlyingError=a,this.recoverySuggestion=r,s){const{extendedRequestId:i,httpStatusCode:u,requestId:c}=s;this.metadata={extendedRequestId:i,httpStatusCode:u,requestId:c}}this.constructor=Hr,Object.setPrototypeOf(this,Hr.prototype)}}var Fi;(function(t){t.NoEndpointId="NoEndpointId",t.PlatformNotSupported="PlatformNotSupported",t.Unknown="Unknown",t.NetworkError="NetworkError"})(Fi||(Fi={}));const q1=(t,e=Hr)=>(n,r,a)=>{const{message:s,recoverySuggestion:i}=t[r];if(!n)throw new e({name:r,message:a?`${s} ${a}`:s,recoverySuggestion:i})},Rs=typeof Symbol<"u"?Symbol("amplify_default"):"@@amplify_default",Of=new or("Hub");class iD{constructor(e){this.listeners=new Map,this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=e}_remove(e,n){const r=this.listeners.get(e);if(!r){Of.warn(`No listeners for ${e}`);return}this.listeners.set(e,[...r.filter(({callback:a})=>a!==n)])}dispatch(e,n,r,a){typeof e=="string"&&this.protectedChannels.indexOf(e)>-1&&(a===Rs||Of.warn(`WARNING: ${e} is protected and dispatching on it can have unintended consequences`));const s={channel:e,payload:{...n},source:r,patternInfo:[]};try{this._toListeners(s)}catch(i){Of.error(i)}}listen(e,n,r="noname"){let a;if(typeof n!="function")throw new Hr({name:YW,message:"No callback supplied to Hub"});a=n;let s=this.listeners.get(e);return s||(s=[],this.listeners.set(e,s)),s.push({name:r,callback:a}),()=>{this._remove(e,a)}}_toListeners(e){const{channel:n,payload:r}=e,a=this.listeners.get(n);a&&a.forEach(s=>{Of.debug(`Dispatching to ${n} with `,r);try{s.callback(e)}catch(i){Of.error(i)}})}}const Is=new iD("__default__"),M0=new iD("internal-hub"),k_=()=>{if(typeof window=="object"&&typeof window.crypto=="object")return window.crypto;if(typeof crypto=="object")return crypto;throw new Hr({name:"MissingPolyfill",message:"Cannot resolve the `crypto` function from the environment."})},ZW=()=>{if(typeof window<"u"&&typeof window.btoa=="function")return window.btoa;if(typeof btoa=="function")return btoa;throw new Hr({name:"Base64EncoderError",message:"Cannot resolve the `btoa` function from the environment."})},XW=()=>{if(typeof window<"u"&&typeof window.atob=="function")return window.atob;if(typeof atob=="function")return atob;throw new Hr({name:"Base64EncoderError",message:"Cannot resolve the `atob` function from the environment."})},A_={convert(t,e){let n=t;return e?.urlSafe&&(n=n.replace(/-/g,"+").replace(/_/g,"/")),XW()(n)}};var _s;(function(t){t.AuthTokenConfigException="AuthTokenConfigException",t.AuthUserPoolAndIdentityPoolException="AuthUserPoolAndIdentityPoolException",t.AuthUserPoolException="AuthUserPoolException",t.InvalidIdentityPoolIdException="InvalidIdentityPoolIdException",t.OAuthNotConfigureException="OAuthNotConfigureException"})(_s||(_s={}));const QW={[_s.AuthTokenConfigException]:{message:"Auth Token Provider not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app."},[_s.AuthUserPoolAndIdentityPoolException]:{message:"Auth UserPool or IdentityPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId."},[_s.AuthUserPoolException]:{message:"Auth UserPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId."},[_s.InvalidIdentityPoolIdException]:{message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."},[_s.OAuthNotConfigureException]:{message:"oauth param not configured.",recoverySuggestion:"Make sure to call Amplify.configure with oauth parameter in your app."}},T_=q1(QW);function ut(t){let e=!0;t?e=!!t.userPoolId&&!!t.userPoolClientId:e=!1,T_(e,_s.AuthUserPoolException)}function W1(t){const e=!!t?.loginWith?.oauth?.domain&&!!t?.loginWith?.oauth?.redirectSignOut&&!!t?.loginWith?.oauth?.redirectSignIn&&!!t?.loginWith?.oauth?.responseType;T_(e,_s.OAuthNotConfigureException)}function t0(t){const e=!!t?.identityPoolId;T_(e,_s.InvalidIdentityPoolIdException)}function Co(t){const e=t.split(".");if(e.length!==3)throw new Error("Invalid token");try{const r=e[1].replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(A_.convert(r).split("").map(i=>`%${`00${i.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")),s=JSON.parse(a);return{toString:()=>t,payload:s}}catch{throw new Error("Invalid token payload")}}const lD=t=>{const e=Reflect.ownKeys(t);for(const n of e){const r=t[n];(r&&typeof r=="object"||typeof r=="function")&&lD(r)}return Object.freeze(t)},JW=new or("parseAWSExports"),eV={API_KEY:"apiKey",AWS_IAM:"iam",AMAZON_COGNITO_USER_POOLS:"userPool",OPENID_CONNECT:"oidc",NONE:"none",AWS_LAMBDA:"lambda",LAMBDA:"lambda"},tV=(t={})=>{if(!Object.prototype.hasOwnProperty.call(t,"aws_project_region"))throw new Hr({name:"InvalidParameterException",message:"Invalid config parameter.",recoverySuggestion:"Ensure passing the config object imported from `amplifyconfiguration.json`."});const{aws_appsync_apiKey:e,aws_appsync_authenticationType:n,aws_appsync_graphqlEndpoint:r,aws_appsync_region:a,aws_bots_config:s,aws_cognito_identity_pool_id:i,aws_cognito_sign_up_verification_method:u,aws_cognito_mfa_configuration:c,aws_cognito_mfa_types:f,aws_cognito_password_protection_settings:h,aws_cognito_verification_mechanisms:m,aws_cognito_signup_attributes:g,aws_cognito_social_providers:y,aws_cognito_username_attributes:S,aws_mandatory_sign_in:w,aws_mobile_analytics_app_id:x,aws_mobile_analytics_app_region:E,aws_user_files_s3_bucket:k,aws_user_files_s3_bucket_region:A,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:R,aws_user_pools_id:N,aws_user_pools_web_client_id:O,geo:I,oauth:P,predictions:U,aws_cloud_logic_custom:H,Notifications:z,modelIntrospection:j}=t,$={};x&&($.Analytics={Pinpoint:{appId:x,region:E}});const{InAppMessaging:Z,Push:J}=z??{};if(Z?.AWSPinpoint||J?.AWSPinpoint){if(Z?.AWSPinpoint){const{appId:Q,region:V}=Z.AWSPinpoint;$.Notifications={InAppMessaging:{Pinpoint:{appId:Q,region:V}}}}if(J?.AWSPinpoint){const{appId:Q,region:V}=J.AWSPinpoint;$.Notifications={...$.Notifications,PushNotification:{Pinpoint:{appId:Q,region:V}}}}}if(Array.isArray(s)&&($.Interactions={LexV1:Object.fromEntries(s.map(Q=>[Q.name,Q]))}),r){const Q=eV[n];Q||JW.debug(`Invalid authentication type ${n}. Falling back to IAM.`),$.API={GraphQL:{endpoint:r,apiKey:e,region:a,defaultAuthMode:Q??"iam"}},j&&($.API.GraphQL.modelIntrospection=j)}const q=c?{status:c&&c.toLowerCase(),totpEnabled:f?.includes("TOTP")??!1,smsEnabled:f?.includes("SMS")??!1}:void 0,X=h?{minLength:h.passwordPolicyMinLength,requireLowercase:h.passwordPolicyCharacters?.includes("REQUIRES_LOWERCASE")??!1,requireUppercase:h.passwordPolicyCharacters?.includes("REQUIRES_UPPERCASE")??!1,requireNumbers:h.passwordPolicyCharacters?.includes("REQUIRES_NUMBERS")??!1,requireSpecialCharacters:h.passwordPolicyCharacters?.includes("REQUIRES_SYMBOLS")??!1}:void 0,he=Array.from(new Set([...m??[],...g??[]])).reduce((Q,V)=>({...Q,[V.toLowerCase()]:{required:!0}}),{}),xe=S?.includes("EMAIL")??!1,D=S?.includes("PHONE_NUMBER")??!1;(i||N)&&($.Auth={Cognito:{identityPoolId:i,allowGuestAccess:w!=="enable",signUpVerificationMethod:u,userAttributes:he,userPoolClientId:O,userPoolId:N,mfa:q,passwordFormat:X,loginWith:{username:!(xe||D),email:xe,phone:D}}});const Y=P?Object.keys(P).length>0:!1,G=y?y.length>0:!1;if($.Auth&&Y&&($.Auth.Cognito.loginWith={...$.Auth.Cognito.loginWith,oauth:{...nV(P),...G&&{providers:rV(y)}}}),k&&($.Storage={S3:{bucket:k,region:A,dangerouslyConnectToHttpEndpointForTesting:R}}),I){const{amazon_location_service:Q}=I;$.Geo={LocationService:{maps:Q.maps,geofenceCollections:Q.geofenceCollections,searchIndices:Q.search_indices,region:Q.region}}}if(H&&($.API={...$.API,REST:H.reduce((Q,V)=>{const{name:ue,endpoint:oe,region:ce,service:be}=V;return{...Q,[ue]:{endpoint:oe,...be?{service:be}:void 0,...ce?{region:ce}:void 0}}},{})}),U){const{VoiceId:Q}=U?.convert?.speechGenerator?.defaults??{};$.Predictions=Q?{...U,convert:{...U.convert,speechGenerator:{...U.convert.speechGenerator,defaults:{voiceId:Q}}}}:U}return $},z4=t=>t?.split(",")??[],nV=({domain:t,scope:e,redirectSignIn:n,redirectSignOut:r,responseType:a})=>({domain:t,scopes:e,redirectSignIn:z4(n),redirectSignOut:z4(r),responseType:a}),rV=t=>t.map(e=>{const n=e.toLowerCase();return n.charAt(0).toUpperCase()+n.slice(1)}),uD=Symbol("oauth-listener"),nr=[];for(let t=0;t<256;++t)nr.push((t+256).toString(16).slice(1));function aV(t,e=0){return(nr[t[e+0]]+nr[t[e+1]]+nr[t[e+2]]+nr[t[e+3]]+"-"+nr[t[e+4]]+nr[t[e+5]]+"-"+nr[t[e+6]]+nr[t[e+7]]+"-"+nr[t[e+8]]+nr[t[e+9]]+"-"+nr[t[e+10]]+nr[t[e+11]]+nr[t[e+12]]+nr[t[e+13]]+nr[t[e+14]]+nr[t[e+15]]).toLowerCase()}let fS;const sV=new Uint8Array(16);function oV(){if(!fS){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");fS=crypto.getRandomValues.bind(crypto)}return fS(sV)}const iV=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),j4={randomUUID:iV};function lV(t,e,n){if(j4.randomUUID&&!e&&!t)return j4.randomUUID();t=t||{};const r=t.random??t.rng?.()??oV();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){if(n=n||0,n<0||n+16>e.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)e[n+a]=r[a];return e}return aV(r)}function uV(t){const{version:e}=t;return e?e.startsWith("1"):!1}function cV(t){if(!t)return;const{bucket_name:e,aws_region:n,buckets:r}=t;return{S3:{bucket:e,region:n,buckets:r&&wV(r)}}}function dV(t){if(!t)return;const{user_pool_id:e,user_pool_client_id:n,identity_pool_id:r,password_policy:a,mfa_configuration:s,mfa_methods:i,unauthenticated_identities_enabled:u,oauth:c,username_attributes:f,standard_required_attributes:h,groups:m,passwordless:g}=t,y={Cognito:{userPoolId:e,userPoolClientId:n,groups:m}};return r&&(y.Cognito={...y.Cognito,identityPoolId:r}),a&&(y.Cognito.passwordFormat={requireLowercase:a.require_lowercase,requireNumbers:a.require_numbers,requireUppercase:a.require_uppercase,requireSpecialCharacters:a.require_symbols,minLength:a.min_length??6}),s&&(y.Cognito.mfa={status:SV(s),smsEnabled:i?.includes("SMS"),totpEnabled:i?.includes("TOTP")}),u&&(y.Cognito.allowGuestAccess=u),c&&(y.Cognito.loginWith={oauth:{domain:c.domain,redirectSignIn:c.redirect_sign_in_uri,redirectSignOut:c.redirect_sign_out_uri,responseType:c.response_type==="token"?"token":"code",scopes:c.scopes,providers:bV(c.identity_providers)}}),f&&(y.Cognito.loginWith={...y.Cognito.loginWith,email:f.includes("email"),phone:f.includes("phone_number"),username:f.includes("username")}),h&&(y.Cognito.userAttributes=h.reduce((S,w)=>({...S,[w]:{required:!0}}),{})),g&&(y.Cognito.passwordless={emailOtpEnabled:g.email_otp_enabled,smsOtpEnabled:g.sms_otp_enabled,webAuthn:g.web_authn?{relyingPartyId:g.web_authn.relying_party_id,userVerification:g.web_authn.user_verification}:void 0,preferredChallenge:g.preferred_challenge}),y}function fV(t){if(!t?.amazon_pinpoint)return;const{amazon_pinpoint:e}=t;return{Pinpoint:{appId:e.app_id,region:e.aws_region}}}function hV(t){if(!t)return;const{aws_region:e,geofence_collections:n,maps:r,search_indices:a}=t;return{LocationService:{region:e,searchIndices:a,geofenceCollections:n,maps:r}}}function pV(t){if(!t)return;const{aws_region:e,default_authorization_type:n,url:r,api_key:a,model_introspection:s}=t;return{GraphQL:{endpoint:r,defaultAuthMode:cD(n),region:e,apiKey:a,modelIntrospection:s}}}function mV(t){if(!t?.events)return;const{url:e,aws_region:n,api_key:r,default_authorization_type:a}=t.events;return{Events:{endpoint:e,defaultAuthMode:cD(a),region:n,apiKey:r}}}function gV(t){if(!t)return;const{aws_region:e,channels:n,amazon_pinpoint_app_id:r}=t,a=n.includes("IN_APP_MESSAGING"),s=n.includes("APNS")||n.includes("FCM");if(!(a||s))return;const i={};return a&&(i.InAppMessaging={Pinpoint:{appId:r,region:e}}),s&&(i.PushNotification={Pinpoint:{appId:r,region:e}}),i}function vV(t){const e={};if(t.storage&&(e.Storage=cV(t.storage)),t.auth&&(e.Auth=dV(t.auth)),t.analytics&&(e.Analytics=fV(t.analytics)),t.geo&&(e.Geo=hV(t.geo)),t.data&&(e.API=pV(t.data)),t.custom){const n=mV(t.custom);n&&"Events"in n&&(e.API={...e.API,...n})}return t.notifications&&(e.Notifications=gV(t.notifications)),e}const yV={AMAZON_COGNITO_USER_POOLS:"userPool",API_KEY:"apiKey",AWS_IAM:"iam",AWS_LAMBDA:"lambda",OPENID_CONNECT:"oidc"};function cD(t){return yV[t]}const F4={GOOGLE:"Google",LOGIN_WITH_AMAZON:"Amazon",FACEBOOK:"Facebook",SIGN_IN_WITH_APPLE:"Apple"};function bV(t=[]){return t.reduce((e,n)=>(F4[n]!==void 0&&e.push(F4[n]),e),[])}function SV(t){return t==="OPTIONAL"?"optional":t==="REQUIRED"?"on":"off"}function wV(t){const e={};return t.forEach(({name:n,bucket_name:r,aws_region:a,paths:s})=>{if(n in e)throw new Error(`Duplicate friendly name found: ${n}. Name must be unique.`);const i=s?Object.entries(s).reduce((u,[c,f])=>(f!==void 0&&(u[c]=f),u),{}):void 0;e[n]={bucketName:r,region:a,paths:i}}),e}const dD=t=>Object.keys(t).some(e=>e.startsWith("aws_"))?tV(t):uV(t)?vV(t):t;var B4=function(){return B4=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},B4.apply(this,arguments)};function aRe(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function xV(t,e,n,r){function a(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function u(h){try{f(r.next(h))}catch(m){i(m)}}function c(h){try{f(r.throw(h))}catch(m){i(m)}}function f(h){h.done?s(h.value):a(h.value).then(u,c)}f((r=r.apply(t,e||[])).next())})}function CV(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=u(0),i.throw=u(1),i.return=u(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(f){return function(h){return c([f,h])}}function c(f){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,f[0]&&(n=0)),n;)try{if(r=1,a&&(s=f[0]&2?a.return:f[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,f[1])).done)return s;switch(a=0,s&&(f=[f[0]&2,s.value]),f[0]){case 0:case 1:s=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,a=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){n.label=f[1];break}if(f[0]===6&&n.label<s[1]){n.label=s[1],s=f;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(f);break}s[2]&&n.ops.pop(),n.trys.pop();continue}f=e.call(t,n)}catch(h){f=[6,h],a=0}finally{r=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function sRe(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,s;r<a;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var ka=64,EV=32,_V=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),kV=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],AV=Math.pow(2,53)-1,n0=(function(){function t(){this.state=Int32Array.from(kV),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return t.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=e.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>AV)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[n++],r--,this.bufferLength===ka&&(this.hashBuffer(),this.bufferLength=0)},t.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%ka>=ka-8){for(var a=this.bufferLength;a<ka;a++)n.setUint8(a,0);this.hashBuffer(),this.bufferLength=0}for(var a=this.bufferLength;a<ka-8;a++)n.setUint8(a,0);n.setUint32(ka-8,Math.floor(e/4294967296),!0),n.setUint32(ka-4,e),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(EV),a=0;a<8;a++)s[a*4]=this.state[a]>>>24&255,s[a*4+1]=this.state[a]>>>16&255,s[a*4+2]=this.state[a]>>>8&255,s[a*4+3]=this.state[a]>>>0&255;return s},t.prototype.hashBuffer=function(){for(var e=this,n=e.buffer,r=e.state,a=r[0],s=r[1],i=r[2],u=r[3],c=r[4],f=r[5],h=r[6],m=r[7],g=0;g<ka;g++){if(g<16)this.temp[g]=(n[g*4]&255)<<24|(n[g*4+1]&255)<<16|(n[g*4+2]&255)<<8|n[g*4+3]&255;else{var y=this.temp[g-2],S=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[g-15];var w=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[g]=(S+this.temp[g-7]|0)+(w+this.temp[g-16]|0)}var x=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&f^~c&h)|0)+(m+(_V[g]+this.temp[g]|0)|0)|0,E=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&s^a&i^s&i)|0;m=h,h=f,f=c,c=u+x|0,u=i,i=s,s=a,a=x+E|0}r[0]+=a,r[1]+=s,r[2]+=i,r[3]+=u,r[4]+=c,r[5]+=f,r[6]+=h,r[7]+=m},t})();const TV=t=>new TextEncoder().encode(t);var RV=typeof Buffer<"u"&&Buffer.from?function(t){return Buffer.from(t,"utf8")}:TV;function fD(t){return t instanceof Uint8Array?t:typeof t=="string"?RV(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}function IV(t){return typeof t=="string"?t.length===0:t.byteLength===0}var Vl=(function(){function t(e){this.secret=e,this.hash=new n0,this.reset()}return t.prototype.update=function(e){if(!(IV(e)||this.error))try{this.hash.update(fD(e))}catch(n){this.error=n}},t.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},t.prototype.digest=function(){return xV(this,void 0,void 0,function(){return CV(this,function(e){return[2,this.digestSync()]})})},t.prototype.reset=function(){if(this.hash=new n0,this.secret){this.outer=new n0;var e=OV(this.secret),n=new Uint8Array(ka);n.set(e);for(var r=0;r<ka;r++)e[r]^=54,n[r]^=92;this.hash.update(e),this.outer.update(n);for(var r=0;r<e.byteLength;r++)e[r]=0}},t})();function OV(t){var e=fD(t);if(e.byteLength>ka){var n=new n0;n.update(e),e=n.digest()}var r=new Uint8Array(ka);return r.set(e),r}for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`)}var kn;(function(t){t.WebUnknown="0",t.React="1",t.NextJs="2",t.Angular="3",t.VueJs="4",t.Nuxt="5",t.Svelte="6",t.ServerSideUnknown="100",t.ReactSSR="101",t.NextJsSSR="102",t.AngularSSR="103",t.VueJsSSR="104",t.NuxtSSR="105",t.SvelteSSR="106",t.ReactNative="201",t.Expo="202"})(kn||(kn={}));var Oa;(function(t){t.AI="ai",t.API="api",t.Auth="auth",t.Analytics="analytics",t.DataStore="datastore",t.Geo="geo",t.InAppMessaging="inappmessaging",t.Interactions="interactions",t.Predictions="predictions",t.PubSub="pubsub",t.PushNotification="pushnotification",t.Storage="storage"})(Oa||(Oa={}));var fo;(function(t){t.CreateConversation="1",t.GetConversation="2",t.ListConversations="3",t.DeleteConversation="4",t.SendMessage="5",t.ListMessages="6",t.OnMessage="7",t.Generation="8",t.UpdateConversation="9"})(fo||(fo={}));var $4;(function(t){t.Record="1",t.IdentifyUser="2"})($4||($4={}));var H4;(function(t){t.GraphQl="1",t.Get="2",t.Post="3",t.Put="4",t.Patch="5",t.Del="6",t.Head="7"})(H4||(H4={}));var Ze;(function(t){t.SignUp="1",t.ConfirmSignUp="2",t.ResendSignUpCode="3",t.SignIn="4",t.FetchMFAPreference="6",t.UpdateMFAPreference="7",t.SetUpTOTP="10",t.VerifyTOTPSetup="11",t.ConfirmSignIn="12",t.DeleteUserAttributes="15",t.DeleteUser="16",t.UpdateUserAttributes="17",t.FetchUserAttributes="18",t.ConfirmUserAttribute="22",t.SignOut="26",t.UpdatePassword="27",t.ResetPassword="28",t.ConfirmResetPassword="29",t.FederatedSignIn="30",t.RememberDevice="32",t.ForgetDevice="33",t.FetchDevices="34",t.SendUserAttributeVerificationCode="35",t.SignInWithRedirect="36",t.StartWebAuthnRegistration="37",t.CompleteWebAuthnRegistration="38",t.ListWebAuthnCredentials="39",t.DeleteWebAuthnCredential="40"})(Ze||(Ze={}));var q4;(function(t){t.Subscribe="1",t.GraphQl="2"})(q4||(q4={}));var mh;(function(t){t.SearchByText="0",t.SearchByCoordinates="1",t.SearchForSuggestions="2",t.SearchByPlaceId="3",t.SaveGeofences="4",t.GetGeofence="5",t.ListGeofences="6",t.DeleteGeofences="7"})(mh||(mh={}));var cE;(function(t){t.SyncMessages="1",t.IdentifyUser="2",t.NotifyMessageInteraction="3"})(cE||(cE={}));var W4;(function(t){t.None="0"})(W4||(W4={}));var V4;(function(t){t.Convert="1",t.Identify="2",t.Interpret="3"})(V4||(V4={}));var G4;(function(t){t.Subscribe="1"})(G4||(G4={}));var K4;(function(t){t.InitializePushNotifications="1",t.IdentifyUser="2"})(K4||(K4={}));var Va;(function(t){t.UploadData="1",t.DownloadData="2",t.List="3",t.Copy="4",t.Remove="5",t.GetProperties="6",t.GetUrl="7",t.GetDataAccess="8",t.ListCallerAccessGrants="9"})(Va||(Va={}));const NV="6.18.0",V1=()=>typeof global<"u",pd=()=>typeof window<"u",hD=()=>typeof document<"u",R_=()=>typeof process<"u",Ih=(t,e)=>!!Object.keys(t).find(n=>n.startsWith(e));var Y4={};function MV(){const t=r=>r.startsWith("_react")||r.startsWith("__react"),e=r=>Object.keys(r).find(t),n=()=>Array.from(document.querySelectorAll("[id]"));return hD()&&n().some(e)}function PV(){return R_()&&typeof Y4<"u"&&!!Object.keys(Y4).find(t=>t.includes("react"))}function DV(){return pd()&&Ih(window,"__VUE")}function LV(){return V1()&&Ih(global,"__VUE")}var Z4={};function UV(){return pd()&&Ih(window,"__SVELTE")}function zV(){return R_()&&typeof Z4<"u"&&!!Object.keys(Z4).find(t=>t.includes("svelte"))}function jV(){return pd()&&window.next&&typeof window.next=="object"}function FV(){return V1()&&(Ih(global,"__next")||Ih(global,"__NEXT"))}function BV(){return pd()&&(window.__NUXT__!==void 0||window.$nuxt!==void 0)}function $V(){return V1()&&typeof global.__NUXT_PATHS__<"u"}var X4={};function HV(){const t=!!(hD()&&document.querySelector("[ng-version]")),e=!!(pd()&&typeof window.ng<"u");return t||e}function qV(){return R_()&&typeof X4=="object"&&X4.npm_lifecycle_script?.startsWith("ng ")||!1}function WV(){return typeof navigator<"u"&&typeof navigator.product<"u"&&navigator.product==="ReactNative"}function VV(){return V1()&&typeof global.expo<"u"}function GV(){return pd()}const KV=[{platform:kn.Expo,detectionMethod:VV},{platform:kn.ReactNative,detectionMethod:WV},{platform:kn.NextJs,detectionMethod:jV},{platform:kn.Nuxt,detectionMethod:BV},{platform:kn.Angular,detectionMethod:HV},{platform:kn.React,detectionMethod:MV},{platform:kn.VueJs,detectionMethod:DV},{platform:kn.Svelte,detectionMethod:UV},{platform:kn.WebUnknown,detectionMethod:GV},{platform:kn.NextJsSSR,detectionMethod:FV},{platform:kn.NuxtSSR,detectionMethod:$V},{platform:kn.ReactSSR,detectionMethod:PV},{platform:kn.VueJsSSR,detectionMethod:LV},{platform:kn.AngularSSR,detectionMethod:qV},{platform:kn.SvelteSSR,detectionMethod:zV}];function YV(){return KV.find(t=>t.detectionMethod())?.platform||kn.ServerSideUnknown}let gh;const hS=[];let dE=!1;const ZV=10,XV=10,QV=1e3,pD=()=>{if(!gh){if(gh=YV(),dE)for(;hS.length;)hS.pop()?.();else hS.forEach(t=>{t()});Q4(kn.ServerSideUnknown,ZV),Q4(kn.WebUnknown,XV)}return gh};function JV(){gh=void 0}function Q4(t,e){gh===t&&!dE&&setTimeout(()=>{JV(),dE=!0,setTimeout(pD,QV)},e)}const wi={},so=t=>{wi[t.category]=t.apis.reduce((r,a)=>({...r,[a]:{refCount:r[a]?.refCount?r[a].refCount+1:1,additionalDetails:t.additionalDetails}}),wi[t.category]??{});let e=!1;return()=>{e||(e=!0,t.apis.forEach(r=>{const a=wi[t.category][r].refCount;a>1?wi[t.category][r].refCount=a-1:(delete wi[t.category][r],Object.keys(wi[t.category]).length||delete wi[t.category])}))}},eG=(t,e)=>wi[t]?.[e]?.additionalDetails,tG="aws-amplify",nG=t=>t.replace(/\+.*/,""),rG=({category:t,action:e}={})=>{const n=[[tG,nG(NV)]];if(t&&n.push([t,e]),n.push(["framework",pD()]),t&&e){const r=eG(t,e);r&&r.forEach(a=>{n.push(a)})}return n},G1=t=>rG(t).map(([r,a])=>r&&a?`${r}/${a}`:r).join(" "),K1=()=>typeof window<"u"&&typeof window.document<"u",J4=new or("Auth");class aG{configure(e,n){this.authConfig=e,this.authOptions=n,e&&e.Cognito?.userPoolEndpoint&&J4.warn(e5("Amazon Cognito User Pool")),e&&e.Cognito?.identityPoolEndpoint&&J4.warn(e5("Amazon Cognito Identity Pool"))}async fetchAuthSession(e={}){let n,r;const a=await this.getTokens(e);return a?(r=a.accessToken?.payload?.sub,n=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,tokens:a,authenticated:!0,forceRefresh:e.forceRefresh})):n=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,authenticated:!1,forceRefresh:e.forceRefresh}),{tokens:a,credentials:n?.credentials,identityId:n?.identityId,userSub:r}}async clearCredentials(){await this.authOptions?.credentialsProvider?.clearCredentialsAndIdentityId()}async getTokens(e){return await this.authOptions?.tokenProvider?.getTokens(e)??void 0}}const e5=t=>`You are using a custom Amazon ${t} endpoint, ensure the endpoint is correct.`;class sG{constructor(){this.oAuthListener=void 0,this.isConfigured=!1,this.resourcesConfig={},this.libraryOptions={},this.Auth=new aG}configure(e,n){const r=dD(e);this.resourcesConfig=r,n&&(this.libraryOptions=n),this.resourcesConfig=lD(this.resourcesConfig),this.Auth.configure(this.resourcesConfig.Auth,this.libraryOptions.Auth),(this.resourcesConfig.Analytics?.Pinpoint||this.resourcesConfig.Notifications?.InAppMessaging?.Pinpoint||this.resourcesConfig.Notifications?.PushNotification?.Pinpoint)&&console.warn("AWS will end support for Amazon Pinpoint on October 30, 2026. The guidance is to use AWS End User Messaging for push notifications and SMS, Amazon Simple Email Service for sending emails, Amazon Connect for campaigns, journeys, endpoints, and engagement analytics. Pinpoint recommends Amazon Kinesis for event collection and mobile analytics."),Is.dispatch("core",{event:"configure",data:this.resourcesConfig},"Configure",Rs),this.notifyOAuthListener(),this.isConfigured=!0}getConfig(){return this.isConfigured||console.warn("Amplify has not been configured. Please call Amplify.configure() before using this service."),this.resourcesConfig}[uD](e){this.resourcesConfig.Auth?.Cognito.loginWith?.oauth?e(this.resourcesConfig.Auth?.Cognito):this.oAuthListener=e}notifyOAuthListener(){!this.resourcesConfig.Auth?.Cognito.loginWith?.oauth||!this.oAuthListener||(this.oAuthListener(this.resourcesConfig.Auth?.Cognito),this.oAuthListener=void 0)}}const qt=new sG,mD=(t,e)=>t.Auth.fetchAuthSession(e),Y1=t=>mD(qt,t);function gD(){return qt.Auth.clearCredentials()}const Z1=t=>{const{headers:e,statusCode:n}=t;return{...oG(t)?t.$metadata:{},httpStatusCode:n,requestId:e["x-amzn-requestid"]??e["x-amzn-request-id"]??e["x-amz-request-id"],extendedRequestId:e["x-amz-id-2"],cfId:e["x-amz-cf-id"]}},oG=t=>typeof t?.$metadata=="object",md=async t=>{if(!t||t.statusCode<300)return;const e=await cp(t),r=(i=>{const[u]=i.toString().split(/[,:]+/);return u.includes("#")?u.split("#")[1]:u})(t.headers["x-amzn-errortype"]??e.code??e.__type??"UnknownError"),a=e.message??e.Message??"Unknown error",s=new Error(a);return Object.assign(s,{name:r,$metadata:Z1(t)})},cp=async t=>{if(!t.body)throw new Error("Missing response payload");const e=await t.body.json();return Object.assign(e,{$metadata:Z1(t)})},In=(t,e,n,r)=>async(a,s)=>{const i={...r,...a},u=await i.endpointResolver(i,s),c=await e(s,u),f=await t(c,{...i});return n(f)},iG=300*1e3;function lG(t=iG){return r=>{const a=2**r*100+100*Math.random();return a>t?!1:a}}const vD=3,t5="amz-sdk-invocation-id",uG="amz-sdk-request",n5=300*1e3,yD=t=>{const n=lG(n5)(t);return n===!1?n5:n},cG=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],dG=t=>!!t&&cG.includes(t),bD=t=>async(e,n)=>{const r=n??await t(e)??void 0,a=r?.code||r?.name,s=e?.statusCode;return{retryable:mG(n)||pG(s,a)||dG(a)||gG(s,a)}},fG=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],hG=["TimeoutError","RequestTimeout","RequestTimeoutException"],pG=(t,e)=>t===429||!!e&&fG.includes(e),mG=t=>[Fi.NetworkError,"ERR_NETWORK"].includes(t?.name),gG=(t,e)=>!!t&&[500,502,503,504].includes(t)||!!e&&hG.includes(e),SD="cognito-identity",wD={service:SD,retryDecider:bD(md),computeDelay:yD,cache:"no-store"},vG=({maxAttempts:t=vD,retryDecider:e,computeDelay:n,abortSignal:r})=>{if(t<1)throw new Error("maxAttempts must be greater than 0");return(a,s)=>async function(u){let c,f=s.attemptsCount??0,h;const m=()=>{if(h)return r5(h,f),h;throw r5(c,f),c};for(;!r?.aborted&&f<t;){try{h=await a(u),c=void 0}catch(S){c=S,h=void 0}f=(s.attemptsCount??0)>f?s.attemptsCount??0:f+1,s.attemptsCount=f;const{isCredentialsExpiredError:g,retryable:y}=await e(h,c,s);if(y){if(s.isCredentialsExpired=!!g,!r?.aborted&&f<t){const S=n(f);await yG(S,r)}continue}else return m()}if(r?.aborted)throw new Error("Request aborted.");return m()}},yG=(t,e)=>{if(e?.aborted)return Promise.resolve();let n,r;const a=new Promise(s=>{r=s,n=setTimeout(s,t)});return e?.addEventListener("abort",function s(i){clearTimeout(n),e?.removeEventListener("abort",s),r()}),a},r5=(t,e)=>{Object.prototype.toString.call(t)==="[object Object]"&&(t.$metadata={...t.$metadata??{},attempts:e})},bG=lV,SG=()=>t=>async function(n){return n.headers[t5]||(n.headers[t5]=bG()),t(n)},wG=({maxAttempts:t=vD})=>(e,n)=>async function(a){const s=n.attemptsCount??0;return a.headers[uG]=`attempt=${s+1}; max=${t}`,e(a)},xG=({userAgentHeader:t="x-amz-user-agent",userAgentValue:e=""})=>n=>async function(a){if(e.trim().length===0)return await n(a);{const s=t.toLowerCase();return a.headers[s]=a.headers[s]?`${a.headers[s]} ${e}`:e,await n(a)}},I_=(t,e)=>(n,r)=>{const a={};let s=i=>t(i,r);for(let i=e.length-1;i>=0;i--){const u=e[i];s=u(r)(s,a)}return s(n)},pS=t=>{let e;return()=>(e||(e=t()),e)},CG=t=>!["HEAD","GET"].includes(t.toUpperCase()),EG=async({url:t,method:e,headers:n,body:r},{abortSignal:a,cache:s,withCrossDomainCredentials:i})=>{let u;try{u=await fetch(t,{method:e,headers:n,body:CG(e)?r:void 0,signal:a,cache:s,credentials:i?"include":"same-origin"})}catch(m){throw m instanceof TypeError?new Hr({name:Fi.NetworkError,message:"A network error has occurred.",underlyingError:m}):m}const c={};u.headers?.forEach((m,g)=>{c[g.toLowerCase()]=m});const f={statusCode:u.status,headers:c,body:null},h=Object.assign(u.body??{},{text:pS(()=>u.text()),blob:pS(()=>u.blob()),json:pS(()=>u.json())});return{...f,body:h}},xD=I_(EG,[xG,SG,vG,wG]),_G=()=>t=>async function(n){return n.headers["cache-control"]="no-store",t(n)},CD=I_(xD,[_G]),ED=t=>(e,n)=>{const r=kG(t),a=JSON.stringify(e);return AG(n,r,a)},kG=t=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${t}`}),AG=({url:t},e,n)=>({headers:e,url:t,body:n,method:"POST"}),a5=t=>In(CD,ED("GetCredentialsForIdentity"),TG,{...wD,...t,userAgentValue:G1()}),TG=async t=>{if(t.statusCode>=300)throw await md(t);const e=await cp(t);return{IdentityId:e.IdentityId,Credentials:RG(e.Credentials),$metadata:Z1(t)}},RG=({Expiration:t,...e}={})=>({...e,Expiration:t&&new Date(t*1e3)}),IG=t=>In(CD,ED("GetId"),OG,{...wD,...t,userAgentValue:G1()}),OG=async t=>{if(t.statusCode>=300)throw await md(t);return{IdentityId:(await cp(t)).IdentityId,$metadata:Z1(t)}},_D={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},NG={partitions:[_D,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},kD=t=>{const{partitions:e}=NG;for(const{regions:n,outputs:r,regionRegex:a}of e){const s=new RegExp(a);if(n.includes(t)||s.test(t))return r.dnsSuffix}return _D.outputs.dnsSuffix},Xi=URL,MG=({region:t})=>({url:new Xi(`https://${SD}.${t}.${kD(t)}`)});class th extends Hr{constructor(){super({name:Fi.PlatformNotSupported,message:"Function not supported on current platform"})}}class AD{constructor(e){this.storage=e}async setItem(e,n){if(!this.storage)throw new th;this.storage.setItem(e,n)}async getItem(e){if(!this.storage)throw new th;return this.storage.getItem(e)}async removeItem(e){if(!this.storage)throw new th;this.storage.removeItem(e)}async clear(){if(!this.storage)throw new th;this.storage.clear()}}class TD{constructor(){this.storage=new Map}get length(){return this.storage.size}key(e){return e>this.length-1?null:Array.from(this.storage.keys())[e]}setItem(e,n){this.storage.set(e,n)}getItem(e){return this.storage.get(e)??null}removeItem(e){this.storage.delete(e)}clear(){this.storage.clear()}}const RD=new or("CoreStorageUtils"),PG=()=>{try{if(typeof window<"u"&&window.localStorage)return window.localStorage}catch{RD.info("localStorage not found. InMemoryStorage is used as a fallback.")}return new TD},ID=()=>{try{if(typeof window<"u"&&window.sessionStorage)return window.sessionStorage.getItem("test"),window.sessionStorage;throw new Error("sessionStorage is not defined")}catch{return RD.info("sessionStorage not found. InMemoryStorage is used as a fallback."),new TD}};class DG extends AD{constructor(){super(PG())}}class LG extends AD{constructor(){super(ID())}}class UG{constructor(e){this._storage=e}get storage(){if(!this._storage)throw new th;return this._storage}setItem(e,n){this.storage.setItem(e,n)}getItem(e){return this.storage.getItem(e)}removeItem(e){this.storage.removeItem(e)}clear(){this.storage.clear()}}class zG extends UG{constructor(){super(ID())}}function Zm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)r!=="__proto__"&&(t[r]=n[r])}return t}var jG={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function fE(t,e){function n(a,s,i){if(!(typeof document>"u")){i=Zm({},e,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var c in i)i[c]&&(u+="; "+c,i[c]!==!0&&(u+="="+i[c].split(";")[0]));return document.cookie=a+"="+t.write(s,a)+u}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var s=document.cookie?document.cookie.split("; "):[],i={},u=0;u<s.length;u++){var c=s[u].split("="),f=c.slice(1).join("=");try{var h=decodeURIComponent(c[0]);if(h in i||(i[h]=t.read(f,h)),a===h)break}catch{}}return a?i[a]:i}}return Object.create({set:n,get:r,remove:function(a,s){n(a,"",Zm({},s,{expires:-1}))},withAttributes:function(a){return fE(this.converter,Zm({},this.attributes,a))},withConverter:function(a){return fE(Zm({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Xm=fE(jG,{path:"/"});class FG{constructor(e={}){const{path:n,domain:r,expires:a,sameSite:s,secure:i}=e;if(this.domain=r,this.path=n||"/",this.expires=Object.prototype.hasOwnProperty.call(e,"expires")?a:365,this.secure=Object.prototype.hasOwnProperty.call(e,"secure")?i:!0,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!s||!["strict","lax","none"].includes(s))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if(s==="none"&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=s}}async setItem(e,n){Xm.set(e,n,this.getData())}async getItem(e){return Xm.get(e)??null}async removeItem(e){Xm.remove(e,this.getData())}async clear(){const e=Xm.get(),n=Object.keys(e).map(r=>this.removeItem(r));await Promise.all(n)}getData(){return{path:this.path,expires:this.expires,domain:this.domain,secure:this.secure,...this.sameSite&&{sameSite:this.sameSite}}}}const dp=new DG;new LG;const yo=new zG,BG=new or("I18n");let $G=class{constructor(){this._options=null,this._lang=null,this._dict={}}setDefaultLanguage(){!this._lang&&typeof window<"u"&&window&&window.navigator&&(this._lang=window.navigator.language),BG.debug(this._lang)}setLanguage(e){this._lang=e}get(e,n=void 0){if(this.setDefaultLanguage(),!this._lang)return typeof n<"u"?n:e;const r=this._lang;let a=this.getByLanguage(e,r);return a||(r.indexOf("-")>0&&(a=this.getByLanguage(e,r.split("-")[0])),a)?a:typeof n<"u"?n:e}getByLanguage(e,n,r=null){if(!n)return r;const a=this._dict[n];return a?a[e]:r}putVocabulariesForLanguage(e,n){let r=this._dict[e];r||(r=this._dict[e]={}),this._dict[e]={...r,...n}}putVocabularies(e){Object.keys(e).forEach(n=>{this.putVocabulariesForLanguage(n,e[n])})}};var Tl;(function(t){t.NotConfigured="NotConfigured"})(Tl||(Tl={}));const HG={[Tl.NotConfigured]:{message:"i18n is not configured."}},Qm=q1(HG),s5=new or("I18n");let Jm={language:null},$a=null,OD=class _l{static configure(e){return s5.debug("configure I18n"),e&&(Jm=Object.assign({},Jm,e.I18n||e),_l.createInstance()),Jm}static getModuleName(){return"I18n"}static createInstance(){s5.debug("create I18n instance"),!$a&&($a=new $G)}static setLanguage(e){_l.checkConfig(),Qm(!!$a,Tl.NotConfigured),$a.setLanguage(e)}static get(e,n){return _l.checkConfig(),Qm(!!$a,Tl.NotConfigured),$a.get(e,n)}static putVocabulariesForLanguage(e,n){_l.checkConfig(),Qm(!!$a,Tl.NotConfigured),$a.putVocabulariesForLanguage(e,n)}static putVocabularies(e){_l.checkConfig(),Qm(!!$a,Tl.NotConfigured),$a.putVocabularies(e)}static checkConfig(){return $a||_l.createInstance(),!0}};OD.createInstance();const qG=t=>{const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=new Uint8Array(t);k_().getRandomValues(r);for(const a of r)n.push(e[a%e.length]);return n.join("")};function WG(t){return(t.match(/.{2}/g)||[]).map(n=>String.fromCharCode(parseInt(n,16))).join("")}function VG(t){return t.split("").map(e=>e.charCodeAt(0).toString(16).padStart(2,"0")).join("")}const GG=t=>{let e;return async(...n)=>e||(e=new Promise((r,a)=>{t(...n).then(s=>{r(s)}).catch(s=>{a(s)}).finally(()=>{e=void 0})}),e)};function o5({expiresAt:t,clockDrift:e,tolerance:n=5e3}){return Date.now()+e+n>t}const KG=async()=>{const{userAgentData:t}=navigator;if(!t)return navigator.userAgent;const{platform:e="",platformVersion:n="",model:r="",architecture:a="",fullVersionList:s=[]}=await t.getHighEntropyValues(["platform","platformVersion","architecture","model","fullVersionList"]),i=s.map(c=>`${c.brand}/${c.version}`).join(";");return[e,n,a,r,e,i].filter(c=>c).join(" ")||navigator.userAgent};function YG(t){return Array.from(t,e=>String.fromCodePoint(e)).join("")}const Gc={convert(t,e={urlSafe:!1,skipPadding:!1}){const n=typeof t=="string"?t:YG(t);let r=ZW()(n);return e.urlSafe&&(r=r.replace(/\+/g,"-").replace(/\//g,"_")),e.skipPadding&&(r=r.replace(/=/g,"")),r}};function ZG(){return k_().getRandomValues(new Uint32Array(1))[0]}function XG(t){const{words:e}=t,{sigBytes:n}=t,r=[];for(let a=0;a<n;a++){const s=e[a>>>2]>>>24-a%4*8&255;r.push((s>>>4).toString(16)),r.push((s&15).toString(16))}return r.join("")}class O_{constructor(e,n){this.words=[];let r=e;r=this.words=r||[],n!==void 0?this.sigBytes=n:this.sigBytes=r.length*4}random(e){const n=[];for(let r=0;r<e;r+=4)n.push(ZG());return new O_(n,e)}toString(){return XG(this)}}var Ye;(function(t){t.EmptySignInUsername="EmptySignInUsername",t.EmptySignInPassword="EmptySignInPassword",t.CustomAuthSignInPassword="CustomAuthSignInPassword",t.EmptySignUpUsername="EmptySignUpUsername",t.EmptySignUpPassword="EmptySignUpPassword",t.EmptyConfirmSignUpUsername="EmptyConfirmSignUpUsername",t.EmptyConfirmSignUpCode="EmptyConfirmSignUpCode",t.EmptyResendSignUpCodeUsername="EmptyresendSignUpCodeUsername",t.EmptyChallengeResponse="EmptyChallengeResponse",t.EmptyConfirmResetPasswordUsername="EmptyConfirmResetPasswordUsername",t.EmptyConfirmResetPasswordNewPassword="EmptyConfirmResetPasswordNewPassword",t.EmptyConfirmResetPasswordConfirmationCode="EmptyConfirmResetPasswordConfirmationCode",t.EmptyResetPasswordUsername="EmptyResetPasswordUsername",t.EmptyVerifyTOTPSetupCode="EmptyVerifyTOTPSetupCode",t.EmptyConfirmUserAttributeCode="EmptyConfirmUserAttributeCode",t.IncorrectMFAMethod="IncorrectMFAMethod",t.EmptyUpdatePassword="EmptyUpdatePassword",t.InvalidPreferredChallenge="InvalidPreferredChallenge"})(Ye||(Ye={}));const ND={[Ye.EmptyChallengeResponse]:{message:"challengeResponse is required to confirmSignIn"},[Ye.EmptyConfirmResetPasswordUsername]:{message:"username is required to confirmResetPassword"},[Ye.EmptyConfirmSignUpCode]:{message:"code is required to confirmSignUp"},[Ye.EmptyConfirmSignUpUsername]:{message:"username is required to confirmSignUp"},[Ye.EmptyConfirmResetPasswordConfirmationCode]:{message:"confirmationCode is required to confirmResetPassword"},[Ye.EmptyConfirmResetPasswordNewPassword]:{message:"newPassword is required to confirmResetPassword"},[Ye.EmptyResendSignUpCodeUsername]:{message:"username is required to confirmSignUp"},[Ye.EmptyResetPasswordUsername]:{message:"username is required to resetPassword"},[Ye.EmptySignInPassword]:{message:"password is required to signIn"},[Ye.EmptySignInUsername]:{message:"username is required to signIn"},[Ye.EmptySignUpPassword]:{message:"password is required to signUp"},[Ye.EmptySignUpUsername]:{message:"username is required to signUp"},[Ye.CustomAuthSignInPassword]:{message:"A password is not needed when signing in with CUSTOM_WITHOUT_SRP",recoverySuggestion:"Do not include a password in your signIn call."},[Ye.IncorrectMFAMethod]:{message:"Incorrect MFA method was chosen. It should be either SMS, TOTP, or EMAIL",recoverySuggestion:"Try to pass SMS, TOTP, or EMAIL as the challengeResponse"},[Ye.EmptyVerifyTOTPSetupCode]:{message:"code is required to verifyTotpSetup"},[Ye.EmptyUpdatePassword]:{message:"oldPassword and newPassword are required to changePassword"},[Ye.EmptyConfirmUserAttributeCode]:{message:"confirmation code is required to confirmUserAttribute"},[Ye.InvalidPreferredChallenge]:{message:"The preferred challenge is not enabled in your backend configuration",recoverySuggestion:"Ensure the authentication method is enabled in your Amplify backend configuration"}};var Hn;(function(t){t.DEFAULT_MSG="Authentication Error",t.EMPTY_EMAIL="Email cannot be empty",t.EMPTY_PHONE="Phone number cannot be empty",t.EMPTY_USERNAME="Username cannot be empty",t.INVALID_USERNAME="The username should either be a string or one of the sign in types",t.EMPTY_PASSWORD="Password cannot be empty",t.EMPTY_CODE="Confirmation code cannot be empty",t.SIGN_UP_ERROR="Error creating account",t.NO_MFA="No valid MFA method provided",t.INVALID_MFA="Invalid MFA type",t.EMPTY_CHALLENGE="Challenge response cannot be empty",t.NO_USER_SESSION="Failed to get the session because the user is empty",t.NETWORK_ERROR="Network Error",t.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",t.AUTOSIGNIN_ERROR="Please use your credentials to sign in",t.OAUTH_ERROR="Couldn't finish OAuth flow, check your User Pool HostedUI settings"})(Hn||(Hn={}));var Os;(function(t){t.SignInException="SignInException",t.OAuthSignInError="OAuthSignInException"})(Os||(Os={}));class ze extends Hr{constructor(e){super(e),this.constructor=ze,Object.setPrototypeOf(this,ze.prototype)}}function pn(t,e){const{message:n,recoverySuggestion:r}=ND[e];if(!t)throw new ze({name:e,message:n,recoverySuggestion:r})}function bt(t){const e=t?.split("_")[0];if(!t||t.indexOf("_")<0||!e||typeof e!="string")throw new ze({name:"InvalidUserPoolId",message:"Invalid user pool id provided."});return e}function hE(t){if(!t||!t.includes(":"))throw new ze({name:"InvalidIdentityPoolIdException",message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."});return t.split(":")[0]}function i5(t){return Object.entries(t).map(([e,n])=>({Name:e,Value:n}))}function QG(t){const e={};return t?.forEach(n=>{n.Name&&(e[n.Name]=n.Value)}),e}var l5;(function(t){t.ConcurrentModificationException="ConcurrentModificationException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException"})(l5||(l5={}));var u5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(u5||(u5={}));var c5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UsernameExistsException="UsernameExistsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(c5||(c5={}));var d5;(function(t){t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyFailedAttemptsException="TooManyFailedAttemptsException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(d5||(d5={}));var f5;(function(t){t.AliasExistsException="AliasExistsException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyFailedAttemptsException="TooManyFailedAttemptsException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotFoundException="UserNotFoundException"})(f5||(f5={}));var h5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(h5||(h5={}));var p5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(p5||(p5={}));var m5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(m5||(m5={}));var g5;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotFoundException="UserNotFoundException"})(g5||(g5={}));var v5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(v5||(v5={}));var y5;(function(t){t.ExternalServiceException="ExternalServiceException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceConflictException="ResourceConflictException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException"})(y5||(y5={}));var b5;(function(t){t.ExternalServiceException="ExternalServiceException",t.InternalErrorException="InternalErrorException",t.InvalidIdentityPoolConfigurationException="InvalidIdentityPoolConfigurationException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceConflictException="ResourceConflictException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException"})(b5||(b5={}));var S5;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(S5||(S5={}));var w5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException"})(w5||(w5={}));var P0;(function(t){t.PasswordResetRequiredException="PasswordResetRequiredException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(P0||(P0={}));var x5;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotFoundException="UserNotFoundException"})(x5||(x5={}));var C5;(function(t){t.AliasExistsException="AliasExistsException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.MFAMethodNotFoundException="MFAMethodNotFoundException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(C5||(C5={}));var E5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(E5||(E5={}));var pE;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UsernameExistsException="UsernameExistsException"})(pE||(pE={}));var _5;(function(t){t.AliasExistsException="AliasExistsException",t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(_5||(_5={}));var k5;(function(t){t.CodeMismatchException="CodeMismatchException",t.EnableSoftwareTokenMFAException="EnableSoftwareTokenMFAException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(k5||(k5={}));var A5;(function(t){t.AliasExistsException="AliasExistsException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(A5||(A5={}));var T5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(T5||(T5={}));var R5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(R5||(R5={}));const X1="UserUnAuthenticatedException",JG="UserAlreadyAuthenticatedException",eK="DeviceMetadataNotFoundException",MD="AutoSignInException",tK="InvalidRedirectException",nK="InvalidAppSchemeException",rK="InvalidPreferredRedirectUrlException",aK=new ze({name:tK,message:"signInRedirect or signOutRedirect had an invalid format or was not found.",recoverySuggestion:"Please make sure the signIn/Out redirect in your oauth config is valid."});new ze({name:nK,message:"A valid non-http app scheme was not found in the config.",recoverySuggestion:"Please make sure a valid custom app scheme is present in the config."});new ze({name:rK,message:"The given preferredRedirectUrl does not match any items in the redirectSignOutUrls array from the config.",recoverySuggestion:"Please make sure a matching preferredRedirectUrl is provided."});const sK="InvalidOriginException",oK=new ze({name:sK,message:"redirect is coming from a different origin. The oauth flow needs to be initiated from the same origin",recoverySuggestion:"Please call signInWithRedirect from the same origin."}),iK="OAuthSignOutException",lK="TokenRefreshException",uK="UnexpectedSignInInterruptionException";function gd(t){if(!t||!t.accessToken)throw new ze({name:X1,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}function cK(t){if(!t||!t.idToken)throw new ze({name:X1,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}const dK=new ze({name:lK,message:`Token refresh is not supported when authenticated with the 'implicit grant' (token) oauth flow.
3
3
  Please change your oauth configuration to use 'code grant' flow.`,recoverySuggestion:`Please logout and change your Amplify configuration to use "code grant" flow.
4
4
  E.g { responseType: 'code' }`}),fK=new ze({name:X1,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."});function PD(t){if(mK(t))throw dK;if(!pK(t))throw fK}function DD(t){if(!t||!t.deviceKey||!t.deviceGroupKey||!t.randomPassword)throw new ze({name:eK,message:"Either deviceKey, deviceGroupKey or secretPassword were not found during the sign-in process.",recoverySuggestion:"Make sure to not clear storage after calling the signIn API."})}const hK={inflightOAuth:"inflightOAuth",oauthSignIn:"oauthSignIn",oauthPKCE:"oauthPKCE",oauthState:"oauthState"};function LD(t){return t?.accessToken||t?.idToken}function pK(t){return LD(t)&&t?.refreshToken}function mK(t){return LD(t)&&!t?.refreshToken}const gK=async t=>{const e=t.getConfig().Auth?.Cognito;ut(e);const n=await t.Auth.getTokens({forceRefresh:!1});gd(n);const{"cognito:username":r,sub:a}=n.idToken?.payload??{},s={username:r,userId:a},i=vK(n);return i&&(s.signInDetails=i),s};function vK(t){return t?.signInDetails}const Q1=async()=>gK(qt),Mt=(t,e)=>G1({category:Oa.Auth,action:t,...e}),Vn=t=>(e,n)=>{const r=yK(t),a=JSON.stringify(e);return bK(n,r,a)},yK=t=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${t}`}),bK=({url:t},e,n)=>({headers:e,url:t,body:n,method:"POST"});function Na(t){if(!t||t.name==="Error"||t instanceof TypeError)throw new ze({name:Fi.Unknown,message:"An unknown error has occurred.",underlyingError:t})}const lr=()=>async t=>{if(t.statusCode>=300){const e=await md(t);throw Na(e),new ze({name:e.name,message:e.message,metadata:e.$metadata})}return cp(t)},SK=()=>(t,e)=>async function(r){return r.headers={...r.headers,"cache-control":"no-store",...await qt.libraryOptions?.Auth?.headers?.()},t(r)},Gn=I_(xD,[SK]),UD="cognito-idp",Kn={service:UD,retryDecider:bD(md),computeDelay:yD,get userAgentValue(){return G1()},cache:"no-store"},fp=t=>In(Gn,Vn("InitiateAuth"),lr(),{...Kn,...t}),ua=t=>In(Gn,Vn("RespondToAuthChallenge"),lr(),{...Kn,...t}),wK=t=>In(Gn,Vn("VerifySoftwareToken"),lr(),{...Kn,...t}),xK=t=>In(Gn,Vn("AssociateSoftwareToken"),lr(),{...Kn,...t}),CK=({region:t})=>({url:new Xi(`https://${UD}.${t}.${kD(t)}`)}),St=({endpointOverride:t})=>e=>t?{url:new Xi(t)}:CK(e),EK=t=>In(Gn,Vn("GetTokensFromRefreshToken"),lr(),{...Kn,...t}),_K=async({tokens:t,authConfig:e,username:n,clientMetadata:r})=>{ut(e?.Cognito);const{userPoolId:a,userPoolClientId:s,userPoolEndpoint:i}=e.Cognito,u=bt(a);PD(t);const c=EK({endpointResolver:St({endpointOverride:i})}),{AuthenticationResult:f}=await c({region:u},{ClientId:s,RefreshToken:t.refreshToken,DeviceKey:t.deviceMetadata?.deviceKey,ClientMetadata:r}),h=Co(f?.AccessToken??""),m=f?.IdToken?Co(f.IdToken):void 0,{iat:g}=h.payload;if(!g)throw new ze({name:"iatNotFoundException",message:"iat not found in access token"});const y=g*1e3-new Date().getTime();return{accessToken:h,idToken:m,clockDrift:y,refreshToken:f?.RefreshToken??t.refreshToken,username:n}},kK=GG(_K),AK={accessToken:"accessToken",idToken:"idToken",oidcProvider:"oidcProvider",clockDrift:"clockDrift",refreshToken:"refreshToken",deviceKey:"deviceKey",randomPasswordKey:"randomPasswordKey",deviceGroupKey:"deviceGroupKey",signInDetails:"signInDetails",oauthMetadata:"oauthMetadata"};var D0;(function(t){t.InvalidAuthTokens="InvalidAuthTokens"})(D0||(D0={}));const TK={[D0.InvalidAuthTokens]:{message:"Invalid tokens.",recoverySuggestion:"Make sure the tokens are valid."}},RK=q1(TK),I5="CognitoIdentityServiceProvider";class IK{getKeyValueStorage(){if(!this.keyValueStorage)throw new ze({name:"KeyValueStorageNotFoundException",message:"KeyValueStorage was not found in TokenStore"});return this.keyValueStorage}setKeyValueStorage(e){this.keyValueStorage=e}setAuthConfig(e){this.authConfig=e}async loadTokens(){try{const e=await this.getAuthKeys(),n=await this.getKeyValueStorage().getItem(e.accessToken);if(!n)throw new ze({name:"NoSessionFoundException",message:"Auth session was not found. Make sure to call signIn."});const r=Co(n),a=await this.getKeyValueStorage().getItem(e.idToken),s=a?Co(a):void 0,i=await this.getKeyValueStorage().getItem(e.refreshToken)??void 0,u=await this.getKeyValueStorage().getItem(e.clockDrift)??"0",c=Number.parseInt(u),f=await this.getKeyValueStorage().getItem(e.signInDetails),h={accessToken:r,idToken:s,refreshToken:i,deviceMetadata:await this.getDeviceMetadata()??void 0,clockDrift:c,username:await this.getLastAuthUser()};return f&&(h.signInDetails=JSON.parse(f)),h}catch{return null}}async storeTokens(e){RK(e!==void 0,D0.InvalidAuthTokens);const n=e.username;await this.getKeyValueStorage().setItem(this.getLastAuthUserKey(),n);const r=await this.getAuthKeys();await this.getKeyValueStorage().setItem(r.accessToken,e.accessToken.toString()),e.idToken?await this.getKeyValueStorage().setItem(r.idToken,e.idToken.toString()):await this.getKeyValueStorage().removeItem(r.idToken),e.refreshToken?await this.getKeyValueStorage().setItem(r.refreshToken,e.refreshToken):await this.getKeyValueStorage().removeItem(r.refreshToken),e.deviceMetadata&&(e.deviceMetadata.deviceKey&&await this.getKeyValueStorage().setItem(r.deviceKey,e.deviceMetadata.deviceKey),e.deviceMetadata.deviceGroupKey&&await this.getKeyValueStorage().setItem(r.deviceGroupKey,e.deviceMetadata.deviceGroupKey),await this.getKeyValueStorage().setItem(r.randomPasswordKey,e.deviceMetadata.randomPassword)),e.signInDetails?await this.getKeyValueStorage().setItem(r.signInDetails,JSON.stringify(e.signInDetails)):await this.getKeyValueStorage().removeItem(r.signInDetails),await this.getKeyValueStorage().setItem(r.clockDrift,`${e.clockDrift}`)}async clearTokens(){const e=await this.getAuthKeys();await Promise.all([this.getKeyValueStorage().removeItem(e.accessToken),this.getKeyValueStorage().removeItem(e.idToken),this.getKeyValueStorage().removeItem(e.clockDrift),this.getKeyValueStorage().removeItem(e.refreshToken),this.getKeyValueStorage().removeItem(e.signInDetails),this.getKeyValueStorage().removeItem(this.getLastAuthUserKey()),this.getKeyValueStorage().removeItem(e.oauthMetadata)])}async getDeviceMetadata(e){const n=await this.getAuthKeys(e),r=await this.getKeyValueStorage().getItem(n.deviceKey),a=await this.getKeyValueStorage().getItem(n.deviceGroupKey),s=await this.getKeyValueStorage().getItem(n.randomPasswordKey);return s&&a&&r?{deviceKey:r,deviceGroupKey:a,randomPassword:s}:null}async clearDeviceMetadata(e){const n=await this.getAuthKeys(e);await Promise.all([this.getKeyValueStorage().removeItem(n.deviceKey),this.getKeyValueStorage().removeItem(n.deviceGroupKey),this.getKeyValueStorage().removeItem(n.randomPasswordKey)])}async getAuthKeys(e){ut(this.authConfig?.Cognito);const n=e??await this.getLastAuthUser();return OK(I5,`${this.authConfig.Cognito.userPoolClientId}.${n}`)}getLastAuthUserKey(){ut(this.authConfig?.Cognito);const e=this.authConfig.Cognito.userPoolClientId;return`${I5}.${e}.LastAuthUser`}async getLastAuthUser(){return await this.getKeyValueStorage().getItem(this.getLastAuthUserKey())??"username"}async setOAuthMetadata(e){const{oauthMetadata:n}=await this.getAuthKeys();await this.getKeyValueStorage().setItem(n,JSON.stringify(e))}async getOAuthMetadata(){const{oauthMetadata:e}=await this.getAuthKeys(),n=await this.getKeyValueStorage().getItem(e);return n&&JSON.parse(n)}}const OK=(t,e)=>N_(AK)(`${t}`,e);function N_(t){const e=Object.values({...t});return(n,r)=>e.reduce((a,s)=>({...a,[s]:`${n}.${r}.${s}`}),{})}const O5="amplify-signin-with-hostedUI",ms="CognitoIdentityServiceProvider";class zD{constructor(e){this.keyValueStorage=e}async clearOAuthInflightData(){ut(this.cognitoConfig);const e=gs(ms,this.cognitoConfig.userPoolClientId);await Promise.all([this.keyValueStorage.removeItem(e.inflightOAuth),this.keyValueStorage.removeItem(e.oauthPKCE),this.keyValueStorage.removeItem(e.oauthState)])}async clearOAuthData(){ut(this.cognitoConfig);const e=gs(ms,this.cognitoConfig.userPoolClientId);return await this.clearOAuthInflightData(),await this.keyValueStorage.removeItem(O5),this.keyValueStorage.removeItem(e.oauthSignIn)}loadOAuthState(){ut(this.cognitoConfig);const e=gs(ms,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthState)}storeOAuthState(e){ut(this.cognitoConfig);const n=gs(ms,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthState,e)}loadPKCE(){ut(this.cognitoConfig);const e=gs(ms,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthPKCE)}storePKCE(e){ut(this.cognitoConfig);const n=gs(ms,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthPKCE,e)}setAuthConfig(e){this.cognitoConfig=e}async loadOAuthInFlight(){ut(this.cognitoConfig);const e=gs(ms,this.cognitoConfig.userPoolClientId);return await this.keyValueStorage.getItem(e.inflightOAuth)==="true"}async storeOAuthInFlight(e){ut(this.cognitoConfig);const n=gs(ms,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(n.inflightOAuth,`${e}`)}async loadOAuthSignIn(){ut(this.cognitoConfig);const e=gs(ms,this.cognitoConfig.userPoolClientId),n=await this.keyValueStorage.getItem(O5),[r,a]=(await this.keyValueStorage.getItem(e.oauthSignIn))?.split(",")??[];return{isOAuthSignIn:r==="true"||n==="true",preferPrivateSession:a==="true"}}async storeOAuthSignIn(e,n=!1){ut(this.cognitoConfig);const r=gs(ms,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(r.oauthSignIn,`${e},${n}`)}}const gs=(t,e)=>N_(hK)(t,e),jr=new zD(dp),mE=[],NK=t=>{mE.push(t)},jD=()=>{for(;mE.length;)mE.pop()?.()};class MK{constructor(){this.waitForInflightOAuth=K1()?async()=>{if(await jr.loadOAuthInFlight())return this.inflightPromise?this.inflightPromise:(this.inflightPromise=new Promise((e,n)=>{NK(e)}),this.inflightPromise)}:async()=>{}}setAuthConfig(e){jr.setAuthConfig(e.Cognito),this.authConfig=e}setTokenRefresher(e){this.tokenRefresher=e}setAuthTokenStore(e){this.tokenStore=e}getTokenStore(){if(!this.tokenStore)throw new ze({name:"EmptyTokenStoreException",message:"TokenStore not set"});return this.tokenStore}getTokenRefresher(){if(!this.tokenRefresher)throw new ze({name:"EmptyTokenRefresherException",message:"TokenRefresher not set"});return this.tokenRefresher}setClientMetadataProvider(e){this.clientMetadataProvider=e}async getTokens(e){let n;try{ut(this.authConfig?.Cognito)}catch{return null}await this.waitForInflightOAuth(),this.inflightPromise=void 0,n=await this.getTokenStore().loadTokens();const r=await this.getTokenStore().getLastAuthUser();if(n===null)return null;const a=!!n?.idToken&&o5({expiresAt:(n.idToken?.payload?.exp??0)*1e3,clockDrift:n.clockDrift??0}),s=o5({expiresAt:(n.accessToken?.payload?.exp??0)*1e3,clockDrift:n.clockDrift??0});return(e?.forceRefresh||a||s)&&(n=await this.refreshTokens({tokens:n,username:r,clientMetadata:e?.clientMetadata??await this.clientMetadataProvider?.()}),n===null)?null:{accessToken:n?.accessToken,idToken:n?.idToken,signInDetails:n?.signInDetails}}async refreshTokens({tokens:e,username:n,clientMetadata:r}){try{const{signInDetails:a}=e,s=await this.getTokenRefresher()({tokens:e,authConfig:this.authConfig,username:n,clientMetadata:r});return s.signInDetails=a,await this.setTokens({tokens:s}),Is.dispatch("auth",{event:"tokenRefresh"},"Auth",Rs),s}catch(a){return this.handleErrors(a)}}handleErrors(e){if(Na(e),this.isAuthenticationError(e)&&this.clearTokens(),Is.dispatch("auth",{event:"tokenRefresh_failure",data:{error:e}},"Auth",Rs),e.name.startsWith("NotAuthorizedException"))return null;throw e}isAuthenticationError(e){return["NotAuthorizedException","TokenRevokedException","UserNotFoundException","PasswordResetRequiredException","UserNotConfirmedException","RefreshTokenReuseException"].some(r=>e?.name?.startsWith?.(r))}async setTokens({tokens:e}){return this.getTokenStore().storeTokens(e)}async clearTokens(){return this.getTokenStore().clearTokens()}getDeviceMetadata(e){return this.getTokenStore().getDeviceMetadata(e)}clearDeviceMetadata(e){return this.getTokenStore().clearDeviceMetadata(e)}setOAuthMetadata(e){return this.getTokenStore().setOAuthMetadata(e)}getOAuthMetadata(){return this.getTokenStore().getOAuthMetadata()}}class PK{constructor(){this.authTokenStore=new IK,this.authTokenStore.setKeyValueStorage(dp),this.tokenOrchestrator=new MK,this.tokenOrchestrator.setAuthTokenStore(this.authTokenStore),this.tokenOrchestrator.setTokenRefresher(kK)}getTokens(e={}){return this.tokenOrchestrator.getTokens(e)}setKeyValueStorage(e){this.authTokenStore.setKeyValueStorage(e)}setClientMetadataProvider(e){this.tokenOrchestrator.setClientMetadataProvider(e)}setAuthConfig(e){this.authTokenStore.setAuthConfig(e),this.tokenOrchestrator.setAuthConfig(e)}}const r0=new PK,{tokenOrchestrator:qr}=r0;async function Mo(t){if(t.AccessToken){const e=Co(t.AccessToken),n=(e.payload.iat||0)*1e3,r=new Date().getTime(),a=n>0?n-r:0;let s,i,u;t.RefreshToken&&(i=t.RefreshToken),t.IdToken&&(s=Co(t.IdToken)),t?.NewDeviceMetadata&&(u=t.NewDeviceMetadata);const c={accessToken:e,idToken:s,refreshToken:i,clockDrift:a,deviceMetadata:u,username:t.username};t?.signInDetails&&(c.signInDetails=t.signInDetails),await qr.setTokens({tokens:c})}else throw new Hr({message:"Invalid tokens",name:"InvalidTokens",recoverySuggestion:"Check Cognito UserPool settings"})}const DK="Unable to get user session following successful sign-in.",Qi=async()=>{try{Is.dispatch("auth",{event:"signedIn",data:await Q1()},"Auth",Rs)}catch(t){throw t.name===X1?new ze({name:uK,message:DK,recoverySuggestion:"This most likely is due to auth tokens not being persisted. If you are using cookie store, please ensure cookies can be correctly set from your server."}):t}};function FD(){return{active:!1}}const LK=(t,e)=>{switch(e.type){case"SET_USERNAME":return{...t,username:e.value};case"SET_SESSION":return{...t,session:e.value};case"START":return{...t,active:!0};case"RESET":return FD();default:return t}},UK=t=>{let e=t(FD(),{type:"RESET"});return{getState:()=>e,dispatch:n=>{e=t(e,n)}}},Mi=UK(LK),zK=180*1e3,eg="CognitoSignInState",bo={username:`${eg}.username`,challengeName:`${eg}.challengeName`,signInSession:`${eg}.signInSession`,expiry:`${eg}.expiry`},jK=(t,e)=>{switch(e.type){case"SET_SIGN_IN_SESSION":return tg({signInSession:e.value}),{...t,signInSession:e.value};case"SET_SIGN_IN_STATE":return tg(e.value),{...e.value};case"SET_CHALLENGE_NAME":return tg({challengeName:e.value}),{...t,challengeName:e.value};case"SET_USERNAME":return tg({username:e.value}),{...t,username:e.value};case"SET_INITIAL_STATE":return BK();case"RESET_STATE":return BD(),M_();default:return t}},FK=t=>{const e=Number(t),n=Date.now();return e<=n},es=()=>{Ns.dispatch({type:"RESET_STATE"})},BD=()=>{for(const t of Object.values(bo))yo.removeItem(t)},M_=()=>({username:void 0,challengeName:void 0,signInSession:void 0}),BK=()=>{const t=yo.getItem(bo.expiry);if(!t||FK(t))return BD(),M_();const e=yo.getItem(bo.username)??void 0,n=yo.getItem(bo.challengeName)??void 0,r=yo.getItem(bo.signInSession)??void 0;return{username:e,challengeName:n,signInSession:r}},$K=t=>{let e=t(M_(),{type:"SET_INITIAL_STATE"});return{getState:()=>e,dispatch:n=>{e=t(e,n)}}},Ns=$K(jK);function iu(t){Ns.dispatch({type:"SET_SIGN_IN_STATE",value:t})}const tg=({challengeName:t,signInSession:e,username:n})=>{n&&yo.setItem(bo.username,n),t&&yo.setItem(bo.challengeName,t),e&&(yo.setItem(bo.signInSession,e),yo.setItem(bo.expiry,String(Date.now()+zK)))},N5="Passkeys may not be supported on this device. Ensure your application is running in a secure context (HTTPS) and Web Authentication API is supported.";class Ia extends Hr{constructor(e){super(e),this.constructor=Ia,Object.setPrototypeOf(this,Ia.prototype)}}var $t;(function(t){t.PasskeyNotSupported="PasskeyNotSupported",t.PasskeyAlreadyExists="PasskeyAlreadyExists",t.InvalidPasskeyRegistrationOptions="InvalidPasskeyRegistrationOptions",t.InvalidPasskeyAuthenticationOptions="InvalidPasskeyAuthenticationOptions",t.RelyingPartyMismatch="RelyingPartyMismatch",t.PasskeyRegistrationFailed="PasskeyRegistrationFailed",t.PasskeyRetrievalFailed="PasskeyRetrievalFailed",t.PasskeyRegistrationCanceled="PasskeyRegistrationCanceled",t.PasskeyAuthenticationCanceled="PasskeyAuthenticationCanceled",t.PasskeyOperationAborted="PasskeyOperationAborted"})($t||($t={}));const mS="User may have canceled the ceremony or another interruption has occurred. Check underlying error for details.",M5="Ensure your user pool is configured to support the WEB_AUTHN as an authentication factor.",Kc={[$t.PasskeyNotSupported]:{message:"Passkeys may not be supported on this device.",recoverySuggestion:N5},[$t.InvalidPasskeyRegistrationOptions]:{message:"Invalid passkey registration options.",recoverySuggestion:M5},[$t.InvalidPasskeyAuthenticationOptions]:{message:"Invalid passkey authentication options.",recoverySuggestion:M5},[$t.PasskeyRegistrationFailed]:{message:"Device failed to create passkey.",recoverySuggestion:N5},[$t.PasskeyRetrievalFailed]:{message:"Device failed to retrieve passkey.",recoverySuggestion:"Passkeys may not be available on this device. Try an alternative authentication factor like PASSWORD, EMAIL_OTP, or SMS_OTP."},[$t.PasskeyAlreadyExists]:{message:"Passkey already exists in authenticator.",recoverySuggestion:"Proceed with existing passkey or try again after deleting the credential."},[$t.PasskeyRegistrationCanceled]:{message:"Passkey registration ceremony has been canceled.",recoverySuggestion:mS},[$t.PasskeyAuthenticationCanceled]:{message:"Passkey authentication ceremony has been canceled.",recoverySuggestion:mS},[$t.PasskeyOperationAborted]:{message:"Passkey operation has been aborted.",recoverySuggestion:mS},[$t.RelyingPartyMismatch]:{message:"Relying party does not match current domain.",recoverySuggestion:"Ensure relying party identifier matches current domain."}},vd=q1(Kc,Ia),$D=t=>{if(t instanceof Error){if(t.name==="AbortError"){const{message:e,recoverySuggestion:n}=Kc[$t.PasskeyOperationAborted];return new Ia({name:$t.PasskeyOperationAborted,message:e,recoverySuggestion:n,underlyingError:t})}if(t.name==="SecurityError"){const{message:e,recoverySuggestion:n}=Kc[$t.RelyingPartyMismatch];return new Ia({name:$t.RelyingPartyMismatch,message:e,recoverySuggestion:n,underlyingError:t})}}return new Ia({name:Fi.Unknown,message:"An unknown error has occurred.",underlyingError:t})},HK=t=>{if(t instanceof Ia)return t;if(t instanceof Error&&t.name==="NotAllowedError"){const{message:e,recoverySuggestion:n}=Kc[$t.PasskeyAuthenticationCanceled];return new Ia({name:$t.PasskeyAuthenticationCanceled,message:e,recoverySuggestion:n,underlyingError:t})}return $D(t)},HD=()=>K1()&&window.isSecureContext&&"credentials"in navigator&&typeof window.PublicKeyCredential=="function",ks=t=>Gc.convert(new Uint8Array(t),{urlSafe:!0,skipPadding:!0}),vh=t=>Uint8Array.from(A_.convert(t,{urlSafe:!0}),e=>e.charCodeAt(0)).buffer,qK=t=>{const e=vh(t.user.id),n=vh(t.challenge),r=(t.excludeCredentials||[]).map(a=>({...a,id:vh(a.id)}));return{...t,excludeCredentials:r,challenge:n,user:{...t.user,id:e}}},WK=t=>{const e={clientDataJSON:ks(t.response.clientDataJSON),attestationObject:ks(t.response.attestationObject),transports:t.response.getTransports(),publicKeyAlgorithm:t.response.getPublicKeyAlgorithm(),authenticatorData:ks(t.response.getAuthenticatorData())},n=t.response.getPublicKey();n&&(e.publicKey=ks(n));const r={type:t.type,id:t.id,rawId:ks(t.rawId),clientExtensionResults:t.getClientExtensionResults(),response:e};return t.authenticatorAttachment&&(r.authenticatorAttachment=t.authenticatorAttachment),r},VK=t=>{const e=vh(t.challenge),n=(t.allowCredentials||[]).map(r=>({...r,id:vh(r.id)}));return{...t,challenge:e,allowCredentials:n}},GK=t=>{const e={clientDataJSON:ks(t.response.clientDataJSON),authenticatorData:ks(t.response.authenticatorData),signature:ks(t.response.signature)};t.response.userHandle&&(e.userHandle=ks(t.response.userHandle));const n={id:t.id,rawId:ks(t.rawId),type:t.type,clientExtensionResults:t.getClientExtensionResults(),response:e};return t.authenticatorAttachment&&(n.authenticatorAttachment=t.authenticatorAttachment),n};function KK(t){vd([!!t,!!t?.challenge,!!t?.user,!!t?.rp,!!t?.pubKeyCredParams].every(Boolean),$t.InvalidPasskeyRegistrationOptions)}function YK(t){vd(t&&t instanceof PublicKeyCredential&&t.response instanceof AuthenticatorAttestationResponse,$t.PasskeyRegistrationFailed)}function ZK(t){vd(t&&t instanceof PublicKeyCredential&&t.response instanceof AuthenticatorAssertionResponse,$t.PasskeyRetrievalFailed)}const XK=async t=>{try{const e=HD();vd(e,$t.PasskeyNotSupported);const n=VK(t),r=await navigator.credentials.get({publicKey:n});return ZK(r),GK(r)}catch(e){throw HK(e)}},QK=t=>In(Gn,Vn("ConfirmDevice"),lr(),{...Kn,...t}),a0={convert(t){return new TextEncoder().encode(t)}};function Re(t,e){t!=null&&this.fromString(t,e)}function kr(){return new Re(null,null)}let Li;const JK=0xdeadbeefcafe,P5=(JK&16777215)===15715070;function eY(t,e,n,r,a,s){for(;--s>=0;){const i=e*this[t++]+n[r]+a;a=Math.floor(i/67108864),n[r++]=i&67108863}return a}function tY(t,e,n,r,a,s){const i=e&32767,u=e>>15;for(;--s>=0;){let c=this[t]&32767;const f=this[t++]>>15,h=u*c+f*i;c=i*c+((h&32767)<<15)+n[r]+(a&1073741823),a=(c>>>30)+(h>>>15)+u*f+(a>>>30),n[r++]=c&1073741823}return a}function nY(t,e,n,r,a,s){const i=e&16383,u=e>>14;for(;--s>=0;){let c=this[t]&16383;const f=this[t++]>>14,h=u*c+f*i;c=i*c+((h&16383)<<14)+n[r]+a,a=(c>>28)+(h>>14)+u*f,n[r++]=c&268435455}return a}const D5=typeof navigator<"u";D5&&P5&&navigator.appName==="Microsoft Internet Explorer"?(Re.prototype.am=tY,Li=30):D5&&P5&&navigator.appName!=="Netscape"?(Re.prototype.am=eY,Li=26):(Re.prototype.am=nY,Li=28);Re.prototype.DB=Li;Re.prototype.DM=(1<<Li)-1;Re.prototype.DV=1<<Li;const P_=52;Re.prototype.FV=Math.pow(2,P_);Re.prototype.F1=P_-Li;Re.prototype.F2=2*Li-P_;const rY="0123456789abcdefghijklmnopqrstuvwxyz",J1=[];let yd,Ta;yd=48;for(Ta=0;Ta<=9;++Ta)J1[yd++]=Ta;yd=97;for(Ta=10;Ta<36;++Ta)J1[yd++]=Ta;yd=65;for(Ta=10;Ta<36;++Ta)J1[yd++]=Ta;function L5(t){return rY.charAt(t)}function aY(t,e){const n=J1[t.charCodeAt(e)];return n??-1}function sY(t){for(let e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s}function oY(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0}function D_(t){const e=kr();return e.fromInt(t),e}function iY(t,e){let n;if(e===16)n=4;else if(e===8)n=3;else if(e===2)n=1;else if(e===32)n=5;else if(e===4)n=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;let r=t.length,a=!1,s=0;for(;--r>=0;){const i=aY(t,r);if(i<0){t.charAt(r)==="-"&&(a=!0);continue}a=!1,s===0?this[this.t++]=i:s+n>this.DB?(this[this.t-1]|=(i&(1<<this.DB-s)-1)<<s,this[this.t++]=i>>this.DB-s):this[this.t-1]|=i<<s,s+=n,s>=this.DB&&(s-=this.DB)}this.clamp(),a&&Re.ZERO.subTo(this,this)}function lY(){const t=this.s&this.DM;for(;this.t>0&&this[this.t-1]==t;)--this.t}function uY(t){if(this.s<0)return"-"+this.negate().toString(t);let e;if(t==16)e=4;else if(t===8)e=3;else if(t===2)e=1;else if(t===32)e=5;else if(t===4)e=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");const n=(1<<e)-1;let r,a=!1,s="",i=this.t,u=this.DB-i*this.DB%e;if(i-- >0)for(u<this.DB&&(r=this[i]>>u)>0&&(a=!0,s=L5(r));i>=0;)u<e?(r=(this[i]&(1<<u)-1)<<e-u,r|=this[--i]>>(u+=this.DB-e)):(r=this[i]>>(u-=e)&n,u<=0&&(u+=this.DB,--i)),r>0&&(a=!0),a&&(s+=L5(r));return a?s:"0"}function cY(){const t=kr();return Re.ZERO.subTo(this,t),t}function dY(){return this.s<0?this.negate():this}function fY(t){let e=this.s-t.s;if(e!=0)return e;let n=this.t;if(e=n-t.t,e!=0)return this.s<0?-e:e;for(;--n>=0;)if((e=this[n]-t[n])!=0)return e;return 0}function L_(t){let e=1,n;return(n=t>>>16)!==0&&(t=n,e+=16),(n=t>>8)!==0&&(t=n,e+=8),(n=t>>4)!==0&&(t=n,e+=4),(n=t>>2)!==0&&(t=n,e+=2),(n=t>>1)!==0&&(t=n,e+=1),e}function hY(){return this.t<=0?0:this.DB*(this.t-1)+L_(this[this.t-1]^this.s&this.DM)}function pY(t,e){let n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s}function mY(t,e){for(let n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s}function gY(t,e){const n=t%this.DB,r=this.DB-n,a=(1<<r)-1,s=Math.floor(t/this.DB);let i=this.s<<n&this.DM,u;for(u=this.t-1;u>=0;--u)e[u+s+1]=this[u]>>r|i,i=(this[u]&a)<<n;for(u=s-1;u>=0;--u)e[u]=0;e[s]=i,e.t=this.t+s+1,e.s=this.s,e.clamp()}function vY(t,e){e.s=this.s;const n=Math.floor(t/this.DB);if(n>=this.t){e.t=0;return}const r=t%this.DB,a=this.DB-r,s=(1<<r)-1;e[0]=this[n]>>r;for(let i=n+1;i<this.t;++i)e[i-n-1]|=(this[i]&s)<<a,e[i-n]=this[i]>>r;r>0&&(e[this.t-n-1]|=(this.s&s)<<a),e.t=this.t-n,e.clamp()}function yY(t,e){let n=0,r=0;const a=Math.min(t.t,this.t);for(;n<a;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()}function bY(t,e){const n=this.abs(),r=t.abs();let a=n.t;for(e.t=a+r.t;--a>=0;)e[a]=0;for(a=0;a<r.t;++a)e[a+n.t]=n.am(0,r[a],e,a,0,n.t);e.s=0,e.clamp(),this.s!==t.s&&Re.ZERO.subTo(e,e)}function SY(t){const e=this.abs();let n=t.t=2*e.t;for(;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){const r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()}function wY(t,e,n){const r=t.abs();if(r.t<=0)return;const a=this.abs();if(a.t<r.t){e?.fromInt(0),n!=null&&this.copyTo(n);return}n===null&&(n=kr());const s=kr(),i=this.s,u=t.s,c=this.DB-L_(r[r.t-1]);c>0?(r.lShiftTo(c,s),a.lShiftTo(c,n)):(r.copyTo(s),a.copyTo(n));const f=s.t,h=s[f-1];if(h===0)return;const m=h*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),g=this.FV/m,y=(1<<this.F1)/m,S=1<<this.F2;let w=n.t,x=w-f;const E=e===null?kr():e;for(s.dlShiftTo(x,E),n.compareTo(E)>=0&&(n[n.t++]=1,n.subTo(E,n)),Re.ONE.dlShiftTo(f,E),E.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--x>=0;){let k=n[--w]===h?this.DM:Math.floor(n[w]*g+(n[w-1]+S)*y);if((n[w]+=s.am(0,k,n,x,0,f))<k)for(s.dlShiftTo(x,E),n.subTo(E,n);n[w]<--k;)n.subTo(E,n)}e!==null&&(n.drShiftTo(f,e),i!==u&&Re.ZERO.subTo(e,e)),n.t=f,n.clamp(),c>0&&n.rShiftTo(c,n),i<0&&Re.ZERO.subTo(n,n)}function xY(t){const e=kr();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(Re.ZERO)>0&&t.subTo(e,e),e}function CY(){if(this.t<1)return 0;const t=this[0];if((t&1)===0)return 0;let e=t&3;return e=e*(2-(t&15)*e)&15,e=e*(2-(t&255)*e)&255,e=e*(2-((t&65535)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e}function EY(t){return this.compareTo(t)===0}function _Y(t,e){let n=0,r=0;const a=Math.min(t.t,this.t);for(;n<a;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()}function kY(t){const e=kr();return this.addTo(t,e),e}function AY(t){const e=kr();return this.subTo(t,e),e}function TY(t){const e=kr();return this.multiplyTo(t,e),e}function RY(t){const e=kr();return this.divRemTo(t,e,null),e}function bd(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function IY(t){const e=kr();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(Re.ZERO)>0&&this.m.subTo(e,e),e}function OY(t){const e=kr();return t.copyTo(e),this.reduce(e),e}function NY(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(let e=0;e<this.m.t;++e){let n=t[e]&32767;const r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=e+this.m.t,t[n]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)}function MY(t,e){t.squareTo(e),this.reduce(e)}function PY(t,e,n){t.multiplyTo(e,n),this.reduce(n)}bd.prototype.convert=IY;bd.prototype.revert=OY;bd.prototype.reduce=NY;bd.prototype.mulTo=PY;bd.prototype.sqrTo=MY;function DY(t,e,n){let r=t.bitLength(),a,s=D_(1);const i=new bd(e);if(r<=0)return s;r<18?a=1:r<48?a=3:r<144?a=4:r<768?a=5:a=6;const u=[];let c=3;const f=a-1,h=(1<<a)-1;if(u[1]=i.convert(this),a>1){const E=kr();for(i.sqrTo(u[1],E);c<=h;)u[c]=kr(),i.mulTo(E,u[c-2],u[c]),c+=2}let m=t.t-1,g,y=!0,S=kr(),w;for(r=L_(t[m])-1;m>=0;){for(r>=f?g=t[m]>>r-f&h:(g=(t[m]&(1<<r+1)-1)<<f-r,m>0&&(g|=t[m-1]>>this.DB+r-f)),c=a;(g&1)===0;)g>>=1,--c;if((r-=c)<0&&(r+=this.DB,--m),y)u[g].copyTo(s),y=!1;else{for(;c>1;)i.sqrTo(s,S),i.sqrTo(S,s),c-=2;c>0?i.sqrTo(s,S):(w=s,s=S,S=w),i.mulTo(S,u[g],s)}for(;m>=0&&(t[m]&1<<r)===0;)i.sqrTo(s,S),w=s,s=S,S=w,--r<0&&(r=this.DB-1,--m)}const x=i.revert(s);return n(null,x),x}Re.prototype.copyTo=sY;Re.prototype.fromInt=oY;Re.prototype.fromString=iY;Re.prototype.clamp=lY;Re.prototype.dlShiftTo=pY;Re.prototype.drShiftTo=mY;Re.prototype.lShiftTo=gY;Re.prototype.rShiftTo=vY;Re.prototype.subTo=yY;Re.prototype.multiplyTo=bY;Re.prototype.squareTo=SY;Re.prototype.divRemTo=wY;Re.prototype.invDigit=CY;Re.prototype.addTo=_Y;Re.prototype.toString=uY;Re.prototype.negate=cY;Re.prototype.abs=dY;Re.prototype.compareTo=fY;Re.prototype.bitLength=hY;Re.prototype.mod=xY;Re.prototype.equals=EY;Re.prototype.add=kY;Re.prototype.subtract=AY;Re.prototype.multiply=TY;Re.prototype.divide=RY;Re.prototype.modPow=DY;Re.ZERO=D_(0);Re.ONE=D_(1);const LY=async({a:t,g:e,k:n,x:r,B:a,N:s,U:i})=>new Promise((u,c)=>{e.modPow(r,s,(f,h)=>{if(f){c(f);return}a.subtract(n.multiply(h)).modPow(t.add(i.multiply(r)),s,(m,g)=>{if(m){c(m);return}u(g.mod(s))})})}),UY="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",qD={},gE={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),qD[t]=e,gE[e]=t}const Yc=t=>{if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const e=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2){const r=t.slice(n,n+2).toLowerCase();if(r in gE)e[n/2]=gE[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return e},U_=t=>{let e="";for(let n=0;n<t.byteLength;n++)e+=qD[t[n]];return e},vE=t=>{const e=new Vl;e.update(t);const n=e.digestSync(),r=U_(n);return new Array(64-r.length).join("0")+r},s0=t=>vE(Yc(t)),zY=/^[89a-f]/i,ho=t=>{if(!(t instanceof Re))throw new Error("Not a BigInteger");const e=t.compareTo(Re.ZERO)<0;let n=t.abs().toString(16);if(n=n.length%2!==0?`0${n}`:n,n=zY.test(n)?`00${n}`:n,e){const r=n.split("").map(s=>{const i=~parseInt(s,16)&15;return"0123456789ABCDEF".charAt(i)}).join("");n=new Re(r,16).add(Re.ONE).toString(16),n.toUpperCase().startsWith("FF8")&&(n=n.substring(2))}return n},jY=({A:t,B:e})=>{const n=new Re(s0(ho(t)+ho(e)),16);if(n.equals(Re.ZERO))throw new Error("U cannot be zero.");return n},FY=(t,e,n)=>{const r=new Vl(e);r.update(t);const a=r.digestSync(),s=new Vl(a);return s.update(n),s.digestSync().slice(0,16)},z_=t=>{const e=new O_().random(t).toString();return Yc(e)},BY=()=>Gc.convert(z_(40));class $Y{constructor({userPoolName:e,a:n,g:r,A:a,N:s}){this.encoder=a0,this.userPoolName=e,this.a=n,this.g=r,this.A=a,this.N=s,this.k=new Re(s0(`${ho(s)}${ho(r)}`),16)}getRandomPassword(){if(!this.randomPassword)throw new ze({name:"EmptyBigIntegerRandomPassword",message:"random password is empty"});return this.randomPassword}getSaltToHashDevices(){if(!this.saltToHashDevices)throw new ze({name:"EmptyBigIntegersaltToHashDevices",message:"saltToHashDevices is empty"});return this.saltToHashDevices}getVerifierDevices(){if(!this.verifierDevices)throw new ze({name:"EmptyBigIntegerVerifierDevices",message:"verifyDevices is empty"});return this.verifierDevices}async generateHashDevice(e,n){this.randomPassword=BY();const r=`${e}${n}:${this.randomPassword}`,a=vE(r),s=U_(z_(16));return this.saltToHashDevices=ho(new Re(s,16)),new Promise((i,u)=>{this.g.modPow(new Re(s0(this.saltToHashDevices+a),16),this.N,(c,f)=>{if(c){u(c);return}this.verifierDevices=ho(f),i()})})}async getPasswordAuthenticationKey({username:e,password:n,serverBValue:r,salt:a}){if(r.mod(this.N).equals(Re.ZERO))throw new Error("B cannot be zero.");const s=jY({A:this.A,B:r}),i=`${this.userPoolName}${e}:${n}`,u=vE(i),c=new Re(s0(ho(a)+u),16),f=await LY({a:this.a,g:this.g,k:this.k,x:c,B:r,N:this.N,U:s}),h=this.encoder.convert("Caldera Derived Key"),m=this.encoder.convert(""),g=new Uint8Array(h.byteLength+m.byteLength);return g.set(h,0),g.set(m,h.byteLength),FY(Yc(ho(f)),Yc(ho(s)),g)}}const HY=async({a:t,g:e,N:n})=>new Promise((r,a)=>{e.modPow(t,n,(s,i)=>{if(s){a(s);return}if(i.mod(n).equals(Re.ZERO)){a(new Error("Illegal parameter. A mod N cannot be 0."));return}r(i)})}),hp=async t=>{const e=new Re(UY,16),n=new Re("2",16),r=qY(),a=await HY({a:r,g:n,N:e});return new $Y({userPoolName:t,a:r,g:n,A:a,N:e})},qY=()=>{const t=U_(z_(128));return new Re(t,16)};async function lu({userPoolId:t,userPoolEndpoint:e,newDeviceMetadata:n,accessToken:r}){if(!n)return;const a=t.split("_")[1]||"",s=await hp(a),i=n?.DeviceKey,u=n?.DeviceGroupKey;try{await s.generateHashDevice(u??"",i??"")}catch{return}const c={Salt:Gc.convert(Yc(s.getSaltToHashDevices())),PasswordVerifier:Gc.convert(Yc(s.getVerifierDevices()))},f=s.getRandomPassword();try{return await QK({endpointResolver:St({endpointOverride:e})})({region:bt(t)},{AccessToken:r,DeviceName:await KG(),DeviceKey:n?.DeviceKey,DeviceSecretVerifierConfig:c}),{deviceKey:i,deviceGroupKey:u,randomPassword:f}}catch{return}}async function WY(t){const e=qt.getConfig().Auth?.Cognito;ut(e);const{username:n,signInSession:r,signInDetails:a,challengeName:s}=Ns.getState();if(s!=="WEB_AUTHN"||!n)throw new ze({name:Os.SignInException,message:"Unable to proceed due to invalid sign in state."});const{CREDENTIAL_REQUEST_OPTIONS:i}=t;vd(!!i,$t.InvalidPasskeyAuthenticationOptions);const u=await XK(JSON.parse(i)),c=ua({endpointResolver:St({endpointOverride:e.userPoolEndpoint})}),{ChallengeName:f,ChallengeParameters:h,AuthenticationResult:m,Session:g}=await c({region:bt(e.userPoolId),userAgentValue:Mt(Ze.ConfirmSignIn)},{ChallengeName:"WEB_AUTHN",ChallengeResponses:{USERNAME:n,CREDENTIAL:JSON.stringify(u)},ClientId:e.userPoolClientId,Session:r});if(iu({signInSession:g,username:n,challengeName:f,signInDetails:a}),m)return await Mo({...m,username:n,NewDeviceMetadata:await lu({userPoolId:e.userPoolId,userPoolEndpoint:e.userPoolEndpoint,newDeviceMetadata:m.NewDeviceMetadata,accessToken:m.AccessToken}),signInDetails:a}),Ns.dispatch({type:"RESET_STATE"}),await Qi(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};if(f==="WEB_AUTHN")throw new ze({name:Os.SignInException,message:"Sequential WEB_AUTHN challenges returned from underlying service cannot be handled."});return{challengeName:f,challengeParameters:h}}function Yn({username:t,userPoolId:e,userPoolClientId:n}){if(typeof window>"u")return;const r=window.AmazonCognitoAdvancedSecurityData;if(typeof r>"u")return;const a=r.getData(t,e,n);return a?{EncodedData:a}:{}}const VY=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],GY=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],WD=()=>{const t=new Date,e=GY[t.getUTCDay()],n=VY[t.getUTCMonth()],r=t.getUTCDate();let a=t.getUTCHours();a<10&&(a=`0${a}`);let s=t.getUTCMinutes();s<10&&(s=`0${s}`);let i=t.getUTCSeconds();i<10&&(i=`0${i}`);const u=t.getUTCFullYear();return`${e} ${n} ${r} ${a}:${s}:${i} UTC ${u}`},VD=({userPoolName:t,username:e,challengeParameters:n,dateNow:r,hkdf:a})=>{const s=a0.convert(t),i=a0.convert(e),u=KY(n.SECRET_BLOCK),c=a0.convert(r),f=new Uint8Array(s.byteLength+i.byteLength+u.byteLength+c.byteLength);f.set(s,0),f.set(i,s.byteLength),f.set(u,s.byteLength+i.byteLength),f.set(c,s.byteLength+i.byteLength+u.byteLength);const h=new Vl(a);h.update(f);const m=h.digestSync();return Gc.convert(m)},KY=t=>{const e="=".repeat((4-t.length%4)%4),n=(t+e).replace(/-/g,"+").replace(/_/g,"/"),r=A_.convert(n),a=new Uint8Array(r.length);for(let s=0;s<r.length;++s)a[s]=r.charCodeAt(s);return a};async function pp({username:t,config:e,clientMetadata:n,session:r,tokenOrchestrator:a}){const{userPoolId:s,userPoolEndpoint:i}=e,u=e.userPoolClientId,c=await a?.getDeviceMetadata(t);DD(c);const f=await hp(c.deviceGroupKey),h={USERNAME:t,SRP_A:f.A.toString(16),DEVICE_KEY:c.deviceKey},m={ChallengeName:"DEVICE_SRP_AUTH",ClientId:u,ChallengeResponses:h,ClientMetadata:n,Session:r},g=ua({endpointResolver:St({endpointOverride:i})}),{ChallengeParameters:y,Session:S}=await g({region:bt(s)},m);return YY(t,y,n,S,f,e,a)}async function YY(t,e,n,r,a,{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u},c){const f=await c?.getDeviceMetadata(t);DD(f);const h=new Re(e?.SRP_B,16),m=new Re(e?.SALT,16),{deviceKey:g}=f,{deviceGroupKey:y}=f,S=await a.getPasswordAuthenticationKey({username:f.deviceKey,password:f.randomPassword,serverBValue:h,salt:m}),w=WD(),x={USERNAME:e?.USERNAME??t,PASSWORD_CLAIM_SECRET_BLOCK:e?.SECRET_BLOCK,TIMESTAMP:w,PASSWORD_CLAIM_SIGNATURE:VD({username:g,userPoolName:y,challengeParameters:e,dateNow:w,hkdf:S}),DEVICE_KEY:g},E=Yn({username:t,userPoolId:s,userPoolClientId:i}),k={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:i,ChallengeResponses:x,Session:r,ClientMetadata:n,UserContextData:E};return ua({endpointResolver:St({endpointOverride:u})})({region:bt(s)},k)}async function j_(t,e,n,r,a,s,i){const{userPoolId:u,userPoolClientId:c,userPoolEndpoint:f}=s,h=u?.split("_")[1]||"",m=new Re(e?.SRP_B,16),g=new Re(e?.SALT,16),y=e?.USER_ID_FOR_SRP;if(!y)throw new ze({name:"EmptyUserIdForSRPException",message:"USER_ID_FOR_SRP was not found in challengeParameters"});const S=await a.getPasswordAuthenticationKey({username:y,password:t,serverBValue:m,salt:g}),w=WD(),x={USERNAME:y,PASSWORD_CLAIM_SECRET_BLOCK:e?.SECRET_BLOCK,TIMESTAMP:w,PASSWORD_CLAIM_SIGNATURE:VD({username:y,userPoolName:h,challengeParameters:e,dateNow:w,hkdf:S})},E=await i.getDeviceMetadata(y);E&&E.deviceKey&&(x.DEVICE_KEY=E.deviceKey);const k=Yn({username:y,userPoolId:u,userPoolClientId:c}),A={ChallengeName:"PASSWORD_VERIFIER",ChallengeResponses:x,ClientMetadata:n,Session:r,ClientId:c,UserContextData:k},N=await ua({endpointResolver:St({endpointOverride:f})})({region:bt(u)},A);return N.ChallengeName==="DEVICE_SRP_AUTH"?pp({username:y,config:s,clientMetadata:n,session:N.Session,tokenOrchestrator:i}):N}async function Sd(t,e,n,r){try{return await t(...e)}catch(a){if(a instanceof ze&&a.name==="ResourceNotFoundException"&&a.message.includes("Device does not exist."))return await r.clearDeviceMetadata(n),t(...e);throw a}}function uu(t){const{dispatch:e}=Ns;e({type:"SET_USERNAME",value:t})}async function GD({username:t,password:e,clientMetadata:n,config:r,tokenOrchestrator:a,authFlow:s,preferredChallenge:i}){const{userPoolId:u,userPoolClientId:c,userPoolEndpoint:f}=r,h=u?.split("_")[1]||"",m=await hp(h),g={USERNAME:t,SRP_A:m.A.toString(16)};s==="USER_AUTH"&&i&&(g.PREFERRED_CHALLENGE=i);const y=Yn({username:t,userPoolId:u,userPoolClientId:c}),S={AuthFlow:s,AuthParameters:g,ClientMetadata:n,ClientId:c,UserContextData:y},x=await fp({endpointResolver:St({endpointOverride:f})})({region:bt(u),userAgentValue:Mt(Ze.SignIn)},S),{ChallengeParameters:E,Session:k}=x,A=E?.USERNAME??t;return uu(A),x.ChallengeName==="PASSWORD_VERIFIER"?Sd(j_,[e,E,n,k,m,r,a],A,a):x}async function ZY({username:t,session:e,selectedChallenge:n,config:r,clientMetadata:a}){return ua({endpointResolver:St({endpointOverride:r.userPoolEndpoint})})({region:bt(r.userPoolId),userAgentValue:Mt(Ze.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:{USERNAME:t,ANSWER:n},ClientId:r.userPoolClientId,Session:e,ClientMetadata:a})}async function XY(t,e,n,r,a){const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u}=r,c={ANSWER:"PASSWORD",USERNAME:t,PASSWORD:e},f=Yn({username:t,userPoolId:s,userPoolClientId:i}),m=await ua({endpointResolver:St({endpointOverride:u})})({region:bt(s),userAgentValue:Mt(Ze.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:c,ClientId:i,ClientMetadata:n,Session:a,UserContextData:f}),g=m.ChallengeParameters?.USERNAME??t;return uu(g),m}async function QY(t,e,n,r,a,s){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=r,f=i.split("_")[1]||"",h=await hp(f),m={ANSWER:"PASSWORD_SRP",USERNAME:t,SRP_A:h.A.toString(16)},g=Yn({username:t,userPoolId:i,userPoolClientId:u}),S=await ua({endpointResolver:St({endpointOverride:c})})({region:bt(i),userAgentValue:Mt(Ze.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:m,ClientId:u,ClientMetadata:n,Session:a,UserContextData:g}),w=S.ChallengeParameters?.USERNAME??t;return uu(w),S.ChallengeName==="PASSWORD_VERIFIER"?Sd(j_,[e,S.ChallengeParameters,n,S.Session,h,r,s],w,s):S}const yE="userAttributes.";function JY(t){return"isSignedIn"in t&&"nextStep"in t}async function eZ({challengeResponse:t,clientMetadata:e,session:n,username:r,config:a,tokenOrchestrator:s}){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=a,f={USERNAME:r,ANSWER:t},h=await s?.getDeviceMetadata(r);h&&h.deviceKey&&(f.DEVICE_KEY=h.deviceKey);const m=Yn({username:r,userPoolId:i,userPoolClientId:u}),g={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:f,Session:n,ClientMetadata:e,ClientId:u,UserContextData:m},S=await ua({endpointResolver:St({endpointOverride:c})})({region:bt(i),userAgentValue:Mt(Ze.ConfirmSignIn)},g);return S.ChallengeName==="DEVICE_SRP_AUTH"?pp({username:r,config:a,clientMetadata:e,session:S.Session,tokenOrchestrator:s}):S}async function tZ({challengeResponse:t,username:e,clientMetadata:n,session:r,deviceName:a,config:s}){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=s;if(t==="EMAIL")return{ChallengeName:"MFA_SETUP",Session:r,ChallengeParameters:{MFAS_CAN_SETUP:'["EMAIL_OTP"]'},$metadata:{}};if(t==="TOTP")return{ChallengeName:"MFA_SETUP",Session:r,ChallengeParameters:{MFAS_CAN_SETUP:'["SOFTWARE_TOKEN_MFA"]'},$metadata:{}};const f={USERNAME:e};if(/^\d+$/.test(t)){const g=wK({endpointResolver:St({endpointOverride:c})}),{Session:y}=await g({region:bt(i),userAgentValue:Mt(Ze.ConfirmSignIn)},{UserCode:t,Session:r,FriendlyDeviceName:a});Ns.dispatch({type:"SET_SIGN_IN_SESSION",value:y});const S={ChallengeName:"MFA_SETUP",ChallengeResponses:f,Session:y,ClientMetadata:n,ClientId:u};return ua({endpointResolver:St({endpointOverride:c})})({region:bt(i),userAgentValue:Mt(Ze.ConfirmSignIn)},S)}if(t.includes("@")){f.EMAIL=t;const g={ChallengeName:"MFA_SETUP",ChallengeResponses:f,Session:r,ClientMetadata:n,ClientId:u};return ua({endpointResolver:St({endpointOverride:c})})({region:bt(i),userAgentValue:Mt(Ze.ConfirmSignIn)},g)}throw new ze({name:Os.SignInException,message:`Cannot proceed with MFA setup using challengeResponse: ${t}`,recoverySuggestion:'Try passing "EMAIL", "TOTP", a valid email, or OTP code as the challengeResponse.'})}async function nZ({challengeResponse:t,username:e,clientMetadata:n,session:r,config:a}){const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u}=a;pn(t==="TOTP"||t==="SMS"||t==="EMAIL",Ye.IncorrectMFAMethod);const c={USERNAME:e,ANSWER:fZ(t)},f=Yn({username:e,userPoolId:s,userPoolClientId:i}),h={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:c,Session:r,ClientMetadata:n,ClientId:i,UserContextData:f};return ua({endpointResolver:St({endpointOverride:u})})({region:bt(s),userAgentValue:Mt(Ze.ConfirmSignIn)},h)}async function rZ({challengeResponse:t,clientMetadata:e,session:n,username:r,requiredAttributes:a,config:s}){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=s,f={...cZ(a),NEW_PASSWORD:t,USERNAME:r},h=Yn({username:r,userPoolId:i,userPoolClientId:u}),m={ChallengeName:"NEW_PASSWORD_REQUIRED",ChallengeResponses:f,ClientMetadata:e,Session:n,ClientId:u,UserContextData:h};return ua({endpointResolver:St({endpointOverride:c})})({region:bt(i),userAgentValue:Mt(Ze.ConfirmSignIn)},m)}async function aZ(t,e,n,r,a){const{userPoolClientId:s,userPoolId:i,userPoolEndpoint:u}=r,c={USERNAME:t,PASSWORD:e},f=await a.getDeviceMetadata(t);f&&f.deviceKey&&(c.DEVICE_KEY=f.deviceKey);const h=Yn({username:t,userPoolId:i,userPoolClientId:s}),m={AuthFlow:"USER_PASSWORD_AUTH",AuthParameters:c,ClientMetadata:n,ClientId:s,UserContextData:h},y=await fp({endpointResolver:St({endpointOverride:u})})({region:bt(i),userAgentValue:Mt(Ze.SignIn)},m),S=y.ChallengeParameters?.USERNAME??y.ChallengeParameters?.USER_ID_FOR_SRP??t;return uu(S),y.ChallengeName==="DEVICE_SRP_AUTH"?pp({username:S,config:r,clientMetadata:n,session:y.Session,tokenOrchestrator:a}):y}async function sZ(t,e,n,r,a){return GD({username:t,password:e,clientMetadata:n,config:r,tokenOrchestrator:a,authFlow:"USER_SRP_AUTH"})}async function oZ(t,e,n,r){const{userPoolClientId:a,userPoolId:s,userPoolEndpoint:i}=n,u={USERNAME:t},c=await r.getDeviceMetadata(t);c&&c.deviceKey&&(u.DEVICE_KEY=c.deviceKey);const f=Yn({username:t,userPoolId:s,userPoolClientId:a}),h={AuthFlow:"CUSTOM_AUTH",AuthParameters:u,ClientMetadata:e,ClientId:a,UserContextData:f},g=await fp({endpointResolver:St({endpointOverride:i})})({region:bt(s),userAgentValue:Mt(Ze.SignIn)},h),y=g.ChallengeParameters?.USERNAME??t;return uu(y),g.ChallengeName==="DEVICE_SRP_AUTH"?pp({username:y,config:n,clientMetadata:e,session:g.Session,tokenOrchestrator:r}):g}async function iZ(t,e,n,r,a){ut(r);const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u}=r,c=s?.split("_")[1]||"",f=await hp(c),h={USERNAME:t,SRP_A:f.A.toString(16),CHALLENGE_NAME:"SRP_A"},m=Yn({username:t,userPoolId:s,userPoolClientId:i}),g={AuthFlow:"CUSTOM_AUTH",AuthParameters:h,ClientMetadata:n,ClientId:i,UserContextData:m},y=fp({endpointResolver:St({endpointOverride:u})}),{ChallengeParameters:S,Session:w}=await y({region:bt(s),userAgentValue:Mt(Ze.SignIn)},g),x=S?.USERNAME??t;return uu(x),Sd(j_,[e,S,n,w,f,r,a],x,a)}async function cu(t){const{challengeName:e,challengeParameters:n,availableChallenges:r}=t,a=qt.getConfig().Auth?.Cognito;switch(ut(a),e){case"CUSTOM_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_CUSTOM_CHALLENGE",additionalInfo:n}};case"MFA_SETUP":{const{signInSession:s,username:i}=Ns.getState(),u=U5(z5(n.MFAS_CAN_SETUP))||[],c=pZ(u),f=c.includes("TOTP"),h=c.includes("EMAIL");if(f&&h)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION",allowedMFATypes:c}};if(h)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_EMAIL_SETUP"}};if(f){const m=xK({endpointResolver:St({endpointOverride:a.userPoolEndpoint})}),{Session:g,SecretCode:y}=await m({region:bt(a.userPoolId)},{Session:s});return Ns.dispatch({type:"SET_SIGN_IN_SESSION",value:g}),{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_TOTP_SETUP",totpSetupDetails:lZ(y,i)}}}throw new ze({name:Os.SignInException,message:`Cannot initiate MFA setup from available types: ${u}`})}case"NEW_PASSWORD_REQUIRED":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",missingAttributes:uZ(n.requiredAttributes)}};case"SELECT_MFA_TYPE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SELECTION",allowedMFATypes:U5(z5(n.MFAS_CAN_CHOOSE))}};case"SMS_OTP":case"SMS_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_SMS_CODE",codeDeliveryDetails:{deliveryMedium:n.CODE_DELIVERY_DELIVERY_MEDIUM,destination:n.CODE_DELIVERY_DESTINATION}}};case"SOFTWARE_TOKEN_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_TOTP_CODE"}};case"EMAIL_OTP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_EMAIL_CODE",codeDeliveryDetails:{deliveryMedium:n.CODE_DELIVERY_DELIVERY_MEDIUM,destination:n.CODE_DELIVERY_DESTINATION}}};case"WEB_AUTHN":{const s=await WY(n);return JY(s)?s:cu(s)}case"PASSWORD":case"PASSWORD_SRP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_PASSWORD"}};case"SELECT_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_FIRST_FACTOR_SELECTION",availableChallenges:r}}}throw new ze({name:Os.SignInException,message:`An error occurred during the sign in process. ${e} challengeName returned by the underlying service was not addressed.`})}function lZ(t,e){return{sharedSecret:t,getSetupUri:(n,r)=>{const a=`otpauth://totp/${n}:${r??e}?secret=${t}&issuer=${n}`;return new Xi(a)}}}function wd(t){if(t===P0.PasswordResetRequiredException)return{isSignedIn:!1,nextStep:{signInStep:"RESET_PASSWORD"}};if(t===P0.UserNotConfirmedException)return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_UP"}}}function uZ(t){return t?JSON.parse(t).map(n=>n.includes(yE)?n.replace(yE,""):n):[]}function cZ(t){if(!t)return{};const e={};return Object.entries(t).forEach(([n,r])=>{r&&(e[`${yE}${n}`]=r)}),e}async function dZ(t,e,n,r,a,s,i,u){const c=u?.userAttributes,f=u?.friendlyDeviceName;switch(e){case"WEB_AUTHN":case"SELECT_CHALLENGE":return r==="PASSWORD_SRP"||r==="PASSWORD"?{ChallengeName:r,Session:n,$metadata:{}}:ZY({username:t,session:n,selectedChallenge:r,config:a,clientMetadata:i});case"SELECT_MFA_TYPE":return nZ({challengeResponse:r,clientMetadata:i,session:n,username:t,config:a});case"MFA_SETUP":return tZ({challengeResponse:r,clientMetadata:i,session:n,username:t,deviceName:f,config:a});case"NEW_PASSWORD_REQUIRED":return rZ({challengeResponse:r,clientMetadata:i,session:n,username:t,requiredAttributes:c,config:a});case"CUSTOM_CHALLENGE":return Sd(eZ,[{challengeResponse:r,clientMetadata:i,session:n,username:t,config:a,tokenOrchestrator:s}],t,s);case"SMS_MFA":case"SOFTWARE_TOKEN_MFA":case"SMS_OTP":case"EMAIL_OTP":return mZ({challengeName:e,challengeResponse:r,clientMetadata:i,session:n,username:t,config:a,tokenOrchestrator:s});case"PASSWORD":return XY(t,r,i,a,n);case"PASSWORD_SRP":return QY(t,r,i,a,n,s)}throw new ze({name:Os.SignInException,message:`An error occurred during the sign in process.
@@ -11,7 +11,7 @@ function oD(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&
11
11
  3. page was refreshed during the sign in flow and session has expired.
12
12
  `,recoverySuggestion:"Make sure a successful call to signIn is made before calling confirmSignInand that the session has not expired."});try{const{Session:f,ChallengeName:h,AuthenticationResult:m,ChallengeParameters:g}=await dZ(r,a,s,e,u,qr,c,n);return iu({signInSession:f,username:r,challengeName:h,signInDetails:i}),m?(await Mo({username:r,...m,NewDeviceMetadata:await lu({userPoolId:u.userPoolId,userPoolEndpoint:u.userPoolEndpoint,newDeviceMetadata:m.NewDeviceMetadata,accessToken:m.AccessToken}),signInDetails:i}),es(),await Qi(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):cu({challengeName:h,challengeParameters:g})}catch(f){Na(f);const h=wd(f.name);if(h)return h;throw f}}const UZ=t=>In(Gn,Vn("GetUser"),lr(),{...Kn,...t}),zZ=t=>In(Gn,Vn("VerifyUserAttribute"),lr(),{...Kn,...t});async function jZ(t){const e=qt.getConfig().Auth?.Cognito;ut(e);const{userPoolEndpoint:n,userPoolId:r}=e,{confirmationCode:a,userAttributeKey:s}=t;pn(!!a,Ye.EmptyConfirmUserAttributeCode);const{tokens:i}=await Y1({forceRefresh:!1});gd(i),await zZ({endpointResolver:St({endpointOverride:n})})({region:bt(r),userAgentValue:Mt(Ze.ConfirmUserAttribute)},{AccessToken:i.accessToken.toString(),AttributeName:s,Code:a})}new or("AuthError");const FZ={oauthSignInError:{message:Hn.OAUTH_ERROR,log:"Make sure Cognito Hosted UI has been configured correctly"},noConfig:{message:Hn.DEFAULT_MSG},missingAuthConfig:{message:Hn.DEFAULT_MSG},emptyUsername:{message:Hn.EMPTY_USERNAME},invalidUsername:{message:Hn.INVALID_USERNAME},emptyPassword:{message:Hn.EMPTY_PASSWORD},emptyCode:{message:Hn.EMPTY_CODE},signUpError:{message:Hn.SIGN_UP_ERROR},noMFA:{message:Hn.NO_MFA},invalidMFA:{message:Hn.INVALID_MFA},emptyChallengeResponse:{message:Hn.EMPTY_CHALLENGE},noUserSession:{message:Hn.NO_USER_SESSION},deviceConfig:{message:Hn.DEVICE_CONFIG},networkError:{message:Hn.NETWORK_ERROR},autoSignInError:{message:Hn.AUTOSIGNIN_ERROR},default:{message:Hn.DEFAULT_MSG}},Bi=(t,e)=>new ze({message:t??"An error has occurred during the oauth process.",name:Os.OAuthSignInError,recoverySuggestion:FZ.oauthSignInError.log});var SE;(function(t){t.NoConfig="noConfig",t.MissingAuthConfig="missingAuthConfig",t.EmptyUsername="emptyUsername",t.InvalidUsername="invalidUsername",t.EmptyPassword="emptyPassword",t.EmptyCode="emptyCode",t.SignUpError="signUpError",t.NoMFA="noMFA",t.InvalidMFA="invalidMFA",t.EmptyChallengeResponse="emptyChallengeResponse",t.NoUserSession="noUserSession",t.Default="default",t.DeviceConfig="deviceConfig",t.NetworkError="networkError",t.AutoSignInError="autoSignInError",t.OAuthSignInError="oauthSignInError"})(SE||(SE={}));const BZ="`signInWithRedirect` has been canceled.",$Z="An error occurred while validating the state.",HZ="Try to initiate an OAuth flow from Amplify",nL=async t=>{const e=await jr.loadOAuthState(),n=t===e?e:void 0;if(!n)throw new ze({name:SE.OAuthSignInError,message:t===null?BZ:$Z,recoverySuggestion:t===null?void 0:HZ});return n},rL=async({currentUrl:t,userAgentValue:e,clientId:n,redirectUri:r,responseType:a,domain:s,preferPrivateSession:i})=>{const u=new Xi(t),c=u.searchParams.get("error"),f=u.searchParams.get("error_description");if(c)throw Bi(f??c);return a==="code"?qZ({currentUrl:t,userAgentValue:e,clientId:n,redirectUri:r,domain:s,preferPrivateSession:i}):WZ({currentUrl:t,redirectUri:r,preferPrivateSession:i})},qZ=async({currentUrl:t,userAgentValue:e,clientId:n,redirectUri:r,domain:a,preferPrivateSession:s})=>{const i=new Xi(t),u=i.searchParams.get("code"),c=i.searchParams.get("state");if(!u||!c)throw Bi("User cancelled OAuth flow.");const f=await nL(c),h="https://"+a+"/oauth2/token",m=await jr.loadPKCE(),g={grant_type:"authorization_code",code:u,client_id:n,redirect_uri:r,...m?{code_verifier:m}:{}},y=Object.entries(g).map(([O,I])=>`${encodeURIComponent(O)}=${encodeURIComponent(I)}`).join("&"),{access_token:S,refresh_token:w,id_token:x,error:E,error_message:k,token_type:A,expires_in:R}=await(await fetch(h,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",[KW]:e},body:y})).json();if(E)throw Bi(k??E);const N=(S&&Co(S).payload.username)??"username";return await Mo({username:N,AccessToken:S,IdToken:x,RefreshToken:w}),aL({redirectUri:r,state:f,preferPrivateSession:s})},WZ=async({currentUrl:t,redirectUri:e,preferPrivateSession:n})=>{const r=new Xi(t),{id_token:a,access_token:s,state:i,token_type:u,expires_in:c,error_description:f,error:h}=(r.hash??"#").substring(1).split("&").map(y=>y.split("=")).reduce((y,[S,w])=>({...y,[S]:w}),{id_token:void 0,access_token:void 0,state:void 0,token_type:void 0,expires_in:void 0,error_description:void 0,error:void 0});if(h)throw Bi(f??h);if(!s)throw Bi("No access token returned from OAuth flow.");const m=await nL(i),g=(s&&Co(s).payload.username)??"username";return await Mo({username:g,AccessToken:s,IdToken:a}),aL({redirectUri:e,state:m,preferPrivateSession:n})},aL=async({redirectUri:t,state:e,preferPrivateSession:n})=>{await qr.setOAuthMetadata({oauthSignIn:!0}),await jr.clearOAuthData(),await jr.storeOAuthSignIn(!0,n),jD(),KZ(t),VZ(e)&&Is.dispatch("auth",{event:"customOAuthState",data:WG(GZ(e))},"Auth",Rs),Is.dispatch("auth",{event:"signInWithRedirect"},"Auth",Rs),await Qi()},VZ=t=>/-/.test(t),GZ=t=>t.split("-").splice(1).join("-"),KZ=t=>{typeof window<"u"&&typeof window.history<"u"&&window.history.replaceState(window.history.state,"",t)};function $_(t,e){{const n=t?.find(YZ)??t?.find(ZZ),r=t?.find(QZ)??t?.find(XZ);if(n)return n;throw r?oK:aK}}const YZ=t=>t.startsWith(String(window.location.origin+(window.location.pathname||"/"))),ZZ=t=>t.includes(String(window.location.hostname)),XZ=t=>t.startsWith("http://"),QZ=t=>t.startsWith("https://"),H_=async t=>{jD(),await jr.clearOAuthInflightData(),Is.dispatch("auth",{event:"signInWithRedirect_failure",data:{error:t}},"Auth",Rs)},JZ=async t=>{try{ut(t),W1(t),jr.setAuthConfig(t)}catch{return}if(await jr.loadOAuthInFlight())try{const e=window.location.href,{loginWith:n,userPoolClientId:r}=t,{domain:a,redirectSignIn:s,responseType:i}=n.oauth,u=$_(s);await rL({currentUrl:e,clientId:r,domain:a,redirectUri:u,responseType:i,userAgentValue:Mt(Ze.SignInWithRedirect)})}catch(e){await H_(e)}};K1()&&qt[uD](JZ);const eX={Google:"Google",Facebook:"Facebook",Amazon:"LoginWithAmazon",Apple:"SignInWithApple"},sL=async t=>{window?.location&&(window.location.href=t.replace("http://","https://"))},F5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",tX=t=>{const e=new Uint8Array(t);k_().getRandomValues(e);let n="",r;for(const a of e)n+=F5.charAt(a%F5.length);return{value:n,method:"S256",toCodeChallenge(){return r||(r=nX(n),r)}}};function nX(t){const e=new Vl;return e.update(t),rX(Gc.convert(e.digestSync(),{urlSafe:!0}))}function rX(t){return t.replace(/=/g,"")}const aX=()=>qG(32),sX=t=>{async function e(n){if(n.persisted&&await t.loadOAuthInFlight()){const a=Bi("User cancelled OAuth flow.");await H_(a)}window.removeEventListener("pageshow",e)}window.addEventListener("pageshow",e)};async function oL(t){const e=qt.getConfig().Auth?.Cognito;ut(e),W1(e),jr.setAuthConfig(e),t?.options?.prompt||await KD();let n="COGNITO",r;return typeof t?.provider=="string"?n=eX[t.provider]:t?.provider?.custom?n=t.provider.custom:t?.provider?.idpIdentifier&&({idpIdentifier:r}=t.provider),oX({oauthConfig:e.loginWith.oauth,clientId:e.userPoolClientId,provider:n,idpIdentifier:r,customState:t?.customState,preferPrivateSession:t?.options?.preferPrivateSession,options:{loginHint:t?.options?.loginHint,lang:t?.options?.lang,nonce:t?.options?.nonce,prompt:t?.options?.prompt},authSessionOpener:t?.options?.authSessionOpener})}const oX=async({oauthConfig:t,provider:e,idpIdentifier:n,clientId:r,customState:a,preferPrivateSession:s,options:i,authSessionOpener:u})=>{const{domain:c,redirectSignIn:f,responseType:h,scopes:m}=t,{loginHint:g,lang:y,nonce:S,prompt:w}=i??{},x=aX(),E=u||sL,k=a?`${x}-${VG(a)}`:x,{value:A,method:R,toCodeChallenge:N}=tX(128),O=$_(t.redirectSignIn);K1()&&jr.storeOAuthInFlight(!0),jr.storeOAuthState(k),jr.storePKCE(A);const I=new URLSearchParams;I.append("redirect_uri",O),I.append("response_type",h),I.append("client_id",r),n?I.append("idp_identifier",n):I.append("identity_provider",e),I.append("scope",m.join(" ")),g&&I.append("login_hint",g),y&&I.append("lang",y),S&&I.append("nonce",S),w&&I.append("prompt",w.toLowerCase()),I.append("state",k),h==="code"&&(I.append("code_challenge",N()),I.append("code_challenge_method",R));const P=`https://${c}/oauth2/authorize?${I.toString()}`;sX(jr);const{type:U,error:H,url:z}=await E(P,f,s)??{};try{if(U==="error")throw Bi(String(H));if(U==="canceled")throw Bi(String(U));U==="success"&&z&&await rL({currentUrl:z,clientId:r,domain:c,redirectUri:O,responseType:h,userAgentValue:Mt(Ze.SignInWithRedirect),preferPrivateSession:s})}catch(j){throw await H_(j),j}},iX=async t=>{const e=t.getConfig().Auth?.Cognito;ut(e);const{userPoolEndpoint:n,userPoolId:r}=e,{tokens:a}=await mD(t,{forceRefresh:!1});gd(a);const s=UZ({endpointResolver:St({endpointOverride:n})}),{UserAttributes:i}=await s({region:bt(r),userAgentValue:Mt(Ze.FetchUserAttributes)},{AccessToken:a.accessToken.toString()});return QG(i)},iL=()=>iX(qt),lX=async t=>{await t.clearOAuthData(),qr.clearTokens(),await gD(),Is.dispatch("auth",{event:"signedOut"},"Auth",Rs)},uX=async(t,e=!1,n)=>{W1(t);const{loginWith:r,userPoolClientId:a}=t,{domain:s,redirectSignOut:i}=r.oauth,u=$_(i),c=`https://${s}/logout?${Object.entries({client_id:a,logout_uri:encodeURIComponent(u)}).map(([f,h])=>`${f}=${h}`).join("&")}`;return sL(c)},cX=async(t,e,n,r)=>{const{isOAuthSignIn:a}=await e.loadOAuthSignIn(),s=await n.getOAuthMetadata();if(await lX(e),a||s?.oauthSignIn)return uX(t,!1)},dX=t=>In(Gn,Vn("RevokeToken"),lr(),{...Kn,...t}),fX=new or("Auth");async function hX(t){const e=qt.getConfig().Auth?.Cognito;ut(e),await pX(e);let n;try{W1(e),n=!0}catch{n=!1}if(n){const r=new zD(dp);r.setAuthConfig(e);const{type:a}=await cX(e,r,qr)??{};if(a==="error")throw new ze({name:iK,message:"An error occurred when attempting to log out from OAuth provider."})}else qr.clearTokens(),await gD(),Is.dispatch("auth",{event:"signedOut"},"Auth",Rs)}async function pX(t){try{const{userPoolEndpoint:e,userPoolId:n,userPoolClientId:r}=t,a=await qr.getTokenStore().loadTokens();PD(a),mX(a.accessToken)&&await dX({endpointResolver:St({endpointOverride:e})})({region:bt(n),userAgentValue:Mt(Ze.SignOut)},{ClientId:r,Token:a.refreshToken})}catch{fX.debug("Client signOut error caught but will proceed with token removal")}}const mX=t=>!!t?.payload?.origin_jti,gX=t=>In(Gn,Vn("GetUserAttributeVerificationCode"),lr(),{...Kn,...t}),vX=async t=>{const{userAttributeKey:e,options:n}=t,r=qt.getConfig().Auth?.Cognito,a=n?.clientMetadata;ut(r);const{userPoolEndpoint:s,userPoolId:i}=r,{tokens:u}=await Y1({forceRefresh:!1});gd(u);const c=gX({endpointResolver:St({endpointOverride:s})}),{CodeDeliveryDetails:f}=await c({region:bt(i),userAgentValue:Mt(Ze.SendUserAttributeVerificationCode)},{AccessToken:u.accessToken.toString(),ClientMetadata:a,AttributeName:e}),{DeliveryMedium:h,AttributeName:m,Destination:g}={...f};return{destination:g,deliveryMedium:h,attributeName:m}},yX={identityId:"identityId"},bX=new or("DefaultIdentityIdStore");class lL{setAuthConfig(e){t0(e.Cognito),this.authConfig=e,this._authKeys=SX("Cognito",e.Cognito.identityPoolId)}constructor(e){this._authKeys={},this._hasGuestIdentityId=!1,this.keyValueStorage=e}async loadIdentityId(){t0(this.authConfig?.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{const e=await this.keyValueStorage.getItem(this._authKeys.identityId);return e?(this._hasGuestIdentityId=!0,{id:e,type:"guest"}):null}}catch(e){return bX.log("Error getting stored IdentityId.",e),null}}async storeIdentityId(e){t0(this.authConfig?.Cognito),e.type==="guest"?(this.keyValueStorage.setItem(this._authKeys.identityId,e.id),this._primaryIdentityId=void 0,this._hasGuestIdentityId=!0):(this._primaryIdentityId=e.id,this._hasGuestIdentityId&&(this.keyValueStorage.removeItem(this._authKeys.identityId),this._hasGuestIdentityId=!1))}async clearIdentityId(){this._primaryIdentityId=void 0,await this.keyValueStorage.removeItem(this._authKeys.identityId)}}const SX=(t,e)=>N_(yX)(`com.amplify.${t}`,e),wE=({endpointOverride:t})=>e=>t?{url:new Xi(t)}:MG(e);function uL(t){const e=Co(t).payload.iss,n={};if(!e)throw new ze({name:"InvalidIdTokenException",message:"Invalid Idtoken."});const r=e.replace(/(^\w+:|^)\/\//,"");return n[r]=t,n}async function wX({tokens:t,authConfig:e,identityIdStore:n}){n.setAuthConfig({Cognito:e});const r=await n.loadIdentityId();if(r)return r.id;const a=t?.idToken?uL(t.idToken.toString()):{},s=await xX(a,e);return n.storeIdentityId({id:s,type:t?"primary":"guest"}),s}async function xX(t,e){const n=e?.identityPoolId,r=hE(n),a=IG({endpointResolver:wE({endpointOverride:e.identityPoolEndpoint})});let s;try{s=(await a({region:r},{IdentityPoolId:n,Logins:t})).IdentityId}catch(i){throw Na(i),new ze(i)}if(!s)throw new ze({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return s}const ng=new or("CognitoCredentialsProvider"),B5=3e3*1e3;class cL{constructor(e){this._nextCredentialsRefresh=0,this._identityIdStore=e}async clearCredentialsAndIdentityId(){ng.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){ng.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(e){const n=e.authenticated,{tokens:r}=e,{authConfig:a}=e;try{t0(a?.Cognito)}catch{return}if(!n&&!a.Cognito.allowGuestAccess)return;const{forceRefresh:s}=e,i=this.hasTokenChanged(r),u=await wX({tokens:r,authConfig:a.Cognito,identityIdStore:this._identityIdStore});return(s||i)&&this.clearCredentials(),n?(cK(r),this.credsForOIDCTokens(a.Cognito,r,u)):this.getGuestCredentials(u,a.Cognito)}async getGuestCredentials(e,n){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!1)return ng.info("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const r=hE(n.identityPoolId),a=a5({endpointResolver:wE({endpointOverride:n.identityPoolEndpoint})});let s;try{s=await a({region:r},{IdentityId:e})}catch(i){throw Na(i),new ze(i)}if(s?.Credentials?.AccessKeyId&&s?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+B5;const i={credentials:{accessKeyId:s.Credentials.AccessKeyId,secretAccessKey:s.Credentials.SecretKey,sessionToken:s.Credentials.SessionToken,expiration:s.Credentials.Expiration},identityId:e};return s.IdentityId&&(i.identityId=s.IdentityId,this._identityIdStore.storeIdentityId({id:s.IdentityId,type:"guest"})),this._credentialsAndIdentityId={...i,isAuthenticatedCreds:!1},i}else throw new ze({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(e,n,r){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!0)return ng.debug("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const a=n.idToken?uL(n.idToken.toString()):{},s=hE(e.identityPoolId),i=a5({endpointResolver:wE({endpointOverride:e.identityPoolEndpoint})});let u;try{u=await i({region:s},{IdentityId:r,Logins:a})}catch(c){throw Na(c),new ze(c)}if(u?.Credentials?.AccessKeyId&&u?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+B5;const c={credentials:{accessKeyId:u.Credentials.AccessKeyId,secretAccessKey:u.Credentials.SecretKey,sessionToken:u.Credentials.SessionToken,expiration:u.Credentials.Expiration},identityId:r};return u.IdentityId&&(c.identityId=u.IdentityId,this._identityIdStore.storeIdentityId({id:u.IdentityId,type:"primary"})),this._credentialsAndIdentityId={...c,isAuthenticatedCreds:!0,associatedIdToken:n.idToken?.toString()},c}else throw new ze({name:"CredentialsException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}isPastTTL(){return this._nextCredentialsRefresh===void 0?!0:this._nextCredentialsRefresh<=Date.now()}hasTokenChanged(e){return!!e&&!!this._credentialsAndIdentityId?.associatedIdToken&&e.idToken?.toString()!==this._credentialsAndIdentityId.associatedIdToken}}const CX=new cL(new lL(dp)),dL={configure(t,e){const n=dD(t),r=new FG({sameSite:"lax"}),a=e?.ssr?r:dp,s=e?.ssr?new cL(new lL(r)):CX;if(!n.Auth||e?.Auth){qt.configure(n,e);return}r0.setAuthConfig(n.Auth),r0.setKeyValueStorage(a),qt.configure(n,{...e,Auth:{tokenProvider:r0,credentialsProvider:s}})},getConfig(){return qt.getConfig()}},EX=["internal","acme","tailscale","off"],_X=t=>typeof t=="string"&&EX.includes(t),ev=()=>{const t=globalThis.__REMIT_CONFIG__??{};return{apiUrl:t.apiUrl??"/api",appOrigin:t.appOrigin??"",betterAuthEnabled:t.betterAuthEnabled??!1,cognito:{userPoolId:t.cognito?.userPoolId??"",clientId:t.cognito?.clientId??"",domain:t.cognito?.domain??"",region:t.cognito?.region??""},rum:{appMonitorId:t.rum?.appMonitorId??"",identityPoolId:t.rum?.identityPoolId??"",region:t.rum?.region??"eu-west-1"},mailboxPollIntervalSeconds:t.mailboxPollIntervalSeconds!=null?String(t.mailboxPollIntervalSeconds):void 0,disableDevtools:t.disableDevtools??!1,tlsMode:_X(t.tlsMode)?t.tlsMode:"off"}},kX=()=>{const t=ev(),{userPoolId:e,clientId:n,domain:r,region:a}=t.cognito;return!e||!n?null:{userPoolId:e,userPoolClientId:n,domain:r,region:a,appOrigin:t.appOrigin}},xE=kX(),tv=()=>xE!==null,fL=()=>{if(!xE){console.warn("[auth] Cognito user pool is not configured. Running in local dev mode without Cognito auth.");return}const{userPoolId:t,userPoolClientId:e,domain:n,appOrigin:r}=xE;dL.configure({Auth:{Cognito:{userPoolId:t,userPoolClientId:e,loginWith:n?{oauth:{domain:n,scopes:["openid","email","profile"],redirectSignIn:r?[r]:[],redirectSignOut:r?[r]:[],responseType:"code"}}:void 0}}})};var AX={};const o0=Object.create(null),Nf=t=>AX||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?o0:globalThis),xi=new Proxy(o0,{get(t,e){return Nf()[e]??o0[e]},has(t,e){return e in Nf()||e in o0},set(t,e,n){const r=Nf(!0);return r[e]=n,!0},deleteProperty(t,e){if(!e)return!1;const n=Nf(!0);return delete n[e],!0},ownKeys(){const t=Nf(!0);return Object.keys(t)}});xi.NODE_ENV;var i0=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};const TX=47;function hL(t){let e=t.length;for(;e>0&&t.charCodeAt(e-1)===TX;)e--;return e===t.length?t:t.slice(0,e)}function RX(t){try{return(hL(new URL(t).pathname)||"/")!=="/"}catch{throw new i0(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function IX(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new i0(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof i0?e:new i0(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function $5(t,e="/api/auth"){if(IX(t),RX(t))return t;const n=hL(t);return!e||e==="/"?n:(e=e.startsWith("/")?e:`/${e}`,`${n}${e}`)}function OX(t,e,n,r,a){{const s=xi.BETTER_AUTH_URL||xi.NEXT_PUBLIC_BETTER_AUTH_URL||xi.PUBLIC_BETTER_AUTH_URL||xi.NUXT_PUBLIC_BETTER_AUTH_URL||xi.NUXT_PUBLIC_AUTH_URL||(xi.BASE_URL!=="/"?xi.BASE_URL:void 0);if(s)return $5(s,e)}if(typeof window<"u"&&window.location)return $5(window.location.origin,e)}const NX={proto:/"(?:_|\\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*:/,constructor:/"(?: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*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},MX=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,H5={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},PX=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function DX(t){return t instanceof Date&&!isNaN(t.getTime())}function LX(t){const e=PX.exec(t);if(!e)return null;const[,n,r,a,s,i,u,c,f,h,m]=e,g=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(a,10),parseInt(s,10),parseInt(i,10),parseInt(u,10),c?parseInt(c.padEnd(3,"0"),10):0));if(f){const y=(parseInt(h,10)*60+parseInt(m,10))*(f==="+"?-1:1);g.setUTCMinutes(g.getUTCMinutes()+y)}return DX(g)?g:null}function UX(t,e={}){const{strict:n=!1,warnings:r=!1,reviver:a,parseDates:s=!0}=e;if(typeof t!="string")return t;const i=t.trim(),u=i.toLowerCase();if(u.length<=9&&u in H5)return H5[u];if(!MX.test(i)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(NX).some(([c,f])=>{const h=f.test(i);return h&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${c} pattern`),h})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(f,h)=>{if(f==="__proto__"||f==="constructor"&&h&&typeof h=="object"&&"prototype"in h){r&&console.warn(`[better-json] Dropping "${f}" key to prevent prototype pollution`);return}if(s&&typeof h=="string"){const m=LX(h);if(m)return m}return a?a(f,h):h})}catch(c){if(n)throw c;return t}}function zX(t,e={strict:!0}){return UX(t,e)}const jX=["javascript:","data:","vbscript:"];function FX(t){let e;try{e=new URL(t)}catch{return!0}return!jX.includes(e.protocol)}const BX={id:"redirect",name:"Redirect",hooks:{onSuccess(t){if(t.data?.url&&t.data?.redirect&&FX(t.data.url)&&typeof window<"u"&&window.location&&window.location)try{window.location.href=t.data.url}catch{}}}};let Ya=[],Ci=0;const l0=4,$X=globalThis.nanostoresGlobal||={epoch:0};let HX=()=>{for(Ci=0;Ci<Ya.length;Ci+=l0)Ya[Ci](Ya[Ci+1].value,Ya[Ci+2],Ya[Ci+3]);Ya.length=0};const q5=t=>{let e=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},init:t,lc:0,listen(r){return n.lc=e.push(r),()=>{for(let s=Ci+l0;s<Ya.length;)Ya[s]===r?Ya.splice(s,l0):s+=l0;let a=e.indexOf(r);~a&&(e.splice(a,1),--n.lc||n.off())}},notify(r,a){$X.epoch++;let s=!Ya.length&&!0;for(let i of e)Ya.push(i,n,r,a);s&&HX()},off(){},set(r){let a=n.value;a!==r&&(n.value=r,n.notify(a))},subscribe(r){let a=n.listen(r);return r(n.value),a},value:t};return n},qX=2,WX=5,rg=6,ag=10;let pL=(t,e,n,r)=>(t.events=t.events||{},t.events[n+ag]||(t.events[n+ag]=r(a=>{t.events[n].reduceRight((s,i)=>(i(s),s),{shared:{},...a})})),t.events[n]=t.events[n]||[],t.events[n].push(e),()=>{let a=t.events[n],s=a.indexOf(e);a.splice(s,1),a.length||(delete t.events[n],t.events[n+ag](),delete t.events[n+ag])}),VX=(t,e)=>pL(t,e,qX,n=>{let r=t.set,a=t.setKey;return t.setKey&&(t.setKey=(s,i)=>{let u;if(n({abort:()=>{u=!0},changed:s,newValue:{...t.value,[s]:i}}),!u)return a(s,i)}),t.set=s=>{let i;if(n({abort:()=>{i=!0},newValue:s}),!i)return r(s)},()=>{t.set=r,t.setKey=a}});const GX=1e3;let KX=(t,e)=>pL(t,r=>{let a=e(r);a&&t.events[rg].push(a)},WX,r=>{let a=t.listen;t.listen=(...i)=>(!t.lc&&!t.active&&(t.active=!0,r()),a(...i));let s=t.off;return t.events[rg]=[],t.off=()=>{s(),setTimeout(()=>{if(t.active&&!t.lc){t.active=!1;for(let i of t.events[rg])i();t.events[rg]=[]}},GX)},()=>{t.listen=a,t.off=s}});function YX(t,e,n){let r=new Set(e);return t.listen((a,s,i)=>{(i===void 0?e.some(u=>a[u]!==s[u]):r.has(i)||r.has(i.split(/\.|\[/)[0]))&&n(a,s,i)})}function W5(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function L0(t,e){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!L0(t[n],e[n]))return!1;return!0}if(W5(t)&&W5(e)){const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(const a of n)if(!(a in e)||!L0(t[a],e[a]))return!1;return!0}return!1}function ZX(t,e){return VX(t,({newValue:n,abort:r})=>{e(t.value,n)&&r()})}const gS=Symbol.for("better-auth:broadcast-channel"),XX=()=>Math.floor(Date.now()/1e3);var QX=class{listeners=new Set;name;constructor(t="better-auth.message"){this.name=t}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}post(t){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...t,timestamp:XX()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=e=>{if(e.key!==this.name)return;const n=JSON.parse(e.newValue??"{}");n?.event!=="session"||!n?.data||this.listeners.forEach(r=>r(n))};return window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t)}}};function vS(t="better-auth.message"){return globalThis[gS]||(globalThis[gS]=new QX(t)),globalThis[gS]}const yS=Symbol.for("better-auth:focus-manager");var JX=class{listeners=new Set;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setFocused(t){this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",t,!1),()=>{document.removeEventListener("visibilitychange",t,!1)}}};function V5(){return globalThis[yS]||(globalThis[yS]=new JX),globalThis[yS]}const bS=Symbol.for("better-auth:online-manager");var eQ=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setOnline(t){this.isOnline=t,this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>this.setOnline(!0),e=()=>this.setOnline(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",e,!1),()=>{window.removeEventListener("online",t,!1),window.removeEventListener("offline",e,!1)}}};function SS(){return globalThis[bS]||(globalThis[bS]=new eQ),globalThis[bS]}const wS=()=>Math.floor(Date.now()/1e3),tQ=5;function nQ(t){const{fetchSession:e,shouldPollSession:n=()=>!0,sessionSignal:r,options:a={}}=t,s=a.sessionOptions?.refetchInterval??0,i=a.sessionOptions?.refetchOnWindowFocus??!0,u=a.sessionOptions?.refetchWhenOffline??!1,c={isInitialized:!1,lastSessionRequest:0},f=()=>u||SS().isOnline,h=A=>{if(f()){if(A?.event==="storage"){e();return}if(A?.event==="poll"){c.lastSessionRequest=wS(),e();return}if(A?.event==="visibilitychange"){if(wS()-c.lastSessionRequest<tQ)return;c.lastSessionRequest=wS(),e();return}e()}},m=A=>{vS().post({event:"session",data:{trigger:A},clientId:Math.random().toString(36).substring(7)})},g=()=>{s&&s>0&&(c.pollInterval=setInterval(()=>{n()&&h({event:"poll"})},s*1e3))},y=()=>{c.unsubscribeBroadcast=vS().subscribe(()=>{h({event:"storage"})})},S=()=>{i&&(c.unsubscribeFocus=V5().subscribe(()=>{h({event:"visibilitychange"})}))},w=()=>{c.unsubscribeOnline=SS().subscribe(A=>{A&&h({event:"visibilitychange"})})},x=()=>{c.unsubscribeSignal=r.listen(()=>{e()})};return{init:()=>{c.isInitialized||(c.isInitialized=!0,g(),y(),S(),w(),x(),c.cleanupBroadcastSetup=vS().setup(),c.cleanupFocusSetup=V5().setup(),c.cleanupOnlineSetup=SS().setup())},cleanup:()=>{c.isInitialized&&(c.pollInterval&&(clearInterval(c.pollInterval),c.pollInterval=void 0),c.unsubscribeBroadcast&&(c.unsubscribeBroadcast(),c.unsubscribeBroadcast=void 0),c.unsubscribeFocus&&(c.unsubscribeFocus(),c.unsubscribeFocus=void 0),c.unsubscribeOnline&&(c.unsubscribeOnline(),c.unsubscribeOnline=void 0),c.unsubscribeSignal&&(c.unsubscribeSignal(),c.unsubscribeSignal=void 0),c.cleanupBroadcastSetup&&(c.cleanupBroadcastSetup(),c.cleanupBroadcastSetup=void 0),c.cleanupFocusSetup&&(c.cleanupFocusSetup(),c.cleanupFocusSetup=void 0),c.cleanupOnlineSetup&&(c.cleanupOnlineSetup(),c.cleanupOnlineSetup=void 0),c.isInitialized=!1,c.lastSessionRequest=0)},triggerRefetch:h,broadcastSessionUpdate:m}}const rQ=()=>typeof window>"u";function G5(t){return typeof t=="object"&&t!==null&&"data"in t&&"error"in t?t:{data:t,error:null}}function aQ(t){return!t||t.session===null&&t.user===null?null:t}function sQ(t,e){return L0(t.data,e.data)&&t.error===e.error&&t.isPending===e.isPending&&t.isRefetching===e.isRefetching&&t.refetch===e.refetch}function oQ(t,e){const n=q5(!1);let r;const a=f=>u(f),s=q5({data:null,error:null,isPending:!0,isRefetching:!1,refetch:a});ZX(s,sQ);const i=f=>{if(r!==f)return;const h=s.get();r=void 0,!(!h.isPending&&!h.isRefetching)&&s.set({...h,isPending:!1,isRefetching:!1,refetch:a})},u=async f=>{r?.abort();const h=new AbortController;r=h;const m=s.get();s.set({...m,isPending:m.data===null,isRefetching:!0,error:null,refetch:a});try{const g=await t("/get-session",{method:"GET",query:f?.query,signal:h.signal});if(h.signal.aborted){i(h);return}let{data:y,error:S}=G5(g);if(y?.needsRefresh)try{const k=await t("/get-session",{method:"POST",signal:h.signal});if(h.signal.aborted){i(h);return}({data:y,error:S}=G5(k))}catch{if(h.signal.aborted){i(h);return}}if(S){const k=s.get(),A=S?.status===401;s.set({data:A?null:k.data,error:S,isPending:!1,isRefetching:!1,refetch:a});return}const w=aQ(y),x=s.get(),E=x.data!=null&&w!=null&&L0(x.data,w)?x.data:w;s.set({data:E,error:null,isPending:!1,isRefetching:!1,refetch:a})}catch(g){if(h.signal.aborted){i(h);return}const y=s.get();s.set({data:y.data,error:g,isPending:!1,isRefetching:!1,refetch:a})}};let c=()=>{};return KX(s,()=>{let f;rQ()||(f=setTimeout(()=>{u()},0));const h=nQ({fetchSession:u,shouldPollSession:()=>s.get().data!=null,sessionSignal:n,options:e});return h.init(),c=h.broadcastSessionUpdate,()=>{f&&clearTimeout(f);const m=r;m?.abort(),m&&i(m),h.cleanup()}}),{session:s,$sessionSignal:n,broadcastSessionUpdate:f=>c(f)}}function xS(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function CE(t,e,n=".",r){if(!xS(e))return CE(t,{},n,r);const a={...e};for(const s of Object.keys(t)){if(s==="__proto__"||s==="constructor")continue;const i=t[s];i!=null&&(r&&r(a,s,i,n)||(Array.isArray(i)&&Array.isArray(a[s])?a[s]=[...i,...a[s]]:xS(i)&&xS(a[s])?a[s]=CE(i,a[s],(n?`${n}.`:"")+s.toString(),r):a[s]=i))}return a}function iQ(t){return(...e)=>e.reduce((n,r)=>CE(n,r,"",t),{})}const lQ=iQ();var uQ=Object.defineProperty,cQ=Object.defineProperties,dQ=Object.getOwnPropertyDescriptors,K5=Object.getOwnPropertySymbols,fQ=Object.prototype.hasOwnProperty,hQ=Object.prototype.propertyIsEnumerable,Y5=(t,e,n)=>e in t?uQ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ga=(t,e)=>{for(var n in e||(e={}))fQ.call(e,n)&&Y5(t,n,e[n]);if(K5)for(var n of K5(e))hQ.call(e,n)&&Y5(t,n,e[n]);return t},xs=(t,e)=>cQ(t,dQ(e)),pQ=class extends Error{constructor(t,e,n){super(e||t.toString(),{cause:n}),this.status=t,this.statusText=e,this.error=n,Error.captureStackTrace(this,this.constructor)}},mQ=async(t,e)=>{var n,r,a,s,i,u;let c=e||{};const f={onRequest:[e?.onRequest],onResponse:[e?.onResponse],onSuccess:[e?.onSuccess],onError:[e?.onError],onRetry:[e?.onRetry]};if(!e||!e?.plugins)return{url:t,options:c,hooks:f};for(const h of e?.plugins||[]){if(h.init){const m=await((n=h.init)==null?void 0:n.call(h,t.toString(),e));c=m.options||c,t=m.url}f.onRequest.push((r=h.hooks)==null?void 0:r.onRequest),f.onResponse.push((a=h.hooks)==null?void 0:a.onResponse),f.onSuccess.push((s=h.hooks)==null?void 0:s.onSuccess),f.onError.push((i=h.hooks)==null?void 0:i.onError),f.onRetry.push((u=h.hooks)==null?void 0:u.onRetry)}return{url:t,options:c,hooks:f}},Z5=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(){return this.options.delay}},gQ=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(t){return Math.min(this.options.maxDelay,this.options.baseDelay*2**t)}};function vQ(t){if(typeof t=="number")return new Z5({type:"linear",attempts:t,delay:1e3});switch(t.type){case"linear":return new Z5(t);case"exponential":return new gQ(t);default:throw new Error("Invalid retry strategy")}}var yQ=async t=>{const e={},n=async r=>typeof r=="function"?await r():r;if(t?.auth){if(t.auth.type==="Bearer"){const r=await n(t.auth.token);if(!r)return e;e.authorization=`Bearer ${r}`}else if(t.auth.type==="Basic"){const[r,a]=await Promise.all([n(t.auth.username),n(t.auth.password)]);if(!r||!a)return e;e.authorization=`Basic ${btoa(`${r}:${a}`)}`}else if(t.auth.type==="Custom"){const[r,a]=await Promise.all([n(t.auth.prefix),n(t.auth.value)]);if(!a)return e;e.authorization=`${r??""} ${a}`}}return e},bQ=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function SQ(t){const e=t.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!e)return"json";const r=e.split(";").shift()||"";return bQ.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function wQ(t){try{return JSON.parse(t),!0}catch{return!1}}function mL(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}function X5(t){try{return JSON.parse(t)}catch{return t}}function Q5(t){return typeof t=="function"}function xQ(t){if(t?.customFetchImpl)return t.customFetchImpl;if(typeof globalThis<"u"&&Q5(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&Q5(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}function gL(...t){const e={};for(const n of t)if(n)if(n instanceof Headers)n.forEach((r,a)=>{e[a]=r});else{const r=Array.isArray(n)?n:Object.entries(n);for(const[a,s]of r)s!=null&&(e[a]=s)}return e}async function CQ(t){const e=new Headers(gL(t?.headers,await yQ(t)));if(!e.has("content-type")){const n=EQ(t?.body);n&&e.set("content-type",n)}return e}function EQ(t){return mL(t)?"application/json":null}function _Q(t){const e=t.get("content-type");return e?e.split(";")[0].trim().toLowerCase():null}function kQ(t,e){const{body:n}=t;return n?!mL(n)||typeof n=="string"?n:_Q(e)==="application/x-www-form-urlencoded"?new URLSearchParams(n).toString():JSON.stringify(n):null}function AQ(t,e){var n;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const r=(n=t.split("@")[1])==null?void 0:n.split("/")[0];return yL.includes(r)?r.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function TQ(t,e){let n;return!t?.signal&&t?.timeout&&(n=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var RQ=class vL extends Error{constructor(e,n){super(n||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,vL.prototype)}};async function nh(t,e){const n=await t["~standard"].validate(e);if(n.issues)throw new RQ(n.issues);return n.value}var yL=["get","post","put","patch","delete"],IQ=t=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,n){var r,a,s,i;const u=((a=(r=t.plugins)==null?void 0:r.find(c=>{var f;return(f=c.schema)!=null&&f.config?e.startsWith(c.schema.config.baseURL||"")||e.startsWith(c.schema.config.prefix||""):!1}))==null?void 0:a.schema)||t.schema;if(u){let c=e;(s=u.config)!=null&&s.prefix&&c.startsWith(u.config.prefix)&&(c=c.replace(u.config.prefix,""),u.config.baseURL&&(e=e.replace(u.config.prefix,u.config.baseURL))),(i=u.config)!=null&&i.baseURL&&c.startsWith(u.config.baseURL)&&(c=c.replace(u.config.baseURL,"")),c.startsWith("/")&&c.charAt(1)==="@"&&(c=c.substring(1));const f=u.schema[c];if(f){let h=n?.headers;if(f.headers&&!n?.disableValidation){const g={};if(n?.headers){if(n.headers instanceof Headers)n.headers.forEach((w,x)=>{g[x.toLowerCase()]=w});else if(typeof n.headers=="object")for(const[w,x]of Object.entries(n.headers))x!=null&&(g[w.toLowerCase()]=x)}const y=await nh(f.headers,g),S={};for(const[w,x]of Object.entries(y))S[w.toLowerCase()]=x;h=S}let m=xs(Ga({},n),{method:f.method,output:f.output,headers:h});return n?.disableValidation||(m=xs(Ga({},m),{body:f.input?await nh(f.input,n?.body):n?.body,params:f.params?await nh(f.params,n?.params):n?.params,query:f.query?await nh(f.query,n?.query):n?.query})),{url:e,options:m}}}return{url:e,options:n}}}),OQ=t=>{async function e(n,r){const a=xs(Ga(Ga({},t),r),{headers:gL(t?.headers,r?.headers),plugins:[...t?.plugins||[],IQ(t||{}),...r?.plugins||[]]});if(t?.catchAllError)try{return await EE(n,a)}catch(s){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:s}}}return await EE(n,a)}return e},NQ=t=>t==="."||t==="..";function MQ(t,e){let n=t;for(const[r,a]of e)n=n.replace(r,a);if(NQ(n))throw new TypeError("Path parameters cannot be reserved path segments");return encodeURIComponent(n)}function PQ(t,e){const{baseURL:n,params:r,query:a}=e||{query:{},params:{},baseURL:""};let s=t.startsWith("http")?t.split("/").slice(0,3).join("/"):n||"";if(t.startsWith("@")){const g=t.toString().split("@")[1].split("/")[0];yL.includes(g)&&(t=t.replace(`@${g}/`,"/"))}s.endsWith("/")||(s+="/");let[i,u]=t.replace(s,"").split("?");const c=new URLSearchParams(u);for(const[g,y]of Object.entries(a||{})){if(y==null)continue;let S;if(typeof y=="string")S=y;else if(Array.isArray(y)){for(const w of y)c.append(g,w);continue}else S=JSON.stringify(y);c.set(g,S)}const f=new Map;if(r)if(Array.isArray(r)){const g=i.split("/").filter(y=>y.startsWith(":"));for(const[y,S]of g.entries()){const w=r[y];f.set(S,String(w))}}else for(const[g,y]of Object.entries(r))f.set(`:${g}`,String(y));i=i.split("/").map(g=>MQ(g,f)).join("/"),i=i.replace(/^\/+/,"");let h=c.toString();return h=h.length>0?`?${h}`.replace(/\+/g,"%20"):"",s.startsWith("http")?new URL(`${i}${h}`,s):`${s}${i}${h}`}var EE=async(t,e)=>{var n,r,a,s,i,u,c,f;const{hooks:h,url:m,options:g}=await mQ(t,e),y=xQ(g),S=new AbortController,w=(n=g.signal)!=null?n:S.signal,x=PQ(m,g),E=await CQ(g),k=kQ(g,E),A=AQ(m,g),R=xs(Ga({},g),{url:x,headers:E,body:k,method:A,signal:w});for(const $ of h.onRequest)if($){const Z=await $(R);typeof Z=="object"&&Z!==null&&Object.assign(R,Z)}("pipeTo"in R&&typeof R.pipeTo=="function"||typeof((r=e?.body)==null?void 0:r.pipe)=="function")&&("duplex"in R||(R.duplex="half"));const{clearTimeout:N}=TQ(g,S);let O=await y(R.url,R);N();const I={response:O,request:R};for(const $ of h.onResponse)if($){const Z=await $(xs(Ga({},I),{response:(a=e?.hookOptions)!=null&&a.cloneResponse?O.clone():O}));Z instanceof Response?O=Z:typeof Z=="object"&&Z!==null&&(O=Z.response)}if(O.ok){if(!(R.method!=="HEAD"))return{data:"",error:null};const Z=SQ(O),J={data:null,response:O,request:R};if(Z==="json"||Z==="text"){const q=await O.text(),X=(s=R.jsonParser)!=null?s:X5;J.data=await X(q)}else J.data=await O[Z]();R?.output&&R.output&&!R.disableValidation&&(J.data=await nh(R.output,J.data));for(const q of h.onSuccess)q&&await q(xs(Ga({},J),{response:(i=e?.hookOptions)!=null&&i.cloneResponse?O.clone():O}));return e?.throw?J.data:{data:J.data,error:null}}const P=(u=e?.jsonParser)!=null?u:X5,U=await O.text(),H=wQ(U),z=H?await P(U):null,j={response:O,responseText:U,request:R,error:xs(Ga({},z),{status:O.status,statusText:O.statusText})};for(const $ of h.onError)$&&await $(xs(Ga({},j),{response:(c=e?.hookOptions)!=null&&c.cloneResponse?O.clone():O}));if(e?.retry){const $=vQ(e.retry),Z=(f=e.retryAttempt)!=null?f:0;if(await $.shouldAttemptRetry(Z,O)){for(const q of h.onRetry)q&&await q(I);const J=$.getDelay(Z);return await new Promise(q=>setTimeout(q,J)),await EE(t,xs(Ga({},e),{retryAttempt:Z+1}))}}if(e?.throw)throw new pQ(O.status,O.statusText,H?z:U);return{data:null,error:xs(Ga({},z),{status:O.status,statusText:O.statusText})}},wl={};const DQ=t=>{if(typeof process>"u")return;const e="/api/auth";if(wl.NEXT_PUBLIC_AUTH_URL)return wl.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(wl.NEXTAUTH_URL)try{return wl.NEXTAUTH_URL}catch{}if(wl.VERCEL_URL)try{const n=wl.VERCEL_URL.startsWith("http")?"":"https://";return`${new URL(`${n}${wl.VERCEL_URL}`).origin}${e}`}catch{}}},LQ=(t,e)=>{const n="credentials"in Request.prototype,r=OX(t?.baseURL,t?.basePath)??DQ()??"/api/auth",a=[],s={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:t?.fetchOptions?.onSuccess,onError:t?.fetchOptions?.onError,onRequest:t?.fetchOptions?.onRequest,onResponse:t?.fetchOptions?.onResponse}},{onSuccess:i,onError:u,onRequest:c,onResponse:f,...h}={},m=OQ({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(N){return N?zX(N,{strict:!1}):null},customFetchImpl:fetch,...h,plugins:[s,...h.plugins||[],BX,...a]}),{$sessionSignal:g,session:y,broadcastSessionUpdate:S}=oQ(m,t),w=[];let x={};const E={$sessionSignal:g,session:y},k={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},A=[{signal:"$sessionSignal",matcher(N){return N==="/sign-out"||N==="/update-user"||N==="/update-session"||N==="/sign-up/email"||N==="/sign-in/email"||N==="/delete-user"||N==="/verify-email"||N==="/revoke-sessions"||N==="/revoke-session"||N==="/revoke-other-sessions"||N==="/change-email"||N==="/change-password"},callback(N){N==="/sign-out"?S("signout"):(N==="/update-user"||N==="/update-session")&&S("updateUser")}}];for(const N of w)N.getAtoms&&Object.assign(E,N.getAtoms?.(m)),N.pathMethods&&Object.assign(k,N.pathMethods),N.atomListeners&&A.push(...N.atomListeners);const R={notify:N=>{E[N].set(!E[N].get())},listen:(N,O)=>{E[N].subscribe(O)},atoms:E};for(const N of w)N.getActions&&(x=lQ(N.getActions?.(m,R,t)??{},x));return{get baseURL(){return r},pluginsActions:x,pluginsAtoms:E,pluginPathMethods:k,atomListeners:A,$fetch:m,$store:R}};function UQ(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function zQ(t){return t.charAt(0).toUpperCase()+t.slice(1)}const jQ=new RegExp("[\\p{Ll}\\d]+|\\p{Lu}+(?!\\p{Ll})|\\p{Lu}[\\p{Ll}\\d]+|\\p{Lo}+","gu"),FQ=/['\u2019]/g;function BQ(t){return t.replace(FQ,"").match(jQ)??[]}function $Q(t){return BQ(t).map(e=>e.toLowerCase()).join("-")}function HQ(t,e,n){const r=e[t],{fetchOptions:a,query:s,...i}=n||{};return r||(a?.method?a.method:i&&Object.keys(i).length>0?"POST":"GET")}function qQ(t,e,n,r,a){function s(i=[]){return new Proxy(function(){},{get(u,c){if(typeof c!="string"||c==="then"||c==="catch"||c==="finally")return;const f=[...i,c];let h=t;for(const m of f)if(h&&typeof h=="object"&&m in h)h=h[m];else{h=void 0;break}return typeof h=="function"||UQ(h)?h:s(f)},apply:async(u,c,f)=>{const h="/"+i.map($Q).join("/"),m=f[0]||{},g=f[1]||{},{query:y,fetchOptions:S,...w}=m,x={...g,...S},E=HQ(h,n,m);return await e(h,{...x,body:E==="GET"?void 0:{...w,...x?.body||{}},query:y||x?.query,method:E,async onSuccess(k){if(await x?.onSuccess?.(k),!a||x.disableSignal)return;const A=a.filter(N=>N.matcher(h));if(!A.length)return;const R=new Set;for(const N of A){const O=r[N.signal];if(!O)return;if(R.has(N.signal))continue;R.add(N.signal);const I=O.get();setTimeout(()=>{O.set(!I)},10),N.callback?.(h)}}})}})}return s()}var CS={exports:{}},Ke={};var J5;function WQ(){if(J5)return Ke;J5=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),g=Symbol.iterator;function y(D){return D===null||typeof D!="object"?null:(D=g&&D[g]||D["@@iterator"],typeof D=="function"?D:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function E(D,Y,G){this.props=D,this.context=Y,this.refs=x,this.updater=G||S}E.prototype.isReactComponent={},E.prototype.setState=function(D,Y){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,Y,"setState")},E.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function k(){}k.prototype=E.prototype;function A(D,Y,G){this.props=D,this.context=Y,this.refs=x,this.updater=G||S}var R=A.prototype=new k;R.constructor=A,w(R,E.prototype),R.isPureReactComponent=!0;var N=Array.isArray;function O(){}var I={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function U(D,Y,G){var Q=G.ref;return{$$typeof:t,type:D,key:Y,ref:Q!==void 0?Q:null,props:G}}function H(D,Y){return U(D.type,Y,D.props)}function z(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function j(D){var Y={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(G){return Y[G]})}var $=/\/+/g;function Z(D,Y){return typeof D=="object"&&D!==null&&D.key!=null?j(""+D.key):Y.toString(36)}function J(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(O,O):(D.status="pending",D.then(function(Y){D.status==="pending"&&(D.status="fulfilled",D.value=Y)},function(Y){D.status==="pending"&&(D.status="rejected",D.reason=Y)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function q(D,Y,G,Q,V){var ue=typeof D;(ue==="undefined"||ue==="boolean")&&(D=null);var oe=!1;if(D===null)oe=!0;else switch(ue){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(D.$$typeof){case t:case e:oe=!0;break;case h:return oe=D._init,q(oe(D._payload),Y,G,Q,V)}}if(oe)return V=V(D),oe=Q===""?"."+Z(D,0):Q,N(V)?(G="",oe!=null&&(G=oe.replace($,"$&/")+"/"),q(V,Y,G,"",function(Ge){return Ge})):V!=null&&(z(V)&&(V=H(V,G+(V.key==null||D&&D.key===V.key?"":(""+V.key).replace($,"$&/")+"/")+oe)),Y.push(V)),1;oe=0;var ce=Q===""?".":Q+":";if(N(D))for(var be=0;be<D.length;be++)Q=D[be],ue=ce+Z(Q,be),oe+=q(Q,Y,G,ue,V);else if(be=y(D),typeof be=="function")for(D=be.call(D),be=0;!(Q=D.next()).done;)Q=Q.value,ue=ce+Z(Q,be++),oe+=q(Q,Y,G,ue,V);else if(ue==="object"){if(typeof D.then=="function")return q(J(D),Y,G,Q,V);throw Y=String(D),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return oe}function X(D,Y,G){if(D==null)return D;var Q=[],V=0;return q(D,Q,"","",function(ue){return Y.call(G,ue,V++)}),Q}function ae(D){if(D._status===-1){var Y=D._result;Y=Y(),Y.then(function(G){(D._status===0||D._status===-1)&&(D._status=1,D._result=G)},function(G){(D._status===0||D._status===-1)&&(D._status=2,D._result=G)}),D._status===-1&&(D._status=0,D._result=Y)}if(D._status===1)return D._result.default;throw D._result}var he=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},xe={map:X,forEach:function(D,Y,G){X(D,function(){Y.apply(this,arguments)},G)},count:function(D){var Y=0;return X(D,function(){Y++}),Y},toArray:function(D){return X(D,function(Y){return Y})||[]},only:function(D){if(!z(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ke.Activity=m,Ke.Children=xe,Ke.Component=E,Ke.Fragment=n,Ke.Profiler=a,Ke.PureComponent=A,Ke.StrictMode=r,Ke.Suspense=c,Ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,Ke.__COMPILER_RUNTIME={__proto__:null,c:function(D){return I.H.useMemoCache(D)}},Ke.cache=function(D){return function(){return D.apply(null,arguments)}},Ke.cacheSignal=function(){return null},Ke.cloneElement=function(D,Y,G){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var Q=w({},D.props),V=D.key;if(Y!=null)for(ue in Y.key!==void 0&&(V=""+Y.key),Y)!P.call(Y,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&Y.ref===void 0||(Q[ue]=Y[ue]);var ue=arguments.length-2;if(ue===1)Q.children=G;else if(1<ue){for(var oe=Array(ue),ce=0;ce<ue;ce++)oe[ce]=arguments[ce+2];Q.children=oe}return U(D.type,V,Q)},Ke.createContext=function(D){return D={$$typeof:i,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:s,_context:D},D},Ke.createElement=function(D,Y,G){var Q,V={},ue=null;if(Y!=null)for(Q in Y.key!==void 0&&(ue=""+Y.key),Y)P.call(Y,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(V[Q]=Y[Q]);var oe=arguments.length-2;if(oe===1)V.children=G;else if(1<oe){for(var ce=Array(oe),be=0;be<oe;be++)ce[be]=arguments[be+2];V.children=ce}if(D&&D.defaultProps)for(Q in oe=D.defaultProps,oe)V[Q]===void 0&&(V[Q]=oe[Q]);return U(D,ue,V)},Ke.createRef=function(){return{current:null}},Ke.forwardRef=function(D){return{$$typeof:u,render:D}},Ke.isValidElement=z,Ke.lazy=function(D){return{$$typeof:h,_payload:{_status:-1,_result:D},_init:ae}},Ke.memo=function(D,Y){return{$$typeof:f,type:D,compare:Y===void 0?null:Y}},Ke.startTransition=function(D){var Y=I.T,G={};I.T=G;try{var Q=D(),V=I.S;V!==null&&V(G,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(O,he)}catch(ue){he(ue)}finally{Y!==null&&G.types!==null&&(Y.types=G.types),I.T=Y}},Ke.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},Ke.use=function(D){return I.H.use(D)},Ke.useActionState=function(D,Y,G){return I.H.useActionState(D,Y,G)},Ke.useCallback=function(D,Y){return I.H.useCallback(D,Y)},Ke.useContext=function(D){return I.H.useContext(D)},Ke.useDebugValue=function(){},Ke.useDeferredValue=function(D,Y){return I.H.useDeferredValue(D,Y)},Ke.useEffect=function(D,Y){return I.H.useEffect(D,Y)},Ke.useEffectEvent=function(D){return I.H.useEffectEvent(D)},Ke.useId=function(){return I.H.useId()},Ke.useImperativeHandle=function(D,Y,G){return I.H.useImperativeHandle(D,Y,G)},Ke.useInsertionEffect=function(D,Y){return I.H.useInsertionEffect(D,Y)},Ke.useLayoutEffect=function(D,Y){return I.H.useLayoutEffect(D,Y)},Ke.useMemo=function(D,Y){return I.H.useMemo(D,Y)},Ke.useOptimistic=function(D,Y){return I.H.useOptimistic(D,Y)},Ke.useReducer=function(D,Y,G){return I.H.useReducer(D,Y,G)},Ke.useRef=function(D){return I.H.useRef(D)},Ke.useState=function(D){return I.H.useState(D)},Ke.useSyncExternalStore=function(D,Y,G){return I.H.useSyncExternalStore(D,Y,G)},Ke.useTransition=function(){return I.H.useTransition()},Ke.version="19.2.7",Ke}var eO;function gp(){return eO||(eO=1,CS.exports=WQ()),CS.exports}var _=gp();const F=hd(_),bL=oD({__proto__:null,default:F},[_]);function VQ(t,e={}){const n=_.useRef(t.get()),{keys:r,deps:a=[t,r]}=e,s=_.useCallback(u=>{const c=f=>{n.current!==f&&(n.current=f,u())};return c(t.value),r?.length?YX(t,r,c):t.listen(c)},a),i=()=>n.current;return _.useSyncExternalStore(s,i,i)}function GQ(t){return`use${zQ(t)}`}function KQ(t){const{pluginPathMethods:e,pluginsActions:n,pluginsAtoms:r,$fetch:a,$store:s,atomListeners:i}=LQ(t),u={};for(const[c,f]of Object.entries(r))u[GQ(c)]=()=>VQ(f);return qQ({...n,...u,$fetch:a,$store:s},a,e,r,i)}const YQ=10,zc=[],ZQ=["x-correlation-id","x-request-id","x-amzn-requestid","x-amzn-trace-id","apigw-requestid","x-trace-id"];function XQ(t){const e=typeof t=="string"?t:t instanceof URL?t.href:t.url;try{return new URL(e,window.location.origin).pathname}catch{return e.split(/[?#]/)[0]}}function QQ(t,e){return e?.method?e.method.toUpperCase():typeof t!="string"&&!(t instanceof URL)&&t.method?t.method.toUpperCase():"GET"}function JQ(t){for(const e of ZQ){const n=t.headers.get(e);if(n)return n}}function eJ(t){zc.push(t),zc.length>YQ&&zc.shift()}function tO(t){const{input:e,init:n,response:r,durationMs:a}=t;eJ({method:QQ(e,n),path:XQ(e),status:r?.status??0,durationMs:Math.round(a),correlationId:r?JQ(r):void 0,timestamp:new Date().toISOString()})}function tJ(){return zc.slice()}function nJ(){for(let t=zc.length-1;t>=0;t--){const e=zc[t];if(e.status===0||e.status>=400)return e}}class q_ extends Error{constructor(e){super(e instanceof Error&&e.message?e.message:"The request could not be completed.",{cause:e}),this.name="NetworkError"}}const rJ=t=>typeof t=="object"&&t!==null&&"name"in t&&t.name==="AbortError",SL=async(t,e)=>{const n=performance.now();try{const r=await fetch(t,e);return tO({input:t,init:e,response:r,durationMs:performance.now()-n}),r}catch(r){throw rJ(r)?r:(tO({input:t,init:e,durationMs:performance.now()-n}),new q_(r))}},nv=()=>ev().betterAuthEnabled,aJ="EMAIL_PASSWORD_SIGN_UP_DISABLED",sJ=t=>typeof t=="object"&&t!==null&&t.code===aJ,Oh=KQ(),oJ=60,iJ=30,_E="remit.better-auth.token",wL=()=>{try{return globalThis.sessionStorage??null}catch{return null}},lJ=()=>{const t=wL()?.getItem(_E);if(!t)return null;try{const e=JSON.parse(t);if(e&&typeof e=="object"&&typeof e.value=="string"&&typeof e.expiresAt=="number")return{value:e.value,expiresAt:e.expiresAt}}catch{}return null},xL=t=>{const e=wL();if(e)try{if(!t){e.removeItem(_E);return}e.setItem(_E,JSON.stringify(t))}catch{}};let Rl=null,U0=0;const uJ=()=>Rl||(Rl=lJ(),Rl),Ll=()=>Math.floor(Date.now()/1e3),cJ=t=>{const[,e]=t.split(".");if(!e)return Ll();try{const n=JSON.parse(atob(e.replace(/-/g,"+").replace(/_/g,"/")));return typeof n.exp=="number"?n.exp:Ll()}catch{return Ll()}};class z0 extends Error{status;constructor(e,n){super(e),this.name="AuthTokenError",this.status=n}}const dJ=async()=>{const t=await SL("/api/auth/token",{credentials:"include"});if(!t.ok)throw new z0(`Could not mint a session token: ${t.status} ${t.statusText}`,t.status);const e=await t.json();if(e&&typeof e=="object"&&"token"in e&&typeof e.token=="string")return e.token;throw new z0("The token endpoint returned no token")};let Mf=null;const fJ=()=>Mf||(Mf=dJ().then(t=>(Rl={value:t,expiresAt:cJ(t)},xL(Rl),U0=0,t)).finally(()=>{Mf=null}),Mf),hJ=t=>t.expiresAt-oJ>Ll(),nO=t=>t.expiresAt>Ll(),pJ=t=>t instanceof q_?!0:t instanceof z0?t.status===408||t.status===429||(t.status??0)>=500:!1,mJ=t=>t instanceof z0&&(t.status===401||t.status===403),gJ=async()=>{const t=uJ();if(t&&hJ(t)||t&&nO(t)&&Ll()<U0)return t.value;try{return await fJ()}catch(e){if(mJ(e))throw W_(),e;if(t&&nO(t)&&pJ(e))return U0=Ll()+iJ,t.value;throw e}},W_=()=>{U0=0,xL(null),Rl=null};function CL(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=CL(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function EL(){for(var t,e,n=0,r="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=CL(t))&&(r&&(r+=" "),r+=e);return r}var ES={exports:{}},fr={};var rO;function vJ(){if(rO)return fr;rO=1;var t=gp();function e(c){var f="https://react.dev/errors/"+c;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)f+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(c,f,h){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:m==null?null:""+m,children:c,containerInfo:f,implementation:h}}var i=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(c,f){if(c==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return fr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,fr.createPortal=function(c,f){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(e(299));return s(c,f,null,h)},fr.flushSync=function(c){var f=i.T,h=r.p;try{if(i.T=null,r.p=2,c)return c()}finally{i.T=f,r.p=h,r.d.f()}},fr.preconnect=function(c,f){typeof c=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(c,f))},fr.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},fr.preinit=function(c,f){if(typeof c=="string"&&f&&typeof f.as=="string"){var h=f.as,m=u(h,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;h==="style"?r.d.S(c,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:y}):h==="script"&&r.d.X(c,{crossOrigin:m,integrity:g,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},fr.preinitModule=function(c,f){if(typeof c=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var h=u(f.as,f.crossOrigin);r.d.M(c,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(c)},fr.preload=function(c,f){if(typeof c=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var h=f.as,m=u(h,f.crossOrigin);r.d.L(c,h,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},fr.preloadModule=function(c,f){if(typeof c=="string")if(f){var h=u(f.as,f.crossOrigin);r.d.m(c,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(c)},fr.requestFormReset=function(c){r.d.r(c)},fr.unstable_batchedUpdates=function(c,f){return c(f)},fr.useFormState=function(c,f,h){return i.H.useFormState(c,f,h)},fr.useFormStatus=function(){return i.H.useHostTransitionStatus()},fr.version="19.2.7",fr}var aO;function _L(){if(aO)return ES.exports;aO=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),ES.exports=vJ(),ES.exports}var yJ=_L(),_S={exports:{}},kS={};var sO;function bJ(){if(sO)return kS;sO=1;var t=gp();function e(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,a=t.useEffect,s=t.useLayoutEffect,i=t.useDebugValue;function u(m,g){var y=g(),S=r({inst:{value:y,getSnapshot:g}}),w=S[0].inst,x=S[1];return s(function(){w.value=y,w.getSnapshot=g,c(w)&&x({inst:w})},[m,y,g]),a(function(){return c(w)&&x({inst:w}),m(function(){c(w)&&x({inst:w})})},[m]),i(y),y}function c(m){var g=m.getSnapshot;m=m.value;try{var y=g();return!n(m,y)}catch{return!0}}function f(m,g){return g()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return kS.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:h,kS}var oO;function SJ(){return oO||(oO=1,_S.exports=bJ()),_S.exports}const wJ=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),kL=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();var xJ={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const CJ=_.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:i,...u},c)=>_.createElement("svg",{ref:c,...xJ,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:kL("lucide",a),...u},[...i.map(([f,h])=>_.createElement(f,h)),...Array.isArray(s)?s:[s]]));const Rt=(t,e)=>{const n=_.forwardRef(({className:r,...a},s)=>_.createElement(CJ,{ref:s,iconNode:e,className:kL(`lucide-${wJ(t)}`,r),...a}));return n.displayName=`${t}`,n};const EJ=Rt("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);const AL=Rt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const _J=Rt("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const rv=Rt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const kE=Rt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const kJ=Rt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const AJ=Rt("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const TJ=Rt("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);const RJ=Rt("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const IJ=Rt("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const OJ=Rt("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);const NJ=Rt("FolderInput",[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]]);const MJ=Rt("FolderPlus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const PJ=Rt("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);const DJ=Rt("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const TL=Rt("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);const RL=Rt("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);const j0=Rt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const LJ=Rt("Mails",[["rect",{width:"16",height:"13",x:"6",y:"4",rx:"2",key:"1drq3f"}],["path",{d:"m22 7-7.1 3.78c-.57.3-1.23.3-1.8 0L6 7",key:"xn252p"}],["path",{d:"M2 8v11c0 1.1.9 2 2 2h14",key:"n13cji"}]]);const V_=Rt("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const UJ=Rt("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);const zJ=Rt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const jJ=Rt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);const FJ=Rt("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const AE=Rt("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);const BJ=Rt("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);const $J=Rt("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);const HJ=Rt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);const Nh=Rt("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const qJ=Rt("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);const WJ=Rt("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);const Ms=Rt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),G_="-",VJ=t=>{const e=KJ(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:i=>{const u=i.split(G_);return u[0]===""&&u.length!==1&&u.shift(),IL(u,e)||GJ(i)},getConflictingClassGroupIds:(i,u)=>{const c=n[i]||[];return u&&r[i]?[...c,...r[i]]:c}}},IL=(t,e)=>{if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),a=r?IL(t.slice(1),r):void 0;if(a)return a;if(e.validators.length===0)return;const s=t.join(G_);return e.validators.find(({validator:i})=>i(s))?.classGroupId},iO=/^\[(.+)\]$/,GJ=t=>{if(iO.test(t)){const e=iO.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},KJ=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return ZJ(Object.entries(t.classGroups),n).forEach(([s,i])=>{TE(i,r,s,e)}),r},TE=(t,e,n,r)=>{t.forEach(a=>{if(typeof a=="string"){const s=a===""?e:lO(e,a);s.classGroupId=n;return}if(typeof a=="function"){if(YJ(a)){TE(a(r),e,n,r);return}e.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,i])=>{TE(i,lO(e,s),n,r)})})},lO=(t,e)=>{let n=t;return e.split(G_).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},YJ=t=>t.isThemeGetter,ZJ=(t,e)=>e?t.map(([n,r])=>{const a=r.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,u])=>[e+i,u])):s);return[n,a]}):t,XJ=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const a=(s,i)=>{n.set(s,i),e++,e>t&&(e=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return a(s,i),i},set(s,i){n.has(s)?n.set(s,i):a(s,i)}}},OL="!",QJ=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,a=e[0],s=e.length,i=u=>{const c=[];let f=0,h=0,m;for(let x=0;x<u.length;x++){let E=u[x];if(f===0){if(E===a&&(r||u.slice(x,x+s)===e)){c.push(u.slice(h,x)),h=x+s;continue}if(E==="/"){m=x;continue}}E==="["?f++:E==="]"&&f--}const g=c.length===0?u:u.substring(h),y=g.startsWith(OL),S=y?g.substring(1):g,w=m&&m>h?m-h:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:w}};return n?u=>n({className:u,parseClassName:i}):i},JJ=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},eee=t=>({cache:XJ(t.cacheSize),parseClassName:QJ(t),...VJ(t)}),tee=/\s+/,nee=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=e,s=[],i=t.trim().split(tee);let u="";for(let c=i.length-1;c>=0;c-=1){const f=i[c],{modifiers:h,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:y}=n(f);let S=!!y,w=r(S?g.substring(0,y):g);if(!w){if(!S){u=f+(u.length>0?" "+u:u);continue}if(w=r(g),!w){u=f+(u.length>0?" "+u:u);continue}S=!1}const x=JJ(h).join(":"),E=m?x+OL:x,k=E+w;if(s.includes(k))continue;s.push(k);const A=a(w,S);for(let R=0;R<A.length;++R){const N=A[R];s.push(E+N)}u=f+(u.length>0?" "+u:u)}return u};function ree(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=NL(e))&&(r&&(r+=" "),r+=n);return r}const NL=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=NL(t[r]))&&(n&&(n+=" "),n+=e);return n};function aee(t,...e){let n,r,a,s=i;function i(c){const f=e.reduce((h,m)=>m(h),t());return n=eee(f),r=n.cache.get,a=n.cache.set,s=u,u(c)}function u(c){const f=r(c);if(f)return f;const h=nee(c,n);return a(c,h),h}return function(){return s(ree.apply(null,arguments))}}const Xt=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},ML=/^\[(?:([a-z-]+):)?(.+)\]$/i,see=/^\d+\/\d+$/,oee=new Set(["px","full","screen"]),iee=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lee=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,uee=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,cee=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dee=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oo=t=>jc(t)||oee.has(t)||see.test(t),vi=t=>xd(t,"length",bee),jc=t=>!!t&&!Number.isNaN(Number(t)),AS=t=>xd(t,"number",jc),Pf=t=>!!t&&Number.isInteger(Number(t)),fee=t=>t.endsWith("%")&&jc(t.slice(0,-1)),tt=t=>ML.test(t),yi=t=>iee.test(t),hee=new Set(["length","size","percentage"]),pee=t=>xd(t,hee,PL),mee=t=>xd(t,"position",PL),gee=new Set(["image","url"]),vee=t=>xd(t,gee,wee),yee=t=>xd(t,"",See),Df=()=>!0,xd=(t,e,n)=>{const r=ML.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},bee=t=>lee.test(t)&&!uee.test(t),PL=()=>!1,See=t=>cee.test(t),wee=t=>dee.test(t),xee=()=>{const t=Xt("colors"),e=Xt("spacing"),n=Xt("blur"),r=Xt("brightness"),a=Xt("borderColor"),s=Xt("borderRadius"),i=Xt("borderSpacing"),u=Xt("borderWidth"),c=Xt("contrast"),f=Xt("grayscale"),h=Xt("hueRotate"),m=Xt("invert"),g=Xt("gap"),y=Xt("gradientColorStops"),S=Xt("gradientColorStopPositions"),w=Xt("inset"),x=Xt("margin"),E=Xt("opacity"),k=Xt("padding"),A=Xt("saturate"),R=Xt("scale"),N=Xt("sepia"),O=Xt("skew"),I=Xt("space"),P=Xt("translate"),U=()=>["auto","contain","none"],H=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",tt,e],j=()=>[tt,e],$=()=>["",oo,vi],Z=()=>["auto",jc,tt],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>["start","end","center","between","around","evenly","stretch"],he=()=>["","0",tt],xe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[jc,tt];return{cacheSize:500,separator:":",theme:{colors:[Df],spacing:[oo,vi],blur:["none","",yi,tt],brightness:D(),borderColor:[t],borderRadius:["none","","full",yi,tt],borderSpacing:j(),borderWidth:$(),contrast:D(),grayscale:he(),hueRotate:D(),invert:he(),gap:j(),gradientColorStops:[t],gradientColorStopPositions:[fee,vi],inset:z(),margin:z(),opacity:D(),padding:j(),saturate:D(),scale:D(),sepia:he(),skew:D(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",tt]}],container:["container"],columns:[{columns:[yi]}],"break-after":[{"break-after":xe()}],"break-before":[{"break-before":xe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),tt]}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pf,tt]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",tt]}],grow:[{grow:he()}],shrink:[{shrink:he()}],order:[{order:["first","last","none",Pf,tt]}],"grid-cols":[{"grid-cols":[Df]}],"col-start-end":[{col:["auto",{span:["full",Pf,tt]},tt]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[Df]}],"row-start-end":[{row:["auto",{span:[Pf,tt]},tt]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",tt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",tt]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...ae()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ae(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ae(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",tt,e]}],"min-w":[{"min-w":[tt,e,"min","max","fit"]}],"max-w":[{"max-w":[tt,e,"none","full","min","max","fit","prose",{screen:[yi]},yi]}],h:[{h:[tt,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[tt,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[tt,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[tt,e,"auto","min","max","fit"]}],"font-size":[{text:["base",yi,vi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",AS]}],"font-family":[{font:[Df]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",tt]}],"line-clamp":[{"line-clamp":["none",jc,AS]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",oo,tt]}],"list-image":[{"list-image":["none",tt]}],"list-style-type":[{list:["none","disc","decimal",tt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",oo,vi]}],"underline-offset":[{"underline-offset":["auto",oo,tt]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",tt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),mee]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",pee]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vee]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:q()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[oo,tt]}],"outline-w":[{outline:[oo,vi]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[oo,vi]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",yi,yee]}],"shadow-color":[{shadow:[Df]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",yi,tt]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[m]}],saturate:[{saturate:[A]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",tt]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",tt]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",tt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[Pf,tt]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",tt]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",tt]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",tt]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[oo,vi,AS]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},DL=aee(xee);function Ue(...t){return DL(EL(t))}const Cee=1024,Eee=1280;function _ee(t,e=Cee,n=Eee){const r=t>=e;return{nav:r,reading:r,intelligence:t>=n}}function kee(t){return t===void 0?!1:t.handlers.focusNext!==void 0&&t.handlers.focusPrevious!==void 0}function Aee(t){const e=_.useRef(null),[n,r]=_.useState(t??null);return _.useEffect(()=>{const a=e.current;if(!a||typeof ResizeObserver>"u")return;const s=new ResizeObserver(c=>{const f=c[0];f&&r(f.contentRect.width)});s.observe(a);const i=getComputedStyle(a),u=Number.parseFloat(i.paddingLeft)+Number.parseFloat(i.paddingRight);return r(a.clientWidth-u),()=>s.disconnect()},[]),[e,n]}const Tee=[{id:"all",label:"All"},{id:"personal",label:"Personal"},{id:"uncategorized",label:"Unclassified"},{id:"newsletter",label:"Newsletters"},{id:"marketing",label:"Marketing"},{id:"automated",label:"Automated"},{id:"transactional",label:"Transactional"},{id:"social",label:"Social"}],Ree={uncategorized:"neutral",personal:"accent",newsletter:"neutral",marketing:"neutral",automated:"neutral",transactional:"positive",social:"warning"};function Iee({open:t,onClose:e,title:n,children:r,className:a,anchor:s="center"}){const i=_.useRef(null),u=_.useCallback(h=>{if(h.key!=="Escape")return;const m=document.activeElement;m instanceof Element&&m.closest("[data-escape-owner]")||(h.preventDefault(),h.stopImmediatePropagation(),e())},[e]);if(_.useEffect(()=>{if(t)return window.addEventListener("keydown",u,!0),()=>window.removeEventListener("keydown",u,!0)},[t,u]),_.useEffect(()=>{if(!t)return;const h=i.current;if(!h)return;h.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')[0]?.focus()},[t]),!t)return null;const c=s==="left",f=s==="right";return C.jsxs("div",{className:Ue("fixed inset-0 z-50 flex",c?"items-stretch justify-start":f?"items-stretch justify-end":"items-center justify-center px-4"),role:"presentation",onClick:e,children:[C.jsx("div",{className:"absolute inset-0 bg-canvas/80"}),C.jsxs("div",{ref:i,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title",className:Ue("relative z-10 overflow-hidden border-line bg-surface shadow-xl",c?"safe-area-frame h-full w-72 max-w-[85vw] border-r":f?"safe-area-frame h-full w-[80vw] max-w-[320px] border-l":"w-full max-w-lg rounded-md border",a),onClick:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),children:[C.jsx("h2",{id:"dialog-title",className:"sr-only",children:n}),r]})]})}const av=_.createContext(null);av.displayName="PanelGroupContext";const yn={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},K_=10,Ul=_.useLayoutEffect,uO=bL.useId,Oee=typeof uO=="function"?uO:()=>null;let Nee=0;function Y_(t=null){const e=Oee(),n=_.useRef(t||e||null);return n.current===null&&(n.current=""+Nee++),t??n.current}function LL({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:a,forwardedRef:s,id:i,maxSize:u,minSize:c,onCollapse:f,onExpand:h,onResize:m,order:g,style:y,tagName:S="div",...w}){const x=_.useContext(av);if(x===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:E,expandPanel:k,getPanelSize:A,getPanelStyle:R,groupId:N,isPanelCollapsed:O,reevaluatePanelConstraints:I,registerPanel:P,resizePanel:U,unregisterPanel:H}=x,z=Y_(i),j=_.useRef({callbacks:{onCollapse:f,onExpand:h,onResize:m},constraints:{collapsedSize:n,collapsible:r,defaultSize:a,maxSize:u,minSize:c},id:z,idIsFromProps:i!==void 0,order:g});_.useRef({didLogMissingDefaultSizeWarning:!1}),Ul(()=>{const{callbacks:Z,constraints:J}=j.current,q={...J};j.current.id=z,j.current.idIsFromProps=i!==void 0,j.current.order=g,Z.onCollapse=f,Z.onExpand=h,Z.onResize=m,J.collapsedSize=n,J.collapsible=r,J.defaultSize=a,J.maxSize=u,J.minSize=c,(q.collapsedSize!==J.collapsedSize||q.collapsible!==J.collapsible||q.maxSize!==J.maxSize||q.minSize!==J.minSize)&&I(j.current,q)}),Ul(()=>{const Z=j.current;return P(Z),()=>{H(Z)}},[g,z,P,H]),_.useImperativeHandle(s,()=>({collapse:()=>{E(j.current)},expand:Z=>{k(j.current,Z)},getId(){return z},getSize(){return A(j.current)},isCollapsed(){return O(j.current)},isExpanded(){return!O(j.current)},resize:Z=>{U(j.current,Z)}}),[E,k,A,O,z,U]);const $=R(j.current,a);return _.createElement(S,{...w,children:t,className:e,id:z,style:{...$,...y},[yn.groupId]:N,[yn.panel]:"",[yn.panelCollapsible]:r||void 0,[yn.panelId]:z,[yn.panelSize]:parseFloat(""+$.flexGrow).toFixed(1)})}const UL=_.forwardRef((t,e)=>_.createElement(LL,{...t,forwardedRef:e}));LL.displayName="Panel";UL.displayName="forwardRef(Panel)";let RE=null,u0=-1,Ti=null;function Mee(t,e){if(e){const n=(e&$L)!==0,r=(e&HL)!==0,a=(e&qL)!==0,s=(e&WL)!==0;if(n)return a?"se-resize":s?"ne-resize":"e-resize";if(r)return a?"sw-resize":s?"nw-resize":"w-resize";if(a)return"s-resize";if(s)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Pee(){Ti!==null&&(document.head.removeChild(Ti),RE=null,Ti=null,u0=-1)}function TS(t,e){var n,r;const a=Mee(t,e);if(RE!==a){if(RE=a,Ti===null&&(Ti=document.createElement("style"),document.head.appendChild(Ti)),u0>=0){var s;(s=Ti.sheet)===null||s===void 0||s.removeRule(u0)}u0=(n=(r=Ti.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${a} !important;}`))!==null&&n!==void 0?n:-1}}function zL(t){return t.type==="keydown"}function jL(t){return t.type.startsWith("pointer")}function FL(t){return t.type.startsWith("mouse")}function sv(t){if(jL(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(FL(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function Dee(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Lee(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function Uee(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:fO(t),b:fO(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;nt(r,"Stacking order can only be calculated for elements with a common ancestor");const a={a:dO(cO(n.a)),b:dO(cO(n.b))};if(a.a===a.b){const s=r.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let u=s.length;for(;u--;){const c=s[u];if(c===i.a)return 1;if(c===i.b)return-1}}return Math.sign(a.a-a.b)}const zee=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function jee(t){var e;const n=getComputedStyle((e=BL(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function Fee(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||jee(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||zee.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function cO(t){let e=t.length;for(;e--;){const n=t[e];if(nt(n,"Missing node"),Fee(n))return n}return null}function dO(t){return t&&Number(getComputedStyle(t).zIndex)||0}function fO(t){const e=[];for(;t;)e.push(t),t=BL(t);return e}function BL(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const $L=1,HL=2,qL=4,WL=8,Bee=Dee()==="coarse";let Xa=[],Fc=!1,Al=new Map,ov=new Map;const Mh=new Set;function $ee(t,e,n,r,a){var s;const{ownerDocument:i}=e,u={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:a},c=(s=Al.get(i))!==null&&s!==void 0?s:0;return Al.set(i,c+1),Mh.add(u),F0(),function(){var h;ov.delete(t),Mh.delete(u);const m=(h=Al.get(i))!==null&&h!==void 0?h:1;if(Al.set(i,m-1),F0(),m===1&&Al.delete(i),Xa.includes(u)){const g=Xa.indexOf(u);g>=0&&Xa.splice(g,1),X_(),a("up",!0,null)}}}function Hee(t){const{target:e}=t,{x:n,y:r}=sv(t);Fc=!0,Z_({target:e,x:n,y:r}),F0(),Xa.length>0&&(B0("down",t),t.preventDefault(),VL(e)||t.stopImmediatePropagation())}function RS(t){const{x:e,y:n}=sv(t);if(Fc&&t.buttons===0&&(Fc=!1,B0("up",t)),!Fc){const{target:r}=t;Z_({target:r,x:e,y:n})}B0("move",t),X_(),Xa.length>0&&t.preventDefault()}function IS(t){const{target:e}=t,{x:n,y:r}=sv(t);ov.clear(),Fc=!1,Xa.length>0&&(t.preventDefault(),VL(e)||t.stopImmediatePropagation()),B0("up",t),Z_({target:e,x:n,y:r}),X_(),F0()}function VL(t){let e=t;for(;e;){if(e.hasAttribute(yn.resizeHandle))return!0;e=e.parentElement}return!1}function Z_({target:t,x:e,y:n}){Xa.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Mh.forEach(a=>{const{element:s,hitAreaMargins:i}=a,u=s.getBoundingClientRect(),{bottom:c,left:f,right:h,top:m}=u,g=Bee?i.coarse:i.fine;if(e>=f-g&&e<=h+g&&n>=m-g&&n<=c+g){if(r!==null&&document.contains(r)&&s!==r&&!s.contains(r)&&!r.contains(s)&&Uee(r,s)>0){let S=r,w=!1;for(;S&&!S.contains(s);){if(Lee(S.getBoundingClientRect(),u)){w=!0;break}S=S.parentElement}if(w)return}Xa.push(a)}})}function OS(t,e){ov.set(t,e)}function X_(){let t=!1,e=!1;Xa.forEach(r=>{const{direction:a}=r;a==="horizontal"?t=!0:e=!0});let n=0;ov.forEach(r=>{n|=r}),t&&e?TS("intersection",n):t?TS("horizontal",n):e?TS("vertical",n):Pee()}let NS=new AbortController;function F0(){NS.abort(),NS=new AbortController;const t={capture:!0,signal:NS.signal};Mh.size&&(Fc?(Xa.length>0&&Al.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("contextmenu",IS,t),r.addEventListener("pointerleave",RS,t),r.addEventListener("pointermove",RS,t))}),window.addEventListener("pointerup",IS,t),window.addEventListener("pointercancel",IS,t)):Al.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("pointerdown",Hee,t),r.addEventListener("pointermove",RS,t))}))}function B0(t,e){Mh.forEach(n=>{const{setResizeHandlerState:r}=n,a=Xa.includes(n);r(t,a,e)})}function qee(){const[t,e]=_.useState(0);return _.useCallback(()=>e(n=>n+1),[])}function nt(t,e){if(!t)throw console.error(e),Error(e)}function Gl(t,e,n=K_){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function mo(t,e,n=K_){return Gl(t,e,n)===0}function ia(t,e,n){return Gl(t,e,n)===0}function Wee(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const a=t[r],s=e[r];if(!ia(a,s,n))return!1}return!0}function Rc({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];nt(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:a=0,collapsible:s,maxSize:i=100,minSize:u=0}=r;if(Gl(n,u)<0)if(s){const c=(a+u)/2;Gl(n,c)<0?n=a:n=u}else n=u;return n=Math.min(i,n),n=parseFloat(n.toFixed(K_)),n}function rh({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:a,trigger:s}){if(ia(t,0))return e;const i=[...e],[u,c]=r;nt(u!=null,"Invalid first pivot index"),nt(c!=null,"Invalid second pivot index");let f=0;if(s==="keyboard"){{const m=t<0?c:u,g=n[m];nt(g,`Panel constraints not found for index ${m}`);const{collapsedSize:y=0,collapsible:S,minSize:w=0}=g;if(S){const x=e[m];if(nt(x!=null,`Previous layout not found for panel index ${m}`),ia(x,y)){const E=w-x;Gl(E,Math.abs(t))>0&&(t=t<0?0-E:E)}}}{const m=t<0?u:c,g=n[m];nt(g,`No panel constraints found for index ${m}`);const{collapsedSize:y=0,collapsible:S,minSize:w=0}=g;if(S){const x=e[m];if(nt(x!=null,`Previous layout not found for panel index ${m}`),ia(x,w)){const E=x-y;Gl(E,Math.abs(t))>0&&(t=t<0?0-E:E)}}}}{const m=t<0?1:-1;let g=t<0?c:u,y=0;for(;;){const w=e[g];nt(w!=null,`Previous layout not found for panel index ${g}`);const E=Rc({panelConstraints:n,panelIndex:g,size:100})-w;if(y+=E,g+=m,g<0||g>=n.length)break}const S=Math.min(Math.abs(t),Math.abs(y));t=t<0?0-S:S}{let g=t<0?u:c;for(;g>=0&&g<n.length;){const y=Math.abs(t)-Math.abs(f),S=e[g];nt(S!=null,`Previous layout not found for panel index ${g}`);const w=S-y,x=Rc({panelConstraints:n,panelIndex:g,size:w});if(!ia(S,x)&&(f+=S-x,i[g]=x,f.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?g--:g++}}if(Wee(a,i))return a;{const m=t<0?c:u,g=e[m];nt(g!=null,`Previous layout not found for panel index ${m}`);const y=g+f,S=Rc({panelConstraints:n,panelIndex:m,size:y});if(i[m]=S,!ia(S,y)){let w=y-S,E=t<0?c:u;for(;E>=0&&E<n.length;){const k=i[E];nt(k!=null,`Previous layout not found for panel index ${E}`);const A=k+w,R=Rc({panelConstraints:n,panelIndex:E,size:A});if(ia(k,R)||(w-=R-k,i[E]=R),ia(w,0))break;t>0?E--:E++}}}const h=i.reduce((m,g)=>g+m,0);return ia(h,100)?i:a}function Vee({layout:t,panelsArray:e,pivotIndices:n}){let r=0,a=100,s=0,i=0;const u=n[0];nt(u!=null,"No pivot index found"),e.forEach((m,g)=>{const{constraints:y}=m,{maxSize:S=100,minSize:w=0}=y;g===u?(r=w,a=S):(s+=w,i+=S)});const c=Math.min(a,100-s),f=Math.max(r,100-i),h=t[u];return{valueMax:c,valueMin:f,valueNow:h}}function Ph(t,e=document){return Array.from(e.querySelectorAll(`[${yn.resizeHandleId}][data-panel-group-id="${t}"]`))}function GL(t,e,n=document){const a=Ph(t,n).findIndex(s=>s.getAttribute(yn.resizeHandleId)===e);return a??null}function KL(t,e,n){const r=GL(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function YL(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function iv(t,e=document){const n=e.querySelector(`[${yn.resizeHandleId}="${t}"]`);return n||null}function Gee(t,e,n,r=document){var a,s,i,u;const c=iv(e,r),f=Ph(t,r),h=c?f.indexOf(c):-1,m=(a=(s=n[h])===null||s===void 0?void 0:s.id)!==null&&a!==void 0?a:null,g=(i=(u=n[h+1])===null||u===void 0?void 0:u.id)!==null&&i!==void 0?i:null;return[m,g]}function Kee({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:a,panelGroupElement:s,setLayout:i}){_.useRef({didWarnAboutMissingResizeHandle:!1}),Ul(()=>{if(!s)return;const u=Ph(n,s);for(let c=0;c<a.length-1;c++){const{valueMax:f,valueMin:h,valueNow:m}=Vee({layout:r,panelsArray:a,pivotIndices:[c,c+1]}),g=u[c];if(g!=null){const y=a[c];nt(y,`No panel data found for index "${c}"`),g.setAttribute("aria-controls",y.id),g.setAttribute("aria-valuemax",""+Math.round(f)),g.setAttribute("aria-valuemin",""+Math.round(h)),g.setAttribute("aria-valuenow",m!=null?""+Math.round(m):"")}}return()=>{u.forEach((c,f)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[n,r,a,s]),_.useEffect(()=>{if(!s)return;const u=e.current;nt(u,"Eager values not found");const{panelDataArray:c}=u,f=YL(n,s);nt(f!=null,`No group found for id "${n}"`);const h=Ph(n,s);nt(h,`No resize handles found for group id "${n}"`);const m=h.map(g=>{const y=g.getAttribute(yn.resizeHandleId);nt(y,"Resize handle element has no handle id attribute");const[S,w]=Gee(n,y,c,s);if(S==null||w==null)return()=>{};const x=E=>{if(!E.defaultPrevented)switch(E.key){case"Enter":{E.preventDefault();const k=c.findIndex(A=>A.id===S);if(k>=0){const A=c[k];nt(A,`No panel data found for index ${k}`);const R=r[k],{collapsedSize:N=0,collapsible:O,minSize:I=0}=A.constraints;if(R!=null&&O){const P=rh({delta:ia(R,N)?I-N:N-R,initialLayout:r,panelConstraints:c.map(U=>U.constraints),pivotIndices:KL(n,y,s),prevLayout:r,trigger:"keyboard"});r!==P&&i(P)}}break}}};return g.addEventListener("keydown",x),()=>{g.removeEventListener("keydown",x)}});return()=>{m.forEach(g=>g())}},[s,t,e,n,r,a,i])}function hO(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function ZL(t,e){const n=t==="horizontal",{x:r,y:a}=sv(e);return n?r:a}function Yee(t,e,n,r,a){const s=n==="horizontal",i=iv(e,a);nt(i,`No resize handle element found for id "${e}"`);const u=i.getAttribute(yn.groupId);nt(u,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=r;const f=ZL(n,t),h=YL(u,a);nt(h,`No group element found for id "${u}"`);const m=h.getBoundingClientRect(),g=s?m.width:m.height;return(f-c)/g*100}function Zee(t,e,n,r,a,s){if(zL(t)){const i=n==="horizontal";let u=0;t.shiftKey?u=100:a!=null?u=a:u=10;let c=0;switch(t.key){case"ArrowDown":c=i?0:u;break;case"ArrowLeft":c=i?-u:0;break;case"ArrowRight":c=i?u:0;break;case"ArrowUp":c=i?0:-u;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return r==null?0:Yee(t,e,n,r,s)}function Xee({panelDataArray:t}){const e=Array(t.length),n=t.map(s=>s.constraints);let r=0,a=100;for(let s=0;s<t.length;s++){const i=n[s];nt(i,`Panel constraints not found for index ${s}`);const{defaultSize:u}=i;u!=null&&(r++,e[s]=u,a-=u)}for(let s=0;s<t.length;s++){const i=n[s];nt(i,`Panel constraints not found for index ${s}`);const{defaultSize:u}=i;if(u!=null)continue;const c=t.length-r,f=a/c;r++,e[s]=f,a-=f}return e}function sc(t,e,n){e.forEach((r,a)=>{const s=t[a];nt(s,`Panel data not found for index ${a}`);const{callbacks:i,constraints:u,id:c}=s,{collapsedSize:f=0,collapsible:h}=u,m=n[c];if(m==null||r!==m){n[c]=r;const{onCollapse:g,onExpand:y,onResize:S}=i;S&&S(r,m),h&&(g||y)&&(y&&(m==null||mo(m,f))&&!mo(r,f)&&y(),g&&(m==null||!mo(m,f))&&mo(r,f)&&g())}})}function sg(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function Qee({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:a,precision:s=3}){const i=n[a];let u;return i==null?u=t!=null?t.toPrecision(s):"1":r.length===1?u="1":u=i.toPrecision(s),{flexBasis:0,flexGrow:u,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Jee(t,e=10){let n=null;return(...a)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...a)},e)}}function pO(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function XL(t){return`react-resizable-panels:${t}`}function QL(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:a,order:s}=e;return a?r:s?`${s}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function JL(t,e){try{const n=XL(t),r=e.getItem(n);if(r){const a=JSON.parse(r);if(typeof a=="object"&&a!=null)return a}}catch{}return null}function ete(t,e,n){var r,a;const s=(r=JL(t,n))!==null&&r!==void 0?r:{},i=QL(e);return(a=s[i])!==null&&a!==void 0?a:null}function tte(t,e,n,r,a){var s;const i=XL(t),u=QL(e),c=(s=JL(t,a))!==null&&s!==void 0?s:{};c[u]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{a.setItem(i,JSON.stringify(c))}catch(f){console.error(f)}}function mO({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((s,i)=>s+i,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(s=>`${s}%`).join(", ")}`);if(!ia(r,100)&&n.length>0)for(let s=0;s<e.length;s++){const i=n[s];nt(i!=null,`No layout data found for index ${s}`);const u=100/r*i;n[s]=u}let a=0;for(let s=0;s<e.length;s++){const i=n[s];nt(i!=null,`No layout data found for index ${s}`);const u=Rc({panelConstraints:e,panelIndex:s,size:i});i!=u&&(a+=i-u,n[s]=u)}if(!ia(a,0))for(let s=0;s<e.length;s++){const i=n[s];nt(i!=null,`No layout data found for index ${s}`);const u=i+a,c=Rc({panelConstraints:e,panelIndex:s,size:u});if(i!==c&&(a-=c-i,n[s]=c,ia(a,0)))break}return n}const nte=100,ah={getItem:t=>(pO(ah),ah.getItem(t)),setItem:(t,e)=>{pO(ah),ah.setItem(t,e)}},gO={};function eU({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:a,id:s=null,onLayout:i=null,keyboardResizeBy:u=null,storage:c=ah,style:f,tagName:h="div",...m}){const g=Y_(s),y=_.useRef(null),[S,w]=_.useState(null),[x,E]=_.useState([]),k=qee(),A=_.useRef({}),R=_.useRef(new Map),N=_.useRef(0),O=_.useRef({autoSaveId:t,direction:r,dragState:S,id:g,keyboardResizeBy:u,onLayout:i,storage:c}),I=_.useRef({layout:x,panelDataArray:[],panelDataArrayChanged:!1});_.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),_.useImperativeHandle(a,()=>({getId:()=>O.current.id,getLayout:()=>{const{layout:G}=I.current;return G},setLayout:G=>{const{onLayout:Q}=O.current,{layout:V,panelDataArray:ue}=I.current,oe=mO({layout:G,panelConstraints:ue.map(ce=>ce.constraints)});hO(V,oe)||(E(oe),I.current.layout=oe,Q&&Q(oe),sc(ue,oe,A.current))}}),[]),Ul(()=>{O.current.autoSaveId=t,O.current.direction=r,O.current.dragState=S,O.current.id=g,O.current.onLayout=i,O.current.storage=c}),Kee({committedValuesRef:O,eagerValuesRef:I,groupId:g,layout:x,panelDataArray:I.current.panelDataArray,setLayout:E,panelGroupElement:y.current}),_.useEffect(()=>{const{panelDataArray:G}=I.current;if(t){if(x.length===0||x.length!==G.length)return;let Q=gO[t];Q==null&&(Q=Jee(tte,nte),gO[t]=Q);const V=[...G],ue=new Map(R.current);Q(t,V,ue,x,c)}},[t,x,c]),_.useEffect(()=>{});const P=_.useCallback(G=>{const{onLayout:Q}=O.current,{layout:V,panelDataArray:ue}=I.current;if(G.constraints.collapsible){const oe=ue.map(Ce=>Ce.constraints),{collapsedSize:ce=0,panelSize:be,pivotIndices:Ge}=xl(ue,G,V);if(nt(be!=null,`Panel size not found for panel "${G.id}"`),!mo(be,ce)){R.current.set(G.id,be);const mt=Sc(ue,G)===ue.length-1?be-ce:ce-be,Ee=rh({delta:mt,initialLayout:V,panelConstraints:oe,pivotIndices:Ge,prevLayout:V,trigger:"imperative-api"});sg(V,Ee)||(E(Ee),I.current.layout=Ee,Q&&Q(Ee),sc(ue,Ee,A.current))}}},[]),U=_.useCallback((G,Q)=>{const{onLayout:V}=O.current,{layout:ue,panelDataArray:oe}=I.current;if(G.constraints.collapsible){const ce=oe.map(Be=>Be.constraints),{collapsedSize:be=0,panelSize:Ge=0,minSize:Ce=0,pivotIndices:mt}=xl(oe,G,ue),Ee=Q??Ce;if(mo(Ge,be)){const Be=R.current.get(G.id),$e=Be!=null&&Be>=Ee?Be:Ee,gr=Sc(oe,G)===oe.length-1?Ge-$e:$e-Ge,xt=rh({delta:gr,initialLayout:ue,panelConstraints:ce,pivotIndices:mt,prevLayout:ue,trigger:"imperative-api"});sg(ue,xt)||(E(xt),I.current.layout=xt,V&&V(xt),sc(oe,xt,A.current))}}},[]),H=_.useCallback(G=>{const{layout:Q,panelDataArray:V}=I.current,{panelSize:ue}=xl(V,G,Q);return nt(ue!=null,`Panel size not found for panel "${G.id}"`),ue},[]),z=_.useCallback((G,Q)=>{const{panelDataArray:V}=I.current,ue=Sc(V,G);return Qee({defaultSize:Q,dragState:S,layout:x,panelData:V,panelIndex:ue})},[S,x]),j=_.useCallback(G=>{const{layout:Q,panelDataArray:V}=I.current,{collapsedSize:ue=0,collapsible:oe,panelSize:ce}=xl(V,G,Q);return nt(ce!=null,`Panel size not found for panel "${G.id}"`),oe===!0&&mo(ce,ue)},[]),$=_.useCallback(G=>{const{layout:Q,panelDataArray:V}=I.current,{collapsedSize:ue=0,collapsible:oe,panelSize:ce}=xl(V,G,Q);return nt(ce!=null,`Panel size not found for panel "${G.id}"`),!oe||Gl(ce,ue)>0},[]),Z=_.useCallback(G=>{const{panelDataArray:Q}=I.current;Q.push(G),Q.sort((V,ue)=>{const oe=V.order,ce=ue.order;return oe==null&&ce==null?0:oe==null?-1:ce==null?1:oe-ce}),I.current.panelDataArrayChanged=!0,k()},[k]);Ul(()=>{if(I.current.panelDataArrayChanged){I.current.panelDataArrayChanged=!1;const{autoSaveId:G,onLayout:Q,storage:V}=O.current,{layout:ue,panelDataArray:oe}=I.current;let ce=null;if(G){const Ge=ete(G,oe,V);Ge&&(R.current=new Map(Object.entries(Ge.expandToSizes)),ce=Ge.layout)}ce==null&&(ce=Xee({panelDataArray:oe}));const be=mO({layout:ce,panelConstraints:oe.map(Ge=>Ge.constraints)});hO(ue,be)||(E(be),I.current.layout=be,Q&&Q(be),sc(oe,be,A.current))}}),Ul(()=>{const G=I.current;return()=>{G.layout=[]}},[]);const J=_.useCallback(G=>{let Q=!1;const V=y.current;return V&&window.getComputedStyle(V,null).getPropertyValue("direction")==="rtl"&&(Q=!0),function(oe){oe.preventDefault();const ce=y.current;if(!ce)return()=>null;const{direction:be,dragState:Ge,id:Ce,keyboardResizeBy:mt,onLayout:Ee}=O.current,{layout:Be,panelDataArray:$e}=I.current,{initialLayout:qe}=Ge??{},gr=KL(Ce,G,ce);let xt=Zee(oe,G,be,Ge,mt,ce);const Yr=be==="horizontal";Yr&&Q&&(xt=-xt);const Zn=$e.map(Rr=>Rr.constraints),Tr=rh({delta:xt,initialLayout:qe??Be,panelConstraints:Zn,pivotIndices:gr,prevLayout:Be,trigger:zL(oe)?"keyboard":"mouse-or-touch"}),as=!sg(Be,Tr);(jL(oe)||FL(oe))&&N.current!=xt&&(N.current=xt,!as&&xt!==0?Yr?OS(G,xt<0?$L:HL):OS(G,xt<0?qL:WL):OS(G,0)),as&&(E(Tr),I.current.layout=Tr,Ee&&Ee(Tr),sc($e,Tr,A.current))}},[]),q=_.useCallback((G,Q)=>{const{onLayout:V}=O.current,{layout:ue,panelDataArray:oe}=I.current,ce=oe.map(Be=>Be.constraints),{panelSize:be,pivotIndices:Ge}=xl(oe,G,ue);nt(be!=null,`Panel size not found for panel "${G.id}"`);const mt=Sc(oe,G)===oe.length-1?be-Q:Q-be,Ee=rh({delta:mt,initialLayout:ue,panelConstraints:ce,pivotIndices:Ge,prevLayout:ue,trigger:"imperative-api"});sg(ue,Ee)||(E(Ee),I.current.layout=Ee,V&&V(Ee),sc(oe,Ee,A.current))},[]),X=_.useCallback((G,Q)=>{const{layout:V,panelDataArray:ue}=I.current,{collapsedSize:oe=0,collapsible:ce}=Q,{collapsedSize:be=0,collapsible:Ge,maxSize:Ce=100,minSize:mt=0}=G.constraints,{panelSize:Ee}=xl(ue,G,V);Ee!=null&&(ce&&Ge&&mo(Ee,oe)?mo(oe,be)||q(G,be):Ee<mt?q(G,mt):Ee>Ce&&q(G,Ce))},[q]),ae=_.useCallback((G,Q)=>{const{direction:V}=O.current,{layout:ue}=I.current;if(!y.current)return;const oe=iv(G,y.current);nt(oe,`Drag handle element not found for id "${G}"`);const ce=ZL(V,Q);w({dragHandleId:G,dragHandleRect:oe.getBoundingClientRect(),initialCursorPosition:ce,initialLayout:ue})},[]),he=_.useCallback(()=>{w(null)},[]),xe=_.useCallback(G=>{const{panelDataArray:Q}=I.current,V=Sc(Q,G);V>=0&&(Q.splice(V,1),delete A.current[G.id],I.current.panelDataArrayChanged=!0,k())},[k]),D=_.useMemo(()=>({collapsePanel:P,direction:r,dragState:S,expandPanel:U,getPanelSize:H,getPanelStyle:z,groupId:g,isPanelCollapsed:j,isPanelExpanded:$,reevaluatePanelConstraints:X,registerPanel:Z,registerResizeHandle:J,resizePanel:q,startDragging:ae,stopDragging:he,unregisterPanel:xe,panelGroupElement:y.current}),[P,S,r,U,H,z,g,j,$,X,Z,J,q,ae,he,xe]),Y={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return _.createElement(av.Provider,{value:D},_.createElement(h,{...m,children:e,className:n,id:s,ref:y,style:{...Y,...f},[yn.group]:"",[yn.groupDirection]:r,[yn.groupId]:g}))}const tU=_.forwardRef((t,e)=>_.createElement(eU,{...t,forwardedRef:e}));eU.displayName="PanelGroup";tU.displayName="forwardRef(PanelGroup)";function Sc(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function xl(t,e,n){const r=Sc(t,e),s=r===t.length-1?[r-1,r]:[r,r+1],i=n[r];return{...e.constraints,panelSize:i,pivotIndices:s}}function rte({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){_.useEffect(()=>{if(t||n==null||r==null)return;const a=iv(e,r);if(a==null)return;const s=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{i.preventDefault(),n(i);break}case"F6":{i.preventDefault();const u=a.getAttribute(yn.groupId);nt(u,`No group element found for id "${u}"`);const c=Ph(u,r),f=GL(u,e,r);nt(f!==null,`No resize element found for id "${e}"`);const h=i.shiftKey?f>0?f-1:c.length-1:f+1<c.length?f+1:0;c[h].focus();break}}};return a.addEventListener("keydown",s),()=>{a.removeEventListener("keydown",s)}},[r,t,e,n])}function nU({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:a,onBlur:s,onClick:i,onDragging:u,onFocus:c,onPointerDown:f,onPointerUp:h,style:m={},tabIndex:g=0,tagName:y="div",...S}){var w,x;const E=_.useRef(null),k=_.useRef({onClick:i,onDragging:u,onPointerDown:f,onPointerUp:h});_.useEffect(()=>{k.current.onClick=i,k.current.onDragging=u,k.current.onPointerDown=f,k.current.onPointerUp=h});const A=_.useContext(av);if(A===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:R,groupId:N,registerResizeHandle:O,startDragging:I,stopDragging:P,panelGroupElement:U}=A,H=Y_(a),[z,j]=_.useState("inactive"),[$,Z]=_.useState(!1),[J,q]=_.useState(null),X=_.useRef({state:z});Ul(()=>{X.current.state=z}),_.useEffect(()=>{if(n)q(null);else{const D=O(H);q(()=>D)}},[n,H,O]);const ae=(w=r?.coarse)!==null&&w!==void 0?w:15,he=(x=r?.fine)!==null&&x!==void 0?x:5;_.useEffect(()=>{if(n||J==null)return;const D=E.current;nt(D,"Element ref not attached");let Y=!1;return $ee(H,D,R,{coarse:ae,fine:he},(Q,V,ue)=>{if(!V){j("inactive");return}switch(Q){case"down":{j("drag"),Y=!1,nt(ue,'Expected event to be defined for "down" action'),I(H,ue);const{onDragging:oe,onPointerDown:ce}=k.current;oe?.(!0),ce?.();break}case"move":{const{state:oe}=X.current;Y=!0,oe!=="drag"&&j("hover"),nt(ue,'Expected event to be defined for "move" action'),J(ue);break}case"up":{j("hover"),P();const{onClick:oe,onDragging:ce,onPointerUp:be}=k.current;ce?.(!1),be?.(),Y||oe?.();break}}})},[ae,R,n,he,O,H,J,I,P]),rte({disabled:n,handleId:H,resizeHandler:J,panelGroupElement:U});const xe={touchAction:"none",userSelect:"none"};return _.createElement(y,{...S,children:t,className:e,id:a,onBlur:()=>{Z(!1),s?.()},onFocus:()=>{Z(!0),c?.()},ref:E,role:"separator",style:{...xe,...m},tabIndex:g,[yn.groupDirection]:R,[yn.groupId]:N,[yn.resizeHandle]:"",[yn.resizeHandleActive]:z==="drag"?"pointer":$?"keyboard":void 0,[yn.resizeHandleEnabled]:!n,[yn.resizeHandleId]:H,[yn.resizeHandleState]:z})}nU.displayName="PanelResizeHandle";function vO({className:t,...e}){return C.jsx(tU,{className:Ue("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...e})}const Lf=UL;function MS({className:t,...e}){return C.jsx(nU,{className:Ue("relative w-px shrink-0 bg-line transition-colors cursor-col-resize","after:absolute after:inset-y-0 after:left-1/2 after:w-1.5 after:-translate-x-1/2","data-[resize-handle-state=hover]:bg-line-strong","data-[resize-handle-state=drag]:bg-accent","focus-visible:outline-none focus-visible:bg-accent",t),...e})}const rU=_.createContext(null);function iRe(){return _.useContext(rU)}function lRe({nav:t,list:e,reading:n,intelligence:r,intelligenceOpen:a=!0,hasThread:s=!0,density:i="comfortable",header:u,topBar:c,overlay:f,skeleton:h,isLoading:m=!1,initialWidth:g,navOpen:y,onOpenNav:S,onCloseNav:w}){const[x,E]=Aee(g),k=_ee(E??0),[A,R]=_.useState(!1),N=k.nav,O=N&&!A,I=k.reading&&!!n,P=k.intelligence,[U,H]=_.useState(!1),z=y!==void 0,j=z?y:U,$=()=>{z||H(!0),S?.()},Z=()=>{z||H(!1),w?.()},J=P&&a&&s&&!!r,X={panes:k,containerWidth:E,showNavPane:N,openNav:$,navCollapsed:A,toggleNav:()=>{if(!N){j?Z():$();return}R(xe=>!xe)},showReadingPane:I,showIntelligencePane:P},ae=C.jsxs(vO,{direction:"horizontal",className:"min-h-0 flex-1",children:[C.jsx(Lf,{id:"list",order:1,defaultSize:I?i==="compact"?43:33:100,minSize:22,maxSize:I?58:100,className:"min-w-0",children:e}),I&&C.jsxs(C.Fragment,{children:[C.jsx(MS,{}),C.jsx(Lf,{id:"reading",order:2,minSize:29,className:"min-w-0",children:n})]}),J&&C.jsxs(C.Fragment,{children:[C.jsx(MS,{}),C.jsx(Lf,{id:"intelligence",order:3,defaultSize:25,minSize:18,maxSize:39,className:"min-w-0",children:r})]})]}),he=C.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[!N&&u&&C.jsx("div",{className:"shrink-0",children:u}),ae]});return C.jsx(rU.Provider,{value:X,children:C.jsx("div",{ref:x,className:"safe-area-frame @container flex h-dvh w-full flex-col overflow-hidden bg-canvas font-sans text-fg",children:m&&h?h:C.jsxs(C.Fragment,{children:[c,O?C.jsxs(vO,{direction:"horizontal",className:"min-h-0 flex-1",children:[C.jsx(Lf,{id:"nav",order:1,defaultSize:17,minSize:12,maxSize:24,className:"min-w-0",children:t}),C.jsx(MS,{}),C.jsx(Lf,{id:"content",order:2,className:"flex min-w-0 flex-col",children:he})]}):he,!N&&C.jsx(Iee,{open:j,onClose:Z,title:"Folders",anchor:"left",children:t}),f]})})})}const aU="inline-flex items-center justify-center gap-2 rounded-md font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface disabled:opacity-50 disabled:pointer-events-none",sU={primary:"bg-accent text-accent-fg hover:bg-accent-hover",secondary:"bg-surface text-fg border border-line hover:bg-surface-sunken hover:border-line-strong",ghost:"text-fg-muted hover:bg-surface-sunken hover:text-fg",danger:"bg-danger text-accent-fg hover:opacity-90"},oU={sm:"h-7 px-2.5 text-xs",md:"h-9 px-3.5 text-sm",touch:"h-11 w-11 text-sm"};function on({variant:t="primary",size:e="md",icon:n,className:r,children:a,ref:s,...i}){return C.jsxs("button",{type:"button",ref:s,className:Ue(aU,sU[t],oU[e],r),...i,children:[n,a]})}function uRe({variant:t="primary",size:e="md",icon:n,external:r,className:a,children:s,...i}){return C.jsxs("a",{className:Ue(aU,sU[t],oU[e],a),...r?{target:"_blank",rel:"noopener noreferrer"}:{},...i,children:[n,s]})}const ate={neutral:"bg-surface-sunken text-fg-muted",accent:"bg-accent-2-soft text-accent-2",positive:"bg-surface-sunken text-positive",warning:"bg-surface-sunken text-warning",danger:"bg-danger-soft text-danger"},ste={neutral:"bg-fg-subtle",accent:"bg-accent-2",positive:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function IE({tone:t="neutral",dot:e,className:n,children:r,...a}){return C.jsxs("span",{className:Ue("inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-2xs font-medium",ate[t],n),...a,children:[e&&C.jsx("span",{className:Ue("size-1.5 rounded-full",ste[t])}),r]})}const cRe={"data-list-row":""},ote="[data-list-row]";function ite(t,e,n,r="vertical"){if(n===0)return null;const a=r==="vertical"?"ArrowDown":"ArrowRight",s=r==="vertical"?"ArrowUp":"ArrowLeft";return t===a?e<0?0:Math.min(e+1,n-1):t===s?e<=0?0:e-1:t==="Home"?0:t==="End"?n-1:null}function yO(t,e){return Array.from(t.querySelectorAll(e))}function lte({containerRef:t,itemSelector:e,orientation:n="vertical",enabled:r=!0}){_.useEffect(()=>{if(!r)return;const a=t.current;if(!a)return;const s=()=>{const u=yO(a,e);if(u.length===0)return;const f=u.find(h=>h===document.activeElement)??u[0];for(const h of u)h.tabIndex=h===f?0:-1},i=u=>{if(u.shiftKey||u.metaKey||u.ctrlKey||u.altKey)return;const c=yO(a,e),f=c.indexOf(document.activeElement),h=ite(u.key,f,c.length,n);h===null||h===f||(u.preventDefault(),u.stopPropagation(),c[h]?.focus())};return s(),a.addEventListener("focusin",s),a.addEventListener("keydown",i),()=>{a.removeEventListener("focusin",s),a.removeEventListener("keydown",i)}})}const bO=10;function ute({section:t,Row:e,selectedThreadId:n,initialExpanded:r=!1,initialCollapsed:a=!1,onSelectThread:s}){const[i,u]=_.useState(r),[c,f]=_.useState(a),h=t.threads.length>bO,g=!i&&h?t.threads.slice(0,bO):t.threads,y=t.threads.length-g.length;return C.jsxs("div",{children:[t.label&&C.jsxs("button",{type:"button","aria-expanded":!c,onClick:()=>f(S=>!S),className:"sticky top-0 z-10 flex h-section-row w-full items-center gap-1.5 border-b border-line bg-surface-sunken px-row-inset text-left outline-none transition-colors hover:bg-surface focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",children:[C.jsx("span",{className:"flex-1 text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:t.label}),C.jsx("span",{className:"text-2xs text-fg-subtle tabular-nums",children:t.threads.length}),C.jsx(kE,{className:Ue("size-3 shrink-0 text-fg-subtle transition-transform duration-200",c?"rotate-0":"rotate-180")})]}),!c&&C.jsxs(C.Fragment,{children:[C.jsx("div",{className:"divide-y divide-line",children:g.map(S=>C.jsx(e,{thread:S,active:S.id===n,onClick:()=>s?.(S.id)},S.id))}),h&&C.jsxs("button",{type:"button",onClick:()=>u(S=>!S),className:"flex w-full items-center justify-center border-b border-line px-row-inset py-1.5 text-2xs font-medium text-accent outline-none transition-colors hover:bg-surface focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",children:[i?"Show less":`Show ${y} more`,!i&&C.jsx(kE,{className:"ml-1 size-3"})]})]})]})}function cte(t){return t.target!==t.currentTarget?!1:t.key==="Enter"||t.key===" "}function iU({className:t}){return C.jsx("svg",{viewBox:"0 0 12 12",className:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:C.jsx("path",{d:"M2 4l4 4 4-4"})})}function SO({className:t}){return C.jsx("svg",{viewBox:"0 0 12 12",className:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:C.jsx("path",{d:"M3 3l6 6M9 3l-6 6"})})}const lv=_.createContext(null);function dRe({children:t,hasSheet:e,open:n,onOpenChange:r}){const[a,s]=_.useState(!1),[i,u]=_.useState(!1),c=n??a,f=_.useCallback(m=>{n===void 0&&s(m),r?.(m)},[n,r]),h=_.useMemo(()=>({open:c,setOpen:f,active:i,setActive:u,hasSheet:e}),[c,f,i,e]);return C.jsx(lv.Provider,{value:h,children:t})}function fRe({children:t}){return C.jsx(lv.Provider,{value:null,children:t})}function hRe(){const t=_.useContext(lv);if(!t?.hasSheet)return null;const{open:e,active:n,setOpen:r}=t;return C.jsx("button",{type:"button",onClick:()=>r(!e),"aria-expanded":e,"aria-label":e?"Collapse filters":"Expand filters",title:"Filters",className:Ue("flex size-6 shrink-0 items-center justify-center rounded transition-colors hover:bg-surface-sunken",n?"text-accent-2":"text-fg-subtle hover:text-fg-muted"),children:C.jsx(iU,{className:Ue("size-3 transition-transform duration-200",e?"rotate-180":"rotate-0")})})}function dte({categories:t,filters:e,sources:n,sourcesNote:r,selectedCategory:a,activeFilters:s,expanded:i,onSelectCategory:u,onSelectSource:c,onToggleFilter:f,onClear:h,onExpandedChange:m,hideChrome:g=!1,children:y}){const S=_.useContext(lv),w=i!==void 0,[x,E]=_.useState(!1),k=S?.open??(w?i:x),A=_.useCallback(ae=>{w||E(ae),S?.setOpen(ae),m?.(ae)},[w,m,S]),R=t[0],N=R!==void 0&&a===R.id,O=n?.[0],I=n?.find(ae=>ae.active),P=O===void 0||I?.id===O.id,U=!N||s.size>0||!P&&!!I,H=S?.setActive;_.useEffect(()=>{if(H)return H(U),()=>H(!1)},[U,H]);const z=_.useCallback(()=>{O&&c?.(O.id)},[O,c]),j=_.useCallback(()=>{h(),z()},[h,z]),$=t.find(ae=>ae.id===a),Z=U?C.jsxs(C.Fragment,{children:[!P&&I&&C.jsx("span",{className:"inline-flex items-center rounded-full border border-accent-2 bg-accent-2-soft px-2 py-0.5 text-2xs font-medium text-accent-2",children:I.label}),!N&&$&&C.jsx(IE,{tone:$.tone??"neutral",children:$.label}),e.filter(ae=>s.has(ae.id)).map(ae=>C.jsx("span",{className:"inline-flex items-center rounded-full border border-accent-2 bg-accent-2-soft px-2 py-0.5 text-2xs font-medium text-accent-2",children:ae.label},ae.id))]}):C.jsx("span",{className:"text-2xs text-fg-subtle",children:"Filters"}),J=n&&n.length>1&&C.jsxs("fieldset",{"aria-label":"Accounts",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-2 pt-2",children:[n.map(ae=>C.jsxs("button",{type:"button","aria-pressed":!!ae.active,onClick:()=>c?.(ae.id),className:Ue("flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",ae.active?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:[ae.label,ae.count!=null&&ae.count>0&&C.jsx("span",{className:"tabular-nums opacity-70",children:ae.count})]},ae.id)),r&&C.jsx("span",{className:"ml-auto shrink-0 text-2xs text-fg-subtle",children:r})]}),q=C.jsx("fieldset",{"aria-label":"Categories",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-1.5 pt-1.5",children:t.map(ae=>{const he=a===ae.id;return C.jsx("button",{type:"button","aria-pressed":he,onClick:()=>u(ae.id),className:Ue("shrink-0 rounded-full transition-opacity",he?"opacity-100 ring-1 ring-accent-2":"opacity-60 hover:opacity-100"),children:C.jsx(IE,{tone:ae.tone??"neutral",children:ae.label})},ae.id)})}),X=C.jsxs("fieldset",{"aria-label":"Attributes",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-2 pt-1.5",children:[e.map(ae=>{const he=s.has(ae.id);return C.jsx("button",{type:"button","aria-pressed":he,onClick:()=>f(ae.id),className:Ue("shrink-0 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",he?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:ae.label},ae.id)}),U&&C.jsxs("button",{type:"button",onClick:j,className:"ml-auto flex items-center gap-1 px-1 text-2xs text-fg-subtle hover:text-fg-muted",children:[C.jsx(SO,{className:"size-3"}),"Clear"]})]});return C.jsxs("div",{className:"flex h-full w-full flex-col overflow-hidden",children:[!g&&!S&&C.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":k,"aria-label":k?"Collapse filters":"Expand filters",onClick:()=>A(!k),onKeyDown:ae=>{cte(ae)&&(ae.preventDefault(),A(!k))},className:"flex h-section-row w-full shrink-0 cursor-pointer items-center gap-1.5 overflow-x-hidden border-b border-line bg-surface-sunken px-row-inset text-left hover:bg-surface",children:[Z,U&&C.jsx("button",{type:"button","aria-label":"Clear filters",onClick:ae=>{ae.stopPropagation(),j()},className:"flex size-6 items-center justify-center text-fg-subtle hover:text-fg-muted",children:C.jsx(SO,{className:"size-3"})}),C.jsx(iU,{className:Ue("ml-auto size-3 shrink-0 text-fg-subtle transition-transform duration-200",k?"rotate-180":"rotate-0")})]}),k&&!g&&C.jsxs("div",{className:"shrink-0",children:[J,q,X]}),C.jsx("div",{className:"flex-1 overflow-y-auto",children:y})]})}function fte(t){return t.sentDate!=null?new Date(t.sentDate).toDateString()===new Date().toDateString():/^\d{1,2}:\d{2}$/.test(t.timeLabel)}const lU=[{id:"unread",label:"Unread",match:t=>!t.isRead},{id:"attachment",label:"Has attachment",match:t=>!!t.hasAttachment},{id:"contacts",label:"From contacts",match:t=>t.trust==="vip"||t.trust==="wellknown"},{id:"today",label:"Today",match:fte}],hte=lU.map(({id:t,label:e})=>({id:t,label:e}));function pte(t,e){return lU.every(n=>!e.has(n.id)||n.match(t))}function pRe({sections:t,briefCategory:e="all",selectedThreadId:n,Row:r,keyboard:a,onSelectThread:s,onSelectBriefCategory:i,sources:u,sourcesNote:c,onSelectSource:f,activeFilters:h,onToggleFilter:m,onClearFilters:g,hideChrome:y,defaultExpanded:S=!1}){const[w,x]=_.useState(new Set),[E,k]=_.useState(S),A=_.useRef(null);lte({containerRef:A,itemSelector:ote,enabled:!kee(a)});const R=h??w,N=J=>{if(m){m(J);return}x(q=>{const X=new Set(q);return X.has(J)?X.delete(J):X.add(J),X})},O=J=>(e==="all"||J.category===e)&&pte(J,R),I=e==="all",P=t.map(J=>({...J,threads:J.threads.filter(O)})).filter(J=>J.threads.length>0),U=t.flatMap(J=>J.threads).filter(O),H=Tee.map(J=>({id:J.id,label:J.label,tone:J.id==="all"?"neutral":Ree[J.id]})),z=hte,j=()=>{if(i?.("all"),g){g();return}x(new Set)},$=I?P.length===0:U.length===0,Z=C.jsxs("div",{ref:A,children:[I?P.map(J=>C.jsx(ute,{section:J,Row:r,selectedThreadId:n,onSelectThread:s},J.id)):C.jsx("div",{className:"divide-y divide-line",children:U.map(J=>C.jsx(r,{thread:J,active:J.id===n,onClick:()=>s?.(J.id)},J.id))}),$&&C.jsx("div",{className:"px-row-inset py-6 text-center text-2xs text-fg-subtle",children:"No threads match these filters."})]});return C.jsx(dte,{categories:H,filters:z,sources:u,sourcesNote:c,selectedCategory:e,activeFilters:R,expanded:E,onExpandedChange:k,onSelectCategory:J=>i?.(J),onSelectSource:f,onToggleFilter:J=>N(J),onClear:j,hideChrome:y,children:Z})}const OE={Default:"bg-fg-subtle",Red:"bg-red-500",Orange:"bg-orange-500",Yellow:"bg-yellow-500",Green:"bg-green-500",Teal:"bg-teal-500",Blue:"bg-blue-500",Purple:"bg-purple-500",Gray:"bg-gray-500"},mRe=["Default","Red","Orange","Yellow","Green","Teal","Blue","Purple","Gray"],mte=t=>Object.hasOwn(OE,t);function gte({label:t,onRemove:e,className:n}){const r=mte(t.color)?OE[t.color]:OE.Default;return C.jsxs("span",{className:Ue("inline-flex items-center gap-1 rounded-full bg-surface-sunken px-2 py-0.5 text-2xs font-medium text-fg-muted shrink-0",n),children:[C.jsx("span",{className:Ue("size-1.5 shrink-0 rounded-full",r)}),C.jsx("span",{className:"truncate",children:t.name}),e&&C.jsx("button",{type:"button",onClick:()=>e(t.labelId),"aria-label":`Remove label ${t.name}`,className:"ml-0.5 rounded-full text-fg-subtle hover:text-fg",children:"×"})]})}function wO(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function vte(t){if(Array.isArray(t))return t}function yte(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,a,s,i,u=[],c=!0,f=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(h){f=!0,a=h}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(f)throw a}}return u}}function bte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
13
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ste(t,e){return vte(t)||yte(t,e)||wte(t,e)||bte()}function wte(t,e){if(t){if(typeof t=="string")return wO(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wO(t,e):void 0}}const uU=Object.entries,xO=Object.setPrototypeOf,xte=Object.isFrozen,Cte=Object.getPrototypeOf,Ete=Object.getOwnPropertyDescriptor;let sr=Object.freeze,ir=Object.seal,wc=Object.create,cU=typeof Reflect<"u"&&Reflect,NE=cU.apply,ME=cU.construct;sr||(sr=function(e){return e});ir||(ir=function(e){return e});NE||(NE=function(e,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),s=2;s<r;s++)a[s-2]=arguments[s];return e.apply(n,a)});ME||(ME=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return new e(...r)});const oc=Rn(Array.prototype.forEach),_te=Rn(Array.prototype.lastIndexOf),CO=Rn(Array.prototype.pop),ic=Rn(Array.prototype.push),kte=Rn(Array.prototype.splice),Ri=Array.isArray,sh=Rn(String.prototype.toLowerCase),PS=Rn(String.prototype.toString),EO=Rn(String.prototype.match),Uf=Rn(String.prototype.replace),_O=Rn(String.prototype.indexOf),Ate=Rn(String.prototype.trim),Tte=Rn(Number.prototype.toString),Rte=Rn(Boolean.prototype.toString),kO=typeof BigInt>"u"?null:Rn(BigInt.prototype.toString),AO=typeof Symbol>"u"?null:Rn(Symbol.prototype.toString),qn=Rn(Object.prototype.hasOwnProperty),zf=Rn(Object.prototype.toString),$n=Rn(RegExp.prototype.test),Cl=Ite(TypeError);function Rn(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return NE(t,e,r)}}function Ite(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return ME(t,n)}}function vt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:sh;if(xO&&xO(t,null),!Ri(e))return t;let r=e.length;for(;r--;){let a=e[r];if(typeof a=="string"){const s=n(a);s!==a&&(xte(e)||(e[r]=s),a=s)}t[a]=!0}return t}function Ote(t){for(let e=0;e<t.length;e++)qn(t,e)||(t[e]=null);return t}function wr(t){const e=wc(null);for(const r of uU(t)){var n=Ste(r,2);const a=n[0],s=n[1];qn(t,a)&&(Ri(s)?e[a]=Ote(s):s&&typeof s=="object"&&s.constructor===Object?e[a]=wr(s):e[a]=s)}return e}function Nte(t){switch(typeof t){case"string":return t;case"number":return Tte(t);case"boolean":return Rte(t);case"bigint":return kO?kO(t):"0";case"symbol":return AO?AO(t):"Symbol()";case"undefined":return zf(t);case"function":case"object":{if(t===null)return zf(t);const e=t,n=bs(e,"toString");if(typeof n=="function"){const r=n(e);return typeof r=="string"?r:zf(r)}return zf(t)}default:return zf(t)}}function bs(t,e){for(;t!==null;){const r=Ete(t,e);if(r){if(r.get)return Rn(r.get);if(typeof r.value=="function")return Rn(r.value)}t=Cte(t)}function n(){return null}return n}function Mte(t){try{return $n(t,""),!0}catch{return!1}}const TO=sr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),DS=sr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),LS=sr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Pte=sr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),US=sr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Dte=sr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),RO=sr(["#text"]),IO=sr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),zS=sr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),OO=sr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),og=sr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Lte=ir(/{{[\w\W]*|^[\w\W]*}}/g),Ute=ir(/<%[\w\W]*|^[\w\W]*%>/g),zte=ir(/\${[\w\W]*/g),jte=ir(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fte=ir(/^aria-[\-\w]+$/),NO=ir(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bte=ir(/^(?:\w+script|data):/i),$te=ir(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hte=ir(/^html$/i),qte=ir(/^[a-z][.\w]*(-[.\w]+)+$/i),MO=ir(/<[/\w!]/g),PO=ir(/<[/\w]/g),Wte=ir(/<\/no(script|embed|frames)/i),Vte=ir(/\/>/i),sa={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Gte=function(){return typeof window>"u"?null:window},Kte=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const a="data-tt-policy-suffix";n&&n.hasAttribute(a)&&(r=n.getAttribute(a));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},DO=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},bi=function(e,n,r,a){return qn(e,n)&&Ri(e[n])?vt(a.base?wr(a.base):{},e[n],a.transform):r};function dU(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gte();const e=me=>dU(me);if(e.version="3.4.12",e.removed=[],!t||!t.document||t.document.nodeType!==sa.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const r=n,a=r.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,i=t.Node,u=t.Element,c=t.NodeFilter,f=t.NamedNodeMap;f===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const h=t.DOMParser,m=t.trustedTypes,g=u.prototype,y=bs(g,"cloneNode"),S=bs(g,"remove"),w=bs(g,"nextSibling"),x=bs(g,"childNodes"),E=bs(g,"parentNode"),k=bs(g,"shadowRoot"),A=bs(g,"attributes"),R=i&&i.prototype?bs(i.prototype,"nodeType"):null,N=i&&i.prototype?bs(i.prototype,"nodeName"):null;if(typeof s=="function"){const me=n.createElement("template");me.content&&me.content.ownerDocument&&(n=me.content.ownerDocument)}let O,I="",P,U=!1,H=0;const z=function(){if(H>0)throw Cl('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},j=function(L){z(),H++;try{return O.createHTML(L)}finally{H--}},$=function(L){z(),H++;try{return O.createScriptURL(L)}finally{H--}},Z=function(){return U||(P=Kte(m,a),U=!0),P},J=n,q=J.implementation,X=J.createNodeIterator,ae=J.createDocumentFragment,he=J.getElementsByTagName,xe=r.importNode;let D=DO();e.isSupported=typeof uU=="function"&&typeof E=="function"&&q&&q.createHTMLDocument!==void 0;const Y=Lte,G=Ute,Q=zte,V=jte,ue=Fte,oe=Bte,ce=$te,be=qte;let Ge=NO,Ce=null;const mt=vt({},[...TO,...DS,...LS,...US,...RO]);let Ee=null;const Be=vt({},[...IO,...zS,...OO,...og]);let $e=Object.seal(wc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),qe=null,gr=null;const xt=Object.seal(wc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Yr=!0,Zn=!0,Tr=!1,as=!0,Rr=!1,Kt=!0,gt=!1,bn=!1,Ir=null,ss=null,Rd=!1,Fs=!1,wu=!1,xu=!1,jo=!0,cr=!1;const Da="user-content-";let Xn=!0,Id=!1,Fo={},ma=null;const Bo=vt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ji=null;const el=vt({},["audio","video","img","source","image","track"]);let La=null;const tl=vt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),os="http://www.w3.org/1998/Math/MathML",Cu="http://www.w3.org/2000/svg",Zr="http://www.w3.org/1999/xhtml";let is=Zr,Bs=!1,Od=null;const Pp=vt({},[os,Cu,Zr],PS),Nd=sr(["mi","mo","mn","ms","mtext"]);let Eu=vt({},Nd);const _u=sr(["annotation-xml"]);let nl=vt({},_u);const Dp=vt({},["title","style","font","a","script"]);let $o=null;const ls=["application/xhtml+xml","text/html"],On="text/html";let rt=null,Xr=null;const Md=n.createElement("form"),Lp=function(L){return L instanceof RegExp||L instanceof Function},Pd=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Xr&&Xr===L)return;(!L||typeof L!="object")&&(L={}),L=wr(L),$o=ls.indexOf(L.PARSER_MEDIA_TYPE)===-1?On:L.PARSER_MEDIA_TYPE,rt=$o==="application/xhtml+xml"?PS:sh,Ce=bi(L,"ALLOWED_TAGS",mt,{transform:rt}),Ee=bi(L,"ALLOWED_ATTR",Be,{transform:rt}),Od=bi(L,"ALLOWED_NAMESPACES",Pp,{transform:PS}),La=bi(L,"ADD_URI_SAFE_ATTR",tl,{transform:rt,base:tl}),Ji=bi(L,"ADD_DATA_URI_TAGS",el,{transform:rt,base:el}),ma=bi(L,"FORBID_CONTENTS",Bo,{transform:rt}),qe=bi(L,"FORBID_TAGS",wr({}),{transform:rt}),gr=bi(L,"FORBID_ATTR",wr({}),{transform:rt}),Fo=qn(L,"USE_PROFILES")?L.USE_PROFILES&&typeof L.USE_PROFILES=="object"?wr(L.USE_PROFILES):L.USE_PROFILES:!1,Yr=L.ALLOW_ARIA_ATTR!==!1,Zn=L.ALLOW_DATA_ATTR!==!1,Tr=L.ALLOW_UNKNOWN_PROTOCOLS||!1,as=L.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Rr=L.SAFE_FOR_TEMPLATES||!1,Kt=L.SAFE_FOR_XML!==!1,gt=L.WHOLE_DOCUMENT||!1,Fs=L.RETURN_DOM||!1,wu=L.RETURN_DOM_FRAGMENT||!1,xu=L.RETURN_TRUSTED_TYPE||!1,Rd=L.FORCE_BODY||!1,jo=L.SANITIZE_DOM!==!1,cr=L.SANITIZE_NAMED_PROPS||!1,Xn=L.KEEP_CONTENT!==!1,Id=L.IN_PLACE||!1,Ge=Mte(L.ALLOWED_URI_REGEXP)?L.ALLOWED_URI_REGEXP:NO,is=typeof L.NAMESPACE=="string"?L.NAMESPACE:Zr,Eu=qn(L,"MATHML_TEXT_INTEGRATION_POINTS")&&L.MATHML_TEXT_INTEGRATION_POINTS&&typeof L.MATHML_TEXT_INTEGRATION_POINTS=="object"?wr(L.MATHML_TEXT_INTEGRATION_POINTS):vt({},Nd),nl=qn(L,"HTML_INTEGRATION_POINTS")&&L.HTML_INTEGRATION_POINTS&&typeof L.HTML_INTEGRATION_POINTS=="object"?wr(L.HTML_INTEGRATION_POINTS):vt({},_u);const ee=qn(L,"CUSTOM_ELEMENT_HANDLING")&&L.CUSTOM_ELEMENT_HANDLING&&typeof L.CUSTOM_ELEMENT_HANDLING=="object"?wr(L.CUSTOM_ELEMENT_HANDLING):wc(null);if($e=wc(null),qn(ee,"tagNameCheck")&&Lp(ee.tagNameCheck)&&($e.tagNameCheck=ee.tagNameCheck),qn(ee,"attributeNameCheck")&&Lp(ee.attributeNameCheck)&&($e.attributeNameCheck=ee.attributeNameCheck),qn(ee,"allowCustomizedBuiltInElements")&&typeof ee.allowCustomizedBuiltInElements=="boolean"&&($e.allowCustomizedBuiltInElements=ee.allowCustomizedBuiltInElements),ir($e),Rr&&(Zn=!1),wu&&(Fs=!0),Fo&&(Ce=vt({},RO),Ee=wc(null),Fo.html===!0&&(vt(Ce,TO),vt(Ee,IO)),Fo.svg===!0&&(vt(Ce,DS),vt(Ee,zS),vt(Ee,og)),Fo.svgFilters===!0&&(vt(Ce,LS),vt(Ee,zS),vt(Ee,og)),Fo.mathMl===!0&&(vt(Ce,US),vt(Ee,OO),vt(Ee,og))),xt.tagCheck=null,xt.attributeCheck=null,qn(L,"ADD_TAGS")&&(typeof L.ADD_TAGS=="function"?xt.tagCheck=L.ADD_TAGS:Ri(L.ADD_TAGS)&&(Ce===mt&&(Ce=wr(Ce)),vt(Ce,L.ADD_TAGS,rt))),qn(L,"ADD_ATTR")&&(typeof L.ADD_ATTR=="function"?xt.attributeCheck=L.ADD_ATTR:Ri(L.ADD_ATTR)&&(Ee===Be&&(Ee=wr(Ee)),vt(Ee,L.ADD_ATTR,rt))),qn(L,"ADD_URI_SAFE_ATTR")&&Ri(L.ADD_URI_SAFE_ATTR)&&vt(La,L.ADD_URI_SAFE_ATTR,rt),qn(L,"FORBID_CONTENTS")&&Ri(L.FORBID_CONTENTS)&&(ma===Bo&&(ma=wr(ma)),vt(ma,L.FORBID_CONTENTS,rt)),qn(L,"ADD_FORBID_CONTENTS")&&Ri(L.ADD_FORBID_CONTENTS)&&(ma===Bo&&(ma=wr(ma)),vt(ma,L.ADD_FORBID_CONTENTS,rt)),Xn&&(Ce["#text"]=!0),gt&&vt(Ce,["html","head","body"]),Ce.table&&(vt(Ce,["tbody"]),delete qe.tbody),L.TRUSTED_TYPES_POLICY){if(typeof L.TRUSTED_TYPES_POLICY.createHTML!="function")throw Cl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof L.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Cl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const pe=O;O=L.TRUSTED_TYPES_POLICY;try{I=j("")}catch(Ae){throw O=pe,Ae}}else L.TRUSTED_TYPES_POLICY===null?(O=void 0,I=""):(O===void 0&&(O=Z()),O&&typeof I=="string"&&(I=j("")));sr&&sr(L),Xr=L},Dd=vt({},[...DS,...LS,...Pte]),Ho=vt({},[...US,...Dte]),Ld=function(L,ee,pe){return ee.namespaceURI===Zr?L==="svg":ee.namespaceURI===os?L==="svg"&&(pe==="annotation-xml"||Eu[pe]):!!Dd[L]},qo=function(L,ee,pe){return ee.namespaceURI===Zr?L==="math":ee.namespaceURI===Cu?L==="math"&&nl[pe]:!!Ho[L]},Wo=function(L,ee,pe){return ee.namespaceURI===Cu&&!nl[pe]||ee.namespaceURI===os&&!Eu[pe]?!1:!Ho[L]&&(Dp[L]||!Dd[L])},rl=function(L){let ee=E(L);(!ee||!ee.tagName)&&(ee={namespaceURI:is,tagName:"template"});const pe=sh(L.tagName),Ae=sh(ee.tagName);return Od[L.namespaceURI]?L.namespaceURI===Cu?Ld(pe,ee,Ae):L.namespaceURI===os?qo(pe,ee,Ae):L.namespaceURI===Zr?Wo(pe,ee,Ae):!!($o==="application/xhtml+xml"&&Od[L.namespaceURI]):!1},vr=function(L){ic(e.removed,{element:L});try{E(L).removeChild(L)}catch{if(S(L),!E(L))throw Cl("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},cn=function(L){Ua(L);const ee=x(L);if(ee){const Ae=[];oc(ee,De=>{ic(Ae,De)}),oc(Ae,De=>{try{S(De)}catch{}})}const pe=A(L);if(pe)for(let Ae=pe.length-1;Ae>=0;--Ae){const De=pe[Ae],je=De&&De.name;if(typeof je=="string")try{L.removeAttribute(je)}catch{}}},us=function(L,ee){try{ic(e.removed,{attribute:ee.getAttributeNode(L),from:ee})}catch{ic(e.removed,{attribute:null,from:ee})}if(ee.removeAttribute(L),L==="is")if(Fs||wu)try{vr(ee)}catch{}else try{ee.setAttribute(L,"")}catch{}},Up=function(L){const ee=A(L);if(ee)for(let pe=ee.length-1;pe>=0;--pe){const Ae=ee[pe],De=Ae&&Ae.name;if(!(typeof De!="string"||Ee[rt(De)]))try{L.removeAttribute(De)}catch{}}},Ua=function(L){const ee=[L];for(;ee.length>0;){const pe=ee.pop();(R?R(pe):pe.nodeType)===sa.element&&Up(pe);const De=x(pe);if(De)for(let je=De.length-1;je>=0;--je)ee.push(De[je])}},Vo=function(L){if(!Kt)return;const ee=[L];for(;ee.length>0;){const pe=ee.pop(),Ae=R?R(pe):pe.nodeType;if(Ae===sa.processingInstruction||Ae===sa.comment&&$n(PO,pe.data)){try{S(pe)}catch{}continue}if(Ae===sa.element){const je=pe,nn=rt(N?N(pe):pe.nodeName);try{je.hasAttribute&&je.hasAttribute("patchsrc")&&je.removeAttribute("patchsrc"),je.hasAttribute&&je.hasAttribute("for")&&nn!=="label"&&nn!=="output"&&je.removeAttribute("for")}catch{}}const De=x(pe);if(De)for(let je=De.length-1;je>=0;--je)ee.push(De[je])}},zp=function(L){let ee=null,pe=null;if(Rd)L="<remove></remove>"+L;else{const je=EO(L,/^[\r\n\t ]+/);pe=je&&je[0]}$o==="application/xhtml+xml"&&is===Zr&&(L='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+L+"</body></html>");const Ae=O?j(L):L;if(is===Zr)try{ee=new h().parseFromString(Ae,$o)}catch{}if(!ee||!ee.documentElement){ee=q.createDocument(is,"template",null);try{ee.documentElement.innerHTML=Bs?I:Ae}catch{}}const De=ee.body||ee.documentElement;return L&&pe&&De.insertBefore(n.createTextNode(pe),De.childNodes[0]||null),is===Zr?he.call(ee,gt?"html":"body")[0]:gt?ee.documentElement:De},Ud=function(L){return X.call(L.ownerDocument||L,L,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},al=function(L){return L=Uf(L,Y," "),L=Uf(L,G," "),L=Uf(L,Q," "),L},zd=function(L){var ee;L.normalize();const pe=X.call(L.ownerDocument||L,L,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Ae=pe.nextNode();for(;Ae;)Ae.data=al(Ae.data),Ae=pe.nextNode();const De=(ee=L.querySelectorAll)===null||ee===void 0?void 0:ee.call(L,"template");De&&oc(De,je=>{za(je.content)&&zd(je.content)})},$s=function(L){const ee=N?N(L):null;return typeof ee!="string"||rt(ee)!=="form"?!1:typeof L.nodeName!="string"||typeof L.textContent!="string"||typeof L.removeChild!="function"||L.attributes!==A(L)||typeof L.removeAttribute!="function"||typeof L.setAttribute!="function"||typeof L.namespaceURI!="string"||typeof L.insertBefore!="function"||typeof L.hasChildNodes!="function"||L.nodeType!==R(L)||L.childNodes!==x(L)},za=function(L){if(!R||typeof L!="object"||L===null)return!1;try{return R(L)===sa.documentFragment}catch{return!1}},yr=function(L){if(!R||typeof L!="object"||L===null)return!1;try{return typeof R(L)=="number"}catch{return!1}};function dn(me,L,ee){me.length!==0&&oc(me,pe=>{pe.call(e,L,ee,Xr)})}const jp=function(L,ee){return!!(Kt&&L.hasChildNodes()&&!yr(L.firstElementChild)&&$n(MO,L.textContent)&&$n(MO,L.innerHTML)||Kt&&L.namespaceURI===Zr&&ee==="style"&&yr(L.firstElementChild)||L.nodeType===sa.processingInstruction||Kt&&L.nodeType===sa.comment&&$n(PO,L.data))},uy=function(L,ee){if(!qe[ee]&&Fp(ee)&&($e.tagNameCheck instanceof RegExp&&$n($e.tagNameCheck,ee)||$e.tagNameCheck instanceof Function&&$e.tagNameCheck(ee)))return!1;if(Xn&&!ma[ee]){const pe=E(L),Ae=x(L);if(Ae&&pe){const De=Ae.length;for(let je=De-1;je>=0;--je){const nn=Id?Ae[je]:y(Ae[je],!0);pe.insertBefore(nn,w(L))}}}return vr(L),!0},ku=function(L,ee){if(dn(D.beforeSanitizeElements,L,null),L!==ee&&E(L)===null)return!0;if($s(L))return vr(L),!0;const pe=rt(N?N(L):L.nodeName);if(dn(D.uponSanitizeElement,L,{tagName:pe,allowedTags:Ce}),L!==ee&&E(L)===null)return!0;if(jp(L,pe))return vr(L),!0;if(qe[pe]||!(xt.tagCheck instanceof Function&&xt.tagCheck(pe))&&!Ce[pe]){const De=uy(L,pe);return De===!1&&dn(D.afterSanitizeElements,L,null),De}if((R?R(L):L.nodeType)===sa.element&&!rl(L)||(pe==="noscript"||pe==="noembed"||pe==="noframes")&&$n(Wte,L.innerHTML))return vr(L),!0;if(Rr&&L.nodeType===sa.text){const De=al(L.textContent);L.textContent!==De&&(ic(e.removed,{element:L.cloneNode()}),L.textContent=De)}return dn(D.afterSanitizeElements,L,null),!1},jd=function(L,ee,pe){if(gr[ee]||Kt&&ee==="patchsrc"||Kt&&ee==="for"&&L!=="label"&&L!=="output"||jo&&(ee==="id"||ee==="name")&&(pe in n||pe in Md))return!1;const Ae=Ee[ee]||xt.attributeCheck instanceof Function&&xt.attributeCheck(ee,L);if(!(Zn&&$n(V,ee))){if(!(Yr&&$n(ue,ee))){if(Ae){if(!La[ee]){if(!$n(Ge,Uf(pe,ce,""))){if(!((ee==="src"||ee==="xlink:href"||ee==="href")&&L!=="script"&&_O(pe,"data:")===0&&Ji[L])){if(!(Tr&&!$n(oe,Uf(pe,ce,"")))){if(pe)return!1}}}}}else if(!(Fp(L)&&($e.tagNameCheck instanceof RegExp&&$n($e.tagNameCheck,L)||$e.tagNameCheck instanceof Function&&$e.tagNameCheck(L))&&($e.attributeNameCheck instanceof RegExp&&$n($e.attributeNameCheck,ee)||$e.attributeNameCheck instanceof Function&&$e.attributeNameCheck(ee,L))||ee==="is"&&$e.allowCustomizedBuiltInElements&&($e.tagNameCheck instanceof RegExp&&$n($e.tagNameCheck,pe)||$e.tagNameCheck instanceof Function&&$e.tagNameCheck(pe))))return!1}}return!0},Au=vt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Fp=function(L){return!Au[sh(L)]&&$n(be,L)},Or=function(L,ee,pe,Ae){if(O&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!pe)switch(m.getAttributeType(L,ee)){case"TrustedHTML":return j(Ae);case"TrustedScriptURL":return $(Ae)}return Ae},Fd=function(L,ee,pe,Ae){try{pe?L.setAttributeNS(pe,ee,Ae):L.setAttribute(ee,Ae),$s(L)?vr(L):CO(e.removed)}catch{us(ee,L)}},Bd=function(L){dn(D.beforeSanitizeAttributes,L,null);const ee=L.attributes;if(!ee||$s(L))return;const pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee,forceKeepAttr:void 0};let Ae=ee.length;const De=rt(L.nodeName);for(;Ae--;){const je=ee[Ae],nn=je.name,Fn=je.namespaceURI,dr=je.value,rn=rt(nn),br=dr;let Nn=nn==="value"?br:Ate(br);if(pe.attrName=rn,pe.attrValue=Nn,pe.keepAttr=!0,pe.forceKeepAttr=void 0,dn(D.uponSanitizeAttribute,L,pe),Nn=pe.attrValue,cr&&(rn==="id"||rn==="name")&&_O(Nn,Da)!==0&&(us(nn,L),Nn=Da+Nn),Kt&&$n(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Nn)){us(nn,L);continue}if(rn==="attributename"&&EO(Nn,"href")){us(nn,L);continue}if(!pe.forceKeepAttr){if(!pe.keepAttr){us(nn,L);continue}if(!as&&$n(Vte,Nn)){us(nn,L);continue}if(Rr&&(Nn=al(Nn)),!jd(De,rn,Nn)){us(nn,L);continue}Nn=Or(De,rn,Fn,Nn),Nn!==br&&Fd(L,nn,Fn,Nn)}}dn(D.afterSanitizeAttributes,L,null)},Go=function(L){let ee=null;const pe=Ud(L);for(dn(D.beforeSanitizeShadowDOM,L,null);ee=pe.nextNode();)if(dn(D.uponSanitizeShadowNode,ee,null),ku(ee,L),Bd(ee),za(ee.content)&&Go(ee.content),(R?R(ee):ee.nodeType)===sa.element){const De=k(ee);za(De)&&(cs(De),Go(De))}dn(D.afterSanitizeShadowDOM,L,null)},cs=function(L){const ee=[{node:L,shadow:null}];for(;ee.length>0;){const pe=ee.pop();if(pe.shadow){Go(pe.shadow);continue}const Ae=pe.node,je=(R?R(Ae):Ae.nodeType)===sa.element,nn=x(Ae);if(nn)for(let Fn=nn.length-1;Fn>=0;--Fn)ee.push({node:nn[Fn],shadow:null});if(je){const Fn=N?N(Ae):null;if(typeof Fn=="string"&&rt(Fn)==="template"){const dr=Ae.content;za(dr)&&ee.push({node:dr,shadow:null})}}if(je){const Fn=k(Ae);za(Fn)&&ee.push({node:null,shadow:Fn},{node:Fn,shadow:null})}}};return e.sanitize=function(me){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=null,pe=null,Ae=null,De=null;if(Bs=!me,Bs&&(me="<!-->"),typeof me!="string"&&!yr(me)&&(me=Nte(me),typeof me!="string"))throw Cl("dirty is not a string, aborting");if(!e.isSupported)return me;bn?(Ce=Ir,Ee=ss):Pd(L),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(Ce=wr(Ce)),D.uponSanitizeAttribute.length>0&&(Ee=wr(Ee)),e.removed=[];const je=Id&&typeof me!="string"&&yr(me);if(je){Vo(me);const rn=N?N(me):me.nodeName;if(typeof rn=="string"){const br=rt(rn);if(!Ce[br]||qe[br])throw cn(me),Cl("root node is forbidden and cannot be sanitized in-place")}if($s(me))throw cn(me),Cl("root node is clobbered and cannot be sanitized in-place");try{cs(me)}catch(br){throw cn(me),br}}else if(yr(me))ee=zp("<!---->"),pe=ee.ownerDocument.importNode(me,!0),pe.nodeType===sa.element&&pe.nodeName==="BODY"||pe.nodeName==="HTML"?ee=pe:ee.appendChild(pe),cs(pe);else{if(!Fs&&!Rr&&!gt&&me.indexOf("<")===-1)return O&&xu?j(me):me;if(ee=zp(me),!ee)return Fs?null:xu?I:""}ee&&Rd&&vr(ee.firstChild);const nn=je?me:ee,Fn=Ud(nn);try{for(;Ae=Fn.nextNode();)ku(Ae,nn),Bd(Ae),za(Ae.content)&&Go(Ae.content)}catch(rn){throw je&&(cn(me),oc(e.removed,br=>{br.element&&Ua(br.element)})),rn}if(je)return oc(e.removed,rn=>{rn.element&&Ua(rn.element)}),Rr&&zd(me),me;if(Fs){if(Rr&&zd(ee),wu)for(De=ae.call(ee.ownerDocument);ee.firstChild;)De.appendChild(ee.firstChild);else De=ee;return(Ee.shadowroot||Ee.shadowrootmode)&&(De=xe.call(r,De,!0)),De}let dr=gt?ee.outerHTML:ee.innerHTML;return gt&&Ce["!doctype"]&&ee.ownerDocument&&ee.ownerDocument.doctype&&ee.ownerDocument.doctype.name&&$n(Hte,ee.ownerDocument.doctype.name)&&(dr="<!DOCTYPE "+ee.ownerDocument.doctype.name+`>
14
- `+dr),Rr&&(dr=al(dr)),O&&xu?j(dr):dr},e.setConfig=function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pd(me),bn=!0,Ir=Ce,ss=Ee},e.clearConfig=function(){Xr=null,bn=!1,Ir=null,ss=null,O=P,I=""},e.isValidAttribute=function(me,L,ee){Xr||Pd({});const pe=rt(me),Ae=rt(L);return jd(pe,Ae,ee)},e.addHook=function(me,L){typeof L=="function"&&qn(D,me)&&ic(D[me],L)},e.removeHook=function(me,L){if(qn(D,me)){if(L!==void 0){const ee=_te(D[me],L);return ee===-1?void 0:kte(D[me],ee,1)[0]}return CO(D[me])}},e.removeHooks=function(me){qn(D,me)&&(D[me]=[])},e.removeAllHooks=function(){D=DO()},e}var gRe=dU();function fU({children:t,className:e}){return C.jsx("div",{"data-auth-page":!0,className:Ue("flex min-h-dvh w-full flex-col items-center justify-center overflow-y-auto bg-surface-sunken pb-[max(2rem,env(safe-area-inset-bottom,0px))] pl-[max(1rem,env(safe-area-inset-left,0px))] pr-[max(1rem,env(safe-area-inset-right,0px))] pt-[max(2rem,env(safe-area-inset-top,0px))] text-fg",e),style:{backgroundImage:"radial-gradient(at 20% 0%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%), radial-gradient(at 80% 100%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%)"},children:C.jsx("div",{className:"w-full max-w-[26rem]",children:t})})}const Yte="Secure sign-in powered by AWS Cognito";function hU(t){const e=t?.note??"Secure sign-in";return C.jsx("div",{className:"text-center pt-5",children:C.jsx("p",{className:"text-xs text-fg-muted",children:e})})}const Zte=()=>C.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"text-accent",children:[C.jsx("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),C.jsx("path",{d:"M3 7l9 6 9-6"})]});function pU({wordmark:t="remit,",tagline:e="your email client in the cloud.",mark:n=C.jsx(Zte,{})}){return C.jsxs("div",{className:"text-center pb-6",children:[C.jsx("div",{className:"flex items-center justify-center pb-3",children:n}),C.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-[-0.01em] text-fg",children:t}),C.jsx("p",{className:"mt-1 text-sm text-fg-muted",children:e})]})}const Xte={info:"bg-accent-2/15 text-accent-2 border-accent-2/40",success:"bg-positive/15 text-positive border-positive/40",warning:"bg-warning/15 text-warning border-warning/40",danger:"bg-danger/15 text-danger border-danger/40"},Qte={info:"bg-surface-sunken text-fg-muted",success:"bg-positive/10 text-positive",warning:"bg-warning/10 text-warning",danger:"bg-danger-soft text-danger"},Jte={info:"status",success:"status",warning:"alert",danger:"alert"};function PE({tone:t="info",variant:e="framed",onDismiss:n,role:r,className:a,children:s,...i}){const u=e==="soft";return C.jsxs("div",{role:r??Jte[t],className:Ue("flex gap-2 px-3 py-2 text-sm",u?Ue("items-start rounded-md",Qte[t]):Ue("items-center border",Xte[t]),a),...i,children:[C.jsx("div",{className:"flex-1 min-w-0",children:s}),n&&(u?C.jsx(on,{variant:"ghost",size:"sm",icon:C.jsx(Ms,{className:"size-3.5"}),onClick:n,"aria-label":"Dismiss",className:"-mr-1 shrink-0"}):C.jsx("button",{type:"button",onClick:n,"aria-label":"Dismiss",className:"shrink-0 rounded-md p-1 hover:bg-fg/10 transition-colors",children:C.jsx(Ms,{className:"size-4","aria-hidden":"true"})}))]})}function ene({id:t,reason:e,nudged:n,className:r}){return C.jsxs(C.Fragment,{children:[C.jsx("p",{id:t,className:Ue(r,!n&&"sr-only"),children:e}),C.jsx("span",{role:"status","aria-live":"polite",className:"sr-only",children:n?e:""})]})}const tne=[{tag:"ar",detectionCode:"arb"},{tag:"az",detectionCode:"azj"},{tag:"be",detectionCode:"bel"},{tag:"bg",detectionCode:"bul"},{tag:"bs",detectionCode:"bos"},{tag:"cs",detectionCode:"ces"},{tag:"de",detectionCode:"deu"},{tag:"en",detectionCode:"eng"},{tag:"es",detectionCode:"spa"},{tag:"fa",detectionCode:"pes"},{tag:"fr",detectionCode:"fra"},{tag:"ha",detectionCode:"hau"},{tag:"hi",detectionCode:"hin"},{tag:"hr",detectionCode:"hrv"},{tag:"hu",detectionCode:"hun"},{tag:"id",detectionCode:"ind"},{tag:"ig",detectionCode:"ibo"},{tag:"it",detectionCode:"ita"},{tag:"jv",detectionCode:"jav"},{tag:"kk",detectionCode:"kaz"},{tag:"mr",detectionCode:"mar"},{tag:"ms",detectionCode:"zlm"},{tag:"ne",detectionCode:"npi"},{tag:"nl",detectionCode:"nld"},{tag:"pl",detectionCode:"pol"},{tag:"ps",detectionCode:"pbu"},{tag:"pt",detectionCode:"por"},{tag:"ro",detectionCode:"ron"},{tag:"ru",detectionCode:"rus"},{tag:"so",detectionCode:"som"},{tag:"sr",detectionCode:"srp"},{tag:"su",detectionCode:"sun"},{tag:"sv",detectionCode:"swe"},{tag:"sw",detectionCode:"swh"},{tag:"tl",detectionCode:"tgl"},{tag:"tr",detectionCode:"tur"},{tag:"uk",detectionCode:"ukr"},{tag:"ur",detectionCode:"urd"},{tag:"vi",detectionCode:"vie"},{tag:"yo",detectionCode:"yor"},{tag:"zu",detectionCode:"zul"}],Q_=t=>(t.split("-")[0]??"").toLowerCase(),nne=new Map(tne.map(t=>[t.tag,t])),rne=t=>nne.get(Q_(t))?.detectionCode??null,ane=/^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i,vRe=t=>Q_(t).toUpperCase(),yRe=t=>{if(!ane.test(t))return t;const n=new Intl.DisplayNames([t],{type:"language",fallback:"none"}).of(t);return n?n.charAt(0).toLocaleUpperCase(t)+n.slice(1):t},bRe=t=>{const n=t.filter(a=>rne(a)!==null).map(Q_),r=[...new Set(n)];return r.includes("en")||r.push("en"),r},SRe=t=>/iPhone|iPad|iPod/.test(t)?"On iPhone and iPad the keyboard decides this. Add the language under Settings, then General, then Keyboard.":/Edg\//.test(t)?"Edge checks every language you add under Settings, then Languages. Adding one there checks it alongside the others.":/Firefox\//.test(t)?"Firefox uses this setting. Right-click the message to add a dictionary for it.":/Chrome\/|Chromium\//.test(t)?"Chrome checks every language you add under Settings, then Languages. Adding one there checks it alongside the others.":/Safari\//.test(t)?"macOS decides this under Keyboard, then Text Input, then Spelling. Automatic by Language covers every language enabled there.":"Your browser decides which dictionaries it checks. Add this language in its own language settings to have it spellchecked.",mU=t=>new DOMParser().parseFromString(t,"text/html"),gU=t=>{const e=[...t.children];if(e.length!==1)return null;const n=e[0];return n?[...t.childNodes].some(a=>a!==n&&(a.textContent??"").trim()!=="")?null:n:null},wRe=(t,e)=>{if(t==="")return"";const n=mU(t),r=gU(n.body);if(r?.tagName==="DIV"&&r.hasAttribute("lang"))return r.setAttribute("lang",e),n.body.innerHTML;const a=n.createElement("div");for(a.setAttribute("lang",e);n.body.firstChild;)a.append(n.body.firstChild);return n.body.append(a),n.body.innerHTML},xRe=t=>{if(t==="")return{html:t,language:null};const e=mU(t),n=gU(e.body);return n?.tagName!=="DIV"||!n.hasAttribute("lang")?{html:t,language:null}:{html:n.innerHTML,language:n.getAttribute("lang")}};function J_({className:t,children:e,...n}){return C.jsx("label",{className:Ue("mb-1 block text-xs font-medium text-fg-muted",t),...n,children:e})}const LO={type:"none"};function sne(t){if(!t.open||t.count<=0)return LO;if(t.key==="ArrowDown"){const n=t.activeIndex+1;return{type:"move",index:n>=t.count?0:n}}if(t.key==="ArrowUp"){const n=t.activeIndex-1;return{type:"move",index:n<0?t.count-1:n}}return t.key==="Escape"?{type:"dismiss"}:(t.key==="Enter"||(t.acceptKeys??[]).includes(t.key))&&t.activeIndex>=0&&t.activeIndex<t.count?{type:"accept",index:t.activeIndex}:LO}function one({count:t,onAccept:e,acceptKeys:n}){const[r,a]=_.useState(!1),[s,i]=_.useState(-1),u=_.useId().replace(/[^a-zA-Z0-9_-]/g,""),c=`suggest-${u}`,f=_.useCallback(g=>`suggest-${u}-option-${g}`,[u]);_.useEffect(()=>{i(-1),a(!1)},[t]);const h=t>0&&!r,m=_.useCallback(g=>{const y=sne({key:g.key,open:h,count:t,activeIndex:s,acceptKeys:n});return y.type==="none"?!1:(g.preventDefault(),y.type==="move"&&i(y.index),y.type==="dismiss"&&a(!0),y.type==="accept"&&e(y.index),!0)},[h,t,s,n,e]);return{open:h,activeIndex:s,setActiveIndex:i,dismiss:_.useCallback(()=>a(!0),[]),reopen:_.useCallback(()=>a(!1),[]),handleKeyDown:m,listId:c,optionId:f,comboboxProps:{role:"combobox","aria-expanded":h,"aria-controls":c,"aria-autocomplete":"list",...s>=0?{"aria-activedescendant":f(s)}:{},...h?{"data-escape-owner":""}:{}}}}const ine={similar:"Anything similar",properties:"Its properties"};function DE(t){return ine[t]}const lne={similar:"Reads the messages you picked and finds more that read like them.",properties:"Matches on what the messages say about themselves — sender, subject, list. No reading involved."};function vU(t){return lne[t]}const une={From:"From",Subject:"Subject",HasWords:"Has the words",ListId:"List",FromDomain:"Domain"};function Bc(t){return une[t]}const cne={ListId:"The mailing list's List-Id header, matched exactly. New mail is matched as it arrives — mail delivered before this was set up may not carry it yet.",FromDomain:"The sender's registrable domain — matches anyone at it, subdomains included (a look-alike like example.com.evil.test never matches)."};function dne(t){return cne[t]}function fne(t){return t==="HasWords"}function hne(t){return t.widen!==void 0&&!t.widen.inactive}function yU(t){return hne(t)?[]:t.clauses.filter(e=>fne(e.field))}const pne=["From","Subject","HasWords","ListId","FromDomain"];function $0(t){return`Similar to these ${t.anchorCount}`}const mne={all:"Match all",any:"Match any"};function H0(t){return mne[t]}function ek(t){return t==="all"?"and":"or"}function bU(t){if(t.status==="loading")return"Counting matches…";if(t.status==="error")return t.reason;if(t.count===0)return"No mail matches yet";const e=t.count===1?"message":"messages",n=`${t.count} ${e} match`;return t.stale?`${n} — recounting`:n}const gne={once:"Just once",standing:"Keep doing this",until:"Until a date"};function c0(t){return gne[t]}function SU(t){return t==="once"?"Apply now":t==="standing"?"Save rule":"Save until then"}const Aa={noMatch:"Add a clause so the rule has something to match.",bodyTextOnce:"Applying once can't read message bodies. Save this as a rule instead, or drop the “has the words” clause.",noAction:"Pick a folder to move into, or a label to apply.",unnamed:"Name this rule so you can find it later.",noUntilDate:"Pick the date this rule should stop on.",counting:"Counting matches — save once the count settles.",recounting:"Recounting matches — save once the count settles."},CRe="Can't count matches — “has the words” reads message bodies, which only a saved rule does.";function wU(t){if(t.status==="loading")return Aa.counting;if(t.status==="ready"&&t.stale)return Aa.recounting}function vne(t,e){return t.clauses.length>0||t.widen!==void 0&&!t.widen.inactive?t.scope==="once"&&yU(t).length>0?Aa.bodyTextOnce:!t.moveMailboxId&&!t.labelId?Aa.noAction:(t.scope==="standing"||t.scope==="until")&&(t.name??"").trim()===""?Aa.unnamed:t.scope==="until"&&!t.until?Aa.noUntilDate:wU(e):Aa.noMatch}const yne={default:Ue("flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken px-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors"),inline:"flex items-center gap-2 bg-transparent text-sm"};function ts({icon:t,className:e,variant:n="default",trailing:r,ref:a,...s}){return C.jsxs("div",{className:Ue(yne[n],e),children:[t&&C.jsx("span",{className:"text-fg-subtle shrink-0",children:t}),C.jsx("input",{ref:a,className:"min-w-0 flex-1 bg-transparent text-fg placeholder:text-fg-subtle outline-none",...s}),r]})}function xU({icon:t,className:e,children:n,...r}){return C.jsxs("div",{className:Ue("relative flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken pl-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors",e),children:[t&&C.jsx("span",{className:"shrink-0 text-fg-subtle",children:t}),C.jsx("select",{className:"min-w-0 flex-1 appearance-none bg-transparent py-0 pr-8 text-fg outline-none",...r,children:n}),C.jsx(kE,{className:"pointer-events-none absolute right-2.5 size-4 text-fg-subtle"})]})}function bne({id:t,suggestions:e,activeIndex:n,optionId:r,onPick:a,onHighlight:s,label:i,className:u}){return e.length===0?null:C.jsx("div",{id:t,role:"listbox","aria-label":i,className:Ue("max-h-44 overflow-y-auto rounded-md border border-line bg-surface py-1 shadow-sm",u),children:e.map((c,f)=>C.jsxs("div",{id:r(f),role:"option",tabIndex:-1,"aria-selected":f===n,className:Ue("flex cursor-pointer items-baseline gap-2 px-3 py-2 text-sm text-fg",f===n&&"bg-accent-2-soft"),onMouseDown:h=>{h.preventDefault(),a(c)},onMouseEnter:()=>s(f),children:[C.jsx("span",{className:"min-w-0 flex-1 truncate",children:c.label??c.value}),c.hint&&C.jsx("span",{className:"shrink-0 truncate text-2xs text-fg-subtle",children:c.hint}),c.source&&C.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:c.source})]},c.value))})}const q0="inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs";function CU({clause:t,onEdit:e,onRemove:n}){return C.jsxs("span",{className:Ue(q0,t.derived?"border-dashed border-line-strong bg-surface-sunken":"border-line bg-surface"),children:[C.jsxs("button",{type:"button",onClick:e,"aria-label":`Edit ${Bc(t.field)} clause`,className:"flex items-center gap-1 text-left",children:[C.jsx("span",{className:"font-medium text-fg-muted",children:Bc(t.field)}),C.jsx("span",{className:"text-fg",children:t.value})]}),t.derived&&C.jsx("span",{className:"text-2xs text-fg-subtle",children:"from sender"}),n&&C.jsx("button",{type:"button",onClick:n,"aria-label":`Remove ${Bc(t.field)} clause`,className:"flex size-4 items-center justify-center rounded-full text-fg-subtle hover:bg-surface-sunken hover:text-fg-muted",children:C.jsx(Ms,{className:"size-3"})})]})}function UO({onRemove:t}){return C.jsx("button",{type:"button",onClick:t,"aria-label":"Remove the similar-mail widen",className:"flex size-4 items-center justify-center rounded-full hover:bg-fg-subtle/20",children:C.jsx(Ms,{className:"size-3"})})}function Sne({widen:t,onRemove:e}){return t.inactive?C.jsxs("span",{className:Ue(q0,"border-dashed border-line-strong bg-surface-sunken text-fg-subtle"),children:[C.jsx(AE,{className:"size-3 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"line-through",children:$0(t)}),C.jsx("span",{className:"text-2xs",children:"not available here"}),e&&C.jsx(UO,{onRemove:e})]}):C.jsxs("span",{className:Ue(q0,"border-accent-2 bg-accent-2-soft text-accent-2"),children:[C.jsx(AE,{className:"size-3 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"font-medium",children:"…and anything similar"}),C.jsx("span",{className:"text-2xs opacity-80",children:$0(t)}),e&&C.jsx(UO,{onRemove:e})]})}function LE({label:t,onClick:e}){return C.jsxs("button",{type:"button",onClick:e,className:Ue(q0,"border-dashed border-line-strong text-fg-muted hover:border-accent-2 hover:text-accent-2"),children:[C.jsx(zJ,{className:"size-3","aria-hidden":"true"}),t]})}function EU({draft:t,mode:e,fields:n=pne,suggestions:r=[],onChangeField:a,onChangeValue:s,onSubmit:i,onCancel:u}){const c=dne(t.field),f=one({count:r.length,onAccept:h=>s?.(r[h].value)});return C.jsxs("div",{className:"space-y-1.5 rounded-lg border border-accent-2 bg-surface p-2",children:[C.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[C.jsx(xU,{"aria-label":"Clause field",value:t.field,onChange:h=>a?.(h.target.value),className:"h-8 w-32 shrink-0",children:n.map(h=>C.jsx("option",{value:h,children:Bc(h)},h))}),C.jsx(ts,{"aria-label":"Clause value",value:t.value,placeholder:"value…",autoComplete:"off",onChange:h=>{f.reopen(),s?.(h.target.value)},onKeyDown:h=>{f.handleKeyDown(h)||h.key==="Enter"&&i?.()},className:"h-8 min-w-40 flex-1",...f.comboboxProps}),C.jsx(on,{variant:"primary",size:"sm",onClick:i,disabled:t.value.trim()==="",className:"shrink-0",children:e==="add"?"Add":"Save"}),C.jsx(on,{variant:"ghost",size:"sm",onClick:u,"aria-label":"Cancel clause edit",icon:C.jsx(Ms,{className:"size-4"}),className:"shrink-0 px-2"})]}),f.open&&C.jsx(bne,{id:f.listId,suggestions:r,activeIndex:f.activeIndex,optionId:f.optionId,onPick:h=>{s?.(h.value),f.dismiss()},onHighlight:f.setActiveIndex,label:`${Bc(t.field)} suggestions`}),c&&C.jsx("p",{className:"px-0.5 text-2xs text-fg-subtle",children:c})]})}function wne({preview:t}){const e=bU(t);if(t.status==="loading")return C.jsxs("p",{className:"flex items-center gap-2 text-xs text-fg-muted","aria-live":"polite",children:[C.jsx(j0,{className:"size-3.5 animate-spin","aria-hidden":"true"}),e]});if(t.status==="error")return C.jsxs("p",{className:"flex items-center gap-2 text-xs text-danger",role:"alert",children:[C.jsx(Nh,{className:"size-3.5 shrink-0","aria-hidden":"true"}),e]});const n=t.count===0;return C.jsxs("p",{className:Ue("flex items-center gap-2 text-xs",t.stale?"text-fg-subtle":n?"text-fg-muted":"font-medium text-fg"),"aria-live":"polite",children:[t.stale&&C.jsx(j0,{className:"size-3.5 animate-spin","aria-hidden":"true"}),e]})}const xne=t=>typeof t=="object"&&t!==null&&"name"in t&&t.name==="AbortError",Dh=(t,e)=>{const n=t.lastIndexOf(e);return n===-1?"":t.slice(0,n)},_U=(t,e)=>t.split(e).length-1,Lh=(t,e)=>{const n=[];let r=Dh(t,e);for(;r;)n.push(r),r=Dh(r,e);return n},Cne=(t,e)=>{const n=new Set(t.map(i=>i.path)),r=new Set,a=[],s=i=>{if(!r.has(i.path)){r.add(i.path),a.push(i);for(const u of t)Dh(u.path,e)===i.path&&s(u)}};for(const i of t){const u=Dh(i.path,e);u&&n.has(u)||s(i)}return a},kU=(t,e)=>t.label.toLowerCase().includes(e)||t.path.toLowerCase().includes(e),Ene=(t,e,n)=>{const r=new Set;if(!e)return r;for(const a of t)if(kU(a,e))for(const s of Lh(a.path,n))r.add(s);return r},_ne=(t,e,n,r=new Set)=>{const a=(u,c)=>({folder:u,depth:_U(u.path,n),context:c,expanded:r.has(u.path)});if(!e)return t.map(u=>a(u,!1));const s=new Set;for(const u of t)kU(u,e)&&s.add(u.path);const i=new Set(s);for(const u of s)for(const c of Lh(u,n))i.add(c);return t.filter(u=>i.has(u.path)).map(u=>a(u,!s.has(u.path)))},kne=(t,e,n)=>{const r=new Set(t.map(a=>a.path));return t.filter(a=>Lh(a.path,n).every(s=>!r.has(s)||e.has(s))).map(a=>({folder:a,depth:_U(a.path,n),context:!1,expanded:e.has(a.path)}))},Ane=(t,e)=>{const n=[],r=[],a=s=>{for(;r.length>0;){const i=r[r.length-1];if(!i||s?.startsWith(`${i.folder.path}${e}`))break;r.pop(),n.push({kind:"create",parent:i.folder,depth:i.depth+1})}};return t.forEach((s,i)=>{a(s.folder.path),n.push({kind:"folder",row:s,index:i}),s.expanded&&r.push(s)}),a(null),n},Es=t=>t!==void 0&&!t.context,jS=t=>t!==void 0&&!t.folder.isCurrent&&!t.context,FS=t=>{for(let e=0;e<t.length;e+=1)if(Es(t[e]))return e;return-1},Tne=t=>{for(let e=t.length-1;e>=0;e-=1)if(Es(t[e]))return e;return-1},zO=(t,e,n)=>{const r=t.length;if(r<=0)return-1;const a=e<0?n===1?-1:r:e;for(let s=1;s<=r;s+=1){const i=((a+n*s)%r+r)%r;if(Es(t[i]))return i}return-1},Rne=(t,e,n)=>{const r=t[e];if(!r)return-1;const a=Dh(r.folder.path,n);if(!a)return-1;for(let s=e-1;s>=0;s-=1)if(t[s]?.folder.path===a)return Es(t[s])?s:-1;return-1},UE="flex min-h-11 min-w-0 flex-1 items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",AU=14,Ine=60,zE=({depth:t})=>t>0?C.jsx("span",{"aria-hidden":"true",className:"shrink-0",style:{width:t*AU}}):null,jE=({depth:t})=>C.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute right-0 bottom-0 h-px bg-line",style:{left:Ine+t*AU}}),One=({label:t,depth:e,expanded:n,ariaLabel:r,selected:a=!1,context:s=!1,current:i=!1,currentTag:u,separated:c=!1,actions:f,tabIndex:h,onActivate:m,onFocus:g,ref:y})=>{const S=C.jsx(kJ,{className:Ue("size-4 shrink-0 text-fg-subtle transition-transform",n&&"rotate-90"),"aria-hidden":"true"}),w=C.jsx(DJ,{className:"size-4 shrink-0 text-fg-subtle","aria-hidden":"true"});return s?C.jsxs("div",{className:"relative flex items-center",children:[C.jsxs("div",{role:"treeitem","aria-level":e+1,"aria-selected":!1,"aria-expanded":n,"aria-label":r,className:Ue(UE,"opacity-60"),children:[C.jsx(zE,{depth:e}),S,w,C.jsx("span",{className:"min-w-0 flex-1 truncate",children:t})]}),f,c&&C.jsx(jE,{depth:e})]}):C.jsxs("div",{className:"relative flex items-center",children:[C.jsxs("button",{ref:y,type:"button",role:"treeitem","aria-level":e+1,"aria-selected":a,"aria-expanded":n,"aria-current":i?"true":void 0,"aria-label":r,tabIndex:h,onClick:m,onFocus:g,className:Ue(UE,"hover:bg-surface-raised active:bg-surface-sunken",i&&"text-fg-muted"),children:[C.jsx(zE,{depth:e}),S,w,C.jsx("span",{className:"min-w-0 flex-1 truncate",children:t}),i&&u&&C.jsx("span",{className:"shrink-0 text-xs text-fg-muted",children:u}),a&&C.jsx(rv,{className:"size-4 shrink-0 text-accent","aria-hidden":"true"})]}),f,c&&C.jsx(jE,{depth:e})]})},jO=({label:t,ariaLabel:e,depth:n=0,prominence:r="prominent",separated:a=!1,onOpen:s})=>C.jsxs("div",{className:Ue("relative",r==="prominent"&&"p-2"),children:[C.jsxs("button",{type:"button",onClick:s,"aria-label":e,"data-prominence":r,className:Ue(UE,"w-full active:bg-surface-sunken",r==="prominent"?"rounded-lg border border-line-strong border-dashed font-medium text-fg-muted hover:border-accent-2 hover:text-accent-2":"text-fg-subtle hover:bg-surface-raised hover:text-fg-muted"),children:[C.jsx(zE,{depth:n}),C.jsx("span",{"aria-hidden":"true",className:"size-4 shrink-0"}),C.jsx(MJ,{className:"size-4 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"min-w-0 flex-1 truncate",children:t})]}),a&&C.jsx(jE,{depth:n})]}),TU={nameLabel:"Folder name",namePlaceholder:"Hotels",insideLabel:"Inside",create:"Create folder",cancel:"Cancel",createPending:"Creating folder…"},Nne=({parentLabel:t,name:e,onNameChange:n,onSubmit:r,onCancel:a,pending:s=!1,error:i,labels:u})=>{const c={...TU,...u},f=_.useId(),h=_.useRef(null),m=_.useRef(null);return _.useEffect(()=>{h.current?.focus({preventScroll:!0}),m.current?.scrollIntoView({block:"nearest"})},[]),C.jsxs("div",{ref:m,className:"space-y-3 border-y border-line bg-surface-sunken px-3 py-3",children:[C.jsxs("div",{children:[C.jsx(J_,{htmlFor:f,children:c.nameLabel}),C.jsx(ts,{id:f,ref:h,value:e,placeholder:c.namePlaceholder,onChange:g=>n(g.target.value),onKeyDown:g=>{g.key==="Enter"&&(g.preventDefault(),r()),g.key==="Escape"&&(g.preventDefault(),a())}})]}),C.jsxs("p",{className:"text-xs text-fg-muted",children:[c.insideLabel," ",C.jsx("span",{className:"font-medium text-fg",children:t})]}),i&&C.jsx("p",{className:"text-xs text-danger",role:"alert",children:i}),C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx(on,{variant:"ghost",size:"md",onClick:a,className:"min-h-11 shrink-0",children:c.cancel}),C.jsx(on,{variant:"secondary",size:"md",onClick:r,disabled:s,className:"min-h-11 shrink-0",children:s?c.createPending:c.create})]})]})},Mne={...TU,filterPlaceholder:"Filter folders…",filterAriaLabel:"Filter folders",treeAriaLabel:"Destination folders",currentSuffix:"(current folder)",currentTag:"current",contextSuffix:"(containing folder)",emptyMessage:t=>`No folders match "${t}"`,noFolders:"No folders to show",optionLabel:t=>`Move to ${t}`,newFolder:"New folder",newSubfolder:t=>`New folder inside ${t}`,topLevel:"Top level",nameRequired:"Give the folder a name.",createError:"Couldn't create that folder. Please try again."},RU=({folders:t,selectedId:e,onSelect:n,rowActions:r,onCreateFolder:a,onCancel:s,delimiter:i="/",labels:u})=>{const c={...Mne,...u},[f,h]=_.useState(""),[m,g]=_.useState(()=>{const V=t.find(ue=>ue.id===e);return new Set(V?Lh(V.path,i):[])}),[y,S]=_.useState(null),[w,x]=_.useState(""),[E,k]=_.useState(),[A,R]=_.useState(!1),[N,O]=_.useState(-1),I=_.useRef([]),P=_.useRef(!1),U=_.useRef(null);_.useEffect(()=>()=>U.current?.abort(),[]);const H=f.trim().toLowerCase(),z=_.useMemo(()=>Cne(t,i),[t,i]),j=_.useMemo(()=>{const V=Ene(z,H,i);return V.size===0?m:new Set([...m,...V])},[z,m,H,i]),$=_.useMemo(()=>H?_ne(z,H,i,j):kne(z,j,i),[z,H,i,j]),Z=_.useMemo(()=>a?Ane($,i):void 0,[$,i,a]);_.useEffect(()=>{O(V=>Es($[V])?V:FS($))},[$]),_.useEffect(()=>{P.current&&(P.current=!1,!(N<0)&&I.current[N]?.focus())},[N]);const J=_.useCallback((V,ue)=>{g(oe=>{if(ue)return new Set([...Lh(V,i),V]);const ce=new Set(oe);return ce.delete(V),ce})},[i]),q=_.useCallback(V=>{jS(V)&&n?.(V.folder.id),J(V.folder.path,!V.expanded)},[n,J]),X=_.useCallback(()=>{U.current?.abort(),S(null),x(""),k(void 0),R(!1)},[]),ae=_.useCallback(V=>{U.current?.abort(),S({anchorId:V?.id??null,parentPath:V?.path??"",parentLabel:V?.label??c.topLevel}),x(""),k(void 0),R(!1)},[c.topLevel]),he=_.useCallback(()=>{if(!a||!y||A)return;const V=w.trim();if(V===""){k(c.nameRequired);return}R(!0),k(void 0),U.current?.abort();const ue=new AbortController;U.current=ue;const oe=y.parentPath;a(V,oe,ue.signal).then(ce=>{R(!1),S(null),x(""),oe&&J(oe,!0),n?.(ce.id)}).catch(ce=>{xne(ce)||(k(ce instanceof Error?ce.message:c.createError),R(!1))})},[a,y,A,w,n,J,c.nameRequired,c.createError]),xe=_.useCallback(V=>{const ue=V.target;if(!(ue instanceof Element)||!ue.closest('[role="treeitem"]'))return;const oe=be=>{V.preventDefault(),P.current=!0,O(be)},ce=$[N];switch(V.key){case"ArrowDown":return oe(zO($,N,1));case"ArrowUp":return oe(zO($,N,-1));case"Home":return oe(FS($));case"End":return oe(Tne($));case"ArrowRight":{if(!Es(ce)||!ce)return;if(V.preventDefault(),!ce.expanded){J(ce.folder.path,!0);return}const be=N+1;Es($[be])&&oe(be);return}case"ArrowLeft":{if(!Es(ce)||!ce)return;if(V.preventDefault(),ce.expanded){J(ce.folder.path,!1);return}const be=Rne($,N,i);be>=0&&oe(be);return}case"Enter":case" ":{if(!Es(ce)||!ce)return;V.preventDefault(),q(ce);return}case"Escape":V.preventDefault(),s?.();return;default:return}},[$,N,i,q,J,s]),D=y!==null&&y.anchorId!==null&&(Z?.some(V=>V.kind==="create"&&V.parent.id===y.anchorId)??!1),Y=y&&C.jsx(Nne,{parentLabel:y.parentLabel,name:w,onNameChange:V=>{x(V),k(void 0)},onSubmit:he,onCancel:X,pending:A,error:E,labels:c}),G=V=>V.context?`${V.folder.label} ${c.contextSuffix}`:jS(V)?c.optionLabel(V.folder.label):`${V.folder.label} ${c.currentSuffix}`,Q=(V,ue,oe)=>{const{folder:ce,depth:be}=V,Ge=jS(V);return C.jsx(One,{ref:Ce=>{I.current[ue]=Ce},label:ce.label,depth:be,expanded:V.expanded,context:V.context,current:ce.isCurrent,currentTag:c.currentTag,selected:Ge&&ce.id===e,separated:oe,actions:r?.(ce),ariaLabel:G(V),tabIndex:ue===N?0:-1,onActivate:()=>q(V),onFocus:()=>O(ue)})};return C.jsxs("div",{className:"flex min-h-0 w-full min-w-0 flex-col",children:[C.jsx(ts,{variant:"inline",className:"border-b border-line px-3 py-2",icon:C.jsx(jJ,{className:"size-4","aria-hidden":"true"}),type:"search",value:f,onChange:V=>h(V.target.value),onKeyDown:V=>{if(V.key==="Escape"){V.preventDefault(),s?.();return}if(V.key!=="ArrowDown")return;V.preventDefault();const ue=Es($[N])?N:FS($);ue<0||(P.current=!0,O(ue),I.current[ue]?.focus())},placeholder:c.filterPlaceholder,"aria-label":c.filterAriaLabel}),a&&C.jsx("div",{className:"shrink-0 border-b border-line","data-create-anchor":"top",children:y&&!D?Y:C.jsx(jO,{label:c.newFolder,ariaLabel:c.newFolder,prominence:"prominent",onOpen:()=>ae(null)})}),$.length===0?C.jsx("p",{className:"px-3 py-3 text-sm text-fg-muted","aria-live":"polite",children:t.length===0?c.noFolders:c.emptyMessage(f)}):C.jsx("div",{role:"tree","aria-label":c.treeAriaLabel,className:"min-h-0 flex-1 overflow-y-auto overflow-x-hidden pb-24",onKeyDown:xe,children:(Z??$.map((V,ue)=>({kind:"folder",row:V,index:ue}))).map((V,ue,oe)=>{const ce=ue<oe.length-1;return V.kind==="create"?C.jsx("div",{role:"none","data-create-anchor":V.parent.id,children:y?.anchorId===V.parent.id?Y:C.jsx(jO,{label:c.newFolder,ariaLabel:c.newSubfolder(V.parent.label),depth:V.depth,prominence:"quiet",separated:ce,onOpen:()=>ae(V.parent)})},`new:${V.parent.id}`):C.jsx("div",{role:"none",children:Q(V.row,V.index,ce)},V.row.folder.id)})})]})},Pne={sm:"min-h-9 px-3 text-xs",md:"min-h-11 px-4 text-sm"};function d0({name:t,options:e,value:n,onChange:r,size:a="md","aria-label":s}){const i=e.findIndex(u=>u.value===n);return C.jsx("div",{role:"radiogroup","aria-label":s,className:"inline-flex rounded-md border border-line bg-surface-sunken p-0.5",children:e.map((u,c)=>{const f=u.value===n,h=!f&&c<e.length-1&&i!==c+1;return C.jsxs("label",{className:Ue("relative flex cursor-pointer items-center justify-center rounded-[5px] font-medium transition-colors",Pne[a],f?"bg-surface text-fg shadow":"text-fg-muted hover:text-fg",h&&"after:pointer-events-none after:absolute after:right-0 after:top-1/4 after:h-1/2 after:w-px after:bg-line"),children:[C.jsx("input",{type:"radio",name:t,value:u.value,checked:f,onChange:()=>r(u.value),className:"sr-only"}),u.label]},u.value)})})}const Dne=[{value:"all",label:H0("all")},{value:"any",label:H0("any")}],Lne=[{value:"similar",label:DE("similar")},{value:"properties",label:DE("properties")}],FO=[{value:"once",label:"Just once"},{value:"standing",label:"Keep doing this"},{value:"until",label:"Until a date"}],BO="__filter_create_label__";function Une({folders:t,value:e,delimiter:n="/",onChangeMove:r,onCreateFolder:a}){const[s,i]=_.useState(!1),[u,c]=_.useState(),[f,h]=_.useState([]),m=_.useMemo(()=>{const E=new Set(t.map(k=>k.id));return[...t,...f.filter(k=>!E.has(k.id))]},[t,f]),g=_.useMemo(()=>{if(a)return async(E,k,A)=>{const R=await a(E,k,A);return h(N=>N.some(O=>O.id===R.id)?N:[...N,R]),R}},[a]),y=m.find(E=>E.id===e),S=m.find(E=>E.id===u),w=E=>{const k=E.path.split(n);return k.map((A,R)=>{const N=k.slice(0,R+1).join(n);return m.find(O=>O.path===N)?.label??A}).join(" / ")},x=()=>{i(!1),c(void 0)};return s?C.jsxs("div",{className:"space-y-2",children:[C.jsx("div",{className:"flex h-72 min-h-0 overflow-hidden rounded-md border border-line bg-surface",children:C.jsx(RU,{folders:m,selectedId:u,delimiter:n,onSelect:c,onCreateFolder:g,onCancel:x,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})}),S?C.jsx(on,{variant:"primary",onClick:()=>{r?.(S.id),x()},className:"w-full",children:C.jsx("span",{className:"truncate",children:`Move matches to ${w(S)}`})}):C.jsx("p",{className:"text-2xs text-fg-subtle",children:"Tap a folder to open it, or make a new one where you want it."}),C.jsx(on,{variant:"ghost",size:"sm",onClick:x,className:"w-full",children:"Cancel"})]}):C.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken p-3",children:[C.jsx("p",{className:"text-sm font-medium text-fg",children:y?w(y):"No folder yet"}),C.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>{c(e),i(!0)},children:"Choose a folder"}),y&&C.jsx(on,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>r?.(""),children:"Don't move matches"})]})]})}function zne({labels:t,value:e,onChangeLabel:n,onCreateLabel:r}){const[a,s]=_.useState(!1),[i,u]=_.useState(""),[c,f]=_.useState(!1),[h,m]=_.useState(),[g,y]=_.useState([]),S=_.useMemo(()=>{const A=new Set(t.map(R=>R.id));return[...t,...g.filter(R=>!A.has(R.id))]},[t,g]),w=S.find(A=>A.id===e),x=A=>{if(A===BO){m(void 0),s(!0);return}n?.(A)},E=()=>{if(!r)return;const A=i.trim();A!==""&&(f(!0),m(void 0),r(A).then(R=>{y(N=>N.some(O=>O.id===R.id)?N:[...N,R]),n?.(R.id),s(!1),u(""),f(!1)}).catch(R=>{m(R instanceof Error?R.message:"Couldn't create that label. Please try again."),f(!1)}))},k=()=>{s(!1),u(""),m(void 0)};return C.jsxs("div",{className:"space-y-2",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsxs(xU,{"aria-label":"Label to apply",value:e,onChange:A=>x(A.target.value),className:"flex-1",children:[C.jsx("option",{value:"",children:"No label"}),S.map(A=>C.jsx("option",{value:A.id,children:A.name},A.id)),r&&C.jsx("option",{value:BO,children:"+ New label…"})]}),w&&C.jsx(gte,{label:{...w,labelId:w.id}})]}),a&&C.jsxs("div",{className:"space-y-2 rounded-md border border-line bg-surface-sunken p-2",children:[C.jsx(ts,{value:i,onChange:A=>u(A.target.value),placeholder:"Label name","aria-label":"New label name",disabled:c,autoFocus:!0,onKeyDown:A=>{A.key==="Enter"&&(A.preventDefault(),E()),A.key==="Escape"&&(A.preventDefault(),k())}}),h&&C.jsx("p",{className:"text-2xs text-danger",role:"alert",children:h}),C.jsxs("div",{className:"flex gap-2",children:[C.jsx(on,{variant:"primary",size:"sm",onClick:E,disabled:c||i.trim()==="",children:c?"Creating…":"Create label"}),C.jsx(on,{variant:"ghost",size:"sm",onClick:k,disabled:c,children:"Cancel"})]})]})]})}function ERe({rule:t,folders:e,delimiter:n,labels:r=[],preview:a,notice:s,semanticAvailable:i=!1,matchMode:u,onChangeMatchMode:c,clauseFields:f,anchorLocked:h=!1,clauseSuggestions:m,clauseEdit:g,onStartAddClause:y,onStartEditClause:S,onRemoveClause:w,onChangeDraftField:x,onChangeDraftValue:E,onSubmitClause:k,onCancelClause:A,onAddWiden:R,onRemoveWiden:N,onChangeMatchOperator:O,onChangeMove:I,onCreateFolder:P,onChangeLabel:U,onCreateLabel:H,onChangeScope:z,onChangeName:j,onChangeUntil:$,onCommit:Z,onCancel:J}){const q=t.widen&&!t.widen.inactive?1:0,ae=t.clauses.length+q>=2,he=ek(t.matchOperator),xe=vne(t,a),D=t.scope==="standing"||t.scope==="until",Y=h?FO.filter(G=>G.value!=="once"):FO;return C.jsxs("div",{className:"flex min-h-0 flex-col",children:[C.jsxs("div",{className:"border-b border-line px-5 py-3",children:[C.jsx("h2",{className:"text-sm font-semibold text-fg",children:"Filter rule"}),C.jsx("p",{className:"mt-0.5 text-xs text-fg-muted",children:"These chips are the whole rule — what you see is what applies."})]}),C.jsxs("div",{className:"min-h-0 flex-1 space-y-5 overflow-y-auto px-5 py-4",children:[s,u&&C.jsxs("section",{className:"space-y-1.5",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Match on"}),C.jsx(d0,{name:"rule-match-mode",size:"sm","aria-label":"What the rule matches on",options:Lne,value:u,onChange:G=>c?.(G)}),C.jsx("p",{className:"text-2xs text-fg-subtle",children:vU(u)})]}),C.jsxs("section",{className:"space-y-3",children:[C.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[t.clauses.map((G,Q)=>C.jsxs(_.Fragment,{children:[Q>0&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:he}),C.jsx(CU,{clause:G,onEdit:()=>S?.(G.id),onRemove:()=>w?.(G.id)})]},G.id)),t.widen&&C.jsxs(C.Fragment,{children:[t.clauses.length>0&&!t.widen.inactive&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:he}),C.jsx(Sne,{widen:t.widen,onRemove:h?void 0:N})]}),!g&&C.jsx(LE,{label:"Add clause",onClick:y}),!t.widen&&!h&&i&&u!=="properties"&&!g&&C.jsx(LE,{label:"…and similar",onClick:R})]}),g&&C.jsx(EU,{draft:g.draft,mode:g.mode,fields:f,suggestions:m,onChangeField:x,onChangeValue:E,onSubmit:k,onCancel:A}),h&&t.widen&&C.jsx("p",{className:"text-2xs text-fg-subtle",children:"This filter's similar-mail match is fixed to the message it was created from — create a new filter to change it."}),ae&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),C.jsx(d0,{name:"match-operator",size:"sm","aria-label":"Match operator",options:Dne,value:t.matchOperator,onChange:G=>O?.(G)})]})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Move matches to"}),C.jsx(Une,{folders:e,value:t.moveMailboxId,delimiter:n,onChangeMove:I,onCreateFolder:P})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Apply a label"}),C.jsx(zne,{labels:r,value:t.labelId??"",onChangeLabel:U,onCreateLabel:H})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"How long"}),C.jsx(d0,{name:"rule-scope",size:"sm","aria-label":"Rule scope",options:Y,value:t.scope,onChange:G=>z?.(G)}),D&&C.jsx(ts,{value:t.name??"",onChange:G=>j?.(G.target.value),placeholder:"Name this rule (e.g. Receipts)","aria-label":"Rule name",className:"w-full"}),t.scope==="until"&&C.jsxs("div",{className:"flex items-center gap-2 text-xs text-fg-muted",children:[C.jsx("span",{children:"Until"}),C.jsx(ts,{type:"date",value:t.until??"",onChange:G=>$?.(G.target.value),"aria-label":"Expiry date",className:"flex-1"})]})]}),C.jsx("div",{className:"border-t border-line pt-3",children:C.jsx(wne,{preview:a})})]}),C.jsxs("div",{className:"space-y-2 border-t border-line px-5 py-3",children:[xe&&C.jsx("p",{className:"text-xs text-fg-subtle",role:"status",children:xe}),C.jsx(on,{variant:"primary",onClick:Z,disabled:xe!==void 0,className:"w-full",children:SU(t.scope)}),C.jsx(on,{variant:"ghost",onClick:J,className:"w-full",children:"Not now"})]})]})}const jne={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Spam",trash:"Trash",flagged:"Starred",all:"All Mail"};function Fne(t){return jne[t]}function Bne(t){const e=t.split("/");return e[e.length-1]||t}const $ne=new Set(["all","flagged"]);function Hne(t){return $ne.has(t)}const qne=new Set(["[Gmail]","[Google Mail]"]);function Wne(t){if(t.role)return Hne(t.role)?void 0:Fne(t.role);if(t.providerPath&&!qne.has(t.providerPath.split("/")[0]))return Bne(t.providerPath)}function _Re(t){return t==="inbox"?C.jsx(TL,{className:"size-4"}):t==="drafts"?C.jsx(IJ,{className:"size-4"}):t==="sent"?C.jsx(FJ,{className:"size-4"}):t==="archive"?C.jsx(EJ,{className:"size-4"}):t==="junk"?C.jsx(V_,{className:"size-4"}):t==="trash"?C.jsx(HJ,{className:"size-4"}):t==="flagged"?C.jsx(BJ,{className:"size-4"}):C.jsx(LJ,{className:"size-4"})}const IU={filter:"border-line bg-surface-sunken text-fg-muted",scope:"border-accent-2/40 bg-accent-2-soft text-accent-2"},Vne=({label:t,onRemove:e,tone:n="filter",className:r})=>C.jsxs("span",{className:Ue("inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-2xs",IU[n],r),children:[C.jsx("span",{children:t}),C.jsx("button",{type:"button",onClick:e,className:"shrink-0 rounded-full p-0.5 hover:bg-fg-muted/20 transition-colors","aria-label":`Remove filter: ${t}`,children:C.jsx(Ms,{className:"size-3"})})]}),Gne=_.forwardRef(({label:t,onRemove:e,onActivate:n,tone:r="filter",focused:a=!1,onKeyDown:s,onFocusLabel:i,className:u},c)=>C.jsxs("span",{role:"row",tabIndex:-1,className:Ue("inline-flex max-w-48 items-center gap-1 rounded-full border px-2 py-0.5 text-2xs transition-colors",IU[r],a&&"ring-2 ring-ring",u),children:[C.jsx("button",{ref:c,type:"button",role:"gridcell",tabIndex:a?0:-1,onClick:n,onFocus:i,onKeyDown:s,className:Ue("block min-w-0 max-w-full truncate rounded-full outline-none",n?"cursor-pointer":"cursor-default"),children:t}),C.jsx("button",{type:"button",role:"gridcell",tabIndex:-1,onClick:e,className:"block shrink-0 rounded-full p-0.5 transition-colors hover:bg-fg-muted/20","aria-label":`Remove filter: ${t}`,children:C.jsx(Ms,{className:"size-3"})})]}));Gne.displayName="SearchChipRow";const kRe=({tokens:t,className:e})=>t.length===0?null:C.jsx("div",{className:Ue("flex flex-wrap items-center gap-1.5 border-b border-line bg-surface px-row-inset py-1.5",e),children:t.map(n=>C.jsx(Vne,{label:n.label,onRemove:n.onRemove},n.label))});function Kne(t){const[e,n]=_.useState(!1),r=e?TJ:RJ,a=e?"Hide password":"Show password";return C.jsx(ts,{...t,type:e?"text":"password",trailing:C.jsx("button",{type:"button","aria-label":a,"aria-pressed":e,title:a,onClick:()=>n(s=>!s),className:"-my-1 -mr-2 flex size-11 shrink-0 cursor-pointer items-center justify-center rounded-md text-fg-subtle transition-colors hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:C.jsx(r,{className:"size-4","aria-hidden":!0})})})}const Yne={info:"bg-accent-2",success:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function Zne({value:t,max:e,tone:n="info",indeterminate:r=!1,className:a}){const s=r?100:e<=0?0:Math.min(100,Math.max(0,t/e*100));return C.jsx("div",{role:"progressbar","aria-valuenow":r?void 0:t,"aria-valuemin":r?void 0:0,"aria-valuemax":r?void 0:e,className:Ue("h-1.5 w-full overflow-hidden rounded-full bg-surface-sunken",a),children:C.jsx("div",{className:Ue("h-full rounded-full transition-[width] duration-300 ease-out",Yne[n],r&&"w-1/3 animate-pulse"),style:r?void 0:{width:`${s}%`}})})}var Uh;(function(t){t[t.UP=-1]="UP",t[t.DOWN=1]="DOWN"})(Uh||(Uh={}));function Xne(t){var e=getComputedStyle(t).overflowY;return t===document.scrollingElement&&e==="visible"?!0:!(e!=="scroll"&&e!=="auto")}function Qne(t,e){if(!Xne(t))return!1;if(e===Uh.DOWN){var n=t.scrollTop+t.clientHeight;return n<t.scrollHeight}if(e===Uh.UP)return t.scrollTop>0;throw new Error("unsupported direction")}function OU(t,e){return Qne(t,e)?!0:t.parentElement==null?!1:OU(t.parentElement,e)}function NU(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(!t||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n==="top"&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}var Jne=`.lds-ellipsis {
14
+ `+dr),Rr&&(dr=al(dr)),O&&xu?j(dr):dr},e.setConfig=function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pd(me),bn=!0,Ir=Ce,ss=Ee},e.clearConfig=function(){Xr=null,bn=!1,Ir=null,ss=null,O=P,I=""},e.isValidAttribute=function(me,L,ee){Xr||Pd({});const pe=rt(me),Ae=rt(L);return jd(pe,Ae,ee)},e.addHook=function(me,L){typeof L=="function"&&qn(D,me)&&ic(D[me],L)},e.removeHook=function(me,L){if(qn(D,me)){if(L!==void 0){const ee=_te(D[me],L);return ee===-1?void 0:kte(D[me],ee,1)[0]}return CO(D[me])}},e.removeHooks=function(me){qn(D,me)&&(D[me]=[])},e.removeAllHooks=function(){D=DO()},e}var gRe=dU();function fU({children:t,className:e}){return C.jsx("div",{"data-auth-page":!0,className:Ue("flex min-h-dvh w-full flex-col items-center justify-center overflow-y-auto bg-surface-sunken pb-[max(2rem,env(safe-area-inset-bottom,0px))] pl-[max(1rem,env(safe-area-inset-left,0px))] pr-[max(1rem,env(safe-area-inset-right,0px))] pt-[max(2rem,env(safe-area-inset-top,0px))] text-fg",e),style:{backgroundImage:"radial-gradient(at 20% 0%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%), radial-gradient(at 80% 100%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%)"},children:C.jsx("div",{className:"w-full max-w-[26rem]",children:t})})}const Yte="Secure sign-in powered by AWS Cognito";function hU(t){const e=t?.note??"Secure sign-in";return C.jsx("div",{className:"text-center pt-5",children:C.jsx("p",{className:"text-xs text-fg-muted",children:e})})}const Zte=()=>C.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"text-accent",children:[C.jsx("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),C.jsx("path",{d:"M3 7l9 6 9-6"})]});function pU({wordmark:t="remit,",tagline:e="your email client in the cloud.",mark:n=C.jsx(Zte,{})}){return C.jsxs("div",{className:"text-center pb-6",children:[C.jsx("div",{className:"flex items-center justify-center pb-3",children:n}),C.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-[-0.01em] text-fg",children:t}),C.jsx("p",{className:"mt-1 text-sm text-fg-muted",children:e})]})}const Xte={info:"bg-accent-2/15 text-accent-2 border-accent-2/40",success:"bg-positive/15 text-positive border-positive/40",warning:"bg-warning/15 text-warning border-warning/40",danger:"bg-danger/15 text-danger border-danger/40"},Qte={info:"bg-surface-sunken text-fg-muted",success:"bg-positive/10 text-positive",warning:"bg-warning/10 text-warning",danger:"bg-danger-soft text-danger"},Jte={info:"status",success:"status",warning:"alert",danger:"alert"};function PE({tone:t="info",variant:e="framed",onDismiss:n,role:r,className:a,children:s,...i}){const u=e==="soft";return C.jsxs("div",{role:r??Jte[t],className:Ue("flex gap-2 px-3 py-2 text-sm",u?Ue("items-start rounded-md",Qte[t]):Ue("items-center border",Xte[t]),a),...i,children:[C.jsx("div",{className:"flex-1 min-w-0",children:s}),n&&(u?C.jsx(on,{variant:"ghost",size:"sm",icon:C.jsx(Ms,{className:"size-3.5"}),onClick:n,"aria-label":"Dismiss",className:"-mr-1 shrink-0"}):C.jsx("button",{type:"button",onClick:n,"aria-label":"Dismiss",className:"shrink-0 rounded-md p-1 hover:bg-fg/10 transition-colors",children:C.jsx(Ms,{className:"size-4","aria-hidden":"true"})}))]})}function ene({id:t,reason:e,nudged:n,className:r}){return C.jsxs(C.Fragment,{children:[C.jsx("p",{id:t,className:Ue(r,!n&&"sr-only"),children:e}),C.jsx("span",{role:"status","aria-live":"polite",className:"sr-only",children:n?e:""})]})}const LO={type:"none"};function tne(t){if(!t.open||t.count<=0)return LO;if(t.key==="ArrowDown"){const n=t.activeIndex+1;return{type:"move",index:n>=t.count?0:n}}if(t.key==="ArrowUp"){const n=t.activeIndex-1;return{type:"move",index:n<0?t.count-1:n}}return t.key==="Escape"?{type:"dismiss"}:(t.key==="Enter"||(t.acceptKeys??[]).includes(t.key))&&t.activeIndex>=0&&t.activeIndex<t.count?{type:"accept",index:t.activeIndex}:LO}function nne({count:t,onAccept:e,acceptKeys:n}){const[r,a]=_.useState(!1),[s,i]=_.useState(-1),u=_.useId().replace(/[^a-zA-Z0-9_-]/g,""),c=`suggest-${u}`,f=_.useCallback(g=>`suggest-${u}-option-${g}`,[u]);_.useEffect(()=>{i(-1),a(!1)},[t]);const h=t>0&&!r,m=_.useCallback(g=>{const y=tne({key:g.key,open:h,count:t,activeIndex:s,acceptKeys:n});return y.type==="none"?!1:(g.preventDefault(),y.type==="move"&&i(y.index),y.type==="dismiss"&&a(!0),y.type==="accept"&&e(y.index),!0)},[h,t,s,n,e]);return{open:h,activeIndex:s,setActiveIndex:i,dismiss:_.useCallback(()=>a(!0),[]),reopen:_.useCallback(()=>a(!1),[]),handleKeyDown:m,listId:c,optionId:f,comboboxProps:{role:"combobox","aria-expanded":h,"aria-controls":c,"aria-autocomplete":"list",...s>=0?{"aria-activedescendant":f(s)}:{},...h?{"data-escape-owner":""}:{}}}}function rne({id:t,suggestions:e,activeIndex:n,optionId:r,onPick:a,onHighlight:s,label:i,className:u}){return e.length===0?null:C.jsx("div",{id:t,role:"listbox","aria-label":i,className:Ue("max-h-44 overflow-y-auto rounded-md border border-line bg-surface py-1 shadow-sm",u),children:e.map((c,f)=>C.jsxs("div",{id:r(f),role:"option",tabIndex:-1,"aria-selected":f===n,className:Ue("flex cursor-pointer items-baseline gap-2 px-3 py-2 text-sm text-fg",f===n&&"bg-accent-2-soft"),onMouseDown:h=>{h.preventDefault(),a(c)},onMouseEnter:()=>s(f),children:[C.jsx("span",{className:"min-w-0 flex-1 truncate",children:c.label??c.value}),c.hint&&C.jsx("span",{className:"shrink-0 truncate text-2xs text-fg-subtle",children:c.hint}),c.source&&C.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:c.source})]},c.value))})}const ane=[{tag:"ar",detectionCode:"arb"},{tag:"az",detectionCode:"azj"},{tag:"be",detectionCode:"bel"},{tag:"bg",detectionCode:"bul"},{tag:"bs",detectionCode:"bos"},{tag:"cs",detectionCode:"ces"},{tag:"de",detectionCode:"deu"},{tag:"en",detectionCode:"eng"},{tag:"es",detectionCode:"spa"},{tag:"fa",detectionCode:"pes"},{tag:"fr",detectionCode:"fra"},{tag:"ha",detectionCode:"hau"},{tag:"hi",detectionCode:"hin"},{tag:"hr",detectionCode:"hrv"},{tag:"hu",detectionCode:"hun"},{tag:"id",detectionCode:"ind"},{tag:"ig",detectionCode:"ibo"},{tag:"it",detectionCode:"ita"},{tag:"jv",detectionCode:"jav"},{tag:"kk",detectionCode:"kaz"},{tag:"mr",detectionCode:"mar"},{tag:"ms",detectionCode:"zlm"},{tag:"ne",detectionCode:"npi"},{tag:"nl",detectionCode:"nld"},{tag:"pl",detectionCode:"pol"},{tag:"ps",detectionCode:"pbu"},{tag:"pt",detectionCode:"por"},{tag:"ro",detectionCode:"ron"},{tag:"ru",detectionCode:"rus"},{tag:"so",detectionCode:"som"},{tag:"sr",detectionCode:"srp"},{tag:"su",detectionCode:"sun"},{tag:"sv",detectionCode:"swe"},{tag:"sw",detectionCode:"swh"},{tag:"tl",detectionCode:"tgl"},{tag:"tr",detectionCode:"tur"},{tag:"uk",detectionCode:"ukr"},{tag:"ur",detectionCode:"urd"},{tag:"vi",detectionCode:"vie"},{tag:"yo",detectionCode:"yor"},{tag:"zu",detectionCode:"zul"}],Q_=t=>(t.split("-")[0]??"").toLowerCase(),sne=new Map(ane.map(t=>[t.tag,t])),one=t=>sne.get(Q_(t))?.detectionCode??null,ine=/^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i,vRe=t=>Q_(t).toUpperCase(),yRe=t=>{if(!ine.test(t))return t;const n=new Intl.DisplayNames([t],{type:"language",fallback:"none"}).of(t);return n?n.charAt(0).toLocaleUpperCase(t)+n.slice(1):t},bRe=t=>{const n=t.filter(a=>one(a)!==null).map(Q_),r=[...new Set(n)];return r.includes("en")||r.push("en"),r},SRe=t=>/iPhone|iPad|iPod/.test(t)?"On iPhone and iPad the keyboard decides this. Add the language under Settings, then General, then Keyboard.":/Edg\//.test(t)?"Edge checks every language you add under Settings, then Languages. Adding one there checks it alongside the others.":/Firefox\//.test(t)?"Firefox uses this setting. Right-click the message to add a dictionary for it.":/Chrome\/|Chromium\//.test(t)?"Chrome checks every language you add under Settings, then Languages. Adding one there checks it alongside the others.":/Safari\//.test(t)?"macOS decides this under Keyboard, then Text Input, then Spelling. Automatic by Language covers every language enabled there.":"Your browser decides which dictionaries it checks. Add this language in its own language settings to have it spellchecked.",mU=t=>new DOMParser().parseFromString(t,"text/html"),gU=t=>{const e=[...t.children];if(e.length!==1)return null;const n=e[0];return n?[...t.childNodes].some(a=>a!==n&&(a.textContent??"").trim()!=="")?null:n:null},wRe=(t,e)=>{if(t==="")return"";const n=mU(t),r=gU(n.body);if(r?.tagName==="DIV"&&r.hasAttribute("lang"))return r.setAttribute("lang",e),n.body.innerHTML;const a=n.createElement("div");for(a.setAttribute("lang",e);n.body.firstChild;)a.append(n.body.firstChild);return n.body.append(a),n.body.innerHTML},xRe=t=>{if(t==="")return{html:t,language:null};const e=mU(t),n=gU(e.body);return n?.tagName!=="DIV"||!n.hasAttribute("lang")?{html:t,language:null}:{html:n.innerHTML,language:n.getAttribute("lang")}};function J_({className:t,children:e,...n}){return C.jsx("label",{className:Ue("mb-1 block text-xs font-medium text-fg-muted",t),...n,children:e})}const lne={similar:"Anything similar",properties:"Its properties"};function DE(t){return lne[t]}const une={similar:"Reads the messages you picked and finds more that read like them.",properties:"Matches on what the messages say about themselves — sender, subject, list. No reading involved."};function vU(t){return une[t]}const cne={From:"From",Subject:"Subject",HasWords:"Has the words",ListId:"List",FromDomain:"Domain"};function Bc(t){return cne[t]}const dne={ListId:"The mailing list's List-Id header, matched exactly. New mail is matched as it arrives — mail delivered before this was set up may not carry it yet.",FromDomain:"The sender's registrable domain — matches anyone at it, subdomains included (a look-alike like example.com.evil.test never matches)."};function fne(t){return dne[t]}function hne(t){return t==="HasWords"}function pne(t){return t.widen!==void 0&&!t.widen.inactive}function yU(t){return pne(t)?[]:t.clauses.filter(e=>hne(e.field))}const mne=["From","Subject","HasWords","ListId","FromDomain"];function $0(t){return`Similar to these ${t.anchorCount}`}const gne={all:"Match all",any:"Match any"};function H0(t){return gne[t]}function ek(t){return t==="all"?"and":"or"}function bU(t){if(t.status==="loading")return"Counting matches…";if(t.status==="error")return t.reason;if(t.count===0)return"No mail matches yet";const e=t.count===1?"message":"messages",n=`${t.count} ${e} match`;return t.stale?`${n} — recounting`:n}const vne={once:"Just once",standing:"Keep doing this",until:"Until a date"};function c0(t){return vne[t]}function SU(t){return t==="once"?"Apply now":t==="standing"?"Save rule":"Save until then"}const Aa={noMatch:"Add a clause so the rule has something to match.",bodyTextOnce:"Applying once can't read message bodies. Save this as a rule instead, or drop the “has the words” clause.",noAction:"Pick a folder to move into, or a label to apply.",unnamed:"Name this rule so you can find it later.",noUntilDate:"Pick the date this rule should stop on.",counting:"Counting matches — save once the count settles.",recounting:"Recounting matches — save once the count settles."},CRe="Can't count matches — “has the words” reads message bodies, which only a saved rule does.";function wU(t){if(t.status==="loading")return Aa.counting;if(t.status==="ready"&&t.stale)return Aa.recounting}function yne(t,e){return t.clauses.length>0||t.widen!==void 0&&!t.widen.inactive?t.scope==="once"&&yU(t).length>0?Aa.bodyTextOnce:!t.moveMailboxId&&!t.labelId?Aa.noAction:(t.scope==="standing"||t.scope==="until")&&(t.name??"").trim()===""?Aa.unnamed:t.scope==="until"&&!t.until?Aa.noUntilDate:wU(e):Aa.noMatch}const bne={default:Ue("flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken px-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors"),inline:"flex items-center gap-2 bg-transparent text-sm"};function ts({icon:t,className:e,variant:n="default",trailing:r,ref:a,...s}){return C.jsxs("div",{className:Ue(bne[n],e),children:[t&&C.jsx("span",{className:"text-fg-subtle shrink-0",children:t}),C.jsx("input",{ref:a,className:"min-w-0 flex-1 bg-transparent text-fg placeholder:text-fg-subtle outline-none",...s}),r]})}function xU({icon:t,className:e,children:n,...r}){return C.jsxs("div",{className:Ue("relative flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken pl-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors",e),children:[t&&C.jsx("span",{className:"shrink-0 text-fg-subtle",children:t}),C.jsx("select",{className:"min-w-0 flex-1 appearance-none bg-transparent py-0 pr-8 text-fg outline-none",...r,children:n}),C.jsx(kE,{className:"pointer-events-none absolute right-2.5 size-4 text-fg-subtle"})]})}const q0="inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs";function CU({clause:t,onEdit:e,onRemove:n}){return C.jsxs("span",{className:Ue(q0,t.derived?"border-dashed border-line-strong bg-surface-sunken":"border-line bg-surface"),children:[C.jsxs("button",{type:"button",onClick:e,"aria-label":`Edit ${Bc(t.field)} clause`,className:"flex items-center gap-1 text-left",children:[C.jsx("span",{className:"font-medium text-fg-muted",children:Bc(t.field)}),C.jsx("span",{className:"text-fg",children:t.value})]}),t.derived&&C.jsx("span",{className:"text-2xs text-fg-subtle",children:"from sender"}),n&&C.jsx("button",{type:"button",onClick:n,"aria-label":`Remove ${Bc(t.field)} clause`,className:"flex size-4 items-center justify-center rounded-full text-fg-subtle hover:bg-surface-sunken hover:text-fg-muted",children:C.jsx(Ms,{className:"size-3"})})]})}function UO({onRemove:t}){return C.jsx("button",{type:"button",onClick:t,"aria-label":"Remove the similar-mail widen",className:"flex size-4 items-center justify-center rounded-full hover:bg-fg-subtle/20",children:C.jsx(Ms,{className:"size-3"})})}function Sne({widen:t,onRemove:e}){return t.inactive?C.jsxs("span",{className:Ue(q0,"border-dashed border-line-strong bg-surface-sunken text-fg-subtle"),children:[C.jsx(AE,{className:"size-3 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"line-through",children:$0(t)}),C.jsx("span",{className:"text-2xs",children:"not available here"}),e&&C.jsx(UO,{onRemove:e})]}):C.jsxs("span",{className:Ue(q0,"border-accent-2 bg-accent-2-soft text-accent-2"),children:[C.jsx(AE,{className:"size-3 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"font-medium",children:"…and anything similar"}),C.jsx("span",{className:"text-2xs opacity-80",children:$0(t)}),e&&C.jsx(UO,{onRemove:e})]})}function LE({label:t,onClick:e}){return C.jsxs("button",{type:"button",onClick:e,className:Ue(q0,"border-dashed border-line-strong text-fg-muted hover:border-accent-2 hover:text-accent-2"),children:[C.jsx(zJ,{className:"size-3","aria-hidden":"true"}),t]})}function EU({draft:t,mode:e,fields:n=mne,suggestions:r=[],onChangeField:a,onChangeValue:s,onSubmit:i,onCancel:u}){const c=fne(t.field),f=nne({count:r.length,onAccept:h=>s?.(r[h].value)});return C.jsxs("div",{className:"space-y-1.5 rounded-lg border border-accent-2 bg-surface p-2",children:[C.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[C.jsx(xU,{"aria-label":"Clause field",value:t.field,onChange:h=>a?.(h.target.value),className:"h-8 w-32 shrink-0",children:n.map(h=>C.jsx("option",{value:h,children:Bc(h)},h))}),C.jsx(ts,{"aria-label":"Clause value",value:t.value,placeholder:"value…",autoComplete:"off",onChange:h=>{f.reopen(),s?.(h.target.value)},onKeyDown:h=>{f.handleKeyDown(h)||h.key==="Enter"&&i?.()},className:"h-8 min-w-40 flex-1",...f.comboboxProps}),C.jsx(on,{variant:"primary",size:"sm",onClick:i,disabled:t.value.trim()==="",className:"shrink-0",children:e==="add"?"Add":"Save"}),C.jsx(on,{variant:"ghost",size:"sm",onClick:u,"aria-label":"Cancel clause edit",icon:C.jsx(Ms,{className:"size-4"}),className:"shrink-0 px-2"})]}),f.open&&C.jsx(rne,{id:f.listId,suggestions:r,activeIndex:f.activeIndex,optionId:f.optionId,onPick:h=>{s?.(h.value),f.dismiss()},onHighlight:f.setActiveIndex,label:`${Bc(t.field)} suggestions`}),c&&C.jsx("p",{className:"px-0.5 text-2xs text-fg-subtle",children:c})]})}function wne({preview:t}){const e=bU(t);if(t.status==="loading")return C.jsxs("p",{className:"flex items-center gap-2 text-xs text-fg-muted","aria-live":"polite",children:[C.jsx(j0,{className:"size-3.5 animate-spin","aria-hidden":"true"}),e]});if(t.status==="error")return C.jsxs("p",{className:"flex items-center gap-2 text-xs text-danger",role:"alert",children:[C.jsx(Nh,{className:"size-3.5 shrink-0","aria-hidden":"true"}),e]});const n=t.count===0;return C.jsxs("p",{className:Ue("flex items-center gap-2 text-xs",t.stale?"text-fg-subtle":n?"text-fg-muted":"font-medium text-fg"),"aria-live":"polite",children:[t.stale&&C.jsx(j0,{className:"size-3.5 animate-spin","aria-hidden":"true"}),e]})}const xne=t=>typeof t=="object"&&t!==null&&"name"in t&&t.name==="AbortError",Dh=(t,e)=>{const n=t.lastIndexOf(e);return n===-1?"":t.slice(0,n)},_U=(t,e)=>t.split(e).length-1,Lh=(t,e)=>{const n=[];let r=Dh(t,e);for(;r;)n.push(r),r=Dh(r,e);return n},Cne=(t,e)=>{const n=new Set(t.map(i=>i.path)),r=new Set,a=[],s=i=>{if(!r.has(i.path)){r.add(i.path),a.push(i);for(const u of t)Dh(u.path,e)===i.path&&s(u)}};for(const i of t){const u=Dh(i.path,e);u&&n.has(u)||s(i)}return a},kU=(t,e)=>t.label.toLowerCase().includes(e)||t.path.toLowerCase().includes(e),Ene=(t,e,n)=>{const r=new Set;if(!e)return r;for(const a of t)if(kU(a,e))for(const s of Lh(a.path,n))r.add(s);return r},_ne=(t,e,n,r=new Set)=>{const a=(u,c)=>({folder:u,depth:_U(u.path,n),context:c,expanded:r.has(u.path)});if(!e)return t.map(u=>a(u,!1));const s=new Set;for(const u of t)kU(u,e)&&s.add(u.path);const i=new Set(s);for(const u of s)for(const c of Lh(u,n))i.add(c);return t.filter(u=>i.has(u.path)).map(u=>a(u,!s.has(u.path)))},kne=(t,e,n)=>{const r=new Set(t.map(a=>a.path));return t.filter(a=>Lh(a.path,n).every(s=>!r.has(s)||e.has(s))).map(a=>({folder:a,depth:_U(a.path,n),context:!1,expanded:e.has(a.path)}))},Ane=(t,e)=>{const n=[],r=[],a=s=>{for(;r.length>0;){const i=r[r.length-1];if(!i||s?.startsWith(`${i.folder.path}${e}`))break;r.pop(),n.push({kind:"create",parent:i.folder,depth:i.depth+1})}};return t.forEach((s,i)=>{a(s.folder.path),n.push({kind:"folder",row:s,index:i}),s.expanded&&r.push(s)}),a(null),n},Es=t=>t!==void 0&&!t.context,jS=t=>t!==void 0&&!t.folder.isCurrent&&!t.context,FS=t=>{for(let e=0;e<t.length;e+=1)if(Es(t[e]))return e;return-1},Tne=t=>{for(let e=t.length-1;e>=0;e-=1)if(Es(t[e]))return e;return-1},zO=(t,e,n)=>{const r=t.length;if(r<=0)return-1;const a=e<0?n===1?-1:r:e;for(let s=1;s<=r;s+=1){const i=((a+n*s)%r+r)%r;if(Es(t[i]))return i}return-1},Rne=(t,e,n)=>{const r=t[e];if(!r)return-1;const a=Dh(r.folder.path,n);if(!a)return-1;for(let s=e-1;s>=0;s-=1)if(t[s]?.folder.path===a)return Es(t[s])?s:-1;return-1},UE="flex min-h-11 min-w-0 flex-1 items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",AU=14,Ine=60,zE=({depth:t})=>t>0?C.jsx("span",{"aria-hidden":"true",className:"shrink-0",style:{width:t*AU}}):null,jE=({depth:t})=>C.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute right-0 bottom-0 h-px bg-line",style:{left:Ine+t*AU}}),One=({label:t,depth:e,expanded:n,ariaLabel:r,selected:a=!1,context:s=!1,current:i=!1,currentTag:u,separated:c=!1,actions:f,tabIndex:h,onActivate:m,onFocus:g,ref:y})=>{const S=C.jsx(kJ,{className:Ue("size-4 shrink-0 text-fg-subtle transition-transform",n&&"rotate-90"),"aria-hidden":"true"}),w=C.jsx(DJ,{className:"size-4 shrink-0 text-fg-subtle","aria-hidden":"true"});return s?C.jsxs("div",{className:"relative flex items-center",children:[C.jsxs("div",{role:"treeitem","aria-level":e+1,"aria-selected":!1,"aria-expanded":n,"aria-label":r,className:Ue(UE,"opacity-60"),children:[C.jsx(zE,{depth:e}),S,w,C.jsx("span",{className:"min-w-0 flex-1 truncate",children:t})]}),f,c&&C.jsx(jE,{depth:e})]}):C.jsxs("div",{className:"relative flex items-center",children:[C.jsxs("button",{ref:y,type:"button",role:"treeitem","aria-level":e+1,"aria-selected":a,"aria-expanded":n,"aria-current":i?"true":void 0,"aria-label":r,tabIndex:h,onClick:m,onFocus:g,className:Ue(UE,"hover:bg-surface-raised active:bg-surface-sunken",i&&"text-fg-muted"),children:[C.jsx(zE,{depth:e}),S,w,C.jsx("span",{className:"min-w-0 flex-1 truncate",children:t}),i&&u&&C.jsx("span",{className:"shrink-0 text-xs text-fg-muted",children:u}),a&&C.jsx(rv,{className:"size-4 shrink-0 text-accent","aria-hidden":"true"})]}),f,c&&C.jsx(jE,{depth:e})]})},jO=({label:t,ariaLabel:e,depth:n=0,prominence:r="prominent",separated:a=!1,onOpen:s})=>C.jsxs("div",{className:Ue("relative",r==="prominent"&&"p-2"),children:[C.jsxs("button",{type:"button",onClick:s,"aria-label":e,"data-prominence":r,className:Ue(UE,"w-full active:bg-surface-sunken",r==="prominent"?"rounded-lg border border-line-strong border-dashed font-medium text-fg-muted hover:border-accent-2 hover:text-accent-2":"text-fg-subtle hover:bg-surface-raised hover:text-fg-muted"),children:[C.jsx(zE,{depth:n}),C.jsx("span",{"aria-hidden":"true",className:"size-4 shrink-0"}),C.jsx(MJ,{className:"size-4 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"min-w-0 flex-1 truncate",children:t})]}),a&&C.jsx(jE,{depth:n})]}),TU={nameLabel:"Folder name",namePlaceholder:"Hotels",insideLabel:"Inside",create:"Create folder",cancel:"Cancel",createPending:"Creating folder…"},Nne=({parentLabel:t,name:e,onNameChange:n,onSubmit:r,onCancel:a,pending:s=!1,error:i,labels:u})=>{const c={...TU,...u},f=_.useId(),h=_.useRef(null),m=_.useRef(null);return _.useEffect(()=>{h.current?.focus({preventScroll:!0}),m.current?.scrollIntoView({block:"nearest"})},[]),C.jsxs("div",{ref:m,className:"space-y-3 border-y border-line bg-surface-sunken px-3 py-3",children:[C.jsxs("div",{children:[C.jsx(J_,{htmlFor:f,children:c.nameLabel}),C.jsx(ts,{id:f,ref:h,value:e,placeholder:c.namePlaceholder,onChange:g=>n(g.target.value),onKeyDown:g=>{g.key==="Enter"&&(g.preventDefault(),r()),g.key==="Escape"&&(g.preventDefault(),a())}})]}),C.jsxs("p",{className:"text-xs text-fg-muted",children:[c.insideLabel," ",C.jsx("span",{className:"font-medium text-fg",children:t})]}),i&&C.jsx("p",{className:"text-xs text-danger",role:"alert",children:i}),C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx(on,{variant:"ghost",size:"md",onClick:a,className:"min-h-11 shrink-0",children:c.cancel}),C.jsx(on,{variant:"secondary",size:"md",onClick:r,disabled:s,className:"min-h-11 shrink-0",children:s?c.createPending:c.create})]})]})},Mne={...TU,filterPlaceholder:"Filter folders…",filterAriaLabel:"Filter folders",treeAriaLabel:"Destination folders",currentSuffix:"(current folder)",currentTag:"current",contextSuffix:"(containing folder)",emptyMessage:t=>`No folders match "${t}"`,noFolders:"No folders to show",optionLabel:t=>`Move to ${t}`,newFolder:"New folder",newSubfolder:t=>`New folder inside ${t}`,topLevel:"Top level",nameRequired:"Give the folder a name.",createError:"Couldn't create that folder. Please try again."},RU=({folders:t,selectedId:e,onSelect:n,rowActions:r,onCreateFolder:a,onCancel:s,delimiter:i="/",labels:u})=>{const c={...Mne,...u},[f,h]=_.useState(""),[m,g]=_.useState(()=>{const V=t.find(ue=>ue.id===e);return new Set(V?Lh(V.path,i):[])}),[y,S]=_.useState(null),[w,x]=_.useState(""),[E,k]=_.useState(),[A,R]=_.useState(!1),[N,O]=_.useState(-1),I=_.useRef([]),P=_.useRef(!1),U=_.useRef(null);_.useEffect(()=>()=>U.current?.abort(),[]);const H=f.trim().toLowerCase(),z=_.useMemo(()=>Cne(t,i),[t,i]),j=_.useMemo(()=>{const V=Ene(z,H,i);return V.size===0?m:new Set([...m,...V])},[z,m,H,i]),$=_.useMemo(()=>H?_ne(z,H,i,j):kne(z,j,i),[z,H,i,j]),Z=_.useMemo(()=>a?Ane($,i):void 0,[$,i,a]);_.useEffect(()=>{O(V=>Es($[V])?V:FS($))},[$]),_.useEffect(()=>{P.current&&(P.current=!1,!(N<0)&&I.current[N]?.focus())},[N]);const J=_.useCallback((V,ue)=>{g(oe=>{if(ue)return new Set([...Lh(V,i),V]);const ce=new Set(oe);return ce.delete(V),ce})},[i]),q=_.useCallback(V=>{jS(V)&&n?.(V.folder.id),J(V.folder.path,!V.expanded)},[n,J]),X=_.useCallback(()=>{U.current?.abort(),S(null),x(""),k(void 0),R(!1)},[]),ae=_.useCallback(V=>{U.current?.abort(),S({anchorId:V?.id??null,parentPath:V?.path??"",parentLabel:V?.label??c.topLevel}),x(""),k(void 0),R(!1)},[c.topLevel]),he=_.useCallback(()=>{if(!a||!y||A)return;const V=w.trim();if(V===""){k(c.nameRequired);return}R(!0),k(void 0),U.current?.abort();const ue=new AbortController;U.current=ue;const oe=y.parentPath;a(V,oe,ue.signal).then(ce=>{R(!1),S(null),x(""),oe&&J(oe,!0),n?.(ce.id)}).catch(ce=>{xne(ce)||(k(ce instanceof Error?ce.message:c.createError),R(!1))})},[a,y,A,w,n,J,c.nameRequired,c.createError]),xe=_.useCallback(V=>{const ue=V.target;if(!(ue instanceof Element)||!ue.closest('[role="treeitem"]'))return;const oe=be=>{V.preventDefault(),P.current=!0,O(be)},ce=$[N];switch(V.key){case"ArrowDown":return oe(zO($,N,1));case"ArrowUp":return oe(zO($,N,-1));case"Home":return oe(FS($));case"End":return oe(Tne($));case"ArrowRight":{if(!Es(ce)||!ce)return;if(V.preventDefault(),!ce.expanded){J(ce.folder.path,!0);return}const be=N+1;Es($[be])&&oe(be);return}case"ArrowLeft":{if(!Es(ce)||!ce)return;if(V.preventDefault(),ce.expanded){J(ce.folder.path,!1);return}const be=Rne($,N,i);be>=0&&oe(be);return}case"Enter":case" ":{if(!Es(ce)||!ce)return;V.preventDefault(),q(ce);return}case"Escape":V.preventDefault(),s?.();return;default:return}},[$,N,i,q,J,s]),D=y!==null&&y.anchorId!==null&&(Z?.some(V=>V.kind==="create"&&V.parent.id===y.anchorId)??!1),Y=y&&C.jsx(Nne,{parentLabel:y.parentLabel,name:w,onNameChange:V=>{x(V),k(void 0)},onSubmit:he,onCancel:X,pending:A,error:E,labels:c}),G=V=>V.context?`${V.folder.label} ${c.contextSuffix}`:jS(V)?c.optionLabel(V.folder.label):`${V.folder.label} ${c.currentSuffix}`,Q=(V,ue,oe)=>{const{folder:ce,depth:be}=V,Ge=jS(V);return C.jsx(One,{ref:Ce=>{I.current[ue]=Ce},label:ce.label,depth:be,expanded:V.expanded,context:V.context,current:ce.isCurrent,currentTag:c.currentTag,selected:Ge&&ce.id===e,separated:oe,actions:r?.(ce),ariaLabel:G(V),tabIndex:ue===N?0:-1,onActivate:()=>q(V),onFocus:()=>O(ue)})};return C.jsxs("div",{className:"flex min-h-0 w-full min-w-0 flex-col",children:[C.jsx(ts,{variant:"inline",className:"border-b border-line px-3 py-2",icon:C.jsx(jJ,{className:"size-4","aria-hidden":"true"}),type:"search",value:f,onChange:V=>h(V.target.value),onKeyDown:V=>{if(V.key==="Escape"){V.preventDefault(),s?.();return}if(V.key!=="ArrowDown")return;V.preventDefault();const ue=Es($[N])?N:FS($);ue<0||(P.current=!0,O(ue),I.current[ue]?.focus())},placeholder:c.filterPlaceholder,"aria-label":c.filterAriaLabel}),a&&C.jsx("div",{className:"shrink-0 border-b border-line","data-create-anchor":"top",children:y&&!D?Y:C.jsx(jO,{label:c.newFolder,ariaLabel:c.newFolder,prominence:"prominent",onOpen:()=>ae(null)})}),$.length===0?C.jsx("p",{className:"px-3 py-3 text-sm text-fg-muted","aria-live":"polite",children:t.length===0?c.noFolders:c.emptyMessage(f)}):C.jsx("div",{role:"tree","aria-label":c.treeAriaLabel,className:"min-h-0 flex-1 overflow-y-auto overflow-x-hidden pb-24",onKeyDown:xe,children:(Z??$.map((V,ue)=>({kind:"folder",row:V,index:ue}))).map((V,ue,oe)=>{const ce=ue<oe.length-1;return V.kind==="create"?C.jsx("div",{role:"none","data-create-anchor":V.parent.id,children:y?.anchorId===V.parent.id?Y:C.jsx(jO,{label:c.newFolder,ariaLabel:c.newSubfolder(V.parent.label),depth:V.depth,prominence:"quiet",separated:ce,onOpen:()=>ae(V.parent)})},`new:${V.parent.id}`):C.jsx("div",{role:"none",children:Q(V.row,V.index,ce)},V.row.folder.id)})})]})},Pne={sm:"min-h-9 px-3 text-xs",md:"min-h-11 px-4 text-sm"};function d0({name:t,options:e,value:n,onChange:r,size:a="md","aria-label":s}){const i=e.findIndex(u=>u.value===n);return C.jsx("div",{role:"radiogroup","aria-label":s,className:"inline-flex rounded-md border border-line bg-surface-sunken p-0.5",children:e.map((u,c)=>{const f=u.value===n,h=!f&&c<e.length-1&&i!==c+1;return C.jsxs("label",{className:Ue("relative flex cursor-pointer items-center justify-center rounded-[5px] font-medium transition-colors",Pne[a],f?"bg-surface text-fg shadow":"text-fg-muted hover:text-fg",h&&"after:pointer-events-none after:absolute after:right-0 after:top-1/4 after:h-1/2 after:w-px after:bg-line"),children:[C.jsx("input",{type:"radio",name:t,value:u.value,checked:f,onChange:()=>r(u.value),className:"sr-only"}),u.label]},u.value)})})}const Dne=[{value:"all",label:H0("all")},{value:"any",label:H0("any")}],Lne=[{value:"similar",label:DE("similar")},{value:"properties",label:DE("properties")}],FO=[{value:"once",label:"Just once"},{value:"standing",label:"Keep doing this"},{value:"until",label:"Until a date"}],BO="__filter_create_label__";function Une({folders:t,value:e,delimiter:n="/",onChangeMove:r,onCreateFolder:a}){const[s,i]=_.useState(!1),[u,c]=_.useState(),[f,h]=_.useState([]),m=_.useMemo(()=>{const E=new Set(t.map(k=>k.id));return[...t,...f.filter(k=>!E.has(k.id))]},[t,f]),g=_.useMemo(()=>{if(a)return async(E,k,A)=>{const R=await a(E,k,A);return h(N=>N.some(O=>O.id===R.id)?N:[...N,R]),R}},[a]),y=m.find(E=>E.id===e),S=m.find(E=>E.id===u),w=E=>{const k=E.path.split(n);return k.map((A,R)=>{const N=k.slice(0,R+1).join(n);return m.find(O=>O.path===N)?.label??A}).join(" / ")},x=()=>{i(!1),c(void 0)};return s?C.jsxs("div",{className:"space-y-2",children:[C.jsx("div",{className:"flex h-72 min-h-0 overflow-hidden rounded-md border border-line bg-surface",children:C.jsx(RU,{folders:m,selectedId:u,delimiter:n,onSelect:c,onCreateFolder:g,onCancel:x,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})}),S?C.jsx(on,{variant:"primary",onClick:()=>{r?.(S.id),x()},className:"w-full",children:C.jsx("span",{className:"truncate",children:`Move matches to ${w(S)}`})}):C.jsx("p",{className:"text-2xs text-fg-subtle",children:"Tap a folder to open it, or make a new one where you want it."}),C.jsx(on,{variant:"ghost",size:"sm",onClick:x,className:"w-full",children:"Cancel"})]}):C.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken p-3",children:[C.jsx("p",{className:"text-sm font-medium text-fg",children:y?w(y):"No folder yet"}),C.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>{c(e),i(!0)},children:"Choose a folder"}),y&&C.jsx(on,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>r?.(""),children:"Don't move matches"})]})]})}function zne({labels:t,value:e,onChangeLabel:n,onCreateLabel:r}){const[a,s]=_.useState(!1),[i,u]=_.useState(""),[c,f]=_.useState(!1),[h,m]=_.useState(),[g,y]=_.useState([]),S=_.useMemo(()=>{const A=new Set(t.map(R=>R.id));return[...t,...g.filter(R=>!A.has(R.id))]},[t,g]),w=S.find(A=>A.id===e),x=A=>{if(A===BO){m(void 0),s(!0);return}n?.(A)},E=()=>{if(!r)return;const A=i.trim();A!==""&&(f(!0),m(void 0),r(A).then(R=>{y(N=>N.some(O=>O.id===R.id)?N:[...N,R]),n?.(R.id),s(!1),u(""),f(!1)}).catch(R=>{m(R instanceof Error?R.message:"Couldn't create that label. Please try again."),f(!1)}))},k=()=>{s(!1),u(""),m(void 0)};return C.jsxs("div",{className:"space-y-2",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsxs(xU,{"aria-label":"Label to apply",value:e,onChange:A=>x(A.target.value),className:"flex-1",children:[C.jsx("option",{value:"",children:"No label"}),S.map(A=>C.jsx("option",{value:A.id,children:A.name},A.id)),r&&C.jsx("option",{value:BO,children:"+ New label…"})]}),w&&C.jsx(gte,{label:{...w,labelId:w.id}})]}),a&&C.jsxs("div",{className:"space-y-2 rounded-md border border-line bg-surface-sunken p-2",children:[C.jsx(ts,{value:i,onChange:A=>u(A.target.value),placeholder:"Label name","aria-label":"New label name",disabled:c,autoFocus:!0,onKeyDown:A=>{A.key==="Enter"&&(A.preventDefault(),E()),A.key==="Escape"&&(A.preventDefault(),k())}}),h&&C.jsx("p",{className:"text-2xs text-danger",role:"alert",children:h}),C.jsxs("div",{className:"flex gap-2",children:[C.jsx(on,{variant:"primary",size:"sm",onClick:E,disabled:c||i.trim()==="",children:c?"Creating…":"Create label"}),C.jsx(on,{variant:"ghost",size:"sm",onClick:k,disabled:c,children:"Cancel"})]})]})]})}function ERe({rule:t,folders:e,delimiter:n,labels:r=[],preview:a,notice:s,semanticAvailable:i=!1,matchMode:u,onChangeMatchMode:c,clauseFields:f,anchorLocked:h=!1,clauseSuggestions:m,clauseEdit:g,onStartAddClause:y,onStartEditClause:S,onRemoveClause:w,onChangeDraftField:x,onChangeDraftValue:E,onSubmitClause:k,onCancelClause:A,onAddWiden:R,onRemoveWiden:N,onChangeMatchOperator:O,onChangeMove:I,onCreateFolder:P,onChangeLabel:U,onCreateLabel:H,onChangeScope:z,onChangeName:j,onChangeUntil:$,onCommit:Z,onCancel:J}){const q=t.widen&&!t.widen.inactive?1:0,ae=t.clauses.length+q>=2,he=ek(t.matchOperator),xe=yne(t,a),D=t.scope==="standing"||t.scope==="until",Y=h?FO.filter(G=>G.value!=="once"):FO;return C.jsxs("div",{className:"flex min-h-0 flex-col",children:[C.jsxs("div",{className:"border-b border-line px-5 py-3",children:[C.jsx("h2",{className:"text-sm font-semibold text-fg",children:"Filter rule"}),C.jsx("p",{className:"mt-0.5 text-xs text-fg-muted",children:"These chips are the whole rule — what you see is what applies."})]}),C.jsxs("div",{className:"min-h-0 flex-1 space-y-5 overflow-y-auto px-5 py-4",children:[s,u&&C.jsxs("section",{className:"space-y-1.5",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Match on"}),C.jsx(d0,{name:"rule-match-mode",size:"sm","aria-label":"What the rule matches on",options:Lne,value:u,onChange:G=>c?.(G)}),C.jsx("p",{className:"text-2xs text-fg-subtle",children:vU(u)})]}),C.jsxs("section",{className:"space-y-3",children:[C.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[t.clauses.map((G,Q)=>C.jsxs(_.Fragment,{children:[Q>0&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:he}),C.jsx(CU,{clause:G,onEdit:()=>S?.(G.id),onRemove:()=>w?.(G.id)})]},G.id)),t.widen&&C.jsxs(C.Fragment,{children:[t.clauses.length>0&&!t.widen.inactive&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:he}),C.jsx(Sne,{widen:t.widen,onRemove:h?void 0:N})]}),!g&&C.jsx(LE,{label:"Add clause",onClick:y}),!t.widen&&!h&&i&&u!=="properties"&&!g&&C.jsx(LE,{label:"…and similar",onClick:R})]}),g&&C.jsx(EU,{draft:g.draft,mode:g.mode,fields:f,suggestions:m,onChangeField:x,onChangeValue:E,onSubmit:k,onCancel:A}),h&&t.widen&&C.jsx("p",{className:"text-2xs text-fg-subtle",children:"This filter's similar-mail match is fixed to the message it was created from — create a new filter to change it."}),ae&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),C.jsx(d0,{name:"match-operator",size:"sm","aria-label":"Match operator",options:Dne,value:t.matchOperator,onChange:G=>O?.(G)})]})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Move matches to"}),C.jsx(Une,{folders:e,value:t.moveMailboxId,delimiter:n,onChangeMove:I,onCreateFolder:P})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Apply a label"}),C.jsx(zne,{labels:r,value:t.labelId??"",onChangeLabel:U,onCreateLabel:H})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"How long"}),C.jsx(d0,{name:"rule-scope",size:"sm","aria-label":"Rule scope",options:Y,value:t.scope,onChange:G=>z?.(G)}),D&&C.jsx(ts,{value:t.name??"",onChange:G=>j?.(G.target.value),placeholder:"Name this rule (e.g. Receipts)","aria-label":"Rule name",className:"w-full"}),t.scope==="until"&&C.jsxs("div",{className:"flex items-center gap-2 text-xs text-fg-muted",children:[C.jsx("span",{children:"Until"}),C.jsx(ts,{type:"date",value:t.until??"",onChange:G=>$?.(G.target.value),"aria-label":"Expiry date",className:"flex-1"})]})]}),C.jsx("div",{className:"border-t border-line pt-3",children:C.jsx(wne,{preview:a})})]}),C.jsxs("div",{className:"space-y-2 border-t border-line px-5 py-3",children:[xe&&C.jsx("p",{className:"text-xs text-fg-subtle",role:"status",children:xe}),C.jsx(on,{variant:"primary",onClick:Z,disabled:xe!==void 0,className:"w-full",children:SU(t.scope)}),C.jsx(on,{variant:"ghost",onClick:J,className:"w-full",children:"Not now"})]})]})}const jne={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Spam",trash:"Trash",flagged:"Starred",all:"All Mail"};function Fne(t){return jne[t]}function Bne(t){const e=t.split("/");return e[e.length-1]||t}const $ne=new Set(["all","flagged"]);function Hne(t){return $ne.has(t)}const qne=new Set(["[Gmail]","[Google Mail]"]);function Wne(t){if(t.role)return Hne(t.role)?void 0:Fne(t.role);if(t.providerPath&&!qne.has(t.providerPath.split("/")[0]))return Bne(t.providerPath)}function _Re(t){return t==="inbox"?C.jsx(TL,{className:"size-4"}):t==="drafts"?C.jsx(IJ,{className:"size-4"}):t==="sent"?C.jsx(FJ,{className:"size-4"}):t==="archive"?C.jsx(EJ,{className:"size-4"}):t==="junk"?C.jsx(V_,{className:"size-4"}):t==="trash"?C.jsx(HJ,{className:"size-4"}):t==="flagged"?C.jsx(BJ,{className:"size-4"}):C.jsx(LJ,{className:"size-4"})}const IU={filter:"border-line bg-surface-sunken text-fg-muted",scope:"border-accent-2/40 bg-accent-2-soft text-accent-2"},Vne=({label:t,onRemove:e,tone:n="filter",className:r})=>C.jsxs("span",{className:Ue("inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-2xs",IU[n],r),children:[C.jsx("span",{children:t}),C.jsx("button",{type:"button",onClick:e,className:"shrink-0 rounded-full p-0.5 hover:bg-fg-muted/20 transition-colors","aria-label":`Remove filter: ${t}`,children:C.jsx(Ms,{className:"size-3"})})]}),Gne=_.forwardRef(({label:t,onRemove:e,onActivate:n,tone:r="filter",focused:a=!1,onKeyDown:s,onFocusLabel:i,className:u},c)=>C.jsxs("span",{role:"row",tabIndex:-1,className:Ue("inline-flex max-w-48 items-center gap-1 rounded-full border px-2 py-0.5 text-2xs transition-colors",IU[r],a&&"ring-2 ring-ring",u),children:[C.jsx("button",{ref:c,type:"button",role:"gridcell",tabIndex:a?0:-1,onClick:n,onFocus:i,onKeyDown:s,className:Ue("block min-w-0 max-w-full truncate rounded-full outline-none",n?"cursor-pointer":"cursor-default"),children:t}),C.jsx("button",{type:"button",role:"gridcell",tabIndex:-1,onClick:e,className:"block shrink-0 rounded-full p-0.5 transition-colors hover:bg-fg-muted/20","aria-label":`Remove filter: ${t}`,children:C.jsx(Ms,{className:"size-3"})})]}));Gne.displayName="SearchChipRow";const kRe=({tokens:t,className:e})=>t.length===0?null:C.jsx("div",{className:Ue("flex flex-wrap items-center gap-1.5 border-b border-line bg-surface px-row-inset py-1.5",e),children:t.map(n=>C.jsx(Vne,{label:n.label,onRemove:n.onRemove},n.label))});function Kne(t){const[e,n]=_.useState(!1),r=e?TJ:RJ,a=e?"Hide password":"Show password";return C.jsx(ts,{...t,type:e?"text":"password",trailing:C.jsx("button",{type:"button","aria-label":a,"aria-pressed":e,title:a,onClick:()=>n(s=>!s),className:"-my-1 -mr-2 flex size-11 shrink-0 cursor-pointer items-center justify-center rounded-md text-fg-subtle transition-colors hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:C.jsx(r,{className:"size-4","aria-hidden":!0})})})}const Yne={info:"bg-accent-2",success:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function Zne({value:t,max:e,tone:n="info",indeterminate:r=!1,className:a}){const s=r?100:e<=0?0:Math.min(100,Math.max(0,t/e*100));return C.jsx("div",{role:"progressbar","aria-valuenow":r?void 0:t,"aria-valuemin":r?void 0:0,"aria-valuemax":r?void 0:e,className:Ue("h-1.5 w-full overflow-hidden rounded-full bg-surface-sunken",a),children:C.jsx("div",{className:Ue("h-full rounded-full transition-[width] duration-300 ease-out",Yne[n],r&&"w-1/3 animate-pulse"),style:r?void 0:{width:`${s}%`}})})}var Uh;(function(t){t[t.UP=-1]="UP",t[t.DOWN=1]="DOWN"})(Uh||(Uh={}));function Xne(t){var e=getComputedStyle(t).overflowY;return t===document.scrollingElement&&e==="visible"?!0:!(e!=="scroll"&&e!=="auto")}function Qne(t,e){if(!Xne(t))return!1;if(e===Uh.DOWN){var n=t.scrollTop+t.clientHeight;return n<t.scrollHeight}if(e===Uh.UP)return t.scrollTop>0;throw new Error("unsupported direction")}function OU(t,e){return Qne(t,e)?!0:t.parentElement==null?!1:OU(t.parentElement,e)}function NU(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(!t||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n==="top"&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}var Jne=`.lds-ellipsis {
15
15
  display: inline-block;
16
16
  position: relative;
17
17
  width: 64px;
@@ -145,7 +145,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
145
145
  .ptr__loader {
146
146
  margin: 0 auto;
147
147
  text-align: center;
148
- }`;NU(nre);var ARe=function(t){var e=t.isPullable,n=e===void 0?!0:e,r=t.canFetchMore,a=r===void 0?!1:r,s=t.onRefresh,i=t.onFetchMore,u=t.refreshingContent,c=u===void 0?F.createElement(ere,null):u,f=t.pullingContent,h=f===void 0?F.createElement(tre,null):f,m=t.children,g=t.pullDownThreshold,y=g===void 0?67:g,S=t.fetchMoreThreshold,w=S===void 0?100:S,x=t.maxPullDownDistance,E=x===void 0?95:x,k=t.resistance,A=k===void 0?1:k,R=t.backgroundColor,N=t.className,O=N===void 0?"":N,I=_.useRef(null),P=_.useRef(null),U=_.useRef(null),H=_.useRef(null),z=!1,j=!1,$=!1,Z=0,J=0;_.useEffect(function(){if(!(!n||!P||!P.current)){var Y=P.current;return Y.addEventListener("touchstart",ae,{passive:!0}),Y.addEventListener("mousedown",ae),Y.addEventListener("touchmove",he,{passive:!1}),Y.addEventListener("mousemove",he),window.addEventListener("scroll",xe),Y.addEventListener("touchend",D),Y.addEventListener("mouseup",D),document.body.addEventListener("mouseleave",D),function(){Y.removeEventListener("touchstart",ae),Y.removeEventListener("mousedown",ae),Y.removeEventListener("touchmove",he),Y.removeEventListener("mousemove",he),window.removeEventListener("scroll",xe),Y.removeEventListener("touchend",D),Y.removeEventListener("mouseup",D),document.body.removeEventListener("mouseleave",D)}}},[m,n,s,y,E,a,w]),_.useEffect(function(){var Y;if(!((Y=I)===null||Y===void 0)&&Y.current){var G=I.current.classList.contains("ptr--fetch-more-treshold-breached");G||a&&q()<w&&i&&(I.current.classList.add("ptr--fetch-more-treshold-breached"),j=!0,i().then(X).catch(X))}},[a,m]);var q=function(){if(!P||!P.current)return-1;var Y=window.scrollY,G=P.current.scrollHeight;return G-Y-window.innerHeight},X=function(){requestAnimationFrame(function(){P.current&&(P.current.style.overflowX="hidden",P.current.style.overflowY="auto",P.current.style.transform="unset"),U.current&&(U.current.style.opacity="0"),I.current&&(I.current.classList.remove("ptr--pull-down-treshold-breached"),I.current.classList.remove("ptr--dragging"),I.current.classList.remove("ptr--fetch-more-treshold-breached")),z&&(z=!1),j&&(j=!1)})},ae=function(Y){$=!1,Y instanceof MouseEvent&&(Z=Y.pageY),window.TouchEvent&&Y instanceof TouchEvent&&(Z=Y.touches[0].pageY),J=Z,!(Y.type==="touchstart"&&OU(Y.target,Uh.UP))&&(P.current.getBoundingClientRect().top<0||($=!0))},he=function(Y){if($){if(window.TouchEvent&&Y instanceof TouchEvent?J=Y.touches[0].pageY:J=Y.pageY,I.current.classList.add("ptr--dragging"),J<Z){$=!1;return}Y.cancelable&&Y.preventDefault();var G=Math.min((J-Z)/A,E);G>=y&&($=!0,z=!0,I.current.classList.remove("ptr--dragging"),I.current.classList.add("ptr--pull-down-treshold-breached")),!(G>=E)&&(U.current.style.opacity=(G/65).toString(),P.current.style.overflow="visible",P.current.style.transform="translate(0px, "+G+"px)",U.current.style.visibility="visible")}},xe=function(Y){j||a&&q()<w&&i&&(j=!0,I.current.classList.add("ptr--fetch-more-treshold-breached"),i().then(X).catch(X))},D=function(){if($=!1,Z=0,J=0,!z){U.current&&(U.current.style.visibility="hidden"),X();return}P.current&&(P.current.style.overflow="visible",P.current.style.transform="translate(0px, "+y+"px)"),s().then(X).catch(X)};return F.createElement("div",{className:"ptr "+O,style:{backgroundColor:R},ref:I},F.createElement("div",{className:"ptr__pull-down",ref:U},F.createElement("div",{className:"ptr__loader ptr__pull-down--loading"},c),F.createElement("div",{className:"ptr__pull-down--pull-more"},h)),F.createElement("div",{className:"ptr__children",ref:P},m,F.createElement("div",{className:"ptr__fetch-more",ref:H},F.createElement("div",{className:"ptr__loader ptr__fetch-more--loading"},c))))};function rre(t){return t.scopedOutFolder!==void 0||(t.droppedFacets?.length??0)>0||t.droppedSemantic===!0}function are(t){return`Your search was limited to ${t}. This filter matches these messages in any folder — it can't be pinned to one.`}const sre=t=>t.length===1?t[0]:t.length===2?`${t[0]} and ${t[1]}`:`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`;function ore(t){const e=t.length===1?"a filter condition":"filter conditions",n=t.length===1?"isn't":"aren't";return`${sre(t)} ${n} ${e}, so ${t.length===1?"it was":"they were"} left out — the filter still matches everything else you searched for.`}const ire="The filter matches these words literally. Your search also found similar mail by meaning — a filter can't carry that, so it won't catch mail that means the same thing without these words.";function BS({icon:t,children:e}){return C.jsxs("li",{className:"flex items-start gap-2",children:[C.jsx("span",{className:"mt-0.5 shrink-0 text-fg-subtle","aria-hidden":"true",children:t}),C.jsx("span",{children:e})]})}function lre({notice:t}){return rre(t)?C.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken px-3 py-2.5",children:[C.jsx("p",{className:"text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"From your search"}),C.jsxs("ul",{className:"mt-1.5 space-y-1.5 text-xs text-fg-muted",children:[t.scopedOutFolder!==void 0&&C.jsx(BS,{icon:C.jsx(NJ,{className:"size-3.5"}),children:are(t.scopedOutFolder)}),t.droppedFacets&&t.droppedFacets.length>0&&C.jsx(BS,{icon:C.jsx(RL,{className:"size-3.5"}),children:ore(t.droppedFacets)}),t.droppedSemantic&&C.jsx(BS,{icon:C.jsx(AE,{className:"size-3.5"}),children:ire})]})]}):null}const ure={delete:{label:"Delete",present:"Deleting",past:"Deleted",destructive:!0},move:{label:"Move",present:"Moving",past:"Moved",destructive:!1},junk:{label:"Junk",present:"Marking as junk",past:"Marked as junk",destructive:!0},markRead:{label:"Mark read",present:"Marking read",past:"Marked read",destructive:!1},organize:{label:"Organize",present:"Organizing",past:"Organized",destructive:!1}},tk=t=>ure[t],cre={match:"Apply to",properties:"Properties",folder:"Folder",rule:"Rule",name:"Name",review:"Review",run:"Run"},MU=t=>cre[t],TRe=({verb:t,mode:e,scope:n,fromSearch:r})=>{const a=r?["properties"]:e==="properties"?["match","properties"]:["match"];return t==="move"?[...a,"folder","review","run"]:t==="organize"?n==="standing"||n==="until"?[...a,"folder","rule","name","review","run"]:[...a,"folder","rule","review","run"]:[...a,"review","run"]},vp=(t,e)=>Math.max(0,t.indexOf(e)),dre=(t,e)=>vp(t,e)===0||e==="run",fre=(t,e)=>({clauses:[...t.clauses],matchOperator:t.matchOperator,widen:t.widen,moveMailboxId:t.moveMailboxId,scope:e,until:t.until,name:t.name}),PU=t=>yU(fre(t,t.scope??"once")),RRe="A rule only works within one account — clear the selection, or pick messages from a single account.",IRe="A destination only works within one account — clear the selection, or pick messages from a single account.",hre="This matches no messages, so there is nothing to do. Go back and change what it applies to.",pre="Fill in every property, or take the empty one off.",mre="Pick a destination first.",gre="Choose one of the three first.",ORe=(t,e,n)=>{if(t==="properties")return e.clauses.length===0?Aa.noMatch:e.clauses.some(r=>r.value.trim()==="")?pre:void 0;if(t==="folder")return e.moveMailboxId?void 0:mre;if(t==="rule")return e.scope?e.scope==="once"&&PU(e).length>0?Aa.bodyTextOnce:e.scope==="until"&&!e.until?.trim()?Aa.noUntilDate:void 0:gre;if(t==="name"&&!e.name?.trim())return Aa.unnamed;if(t==="review")return n.status==="uncounted"?void 0:n.status==="ready"&&n.count===0&&!n.stale?hre:wU(n)},vre={noMatch:"Nothing matches this yet. Widen a property, or match on a different one.",notIndexed:"This mail isn't indexed yet, so nothing can be counted. The rule still matches once indexing catches up."},yre=t=>vre[t],nk=({state:t,verb:e,scope:n,matched:r,applied:a,failed:s,failureReason:i})=>{const{label:u,present:c,past:f}=tk(e),h=f.toLowerCase(),m=n==="standing"||n==="until",y={screenTitle:t==="saving"||t==="backApplyRunning"||t==="statusUnknown"||t==="commitFailed"?u:"Done",showProgress:t==="backApplyRunning"||t==="backApplyComplete"||t==="backApplyFailed"||t==="backApplyRestartFailed"||t==="statusUnknown"||t==="runStopped",failureListLabel:`Not ${h}`};return t==="saving"?{...y,title:m?"Saving rule…":"Applying…",detail:"Nothing has been changed yet.",tone:"progress",dismissLabel:"Close"}:t==="backApplyRunning"?{...y,title:m?"Rule saved. Moving the mail already in your mailbox…":`${c} ${r} messages…`,detail:"This keeps running if you close the wizard.",tone:"progress",dismissLabel:"Close",cancelLabel:"Stop the run"}:t==="statusUnknown"?{...y,title:m?"Rule saved. Its progress over your existing mail is unknown":`${c} — progress unknown`,detail:m?"The connection dropped, so the bar shows the last that was read. The pass runs on the mail server, and the rule keeps working on new mail either way. This keeps checking.":"The connection dropped, so the bar shows the last that was read. The run is on the mail server and carries on either way. This keeps checking.",tone:"warning",dismissLabel:"Close",retryLabel:"Check again"}:t==="backApplyComplete"?{...y,title:m?"Rule saved and applied":`${f} ${a}`,detail:m?`${a} of ${r} already in your mailbox ${h}. New mail follows the rule as it arrives.`:`Every message the match reached was ${h}. Your mail server is still catching up, so the list can lag behind.`,tone:"success",dismissLabel:"Done"}:t==="backApplyFailed"?{...y,title:m?"Rule saved — some mail stayed put":`Not everything was ${h}`,detail:`${a} of ${r} ${h} · the mail server rejected ${s}.${m?" The rule itself is saved and keeps working on new mail.":""}`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:t==="runStopped"?{...y,title:`Stopped after ${a}`,detail:`${a} of ${r} ${h}. The run stopped before it reached the rest, so nothing was sent for them and nothing has happened to them.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:t==="backApplyRestartFailed"?{...y,title:m?"Rule saved — the retry didn't start":"The retry didn't start",detail:`${a} of ${r} ${h} · the mail server rejected ${s}, which are still where they were.${m?" The rule itself is saved and keeps working on new mail.":""} Check your connection and try again.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:t==="backApplyStartFailed"?{...y,title:"Rule saved",detail:"New mail follows it automatically. The pass over the mail already in your mailbox never started.",tone:"warning",dismissLabel:"Not now",retryLabel:"Run it over existing mail"}:t==="filterSaved"?{...y,title:"Filter saved",detail:"There is no mail in your mailbox to apply it to yet. New mail follows it as it arrives. You can see it, and when it expires, under Settings › Filters.",tone:"success",dismissLabel:"Done"}:{...y,title:m?"Couldn't save the rule":`Couldn't start ${u.toLowerCase()}`,detail:i??"Nothing has changed.",tone:"danger",dismissLabel:i===void 0?"Not now":"Close",retryLabel:i===void 0?"Try again":void 0}},bre=t=>`${Bc(t.field)} "${t.value}"`,DU=(t,e)=>t.map(bre).join(` ${ek(e)} `),f0=(t,e)=>t==="selected"?`These ${e} messages`:t==="similar"?$0({anchorCount:e}):DE("properties"),$S=t=>t==="selected"?"Only the messages ticked in the list.":vU(t),LU=t=>`Every message ${t}`,rk="the list is showing",Sre="This reaches every match on the mail server, including the ones the list has not loaded. The search is already the match, so there is nothing to widen.",wre="This covers messages not shown in the list, and anything else matching by the time it runs.",xre=({mode:t,selectedCount:e,clauses:n,matchOperator:r,escalatedScope:a})=>t==="escalated"?LU(a??rk):t==="properties"?DU(n,r):f0(t,e),Cre=({mode:t,selectedCount:e,clauses:n,matchOperator:r,escalatedScope:a,escalatedCount:s})=>{if(t==="selected")return`${e} messages`;if(t==="escalated"){const i=a??rk;return s===void 0?`every message ${i}`:`all ${s.toLocaleString()} messages ${i}`}return t==="similar"?`mail ${$0({anchorCount:e}).toLowerCase()}`:n.length===0?"every message":`every message where ${DU(n,r)}`};function Ere({steps:t,step:e}){const n=vp(t,e);return C.jsx("ol",{className:"flex items-center gap-1.5","aria-label":"Progress",children:t.map((r,a)=>C.jsx("li",{className:"flex flex-1 items-center gap-1.5",children:C.jsx("span",{className:Ue("h-1 flex-1 rounded-full transition-colors",a<=n?"bg-accent":"bg-surface-sunken"),"aria-current":a===n?"step":void 0})},r))})}function _re({title:t,subtitle:e,steps:n,step:r,onBack:a,onExit:s,footer:i,children:u}){const c=vp(n,r);return C.jsx("div",{role:"dialog","aria-modal":"true","aria-label":t,className:"fixed inset-0 z-50 flex flex-col font-sans text-fg md:items-center md:justify-center md:bg-black/40 md:p-6",children:C.jsxs("div",{className:"flex min-h-0 w-full flex-1 flex-col bg-canvas md:h-[45rem] md:max-h-[calc(100dvh-3rem)] md:w-[35rem] md:max-w-[calc(100vw-3rem)] md:flex-none md:overflow-hidden md:rounded-xl md:border md:border-line md:shadow-lg",children:[C.jsxs("header",{className:"shrink-0 border-b border-line px-3 pb-2 pt-[calc(0.75rem+env(safe-area-inset-top,0px))] md:pt-3",children:[C.jsxs("div",{className:"flex items-center gap-1",children:[C.jsx("button",{type:"button",onClick:a,"aria-label":"Back",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:C.jsx(AL,{className:"size-5"})}),C.jsxs("div",{className:"min-w-0 flex-1 text-center",children:[C.jsx("h1",{className:"truncate text-sm font-semibold",children:t}),e&&C.jsx("p",{className:"truncate text-2xs text-fg-muted",children:e})]}),C.jsx("button",{type:"button",onClick:s,"aria-label":"Cancel",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:C.jsx(Ms,{className:"size-5"})})]}),C.jsxs("div",{className:"space-y-1 px-1 pt-2",children:[C.jsx(Ere,{steps:n,step:r}),C.jsxs("p",{className:"text-2xs text-fg-subtle",children:["Step ",c+1," of ",n.length," · ",MU(n[c])]})]})]}),C.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-4",children:u}),C.jsx("footer",{className:"shrink-0 border-t border-line px-4 py-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] md:pb-3",children:i})]})})}function $c({selected:t,title:e,description:n,unavailable:r,onSelect:a,children:s}){const i=_.useId();return C.jsxs("div",{className:"space-y-1.5",children:[C.jsxs("button",{type:"button",onClick:a,"aria-pressed":t,"aria-describedby":r&&s?i:void 0,className:Ue("flex w-full items-start gap-3 rounded-lg border p-3 text-left transition-colors",t?"border-accent bg-accent-soft":"border-line bg-surface hover:bg-surface-sunken",r&&"opacity-55"),children:[C.jsx("span",{className:Ue("mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full border",t?"border-accent bg-accent text-accent-fg":"border-line"),children:t&&C.jsx(rv,{className:"size-3"})}),C.jsxs("span",{className:"min-w-0 flex-1",children:[C.jsx("span",{className:"block text-sm font-medium text-fg",children:e}),C.jsx("span",{className:"mt-0.5 block text-xs text-fg-muted",children:n})]})]}),s&&C.jsx("div",{id:i,children:s})]})}const kre=(t,e)=>t.status==="uncounted"?"The first matches. The total is not known until the run finishes.":t.status==="ready"&&t.count>e&&!t.stale?`and ${t.count-e} more`:bU(t),Are=(t,e,n)=>n?"Fetching the messages this covers…":t.status==="error"?t.reason:yre(e??"noMatch");function W0({messages:t,count:e,label:n,emptyReason:r,loading:a}){return C.jsxs("section",{className:"flex flex-col rounded-lg border border-line bg-surface",children:[C.jsx("h2",{className:"shrink-0 border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:n}),t.length===0?C.jsx("p",{className:"px-3 py-4 text-xs text-fg-muted",children:Are(e,r,a)}):C.jsxs(C.Fragment,{children:[C.jsx("ul",{className:"min-h-0 max-h-[45dvh] divide-y divide-line overflow-y-auto overscroll-contain md:max-h-[17rem]",children:t.map(s=>C.jsxs("li",{className:"px-3 py-2",children:[C.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[C.jsx("span",{className:"truncate text-xs font-medium text-fg",children:s.sender}),C.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:s.date})]}),C.jsx("p",{className:"truncate text-xs text-fg-muted",children:s.subject})]},s.id))}),C.jsx("p",{className:"shrink-0 border-t border-line px-3 py-2 text-2xs text-fg-subtle",children:kre(e,t.length)})]})]})}function $O({onBack:t,nextLabel:e,onNext:n,nextVariant:r="primary",blockedReason:a,nudged:s}){const i=_.useId();return C.jsxs("div",{className:"space-y-2",children:[a&&C.jsx(ene,{id:i,reason:a,nudged:s,className:"px-1 text-2xs text-warning"}),C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"touch",onClick:t,icon:C.jsx(AL,{className:"size-4"}),className:"shrink-0",children:"Back"}),C.jsxs(on,{variant:r,size:"touch",onClick:n,"aria-describedby":a?i:void 0,className:Ue("flex-1",a&&"opacity-55"),children:[e,r==="primary"&&C.jsx(_J,{className:"size-4"})]})]})]})}function Tre({selectedCount:t,mode:e,onModeChange:n,semanticUnavailable:r,semanticErrorDetail:a,semanticFallbackTaken:s,onSemanticFallback:i,escalatedScope:u,sample:c}){return e==="escalated"?C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"rounded-lg border border-accent bg-accent-soft p-3",children:[C.jsx("p",{className:"text-sm font-medium text-fg",children:LU(u??rk)}),C.jsx("p",{className:"mt-1 text-xs text-fg-muted",children:Sre})]}),C.jsx("div",{className:"mt-4",children:C.jsx(W0,{...c})})]}):C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"space-y-2",children:[C.jsx($c,{selected:e==="selected",onSelect:()=>n("selected"),title:f0("selected",t),description:$S("selected")}),C.jsxs($c,{selected:e==="similar",unavailable:r,onSelect:r?i:()=>n("similar"),title:f0("similar",t),description:$S("similar"),children:[a&&C.jsxs("p",{role:"status",className:"px-1 text-2xs text-danger",children:["Couldn't find similar messages: ",a]}),s&&C.jsx("p",{role:"status",className:"px-1 text-2xs text-fg-subtle",children:"Similar-mail matching is unavailable right now — matching on the senders instead."})]}),C.jsx($c,{selected:e==="properties",onSelect:()=>n("properties"),title:f0("properties",t),description:$S("properties")})]}),C.jsx("div",{className:"mt-4",children:C.jsx(W0,{...c})})]})}const Rre=[{value:"all",label:H0("all")},{value:"any",label:H0("any")}];function Ire({clauses:t,matchOperator:e,onMatchOperatorChange:n,clauseEdit:r,onStartAddClause:a,onStartEditClause:s,onRemoveClause:i,onChangeDraft:u,onSubmitClause:c,onCancelClause:f,clauseFields:h,clauseSuggestions:m,conversionNotice:g,semanticFallbackTaken:y,sample:S}){const w=ek(e);return C.jsxs("div",{className:"space-y-4",children:[y&&C.jsx("p",{role:"status",className:"px-1 text-xs text-fg-muted",children:"Similar-mail matching is unavailable right now. These are the senders of the messages you picked."}),g&&C.jsx(lre,{notice:g}),C.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[t.map((x,E)=>C.jsxs(_.Fragment,{children:[E>0&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:w}),C.jsx(CU,{clause:x,onEdit:()=>s(x.id),onRemove:()=>i(x.id)})]},x.id)),!r&&C.jsx(LE,{label:"Add clause",onClick:a})]}),r&&C.jsx(EU,{draft:r.draft,mode:r.mode,fields:h,suggestions:m,onChangeField:x=>u({...r.draft,field:x}),onChangeValue:x=>u({...r.draft,value:x}),onSubmit:c,onCancel:f}),t.length>1&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),C.jsx(d0,{name:"wizard-match-operator",size:"sm","aria-label":"Match operator",options:Rre,value:e,onChange:n})]}),C.jsx("p",{className:"px-1 text-xs text-fg-muted",children:"We started you off from what you were looking at. Change any of it — this is where the rule is decided, not the list behind it."}),C.jsx(W0,{...S})]})}function Ore({folders:t,mailboxId:e,onSelect:n,onCreateFolder:r,delimiter:a,restriction:s}){const i=t.find(u=>u.id===e);return C.jsxs("div",{className:"flex min-h-0 flex-col gap-3",children:[C.jsx("p",{className:Ue("px-1 text-xs",s?"text-warning":"text-fg-muted"),children:s??(i?`Moving to ${i.label}.`:"Tap a folder to open it, or make a new one where you want it.")}),C.jsx("div",{className:"flex min-h-0 flex-1 overflow-hidden rounded-lg border border-line bg-surface",children:C.jsx(RU,{folders:t,selectedId:e,onSelect:n,onCreateFolder:r,delimiter:a,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})})]})}function Nre({draft:t,onScopeChange:e,onUntilChange:n,restriction:r}){const a=_.useId(),{scope:s,until:i=""}=t,u=PU(t).length>0,c=r&&C.jsx("p",{className:"px-1 text-2xs text-warning",children:r});return C.jsxs("div",{className:"space-y-2",children:[C.jsx($c,{selected:s==="once",onSelect:()=>e("once"),title:c0("once"),description:"A one-off tidy-up. Nothing changes for future mail.",children:u&&C.jsx("p",{className:"px-1 text-2xs text-warning",children:Aa.bodyTextOnce})}),C.jsx($c,{selected:s==="standing",unavailable:!!r,onSelect:()=>e("standing"),title:c0("standing"),description:"Saves a rule and applies it to new mail as it arrives, and to the mail already in your mailbox. You'll name it next.",children:c}),C.jsxs($c,{selected:s==="until",unavailable:!!r,onSelect:()=>e("until"),title:c0("until"),description:"The same rule, and it stops on a day you pick.",children:[c,s==="until"&&C.jsxs("div",{className:"rounded-lg border border-line bg-surface p-2",children:[C.jsx(J_,{htmlFor:a,children:"Stops on"}),C.jsx(ts,{id:a,type:"date",value:i,onChange:f=>n(f.target.value)})]})]})]})}function Mre({name:t,onNameChange:e,nudged:n}){const r=_.useId(),a=_.useRef(null);return _.useEffect(()=>{n&&a.current?.focus()},[n]),C.jsxs(C.Fragment,{children:[C.jsx(J_,{htmlFor:r,children:"Rule name"}),C.jsx(ts,{id:r,ref:a,value:t,placeholder:"Travel confirmations",onChange:s=>e(s.target.value),trailing:t?C.jsx("button",{type:"button","aria-label":"Clear name",onClick:()=>{e(""),a.current?.focus()},className:"-mr-1 flex size-7 shrink-0 items-center justify-center rounded-full text-fg-subtle hover:bg-surface hover:text-fg",children:C.jsx(Ms,{className:"size-4"})}):void 0}),C.jsx("p",{className:"mt-2 text-xs text-fg-muted",children:"We suggested one from this selection. Clear it and write your own if it doesn't read right."})]})}function Pre({verb:t,mode:e,selectedCount:n,clauses:r,matchOperator:a,folder:s,scope:i,until:u,ruleName:c,escalatedScope:f,sample:h}){const{label:m}=tk(t),g={mode:e,selectedCount:n,clauses:r,matchOperator:a,escalatedScope:f,escalatedCount:h.count.status==="ready"?h.count.count:void 0},y=e!=="selected",S=i==="standing"||i==="until";return C.jsxs("div",{className:"space-y-4",children:[C.jsxs("div",{className:"rounded-lg border border-line bg-surface p-3",children:[C.jsxs("p",{className:"text-sm text-fg",children:[C.jsx("span",{className:"font-semibold",children:m})," ",Cre(g),s?` to ${s}`:"",S&&C.jsxs(C.Fragment,{children:[" ","and ",C.jsx("span",{className:"font-medium",children:"save a rule"})," that keeps doing it"]}),i==="until"&&u&&` until ${u}`,"."]}),y&&C.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[C.jsx(Nh,{className:"mt-px size-3.5 shrink-0"}),e==="escalated"?wre:"This covers messages not shown in the list."]})]}),C.jsxs("dl",{className:"divide-y divide-line overflow-hidden rounded-lg border border-line bg-surface text-xs",children:[C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Action"}),C.jsx("dd",{className:"font-medium",children:m})]}),C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"shrink-0 text-fg-muted",children:"Apply to"}),C.jsx("dd",{className:"truncate font-medium",children:xre(g)})]}),s&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Destination"}),C.jsx("dd",{className:"font-medium",children:s})]}),i&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Scope"}),C.jsxs("dd",{className:"font-medium",children:[c0(i),i==="until"&&u?` · ${u}`:""]})]}),c!==void 0&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Rule name"}),C.jsx("dd",{className:"truncate font-medium",children:c})]})]}),C.jsx(W0,{...h})]})}const ak=t=>({state:t.state,verb:t.verb,scope:t.scope,matched:t.matched,applied:t.applied,failed:t.failedCount??t.failures.length,failureReason:t.failureReason}),Dre=t=>t==="progress"?C.jsx(j0,{className:"size-10 animate-spin text-accent"}):t==="warning"?C.jsx(Nh,{className:"size-10 text-warning"}):t==="danger"?C.jsx(Nh,{className:"size-10 text-danger"}):C.jsx("span",{className:"flex size-12 items-center justify-center rounded-full bg-accent-soft text-accent",children:C.jsx(rv,{className:"size-6"})});function Lre(t){const{matched:e,applied:n,failures:r}=t,a=ak(t),s=nk(a),i=t.state==="runStopped"?"Never sent":"Server rejected";return C.jsxs("div",{className:"space-y-4 pt-2",children:[C.jsxs("div",{className:"flex flex-col items-center gap-3 py-6 text-center",children:[Dre(s.tone),C.jsx("p",{className:"text-sm font-medium",children:s.title}),C.jsx("p",{className:"max-w-xs text-xs text-fg-muted",children:s.detail})]}),s.showProgress&&C.jsx(Zne,{value:n,max:e,tone:a.failed>0?"warning":"success"}),r.length>0&&C.jsxs("section",{className:"rounded-lg border border-line bg-surface",children:[C.jsx("h2",{className:"border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:s.failureListLabel}),C.jsx("ul",{className:"divide-y divide-line",children:r.map(u=>C.jsxs("li",{className:"px-3 py-2",children:[C.jsx("p",{className:"truncate text-xs font-medium",children:u.sender}),C.jsx("p",{className:"truncate text-xs text-fg-muted",children:u.subject}),C.jsx(IE,{className:"mt-1",tone:"warning",children:i})]},u.id))})]})]})}function Ure(t){const{onRetry:e,onDismiss:n,onCancelRun:r}=t,a=nk(ak(t));return a.cancelLabel!==void 0&&r?C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"md",className:"min-h-11 shrink-0",onClick:r,children:a.cancelLabel}),C.jsx(on,{variant:"primary",size:"md",className:"min-h-11 flex-1",onClick:n,children:a.dismissLabel})]}):a.retryLabel===void 0?C.jsx(on,{variant:a.tone==="progress"?"ghost":"primary",size:"touch",className:"w-full",onClick:n,children:a.dismissLabel}):C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"touch",onClick:n,children:a.dismissLabel}),C.jsx(on,{variant:"primary",size:"touch",className:"flex-1",onClick:e,children:a.retryLabel})]})}const zre={match:{subtitle:"What should this apply to?"},properties:{title:"Match properties",subtitle:"Which properties have to match?"},folder:{title:"Move to",subtitle:"Pick a destination"},rule:{title:"Organize",subtitle:"How long should this hold?"},name:{title:"Name the rule",subtitle:"So you can find it later"},review:{title:"Review",subtitle:"Check before it runs"},run:{}},vs=(t,e)=>{if(t===void 0)throw new Error(`The ${MU(e)} step was rendered without its answers.`);return t};function NRe(t){const{verb:e,steps:n,onExit:r,onContinue:a,onCommit:s}=t,{label:i,destructive:u}=tk(e),c=n[vp(n,t.step)],f=zre[c],h=dre(n,c)?r:t.onBack,m=()=>c==="match"?C.jsx(Tre,{...vs(t.match,c)}):c==="properties"?C.jsx(Ire,{...vs(t.properties,c)}):c==="folder"?C.jsx(Ore,{...vs(t.folder,c)}):c==="rule"?C.jsx(Nre,{...vs(t.rule,c)}):c==="name"?C.jsx(Mre,{...vs(t.name,c),nudged:t.nudged}):c==="review"?C.jsx(Pre,{...vs(t.review,c)}):C.jsx(Lre,{...vs(t.run,c)}),g=()=>{if(c==="run")return C.jsx(Ure,{...vs(t.run,c)});if(c==="review"){const w=vs(t.review,c);return C.jsx($O,{onBack:h,nextLabel:w.scope?SU(w.scope):i,nextVariant:u?"danger":"primary",onNext:s,blockedReason:t.blockedReason,nudged:t.nudged})}return C.jsx($O,{onBack:h,nextLabel:"Continue",onNext:a,blockedReason:t.blockedReason,nudged:t.nudged})},y=()=>c!=="run"?f.title??i:nk(ak(vs(t.run,c))).screenTitle,S=c==="match"&&t.match?.mode==="escalated"?"What this applies to":f.subtitle;return C.jsx(_re,{title:y(),subtitle:S,steps:n,step:c,onBack:h,onExit:r,footer:g(),children:m()})}const jre={preparing:"Getting the new version ready",restarting:"Restarting Remit",reconnecting:"Waiting for Remit to answer again"};function HO(t){return jre[t]}function Fre(t){return t<90?"This usually takes about a minute.":t<240?"Longer than usual. Remit is still trying to reach the server.":"Still no answer. Remit keeps trying."}function MRe(t,e=Date.now()){const n=Math.floor((e-t)/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function PRe(t){return new Date(t).toLocaleDateString(void 0,{dateStyle:"medium"})}function Bre({children:t,show:e,label:n="Update available"}){return C.jsxs("span",{className:"relative inline-flex",children:[t,e&&C.jsxs(C.Fragment,{children:[C.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-accent-2"}),C.jsx("span",{className:"sr-only",children:n})]})]})}const qO=["preparing","restarting","reconnecting"],$re='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';function UU(t){_.useEffect(()=>{const e=t.current;if(!e)return;const n=()=>Array.from(e.querySelectorAll($re));(n()[0]??e).focus();const r=a=>{if(a.key!=="Tab")return;const s=n();if(s.length===0){a.preventDefault(),e.focus();return}const i=s[0],u=s[s.length-1],c=document.activeElement;if(a.shiftKey&&(c===i||!e.contains(c))){a.preventDefault(),u.focus();return}!a.shiftKey&&(c===u||!e.contains(c))&&(a.preventDefault(),i.focus())};return window.addEventListener("keydown",r,!0),()=>window.removeEventListener("keydown",r,!0)},[t])}const zU="fixed inset-0 z-50 flex flex-col items-center justify-center gap-6 bg-canvas p-6 text-center outline-none";function Hre({target:t,phase:e,elapsedSeconds:n}){const r=_.useRef(null);UU(r);const a=qO.indexOf(e);return C.jsxs("div",{ref:r,role:"dialog","aria-modal":"true","aria-labelledby":"self-update-progress-title",tabIndex:-1,className:zU,children:[C.jsxs("div",{className:"max-w-md space-y-2",children:[C.jsxs("h1",{id:"self-update-progress-title",className:"text-lg font-semibold text-fg",children:["Installing Remit ",t]}),C.jsx("p",{className:"text-sm text-fg-muted",children:"Remit is restarting, so this page has no server to talk to for a moment. Leave this open — it reconnects on its own."})]}),C.jsx("ol",{className:"w-full max-w-sm space-y-2 text-left",children:qO.map((s,i)=>{const u=i<a,c=i===a;return C.jsxs("li",{className:Ue("flex items-center gap-3 rounded-sm border px-row-inset py-2 text-sm",c?"border-line-strong bg-surface text-fg":"border-line bg-surface-sunken text-fg-subtle"),children:[u?C.jsx(rv,{className:"size-4 shrink-0 text-positive","aria-hidden":!0}):c?C.jsx(j0,{className:"size-4 shrink-0 animate-spin text-accent-2","aria-hidden":!0}):C.jsx("span",{className:"size-4 shrink-0 rounded-full border border-line-strong"}),HO(s)]},s)})}),C.jsxs("p",{"aria-live":"polite",className:"max-w-md text-xs text-fg-subtle",children:[C.jsx("span",{className:"sr-only",children:`${HO(e)}. `}),Fre(n)]})]})}function qre({attemptedVersion:t,previousVersion:e,elapsedSeconds:n,logsCommand:r,onRetryConnection:a}){const s=_.useRef(null);UU(s);const i=Math.max(1,Math.round(n/60));return C.jsxs("div",{ref:s,role:"alertdialog","aria-modal":"true","aria-labelledby":"self-update-unreachable-title",tabIndex:-1,className:zU,children:[C.jsx(V_,{className:"size-12 shrink-0 text-danger","aria-hidden":!0}),C.jsxs("div",{className:"max-w-lg space-y-3",children:[C.jsx("h1",{id:"self-update-unreachable-title",className:"text-lg font-semibold text-fg",children:"Remit has not answered since the restart"}),C.jsxs("p",{className:"text-sm text-fg-muted",children:["Installing ",t," started ",i," minute",i===1?"":"s"," ago and the server has been silent since. Your mail is safe at your provider — it was never part of the update."]}),C.jsxs("p",{className:"text-sm text-fg-muted",children:["Remit rolls back to ",e," on its own when the new version fails to start, but this page cannot confirm that from here. Check the server directly:"]}),C.jsx("code",{className:"block rounded-xs bg-surface-sunken px-3 py-2 text-left text-xs text-fg-muted",children:r})]}),C.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2",children:C.jsx(on,{size:"sm",onClick:a,children:"Try connecting again"})})]})}function Wre(t,e,n){if(!e.allowPrivateDomains&&t.length>3){const r=t.length-1,a=t.charCodeAt(r),s=t.charCodeAt(r-1),i=t.charCodeAt(r-2),u=t.charCodeAt(r-3);if(a===109&&s===111&&i===99&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="com",!0;if(a===103&&s===114&&i===111&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="org",!0;if(a===117&&s===100&&i===101&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="edu",!0;if(a===118&&s===111&&i===103&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="gov",!0;if(a===116&&s===101&&i===110&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="net",!0;if(a===101&&s===100&&i===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="de",!0}return!1}const Il=new Uint8Array([1,2,1,1,1,1,1,1,1,1,1,1,0,2,2,2,0,2,2,0,2,0,0,1,0,0,2,1,1,1,1,1,1,0,0,0,1,0,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,1,0,1,1,0,0,0,0,0,0,1,1,1,0,2,0,0,0,0,0,0,0,2,0,2,2,0,0,2,2,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,2,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0,0,0,0,2,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,2,2,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,1,0,2,2,0,0,0,2,0,1,1,0,2,0,2,2,0,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,0,0,0,0,1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,2,2,0,2,2,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,2,0,2,2,2,2,0,0,0,0,2,0,0,0,0,0,0,2,2,0,0,0,2,2,1,1,1,1,2,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,2,2,0,0,2,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,2,2,1,2,1,1,1,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,2,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0]),V0=new Uint16Array([0,0,0,10,11,18,106,111,117,124,130,136,145,146,147,148,149,150,151,153,154,155,157,159,226,239,241,242,243,258,265,266,269,270,271,274,276,295,296,298,307,312,313,331,332,335,337,338,340,374,375,377,380,381,385,387,391,394,426,429,442,443,451,452,454,464,478,479,480,489,490,527,532,548,568,574,615,616,643,670,671,819,825,828,829,830,835,840,849,871,872,873,874,875,876,877,895,897,898,901,903,904,906,908,923,938,943,944,946,947,948,949,950,952,955,960,961,962,964,965,968,971,972,973,986,988,1e3,1011,1019,1021,1061,1064,1068,1069,1071,1074,1085,1087,1097,1099,1105,1107,1108,1110,1113,1114,1115,1167,1169,1171,1191,1192,1193,1194,1196,1207,1238,1249,1261,1270,1277,1282,1295,1306,1319,1320,1331,1365,1366,1367,1382,1397,1469,1470,1472,1473,1507,1508,1509,1512,1516,1518,1547,1548,1556,1557,1558,1560,1562,1563,1565,1566,1567,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1594,1595,1596,1598,2053,2056,2057,2059,2066,2073,2083,2087,2098,2099,2100,2112,2113,2115,2117,2118,2125,2126,2128,2129,2131,2132,2133,2134,2135,2209,2211,2232,2233,2234,2236,2262,2263,2314,2315,2317,2324,2330,2340,2350,2403,2404,2405,2415,2429,2430,2433,2440,2441,2449,2450,2451,2452,2453,2464,2465,2466,2468,2469,2470,2471,2473,2483,2495,2501,2533,2537,2539,2540,2542,2543,2554,2555,2557,2565,2572,2578,2583,2584,2590,2593,2599,2606,2607,2614,2622,2623,2624,2662,2668,2683,2684,2689,2707,2738,2756,2758,2761,2769,2771,2778,2830,2854,2855,2856,2857,2858,2859,2860,2861,2868,2869,2870,2871,2872,2873,2875,2876,2880,2964,2977,2978,3414,3418,3432,3484,3512,3534,3592,3614,3629,3692,3743,3781,3817,3842,3984,4030,4081,4100,4134,4149,4169,4199,4230,4253,4284,4314,4346,4373,4448,4470,4508,4518,4552,4571,4597,4639,4689,4715,4784,4785,4787,4810,4833,4869,4900,4917,4974,4987,5011,5040,5042,5076,5092,5120,5425,5434,5443,5450,5467,5471,5477,5516,5518,5525,5532,5541,5548,5549,5560,5563,5578,5579,5588,5589,5598,5607,5613,5615,5616,5617,5653,5654,5656,5664,5671,5684,5688,5690,5691,5697,5704,5718,5728,5733,5741,5749,5755,5756,5760,5762,5763,5775,5776,5777,5778,5780,5781,5784,5786,5789,5793,5794,5800,5801,5802,5804,5806,5808,5809,5810,5813,5815,5818,5819,5821,6019,6026,6027,6037,6042,6059,6073,6082,6083,6084,6088,6089,6091,6093,6099,6100,6103,6104,6106,6107,6108,7008,7009,7013,7031,7040,7043,7050,7051,7053,7054,7055,7057,7109,7110,7113,7114,7231,7232,7243,7254,7261,7264,7273,7274,7275,7290,7345,7536,7538,7539,7541,7546,7559,7574,7581,7590,7593,7596,7603,7611,7615,7616,7617,7631,7635,7644,7645,7646,7650,7685,7686,7703,7710,7718,7719,7724,7732,7776,7777,7783,7786,7797,7802,7803,7806,7839,7840,7846,7853,7854,7863,7872,7887,7891,7943,7944,7949,7951,7954,7956,7957,7958,7967,7981,7989,8003,8015,8016,8018,8020,8042,8053,8059,8060,8072,8084,8171,8183,8185,8194,8197,8203,8228,8231,8232,8233,8235,8238,8241,8252,8254,8256,8284,8358,8365,8369,8370,8379,8401,8402,8407,8408,8487,8489,8491,8500,8504,8510,8516,8522,8532,8537,8538,8556,8567,8572,8577,8587,8593,8597,8603,8609,10217,10218,10219,10226,10228]),G0=new Uint8Array([3,3,3,3,3,3,3,3,5,8,8,2,2,3,3,3,3,3,8,5,5,5,5,5,3,3,5,5,9,12,19,8,19,8,11,9,9,8,7,7,6,8,9,16,10,7,7,11,8,6,6,9,7,11,7,14,4,4,4,4,4,4,10,7,6,6,6,6,10,10,6,10,10,22,11,9,10,10,10,9,10,8,7,7,7,8,21,13,11,11,9,10,9,13,10,8,8,9,12,9,7,10,7,7,13,7,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,8,6,3,3,3,3,3,3,2,5,3,3,3,7,2,2,2,2,2,2,3,3,3,1,1,7,8,5,2,2,7,2,2,1,4,1,11,9,9,5,5,8,5,5,5,5,5,5,5,3,3,3,3,3,5,11,9,9,13,7,14,7,6,6,6,7,6,6,6,6,6,10,7,11,9,4,4,4,4,4,4,6,6,6,6,6,8,7,10,9,9,9,8,9,8,10,6,9,9,8,10,10,7,8,1,9,10,12,12,12,10,9,9,10,10,9,9,1,1,5,3,3,3,3,3,3,3,3,3,3,3,3,6,6,6,4,3,3,3,7,4,4,4,3,3,6,7,3,4,1,2,2,2,6,1,2,2,2,2,2,12,5,3,8,9,13,4,4,13,9,9,11,7,3,12,9,2,2,2,3,3,3,3,3,8,2,2,3,3,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,7,10,15,7,15,15,20,15,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,7,8,6,8,8,6,8,13,8,8,6,13,8,11,13,8,6,13,8,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,9,9,9,10,14,14,11,13,13,9,9,9,9,9,9,2,6,9,2,2,3,3,3,3,3,3,3,3,3,4,4,4,2,3,3,3,3,3,3,7,7,2,3,2,2,5,3,3,3,3,3,3,4,2,2,2,2,2,2,3,3,3,3,3,3,3,4,5,7,2,2,12,8,10,8,10,7,18,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,2,2,3,3,3,5,5,3,8,8,6,8,6,6,4,6,7,7,7,10,11,2,5,5,3,3,3,3,3,3,5,5,6,11,10,7,7,7,4,4,4,2,3,3,3,3,3,2,7,5,5,3,3,3,3,3,3,3,3,7,7,7,11,7,6,9,6,6,8,10,8,6,8,13,4,4,4,4,4,10,8,11,8,8,8,10,10,7,10,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,7,10,13,7,8,7,11,8,8,6,9,8,8,6,6,6,8,8,6,6,6,6,6,9,7,6,4,4,4,4,4,4,4,6,6,6,9,7,8,10,8,8,2,3,3,3,3,3,2,8,9,9,2,2,2,3,3,3,2,3,3,3,9,2,2,3,3,3,3,3,3,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,12,5,5,3,5,4,2,3,2,4,3,9,2,2,2,2,2,5,5,3,8,8,13,6,10,9,4,7,9,11,2,3,7,3,3,4,1,3,4,2,9,3,3,12,5,3,7,10,10,7,4,4,6,14,7,9,7,13,2,2,2,2,2,2,3,3,3,3,3,8,15,4,4,2,3,3,3,7,4,9,9,2,3,3,3,5,3,2,2,7,2,7,6,6,7,2,4,2,2,2,2,2,2,8,8,8,9,5,2,3,3,3,3,3,3,10,7,4,4,4,4,3,4,2,3,3,3,3,3,10,7,4,4,4,4,2,3,3,3,3,10,7,4,4,4,4,3,9,6,6,6,9,13,9,2,2,2,8,7,9,5,3,3,3,5,5,12,9,10,7,8,7,6,8,6,11,12,7,9,10,4,4,7,8,11,6,7,9,8,7,10,8,9,15,7,8,5,4,7,2,3,3,3,2,14,10,2,14,10,2,14,3,9,13,13,10,14,16,17,11,2,14,2,14,3,9,13,10,14,16,17,11,14,10,14,2,7,3,10,7,14,10,2,14,10,9,9,17,6,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,10,10,10,12,9,4,10,11,8,8,8,7,9,5,3,3,3,3,3,3,3,3,5,8,4,4,4,4,4,4,6,16,3,3,14,3,14,2,14,9,13,10,10,14,16,17,11,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,9,9,9,9,9,9,2,14,9,13,10,10,14,16,17,11,6,2,14,9,17,13,10,10,14,16,17,11,6,2,14,9,13,10,14,16,17,11,2,14,9,13,10,16,11,2,14,10,19,7,2,14,9,13,10,19,10,7,14,16,17,11,6,2,14,9,13,10,19,7,14,16,17,11,2,14,9,13,17,13,10,10,14,16,17,11,6,3,2,14,9,13,10,10,14,16,17,11,6,9,10,12,14,14,14,12,12,12,12,12,14,14,14,10,10,10,14,9,9,9,9,14,14,14,13,13,14,9,9,9,9,9,9,4,11,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,9,10,10,7,17,3,3,12,12,16,15,15,12,14,14,14,20,20,13,12,12,12,12,12,12,20,25,14,14,12,12,10,10,10,10,9,9,9,25,4,9,17,10,7,14,16,21,13,13,14,20,14,13,17,24,9,12,13,25,13,21,20,17,9,9,9,9,9,9,12,17,4,4,9,9,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,1,8,7,11,11,1,3,3,3,4,8,9,10,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,7,4,4,4,4,4,4,4,4,4,4,9,12,6,14,4,12,7,2,2,1,2,7,6,4,4,4,6,8,8,7,4,5,6,3,3,3,3,4,16,8,3,5,4,3,3,3,5,2,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,12,7,7,13,9,10,12,8,9,7,8,5,12,10,13,14,5,5,5,13,5,5,5,3,3,3,5,16,5,5,5,5,5,7,12,14,8,12,8,10,12,9,11,7,9,7,10,7,13,9,7,12,8,17,7,7,16,10,13,13,8,10,10,14,17,7,16,16,15,8,10,10,12,17,7,17,14,7,10,17,8,7,7,7,8,15,15,7,14,10,10,10,11,11,7,7,13,8,10,7,16,7,8,7,14,17,12,10,11,21,8,9,7,13,9,8,13,6,12,7,6,13,10,10,10,8,18,9,17,13,10,12,6,13,6,11,8,13,10,13,18,13,11,13,8,16,7,10,8,16,12,10,8,8,6,14,11,8,15,8,8,7,7,12,7,8,9,14,15,8,9,10,9,15,7,8,8,12,13,9,10,15,15,13,7,10,10,20,7,6,9,6,6,14,11,14,11,12,9,10,16,16,12,7,11,28,8,11,10,7,21,8,7,9,4,4,4,17,7,8,6,9,6,6,13,6,6,6,6,18,20,14,8,11,12,9,10,13,15,19,8,9,12,7,10,16,12,9,9,9,14,12,11,9,12,11,18,9,9,9,10,7,7,16,8,9,7,13,12,10,18,7,8,11,7,7,8,8,13,7,7,7,11,15,13,11,7,8,15,11,7,8,18,14,13,18,15,10,12,12,9,7,11,11,8,7,10,8,14,12,10,18,7,10,9,7,8,13,10,14,9,10,8,8,23,7,7,11,12,12,17,7,7,11,11,17,16,16,7,8,11,14,14,8,10,7,7,16,16,13,9,11,9,15,15,11,11,7,7,14,7,9,7,7,16,10,13,10,11,14,7,11,10,11,7,11,10,11,15,11,15,10,12,17,10,14,13,11,11,12,13,10,7,13,10,16,12,21,9,10,10,7,11,14,17,7,7,8,11,12,8,15,14,14,8,17,12,10,10,7,9,11,7,10,7,11,18,7,11,7,12,11,8,8,14,12,7,8,15,3,7,7,5,2,9,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,5,3,3,3,3,3,3,4,4,3,3,3,3,3,3,5,11,6,4,7,10,7,7,11,1,10,2,2,3,3,3,3,3,3,3,3,5,7,3,5,6,3,3,5,2,2,5,3,4,13,11,3,3,6,3,5,14,2,2,3,8,2,2,12,5,18,5,3,3,3,16,5,5,5,10,7,13,12,13,9,12,14,19,9,9,21,9,9,10,6,9,6,15,10,6,12,8,6,10,15,4,4,6,6,9,9,12,16,14,23,7,7,7,14,9,7,7,11,14,10,7,10,10,10,12,6,11,10,13,11,15,11,7,12,10,3,7,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,3,7,2,5,5,3,3,5,5,5,5,7,6,6,6,4,4,4,4,4,4,6,6,6,6,6,7,10,2,2,2,5,5,5,5,3,3,3,3,3,5,5,10,9,11,8,7,12,8,9,7,6,13,11,6,13,7,9,9,4,4,4,4,4,4,6,10,7,8,13,8,8,9,14,8,10,7,7,7,9,6,9,7,2,12,5,3,3,13,4,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,4,4,4,4,4,4,4,4,4,9,3,3,3,3,3,3,3,3,3,3,4,2,2,2,5,3,3,3,3,3,3,3,3,4,4,1,7,6,4,12,3,3,3,3,3,8,7,3,3,3,3,3,3,4,4,11,14,2,8,3,5,5,8,10,8,6,4,7,17,7,4,5,2,6,3,5,2,4,4,2,12,5,5,3,15,13,10,8,11,2,2,3,3,3,3,3,3,3,3,4,4,5,3,3,3,3,4,18,2,12,5,3,3,3,3,3,5,16,8,8,9,6,6,4,4,4,4,31,6,6,10,11,21,10,9,7,10,7,7,2,4,4,4,4,6,5,3,3,4,3,3,3,3,3,3,3,3,3,6,6,6,2,2,2,5,3,3,3,7,7,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,8,2,3,3,3,3,3,5,9,11,3,3,3,3,4,4,3,3,3,3,3,5,10,9,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,11,10,10,10,10,10,11,10,11,10,11,10,9,9,11,3,3,3,3,3,3,5,3,7,8,8,7,6,6,11,4,4,4,7,8,9,9,2,3,7,4,4,2,5,5,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,2,2,5,5,5,5,5,3,3,5,5,5,7,7,6,6,6,4,4,4,4,4,4,4,4,4,4,6,6,8,8,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,6,9,12,3,7,10,7,2,2,3,3,3,3,3,4,3,3,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,6,6,8,6,7,4,4,4,4,4,4,6,7,5,5,20,19,8,10,9,7,10,6,8,11,6,6,6,6,13,12,8,6,7,14,11,9,2,5,3,3,6,2,3,2,2,2,2,2,2,2,5,4,3,7,6,4,7,4,3,6,4,7,2,7,7,7,5,5,5,5,3,3,3,3,3,3,3,3,3,3,5,9,10,10,8,11,7,8,20,7,8,9,8,12,6,6,6,8,9,8,12,6,6,8,13,10,12,6,6,7,7,8,9,6,4,4,4,4,4,4,4,10,6,6,6,7,14,11,10,7,8,10,8,11,14,11,11,9,7,9,8,11,9,17,10,9,2,2,2,9,3,3,3,3,15,14,9,5,5,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,15,12,22,19,17,18,18,19,21,7,16,16,5,5,5,5,5,5,5,5,5,5,5,7,5,5,5,5,5,5,5,5,5,5,5,9,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,7,16,11,11,7,7,7,7,17,7,8,12,15,9,19,7,19,8,16,21,11,12,19,14,22,7,7,7,7,7,7,7,7,7,7,7,16,16,19,24,12,7,14,7,12,7,8,10,10,13,7,12,12,7,7,10,18,15,12,16,7,14,12,17,10,16,17,12,17,25,7,7,7,13,6,9,6,9,18,6,6,11,20,10,6,6,6,6,6,6,6,17,6,6,6,15,6,6,6,6,6,8,14,11,12,15,13,19,17,21,7,18,8,13,13,8,12,8,6,6,13,6,15,15,16,6,6,16,6,6,6,14,6,18,6,6,6,17,18,9,13,15,8,19,8,15,15,18,14,16,4,4,4,4,4,4,4,4,4,4,4,4,6,11,10,11,6,21,23,12,17,12,11,14,13,22,15,15,11,12,14,12,7,12,8,14,12,18,10,8,16,19,17,12,14,15,8,9,19,17,12,13,13,15,18,13,23,24,23,21,17,24,8,21,8,14,14,16,14,8,8,15,20,8,19,21,9,8,13,12,13,15,11,8,11,9,9,8,11,8,21,14,21,15,15,13,7,19,7,7,7,7,7,7,16,12,17,18,7,7,11,11,7,9,9,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,4,5,5,5,5,5,5,5,5,3,3,10,10,7,9,7,7,7,6,8,6,6,6,6,6,6,6,7,6,8,6,6,9,7,7,7,4,4,4,4,4,4,4,4,8,9,8,7,8,7,8,10,7,5,5,5,5,5,5,3,9,7,7,8,6,6,6,6,6,6,6,6,9,6,6,9,11,13,7,8,9,9,5,5,5,7,8,6,6,6,6,6,6,6,7,8,9,7,10,9,10,7,8,5,5,5,5,5,5,7,7,9,8,7,7,6,6,6,6,6,6,10,6,6,6,6,6,6,6,6,6,6,6,9,10,4,4,4,4,8,7,7,10,10,9,8,8,15,9,8,8,8,8,8,9,10,9,10,7,8,13,5,5,5,5,5,3,3,7,7,8,6,6,6,4,4,11,9,7,8,9,10,7,5,5,5,5,5,3,3,7,6,6,13,7,9,8,7,5,5,5,5,5,5,5,5,3,3,3,3,7,8,7,8,13,6,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,6,6,6,6,7,6,7,6,6,9,7,4,4,4,4,4,4,4,7,8,7,8,9,8,8,8,7,10,7,8,5,5,5,5,5,5,5,5,3,7,7,7,7,9,7,10,9,6,6,6,6,6,8,8,6,6,6,7,6,6,6,9,9,4,4,13,7,10,9,9,12,7,8,8,10,8,8,8,8,8,8,5,5,5,5,3,7,7,11,7,9,8,8,6,6,10,6,8,8,8,6,7,6,6,12,4,4,4,4,4,4,4,4,4,9,8,8,16,8,9,8,7,5,5,5,5,5,3,3,7,7,7,10,15,8,9,8,9,9,6,6,6,6,6,6,7,4,8,7,8,8,7,8,11,8,5,5,5,5,5,3,7,7,6,11,16,7,6,4,4,4,4,9,9,8,8,8,13,12,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,7,8,8,9,13,7,7,7,9,8,8,9,12,7,12,7,12,8,7,10,12,9,9,6,6,8,8,6,6,6,6,6,6,6,9,8,9,11,8,6,6,6,6,6,12,7,6,6,6,9,7,7,6,6,6,6,6,11,9,6,6,6,6,6,7,9,4,4,4,4,4,4,4,4,9,9,9,9,7,7,7,7,7,11,7,7,8,8,8,8,8,8,9,8,9,9,7,7,11,11,7,12,8,8,8,8,8,7,8,8,8,8,8,13,12,8,8,8,8,7,7,7,9,5,5,5,5,5,5,5,3,3,7,7,11,7,8,8,8,6,6,6,6,6,6,6,6,6,6,6,10,11,6,7,9,4,4,4,4,4,4,9,9,8,9,8,8,8,7,7,5,5,5,5,5,5,5,5,5,5,3,3,11,7,7,7,9,6,6,11,8,10,6,6,6,12,8,8,7,6,6,8,7,4,4,4,4,4,4,4,4,9,10,9,9,8,10,9,11,8,5,5,5,7,6,6,8,7,4,4,4,4,8,7,7,8,7,8,8,5,5,5,5,7,7,8,8,8,6,6,6,6,6,10,8,9,13,6,7,6,6,8,7,8,4,4,4,4,11,8,8,8,10,5,5,8,7,8,13,8,7,6,8,6,9,7,8,7,5,5,5,5,5,5,3,3,7,8,9,6,4,8,10,10,8,12,9,13,2,7,5,5,5,5,5,7,7,10,6,6,6,6,6,6,6,8,4,4,9,8,8,8,14,8,8,8,9,8,5,5,5,5,5,3,3,9,6,6,6,6,10,12,6,6,6,6,6,6,6,4,4,4,4,11,8,7,8,8,8,5,5,3,3,3,3,7,7,6,8,6,8,11,7,6,6,6,7,4,8,11,9,10,5,5,5,3,3,3,7,7,8,9,8,15,9,6,6,6,6,6,6,11,11,4,4,4,4,4,7,9,9,10,8,7,5,5,5,5,5,5,3,3,8,6,6,6,6,6,6,6,6,6,9,7,4,4,4,4,4,9,9,8,8,10,13,5,5,5,3,17,7,7,7,7,7,8,6,8,13,6,6,6,6,6,6,6,6,4,4,4,9,10,8,8,8,5,5,5,5,3,7,7,7,8,8,6,6,6,8,8,8,9,10,8,4,8,10,9,8,8,8,9,13,10,5,5,5,5,5,5,5,5,5,5,3,3,7,8,9,9,7,7,7,10,9,9,8,9,8,8,8,6,6,6,6,6,6,6,6,6,6,6,6,6,8,12,6,6,6,6,6,6,6,6,6,12,4,4,4,4,4,4,4,4,4,4,4,11,8,8,9,9,10,8,9,7,7,5,5,5,5,5,5,3,7,8,7,6,6,8,6,6,10,4,7,8,9,12,8,7,7,5,5,5,5,5,5,3,3,7,14,7,9,8,8,6,6,8,12,12,6,6,7,7,10,4,4,4,4,4,9,9,14,9,13,8,7,5,5,5,6,6,6,7,4,8,7,5,5,5,5,5,5,5,5,3,3,7,7,7,8,6,6,6,6,6,6,12,6,6,6,6,4,4,9,9,8,8,11,7,7,7,5,5,5,3,9,8,6,6,7,4,4,4,4,4,4,8,8,11,5,5,5,7,7,7,9,6,6,6,6,6,6,9,8,4,4,4,4,7,12,9,8,8,8,7,10,10,5,5,5,5,5,5,5,3,11,14,8,7,8,8,6,6,6,6,6,8,7,6,6,6,7,6,8,9,4,4,4,7,8,9,7,9,7,7,9,8,5,5,5,5,5,5,5,5,5,11,3,9,7,7,12,14,8,6,6,12,11,8,6,6,6,6,6,6,6,6,6,15,7,4,4,4,16,9,9,9,8,9,9,9,9,9,8,8,8,13,11,8,5,5,5,5,3,7,6,6,8,8,8,6,6,7,10,7,4,4,4,4,9,7,8,7,7,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,7,7,7,9,6,6,6,6,6,8,8,7,7,9,6,6,6,7,6,6,6,6,6,15,4,4,4,4,4,8,8,7,8,12,9,8,8,8,8,8,9,8,8,10,8,8,8,8,16,9,10,2,5,5,5,5,5,5,5,9,7,6,8,9,4,4,4,4,4,7,8,8,8,9,8,11,10,5,5,5,5,3,7,8,6,6,6,6,6,8,6,6,6,6,4,12,10,12,7,7,7,7,7,7,7,5,5,5,5,3,3,7,7,10,8,9,7,6,10,7,6,6,4,4,8,9,7,9,9,9,9,8,8,8,8,10,5,5,5,5,5,5,8,7,6,6,6,10,6,7,10,7,4,4,4,4,4,4,4,12,9,10,7,7,10,8,10,5,12,9,6,6,6,6,6,7,6,4,4,4,10,9,9,8,7,7,5,5,5,5,5,5,3,3,13,7,7,9,7,7,7,8,9,9,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,15,15,4,4,4,4,4,10,10,9,8,9,8,8,9,7,8,7,8,5,5,7,6,6,6,4,4,4,7,8,11,8,5,5,5,5,5,5,5,7,6,6,6,6,6,6,9,11,10,7,4,4,4,9,8,8,5,5,5,5,5,9,9,6,6,6,6,6,6,6,9,9,4,4,4,4,8,8,8,9,9,8,8,8,13,2,4,2,7,5,5,5,5,5,5,9,9,6,6,6,6,10,8,8,8,6,6,6,4,4,9,8,10,8,9,8,8,8,9,8,8,5,3,3,3,11,6,6,6,7,6,6,6,4,4,9,8,5,5,5,5,5,3,11,8,6,6,6,6,6,9,7,4,4,14,10,9,8,12,8,8,8,11,15,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,11,11,10,10,7,7,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,5,5,3,3,3,7,11,7,7,11,11,7,8,9,10,7,7,9,9,9,9,7,7,10,8,13,8,8,8,8,11,10,6,6,8,10,11,14,14,6,6,6,6,6,6,9,11,7,7,6,8,12,11,11,6,6,10,6,6,6,6,6,10,7,7,6,6,11,6,6,6,11,8,9,7,6,10,11,9,10,11,7,11,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,6,6,8,9,10,9,6,6,6,10,6,6,6,6,11,10,11,10,9,8,7,7,7,7,11,14,8,10,9,9,8,8,7,11,8,8,8,11,11,10,10,9,10,8,11,10,8,11,9,12,8,10,8,11,8,9,9,11,11,10,11,13,8,7,8,8,9,7,8,8,8,8,7,8,2,2,2,2,2,2,2,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,8,6,4,4,4,11,7,11,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,5,3,3,3,3,8,7,7,8,8,4,8,7,7,7,9,7,8,9,8,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,6,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,4,5,5,3,8,8,6,9,4,4,10,7,3,3,3,2,5,3,3,3,3,3,3,3,3,3,3,3,3,4,3,2,2,2,3,3,3,3,3,4,10,2,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,2,2,3,3,3,5,2,4,2,6,2,2,9,5,5,3,3,3,3,3,3,3,5,5,5,9,8,7,6,6,11,4,4,4,4,4,4,4,4,6,6,7,7,11,8,8,6,5,11,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,6,4,4,4,4,3,3,3,3,5,7,2,3,3,3,3,3,8,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,6,4,4,4,4,2,2,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,2,3,3,3,3,3,6,3,3,8,10,3,4,4,1,1,1,1,1,1,1,8,9,10,7,7,1,1,3,8,7,7,8,8,8,1,6,1,1,6,3,3,4,7,3,5,5,4,4,4,4,4,2,7,7,8,12,3,4,5,1,3,4,4,10,4,3,3,3,8,7,7,2,2,2,2,2,2,2,2,2,12,9,20,7,5,5,5,9,13,5,5,5,5,5,3,3,3,16,5,5,5,13,7,8,8,11,8,7,9,7,11,12,9,9,8,8,11,10,14,7,12,10,11,13,7,9,11,17,17,14,13,7,8,7,10,10,7,16,13,7,8,17,12,9,8,6,7,10,6,6,12,6,8,10,8,8,8,6,8,6,14,6,6,6,13,6,10,6,6,7,14,8,6,6,10,11,10,9,9,7,7,6,6,6,9,9,7,9,10,9,13,12,4,4,4,4,4,4,4,4,4,6,6,6,8,8,6,8,9,10,9,7,10,10,8,7,8,7,10,12,9,8,15,8,7,8,8,7,7,15,13,7,10,9,14,18,16,7,24,7,8,10,11,16,8,14,7,9,9,9,11,13,19,14,15,14,11,7,13,9,10,7,13,9,10,11,12,8,9,2,3,5,8,7,4,4,10,5,3,3,3,3,3,5,4,4,4,2,2,2,2,2,1,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,4,2,12,5,3,8,10,15,6,7,2,3,2,5,5,12,2,5,5,5,5,2,2,5,5,12,9,5,2,2,9,5,5,12,12,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,12,5,8,8,9,5,5,5,8,19,7,16,15,14,9,9,9,9,7,11,11,11,7,14,10,10,5,5,5,5,5,5,5,5,5,15,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,14,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,15,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,12,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,12,9,9,12,12,12,15,7,11,7,14,11,18,13,8,18,15,18,12,14,12,8,8,8,8,9,9,9,12,7,10,10,8,8,12,12,12,7,12,12,9,7,7,7,7,7,8,15,12,9,10,10,7,10,10,13,11,10,9,22,11,9,8,8,8,8,8,13,18,13,9,15,19,9,7,7,10,7,7,7,11,8,13,17,7,7,10,10,10,7,20,16,7,7,7,7,7,7,11,21,12,12,13,11,14,16,8,8,13,11,7,7,13,7,7,14,15,15,6,6,6,6,6,6,6,6,6,6,13,10,18,6,6,6,6,6,6,6,6,6,11,8,8,12,12,11,11,8,12,9,9,9,13,13,9,9,9,9,9,9,6,10,12,6,6,6,6,17,11,7,7,7,7,14,14,12,6,7,7,6,6,15,10,13,10,6,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,9,15,13,6,12,12,6,19,11,10,7,7,16,8,19,17,9,9,9,9,9,6,6,6,10,8,16,8,6,6,9,6,6,6,6,6,6,6,6,8,8,8,6,7,6,6,6,6,6,6,6,6,6,6,6,14,6,6,6,6,20,6,9,6,14,9,9,9,6,9,8,8,12,9,8,8,8,8,7,8,12,7,8,8,8,6,8,6,6,6,6,6,6,6,9,8,8,6,6,13,9,12,13,12,14,13,12,11,11,6,8,8,8,6,13,12,11,11,12,6,11,12,11,13,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,15,6,6,6,6,6,6,6,13,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,8,8,6,18,6,12,13,13,13,9,10,15,9,12,6,6,6,6,6,6,6,6,9,15,10,9,10,13,9,19,8,18,17,10,10,8,8,6,6,6,6,6,6,10,14,8,16,16,9,8,15,8,8,10,12,14,7,7,8,8,7,7,7,7,8,13,13,11,9,9,9,12,10,17,8,11,9,7,7,14,8,14,14,7,7,7,7,7,7,14,7,7,7,7,7,10,10,8,14,7,7,7,7,8,8,8,8,8,17,9,7,15,7,8,12,7,9,14,7,7,7,9,13,8,14,7,16,18,13,15,14,12,13,10,15,9,7,7,7,10,13,15,15,9,9,9,9,19,11,7,11,11,13,8,8,8,8,7,12,19,17,9,9,13,7,7,7,9,7,7,7,12,13,15,10,8,8,14,15,12,13,13,8,12,14,7,11,7,14,15,13,12,8,8,8,8,11,13,15,15,8,13,12,8,8,8,13,10,16,14,11,8,8,12,12,9,15,15,12,12,13,8,8,9,12,13,9,8,8,8,8,8,8,8,8,8,8,8,11,12,11,7,14,7,13,13,13,12,18,16,7,12,11,10,10,15,9,9,9,21,7,7,7,11,16,8,8,11,11,7,7,7,7,7,19,7,7,7,7,7,7,7,7,7,12,8,9,12,14,11,9,9,9,22,12,3,8,8,15,4,2,2,5,5,3,3,3,3,3,3,6,6,4,4,4,12,7,10,2,3,3,3,3,3,3,3,6,7,3,7,5,14,4,4,7,8,10,4,1,3,3,6,2,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,2,2,5,3,4,2,2,2,2,2,2,11,5,5,5,11,5,5,3,5,5,5,5,11,14,13,9,11,9,12,8,11,11,8,11,16,9,9,7,10,9,12,8,15,6,7,6,6,13,10,8,11,8,6,6,6,12,16,6,11,7,8,9,18,6,6,9,4,4,6,13,6,6,6,6,8,8,9,16,7,7,14,7,8,8,8,7,7,7,7,7,7,15,13,7,10,7,7,10,12,16,15,7,9,9,14,11,11,10,9,10,8,12,7,8,7,7,10,12,7,12,8,7,2,3,3,3,3,3,3,3,3,3,3,5,3,3,5,5,5,10,4,8,7,10,3,3,3,3,3,3,3,3,3,3,1,3,3,3,3,3,3,3,7,4,5,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,8,2,2,2,8,12,7,7,5,5,5,5,5,5,5,5,5,5,5,5,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,7,11,9,8,8,8,7,8,9,7,7,9,7,7,7,10,7,7,10,9,10,6,6,6,6,6,6,15,7,8,9,9,8,6,6,10,9,6,8,13,9,7,6,6,6,6,6,6,12,6,6,7,6,7,6,6,6,10,10,7,6,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,14,6,6,7,7,9,6,6,6,6,9,9,8,9,10,9,8,9,12,7,7,7,8,7,10,12,11,9,10,7,7,7,9,10,10,8,12,9,7,7,9,8,8,8,10,7,7,8,9,9,7,7,7,8,2,4,6,3,4,2,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,3,3,3,3,3,3,3,3,5,8,6,4,7,3,3,3,3,3,3,3,12,3,3,3,3,3,3,4,4,2,3,5,3,4,7,3,3,3,3,3,3,4,3,3,3,3,3,3,3,4,3,3,6,4,3,4,2,2,2,5,3,3,3,3,3,5,4,4,4,4,7,6,8,9,2,2,2,2,3,3,3,5,7,2,3,3,8,7,7,2,2,8,5,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,7,7,6,10,6,9,7,11,4,6,8,8,7,8,4,5,5,5,3,3,11,8,9,6,6,8,7,4,4,7,8,7,2,2,3,3,3,3,4,3,3,3,3,3,3,3,3,7,2,2,5,3,3,2,3,3,3,3,3,3,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,12,5,5,3,3,3,5,10,12,6,15,4,6,6,7,14,9,3,3,3,3,3,8,2,2,3,5,3,3,3,3,3,3,8,8,8,7,5,8,4,6,11,2,2,6,7,2,9,8,5,5,3,3,5,5,7,7,6,6,10,6,6,8,9,7,4,4,4,4,7,6,6,7,7,10,9,8,11,8,3,3,3,3,3,4,4,2,3,3,3,3,3,7,6,2,5,6,7,6,4,8,9,11,2,2,3,3,3,3,3,3,3,2,2,5,3,3,3,3,3,9,9,6,4,8,7,7,5,9,8,6,8,7,8,5,5,5,5,5,3,3,3,16,8,7,7,7,8,7,7,7,7,9,6,9,6,10,7,7,7,6,10,8,9,11,11,8,4,4,10,8,8,6,9,6,11,8,8,8,15,7,8,9,5,3,3,3,3,3,5,11,2,2,3,8,9,10,3,2,2,2,2,2,2,3,6,4,2,2,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,11,5,3,3,3,3,3,3,3,3,6,7,4,4,2,3,3,3,3,3,3,3,3,12,7,4,12,4,6,5,4,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,3,4,4,11,10,6,4,6,10,8,3,3,3,3,3,3,3,3,5,4,4,4,2,2,2,2,2,2,2,2,5,3,4,4,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,10,5,5,5,5,5,5,3,3,3,3,3,3,3,3,7,8,8,7,13,12,10,10,8,8,7,7,9,12,11,6,6,8,8,9,7,7,7,10,15,10,4,4,4,4,4,11,8,8,9,7,9,14,14,12,2,2,2,2,2,2,2,3,3,3,3,3,2,2,12,5,5,5,8,11,10,7,9,3,8,7,3,15,13,11,4,4,2,2,2,19,7,5,5,3,3,3,3,3,3,3,5,22,18,6,14,17,4,4,19,16,18,2,3,3,2,3,2,3,3,6,4,2,3,3,2,5,3,3,3,3,3,3,3,9,9,2,3,2,2,2,3,3,3,5,7,14,7,7,12,9,13,6,11,6,10,9,7,7,8,12,12,8,8,8,10,7,7,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,5,8,10,7,8,11,8,12,9,4,7,7,9,13,2,3,3,3,3,3,3,2,3,3,3,1,2,2,3,3,3,3,3,3,5,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,3,2,3,3,3,3,5,2,2,2,2,5,5,5,5,3,3,3,3,3,3,3,3,3,7,7,7,7,7,8,8,8,8,8,12,9,8,8,9,8,6,17,6,6,6,8,8,6,6,6,6,6,6,6,6,6,6,6,7,4,4,8,8,9,9,9,7,7,7,7,7,7,7,9,9,9,7,8,8,8,10,7,13,10,8,9,3,3,5,13,3,3,3,3,3,7,7,6,6,10,13,11,11,8,8,9,8,9,9,10,10,10,11,10,10,13,13,16,15,11,12,9,9,10,9,11,10,9,9,14,7,8,3,10,7,7,3,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,6,7,2,2,3,3,3,3,3,3,3,3,4,11,6,7,4,6,2,2,3,3,3,1,3,3,3,3,3,3,6,4,4,2,2,2,3,3,3,3,4,4,6,6,6,6,5,4,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,11,6,10,9,12,7,7,11,14,9,7,12,3,3,7,12,11,12,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,5,5,5,5,5,5,5,5,11,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,3,10,3,3,3,11,3,5,9,11,8,12,14,9,7,8,7,7,11,11,7,7,10,9,8,10,9,7,7,7,7,7,7,8,8,7,11,8,8,8,7,7,10,8,7,13,12,7,17,10,8,8,11,7,11,11,14,7,11,7,8,6,9,20,8,7,9,16,7,10,6,11,10,8,9,7,16,11,11,9,8,9,8,8,8,11,8,15,8,8,9,7,8,8,11,10,7,5,7,10,10,15,7,7,7,8,7,8,8,10,11,10,10,10,11,11,7,8,6,8,8,8,10,6,8,6,6,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,16,6,15,6,7,11,11,7,9,10,11,13,10,6,16,8,10,12,11,6,6,6,6,6,6,6,10,6,10,7,7,7,7,11,7,11,6,6,6,6,6,6,17,7,7,6,6,12,22,6,6,6,6,6,8,6,6,6,6,7,6,6,5,6,6,8,11,6,9,14,11,9,11,7,7,8,6,6,6,8,10,9,6,6,6,6,9,7,6,6,6,6,6,15,6,4,4,4,6,4,17,8,11,6,6,9,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,10,6,10,6,6,6,6,12,8,6,6,6,6,6,6,6,6,6,9,6,6,6,6,18,6,6,6,8,9,10,7,8,9,10,11,7,13,6,8,8,6,6,14,7,7,7,7,10,7,14,9,6,6,9,15,9,7,14,6,11,14,13,7,12,8,7,7,7,7,7,12,7,10,9,16,6,8,6,5,17,6,8,10,4,6,4,10,15,17,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,4,4,11,7,4,4,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,19,17,6,10,11,6,6,6,6,18,6,6,11,4,4,4,5,6,6,6,9,5,6,4,6,6,4,6,6,6,6,10,6,6,4,6,6,10,6,10,6,6,6,6,11,6,6,10,6,6,8,6,6,6,8,6,11,4,11,9,10,9,11,4,8,4,11,12,7,9,8,6,7,7,8,12,12,11,13,10,11,7,7,7,9,7,11,10,7,7,7,16,11,10,11,17,9,9,8,8,7,7,7,9,7,7,7,14,7,13,9,11,10,14,10,10,12,11,10,7,10,5,14,8,8,8,9,7,8,7,7,9,8,7,8,7,7,7,7,7,7,7,11,8,10,8,7,8,14,11,8,9,9,9,8,24,10,10,12,7,7,15,11,8,8,12,11,8,9,9,7,8,9,10,11,10,11,7,12,7,7,11,9,8,14,13,12,8,11,10,8,8,7,7,14,9,10,8,9,11,7,14,8,8,13,8,8,12,7,10,14,14,11,9,10,9,9,7,7,11,11,13,9,13,5,5,5,7,9,5,11,12,14,8,7,7,11,10,9,7,8,8,7,10,11,11,5,5,7,5,5,5,7,7,15,7,7,8,7,15,12,12,10,7,8,7,11,7,7,7,23,11,8,8,11,10,7,8,11,7,19,7,7,6,9,9,9,11,3,4,7,8,6,6,4,10,8,2,2]),WO=new Uint16Array([0,0,0,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,17,1,1,1,12,1,12,1,12,13,1,1,1,1,12,1,12,1,1,1,1,1,14,21,1,1,1,1,1,1,1,19,12,1,1,1,1,1,1,1,20,1,1,1,16,1,18,1,1,15,1,1,1,1,12,1,1,1,1,1,1,22,1,1,1,12,1,1,1,1,1,1,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,1,24,25,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,1,1,12,12,12,12,1,32,0,0,0,1,1,1,1,35,34,1,1,1,1,1,33,1,1,1,1,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,38,0,0,0,0,39,40,0,0,0,41,0,12,1,1,12,1,1,1,1,44,45,45,45,44,45,44,44,46,45,44,45,44,44,44,44,44,44,46,44,44,44,44,44,44,45,47,47,45,44,44,44,44,44,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,50,52,50,50,50,52,50,51,50,53,50,51,51,50,50,50,51,53,51,53,50,51,51,12,55,55,54,56,51,53,50,50,48,49,57,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,60,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,67,1,12,1,1,66,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,78,0,0,0,0,0,0,0,0,0,0,0,0,0,76,79,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,12,1,1,1,1,89,1,91,1,1,1,1,1,1,1,1,94,1,1,1,1,1,1,1,1,1,1,1,1,0,1,97,97,1,1,12,1,100,1,1,1,1,1,1,1,98,1,99,1,101,1,1,1,1,1,102,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,110,111,1,1,1,1,1,1,113,113,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,121,122,1,1,1,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,126,123,125,120,1,124,1,1,114,1,1,1,1,117,1,127,1,1,1,1,1,119,1,108,1,109,1,12,128,106,1,112,1,1,1,1,1,107,115,1,12,12,12,118,116,1,1,1,1,1,1,0,0,0,0,1,12,12,1,1,1,1,1,12,134,1,1,1,1,1,1,1,1,1,1,1,12,136,1,1,1,1,1,1,1,1,137,138,12,12,135,133,45,45,140,50,50,139,142,141,1,1,0,0,0,0,0,0,0,0,0,0,0,0,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0,0,0,1,0,144,132,1,0,1,12,12,1,1,1,1,1,0,0,0,0,0,0,0,1,148,147,20,1,1,12,12,1,20,12,12,1,1,1,1,1,134,1,1,152,1,1,1,1,153,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,1,136,1,1,152,1,1,1,1,153,1,1,134,1,1,1,152,1,1,1,1,153,1,1,134,1,1,1,1,1,1,1,1,134,1,1,1,1,1,1,1,1,1,1,1,160,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,1,1,1,1,1,134,1,1,1,1,152,1,1,1,1,153,1,1,1,134,1,1,152,1,1,1,1,164,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,167,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,154,158,158,12,1,12,166,1,1,1,1,1,158,158,158,154,1,1,1,157,158,161,165,1,1,1,1,157,157,1,1,156,154,154,157,170,156,170,1,1,168,1,156,155,157,1,1,1,1,157,1,159,1,1,1,12,1,162,1,162,1,1,1,162,161,163,169,156,154,1,1,1,1,1,1,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,173,172,173,172,172,172,172,174,174,172,173,172,173,172,172,12,12,12,12,12,1,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,193,1,1,1,1,12,199,200,201,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,151,1,1,1,1,1,1,1,1,1,1,1,196,1,1,1,184,1,210,1,1,1,208,1,1,205,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,12,1,1,1,1,1,1,1,1,190,1,1,1,186,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,182,1,1,1,1,1,1,1,191,1,1,1,1,195,1,1,1,1,171,1,1,189,1,1,1,192,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,180,1,12,1,1,12,1,1,1,1,183,1,1,1,188,1,203,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,209,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,194,1,1,1,1,1,12,1,1,1,1,1,1,1,1,176,12,1,1,1,178,12,1,1,1,1,1,1,1,198,1,1,1,1,1,1,1,1,1,1,177,1,1,1,1,1,1,204,1,1,1,181,1,1,1,187,1,12,1,1,12,1,1,1,1,1,1,1,1,1,1,191,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,175,1,1,1,1,1,1,1,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,206,1,1,1,1,1,1,1,1,1,1,1,1,1,207,1,1,12,1,1,1,1,179,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,197,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,12,1,1,1,1,1,1,1,1,1,202,1,1,12,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,220,0,0,0,0,0,221,0,0,0,0,0,0,1,12,1,1,1,225,1,1,1,0,226,223,224,1,1,1,1,1,1,231,1,233,1,1,1,1,1,1,1,1,1,1,1,229,1,1,1,1,1,235,1,1,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,234,1,1,1,12,1,1,1,1,230,1,1,1,228,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,232,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,241,13,1,1,1,12,12,238,239,1,1,1,1,240,1,1,12,1,1,1,1,1,1,1,242,1,1,12,16,1,1,1,1,1,1,1,243,1,1,1,12,12,1,1,1,1,1,243,12,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,252,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,256,256,1,0,0,0,0,0,1,12,0,0,0,0,0,0,0,0,172,261,262,1,12,1,1,1,1,12,264,1,1,263,1,1,266,1,1,1,1,1,1,1,1,1,0,1,1,1,271,272,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,12,1,0,1,0,0,0,0,1,0,1,0,1,1,1,1,1,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,12,0,283,0,0,284,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,12,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,60,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,1,1,0,308,0,0,0,0,0,0,0,0,0,310,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,327,327,328,327,0,185,1,1,13,323,1,321,0,0,0,0,1,0,0,0,324,1,1,329,1,205,1,1,1,1,1,322,1,319,1,325,1,317,1,326,1,318,1,1,1,1,1,1,1,12,1,1,1,12,1,12,320,320,1,1,1,316,184,1,1,12,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,12,1,1,1,1,315,1,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,332,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,266,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,372,372,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,364,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,1,340,351,1,1,339,374,1,345,1,1,337,369,1,1,355,336,341,1,1,1,348,379,357,1,1,1,1,1,1,358,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0,367,371,0,0,79,1,1,0,365,342,378,343,346,353,1,368,0,1,0,79,362,360,1,0,0,1,1,1,0,0,0,0,381,1,1,352,1,79,1,0,1,1,1,384,1,0,0,79,359,0,1,338,1,1,1,0,1,1,361,1,0,1,1,1,0,1,386,349,1,1,0,1,0,0,377,0,1,1,1,79,370,1,1,366,363,1,1,1,1,1,1,1,1,1,1,1,344,1,1,1,1,1,1,1,1,1,1,1,376,0,79,1,1,1,1,0,1,1,1,1,1,1,0,0,1,1,380,1,1,1,0,0,383,0,0,0,1,356,1,0,79,382,1,0,0,0,0,385,1,1,0,0,1,0,1,0,354,0,350,0,1,1,1,0,1,1,0,373,347,375,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,1,1,400,400,1,1,12,12,1,400,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,412,1,1,0,1,1,1,1,205,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,430,430,1,1,0,0,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,442,1,441,1,1,1,1,1,1,1,1,445,1,12,12,1,1,1,1,1,12,1,1,1,1,453,1,1,1,455,1,1,1,1,1,1,1,1,1,1,452,1,447,1,1,1,1,435,1,1,1,1,1,1,1,1,448,12,1,1,1,1,454,1,1,1,449,444,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,317,1,433,1,1,12,451,1,1,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,437,1,1,1,1,1,1,1,1,1,1,1,454,1,1,1,1,317,1,450,1,1,1,439,1,1,1,1,1,440,1,456,443,1,1,1,1,1,438,1,1,1,1,1,1,1,1,1,434,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,446,1,1,1,1,1,1,1,12,1,1,1,1,1,436,1,1,1,1,1,1,1,220,457,1,1,1,1,1,12,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,0,1,0,1,0,1,1,0,0,0,462,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,466,466,466,466,466,466,466,0,466,466,466,466,466,1,466,466,466,0,466,466,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,471,470,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,475,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,468,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,469,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,477,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,474,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,478,473,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,472,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,476,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,1,1,1,1,1,1,1,488,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,198,198,1,492,1,1,1,491,1,1,1,1,487,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,489,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,493,1,1,490,1,1,1,1,1,1,1,1,372,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,494,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,505,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,12,1,507,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,12,12,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,1,0,0,0,0,0,0,0,1,0,0,1,0,1,1,1,1,0,0,0,1,0,0,0,1,60,1,1,12,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,526,1,1,1,1,1,1,1,527,1,1,1,1,1,1,1,525,1,1,12,1,529,239,1,1,12,12,1,1,12,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,533,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,539,1,1,1,1,1,1,1,1,1,1,1,1,1,1,132,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,107,1,1,12,1,1,1,12,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,548,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,144,1,1,1,228,1,1,12,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,1,572,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,577,1,220,1,328,1,1,1,1,1,1,1,1,1,0,0,578,1,1,1,1,0,580,0,79,0,579,0,1,1,1,0,1,1,1,1,1,1,12,0,0,0,0,1,0,0,0,0,0,0,586,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,582,582,0,585,583,582,582,582,582,582,587,582,582,591,582,582,582,582,582,582,582,582,582,582,588,585,582,582,585,582,582,582,582,582,582,582,582,582,582,582,582,582,583,582,582,582,582,582,589,582,582,582,582,582,582,0,0,0,1,590,1,1,1,1,584,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,12,595,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,12,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,12,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,65,280,306,411,535,0,4,68,236,254,282,307,334,388,413,0,499,519,536,597,9,0,61,88,398,409,429,575,0,497,518,532,612,0,30,6,0,461,500,602,560,70,0,7,285,255,389,463,416,538,79,598,0,576,309,418,465,9,105,288,506,6,30,0,311,79,391,79,483,10,6,131,248,275,0,613,509,0,563,0,64,6,6,251,95,2,432,399,410,596,0,6,0,6,286,103,6,561,501,540,0,464,390,273,287,8,71,104,599,543,392,312,300,419,146,74,290,546,510,601,564,335,330,479,6,75,149,11,0,249,522,547,565,514,551,570,611,36,6,260,295,333,304,218,30,528,553,218,42,216,265,296,305,406,423,481,274,0,73,562,0,403,417,299,79,247,79,0,581,545,504,292,421,79,393,387,0,0,0,9,555,571,217,0,424,407,531,516,573,615,85,218,43,297,396,425,569,0,511,293,276,79,215,80,28,390,30,6,394,331,303,604,592,524,550,513,0,258,81,30,405,422,0,30,426,0,219,593,517,9,408,427,218,248,86,222,594,574,557,482,428,397,250,227,87,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,620,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,82,0,129,0,0,84,549,0,0,0,0,0,0,0,27,0,552,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,503,0,257,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,294,0,0,0,0,0,0,0,617,0,0,0,0,0,616,0,0,0,0,0,0,0,0,0,0,0,0,0,0,395,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,0,0,0,0,0,0,495,0,0,0,0,0,0,404,0,0,0,0,0,0,0,0,0,0,0,0,0,211,0,0,0,0,0,0,0,0,0,0,515,0,0,0,0,0,0,0,0,0,0,0,0,496,0,0,0,0,0,0,0,0,0,0,0,0,0,0,269,281,0,0,0,0,0,530,277,0,0,0,0,0,0,0,0,0,0,0,0,0,512,0,0,0,0,0,0,0,0,0,0,0,458,0,0,0,314,0,0,0,0,0,0,253,0,0,0,0,0,0,23,0,0,0,0,568,0,0,0,0,600,521,0,0,0,0,244,0,0,0,0,0,0,0,0,0,480,0,0,0,0,0,62,0,0,0,267,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,0,0,0,0,0,279,610,0,72,0,0,0,0,0,0,0,0,0,619,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,0,278,0,0,0,0,0,0,567,0,0,0,0,0,0,523,0,0,0,0,0,0,0,0,0,566,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,0,502,0,0,0,0,0,554,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,83,0,0,0,0,0,0,0,0,0,0,0,0,486,0,485,0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,459,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,289,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,537,0,0,0,0,0,0,0,0,298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,237,0,0,0,0,0,0,0,0,0,0,84,0,606,0,0,0,0,0,0,0,0,0,0,0,0,245,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,609,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,520,0,0,0,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,498,0,614,0,0,431,0,0,0,0,0,0,0,0,0,0,0,0,402,0,0,0,544,0,93,0,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,29,92,0,0,0,0,0,0,0,0,0,0,0,0,291,0,0,0,214,0,0,0,0,0,0,558,0,270,0,0,130,0,0,0,0,0,559,0,0,0,0,0,0,0,414,420,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,313,0,0,0,0,0,5,0,0,0,0,0,0,0,301,0,0,0,0,0,0,0,0,0,0,0,0,0,534,0,0,0,415,0,0,401,0,0,0,0,0,0,603,0,0,0,541,0,0,90,0,542,0,0,0,0,0,0,0,0,0,0,508,460,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,268,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,608,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,607,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,618,0,0,0,0,0,556,0,0,0,0,0,0,0,0,0,0,302,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,605,0,0,212,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,623,623,623,623,623,623,623,622,624]),FE="orgmilcomschnetedugovdrrformsfeedbackofficialaccoorgmilschnetgovmagazinemediaunioncargopilotgroupcaarespressworksaerodromeworkinggroupair-traffic-controlaircraftaccident-preventioneducatormarketplaceambulanceinsurancecateringairportrepbodyenginesoftwaremodellingair-surveillanceconsultingchartertrainermaintenanceservicesdesignflightskydivingfreightassociationstudentgroundhandlingdgcafuelclubtaxicrewshowballooningexpresstraderbrokerauthoragentsairtrafficjournalistsafetyconsultantmicrolightaccident-investigationparachutingequipmentproductionfederationrecreationscientistnavigationengineertradingglidingleasingresearchpassenger-associationentertainmentparaglidinghangglidingaerobaticrotorcraftemergencycertificationgovernmentaeroclubexchangelogisticschampionshiphomebuiltcouncilconferencecontrolairlinecivilaviationjournalorgcomnetedugovcoorgcomnomnetobjofforgcomnetuwukiloappsframerorgmilcomnetedugovcoradioorgcomnetcommuneedogpbcoitgvorgedugov*spreviewfrontendrelayononstagingupid*mtls*privatelinktypedreamdeveloperbravemochawindsurfaivenmirenupsunwnextbegetngrokclerkwale2bwebcsbrunputerflutterflowspawnbaseshiptodaymagicpatternsnetlifyondigitaloceanrailwayhostedclaudehasurabotdashvercelgithubluyanigadgetreplitcloudflaretelebitedgecomputeevervaultdetaexponyatnoopencrpplxzeaburwasmerframerzeropsconvexmedusajsspritesonherculeseasypanelstreamlitsnowflakemesserliloginlinehackclubnorthflankbase44corespeedadaptableleapcellngrok-freeclerkstagelovableon-fleek*us-west-3ap-south-2us-central-2us-central-1eu-central-1ap-south-1us-west-2us-east-2eu-north-1ap-north-1us-west-1us-east-1*rcloudintsegorgmilcomgobbetnetintedugovturmusicasenasamutualcoopip6uriurnin-addre164homeirisgovdixdaemoncloudnssthwien*inexexkunden4accogvormymyspreadshop4lima2ixortsinfofuturecmsfuturehosting12hpprivfuturemailinglima-cityfunkfeuer123webseitednshomemelmyspreadshopcloudletswasantqldvicactnswtascatholicwasaqldvictasvpsidwasantozqldorgcomvicasnactnetedugovnswtasconfhrsncomairflowlambda-urltransfer-webappairflowtransfer-webapptransfer-webapptransfer-webapp-fipstransfer-webappeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1privatenotebookstudiolabelingnotebookstudionotebooknotebook-fipslabelingnotebookstudionotebook-fipsnotebookstudio-fipsnotebook-fipsnotebookstudionotebook-fipsnotebookstudioeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2experimentsus-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1onrepostsagemakercopporgmilcompronetintedugovbiznameinfoshoprsorgmilcomnetedugovbrendlyresolvenzauscotvstoreorgcomnetedugovbizinfoidacaicoittvorgmilcomschnetedugovinfocloudezproxyacmymyspreadshopkuleuvenwebhostingtransurl123websitecloudnsinterhostsolutionsddns5476103298edgfacbmlonihkjutwvqpsryxzbarsycoororgcomedumyftpno-iporxcloud-ipfor-somemmafanfor-morewebhopselfipjozidyndnscloudnsdscloudfor-thefor-betteractivetrailcoeconorestooteorgcomeconeteduassurmoneyafricaarchitectesrestaurantloisirstourismavocatsinfoagrounivcoorgcomnetedugovtvdeportesaludtksatorgmilcomwebgobnetinteducienciaboliviarevistacooperativaempresanombreindustriamusicapatriamedicinademocraciapoliticapuebloindigenaplurinacionalarteblogwikiinfoagrotransportenoticiasprofesionalacademiaeconomiaecologiamovimientotecnologianaturalsimplesitecepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesmscepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesms*biaamfmtcmptvfeirasampajampanatalbelemananiradiog12medindfndbmdtrdthepoaggfjdfdefinfenflegsegongengcngorgzlgslglogppgmillelqslcimcomnomadmjabimbbibbsbabcrectecsjcetcpscpvhudieticriapipsiecnbiorioecogeoteoodoproatoartfstmatvetdetbetnetcntnotfotgrueduajuespappreptmpemparqsrvadvdevgovntrturagrjorfarjusmusdesvixxyzcozfozslzbhzmaringasantamariacampinagrandegoianiasorocabafloripasaobernardocuritibaboavistarecifeaparecidasaogoncasalvadorcuiabamorenamacapalondrinacontagemsocialfortalmaceioleilaoosascoriobranconiteroi9guacutcheblogflogvlogwikitaxicoopmanauspalmascaxiasjoinvillebaruericampinassantoandreribeiraoriopretoweorgcomnetedugovv0windsurfshiptodaycloudsitecoaccoorgnetgovofmilcomgovmediatechzacoorgcomnetedugsjgovmydnspenfnlabnbmbgcbcqconcontnuyksknsmyspreadshopno-ipawdevboxbarsyonidatemfuinabusavinstanceseceuguukussryzespawncsxcloud-ipmyphotosfantasyleaguetwmailcleverappsscrappingccwucloudnsftpaccessgame-serverccgovobjectsrmalpgcust*svcalp1aeappenginermalpgmyspreadshop4lima2ixsquare7cloudscale123websitefirenet12hpflowgotdnslinkyard-cloudcloudnslima-citydnskingobjectstorageedaccogoorusorgcomnetinteduaéroportxn--aroport-byaassogouvcomilgobgovcloudnses-1eu-west-1us-east-1euvipit1eurarubait1s3lbwebsites3websiteru-spbru-mskelasticcsrunstnukukcaukusnl-ams-1fr-par-1fr-par-2functionsnodess3ddlwhmrdbfnck8sifrs3-websitecockpitscblmgdbdtwhkafkpubprivs3ddlwhmrdbk8sifrs3-websitecockpitscblmgdbdtwhkafks3ddlrdbk8sifrs3-websitecockpitscblmgdbdtwhkafkk8sscalebookpl-wawfr-parnl-amsbaremetalsmartlabelinginstancesdechk2kuleuvenlaravelvoorloperurownoxazapscwhstgrvaporobservablehqelementorantagonistreclaimjoteluluencowaydiademjelasticmatlabmagentositetrendhostingaxarnetperspectajenv-arubajelejoteravendbemergenttrafficplexconvexkeliwebserveboltbegetcdnstaticson-rancherprimetelonstackitunison-servicesdnshomelinkyardbarsyjelecloudnscocomnetgovmycn-northwest-1cn-north-1s3s3-accesspoints3-websites3s3-accesspointrdsdualstacks3-deprecatedemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspoints3s3-accesspointrdsdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicn-northwest-1cn-north-1cn-northwest-1ebcomputeelbcn-north-1airflowcn-northwest-1cn-north-1oncn-northwest-1cn-north-1amazonawssagemakeramazonwebservicesdirectasgdsdhehahljlnmhbacscahqhshhihnlnynsnmofjbjzjxjtjhkcqtwgsjssxnxjxgxxzgz網絡网络公司orgmilcomnetedugovxn--55qx5dcanva-appsxn--io0a7iquickconnectcanvasitekhsjxn--od0algmyqnapcloudsrvrlessclustersrealtimestorageleadpagescarrdcrdorgmilcomnomnetedugovhidnssupabaserdpareplmypiumsoxmitotaplpagesfirewalledreplitowodevwebview-assetsvfswebview-assetss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecateds3-websites3-object-lambdaexecute-apis3s3-accesspoints3-websites3-accesspoint-fipss3-fipss3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipss3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9vfss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1us-northeast-1ap-southeast-1me-south-1af-south-1ap-south-1ap-southeast-7us-west-2eu-west-2ap-east-2us-east-2ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ap-southeast-6ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1mrapaccesspoints3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3eu-west-3ap-south-2eu-south-2computes3-ap-northeast-2elbrdss3-ap-east-1s3-sa-east-1s3-us-gov-west-1s3-eu-central-1s3-ca-central-1eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3s3-website-us-west-2s3-website-eu-west-1s3-external-1eu-central-1me-central-1ca-central-1il-central-1s3-us-west-1s3-eu-west-1s3-website-sa-east-1s3-website-ap-southeast-2ap-northeast-1ap-southeast-1s3-us-west-2s3-eu-west-2me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2s3-website-ap-southeast-1s3-1s3-globals3-ap-northeast-3eu-north-1airflowap-southeast-2s3-us-gov-east-1s3-fips-us-gov-east-1s3-me-south-1s3-ap-south-1ap-northeast-2s3-website-us-west-1ap-southeast-5s3-eu-north-1s3-ap-southeast-1s3-website-us-gov-west-1compute-1s3-eu-west-3us-gov-west-1s3-website-ap-northeast-1us-gov-east-1s3-fips-us-gov-west-1s3-website-us-east-1s3-ap-southeast-2ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3-us-east-2s3-ap-northeast-1authauthauth-fipsauth-fipseu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1rservicesbuilderstg-builderdev-builder*ociocpocsdemoinstanceeu-west-3eu-south-2ap-southeast-3ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1previeweu-4us-4us-1eu-1us-2eu-2us-3eu-3appspaasrag-cloudrag-cloud-chjcloudjcloud-ver-jpcdemonodebalancermembersipeuxvsoncillaocelotonzayalilynxsphinxfentigercustomercaracalo365cloudstaticxendevapp001testcode-builder-stgplatformapimediasiteprojedrydpagesjsu2u2-localx0desazacncoitrueu4uhkukgrbrushatenadiarymyspreadshopfrom-flfrom-wvwebspace-hosttheworkpchatenablogservesarcasmapplinzisakuratanwixsiteappchizigiizeis-into-carsdnsiskinkyadobeaemcloudis-a-therapistpgfogmyvncdojinis-an-actress1kappfldrvkozowqa2jpnmexprgmrfirewall-gatewaydynnscafjsfbsbxooguyxnbayfrom-gawoltlab-demois-a-anarchistwiardwebteaches-yogadattowebtb-hostinglive-websiteservegamegotpantheonfrom-nhsubsc-payfrom-ohvipsinaappfrom-cadyndns-officehomelinuxfrom-mahercules-appservebbsstreakusercontentfrom-okfrom-wyfastly-terrariumis-a-llamaqualyhqportalserveexchangeon-vaporvivenushopciscofreakgrayjayleaguesmetaaiusercontentfrom-iais-a-libertariansaves-the-whalestaveusercontentyolasiteoperaunitepoint2thisis-a-catererlinodeusercontentfrom-vagithubusercontentsells-for-lesshosteurcanva-appsplaystation-cloudddnsfreefrom-pafrom-prfrom-waddnskingoutsystemscloudhotelwithflightmydattois-a-nascarfanmydbserverminiserverdamnserverservehumouris-a-playerfrom-nvfrom-nmemergentagentgentappsamplifyappfrom-kyis-an-accountantnfshostserveircfrom-akpythonanywherestackhero-networkpostman-echolikescandydyndns-mailobservableusercontentserveftpfreeboxosfrom-utcdn77-storageamazonawsneat-urldyndns-serverlinodeis-a-teacherfrom-vtgleezemythic-beastsus1-pleniteu1-plenitla1-plenitpaywhirlservecounterstrikejdevcloudhealth-carereformis-into-animegoogleapisis-a-painterafricaisa-hockeynutatmetais-an-actora2hostedis-a-democratdatadetectest-le-patrondigitaloceanspacesis-a-designeris-a-hunterlinodeobjectstemp-dnsissmarterthanyoufrom-arsimplesiteevennodetownnews-stagingis-a-liberalgooglecodejelasticservemp3stdlibqualyhqpartnerdyndns-free1cooldnsest-a-la-masiondrayddnsdynuddnsfrom-orfrom-miis-a-bloggerfrom-himydobisscanvacodeis-an-engineerest-a-la-maisonupsunappdevinappswafflecellmyasustorwpenginepoweredfrom-ctservep2psame-appmyshopblocksthingdustdatalikes-piediscordsezis-with-thebanddev-myqnapcloudlpusercontentis-leetshopitsite3utilitiesis-a-personaltrainersinaappladeskis-a-cheflogoipselfipbase44-sandboxnospamproxyalibabacloudcsmesswithdnsauthgearappsiamallamawithgooglelutrausercontentmochausercontentframercanvasmytabitdyndns-homew-credentialless-staticblitzcpserverdiscordsaysis-a-nurseappspotatlassian-isolated-3premotewdfrom-mtwixstudiocode0emm180rmyactivedirectoryawsappsmytuleapdnsabrpolyspaceqbuserrenderbuiltwithdarkboutirgotdnsabrdnsdopaascanva-hosted-embedawsglobalacceleratorhomesecuritypcmyiphostditchyouripclever-clouddyndns-ipon-aptibleis-a-musiciansecuritytacticsappspaceusercontenthomeunixstrapiappsame-previewcf-ipfsmycloudnaselasticbeanstalkis-certifieddontexistkasserverik-serverdrive-platformatlassian-3pfirebaseappherokuappawsapprunnerbarsycenteris-a-cubicle-slaveservehttpmyshopifyis-a-guruquicksytessiiitesorsitesmagicpatternsappis-a-cpameteorappfrom-wiis-a-rockstarbumbleshrimpdattolocalreadthedocs-hostedfrom-rifamilydsdyndns-picsplesknsbplaceddnsaliasdynaliasdyndns-remotedoomdnsip-ddnsblogdnsis-a-doctorroutingthecloudamazoncognitobarsyonlinedsmynasddnsgurucloudflare-ipfsdeus-canvasfrom-idsmushcdnpagespeedmobilizerdyndns-at-homeunusualpersonhosted-by-previderis-a-republicandyn-o-saurstreamlitappworkisboringonthewificprapidqualifioappis-uberleetis-slickgetmyipwpdevcloudtypeformdyndns-at-workgentlentapismynascloudw-corp-staticblitzfrom-ingeekgalaxyservebeerfrom-mdonrenderspace-to-rentaivencloudappspacehostedonfabricawafaicloudcodespotblogspotatlassian-3p-us-gov-modfrom-ndfrom-msis-a-techieis-a-studentcustomer-ociis-a-photographerdurumisfrom-ksmassivegriddyndns-wikiis-an-entertaineris-a-hard-workermysecuritycamerafrom-mnrackmazedyndns-blogis-a-bulls-fanwritesthisblogfreemyipsimple-urlfrom-sdreservdauthgear-stagingest-mon-blogueuris-into-gamesrice-labsxtooldevicesakurawebis-an-anarchistoraclecloudappsdyndns-worksells-for-urhcloudfrom-dcfastvps-serverwpmucdnis-a-geekscrysecfrom-txis-into-cartoonsmodelscapetrycloudflarelocaltonetstreak-linkbalena-devicesfrom-njforgeblocksfreebox-oswebadorsitefrom-ncdoesntexisthobby-sitestreaklinkshomesecuritymacownprovidertuleap-partnersdattorelaywphostedmailalpha-myqnapcloudservequakeis-a-socialistservehalflifepivohostingdynuhostingquipelementsw-staticblitzdyndns-webfrom-deproject-studyaliases121is-not-certifiedhercules-devis-a-financialadvisorservepicsis-a-greenloseyouripfrom-ilwithyoutubemwcloudnonprodwiredbladehostingdnsdojofrom-tnpixolinomyqnapcloudis-an-artisthostedpiis-a-landscaperauiusercontentoaiusercontenton-forgeis-a-conservativedreamhostersnet-freaksapps-1and1is-goneencoreapifastly-edgefrom-nesalesforcefrom-scdeployagentoraclegovcloudappsfrom-alis-a-lawyercechirevultrobjectsstufftoreadisa-geekddnsgeeklovableprojecttry-snowplowfrom-moblogsyteis-a-bookkeepernogmyforumravendbmyboxdeelementoredsaacficogoorinforgcomgobnatneteduidstoreorgcomnetintedudevnomepublorgcomneteduathgovtestscalculatorspaynowinfoquizzesresearchedcloudnsfunnelsassessmentsjscaleforcetmacltdorgmilcompronetgovbizpresseklogesrsccloudcustomfltusrcloude4corealmgovmunicontentproxy9metacentrumdyndyndyndnsdynpagespages-researchitionoccustomercomymyspreadshopipv64diskussionsbereich4limacomrub2ixfirewall-gatewayddnssspdnsbarsykeymachinesquare7myhome-serverspeedpartnercommunity-proschuldockxenonconnectgünstigliefernbwcloud-os-instancedyndnssecmy-routerxn--gnstigliefern-wobin-butterl-o-g-i-nisteingeekin-dslin-berlinin-brbfuettertdasnetzleitungsenin-vpnlcube-serverdyn-ip24logoipdyn-berlinruhr-uni-bochum12hpgoipsrvdnsfruskygit-repossvn-reposinternet-dnsgünstigbestellenhome-webserverxn--gnstigbestellen-zvbbplacedheimdnscosidnswebspaceconfiglima-citydyndns1istmeinvirtualuserschulplattformmy-gatewayddnsseclebtimnetztest-iservmein-iservvirtual-userhome64iservschuletaifun-dnstraeumtgeradeschulserverdynamisches-dns123webseitednshomehs-heilbronndnsupdaterbssgraphicdwadpdwdaepeweaawapaafpfwfabwbpbacwcpcciwebuserapiobjectsidsiskospockkimodorikerbonesteamsparisjanewaypicardglobaltarpitreedpikekiraworfsulukirkarchertuckerhackercanarywesleystagingprereleaset3r2lpbravepanelngrokiservstglclcrmerpflypagesbarsyvivenushoplocalcertlocalplayerbearbloggatewaydeno-stagingis-not-ais-a-goodbotdashvercelmocha-sandboxplatter-appreplitgithubpreviewworkersinbrowserevervaultdetais-ahrsndenoxmitmodxmyaddrstorageapipayloadgrebedocruncontainersstgstagelclstageloginlineis-a-fullstackleapcellngrok-freeis-coolstoragewebharemediatechlibp2pdiscourseimaginecomyspreadshopstoreregbiz123hjemmesidefirmcoorgcomnetedugovsldorgmilcomwebgobartnetedugovtmorgpolcomsocartnetedugovassoagrondiscoodontk12medcuegyecpaabgengorgmilgalsaltulcomadmesmgobpubdocmonfindgnriouioproartlatvetnetfotedulojgovntrturibrbarxxxofficialbasechefprofmktgpsictechinfoarqtcontdentrrpppsiqgit-pagesritmedfieorgcomlibprieduaipgovriikmeactvsportorgmilcomscieunnetedugovnameinfopintouchtawktotawkmyspreadshoporgcomnomgobedu123miwebcomputeorgcomnetedugovbiznameinfocognito-idpeusc-de-east-1onjelasticnxaspdnsbarsydirectwpdeuxfleurstransurldogadoprvwcloudnsamazonwebservicesdnshomeuserpartycokoobinmkmstorjfidemopaasdymyspreadshopalandkapsiikixn--hkkinen-5wacloudplatformdatacenterhäkkinen123kotisivuidacorgmilcompronetedugovbiznameinforadioorgcomneteduuserexperts-comptablestmmyspreadshopgretaprdcomnomynhccifbxoshuissier-justicenotairesaeroportfreeboxoson-webavocatassoportgouvkdnschirurgiens-dentistes-en-franceavouesfbx-os123sitewebveterinairechirurgiens-dentistespharmacienchambagrimedecinfreebox-osdediboxgoupilemszicpyicpvicppleysheezypagesedugovcnpyorgcomcybllcpvtnetedugovtnxonlineschooldaemond6atcopanelorgnetplybotdashstackitkaasorgmilcomnetedugovbizmodltdorgcomedugovcoorgcomneteduappwriteacorgcomnetedugovcloudtranslateusercontentorgcomnetedumobiassoorgcomnetedugovbarsysimplesitediscourseindorgmilcomgobneteduorgcomwebnetedugovguaminfonxhra教育敎育網絡网絡组織組織网络網络组织組织公司政府個人个人箇人ltdorgcomincneteduidvgovxn--uc0ay4axn--55qx5dxn--mk0axixn--io0a7ixn--uc0atvxn--zf0avxxn--lcvr32dxn--od0algxn--wcvs22dxn--gmqw5axn--od0aq3bxn--mxtq1mxn--ciqpnxn--tn0agxn--gmq050iorgmilcomgobneteduiservwp2tempurlmircloudfreesitewpmudevmyfastgadgetcloudaccessjelehalfboltfastvpsemergenteasypanelopencraftizcombrendlynamefromrtpersoadultmedorgpolrelcomproartnetedufirminfoassoshopcoopgouvtmcomediahotelforumvideosportorgsexagrargameslakaseroticaerotikatozsdereklamcasino2000filmsuliinfoboltshopprivnewsszexcityutazasjogaszkonyveloingatlaneacaicogoormyᬩᬮᬶmilwebschnetkopbizzonedesaponpesxn--9tfkymyspreadshopgovmytabittabitorderravpageaccok12idforgnetgovmuniltdplcaccotttvorgcomnetmeca6g5gpgamubacaicniocoukuptverdruscsdelhiindorgmilcomwebnicfingenpronetintedugovresbizbiharbarsyinternetbusinessschooltravelsupabasealumnigujaratfirminfoaeropostbankcoopindevscloudnsno-ipbarsybarrell-of-knowledgebarrel-of-knowledgensupdategroks-thisdnsupdatefor-ourknowsitalldvrcammittwalddynamic-dnsv-infowebhopselfipdyndnshere-for-moreilovecollegemayfirstforumzcloudnsmittwaldservertypo3servergroks-theeusekd1uk0cdndyndnsidrawsainaueuapjpusstagemocksysdevicesclientcustreservdcustdevdisrecprodtestingcobeebyteutwenteboxfusebravepstmndedynngrokorgmilcomnomhzcnetedugovqcxqzzbarsythingdustmo-siemensrb-hostingprotonetfh-muenstergitbookbluebitecloudbeesusercontentnodeartkiloappsforgerockdarklangresinstagingapigeebubbleb-datascryptedhypernodedappnodepantheonsitegitlabgithubkeeneticvirtualservercleverappshostyhostingon-rioedugitticketstelebiton-acornwixstudioon-k3sicp0icp12038jeleqotobigvlairbubbleappsmyaddrstolosmyrdbxwebflowdrive-platformbeagleboardhasura-applolipopdefinimavaporcloudmusicianwebflowtestazurecontainerresindevicereadthedocsloginlineeditorxmoonscalesandcatsbasicserverwebthingsbrowsersafetymarkbeebyteappbitbucketidaccovistablogorgschnetgovxn--mgba3a4f16axn--mgba3a4fraarvanedgeايرانایرانjclaspeziapdudcefegelemeperetevebacanatavaparasabgagfgogrgpgalclblimfmrmcbmbvbfclcmcvcrcpcchlimifibicivipirisimncnbnanenrnpntnnolomobocoaogorosopotoptvtatctbtmtltotpulunutpspapaqsvpvvvtvavvrtrsrprgrfrcrbrarorkrvstsssbscsmsispzczbzbozen-suedtirolmyspreadshopxn--bulsan-sdtirol-nsbxn--valledaoste-ebbtrentinoaltoadigetrentin-sued-tirolxn--forlcesena-c8axn--forl-cesena-fcbxn--bozen-sdtirol-2obtriestetrentinsuedtiroltrentino-s-tirollecceudineaostesienaparmaluccapaviagenoapaduaaostamonzaabruzzoternirietiturinmilanbozenlaziofermoleccocuneonuoropratola-speziavdataaligfvgpugmolcalcamlomumbsicpmnvenvaoedugovabrsarmaremrbastoslazibxosfirenzetrentinosüdtirolval-d-aostavalle-aostamessinacremonaravennatoscanatrentin-suedtirolbolognacalabriaurbinopesarofriuli-v-giuliaogliastraxn--valle-aoste-ebblaquilaandriatranibarlettasyncloudtrentinosudtirolxn--valle-d-aoste-ehbaostavalleyvalled-aostatrentino-alto-adigevallee-d-aostexn--balsan-sdtirol-nsbpistoiasicilialucaniacataniaiserniaperugiabresciaveneziagorizialiguriaimperiabulsan-suedtirolbalsan-suedtirolbarlettatraniandriaxn--trentino-sdtirol-szbforlì-cesenatuscanyvallée-d-aostemantovavallée-aostecasertapiemontevalleaostaval-daostafriulivgiuliatrevisoforli-cesenavalléedaosteferrarapescaravald-aostatrentino-altoadigefriuli-vegiuliavallee-aostecarboniaiglesiastarantomediocampidanovalleedaostetrentinosud-tirolcampobassotrentinsüd-tiroltrentinosüd-tirolmonzabrianzatrentino-südtirolxn--trentino-sd-tirol-c3bpotenzacosenzavicenzaemiliaromagnavenicefrosinonemarchepordenonetrentinosued-tirolvaresemolisevalléeaostefriuli-veneziagiuliabasilicatalatinaanconasavonaveronamodenaaquilabiellabolzano-altoadigepugliafoggiaumbriatrentino-stirolgenovapadovamateranovararagusapiacenzatrentinostirolvalleeaostetempio-olbiatrentinsudtirolmassa-carrarafriuliveneziagiuliatrentinosuedtirolandria-barletta-tranitrapanixn--cesenaforl-i8amaceratacaltanissettaascoli-picenobrindisicarraramassacagliaririmininapolivibo-valentiachietibulsan-sudtirolbalsan-sudtiroltrentino-a-adigebulsanbalsaniglesiascarboniamilanotorinoteramodell-ogliastraarezzotrentinoalto-adigerovigotrentovenetoiglesias-carboniatrentino-sud-tirolaltoadigereggio-emiliareggio-calabriasardegnatranibarlettaandriapiedmontxn--sdtirol-n2amedio-campidanotrentino-süd-tirolfriuli-vgiuliafriuli-ve-giuliaromeennaromapisa32-b16-b64-blodiastibarineencomonaplesforlicesenailiadboxosalessandriasicilytrani-barletta-andriaxn--trentin-sdtirol-7vbpesarourbinotrentinsued-tirolcesena-forliforlìcesenaemilia-romagnamonzaebrianzaxn--trentinsdtirol-nsbtrentinos-tiroltrentinsüdtirolvalledaostaolbia-tempiocampidanomediovibovalentiasassarivalle-daostalombardyfriulivegiuliareggioemiliamonzaedellabrianzaalto-adigevercellitrentin-sudtiroltraniandriabarlettatrentino-sudtirolascolipicenobozen-südtirolfriulive-giuliaflorencevaldaostaxn--cesena-forl-mcbcarbonia-iglesiasaosta-valleycarrara-massadellogliastratrentinoa-adigexn--valleaoste-e7apesaro-urbinoxn--trentinosdtirol-7vbxn--trentin-sd-tirol-rzbxn--trentinsd-tirol-6vbtrani-andria-barlettatrentin-süd-tirolxn--trentinosd-tirol-rzbgrossetomonza-e-della-brianzasüdtirolreggiocalabriatrentinoaadigetrentin-südtirolfriuliv-giuliaverbaniacampaniatrentino-aadigefriulivenezia-giuliasardiniaandriabarlettatranibarletta-trani-andriacatanzarooristanourbino-pesarocesena-forlìvalle-d-aostacampidano-medio123homepagesiracusatempioolbiasuedtirollombardiaavellinocesenaforlìtrentinofriuli-venezia-giuliabozen-sudtirolandria-trani-barlettabulsan-südtirolbalsan-südtirolmonza-brianzabolzanotrentino-sued-tirolbellunosalernolivornocrotonesondriodnshometrentinsud-tirolmassacarraratrentin-sud-tiroltrentino-suedtirolviterbobergamocesenaforliolbiatempiopalermobeneventoagrigentoofcoorgnetfmaitvphdengorgmilcomschnetedugovperagrikanieasukehandachitatokaiaisaikonanoharuamaobuhigashiuraowariasahiinuyamatobishimaiwakurashitarainazawatoyonegamagorimihamatoyotataharakariyayatomioguchikomakimiyoshinishiotokonamekiyosuchiryutoyohashiokazakiisshikikasugaikotakiratoeianjotogofusosetohazutsushimashinshirotakahamanisshinshikatsuhekinantoyokawaichinomiyatoyoakeodateogataakitaikawakyowahonjoogayurihonjonoshirokamiokakatagamimitanegojomeyokotekosakadaisenkazunonikahohonjyomoriyoshimisatohappoukamikoanihachirogatahigashinarusesembokufujisatokitaakitaitayanagiowanitakkomutsutsurutahirosakigonoheoirasetowadamisawanohejiaomorishingohiranairokunohehashikamitsugarushichinohehachinohenakadomarisannohekuroishisakaeisumiasahiotakiinzaiabikomatsudoyachiyomutsuzawakujukuriomigawakashiwatoganemihamanaritasakuranagaramobarahanamigawachoshishiroichoseikozakishisuikatorimidorichonankyonanfuttsuonjukufunabashinagareyamanodasosatakochuotohnoshourayasukimitsuyokaichibayotsukaidosodegauratateyamakamagayayokoshibahikariyachimatakatsuuratomisatokisarazukamogawaichikawanarashinoichinomiyashimofusaminamibososhirakoichiharaoamishirasatoikatahonaiainansaijoseiyoiyoozuuwajimaniihamanamikatamasakiuchikokihokutobetoonshikokuchuomatsuyamaimabarikamijimakumakogenyawatahamamatsunosabaeikedaobamasakaifukuiohionotsurugamihamawakasaminamiechizeneiheijikatsuyamatakahamaechizensoedaukihaomutaokawanishiogoribuzenonojosueumiokiotochikugosasagurisaigawamizumakishinyoshitomikurumekurateyamadakasuganakamamiyamanogatatakatahakataiizukakawaratagawakasuyaashiyainatsukimunakataminamitsuikishonaikurogifukuchikeisenhigashimiyakoshinguyukuhashiokagakiyamekogaongausuikahotohochuotoyotsumiyawakadazaifuhisayamatachiaraiyanagawanakagawahirokawachikujochikushinochikuhochikuzennamieotamaokumashowateneiiwakikoorinangoononishigoshimogoomotegomishimafukushimaasakawakagamiishishirakawaiitatefutabahiratayugawahanawakitakatakawamatakunimiyabukibandaihigashihironoyamatomiharuyamatsuriaizubangedatesomaaizuwakamatsuyanaizuaizumisatonishiaizuizumizakikitashiobarataishinkaneyamakoriyamainawashirotanagurafurudonosamegawasukagawaishikawatamakawaikedaogakitaruiginanenahashimahichisonakatsugawaibigawashirakawamizunamiminokamomitakekawauesekigaharatomikasakahogikitagatayamagatatajimianpachimotosuyaotsukakamigaharahidakanisekitokigujominogodoyorogifukasamatsutakayamawanouchihigashishirakawakasaharashimonitatsumagoichiyodakannakanrashowameiwakiryuotaoratomiokafujiokaitakuranaganoharahigashiagatsumatakasakishibukawaminakamikatashinatsukiyonokawabanumataannakaoizumimidorishintoisesakiuenoyoshiokakusatsutakayamanakanojonanmokutamamuratatebayashimaebashiotakekaitadaiwahongofuchukuietajimashobaramiharahatsukaichihigashihiroshimamiyoshikumanokurenakasakaseraseranishiasaminamifukuyamashinichionomichiosakikamijimajinsekikogentakeharaotobenanaeikedatohmaozoraobiraabirakyowaeniwataikibibaisharirebunerimohiroooketootarupippunishiokoppechitosefurubirahakodateshiranukakitahiroshimakushiroobihironanporoiwamizawaniikappukunneppufukushimanakasatsunaitoyourakuromatsunaiakabirakamisunagawashibechaurakawakamifuranonakatombetsuasahikawashimokawakayabeokoppebiratoriabashirisaromaatsumanumatahidakabifukamukawamikasahorokanaitoyotomisarufutsuhigashikawaishikarikitamiyoichiesashiiwanaitomariminamifuranoakkeshifuranotoyakoyakumootoineppushikaoishiraoinemuronayorohaboroashorobihororishirifujiutashinaihokutotakasuebetsuurausuassabukikonaishimamakinaiedatetoyabieinikiesanuryuoumuteshikagarikubetsuashibetsukimobetsuaibetsutobetsusobetsuembetsushimizuchippubetsurishirihokuryuhoronobeshintokutsubetsushibetsuhonbetsumombetsutsukigatakuriyamakoshimizushiriuchikutchanmurorannoboribetsukamishihorowassamushinshinotsukembuchiwakkanaikamoenaikiyosatotakinoueshikabesunagawafukagawanakagawatakikawakamikawahigashikagurahamatonbetsumatsumaemoseushirankoshishakotanimakanemashikeotofuketomakomaisandatambaitamiawajikasaiasagoshisoonoakoyashirotoyookaminamiawajiinagawafukusakitakasagokamigorikasugaharimayokawaashiyahimejiakashitaishiaogakisannantakinosumototakarazukanishinomiyashingugoshikinishiwakiyokatakaaioimikisayoyabukawanishiamagasakisasayamashinonsenkakogawaichikawakamikawatatsunotsukubaiwamaogawaasahisakaitokaioaraiitakobandodaigosuifuinaamikasumigaurakashimaomitamayachiyoshimodatetomobetoridehitachinakainashikisakuragawakasamayawaramoriyahitachiomiyanamegatayamagatahitachikamisuushikutakahagiibarakitonekoganakasowayukimihojosomitoryugasakishimotsumafujishirotsuchiurachikuseihitachiotashirosatotamatsukuriuchiharashikahakuinanaotsubatawajimakahokukawakitatsurugikaganominotosuzuuchinadakomatsuanamizunakanotohakusannonoichikanazawaiwateshiwafudaikawaimoriokaofunatohanamakikuzumakikitakamininohekunoheyamadayahabasumitaichinosekitanohatahiraizumirikuzentakatajobojiotsuchihironomiyakoiwaizumikarumaiichinohenodakujitonooshushizukuishifujisawamizusawakamaishikanegasakimannoutazukotohiraayagawazentsujihigashikagawauchinomikanonjisanukimarugamemitoyotakamatsutadotsunaoshimatonoshoakuneamamiizumihiokiyusuikinkoisasookouyamanakatanekagoshimakanoyaisenkawanabeminamitanemakurazakitarumizunishinoomotematsumotosatsumasendaioimatsudaayaseebinamiurazushinakaiodawaraiseharasagamiharahakoneaikawakaiseiatsugitsukuihadanoyamatoyamakitazamaoisochigasakininomiyayokosukakamakuraminamiashigarafujisawasamukawakiyokawahiratsukayugawaraokawaumajikochitsunootoyoakiinonishitosayasudahidakamiharasakawaniyodogawahigashitsunokagamigeiseisusakiotsukinaharisukumomurototosakamiochitoyotosashimizumotoyamanankokunakamurakitagawayusuharaogunichoyoukiasoutoozugyokutoamakusamifunetakamoriyamagaminamataminamiogunikikuchisumotoyamatonagasumashikiaraokumamotokamiamakusanishiharayatsushiroayabeseikasakyoideineujinakagyokameokakyotangokyotanabekyotambaminamiyamashiroyamashinatanabeyawatawazukaminaminantanmiyazuhigashiyamafukuchiyamakitamukokamojoyokizumaizuruujitawaraoyamazakinagaokakyokumiyamakawagoeinabeshimameiwaasahitaikiudonoisetsukisosakikuwanamihamamiyamasuzukatamakimisuginabarikumanokomonominamiisewataraitobakiwatakikihotadomatsusakayokkaichikameyamaureshinoishinomakishichikashukuohirataiwaosakizaohigashimatsushimashikamaiwanumashibataogawaraonagawakawasakiseminemarumoriminamisanrikukakudamuratawakuyatomiyanatoriwataritagajomisatotomekamirifushiroishimatsushimayamamotoshiogamafurukawahyugaebinotsunosaitoayakushimanobeokakitauramiyazakitakazakigokaseshiibamimatashintomikunitomikitakatakobayashikawaminamitakaharukijotakanabemiyakonojonishimeranichinankitagawakadogawamorotsukakisofukushimaminamimakisakaeobuseikedaogawamiasaokayaasahiotakiotarichinoinaomichikumakomaganechikuhokukaruizawayasuokaooshikaikusakaminamiaikitogakushimatsukawakawakamitateshinatakamorikitaaikishiojirimiyadahakubaiizunaiijimaiiyamamiyotasuzakayasakatoguraookuwanagawaminowahirayayamagataminamiminowafujimiomachisakakitakaginaganonakanosakuhokomoronagisoshinanomachiwadauedaiidaharasuwatomiachiaokianankisosakunozawaonsenagematsutakayamashimosuwamatsumotoyamanouchinakagawamochizukiazuminotatsunoobamaomuraseihiunzenosetofutsuikichijiwanagasakiisahayahasamisaikaikawatanasasebohiradokuchinotsugototogitsutsushimashimabarashinkamigotomatsuurayamazoekashibaikomakawaitenrioyodosangokoryoudaojiikarugayamatokoriyamatenkawakatsuragikurotakikawakamimiyakemitsuetakatorikamikitayamayamatotakadahegurishinjokanmakisakuraitawaramotogoseoudanarasoniandokawanishishimoichihigashiyoshinokashiharashimokitayamanosegawayoshinomintsivorytopazsakuragehirnsumomoaseinetopalmail-boxmokurenyoitamuikaojiyagosensanjoaganomyokoseiroagaomishibataniigatanagaokamurakamiuonumayuzawakariwatagamitainaitsunanminamiuonumatochioyahikojoetsuseiroukamosadoizumozakitokamachiitoigawasekikawakashiwazakitsubamemitsukekokonoesaikiusukibeppuusahimeshimakunisakihasamataketatsukumihitaoitahijikusuyufukujukamitsuebungoonobungotakadaibaraniimibizentsuyamaokayamakasaokahayashimayakagemaniwaakaiwamisakishinjotamanotakahashikibichuowakesojanagishookumenannishiawakurakurashikiasakuchisetouchikagaminosatoshotomigusukunakagusukuyaeseizenaurumaiheyaaguniogiminanjokinminamidaitokitanakagusukuyonaguniokinawaishigakikunigamiurasoekadenataramahiraraginozataketomishimojizamamitonakiitomanhigashimotobuyonabarugushikamionnanahanagohaebarukumejimakitadaitonakijinnishiharayomitanginowantokashikiishikawaikedasuitaminohizuminishisakaikananabenodaitoosakasayamayaokishiwadatadaokakaizukatondabayashichihayaakasakakumatorikadomasayamahigashiosakashijonawatehirakatataishimisakitajirihannansennankatanotoyonominatosettsuhigashiyodogawaibarakinosekitachuohigashisumiyoshifujiiderakashiwaraizumiotsutoyonakamatsubaramoriguchiizumisanoshimamototakatsukineyagawahabikinotakaishikawachinaganoyoshinogarikamiminearitaouchiimarihizenogikashimaariakekiyamafukudomikitagatakitahataomachigenkaikanzakinishiaritakyuragisagataratosutakushiroishikaratsuhamatamakouhokukawagoeyoshidasatteogoseirumaasakaurawaogawaniizaomiyayoriiotakishikihonjooganohannohanyuinasaitamaokegawaarakawayoshikawayokozehasudasayamahidakafukayachichibuiwatsukiryokamiyoshimikamiizumifujimiwarabiranzanmiyoshiminanoyashiosakadosugitomisatohigashichichibutodasokakukiyonokazoshiraokakasukabekounosukawajimatsurugashimamiyashirokitamotohatoyamamoroyamahatogayakumagayakawaguchinagatorokamisatomatsubushinamegawatokigawakamikawafujiminohigashimatsuyamakoshigayatokorozawas3isk01isk02ryuohkoseikonanaishorittotakashimamaibarahikonetorahimenishiazaikokagamokotoyasuotsukusatsunagahamamoriyamatoyosatotakatsukinotogawaomihachimanhigashiomiakagiunnanizumogotsuamayatsukakakinokimatsuehamadamasudahikawahikimiokuizumoyasugiyakumomisatotamayuohdahigashiizumookinoshimanishinoshimatsuwanoshimaneshimadafujiedayoshidashimodagotembaiwataatamikosaiyaizuitoizumishimahaibaramakinoharaomaezakikawanehonkannamisusonohigashiizufukuroinumazukawazufujiaraishizuokahamamatsushimizuizunokunimatsuzakimorimachiminamiizunishiizukikugawakakegawafujikawafujinomiyaujiietsugaoyamayaitaohiranikkoashikagakuroisokanumasakurashioyakarasuyamamotegiichikaikaminokawatochigihagamokanogisanobatonasumibunasushiobaranishikatautsunomiyaiwafunemashikoshimotsukeohtawaratakanezawaitanokomatsushimatokushimaichibaminamiaizumiwajikikainanmiyoshinarutomimamugiananmatsushigesanagochishishikuinakagawamachidachiyodakomaefussainagitaitochofufuchuomeotahigashiyamatotoshimaokutamaaogashimakodairaedogawaarakawahachiojishinagawatachikawashibuyasuginamihinodekiyosesumidaoshimanerimamitakahamuraadachinakanomizuhobunkyomegurominatokoganeihigashikurumekokubunjihigashimurayamamusashimurayamatamakitahinochuokotokatsushikakouzushimaogasawaraakishimakunitachishinjukusetagayamusashinohachijoitabashiakirunohinoharachizunanbukotouramisasawakasayonagokogehinoyazutottorinichinansakaiminatokawaharaoyabetairainamiasahinantoimizufuchutakaokakurobeyamadajohanatoyamatonaminyuzenfunahashinakaniikawanamerikawaunazukitogahimiuozufukumitsutateyamakamiichiiwadearidayuasainamitaijikatsuragiaridagawatanabemihamahidakakainankiminomisatoshingushirahamakamitondayurakozakoyagobokitayamawakayamakudoyamahashimotokushimotokozagawahirogawakinokawanachikatsuurarsuseroeoishidasagaeoguniasahinagaitendonanyoobanazawanishikawasakataohkuratozawamikawamamurogawayamagatafunagatatakahatashonaishinjokahokuiideyuzakawanishitsuruokakaminoyamayamanobeshiratakamurayamanakayamakaneyamahigashineyonezawasakegawamitouubeyuuabushimonosekitabuseoshimatoyotaiwakunihikarishunannagatohagihofukudamatsutokuyamashowadoshitsurunanbukoshukaiminami-alpsnirasakikosugeotsukioshinohokutominobuyamanashifuefukichuokofuichikawamisatoyamanakakonakamichitabayamanishikatsuranarusawafujikawahayakawafujiyoshidafujikawaguchikouenohara長野京都岐阜大阪三重群馬千葉滋賀佐賀奈良adednelgaccogogror秋田愛知高知埼玉沖縄栃木熊本岩手青森山梨新潟島根鳥取長崎香川宮城石川大分宮崎茨城山口兵庫山形徳島広島福島福岡岡山富山静岡愛媛福井東京xn--4it168dhatenadiaryxn--vgu402ckawaiishophatenablogcocottenamaste北海道penneehimeiwateversestabachibashigagonnagunmapermahaccaakitaosakauh-ohblushkochiaichifukuikuroncapooitigohyogotokyokyotopunyuthickcheap0t00g00j0mie2-ddaapyawjg0amfemsubxiiboomoobutchueekpgwrgrherskrboyrdyupperunderflierchipsmydnsheavyangryhippygirlyrulez神奈川鹿児島和歌山bambinaxn--nit225kokayamasaitamaxn--k7yn95exn--1lqs03nsapporoparasitelolipopmcxn--efvn9sniigatafukuokatokushimafukushimahiroshimakagoshimafakefurokinawaxn--8pvr4ucoolblogxn--0trq7p7nnkawasakinagasakimiyazakichilloutxn--8ltr62kxn--klty5xpeeweezombiecutegirlxn--rny31hxn--uuwu58axn--ntso0iqx3axn--djrs72d6uytoyamanikitanyantakagawamimozanagoyaboyfriendxn--2m4a15egreaterchowderegoismyamagatafashionstorexn--elqq16hxn--pssu33lsendaimiyagixn--rht27zpecoriaomorisaloonwatsonvivianxn--djty4knobushipigboatnaganopinokoxn--f6qx53asadistvelvetsecretxn--5js045dchicappayamanashiibarakidigickgirlfriendxn--1lqs71dmongolianxn--c3s14mxn--qqqt11mtochigixn--5rtq34kparallelo0o0mondkobesagabonadecaoitanarafoolkilldecimainhiholomosblokilociaoundopupugifutankcrapflopnooroopsmodsholyjeezstripperpepperbittershizuokaxn--rht3dkitakyushureadymadeicurusversusmatrixxn--rht61ehungryfloppygloomycrankyhandcraftedlittlestarxn--klt787dxn--kltx9awhitesnowsunnydaytottorilovepoptheshopbuyshopxn--5rtp49cxn--d5qv7z876cwebaccelxn--kbrq7oxn--4pvxsxn--1ctwolovesickkumamotocatfoodxn--tor131oyokohamawakayamatonkotsuxn--ehqz56nxn--uist22hxn--6btw5axn--kltp7dyamaguchifrenchkisspussycatxn--4it797kxn--uisz3gbabybluexn--zbx025dnetgamersxn--7t0a264ckanagawaxn--6orx2rishikawaxn--ntsq17ghalfmoonschoolbusjellybeanxn--mkru45iusercontentlolitapunkxn--32vp30hsakurastoragehokkaidoshimanecandypopbabymilksupersaleweblikeraindropbackdropwebsozaikikirarahateblodaynightmeneacsccogoormobiinfoaeusxxorgmilcomnetedugovorgcomnetedugovbizinfotmprdorgmilcomnomedugovassnotairespresseassocoopgouvveterinairemedecinpharmaciensorgnetedugovtraorgcomedurepgovmeneperekgacscaiiocogoitoresmshsseoulbusanulsandaeguc01milvkimmvchungnamjeonnamjeonbukeliv-dnsgyeonggijejueliv-cdnincheondaejeongangwongyeongbukgwangjuchungbukgyeongnameliv-apicoeduindorgcomembnetedugovorgmilcomnetedugovjcloudorgcomnetintedugovperbnrinfocooyorgcomnetedugovipfscanvamypepw3sstorachakeeneticjoinmcinbrowserdwebcyonnftstoragemyfritzaemewphlxachotelltdorgcomwebsocschngonetintedugrpgovassnomgacsccoorgnetedugovbizinfo123websiteidorgmilcomasnnetedugovconfidmedorgcomplcschnetedugovaccoorgnetgovpresstmassoirseproxaccosoundcasthoptocraftvp4c66orgnetedugovitsmcdirmyboxbarsyedgestacksynologylogintonohostwebhopdiskstationi234tcp4hoocgroknoipprivmydsddnsdnsforlohmustransipdscloudfilegear-sgbrasiliafilegearframerbarsybarsyonlinecoprdorgmilcomnomedugovinforgcomnetedugovnameacprorgcomartnetedugovpresseinfoassoinstgouvorgnycedugovbarsydscloudjuorgcomnetedugovminisiteaccoororgcomnetgovorgmilcompronetintedugovbizmuseumnameinfoaerocoopaccoorgcomnetintedugovbizcooporgcomgobneteduorgmilcomnetedugovbiznameaccoorgmilneteduadvgovcoorgcomnetaltgovforgotherhiskeeneticispmanagernomassoprod5476132eastasiacentraluswesteuropewestus2eastus2rucdnwest1-usfra1-desandboxjls-sto1jls-sto3jls-sto2aglobalabglobalsslmapprodfreetlsmaplon-1lon-2ny-1fr-1sg-1ny-2paassnwebpaashostingjelasticnordeste-idcsocuserpagescwebfileblobservicebuscoreatlricnjsjelasticwebsitestoragesezagbinruhuukjptsmyspreadshopmynetnameakamaiorigin-stagingfrom-coipv64dynv6cdn77serveblogadobeaemcloudhicamsprytdnsupno-ipownipde5ovhicpfirewall-gatewaysytesmypsxbarsyusgovcloudapimyamazemyradwebakamaihdsaveincloudfastlylbfrom-lasubsc-paysquare7in-the-bandblackbaudcdnhomelinuxoninfernoctfcloudservebbsdns-dynamiccloudfrontakamai-stagingipifonyham-radio-opsenseeringclickrisingcommunity-profrom-nylocalcertgrafana-devedgesuite-stagingcloudflareanycasteating-organicatlassian-devmydattofeste-iplocaltotorprojectknx-serveredgekeycloudflareglobalcloudyclustercasacamserveftpakamaized-stagingakamaiorigindns-cloudmyeffectboomlabotdashbuyshousestwmailhetemlazure-mobilein-dslthruhereredirectmedynuddnsbouncemesupabaseluyanicloudappakamaicloudfunctionsdebiannhlfanpgafanstatic-accessin-vpnmysynologymafeloappudohomeftptrafficmanagersiteleafseidatmemsetcloudflarecloudaccesskeyword-onazure-apiis-a-chefdoes-itgets-itwebhopselfiphomeipkicks-assedgesuitewindowsserver-ontunnelmolemydissentscrapper-sitecloudflarecnuni5srcfggffiobbzabcdenodynuopikddnsvpndnsakadnselastxkinghostvps-hostfastlyhomeunixazureedgeshopselectdontexistmyfritzcloudjiffyalwaysdatasells-itsquaresbroke-itazurefddattolocalat-band-campmeinforumfamilydsazurestaticappsdefinimabplaceddnsaliasdynaliasnow-dnsblogdnsroutingthecloudendofinternetdsmynasakamaiedgemymediapcadobeio-staticakamaiedge-stagingakamaihd-stagingddns-ipprivatizehealthinsurancelive-onkrellianschokokeksmassivegridmysecuritycamerarackmazeserveminecraftfrom-azis-a-geekakamaizedmoonscalecryptonomicoffice-on-theusgovtrafficmanageradobeioruntimeedgekey-stagingreserve-onlinechannelsdvrdnsdojousgovcloudappcdn77-sslapps-1and1podzoneazurewebsitesdynathomescaleforceyandexcloudvusercontentisa-geekcdn-edgescoaemalcesappwriteazimuthtlonarvonoticeablestorecomwebrecnetperotherfirminfoartslgdloncogoiltdorgmilcolcomplcschgenngonetedugovbiznamefirmmobiacincoorgmilcomnomwebgobnetintedubizinfocomyspreadshopdemongovtransurl123websitehosting-clusterkhplaycistrongsnesosvalervålerxn--vler-qoaossandeheroysandeherøybøboheroyherøyxn--hery-iraxn--b-5gavalerbøboxn--b-5gasandesandexn--hery-iraxn--vler-qoavålerhåreålaahavaofsfvfhlolnlalrlhmfmtmahcostntbuåstrmreigersundmyspreadshopgálsáeidsvolltingvollgildeskalflorøvadsøvardøvanylvenxn--bhccavuotna-k7astrandaxn--kvnangen-k0axn--sknland-fxaxn--mosjen-eyarakkestadhyllestadnannestadvevelstadvaapstenordre-landsondre-landsøndre-landtjieltexn--vrggt-xqadsør-aurdalsor-aurdalheradstordmoldefordeførdeseljefedjeryggehemnexn--krehamn-dxasognegranesøgnebrynetjomevallebykletokkegiskedovretjømehobølvoldasaudatolgasømnaviknadønnasomnadonnatranafrananesnaraumasmolatrænafrænalesjasmølaørstaorstahitrafloraaukraloppafrøyarissasnasahalsagalsaromsaraisaráisafroyasnåsagronghobolfjelltydalårdalardalaskimharamkraanghkekråanghkesorumbarumhurumbærumsørummodumsálátbálátfrognbjugnvåganvagangulenskienløtenlotenstrynvefsnxn--merker-kuaskaunsveiobømlobomloskjåkvardoflorovadsosalatbalatsálatklæbuklabuselbubarduulvikskjakklepprisørxn--nttery-byaeflåeidflahofmilgolholsellomskifetvikdepvgsfhsaskerrisorhamarasnesåsnesrørosrorosxn--slat-5namasoynaroyvaroyluroydyroyaskoyradoyandoyrodoymeloyradøyandøyrødøymeløyaskøylurøydyrøymåsøyværøynærøyhoylandethøylandetdivtasvuodnalørenskoglorenskognesoddtangenxn--tjme-hraxn--smla-hraxn--stjrdal-s1aunjargalillehammerunjárgaxn--hamary-fyadavvenjargaxn--bearalvhki-y4a123hjemmesidegjerdrumxn--brnnysund-m8acxn--tnsberg-q1axn--mlatvuopmi-s4axn--snsa-roaxn--skierv-utaxn--brum-voatysfjordkvafjordeidfjordkvæfjordsongdalenmjondalenmjøndalenxn--gls-elackragerogáŋgaviikagangaviikasørreisasorreisasør-varangersor-varangerxn--risr-iraskiervaxn--frna-woaxn--trna-woakvinesdalleksvikleirvikrøyrvikroyrviksvelvikvenneslaevje-og-hornnessandnessjøenmarnardalvindafjordsandefjordenebakksnillfjordullensvangxn--trany-yuabrønnøysundnamsskoganaustevollxn--stjrdalshalsen-sqbnord-aurdalnord-frontrøgstadtrogstadgrimstadflakstadgjerstadxn--sandy-yuaxn--leagaviika-52bnore-og-uvdalvegarsheixn--rlingen-mxaxn--ggaviika-8ya47hvegårsheikarlsoykvitsoymasfjordenhamaroyinderoyosteroydavvenjárgasauheradguovdageaidnuxn--vre-eiker-k8abronnoysiellakkrødsheradkrodsheradkvinnheradbrønnøyxn--mtta-vrjjat-k7afxn--lrenskog-54akvitsøyvárggátkarlsøyosterøyinderøyhamarøybronnoysundxn--aurskog-hland-jnbbahccavuotnabáhccavuotnagiehtavuoatnastor-elvdalmidtre-gauldalxn--gildeskl-g0akarasjokevenassixn--bievt-0qaxn--yer-znalebesbynessebyxn--hbmer-xqamalselvmålselvxn--unjrga-rtamøre-og-romsdalmore-og-romsdalhareidmelandørlandorlandstrandålgårdsolundalgardafjordåfjorddielddanuorrikautokeinoxn--stre-toten-zcbskodjeaejriestangeliernebamblestokkefauskesnåasesnaasekongsvingerlangevagberlevagxn--flor-jrahattfjelldalostre-totenøstre-totenvestfoldxn--mely-iraálaheadjualaheadjunordreisaxn--troms-zuaxn--lgrd-poacporsangerflatangerstavangerleikangerbremangersamnangergieldakarasjohkaxn--rdy-0nabfrostautsirasnoasatromsaxn--sr-aurdal-l8aflekkefjordjølsterjolsteraremarkhedmarknååmesjevuemienaamesjevuemiexn--vard-jrarollagmeråkermerakerorskogørskogxn--bdddj-mrabdákŋoluoktaxn--osyro-wuaaknoluoktatrysilskjervøymandaljondalbindalrindalmeldalsuldalorkdalsigdalalvdallærdalhurdalsirdalverdallerdallardaloppdalåseralaseralhadselkragerødivttasvuotnaoverhallasteinkjerxn--hnefoss-q1askedsmokorsettromsøxn--dyry-iravestre-totenmuseumxn--sandnessjen-ogbrahkkeravjufylkesbiblbájddarbajddarxn--laheadju-7yarennesøyxn--koluokta-7ya57hxn--hgebostad-g3aleirfjordstorfjordbalsfjordbåtsfjordbatsfjordmuosátbievátloabátkárášjohkanøtterøyxn--mjndalen-64anordkappláhppilahppialstahaugsiljanverranrøykenroykenhaldenlyngenbergenhortenhønefosshonefosstroandinbeiarnvarggatosoyroosøyrotromsoidrettmuosatbievatruovatloabatvoagattynsetnessetxn--indery-fyaskánitskanitraholtråholtxn--ystre-slidre-ujbandebusarpsborgbearduxn--karlsy-fyahordalandjorpelandjørpelanddeatnuringsakersør-odalsor-odalxn--slt-elabringerikeaudnedalnittedalnissedalhemsedalslattumsurnadalxn--blt-elabelverumstjørdalnaustdalhjartdalgjøvikfyresdalhasviknarviklarvikgjovikmalvikgamviklenvikporsgrunnstjordalengerdaldrobakdrøbakxn--msy-ula0hvestvagoyxn--vgan-qoaxn--ryken-vuaxn--lten-graxn--stfold-9xaxn--hpmir-xqaxn--lury-iramálatvuopmimalatvuopmitysværkirkenesbirkenesmoskenesbáidárxn--fjord-lraxn--rdal-poabahcavuotnabáhcavuotnaxn--frde-gralindåsbearalvahkixn--hobl-iraráhkkerávjuxn--loabt-0qavågåáltábodøsundlundraderådeetnetimeholeauregrueoddavagavegaranatanaarnasolasulaaltalekafusavangbergkvamåmliamlibokntinnroangranosenoslobodorøstroststatåmotamotivguprivøyeroyerliermossvossxn--nvuotna-hwalusterlunnermarkerhábmerhabmerhvalerfjalerxn--rholt-mratysvarbaidarfitjargaularhápmirhapmirmelhusfosnesøksnesoksnestysneshemnesevenesflesbergeidsbergtonsbergtønsberglindasxn--sndre-land-0cbnamsosxn--srum-graøystre-slidreoystre-slidrevestre-slidretrondheimbalestrandxn--langevg-jxaaustrheimxn--skjk-soavagsoyaveroysandoykarmoyfinnoytranoyvestbytranbysykkylvenxn--hyanger-q1aspjelkavikandasuoloxn--fl-ziaxn--drbak-wuastathellexn--sr-varanger-ggbtelemarkxn--bhcavuotna-s4axn--porsgu-sta26fčáhcesuolocahcesuoloakrehamnåkrehamnsandøykarmøyfinnøytranøyvågsøyaverøynamdalseidxn--lesund-huabadaddjaxn--vegrshei-c0axn--btsfjord-9zagildeskålporsanguxn--trgstad-r1anávuotnanavuotnahammerfestxn--sgne-graxn--brnny-wuacibestadharstadnarviikaevenáššivestnesgjemnessandnesagdenesrennesoyxn--avery-yuaxn--tysvr-vrabearalváhkikongsbergspydebergrandabergxn--andy-iradavvesiidaxn--krdsherad-m8aporsáŋgufredrikstadbjerkreimringeburennebuaurskog-holandnotteroyxn--vgsy-qoa0jxn--rmskog-byaskierváivelandbyglandfrolandaurlandforsandxn--bjddar-ptamidsundålesundalesundfetsundfarsundovre-eikerøvre-eikerakershusxn--moreke-juasørfoldøstfoldostfoldsorfoldhøyangerhoyangerlevangerorkangertanangerxn--vestvgy-ixa6olillesandulsteinxn--rennesy-v1agranvinskjervoyxn--klbu-woalavagisxn--h-2faxn--ryrvik-byakafjordkåfjordseljordfolkebiblxn--gjvik-wuajevnakerxn--kfjord-iuabudejjuxn--kranghke-b0axn--davvenjrga-y4axn--rland-uuaxn--ldingen-q1axn--mlselv-iuaxn--rady-iraxn--linds-prabrumunddalxn--ygarden-p1amo-i-ranaeidskogrømskogromskoghjelmelandxn--finny-yuaxn--sr-odal-q1axn--skjervy-v1aballangenkvanangenkvænangengratangenxn--hmmrfeasta-s4acvossevangensuohkanxn--rde-ulaxn--mli-tlaxn--ksnes-uuanordlandskanlandskånlandsortlandfuoiskuxn--rros-graxn--hcesuolo-7ya35bxn--eveni-0qa01gagaivuotnagáivuotnaxn--seral-lradrammenmodalenmosjoenjan-mayentorskensteigengloppenxn--snes-poamatta-varjjatxn--sr-fron-q1aomasvuotnajessheimbådåddjåxn--krager-gyaxn--kvfjord-nxaxn--asky-iraxn--snase-nraxn--bidr-5nacholtålenxn--vads-jraxn--jlster-byamosjøenxn--rst-0nastavernxn--ostery-fyaxn--oppegrd-ixaxn--sknit-yqaxn--risa-5naoppegårdskiptvetrendalenholtalenxn--mot-tlaxn--lhppi-xqaxn--holtlen-hxaxn--srreisa-q1akopervikxn--muost-0qaxn--bmlo-grahokksundkvalsundegersundxn--karmy-yuaullensakerxn--hylandet-54axn--kvitsy-fyaxn--bod-2nalangevågberlevågkristiansandxn--rsta-frahornindalstjørdalshalsenstjordalshalsensandnessjoenhámmárfeastaxn--lrdal-srasør-fronsor-fronnord-odalkristiansundmátta-várjjatvestvågøynesoddennotoddenbuskerudøygardenoygardensalangenlavangenralingenrælingenlodingenlødingenleaŋgaviikalaakesvuemieleangaviikauenorgexn--srfold-byaaskvollxn--rskog-uuaxn--nry-yla5gxn--vry-yla5ghammarfeastaxn--rhkkervju-01afxn--givuotna-8yakommunekrokstadelvanedre-eikerhagebostadhægebostadxn--berlevg-jxakviteseidxn--s-1faxn--l-1faxn--nmesjevuemie-tcbafuosskomoårekemoarekexn--lt-liacxn--jrpeland-54asvalbardoppegardholmestrandtvedestrandsogndalsokndalarendalsunndalfolldalxn--krjohka-hwab49jlyngdaletnedalnorddalsaltdalgausdalskedsmovaksdalgjesdalstordalxn--frya-hraaarbortedrangedalxn--smna-graaurskog-hølandxn--vg-yiabtjeldsundhaugesundlindesnesxn--mre-og-romsdal-qqbxn--dnna-gradynmerseineshacknetenterprisecloudmineaccomaorimāoriorgmilcriiwigennetschoolhealthkiwigovtgeekxn--mori-qsacloudnsparliamentcomedorgcompronetedugovmuseumwebsitekinservicebarsywebsitebuildereerobookheimdnsleapcelleero-stagetechcrscsslorigingohomecdbedeeeiemesecabgngilnlalplchfisiincnnoroptatitmtltruauhulumkdkukskjplvtrgrfrkrhrusesismycynzcznetinteduassoososcloudstgbetaaezaeuhkusjshatenadiarycdn77hoptozaptois-a-knightmyftpno-ipjpnddnssdpdnsspdnsbarsysweetpepperis-a-bruinsfanis-very-sweetservegameis-a-soxfanhomelinuxcdn77-secureservebbsmisconfusedwebredirectblogsitefreedesktopcouchpotatofriestoolforgeaccesscamis-lostreadmyblogsmall-webfedorapeopleserveftpis-a-celticsfanmywirepotagertwmailin-dslsellsyourhomeread-booksfreeddnscable-modemis-savednflfanufcfanmlbfanstuff-4-saleendoftheinternetin-vpnmy-firewallhomeftpis-localis-a-chefboldlygoingnowherewebhopselfipkicks-assroxatunkcamdvrfedoraprojectgotdnsdvrdnsdyndnspubtlspimientahomeunixdontexistfedorainfracloudwmflabsfspagesbmoattachmentsteckidsfamilydsdnsaliasdynaliasnow-dnscloudnsdoomdnsduckdnsblogdnshomednsroutingthecloudendofinternetdsmynasip-dynamicpoivronhttpbinmyfirewallis-very-evilmysecuritycamerais-a-linux-userwmcloudis-a-geektuxfamilyis-a-candidatedoesntexistis-very-badhobby-sitegame-hostaltervistais-foundis-a-patsfandnsdojohepforgepodzonedynservcollegefanis-very-goodfrom-meis-very-niceisa-geeknerdpolacmedsldingorgcomnomgobabonetedupleskaemhlxmyboxrockyprvcydeuxfleurspdnscodebergheyflowstatichostorgmilcomnomgobneteduorgcomeduiorgmilcomngonetedugovcloudns1337ngrokacorggogfamcomwebgobnetedugokgopgkpgovgosbizpasaugumicsopozpapuwmwsrprusiskwpspkppspkmpspokeoiawsawifoumsdnskokwpmuppuppsppiwwiwoowuzswkzoschrzpisdnwzmiuwwitdpssewsseumigugimoirmpinbwinbwiihupporzgwgriwupowwskrwioswuozstarostwokonsulattmpccopruszkowmyspreadshopostrodakartuzyopolegminamediaustkazgorajgoraolawailawalomzawloclradombytomjaworznotargilubinkoninzagantorunkutnokepnonakloczestsopotsanokturekplockslasksklepzarowlukowmedaidgdaorgmilrelcomnomatmgsmartneteduelkgovwawsossexbiztgorysejnytychypomorzeboleslawiechomesklepsdscloudunicloudzakopanelegnicarawa-mazbydgoszczswidnikkrasnikwloclawekbielawamragowograjeworealestatebeskidykaszubymalopolskaprzeworskswiebodzinlecznadfirmaszkolawarmiagdyniamiastakazimierz-dolnymalborkswidnicadlugolekaostrolekapodlasieelblagtravelsimplesitezachpomormielecszczecinnieruchomosciwalbrzychlezajsklublinbedzinpoznanwielunmielnooleckostarachowicedkontopowiatwroclawrybniksuwalkileborkslupskgdanskostrowwlkptarnobrzegtourismwegrowkrakowglogowyou2pilanysamailwrocinfoagroautobeepshopprivlapypiszlodzcfolksecommerce-shopmazurypulawyskoczowrzeszowpomorskiezgierzkaliszolkuszlowiczostrowiecsosnowiecmazowszewodzislawbialowiezazgorzeleckatowicepabianicejelenia-gorawolominkarpaczsieradznowarudaczeladzkonskowolaskierniewiceswinoujscieturystykabieszczadycieszynketrzynolsztynbialystokbabia-goraprochowicewarszawastalowa-wolapolkowicegorlicegliwiceponiatowalimanowalubartowaugustowkobierzyceopocznognieznoszczytnokolobrzegshoparenapodhalebielskoklodzkostargardatwithplayitownnamecoorgnetedugovacorgcomproestnetedugovbiznameislaprofinforechtngrokmedaaaacacpaenglawjurbarbarsykeeneticavocatacctcloudnsorgcomsecplonetedugov123paginaweborgcomnetintedugovnomepublidkinbarsygovx443cloudnsorgmilcomnetedugovcooporgmilcomschnetedugovnamecomcannetlibassoaemclantmcontstoreorgcomnomrecwwwbarsyfirminfoshopartsstackitmyddnswebspacelima-cityacincooxorgedugovbarsybrendlyhbvpsvpsspectrumlandinghostingacppmordoviamcprecbgorgmilcomspbnetintedumsknovgovbirrasmcdirmytismircloudvladimirnalchikadygeyamarinepyatigorskmyjinobashkiriaeurodirvladikavkazna4ugroznykustanaikalmykiacldmaildagestaniranbuildcanvaliaravalwixdevelopmentappwritemigrationneedleverceldatabasestackitcodereplravendbonporterlovableaccoorgmilnetgovcoopmedorgcompubschnetedugovservicemecomygovorggovtvmedorgcomnetedugovinfoedgfacbmlonihkutwpsryxzbdtmacfhppmyspreadshopbrandpartiorgcomfhvpress123minsidaitcouldbeworlanbibkommunalforbundfhskiopsyskomvuxkomforbnaturbruksgymnloginlineorgcomnetedugovenscaledeuusentbotdaorgmilcomnetgovnowteleporthashbangplatformlovablebarsyshopwarebasehoplixbarsyonlinemsf5gitappgitpagecofigma-govcaffeinefigmacanvasoltstputerbarsysupportchatgptsquareomniweopensocialcpanelnotionnovecorewpsquaredpreviewjelecyonbyensrhtfastvpspieboxconvexjouwwebheyflowplatformshloginlinemadethissourcecraftclouderaorgorgcomartedugouvunivmeorgcomnetedugovsurveysstatichfheiyuxs4allprojectmyfastubervibehostapp-ionosdeployagentmecoorgcomschnetedugovbizcncostoreorgmilcomneteduembaixadaconsuladokiraranohoprincipesaotomeheliohobarsystorebaseshopwaresellfyabkhaziavologdamordoviapenzalenugsochinavoiexnetspbmsknovnorth-kazakhstanashgabadkareliaarmeniageorgiavladimirnalchikivanovobukharaadygeyakhakassiakalugakrasnodarjambylaktyubinsktroitskbryanskobninskkurganazerbaijanpokrovskbashkiriatselinogradvladikavkazmurmansktulatuvamangyshlaktashkentchimkentgroznykaragandatermezarkhangelskkustanaikalmykiabalashoveast-kazakhstankaracoldagestantogliattibarsyredorgcomgobedumirenknightpointaccoorgjelasticdiscoursecleverappsschacmiincogoornetonlineshopcogoorgmilcomwebnicnetintedugovbiznametestcoorgmilcomnomnetedugovorangecloudpersoindorgcomfinnatnetgovensmincomtourismintlinfox0611oyaorgmilcomnetedugovquickconnectvpnplusnettprequalifymeaddrmyaddrntdllwadlnctvavdrk12orgmilpolbeltelcomwebgennetedutskkepgovbbsbiznameinfocoorgmilcompronetedugovbiznameinfobetter-thanworse-thansakurafromdyndnson-the-webmymailerorgmilurlcomneteduidvgovmydnsgameclubebizmeneacsccogotvorhotelmilmobiinfovodteiflgplkmsmsbcckhincndnvncoztltmkckppzpdprvcvkvlvcrkrkscxuzchernovtsyrivneyaltaodesavolynrovnolutskltdinforgcomnetedugovbizvinnicazhitomirternopilpoltavakropyvnytskyizaporizhzhiasevastopolsebastopoluzhgoroduzhhorodkharkovkharkivvinnytsiakhmelnytskyizaporizhzhecrimeaodessazhytomyrnikolaevcherkassydonetskluganskluhanskkirovogradivano-frankivskchernivtsikrymkievkyivlvivsumyzakarpattiamykolaivcherkasychernigovkhersonchernihivdnipropetrovskdnepropetrovskkhmelnitskiyneacsccogoorusorgmilcomedugovvmdhmyspreadshopadimono-ipbarsybytemarkbarsyonlinelayershiftnh-servretrosnubapicampaignservicelugaffinitylotteryweeklylotteryraffleentrygluglugsmeaccoindependent-inquestnimsitecopropymntltdorgplcschnetgovnhsbarsyindependent-commissionindependent-reviewpolicepublic-inquiryindependent-panelconnhospindependent-inquiryroyal-commissionoraclegovcloudappscck12libccphxcclibpvtparochchtrcck12libcceatonk12coglibtecgendstmusann-arborwashtenawcck12glghcck12sealibforksolympiabainbridge-islkeyporthoquiamyarrow-pointcentraliaport-townsendsequimport-ludlowrentonsilverdalebremertonredmondsheltonbellevueport-orchardport-angeleskingstonchehalisaberdeengig-harborseattlepoulsboidmdndsddemenegacalamaiavawapailalflnmdcncscohnhmihiviwiriinmntnmocoutvtctmtgunjokakwvnvprarorasmskstxwynykyazisadninsnngosrvis-bymircloudservernamepointtoenscaledland-4-salefreeddnsstuff-4-saleazure-apinoipcloudnsgolffanheliohostazurewebsitesgvorgmilcomgubneteducoorgcomnetd0egvorgmilcomnetedugovmydnsiacostoree12orgmilcomnomwebgobbibrectecnetintedugovraremprendefirminfoartseducok12orgcomnethidnsidacaiiosonlahanamhanoicamauhueorgcompronetintedugovbizbacninhtayninhhoabinhnamdinhtravinhhaiphongvinhlonghaiduongquangnamquangtrithuathienhuequangninhbacgianghaugiangquangbinhsoctrangbentrethanhphohochiminhdanangkontumhatinhkhanhhoathanhhoahealthgialailaocaiyenbaibackanngheanlonganphuyenphuthocanthodaklakdongnainameinfovinhphucdongthapkiengiangtiengiangquangngailaichaulangsonlamdongdaknonghagiangangiangcaobangbinhduongninhthuanbinhthuanbaclieuthaibinhninhbinhbinhdinhtuyenquanghungyenbaria-vungtauthainguyendienbienbinhphuocschbizputerimagine-proxyorgcomnetedugovcloud66advisormypetsdyndnsxn--8dbq2axn--4dbgdty6cxn--5dbhl8dxn--hebda8bxn--80auxn--d1atxn--c1avgxn--o1acxn--o1achxn--90azhxn--55qx5dxn--uc0atvxn--od0algxn--wcvs22dxn--gmqw5axn--mxtq1mxn--12c1fe0brxn--h3cuzk1dixn--12co0c3b4evaxn--12cfi8ixb8lxn--o3cyx2axn--m3ch0j3axn--j1adpxn--90amcxn--90a1afxn--h1ahnxn--j1ael8bxn--h1alizxn--c1avgxn--j1aefxn--80aaa0cvacxn--41acaffeineexeopentunnelbotdashtelebitorgtmaccoagricorgmilnomwebnicngonetaltedugovlawnisschoolgrondaraccoorgmilcomschnetedugovbizinfoprg1-zeropstritonstackitlimazeropsaccoorgmilgovяспборгкоммскбизмирсамаракрымсочиакодпроргобрупрצהלממשלישובאקדמיהองค์กรธุรกิจรัฐบาลศึกษาทหารเน็ต教育網絡組織公司政府個人닷넷한국澳门新闻澳門联通家電嘉里招聘通販닷컴삼성コムგეбгрфеюadcdbdgdidmdsdtdaebedeeegeiejekemenepereseveyegabacalamanauavapaqasazacfbfafgfnfpfwftfbgcgagggegkgngmgsgpgvgtgugilmlnlalclglplsltlhmimjmkmmmomambmcmdmfmgmzmpmsmtmgbbblbsbecccacnclcmcvctcscmhkhghchbhthphshlinikifigiaibicivisikninhnmncnbngnsnpnvntnjoionomobocoaofodorosotoptstttytatbtetgtithtmtltrusuvuaucueuguhulumunufjdjbjtjsjlkmkhkfkdkcktkukskpkgpmpnpkpjpgqaqmqiqsvtvcvbvmvlvrwpwtwzwbwcwawgwkwmwtrsrprgrfrercrbrarnrmrlrkrirhrwsusrssspsgsesbsaslsmsissxmxaxcxuypysylymykygybycyuztzsznzmzkzdzczbzazελευ世界台灣购物公益点看臺灣网络書籍在线网站手机机构大拿游戏信息台湾谷歌慈善商标香港中国餐厅网址中國商城食品微博政务移动集团公司八卦商店健康网店政府时尚佛山中信娱乐广东企业homedepotengineeringاماراتrepublicankuokgroupversicherungchannelcitadelxn--pgbs0dhxn--b4w605ferdstatebankwebsitexn--mgb9awbf亚马逊淡马锡alibabaxn--ngbc5azdxn--mgbbh1axn--45br5cyltoshibabuildworldcloudtradeguideplacespacedancemoviephoneprimesmilebiblestyleappleazurestoreskypegripexn--l1accdrivelottehorsehouseleasechasereisestadahondaomegaaetnaamicaninjanokiamediadeltavodkaedekaosakapizzaslingemailgmailtirolshelltmallfinallegaltotalhotelamfamforumrehabmusicciticricohcoachwatchboschearthfaithirishmiamiarchidubaiguccipraxiみんなストアセールcanonsalononionnikonepsonkoelngreensevencrownikanoradioaudioweiboglobopromogalloyahoociscorodeovideomangobingotokyovolvolottokyotophotosmartsportquesttrusthyattjetztadultcymrubaidutushuxn--kprw13dubankclickblackmerckgroupsharpcheapnowtvxn--h2brj9cקוםհայоргсрбмонкомбелмкдқазрусукрمصرقطرعربكومdadcfdmedwedredphdthdbidpidkrdmsdltdiceonewmeglemoerwecfageacbanbambaaaammakianraspacpaaxawtfbcgaegongingaigvigorgdogdhlmilrilonlaolloluoljllcalgalnflafltelsrlfrllplkimibmcamcombommomifmabbjcbscbcabnabtabmlbpubabcbbcnecincpncllcstcwtcpwcnyckfhbzhovhmoiskiobisbitcifyituipinvinwinxincbnbcnmanfangdnmenrenkpnmtnyunrunfununobiojioriohbogmofooboooooacoecoceongoproartistottnttbbtcateatlatvetpetbetnethktmitfitintjothotgotdotbotprueduicujnjyouinknhktdkappsapgapmapdnptopgopllpjmpzipvipripesqtrvdtvitvdevmovgovhivnrwlawsewnewbmwwownowhowdvrftrmtrsfrbarcartvscrseusawsupsubssbsadsddsldssasbmsmlsxxxboxfoxgmxtjxsextaxbuyflydiysoyjoyskypaydaygayxyzanzbizwebersenerpokerlameractortatarsolarລາວคอมไทยtourslocusnexuslexusgiftsbeatsboatspartspressglassswissकॉमनेटtiresgivescodeshomesgamestunesshoescardswalesloansvegastoolsdealsautosparisファッションworkssucksrocksxeroxforexfedexpartylillymoneystudyrugbytoraytoday中文网xn--unup4y天主教飞利浦新加坡enterprises我爱你嘉里大酒店christmasxn--fct429kholdingsxn--8y0a063axn--mgbx4cd0ablifestyleabogadoallstatenetbankكاثوليكxn--s9brj9cxn--gk3at1ebestbuycharityxn--55qx5dmicrosoftpropertybasketballhomegoodscorsicajewelrygallerygrocerysurgerycountrybrusselsverisignferreroxn--czr694bhdfcbankcommbanksoftbankپاكستانپاکستانnextdirectالسعوديهالعليانxn--h2brj9c8cxn--80adxhksshikshaxn--mgbai9azgqp6jcuisinellabarclayscatholicxn--kpry57dcompanyxn--xhq521bblackfridayxn--mgba3a3ejtsandvikxn--d1acj3bacademydownloadمليسياxn--j1amhxn--w4r85el8fhu5dnraipirangaathletaxn--fhbeixn--mgbqly7cvafrzuerichxn--c2br7gஇலங்கைcontractorsxn--io0a7igraphicsinsurancetemasekxn--xkc2al3hye2amotorcyclesphotographydirectoryplumbingxn--vhquvclothingtrainingcleaningwilliamhilllightingxn--mgba3a4f16ashoppingcateringeducationokinawapicturesventuresproductionsxn--9et52uwalmartഭാരതംsupportrealestatecapitalonexn--nqv7fs00emaauspostfloristdentistxn--qxamgodaddybradescobargainsmitsubishikerryhotelsxn--9dbq2axn--3pxu8kimmobilienxn--fjq720axn--mgbtx2bholidaymckinseymadridbusinessbuildershelsinkixn--4gbrimмоскваالسعودیةcoffeedegreelacaixapartnersalsaceofficeabbvievoyageorangegeorgeonlinechromemobilekindlegoogleoraclecircleschulesecureinsurexn--mgba7c0bbn0aestatexn--mgbc0a9azcgcruisehangoutxn--vuq861bxn--42c2d9arexrothfirestoneuniversityxn--nnx388alifeinsuranceextraspaceонлайнvermögensberatersoftwarexn--fiqs8sxn--mgbab2bdxn--w4rs40ltiendaभारतम्africatoyotaotsukasakuracameracreditcardnagoyaconsultingnetworkjunipertheatermonsterprogressivepioneerxn--55qw42gracingdatingvotingvikinglivinggivingxn--bck1b9a5dre4cbrotherweatherjoburgفلسطينlplfinancialxn--clchc0ea0b2g2a9gcdfutbolschoolsocialglobaldentalwoodsidechanelairtelmatteltravelrealtorwebcamstreamభారత్unicomalstomxn--nodexn--6frz82gmuseumfurniturexn--rvc1e0am3exn--mix891faccenturexn--11b4c3dismailineustardiscountquebeccomsecclinicservicesxn--y9a3aqxn--c1avgswatchchurchsearchالاردنmarketingcontacthealthmonashshoujisanofitaipeiamericanexpresssuzukiアマゾンクラウドポイントbhartiグーグルxn--mgberp4a5d4armemorialxn--1qqw23alondonmormoninstitutevisionbostonnortoncouponmaisonamazonvirginberlindesigndurbanolayannissananquanxihuanhitachikaufengardenreisenbayerntechnologydatsunxn--90a3aclatinocasinostudiophysioxn--ngbe9e0apharmacytattootaobaoaramcoexpertreportabbottdirectselectimamatfairwindspictettargetmarketintuittravelersinsurancecreditdupontryukyusuppliesxn--tckwebnpparibasschmidtmerckmsdyodobashirestaurantbridgestonecricketxn--fpcrj9c3dbostikbroadwayattorneylefrakemerckxn--fiq228c5hscareersfarmerswinnersflowersxn--wgbh1cguitarsxn--54b7fta0ccxn--p1acfmakeupgalluplandroverxn--kcrx77d1x4agoldpointbauhausxn--mgbayh7gpahiphopplaystationxn--mgba3a4fraxn--eckvdtc9dhyundaixn--gckr3f0fistanbulticketsmarketsflightschintaireviewsxn--3e0b707ewindowsxn--fiqz9sfinancialxn--fzys8d69uvgmابوظبيdiscoverreviewবাংলাxn--5su34j936bgsgmoscowobserverapartmentsдетиارامكوсайтeurovisionxn--i1b6b1a6a2exn--xkc2dl3a5ee0hتونسموقعبارتڀارتشبكةعمانبيتكعراقreadkredbondlandbandfundfoodprodgoldfordtubecafesafelifeggeeieeefreefagepagegugezonewinememenamegamesaleablebikenikelikecarecbreherefiresaveloveliveblueartedatesitevotecaseluxebofamodaltdaasdatiaayogasinavanashiaasiajavabbvatevavivadatazaraarpacasavisasncfprofmaifsurfgolfdvagsongbingpingwangkpmggoogblogpohlfailcooldellcalldeallidlsarlfilmteamroomfarmimdbarabclubhdfcicbchsbcgmbhrichtechfishdishcashminiernikddiaudiwikimobitaxicitikiwidesiqponskinloanakdnwienopenporncerntownimmolimoolloinfonicofidolegosaxozeroaerovivoautovotomotofastbestresthostpostnextlgbtchatseatgiftmeetdietreitmintrentgentspotscotguruitausohumenucyoubanklinkpinkdclktalksilkbookseekworkrsvpaarpjeepshopcoophelpcamppccwshowbeerstarruhrflirweirhaircarsparsjprshausplusnewstipstoysjobskidsfanspicsdocsxboxamexsexynavycitysonyarmyallybabyplaydeliverybuzzgbizlamborghiniphilipsලංකාಭಾರತfitnessexpresslanxesspfizercenterwalterlawyersoccercareerkosherbrokerlockerdealerdoctorauthorxn--mgbqly7c0a67fbcvermögensberatungjaguarxn--pssy2uxn--hxt814eflickrrepairrogersairbusxn--mgbai9a5eva00beventsyachtsxn--t60b56aভাৰতভারতभारतभारोतviajeshermeshughesxn--j1aefसंगठनvillasଭାରତclaimshotelsભારતzapposphotosjuegoscondostatamotorsgratistennisਭਾਰਤtkmaxxtjmaxxschaeffleryandexxn--80aswgrealtysafetybeautyluxuryxn--3ds443gsupplyfamilyxn--o3cw4hhockeysydneyxn--90aenissayalipayenergycomputeragencyxn--rovu88b電訊盈科xn--gecrj9cstatefarmaccountantaquarelleolayangroup香格里拉xn--p1ai组织机构xn--1ck2e1bxn--mgbt3dhdschwarzموريتانياabudhabinowruzkomatsufujitsuhospitalxn--80asehdbxn--mgbtf8flxn--j6w193gxn--yfro4i67oprudentialxn--flw351ecruisescoursesrecipesxn--e1a4cferrarixn--ses554gxn--wgbl6awatchesstaplessinglesxn--mgbcpq6gpa1axn--otu796dpropertiescreditunionxn--mgbah1a3hjkrdstockholmhisamitsuالسعوديةstcgroupdomainsoriginscouponsbloombergclubmedfroganslimitedxn--80aqecdr1aexposedinternationalequipmentbarclaycardxn--q7ce6axn--mgbi4ecexpprotectionassociatesconstructionxn--cck2b3bxn--45q11candroidfoundationישראלxn--mgbca7dzdocliniqueboutiqueengineerxn--qxa6asystemsfirmdalefashionauctionxn--nqv7finfinitirentalsreliancetradingweddingfishinghostinggentingbookingcookingxn--3hcrj9cgraingerxn--czrs0tdemocratsamsungyokohamaxn--h2breg3evexn--nyqy26alundbeckmelbournevacationssolutionsfrontierxn--vermgensberatung-pwbmanagementxn--cg4bkixn--mgb2ddeslincolnhamburgsandvikcoromantblockbusterairforcebarefootxn--4dbrk0ceinvestmentsfeedbackcommunityxn--ngbrxالبحرينdiamondsamsterdamhealthcareredumbrellaxn--mxtq1mxn--2scrj9cagakhanxn--mgbpl2fhкатоликcaravanசிங்கப்பூர்richardlimortgageamericanfamilyxn--fzc2c9e2cscholarshipssaarlandxn--imr513nvlaanderensamsclubgoodyearkitchenஇந்தியாweatherchannelallfinanzxn--kput3iالسعودیۃxn--90aisxn--efvy88hالجزائرxn--mgbaam7a8hexchangejpmorganxn--tiq49xqyjfidelitysecurityxn--mk1bu44cwanggouxn--fiq64bxn--6qq986b3xlxn--mgbbh1a71exn--80ao21amarshallsxn--5tzm5gtravelerspanasoniclatrobeyoutubeaccountantsxn--rhqv96gxn--cckwcxetdanalyticsxn--ygbi2ammxبازاربھارتسوريةorganicfreseniusسورياxn--9krt00axn--qcka1pmcxn--jlq480n2rgdeloittesciencefinancexn--jvr189mxn--30rr7yhomesensehotmailbaseballfootballleclercboehringerxn--q9jyb4cxn--mix082fاليمنهمراهpolitieسودانايرانایرانnetflixyamaxunxn--lgbbat1ad8jcollegestoragecapetowncolognekerrypropertiesxn--mgbgu82axn--ogbpf8flxn--czru2dwhoswhociprianilasallexn--g2xx48cforsalebanamexaudiblexn--vermgensberater-ctbxn--zfr164bericssonvanguardxn--45brj9cindustriestheatremarriottxn--3bst00mcomparexn--mgberp4a5d4a87gcapitaldigitalالمغربbarcelonashangrilaxn--d1alfcalvinkleinwwwcitysapporokawasakinagoyasendaikobekitakyushuyokohamackjp",Vre=621,Gre=625,jU=Il.length,FU=G0.length,BU=new Uint32Array(FU),h0=new Uint32Array(FU),BE=new Int32Array(jU).fill(-1);for(let t=0,e=0;t<jU;t+=1)for(let n=V0[t];n<V0[t+1];n+=1){BU[n]=e;const r=e+G0[n];let a=5381;for(let s=r-1;s>=e;s-=1)a=a*33^FE.charCodeAt(s);h0[n]=a>>>0,G0[n]===1&&FE.charCodeAt(e)===42&&(BE[t]=n),e=r}let go=-1,$E=0,HE=0;function VO(t,e,n,r){if(G0[t]!==r)return!1;const a=BU[t];for(let s=0;s<r;s+=1)if(FE.charCodeAt(a+s)!==e.charCodeAt(n+s))return!1;return!0}function GO(t,e,n,r,a){let s=V0[t],i=V0[t+1];for(;s<i;){const u=s+i>>>1,c=h0[u];if(c<e)s=u+1;else if(c>e)i=u;else{for(let f=u;f>=s&&h0[f]===e;f-=1)if(VO(f,n,r,a))return f;for(let f=u+1;f<i&&h0[f]===e;f+=1)if(VO(f,n,r,a))return f;return-1}}return-1}function KO(t,e,n){let r=e,a=t.length,s=5381;go=-1;for(let u=t.length-1;u>=0;u-=1){const c=t.charCodeAt(u);if(c===46){const f=u+1;let h=GO(r,s>>>0,t,f,a-f);if(h===-1&&(h=BE[r]),h===-1)return go!==-1;r=WO[h],(Il[r]&n)!==0&&(go=r,$E=f,HE=a),a=u,s=5381}else s=s*33^c}let i=GO(r,s>>>0,t,0,a);return i===-1&&(i=BE[r]),i!==-1&&(r=WO[i],(Il[r]&n)!==0&&(go=r,$E=0,HE=a)),go!==-1}function DRe(t,e,n){if(Wre(t,e,n))return;const r=(e.allowPrivateDomains?2:0)|(e.allowIcannDomains?1:0);if(KO(t,Gre,r)){n.isIcann=(Il[go]&1)!==0,n.isPrivate=(Il[go]&2)!==0,n.publicSuffix=t.slice(HE+1);return}if(KO(t,Vre,r)){n.isIcann=(Il[go]&1)!==0,n.isPrivate=(Il[go]&2)!==0,n.publicSuffix=t.slice($E);return}n.isIcann=!1,n.isPrivate=!1;const a=t.lastIndexOf(".");n.publicSuffix=a===-1?t:t.slice(a+1)}const Kre=()=>C.jsxs("div",{className:"hidden h-full w-[17%] min-w-40 max-w-64 shrink-0 flex-col gap-1 border-r border-line p-3 md:flex",children:[C.jsx("div",{className:"mb-3 h-6 w-24 rounded bg-surface-sunken"}),Array.from({length:6}).map((t,e)=>C.jsxs("div",{className:"flex items-center gap-2 py-1.5",children:[C.jsx("div",{className:"size-5 shrink-0 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3.5 flex-1 rounded bg-surface-sunken"})]},e))]}),Yre=()=>C.jsx("div",{className:"min-w-0 flex-1",children:Array.from({length:8}).map((t,e)=>C.jsxs("div",{className:"flex items-start gap-3 border-b border-line py-2 pl-5 pr-4",children:[C.jsx("div",{className:"mt-0.5 size-7 shrink-0 rounded-full bg-surface-sunken"}),C.jsxs("div",{className:"flex-1 space-y-1.5",children:[C.jsxs("div",{className:"flex justify-between gap-2",children:[C.jsx("div",{className:"h-3.5 w-28 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3 w-12 rounded bg-surface-sunken"})]}),C.jsx("div",{className:"h-3.5 w-48 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3 w-full rounded bg-surface-sunken"})]})]},e))}),sk=()=>C.jsxs("div",{className:"flex h-full animate-pulse bg-canvas","aria-hidden":"true",children:[C.jsx(Kre,{}),C.jsx(Yre,{})]}),ok="03a1840540fb79ea54997f0d9d4524af690f9954",Zre="2026-08-07T22:26:11.252Z",Xre=ok.slice(0,7),Qre=/^[0-9a-f]{40}$/.test(ok),Jre=Qre?`https://github.com/remit-mail/reader/commit/${ok}`:void 0,eae="https://github.com/remit-mail/reader/issues/new";class qE extends Error{constructor(e,n,r){super(e),this.status=n,this.body=r,this.name="ApiError"}status;body}const du=t=>{if(t instanceof qE)return t.status;if(t&&typeof t=="object"){const e=t;if(typeof e.status=="number")return e.status;if(typeof e.statusCode=="number")return e.statusCode}},$U=t=>du(t)!==void 0,uv=t=>{const e=du(t);return e!==void 0&&e>=500&&e<=599},cv=t=>!!(typeof DOMException<"u"&&t instanceof DOMException&&t.name==="AbortError"||t&&typeof t=="object"&&"name"in t&&t.name==="AbortError"),tae=()=>typeof navigator<"u"&&navigator.onLine===!1,HU=t=>cv(t)||$U(t)?!1:t instanceof q_?!0:tae(),nae=t=>!$U(t)&&!cv(t)&&!HU(t),qU=t=>uv(t)||nae(t),rae=t=>t?.softError===!0,WU=(t,e)=>uv(t)?!0:cv(t)||HU(t)?!1:qU(t)?!0:!rae(e),aae=t=>uv(t),WE=new Set;let VU=null,GU=null;const sae=t=>{GU=t},oae=t=>t instanceof Error?t:new Error(KU(t)),KU=t=>t instanceof Error?t.message||t.name:typeof t=="string"?t:t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"?t.message:"An unexpected server error occurred.",iae=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`fatal-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,Kl=(t,e)=>{const n={error:t,message:KU(t),correlationId:iae(),at:Date.now(),recoverable:e?.recoverable??aae(t),stack:t instanceof Error?t.stack:void 0,componentStack:e?.componentStack};VU=n,hae(`Fatal: ${n.message} [${n.correlationId}]`),GU?.recordError(oae(t),{fatal:"true",correlationId:n.correlationId});for(const r of WE)r(n);return n},lae=t=>(WE.add(t),()=>{WE.delete(t)}),uae=()=>VU,cae=20,p0=[],dae=new Set(["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications"]);function fae(t){return typeof t!="string"?!1:dae.has(t.replace(/\.\s*$/,""))}function m0(t){p0.push(t),p0.length>cae&&p0.shift()}function hae(t){m0(t)}function pae(t){return t.map(e=>{if(typeof e=="string")return e;if(e instanceof Error)return`${e.name}: ${e.message}`;try{return JSON.stringify(e)}catch{return String(e)}}).join(" ")}function mae(){const t=console.error.bind(console);console.error=(...e)=>{m0(pae(e)),t(...e)},window.addEventListener("error",e=>{fae(e.message)||(m0(`Uncaught ${e.error instanceof Error?`${e.error.name}: ${e.error.message}`:String(e.message)} (${e.filename}:${e.lineno})`),Kl(e.error??e.message))}),window.addEventListener("unhandledrejection",e=>{const n=e.reason,r=n instanceof Error?`${n.name}: ${n.message}`:String(n);m0(`Unhandled rejection: ${r}`),Kl(n)})}function gae(){return p0.slice()}const vae=8,xc=[];function yae(t){const e=t.split(/[?#]/)[0],n=xc[xc.length-1];n&&n.path===e||(xc.push({path:e,timestamp:new Date().toISOString()}),xc.length>vae&&xc.shift())}function bae(){return xc.slice()}const HS=7500,YO=`
148
+ }`;NU(nre);var ARe=function(t){var e=t.isPullable,n=e===void 0?!0:e,r=t.canFetchMore,a=r===void 0?!1:r,s=t.onRefresh,i=t.onFetchMore,u=t.refreshingContent,c=u===void 0?F.createElement(ere,null):u,f=t.pullingContent,h=f===void 0?F.createElement(tre,null):f,m=t.children,g=t.pullDownThreshold,y=g===void 0?67:g,S=t.fetchMoreThreshold,w=S===void 0?100:S,x=t.maxPullDownDistance,E=x===void 0?95:x,k=t.resistance,A=k===void 0?1:k,R=t.backgroundColor,N=t.className,O=N===void 0?"":N,I=_.useRef(null),P=_.useRef(null),U=_.useRef(null),H=_.useRef(null),z=!1,j=!1,$=!1,Z=0,J=0;_.useEffect(function(){if(!(!n||!P||!P.current)){var Y=P.current;return Y.addEventListener("touchstart",ae,{passive:!0}),Y.addEventListener("mousedown",ae),Y.addEventListener("touchmove",he,{passive:!1}),Y.addEventListener("mousemove",he),window.addEventListener("scroll",xe),Y.addEventListener("touchend",D),Y.addEventListener("mouseup",D),document.body.addEventListener("mouseleave",D),function(){Y.removeEventListener("touchstart",ae),Y.removeEventListener("mousedown",ae),Y.removeEventListener("touchmove",he),Y.removeEventListener("mousemove",he),window.removeEventListener("scroll",xe),Y.removeEventListener("touchend",D),Y.removeEventListener("mouseup",D),document.body.removeEventListener("mouseleave",D)}}},[m,n,s,y,E,a,w]),_.useEffect(function(){var Y;if(!((Y=I)===null||Y===void 0)&&Y.current){var G=I.current.classList.contains("ptr--fetch-more-treshold-breached");G||a&&q()<w&&i&&(I.current.classList.add("ptr--fetch-more-treshold-breached"),j=!0,i().then(X).catch(X))}},[a,m]);var q=function(){if(!P||!P.current)return-1;var Y=window.scrollY,G=P.current.scrollHeight;return G-Y-window.innerHeight},X=function(){requestAnimationFrame(function(){P.current&&(P.current.style.overflowX="hidden",P.current.style.overflowY="auto",P.current.style.transform="unset"),U.current&&(U.current.style.opacity="0"),I.current&&(I.current.classList.remove("ptr--pull-down-treshold-breached"),I.current.classList.remove("ptr--dragging"),I.current.classList.remove("ptr--fetch-more-treshold-breached")),z&&(z=!1),j&&(j=!1)})},ae=function(Y){$=!1,Y instanceof MouseEvent&&(Z=Y.pageY),window.TouchEvent&&Y instanceof TouchEvent&&(Z=Y.touches[0].pageY),J=Z,!(Y.type==="touchstart"&&OU(Y.target,Uh.UP))&&(P.current.getBoundingClientRect().top<0||($=!0))},he=function(Y){if($){if(window.TouchEvent&&Y instanceof TouchEvent?J=Y.touches[0].pageY:J=Y.pageY,I.current.classList.add("ptr--dragging"),J<Z){$=!1;return}Y.cancelable&&Y.preventDefault();var G=Math.min((J-Z)/A,E);G>=y&&($=!0,z=!0,I.current.classList.remove("ptr--dragging"),I.current.classList.add("ptr--pull-down-treshold-breached")),!(G>=E)&&(U.current.style.opacity=(G/65).toString(),P.current.style.overflow="visible",P.current.style.transform="translate(0px, "+G+"px)",U.current.style.visibility="visible")}},xe=function(Y){j||a&&q()<w&&i&&(j=!0,I.current.classList.add("ptr--fetch-more-treshold-breached"),i().then(X).catch(X))},D=function(){if($=!1,Z=0,J=0,!z){U.current&&(U.current.style.visibility="hidden"),X();return}P.current&&(P.current.style.overflow="visible",P.current.style.transform="translate(0px, "+y+"px)"),s().then(X).catch(X)};return F.createElement("div",{className:"ptr "+O,style:{backgroundColor:R},ref:I},F.createElement("div",{className:"ptr__pull-down",ref:U},F.createElement("div",{className:"ptr__loader ptr__pull-down--loading"},c),F.createElement("div",{className:"ptr__pull-down--pull-more"},h)),F.createElement("div",{className:"ptr__children",ref:P},m,F.createElement("div",{className:"ptr__fetch-more",ref:H},F.createElement("div",{className:"ptr__loader ptr__fetch-more--loading"},c))))};function rre(t){return t.scopedOutFolder!==void 0||(t.droppedFacets?.length??0)>0||t.droppedSemantic===!0}function are(t){return`Your search was limited to ${t}. This filter matches these messages in any folder — it can't be pinned to one.`}const sre=t=>t.length===1?t[0]:t.length===2?`${t[0]} and ${t[1]}`:`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`;function ore(t){const e=t.length===1?"a filter condition":"filter conditions",n=t.length===1?"isn't":"aren't";return`${sre(t)} ${n} ${e}, so ${t.length===1?"it was":"they were"} left out — the filter still matches everything else you searched for.`}const ire="The filter matches these words literally. Your search also found similar mail by meaning — a filter can't carry that, so it won't catch mail that means the same thing without these words.";function BS({icon:t,children:e}){return C.jsxs("li",{className:"flex items-start gap-2",children:[C.jsx("span",{className:"mt-0.5 shrink-0 text-fg-subtle","aria-hidden":"true",children:t}),C.jsx("span",{children:e})]})}function lre({notice:t}){return rre(t)?C.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken px-3 py-2.5",children:[C.jsx("p",{className:"text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"From your search"}),C.jsxs("ul",{className:"mt-1.5 space-y-1.5 text-xs text-fg-muted",children:[t.scopedOutFolder!==void 0&&C.jsx(BS,{icon:C.jsx(NJ,{className:"size-3.5"}),children:are(t.scopedOutFolder)}),t.droppedFacets&&t.droppedFacets.length>0&&C.jsx(BS,{icon:C.jsx(RL,{className:"size-3.5"}),children:ore(t.droppedFacets)}),t.droppedSemantic&&C.jsx(BS,{icon:C.jsx(AE,{className:"size-3.5"}),children:ire})]})]}):null}const ure={delete:{label:"Delete",present:"Deleting",past:"Deleted",destructive:!0},move:{label:"Move",present:"Moving",past:"Moved",destructive:!1},junk:{label:"Junk",present:"Marking as junk",past:"Marked as junk",destructive:!0},markRead:{label:"Mark read",present:"Marking read",past:"Marked read",destructive:!1},organize:{label:"Organize",present:"Organizing",past:"Organized",destructive:!1}},tk=t=>ure[t],cre={match:"Apply to",properties:"Properties",folder:"Folder",rule:"Rule",name:"Name",review:"Review",run:"Run"},MU=t=>cre[t],TRe=({verb:t,mode:e,scope:n,fromSearch:r})=>{const a=r?["properties"]:e==="properties"?["match","properties"]:["match"];return t==="move"?[...a,"folder","review","run"]:t==="organize"?n==="standing"||n==="until"?[...a,"folder","rule","name","review","run"]:[...a,"folder","rule","review","run"]:[...a,"review","run"]},vp=(t,e)=>Math.max(0,t.indexOf(e)),dre=(t,e)=>vp(t,e)===0||e==="run",fre=(t,e)=>({clauses:[...t.clauses],matchOperator:t.matchOperator,widen:t.widen,moveMailboxId:t.moveMailboxId,scope:e,until:t.until,name:t.name}),PU=t=>yU(fre(t,t.scope??"once")),RRe="A rule only works within one account — clear the selection, or pick messages from a single account.",IRe="A destination only works within one account — clear the selection, or pick messages from a single account.",hre="This matches no messages, so there is nothing to do. Go back and change what it applies to.",pre="Fill in every property, or take the empty one off.",mre="Pick a destination first.",gre="Choose one of the three first.",ORe=(t,e,n)=>{if(t==="properties")return e.clauses.length===0?Aa.noMatch:e.clauses.some(r=>r.value.trim()==="")?pre:void 0;if(t==="folder")return e.moveMailboxId?void 0:mre;if(t==="rule")return e.scope?e.scope==="once"&&PU(e).length>0?Aa.bodyTextOnce:e.scope==="until"&&!e.until?.trim()?Aa.noUntilDate:void 0:gre;if(t==="name"&&!e.name?.trim())return Aa.unnamed;if(t==="review")return n.status==="uncounted"?void 0:n.status==="ready"&&n.count===0&&!n.stale?hre:wU(n)},vre={noMatch:"Nothing matches this yet. Widen a property, or match on a different one.",notIndexed:"This mail isn't indexed yet, so nothing can be counted. The rule still matches once indexing catches up."},yre=t=>vre[t],nk=({state:t,verb:e,scope:n,matched:r,applied:a,failed:s,failureReason:i})=>{const{label:u,present:c,past:f}=tk(e),h=f.toLowerCase(),m=n==="standing"||n==="until",y={screenTitle:t==="saving"||t==="backApplyRunning"||t==="statusUnknown"||t==="commitFailed"?u:"Done",showProgress:t==="backApplyRunning"||t==="backApplyComplete"||t==="backApplyFailed"||t==="backApplyRestartFailed"||t==="statusUnknown"||t==="runStopped",failureListLabel:`Not ${h}`};return t==="saving"?{...y,title:m?"Saving rule…":"Applying…",detail:"Nothing has been changed yet.",tone:"progress",dismissLabel:"Close"}:t==="backApplyRunning"?{...y,title:m?"Rule saved. Moving the mail already in your mailbox…":`${c} ${r} messages…`,detail:"This keeps running if you close the wizard.",tone:"progress",dismissLabel:"Close",cancelLabel:"Stop the run"}:t==="statusUnknown"?{...y,title:m?"Rule saved. Its progress over your existing mail is unknown":`${c} — progress unknown`,detail:m?"The connection dropped, so the bar shows the last that was read. The pass runs on the mail server, and the rule keeps working on new mail either way. This keeps checking.":"The connection dropped, so the bar shows the last that was read. The run is on the mail server and carries on either way. This keeps checking.",tone:"warning",dismissLabel:"Close",retryLabel:"Check again"}:t==="backApplyComplete"?{...y,title:m?"Rule saved and applied":`${f} ${a}`,detail:m?`${a} of ${r} already in your mailbox ${h}. New mail follows the rule as it arrives.`:`Every message the match reached was ${h}. Your mail server is still catching up, so the list can lag behind.`,tone:"success",dismissLabel:"Done"}:t==="backApplyFailed"?{...y,title:m?"Rule saved — some mail stayed put":`Not everything was ${h}`,detail:`${a} of ${r} ${h} · the mail server rejected ${s}.${m?" The rule itself is saved and keeps working on new mail.":""}`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:t==="runStopped"?{...y,title:`Stopped after ${a}`,detail:`${a} of ${r} ${h}. The run stopped before it reached the rest, so nothing was sent for them and nothing has happened to them.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:t==="backApplyRestartFailed"?{...y,title:m?"Rule saved — the retry didn't start":"The retry didn't start",detail:`${a} of ${r} ${h} · the mail server rejected ${s}, which are still where they were.${m?" The rule itself is saved and keeps working on new mail.":""} Check your connection and try again.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:t==="backApplyStartFailed"?{...y,title:"Rule saved",detail:"New mail follows it automatically. The pass over the mail already in your mailbox never started.",tone:"warning",dismissLabel:"Not now",retryLabel:"Run it over existing mail"}:t==="filterSaved"?{...y,title:"Filter saved",detail:"There is no mail in your mailbox to apply it to yet. New mail follows it as it arrives. You can see it, and when it expires, under Settings › Filters.",tone:"success",dismissLabel:"Done"}:{...y,title:m?"Couldn't save the rule":`Couldn't start ${u.toLowerCase()}`,detail:i??"Nothing has changed.",tone:"danger",dismissLabel:i===void 0?"Not now":"Close",retryLabel:i===void 0?"Try again":void 0}},bre=t=>`${Bc(t.field)} "${t.value}"`,DU=(t,e)=>t.map(bre).join(` ${ek(e)} `),f0=(t,e)=>t==="selected"?`These ${e} messages`:t==="similar"?$0({anchorCount:e}):DE("properties"),$S=t=>t==="selected"?"Only the messages ticked in the list.":vU(t),LU=t=>`Every message ${t}`,rk="the list is showing",Sre="This reaches every match on the mail server, including the ones the list has not loaded. The search is already the match, so there is nothing to widen.",wre="This covers messages not shown in the list, and anything else matching by the time it runs.",xre=({mode:t,selectedCount:e,clauses:n,matchOperator:r,escalatedScope:a})=>t==="escalated"?LU(a??rk):t==="properties"?DU(n,r):f0(t,e),Cre=({mode:t,selectedCount:e,clauses:n,matchOperator:r,escalatedScope:a,escalatedCount:s})=>{if(t==="selected")return`${e} messages`;if(t==="escalated"){const i=a??rk;return s===void 0?`every message ${i}`:`all ${s.toLocaleString()} messages ${i}`}return t==="similar"?`mail ${$0({anchorCount:e}).toLowerCase()}`:n.length===0?"every message":`every message where ${DU(n,r)}`};function Ere({steps:t,step:e}){const n=vp(t,e);return C.jsx("ol",{className:"flex items-center gap-1.5","aria-label":"Progress",children:t.map((r,a)=>C.jsx("li",{className:"flex flex-1 items-center gap-1.5",children:C.jsx("span",{className:Ue("h-1 flex-1 rounded-full transition-colors",a<=n?"bg-accent":"bg-surface-sunken"),"aria-current":a===n?"step":void 0})},r))})}function _re({title:t,subtitle:e,steps:n,step:r,onBack:a,onExit:s,footer:i,children:u}){const c=vp(n,r);return C.jsx("div",{role:"dialog","aria-modal":"true","aria-label":t,className:"fixed inset-0 z-50 flex flex-col font-sans text-fg md:items-center md:justify-center md:bg-black/40 md:p-6",children:C.jsxs("div",{className:"flex min-h-0 w-full flex-1 flex-col bg-canvas md:h-[45rem] md:max-h-[calc(100dvh-3rem)] md:w-[35rem] md:max-w-[calc(100vw-3rem)] md:flex-none md:overflow-hidden md:rounded-xl md:border md:border-line md:shadow-lg",children:[C.jsxs("header",{className:"shrink-0 border-b border-line px-3 pb-2 pt-[calc(0.75rem+env(safe-area-inset-top,0px))] md:pt-3",children:[C.jsxs("div",{className:"flex items-center gap-1",children:[C.jsx("button",{type:"button",onClick:a,"aria-label":"Back",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:C.jsx(AL,{className:"size-5"})}),C.jsxs("div",{className:"min-w-0 flex-1 text-center",children:[C.jsx("h1",{className:"truncate text-sm font-semibold",children:t}),e&&C.jsx("p",{className:"truncate text-2xs text-fg-muted",children:e})]}),C.jsx("button",{type:"button",onClick:s,"aria-label":"Cancel",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:C.jsx(Ms,{className:"size-5"})})]}),C.jsxs("div",{className:"space-y-1 px-1 pt-2",children:[C.jsx(Ere,{steps:n,step:r}),C.jsxs("p",{className:"text-2xs text-fg-subtle",children:["Step ",c+1," of ",n.length," · ",MU(n[c])]})]})]}),C.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-4",children:u}),C.jsx("footer",{className:"shrink-0 border-t border-line px-4 py-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] md:pb-3",children:i})]})})}function $c({selected:t,title:e,description:n,unavailable:r,onSelect:a,children:s}){const i=_.useId();return C.jsxs("div",{className:"space-y-1.5",children:[C.jsxs("button",{type:"button",onClick:a,"aria-pressed":t,"aria-describedby":r&&s?i:void 0,className:Ue("flex w-full items-start gap-3 rounded-lg border p-3 text-left transition-colors",t?"border-accent bg-accent-soft":"border-line bg-surface hover:bg-surface-sunken",r&&"opacity-55"),children:[C.jsx("span",{className:Ue("mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full border",t?"border-accent bg-accent text-accent-fg":"border-line"),children:t&&C.jsx(rv,{className:"size-3"})}),C.jsxs("span",{className:"min-w-0 flex-1",children:[C.jsx("span",{className:"block text-sm font-medium text-fg",children:e}),C.jsx("span",{className:"mt-0.5 block text-xs text-fg-muted",children:n})]})]}),s&&C.jsx("div",{id:i,children:s})]})}const kre=(t,e)=>t.status==="uncounted"?"The first matches. The total is not known until the run finishes.":t.status==="ready"&&t.count>e&&!t.stale?`and ${t.count-e} more`:bU(t),Are=(t,e,n)=>n?"Fetching the messages this covers…":t.status==="error"?t.reason:yre(e??"noMatch");function W0({messages:t,count:e,label:n,emptyReason:r,loading:a}){return C.jsxs("section",{className:"flex flex-col rounded-lg border border-line bg-surface",children:[C.jsx("h2",{className:"shrink-0 border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:n}),t.length===0?C.jsx("p",{className:"px-3 py-4 text-xs text-fg-muted",children:Are(e,r,a)}):C.jsxs(C.Fragment,{children:[C.jsx("ul",{className:"min-h-0 max-h-[45dvh] divide-y divide-line overflow-y-auto overscroll-contain md:max-h-[17rem]",children:t.map(s=>C.jsxs("li",{className:"px-3 py-2",children:[C.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[C.jsx("span",{className:"truncate text-xs font-medium text-fg",children:s.sender}),C.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:s.date})]}),C.jsx("p",{className:"truncate text-xs text-fg-muted",children:s.subject})]},s.id))}),C.jsx("p",{className:"shrink-0 border-t border-line px-3 py-2 text-2xs text-fg-subtle",children:kre(e,t.length)})]})]})}function $O({onBack:t,nextLabel:e,onNext:n,nextVariant:r="primary",blockedReason:a,nudged:s}){const i=_.useId();return C.jsxs("div",{className:"space-y-2",children:[a&&C.jsx(ene,{id:i,reason:a,nudged:s,className:"px-1 text-2xs text-warning"}),C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"touch",onClick:t,icon:C.jsx(AL,{className:"size-4"}),className:"shrink-0",children:"Back"}),C.jsxs(on,{variant:r,size:"touch",onClick:n,"aria-describedby":a?i:void 0,className:Ue("flex-1",a&&"opacity-55"),children:[e,r==="primary"&&C.jsx(_J,{className:"size-4"})]})]})]})}function Tre({selectedCount:t,mode:e,onModeChange:n,semanticUnavailable:r,semanticErrorDetail:a,semanticFallbackTaken:s,onSemanticFallback:i,escalatedScope:u,sample:c}){return e==="escalated"?C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"rounded-lg border border-accent bg-accent-soft p-3",children:[C.jsx("p",{className:"text-sm font-medium text-fg",children:LU(u??rk)}),C.jsx("p",{className:"mt-1 text-xs text-fg-muted",children:Sre})]}),C.jsx("div",{className:"mt-4",children:C.jsx(W0,{...c})})]}):C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"space-y-2",children:[C.jsx($c,{selected:e==="selected",onSelect:()=>n("selected"),title:f0("selected",t),description:$S("selected")}),C.jsxs($c,{selected:e==="similar",unavailable:r,onSelect:r?i:()=>n("similar"),title:f0("similar",t),description:$S("similar"),children:[a&&C.jsxs("p",{role:"status",className:"px-1 text-2xs text-danger",children:["Couldn't find similar messages: ",a]}),s&&C.jsx("p",{role:"status",className:"px-1 text-2xs text-fg-subtle",children:"Similar-mail matching is unavailable right now — matching on the senders instead."})]}),C.jsx($c,{selected:e==="properties",onSelect:()=>n("properties"),title:f0("properties",t),description:$S("properties")})]}),C.jsx("div",{className:"mt-4",children:C.jsx(W0,{...c})})]})}const Rre=[{value:"all",label:H0("all")},{value:"any",label:H0("any")}];function Ire({clauses:t,matchOperator:e,onMatchOperatorChange:n,clauseEdit:r,onStartAddClause:a,onStartEditClause:s,onRemoveClause:i,onChangeDraft:u,onSubmitClause:c,onCancelClause:f,clauseFields:h,clauseSuggestions:m,conversionNotice:g,semanticFallbackTaken:y,sample:S}){const w=ek(e);return C.jsxs("div",{className:"space-y-4",children:[y&&C.jsx("p",{role:"status",className:"px-1 text-xs text-fg-muted",children:"Similar-mail matching is unavailable right now. These are the senders of the messages you picked."}),g&&C.jsx(lre,{notice:g}),C.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[t.map((x,E)=>C.jsxs(_.Fragment,{children:[E>0&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:w}),C.jsx(CU,{clause:x,onEdit:()=>s(x.id),onRemove:()=>i(x.id)})]},x.id)),!r&&C.jsx(LE,{label:"Add clause",onClick:a})]}),r&&C.jsx(EU,{draft:r.draft,mode:r.mode,fields:h,suggestions:m,onChangeField:x=>u({...r.draft,field:x}),onChangeValue:x=>u({...r.draft,value:x}),onSubmit:c,onCancel:f}),t.length>1&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),C.jsx(d0,{name:"wizard-match-operator",size:"sm","aria-label":"Match operator",options:Rre,value:e,onChange:n})]}),C.jsx("p",{className:"px-1 text-xs text-fg-muted",children:"We started you off from what you were looking at. Change any of it — this is where the rule is decided, not the list behind it."}),C.jsx(W0,{...S})]})}function Ore({folders:t,mailboxId:e,onSelect:n,onCreateFolder:r,delimiter:a,restriction:s}){const i=t.find(u=>u.id===e);return C.jsxs("div",{className:"flex min-h-0 flex-col gap-3",children:[C.jsx("p",{className:Ue("px-1 text-xs",s?"text-warning":"text-fg-muted"),children:s??(i?`Moving to ${i.label}.`:"Tap a folder to open it, or make a new one where you want it.")}),C.jsx("div",{className:"flex min-h-0 flex-1 overflow-hidden rounded-lg border border-line bg-surface",children:C.jsx(RU,{folders:t,selectedId:e,onSelect:n,onCreateFolder:r,delimiter:a,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})})]})}function Nre({draft:t,onScopeChange:e,onUntilChange:n,restriction:r}){const a=_.useId(),{scope:s,until:i=""}=t,u=PU(t).length>0,c=r&&C.jsx("p",{className:"px-1 text-2xs text-warning",children:r});return C.jsxs("div",{className:"space-y-2",children:[C.jsx($c,{selected:s==="once",onSelect:()=>e("once"),title:c0("once"),description:"A one-off tidy-up. Nothing changes for future mail.",children:u&&C.jsx("p",{className:"px-1 text-2xs text-warning",children:Aa.bodyTextOnce})}),C.jsx($c,{selected:s==="standing",unavailable:!!r,onSelect:()=>e("standing"),title:c0("standing"),description:"Saves a rule and applies it to new mail as it arrives, and to the mail already in your mailbox. You'll name it next.",children:c}),C.jsxs($c,{selected:s==="until",unavailable:!!r,onSelect:()=>e("until"),title:c0("until"),description:"The same rule, and it stops on a day you pick.",children:[c,s==="until"&&C.jsxs("div",{className:"rounded-lg border border-line bg-surface p-2",children:[C.jsx(J_,{htmlFor:a,children:"Stops on"}),C.jsx(ts,{id:a,type:"date",value:i,onChange:f=>n(f.target.value)})]})]})]})}function Mre({name:t,onNameChange:e,nudged:n}){const r=_.useId(),a=_.useRef(null);return _.useEffect(()=>{n&&a.current?.focus()},[n]),C.jsxs(C.Fragment,{children:[C.jsx(J_,{htmlFor:r,children:"Rule name"}),C.jsx(ts,{id:r,ref:a,value:t,placeholder:"Travel confirmations",onChange:s=>e(s.target.value),trailing:t?C.jsx("button",{type:"button","aria-label":"Clear name",onClick:()=>{e(""),a.current?.focus()},className:"-mr-1 flex size-7 shrink-0 items-center justify-center rounded-full text-fg-subtle hover:bg-surface hover:text-fg",children:C.jsx(Ms,{className:"size-4"})}):void 0}),C.jsx("p",{className:"mt-2 text-xs text-fg-muted",children:"We suggested one from this selection. Clear it and write your own if it doesn't read right."})]})}function Pre({verb:t,mode:e,selectedCount:n,clauses:r,matchOperator:a,folder:s,scope:i,until:u,ruleName:c,escalatedScope:f,sample:h}){const{label:m}=tk(t),g={mode:e,selectedCount:n,clauses:r,matchOperator:a,escalatedScope:f,escalatedCount:h.count.status==="ready"?h.count.count:void 0},y=e!=="selected",S=i==="standing"||i==="until";return C.jsxs("div",{className:"space-y-4",children:[C.jsxs("div",{className:"rounded-lg border border-line bg-surface p-3",children:[C.jsxs("p",{className:"text-sm text-fg",children:[C.jsx("span",{className:"font-semibold",children:m})," ",Cre(g),s?` to ${s}`:"",S&&C.jsxs(C.Fragment,{children:[" ","and ",C.jsx("span",{className:"font-medium",children:"save a rule"})," that keeps doing it"]}),i==="until"&&u&&` until ${u}`,"."]}),y&&C.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[C.jsx(Nh,{className:"mt-px size-3.5 shrink-0"}),e==="escalated"?wre:"This covers messages not shown in the list."]})]}),C.jsxs("dl",{className:"divide-y divide-line overflow-hidden rounded-lg border border-line bg-surface text-xs",children:[C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Action"}),C.jsx("dd",{className:"font-medium",children:m})]}),C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"shrink-0 text-fg-muted",children:"Apply to"}),C.jsx("dd",{className:"truncate font-medium",children:xre(g)})]}),s&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Destination"}),C.jsx("dd",{className:"font-medium",children:s})]}),i&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Scope"}),C.jsxs("dd",{className:"font-medium",children:[c0(i),i==="until"&&u?` · ${u}`:""]})]}),c!==void 0&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Rule name"}),C.jsx("dd",{className:"truncate font-medium",children:c})]})]}),C.jsx(W0,{...h})]})}const ak=t=>({state:t.state,verb:t.verb,scope:t.scope,matched:t.matched,applied:t.applied,failed:t.failedCount??t.failures.length,failureReason:t.failureReason}),Dre=t=>t==="progress"?C.jsx(j0,{className:"size-10 animate-spin text-accent"}):t==="warning"?C.jsx(Nh,{className:"size-10 text-warning"}):t==="danger"?C.jsx(Nh,{className:"size-10 text-danger"}):C.jsx("span",{className:"flex size-12 items-center justify-center rounded-full bg-accent-soft text-accent",children:C.jsx(rv,{className:"size-6"})});function Lre(t){const{matched:e,applied:n,failures:r}=t,a=ak(t),s=nk(a),i=t.state==="runStopped"?"Never sent":"Server rejected";return C.jsxs("div",{className:"space-y-4 pt-2",children:[C.jsxs("div",{className:"flex flex-col items-center gap-3 py-6 text-center",children:[Dre(s.tone),C.jsx("p",{className:"text-sm font-medium",children:s.title}),C.jsx("p",{className:"max-w-xs text-xs text-fg-muted",children:s.detail})]}),s.showProgress&&C.jsx(Zne,{value:n,max:e,tone:a.failed>0?"warning":"success"}),r.length>0&&C.jsxs("section",{className:"rounded-lg border border-line bg-surface",children:[C.jsx("h2",{className:"border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:s.failureListLabel}),C.jsx("ul",{className:"divide-y divide-line",children:r.map(u=>C.jsxs("li",{className:"px-3 py-2",children:[C.jsx("p",{className:"truncate text-xs font-medium",children:u.sender}),C.jsx("p",{className:"truncate text-xs text-fg-muted",children:u.subject}),C.jsx(IE,{className:"mt-1",tone:"warning",children:i})]},u.id))})]})]})}function Ure(t){const{onRetry:e,onDismiss:n,onCancelRun:r}=t,a=nk(ak(t));return a.cancelLabel!==void 0&&r?C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"md",className:"min-h-11 shrink-0",onClick:r,children:a.cancelLabel}),C.jsx(on,{variant:"primary",size:"md",className:"min-h-11 flex-1",onClick:n,children:a.dismissLabel})]}):a.retryLabel===void 0?C.jsx(on,{variant:a.tone==="progress"?"ghost":"primary",size:"touch",className:"w-full",onClick:n,children:a.dismissLabel}):C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"touch",onClick:n,children:a.dismissLabel}),C.jsx(on,{variant:"primary",size:"touch",className:"flex-1",onClick:e,children:a.retryLabel})]})}const zre={match:{subtitle:"What should this apply to?"},properties:{title:"Match properties",subtitle:"Which properties have to match?"},folder:{title:"Move to",subtitle:"Pick a destination"},rule:{title:"Organize",subtitle:"How long should this hold?"},name:{title:"Name the rule",subtitle:"So you can find it later"},review:{title:"Review",subtitle:"Check before it runs"},run:{}},vs=(t,e)=>{if(t===void 0)throw new Error(`The ${MU(e)} step was rendered without its answers.`);return t};function NRe(t){const{verb:e,steps:n,onExit:r,onContinue:a,onCommit:s}=t,{label:i,destructive:u}=tk(e),c=n[vp(n,t.step)],f=zre[c],h=dre(n,c)?r:t.onBack,m=()=>c==="match"?C.jsx(Tre,{...vs(t.match,c)}):c==="properties"?C.jsx(Ire,{...vs(t.properties,c)}):c==="folder"?C.jsx(Ore,{...vs(t.folder,c)}):c==="rule"?C.jsx(Nre,{...vs(t.rule,c)}):c==="name"?C.jsx(Mre,{...vs(t.name,c),nudged:t.nudged}):c==="review"?C.jsx(Pre,{...vs(t.review,c)}):C.jsx(Lre,{...vs(t.run,c)}),g=()=>{if(c==="run")return C.jsx(Ure,{...vs(t.run,c)});if(c==="review"){const w=vs(t.review,c);return C.jsx($O,{onBack:h,nextLabel:w.scope?SU(w.scope):i,nextVariant:u?"danger":"primary",onNext:s,blockedReason:t.blockedReason,nudged:t.nudged})}return C.jsx($O,{onBack:h,nextLabel:"Continue",onNext:a,blockedReason:t.blockedReason,nudged:t.nudged})},y=()=>c!=="run"?f.title??i:nk(ak(vs(t.run,c))).screenTitle,S=c==="match"&&t.match?.mode==="escalated"?"What this applies to":f.subtitle;return C.jsx(_re,{title:y(),subtitle:S,steps:n,step:c,onBack:h,onExit:r,footer:g(),children:m()})}const jre={preparing:"Getting the new version ready",restarting:"Restarting Remit",reconnecting:"Waiting for Remit to answer again"};function HO(t){return jre[t]}function Fre(t){return t<90?"This usually takes about a minute.":t<240?"Longer than usual. Remit is still trying to reach the server.":"Still no answer. Remit keeps trying."}function MRe(t,e=Date.now()){const n=Math.floor((e-t)/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function PRe(t){return new Date(t).toLocaleDateString(void 0,{dateStyle:"medium"})}function Bre({children:t,show:e,label:n="Update available"}){return C.jsxs("span",{className:"relative inline-flex",children:[t,e&&C.jsxs(C.Fragment,{children:[C.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-accent-2"}),C.jsx("span",{className:"sr-only",children:n})]})]})}const qO=["preparing","restarting","reconnecting"],$re='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';function UU(t){_.useEffect(()=>{const e=t.current;if(!e)return;const n=()=>Array.from(e.querySelectorAll($re));(n()[0]??e).focus();const r=a=>{if(a.key!=="Tab")return;const s=n();if(s.length===0){a.preventDefault(),e.focus();return}const i=s[0],u=s[s.length-1],c=document.activeElement;if(a.shiftKey&&(c===i||!e.contains(c))){a.preventDefault(),u.focus();return}!a.shiftKey&&(c===u||!e.contains(c))&&(a.preventDefault(),i.focus())};return window.addEventListener("keydown",r,!0),()=>window.removeEventListener("keydown",r,!0)},[t])}const zU="fixed inset-0 z-50 flex flex-col items-center justify-center gap-6 bg-canvas p-6 text-center outline-none";function Hre({target:t,phase:e,elapsedSeconds:n}){const r=_.useRef(null);UU(r);const a=qO.indexOf(e);return C.jsxs("div",{ref:r,role:"dialog","aria-modal":"true","aria-labelledby":"self-update-progress-title",tabIndex:-1,className:zU,children:[C.jsxs("div",{className:"max-w-md space-y-2",children:[C.jsxs("h1",{id:"self-update-progress-title",className:"text-lg font-semibold text-fg",children:["Installing Remit ",t]}),C.jsx("p",{className:"text-sm text-fg-muted",children:"Remit is restarting, so this page has no server to talk to for a moment. Leave this open — it reconnects on its own."})]}),C.jsx("ol",{className:"w-full max-w-sm space-y-2 text-left",children:qO.map((s,i)=>{const u=i<a,c=i===a;return C.jsxs("li",{className:Ue("flex items-center gap-3 rounded-sm border px-row-inset py-2 text-sm",c?"border-line-strong bg-surface text-fg":"border-line bg-surface-sunken text-fg-subtle"),children:[u?C.jsx(rv,{className:"size-4 shrink-0 text-positive","aria-hidden":!0}):c?C.jsx(j0,{className:"size-4 shrink-0 animate-spin text-accent-2","aria-hidden":!0}):C.jsx("span",{className:"size-4 shrink-0 rounded-full border border-line-strong"}),HO(s)]},s)})}),C.jsxs("p",{"aria-live":"polite",className:"max-w-md text-xs text-fg-subtle",children:[C.jsx("span",{className:"sr-only",children:`${HO(e)}. `}),Fre(n)]})]})}function qre({attemptedVersion:t,previousVersion:e,elapsedSeconds:n,logsCommand:r,onRetryConnection:a}){const s=_.useRef(null);UU(s);const i=Math.max(1,Math.round(n/60));return C.jsxs("div",{ref:s,role:"alertdialog","aria-modal":"true","aria-labelledby":"self-update-unreachable-title",tabIndex:-1,className:zU,children:[C.jsx(V_,{className:"size-12 shrink-0 text-danger","aria-hidden":!0}),C.jsxs("div",{className:"max-w-lg space-y-3",children:[C.jsx("h1",{id:"self-update-unreachable-title",className:"text-lg font-semibold text-fg",children:"Remit has not answered since the restart"}),C.jsxs("p",{className:"text-sm text-fg-muted",children:["Installing ",t," started ",i," minute",i===1?"":"s"," ago and the server has been silent since. Your mail is safe at your provider — it was never part of the update."]}),C.jsxs("p",{className:"text-sm text-fg-muted",children:["Remit rolls back to ",e," on its own when the new version fails to start, but this page cannot confirm that from here. Check the server directly:"]}),C.jsx("code",{className:"block rounded-xs bg-surface-sunken px-3 py-2 text-left text-xs text-fg-muted",children:r})]}),C.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2",children:C.jsx(on,{size:"sm",onClick:a,children:"Try connecting again"})})]})}function Wre(t,e,n){if(!e.allowPrivateDomains&&t.length>3){const r=t.length-1,a=t.charCodeAt(r),s=t.charCodeAt(r-1),i=t.charCodeAt(r-2),u=t.charCodeAt(r-3);if(a===109&&s===111&&i===99&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="com",!0;if(a===103&&s===114&&i===111&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="org",!0;if(a===117&&s===100&&i===101&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="edu",!0;if(a===118&&s===111&&i===103&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="gov",!0;if(a===116&&s===101&&i===110&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="net",!0;if(a===101&&s===100&&i===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="de",!0}return!1}const Il=new Uint8Array([1,2,1,1,1,1,1,1,1,1,1,1,0,2,2,2,0,2,2,0,2,0,0,1,0,0,2,1,1,1,1,1,1,0,0,0,1,0,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,1,0,1,1,0,0,0,0,0,0,1,1,1,0,2,0,0,0,0,0,0,0,2,0,2,2,0,0,2,2,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,2,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0,0,0,0,2,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,2,2,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,1,0,2,2,0,0,0,2,0,1,1,0,2,0,2,2,0,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,0,0,0,0,1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,2,2,0,2,2,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,2,0,2,2,2,2,0,0,0,0,2,0,0,0,0,0,0,2,2,0,0,0,2,2,1,1,1,1,2,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,2,2,0,0,2,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,2,2,1,2,1,1,1,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,2,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0]),V0=new Uint16Array([0,0,0,10,11,18,106,111,117,124,130,136,145,146,147,148,149,150,151,153,154,155,157,159,226,239,241,242,243,258,265,266,269,270,271,274,276,295,296,298,307,312,313,331,332,335,337,338,340,374,375,377,380,381,385,387,391,394,426,429,442,443,451,452,454,464,478,479,480,489,490,527,532,548,568,574,615,616,643,670,671,819,825,828,829,830,835,840,849,871,872,873,874,875,876,877,895,897,898,901,903,904,906,908,923,938,943,944,946,947,948,949,950,952,955,960,961,962,964,965,968,971,972,973,986,988,1e3,1011,1019,1021,1061,1064,1068,1069,1071,1074,1085,1087,1097,1099,1105,1107,1108,1110,1113,1114,1115,1167,1169,1171,1191,1192,1193,1194,1196,1207,1238,1249,1261,1270,1277,1282,1295,1306,1319,1320,1331,1365,1366,1367,1382,1397,1469,1470,1472,1473,1507,1508,1509,1512,1516,1518,1547,1548,1556,1557,1558,1560,1562,1563,1565,1566,1567,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1594,1595,1596,1598,2053,2056,2057,2059,2066,2073,2083,2087,2098,2099,2100,2112,2113,2115,2117,2118,2125,2126,2128,2129,2131,2132,2133,2134,2135,2209,2211,2232,2233,2234,2236,2262,2263,2314,2315,2317,2324,2330,2340,2350,2403,2404,2405,2415,2429,2430,2433,2440,2441,2449,2450,2451,2452,2453,2464,2465,2466,2468,2469,2470,2471,2473,2483,2495,2501,2533,2537,2539,2540,2542,2543,2554,2555,2557,2565,2572,2578,2583,2584,2590,2593,2599,2606,2607,2614,2622,2623,2624,2662,2668,2683,2684,2689,2707,2738,2756,2758,2761,2769,2771,2778,2830,2854,2855,2856,2857,2858,2859,2860,2861,2868,2869,2870,2871,2872,2873,2875,2876,2880,2964,2977,2978,3414,3418,3432,3484,3512,3534,3592,3614,3629,3692,3743,3781,3817,3842,3984,4030,4081,4100,4134,4149,4169,4199,4230,4253,4284,4314,4346,4373,4448,4470,4508,4518,4552,4571,4597,4639,4689,4715,4784,4785,4787,4810,4833,4869,4900,4917,4974,4987,5011,5040,5042,5076,5092,5120,5425,5434,5443,5450,5467,5471,5477,5516,5518,5525,5532,5541,5548,5549,5560,5563,5578,5579,5588,5589,5598,5607,5613,5615,5616,5617,5653,5654,5656,5664,5671,5684,5688,5690,5691,5697,5704,5718,5728,5733,5741,5749,5755,5756,5760,5762,5763,5775,5776,5777,5778,5780,5781,5784,5786,5789,5793,5794,5800,5801,5802,5804,5806,5808,5809,5810,5813,5815,5818,5819,5821,6019,6026,6027,6037,6042,6059,6073,6082,6083,6084,6088,6089,6091,6093,6099,6100,6103,6104,6106,6107,6108,7008,7009,7013,7031,7040,7043,7050,7051,7053,7054,7055,7057,7109,7110,7113,7114,7231,7232,7243,7254,7261,7264,7273,7274,7275,7290,7345,7536,7538,7539,7541,7546,7559,7574,7581,7590,7593,7596,7603,7611,7615,7616,7617,7631,7635,7644,7645,7646,7650,7685,7686,7703,7710,7718,7719,7724,7732,7776,7777,7783,7786,7797,7802,7803,7806,7839,7840,7846,7853,7854,7863,7872,7887,7891,7943,7944,7949,7951,7954,7956,7957,7958,7967,7981,7989,8003,8015,8016,8018,8020,8042,8053,8059,8060,8072,8084,8171,8183,8185,8194,8197,8203,8228,8231,8232,8233,8235,8238,8241,8252,8254,8256,8284,8358,8365,8369,8370,8379,8401,8402,8407,8408,8487,8489,8491,8500,8504,8510,8516,8522,8532,8537,8538,8556,8567,8572,8577,8587,8593,8597,8603,8609,10217,10218,10219,10226,10228]),G0=new Uint8Array([3,3,3,3,3,3,3,3,5,8,8,2,2,3,3,3,3,3,8,5,5,5,5,5,3,3,5,5,9,12,19,8,19,8,11,9,9,8,7,7,6,8,9,16,10,7,7,11,8,6,6,9,7,11,7,14,4,4,4,4,4,4,10,7,6,6,6,6,10,10,6,10,10,22,11,9,10,10,10,9,10,8,7,7,7,8,21,13,11,11,9,10,9,13,10,8,8,9,12,9,7,10,7,7,13,7,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,8,6,3,3,3,3,3,3,2,5,3,3,3,7,2,2,2,2,2,2,3,3,3,1,1,7,8,5,2,2,7,2,2,1,4,1,11,9,9,5,5,8,5,5,5,5,5,5,5,3,3,3,3,3,5,11,9,9,13,7,14,7,6,6,6,7,6,6,6,6,6,10,7,11,9,4,4,4,4,4,4,6,6,6,6,6,8,7,10,9,9,9,8,9,8,10,6,9,9,8,10,10,7,8,1,9,10,12,12,12,10,9,9,10,10,9,9,1,1,5,3,3,3,3,3,3,3,3,3,3,3,3,6,6,6,4,3,3,3,7,4,4,4,3,3,6,7,3,4,1,2,2,2,6,1,2,2,2,2,2,12,5,3,8,9,13,4,4,13,9,9,11,7,3,12,9,2,2,2,3,3,3,3,3,8,2,2,3,3,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,7,10,15,7,15,15,20,15,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,7,8,6,8,8,6,8,13,8,8,6,13,8,11,13,8,6,13,8,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,9,9,9,10,14,14,11,13,13,9,9,9,9,9,9,2,6,9,2,2,3,3,3,3,3,3,3,3,3,4,4,4,2,3,3,3,3,3,3,7,7,2,3,2,2,5,3,3,3,3,3,3,4,2,2,2,2,2,2,3,3,3,3,3,3,3,4,5,7,2,2,12,8,10,8,10,7,18,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,2,2,3,3,3,5,5,3,8,8,6,8,6,6,4,6,7,7,7,10,11,2,5,5,3,3,3,3,3,3,5,5,6,11,10,7,7,7,4,4,4,2,3,3,3,3,3,2,7,5,5,3,3,3,3,3,3,3,3,7,7,7,11,7,6,9,6,6,8,10,8,6,8,13,4,4,4,4,4,10,8,11,8,8,8,10,10,7,10,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,7,10,13,7,8,7,11,8,8,6,9,8,8,6,6,6,8,8,6,6,6,6,6,9,7,6,4,4,4,4,4,4,4,6,6,6,9,7,8,10,8,8,2,3,3,3,3,3,2,8,9,9,2,2,2,3,3,3,2,3,3,3,9,2,2,3,3,3,3,3,3,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,12,5,5,3,5,4,2,3,2,4,3,9,2,2,2,2,2,5,5,3,8,8,13,6,10,9,4,7,9,11,2,3,7,3,3,4,1,3,4,2,9,3,3,12,5,3,7,10,10,7,4,4,6,14,7,9,7,13,2,2,2,2,2,2,3,3,3,3,3,8,15,4,4,2,3,3,3,7,4,9,9,2,3,3,3,5,3,2,2,7,2,7,6,6,7,2,4,2,2,2,2,2,2,8,8,8,9,5,2,3,3,3,3,3,3,10,7,4,4,4,4,3,4,2,3,3,3,3,3,10,7,4,4,4,4,2,3,3,3,3,10,7,4,4,4,4,3,9,6,6,6,9,13,9,2,2,2,8,7,9,5,3,3,3,5,5,12,9,10,7,8,7,6,8,6,11,12,7,9,10,4,4,7,8,11,6,7,9,8,7,10,8,9,15,7,8,5,4,7,2,3,3,3,2,14,10,2,14,10,2,14,3,9,13,13,10,14,16,17,11,2,14,2,14,3,9,13,10,14,16,17,11,14,10,14,2,7,3,10,7,14,10,2,14,10,9,9,17,6,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,10,10,10,12,9,4,10,11,8,8,8,7,9,5,3,3,3,3,3,3,3,3,5,8,4,4,4,4,4,4,6,16,3,3,14,3,14,2,14,9,13,10,10,14,16,17,11,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,9,9,9,9,9,9,2,14,9,13,10,10,14,16,17,11,6,2,14,9,17,13,10,10,14,16,17,11,6,2,14,9,13,10,14,16,17,11,2,14,9,13,10,16,11,2,14,10,19,7,2,14,9,13,10,19,10,7,14,16,17,11,6,2,14,9,13,10,19,7,14,16,17,11,2,14,9,13,17,13,10,10,14,16,17,11,6,3,2,14,9,13,10,10,14,16,17,11,6,9,10,12,14,14,14,12,12,12,12,12,14,14,14,10,10,10,14,9,9,9,9,14,14,14,13,13,14,9,9,9,9,9,9,4,11,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,9,10,10,7,17,3,3,12,12,16,15,15,12,14,14,14,20,20,13,12,12,12,12,12,12,20,25,14,14,12,12,10,10,10,10,9,9,9,25,4,9,17,10,7,14,16,21,13,13,14,20,14,13,17,24,9,12,13,25,13,21,20,17,9,9,9,9,9,9,12,17,4,4,9,9,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,1,8,7,11,11,1,3,3,3,4,8,9,10,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,7,4,4,4,4,4,4,4,4,4,4,9,12,6,14,4,12,7,2,2,1,2,7,6,4,4,4,6,8,8,7,4,5,6,3,3,3,3,4,16,8,3,5,4,3,3,3,5,2,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,12,7,7,13,9,10,12,8,9,7,8,5,12,10,13,14,5,5,5,13,5,5,5,3,3,3,5,16,5,5,5,5,5,7,12,14,8,12,8,10,12,9,11,7,9,7,10,7,13,9,7,12,8,17,7,7,16,10,13,13,8,10,10,14,17,7,16,16,15,8,10,10,12,17,7,17,14,7,10,17,8,7,7,7,8,15,15,7,14,10,10,10,11,11,7,7,13,8,10,7,16,7,8,7,14,17,12,10,11,21,8,9,7,13,9,8,13,6,12,7,6,13,10,10,10,8,18,9,17,13,10,12,6,13,6,11,8,13,10,13,18,13,11,13,8,16,7,10,8,16,12,10,8,8,6,14,11,8,15,8,8,7,7,12,7,8,9,14,15,8,9,10,9,15,7,8,8,12,13,9,10,15,15,13,7,10,10,20,7,6,9,6,6,14,11,14,11,12,9,10,16,16,12,7,11,28,8,11,10,7,21,8,7,9,4,4,4,17,7,8,6,9,6,6,13,6,6,6,6,18,20,14,8,11,12,9,10,13,15,19,8,9,12,7,10,16,12,9,9,9,14,12,11,9,12,11,18,9,9,9,10,7,7,16,8,9,7,13,12,10,18,7,8,11,7,7,8,8,13,7,7,7,11,15,13,11,7,8,15,11,7,8,18,14,13,18,15,10,12,12,9,7,11,11,8,7,10,8,14,12,10,18,7,10,9,7,8,13,10,14,9,10,8,8,23,7,7,11,12,12,17,7,7,11,11,17,16,16,7,8,11,14,14,8,10,7,7,16,16,13,9,11,9,15,15,11,11,7,7,14,7,9,7,7,16,10,13,10,11,14,7,11,10,11,7,11,10,11,15,11,15,10,12,17,10,14,13,11,11,12,13,10,7,13,10,16,12,21,9,10,10,7,11,14,17,7,7,8,11,12,8,15,14,14,8,17,12,10,10,7,9,11,7,10,7,11,18,7,11,7,12,11,8,8,14,12,7,8,15,3,7,7,5,2,9,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,5,3,3,3,3,3,3,4,4,3,3,3,3,3,3,5,11,6,4,7,10,7,7,11,1,10,2,2,3,3,3,3,3,3,3,3,5,7,3,5,6,3,3,5,2,2,5,3,4,13,11,3,3,6,3,5,14,2,2,3,8,2,2,12,5,18,5,3,3,3,16,5,5,5,10,7,13,12,13,9,12,14,19,9,9,21,9,9,10,6,9,6,15,10,6,12,8,6,10,15,4,4,6,6,9,9,12,16,14,23,7,7,7,14,9,7,7,11,14,10,7,10,10,10,12,6,11,10,13,11,15,11,7,12,10,3,7,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,3,7,2,5,5,3,3,5,5,5,5,7,6,6,6,4,4,4,4,4,4,6,6,6,6,6,7,10,2,2,2,5,5,5,5,3,3,3,3,3,5,5,10,9,11,8,7,12,8,9,7,6,13,11,6,13,7,9,9,4,4,4,4,4,4,6,10,7,8,13,8,8,9,14,8,10,7,7,7,9,6,9,7,2,12,5,3,3,13,4,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,4,4,4,4,4,4,4,4,4,9,3,3,3,3,3,3,3,3,3,3,4,2,2,2,5,3,3,3,3,3,3,3,3,4,4,1,7,6,4,12,3,3,3,3,3,8,7,3,3,3,3,3,3,4,4,11,14,2,8,3,5,5,8,10,8,6,4,7,17,7,4,5,2,6,3,5,2,4,4,2,12,5,5,3,15,13,10,8,11,2,2,3,3,3,3,3,3,3,3,4,4,5,3,3,3,3,4,18,2,12,5,3,3,3,3,3,5,16,8,8,9,6,6,4,4,4,4,31,6,6,10,11,21,10,9,7,10,7,7,2,4,4,4,4,6,5,3,3,4,3,3,3,3,3,3,3,3,3,6,6,6,2,2,2,5,3,3,3,7,7,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,8,2,3,3,3,3,3,5,9,11,3,3,3,3,4,4,3,3,3,3,3,5,10,9,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,11,10,10,10,10,10,11,10,11,10,11,10,9,9,11,3,3,3,3,3,3,5,3,7,8,8,7,6,6,11,4,4,4,7,8,9,9,2,3,7,4,4,2,5,5,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,2,2,5,5,5,5,5,3,3,5,5,5,7,7,6,6,6,4,4,4,4,4,4,4,4,4,4,6,6,8,8,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,6,9,12,3,7,10,7,2,2,3,3,3,3,3,4,3,3,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,6,6,8,6,7,4,4,4,4,4,4,6,7,5,5,20,19,8,10,9,7,10,6,8,11,6,6,6,6,13,12,8,6,7,14,11,9,2,5,3,3,6,2,3,2,2,2,2,2,2,2,5,4,3,7,6,4,7,4,3,6,4,7,2,7,7,7,5,5,5,5,3,3,3,3,3,3,3,3,3,3,5,9,10,10,8,11,7,8,20,7,8,9,8,12,6,6,6,8,9,8,12,6,6,8,13,10,12,6,6,7,7,8,9,6,4,4,4,4,4,4,4,10,6,6,6,7,14,11,10,7,8,10,8,11,14,11,11,9,7,9,8,11,9,17,10,9,2,2,2,9,3,3,3,3,15,14,9,5,5,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,15,12,22,19,17,18,18,19,21,7,16,16,5,5,5,5,5,5,5,5,5,5,5,7,5,5,5,5,5,5,5,5,5,5,5,9,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,7,16,11,11,7,7,7,7,17,7,8,12,15,9,19,7,19,8,16,21,11,12,19,14,22,7,7,7,7,7,7,7,7,7,7,7,16,16,19,24,12,7,14,7,12,7,8,10,10,13,7,12,12,7,7,10,18,15,12,16,7,14,12,17,10,16,17,12,17,25,7,7,7,13,6,9,6,9,18,6,6,11,20,10,6,6,6,6,6,6,6,17,6,6,6,15,6,6,6,6,6,8,14,11,12,15,13,19,17,21,7,18,8,13,13,8,12,8,6,6,13,6,15,15,16,6,6,16,6,6,6,14,6,18,6,6,6,17,18,9,13,15,8,19,8,15,15,18,14,16,4,4,4,4,4,4,4,4,4,4,4,4,6,11,10,11,6,21,23,12,17,12,11,14,13,22,15,15,11,12,14,12,7,12,8,14,12,18,10,8,16,19,17,12,14,15,8,9,19,17,12,13,13,15,18,13,23,24,23,21,17,24,8,21,8,14,14,16,14,8,8,15,20,8,19,21,9,8,13,12,13,15,11,8,11,9,9,8,11,8,21,14,21,15,15,13,7,19,7,7,7,7,7,7,16,12,17,18,7,7,11,11,7,9,9,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,4,5,5,5,5,5,5,5,5,3,3,10,10,7,9,7,7,7,6,8,6,6,6,6,6,6,6,7,6,8,6,6,9,7,7,7,4,4,4,4,4,4,4,4,8,9,8,7,8,7,8,10,7,5,5,5,5,5,5,3,9,7,7,8,6,6,6,6,6,6,6,6,9,6,6,9,11,13,7,8,9,9,5,5,5,7,8,6,6,6,6,6,6,6,7,8,9,7,10,9,10,7,8,5,5,5,5,5,5,7,7,9,8,7,7,6,6,6,6,6,6,10,6,6,6,6,6,6,6,6,6,6,6,9,10,4,4,4,4,8,7,7,10,10,9,8,8,15,9,8,8,8,8,8,9,10,9,10,7,8,13,5,5,5,5,5,3,3,7,7,8,6,6,6,4,4,11,9,7,8,9,10,7,5,5,5,5,5,3,3,7,6,6,13,7,9,8,7,5,5,5,5,5,5,5,5,3,3,3,3,7,8,7,8,13,6,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,6,6,6,6,7,6,7,6,6,9,7,4,4,4,4,4,4,4,7,8,7,8,9,8,8,8,7,10,7,8,5,5,5,5,5,5,5,5,3,7,7,7,7,9,7,10,9,6,6,6,6,6,8,8,6,6,6,7,6,6,6,9,9,4,4,13,7,10,9,9,12,7,8,8,10,8,8,8,8,8,8,5,5,5,5,3,7,7,11,7,9,8,8,6,6,10,6,8,8,8,6,7,6,6,12,4,4,4,4,4,4,4,4,4,9,8,8,16,8,9,8,7,5,5,5,5,5,3,3,7,7,7,10,15,8,9,8,9,9,6,6,6,6,6,6,7,4,8,7,8,8,7,8,11,8,5,5,5,5,5,3,7,7,6,11,16,7,6,4,4,4,4,9,9,8,8,8,13,12,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,7,8,8,9,13,7,7,7,9,8,8,9,12,7,12,7,12,8,7,10,12,9,9,6,6,8,8,6,6,6,6,6,6,6,9,8,9,11,8,6,6,6,6,6,12,7,6,6,6,9,7,7,6,6,6,6,6,11,9,6,6,6,6,6,7,9,4,4,4,4,4,4,4,4,9,9,9,9,7,7,7,7,7,11,7,7,8,8,8,8,8,8,9,8,9,9,7,7,11,11,7,12,8,8,8,8,8,7,8,8,8,8,8,13,12,8,8,8,8,7,7,7,9,5,5,5,5,5,5,5,3,3,7,7,11,7,8,8,8,6,6,6,6,6,6,6,6,6,6,6,10,11,6,7,9,4,4,4,4,4,4,9,9,8,9,8,8,8,7,7,5,5,5,5,5,5,5,5,5,5,3,3,11,7,7,7,9,6,6,11,8,10,6,6,6,12,8,8,7,6,6,8,7,4,4,4,4,4,4,4,4,9,10,9,9,8,10,9,11,8,5,5,5,7,6,6,8,7,4,4,4,4,8,7,7,8,7,8,8,5,5,5,5,7,7,8,8,8,6,6,6,6,6,10,8,9,13,6,7,6,6,8,7,8,4,4,4,4,11,8,8,8,10,5,5,8,7,8,13,8,7,6,8,6,9,7,8,7,5,5,5,5,5,5,3,3,7,8,9,6,4,8,10,10,8,12,9,13,2,7,5,5,5,5,5,7,7,10,6,6,6,6,6,6,6,8,4,4,9,8,8,8,14,8,8,8,9,8,5,5,5,5,5,3,3,9,6,6,6,6,10,12,6,6,6,6,6,6,6,4,4,4,4,11,8,7,8,8,8,5,5,3,3,3,3,7,7,6,8,6,8,11,7,6,6,6,7,4,8,11,9,10,5,5,5,3,3,3,7,7,8,9,8,15,9,6,6,6,6,6,6,11,11,4,4,4,4,4,7,9,9,10,8,7,5,5,5,5,5,5,3,3,8,6,6,6,6,6,6,6,6,6,9,7,4,4,4,4,4,9,9,8,8,10,13,5,5,5,3,17,7,7,7,7,7,8,6,8,13,6,6,6,6,6,6,6,6,4,4,4,9,10,8,8,8,5,5,5,5,3,7,7,7,8,8,6,6,6,8,8,8,9,10,8,4,8,10,9,8,8,8,9,13,10,5,5,5,5,5,5,5,5,5,5,3,3,7,8,9,9,7,7,7,10,9,9,8,9,8,8,8,6,6,6,6,6,6,6,6,6,6,6,6,6,8,12,6,6,6,6,6,6,6,6,6,12,4,4,4,4,4,4,4,4,4,4,4,11,8,8,9,9,10,8,9,7,7,5,5,5,5,5,5,3,7,8,7,6,6,8,6,6,10,4,7,8,9,12,8,7,7,5,5,5,5,5,5,3,3,7,14,7,9,8,8,6,6,8,12,12,6,6,7,7,10,4,4,4,4,4,9,9,14,9,13,8,7,5,5,5,6,6,6,7,4,8,7,5,5,5,5,5,5,5,5,3,3,7,7,7,8,6,6,6,6,6,6,12,6,6,6,6,4,4,9,9,8,8,11,7,7,7,5,5,5,3,9,8,6,6,7,4,4,4,4,4,4,8,8,11,5,5,5,7,7,7,9,6,6,6,6,6,6,9,8,4,4,4,4,7,12,9,8,8,8,7,10,10,5,5,5,5,5,5,5,3,11,14,8,7,8,8,6,6,6,6,6,8,7,6,6,6,7,6,8,9,4,4,4,7,8,9,7,9,7,7,9,8,5,5,5,5,5,5,5,5,5,11,3,9,7,7,12,14,8,6,6,12,11,8,6,6,6,6,6,6,6,6,6,15,7,4,4,4,16,9,9,9,8,9,9,9,9,9,8,8,8,13,11,8,5,5,5,5,3,7,6,6,8,8,8,6,6,7,10,7,4,4,4,4,9,7,8,7,7,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,7,7,7,9,6,6,6,6,6,8,8,7,7,9,6,6,6,7,6,6,6,6,6,15,4,4,4,4,4,8,8,7,8,12,9,8,8,8,8,8,9,8,8,10,8,8,8,8,16,9,10,2,5,5,5,5,5,5,5,9,7,6,8,9,4,4,4,4,4,7,8,8,8,9,8,11,10,5,5,5,5,3,7,8,6,6,6,6,6,8,6,6,6,6,4,12,10,12,7,7,7,7,7,7,7,5,5,5,5,3,3,7,7,10,8,9,7,6,10,7,6,6,4,4,8,9,7,9,9,9,9,8,8,8,8,10,5,5,5,5,5,5,8,7,6,6,6,10,6,7,10,7,4,4,4,4,4,4,4,12,9,10,7,7,10,8,10,5,12,9,6,6,6,6,6,7,6,4,4,4,10,9,9,8,7,7,5,5,5,5,5,5,3,3,13,7,7,9,7,7,7,8,9,9,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,15,15,4,4,4,4,4,10,10,9,8,9,8,8,9,7,8,7,8,5,5,7,6,6,6,4,4,4,7,8,11,8,5,5,5,5,5,5,5,7,6,6,6,6,6,6,9,11,10,7,4,4,4,9,8,8,5,5,5,5,5,9,9,6,6,6,6,6,6,6,9,9,4,4,4,4,8,8,8,9,9,8,8,8,13,2,4,2,7,5,5,5,5,5,5,9,9,6,6,6,6,10,8,8,8,6,6,6,4,4,9,8,10,8,9,8,8,8,9,8,8,5,3,3,3,11,6,6,6,7,6,6,6,4,4,9,8,5,5,5,5,5,3,11,8,6,6,6,6,6,9,7,4,4,14,10,9,8,12,8,8,8,11,15,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,11,11,10,10,7,7,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,5,5,3,3,3,7,11,7,7,11,11,7,8,9,10,7,7,9,9,9,9,7,7,10,8,13,8,8,8,8,11,10,6,6,8,10,11,14,14,6,6,6,6,6,6,9,11,7,7,6,8,12,11,11,6,6,10,6,6,6,6,6,10,7,7,6,6,11,6,6,6,11,8,9,7,6,10,11,9,10,11,7,11,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,6,6,8,9,10,9,6,6,6,10,6,6,6,6,11,10,11,10,9,8,7,7,7,7,11,14,8,10,9,9,8,8,7,11,8,8,8,11,11,10,10,9,10,8,11,10,8,11,9,12,8,10,8,11,8,9,9,11,11,10,11,13,8,7,8,8,9,7,8,8,8,8,7,8,2,2,2,2,2,2,2,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,8,6,4,4,4,11,7,11,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,5,3,3,3,3,8,7,7,8,8,4,8,7,7,7,9,7,8,9,8,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,6,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,4,5,5,3,8,8,6,9,4,4,10,7,3,3,3,2,5,3,3,3,3,3,3,3,3,3,3,3,3,4,3,2,2,2,3,3,3,3,3,4,10,2,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,2,2,3,3,3,5,2,4,2,6,2,2,9,5,5,3,3,3,3,3,3,3,5,5,5,9,8,7,6,6,11,4,4,4,4,4,4,4,4,6,6,7,7,11,8,8,6,5,11,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,6,4,4,4,4,3,3,3,3,5,7,2,3,3,3,3,3,8,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,6,4,4,4,4,2,2,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,2,3,3,3,3,3,6,3,3,8,10,3,4,4,1,1,1,1,1,1,1,8,9,10,7,7,1,1,3,8,7,7,8,8,8,1,6,1,1,6,3,3,4,7,3,5,5,4,4,4,4,4,2,7,7,8,12,3,4,5,1,3,4,4,10,4,3,3,3,8,7,7,2,2,2,2,2,2,2,2,2,12,9,20,7,5,5,5,9,13,5,5,5,5,5,3,3,3,16,5,5,5,13,7,8,8,11,8,7,9,7,11,12,9,9,8,8,11,10,14,7,12,10,11,13,7,9,11,17,17,14,13,7,8,7,10,10,7,16,13,7,8,17,12,9,8,6,7,10,6,6,12,6,8,10,8,8,8,6,8,6,14,6,6,6,13,6,10,6,6,7,14,8,6,6,10,11,10,9,9,7,7,6,6,6,9,9,7,9,10,9,13,12,4,4,4,4,4,4,4,4,4,6,6,6,8,8,6,8,9,10,9,7,10,10,8,7,8,7,10,12,9,8,15,8,7,8,8,7,7,15,13,7,10,9,14,18,16,7,24,7,8,10,11,16,8,14,7,9,9,9,11,13,19,14,15,14,11,7,13,9,10,7,13,9,10,11,12,8,9,2,3,5,8,7,4,4,10,5,3,3,3,3,3,5,4,4,4,2,2,2,2,2,1,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,4,2,12,5,3,8,10,15,6,7,2,3,2,5,5,12,2,5,5,5,5,2,2,5,5,12,9,5,2,2,9,5,5,12,12,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,12,5,8,8,9,5,5,5,8,19,7,16,15,14,9,9,9,9,7,11,11,11,7,14,10,10,5,5,5,5,5,5,5,5,5,15,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,14,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,15,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,12,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,12,9,9,12,12,12,15,7,11,7,14,11,18,13,8,18,15,18,12,14,12,8,8,8,8,9,9,9,12,7,10,10,8,8,12,12,12,7,12,12,9,7,7,7,7,7,8,15,12,9,10,10,7,10,10,13,11,10,9,22,11,9,8,8,8,8,8,13,18,13,9,15,19,9,7,7,10,7,7,7,11,8,13,17,7,7,10,10,10,7,20,16,7,7,7,7,7,7,11,21,12,12,13,11,14,16,8,8,13,11,7,7,13,7,7,14,15,15,6,6,6,6,6,6,6,6,6,6,13,10,18,6,6,6,6,6,6,6,6,6,11,8,8,12,12,11,11,8,12,9,9,9,13,13,9,9,9,9,9,9,6,10,12,6,6,6,6,17,11,7,7,7,7,14,14,12,6,7,7,6,6,15,10,13,10,6,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,9,15,13,6,12,12,6,19,11,10,7,7,16,8,19,17,9,9,9,9,9,6,6,6,10,8,16,8,6,6,9,6,6,6,6,6,6,6,6,8,8,8,6,7,6,6,6,6,6,6,6,6,6,6,6,14,6,6,6,6,20,6,9,6,14,9,9,9,6,9,8,8,12,9,8,8,8,8,7,8,12,7,8,8,8,6,8,6,6,6,6,6,6,6,9,8,8,6,6,13,9,12,13,12,14,13,12,11,11,6,8,8,8,6,13,12,11,11,12,6,11,12,11,13,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,15,6,6,6,6,6,6,6,13,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,8,8,6,18,6,12,13,13,13,9,10,15,9,12,6,6,6,6,6,6,6,6,9,15,10,9,10,13,9,19,8,18,17,10,10,8,8,6,6,6,6,6,6,10,14,8,16,16,9,8,15,8,8,10,12,14,7,7,8,8,7,7,7,7,8,13,13,11,9,9,9,12,10,17,8,11,9,7,7,14,8,14,14,7,7,7,7,7,7,14,7,7,7,7,7,10,10,8,14,7,7,7,7,8,8,8,8,8,17,9,7,15,7,8,12,7,9,14,7,7,7,9,13,8,14,7,16,18,13,15,14,12,13,10,15,9,7,7,7,10,13,15,15,9,9,9,9,19,11,7,11,11,13,8,8,8,8,7,12,19,17,9,9,13,7,7,7,9,7,7,7,12,13,15,10,8,8,14,15,12,13,13,8,12,14,7,11,7,14,15,13,12,8,8,8,8,11,13,15,15,8,13,12,8,8,8,13,10,16,14,11,8,8,12,12,9,15,15,12,12,13,8,8,9,12,13,9,8,8,8,8,8,8,8,8,8,8,8,11,12,11,7,14,7,13,13,13,12,18,16,7,12,11,10,10,15,9,9,9,21,7,7,7,11,16,8,8,11,11,7,7,7,7,7,19,7,7,7,7,7,7,7,7,7,12,8,9,12,14,11,9,9,9,22,12,3,8,8,15,4,2,2,5,5,3,3,3,3,3,3,6,6,4,4,4,12,7,10,2,3,3,3,3,3,3,3,6,7,3,7,5,14,4,4,7,8,10,4,1,3,3,6,2,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,2,2,5,3,4,2,2,2,2,2,2,11,5,5,5,11,5,5,3,5,5,5,5,11,14,13,9,11,9,12,8,11,11,8,11,16,9,9,7,10,9,12,8,15,6,7,6,6,13,10,8,11,8,6,6,6,12,16,6,11,7,8,9,18,6,6,9,4,4,6,13,6,6,6,6,8,8,9,16,7,7,14,7,8,8,8,7,7,7,7,7,7,15,13,7,10,7,7,10,12,16,15,7,9,9,14,11,11,10,9,10,8,12,7,8,7,7,10,12,7,12,8,7,2,3,3,3,3,3,3,3,3,3,3,5,3,3,5,5,5,10,4,8,7,10,3,3,3,3,3,3,3,3,3,3,1,3,3,3,3,3,3,3,7,4,5,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,8,2,2,2,8,12,7,7,5,5,5,5,5,5,5,5,5,5,5,5,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,7,11,9,8,8,8,7,8,9,7,7,9,7,7,7,10,7,7,10,9,10,6,6,6,6,6,6,15,7,8,9,9,8,6,6,10,9,6,8,13,9,7,6,6,6,6,6,6,12,6,6,7,6,7,6,6,6,10,10,7,6,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,14,6,6,7,7,9,6,6,6,6,9,9,8,9,10,9,8,9,12,7,7,7,8,7,10,12,11,9,10,7,7,7,9,10,10,8,12,9,7,7,9,8,8,8,10,7,7,8,9,9,7,7,7,8,2,4,6,3,4,2,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,3,3,3,3,3,3,3,3,5,8,6,4,7,3,3,3,3,3,3,3,12,3,3,3,3,3,3,4,4,2,3,5,3,4,7,3,3,3,3,3,3,4,3,3,3,3,3,3,3,4,3,3,6,4,3,4,2,2,2,5,3,3,3,3,3,5,4,4,4,4,7,6,8,9,2,2,2,2,3,3,3,5,7,2,3,3,8,7,7,2,2,8,5,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,7,7,6,10,6,9,7,11,4,6,8,8,7,8,4,5,5,5,3,3,11,8,9,6,6,8,7,4,4,7,8,7,2,2,3,3,3,3,4,3,3,3,3,3,3,3,3,7,2,2,5,3,3,2,3,3,3,3,3,3,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,12,5,5,3,3,3,5,10,12,6,15,4,6,6,7,14,9,3,3,3,3,3,8,2,2,3,5,3,3,3,3,3,3,8,8,8,7,5,8,4,6,11,2,2,6,7,2,9,8,5,5,3,3,5,5,7,7,6,6,10,6,6,8,9,7,4,4,4,4,7,6,6,7,7,10,9,8,11,8,3,3,3,3,3,4,4,2,3,3,3,3,3,7,6,2,5,6,7,6,4,8,9,11,2,2,3,3,3,3,3,3,3,2,2,5,3,3,3,3,3,9,9,6,4,8,7,7,5,9,8,6,8,7,8,5,5,5,5,5,3,3,3,16,8,7,7,7,8,7,7,7,7,9,6,9,6,10,7,7,7,6,10,8,9,11,11,8,4,4,10,8,8,6,9,6,11,8,8,8,15,7,8,9,5,3,3,3,3,3,5,11,2,2,3,8,9,10,3,2,2,2,2,2,2,3,6,4,2,2,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,11,5,3,3,3,3,3,3,3,3,6,7,4,4,2,3,3,3,3,3,3,3,3,12,7,4,12,4,6,5,4,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,3,4,4,11,10,6,4,6,10,8,3,3,3,3,3,3,3,3,5,4,4,4,2,2,2,2,2,2,2,2,5,3,4,4,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,10,5,5,5,5,5,5,3,3,3,3,3,3,3,3,7,8,8,7,13,12,10,10,8,8,7,7,9,12,11,6,6,8,8,9,7,7,7,10,15,10,4,4,4,4,4,11,8,8,9,7,9,14,14,12,2,2,2,2,2,2,2,3,3,3,3,3,2,2,12,5,5,5,8,11,10,7,9,3,8,7,3,15,13,11,4,4,2,2,2,19,7,5,5,3,3,3,3,3,3,3,5,22,18,6,14,17,4,4,19,16,18,2,3,3,2,3,2,3,3,6,4,2,3,3,2,5,3,3,3,3,3,3,3,9,9,2,3,2,2,2,3,3,3,5,7,14,7,7,12,9,13,6,11,6,10,9,7,7,8,12,12,8,8,8,10,7,7,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,5,8,10,7,8,11,8,12,9,4,7,7,9,13,2,3,3,3,3,3,3,2,3,3,3,1,2,2,3,3,3,3,3,3,5,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,3,2,3,3,3,3,5,2,2,2,2,5,5,5,5,3,3,3,3,3,3,3,3,3,7,7,7,7,7,8,8,8,8,8,12,9,8,8,9,8,6,17,6,6,6,8,8,6,6,6,6,6,6,6,6,6,6,6,7,4,4,8,8,9,9,9,7,7,7,7,7,7,7,9,9,9,7,8,8,8,10,7,13,10,8,9,3,3,5,13,3,3,3,3,3,7,7,6,6,10,13,11,11,8,8,9,8,9,9,10,10,10,11,10,10,13,13,16,15,11,12,9,9,10,9,11,10,9,9,14,7,8,3,10,7,7,3,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,6,7,2,2,3,3,3,3,3,3,3,3,4,11,6,7,4,6,2,2,3,3,3,1,3,3,3,3,3,3,6,4,4,2,2,2,3,3,3,3,4,4,6,6,6,6,5,4,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,11,6,10,9,12,7,7,11,14,9,7,12,3,3,7,12,11,12,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,5,5,5,5,5,5,5,5,11,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,3,10,3,3,3,11,3,5,9,11,8,12,14,9,7,8,7,7,11,11,7,7,10,9,8,10,9,7,7,7,7,7,7,8,8,7,11,8,8,8,7,7,10,8,7,13,12,7,17,10,8,8,11,7,11,11,14,7,11,7,8,6,9,20,8,7,9,16,7,10,6,11,10,8,9,7,16,11,11,9,8,9,8,8,8,11,8,15,8,8,9,7,8,8,11,10,7,5,7,10,10,15,7,7,7,8,7,8,8,10,11,10,10,10,11,11,7,8,6,8,8,8,10,6,8,6,6,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,16,6,15,6,7,11,11,7,9,10,11,13,10,6,16,8,10,12,11,6,6,6,6,6,6,6,10,6,10,7,7,7,7,11,7,11,6,6,6,6,6,6,17,7,7,6,6,12,22,6,6,6,6,6,8,6,6,6,6,7,6,6,5,6,6,8,11,6,9,14,11,9,11,7,7,8,6,6,6,8,10,9,6,6,6,6,9,7,6,6,6,6,6,15,6,4,4,4,6,4,17,8,11,6,6,9,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,10,6,10,6,6,6,6,12,8,6,6,6,6,6,6,6,6,6,9,6,6,6,6,18,6,6,6,8,9,10,7,8,9,10,11,7,13,6,8,8,6,6,14,7,7,7,7,10,7,14,9,6,6,9,15,9,7,14,6,11,14,13,7,12,8,7,7,7,7,7,12,7,10,9,16,6,8,6,5,17,6,8,10,4,6,4,10,15,17,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,4,4,11,7,4,4,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,19,17,6,10,11,6,6,6,6,18,6,6,11,4,4,4,5,6,6,6,9,5,6,4,6,6,4,6,6,6,6,10,6,6,4,6,6,10,6,10,6,6,6,6,11,6,6,10,6,6,8,6,6,6,8,6,11,4,11,9,10,9,11,4,8,4,11,12,7,9,8,6,7,7,8,12,12,11,13,10,11,7,7,7,9,7,11,10,7,7,7,16,11,10,11,17,9,9,8,8,7,7,7,9,7,7,7,14,7,13,9,11,10,14,10,10,12,11,10,7,10,5,14,8,8,8,9,7,8,7,7,9,8,7,8,7,7,7,7,7,7,7,11,8,10,8,7,8,14,11,8,9,9,9,8,24,10,10,12,7,7,15,11,8,8,12,11,8,9,9,7,8,9,10,11,10,11,7,12,7,7,11,9,8,14,13,12,8,11,10,8,8,7,7,14,9,10,8,9,11,7,14,8,8,13,8,8,12,7,10,14,14,11,9,10,9,9,7,7,11,11,13,9,13,5,5,5,7,9,5,11,12,14,8,7,7,11,10,9,7,8,8,7,10,11,11,5,5,7,5,5,5,7,7,15,7,7,8,7,15,12,12,10,7,8,7,11,7,7,7,23,11,8,8,11,10,7,8,11,7,19,7,7,6,9,9,9,11,3,4,7,8,6,6,4,10,8,2,2]),WO=new Uint16Array([0,0,0,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,17,1,1,1,12,1,12,1,12,13,1,1,1,1,12,1,12,1,1,1,1,1,14,21,1,1,1,1,1,1,1,19,12,1,1,1,1,1,1,1,20,1,1,1,16,1,18,1,1,15,1,1,1,1,12,1,1,1,1,1,1,22,1,1,1,12,1,1,1,1,1,1,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,1,24,25,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,1,1,12,12,12,12,1,32,0,0,0,1,1,1,1,35,34,1,1,1,1,1,33,1,1,1,1,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,38,0,0,0,0,39,40,0,0,0,41,0,12,1,1,12,1,1,1,1,44,45,45,45,44,45,44,44,46,45,44,45,44,44,44,44,44,44,46,44,44,44,44,44,44,45,47,47,45,44,44,44,44,44,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,50,52,50,50,50,52,50,51,50,53,50,51,51,50,50,50,51,53,51,53,50,51,51,12,55,55,54,56,51,53,50,50,48,49,57,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,60,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,67,1,12,1,1,66,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,78,0,0,0,0,0,0,0,0,0,0,0,0,0,76,79,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,12,1,1,1,1,89,1,91,1,1,1,1,1,1,1,1,94,1,1,1,1,1,1,1,1,1,1,1,1,0,1,97,97,1,1,12,1,100,1,1,1,1,1,1,1,98,1,99,1,101,1,1,1,1,1,102,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,110,111,1,1,1,1,1,1,113,113,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,121,122,1,1,1,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,126,123,125,120,1,124,1,1,114,1,1,1,1,117,1,127,1,1,1,1,1,119,1,108,1,109,1,12,128,106,1,112,1,1,1,1,1,107,115,1,12,12,12,118,116,1,1,1,1,1,1,0,0,0,0,1,12,12,1,1,1,1,1,12,134,1,1,1,1,1,1,1,1,1,1,1,12,136,1,1,1,1,1,1,1,1,137,138,12,12,135,133,45,45,140,50,50,139,142,141,1,1,0,0,0,0,0,0,0,0,0,0,0,0,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0,0,0,1,0,144,132,1,0,1,12,12,1,1,1,1,1,0,0,0,0,0,0,0,1,148,147,20,1,1,12,12,1,20,12,12,1,1,1,1,1,134,1,1,152,1,1,1,1,153,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,1,136,1,1,152,1,1,1,1,153,1,1,134,1,1,1,152,1,1,1,1,153,1,1,134,1,1,1,1,1,1,1,1,134,1,1,1,1,1,1,1,1,1,1,1,160,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,1,1,1,1,1,134,1,1,1,1,152,1,1,1,1,153,1,1,1,134,1,1,152,1,1,1,1,164,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,167,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,154,158,158,12,1,12,166,1,1,1,1,1,158,158,158,154,1,1,1,157,158,161,165,1,1,1,1,157,157,1,1,156,154,154,157,170,156,170,1,1,168,1,156,155,157,1,1,1,1,157,1,159,1,1,1,12,1,162,1,162,1,1,1,162,161,163,169,156,154,1,1,1,1,1,1,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,173,172,173,172,172,172,172,174,174,172,173,172,173,172,172,12,12,12,12,12,1,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,193,1,1,1,1,12,199,200,201,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,151,1,1,1,1,1,1,1,1,1,1,1,196,1,1,1,184,1,210,1,1,1,208,1,1,205,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,12,1,1,1,1,1,1,1,1,190,1,1,1,186,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,182,1,1,1,1,1,1,1,191,1,1,1,1,195,1,1,1,1,171,1,1,189,1,1,1,192,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,180,1,12,1,1,12,1,1,1,1,183,1,1,1,188,1,203,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,209,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,194,1,1,1,1,1,12,1,1,1,1,1,1,1,1,176,12,1,1,1,178,12,1,1,1,1,1,1,1,198,1,1,1,1,1,1,1,1,1,1,177,1,1,1,1,1,1,204,1,1,1,181,1,1,1,187,1,12,1,1,12,1,1,1,1,1,1,1,1,1,1,191,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,175,1,1,1,1,1,1,1,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,206,1,1,1,1,1,1,1,1,1,1,1,1,1,207,1,1,12,1,1,1,1,179,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,197,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,12,1,1,1,1,1,1,1,1,1,202,1,1,12,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,220,0,0,0,0,0,221,0,0,0,0,0,0,1,12,1,1,1,225,1,1,1,0,226,223,224,1,1,1,1,1,1,231,1,233,1,1,1,1,1,1,1,1,1,1,1,229,1,1,1,1,1,235,1,1,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,234,1,1,1,12,1,1,1,1,230,1,1,1,228,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,232,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,241,13,1,1,1,12,12,238,239,1,1,1,1,240,1,1,12,1,1,1,1,1,1,1,242,1,1,12,16,1,1,1,1,1,1,1,243,1,1,1,12,12,1,1,1,1,1,243,12,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,252,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,256,256,1,0,0,0,0,0,1,12,0,0,0,0,0,0,0,0,172,261,262,1,12,1,1,1,1,12,264,1,1,263,1,1,266,1,1,1,1,1,1,1,1,1,0,1,1,1,271,272,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,12,1,0,1,0,0,0,0,1,0,1,0,1,1,1,1,1,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,12,0,283,0,0,284,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,12,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,60,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,1,1,0,308,0,0,0,0,0,0,0,0,0,310,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,327,327,328,327,0,185,1,1,13,323,1,321,0,0,0,0,1,0,0,0,324,1,1,329,1,205,1,1,1,1,1,322,1,319,1,325,1,317,1,326,1,318,1,1,1,1,1,1,1,12,1,1,1,12,1,12,320,320,1,1,1,316,184,1,1,12,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,12,1,1,1,1,315,1,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,332,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,266,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,372,372,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,364,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,1,340,351,1,1,339,374,1,345,1,1,337,369,1,1,355,336,341,1,1,1,348,379,357,1,1,1,1,1,1,358,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0,367,371,0,0,79,1,1,0,365,342,378,343,346,353,1,368,0,1,0,79,362,360,1,0,0,1,1,1,0,0,0,0,381,1,1,352,1,79,1,0,1,1,1,384,1,0,0,79,359,0,1,338,1,1,1,0,1,1,361,1,0,1,1,1,0,1,386,349,1,1,0,1,0,0,377,0,1,1,1,79,370,1,1,366,363,1,1,1,1,1,1,1,1,1,1,1,344,1,1,1,1,1,1,1,1,1,1,1,376,0,79,1,1,1,1,0,1,1,1,1,1,1,0,0,1,1,380,1,1,1,0,0,383,0,0,0,1,356,1,0,79,382,1,0,0,0,0,385,1,1,0,0,1,0,1,0,354,0,350,0,1,1,1,0,1,1,0,373,347,375,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,1,1,400,400,1,1,12,12,1,400,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,412,1,1,0,1,1,1,1,205,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,430,430,1,1,0,0,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,442,1,441,1,1,1,1,1,1,1,1,445,1,12,12,1,1,1,1,1,12,1,1,1,1,453,1,1,1,455,1,1,1,1,1,1,1,1,1,1,452,1,447,1,1,1,1,435,1,1,1,1,1,1,1,1,448,12,1,1,1,1,454,1,1,1,449,444,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,317,1,433,1,1,12,451,1,1,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,437,1,1,1,1,1,1,1,1,1,1,1,454,1,1,1,1,317,1,450,1,1,1,439,1,1,1,1,1,440,1,456,443,1,1,1,1,1,438,1,1,1,1,1,1,1,1,1,434,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,446,1,1,1,1,1,1,1,12,1,1,1,1,1,436,1,1,1,1,1,1,1,220,457,1,1,1,1,1,12,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,0,1,0,1,0,1,1,0,0,0,462,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,466,466,466,466,466,466,466,0,466,466,466,466,466,1,466,466,466,0,466,466,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,471,470,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,475,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,468,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,469,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,477,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,474,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,478,473,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,472,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,476,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,1,1,1,1,1,1,1,488,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,198,198,1,492,1,1,1,491,1,1,1,1,487,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,489,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,493,1,1,490,1,1,1,1,1,1,1,1,372,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,494,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,505,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,12,1,507,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,12,12,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,1,0,0,0,0,0,0,0,1,0,0,1,0,1,1,1,1,0,0,0,1,0,0,0,1,60,1,1,12,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,526,1,1,1,1,1,1,1,527,1,1,1,1,1,1,1,525,1,1,12,1,529,239,1,1,12,12,1,1,12,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,533,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,539,1,1,1,1,1,1,1,1,1,1,1,1,1,1,132,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,107,1,1,12,1,1,1,12,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,548,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,144,1,1,1,228,1,1,12,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,1,572,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,577,1,220,1,328,1,1,1,1,1,1,1,1,1,0,0,578,1,1,1,1,0,580,0,79,0,579,0,1,1,1,0,1,1,1,1,1,1,12,0,0,0,0,1,0,0,0,0,0,0,586,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,582,582,0,585,583,582,582,582,582,582,587,582,582,591,582,582,582,582,582,582,582,582,582,582,588,585,582,582,585,582,582,582,582,582,582,582,582,582,582,582,582,582,583,582,582,582,582,582,589,582,582,582,582,582,582,0,0,0,1,590,1,1,1,1,584,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,12,595,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,12,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,12,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,65,280,306,411,535,0,4,68,236,254,282,307,334,388,413,0,499,519,536,597,9,0,61,88,398,409,429,575,0,497,518,532,612,0,30,6,0,461,500,602,560,70,0,7,285,255,389,463,416,538,79,598,0,576,309,418,465,9,105,288,506,6,30,0,311,79,391,79,483,10,6,131,248,275,0,613,509,0,563,0,64,6,6,251,95,2,432,399,410,596,0,6,0,6,286,103,6,561,501,540,0,464,390,273,287,8,71,104,599,543,392,312,300,419,146,74,290,546,510,601,564,335,330,479,6,75,149,11,0,249,522,547,565,514,551,570,611,36,6,260,295,333,304,218,30,528,553,218,42,216,265,296,305,406,423,481,274,0,73,562,0,403,417,299,79,247,79,0,581,545,504,292,421,79,393,387,0,0,0,9,555,571,217,0,424,407,531,516,573,615,85,218,43,297,396,425,569,0,511,293,276,79,215,80,28,390,30,6,394,331,303,604,592,524,550,513,0,258,81,30,405,422,0,30,426,0,219,593,517,9,408,427,218,248,86,222,594,574,557,482,428,397,250,227,87,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,620,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,82,0,129,0,0,84,549,0,0,0,0,0,0,0,27,0,552,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,503,0,257,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,294,0,0,0,0,0,0,0,617,0,0,0,0,0,616,0,0,0,0,0,0,0,0,0,0,0,0,0,0,395,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,0,0,0,0,0,0,495,0,0,0,0,0,0,404,0,0,0,0,0,0,0,0,0,0,0,0,0,211,0,0,0,0,0,0,0,0,0,0,515,0,0,0,0,0,0,0,0,0,0,0,0,496,0,0,0,0,0,0,0,0,0,0,0,0,0,0,269,281,0,0,0,0,0,530,277,0,0,0,0,0,0,0,0,0,0,0,0,0,512,0,0,0,0,0,0,0,0,0,0,0,458,0,0,0,314,0,0,0,0,0,0,253,0,0,0,0,0,0,23,0,0,0,0,568,0,0,0,0,600,521,0,0,0,0,244,0,0,0,0,0,0,0,0,0,480,0,0,0,0,0,62,0,0,0,267,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,0,0,0,0,0,279,610,0,72,0,0,0,0,0,0,0,0,0,619,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,0,278,0,0,0,0,0,0,567,0,0,0,0,0,0,523,0,0,0,0,0,0,0,0,0,566,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,0,502,0,0,0,0,0,554,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,83,0,0,0,0,0,0,0,0,0,0,0,0,486,0,485,0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,459,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,289,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,537,0,0,0,0,0,0,0,0,298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,237,0,0,0,0,0,0,0,0,0,0,84,0,606,0,0,0,0,0,0,0,0,0,0,0,0,245,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,609,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,520,0,0,0,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,498,0,614,0,0,431,0,0,0,0,0,0,0,0,0,0,0,0,402,0,0,0,544,0,93,0,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,29,92,0,0,0,0,0,0,0,0,0,0,0,0,291,0,0,0,214,0,0,0,0,0,0,558,0,270,0,0,130,0,0,0,0,0,559,0,0,0,0,0,0,0,414,420,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,313,0,0,0,0,0,5,0,0,0,0,0,0,0,301,0,0,0,0,0,0,0,0,0,0,0,0,0,534,0,0,0,415,0,0,401,0,0,0,0,0,0,603,0,0,0,541,0,0,90,0,542,0,0,0,0,0,0,0,0,0,0,508,460,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,268,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,608,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,607,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,618,0,0,0,0,0,556,0,0,0,0,0,0,0,0,0,0,302,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,605,0,0,212,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,623,623,623,623,623,623,623,622,624]),FE="orgmilcomschnetedugovdrrformsfeedbackofficialaccoorgmilschnetgovmagazinemediaunioncargopilotgroupcaarespressworksaerodromeworkinggroupair-traffic-controlaircraftaccident-preventioneducatormarketplaceambulanceinsurancecateringairportrepbodyenginesoftwaremodellingair-surveillanceconsultingchartertrainermaintenanceservicesdesignflightskydivingfreightassociationstudentgroundhandlingdgcafuelclubtaxicrewshowballooningexpresstraderbrokerauthoragentsairtrafficjournalistsafetyconsultantmicrolightaccident-investigationparachutingequipmentproductionfederationrecreationscientistnavigationengineertradingglidingleasingresearchpassenger-associationentertainmentparaglidinghangglidingaerobaticrotorcraftemergencycertificationgovernmentaeroclubexchangelogisticschampionshiphomebuiltcouncilconferencecontrolairlinecivilaviationjournalorgcomnetedugovcoorgcomnomnetobjofforgcomnetuwukiloappsframerorgmilcomnetedugovcoradioorgcomnetcommuneedogpbcoitgvorgedugov*spreviewfrontendrelayononstagingupid*mtls*privatelinktypedreamdeveloperbravemochawindsurfaivenmirenupsunwnextbegetngrokclerkwale2bwebcsbrunputerflutterflowspawnbaseshiptodaymagicpatternsnetlifyondigitaloceanrailwayhostedclaudehasurabotdashvercelgithubluyanigadgetreplitcloudflaretelebitedgecomputeevervaultdetaexponyatnoopencrpplxzeaburwasmerframerzeropsconvexmedusajsspritesonherculeseasypanelstreamlitsnowflakemesserliloginlinehackclubnorthflankbase44corespeedadaptableleapcellngrok-freeclerkstagelovableon-fleek*us-west-3ap-south-2us-central-2us-central-1eu-central-1ap-south-1us-west-2us-east-2eu-north-1ap-north-1us-west-1us-east-1*rcloudintsegorgmilcomgobbetnetintedugovturmusicasenasamutualcoopip6uriurnin-addre164homeirisgovdixdaemoncloudnssthwien*inexexkunden4accogvormymyspreadshop4lima2ixortsinfofuturecmsfuturehosting12hpprivfuturemailinglima-cityfunkfeuer123webseitednshomemelmyspreadshopcloudletswasantqldvicactnswtascatholicwasaqldvictasvpsidwasantozqldorgcomvicasnactnetedugovnswtasconfhrsncomairflowlambda-urltransfer-webappairflowtransfer-webapptransfer-webapptransfer-webapp-fipstransfer-webappeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1privatenotebookstudiolabelingnotebookstudionotebooknotebook-fipslabelingnotebookstudionotebook-fipsnotebookstudio-fipsnotebook-fipsnotebookstudionotebook-fipsnotebookstudioeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2experimentsus-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1onrepostsagemakercopporgmilcompronetintedugovbiznameinfoshoprsorgmilcomnetedugovbrendlyresolvenzauscotvstoreorgcomnetedugovbizinfoidacaicoittvorgmilcomschnetedugovinfocloudezproxyacmymyspreadshopkuleuvenwebhostingtransurl123websitecloudnsinterhostsolutionsddns5476103298edgfacbmlonihkjutwvqpsryxzbarsycoororgcomedumyftpno-iporxcloud-ipfor-somemmafanfor-morewebhopselfipjozidyndnscloudnsdscloudfor-thefor-betteractivetrailcoeconorestooteorgcomeconeteduassurmoneyafricaarchitectesrestaurantloisirstourismavocatsinfoagrounivcoorgcomnetedugovtvdeportesaludtksatorgmilcomwebgobnetinteducienciaboliviarevistacooperativaempresanombreindustriamusicapatriamedicinademocraciapoliticapuebloindigenaplurinacionalarteblogwikiinfoagrotransportenoticiasprofesionalacademiaeconomiaecologiamovimientotecnologianaturalsimplesitecepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesmscepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesms*biaamfmtcmptvfeirasampajampanatalbelemananiradiog12medindfndbmdtrdthepoaggfjdfdefinfenflegsegongengcngorgzlgslglogppgmillelqslcimcomnomadmjabimbbibbsbabcrectecsjcetcpscpvhudieticriapipsiecnbiorioecogeoteoodoproatoartfstmatvetdetbetnetcntnotfotgrueduajuespappreptmpemparqsrvadvdevgovntrturagrjorfarjusmusdesvixxyzcozfozslzbhzmaringasantamariacampinagrandegoianiasorocabafloripasaobernardocuritibaboavistarecifeaparecidasaogoncasalvadorcuiabamorenamacapalondrinacontagemsocialfortalmaceioleilaoosascoriobranconiteroi9guacutcheblogflogvlogwikitaxicoopmanauspalmascaxiasjoinvillebaruericampinassantoandreribeiraoriopretoweorgcomnetedugovv0windsurfshiptodaycloudsitecoaccoorgnetgovofmilcomgovmediatechzacoorgcomnetedugsjgovmydnspenfnlabnbmbgcbcqconcontnuyksknsmyspreadshopno-ipawdevboxbarsyonidatemfuinabusavinstanceseceuguukussryzespawncsxcloud-ipmyphotosfantasyleaguetwmailcleverappsscrappingccwucloudnsftpaccessgame-serverccgovobjectsrmalpgcust*svcalp1aeappenginermalpgmyspreadshop4lima2ixsquare7cloudscale123websitefirenet12hpflowgotdnslinkyard-cloudcloudnslima-citydnskingobjectstorageedaccogoorusorgcomnetinteduaéroportxn--aroport-byaassogouvcomilgobgovcloudnses-1eu-west-1us-east-1euvipit1eurarubait1s3lbwebsites3websiteru-spbru-mskelasticcsrunstnukukcaukusnl-ams-1fr-par-1fr-par-2functionsnodess3ddlwhmrdbfnck8sifrs3-websitecockpitscblmgdbdtwhkafkpubprivs3ddlwhmrdbk8sifrs3-websitecockpitscblmgdbdtwhkafks3ddlrdbk8sifrs3-websitecockpitscblmgdbdtwhkafkk8sscalebookpl-wawfr-parnl-amsbaremetalsmartlabelinginstancesdechk2kuleuvenlaravelvoorloperurownoxazapscwhstgrvaporobservablehqelementorantagonistreclaimjoteluluencowaydiademjelasticmatlabmagentositetrendhostingaxarnetperspectajenv-arubajelejoteravendbemergenttrafficplexconvexkeliwebserveboltbegetcdnstaticson-rancherprimetelonstackitunison-servicesdnshomelinkyardbarsyjelecloudnscocomnetgovmycn-northwest-1cn-north-1s3s3-accesspoints3-websites3s3-accesspointrdsdualstacks3-deprecatedemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspoints3s3-accesspointrdsdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicn-northwest-1cn-north-1cn-northwest-1ebcomputeelbcn-north-1airflowcn-northwest-1cn-north-1oncn-northwest-1cn-north-1amazonawssagemakeramazonwebservicesdirectasgdsdhehahljlnmhbacscahqhshhihnlnynsnmofjbjzjxjtjhkcqtwgsjssxnxjxgxxzgz網絡网络公司orgmilcomnetedugovxn--55qx5dcanva-appsxn--io0a7iquickconnectcanvasitekhsjxn--od0algmyqnapcloudsrvrlessclustersrealtimestorageleadpagescarrdcrdorgmilcomnomnetedugovhidnssupabaserdpareplmypiumsoxmitotaplpagesfirewalledreplitowodevwebview-assetsvfswebview-assetss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecateds3-websites3-object-lambdaexecute-apis3s3-accesspoints3-websites3-accesspoint-fipss3-fipss3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipss3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9vfss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1us-northeast-1ap-southeast-1me-south-1af-south-1ap-south-1ap-southeast-7us-west-2eu-west-2ap-east-2us-east-2ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ap-southeast-6ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1mrapaccesspoints3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3eu-west-3ap-south-2eu-south-2computes3-ap-northeast-2elbrdss3-ap-east-1s3-sa-east-1s3-us-gov-west-1s3-eu-central-1s3-ca-central-1eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3s3-website-us-west-2s3-website-eu-west-1s3-external-1eu-central-1me-central-1ca-central-1il-central-1s3-us-west-1s3-eu-west-1s3-website-sa-east-1s3-website-ap-southeast-2ap-northeast-1ap-southeast-1s3-us-west-2s3-eu-west-2me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2s3-website-ap-southeast-1s3-1s3-globals3-ap-northeast-3eu-north-1airflowap-southeast-2s3-us-gov-east-1s3-fips-us-gov-east-1s3-me-south-1s3-ap-south-1ap-northeast-2s3-website-us-west-1ap-southeast-5s3-eu-north-1s3-ap-southeast-1s3-website-us-gov-west-1compute-1s3-eu-west-3us-gov-west-1s3-website-ap-northeast-1us-gov-east-1s3-fips-us-gov-west-1s3-website-us-east-1s3-ap-southeast-2ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3-us-east-2s3-ap-northeast-1authauthauth-fipsauth-fipseu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1rservicesbuilderstg-builderdev-builder*ociocpocsdemoinstanceeu-west-3eu-south-2ap-southeast-3ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1previeweu-4us-4us-1eu-1us-2eu-2us-3eu-3appspaasrag-cloudrag-cloud-chjcloudjcloud-ver-jpcdemonodebalancermembersipeuxvsoncillaocelotonzayalilynxsphinxfentigercustomercaracalo365cloudstaticxendevapp001testcode-builder-stgplatformapimediasiteprojedrydpagesjsu2u2-localx0desazacncoitrueu4uhkukgrbrushatenadiarymyspreadshopfrom-flfrom-wvwebspace-hosttheworkpchatenablogservesarcasmapplinzisakuratanwixsiteappchizigiizeis-into-carsdnsiskinkyadobeaemcloudis-a-therapistpgfogmyvncdojinis-an-actress1kappfldrvkozowqa2jpnmexprgmrfirewall-gatewaydynnscafjsfbsbxooguyxnbayfrom-gawoltlab-demois-a-anarchistwiardwebteaches-yogadattowebtb-hostinglive-websiteservegamegotpantheonfrom-nhsubsc-payfrom-ohvipsinaappfrom-cadyndns-officehomelinuxfrom-mahercules-appservebbsstreakusercontentfrom-okfrom-wyfastly-terrariumis-a-llamaqualyhqportalserveexchangeon-vaporvivenushopciscofreakgrayjayleaguesmetaaiusercontentfrom-iais-a-libertariansaves-the-whalestaveusercontentyolasiteoperaunitepoint2thisis-a-catererlinodeusercontentfrom-vagithubusercontentsells-for-lesshosteurcanva-appsplaystation-cloudddnsfreefrom-pafrom-prfrom-waddnskingoutsystemscloudhotelwithflightmydattois-a-nascarfanmydbserverminiserverdamnserverservehumouris-a-playerfrom-nvfrom-nmemergentagentgentappsamplifyappfrom-kyis-an-accountantnfshostserveircfrom-akpythonanywherestackhero-networkpostman-echolikescandydyndns-mailobservableusercontentserveftpfreeboxosfrom-utcdn77-storageamazonawsneat-urldyndns-serverlinodeis-a-teacherfrom-vtgleezemythic-beastsus1-pleniteu1-plenitla1-plenitpaywhirlservecounterstrikejdevcloudhealth-carereformis-into-animegoogleapisis-a-painterafricaisa-hockeynutatmetais-an-actora2hostedis-a-democratdatadetectest-le-patrondigitaloceanspacesis-a-designeris-a-hunterlinodeobjectstemp-dnsissmarterthanyoufrom-arsimplesiteevennodetownnews-stagingis-a-liberalgooglecodejelasticservemp3stdlibqualyhqpartnerdyndns-free1cooldnsest-a-la-masiondrayddnsdynuddnsfrom-orfrom-miis-a-bloggerfrom-himydobisscanvacodeis-an-engineerest-a-la-maisonupsunappdevinappswafflecellmyasustorwpenginepoweredfrom-ctservep2psame-appmyshopblocksthingdustdatalikes-piediscordsezis-with-thebanddev-myqnapcloudlpusercontentis-leetshopitsite3utilitiesis-a-personaltrainersinaappladeskis-a-cheflogoipselfipbase44-sandboxnospamproxyalibabacloudcsmesswithdnsauthgearappsiamallamawithgooglelutrausercontentmochausercontentframercanvasmytabitdyndns-homew-credentialless-staticblitzcpserverdiscordsaysis-a-nurseappspotatlassian-isolated-3premotewdfrom-mtwixstudiocode0emm180rmyactivedirectoryawsappsmytuleapdnsabrpolyspaceqbuserrenderbuiltwithdarkboutirgotdnsabrdnsdopaascanva-hosted-embedawsglobalacceleratorhomesecuritypcmyiphostditchyouripclever-clouddyndns-ipon-aptibleis-a-musiciansecuritytacticsappspaceusercontenthomeunixstrapiappsame-previewcf-ipfsmycloudnaselasticbeanstalkis-certifieddontexistkasserverik-serverdrive-platformatlassian-3pfirebaseappherokuappawsapprunnerbarsycenteris-a-cubicle-slaveservehttpmyshopifyis-a-guruquicksytessiiitesorsitesmagicpatternsappis-a-cpameteorappfrom-wiis-a-rockstarbumbleshrimpdattolocalreadthedocs-hostedfrom-rifamilydsdyndns-picsplesknsbplaceddnsaliasdynaliasdyndns-remotedoomdnsip-ddnsblogdnsis-a-doctorroutingthecloudamazoncognitobarsyonlinedsmynasddnsgurucloudflare-ipfsdeus-canvasfrom-idsmushcdnpagespeedmobilizerdyndns-at-homeunusualpersonhosted-by-previderis-a-republicandyn-o-saurstreamlitappworkisboringonthewificprapidqualifioappis-uberleetis-slickgetmyipwpdevcloudtypeformdyndns-at-workgentlentapismynascloudw-corp-staticblitzfrom-ingeekgalaxyservebeerfrom-mdonrenderspace-to-rentaivencloudappspacehostedonfabricawafaicloudcodespotblogspotatlassian-3p-us-gov-modfrom-ndfrom-msis-a-techieis-a-studentcustomer-ociis-a-photographerdurumisfrom-ksmassivegriddyndns-wikiis-an-entertaineris-a-hard-workermysecuritycamerafrom-mnrackmazedyndns-blogis-a-bulls-fanwritesthisblogfreemyipsimple-urlfrom-sdreservdauthgear-stagingest-mon-blogueuris-into-gamesrice-labsxtooldevicesakurawebis-an-anarchistoraclecloudappsdyndns-worksells-for-urhcloudfrom-dcfastvps-serverwpmucdnis-a-geekscrysecfrom-txis-into-cartoonsmodelscapetrycloudflarelocaltonetstreak-linkbalena-devicesfrom-njforgeblocksfreebox-oswebadorsitefrom-ncdoesntexisthobby-sitestreaklinkshomesecuritymacownprovidertuleap-partnersdattorelaywphostedmailalpha-myqnapcloudservequakeis-a-socialistservehalflifepivohostingdynuhostingquipelementsw-staticblitzdyndns-webfrom-deproject-studyaliases121is-not-certifiedhercules-devis-a-financialadvisorservepicsis-a-greenloseyouripfrom-ilwithyoutubemwcloudnonprodwiredbladehostingdnsdojofrom-tnpixolinomyqnapcloudis-an-artisthostedpiis-a-landscaperauiusercontentoaiusercontenton-forgeis-a-conservativedreamhostersnet-freaksapps-1and1is-goneencoreapifastly-edgefrom-nesalesforcefrom-scdeployagentoraclegovcloudappsfrom-alis-a-lawyercechirevultrobjectsstufftoreadisa-geekddnsgeeklovableprojecttry-snowplowfrom-moblogsyteis-a-bookkeepernogmyforumravendbmyboxdeelementoredsaacficogoorinforgcomgobnatneteduidstoreorgcomnetintedudevnomepublorgcomneteduathgovtestscalculatorspaynowinfoquizzesresearchedcloudnsfunnelsassessmentsjscaleforcetmacltdorgmilcompronetgovbizpresseklogesrsccloudcustomfltusrcloude4corealmgovmunicontentproxy9metacentrumdyndyndyndnsdynpagespages-researchitionoccustomercomymyspreadshopipv64diskussionsbereich4limacomrub2ixfirewall-gatewayddnssspdnsbarsykeymachinesquare7myhome-serverspeedpartnercommunity-proschuldockxenonconnectgünstigliefernbwcloud-os-instancedyndnssecmy-routerxn--gnstigliefern-wobin-butterl-o-g-i-nisteingeekin-dslin-berlinin-brbfuettertdasnetzleitungsenin-vpnlcube-serverdyn-ip24logoipdyn-berlinruhr-uni-bochum12hpgoipsrvdnsfruskygit-repossvn-reposinternet-dnsgünstigbestellenhome-webserverxn--gnstigbestellen-zvbbplacedheimdnscosidnswebspaceconfiglima-citydyndns1istmeinvirtualuserschulplattformmy-gatewayddnsseclebtimnetztest-iservmein-iservvirtual-userhome64iservschuletaifun-dnstraeumtgeradeschulserverdynamisches-dns123webseitednshomehs-heilbronndnsupdaterbssgraphicdwadpdwdaepeweaawapaafpfwfabwbpbacwcpcciwebuserapiobjectsidsiskospockkimodorikerbonesteamsparisjanewaypicardglobaltarpitreedpikekiraworfsulukirkarchertuckerhackercanarywesleystagingprereleaset3r2lpbravepanelngrokiservstglclcrmerpflypagesbarsyvivenushoplocalcertlocalplayerbearbloggatewaydeno-stagingis-not-ais-a-goodbotdashvercelmocha-sandboxplatter-appreplitgithubpreviewworkersinbrowserevervaultdetais-ahrsndenoxmitmodxmyaddrstorageapipayloadgrebedocruncontainersstgstagelclstageloginlineis-a-fullstackleapcellngrok-freeis-coolstoragewebharemediatechlibp2pdiscourseimaginecomyspreadshopstoreregbiz123hjemmesidefirmcoorgcomnetedugovsldorgmilcomwebgobartnetedugovtmorgpolcomsocartnetedugovassoagrondiscoodontk12medcuegyecpaabgengorgmilgalsaltulcomadmesmgobpubdocmonfindgnriouioproartlatvetnetfotedulojgovntrturibrbarxxxofficialbasechefprofmktgpsictechinfoarqtcontdentrrpppsiqgit-pagesritmedfieorgcomlibprieduaipgovriikmeactvsportorgmilcomscieunnetedugovnameinfopintouchtawktotawkmyspreadshoporgcomnomgobedu123miwebcomputeorgcomnetedugovbiznameinfocognito-idpeusc-de-east-1onjelasticnxaspdnsbarsydirectwpdeuxfleurstransurldogadoprvwcloudnsamazonwebservicesdnshomeuserpartycokoobinmkmstorjfidemopaasdymyspreadshopalandkapsiikixn--hkkinen-5wacloudplatformdatacenterhäkkinen123kotisivuidacorgmilcompronetedugovbiznameinforadioorgcomneteduuserexperts-comptablestmmyspreadshopgretaprdcomnomynhccifbxoshuissier-justicenotairesaeroportfreeboxoson-webavocatassoportgouvkdnschirurgiens-dentistes-en-franceavouesfbx-os123sitewebveterinairechirurgiens-dentistespharmacienchambagrimedecinfreebox-osdediboxgoupilemszicpyicpvicppleysheezypagesedugovcnpyorgcomcybllcpvtnetedugovtnxonlineschooldaemond6atcopanelorgnetplybotdashstackitkaasorgmilcomnetedugovbizmodltdorgcomedugovcoorgcomneteduappwriteacorgcomnetedugovcloudtranslateusercontentorgcomnetedumobiassoorgcomnetedugovbarsysimplesitediscourseindorgmilcomgobneteduorgcomwebnetedugovguaminfonxhra教育敎育網絡网絡组織組織网络網络组织組织公司政府個人个人箇人ltdorgcomincneteduidvgovxn--uc0ay4axn--55qx5dxn--mk0axixn--io0a7ixn--uc0atvxn--zf0avxxn--lcvr32dxn--od0algxn--wcvs22dxn--gmqw5axn--od0aq3bxn--mxtq1mxn--ciqpnxn--tn0agxn--gmq050iorgmilcomgobneteduiservwp2tempurlmircloudfreesitewpmudevmyfastgadgetcloudaccessjelehalfboltfastvpsemergenteasypanelopencraftizcombrendlynamefromrtpersoadultmedorgpolrelcomproartnetedufirminfoassoshopcoopgouvtmcomediahotelforumvideosportorgsexagrargameslakaseroticaerotikatozsdereklamcasino2000filmsuliinfoboltshopprivnewsszexcityutazasjogaszkonyveloingatlaneacaicogoormyᬩᬮᬶmilwebschnetkopbizzonedesaponpesxn--9tfkymyspreadshopgovmytabittabitorderravpageaccok12idforgnetgovmuniltdplcaccotttvorgcomnetmeca6g5gpgamubacaicniocoukuptverdruscsdelhiindorgmilcomwebnicfingenpronetintedugovresbizbiharbarsyinternetbusinessschooltravelsupabasealumnigujaratfirminfoaeropostbankcoopindevscloudnsno-ipbarsybarrell-of-knowledgebarrel-of-knowledgensupdategroks-thisdnsupdatefor-ourknowsitalldvrcammittwalddynamic-dnsv-infowebhopselfipdyndnshere-for-moreilovecollegemayfirstforumzcloudnsmittwaldservertypo3servergroks-theeusekd1uk0cdndyndnsidrawsainaueuapjpusstagemocksysdevicesclientcustreservdcustdevdisrecprodtestingcobeebyteutwenteboxfusebravepstmndedynngrokorgmilcomnomhzcnetedugovqcxqzzbarsythingdustmo-siemensrb-hostingprotonetfh-muenstergitbookbluebitecloudbeesusercontentnodeartkiloappsforgerockdarklangresinstagingapigeebubbleb-datascryptedhypernodedappnodepantheonsitegitlabgithubkeeneticvirtualservercleverappshostyhostingon-rioedugitticketstelebiton-acornwixstudioon-k3sicp0icp12038jeleqotobigvlairbubbleappsmyaddrstolosmyrdbxwebflowdrive-platformbeagleboardhasura-applolipopdefinimavaporcloudmusicianwebflowtestazurecontainerresindevicereadthedocsloginlineeditorxmoonscalesandcatsbasicserverwebthingsbrowsersafetymarkbeebyteappbitbucketidaccovistablogorgschnetgovxn--mgba3a4f16axn--mgba3a4fraarvanedgeايرانایرانjclaspeziapdudcefegelemeperetevebacanatavaparasabgagfgogrgpgalclblimfmrmcbmbvbfclcmcvcrcpcchlimifibicivipirisimncnbnanenrnpntnnolomobocoaogorosopotoptvtatctbtmtltotpulunutpspapaqsvpvvvtvavvrtrsrprgrfrcrbrarorkrvstsssbscsmsispzczbzbozen-suedtirolmyspreadshopxn--bulsan-sdtirol-nsbxn--valledaoste-ebbtrentinoaltoadigetrentin-sued-tirolxn--forlcesena-c8axn--forl-cesena-fcbxn--bozen-sdtirol-2obtriestetrentinsuedtiroltrentino-s-tirollecceudineaostesienaparmaluccapaviagenoapaduaaostamonzaabruzzoternirietiturinmilanbozenlaziofermoleccocuneonuoropratola-speziavdataaligfvgpugmolcalcamlomumbsicpmnvenvaoedugovabrsarmaremrbastoslazibxosfirenzetrentinosüdtirolval-d-aostavalle-aostamessinacremonaravennatoscanatrentin-suedtirolbolognacalabriaurbinopesarofriuli-v-giuliaogliastraxn--valle-aoste-ebblaquilaandriatranibarlettasyncloudtrentinosudtirolxn--valle-d-aoste-ehbaostavalleyvalled-aostatrentino-alto-adigevallee-d-aostexn--balsan-sdtirol-nsbpistoiasicilialucaniacataniaiserniaperugiabresciaveneziagorizialiguriaimperiabulsan-suedtirolbalsan-suedtirolbarlettatraniandriaxn--trentino-sdtirol-szbforlì-cesenatuscanyvallée-d-aostemantovavallée-aostecasertapiemontevalleaostaval-daostafriulivgiuliatrevisoforli-cesenavalléedaosteferrarapescaravald-aostatrentino-altoadigefriuli-vegiuliavallee-aostecarboniaiglesiastarantomediocampidanovalleedaostetrentinosud-tirolcampobassotrentinsüd-tiroltrentinosüd-tirolmonzabrianzatrentino-südtirolxn--trentino-sd-tirol-c3bpotenzacosenzavicenzaemiliaromagnavenicefrosinonemarchepordenonetrentinosued-tirolvaresemolisevalléeaostefriuli-veneziagiuliabasilicatalatinaanconasavonaveronamodenaaquilabiellabolzano-altoadigepugliafoggiaumbriatrentino-stirolgenovapadovamateranovararagusapiacenzatrentinostirolvalleeaostetempio-olbiatrentinsudtirolmassa-carrarafriuliveneziagiuliatrentinosuedtirolandria-barletta-tranitrapanixn--cesenaforl-i8amaceratacaltanissettaascoli-picenobrindisicarraramassacagliaririmininapolivibo-valentiachietibulsan-sudtirolbalsan-sudtiroltrentino-a-adigebulsanbalsaniglesiascarboniamilanotorinoteramodell-ogliastraarezzotrentinoalto-adigerovigotrentovenetoiglesias-carboniatrentino-sud-tirolaltoadigereggio-emiliareggio-calabriasardegnatranibarlettaandriapiedmontxn--sdtirol-n2amedio-campidanotrentino-süd-tirolfriuli-vgiuliafriuli-ve-giuliaromeennaromapisa32-b16-b64-blodiastibarineencomonaplesforlicesenailiadboxosalessandriasicilytrani-barletta-andriaxn--trentin-sdtirol-7vbpesarourbinotrentinsued-tirolcesena-forliforlìcesenaemilia-romagnamonzaebrianzaxn--trentinsdtirol-nsbtrentinos-tiroltrentinsüdtirolvalledaostaolbia-tempiocampidanomediovibovalentiasassarivalle-daostalombardyfriulivegiuliareggioemiliamonzaedellabrianzaalto-adigevercellitrentin-sudtiroltraniandriabarlettatrentino-sudtirolascolipicenobozen-südtirolfriulive-giuliaflorencevaldaostaxn--cesena-forl-mcbcarbonia-iglesiasaosta-valleycarrara-massadellogliastratrentinoa-adigexn--valleaoste-e7apesaro-urbinoxn--trentinosdtirol-7vbxn--trentin-sd-tirol-rzbxn--trentinsd-tirol-6vbtrani-andria-barlettatrentin-süd-tirolxn--trentinosd-tirol-rzbgrossetomonza-e-della-brianzasüdtirolreggiocalabriatrentinoaadigetrentin-südtirolfriuliv-giuliaverbaniacampaniatrentino-aadigefriulivenezia-giuliasardiniaandriabarlettatranibarletta-trani-andriacatanzarooristanourbino-pesarocesena-forlìvalle-d-aostacampidano-medio123homepagesiracusatempioolbiasuedtirollombardiaavellinocesenaforlìtrentinofriuli-venezia-giuliabozen-sudtirolandria-trani-barlettabulsan-südtirolbalsan-südtirolmonza-brianzabolzanotrentino-sued-tirolbellunosalernolivornocrotonesondriodnshometrentinsud-tirolmassacarraratrentin-sud-tiroltrentino-suedtirolviterbobergamocesenaforliolbiatempiopalermobeneventoagrigentoofcoorgnetfmaitvphdengorgmilcomschnetedugovperagrikanieasukehandachitatokaiaisaikonanoharuamaobuhigashiuraowariasahiinuyamatobishimaiwakurashitarainazawatoyonegamagorimihamatoyotataharakariyayatomioguchikomakimiyoshinishiotokonamekiyosuchiryutoyohashiokazakiisshikikasugaikotakiratoeianjotogofusosetohazutsushimashinshirotakahamanisshinshikatsuhekinantoyokawaichinomiyatoyoakeodateogataakitaikawakyowahonjoogayurihonjonoshirokamiokakatagamimitanegojomeyokotekosakadaisenkazunonikahohonjyomoriyoshimisatohappoukamikoanihachirogatahigashinarusesembokufujisatokitaakitaitayanagiowanitakkomutsutsurutahirosakigonoheoirasetowadamisawanohejiaomorishingohiranairokunohehashikamitsugarushichinohehachinohenakadomarisannohekuroishisakaeisumiasahiotakiinzaiabikomatsudoyachiyomutsuzawakujukuriomigawakashiwatoganemihamanaritasakuranagaramobarahanamigawachoshishiroichoseikozakishisuikatorimidorichonankyonanfuttsuonjukufunabashinagareyamanodasosatakochuotohnoshourayasukimitsuyokaichibayotsukaidosodegauratateyamakamagayayokoshibahikariyachimatakatsuuratomisatokisarazukamogawaichikawanarashinoichinomiyashimofusaminamibososhirakoichiharaoamishirasatoikatahonaiainansaijoseiyoiyoozuuwajimaniihamanamikatamasakiuchikokihokutobetoonshikokuchuomatsuyamaimabarikamijimakumakogenyawatahamamatsunosabaeikedaobamasakaifukuiohionotsurugamihamawakasaminamiechizeneiheijikatsuyamatakahamaechizensoedaukihaomutaokawanishiogoribuzenonojosueumiokiotochikugosasagurisaigawamizumakishinyoshitomikurumekurateyamadakasuganakamamiyamanogatatakatahakataiizukakawaratagawakasuyaashiyainatsukimunakataminamitsuikishonaikurogifukuchikeisenhigashimiyakoshinguyukuhashiokagakiyamekogaongausuikahotohochuotoyotsumiyawakadazaifuhisayamatachiaraiyanagawanakagawahirokawachikujochikushinochikuhochikuzennamieotamaokumashowateneiiwakikoorinangoononishigoshimogoomotegomishimafukushimaasakawakagamiishishirakawaiitatefutabahiratayugawahanawakitakatakawamatakunimiyabukibandaihigashihironoyamatomiharuyamatsuriaizubangedatesomaaizuwakamatsuyanaizuaizumisatonishiaizuizumizakikitashiobarataishinkaneyamakoriyamainawashirotanagurafurudonosamegawasukagawaishikawatamakawaikedaogakitaruiginanenahashimahichisonakatsugawaibigawashirakawamizunamiminokamomitakekawauesekigaharatomikasakahogikitagatayamagatatajimianpachimotosuyaotsukakamigaharahidakanisekitokigujominogodoyorogifukasamatsutakayamawanouchihigashishirakawakasaharashimonitatsumagoichiyodakannakanrashowameiwakiryuotaoratomiokafujiokaitakuranaganoharahigashiagatsumatakasakishibukawaminakamikatashinatsukiyonokawabanumataannakaoizumimidorishintoisesakiuenoyoshiokakusatsutakayamanakanojonanmokutamamuratatebayashimaebashiotakekaitadaiwahongofuchukuietajimashobaramiharahatsukaichihigashihiroshimamiyoshikumanokurenakasakaseraseranishiasaminamifukuyamashinichionomichiosakikamijimajinsekikogentakeharaotobenanaeikedatohmaozoraobiraabirakyowaeniwataikibibaisharirebunerimohiroooketootarupippunishiokoppechitosefurubirahakodateshiranukakitahiroshimakushiroobihironanporoiwamizawaniikappukunneppufukushimanakasatsunaitoyourakuromatsunaiakabirakamisunagawashibechaurakawakamifuranonakatombetsuasahikawashimokawakayabeokoppebiratoriabashirisaromaatsumanumatahidakabifukamukawamikasahorokanaitoyotomisarufutsuhigashikawaishikarikitamiyoichiesashiiwanaitomariminamifuranoakkeshifuranotoyakoyakumootoineppushikaoishiraoinemuronayorohaboroashorobihororishirifujiutashinaihokutotakasuebetsuurausuassabukikonaishimamakinaiedatetoyabieinikiesanuryuoumuteshikagarikubetsuashibetsukimobetsuaibetsutobetsusobetsuembetsushimizuchippubetsurishirihokuryuhoronobeshintokutsubetsushibetsuhonbetsumombetsutsukigatakuriyamakoshimizushiriuchikutchanmurorannoboribetsukamishihorowassamushinshinotsukembuchiwakkanaikamoenaikiyosatotakinoueshikabesunagawafukagawanakagawatakikawakamikawahigashikagurahamatonbetsumatsumaemoseushirankoshishakotanimakanemashikeotofuketomakomaisandatambaitamiawajikasaiasagoshisoonoakoyashirotoyookaminamiawajiinagawafukusakitakasagokamigorikasugaharimayokawaashiyahimejiakashitaishiaogakisannantakinosumototakarazukanishinomiyashingugoshikinishiwakiyokatakaaioimikisayoyabukawanishiamagasakisasayamashinonsenkakogawaichikawakamikawatatsunotsukubaiwamaogawaasahisakaitokaioaraiitakobandodaigosuifuinaamikasumigaurakashimaomitamayachiyoshimodatetomobetoridehitachinakainashikisakuragawakasamayawaramoriyahitachiomiyanamegatayamagatahitachikamisuushikutakahagiibarakitonekoganakasowayukimihojosomitoryugasakishimotsumafujishirotsuchiurachikuseihitachiotashirosatotamatsukuriuchiharashikahakuinanaotsubatawajimakahokukawakitatsurugikaganominotosuzuuchinadakomatsuanamizunakanotohakusannonoichikanazawaiwateshiwafudaikawaimoriokaofunatohanamakikuzumakikitakamininohekunoheyamadayahabasumitaichinosekitanohatahiraizumirikuzentakatajobojiotsuchihironomiyakoiwaizumikarumaiichinohenodakujitonooshushizukuishifujisawamizusawakamaishikanegasakimannoutazukotohiraayagawazentsujihigashikagawauchinomikanonjisanukimarugamemitoyotakamatsutadotsunaoshimatonoshoakuneamamiizumihiokiyusuikinkoisasookouyamanakatanekagoshimakanoyaisenkawanabeminamitanemakurazakitarumizunishinoomotematsumotosatsumasendaioimatsudaayaseebinamiurazushinakaiodawaraiseharasagamiharahakoneaikawakaiseiatsugitsukuihadanoyamatoyamakitazamaoisochigasakininomiyayokosukakamakuraminamiashigarafujisawasamukawakiyokawahiratsukayugawaraokawaumajikochitsunootoyoakiinonishitosayasudahidakamiharasakawaniyodogawahigashitsunokagamigeiseisusakiotsukinaharisukumomurototosakamiochitoyotosashimizumotoyamanankokunakamurakitagawayusuharaogunichoyoukiasoutoozugyokutoamakusamifunetakamoriyamagaminamataminamiogunikikuchisumotoyamatonagasumashikiaraokumamotokamiamakusanishiharayatsushiroayabeseikasakyoideineujinakagyokameokakyotangokyotanabekyotambaminamiyamashiroyamashinatanabeyawatawazukaminaminantanmiyazuhigashiyamafukuchiyamakitamukokamojoyokizumaizuruujitawaraoyamazakinagaokakyokumiyamakawagoeinabeshimameiwaasahitaikiudonoisetsukisosakikuwanamihamamiyamasuzukatamakimisuginabarikumanokomonominamiisewataraitobakiwatakikihotadomatsusakayokkaichikameyamaureshinoishinomakishichikashukuohirataiwaosakizaohigashimatsushimashikamaiwanumashibataogawaraonagawakawasakiseminemarumoriminamisanrikukakudamuratawakuyatomiyanatoriwataritagajomisatotomekamirifushiroishimatsushimayamamotoshiogamafurukawahyugaebinotsunosaitoayakushimanobeokakitauramiyazakitakazakigokaseshiibamimatashintomikunitomikitakatakobayashikawaminamitakaharukijotakanabemiyakonojonishimeranichinankitagawakadogawamorotsukakisofukushimaminamimakisakaeobuseikedaogawamiasaokayaasahiotakiotarichinoinaomichikumakomaganechikuhokukaruizawayasuokaooshikaikusakaminamiaikitogakushimatsukawakawakamitateshinatakamorikitaaikishiojirimiyadahakubaiizunaiijimaiiyamamiyotasuzakayasakatoguraookuwanagawaminowahirayayamagataminamiminowafujimiomachisakakitakaginaganonakanosakuhokomoronagisoshinanomachiwadauedaiidaharasuwatomiachiaokianankisosakunozawaonsenagematsutakayamashimosuwamatsumotoyamanouchinakagawamochizukiazuminotatsunoobamaomuraseihiunzenosetofutsuikichijiwanagasakiisahayahasamisaikaikawatanasasebohiradokuchinotsugototogitsutsushimashimabarashinkamigotomatsuurayamazoekashibaikomakawaitenrioyodosangokoryoudaojiikarugayamatokoriyamatenkawakatsuragikurotakikawakamimiyakemitsuetakatorikamikitayamayamatotakadahegurishinjokanmakisakuraitawaramotogoseoudanarasoniandokawanishishimoichihigashiyoshinokashiharashimokitayamanosegawayoshinomintsivorytopazsakuragehirnsumomoaseinetopalmail-boxmokurenyoitamuikaojiyagosensanjoaganomyokoseiroagaomishibataniigatanagaokamurakamiuonumayuzawakariwatagamitainaitsunanminamiuonumatochioyahikojoetsuseiroukamosadoizumozakitokamachiitoigawasekikawakashiwazakitsubamemitsukekokonoesaikiusukibeppuusahimeshimakunisakihasamataketatsukumihitaoitahijikusuyufukujukamitsuebungoonobungotakadaibaraniimibizentsuyamaokayamakasaokahayashimayakagemaniwaakaiwamisakishinjotamanotakahashikibichuowakesojanagishookumenannishiawakurakurashikiasakuchisetouchikagaminosatoshotomigusukunakagusukuyaeseizenaurumaiheyaaguniogiminanjokinminamidaitokitanakagusukuyonaguniokinawaishigakikunigamiurasoekadenataramahiraraginozataketomishimojizamamitonakiitomanhigashimotobuyonabarugushikamionnanahanagohaebarukumejimakitadaitonakijinnishiharayomitanginowantokashikiishikawaikedasuitaminohizuminishisakaikananabenodaitoosakasayamayaokishiwadatadaokakaizukatondabayashichihayaakasakakumatorikadomasayamahigashiosakashijonawatehirakatataishimisakitajirihannansennankatanotoyonominatosettsuhigashiyodogawaibarakinosekitachuohigashisumiyoshifujiiderakashiwaraizumiotsutoyonakamatsubaramoriguchiizumisanoshimamototakatsukineyagawahabikinotakaishikawachinaganoyoshinogarikamiminearitaouchiimarihizenogikashimaariakekiyamafukudomikitagatakitahataomachigenkaikanzakinishiaritakyuragisagataratosutakushiroishikaratsuhamatamakouhokukawagoeyoshidasatteogoseirumaasakaurawaogawaniizaomiyayoriiotakishikihonjooganohannohanyuinasaitamaokegawaarakawayoshikawayokozehasudasayamahidakafukayachichibuiwatsukiryokamiyoshimikamiizumifujimiwarabiranzanmiyoshiminanoyashiosakadosugitomisatohigashichichibutodasokakukiyonokazoshiraokakasukabekounosukawajimatsurugashimamiyashirokitamotohatoyamamoroyamahatogayakumagayakawaguchinagatorokamisatomatsubushinamegawatokigawakamikawafujiminohigashimatsuyamakoshigayatokorozawas3isk01isk02ryuohkoseikonanaishorittotakashimamaibarahikonetorahimenishiazaikokagamokotoyasuotsukusatsunagahamamoriyamatoyosatotakatsukinotogawaomihachimanhigashiomiakagiunnanizumogotsuamayatsukakakinokimatsuehamadamasudahikawahikimiokuizumoyasugiyakumomisatotamayuohdahigashiizumookinoshimanishinoshimatsuwanoshimaneshimadafujiedayoshidashimodagotembaiwataatamikosaiyaizuitoizumishimahaibaramakinoharaomaezakikawanehonkannamisusonohigashiizufukuroinumazukawazufujiaraishizuokahamamatsushimizuizunokunimatsuzakimorimachiminamiizunishiizukikugawakakegawafujikawafujinomiyaujiietsugaoyamayaitaohiranikkoashikagakuroisokanumasakurashioyakarasuyamamotegiichikaikaminokawatochigihagamokanogisanobatonasumibunasushiobaranishikatautsunomiyaiwafunemashikoshimotsukeohtawaratakanezawaitanokomatsushimatokushimaichibaminamiaizumiwajikikainanmiyoshinarutomimamugiananmatsushigesanagochishishikuinakagawamachidachiyodakomaefussainagitaitochofufuchuomeotahigashiyamatotoshimaokutamaaogashimakodairaedogawaarakawahachiojishinagawatachikawashibuyasuginamihinodekiyosesumidaoshimanerimamitakahamuraadachinakanomizuhobunkyomegurominatokoganeihigashikurumekokubunjihigashimurayamamusashimurayamatamakitahinochuokotokatsushikakouzushimaogasawaraakishimakunitachishinjukusetagayamusashinohachijoitabashiakirunohinoharachizunanbukotouramisasawakasayonagokogehinoyazutottorinichinansakaiminatokawaharaoyabetairainamiasahinantoimizufuchutakaokakurobeyamadajohanatoyamatonaminyuzenfunahashinakaniikawanamerikawaunazukitogahimiuozufukumitsutateyamakamiichiiwadearidayuasainamitaijikatsuragiaridagawatanabemihamahidakakainankiminomisatoshingushirahamakamitondayurakozakoyagobokitayamawakayamakudoyamahashimotokushimotokozagawahirogawakinokawanachikatsuurarsuseroeoishidasagaeoguniasahinagaitendonanyoobanazawanishikawasakataohkuratozawamikawamamurogawayamagatafunagatatakahatashonaishinjokahokuiideyuzakawanishitsuruokakaminoyamayamanobeshiratakamurayamanakayamakaneyamahigashineyonezawasakegawamitouubeyuuabushimonosekitabuseoshimatoyotaiwakunihikarishunannagatohagihofukudamatsutokuyamashowadoshitsurunanbukoshukaiminami-alpsnirasakikosugeotsukioshinohokutominobuyamanashifuefukichuokofuichikawamisatoyamanakakonakamichitabayamanishikatsuranarusawafujikawahayakawafujiyoshidafujikawaguchikouenohara長野京都岐阜大阪三重群馬千葉滋賀佐賀奈良adednelgaccogogror秋田愛知高知埼玉沖縄栃木熊本岩手青森山梨新潟島根鳥取長崎香川宮城石川大分宮崎茨城山口兵庫山形徳島広島福島福岡岡山富山静岡愛媛福井東京xn--4it168dhatenadiaryxn--vgu402ckawaiishophatenablogcocottenamaste北海道penneehimeiwateversestabachibashigagonnagunmapermahaccaakitaosakauh-ohblushkochiaichifukuikuroncapooitigohyogotokyokyotopunyuthickcheap0t00g00j0mie2-ddaapyawjg0amfemsubxiiboomoobutchueekpgwrgrherskrboyrdyupperunderflierchipsmydnsheavyangryhippygirlyrulez神奈川鹿児島和歌山bambinaxn--nit225kokayamasaitamaxn--k7yn95exn--1lqs03nsapporoparasitelolipopmcxn--efvn9sniigatafukuokatokushimafukushimahiroshimakagoshimafakefurokinawaxn--8pvr4ucoolblogxn--0trq7p7nnkawasakinagasakimiyazakichilloutxn--8ltr62kxn--klty5xpeeweezombiecutegirlxn--rny31hxn--uuwu58axn--ntso0iqx3axn--djrs72d6uytoyamanikitanyantakagawamimozanagoyaboyfriendxn--2m4a15egreaterchowderegoismyamagatafashionstorexn--elqq16hxn--pssu33lsendaimiyagixn--rht27zpecoriaomorisaloonwatsonvivianxn--djty4knobushipigboatnaganopinokoxn--f6qx53asadistvelvetsecretxn--5js045dchicappayamanashiibarakidigickgirlfriendxn--1lqs71dmongolianxn--c3s14mxn--qqqt11mtochigixn--5rtq34kparallelo0o0mondkobesagabonadecaoitanarafoolkilldecimainhiholomosblokilociaoundopupugifutankcrapflopnooroopsmodsholyjeezstripperpepperbittershizuokaxn--rht3dkitakyushureadymadeicurusversusmatrixxn--rht61ehungryfloppygloomycrankyhandcraftedlittlestarxn--klt787dxn--kltx9awhitesnowsunnydaytottorilovepoptheshopbuyshopxn--5rtp49cxn--d5qv7z876cwebaccelxn--kbrq7oxn--4pvxsxn--1ctwolovesickkumamotocatfoodxn--tor131oyokohamawakayamatonkotsuxn--ehqz56nxn--uist22hxn--6btw5axn--kltp7dyamaguchifrenchkisspussycatxn--4it797kxn--uisz3gbabybluexn--zbx025dnetgamersxn--7t0a264ckanagawaxn--6orx2rishikawaxn--ntsq17ghalfmoonschoolbusjellybeanxn--mkru45iusercontentlolitapunkxn--32vp30hsakurastoragehokkaidoshimanecandypopbabymilksupersaleweblikeraindropbackdropwebsozaikikirarahateblodaynightmeneacsccogoormobiinfoaeusxxorgmilcomnetedugovorgcomnetedugovbizinfotmprdorgmilcomnomedugovassnotairespresseassocoopgouvveterinairemedecinpharmaciensorgnetedugovtraorgcomedurepgovmeneperekgacscaiiocogoitoresmshsseoulbusanulsandaeguc01milvkimmvchungnamjeonnamjeonbukeliv-dnsgyeonggijejueliv-cdnincheondaejeongangwongyeongbukgwangjuchungbukgyeongnameliv-apicoeduindorgcomembnetedugovorgmilcomnetedugovjcloudorgcomnetintedugovperbnrinfocooyorgcomnetedugovipfscanvamypepw3sstorachakeeneticjoinmcinbrowserdwebcyonnftstoragemyfritzaemewphlxachotelltdorgcomwebsocschngonetintedugrpgovassnomgacsccoorgnetedugovbizinfo123websiteidorgmilcomasnnetedugovconfidmedorgcomplcschnetedugovaccoorgnetgovpresstmassoirseproxaccosoundcasthoptocraftvp4c66orgnetedugovitsmcdirmyboxbarsyedgestacksynologylogintonohostwebhopdiskstationi234tcp4hoocgroknoipprivmydsddnsdnsforlohmustransipdscloudfilegear-sgbrasiliafilegearframerbarsybarsyonlinecoprdorgmilcomnomedugovinforgcomnetedugovnameacprorgcomartnetedugovpresseinfoassoinstgouvorgnycedugovbarsydscloudjuorgcomnetedugovminisiteaccoororgcomnetgovorgmilcompronetintedugovbizmuseumnameinfoaerocoopaccoorgcomnetintedugovbizcooporgcomgobneteduorgmilcomnetedugovbiznameaccoorgmilneteduadvgovcoorgcomnetaltgovforgotherhiskeeneticispmanagernomassoprod5476132eastasiacentraluswesteuropewestus2eastus2rucdnwest1-usfra1-desandboxjls-sto1jls-sto3jls-sto2aglobalabglobalsslmapprodfreetlsmaplon-1lon-2ny-1fr-1sg-1ny-2paassnwebpaashostingjelasticnordeste-idcsocuserpagescwebfileblobservicebuscoreatlricnjsjelasticwebsitestoragesezagbinruhuukjptsmyspreadshopmynetnameakamaiorigin-stagingfrom-coipv64dynv6cdn77serveblogadobeaemcloudhicamsprytdnsupno-ipownipde5ovhicpfirewall-gatewaysytesmypsxbarsyusgovcloudapimyamazemyradwebakamaihdsaveincloudfastlylbfrom-lasubsc-paysquare7in-the-bandblackbaudcdnhomelinuxoninfernoctfcloudservebbsdns-dynamiccloudfrontakamai-stagingipifonyham-radio-opsenseeringclickrisingcommunity-profrom-nylocalcertgrafana-devedgesuite-stagingcloudflareanycasteating-organicatlassian-devmydattofeste-iplocaltotorprojectknx-serveredgekeycloudflareglobalcloudyclustercasacamserveftpakamaized-stagingakamaiorigindns-cloudmyeffectboomlabotdashbuyshousestwmailhetemlazure-mobilein-dslthruhereredirectmedynuddnsbouncemesupabaseluyanicloudappakamaicloudfunctionsdebiannhlfanpgafanstatic-accessin-vpnmysynologymafeloappudohomeftptrafficmanagersiteleafseidatmemsetcloudflarecloudaccesskeyword-onazure-apiis-a-chefdoes-itgets-itwebhopselfiphomeipkicks-assedgesuitewindowsserver-ontunnelmolemydissentscrapper-sitecloudflarecnuni5srcfggffiobbzabcdenodynuopikddnsvpndnsakadnselastxkinghostvps-hostfastlyhomeunixazureedgeshopselectdontexistmyfritzcloudjiffyalwaysdatasells-itsquaresbroke-itazurefddattolocalat-band-campmeinforumfamilydsazurestaticappsdefinimabplaceddnsaliasdynaliasnow-dnsblogdnsroutingthecloudendofinternetdsmynasakamaiedgemymediapcadobeio-staticakamaiedge-stagingakamaihd-stagingddns-ipprivatizehealthinsurancelive-onkrellianschokokeksmassivegridmysecuritycamerarackmazeserveminecraftfrom-azis-a-geekakamaizedmoonscalecryptonomicoffice-on-theusgovtrafficmanageradobeioruntimeedgekey-stagingreserve-onlinechannelsdvrdnsdojousgovcloudappcdn77-sslapps-1and1podzoneazurewebsitesdynathomescaleforceyandexcloudvusercontentisa-geekcdn-edgescoaemalcesappwriteazimuthtlonarvonoticeablestorecomwebrecnetperotherfirminfoartslgdloncogoiltdorgmilcolcomplcschgenngonetedugovbiznamefirmmobiacincoorgmilcomnomwebgobnetintedubizinfocomyspreadshopdemongovtransurl123websitehosting-clusterkhplaycistrongsnesosvalervålerxn--vler-qoaossandeheroysandeherøybøboheroyherøyxn--hery-iraxn--b-5gavalerbøboxn--b-5gasandesandexn--hery-iraxn--vler-qoavålerhåreålaahavaofsfvfhlolnlalrlhmfmtmahcostntbuåstrmreigersundmyspreadshopgálsáeidsvolltingvollgildeskalflorøvadsøvardøvanylvenxn--bhccavuotna-k7astrandaxn--kvnangen-k0axn--sknland-fxaxn--mosjen-eyarakkestadhyllestadnannestadvevelstadvaapstenordre-landsondre-landsøndre-landtjieltexn--vrggt-xqadsør-aurdalsor-aurdalheradstordmoldefordeførdeseljefedjeryggehemnexn--krehamn-dxasognegranesøgnebrynetjomevallebykletokkegiskedovretjømehobølvoldasaudatolgasømnaviknadønnasomnadonnatranafrananesnaraumasmolatrænafrænalesjasmølaørstaorstahitrafloraaukraloppafrøyarissasnasahalsagalsaromsaraisaráisafroyasnåsagronghobolfjelltydalårdalardalaskimharamkraanghkekråanghkesorumbarumhurumbærumsørummodumsálátbálátfrognbjugnvåganvagangulenskienløtenlotenstrynvefsnxn--merker-kuaskaunsveiobømlobomloskjåkvardoflorovadsosalatbalatsálatklæbuklabuselbubarduulvikskjakklepprisørxn--nttery-byaeflåeidflahofmilgolholsellomskifetvikdepvgsfhsaskerrisorhamarasnesåsnesrørosrorosxn--slat-5namasoynaroyvaroyluroydyroyaskoyradoyandoyrodoymeloyradøyandøyrødøymeløyaskøylurøydyrøymåsøyværøynærøyhoylandethøylandetdivtasvuodnalørenskoglorenskognesoddtangenxn--tjme-hraxn--smla-hraxn--stjrdal-s1aunjargalillehammerunjárgaxn--hamary-fyadavvenjargaxn--bearalvhki-y4a123hjemmesidegjerdrumxn--brnnysund-m8acxn--tnsberg-q1axn--mlatvuopmi-s4axn--snsa-roaxn--skierv-utaxn--brum-voatysfjordkvafjordeidfjordkvæfjordsongdalenmjondalenmjøndalenxn--gls-elackragerogáŋgaviikagangaviikasørreisasorreisasør-varangersor-varangerxn--risr-iraskiervaxn--frna-woaxn--trna-woakvinesdalleksvikleirvikrøyrvikroyrviksvelvikvenneslaevje-og-hornnessandnessjøenmarnardalvindafjordsandefjordenebakksnillfjordullensvangxn--trany-yuabrønnøysundnamsskoganaustevollxn--stjrdalshalsen-sqbnord-aurdalnord-frontrøgstadtrogstadgrimstadflakstadgjerstadxn--sandy-yuaxn--leagaviika-52bnore-og-uvdalvegarsheixn--rlingen-mxaxn--ggaviika-8ya47hvegårsheikarlsoykvitsoymasfjordenhamaroyinderoyosteroydavvenjárgasauheradguovdageaidnuxn--vre-eiker-k8abronnoysiellakkrødsheradkrodsheradkvinnheradbrønnøyxn--mtta-vrjjat-k7afxn--lrenskog-54akvitsøyvárggátkarlsøyosterøyinderøyhamarøybronnoysundxn--aurskog-hland-jnbbahccavuotnabáhccavuotnagiehtavuoatnastor-elvdalmidtre-gauldalxn--gildeskl-g0akarasjokevenassixn--bievt-0qaxn--yer-znalebesbynessebyxn--hbmer-xqamalselvmålselvxn--unjrga-rtamøre-og-romsdalmore-og-romsdalhareidmelandørlandorlandstrandålgårdsolundalgardafjordåfjorddielddanuorrikautokeinoxn--stre-toten-zcbskodjeaejriestangeliernebamblestokkefauskesnåasesnaasekongsvingerlangevagberlevagxn--flor-jrahattfjelldalostre-totenøstre-totenvestfoldxn--mely-iraálaheadjualaheadjunordreisaxn--troms-zuaxn--lgrd-poacporsangerflatangerstavangerleikangerbremangersamnangergieldakarasjohkaxn--rdy-0nabfrostautsirasnoasatromsaxn--sr-aurdal-l8aflekkefjordjølsterjolsteraremarkhedmarknååmesjevuemienaamesjevuemiexn--vard-jrarollagmeråkermerakerorskogørskogxn--bdddj-mrabdákŋoluoktaxn--osyro-wuaaknoluoktatrysilskjervøymandaljondalbindalrindalmeldalsuldalorkdalsigdalalvdallærdalhurdalsirdalverdallerdallardaloppdalåseralaseralhadselkragerødivttasvuotnaoverhallasteinkjerxn--hnefoss-q1askedsmokorsettromsøxn--dyry-iravestre-totenmuseumxn--sandnessjen-ogbrahkkeravjufylkesbiblbájddarbajddarxn--laheadju-7yarennesøyxn--koluokta-7ya57hxn--hgebostad-g3aleirfjordstorfjordbalsfjordbåtsfjordbatsfjordmuosátbievátloabátkárášjohkanøtterøyxn--mjndalen-64anordkappláhppilahppialstahaugsiljanverranrøykenroykenhaldenlyngenbergenhortenhønefosshonefosstroandinbeiarnvarggatosoyroosøyrotromsoidrettmuosatbievatruovatloabatvoagattynsetnessetxn--indery-fyaskánitskanitraholtråholtxn--ystre-slidre-ujbandebusarpsborgbearduxn--karlsy-fyahordalandjorpelandjørpelanddeatnuringsakersør-odalsor-odalxn--slt-elabringerikeaudnedalnittedalnissedalhemsedalslattumsurnadalxn--blt-elabelverumstjørdalnaustdalhjartdalgjøvikfyresdalhasviknarviklarvikgjovikmalvikgamviklenvikporsgrunnstjordalengerdaldrobakdrøbakxn--msy-ula0hvestvagoyxn--vgan-qoaxn--ryken-vuaxn--lten-graxn--stfold-9xaxn--hpmir-xqaxn--lury-iramálatvuopmimalatvuopmitysværkirkenesbirkenesmoskenesbáidárxn--fjord-lraxn--rdal-poabahcavuotnabáhcavuotnaxn--frde-gralindåsbearalvahkixn--hobl-iraráhkkerávjuxn--loabt-0qavågåáltábodøsundlundraderådeetnetimeholeauregrueoddavagavegaranatanaarnasolasulaaltalekafusavangbergkvamåmliamlibokntinnroangranosenoslobodorøstroststatåmotamotivguprivøyeroyerliermossvossxn--nvuotna-hwalusterlunnermarkerhábmerhabmerhvalerfjalerxn--rholt-mratysvarbaidarfitjargaularhápmirhapmirmelhusfosnesøksnesoksnestysneshemnesevenesflesbergeidsbergtonsbergtønsberglindasxn--sndre-land-0cbnamsosxn--srum-graøystre-slidreoystre-slidrevestre-slidretrondheimbalestrandxn--langevg-jxaaustrheimxn--skjk-soavagsoyaveroysandoykarmoyfinnoytranoyvestbytranbysykkylvenxn--hyanger-q1aspjelkavikandasuoloxn--fl-ziaxn--drbak-wuastathellexn--sr-varanger-ggbtelemarkxn--bhcavuotna-s4axn--porsgu-sta26fčáhcesuolocahcesuoloakrehamnåkrehamnsandøykarmøyfinnøytranøyvågsøyaverøynamdalseidxn--lesund-huabadaddjaxn--vegrshei-c0axn--btsfjord-9zagildeskålporsanguxn--trgstad-r1anávuotnanavuotnahammerfestxn--sgne-graxn--brnny-wuacibestadharstadnarviikaevenáššivestnesgjemnessandnesagdenesrennesoyxn--avery-yuaxn--tysvr-vrabearalváhkikongsbergspydebergrandabergxn--andy-iradavvesiidaxn--krdsherad-m8aporsáŋgufredrikstadbjerkreimringeburennebuaurskog-holandnotteroyxn--vgsy-qoa0jxn--rmskog-byaskierváivelandbyglandfrolandaurlandforsandxn--bjddar-ptamidsundålesundalesundfetsundfarsundovre-eikerøvre-eikerakershusxn--moreke-juasørfoldøstfoldostfoldsorfoldhøyangerhoyangerlevangerorkangertanangerxn--vestvgy-ixa6olillesandulsteinxn--rennesy-v1agranvinskjervoyxn--klbu-woalavagisxn--h-2faxn--ryrvik-byakafjordkåfjordseljordfolkebiblxn--gjvik-wuajevnakerxn--kfjord-iuabudejjuxn--kranghke-b0axn--davvenjrga-y4axn--rland-uuaxn--ldingen-q1axn--mlselv-iuaxn--rady-iraxn--linds-prabrumunddalxn--ygarden-p1amo-i-ranaeidskogrømskogromskoghjelmelandxn--finny-yuaxn--sr-odal-q1axn--skjervy-v1aballangenkvanangenkvænangengratangenxn--hmmrfeasta-s4acvossevangensuohkanxn--rde-ulaxn--mli-tlaxn--ksnes-uuanordlandskanlandskånlandsortlandfuoiskuxn--rros-graxn--hcesuolo-7ya35bxn--eveni-0qa01gagaivuotnagáivuotnaxn--seral-lradrammenmodalenmosjoenjan-mayentorskensteigengloppenxn--snes-poamatta-varjjatxn--sr-fron-q1aomasvuotnajessheimbådåddjåxn--krager-gyaxn--kvfjord-nxaxn--asky-iraxn--snase-nraxn--bidr-5nacholtålenxn--vads-jraxn--jlster-byamosjøenxn--rst-0nastavernxn--ostery-fyaxn--oppegrd-ixaxn--sknit-yqaxn--risa-5naoppegårdskiptvetrendalenholtalenxn--mot-tlaxn--lhppi-xqaxn--holtlen-hxaxn--srreisa-q1akopervikxn--muost-0qaxn--bmlo-grahokksundkvalsundegersundxn--karmy-yuaullensakerxn--hylandet-54axn--kvitsy-fyaxn--bod-2nalangevågberlevågkristiansandxn--rsta-frahornindalstjørdalshalsenstjordalshalsensandnessjoenhámmárfeastaxn--lrdal-srasør-fronsor-fronnord-odalkristiansundmátta-várjjatvestvågøynesoddennotoddenbuskerudøygardenoygardensalangenlavangenralingenrælingenlodingenlødingenleaŋgaviikalaakesvuemieleangaviikauenorgexn--srfold-byaaskvollxn--rskog-uuaxn--nry-yla5gxn--vry-yla5ghammarfeastaxn--rhkkervju-01afxn--givuotna-8yakommunekrokstadelvanedre-eikerhagebostadhægebostadxn--berlevg-jxakviteseidxn--s-1faxn--l-1faxn--nmesjevuemie-tcbafuosskomoårekemoarekexn--lt-liacxn--jrpeland-54asvalbardoppegardholmestrandtvedestrandsogndalsokndalarendalsunndalfolldalxn--krjohka-hwab49jlyngdaletnedalnorddalsaltdalgausdalskedsmovaksdalgjesdalstordalxn--frya-hraaarbortedrangedalxn--smna-graaurskog-hølandxn--vg-yiabtjeldsundhaugesundlindesnesxn--mre-og-romsdal-qqbxn--dnna-gradynmerseineshacknetenterprisecloudmineaccomaorimāoriorgmilcriiwigennetschoolhealthkiwigovtgeekxn--mori-qsacloudnsparliamentcomedorgcompronetedugovmuseumwebsitekinservicebarsywebsitebuildereerobookheimdnsleapcelleero-stagetechcrscsslorigingohomecdbedeeeiemesecabgngilnlalplchfisiincnnoroptatitmtltruauhulumkdkukskjplvtrgrfrkrhrusesismycynzcznetinteduassoososcloudstgbetaaezaeuhkusjshatenadiarycdn77hoptozaptois-a-knightmyftpno-ipjpnddnssdpdnsspdnsbarsysweetpepperis-a-bruinsfanis-very-sweetservegameis-a-soxfanhomelinuxcdn77-secureservebbsmisconfusedwebredirectblogsitefreedesktopcouchpotatofriestoolforgeaccesscamis-lostreadmyblogsmall-webfedorapeopleserveftpis-a-celticsfanmywirepotagertwmailin-dslsellsyourhomeread-booksfreeddnscable-modemis-savednflfanufcfanmlbfanstuff-4-saleendoftheinternetin-vpnmy-firewallhomeftpis-localis-a-chefboldlygoingnowherewebhopselfipkicks-assroxatunkcamdvrfedoraprojectgotdnsdvrdnsdyndnspubtlspimientahomeunixdontexistfedorainfracloudwmflabsfspagesbmoattachmentsteckidsfamilydsdnsaliasdynaliasnow-dnscloudnsdoomdnsduckdnsblogdnshomednsroutingthecloudendofinternetdsmynasip-dynamicpoivronhttpbinmyfirewallis-very-evilmysecuritycamerais-a-linux-userwmcloudis-a-geektuxfamilyis-a-candidatedoesntexistis-very-badhobby-sitegame-hostaltervistais-foundis-a-patsfandnsdojohepforgepodzonedynservcollegefanis-very-goodfrom-meis-very-niceisa-geeknerdpolacmedsldingorgcomnomgobabonetedupleskaemhlxmyboxrockyprvcydeuxfleurspdnscodebergheyflowstatichostorgmilcomnomgobneteduorgcomeduiorgmilcomngonetedugovcloudns1337ngrokacorggogfamcomwebgobnetedugokgopgkpgovgosbizpasaugumicsopozpapuwmwsrprusiskwpspkppspkmpspokeoiawsawifoumsdnskokwpmuppuppsppiwwiwoowuzswkzoschrzpisdnwzmiuwwitdpssewsseumigugimoirmpinbwinbwiihupporzgwgriwupowwskrwioswuozstarostwokonsulattmpccopruszkowmyspreadshopostrodakartuzyopolegminamediaustkazgorajgoraolawailawalomzawloclradombytomjaworznotargilubinkoninzagantorunkutnokepnonakloczestsopotsanokturekplockslasksklepzarowlukowmedaidgdaorgmilrelcomnomatmgsmartneteduelkgovwawsossexbiztgorysejnytychypomorzeboleslawiechomesklepsdscloudunicloudzakopanelegnicarawa-mazbydgoszczswidnikkrasnikwloclawekbielawamragowograjeworealestatebeskidykaszubymalopolskaprzeworskswiebodzinlecznadfirmaszkolawarmiagdyniamiastakazimierz-dolnymalborkswidnicadlugolekaostrolekapodlasieelblagtravelsimplesitezachpomormielecszczecinnieruchomosciwalbrzychlezajsklublinbedzinpoznanwielunmielnooleckostarachowicedkontopowiatwroclawrybniksuwalkileborkslupskgdanskostrowwlkptarnobrzegtourismwegrowkrakowglogowyou2pilanysamailwrocinfoagroautobeepshopprivlapypiszlodzcfolksecommerce-shopmazurypulawyskoczowrzeszowpomorskiezgierzkaliszolkuszlowiczostrowiecsosnowiecmazowszewodzislawbialowiezazgorzeleckatowicepabianicejelenia-gorawolominkarpaczsieradznowarudaczeladzkonskowolaskierniewiceswinoujscieturystykabieszczadycieszynketrzynolsztynbialystokbabia-goraprochowicewarszawastalowa-wolapolkowicegorlicegliwiceponiatowalimanowalubartowaugustowkobierzyceopocznognieznoszczytnokolobrzegshoparenapodhalebielskoklodzkostargardatwithplayitownnamecoorgnetedugovacorgcomproestnetedugovbiznameislaprofinforechtngrokmedaaaacacpaenglawjurbarbarsykeeneticavocatacctcloudnsorgcomsecplonetedugov123paginaweborgcomnetintedugovnomepublidkinbarsygovx443cloudnsorgmilcomnetedugovcooporgmilcomschnetedugovnamecomcannetlibassoaemclantmcontstoreorgcomnomrecwwwbarsyfirminfoshopartsstackitmyddnswebspacelima-cityacincooxorgedugovbarsybrendlyhbvpsvpsspectrumlandinghostingacppmordoviamcprecbgorgmilcomspbnetintedumsknovgovbirrasmcdirmytismircloudvladimirnalchikadygeyamarinepyatigorskmyjinobashkiriaeurodirvladikavkazna4ugroznykustanaikalmykiacldmaildagestaniranbuildcanvaliaravalwixdevelopmentappwritemigrationneedleverceldatabasestackitcodereplravendbonporterlovableaccoorgmilnetgovcoopmedorgcompubschnetedugovservicemecomygovorggovtvmedorgcomnetedugovinfoedgfacbmlonihkutwpsryxzbdtmacfhppmyspreadshopbrandpartiorgcomfhvpress123minsidaitcouldbeworlanbibkommunalforbundfhskiopsyskomvuxkomforbnaturbruksgymnloginlineorgcomnetedugovenscaledeuusentbotdaorgmilcomnetgovnowteleporthashbangplatformlovablebarsyshopwarebasehoplixbarsyonlinemsf5gitappgitpagecofigma-govcaffeinefigmacanvasoltstputerbarsysupportchatgptsquareomniweopensocialcpanelnotionnovecorewpsquaredpreviewjelecyonbyensrhtfastvpspieboxconvexjouwwebheyflowplatformshloginlinemadethissourcecraftclouderaorgorgcomartedugouvunivmeorgcomnetedugovsurveysstatichfheiyuxs4allprojectmyfastubervibehostapp-ionosdeployagentmecoorgcomschnetedugovbizcncostoreorgmilcomneteduembaixadaconsuladokiraranohoprincipesaotomeheliohobarsystorebaseshopwaresellfyabkhaziavologdamordoviapenzalenugsochinavoiexnetspbmsknovnorth-kazakhstanashgabadkareliaarmeniageorgiavladimirnalchikivanovobukharaadygeyakhakassiakalugakrasnodarjambylaktyubinsktroitskbryanskobninskkurganazerbaijanpokrovskbashkiriatselinogradvladikavkazmurmansktulatuvamangyshlaktashkentchimkentgroznykaragandatermezarkhangelskkustanaikalmykiabalashoveast-kazakhstankaracoldagestantogliattibarsyredorgcomgobedumirenknightpointaccoorgjelasticdiscoursecleverappsschacmiincogoornetonlineshopcogoorgmilcomwebnicnetintedugovbiznametestcoorgmilcomnomnetedugovorangecloudpersoindorgcomfinnatnetgovensmincomtourismintlinfox0611oyaorgmilcomnetedugovquickconnectvpnplusnettprequalifymeaddrmyaddrntdllwadlnctvavdrk12orgmilpolbeltelcomwebgennetedutskkepgovbbsbiznameinfocoorgmilcompronetedugovbiznameinfobetter-thanworse-thansakurafromdyndnson-the-webmymailerorgmilurlcomneteduidvgovmydnsgameclubebizmeneacsccogotvorhotelmilmobiinfovodteiflgplkmsmsbcckhincndnvncoztltmkckppzpdprvcvkvlvcrkrkscxuzchernovtsyrivneyaltaodesavolynrovnolutskltdinforgcomnetedugovbizvinnicazhitomirternopilpoltavakropyvnytskyizaporizhzhiasevastopolsebastopoluzhgoroduzhhorodkharkovkharkivvinnytsiakhmelnytskyizaporizhzhecrimeaodessazhytomyrnikolaevcherkassydonetskluganskluhanskkirovogradivano-frankivskchernivtsikrymkievkyivlvivsumyzakarpattiamykolaivcherkasychernigovkhersonchernihivdnipropetrovskdnepropetrovskkhmelnitskiyneacsccogoorusorgmilcomedugovvmdhmyspreadshopadimono-ipbarsybytemarkbarsyonlinelayershiftnh-servretrosnubapicampaignservicelugaffinitylotteryweeklylotteryraffleentrygluglugsmeaccoindependent-inquestnimsitecopropymntltdorgplcschnetgovnhsbarsyindependent-commissionindependent-reviewpolicepublic-inquiryindependent-panelconnhospindependent-inquiryroyal-commissionoraclegovcloudappscck12libccphxcclibpvtparochchtrcck12libcceatonk12coglibtecgendstmusann-arborwashtenawcck12glghcck12sealibforksolympiabainbridge-islkeyporthoquiamyarrow-pointcentraliaport-townsendsequimport-ludlowrentonsilverdalebremertonredmondsheltonbellevueport-orchardport-angeleskingstonchehalisaberdeengig-harborseattlepoulsboidmdndsddemenegacalamaiavawapailalflnmdcncscohnhmihiviwiriinmntnmocoutvtctmtgunjokakwvnvprarorasmskstxwynykyazisadninsnngosrvis-bymircloudservernamepointtoenscaledland-4-salefreeddnsstuff-4-saleazure-apinoipcloudnsgolffanheliohostazurewebsitesgvorgmilcomgubneteducoorgcomnetd0egvorgmilcomnetedugovmydnsiacostoree12orgmilcomnomwebgobbibrectecnetintedugovraremprendefirminfoartseducok12orgcomnethidnsidacaiiosonlahanamhanoicamauhueorgcompronetintedugovbizbacninhtayninhhoabinhnamdinhtravinhhaiphongvinhlonghaiduongquangnamquangtrithuathienhuequangninhbacgianghaugiangquangbinhsoctrangbentrethanhphohochiminhdanangkontumhatinhkhanhhoathanhhoahealthgialailaocaiyenbaibackanngheanlonganphuyenphuthocanthodaklakdongnainameinfovinhphucdongthapkiengiangtiengiangquangngailaichaulangsonlamdongdaknonghagiangangiangcaobangbinhduongninhthuanbinhthuanbaclieuthaibinhninhbinhbinhdinhtuyenquanghungyenbaria-vungtauthainguyendienbienbinhphuocschbizputerimagine-proxyorgcomnetedugovcloud66advisormypetsdyndnsxn--8dbq2axn--4dbgdty6cxn--5dbhl8dxn--hebda8bxn--80auxn--d1atxn--c1avgxn--o1acxn--o1achxn--90azhxn--55qx5dxn--uc0atvxn--od0algxn--wcvs22dxn--gmqw5axn--mxtq1mxn--12c1fe0brxn--h3cuzk1dixn--12co0c3b4evaxn--12cfi8ixb8lxn--o3cyx2axn--m3ch0j3axn--j1adpxn--90amcxn--90a1afxn--h1ahnxn--j1ael8bxn--h1alizxn--c1avgxn--j1aefxn--80aaa0cvacxn--41acaffeineexeopentunnelbotdashtelebitorgtmaccoagricorgmilnomwebnicngonetaltedugovlawnisschoolgrondaraccoorgmilcomschnetedugovbizinfoprg1-zeropstritonstackitlimazeropsaccoorgmilgovяспборгкоммскбизмирсамаракрымсочиакодпроргобрупрצהלממשלישובאקדמיהองค์กรธุรกิจรัฐบาลศึกษาทหารเน็ต教育網絡組織公司政府個人닷넷한국澳门新闻澳門联通家電嘉里招聘通販닷컴삼성コムგეбгрфеюadcdbdgdidmdsdtdaebedeeegeiejekemenepereseveyegabacalamanauavapaqasazacfbfafgfnfpfwftfbgcgagggegkgngmgsgpgvgtgugilmlnlalclglplsltlhmimjmkmmmomambmcmdmfmgmzmpmsmtmgbbblbsbecccacnclcmcvctcscmhkhghchbhthphshlinikifigiaibicivisikninhnmncnbngnsnpnvntnjoionomobocoaofodorosotoptstttytatbtetgtithtmtltrusuvuaucueuguhulumunufjdjbjtjsjlkmkhkfkdkcktkukskpkgpmpnpkpjpgqaqmqiqsvtvcvbvmvlvrwpwtwzwbwcwawgwkwmwtrsrprgrfrercrbrarnrmrlrkrirhrwsusrssspsgsesbsaslsmsissxmxaxcxuypysylymykygybycyuztzsznzmzkzdzczbzazελευ世界台灣购物公益点看臺灣网络書籍在线网站手机机构大拿游戏信息台湾谷歌慈善商标香港中国餐厅网址中國商城食品微博政务移动集团公司八卦商店健康网店政府时尚佛山中信娱乐广东企业homedepotengineeringاماراتrepublicankuokgroupversicherungchannelcitadelxn--pgbs0dhxn--b4w605ferdstatebankwebsitexn--mgb9awbf亚马逊淡马锡alibabaxn--ngbc5azdxn--mgbbh1axn--45br5cyltoshibabuildworldcloudtradeguideplacespacedancemoviephoneprimesmilebiblestyleappleazurestoreskypegripexn--l1accdrivelottehorsehouseleasechasereisestadahondaomegaaetnaamicaninjanokiamediadeltavodkaedekaosakapizzaslingemailgmailtirolshelltmallfinallegaltotalhotelamfamforumrehabmusicciticricohcoachwatchboschearthfaithirishmiamiarchidubaiguccipraxiみんなストアセールcanonsalononionnikonepsonkoelngreensevencrownikanoradioaudioweiboglobopromogalloyahoociscorodeovideomangobingotokyovolvolottokyotophotosmartsportquesttrusthyattjetztadultcymrubaidutushuxn--kprw13dubankclickblackmerckgroupsharpcheapnowtvxn--h2brj9cקוםհայоргсрбмонкомбелмкдқазрусукрمصرقطرعربكومdadcfdmedwedredphdthdbidpidkrdmsdltdiceonewmeglemoerwecfageacbanbambaaaammakianraspacpaaxawtfbcgaegongingaigvigorgdogdhlmilrilonlaolloluoljllcalgalnflafltelsrlfrllplkimibmcamcombommomifmabbjcbscbcabnabtabmlbpubabcbbcnecincpncllcstcwtcpwcnyckfhbzhovhmoiskiobisbitcifyituipinvinwinxincbnbcnmanfangdnmenrenkpnmtnyunrunfununobiojioriohbogmofooboooooacoecoceongoproartistottnttbbtcateatlatvetpetbetnethktmitfitintjothotgotdotbotprueduicujnjyouinknhktdkappsapgapmapdnptopgopllpjmpzipvipripesqtrvdtvitvdevmovgovhivnrwlawsewnewbmwwownowhowdvrftrmtrsfrbarcartvscrseusawsupsubssbsadsddsldssasbmsmlsxxxboxfoxgmxtjxsextaxbuyflydiysoyjoyskypaydaygayxyzanzbizwebersenerpokerlameractortatarsolarລາວคอมไทยtourslocusnexuslexusgiftsbeatsboatspartspressglassswissकॉमनेटtiresgivescodeshomesgamestunesshoescardswalesloansvegastoolsdealsautosparisファッションworkssucksrocksxeroxforexfedexpartylillymoneystudyrugbytoraytoday中文网xn--unup4y天主教飞利浦新加坡enterprises我爱你嘉里大酒店christmasxn--fct429kholdingsxn--8y0a063axn--mgbx4cd0ablifestyleabogadoallstatenetbankكاثوليكxn--s9brj9cxn--gk3at1ebestbuycharityxn--55qx5dmicrosoftpropertybasketballhomegoodscorsicajewelrygallerygrocerysurgerycountrybrusselsverisignferreroxn--czr694bhdfcbankcommbanksoftbankپاكستانپاکستانnextdirectالسعوديهالعليانxn--h2brj9c8cxn--80adxhksshikshaxn--mgbai9azgqp6jcuisinellabarclayscatholicxn--kpry57dcompanyxn--xhq521bblackfridayxn--mgba3a3ejtsandvikxn--d1acj3bacademydownloadمليسياxn--j1amhxn--w4r85el8fhu5dnraipirangaathletaxn--fhbeixn--mgbqly7cvafrzuerichxn--c2br7gஇலங்கைcontractorsxn--io0a7igraphicsinsurancetemasekxn--xkc2al3hye2amotorcyclesphotographydirectoryplumbingxn--vhquvclothingtrainingcleaningwilliamhilllightingxn--mgba3a4f16ashoppingcateringeducationokinawapicturesventuresproductionsxn--9et52uwalmartഭാരതംsupportrealestatecapitalonexn--nqv7fs00emaauspostfloristdentistxn--qxamgodaddybradescobargainsmitsubishikerryhotelsxn--9dbq2axn--3pxu8kimmobilienxn--fjq720axn--mgbtx2bholidaymckinseymadridbusinessbuildershelsinkixn--4gbrimмоскваالسعودیةcoffeedegreelacaixapartnersalsaceofficeabbvievoyageorangegeorgeonlinechromemobilekindlegoogleoraclecircleschulesecureinsurexn--mgba7c0bbn0aestatexn--mgbc0a9azcgcruisehangoutxn--vuq861bxn--42c2d9arexrothfirestoneuniversityxn--nnx388alifeinsuranceextraspaceонлайнvermögensberatersoftwarexn--fiqs8sxn--mgbab2bdxn--w4rs40ltiendaभारतम्africatoyotaotsukasakuracameracreditcardnagoyaconsultingnetworkjunipertheatermonsterprogressivepioneerxn--55qw42gracingdatingvotingvikinglivinggivingxn--bck1b9a5dre4cbrotherweatherjoburgفلسطينlplfinancialxn--clchc0ea0b2g2a9gcdfutbolschoolsocialglobaldentalwoodsidechanelairtelmatteltravelrealtorwebcamstreamభారత్unicomalstomxn--nodexn--6frz82gmuseumfurniturexn--rvc1e0am3exn--mix891faccenturexn--11b4c3dismailineustardiscountquebeccomsecclinicservicesxn--y9a3aqxn--c1avgswatchchurchsearchالاردنmarketingcontacthealthmonashshoujisanofitaipeiamericanexpresssuzukiアマゾンクラウドポイントbhartiグーグルxn--mgberp4a5d4armemorialxn--1qqw23alondonmormoninstitutevisionbostonnortoncouponmaisonamazonvirginberlindesigndurbanolayannissananquanxihuanhitachikaufengardenreisenbayerntechnologydatsunxn--90a3aclatinocasinostudiophysioxn--ngbe9e0apharmacytattootaobaoaramcoexpertreportabbottdirectselectimamatfairwindspictettargetmarketintuittravelersinsurancecreditdupontryukyusuppliesxn--tckwebnpparibasschmidtmerckmsdyodobashirestaurantbridgestonecricketxn--fpcrj9c3dbostikbroadwayattorneylefrakemerckxn--fiq228c5hscareersfarmerswinnersflowersxn--wgbh1cguitarsxn--54b7fta0ccxn--p1acfmakeupgalluplandroverxn--kcrx77d1x4agoldpointbauhausxn--mgbayh7gpahiphopplaystationxn--mgba3a4fraxn--eckvdtc9dhyundaixn--gckr3f0fistanbulticketsmarketsflightschintaireviewsxn--3e0b707ewindowsxn--fiqz9sfinancialxn--fzys8d69uvgmابوظبيdiscoverreviewবাংলাxn--5su34j936bgsgmoscowobserverapartmentsдетиارامكوсайтeurovisionxn--i1b6b1a6a2exn--xkc2dl3a5ee0hتونسموقعبارتڀارتشبكةعمانبيتكعراقreadkredbondlandbandfundfoodprodgoldfordtubecafesafelifeggeeieeefreefagepagegugezonewinememenamegamesaleablebikenikelikecarecbreherefiresaveloveliveblueartedatesitevotecaseluxebofamodaltdaasdatiaayogasinavanashiaasiajavabbvatevavivadatazaraarpacasavisasncfprofmaifsurfgolfdvagsongbingpingwangkpmggoogblogpohlfailcooldellcalldeallidlsarlfilmteamroomfarmimdbarabclubhdfcicbchsbcgmbhrichtechfishdishcashminiernikddiaudiwikimobitaxicitikiwidesiqponskinloanakdnwienopenporncerntownimmolimoolloinfonicofidolegosaxozeroaerovivoautovotomotofastbestresthostpostnextlgbtchatseatgiftmeetdietreitmintrentgentspotscotguruitausohumenucyoubanklinkpinkdclktalksilkbookseekworkrsvpaarpjeepshopcoophelpcamppccwshowbeerstarruhrflirweirhaircarsparsjprshausplusnewstipstoysjobskidsfanspicsdocsxboxamexsexynavycitysonyarmyallybabyplaydeliverybuzzgbizlamborghiniphilipsලංකාಭಾರತfitnessexpresslanxesspfizercenterwalterlawyersoccercareerkosherbrokerlockerdealerdoctorauthorxn--mgbqly7c0a67fbcvermögensberatungjaguarxn--pssy2uxn--hxt814eflickrrepairrogersairbusxn--mgbai9a5eva00beventsyachtsxn--t60b56aভাৰতভারতभारतभारोतviajeshermeshughesxn--j1aefसंगठनvillasଭାରତclaimshotelsભારતzapposphotosjuegoscondostatamotorsgratistennisਭਾਰਤtkmaxxtjmaxxschaeffleryandexxn--80aswgrealtysafetybeautyluxuryxn--3ds443gsupplyfamilyxn--o3cw4hhockeysydneyxn--90aenissayalipayenergycomputeragencyxn--rovu88b電訊盈科xn--gecrj9cstatefarmaccountantaquarelleolayangroup香格里拉xn--p1ai组织机构xn--1ck2e1bxn--mgbt3dhdschwarzموريتانياabudhabinowruzkomatsufujitsuhospitalxn--80asehdbxn--mgbtf8flxn--j6w193gxn--yfro4i67oprudentialxn--flw351ecruisescoursesrecipesxn--e1a4cferrarixn--ses554gxn--wgbl6awatchesstaplessinglesxn--mgbcpq6gpa1axn--otu796dpropertiescreditunionxn--mgbah1a3hjkrdstockholmhisamitsuالسعوديةstcgroupdomainsoriginscouponsbloombergclubmedfroganslimitedxn--80aqecdr1aexposedinternationalequipmentbarclaycardxn--q7ce6axn--mgbi4ecexpprotectionassociatesconstructionxn--cck2b3bxn--45q11candroidfoundationישראלxn--mgbca7dzdocliniqueboutiqueengineerxn--qxa6asystemsfirmdalefashionauctionxn--nqv7finfinitirentalsreliancetradingweddingfishinghostinggentingbookingcookingxn--3hcrj9cgraingerxn--czrs0tdemocratsamsungyokohamaxn--h2breg3evexn--nyqy26alundbeckmelbournevacationssolutionsfrontierxn--vermgensberatung-pwbmanagementxn--cg4bkixn--mgb2ddeslincolnhamburgsandvikcoromantblockbusterairforcebarefootxn--4dbrk0ceinvestmentsfeedbackcommunityxn--ngbrxالبحرينdiamondsamsterdamhealthcareredumbrellaxn--mxtq1mxn--2scrj9cagakhanxn--mgbpl2fhкатоликcaravanசிங்கப்பூர்richardlimortgageamericanfamilyxn--fzc2c9e2cscholarshipssaarlandxn--imr513nvlaanderensamsclubgoodyearkitchenஇந்தியாweatherchannelallfinanzxn--kput3iالسعودیۃxn--90aisxn--efvy88hالجزائرxn--mgbaam7a8hexchangejpmorganxn--tiq49xqyjfidelitysecurityxn--mk1bu44cwanggouxn--fiq64bxn--6qq986b3xlxn--mgbbh1a71exn--80ao21amarshallsxn--5tzm5gtravelerspanasoniclatrobeyoutubeaccountantsxn--rhqv96gxn--cckwcxetdanalyticsxn--ygbi2ammxبازاربھارتسوريةorganicfreseniusسورياxn--9krt00axn--qcka1pmcxn--jlq480n2rgdeloittesciencefinancexn--jvr189mxn--30rr7yhomesensehotmailbaseballfootballleclercboehringerxn--q9jyb4cxn--mix082fاليمنهمراهpolitieسودانايرانایرانnetflixyamaxunxn--lgbbat1ad8jcollegestoragecapetowncolognekerrypropertiesxn--mgbgu82axn--ogbpf8flxn--czru2dwhoswhociprianilasallexn--g2xx48cforsalebanamexaudiblexn--vermgensberater-ctbxn--zfr164bericssonvanguardxn--45brj9cindustriestheatremarriottxn--3bst00mcomparexn--mgberp4a5d4a87gcapitaldigitalالمغربbarcelonashangrilaxn--d1alfcalvinkleinwwwcitysapporokawasakinagoyasendaikobekitakyushuyokohamackjp",Vre=621,Gre=625,jU=Il.length,FU=G0.length,BU=new Uint32Array(FU),h0=new Uint32Array(FU),BE=new Int32Array(jU).fill(-1);for(let t=0,e=0;t<jU;t+=1)for(let n=V0[t];n<V0[t+1];n+=1){BU[n]=e;const r=e+G0[n];let a=5381;for(let s=r-1;s>=e;s-=1)a=a*33^FE.charCodeAt(s);h0[n]=a>>>0,G0[n]===1&&FE.charCodeAt(e)===42&&(BE[t]=n),e=r}let go=-1,$E=0,HE=0;function VO(t,e,n,r){if(G0[t]!==r)return!1;const a=BU[t];for(let s=0;s<r;s+=1)if(FE.charCodeAt(a+s)!==e.charCodeAt(n+s))return!1;return!0}function GO(t,e,n,r,a){let s=V0[t],i=V0[t+1];for(;s<i;){const u=s+i>>>1,c=h0[u];if(c<e)s=u+1;else if(c>e)i=u;else{for(let f=u;f>=s&&h0[f]===e;f-=1)if(VO(f,n,r,a))return f;for(let f=u+1;f<i&&h0[f]===e;f+=1)if(VO(f,n,r,a))return f;return-1}}return-1}function KO(t,e,n){let r=e,a=t.length,s=5381;go=-1;for(let u=t.length-1;u>=0;u-=1){const c=t.charCodeAt(u);if(c===46){const f=u+1;let h=GO(r,s>>>0,t,f,a-f);if(h===-1&&(h=BE[r]),h===-1)return go!==-1;r=WO[h],(Il[r]&n)!==0&&(go=r,$E=f,HE=a),a=u,s=5381}else s=s*33^c}let i=GO(r,s>>>0,t,0,a);return i===-1&&(i=BE[r]),i!==-1&&(r=WO[i],(Il[r]&n)!==0&&(go=r,$E=0,HE=a)),go!==-1}function DRe(t,e,n){if(Wre(t,e,n))return;const r=(e.allowPrivateDomains?2:0)|(e.allowIcannDomains?1:0);if(KO(t,Gre,r)){n.isIcann=(Il[go]&1)!==0,n.isPrivate=(Il[go]&2)!==0,n.publicSuffix=t.slice(HE+1);return}if(KO(t,Vre,r)){n.isIcann=(Il[go]&1)!==0,n.isPrivate=(Il[go]&2)!==0,n.publicSuffix=t.slice($E);return}n.isIcann=!1,n.isPrivate=!1;const a=t.lastIndexOf(".");n.publicSuffix=a===-1?t:t.slice(a+1)}const Kre=()=>C.jsxs("div",{className:"hidden h-full w-[17%] min-w-40 max-w-64 shrink-0 flex-col gap-1 border-r border-line p-3 md:flex",children:[C.jsx("div",{className:"mb-3 h-6 w-24 rounded bg-surface-sunken"}),Array.from({length:6}).map((t,e)=>C.jsxs("div",{className:"flex items-center gap-2 py-1.5",children:[C.jsx("div",{className:"size-5 shrink-0 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3.5 flex-1 rounded bg-surface-sunken"})]},e))]}),Yre=()=>C.jsx("div",{className:"min-w-0 flex-1",children:Array.from({length:8}).map((t,e)=>C.jsxs("div",{className:"flex items-start gap-3 border-b border-line py-2 pl-5 pr-4",children:[C.jsx("div",{className:"mt-0.5 size-7 shrink-0 rounded-full bg-surface-sunken"}),C.jsxs("div",{className:"flex-1 space-y-1.5",children:[C.jsxs("div",{className:"flex justify-between gap-2",children:[C.jsx("div",{className:"h-3.5 w-28 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3 w-12 rounded bg-surface-sunken"})]}),C.jsx("div",{className:"h-3.5 w-48 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3 w-full rounded bg-surface-sunken"})]})]},e))}),sk=()=>C.jsxs("div",{className:"flex h-full animate-pulse bg-canvas","aria-hidden":"true",children:[C.jsx(Kre,{}),C.jsx(Yre,{})]}),ok="0591790711f65d5f166274f26481f302de301998",Zre="2026-08-08T10:33:48.430Z",Xre=ok.slice(0,7),Qre=/^[0-9a-f]{40}$/.test(ok),Jre=Qre?`https://github.com/remit-mail/reader/commit/${ok}`:void 0,eae="https://github.com/remit-mail/reader/issues/new";class qE extends Error{constructor(e,n,r){super(e),this.status=n,this.body=r,this.name="ApiError"}status;body}const du=t=>{if(t instanceof qE)return t.status;if(t&&typeof t=="object"){const e=t;if(typeof e.status=="number")return e.status;if(typeof e.statusCode=="number")return e.statusCode}},$U=t=>du(t)!==void 0,uv=t=>{const e=du(t);return e!==void 0&&e>=500&&e<=599},cv=t=>!!(typeof DOMException<"u"&&t instanceof DOMException&&t.name==="AbortError"||t&&typeof t=="object"&&"name"in t&&t.name==="AbortError"),tae=()=>typeof navigator<"u"&&navigator.onLine===!1,HU=t=>cv(t)||$U(t)?!1:t instanceof q_?!0:tae(),nae=t=>!$U(t)&&!cv(t)&&!HU(t),qU=t=>uv(t)||nae(t),rae=t=>t?.softError===!0,WU=(t,e)=>uv(t)?!0:cv(t)||HU(t)?!1:qU(t)?!0:!rae(e),aae=t=>uv(t),WE=new Set;let VU=null,GU=null;const sae=t=>{GU=t},oae=t=>t instanceof Error?t:new Error(KU(t)),KU=t=>t instanceof Error?t.message||t.name:typeof t=="string"?t:t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"?t.message:"An unexpected server error occurred.",iae=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`fatal-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,Kl=(t,e)=>{const n={error:t,message:KU(t),correlationId:iae(),at:Date.now(),recoverable:e?.recoverable??aae(t),stack:t instanceof Error?t.stack:void 0,componentStack:e?.componentStack};VU=n,hae(`Fatal: ${n.message} [${n.correlationId}]`),GU?.recordError(oae(t),{fatal:"true",correlationId:n.correlationId});for(const r of WE)r(n);return n},lae=t=>(WE.add(t),()=>{WE.delete(t)}),uae=()=>VU,cae=20,p0=[],dae=new Set(["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications"]);function fae(t){return typeof t!="string"?!1:dae.has(t.replace(/\.\s*$/,""))}function m0(t){p0.push(t),p0.length>cae&&p0.shift()}function hae(t){m0(t)}function pae(t){return t.map(e=>{if(typeof e=="string")return e;if(e instanceof Error)return`${e.name}: ${e.message}`;try{return JSON.stringify(e)}catch{return String(e)}}).join(" ")}function mae(){const t=console.error.bind(console);console.error=(...e)=>{m0(pae(e)),t(...e)},window.addEventListener("error",e=>{fae(e.message)||(m0(`Uncaught ${e.error instanceof Error?`${e.error.name}: ${e.error.message}`:String(e.message)} (${e.filename}:${e.lineno})`),Kl(e.error??e.message))}),window.addEventListener("unhandledrejection",e=>{const n=e.reason,r=n instanceof Error?`${n.name}: ${n.message}`:String(n);m0(`Unhandled rejection: ${r}`),Kl(n)})}function gae(){return p0.slice()}const vae=8,xc=[];function yae(t){const e=t.split(/[?#]/)[0],n=xc[xc.length-1];n&&n.path===e||(xc.push({path:e,timestamp:new Date().toISOString()}),xc.length>vae&&xc.shift())}function bae(){return xc.slice()}const HS=7500,YO=`
149
149
  … (truncated — the copy action on this screen has the full report)`;function VE(t){return{appShortSha:Xre,appCommitUrl:Jre,appBuildTime:Zre,userAgent:navigator.userAgent,viewport:`${window.innerWidth}×${window.innerHeight}`,timestamp:new Date().toISOString(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,href:window.location.href,recentErrors:gae(),requests:tJ(),routes:bae(),failingRequest:nJ(),errorMessage:t?.errorMessage,stack:t?.stack,componentStack:t?.componentStack,quarantine:t?.quarantine,title:t?.title}}function qS(t){return["```",t,"```"].join(`
150
150
  `)}function YU(t){const e=/T(\d{2}:\d{2}:\d{2})/.exec(t);return e?e[1]:t}function Sae(t){return`- **Version**: ${t.appCommitUrl?`[\`${t.appShortSha}\`](${t.appCommitUrl})`:`\`${t.appShortSha}\``} built ${t.appBuildTime}`}function wae(t){const e=t.status===0?"no response (transport failure)":`${t.status}`;return["## Failing request",`- **Endpoint**: \`${t.path}\``,`- **Method**: ${t.method}`,`- **Status**: ${e}`,`- **Correlation id**: ${t.correlationId??"(none)"}`,""]}function xae(t){return t.length===0?["## Recent API requests","(none)",""]:["## Recent API requests","| Time | Method | Path | Status | Duration | Correlation |","| --- | --- | --- | --- | --- | --- |",...t.map(n=>{const r=n.status===0?"ERR":`${n.status}`;return`| ${YU(n.timestamp)} | ${n.method} | \`${n.path}\` | ${r} | ${n.durationMs}ms | ${n.correlationId??""} |`}),""]}function Cae(t){return t.length===0?["## Navigation trail","(none)",""]:["## Navigation trail",...t.map(n=>`- ${YU(n.timestamp)} \`${n.path}\``),""]}function ZU(t,e){const n=t.recentErrors.length>0?t.recentErrors.map(s=>` - ${s}`).join(`
151
151
  `):" (none)",r=["## Environment",Sae(t),`- **Browser**: ${t.userAgent}`,`- **Viewport**: ${t.viewport}`,`- **Time**: ${t.timestamp} (${t.timezone})`,"","## URL",t.href,""];if(t.errorMessage&&r.push("## Error",t.errorMessage,""),t.failingRequest&&r.push(...wae(t.failingRequest)),t.quarantine){const s=e?.quarantineStructure??t.quarantine.structure;r.push(t.quarantine.head,"",qS(s),"",t.quarantine.disclaimer,"")}const a=e?.stack??t.stack;return a&&r.push("## Stacktrace",qS(a),""),t.componentStack&&r.push("## Component stack",qS(t.componentStack),""),r.push(...xae(t.requests)),r.push(...Cae(t.routes)),r.push("## Recent console errors",n,"","## Steps to reproduce","1. ","","## Expected behaviour","","## Actual behaviour",""),r.join(`
@@ -290,5 +290,5 @@ https://www.w3ctech.com/topic/2226`));let u=n(...i);return u.postcssPlugin=e,u.p
290
290
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),v1.LANG&&v1.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
291
291
  https://www.w3ctech.com/topic/2226`));let u=n(...i);return u.postcssPlugin=e,u.postcssVersion=new XA().version,u}let s;return Object.defineProperty(a,"postcss",{get(){return s||(s=a()),s}}),a.process=function(i,u,c){return zt([a(c)]).process(i,u)},a};zt.stringify=ACe;zt.parse=NCe;zt.fromJSON=TCe;zt.list=MCe;zt.comment=t=>new L$(t);zt.atRule=t=>new U$(t);zt.decl=t=>new P$(t);zt.rule=t=>new z$(t);zt.root=t=>new j$(t);zt.document=t=>new D$(t);zt.CssSyntaxError=ECe;zt.Declaration=P$;zt.Container=kCe;zt.Processor=XA;zt.Document=D$;zt.Comment=L$;zt.Warning=RCe;zt.AtRule=U$;zt.Result=ICe;zt.Input=OCe;zt.Rule=z$;zt.Root=j$;zt.Node=PCe;_Ce.registerPostcss(zt);var DCe=zt;zt.default=zt;const un=Kxe(DCe);un.stringify;un.fromJSON;un.plugin;un.parse;un.list;un.document;un.comment;un.atRule;un.rule;un.decl;un.root;un.CssSyntaxError;un.Declaration;un.Container;un.Processor;un.Document;un.Comment;un.Warning;un.AtRule;un.Result;un.Input;un.Rule;un.Root;un.Node;class QA{constructor(...e){Ea(this,"parentElement",null),Ea(this,"parentNode",null),Ea(this,"ownerDocument"),Ea(this,"firstChild",null),Ea(this,"lastChild",null),Ea(this,"previousSibling",null),Ea(this,"nextSibling",null),Ea(this,"ELEMENT_NODE",1),Ea(this,"TEXT_NODE",3),Ea(this,"nodeType"),Ea(this,"nodeName"),Ea(this,"RRNodeType")}get childNodes(){const e=[];let n=this.firstChild;for(;n;)e.push(n),n=n.nextSibling;return e}contains(e){if(e instanceof QA){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,n){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const JP={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},e9={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Yg={},LCe=()=>!!globalThis.Zone;function JA(t){if(Yg[t])return Yg[t];const e=globalThis[t],n=e.prototype,r=t in JP?JP[t]:void 0,a=!!(r&&r.every(u=>{var c,f;return!!((f=(c=Object.getOwnPropertyDescriptor(n,u))==null?void 0:c.get)!=null&&f.toString().includes("[native code]"))})),s=t in e9?e9[t]:void 0,i=!!(s&&s.every(u=>{var c;return typeof n[u]=="function"&&((c=n[u])==null?void 0:c.toString().includes("[native code]"))}));if(a&&i&&!LCe())return Yg[t]=e.prototype,e.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const c=u.contentWindow;if(!c)return e.prototype;const f=c[t].prototype;return document.body.removeChild(u),f?Yg[t]=f:n}catch{return n}}const eE={};function zo(t,e,n){var r;const a=`${t}.${String(n)}`;if(eE[a])return eE[a].call(e);const s=JA(t),i=(r=Object.getOwnPropertyDescriptor(s,n))==null?void 0:r.get;return i?(eE[a]=i,i.call(e)):e[n]}const tE={};function F$(t,e,n){const r=`${t}.${String(n)}`;if(tE[r])return tE[r].bind(e);const s=JA(t)[n];return typeof s!="function"?e[n]:(tE[r]=s,s.bind(e))}function UCe(t){return zo("Node",t,"ownerDocument")}function zCe(t){return zo("Node",t,"childNodes")}function jCe(t){return zo("Node",t,"parentNode")}function FCe(t){return zo("Node",t,"parentElement")}function BCe(t){return zo("Node",t,"textContent")}function $Ce(t,e){return F$("Node",t,"contains")(e)}function HCe(t){return F$("Node",t,"getRootNode")()}function qCe(t){return!t||!("host"in t)?null:zo("ShadowRoot",t,"host")}function WCe(t){return t.styleSheets}function VCe(t){return!t||!("shadowRoot"in t)?null:zo("Element",t,"shadowRoot")}function GCe(t,e){return zo("Element",t,"querySelector")(e)}function KCe(t,e){return zo("Element",t,"querySelectorAll")(e)}function B$(){return JA("MutationObserver").constructor}function Su(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],a=n(r);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=a,()=>{t[e]=r}}catch{return()=>{}}}const at={ownerDocument:UCe,childNodes:zCe,parentNode:jCe,parentElement:FCe,textContent:BCe,contains:$Ce,getRootNode:HCe,host:qCe,styleSheets:WCe,shadowRoot:VCe,querySelector:GCe,querySelectorAll:KCe,mutationObserver:B$,patch:Su};function Cr(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const kc=`Please stop import mirror directly. Instead of that,\r
292
292
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
293
- or you can use record.mirror to access the mirror instance during recording.`;let t9={map:{},getId(){return console.error(kc),-1},getNode(){return console.error(kc),null},removeNodeFromMap(){console.error(kc)},has(){return console.error(kc),!1},reset(){console.error(kc)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(t9=new Proxy(t9,{get(t,e,n){return e==="map"&&console.error(kc),Reflect.get(t,e,n)}}));function op(t,e,n={}){let r=null,a=0;return function(...s){const i=Date.now();!a&&n.leading===!1&&(a=i);const u=e-(i-a),c=this;u<=0||u>e?(r&&(clearTimeout(r),r=null),a=i,t.apply(c,s)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{a=n.leading===!1?0:Date.now(),r=null,t.apply(c,s)},u))}}function iy(t,e,n,r,a=window){const s=a.Object.getOwnPropertyDescriptor(t,e);return a.Object.defineProperty(t,e,r?n:{set(i){setTimeout(()=>{n.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>iy(t,e,s||{},!0)}let I1=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(I1=()=>new Date().getTime());function $$(t){var e,n,r,a;const s=t.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:s.documentElement.scrollLeft||s?.body&&((e=at.parentElement(s.body))==null?void 0:e.scrollLeft)||((n=s?.body)==null?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:s?.documentElement.scrollTop||s?.body&&((r=at.parentElement(s.body))==null?void 0:r.scrollTop)||((a=s?.body)==null?void 0:a.scrollTop)||0}}function H$(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function q$(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function W$(t){return t?t.nodeType===t.ELEMENT_NODE?t:at.parentElement(t):null}function Er(t,e,n,r){if(!t)return!1;const a=W$(t);if(!a)return!1;try{if(typeof e=="string"){if(a.classList.contains(e)||r&&a.closest("."+e)!==null)return!0}else if(w1(a,e,r))return!0}catch{}return!!(n&&(a.matches(n)||r&&a.closest(n)!==null))}function YCe(t,e){return e.getId(t)!==-1}function nE(t,e,n){return t.tagName==="TITLE"&&n.headTitleMutations?!0:e.getId(t)===Xh}function V$(t,e){if(_h(t))return!1;const n=e.getId(t);if(!e.has(n))return!0;const r=at.parentNode(t);return r&&r.nodeType===t.DOCUMENT_NODE?!1:r?V$(r,e):!0}function o_(t){return!!t.changedTouches}function ZCe(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function G$(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function K$(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function i_(t){return t?t instanceof QA&&"shadowRoot"in t?!!t.shadowRoot:!!at.shadowRoot(t):!1}class XCe{constructor(){we(this,"id",1),we(this,"styleIDMap",new WeakMap),we(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,n){if(this.has(e))return this.getId(e);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Y$(t){var e;let n=null;return"getRootNode"in t&&((e=at.getRootNode(t))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&at.host(at.getRootNode(t))&&(n=at.host(at.getRootNode(t))),n}function QCe(t){let e=t,n;for(;n=Y$(e);)e=n;return e}function JCe(t){const e=at.ownerDocument(t);if(!e)return!1;const n=QCe(t);return at.contains(e,n)}function Z$(t){const e=at.ownerDocument(t);return e?at.contains(e,t)||JCe(t):!1}var Ct=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(Ct||{}),ht=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(ht||{}),zr=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(zr||{}),co=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(co||{}),od=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(od||{}),Ac=(t=>(t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t))(Ac||{}),X$=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(X$||{});function n9(t){return"__ln"in t}class eEe{constructor(){we(this,"length",0),we(this,"head",null),we(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<e;r++)n=n?.next||null;return n}addNode(e){const n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&n9(e.previousSibling)){const r=e.previousSibling.__ln.next;n.next=r,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(e.nextSibling&&n9(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;n.previous=r,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(e){const n=e.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const r9=(t,e)=>`${t}@${e}`;class tEe{constructor(){we(this,"frozen",!1),we(this,"locked",!1),we(this,"texts",[]),we(this,"attributes",[]),we(this,"attributeMap",new WeakMap),we(this,"removes",[]),we(this,"mapRemoves",[]),we(this,"movedMap",{}),we(this,"addedSet",new Set),we(this,"movedSet",new Set),we(this,"droppedSet",new Set),we(this,"removesSubTreeCache",new Set),we(this,"mutationCb"),we(this,"blockClass"),we(this,"blockSelector"),we(this,"maskTextClass"),we(this,"maskTextSelector"),we(this,"inlineStylesheet"),we(this,"maskInputOptions"),we(this,"maskTextFn"),we(this,"maskInputFn"),we(this,"keepIframeSrcFn"),we(this,"recordCanvas"),we(this,"inlineImages"),we(this,"slimDOMOptions"),we(this,"dataURLOptions"),we(this,"doc"),we(this,"mirror"),we(this,"iframeManager"),we(this,"stylesheetManager"),we(this,"shadowDomManager"),we(this,"canvasManager"),we(this,"processedNodeManager"),we(this,"unattachedDoc"),we(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),we(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],n=new Set,r=new eEe,a=c=>{let f=c,h=Xh;for(;h===Xh;)f=f&&f.nextSibling,h=f&&this.mirror.getId(f);return h},s=c=>{const f=at.parentNode(c);if(!f||!Z$(c))return;let h=!1;if(c.nodeType===Node.TEXT_NODE){const S=f.tagName;if(S==="TEXTAREA")return;S==="STYLE"&&this.addedSet.has(f)&&(h=!0)}const m=_h(f)?this.mirror.getId(Y$(c)):this.mirror.getId(f),g=a(c);if(m===-1||g===-1)return r.addNode(c);const y=Lc(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:S=>{G$(S,this.mirror)&&this.iframeManager.addIframe(S),K$(S,this.mirror)&&this.stylesheetManager.trackLinkElement(S),i_(c)&&this.shadowDomManager.addShadowRoot(at.shadowRoot(c),this.doc)},onIframeLoad:(S,w)=>{this.iframeManager.attachIframe(S,w),this.shadowDomManager.observeAttachShadow(S)},onStylesheetLoad:(S,w)=>{this.stylesheetManager.attachLinkElement(S,w)},cssCaptured:h});y&&(e.push({parentId:m,nextId:g,node:y}),n.add(y.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)a9(this.removesSubTreeCache,c,this.mirror)&&!this.movedSet.has(at.parentNode(c))||s(c);for(const c of this.addedSet)!s9(this.droppedSet,c)&&!a9(this.removesSubTreeCache,c,this.mirror)||s9(this.movedSet,c)?s(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const f=this.mirror.getId(at.parentNode(i.value)),h=a(i.value);f!==-1&&h!==-1&&(c=i)}if(!c){let f=r.tail;for(;f;){const h=f;if(f=f.previous,h){const m=this.mirror.getId(at.parentNode(h.value));if(a(h.value)===-1)continue;if(m!==-1){c=h;break}else{const y=h.value,S=at.parentNode(y);if(S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const w=at.host(S);if(this.mirror.getId(w)!==-1){c=h;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),s(c.value)}const u={texts:this.texts.map(c=>{const f=c.node,h=at.parentNode(f);return h&&h.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(h),{id:this.mirror.getId(f),value:c.value}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:f}=c;if(typeof f.style=="string"){const h=JSON.stringify(c.styleDiff),m=JSON.stringify(c._unchangedStyles);h.length<f.style.length&&(h+m).split("var(").length===f.style.split("var(").length&&(f.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:f}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:e};!u.texts.length&&!u.attributes.length&&!u.removes.length&&!u.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(u))}),we(this,"genTextAreaValueMutation",e=>{let n=this.attributeMap.get(e);n||(n={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e,n));const r=Array.from(at.childNodes(e),a=>at.textContent(a)||"").join("");n.attributes.value=y1({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:b1(e),value:r,maskInputFn:this.maskInputFn})}),we(this,"processMutation",e=>{if(!nE(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const n=at.textContent(e.target);!Er(e.target,this.blockClass,this.blockSelector,!1)&&n!==e.oldValue&&this.texts.push({value:SB(e.target,this.maskTextClass,this.maskTextSelector,!0)&&n?this.maskTextFn?this.maskTextFn(n,W$(e.target)):n.replace(/[\S]/g,"*"):n,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,a=e.target.getAttribute(r);if(r==="value"){const i=b1(n);a=y1({element:n,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:i,value:a,maskInputFn:this.maskInputFn})}if(Er(e.target,this.blockClass,this.blockSelector,!1)||a===e.oldValue)return;let s=this.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(a))if(!n.contentDocument)r="rr_src";else return;if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),r==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!bB(n.tagName,r))if(s.attributes[r]=yB(this.doc,nu(n.tagName),nu(r),a),r==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");e.oldValue&&i.setAttribute("style",e.oldValue);for(const u of Array.from(n.style)){const c=n.style.getPropertyValue(u),f=n.style.getPropertyPriority(u);c!==i.style.getPropertyValue(u)||f!==i.style.getPropertyPriority(u)?f===""?s.styleDiff[u]=c:s.styleDiff[u]=[c,f]:s._unchangedStyles[u]=[c,f]}for(const u of Array.from(i.style))n.style.getPropertyValue(u)===""&&(s.styleDiff[u]=!1)}else r==="open"&&n.tagName==="DIALOG"&&(n.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal");break}case"childList":{if(Er(e.target,this.blockClass,this.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(n=>this.genAdds(n,e.target)),e.removedNodes.forEach(n=>{const r=this.mirror.getId(n),a=_h(e.target)?this.mirror.getId(at.host(e.target)):this.mirror.getId(e.target);Er(e.target,this.blockClass,this.blockSelector,!1)||nE(n,this.mirror,this.slimDOMOptions)||!YCe(n,this.mirror)||(this.addedSet.has(n)?(l_(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(e.target)&&r===-1||V$(e.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[r9(r,a)]?l_(this.movedSet,n):(this.removes.push({parentId:a,id:r,isShadow:_h(e.target)&&kh(e.target)?!0:void 0}),nEe(n,this.removesSubTreeCache))),this.mapRemoves.push(n))});break}}}),we(this,"genAdds",(e,n)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(nE(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[r9(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Er(e,this.blockClass,this.blockSelector,!1)||(at.childNodes(e).forEach(r=>this.genAdds(r)),i_(e)&&at.childNodes(at.shadowRoot(e)).forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=e[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function l_(t,e){t.delete(e),at.childNodes(e).forEach(n=>l_(t,n))}function nEe(t,e){const n=[t];for(;n.length;){const r=n.pop();e.has(r)||(e.add(r),at.childNodes(r).forEach(a=>n.push(a)))}}function a9(t,e,n){return t.size===0?!1:rEe(t,e)}function rEe(t,e,n){const r=at.parentNode(e);return r?t.has(r):!1}function s9(t,e){return t.size===0?!1:Q$(t,e)}function Q$(t,e){const n=at.parentNode(e);return n?t.has(n)?!0:Q$(t,n):!1}let Ah;function aEe(t){Ah=t}function sEe(){Ah=void 0}const yt=t=>Ah?(...n)=>{try{return t(...n)}catch(r){if(Ah&&Ah(r)===!0)return;throw r}}:t,Dl=[];function Ip(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function J$(t,e){const n=new tEe;Dl.push(n),n.init(t);const r=new(B$())(yt(n.processMutations.bind(n)));return r.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function oEe({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(e.mousemove===!1)return()=>{};const a=typeof e.mousemove=="number"?e.mousemove:50,s=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let i=[],u;const c=op(yt(m=>{const g=Date.now()-u;t(i.map(y=>(y.timeOffset-=g,y)),m),i=[],u=null}),s),f=yt(op(yt(m=>{const g=Ip(m),{clientX:y,clientY:S}=o_(m)?m.changedTouches[0]:m;u||(u=I1()),i.push({x:y,y:S,id:r.getId(g),timeOffset:I1()-u}),c(typeof DragEvent<"u"&&m instanceof DragEvent?ht.Drag:m instanceof MouseEvent?ht.MouseMove:ht.TouchMove)}),a,{trailing:!1})),h=[Cr("mousemove",f,n),Cr("touchmove",f,n),Cr("drag",f,n)];return yt(()=>{h.forEach(m=>m())})}function iEe({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const i=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[];let c=null;const f=h=>m=>{const g=Ip(m);if(Er(g,r,a,!0))return;let y=null,S=h;if("pointerType"in m){switch(m.pointerType){case"mouse":y=co.Mouse;break;case"touch":y=co.Touch;break;case"pen":y=co.Pen;break}y===co.Touch?zr[h]===zr.MouseDown?S="TouchStart":zr[h]===zr.MouseUp&&(S="TouchEnd"):co.Pen}else o_(m)&&(y=co.Touch);y!==null?(c=y,(S.startsWith("Touch")&&y===co.Touch||S.startsWith("Mouse")&&y===co.Mouse)&&(y=null)):zr[h]===zr.Click&&(y=c,c=null);const w=o_(m)?m.changedTouches[0]:m;if(!w)return;const x=n.getId(g),{clientX:E,clientY:k}=w;yt(t)({type:zr[S],id:x,x:E,y:k,...y!==null&&{pointerType:y}})};return Object.keys(zr).filter(h=>Number.isNaN(Number(h))&&!h.endsWith("_Departed")&&i[h]!==!1).forEach(h=>{let m=nu(h);const g=f(h);if(window.PointerEvent)switch(zr[h]){case zr.MouseDown:case zr.MouseUp:m=m.replace("mouse","pointer");break;case zr.TouchStart:case zr.TouchEnd:return}u.push(Cr(m,g,e))}),yt(()=>{u.forEach(h=>h())})}function eH({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,sampling:s}){const i=yt(op(yt(u=>{const c=Ip(u);if(!c||Er(c,r,a,!0))return;const f=n.getId(c);if(c===e&&e.defaultView){const h=$$(e.defaultView);t({id:f,x:h.left,y:h.top})}else t({id:f,x:c.scrollLeft,y:c.scrollTop})}),s.scroll||100));return Cr("scroll",i,e)}function lEe({viewportResizeCb:t},{win:e}){let n=-1,r=-1;const a=yt(op(yt(()=>{const s=H$(),i=q$();(n!==s||r!==i)&&(t({width:Number(i),height:Number(s)}),n=s,r=i)}),200));return Cr("resize",a,e)}const uEe=["INPUT","TEXTAREA","SELECT"],o9=new WeakMap;function cEe({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,ignoreClass:s,ignoreSelector:i,maskInputOptions:u,maskInputFn:c,sampling:f,userTriggeredOnInput:h}){function m(k){let A=Ip(k);const R=k.isTrusted,N=A&&A.tagName;if(A&&N==="OPTION"&&(A=at.parentElement(A)),!A||!N||uEe.indexOf(N)<0||Er(A,r,a,!0)||A.classList.contains(s)||i&&A.matches(i))return;let O=A.value,I=!1;const P=b1(A)||"";P==="radio"||P==="checkbox"?I=A.checked:(u[N.toLowerCase()]||u[P])&&(O=y1({element:A,maskInputOptions:u,tagName:N,type:P,value:O,maskInputFn:c})),g(A,h?{text:O,isChecked:I,userTriggered:R}:{text:O,isChecked:I});const U=A.name;P==="radio"&&U&&I&&e.querySelectorAll(`input[type="radio"][name="${U}"]`).forEach(H=>{if(H!==A){const z=H.value;g(H,h?{text:z,isChecked:!I,userTriggered:!1}:{text:z,isChecked:!I})}})}function g(k,A){const R=o9.get(k);if(!R||R.text!==A.text||R.isChecked!==A.isChecked){o9.set(k,A);const N=n.getId(k);yt(t)({...A,id:N})}}const S=(f.input==="last"?["change"]:["input","change"]).map(k=>Cr(k,yt(m),e)),w=e.defaultView;if(!w)return()=>{S.forEach(k=>k())};const x=w.Object.getOwnPropertyDescriptor(w.HTMLInputElement.prototype,"value"),E=[[w.HTMLInputElement.prototype,"value"],[w.HTMLInputElement.prototype,"checked"],[w.HTMLSelectElement.prototype,"value"],[w.HTMLTextAreaElement.prototype,"value"],[w.HTMLSelectElement.prototype,"selectedIndex"],[w.HTMLOptionElement.prototype,"selected"]];return x&&x.set&&S.push(...E.map(k=>iy(k[0],k[1],{set(){yt(m)({target:this,isTrusted:!1})}},!1,w))),yt(()=>{S.forEach(k=>k())})}function O1(t){const e=[];function n(r,a){if(Zg("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Zg("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Zg("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Zg("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);a.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);a.unshift(i)}return a}return n(t,e)}function ki(t,e,n){let r,a;return t?(t.ownerNode?r=e.getId(t.ownerNode):a=n.getId(t),{styleId:a,id:r}):{}}function dEe({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:yt((h,m,g)=>{const[y,S]=g,{id:w,styleId:x}=ki(m,e,n.styleMirror);return(w&&w!==-1||x&&x!==-1)&&t({id:w,styleId:x,adds:[{rule:y,index:S}]}),h.apply(m,g)})}),r.CSSStyleSheet.prototype.addRule=function(h,m,g=this.cssRules.length){const y=`${h} { ${m} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[y,g])};const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:yt((h,m,g)=>{const[y]=g,{id:S,styleId:w}=ki(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,removes:[{index:y}]}),h.apply(m,g)})}),r.CSSStyleSheet.prototype.removeRule=function(h){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:yt((h,m,g)=>{const[y]=g,{id:S,styleId:w}=ki(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,replace:y}),h.apply(m,g)})}));let u;r.CSSStyleSheet.prototype.replaceSync&&(u=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:yt((h,m,g)=>{const[y]=g,{id:S,styleId:w}=ki(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,replaceSync:y}),h.apply(m,g)})}));const c={};Xg("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Xg("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Xg("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Xg("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const f={};return Object.entries(c).forEach(([h,m])=>{f[h]={insertRule:m.prototype.insertRule,deleteRule:m.prototype.deleteRule},m.prototype.insertRule=new Proxy(f[h].insertRule,{apply:yt((g,y,S)=>{const[w,x]=S,{id:E,styleId:k}=ki(y.parentStyleSheet,e,n.styleMirror);return(E&&E!==-1||k&&k!==-1)&&t({id:E,styleId:k,adds:[{rule:w,index:[...O1(y),x||0]}]}),g.apply(y,S)})}),m.prototype.deleteRule=new Proxy(f[h].deleteRule,{apply:yt((g,y,S)=>{const[w]=S,{id:x,styleId:E}=ki(y.parentStyleSheet,e,n.styleMirror);return(x&&x!==-1||E&&E!==-1)&&t({id:x,styleId:E,removes:[{index:[...O1(y),w]}]}),g.apply(y,S)})})}),yt(()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),u&&(r.CSSStyleSheet.prototype.replaceSync=u),Object.entries(c).forEach(([h,m])=>{m.prototype.insertRule=f[h].insertRule,m.prototype.deleteRule=f[h].deleteRule})})}function tH({mirror:t,stylesheetManager:e},n){var r,a,s;let i=null;n.nodeName==="#document"?i=t.getId(n):i=t.getId(at.host(n));const u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(a=n.ownerDocument)==null?void 0:a.defaultView)==null?void 0:s.ShadowRoot,c=u?.prototype?Object.getOwnPropertyDescriptor(u?.prototype,"adoptedStyleSheets"):void 0;return i===null||i===-1||!u||!c?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var f;return(f=c.get)==null?void 0:f.call(this)},set(f){var h;const m=(h=c.set)==null?void 0:h.call(this,f);if(i!==null&&i!==-1)try{e.adoptStyleSheets(f,i)}catch{}return m}}),yt(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function fEe({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){const s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:yt((u,c,f)=>{var h;const[m,g,y]=f;if(n.has(m))return s.apply(c,[m,g,y]);const{id:S,styleId:w}=ki((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,r.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,set:{property:m,value:g,priority:y},index:O1(c.parentRule)}),u.apply(c,f)})});const i=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:yt((u,c,f)=>{var h;const[m]=f;if(n.has(m))return i.apply(c,[m]);const{id:g,styleId:y}=ki((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,r.styleMirror);return(g&&g!==-1||y&&y!==-1)&&t({id:g,styleId:y,remove:{property:m},index:O1(c.parentRule)}),u.apply(c,f)})}),yt(()=>{a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=i})}function hEe({mediaInteractionCb:t,blockClass:e,blockSelector:n,mirror:r,sampling:a,doc:s}){const i=yt(c=>op(yt(f=>{const h=Ip(f);if(!h||Er(h,e,n,!0))return;const{currentTime:m,volume:g,muted:y,playbackRate:S,loop:w}=h;t({type:c,id:r.getId(h),currentTime:m,volume:g,muted:y,playbackRate:S,loop:w})}),a.media||500)),u=[Cr("play",i(Ac.Play),s),Cr("pause",i(Ac.Pause),s),Cr("seeked",i(Ac.Seeked),s),Cr("volumechange",i(Ac.VolumeChange),s),Cr("ratechange",i(Ac.RateChange),s)];return yt(()=>{u.forEach(c=>c())})}function pEe({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],a=new WeakMap,s=n.FontFace;n.FontFace=function(c,f,h){const m=new s(c,f,h);return a.set(m,{family:c,buffer:typeof f!="string",descriptors:h,fontSource:typeof f=="string"?f:JSON.stringify(Array.from(new Uint8Array(f)))}),m};const i=Su(e.fonts,"add",function(u){return function(c){return setTimeout(yt(()=>{const f=a.get(c);f&&(t(f),a.delete(c))}),0),u.apply(this,[c])}});return r.push(()=>{n.FontFace=s}),r.push(i),yt(()=>{r.forEach(u=>u())})}function mEe(t){const{doc:e,mirror:n,blockClass:r,blockSelector:a,selectionCb:s}=t;let i=!0;const u=yt(()=>{const c=e.getSelection();if(!c||i&&c?.isCollapsed)return;i=c.isCollapsed||!1;const f=[],h=c.rangeCount||0;for(let m=0;m<h;m++){const g=c.getRangeAt(m),{startContainer:y,startOffset:S,endContainer:w,endOffset:x}=g;Er(y,r,a,!0)||Er(w,r,a,!0)||f.push({start:n.getId(y),startOffset:S,end:n.getId(w),endOffset:x})}s({ranges:f})});return u(),Cr("selectionchange",u)}function gEe({doc:t,customElementCb:e}){const n=t.defaultView;return!n||!n.customElements?()=>{}:Su(n.customElements,"define",function(a){return function(s,i,u){try{e({define:{name:s}})}catch{console.warn(`Custom element callback failed for ${s}`)}return a.apply(this,[s,i,u])}})}function vEe(t,e){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:a,scrollCb:s,viewportResizeCb:i,inputCb:u,mediaInteractionCb:c,styleSheetRuleCb:f,styleDeclarationCb:h,canvasMutationCb:m,fontCb:g,selectionCb:y,customElementCb:S}=t;t.mutationCb=(...w)=>{e.mutation&&e.mutation(...w),n(...w)},t.mousemoveCb=(...w)=>{e.mousemove&&e.mousemove(...w),r(...w)},t.mouseInteractionCb=(...w)=>{e.mouseInteraction&&e.mouseInteraction(...w),a(...w)},t.scrollCb=(...w)=>{e.scroll&&e.scroll(...w),s(...w)},t.viewportResizeCb=(...w)=>{e.viewportResize&&e.viewportResize(...w),i(...w)},t.inputCb=(...w)=>{e.input&&e.input(...w),u(...w)},t.mediaInteractionCb=(...w)=>{e.mediaInteaction&&e.mediaInteaction(...w),c(...w)},t.styleSheetRuleCb=(...w)=>{e.styleSheetRule&&e.styleSheetRule(...w),f(...w)},t.styleDeclarationCb=(...w)=>{e.styleDeclaration&&e.styleDeclaration(...w),h(...w)},t.canvasMutationCb=(...w)=>{e.canvasMutation&&e.canvasMutation(...w),m(...w)},t.fontCb=(...w)=>{e.font&&e.font(...w),g(...w)},t.selectionCb=(...w)=>{e.selection&&e.selection(...w),y(...w)},t.customElementCb=(...w)=>{e.customElement&&e.customElement(...w),S(...w)}}function yEe(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};vEe(t,e);let r;t.recordDOM&&(r=J$(t,t.doc));const a=oEe(t),s=iEe(t),i=eH(t),u=lEe(t,{win:n}),c=cEe(t),f=hEe(t);let h=()=>{},m=()=>{},g=()=>{},y=()=>{};t.recordDOM&&(h=dEe(t,{win:n}),m=tH(t,t.doc),g=fEe(t,{win:n}),t.collectFonts&&(y=pEe(t)));const S=mEe(t),w=gEe(t),x=[];for(const E of t.plugins)x.push(E.observer(E.callback,n,E.options));return yt(()=>{Dl.forEach(E=>E.reset()),r?.disconnect(),a(),s(),i(),u(),c(),f(),h(),m(),g(),y(),S(),w(),x.forEach(E=>E())})}function Zg(t){return typeof window[t]<"u"}function Xg(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class i9{constructor(e){we(this,"iframeIdToRemoteIdMap",new WeakMap),we(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,n,r,a){const s=r||this.getIdToRemoteIdMap(e),i=a||this.getRemoteIdToIdMap(e);let u=s.get(n);return u||(u=this.generateIdFn(),s.set(n,u),i.set(u,n)),u}getIds(e,n){const r=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return n.map(s=>this.getId(e,s,r,a))}getRemoteId(e,n,r){const a=r||this.getRemoteIdToIdMap(e);if(typeof n!="number")return n;const s=a.get(n);return s||-1}getRemoteIds(e,n){const r=this.getRemoteIdToIdMap(e);return n.map(a=>this.getRemoteId(e,a,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let n=this.iframeIdToRemoteIdMap.get(e);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(e,n)),n}getRemoteIdToIdMap(e){let n=this.iframeRemoteIdToIdMap.get(e);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(e,n)),n}}class bEe{constructor(e){we(this,"iframes",new WeakMap),we(this,"crossOriginIframeMap",new WeakMap),we(this,"crossOriginIframeMirror",new i9(vB)),we(this,"crossOriginIframeStyleMirror"),we(this,"crossOriginIframeRootIdMap",new WeakMap),we(this,"mirror"),we(this,"mutationCb"),we(this,"wrappedEmit"),we(this,"loadListener"),we(this,"stylesheetManager"),we(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new i9(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,n){var r,a;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((r=e.contentWindow)==null||r.addEventListener("message",this.handleMessage.bind(this))),(a=this.loadListener)==null||a.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const n=e;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!e.source)return;const a=this.crossOriginIframeMap.get(e.source);if(!a)return;const s=this.transformCrossOriginEvent(a,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(e,n){var r;switch(n.type){case Ct.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(n.data.node,e);const a=n.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(n.data.node,a),{timestamp:n.timestamp,type:Ct.IncrementalSnapshot,data:{source:ht.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ct.Meta:case Ct.Load:case Ct.DomContentLoaded:return!1;case Ct.Plugin:return n;case Ct.Custom:return this.replaceIds(n.data.payload,e,["id","parentId","previousId","nextId"]),n;case Ct.IncrementalSnapshot:switch(n.data.source){case ht.Mutation:return n.data.adds.forEach(a=>{this.replaceIds(a,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,e);const s=this.crossOriginIframeRootIdMap.get(e);s&&this.patchRootIdOnNode(a.node,s)}),n.data.removes.forEach(a=>{this.replaceIds(a,e,["parentId","id"])}),n.data.attributes.forEach(a=>{this.replaceIds(a,e,["id"])}),n.data.texts.forEach(a=>{this.replaceIds(a,e,["id"])}),n;case ht.Drag:case ht.TouchMove:case ht.MouseMove:return n.data.positions.forEach(a=>{this.replaceIds(a,e,["id"])}),n;case ht.ViewportResize:return!1;case ht.MediaInteraction:case ht.MouseInteraction:case ht.Scroll:case ht.CanvasMutation:case ht.Input:return this.replaceIds(n.data,e,["id"]),n;case ht.StyleSheetRule:case ht.StyleDeclaration:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleId"]),n;case ht.Font:return n;case ht.Selection:return n.data.ranges.forEach(a=>{this.replaceIds(a,e,["start","end"])}),n;case ht.AdoptedStyleSheet:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleIds"]),(r=n.data.styles)==null||r.forEach(a=>{this.replaceStyleIds(a,e,["styleId"])}),n}}return!1}replace(e,n,r,a){for(const s of a)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=e.getIds(r,n[s]):n[s]=e.getId(r,n[s]));return n}replaceIds(e,n,r){return this.replace(this.crossOriginIframeMirror,e,n,r)}replaceStyleIds(e,n,r){return this.replace(this.crossOriginIframeStyleMirror,e,n,r)}replaceIdOnNode(e,n){this.replaceIds(e,n,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(e,n){e.type!==X$.Document&&!e.rootId&&(e.rootId=n),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class SEe{constructor(e){we(this,"shadowDoms",new WeakSet),we(this,"mutationCb"),we(this,"scrollCb"),we(this,"bypassOptions"),we(this,"mirror"),we(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,n){if(!kh(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=J$({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(eH({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(at.host(e))),this.restoreHandlers.push(tH({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,n){const r=this;this.restoreHandlers.push(Su(e.prototype,"attachShadow",function(a){return function(s){const i=a.call(this,s),u=at.shadowRoot(this);return u&&Z$(this)&&r.addShadowRoot(u,n),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var Uc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wEe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Qg=0;Qg<Uc.length;Qg++)wEe[Uc.charCodeAt(Qg)]=Qg;var xEe=function(t){var e=new Uint8Array(t),n,r=e.length,a="";for(n=0;n<r;n+=3)a+=Uc[e[n]>>2],a+=Uc[(e[n]&3)<<4|e[n+1]>>4],a+=Uc[(e[n+1]&15)<<2|e[n+2]>>6],a+=Uc[e[n+2]&63];return r%3===2?a=a.substring(0,a.length-1)+"=":r%3===1&&(a=a.substring(0,a.length-2)+"=="),a};const l9=new Map;function CEe(t,e){let n=l9.get(t);return n||(n=new Map,l9.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}const nH=(t,e,n)=>{if(!t||!(aH(t,e)||typeof t=="object"))return;const r=t.constructor.name,a=CEe(n,r);let s=a.indexOf(t);return s===-1&&(s=a.length,a.push(t)),s};function O0(t,e,n){if(t instanceof Array)return t.map(r=>O0(r,e,n));if(t===null)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){const r=t.constructor.name,a=xEe(t);return{rr_type:r,base64:a}}else{if(t instanceof DataView)return{rr_type:t.constructor.name,args:[O0(t.buffer,e,n),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){const r=t.constructor.name,{src:a}=t;return{rr_type:r,src:a}}else if(t instanceof HTMLCanvasElement){const r="HTMLImageElement",a=t.toDataURL();return{rr_type:r,src:a}}else{if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[O0(t.data,e,n),t.width,t.height]};if(aH(t,e)||typeof t=="object"){const r=t.constructor.name,a=nH(t,e,n);return{rr_type:r,index:a}}}}return t}const rH=(t,e,n)=>t.map(r=>O0(r,e,n)),aH=(t,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(a=>typeof e[a]=="function").find(a=>t instanceof e[a]);function EEe(t,e,n,r){const a=[],s=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const i of s)try{if(typeof e.CanvasRenderingContext2D.prototype[i]!="function")continue;const u=Su(e.CanvasRenderingContext2D.prototype,i,function(c){return function(...f){return Er(this.canvas,n,r,!0)||setTimeout(()=>{const h=rH(f,e,this);t(this.canvas,{type:od["2D"],property:i,args:h})},0),c.apply(this,f)}});a.push(u)}catch{const u=iy(e.CanvasRenderingContext2D.prototype,i,{set(c){t(this.canvas,{type:od["2D"],property:i,args:[c],setter:!0})}});a.push(u)}return()=>{a.forEach(i=>i())}}function _Ee(t){return t==="experimental-webgl"?"webgl":t}function u9(t,e,n,r){const a=[];try{const s=Su(t.HTMLCanvasElement.prototype,"getContext",function(i){return function(u,...c){if(!Er(this,e,n,!0)){const f=_Ee(u);if("__context"in this||(this.__context=f),r&&["webgl","webgl2"].includes(f))if(c[0]&&typeof c[0]=="object"){const h=c[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return i.apply(this,[u,...c])}});a.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(s=>s())}}function c9(t,e,n,r,a,s){const i=[],u=Object.getOwnPropertyNames(t);for(const c of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if(typeof t[c]!="function")continue;const f=Su(t,c,function(h){return function(...m){const g=h.apply(this,m);if(nH(g,s,this),"tagName"in this.canvas&&!Er(this.canvas,r,a,!0)){const y=rH(m,s,this),S={type:e,property:c,args:y};n(this.canvas,S)}return g}});i.push(f)}catch{const f=iy(t,c,{set(h){n(this.canvas,{type:e,property:c,args:[h],setter:!0})}});i.push(f)}return i}function kEe(t,e,n,r){const a=[];return a.push(...c9(e.WebGLRenderingContext.prototype,od.WebGL,t,n,r,e)),typeof e.WebGL2RenderingContext<"u"&&a.push(...c9(e.WebGL2RenderingContext.prototype,od.WebGL2,t,n,r,e)),()=>{a.forEach(s=>s())}}const sH="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",AEe=t=>Uint8Array.from(atob(t),e=>e.charCodeAt(0)),d9=typeof window<"u"&&window.Blob&&new Blob([AEe(sH)],{type:"text/javascript;charset=utf-8"});function TEe(t){let e;try{if(e=d9&&(window.URL||window.webkitURL).createObjectURL(d9),!e)throw"";const n=new Worker(e,{name:t?.name});return n.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(e)}),n}catch{return new Worker("data:text/javascript;base64,"+sH,{name:t?.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e)}}class REe{constructor(e){we(this,"pendingCanvasMutations",new Map),we(this,"rafStamps",{latestId:0,invokeId:null}),we(this,"mirror"),we(this,"mutationCb"),we(this,"resetObservers"),we(this,"frozen",!1),we(this,"locked",!1),we(this,"processMutation",(c,f)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(c)||this.pendingCanvasMutations.set(c,[]),this.pendingCanvasMutations.get(c).push(f)});const{sampling:n="all",win:r,blockClass:a,blockSelector:s,recordCanvas:i,dataURLOptions:u}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&n==="all"&&this.initCanvasMutationObserver(r,a,s),i&&typeof n=="number"&&this.initCanvasFPSObserver(n,r,a,s,{dataURLOptions:u})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,n,r,a,s){const i=u9(n,r,a,!0),u=new Map,c=new TEe;c.onmessage=S=>{const{id:w}=S.data;if(u.set(w,!1),!("base64"in S.data))return;const{base64:x,type:E,width:k,height:A}=S.data;this.mutationCb({id:w,type:od["2D"],commands:[{property:"clearRect",args:[0,0,k,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:x}],type:E}]},0,0]}]})};const f=1e3/e;let h=0,m;const g=()=>{const S=[];return n.document.querySelectorAll("canvas").forEach(w=>{Er(w,r,a,!0)||S.push(w)}),S},y=S=>{if(h&&S-h<f){m=requestAnimationFrame(y);return}h=S,g().forEach(async w=>{var x;const E=this.mirror.getId(w);if(u.get(E)||w.width===0||w.height===0)return;if(u.set(E,!0),["webgl","webgl2"].includes(w.__context)){const A=w.getContext(w.__context);((x=A?.getContextAttributes())==null?void 0:x.preserveDrawingBuffer)===!1&&A.clear(A.COLOR_BUFFER_BIT)}const k=await createImageBitmap(w);c.postMessage({id:E,bitmap:k,width:w.width,height:w.height,dataURLOptions:s.dataURLOptions},[k])}),m=requestAnimationFrame(y)};m=requestAnimationFrame(y),this.resetObservers=()=>{i(),cancelAnimationFrame(m)}}initCanvasMutationObserver(e,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=u9(e,n,r,!1),s=EEe(this.processMutation.bind(this),e,n,r),i=kEe(this.processMutation.bind(this),e,n,r);this.resetObservers=()=>{a(),s(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=n=>{this.rafStamps.latestId=n,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||n===-1)return;const a=r.map(i=>{const{type:u,...c}=i;return c}),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:a}),this.pendingCanvasMutations.delete(e)}}class IEe{constructor(e){we(this,"trackedLinkElements",new WeakSet),we(this,"mutationCb"),we(this,"adoptedStyleSheetCb"),we(this,"styleMirror",new XCe),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,n){if(e.length===0)return;const r={id:n,styleIds:[]},a=[];for(const s of e){let i;this.styleMirror.has(s)?i=this.styleMirror.getId(s):(i=this.styleMirror.add(s),a.push({styleId:i,rules:Array.from(s.rules||CSSRule,(u,c)=>({rule:pB(u,s.href),index:c}))})),r.styleIds.push(i)}a.length>0&&(r.styles=a),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class OEe{constructor(){we(this,"nodeMap",new WeakMap),we(this,"active",!1)}inOtherBuffer(e,n){const r=this.nodeMap.get(e);return r&&Array.from(r).some(a=>a!==n)}add(e,n){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(n))}destroy(){}}let vn,N0,rE,N1=!1;try{if(Array.from([1],t=>t*2)[0]!==2){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=((pP=t.contentWindow)==null?void 0:pP.Array.from)||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const Ha=MSe();function Op(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:a="rr-block",blockSelector:s=null,ignoreClass:i="rr-ignore",ignoreSelector:u=null,maskTextClass:c="rr-mask",maskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskInputFn:S,maskTextFn:w,hooks:x,packFn:E,sampling:k={},dataURLOptions:A={},mousemoveWait:R,recordDOM:N=!0,recordCanvas:O=!1,recordCrossOriginIframes:I=!1,recordAfter:P=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:U=!1,collectFonts:H=!1,inlineImages:z=!1,plugins:j,keepIframeSrcFn:$=()=>!1,ignoreCSSAttributes:Z=new Set([]),errorHandler:J}=t;aEe(J);const q=I?window.parent===window:!0;let X=!1;if(!q)try{window.parent.document&&(X=!1)}catch{X=!0}if(q&&!e)throw new Error("emit function is required");if(!q&&!X)return()=>{};R!==void 0&&k.mousemove===void 0&&(k.mousemove=R),Ha.reset();const ae=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:g!==void 0?g:{password:!0},he=wB(y);ZCe();let xe,D=0;const Y=Ce=>{for(const mt of j||[])mt.eventProcessor&&(Ce=mt.eventProcessor(Ce));return E&&!X&&(Ce=E(Ce)),Ce};vn=(Ce,mt)=>{var Ee;const Be=Ce;if(Be.timestamp=I1(),(Ee=Dl[0])!=null&&Ee.isFrozen()&&Be.type!==Ct.FullSnapshot&&!(Be.type===Ct.IncrementalSnapshot&&Be.data.source===ht.Mutation)&&Dl.forEach($e=>$e.unfreeze()),q)e?.(Y(Be),mt);else if(X){const $e={type:"rrweb",event:Y(Be),origin:window.location.origin,isCheckout:mt};window.parent.postMessage($e,"*")}if(Be.type===Ct.FullSnapshot)xe=Be,D=0;else if(Be.type===Ct.IncrementalSnapshot){if(Be.data.source===ht.Mutation&&Be.data.isAttachIframe)return;D++;const $e=r&&D>=r,qe=n&&Be.timestamp-xe.timestamp>n;($e||qe)&&N0(!0)}};const G=Ce=>{vn({type:Ct.IncrementalSnapshot,data:{source:ht.Mutation,...Ce}})},Q=Ce=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.Scroll,...Ce}}),V=Ce=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.CanvasMutation,...Ce}}),ue=Ce=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.AdoptedStyleSheet,...Ce}}),oe=new IEe({mutationCb:G,adoptedStyleSheetCb:ue}),ce=new bEe({mirror:Ha,mutationCb:G,stylesheetManager:oe,recordCrossOriginIframes:I,wrappedEmit:vn});for(const Ce of j||[])Ce.getMirror&&Ce.getMirror({nodeMirror:Ha,crossOriginIframeMirror:ce.crossOriginIframeMirror,crossOriginIframeStyleMirror:ce.crossOriginIframeStyleMirror});const be=new OEe;rE=new REe({recordCanvas:O,mutationCb:V,win:window,blockClass:a,blockSelector:s,mirror:Ha,sampling:k.canvas,dataURLOptions:A});const Ge=new SEe({mutationCb:G,scrollCb:Q,bypassOptions:{blockClass:a,blockSelector:s,maskTextClass:c,maskTextSelector:f,inlineStylesheet:h,maskInputOptions:ae,dataURLOptions:A,maskTextFn:w,maskInputFn:S,recordCanvas:O,inlineImages:z,sampling:k,slimDOMOptions:he,iframeManager:ce,stylesheetManager:oe,canvasManager:rE,keepIframeSrcFn:$,processedNodeManager:be},mirror:Ha});N0=(Ce=!1)=>{if(!N)return;vn({type:Ct.Meta,data:{href:window.location.href,width:q$(),height:H$()}},Ce),oe.reset(),Ge.init(),Dl.forEach(Ee=>Ee.lock());const mt=rwe(document,{mirror:Ha,blockClass:a,blockSelector:s,maskTextClass:c,maskTextSelector:f,inlineStylesheet:h,maskAllInputs:ae,maskTextFn:w,maskInputFn:S,slimDOM:he,dataURLOptions:A,recordCanvas:O,inlineImages:z,onSerialize:Ee=>{G$(Ee,Ha)&&ce.addIframe(Ee),K$(Ee,Ha)&&oe.trackLinkElement(Ee),i_(Ee)&&Ge.addShadowRoot(at.shadowRoot(Ee),document)},onIframeLoad:(Ee,Be)=>{ce.attachIframe(Ee,Be),Ge.observeAttachShadow(Ee)},onStylesheetLoad:(Ee,Be)=>{oe.attachLinkElement(Ee,Be)},keepIframeSrcFn:$});if(!mt)return console.warn("Failed to snapshot the document");vn({type:Ct.FullSnapshot,data:{node:mt,initialOffset:$$(window)}},Ce),Dl.forEach(Ee=>Ee.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&oe.adoptStyleSheets(document.adoptedStyleSheets,Ha.getId(document))};try{const Ce=[],mt=Be=>{var $e;return yt(yEe)({mutationCb:G,mousemoveCb:(qe,gr)=>vn({type:Ct.IncrementalSnapshot,data:{source:gr,positions:qe}}),mouseInteractionCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.MouseInteraction,...qe}}),scrollCb:Q,viewportResizeCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.ViewportResize,...qe}}),inputCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.Input,...qe}}),mediaInteractionCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.MediaInteraction,...qe}}),styleSheetRuleCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.StyleSheetRule,...qe}}),styleDeclarationCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.StyleDeclaration,...qe}}),canvasMutationCb:V,fontCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.Font,...qe}}),selectionCb:qe=>{vn({type:Ct.IncrementalSnapshot,data:{source:ht.Selection,...qe}})},customElementCb:qe=>{vn({type:Ct.IncrementalSnapshot,data:{source:ht.CustomElement,...qe}})},blockClass:a,ignoreClass:i,ignoreSelector:u,maskTextClass:c,maskTextSelector:f,maskInputOptions:ae,inlineStylesheet:h,sampling:k,recordDOM:N,recordCanvas:O,inlineImages:z,userTriggeredOnInput:U,collectFonts:H,doc:Be,maskInputFn:S,maskTextFn:w,keepIframeSrcFn:$,blockSelector:s,slimDOMOptions:he,dataURLOptions:A,mirror:Ha,iframeManager:ce,stylesheetManager:oe,shadowDomManager:Ge,processedNodeManager:be,canvasManager:rE,ignoreCSSAttributes:Z,plugins:(($e=j?.filter(qe=>qe.observer))==null?void 0:$e.map(qe=>({observer:qe.observer,options:qe.options,callback:gr=>vn({type:Ct.Plugin,data:{plugin:qe.name,payload:gr}})})))||[]},x)};ce.addLoadListener(Be=>{try{Ce.push(mt(Be.contentDocument))}catch($e){console.warn($e)}});const Ee=()=>{N0(),Ce.push(mt(document)),N1=!0};return["interactive","complete"].includes(document.readyState)?Ee():(Ce.push(Cr("DOMContentLoaded",()=>{vn({type:Ct.DomContentLoaded,data:{}}),P==="DOMContentLoaded"&&Ee()})),Ce.push(Cr("load",()=>{vn({type:Ct.Load,data:{}}),P==="load"&&Ee()},window))),()=>{Ce.forEach(Be=>{try{Be()}catch($e){String($e).toLowerCase().includes("cross-origin")||console.warn($e)}}),be.destroy(),N1=!1,sEe()}}catch(Ce){console.warn(Ce)}}Op.addCustomEvent=(t,e)=>{if(!N1)throw new Error("please add custom event after start recording");vn({type:Ct.Custom,data:{tag:t,payload:e}})};Op.freezePage=()=>{Dl.forEach(t=>t.freeze())};Op.takeFullSnapshot=t=>{if(!N1)throw new Error("please take full snapshot after start recording");N0(t)};Op.mirror=Ha;var f9;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(f9||(f9={}));const NEe="rrweb",MEe={maskAllInputs:!0,maskTextSelector:"*",maskInputOptions:void 0},PEe={additionalSampleRate:1,batchSize:50,flushInterval:5e3,recordOptions:{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,recordCrossOriginIframes:!1}},h9=PEe;class DEe extends Ma{constructor(e){super(NEe),this.recordingEvents=[],this.isRecording=!1,this.recordingStartTime=null,this.flushTimer=null,this.stopRecording=null,this.enabled=!1;const n=Object.assign(Object.assign(Object.assign({},h9.recordOptions),e?.recordOptions),MEe);this.config=Object.assign(Object.assign(Object.assign({},h9),e),{recordOptions:n}),Se.info("RRWebPlugin initialized",{additionalSampleRate:this.config.additionalSampleRate,batchSize:this.config.batchSize,flushInterval:this.config.flushInterval})}enable(){var e;if(this.enabled){Se.info("RRWebPlugin already enabled");return}const n=(e=this.context)===null||e===void 0?void 0:e.getSession();if(!n||!n.record){Se.warn("RRWebPlugin skipping - session not being recorded",{hasSession:!!n,sessionRecord:n?.record});return}const r=Math.random();if(r>this.config.additionalSampleRate){Se.warn("RRWebPlugin skipping - session replay additionalSampleRate",{randomValue:r,samplingRate:this.config.additionalSampleRate});return}this.enabled=!0,Se.info("RRWebPlugin enabled - starting recording"),this.startRecording()}disable(){if(!this.enabled){Se.info("RRWebPlugin already disabled");return}Se.info("RRWebPlugin disabled - stopping recording"),this.enabled=!1,this.stopCurrentRecording()}record(e){const n=e?.action;n==="start"?(Se.info("RRWebPlugin manual start recording"),this.startRecording()):n==="stop"&&(Se.info("RRWebPlugin manual stop recording"),this.stopCurrentRecording())}onload(){}startRecording(){this.recordingStartTime=Date.now(),this.recordingEvents=[],this.isRecording=!0,Se.info("RRWebPlugin starting rrweb recording",{startTime:this.recordingStartTime});const e=Op(Object.assign(Object.assign({},this.config.recordOptions),{emit:this.handleRRWebEvent.bind(this)}));e?(this.stopRecording=e,Se.info("RRWebPlugin rrweb recording initialized successfully")):Se.warn("RRWebPlugin failed to initialize rrweb recording"),this.flushTimer=window.setInterval(()=>{this.flush()},this.config.flushInterval)}stopCurrentRecording(){if(!this.isRecording){Se.info("RRWebPlugin stopCurrentRecording called but not recording");return}Se.info("RRWebPlugin stopping current recording"),this.isRecording=!1,this.stopRecording&&(this.stopRecording(),this.stopRecording=null,Se.info("RRWebPlugin rrweb recording stopped")),this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null,Se.info("RRWebPlugin flush timer cleared")),this.flush()}handleRRWebEvent(e){this.isRecording&&(this.recordingEvents.push(e),this.recordingEvents.length>=this.config.batchSize&&(Se.info("RRWebPlugin flushing events due to batch size",{eventCount:this.recordingEvents.length,batchSize:this.config.batchSize}),this.flush()))}flush(){if(this.recordingEvents.length===0){Se.info("RRWebPlugin flushEvent called but no events to flush");return}Se.info("RRWebPlugin flushing events",{eventCount:this.recordingEvents.length});const e=[...this.recordingEvents],n={version:"1.0.0",events:e,eventCount:e.length};this.context.record(QM,n),Se.info("RRWebPlugin events sent to RUM",{eventType:QM,eventCount:this.recordingEvents.length}),this.recordingEvents=[]}}var LEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n},u_;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(u_||(u_={}));const oH="us-west-2",c_=`https://dataplane.rum.${oH}.amazonaws.com`,iH=()=>({unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}),lH=t=>({allowCookies:!1,batchLimit:100,client:oye,compressionStrategy:{enabled:!0},cookieAttributes:t,debug:!1,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:c_,endpointUrl:new URL(c_),eventCacheSize:1e3,eventPluginsToLoad:[],pageIdFormat:u_.Path,pagesToExclude:[],pagesToInclude:[/.*/],signing:!1,recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionAttributes:{},sessionEventLimit:200,sessionLengthSeconds:1800,sessionSampleRate:1,suppressSessionStartEvent:!1,useBeacon:!0,userIdRetentionDays:30,enableW3CTraceId:!1,candidatesCacheSize:10});let UEe=class{constructor(e,n,r,a={}){var{cookieAttributes:s}=a,i=LEe(a,["cookieAttributes"]);this.eventBus=new QF,typeof r>"u"&&(r="us-west-2"),this.applicationId=e;const u=Object.assign(Object.assign({},iH()),s);this.config=Object.assign(Object.assign({fetchFunction:fetch},lH(u)),i),this.config.sessionId&&(this.config.suppressSessionStartEvent=!0),this.config.endpoint=i.endpoint?i.endpoint:c_.replace(oH,r),this.config.endpointUrl=new URL(this.config.endpoint),Se.configure(this.config.debug),Se.info("Initialized RUM Slim"),this.eventCache=new vbe({id:e,version:n},this.config,this.eventBus),this.dispatchManager=this.initDispatch(r,e),this.pluginManager=this.initPluginManager(e,n),this.eventCache.setPluginFlushHook(()=>this.pluginManager.flush()),this.config.enableRumClient?this.enable():this.disable()}setAwsCredentials(e){this.dispatchManager.setAwsCredentials(e)}setSigningConfigFactory(e){this.dispatchManager.setSigningConfigFactory(e)}addSessionAttributes(e){this.eventCache.addSessionAttributes(e)}getSessionId(){return this.eventCache.getSessionId()}pinSessionId(e){this.eventCache.pinSessionId(e)}startSession(e){return this.eventCache.startSession(e)}getUserId(){return this.eventCache.getUserId()}pinUserId(e){this.eventCache.pinUserId(e)}setEventMetadataHook(e){this.eventCache.setEventMetadataHook(e)}clearEventMetadataHook(){this.eventCache.clearEventMetadataHook()}addPlugin(e){this.pluginManager.addPlugin(e)}dispatch(){this.dispatchManager.dispatchFetch()}dispatchBeacon(){this.dispatchManager.dispatchBeacon()}enable(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()}disable(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()}allowCookies(e){this.config.allowCookies=e}clearCookies(){const e=this.config.cookieAttributes;[d1,f1,Jc,`${d1}_${this.applicationId}`,`${f1}_${this.applicationId}`,`${Jc}_${this.applicationId}`].forEach(r=>ube(r,e))}recordPageView(e){this.eventCache.recordPageView(e)}recordError(e){this.pluginManager.record("com.amazonaws.rum.js-error",e)}registerDomEvents(e){this.pluginManager.updatePlugin("com.amazonaws.rum.dom-event",e)}recordEvent(e,n,r){this.eventCache.recordEvent(e,n,r)}initDispatch(e,n){return new iye(n,e,this.config.endpointUrl,this.eventCache,this.config)}initPluginManager(e,n){const r={applicationId:e,applicationVersion:n,config:this.config,record:this.eventCache.recordEvent,recordCandidate:this.eventCache.recordCandidate,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession,eventBus:this.eventBus},a=new lbe(r);return this.config.disableAutoPageView||a.addPlugin(new Dbe),this.config.eventPluginsToLoad.forEach(s=>{a.addPlugin(s)}),a}};var Za;(function(t){t.Errors="errors",t.Performance="performance",t.Interaction="interaction",t.Http="http",t.Replay="replay"})(Za||(Za={}));var p9;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(p9||(p9={}));const zEe=t=>Object.assign(Object.assign({},lH(t)),{signing:!0,telemetries:[Za.Errors,Za.Performance,Za.Http,Za.Replay]});class jEe extends UEe{constructor(e,n,r,a={}){super(e,n,r,Object.assign(Object.assign({},zEe(iH())),a)),Se.info(`RUM client initialized for app: ${e}`),Se.info(`Telemetries enabled: ${this.config.telemetries.join(", ")||"none"}`)}initDispatch(e,n){const r=super.initDispatch(e,n);return r.setSigningConfigFactory(Lye),r.setCognitoCredentialProviderFactory((a,s,i,u)=>{const c={identityPoolId:i,guestRoleArn:u,cookieAttributes:a.cookieAttributes};return i&&u?new Qye(c,s).ChainAnonymousCredentialsProvider:new Jye(c,s).ChainAnonymousCredentialsProvider}),this.config.signing&&this.config.identityPoolId&&r.setCognitoCredentials(this.config.identityPoolId,this.config.guestRoleArn),r}initPluginManager(e,n){const r=super.initPluginManager(e,n);return this.constructBuiltinPlugins().forEach(s=>{r.addPlugin(s)}),r}recordError(e){this.pluginManager.record(tB,e)}registerDomEvents(e){this.pluginManager.updatePlugin(JF,e)}constructBuiltinPlugins(){let e=[];const n=this.telemetryFunctor();return this.config.telemetries.forEach(r=>{typeof r=="string"&&n[r.toLowerCase()]?e=[...e,...n[r.toLowerCase()]({})]:Array.isArray(r)&&n[r[0].toLowerCase()]&&(e=[...e,...n[r[0].toLowerCase()](r[1])])}),e}telemetryFunctor(){return{[Za.Errors]:e=>[new Tbe(e)],[Za.Performance]:e=>[new Obe(e),new Ube(e),new rSe(e)],[Za.Interaction]:e=>[new SA(e)],[Za.Http]:e=>[new lSe(e),new sSe(e)],[Za.Replay]:e=>[new DEe(e)]}}}const uH={recordPageView:()=>{},recordError:()=>{},recordEvent:()=>{},recordTiming:()=>{}},FEe=/([?&](token|access_token|id_token|authorization)=[^&]*)|\/messages\/[a-z0-9_-]+/gi;function cH(t){return t.replace(FEe,"[redacted]")}function BEe(t){const e=t.indexOf("?"),n=t.indexOf("#"),r=e===-1&&n===-1?t.length:e===-1?n:n===-1?e:Math.min(e,n);return cH(t.slice(0,r))}function $Ee(t){const e=cH(t.message);if(e===t.message)return t;const n=new Error(e);return n.name=t.name,n.stack=t.stack,n}function HEe(t){return{recordPageView(e){t.recordPageView(BEe(e))},recordError(e,n){t.recordError($Ee(e)),n&&t.recordEvent("telemetry.error_context",n)},recordEvent(e,n){t.recordEvent(e,n??{})},recordTiming(e,n,r){t.recordEvent("telemetry.timing",{...r,name:e,durationMs:String(n)})}}}function m9(t){return t instanceof Error?t:new Error(String(t))}function qEe(t){window.addEventListener("error",e=>{t.recordError(m9(e.error??e.message))}),window.addEventListener("unhandledrejection",e=>{t.recordError(m9(e.reason))})}function WEe(){const{appMonitorId:t,identityPoolId:e,region:n}=ev().rum;if(!t)return uH;const r=new jEe(t,"1.0.0",n,{sessionSampleRate:1,identityPoolId:e,endpoint:`https://dataplane.rum.${n}.amazonaws.com`,telemetries:["performance"],disableAutoPageView:!0,allowCookies:!1,enableXRay:!1}),a=HEe(r);return qEe(a),a}const dH=_.createContext(uH);function CIe(){return _.useContext(dH)}const d_="remit.theme",VEe="dark";function g9(){return typeof localStorage>"u"?"system":localStorage.getItem(d_)??"system"}function f_(t){if(typeof document>"u")return;const e=t==="dark"||t==="system"&&typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle(VEe,e)}function EIe(t){typeof localStorage<"u"&&(t==="system"?localStorage.removeItem(d_):localStorage.setItem(d_,t)),f_(t)}const GEe=()=>{if(typeof window>"u"||(f_(g9()),typeof window.matchMedia!="function"))return;const t=window.matchMedia("(prefers-color-scheme: dark)"),e=()=>{f_(g9())};typeof t.addEventListener=="function"?t.addEventListener("change",e):t.addListener(e)},KEe=(t,e,n,r)=>{const a=[n,{code:e,...r||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(a,"warn","react-i18next::",!0);Wl(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...a):console?.warn&&console.warn(...a)},v9={},h_=(t,e,n,r)=>{Wl(n)&&v9[n]||(Wl(n)&&(v9[n]=new Date),KEe(t,e,n,r))},fH=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},p_=(t,e,n)=>{t.loadNamespaces(e,fH(t,n))},y9=(t,e,n,r)=>{if(Wl(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return p_(t,n,r);n.forEach(a=>{t.options.ns.indexOf(a)<0&&t.options.ns.push(a)}),t.loadLanguages(e,fH(t,r))},YEe=(t,e,n={})=>!e.languages||!e.languages.length?(h_(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,t))return!1}}),Wl=t=>typeof t=="string",ZEe=t=>typeof t=="object"&&t!==null,XEe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,QEe={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},JEe=t=>QEe[t],e3e=t=>t.replace(XEe,JEe);let m_={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e3e};const t3e=(t={})=>{m_={...m_,...t}},n3e=()=>m_;let hH;const r3e=t=>{hH=t},a3e=()=>hH,s3e={type:"3rdParty",init(t){t3e(t.options.react),r3e(t)}},o3e=_.createContext();class i3e{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const l3e=(t,e)=>{const n=_.useRef();return _.useEffect(()=>{n.current=t},[t,e]),n.current},pH=(t,e,n,r)=>t.getFixedT(e,n,r),u3e=(t,e,n,r)=>_.useCallback(pH(t,e,n,r),[t,e,n,r]),c3e=(t,e={})=>{const{i18n:n}=e,{i18n:r,defaultNS:a}=_.useContext(o3e)||{},s=n||r||a3e();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new i3e),!s){h_(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const R=(O,I)=>Wl(I)?I:ZEe(I)&&Wl(I.defaultValue)?I.defaultValue:Array.isArray(O)?O[O.length-1]:O,N=[R,{},!1];return N.t=R,N.i18n={},N.ready=!1,N}s.options.react?.wait&&h_(s,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...n3e(),...s.options.react,...e},{useSuspense:u,keyPrefix:c}=i;let f=t||a||s.options?.defaultNS;f=Wl(f)?[f]:f||["translation"],s.reportNamespaces.addUsedNamespaces?.(f);const h=(s.isInitialized||s.initializedStoreOnce)&&f.every(R=>YEe(R,s,i)),m=u3e(s,e.lng||null,i.nsMode==="fallback"?f:f[0],c),g=()=>m,y=()=>pH(s,e.lng||null,i.nsMode==="fallback"?f:f[0],c),[S,w]=_.useState(g);let x=f.join();e.lng&&(x=`${e.lng}${x}`);const E=l3e(x),k=_.useRef(!0);_.useEffect(()=>{const{bindI18n:R,bindI18nStore:N}=i;k.current=!0,!h&&!u&&(e.lng?y9(s,e.lng,f,()=>{k.current&&w(y)}):p_(s,f,()=>{k.current&&w(y)})),h&&E&&E!==x&&k.current&&w(y);const O=()=>{k.current&&w(y)};return R&&s?.on(R,O),N&&s?.store.on(N,O),()=>{k.current=!1,s&&R&&R?.split(" ").forEach(I=>s.off(I,O)),N&&s&&N.split(" ").forEach(I=>s.store.off(I,O))}},[s,x]),_.useEffect(()=>{k.current&&h&&w(g)},[s,c,h]);const A=[S,s,h];if(A.t=S,A.i18n=s,A.ready=h,h||!h&&!u)return A;throw new Promise(R=>{e.lng?y9(s,e.lng,f,()=>R()):p_(s,f,()=>R())})},d3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts",...t,headers:{"Content-Type":"application/json",...t.headers}}),f3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/oauth/microsoft/start",...t,headers:{"Content-Type":"application/json",...t.headers}}),h3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/test-connection",...t,headers:{"Content-Type":"application/json",...t.headers}}),p3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}",...t}),m3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),g3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters",...t}),v3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters",...t,headers:{"Content-Type":"application/json",...t.headers}}),y3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters/{filterId}",...t}),b3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters/{filterId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),S3e=t=>(t.client??Pe).put({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/folder-roles/{role}",...t,headers:{"Content-Type":"application/json",...t.headers}}),w3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels",...t}),x3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels",...t,headers:{"Content-Type":"application/json",...t.headers}}),C3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels/{labelId}",...t}),E3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels/{labelId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),_3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes",...t}),k3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes",...t,headers:{"Content-Type":"application/json",...t.headers}}),_Ie=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes/{mailboxId}",...t}),A3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes/{mailboxId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),T3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize",...t,headers:{"Content-Type":"application/json",...t.headers}}),R3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize/preview",...t,headers:{"Content-Type":"application/json",...t.headers}}),I3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize/{organizeJobId}",...t}),O3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/sync",...t}),N3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/sync/status",...t}),M3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/addresses/search",...t}),P3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/addresses/{addressId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),D3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/config",...t}),kIe=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/mailboxes/{mailboxId}/threads",...t}),L3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/mailboxes/{mailboxId}/threads/search",...t}),U3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/me",...t,headers:{"Content-Type":"application/json",...t.headers}}),z3e=t=>(t?.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/me/export",...t}),j3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/me/vip-suggestions",...t}),F3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/delete",...t,headers:{"Content-Type":"application/json",...t.headers}}),B3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/flags",...t,headers:{"Content-Type":"application/json",...t.headers}}),$3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/labels",...t,headers:{"Content-Type":"application/json",...t.headers}}),H3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/move",...t,headers:{"Content-Type":"application/json",...t.headers}}),AIe=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/not-spam",...t,headers:{"Content-Type":"application/json",...t.headers}}),TIe=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/report-spam",...t,headers:{"Content-Type":"application/json",...t.headers}}),q3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}",...t}),W3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}/flags",...t,headers:{"Content-Type":"application/json",...t.headers}}),V3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}/raw",...t}),G3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox",...t}),K3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox",...t,headers:{"Content-Type":"application/json",...t.headers}}),Y3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...t}),Z3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...t}),X3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),Q3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}/send",...t}),J3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/search/semantic",...t}),e_e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/system/update",...t}),t_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/system/update",...t,headers:{"Content-Type":"application/json",...t.headers}}),n_e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/threads",...t}),r_e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/threads/{threadId}/messages",...t}),RIe=t=>({mutationFn:async n=>{const{data:r}=await d3e({...t,...n,throwOnError:!0});return r}}),jn=(t,e,n,r)=>{const a={_id:t,baseUrl:e?.baseUrl||(e?.client??Pe).getConfig().baseUrl};return e?.body&&(a.body=e.body),e?.headers&&(a.headers=e.headers),e?.path&&(a.path=e.path),e?.query&&(a.query=e.query),[a]},IIe=t=>({mutationFn:async n=>{const{data:r}=await f3e({...t,...n,throwOnError:!0});return r}}),OIe=t=>({mutationFn:async n=>{const{data:r}=await h3e({...t,...n,throwOnError:!0});return r}}),NIe=t=>({mutationFn:async n=>{const{data:r}=await p3e({...t,...n,throwOnError:!0});return r}}),MIe=t=>({mutationFn:async n=>{const{data:r}=await m3e({...t,...n,throwOnError:!0});return r}}),a_e=t=>jn("filterOperationsListFilters",t),PIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await g3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:a_e(t)}),DIe=t=>({mutationFn:async n=>{const{data:r}=await v3e({...t,...n,throwOnError:!0});return r}}),LIe=t=>({mutationFn:async n=>{const{data:r}=await y3e({...t,...n,throwOnError:!0});return r}}),UIe=t=>jn("filterDetailOperationsGetFilter",t),zIe=t=>({mutationFn:async n=>{const{data:r}=await b3e({...t,...n,throwOnError:!0});return r}}),jIe=t=>({mutationFn:async n=>{const{data:r}=await S3e({...t,...n,throwOnError:!0});return r}}),s_e=t=>jn("labelOperationsListLabels",t),FIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await w3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:s_e(t)}),BIe=t=>({mutationFn:async n=>{const{data:r}=await x3e({...t,...n,throwOnError:!0});return r}}),$Ie=t=>({mutationFn:async n=>{const{data:r}=await C3e({...t,...n,throwOnError:!0});return r}}),HIe=t=>({mutationFn:async n=>{const{data:r}=await E3e({...t,...n,throwOnError:!0});return r}}),o_e=t=>jn("mailboxOperationsListMailboxes",t),qIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await _3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:o_e(t)}),WIe=t=>({mutationFn:async n=>{const{data:r}=await k3e({...t,...n,throwOnError:!0});return r}}),VIe=t=>({mutationFn:async n=>{const{data:r}=await A3e({...t,...n,throwOnError:!0});return r}}),GIe=t=>({mutationFn:async n=>{const{data:r}=await T3e({...t,...n,throwOnError:!0});return r}}),KIe=t=>({mutationFn:async n=>{const{data:r}=await R3e({...t,...n,throwOnError:!0});return r}}),i_e=t=>jn("organizeJobDetailOperationsGetOrganizeJob",t),YIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await I3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:i_e(t)}),ZIe=t=>({mutationFn:async n=>{const{data:r}=await O3e({...t,...n,throwOnError:!0});return r}}),l_e=t=>jn("syncOperationsGetSyncStatus",t),XIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await N3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:l_e(t)}),u_e=t=>jn("addressOperationsSearchAddresses",t),QIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await M3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:u_e(t)}),JIe=t=>({mutationFn:async n=>{const{data:r}=await P3e({...t,...n,throwOnError:!0});return r}}),c_e=t=>jn("configOperationsGetConfig",t),d_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await D3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:c_e(t)}),e4e=t=>jn("threadOperationsListThreads",t),f_e=t=>jn("threadOperationsSearchThreads",t),t4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await L3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:f_e(t)}),n4e=t=>({mutationFn:async n=>{const{data:r}=await U3e({...t,...n,throwOnError:!0});return r}}),r4e=t=>({mutationFn:async n=>{const{data:r}=await z3e({...t,...n,throwOnError:!0});return r}}),h_e=t=>jn("meOperationsListVipSuggestions",t),a4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await j3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:h_e(t)}),s4e=t=>({mutationFn:async n=>{const{data:r}=await F3e({...t,...n,throwOnError:!0});return r}}),o4e=t=>({mutationFn:async n=>{const{data:r}=await B3e({...t,...n,throwOnError:!0});return r}}),i4e=t=>({mutationFn:async n=>{const{data:r}=await $3e({...t,...n,throwOnError:!0});return r}}),l4e=t=>({mutationFn:async n=>{const{data:r}=await H3e({...t,...n,throwOnError:!0});return r}}),p_e=t=>jn("messageOperationsDescribeMessage",t),u4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await q3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:p_e(t)}),c4e=t=>({mutationFn:async n=>{const{data:r}=await W3e({...t,...n,throwOnError:!0});return r}}),m_e=t=>jn("messageOperationsGetRawMessage",t),d4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await V3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:m_e(t)}),mH=t=>jn("outboxOperationsListOutboxMessages",t),f4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await G3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:mH(t)}),h4e=t=>({mutationFn:async n=>{const{data:r}=await K3e({...t,...n,throwOnError:!0});return r}}),p4e=t=>({mutationFn:async n=>{const{data:r}=await Y3e({...t,...n,throwOnError:!0});return r}}),g_e=t=>jn("outboxDetailOperationsGetOutboxMessage",t),v_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await Z3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:g_e(t)}),m4e=t=>({mutationFn:async n=>{const{data:r}=await X3e({...t,...n,throwOnError:!0});return r}}),g4e=t=>({mutationFn:async n=>{const{data:r}=await Q3e({...t,...n,throwOnError:!0});return r}}),y_e=t=>jn("semanticSearchOperationsSemanticSearch",t),v4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await J3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:y_e(t)}),gH=t=>jn("systemOperationsGetSystemUpdate",t),b_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await e_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:gH(t)}),S_e=t=>({mutationFn:async n=>{const{data:r}=await t_e({...t,...n,throwOnError:!0});return r}}),w_e=t=>jn("unifiedThreadOperationsListAllThreads",t),x_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await n_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:w_e(t)}),C_e=t=>jn("threadDetailOperationsListThreadMessages",t),y4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await r_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:C_e(t)}),vH=_.createContext(void 0),b9={isOpen:!1,mode:"new"},E_e=2e3,__e=6e4,k_e=({children:t})=>{const[e,n]=_.useState(b9),[r,a]=_.useState(),s=_.useRef(0),i=zv(),{data:u}=Yj({...v_e({path:{outboxMessageId:r??""}}),enabled:!!r,refetchInterval:y=>{const S=y.state.data?.status;return S==="sent"||S==="failed"||S==="blocked"||Date.now()-s.current>__e?!1:E_e}});_.useEffect(()=>{if(!u||!r)return;(u.status==="sent"||u.status==="failed"||u.status==="blocked")&&(a(void 0),i.invalidateQueries({queryKey:mH()}))},[u,r,i]);const c=_.useCallback(y=>{n({...y,isOpen:!0})},[]),f=_.useCallback(()=>{n(b9)},[]),h=_.useCallback(y=>{n(S=>({...S,outboxMessageId:y}))},[]),m=_.useCallback(y=>{s.current=Date.now(),a(y)},[]),g=_.useMemo(()=>({state:e,openCompose:c,closeCompose:f,setOutboxMessageId:h,startSendPolling:m}),[e,c,f,h,m]);return C.jsx(vH.Provider,{value:g,children:t})},b4e=()=>{const t=_.useContext(vH);if(!t)throw new Error("useCompose must be used within a ComposeProvider");return t},A_e=600,T_e=300,yH="remit logs",R_e="https://github.com/remit-mail/reader/releases/tag/",I_e={checking:"preparing",pulling:"preparing",snapshotting:"preparing",stopping:"restarting",starting:"restarting",verifying:"reconnecting",committing:"reconnecting",rollingBack:"reconnecting",recovering:"reconnecting"};function eT(t){return I_e[t]??"reconnecting"}function bH(t){const e=du(t);return e===404||e===403||e===401}function SH(t,e){const n=t?.check;if(n?.status==="ok"&&!(!n.updateAvailable||!n.latestVersion))return{version:n.latestVersion,releasedAt:M1(n.publishedAt)??e,releaseNotesUrl:n.releaseNotesUrl??xH(n.latestVersion),summary:n.summary??""}}function O_e(t){const e=t?.check.schemaVersion,n=t?.currentSchemaVersion;return e===void 0||n===void 0?!1:e>n}function S9(){return A_e+T_e}function wH(t,e){return Math.max(0,Math.floor((e-t)/1e3))}function M1(t){if(!t)return;const e=Date.parse(t);return Number.isNaN(e)?void 0:e}function xH(t){return`${R_e}${t}`}function Th(t,e,n,r,a){return{status:"applying",runId:t,version:e,target:n,phase:r,elapsedSeconds:a}}function N_e(t,e,n){switch(n){case"succeeded":return{status:"succeeded",runId:e.runId,version:e.targetVersion,previousVersion:e.fromVersion,releaseNotesUrl:t.check.releaseNotesUrl??xH(e.targetVersion)};case"rolledBack":return{status:"rolledBack",runId:e.runId,version:e.fromVersion,attemptedVersion:e.targetVersion,reason:e.message,logsCommand:e.logCommand};case"rollbackFailed":return{status:"rollbackFailed",runId:e.runId,attemptedVersion:e.targetVersion,previousVersion:e.fromVersion,reason:e.message,logsCommand:e.logCommand};case"abandoned":return{status:"abandoned",runId:e.runId,version:e.fromVersion,attemptedVersion:e.targetVersion,reason:e.message,logsCommand:e.logCommand};default:return n}}function M_e(t,e,n){const r=t.check;if(e)return{status:"checking",version:t.currentVersion};if(r.status==="failed")return{status:"checkFailed",version:t.currentVersion,reason:r.error??"Remit could not reach the update service.",lastCheckedAt:M1(r.lastCheckedAt)};if(r.status==="disabled")return{status:"neverChecked",version:t.currentVersion};const a=SH(t,n);return a?{status:"available",version:t.currentVersion,release:a}:{status:"upToDate",version:t.currentVersion,checkedAt:M1(r.lastCheckedAt)??n}}function aE(t,e,n){return{surface:{status:"ready",section:t,overlay:e},releaseHeld:n}}function P_e(t,e){return{surface:{status:"ready",section:Th(t.runId,t.previousVersion,t.attemptedVersion,"reconnecting",e),overlay:{kind:"neverCameBack",attemptedVersion:t.attemptedVersion,previousVersion:t.previousVersion,elapsedSeconds:e,logsCommand:yH}},releaseHeld:!1}}function D_e(t,e,n,r,a){const s=wH(t.startedAt,a),i=e?.currentVersion??t.previousVersion,u=!r&&n!==null&&n.runId===t.runId;if(u&&n!==null&&n.outcome!==null)return null;if(u&&n!==null){const c=eT(n.phase);return aE(Th(n.runId,i,n.targetVersion,c,s),{kind:"applying",target:n.targetVersion,phase:c,elapsedSeconds:s},!1)}return r?s>S9()?P_e(t,s):aE(Th(t.runId,t.previousVersion,t.attemptedVersion,"reconnecting",s),{kind:"applying",target:t.attemptedVersion,phase:"reconnecting",elapsedSeconds:s},!1):e===void 0?{surface:{status:"loading"},releaseHeld:!1}:s>S9()?{surface:{status:"ready",section:{status:"unreachable",runId:t.runId,previousVersion:t.previousVersion,attemptedVersion:t.attemptedVersion,elapsedSeconds:s,logsCommand:n?.logCommand??yH},overlay:{kind:"none"}},releaseHeld:!0}:aE(Th(t.runId,i,t.attemptedVersion,t.phase,s),{kind:"applying",target:t.attemptedVersion,phase:t.phase,elapsedSeconds:s},!1)}function w9(t){const{data:e,isError:n,isFetching:r,dismissedRunId:a,checkRequested:s,now:i}=t;if(n)return{status:"ready",section:{status:"checkFailed",version:e?.currentVersion??"the current version",reason:"Remit could not reach the update service."},overlay:{kind:"none"}};if(!e)return{status:"loading"};const u=e.run,c=u!==null&&a!==null&&u.runId===a;if(u!==null&&!c&&u.outcome!==null)return{status:"ready",section:N_e(e,u,u.outcome),overlay:{kind:"none"}};if(u!==null&&!c&&u.outcome===null){const f=wH(M1(u.startedAt)??i,i),h=eT(u.phase);return{status:"ready",section:Th(u.runId,u.fromVersion,u.targetVersion,h,f),overlay:{kind:"applying",target:u.targetVersion,phase:h,elapsedSeconds:f}}}return{status:"ready",section:M_e(e,s&&r,i),overlay:{kind:"none"}}}function L_e(t){const{data:e,isError:n,error:r,held:a,now:s}=t,i=e?.run??null;if(bH(r)&&!a)return{surface:{status:"absent"},releaseHeld:!0};if(a){const u=D_e(a,e,i,n,s);return u||{surface:w9(t),releaseHeld:!0}}return{surface:w9(t),releaseHeld:!1}}const U_e=3e4,z_e=5e3;function j_e(t,e,n){if(bH(t)&&!n)return!1;const r=e!==null&&e.outcome===null;return n||r?z_e:U_e}function F_e(){const t=zv(),[e,n]=_.useState(null),[r,a]=_.useState(null),[s,i]=_.useState(!1),u=_.useRef(e);u.current=e;const c=Yj({...b_e(),retry:!1,meta:{softError:!0},refetchInterval:A=>j_e(A.state.error,A.state.data?.run??null,u.current!==null)}),f=L_e({data:c.data,isError:c.isError,error:c.error,isFetching:c.isFetching,held:e,dismissedRunId:r,checkRequested:s,now:Date.now()}),h=_.useRef(null);h.current=f.surface.status==="ready"&&"runId"in f.surface.section?f.surface.section.runId:null;const{releaseHeld:m}=f;_.useEffect(()=>{m&&n(A=>A===null?A:null)},[m]),_.useEffect(()=>{s&&!c.isFetching&&i(!1)},[s,c.isFetching]);const{refetch:g}=c,y=_.useCallback(()=>{i(!0),g()},[g]),S=_.useCallback(()=>{g()},[g]),w=t0e({...S_e(),meta:{softError:!0},onSuccess:A=>{const R=A.run;R!==null&&(n({runId:R.runId,attemptedVersion:R.targetVersion,previousVersion:R.fromVersion,phase:eT(R.phase),startedAt:Date.now()}),a(null)),t.setQueryData(gH(),A)},onError:()=>{g()}}),{mutate:x}=w,E=_.useCallback(A=>{x({body:{targetVersion:A}})},[x]),k=_.useCallback(()=>{h.current!==null&&a(h.current),n(null)},[]);return{surface:f.surface,appliesSchemaMigration:O_e(c.data),currentVersion:c.data?.currentVersion,release:SH(c.data,Date.now()),onCheck:y,install:E,onDismissResult:k,onRetryConnection:S}}const tT=_.createContext(null);function B_e({children:t}){const e=F_e();return _.createElement(tT.Provider,{value:e},t)}function $_e(){const t=_.useContext(tT);if(t===null)throw new Error("useSelfUpdate must be used within a SelfUpdateProvider");return t}function H_e(){return _.useContext(tT)}function q_e(){const{surface:t,onRetryConnection:e}=$_e();if(t.status!=="ready")return null;const{overlay:n}=t;return n.kind==="applying"?C.jsx(Hre,{target:n.target,phase:n.phase,elapsedSeconds:n.elapsedSeconds}):n.kind==="neverCameBack"?C.jsx(qre,{attemptedVersion:n.attemptedVersion,previousVersion:n.previousVersion,elapsedSeconds:n.elapsedSeconds,logsCommand:n.logsCommand,onRetryConnection:e}):null}const sE=(...t)=>DL(EL(t)),W_e={error:{container:"border-danger/50 bg-danger-soft",icon:"text-danger",title:"text-danger"},warning:{container:"border-warning/50 bg-warning-soft",icon:"text-warning",title:"text-warning"},info:{container:"border-accent-2/50 bg-accent-2-soft",icon:"text-accent-2",title:"text-accent-2"}},V_e={error:AJ,warning:Nh,info:RL},G_e={error:"Error",warning:"Warning",info:"Information"},K_e=({id:t,severity:e,title:n,detail:r,onDismiss:a})=>{const s=W_e[e],i=V_e[e];return C.jsxs("div",{role:e==="error"?"alert":"status","aria-live":e==="error"?"assertive":"polite",className:sE("pointer-events-auto flex items-start gap-3 rounded-md border bg-canvas px-3 py-2 shadow-lg",s.container),children:[C.jsx(i,{className:sE("size-5 shrink-0 mt-0.5",s.icon),"aria-hidden":"true"}),C.jsxs("div",{className:"flex-1 min-w-0",children:[C.jsx("p",{className:sE("text-sm font-medium",s.title),children:n}),r&&C.jsx("p",{className:"mt-0.5 text-xs text-fg-muted break-words",children:r})]}),C.jsx("button",{type:"button",onClick:()=>a(t),className:"shrink-0 rounded-md p-1 text-fg-muted hover:bg-surface-raised hover:text-fg transition-colors","aria-label":`Dismiss ${G_e[e].toLowerCase()}`,children:C.jsx(Ms,{className:"size-4","aria-hidden":"true"})})]})},Y_e=({errors:t,onDismiss:e})=>t.length===0?null:C.jsx("section",{"aria-label":"Notifications",className:"pointer-events-none fixed inset-x-0 top-0 z-[60] flex flex-col items-center gap-2 px-4 pt-[calc(1rem+env(safe-area-inset-top,0px))] sm:items-end sm:pr-6",children:C.jsx("div",{className:"flex w-full max-w-md flex-col gap-2",children:t.map(n=>C.jsx(K_e,{id:n.id,severity:n.severity,title:n.title,detail:n.detail,onDismiss:e},n.id))})}),x9=5,S4e=(t,e,n)=>({title:t,detail:CH(n)??e,error:n}),CH=t=>{if(t!=null){if(t instanceof Error)return t.message||void 0;if(typeof t=="string")return t||void 0;if(typeof t=="object"&&"message"in t&&typeof t.message=="string")return t.message||void 0}},w4e=t=>{const e=CH(t);return e?e.startsWith("Message not found"):!1},Z_e=(t,e,n)=>t.severity===n&&t.title===e.title&&t.detail===e.detail,X_e=(t,e)=>{const r=[...t.filter(a=>!Z_e(a,{title:e.title,detail:e.detail,severity:e.severity},e.severity)),e];return r.length<=x9?r:r.slice(r.length-x9)},Q_e=(t,e)=>t.filter(n=>n.id!==e),J_e=(t,e,n)=>({id:e,severity:t.severity??"error",title:t.title,detail:t.detail,createdAt:n}),EH=_.createContext(void 0),eke=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`banner-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,tke=({children:t})=>{const[e,n]=_.useState([]),r=_.useCallback(u=>{if(u.error!=null&&qU(u.error))return Kl(u.error).correlationId;const c=J_e(u,eke(),Date.now());return n(f=>X_e(f,c)),c.id},[]),a=_.useCallback(u=>{n(c=>Q_e(c,u))},[]),s=_.useCallback(()=>{n([])},[]),i=_.useMemo(()=>({errors:e,pushError:r,dismissError:a,clearAll:s}),[e,r,a,s]);return C.jsxs(EH.Provider,{value:i,children:[t,C.jsx(Y_e,{errors:e,onDismiss:a})]})},x4e=()=>{const t=_.useContext(EH);if(!t)throw new Error("useErrorBanners must be used within an ErrorBannerProvider");return t},nke=({error:t,reset:e,info:n})=>{const r=uv(t),a=Kl(t,{recoverable:r,componentStack:n?.componentStack});return C.jsx(JU,{fatal:a,onRetry:r?e:void 0})},Np=R1e()({component:ake,errorComponent:nke}),rke=()=>{const{t}=c3e("common",{useSuspense:!1});return C.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:z-50 focus:p-4 focus:bg-canvas focus:text-fg focus:rounded-md",children:t("accessibility.skipToContent","Skip to main content")})};function ake(){return C.jsxs(tke,{children:[C.jsxs(B_e,{children:[C.jsxs(k_e,{children:[C.jsx(rke,{}),C.jsx("main",{id:"main-content",className:"h-dvh overflow-hidden",children:C.jsx(_.Suspense,{fallback:C.jsx(sk,{}),children:C.jsx(_F,{})})})]}),C.jsx(q_e,{})]}),C.jsx(QU,{})]})}const ske=ur("/")({beforeLoad:()=>{throw oF({to:"/mail"})}});var Tt;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function n(a){throw new Error}t.assertNever=n,t.arrayToEnum=a=>{const s={};for(const i of a)s[i]=i;return s},t.getValidEnumValues=a=>{const s=t.objectKeys(a).filter(u=>typeof a[a[u]]!="number"),i={};for(const u of s)i[u]=a[u];return t.objectValues(i)},t.objectValues=a=>t.objectKeys(a).map(function(s){return a[s]}),t.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const s=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&s.push(i);return s},t.find=(a,s)=>{for(const i of a)if(s(i))return i},t.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function r(a,s=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}t.joinValues=r,t.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(Tt||(Tt={}));var C9;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(C9||(C9={}));const Ie=Tt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ai=t=>{switch(typeof t){case"undefined":return Ie.undefined;case"string":return Ie.string;case"number":return Number.isNaN(t)?Ie.nan:Ie.number;case"boolean":return Ie.boolean;case"function":return Ie.function;case"bigint":return Ie.bigint;case"symbol":return Ie.symbol;case"object":return Array.isArray(t)?Ie.array:t===null?Ie.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?Ie.promise:typeof Map<"u"&&t instanceof Map?Ie.map:typeof Set<"u"&&t instanceof Set?Ie.set:typeof Date<"u"&&t instanceof Date?Ie.date:Ie.object;default:return Ie.unknown}},ge=Tt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class No extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(s){return s.message},r={_errors:[]},a=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let u=r,c=0;for(;c<i.path.length;){const f=i.path[c];c===i.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(n(i))):u[f]=u[f]||{_errors:[]},u=u[f],c++}}};return a(this),r}static assert(e){if(!(e instanceof No))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Tt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const a of this.issues)if(a.path.length>0){const s=a.path[0];n[s]=n[s]||[],n[s].push(e(a))}else r.push(e(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}No.create=t=>new No(t);const g_=(t,e)=>{let n;switch(t.code){case ge.invalid_type:t.received===Ie.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case ge.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Tt.jsonStringifyReplacer)}`;break;case ge.unrecognized_keys:n=`Unrecognized key(s) in object: ${Tt.joinValues(t.keys,", ")}`;break;case ge.invalid_union:n="Invalid input";break;case ge.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Tt.joinValues(t.options)}`;break;case ge.invalid_enum_value:n=`Invalid enum value. Expected ${Tt.joinValues(t.options)}, received '${t.received}'`;break;case ge.invalid_arguments:n="Invalid function arguments";break;case ge.invalid_return_type:n="Invalid function return type";break;case ge.invalid_date:n="Invalid date";break;case ge.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Tt.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case ge.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case ge.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case ge.custom:n="Invalid input";break;case ge.invalid_intersection_types:n="Intersection results could not be merged";break;case ge.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case ge.not_finite:n="Number must be finite";break;default:n=e.defaultError,Tt.assertNever(t)}return{message:n}};let oke=g_;function ike(){return oke}const lke=t=>{const{data:e,path:n,errorMaps:r,issueData:a}=t,s=[...n,...a.path||[]],i={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let u="";const c=r.filter(f=>!!f).slice().reverse();for(const f of c)u=f(i,{data:e,defaultError:u}).message;return{...a,path:s,message:u}};function ke(t,e){const n=ike(),r=lke({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===g_?void 0:g_].filter(a=>!!a)});t.common.issues.push(r)}class da{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const a of n){if(a.status==="aborted")return Xe;a.status==="dirty"&&e.dirty(),r.push(a.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const a of n){const s=await a.key,i=await a.value;r.push({key:s,value:i})}return da.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const a of n){const{key:s,value:i}=a;if(s.status==="aborted"||i.status==="aborted")return Xe;s.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(r[s.value]=i.value)}return{status:e.value,value:r}}}const Xe=Object.freeze({status:"aborted"}),ph=t=>({status:"dirty",value:t}),Pa=t=>({status:"valid",value:t}),E9=t=>t.status==="aborted",_9=t=>t.status==="dirty",id=t=>t.status==="valid",P1=t=>typeof Promise<"u"&&t instanceof Promise;var Ne;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Ne||(Ne={}));class Ki{constructor(e,n,r,a){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const k9=(t,e)=>{if(id(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new No(t.common.issues);return this._error=n,this._error}}};function st(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:a}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(i,u)=>{const{message:c}=t;return i.code==="invalid_enum_value"?{message:c??u.defaultError}:typeof u.data>"u"?{message:c??r??u.defaultError}:i.code!=="invalid_type"?{message:u.defaultError}:{message:c??n??u.defaultError}},description:a}}class Et{get description(){return this._def.description}_getType(e){return Ai(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Ai(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new da,ctx:{common:e.parent.common,data:e.data,parsedType:Ai(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(P1(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ai(e)},a=this._parseSync({data:e,path:r.path,parent:r});return k9(r,a)}"~validate"(e){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ai(e)};if(!this["~standard"].async)try{const r=this._parseSync({data:e,path:[],parent:n});return id(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(r=>id(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ai(e)},a=this._parse({data:e,path:r.path,parent:r}),s=await(P1(a)?a:Promise.resolve(a));return k9(r,s)}refine(e,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,s)=>{const i=e(a),u=()=>s.addIssue({code:ge.custom,...r(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(u(),!1)):i?!0:(u(),!1)})}refinement(e,n){return this._refinement((r,a)=>e(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(e){return new cd({schema:this,typeName:Qe.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ji.create(this,this._def)}nullable(){return dd.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ts.create(this)}promise(){return z1.create(this,this._def)}or(e){return L1.create([this,e],this._def)}and(e){return U1.create(this,e,this._def)}transform(e){return new cd({...st(this._def),schema:this,typeName:Qe.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new S_({...st(this._def),innerType:this,defaultValue:n,typeName:Qe.ZodDefault})}brand(){return new Oke({typeName:Qe.ZodBranded,type:this,...st(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new w_({...st(this._def),innerType:this,catchValue:n,typeName:Qe.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return nT.create(this,e)}readonly(){return x_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const uke=/^c[^\s-]{8,}$/i,cke=/^[0-9a-z]+$/,dke=/^[0-9A-HJKMNP-TV-Z]{26}$/i,fke=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,hke=/^[a-z0-9_-]{21}$/i,pke=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,mke=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,gke=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,vke="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let oE;const yke=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,bke=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Ske=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,wke=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xke=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Cke=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,_H="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Eke=new RegExp(`^${_H}$`);function kH(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function _ke(t){return new RegExp(`^${kH(t)}$`)}function kke(t){let e=`${_H}T${kH(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function Ake(t,e){return!!((e==="v4"||!e)&&yke.test(t)||(e==="v6"||!e)&&Ske.test(t))}function Tke(t,e){if(!pke.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function Rke(t,e){return!!((e==="v4"||!e)&&bke.test(t)||(e==="v6"||!e)&&wke.test(t))}class wo extends Et{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Ie.string){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_type,expected:Ie.string,received:s.parsedType}),Xe}const r=new da;let a;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")e.data.length>s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=e.data.length>s.value,u=e.data.length<s.value;(i||u)&&(a=this._getOrReturnCtx(e,a),i?ke(a,{code:ge.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):u&&ke(a,{code:ge.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")gke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"email",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")oE||(oE=new RegExp(vke,"u")),oE.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"emoji",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")fke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"uuid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")hke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"nanoid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")uke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"cuid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")cke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"cuid2",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")dke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"ulid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),ke(a,{validation:"url",code:ge.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"regex",code:ge.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?kke(s).test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?Eke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?_ke(s).test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?mke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"duration",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?Ake(e.data,s.version)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"ip",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="jwt"?Tke(e.data,s.alg)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"jwt",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="cidr"?Rke(e.data,s.version)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"cidr",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?xke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"base64",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="base64url"?Cke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"base64url",code:ge.invalid_string,message:s.message}),r.dirty()):Tt.assertNever(s);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(a=>e.test(a),{validation:n,code:ge.invalid_string,...Ne.errToObj(r)})}_addCheck(e){return new wo({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Ne.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Ne.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Ne.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Ne.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Ne.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Ne.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Ne.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Ne.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Ne.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...Ne.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...Ne.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Ne.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...Ne.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Ne.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...Ne.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...Ne.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...Ne.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...Ne.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...Ne.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...Ne.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...Ne.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...Ne.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...Ne.errToObj(n)})}nonempty(e){return this.min(1,Ne.errToObj(e))}trim(){return new wo({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new wo({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new wo({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}wo.create=t=>new wo({checks:[],typeName:Qe.ZodString,coerce:t?.coerce??!1,...st(t)});function Ike(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=n>r?n:r,s=Number.parseInt(t.toFixed(a).replace(".","")),i=Number.parseInt(e.toFixed(a).replace(".",""));return s%i/10**a}class ru extends Et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Ie.number){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_type,expected:Ie.number,received:s.parsedType}),Xe}let r;const a=new da;for(const s of this._def.checks)s.kind==="int"?Tt.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?Ike(e.data,s.value)!==0&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.not_finite,message:s.message}),a.dirty()):Tt.assertNever(s);return{status:a.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,Ne.toString(n))}gt(e,n){return this.setLimit("min",e,!1,Ne.toString(n))}lte(e,n){return this.setLimit("max",e,!0,Ne.toString(n))}lt(e,n){return this.setLimit("max",e,!1,Ne.toString(n))}setLimit(e,n,r,a){return new ru({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Ne.toString(a)}]})}_addCheck(e){return new ru({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Ne.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ne.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ne.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ne.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ne.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:Ne.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:Ne.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ne.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ne.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Tt.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}ru.create=t=>new ru({checks:[],typeName:Qe.ZodNumber,coerce:t?.coerce||!1,...st(t)});class au extends Et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==Ie.bigint)return this._getInvalidInput(e);let r;const a=new da;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):Tt.assertNever(s);return{status:a.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return ke(n,{code:ge.invalid_type,expected:Ie.bigint,received:n.parsedType}),Xe}gte(e,n){return this.setLimit("min",e,!0,Ne.toString(n))}gt(e,n){return this.setLimit("min",e,!1,Ne.toString(n))}lte(e,n){return this.setLimit("max",e,!0,Ne.toString(n))}lt(e,n){return this.setLimit("max",e,!1,Ne.toString(n))}setLimit(e,n,r,a){return new au({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Ne.toString(a)}]})}_addCheck(e){return new au({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ne.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ne.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ne.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ne.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:Ne.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}au.create=t=>new au({checks:[],typeName:Qe.ZodBigInt,coerce:t?.coerce??!1,...st(t)});class D1 extends Et{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Ie.boolean){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.boolean,received:r.parsedType}),Xe}return Pa(e.data)}}D1.create=t=>new D1({typeName:Qe.ZodBoolean,coerce:t?.coerce||!1,...st(t)});class ld extends Et{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Ie.date){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_type,expected:Ie.date,received:s.parsedType}),Xe}if(Number.isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_date}),Xe}const r=new da;let a;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):Tt.assertNever(s);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ld({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:Ne.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:Ne.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}ld.create=t=>new ld({checks:[],coerce:t?.coerce||!1,typeName:Qe.ZodDate,...st(t)});class A9 extends Et{_parse(e){if(this._getType(e)!==Ie.symbol){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.symbol,received:r.parsedType}),Xe}return Pa(e.data)}}A9.create=t=>new A9({typeName:Qe.ZodSymbol,...st(t)});class T9 extends Et{_parse(e){if(this._getType(e)!==Ie.undefined){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.undefined,received:r.parsedType}),Xe}return Pa(e.data)}}T9.create=t=>new T9({typeName:Qe.ZodUndefined,...st(t)});class R9 extends Et{_parse(e){if(this._getType(e)!==Ie.null){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.null,received:r.parsedType}),Xe}return Pa(e.data)}}R9.create=t=>new R9({typeName:Qe.ZodNull,...st(t)});class I9 extends Et{constructor(){super(...arguments),this._any=!0}_parse(e){return Pa(e.data)}}I9.create=t=>new I9({typeName:Qe.ZodAny,...st(t)});class v_ extends Et{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Pa(e.data)}}v_.create=t=>new v_({typeName:Qe.ZodUnknown,...st(t)});class Yi extends Et{_parse(e){const n=this._getOrReturnCtx(e);return ke(n,{code:ge.invalid_type,expected:Ie.never,received:n.parsedType}),Xe}}Yi.create=t=>new Yi({typeName:Qe.ZodNever,...st(t)});class O9 extends Et{_parse(e){if(this._getType(e)!==Ie.undefined){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.void,received:r.parsedType}),Xe}return Pa(e.data)}}O9.create=t=>new O9({typeName:Qe.ZodVoid,...st(t)});class Ts extends Et{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),a=this._def;if(n.parsedType!==Ie.array)return ke(n,{code:ge.invalid_type,expected:Ie.array,received:n.parsedType}),Xe;if(a.exactLength!==null){const i=n.data.length>a.exactLength.value,u=n.data.length<a.exactLength.value;(i||u)&&(ke(n,{code:i?ge.too_big:ge.too_small,minimum:u?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ke(n,{code:ge.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ke(n,{code:ge.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,u)=>a.type._parseAsync(new Ki(n,i,n.path,u)))).then(i=>da.mergeArray(r,i));const s=[...n.data].map((i,u)=>a.type._parseSync(new Ki(n,i,n.path,u)));return da.mergeArray(r,s)}get element(){return this._def.type}min(e,n){return new Ts({...this._def,minLength:{value:e,message:Ne.toString(n)}})}max(e,n){return new Ts({...this._def,maxLength:{value:e,message:Ne.toString(n)}})}length(e,n){return new Ts({...this._def,exactLength:{value:e,message:Ne.toString(n)}})}nonempty(e){return this.min(1,e)}}Ts.create=(t,e)=>new Ts({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Qe.ZodArray,...st(e)});function Tc(t){if(t instanceof An){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=ji.create(Tc(r))}return new An({...t._def,shape:()=>e})}else return t instanceof Ts?new Ts({...t._def,type:Tc(t.element)}):t instanceof ji?ji.create(Tc(t.unwrap())):t instanceof dd?dd.create(Tc(t.unwrap())):t instanceof su?su.create(t.items.map(e=>Tc(e))):t}class An extends Et{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=Tt.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==Ie.object){const f=this._getOrReturnCtx(e);return ke(f,{code:ge.invalid_type,expected:Ie.object,received:f.parsedType}),Xe}const{status:r,ctx:a}=this._processInputParams(e),{shape:s,keys:i}=this._getCached(),u=[];if(!(this._def.catchall instanceof Yi&&this._def.unknownKeys==="strip"))for(const f in a.data)i.includes(f)||u.push(f);const c=[];for(const f of i){const h=s[f],m=a.data[f];c.push({key:{status:"valid",value:f},value:h._parse(new Ki(a,m,a.path,f)),alwaysSet:f in a.data})}if(this._def.catchall instanceof Yi){const f=this._def.unknownKeys;if(f==="passthrough")for(const h of u)c.push({key:{status:"valid",value:h},value:{status:"valid",value:a.data[h]}});else if(f==="strict")u.length>0&&(ke(a,{code:ge.unrecognized_keys,keys:u}),r.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const h of u){const m=a.data[h];c.push({key:{status:"valid",value:h},value:f._parse(new Ki(a,m,a.path,h)),alwaysSet:h in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const f=[];for(const h of c){const m=await h.key,g=await h.value;f.push({key:m,value:g,alwaysSet:h.alwaysSet})}return f}).then(f=>da.mergeObjectSync(r,f)):da.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(e){return Ne.errToObj,new An({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{const a=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:Ne.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new An({...this._def,unknownKeys:"strip"})}passthrough(){return new An({...this._def,unknownKeys:"passthrough"})}extend(e){return new An({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new An({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Qe.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new An({...this._def,catchall:e})}pick(e){const n={};for(const r of Tt.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new An({...this._def,shape:()=>n})}omit(e){const n={};for(const r of Tt.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new An({...this._def,shape:()=>n})}deepPartial(){return Tc(this)}partial(e){const n={};for(const r of Tt.objectKeys(this.shape)){const a=this.shape[r];e&&!e[r]?n[r]=a:n[r]=a.optional()}return new An({...this._def,shape:()=>n})}required(e){const n={};for(const r of Tt.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof ji;)s=s._def.innerType;n[r]=s}return new An({...this._def,shape:()=>n})}keyof(){return AH(Tt.objectKeys(this.shape))}}An.create=(t,e)=>new An({shape:()=>t,unknownKeys:"strip",catchall:Yi.create(),typeName:Qe.ZodObject,...st(e)});An.strictCreate=(t,e)=>new An({shape:()=>t,unknownKeys:"strict",catchall:Yi.create(),typeName:Qe.ZodObject,...st(e)});An.lazycreate=(t,e)=>new An({shape:t,unknownKeys:"strip",catchall:Yi.create(),typeName:Qe.ZodObject,...st(e)});class L1 extends Et{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function a(s){for(const u of s)if(u.result.status==="valid")return u.result;for(const u of s)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const i=s.map(u=>new No(u.ctx.common.issues));return ke(n,{code:ge.invalid_union,unionErrors:i}),Xe}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(a);{let s;const i=[];for(const c of r){const f={...n,common:{...n.common,issues:[]},parent:null},h=c._parseSync({data:n.data,path:n.path,parent:f});if(h.status==="valid")return h;h.status==="dirty"&&!s&&(s={result:h,ctx:f}),f.common.issues.length&&i.push(f.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const u=i.map(c=>new No(c));return ke(n,{code:ge.invalid_union,unionErrors:u}),Xe}}get options(){return this._def.options}}L1.create=(t,e)=>new L1({options:t,typeName:Qe.ZodUnion,...st(e)});function y_(t,e){const n=Ai(t),r=Ai(e);if(t===e)return{valid:!0,data:t};if(n===Ie.object&&r===Ie.object){const a=Tt.objectKeys(e),s=Tt.objectKeys(t).filter(u=>a.indexOf(u)!==-1),i={...t,...e};for(const u of s){const c=y_(t[u],e[u]);if(!c.valid)return{valid:!1};i[u]=c.data}return{valid:!0,data:i}}else if(n===Ie.array&&r===Ie.array){if(t.length!==e.length)return{valid:!1};const a=[];for(let s=0;s<t.length;s++){const i=t[s],u=e[s],c=y_(i,u);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===Ie.date&&r===Ie.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class U1 extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),a=(s,i)=>{if(E9(s)||E9(i))return Xe;const u=y_(s.value,i.value);return u.valid?((_9(s)||_9(i))&&n.dirty(),{status:n.value,value:u.data}):(ke(r,{code:ge.invalid_intersection_types}),Xe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>a(s,i)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}U1.create=(t,e,n)=>new U1({left:t,right:e,typeName:Qe.ZodIntersection,...st(n)});class su extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ie.array)return ke(r,{code:ge.invalid_type,expected:Ie.array,received:r.parsedType}),Xe;if(r.data.length<this._def.items.length)return ke(r,{code:ge.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Xe;!this._def.rest&&r.data.length>this._def.items.length&&(ke(r,{code:ge.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,u)=>{const c=this._def.items[u]||this._def.rest;return c?c._parse(new Ki(r,i,r.path,u)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>da.mergeArray(n,i)):da.mergeArray(n,s)}get items(){return this._def.items}rest(e){return new su({...this._def,rest:e})}}su.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new su({items:t,typeName:Qe.ZodTuple,rest:null,...st(e)})};class N9 extends Et{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ie.map)return ke(r,{code:ge.invalid_type,expected:Ie.map,received:r.parsedType}),Xe;const a=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([u,c],f)=>({key:a._parse(new Ki(r,u,r.path,[f,"key"])),value:s._parse(new Ki(r,c,r.path,[f,"value"]))}));if(r.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const c of i){const f=await c.key,h=await c.value;if(f.status==="aborted"||h.status==="aborted")return Xe;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(f.value,h.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const c of i){const f=c.key,h=c.value;if(f.status==="aborted"||h.status==="aborted")return Xe;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(f.value,h.value)}return{status:n.value,value:u}}}}N9.create=(t,e,n)=>new N9({valueType:e,keyType:t,typeName:Qe.ZodMap,...st(n)});class ip extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ie.set)return ke(r,{code:ge.invalid_type,expected:Ie.set,received:r.parsedType}),Xe;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(ke(r,{code:ge.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(ke(r,{code:ge.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const s=this._def.valueType;function i(c){const f=new Set;for(const h of c){if(h.status==="aborted")return Xe;h.status==="dirty"&&n.dirty(),f.add(h.value)}return{status:n.value,value:f}}const u=[...r.data.values()].map((c,f)=>s._parse(new Ki(r,c,r.path,f)));return r.common.async?Promise.all(u).then(c=>i(c)):i(u)}min(e,n){return new ip({...this._def,minSize:{value:e,message:Ne.toString(n)}})}max(e,n){return new ip({...this._def,maxSize:{value:e,message:Ne.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}ip.create=(t,e)=>new ip({valueType:t,minSize:null,maxSize:null,typeName:Qe.ZodSet,...st(e)});class M9 extends Et{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}M9.create=(t,e)=>new M9({getter:t,typeName:Qe.ZodLazy,...st(e)});class b_ extends Et{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return ke(n,{received:n.data,code:ge.invalid_literal,expected:this._def.value}),Xe}return{status:"valid",value:e.data}}get value(){return this._def.value}}b_.create=(t,e)=>new b_({value:t,typeName:Qe.ZodLiteral,...st(e)});function AH(t,e){return new ud({values:t,typeName:Qe.ZodEnum,...st(e)})}class ud extends Et{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return ke(n,{expected:Tt.joinValues(r),received:n.parsedType,code:ge.invalid_type}),Xe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return ke(n,{received:n.data,code:ge.invalid_enum_value,options:r}),Xe}return Pa(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return ud.create(e,{...this._def,...n})}exclude(e,n=this._def){return ud.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}ud.create=AH;class P9 extends Et{_parse(e){const n=Tt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==Ie.string&&r.parsedType!==Ie.number){const a=Tt.objectValues(n);return ke(r,{expected:Tt.joinValues(a),received:r.parsedType,code:ge.invalid_type}),Xe}if(this._cache||(this._cache=new Set(Tt.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=Tt.objectValues(n);return ke(r,{received:r.data,code:ge.invalid_enum_value,options:a}),Xe}return Pa(e.data)}get enum(){return this._def.values}}P9.create=(t,e)=>new P9({values:t,typeName:Qe.ZodNativeEnum,...st(e)});class z1 extends Et{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==Ie.promise&&n.common.async===!1)return ke(n,{code:ge.invalid_type,expected:Ie.promise,received:n.parsedType}),Xe;const r=n.parsedType===Ie.promise?n.data:Promise.resolve(n.data);return Pa(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}z1.create=(t,e)=>new z1({type:t,typeName:Qe.ZodPromise,...st(e)});class cd extends Et{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),a=this._def.effect||null,s={addIssue:i=>{ke(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const i=a.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async u=>{if(n.value==="aborted")return Xe;const c=await this._def.schema._parseAsync({data:u,path:r.path,parent:r});return c.status==="aborted"?Xe:c.status==="dirty"||n.value==="dirty"?ph(c.value):c});{if(n.value==="aborted")return Xe;const u=this._def.schema._parseSync({data:i,path:r.path,parent:r});return u.status==="aborted"?Xe:u.status==="dirty"||n.value==="dirty"?ph(u.value):u}}if(a.type==="refinement"){const i=u=>{const c=a.refinement(u,s);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?Xe:(u.status==="dirty"&&n.dirty(),i(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>u.status==="aborted"?Xe:(u.status==="dirty"&&n.dirty(),i(u.value).then(()=>({status:n.value,value:u.value}))))}if(a.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!id(i))return Xe;const u=a.transform(i.value,s);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>id(i)?Promise.resolve(a.transform(i.value,s)).then(u=>({status:n.value,value:u})):Xe);Tt.assertNever(a)}}cd.create=(t,e,n)=>new cd({schema:t,typeName:Qe.ZodEffects,effect:e,...st(n)});cd.createWithPreprocess=(t,e,n)=>new cd({schema:e,effect:{type:"preprocess",transform:t},typeName:Qe.ZodEffects,...st(n)});class ji extends Et{_parse(e){return this._getType(e)===Ie.undefined?Pa(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ji.create=(t,e)=>new ji({innerType:t,typeName:Qe.ZodOptional,...st(e)});class dd extends Et{_parse(e){return this._getType(e)===Ie.null?Pa(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}dd.create=(t,e)=>new dd({innerType:t,typeName:Qe.ZodNullable,...st(e)});class S_ extends Et{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===Ie.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}S_.create=(t,e)=>new S_({innerType:t,typeName:Qe.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...st(e)});class w_ extends Et{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return P1(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new No(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new No(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}w_.create=(t,e)=>new w_({innerType:t,typeName:Qe.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...st(e)});class D9 extends Et{_parse(e){if(this._getType(e)!==Ie.nan){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.nan,received:r.parsedType}),Xe}return{status:"valid",value:e.data}}}D9.create=t=>new D9({typeName:Qe.ZodNaN,...st(t)});class Oke extends Et{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class nT extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Xe:s.status==="dirty"?(n.dirty(),ph(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Xe:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(e,n){return new nT({in:e,out:n,typeName:Qe.ZodPipeline})}}class x_ extends Et{_parse(e){const n=this._def.innerType._parse(e),r=a=>(id(a)&&(a.value=Object.freeze(a.value)),a);return P1(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}x_.create=(t,e)=>new x_({innerType:t,typeName:Qe.ZodReadonly,...st(e)});var Qe;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Qe||(Qe={}));const _r=wo.create;ru.create;au.create;const Nke=D1.create;ld.create;const TH=v_.create;Yi.create;Ts.create;const Td=An.create;L1.create;U1.create;su.create;const Mke=b_.create,Pke=ud.create;z1.create;ji.create;dd.create;const C4e={string:(t=>wo.create({...t,coerce:!0})),number:(t=>ru.create({...t,coerce:!0})),boolean:(t=>D1.create({...t,coerce:!0})),bigint:(t=>au.create({...t,coerce:!0})),date:(t=>ld.create({...t,coerce:!0}))},Dke=Pke(["match","properties","folder","rule","name","review","run"]),Lke=t=>{const e=Dke.safeParse(t);return e.success?e.data:void 0},Uke=Mke("search"),zke=t=>{const e=Uke.safeParse(t);return e.success?e.data:void 0},jke=TH().transform(zke),Fke=()=>$v({from:"/mail",select:t=>t.wizardFrom}),Bke=TH().transform(Lke),$ke=(t,e)=>vp(t,e)+1,RH=()=>$v({from:"/mail",select:t=>t.wizard}),Hke=()=>{const t=Ep();return _.useCallback((e,n)=>{t({to:".",search:r=>({...r,wizard:e,wizardFrom:n})})},[t])},E4e=()=>{const t=RH(),e=Hke(),[n,r]=_.useState("organize"),a=_.useCallback(i=>{r(i),e("match")},[e]),s=_.useCallback(()=>{e("properties","search")},[e]);return{verb:n,start:a,startFromSearch:s,isOpen:t!==void 0}},_4e=t=>{const e=Kr(),n=Ep(),r=RH(),a=Fke(),s=_.useRef(r!==void 0),i=_.useRef(a),u=_.useRef(void 0);_.useEffect(()=>{u.current=void 0},[r]),_.useEffect(()=>{if(!s.current)return;s.current=!1;const m=i.current;(async()=>(await n({to:".",search:g=>({...g,wizard:void 0,wizardFrom:void 0}),replace:!0}),await n({to:".",search:g=>({...g,wizard:t,wizardFrom:m})})))()},[t,n]);const c=_.useCallback(m=>{m===r||u.current===m||(u.current=m,n({to:".",search:g=>({...g,wizard:m})}))},[n,r]),f=_.useCallback(()=>{e.history.back()},[e]),h=_.useCallback((m,g)=>{e.history.go(-$ke(m,g))},[e]);return{step:r,goToStep:c,goBack:f,closeWizard:h}},qke=ev().apiUrl;Pe.setConfig({baseUrl:qke,fetch:SL});Pe.interceptors.error.use((t,e)=>{if(t instanceof qE||!e)return t;const n=t,r=n&&typeof n=="object"&&"message"in n?String(n.message):`Request failed with status ${e.status}`;return new qE(r,e.status,n)});const iE={Inbox:"inbox",Drafts:"drafts",Sent:"sent",Archive:"archive",Junk:"junk",Trash:"trash",All:"all",Flagged:"flagged"},k4e={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Junk",trash:"Trash",all:"All",flagged:"Flagged"},L9=["inbox","flagged","drafts","sent","archive","all","junk","trash"];function Wke(t){const e=new Map,n=[...t].sort((r,a)=>L9.indexOf(iE[r.role])-L9.indexOf(iE[a.role]));for(const r of n){if(!r.mailboxId||e.has(r.mailboxId))continue;const a=iE[r.role];a&&e.set(r.mailboxId,a)}return e}const Vke=t=>{const e=t.split("/");return e[e.length-1]||t};function A4e(t,e,n){const r=t.displayNameOverride?.trim();if(r)return r;const a=Vke(t.fullPath);return!e||!n?a:n(`sidebar.${e}`,a)}const Gke=new Set(["sent","drafts","trash"]),T4e=t=>t===void 0||!Gke.has(t),Kke=new Map;function R4e(t){const e=new Map;for(const n of t){const r=Wke(n.folderAppointments);for(const[a,s]of r)e.set(a,{role:s});for(const a of n.mailboxes){const s=r.get(a.mailboxId);e.set(a.mailboxId,{...s?{role:s}:{},providerPath:a.fullPath})}}return e}function I4e(t,e){const n=e[0];if(!t)return n?{mailboxId:n}:{};for(const a of e){const s=t.get(a);if(s&&Wne(s)!==void 0)return{mailboxId:a,folder:s}}if(!n)return{};const r=t.get(n);return{mailboxId:n,...r?{folder:r}:{}}}const Yke=_.createContext(null),O4e=()=>_.useContext(Yke)??{accounts:[],mailboxNameIndex:new Map,accountNameIndex:new Map,resultFolderIndex:Kke,searchQuery:"",searchInput:"",searchViewKey:"",onSearchChange:()=>{},onSearchClear:()=>{},onSearchClearQuery:()=>{},intelligenceOpen:!1,onToggleIntelligence:()=>{},onSetIntelligenceOpen:()=>{}},Zke=()=>zn(()=>import("./mail-C5gYU3Wn.js").then(t=>t.m),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])),Xke=Td({q:_r().optional(),wizard:Bke,wizardFrom:jke}),Qke=ur("/mail")({loader:({context:{queryClient:t}})=>{t.prefetchQuery(d_e()),t.prefetchQuery({...x_e(),staleTime:6e4})},component:Wn(Zke,"component"),validateSearch:Xke}),Jke=()=>zn(()=>import("./onboarding-Tw77yHgF.js"),__vite__mapDeps([16,17,3,5])),eAe=ur("/onboarding")({component:Wn(Jke,"component")});function tAe(){const t=H_e(),e=t?.surface.status==="ready"&&t.surface.section.status==="available";return C.jsx(Bre,{show:e,children:C.jsx(WJ,{className:"size-4"})})}const nAe=()=>zn(()=>import("./settings-CYzcIkDy.js"),[]),N4e=[{id:"accounts",label:"Accounts",icon:C.jsx(TL,{className:"size-4"})},{id:"senders",label:"Senders & Rules",icon:C.jsx(qJ,{className:"size-4"})},{id:"folders",label:"Folder roles",icon:C.jsx(PJ,{className:"size-4"})},{id:"filters",label:"Filters",icon:C.jsx(OJ,{className:"size-4"})},{id:"labels",label:"Labels",icon:C.jsx($J,{className:"size-4"})},{id:"appearance",label:"Appearance",icon:C.jsx(UJ,{className:"size-4"})},{id:"advanced",label:"Advanced",icon:C.jsx(tAe,{})}],M4e={accounts:"/settings/accounts",senders:"/settings/senders",folders:"/settings/folders",filters:"/settings/filters",labels:"/settings/labels",appearance:"/settings/appearance",advanced:"/settings/advanced"},rAe=ur("/settings")({component:Wn(nAe,"component")}),aAe=()=>zn(()=>import("./index-9nXytSEy.js"),__vite__mapDeps([18,9])),sAe=()=>zn(()=>import("./index-DtqBFgK5.js"),[]),oAe=Td({selectedMessageId:_r().optional(),selectedThreadId:_r().optional(),selectedMailboxId:_r().optional(),q:_r().optional()}),iAe=ur("/mail/")({component:Wn(sAe,"component"),validateSearch:oAe,errorComponent:Wn(aAe,"errorComponent")}),lAe=()=>zn(()=>import("./_mailboxId-DtqBFgK5.js"),[]),uAe=Td({selectedMessageId:_r().optional(),selectedThreadId:_r().optional(),q:_r().optional()}),cAe=ur("/mail/$mailboxId")({component:Wn(lAe,"component"),validateSearch:uAe}),dAe=()=>zn(()=>import("./flagged-C-GEyHjm.js"),__vite__mapDeps([19,9])),fAe=()=>zn(()=>import("./flagged-DtqBFgK5.js"),[]),hAe=Td({selectedMessageId:_r().optional(),q:_r().optional()}),pAe=ur("/mail/flagged")({component:Wn(fAe,"component"),validateSearch:hAe,errorComponent:Wn(dAe,"errorComponent")}),mAe=()=>zn(()=>import("./outbox-DtqBFgK5.js"),[]),gAe=Td({selectedOutboxMessageId:_r().optional(),q:_r().optional()}),vAe=ur("/mail/outbox")({component:Wn(mAe,"component"),validateSearch:gAe}),yAe=()=>zn(()=>import("./index-VtPj5yVn.js"),[]),bAe=ur("/settings/")({component:Wn(yAe,"component")}),SAe=()=>zn(()=>import("./accounts-DhTQAW84.js"),__vite__mapDeps([20,6,21,2,17,3,5,12,9,10])),wAe=Td({editAccountId:_r().optional(),focusSmtp:Nke().optional(),connected:_r().optional(),oauthError:_r().optional()}),xAe=ur("/settings/accounts")({component:Wn(SAe,"component"),validateSearch:wAe}),CAe=()=>zn(()=>import("./advanced-T1USmwbt.js"),__vite__mapDeps([22,21,2,12,4,15])),EAe=ur("/settings/advanced")({component:Wn(CAe,"component")}),_Ae=()=>zn(()=>import("./appearance-HxmtBphn.js"),__vite__mapDeps([23,21,2])),kAe=ur("/settings/appearance")({component:Wn(_Ae,"component")}),AAe=()=>zn(()=>import("./filters-DvBwrQoM.js"),__vite__mapDeps([24,21,2,8,11,13,15,9])),TAe=ur("/settings/filters")({component:Wn(AAe,"component")}),RAe=()=>zn(()=>import("./folders--i3KprM0.js"),__vite__mapDeps([25,1,21,2,11,9])),IAe=ur("/settings/folders")({component:Wn(RAe,"component")}),OAe=()=>zn(()=>import("./labels-CVh5IQqs.js"),__vite__mapDeps([26,21,2,14,9,13])),NAe=ur("/settings/labels")({component:Wn(OAe,"component")}),MAe=()=>zn(()=>import("./senders-CVxr8qGf.js"),__vite__mapDeps([27,3,21,2,9,7,10])),PAe=ur("/settings/senders")({component:Wn(MAe,"component")}),DAe=()=>zn(()=>import("./suggested-vips-ce9dYb3K.js"),[]),LAe=ur("/settings/suggested-vips")({component:Wn(DAe,"component")}),UAe=ske.update({id:"/",path:"/",getParentRoute:()=>Np}),Mp=Qke.update({id:"/mail",path:"/mail",getParentRoute:()=>Np}),zAe=eAe.update({id:"/onboarding",path:"/onboarding",getParentRoute:()=>Np}),js=rAe.update({id:"/settings",path:"/settings",getParentRoute:()=>Np}),jAe=iAe.update({id:"/",path:"/",getParentRoute:()=>Mp}),FAe=cAe.update({id:"/$mailboxId",path:"/$mailboxId",getParentRoute:()=>Mp}),BAe=pAe.update({id:"/flagged",path:"/flagged",getParentRoute:()=>Mp}),$Ae=vAe.update({id:"/outbox",path:"/outbox",getParentRoute:()=>Mp}),HAe=bAe.update({id:"/",path:"/",getParentRoute:()=>js}),qAe=xAe.update({id:"/accounts",path:"/accounts",getParentRoute:()=>js}),WAe=EAe.update({id:"/advanced",path:"/advanced",getParentRoute:()=>js}),VAe=kAe.update({id:"/appearance",path:"/appearance",getParentRoute:()=>js}),GAe=TAe.update({id:"/filters",path:"/filters",getParentRoute:()=>js}),KAe=IAe.update({id:"/folders",path:"/folders",getParentRoute:()=>js}),YAe=NAe.update({id:"/labels",path:"/labels",getParentRoute:()=>js}),ZAe=PAe.update({id:"/senders",path:"/senders",getParentRoute:()=>js}),XAe=LAe.update({id:"/suggested-vips",path:"/suggested-vips",getParentRoute:()=>js}),QAe={MailMailboxIdRoute:FAe,MailFlaggedRoute:BAe,MailOutboxRoute:$Ae,MailIndexRoute:jAe},JAe=Mp._addFileChildren(QAe),eTe={SettingsAccountsRoute:qAe,SettingsAdvancedRoute:WAe,SettingsAppearanceRoute:VAe,SettingsFiltersRoute:GAe,SettingsFoldersRoute:KAe,SettingsLabelsRoute:YAe,SettingsSendersRoute:ZAe,SettingsSuggestedVipsRoute:XAe,SettingsIndexRoute:HAe},tTe=js._addFileChildren(eTe),nTe={IndexRoute:UAe,MailRoute:JAe,OnboardingRoute:zAe,SettingsRoute:tTe},rTe=Np._addFileChildren(nTe)._addFileTypes(),aTe=(t,e)=>{const n=W1e({routeTree:rTe,context:{queryClient:t},defaultPreload:"intent"});return n.subscribe("onResolved",r=>{e.recordPageView(r.toLocation.pathname),yae(r.toLocation.pathname)}),n},Ve=t=>typeof t=="string",eh=()=>{let t,e;const n=new Promise((r,a)=>{t=r,e=a});return n.resolve=t,n.reject=e,n},U9=t=>t==null?"":""+t,sTe=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},oTe=/###/g,z9=t=>t&&t.indexOf("###")>-1?t.replace(oTe,"."):t,j9=t=>!t||Ve(t),Rh=(t,e,n)=>{const r=Ve(e)?e.split("."):e;let a=0;for(;a<r.length-1;){if(j9(t))return{};const s=z9(r[a]);!t[s]&&n&&(t[s]=new n),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={},++a}return j9(t)?{}:{obj:t,k:z9(r[a])}},F9=(t,e,n)=>{const{obj:r,k:a}=Rh(t,e,Object);if(r!==void 0||e.length===1){r[a]=n;return}let s=e[e.length-1],i=e.slice(0,e.length-1),u=Rh(t,i,Object);for(;u.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),u=Rh(t,i,Object),u?.obj&&typeof u.obj[`${u.k}.${s}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${s}`]=n},iTe=(t,e,n,r)=>{const{obj:a,k:s}=Rh(t,e,Object);a[s]=a[s]||[],a[s].push(n)},j1=(t,e)=>{const{obj:n,k:r}=Rh(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},lTe=(t,e,n)=>{const r=j1(t,n);return r!==void 0?r:j1(e,n)},IH=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?Ve(t[r])||t[r]instanceof String||Ve(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):IH(t[r],e[r],n):t[r]=e[r]);return t},gc=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var uTe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const cTe=t=>Ve(t)?t.replace(/[&<>"'\/]/g,e=>uTe[e]):t;class dTe{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const fTe=[" ",",","?","!",";"],hTe=new dTe(20),pTe=(t,e,n)=>{e=e||"",n=n||"";const r=fTe.filter(i=>e.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=hTe.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!a.test(t);if(!s){const i=t.indexOf(n);i>0&&!a.test(t.substring(0,i))&&(s=!0)}return s},C_=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let a=t;for(let s=0;s<r.length;){if(!a||typeof a!="object")return;let i,u="";for(let c=s;c<r.length;++c)if(c!==s&&(u+=n),u+=r[c],i=a[u],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<r.length-1)continue;s+=c-s+1;break}a=i}return a},F1=t=>t?.replace("_","-"),mTe={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class B1{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||mTe,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,a){return a&&!this.debug?null:(Ve(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new B1(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new B1(this.logger,e)}}var As=new B1;class ly{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(i=>{let[u,c]=i;for(let f=0;f<c;f++)u(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[u,c]=i;for(let f=0;f<c;f++)u.apply(u,[e,...r])})}}class B9 extends ly{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;e.indexOf(".")>-1?u=e.split("."):(u=[e,n],r&&(Array.isArray(r)?u.push(...r):Ve(r)&&s?u.push(...r.split(s)):u.push(r)));const c=j1(this.data,u);return!c&&!n&&!r&&e.indexOf(".")>-1&&(e=u[0],n=u[1],r=u.slice(2).join(".")),c||!i||!Ve(r)?c:C_(this.data?.[e]?.[n],r,s)}addResource(e,n,r,a){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let u=[e,n];r&&(u=u.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(u=e.split("."),a=n,n=u[1]),this.addNamespaces(n),F9(this.data,u,a),s.silent||this.emit("added",e,n,r,a)}addResources(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(Ve(r[s])||Array.isArray(r[s]))&&this.addResource(e,n,s,r[s],{silent:!0});a.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[e,n];e.indexOf(".")>-1&&(u=e.split("."),a=r,r=n,n=u[1]),this.addNamespaces(n);let c=j1(this.data,u)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?IH(c,r,s):c={...c,...r},F9(this.data,u,c),i.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var OH={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,a){return t.forEach(s=>{e=this.processors[s]?.process(e,n,r,a)??e}),e}};const $9={},H9=t=>!Ve(t)&&typeof t!="boolean"&&typeof t!="number";class $1 extends ly{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),sTe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=As.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};return e==null?!1:this.resolve(e,n)?.res!==void 0}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const i=r&&e.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!pTe(e,r,a);if(i&&!u){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:Ve(s)?[s]:s};const f=e.split(r);(r!==a||r===a&&this.options.ns.indexOf(f[0])>-1)&&(s=f.shift()),e=f.join(a)}return{key:e,namespaces:Ve(s)?[s]:s}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:u}=this.extractFromKey(e[e.length-1],n),c=u[u.length-1],f=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode"){if(h){const z=n.nsSeparator||this.options.nsSeparator;return a?{res:`${c}${z}${i}`,usedKey:i,exactUsedKey:i,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${z}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:i}const m=this.resolve(e,n);let g=m?.res;const y=m?.usedKey||i,S=m?.exactUsedKey||i,w=["[object Number]","[object Function]","[object RegExp]"],x=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,k=n.count!==void 0&&!Ve(n.count),A=$1.hasDefaultValue(n),R=k?this.pluralResolver.getSuffix(f,n.count,n):"",N=n.ordinal&&k?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",O=k&&!n.ordinal&&n.count===0,I=O&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${N}`]||n.defaultValue;let P=g;E&&!g&&A&&(P=I);const U=H9(P),H=Object.prototype.toString.apply(P);if(E&&P&&U&&w.indexOf(H)<0&&!(Ve(x)&&Array.isArray(P))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,P,{...n,ns:u}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(m.res=z,m.usedParams=this.getUsedParamsDetails(n),m):z}if(s){const z=Array.isArray(P),j=z?[]:{},$=z?S:y;for(const Z in P)if(Object.prototype.hasOwnProperty.call(P,Z)){const J=`${$}${s}${Z}`;A&&!g?j[Z]=this.translate(J,{...n,defaultValue:H9(I)?I[Z]:void 0,joinArrays:!1,ns:u}):j[Z]=this.translate(J,{...n,joinArrays:!1,ns:u}),j[Z]===J&&(j[Z]=P[Z])}g=j}}else if(E&&Ve(x)&&Array.isArray(g))g=g.join(x),g&&(g=this.extendTranslation(g,e,n,r));else{let z=!1,j=!1;!this.isValidLookup(g)&&A&&(z=!0,g=I),this.isValidLookup(g)||(j=!0,g=i);const Z=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:g,J=A&&I!==g&&this.options.updateMissing;if(j||z||J){if(this.logger.log(J?"updateKey":"missingKey",f,c,i,J?I:g),s){const he=this.resolve(i,{...n,keySeparator:!1});he&&he.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let q=[];const X=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&X&&X[0])for(let he=0;he<X.length;he++)q.push(X[he]);else this.options.saveMissingTo==="all"?q=this.languageUtils.toResolveHierarchy(n.lng||this.language):q.push(n.lng||this.language);const ae=(he,xe,D)=>{const Y=A&&D!==g?D:Z;this.options.missingKeyHandler?this.options.missingKeyHandler(he,c,xe,Y,J,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(he,c,xe,Y,J,n),this.emit("missingKey",he,c,xe,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?q.forEach(he=>{const xe=this.pluralResolver.getSuffixes(he,n);O&&n[`defaultValue${this.options.pluralSeparator}zero`]&&xe.indexOf(`${this.options.pluralSeparator}zero`)<0&&xe.push(`${this.options.pluralSeparator}zero`),xe.forEach(D=>{ae([he],i+D,n[`defaultValue${D}`]||I)})}):ae(q,i,I))}g=this.extendTranslation(g,e,n,m,r),j&&g===i&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${i}`),(j||z)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,z?g:void 0))}return a?(m.res=g,m.usedParams=this.getUsedParamsDetails(n),m):g}extendTranslation(e,n,r,a,s){var i=this;if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=Ve(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(f){const g=e.match(this.interpolator.nestingRegexp);h=g&&g.length}let m=r.replace&&!Ve(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),e=this.interpolator.interpolate(e,m,r.lng||this.language||a.usedLng,r),f){const g=e.match(this.interpolator.nestingRegexp),y=g&&g.length;h<y&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var g=arguments.length,y=new Array(g),S=0;S<g;S++)y[S]=arguments[S];return s?.[0]===y[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`),null):i.translate(...y,n)},r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,c=Ve(u)?[u]:u;return e!=null&&c?.length&&r.applyPostProcessor!==!1&&(e=OH.handle(c,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,s,i,u;return Ve(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(c,n),h=f.key;a=h;let m=f.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=n.count!==void 0&&!Ve(n.count),y=g&&!n.ordinal&&n.count===0,S=n.context!==void 0&&(Ve(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(x=>{this.isValidLookup(r)||(u=x,!$9[`${w[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(u)&&($9[`${w[0]}-${x}`]=!0,this.logger.warn(`key "${a}" for languages "${w.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(E=>{if(this.isValidLookup(r))return;i=E;const k=[h];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(k,h,E,x,n);else{let R;g&&(R=this.pluralResolver.getSuffix(E,n.count,n));const N=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(k.push(h+R),n.ordinal&&R.indexOf(O)===0&&k.push(h+R.replace(O,this.options.pluralSeparator)),y&&k.push(h+N)),S){const I=`${h}${this.options.contextSeparator}${n.context}`;k.push(I),g&&(k.push(I+R),n.ordinal&&R.indexOf(O)===0&&k.push(I+R.replace(O,this.options.pluralSeparator)),y&&k.push(I+N))}}let A;for(;A=k.pop();)this.isValidLookup(r)||(s=A,r=this.getResource(E,x,A,n))}))})}),{res:r,usedKey:a,exactUsedKey:s,usedLng:i,usedNS:u}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,r,a):this.resourceStore.getResource(e,n,r,a)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!Ve(e.replace);let a=r?e.replace:e;if(r&&typeof e.count<"u"&&(a.count=e.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const s of n)delete a[s]}return a}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}class q9{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=As.create("languageUtils")}getScriptPartFromCode(e){if(e=F1(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=F1(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Ve(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),Ve(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),a=[],s=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return Ve(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):Ve(e)&&s(this.formatLanguageCode(e)),r.forEach(i=>{a.indexOf(i)<0&&s(this.formatLanguageCode(i))}),a}}const W9={zero:0,one:1,two:2,few:3,many:4,other:5},V9={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class gTe{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=As.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=F1(e==="dev"?"en":e),a=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:a});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let i;try{i=new Intl.PluralRules(r,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),V9;if(!e.match(/-|_/))return V9;const c=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(c,n)}return this.pluralRulesCache[s]=i,i}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(a=>`${n}${a}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,s)=>W9[a]-W9[s]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(e,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const G9=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=lTe(t,e,n);return!s&&a&&Ve(n)&&(s=C_(t,n,r),s===void 0&&(s=C_(e,n,r))),s},lE=t=>t.replace(/\$/g,"$$$$");class vTe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=As.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:s,prefixEscaped:i,suffix:u,suffixEscaped:c,formatSeparator:f,unescapeSuffix:h,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:y,nestingSuffix:S,nestingSuffixEscaped:w,nestingOptionsSeparator:x,maxReplaces:E,alwaysFormat:k}=e.interpolation;this.escape=n!==void 0?n:cTe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=s?gc(s):i||"{{",this.suffix=u?gc(u):c||"}}",this.formatSeparator=f||",",this.unescapePrefix=h?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=g?gc(g):y||gc("$t("),this.nestingSuffix=S?gc(S):w||gc(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=E||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,a){let s,i,u;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=y=>{if(y.indexOf(this.formatSeparator)<0){const E=G9(n,c,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,r,{...a,...n,interpolationkey:y}):E}const S=y.split(this.formatSeparator),w=S.shift().trim(),x=S.join(this.formatSeparator).trim();return this.format(G9(n,c,w,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,{...a,...n,interpolationkey:w})};this.resetRegExp();const h=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>lE(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?lE(this.escape(y)):lE(y)}].forEach(y=>{for(u=0;s=y.regex.exec(e);){const S=s[1].trim();if(i=f(S),i===void 0)if(typeof h=="function"){const x=h(e,s,a);i=Ve(x)?x:""}else if(a&&Object.prototype.hasOwnProperty.call(a,S))i="";else if(m){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${e}`),i="";else!Ve(i)&&!this.useRawValueToEscape&&(i=U9(i));const w=y.safeValue(i);if(e=e.replace(s[0],w),m?(y.regex.lastIndex+=i.length,y.regex.lastIndex-=s[0].length):y.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,i;const u=(c,f)=>{const h=this.nestingOptionsSeparator;if(c.indexOf(h)<0)return c;const m=c.split(new RegExp(`${h}[ ]*{`));let g=`{${m[1]}`;c=m[0],g=this.interpolate(g,i);const y=g.match(/'/g),S=g.match(/"/g);((y?.length??0)%2===0&&!S||S.length%2!==0)&&(g=g.replace(/'/g,'"'));try{i=JSON.parse(g),f&&(i={...f,...i})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,w),`${c}${h}${g}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;a=this.nestingRegexp.exec(e);){let c=[];i={...r},i=i.replace&&!Ve(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const h=a[1].split(this.formatSeparator).map(m=>m.trim());a[1]=h.shift(),c=h,f=!0}if(s=n(u.call(this,a[1].trim(),i),i),s&&a[0]===e&&!Ve(s))return s;Ve(s)||(s=U9(s)),s||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`),s=""),f&&(s=c.reduce((h,m)=>this.format(h,m,r.lng,{...r,interpolationkey:a[1].trim()}),s.trim())),e=e.replace(a[0],s),this.regexp.lastIndex=0}return e}}const yTe=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);e==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):e==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[u,...c]=i.split(":"),f=c.join(":").trim().replace(/^'+|'+$/g,""),h=u.trim();n[h]||(n[h]=f),f==="false"&&(n[h]=!1),f==="true"&&(n[h]=!0),isNaN(f)||(n[h]=parseInt(f,10))}})}return{formatName:e,formatOptions:n}},vc=t=>{const e={};return(n,r,a)=>{let s=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(s={...s,[a.interpolationkey]:void 0});const i=r+JSON.stringify(s);let u=e[i];return u||(u=t(F1(r),a),e[i]=u),u(n)}};class bTe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=As.create("formatter"),this.options=e,this.formats={number:vc((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return s=>a.format(s)}),currency:vc((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>a.format(s)}),datetime:vc((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return s=>a.format(s)}),relativetime:vc((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return s=>a.format(s,r.range||"day")}),list:vc((n,r)=>{const a=new Intl.ListFormat(n,{...r});return s=>a.format(s)})},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=vc(n)}format(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(u=>u.indexOf(")")>-1)){const u=s.findIndex(c=>c.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,u)].join(this.formatSeparator)}return s.reduce((u,c)=>{const{formatName:f,formatOptions:h}=yTe(c);if(this.formats[f]){let m=u;try{const g=a?.formatParams?.[a.interpolationkey]||{},y=g.locale||g.lng||a.locale||a.lng||r;m=this.formats[f](u,y,{...h,...a,...g})}catch(g){this.logger.warn(g)}return m}else this.logger.warn(`there was no format function for ${f}`);return u},e)}}const STe=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class wTe extends ly{constructor(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=As.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,a.backend,a)}queueLoad(e,n,r,a){const s={},i={},u={},c={};return e.forEach(f=>{let h=!0;n.forEach(m=>{const g=`${f}|${m}`;!r.reload&&this.store.hasResourceBundle(f,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?i[g]===void 0&&(i[g]=!0):(this.state[g]=1,h=!1,i[g]===void 0&&(i[g]=!0),s[g]===void 0&&(s[g]=!0),c[m]===void 0&&(c[m]=!0)))}),h||(u[f]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(c)}}loaded(e,n,r){const a=e.split("|"),s=a[0],i=a[1];n&&this.emit("failedLoading",s,i,n),!n&&r&&this.store.addResourceBundle(s,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const u={};this.queue.forEach(c=>{iTe(c.loaded,[s],i),STe(c,e),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(f=>{u[f]||(u[f]={});const h=c.loaded[f];h.length&&h.forEach(m=>{u[f][m]===void 0&&(u[f][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(c=>!c.done)}read(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:a,wait:s,callback:i});return}this.readingCalls++;const u=(f,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(f&&h&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,a+1,s*2,i)},s);return}i(f,h)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const f=c(e,n);f&&typeof f.then=="function"?f.then(h=>u(null,h)).catch(u):u(null,f)}catch(f){u(f)}return}return c(e,n,u)}prepareLoading(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Ve(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Ve(n)&&(n=[n]);const s=this.queueLoad(e,n,r,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),a=r[0],s=r[1];this.read(a,s,"read",void 0,void 0,(i,u)=>{i&&this.logger.warn(`${n}loading namespace ${s} for language ${a} failed`,i),!i&&u&&this.logger.log(`${n}loaded namespace ${s} for language ${a}`,u),this.loaded(e,i,u)})}saveMissing(e,n,r,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const c={...i,isUpdate:s},f=this.backend.create.bind(this.backend);if(f.length<6)try{let h;f.length===5?h=f(e,n,r,a,c):h=f(e,n,r,a),h&&typeof h.then=="function"?h.then(m=>u(null,m)).catch(u):u(null,h)}catch(h){u(h)}else f(e,n,r,a,u,c)}!e||!e[0]||this.store.addResource(e[0],n,r,a)}}}const K9=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Ve(t[1])&&(e.defaultValue=t[1]),Ve(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Y9=t=>(Ve(t.ns)&&(t.ns=[t.ns]),Ve(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Ve(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),Jg=()=>{},xTe=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class lp extends ly{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Y9(e),this.services={},this.logger=As,this.modules={external:[]},xTe(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(Ve(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=K9();this.options={...a,...this.options,...Y9(n)},this.options.interpolation={...a.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const s=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?As.init(s(this.modules.logger),this.options):As.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=bTe;const m=new q9(this.options);this.store=new B9(this.options.resources,this.options);const g=this.services;g.logger=As,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new gTe(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(g.formatter=s(h),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new vTe(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new wTe(s(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(y){for(var S=arguments.length,w=new Array(S>1?S-1:0),x=1;x<S;x++)w[x-1]=arguments[x];e.emit(y,...w)}),this.modules.languageDetector&&(g.languageDetector=s(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=s(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new $1(this.services,this.options),this.translator.on("*",function(y){for(var S=arguments.length,w=new Array(S>1?S-1:0),x=1;x<S;x++)w[x-1]=arguments[x];e.emit(y,...w)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Jg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=function(){return e.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return e.store[h](...arguments),e}});const c=eh(),f=()=>{const h=(m,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(g),r(m,g)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),c}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jg;const a=Ve(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(a?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],i=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload?.forEach?.(u=>i(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(e,n,r){const a=eh();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=Jg),this.services.backendConnector.reload(e,n,s=>{a.resolve(),r(s)}),a}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&OH.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(e,n){var r=this;this.isLanguageChangingTo=e;const a=eh();this.emit("languageChanging",e);const s=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,f)=>{f?(s(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},u=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);const f=Ve(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);f&&(this.language||s(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector?.cacheUserLanguage?.(f)),this.loadResources(f,h=>{i(h,f)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(e),a}getFixedT(e,n,r){var a=this;const s=function(i,u){let c;if(typeof u!="object"){for(var f=arguments.length,h=new Array(f>2?f-2:0),m=2;m<f;m++)h[m-2]=arguments[m];c=a.options.overloadTranslationOptionHandler([i,u].concat(h))}else c={...u};c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||s.keyPrefix);const g=a.options.keySeparator||".";let y;return c.keyPrefix&&Array.isArray(i)?y=i.map(S=>`${c.keyPrefix}${g}${S}`):y=c.keyPrefix?`${c.keyPrefix}${g}${i}`:i,a.t(y,c)};return Ve(e)?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=r,s}t(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.translator?.translate(...n)}exists(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.translator?.exists(...n)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(u,c)=>{const f=this.services.backendConnector.state[`${u}|${c}`];return f===-1||f===0||f===2};if(n.precheck){const u=n.precheck(this,i);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!a||i(s,e)))}loadNamespaces(e,n){const r=eh();return this.options.ns?(Ve(e)&&(e=[e]),e.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=eh();Ve(e)&&(e=[e]);const a=this.options.preload||[],s=e.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=a.concat(s),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new q9(K9());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new lp(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jg;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const a={...this.options,...e,isClone:!0},s=new lp(a);if((e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(u=>{s[u]=this[u]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const u=Object.keys(this.store.data).reduce((c,f)=>(c[f]={...this.store.data[f]},Object.keys(c[f]).reduce((h,m)=>(h[m]={...c[f][m]},h),{})),{});s.store=new B9(u,a),s.services.resourceStore=s.store}return s.translator=new $1(s.services,a),s.translator.on("*",function(u){for(var c=arguments.length,f=new Array(c>1?c-1:0),h=1;h<c;h++)f[h-1]=arguments[h];s.emit(u,...f)}),s.init(a,n),s.translator.options=a,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const mr=lp.createInstance();mr.createInstance=lp.createInstance;mr.createInstance;mr.dir;mr.init;mr.loadResources;mr.reloadResources;mr.use;mr.changeLanguage;mr.getFixedT;mr.t;mr.exists;mr.setDefaultNamespace;mr.hasLoadedNamespace;mr.loadNamespaces;mr.loadLanguages;const{slice:CTe,forEach:ETe}=[];function _Te(t){return ETe.call(CTe.call(arguments,1),e=>{if(e)for(const n in e)t[n]===void 0&&(t[n]=e[n])}),t}function kTe(t){return typeof t!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(t))}const Z9=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,ATe=function(t,e){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},a=encodeURIComponent(e);let s=`${t}=${a}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!Z9.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!Z9.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s},X9={create(t,e,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=ATe(t,e,a)},read(t){const e=`${t}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(e)===0)return a.substring(e.length,a.length)}return null},remove(t,e){this.create(t,"",-1,e)}};var TTe={name:"cookie",lookup(t){let{lookupCookie:e}=t;if(e&&typeof document<"u")return X9.read(e)||void 0},cacheUserLanguage(t,e){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:s}=e;n&&typeof document<"u"&&X9.create(n,t,r,a,s)}},RTe={name:"querystring",lookup(t){let{lookupQuerystring:e}=t,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const s=r.substring(1).split("&");for(let i=0;i<s.length;i++){const u=s[i].indexOf("=");u>0&&s[i].substring(0,u)===e&&(n=s[i].substring(u+1))}}return n}},ITe={name:"hash",lookup(t){let{lookupHash:e,lookupFromHashIndex:n}=t,r;if(typeof window<"u"){const{hash:a}=window.location;if(a&&a.length>2){const s=a.substring(1);if(e){const i=s.split("&");for(let u=0;u<i.length;u++){const c=i[u].indexOf("=");c>0&&i[u].substring(0,c)===e&&(r=i[u].substring(c+1))}}if(r)return r;if(!r&&n>-1){const i=a.match(/\/([a-zA-Z-]*)/g);return Array.isArray(i)?i[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let yc=null;const Q9=()=>{if(yc!==null)return yc;try{if(yc=typeof window<"u"&&window.localStorage!==null,!yc)return!1;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{yc=!1}return yc};var OTe={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&Q9())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:n}=e;n&&Q9()&&window.localStorage.setItem(n,t)}};let bc=null;const J9=()=>{if(bc!==null)return bc;try{if(bc=typeof window<"u"&&window.sessionStorage!==null,!bc)return!1;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{bc=!1}return bc};var NTe={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&J9())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:n}=e;n&&J9()&&window.sessionStorage.setItem(n,t)}},MTe={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let s=0;s<n.length;s++)e.push(n[s]);r&&e.push(r),a&&e.push(a)}return e.length>0?e:void 0}},PTe={name:"htmlTag",lookup(t){let{htmlTag:e}=t,n;const r=e||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},DTe={name:"path",lookup(t){let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof e=="number"?e:0]?.replace("/",""):void 0}},LTe={name:"subdomain",lookup(t){let{lookupFromSubdomainIndex:e}=t;const n=typeof e=="number"?e+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let NH=!1;try{document.cookie,NH=!0}catch{}const MH=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];NH||MH.splice(1,1);const UTe=()=>({order:MH,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t});class PH{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,n)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=_Te(n,this.options||{},UTe()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(TTe),this.addDetector(RTe),this.addDetector(OTe),this.addDetector(NTe),this.addDetector(MTe),this.addDetector(PTe),this.addDetector(DTe),this.addDetector(LTe),this.addDetector(ITe)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return e.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.filter(r=>r!=null&&!kTe(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(e,this.options)}))}}PH.type="languageDetector";function zTe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=jTe(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(f){throw f},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
294
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,i=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var f=n.next();return i=f.done,f},e:function(f){u=!0,s=f},f:function(){try{i||n.return==null||n.return()}finally{if(u)throw s}}}}function jTe(t,e){if(t){if(typeof t=="string")return eD(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eD(t,e):void 0}}function eD(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function E_(t){"@babel/helpers - typeof";return E_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E_(t)}var DH=["__proto__","constructor","prototype"];function LH(t){return!(typeof t!="string"||t.length===0||t.length>128||DH.indexOf(t)>-1||t.indexOf("..")>-1||t.indexOf("\\")>-1||/[?#%\s@]/.test(t)||/[\x00-\x1F\x7F]/.test(t))}function UH(t){return!(!LH(t)||t.indexOf("/")>-1)}function FTe(t){return LH(t)}var BTe={lng:UH,ns:FTe};function e0(t){return typeof t!="string"?t:t.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function $Te(t){if(typeof t!="string"||t.length===0)return t;try{var e=new URL(t);return e.username||e.password?(e.username="",e.password="",e.toString()):t}catch{return t.replace(/(\/\/)[^/@\s]+@/g,"$1")}}function zH(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":E_(XMLHttpRequest))==="object"}function HTe(t){return!!t&&typeof t.then=="function"}function qTe(t){return HTe(t)?t:Promise.resolve(t)}var WTe=/\{\{(.+?)\}\}/g;function tD(t,e){var n=!1,r=t.replace(WTe,function(a,s){var i=s.trim();if(DH.indexOf(i)>-1)return a;var u=e[i];if(u==null)return a;var c=BTe[i]||UH,f=String(u).split("+"),h=zTe(f),m;try{for(h.s();!(m=h.n()).done;){var g=m.value;if(!c(g))return n=!0,a}}catch(y){h.e(y)}finally{h.f()}return f.join("+")});return n?null:r}function nD(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function rD(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nD(Object(n),!0).forEach(function(r){VTe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nD(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function VTe(t,e,n){return(e=GTe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function GTe(t){var e=KTe(t,"string");return ou(e)=="symbol"?e:e+""}function KTe(t,e){if(ou(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ou(t){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ou(t)}var Zi=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?Zi=global.fetch:typeof window<"u"&&window.fetch&&(Zi=window.fetch);var up;zH()&&(typeof global<"u"&&global.XMLHttpRequest?up=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(up=window.XMLHttpRequest));var H1;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?H1=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(H1=window.ActiveXObject));typeof Zi!="function"&&(Zi=void 0);if(!Zi&&!up&&!H1)try{zn(()=>import("./browser-ponyfill-vZmAO0yp.js").then(t=>t.b),[]).then(function(t){Zi=t.default}).catch(function(){})}catch{}var jH=["__proto__","constructor","prototype"],__=function(e,n){if(n&&ou(n)==="object"){for(var r="",a=0,s=Object.keys(n);a<s.length;a++){var i=s[a];jH.indexOf(i)>-1||(r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]))}if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},aD=function(e,n,r,a){var s=function(c){if(!c.ok)return r(c.statusText||"Error",{status:c.status});c.text().then(function(f){r(null,{status:c.status,data:f})}).catch(r)};if(a){var i=a(e,n);if(i instanceof Promise){i.then(s).catch(r);return}}typeof fetch=="function"?fetch(e,n).then(s).catch(r):Zi(e,n).then(s).catch(r)},YTe=function(e,n,r,a){e.queryStringParams&&(n=__(n,e.queryStringParams));var s=rD({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(s["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(s["Content-Type"]="application/json");var i=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,u=rD({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:s},e._omitFetchOptions?{}:i),c=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{aD(n,u,a,c)}catch(f){if(!i||Object.keys(i).length===0||!f.message||f.message.indexOf("not implemented")<0)return a(f);try{Object.keys(i).forEach(function(h){delete u[h]}),aD(n,u,a,c),e._omitFetchOptions=!0}catch(h){a(h)}}},ZTe=function(e,n,r,a){r&&ou(r)==="object"&&(r=__("",r).slice(1)),e.queryStringParams&&(n=__(n,e.queryStringParams));try{var s=up?new up:new H1("MSXML2.XMLHTTP.3.0");s.open(r?"POST":"GET",n,1),e.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!e.withCredentials,r&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var i=e.customHeaders;if(i=typeof i=="function"?i():i,i)for(var u=0,c=Object.keys(i);u<c.length;u++){var f=c[u];jH.indexOf(f)>-1||s.setRequestHeader(f,i[f])}s.onreadystatechange=function(){s.readyState>3&&a(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(r)}catch(h){console&&console.log(h)}},XTe=function(e,n,r,a){if(typeof r=="function"&&(a=r,r=void 0),a=a||function(){},Zi&&n.indexOf("file:")!==0)return YTe(e,n,r,a);if(zH()||typeof ActiveXObject=="function")return ZTe(e,n,r,a);a(new Error("No fetch and no xhr implementation found!"))};function fd(t){"@babel/helpers - typeof";return fd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fd(t)}function sD(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function uE(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sD(Object(n),!0).forEach(function(r){FH(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sD(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function QTe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JTe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,BH(r.key),r)}}function eRe(t,e,n){return e&&JTe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function FH(t,e,n){return(e=BH(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function BH(t){var e=tRe(t,"string");return fd(e)=="symbol"?e:e+""}function tRe(t,e){if(fd(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(fd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var nRe=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,a){return FH({},r,a||"")},parseLoadPayload:function(n,r){},request:XTe,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},$H=(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};QTe(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return eRe(t,[{key:"init",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=uE(uE(uE({},nRe()),this.options||{}),a),this.allOptions=s,this.services&&this.options.reloadInterval){var i=setInterval(function(){return r.reload()},this.options.reloadInterval);fd(i)==="object"&&typeof i.unref=="function"&&i.unref()}}},{key:"readMulti",value:function(n,r,a){this._readAny(n,n,r,r,a)}},{key:"read",value:function(n,r,a){this._readAny([n],n,[r],r,a)}},{key:"_readAny",value:function(n,r,a,s,i){var u=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,a)),c=qTe(c),c.then(function(f){if(!f)return i(null,{});var h=tD(f,{lng:n.join("+"),ns:a.join("+")});if(h==null){var m=n.map(e0).join(", "),g=a.map(e0).join(", ");return i(new Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+m+"] namespaces=["+g+"]"),!1)}u.loadUrl(h,i,r,s)})}},{key:"loadUrl",value:function(n,r,a,s){var i=this,u=typeof a=="string"?[a]:a,c=typeof s=="string"?[s]:s,f=this.options.parseLoadPayload(u,c),h=e0($Te(n));this.options.request(this.options,n,f,function(m,g){if(g&&(g.status>=500&&g.status<600||!g.status))return r("failed loading "+h+"; status code: "+g.status,!0);if(g&&g.status>=400&&g.status<500)return r("failed loading "+h+"; status code: "+g.status,!1);if(!g&&m&&m.message){var y=m.message.toLowerCase(),S=["failed","fetch","network","load"].find(function(E){return y.indexOf(E)>-1});if(S)return r("failed loading "+h+": "+e0(m.message),!0)}if(m)return r(m,!1);var w,x;try{typeof g.data=="string"?w=i.options.parse(g.data,a,s):w=g.data}catch{x="failed parsing "+h+" to json"}if(x)return r(x,!1);r(null,w)})}},{key:"create",value:function(n,r,a,s,i){var u=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,a,s),f=0,h=[],m=[];n.forEach(function(g){var y=u.options.addPath;typeof u.options.addPath=="function"&&(y=u.options.addPath(g,r));var S=tD(y,{lng:g,ns:r});if(S==null){f+=1,i&&f===n.length&&i(h,m);return}u.options.request(u.options,S,c,function(w,x){f+=1,h.push(w),m.push(x),f===n.length&&typeof i=="function"&&i(h,m)})})}}},{key:"reload",value:function(){var n=this,r=this.services,a=r.backendConnector,s=r.languageUtils,i=r.logger,u=a.language;if(!(u&&u.toLowerCase()==="cimode")){var c=[],f=function(m){var g=s.toResolveHierarchy(m);g.forEach(function(y){c.indexOf(y)<0&&c.push(y)})};f(u),this.allOptions.preload&&this.allOptions.preload.forEach(function(h){return f(h)}),c.forEach(function(h){n.allOptions.ns.forEach(function(m){a.read(h,m,"read",null,null,function(g,y){g&&i.warn("loading namespace ".concat(m," for language ").concat(h," failed"),g),!g&&y&&i.log("loaded namespace ".concat(m," for language ").concat(h),y),a.loaded("".concat(h,"|").concat(m),g,y)})})})}}}])})();$H.type="backend";mr.use($H).use(PH).use(s3e).init({fallbackLng:"en",supportedLngs:["en","nl","de","fr"],ns:["common","mail","settings","errors"],defaultNS:"common",backend:{loadPath:"/locales/{{lng}}/{{ns}}.json"},detection:{order:["navigator","htmlTag"],caches:[]},interpolation:{escapeValue:!1},react:{useSuspense:!0,bindI18n:"languageChanged loaded"}});const rRe=({authProvider:t,rootElementId:e="root"})=>{mae(),GEe(),t.configure(),vve(t);const n=WEe();sae(n);const r=new $ge({queryCache:new Vj({onError:wve}),mutationCache:new Wj({onError:xve}),defaultOptions:{queries:{staleTime:3e4,gcTime:5*6e4,retry:1}}}),a=aTe(r,n);n.recordPageView(window.location.pathname);const s=document.getElementById(e);if(!s)throw new Error(`Root element not found: #${e}`);const{Shell:i}=t;J1e.createRoot(s).render(C.jsx(_.StrictMode,{children:C.jsx(dH.Provider,{value:n,children:C.jsxs(Hge,{client:r,children:[C.jsx(Sve,{value:t,children:C.jsx(i,{children:C.jsx(K1e,{router:a})})}),!1]})})}))};rRe({authProvider:bge});export{bL as $,AL as A,on as B,kE as C,Iee as D,Wne as E,NJ as F,PE as G,OJ as H,RL as I,ene as J,kRe as K,j0 as L,LJ as M,fRe as N,V_ as O,dte as P,iRe as Q,F as R,BJ as S,HJ as T,Nh as U,ARe as V,RU as W,Ms as X,Zne as Y,hte as Z,DRe as _,Rt as a,zn as a$,yJ as a0,B4 as a1,aRe as a2,sRe as a3,Uge as a4,zRe as a5,URe as a6,kd as a7,Ln as a8,n1 as a9,WU as aA,Kl as aB,SF as aC,c3e as aD,A4e as aE,LRe as aF,Yj as aG,p_e as aH,SL as aI,t0e as aJ,h4e as aK,m4e as aL,f4e as aM,QIe as aN,one as aO,bne as aP,_J as aQ,d_e as aR,x4e as aS,v_e as aT,xRe as aU,CH as aV,g4e as aW,S4e as aX,p4e as aY,bRe as aZ,wRe as a_,Uj as aa,zv as ab,qge as ac,Gge as ad,Xge as ae,Kge as af,Yge as ag,xr as ah,Jge as ai,oM as aj,Zge as ak,e0e as al,Kr as am,Vr as an,v1e as ao,b4e as ap,Ep as aq,qIe as ar,Wke as as,sE as at,$Re as au,XIe as av,O4e as aw,CIe as ax,o_e as ay,O3e as az,kJ as b,FRe as b$,e4e as b0,f_e as b1,w_e as b2,o4e as b3,C_e as b4,c4e as b5,l4e as b6,TIe as b7,AIe as b8,qE as b9,_4e as bA,TRe as bB,vp as bC,ORe as bD,NRe as bE,RRe as bF,IRe as bG,E4e as bH,x_e as bI,uv as bJ,pte as bK,dRe as bL,u_e as bM,n_e as bN,mH as bO,RH as bP,ZIe as bQ,kIe as bR,T4e as bS,R4e as bT,hd as bU,ev as bV,Yke as bW,lRe as bX,sk as bY,_F as bZ,c_e as b_,Vke as ba,s4e as bb,JIe as bc,$v as bd,XU as be,VE as bf,d4e as bg,u4e as bh,w4e as bi,y4e as bj,v4e as bk,I4e as bl,i4e as bm,OE as bn,mte as bo,$J as bp,Hke as bq,hRe as br,xF as bs,L3e as bt,H3e as bu,B3e as bv,F3e as bw,t4e as bx,KIe as by,Fke as bz,EL as c,Ym as c$,yRe as c0,Q_ as c1,tne as c2,MIe as c3,OIe as c4,RIe as c5,xU as c6,ts as c7,Kne as c8,Td as c9,Sne as cA,GIe as cB,YIe as cC,CRe as cD,PIe as cE,LIe as cF,a_e as cG,DIe as cH,Bne as cI,_Re as cJ,Fne as cK,_Ie as cL,_3e as cM,jIe as cN,VIe as cO,iE as cP,k4e as cQ,WIe as cR,L9 as cS,mRe as cT,FIe as cU,BIe as cV,s_e as cW,HIe as cX,$Ie as cY,a4e as cZ,h_e as c_,Nke as ca,_r as cb,C4e as cc,n4e as cd,r4e as ce,xAe as cf,IIe as cg,NIe as ch,N4e as ci,zJ as cj,M4e as ck,J_ as cl,PRe as cm,uRe as cn,MRe as co,$_e as cp,Jre as cq,Xre as cr,Zre as cs,g9 as ct,d0 as cu,EIe as cv,UIe as cw,zIe as cx,bU as cy,ERe as cz,Ue as d,vRe as d0,SRe as d1,ite as d2,rne as d3,IE as e,AE as f,AJ as g,Ree as h,gte as i,C as j,cRe as k,rv as l,kee as m,ote as n,pRe as o,gRe as p,TL as q,_ as r,cte as s,FJ as t,lte as u,DJ as v,jJ as w,EJ as x,IJ as y,Gne as z};
293
+ or you can use record.mirror to access the mirror instance during recording.`;let t9={map:{},getId(){return console.error(kc),-1},getNode(){return console.error(kc),null},removeNodeFromMap(){console.error(kc)},has(){return console.error(kc),!1},reset(){console.error(kc)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(t9=new Proxy(t9,{get(t,e,n){return e==="map"&&console.error(kc),Reflect.get(t,e,n)}}));function op(t,e,n={}){let r=null,a=0;return function(...s){const i=Date.now();!a&&n.leading===!1&&(a=i);const u=e-(i-a),c=this;u<=0||u>e?(r&&(clearTimeout(r),r=null),a=i,t.apply(c,s)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{a=n.leading===!1?0:Date.now(),r=null,t.apply(c,s)},u))}}function iy(t,e,n,r,a=window){const s=a.Object.getOwnPropertyDescriptor(t,e);return a.Object.defineProperty(t,e,r?n:{set(i){setTimeout(()=>{n.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>iy(t,e,s||{},!0)}let I1=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(I1=()=>new Date().getTime());function $$(t){var e,n,r,a;const s=t.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:s.documentElement.scrollLeft||s?.body&&((e=at.parentElement(s.body))==null?void 0:e.scrollLeft)||((n=s?.body)==null?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:s?.documentElement.scrollTop||s?.body&&((r=at.parentElement(s.body))==null?void 0:r.scrollTop)||((a=s?.body)==null?void 0:a.scrollTop)||0}}function H$(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function q$(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function W$(t){return t?t.nodeType===t.ELEMENT_NODE?t:at.parentElement(t):null}function Er(t,e,n,r){if(!t)return!1;const a=W$(t);if(!a)return!1;try{if(typeof e=="string"){if(a.classList.contains(e)||r&&a.closest("."+e)!==null)return!0}else if(w1(a,e,r))return!0}catch{}return!!(n&&(a.matches(n)||r&&a.closest(n)!==null))}function YCe(t,e){return e.getId(t)!==-1}function nE(t,e,n){return t.tagName==="TITLE"&&n.headTitleMutations?!0:e.getId(t)===Xh}function V$(t,e){if(_h(t))return!1;const n=e.getId(t);if(!e.has(n))return!0;const r=at.parentNode(t);return r&&r.nodeType===t.DOCUMENT_NODE?!1:r?V$(r,e):!0}function o_(t){return!!t.changedTouches}function ZCe(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function G$(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function K$(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function i_(t){return t?t instanceof QA&&"shadowRoot"in t?!!t.shadowRoot:!!at.shadowRoot(t):!1}class XCe{constructor(){we(this,"id",1),we(this,"styleIDMap",new WeakMap),we(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,n){if(this.has(e))return this.getId(e);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Y$(t){var e;let n=null;return"getRootNode"in t&&((e=at.getRootNode(t))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&at.host(at.getRootNode(t))&&(n=at.host(at.getRootNode(t))),n}function QCe(t){let e=t,n;for(;n=Y$(e);)e=n;return e}function JCe(t){const e=at.ownerDocument(t);if(!e)return!1;const n=QCe(t);return at.contains(e,n)}function Z$(t){const e=at.ownerDocument(t);return e?at.contains(e,t)||JCe(t):!1}var Ct=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(Ct||{}),ht=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(ht||{}),zr=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(zr||{}),co=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(co||{}),od=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(od||{}),Ac=(t=>(t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t))(Ac||{}),X$=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(X$||{});function n9(t){return"__ln"in t}class eEe{constructor(){we(this,"length",0),we(this,"head",null),we(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<e;r++)n=n?.next||null;return n}addNode(e){const n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&n9(e.previousSibling)){const r=e.previousSibling.__ln.next;n.next=r,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(e.nextSibling&&n9(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;n.previous=r,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(e){const n=e.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const r9=(t,e)=>`${t}@${e}`;class tEe{constructor(){we(this,"frozen",!1),we(this,"locked",!1),we(this,"texts",[]),we(this,"attributes",[]),we(this,"attributeMap",new WeakMap),we(this,"removes",[]),we(this,"mapRemoves",[]),we(this,"movedMap",{}),we(this,"addedSet",new Set),we(this,"movedSet",new Set),we(this,"droppedSet",new Set),we(this,"removesSubTreeCache",new Set),we(this,"mutationCb"),we(this,"blockClass"),we(this,"blockSelector"),we(this,"maskTextClass"),we(this,"maskTextSelector"),we(this,"inlineStylesheet"),we(this,"maskInputOptions"),we(this,"maskTextFn"),we(this,"maskInputFn"),we(this,"keepIframeSrcFn"),we(this,"recordCanvas"),we(this,"inlineImages"),we(this,"slimDOMOptions"),we(this,"dataURLOptions"),we(this,"doc"),we(this,"mirror"),we(this,"iframeManager"),we(this,"stylesheetManager"),we(this,"shadowDomManager"),we(this,"canvasManager"),we(this,"processedNodeManager"),we(this,"unattachedDoc"),we(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),we(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],n=new Set,r=new eEe,a=c=>{let f=c,h=Xh;for(;h===Xh;)f=f&&f.nextSibling,h=f&&this.mirror.getId(f);return h},s=c=>{const f=at.parentNode(c);if(!f||!Z$(c))return;let h=!1;if(c.nodeType===Node.TEXT_NODE){const S=f.tagName;if(S==="TEXTAREA")return;S==="STYLE"&&this.addedSet.has(f)&&(h=!0)}const m=_h(f)?this.mirror.getId(Y$(c)):this.mirror.getId(f),g=a(c);if(m===-1||g===-1)return r.addNode(c);const y=Lc(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:S=>{G$(S,this.mirror)&&this.iframeManager.addIframe(S),K$(S,this.mirror)&&this.stylesheetManager.trackLinkElement(S),i_(c)&&this.shadowDomManager.addShadowRoot(at.shadowRoot(c),this.doc)},onIframeLoad:(S,w)=>{this.iframeManager.attachIframe(S,w),this.shadowDomManager.observeAttachShadow(S)},onStylesheetLoad:(S,w)=>{this.stylesheetManager.attachLinkElement(S,w)},cssCaptured:h});y&&(e.push({parentId:m,nextId:g,node:y}),n.add(y.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)a9(this.removesSubTreeCache,c,this.mirror)&&!this.movedSet.has(at.parentNode(c))||s(c);for(const c of this.addedSet)!s9(this.droppedSet,c)&&!a9(this.removesSubTreeCache,c,this.mirror)||s9(this.movedSet,c)?s(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const f=this.mirror.getId(at.parentNode(i.value)),h=a(i.value);f!==-1&&h!==-1&&(c=i)}if(!c){let f=r.tail;for(;f;){const h=f;if(f=f.previous,h){const m=this.mirror.getId(at.parentNode(h.value));if(a(h.value)===-1)continue;if(m!==-1){c=h;break}else{const y=h.value,S=at.parentNode(y);if(S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const w=at.host(S);if(this.mirror.getId(w)!==-1){c=h;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),s(c.value)}const u={texts:this.texts.map(c=>{const f=c.node,h=at.parentNode(f);return h&&h.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(h),{id:this.mirror.getId(f),value:c.value}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:f}=c;if(typeof f.style=="string"){const h=JSON.stringify(c.styleDiff),m=JSON.stringify(c._unchangedStyles);h.length<f.style.length&&(h+m).split("var(").length===f.style.split("var(").length&&(f.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:f}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:e};!u.texts.length&&!u.attributes.length&&!u.removes.length&&!u.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(u))}),we(this,"genTextAreaValueMutation",e=>{let n=this.attributeMap.get(e);n||(n={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e,n));const r=Array.from(at.childNodes(e),a=>at.textContent(a)||"").join("");n.attributes.value=y1({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:b1(e),value:r,maskInputFn:this.maskInputFn})}),we(this,"processMutation",e=>{if(!nE(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const n=at.textContent(e.target);!Er(e.target,this.blockClass,this.blockSelector,!1)&&n!==e.oldValue&&this.texts.push({value:SB(e.target,this.maskTextClass,this.maskTextSelector,!0)&&n?this.maskTextFn?this.maskTextFn(n,W$(e.target)):n.replace(/[\S]/g,"*"):n,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,a=e.target.getAttribute(r);if(r==="value"){const i=b1(n);a=y1({element:n,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:i,value:a,maskInputFn:this.maskInputFn})}if(Er(e.target,this.blockClass,this.blockSelector,!1)||a===e.oldValue)return;let s=this.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(a))if(!n.contentDocument)r="rr_src";else return;if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),r==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!bB(n.tagName,r))if(s.attributes[r]=yB(this.doc,nu(n.tagName),nu(r),a),r==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");e.oldValue&&i.setAttribute("style",e.oldValue);for(const u of Array.from(n.style)){const c=n.style.getPropertyValue(u),f=n.style.getPropertyPriority(u);c!==i.style.getPropertyValue(u)||f!==i.style.getPropertyPriority(u)?f===""?s.styleDiff[u]=c:s.styleDiff[u]=[c,f]:s._unchangedStyles[u]=[c,f]}for(const u of Array.from(i.style))n.style.getPropertyValue(u)===""&&(s.styleDiff[u]=!1)}else r==="open"&&n.tagName==="DIALOG"&&(n.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal");break}case"childList":{if(Er(e.target,this.blockClass,this.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(n=>this.genAdds(n,e.target)),e.removedNodes.forEach(n=>{const r=this.mirror.getId(n),a=_h(e.target)?this.mirror.getId(at.host(e.target)):this.mirror.getId(e.target);Er(e.target,this.blockClass,this.blockSelector,!1)||nE(n,this.mirror,this.slimDOMOptions)||!YCe(n,this.mirror)||(this.addedSet.has(n)?(l_(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(e.target)&&r===-1||V$(e.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[r9(r,a)]?l_(this.movedSet,n):(this.removes.push({parentId:a,id:r,isShadow:_h(e.target)&&kh(e.target)?!0:void 0}),nEe(n,this.removesSubTreeCache))),this.mapRemoves.push(n))});break}}}),we(this,"genAdds",(e,n)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(nE(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[r9(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Er(e,this.blockClass,this.blockSelector,!1)||(at.childNodes(e).forEach(r=>this.genAdds(r)),i_(e)&&at.childNodes(at.shadowRoot(e)).forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=e[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function l_(t,e){t.delete(e),at.childNodes(e).forEach(n=>l_(t,n))}function nEe(t,e){const n=[t];for(;n.length;){const r=n.pop();e.has(r)||(e.add(r),at.childNodes(r).forEach(a=>n.push(a)))}}function a9(t,e,n){return t.size===0?!1:rEe(t,e)}function rEe(t,e,n){const r=at.parentNode(e);return r?t.has(r):!1}function s9(t,e){return t.size===0?!1:Q$(t,e)}function Q$(t,e){const n=at.parentNode(e);return n?t.has(n)?!0:Q$(t,n):!1}let Ah;function aEe(t){Ah=t}function sEe(){Ah=void 0}const yt=t=>Ah?(...n)=>{try{return t(...n)}catch(r){if(Ah&&Ah(r)===!0)return;throw r}}:t,Dl=[];function Ip(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function J$(t,e){const n=new tEe;Dl.push(n),n.init(t);const r=new(B$())(yt(n.processMutations.bind(n)));return r.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function oEe({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(e.mousemove===!1)return()=>{};const a=typeof e.mousemove=="number"?e.mousemove:50,s=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let i=[],u;const c=op(yt(m=>{const g=Date.now()-u;t(i.map(y=>(y.timeOffset-=g,y)),m),i=[],u=null}),s),f=yt(op(yt(m=>{const g=Ip(m),{clientX:y,clientY:S}=o_(m)?m.changedTouches[0]:m;u||(u=I1()),i.push({x:y,y:S,id:r.getId(g),timeOffset:I1()-u}),c(typeof DragEvent<"u"&&m instanceof DragEvent?ht.Drag:m instanceof MouseEvent?ht.MouseMove:ht.TouchMove)}),a,{trailing:!1})),h=[Cr("mousemove",f,n),Cr("touchmove",f,n),Cr("drag",f,n)];return yt(()=>{h.forEach(m=>m())})}function iEe({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const i=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[];let c=null;const f=h=>m=>{const g=Ip(m);if(Er(g,r,a,!0))return;let y=null,S=h;if("pointerType"in m){switch(m.pointerType){case"mouse":y=co.Mouse;break;case"touch":y=co.Touch;break;case"pen":y=co.Pen;break}y===co.Touch?zr[h]===zr.MouseDown?S="TouchStart":zr[h]===zr.MouseUp&&(S="TouchEnd"):co.Pen}else o_(m)&&(y=co.Touch);y!==null?(c=y,(S.startsWith("Touch")&&y===co.Touch||S.startsWith("Mouse")&&y===co.Mouse)&&(y=null)):zr[h]===zr.Click&&(y=c,c=null);const w=o_(m)?m.changedTouches[0]:m;if(!w)return;const x=n.getId(g),{clientX:E,clientY:k}=w;yt(t)({type:zr[S],id:x,x:E,y:k,...y!==null&&{pointerType:y}})};return Object.keys(zr).filter(h=>Number.isNaN(Number(h))&&!h.endsWith("_Departed")&&i[h]!==!1).forEach(h=>{let m=nu(h);const g=f(h);if(window.PointerEvent)switch(zr[h]){case zr.MouseDown:case zr.MouseUp:m=m.replace("mouse","pointer");break;case zr.TouchStart:case zr.TouchEnd:return}u.push(Cr(m,g,e))}),yt(()=>{u.forEach(h=>h())})}function eH({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,sampling:s}){const i=yt(op(yt(u=>{const c=Ip(u);if(!c||Er(c,r,a,!0))return;const f=n.getId(c);if(c===e&&e.defaultView){const h=$$(e.defaultView);t({id:f,x:h.left,y:h.top})}else t({id:f,x:c.scrollLeft,y:c.scrollTop})}),s.scroll||100));return Cr("scroll",i,e)}function lEe({viewportResizeCb:t},{win:e}){let n=-1,r=-1;const a=yt(op(yt(()=>{const s=H$(),i=q$();(n!==s||r!==i)&&(t({width:Number(i),height:Number(s)}),n=s,r=i)}),200));return Cr("resize",a,e)}const uEe=["INPUT","TEXTAREA","SELECT"],o9=new WeakMap;function cEe({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,ignoreClass:s,ignoreSelector:i,maskInputOptions:u,maskInputFn:c,sampling:f,userTriggeredOnInput:h}){function m(k){let A=Ip(k);const R=k.isTrusted,N=A&&A.tagName;if(A&&N==="OPTION"&&(A=at.parentElement(A)),!A||!N||uEe.indexOf(N)<0||Er(A,r,a,!0)||A.classList.contains(s)||i&&A.matches(i))return;let O=A.value,I=!1;const P=b1(A)||"";P==="radio"||P==="checkbox"?I=A.checked:(u[N.toLowerCase()]||u[P])&&(O=y1({element:A,maskInputOptions:u,tagName:N,type:P,value:O,maskInputFn:c})),g(A,h?{text:O,isChecked:I,userTriggered:R}:{text:O,isChecked:I});const U=A.name;P==="radio"&&U&&I&&e.querySelectorAll(`input[type="radio"][name="${U}"]`).forEach(H=>{if(H!==A){const z=H.value;g(H,h?{text:z,isChecked:!I,userTriggered:!1}:{text:z,isChecked:!I})}})}function g(k,A){const R=o9.get(k);if(!R||R.text!==A.text||R.isChecked!==A.isChecked){o9.set(k,A);const N=n.getId(k);yt(t)({...A,id:N})}}const S=(f.input==="last"?["change"]:["input","change"]).map(k=>Cr(k,yt(m),e)),w=e.defaultView;if(!w)return()=>{S.forEach(k=>k())};const x=w.Object.getOwnPropertyDescriptor(w.HTMLInputElement.prototype,"value"),E=[[w.HTMLInputElement.prototype,"value"],[w.HTMLInputElement.prototype,"checked"],[w.HTMLSelectElement.prototype,"value"],[w.HTMLTextAreaElement.prototype,"value"],[w.HTMLSelectElement.prototype,"selectedIndex"],[w.HTMLOptionElement.prototype,"selected"]];return x&&x.set&&S.push(...E.map(k=>iy(k[0],k[1],{set(){yt(m)({target:this,isTrusted:!1})}},!1,w))),yt(()=>{S.forEach(k=>k())})}function O1(t){const e=[];function n(r,a){if(Zg("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Zg("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Zg("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Zg("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);a.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);a.unshift(i)}return a}return n(t,e)}function ki(t,e,n){let r,a;return t?(t.ownerNode?r=e.getId(t.ownerNode):a=n.getId(t),{styleId:a,id:r}):{}}function dEe({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:yt((h,m,g)=>{const[y,S]=g,{id:w,styleId:x}=ki(m,e,n.styleMirror);return(w&&w!==-1||x&&x!==-1)&&t({id:w,styleId:x,adds:[{rule:y,index:S}]}),h.apply(m,g)})}),r.CSSStyleSheet.prototype.addRule=function(h,m,g=this.cssRules.length){const y=`${h} { ${m} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[y,g])};const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:yt((h,m,g)=>{const[y]=g,{id:S,styleId:w}=ki(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,removes:[{index:y}]}),h.apply(m,g)})}),r.CSSStyleSheet.prototype.removeRule=function(h){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:yt((h,m,g)=>{const[y]=g,{id:S,styleId:w}=ki(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,replace:y}),h.apply(m,g)})}));let u;r.CSSStyleSheet.prototype.replaceSync&&(u=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:yt((h,m,g)=>{const[y]=g,{id:S,styleId:w}=ki(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,replaceSync:y}),h.apply(m,g)})}));const c={};Xg("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Xg("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Xg("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Xg("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const f={};return Object.entries(c).forEach(([h,m])=>{f[h]={insertRule:m.prototype.insertRule,deleteRule:m.prototype.deleteRule},m.prototype.insertRule=new Proxy(f[h].insertRule,{apply:yt((g,y,S)=>{const[w,x]=S,{id:E,styleId:k}=ki(y.parentStyleSheet,e,n.styleMirror);return(E&&E!==-1||k&&k!==-1)&&t({id:E,styleId:k,adds:[{rule:w,index:[...O1(y),x||0]}]}),g.apply(y,S)})}),m.prototype.deleteRule=new Proxy(f[h].deleteRule,{apply:yt((g,y,S)=>{const[w]=S,{id:x,styleId:E}=ki(y.parentStyleSheet,e,n.styleMirror);return(x&&x!==-1||E&&E!==-1)&&t({id:x,styleId:E,removes:[{index:[...O1(y),w]}]}),g.apply(y,S)})})}),yt(()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),u&&(r.CSSStyleSheet.prototype.replaceSync=u),Object.entries(c).forEach(([h,m])=>{m.prototype.insertRule=f[h].insertRule,m.prototype.deleteRule=f[h].deleteRule})})}function tH({mirror:t,stylesheetManager:e},n){var r,a,s;let i=null;n.nodeName==="#document"?i=t.getId(n):i=t.getId(at.host(n));const u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(a=n.ownerDocument)==null?void 0:a.defaultView)==null?void 0:s.ShadowRoot,c=u?.prototype?Object.getOwnPropertyDescriptor(u?.prototype,"adoptedStyleSheets"):void 0;return i===null||i===-1||!u||!c?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var f;return(f=c.get)==null?void 0:f.call(this)},set(f){var h;const m=(h=c.set)==null?void 0:h.call(this,f);if(i!==null&&i!==-1)try{e.adoptStyleSheets(f,i)}catch{}return m}}),yt(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function fEe({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){const s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:yt((u,c,f)=>{var h;const[m,g,y]=f;if(n.has(m))return s.apply(c,[m,g,y]);const{id:S,styleId:w}=ki((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,r.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,set:{property:m,value:g,priority:y},index:O1(c.parentRule)}),u.apply(c,f)})});const i=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:yt((u,c,f)=>{var h;const[m]=f;if(n.has(m))return i.apply(c,[m]);const{id:g,styleId:y}=ki((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,r.styleMirror);return(g&&g!==-1||y&&y!==-1)&&t({id:g,styleId:y,remove:{property:m},index:O1(c.parentRule)}),u.apply(c,f)})}),yt(()=>{a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=i})}function hEe({mediaInteractionCb:t,blockClass:e,blockSelector:n,mirror:r,sampling:a,doc:s}){const i=yt(c=>op(yt(f=>{const h=Ip(f);if(!h||Er(h,e,n,!0))return;const{currentTime:m,volume:g,muted:y,playbackRate:S,loop:w}=h;t({type:c,id:r.getId(h),currentTime:m,volume:g,muted:y,playbackRate:S,loop:w})}),a.media||500)),u=[Cr("play",i(Ac.Play),s),Cr("pause",i(Ac.Pause),s),Cr("seeked",i(Ac.Seeked),s),Cr("volumechange",i(Ac.VolumeChange),s),Cr("ratechange",i(Ac.RateChange),s)];return yt(()=>{u.forEach(c=>c())})}function pEe({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],a=new WeakMap,s=n.FontFace;n.FontFace=function(c,f,h){const m=new s(c,f,h);return a.set(m,{family:c,buffer:typeof f!="string",descriptors:h,fontSource:typeof f=="string"?f:JSON.stringify(Array.from(new Uint8Array(f)))}),m};const i=Su(e.fonts,"add",function(u){return function(c){return setTimeout(yt(()=>{const f=a.get(c);f&&(t(f),a.delete(c))}),0),u.apply(this,[c])}});return r.push(()=>{n.FontFace=s}),r.push(i),yt(()=>{r.forEach(u=>u())})}function mEe(t){const{doc:e,mirror:n,blockClass:r,blockSelector:a,selectionCb:s}=t;let i=!0;const u=yt(()=>{const c=e.getSelection();if(!c||i&&c?.isCollapsed)return;i=c.isCollapsed||!1;const f=[],h=c.rangeCount||0;for(let m=0;m<h;m++){const g=c.getRangeAt(m),{startContainer:y,startOffset:S,endContainer:w,endOffset:x}=g;Er(y,r,a,!0)||Er(w,r,a,!0)||f.push({start:n.getId(y),startOffset:S,end:n.getId(w),endOffset:x})}s({ranges:f})});return u(),Cr("selectionchange",u)}function gEe({doc:t,customElementCb:e}){const n=t.defaultView;return!n||!n.customElements?()=>{}:Su(n.customElements,"define",function(a){return function(s,i,u){try{e({define:{name:s}})}catch{console.warn(`Custom element callback failed for ${s}`)}return a.apply(this,[s,i,u])}})}function vEe(t,e){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:a,scrollCb:s,viewportResizeCb:i,inputCb:u,mediaInteractionCb:c,styleSheetRuleCb:f,styleDeclarationCb:h,canvasMutationCb:m,fontCb:g,selectionCb:y,customElementCb:S}=t;t.mutationCb=(...w)=>{e.mutation&&e.mutation(...w),n(...w)},t.mousemoveCb=(...w)=>{e.mousemove&&e.mousemove(...w),r(...w)},t.mouseInteractionCb=(...w)=>{e.mouseInteraction&&e.mouseInteraction(...w),a(...w)},t.scrollCb=(...w)=>{e.scroll&&e.scroll(...w),s(...w)},t.viewportResizeCb=(...w)=>{e.viewportResize&&e.viewportResize(...w),i(...w)},t.inputCb=(...w)=>{e.input&&e.input(...w),u(...w)},t.mediaInteractionCb=(...w)=>{e.mediaInteaction&&e.mediaInteaction(...w),c(...w)},t.styleSheetRuleCb=(...w)=>{e.styleSheetRule&&e.styleSheetRule(...w),f(...w)},t.styleDeclarationCb=(...w)=>{e.styleDeclaration&&e.styleDeclaration(...w),h(...w)},t.canvasMutationCb=(...w)=>{e.canvasMutation&&e.canvasMutation(...w),m(...w)},t.fontCb=(...w)=>{e.font&&e.font(...w),g(...w)},t.selectionCb=(...w)=>{e.selection&&e.selection(...w),y(...w)},t.customElementCb=(...w)=>{e.customElement&&e.customElement(...w),S(...w)}}function yEe(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};vEe(t,e);let r;t.recordDOM&&(r=J$(t,t.doc));const a=oEe(t),s=iEe(t),i=eH(t),u=lEe(t,{win:n}),c=cEe(t),f=hEe(t);let h=()=>{},m=()=>{},g=()=>{},y=()=>{};t.recordDOM&&(h=dEe(t,{win:n}),m=tH(t,t.doc),g=fEe(t,{win:n}),t.collectFonts&&(y=pEe(t)));const S=mEe(t),w=gEe(t),x=[];for(const E of t.plugins)x.push(E.observer(E.callback,n,E.options));return yt(()=>{Dl.forEach(E=>E.reset()),r?.disconnect(),a(),s(),i(),u(),c(),f(),h(),m(),g(),y(),S(),w(),x.forEach(E=>E())})}function Zg(t){return typeof window[t]<"u"}function Xg(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class i9{constructor(e){we(this,"iframeIdToRemoteIdMap",new WeakMap),we(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,n,r,a){const s=r||this.getIdToRemoteIdMap(e),i=a||this.getRemoteIdToIdMap(e);let u=s.get(n);return u||(u=this.generateIdFn(),s.set(n,u),i.set(u,n)),u}getIds(e,n){const r=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return n.map(s=>this.getId(e,s,r,a))}getRemoteId(e,n,r){const a=r||this.getRemoteIdToIdMap(e);if(typeof n!="number")return n;const s=a.get(n);return s||-1}getRemoteIds(e,n){const r=this.getRemoteIdToIdMap(e);return n.map(a=>this.getRemoteId(e,a,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let n=this.iframeIdToRemoteIdMap.get(e);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(e,n)),n}getRemoteIdToIdMap(e){let n=this.iframeRemoteIdToIdMap.get(e);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(e,n)),n}}class bEe{constructor(e){we(this,"iframes",new WeakMap),we(this,"crossOriginIframeMap",new WeakMap),we(this,"crossOriginIframeMirror",new i9(vB)),we(this,"crossOriginIframeStyleMirror"),we(this,"crossOriginIframeRootIdMap",new WeakMap),we(this,"mirror"),we(this,"mutationCb"),we(this,"wrappedEmit"),we(this,"loadListener"),we(this,"stylesheetManager"),we(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new i9(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,n){var r,a;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((r=e.contentWindow)==null||r.addEventListener("message",this.handleMessage.bind(this))),(a=this.loadListener)==null||a.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const n=e;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!e.source)return;const a=this.crossOriginIframeMap.get(e.source);if(!a)return;const s=this.transformCrossOriginEvent(a,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(e,n){var r;switch(n.type){case Ct.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(n.data.node,e);const a=n.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(n.data.node,a),{timestamp:n.timestamp,type:Ct.IncrementalSnapshot,data:{source:ht.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ct.Meta:case Ct.Load:case Ct.DomContentLoaded:return!1;case Ct.Plugin:return n;case Ct.Custom:return this.replaceIds(n.data.payload,e,["id","parentId","previousId","nextId"]),n;case Ct.IncrementalSnapshot:switch(n.data.source){case ht.Mutation:return n.data.adds.forEach(a=>{this.replaceIds(a,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,e);const s=this.crossOriginIframeRootIdMap.get(e);s&&this.patchRootIdOnNode(a.node,s)}),n.data.removes.forEach(a=>{this.replaceIds(a,e,["parentId","id"])}),n.data.attributes.forEach(a=>{this.replaceIds(a,e,["id"])}),n.data.texts.forEach(a=>{this.replaceIds(a,e,["id"])}),n;case ht.Drag:case ht.TouchMove:case ht.MouseMove:return n.data.positions.forEach(a=>{this.replaceIds(a,e,["id"])}),n;case ht.ViewportResize:return!1;case ht.MediaInteraction:case ht.MouseInteraction:case ht.Scroll:case ht.CanvasMutation:case ht.Input:return this.replaceIds(n.data,e,["id"]),n;case ht.StyleSheetRule:case ht.StyleDeclaration:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleId"]),n;case ht.Font:return n;case ht.Selection:return n.data.ranges.forEach(a=>{this.replaceIds(a,e,["start","end"])}),n;case ht.AdoptedStyleSheet:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleIds"]),(r=n.data.styles)==null||r.forEach(a=>{this.replaceStyleIds(a,e,["styleId"])}),n}}return!1}replace(e,n,r,a){for(const s of a)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=e.getIds(r,n[s]):n[s]=e.getId(r,n[s]));return n}replaceIds(e,n,r){return this.replace(this.crossOriginIframeMirror,e,n,r)}replaceStyleIds(e,n,r){return this.replace(this.crossOriginIframeStyleMirror,e,n,r)}replaceIdOnNode(e,n){this.replaceIds(e,n,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(e,n){e.type!==X$.Document&&!e.rootId&&(e.rootId=n),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class SEe{constructor(e){we(this,"shadowDoms",new WeakSet),we(this,"mutationCb"),we(this,"scrollCb"),we(this,"bypassOptions"),we(this,"mirror"),we(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,n){if(!kh(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=J$({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(eH({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(at.host(e))),this.restoreHandlers.push(tH({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,n){const r=this;this.restoreHandlers.push(Su(e.prototype,"attachShadow",function(a){return function(s){const i=a.call(this,s),u=at.shadowRoot(this);return u&&Z$(this)&&r.addShadowRoot(u,n),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var Uc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wEe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Qg=0;Qg<Uc.length;Qg++)wEe[Uc.charCodeAt(Qg)]=Qg;var xEe=function(t){var e=new Uint8Array(t),n,r=e.length,a="";for(n=0;n<r;n+=3)a+=Uc[e[n]>>2],a+=Uc[(e[n]&3)<<4|e[n+1]>>4],a+=Uc[(e[n+1]&15)<<2|e[n+2]>>6],a+=Uc[e[n+2]&63];return r%3===2?a=a.substring(0,a.length-1)+"=":r%3===1&&(a=a.substring(0,a.length-2)+"=="),a};const l9=new Map;function CEe(t,e){let n=l9.get(t);return n||(n=new Map,l9.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}const nH=(t,e,n)=>{if(!t||!(aH(t,e)||typeof t=="object"))return;const r=t.constructor.name,a=CEe(n,r);let s=a.indexOf(t);return s===-1&&(s=a.length,a.push(t)),s};function O0(t,e,n){if(t instanceof Array)return t.map(r=>O0(r,e,n));if(t===null)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){const r=t.constructor.name,a=xEe(t);return{rr_type:r,base64:a}}else{if(t instanceof DataView)return{rr_type:t.constructor.name,args:[O0(t.buffer,e,n),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){const r=t.constructor.name,{src:a}=t;return{rr_type:r,src:a}}else if(t instanceof HTMLCanvasElement){const r="HTMLImageElement",a=t.toDataURL();return{rr_type:r,src:a}}else{if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[O0(t.data,e,n),t.width,t.height]};if(aH(t,e)||typeof t=="object"){const r=t.constructor.name,a=nH(t,e,n);return{rr_type:r,index:a}}}}return t}const rH=(t,e,n)=>t.map(r=>O0(r,e,n)),aH=(t,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(a=>typeof e[a]=="function").find(a=>t instanceof e[a]);function EEe(t,e,n,r){const a=[],s=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const i of s)try{if(typeof e.CanvasRenderingContext2D.prototype[i]!="function")continue;const u=Su(e.CanvasRenderingContext2D.prototype,i,function(c){return function(...f){return Er(this.canvas,n,r,!0)||setTimeout(()=>{const h=rH(f,e,this);t(this.canvas,{type:od["2D"],property:i,args:h})},0),c.apply(this,f)}});a.push(u)}catch{const u=iy(e.CanvasRenderingContext2D.prototype,i,{set(c){t(this.canvas,{type:od["2D"],property:i,args:[c],setter:!0})}});a.push(u)}return()=>{a.forEach(i=>i())}}function _Ee(t){return t==="experimental-webgl"?"webgl":t}function u9(t,e,n,r){const a=[];try{const s=Su(t.HTMLCanvasElement.prototype,"getContext",function(i){return function(u,...c){if(!Er(this,e,n,!0)){const f=_Ee(u);if("__context"in this||(this.__context=f),r&&["webgl","webgl2"].includes(f))if(c[0]&&typeof c[0]=="object"){const h=c[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return i.apply(this,[u,...c])}});a.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(s=>s())}}function c9(t,e,n,r,a,s){const i=[],u=Object.getOwnPropertyNames(t);for(const c of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if(typeof t[c]!="function")continue;const f=Su(t,c,function(h){return function(...m){const g=h.apply(this,m);if(nH(g,s,this),"tagName"in this.canvas&&!Er(this.canvas,r,a,!0)){const y=rH(m,s,this),S={type:e,property:c,args:y};n(this.canvas,S)}return g}});i.push(f)}catch{const f=iy(t,c,{set(h){n(this.canvas,{type:e,property:c,args:[h],setter:!0})}});i.push(f)}return i}function kEe(t,e,n,r){const a=[];return a.push(...c9(e.WebGLRenderingContext.prototype,od.WebGL,t,n,r,e)),typeof e.WebGL2RenderingContext<"u"&&a.push(...c9(e.WebGL2RenderingContext.prototype,od.WebGL2,t,n,r,e)),()=>{a.forEach(s=>s())}}const sH="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",AEe=t=>Uint8Array.from(atob(t),e=>e.charCodeAt(0)),d9=typeof window<"u"&&window.Blob&&new Blob([AEe(sH)],{type:"text/javascript;charset=utf-8"});function TEe(t){let e;try{if(e=d9&&(window.URL||window.webkitURL).createObjectURL(d9),!e)throw"";const n=new Worker(e,{name:t?.name});return n.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(e)}),n}catch{return new Worker("data:text/javascript;base64,"+sH,{name:t?.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e)}}class REe{constructor(e){we(this,"pendingCanvasMutations",new Map),we(this,"rafStamps",{latestId:0,invokeId:null}),we(this,"mirror"),we(this,"mutationCb"),we(this,"resetObservers"),we(this,"frozen",!1),we(this,"locked",!1),we(this,"processMutation",(c,f)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(c)||this.pendingCanvasMutations.set(c,[]),this.pendingCanvasMutations.get(c).push(f)});const{sampling:n="all",win:r,blockClass:a,blockSelector:s,recordCanvas:i,dataURLOptions:u}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&n==="all"&&this.initCanvasMutationObserver(r,a,s),i&&typeof n=="number"&&this.initCanvasFPSObserver(n,r,a,s,{dataURLOptions:u})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,n,r,a,s){const i=u9(n,r,a,!0),u=new Map,c=new TEe;c.onmessage=S=>{const{id:w}=S.data;if(u.set(w,!1),!("base64"in S.data))return;const{base64:x,type:E,width:k,height:A}=S.data;this.mutationCb({id:w,type:od["2D"],commands:[{property:"clearRect",args:[0,0,k,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:x}],type:E}]},0,0]}]})};const f=1e3/e;let h=0,m;const g=()=>{const S=[];return n.document.querySelectorAll("canvas").forEach(w=>{Er(w,r,a,!0)||S.push(w)}),S},y=S=>{if(h&&S-h<f){m=requestAnimationFrame(y);return}h=S,g().forEach(async w=>{var x;const E=this.mirror.getId(w);if(u.get(E)||w.width===0||w.height===0)return;if(u.set(E,!0),["webgl","webgl2"].includes(w.__context)){const A=w.getContext(w.__context);((x=A?.getContextAttributes())==null?void 0:x.preserveDrawingBuffer)===!1&&A.clear(A.COLOR_BUFFER_BIT)}const k=await createImageBitmap(w);c.postMessage({id:E,bitmap:k,width:w.width,height:w.height,dataURLOptions:s.dataURLOptions},[k])}),m=requestAnimationFrame(y)};m=requestAnimationFrame(y),this.resetObservers=()=>{i(),cancelAnimationFrame(m)}}initCanvasMutationObserver(e,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=u9(e,n,r,!1),s=EEe(this.processMutation.bind(this),e,n,r),i=kEe(this.processMutation.bind(this),e,n,r);this.resetObservers=()=>{a(),s(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=n=>{this.rafStamps.latestId=n,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||n===-1)return;const a=r.map(i=>{const{type:u,...c}=i;return c}),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:a}),this.pendingCanvasMutations.delete(e)}}class IEe{constructor(e){we(this,"trackedLinkElements",new WeakSet),we(this,"mutationCb"),we(this,"adoptedStyleSheetCb"),we(this,"styleMirror",new XCe),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,n){if(e.length===0)return;const r={id:n,styleIds:[]},a=[];for(const s of e){let i;this.styleMirror.has(s)?i=this.styleMirror.getId(s):(i=this.styleMirror.add(s),a.push({styleId:i,rules:Array.from(s.rules||CSSRule,(u,c)=>({rule:pB(u,s.href),index:c}))})),r.styleIds.push(i)}a.length>0&&(r.styles=a),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class OEe{constructor(){we(this,"nodeMap",new WeakMap),we(this,"active",!1)}inOtherBuffer(e,n){const r=this.nodeMap.get(e);return r&&Array.from(r).some(a=>a!==n)}add(e,n){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(n))}destroy(){}}let vn,N0,rE,N1=!1;try{if(Array.from([1],t=>t*2)[0]!==2){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=((pP=t.contentWindow)==null?void 0:pP.Array.from)||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const Ha=MSe();function Op(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:a="rr-block",blockSelector:s=null,ignoreClass:i="rr-ignore",ignoreSelector:u=null,maskTextClass:c="rr-mask",maskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskInputFn:S,maskTextFn:w,hooks:x,packFn:E,sampling:k={},dataURLOptions:A={},mousemoveWait:R,recordDOM:N=!0,recordCanvas:O=!1,recordCrossOriginIframes:I=!1,recordAfter:P=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:U=!1,collectFonts:H=!1,inlineImages:z=!1,plugins:j,keepIframeSrcFn:$=()=>!1,ignoreCSSAttributes:Z=new Set([]),errorHandler:J}=t;aEe(J);const q=I?window.parent===window:!0;let X=!1;if(!q)try{window.parent.document&&(X=!1)}catch{X=!0}if(q&&!e)throw new Error("emit function is required");if(!q&&!X)return()=>{};R!==void 0&&k.mousemove===void 0&&(k.mousemove=R),Ha.reset();const ae=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:g!==void 0?g:{password:!0},he=wB(y);ZCe();let xe,D=0;const Y=Ce=>{for(const mt of j||[])mt.eventProcessor&&(Ce=mt.eventProcessor(Ce));return E&&!X&&(Ce=E(Ce)),Ce};vn=(Ce,mt)=>{var Ee;const Be=Ce;if(Be.timestamp=I1(),(Ee=Dl[0])!=null&&Ee.isFrozen()&&Be.type!==Ct.FullSnapshot&&!(Be.type===Ct.IncrementalSnapshot&&Be.data.source===ht.Mutation)&&Dl.forEach($e=>$e.unfreeze()),q)e?.(Y(Be),mt);else if(X){const $e={type:"rrweb",event:Y(Be),origin:window.location.origin,isCheckout:mt};window.parent.postMessage($e,"*")}if(Be.type===Ct.FullSnapshot)xe=Be,D=0;else if(Be.type===Ct.IncrementalSnapshot){if(Be.data.source===ht.Mutation&&Be.data.isAttachIframe)return;D++;const $e=r&&D>=r,qe=n&&Be.timestamp-xe.timestamp>n;($e||qe)&&N0(!0)}};const G=Ce=>{vn({type:Ct.IncrementalSnapshot,data:{source:ht.Mutation,...Ce}})},Q=Ce=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.Scroll,...Ce}}),V=Ce=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.CanvasMutation,...Ce}}),ue=Ce=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.AdoptedStyleSheet,...Ce}}),oe=new IEe({mutationCb:G,adoptedStyleSheetCb:ue}),ce=new bEe({mirror:Ha,mutationCb:G,stylesheetManager:oe,recordCrossOriginIframes:I,wrappedEmit:vn});for(const Ce of j||[])Ce.getMirror&&Ce.getMirror({nodeMirror:Ha,crossOriginIframeMirror:ce.crossOriginIframeMirror,crossOriginIframeStyleMirror:ce.crossOriginIframeStyleMirror});const be=new OEe;rE=new REe({recordCanvas:O,mutationCb:V,win:window,blockClass:a,blockSelector:s,mirror:Ha,sampling:k.canvas,dataURLOptions:A});const Ge=new SEe({mutationCb:G,scrollCb:Q,bypassOptions:{blockClass:a,blockSelector:s,maskTextClass:c,maskTextSelector:f,inlineStylesheet:h,maskInputOptions:ae,dataURLOptions:A,maskTextFn:w,maskInputFn:S,recordCanvas:O,inlineImages:z,sampling:k,slimDOMOptions:he,iframeManager:ce,stylesheetManager:oe,canvasManager:rE,keepIframeSrcFn:$,processedNodeManager:be},mirror:Ha});N0=(Ce=!1)=>{if(!N)return;vn({type:Ct.Meta,data:{href:window.location.href,width:q$(),height:H$()}},Ce),oe.reset(),Ge.init(),Dl.forEach(Ee=>Ee.lock());const mt=rwe(document,{mirror:Ha,blockClass:a,blockSelector:s,maskTextClass:c,maskTextSelector:f,inlineStylesheet:h,maskAllInputs:ae,maskTextFn:w,maskInputFn:S,slimDOM:he,dataURLOptions:A,recordCanvas:O,inlineImages:z,onSerialize:Ee=>{G$(Ee,Ha)&&ce.addIframe(Ee),K$(Ee,Ha)&&oe.trackLinkElement(Ee),i_(Ee)&&Ge.addShadowRoot(at.shadowRoot(Ee),document)},onIframeLoad:(Ee,Be)=>{ce.attachIframe(Ee,Be),Ge.observeAttachShadow(Ee)},onStylesheetLoad:(Ee,Be)=>{oe.attachLinkElement(Ee,Be)},keepIframeSrcFn:$});if(!mt)return console.warn("Failed to snapshot the document");vn({type:Ct.FullSnapshot,data:{node:mt,initialOffset:$$(window)}},Ce),Dl.forEach(Ee=>Ee.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&oe.adoptStyleSheets(document.adoptedStyleSheets,Ha.getId(document))};try{const Ce=[],mt=Be=>{var $e;return yt(yEe)({mutationCb:G,mousemoveCb:(qe,gr)=>vn({type:Ct.IncrementalSnapshot,data:{source:gr,positions:qe}}),mouseInteractionCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.MouseInteraction,...qe}}),scrollCb:Q,viewportResizeCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.ViewportResize,...qe}}),inputCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.Input,...qe}}),mediaInteractionCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.MediaInteraction,...qe}}),styleSheetRuleCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.StyleSheetRule,...qe}}),styleDeclarationCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.StyleDeclaration,...qe}}),canvasMutationCb:V,fontCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.Font,...qe}}),selectionCb:qe=>{vn({type:Ct.IncrementalSnapshot,data:{source:ht.Selection,...qe}})},customElementCb:qe=>{vn({type:Ct.IncrementalSnapshot,data:{source:ht.CustomElement,...qe}})},blockClass:a,ignoreClass:i,ignoreSelector:u,maskTextClass:c,maskTextSelector:f,maskInputOptions:ae,inlineStylesheet:h,sampling:k,recordDOM:N,recordCanvas:O,inlineImages:z,userTriggeredOnInput:U,collectFonts:H,doc:Be,maskInputFn:S,maskTextFn:w,keepIframeSrcFn:$,blockSelector:s,slimDOMOptions:he,dataURLOptions:A,mirror:Ha,iframeManager:ce,stylesheetManager:oe,shadowDomManager:Ge,processedNodeManager:be,canvasManager:rE,ignoreCSSAttributes:Z,plugins:(($e=j?.filter(qe=>qe.observer))==null?void 0:$e.map(qe=>({observer:qe.observer,options:qe.options,callback:gr=>vn({type:Ct.Plugin,data:{plugin:qe.name,payload:gr}})})))||[]},x)};ce.addLoadListener(Be=>{try{Ce.push(mt(Be.contentDocument))}catch($e){console.warn($e)}});const Ee=()=>{N0(),Ce.push(mt(document)),N1=!0};return["interactive","complete"].includes(document.readyState)?Ee():(Ce.push(Cr("DOMContentLoaded",()=>{vn({type:Ct.DomContentLoaded,data:{}}),P==="DOMContentLoaded"&&Ee()})),Ce.push(Cr("load",()=>{vn({type:Ct.Load,data:{}}),P==="load"&&Ee()},window))),()=>{Ce.forEach(Be=>{try{Be()}catch($e){String($e).toLowerCase().includes("cross-origin")||console.warn($e)}}),be.destroy(),N1=!1,sEe()}}catch(Ce){console.warn(Ce)}}Op.addCustomEvent=(t,e)=>{if(!N1)throw new Error("please add custom event after start recording");vn({type:Ct.Custom,data:{tag:t,payload:e}})};Op.freezePage=()=>{Dl.forEach(t=>t.freeze())};Op.takeFullSnapshot=t=>{if(!N1)throw new Error("please take full snapshot after start recording");N0(t)};Op.mirror=Ha;var f9;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(f9||(f9={}));const NEe="rrweb",MEe={maskAllInputs:!0,maskTextSelector:"*",maskInputOptions:void 0},PEe={additionalSampleRate:1,batchSize:50,flushInterval:5e3,recordOptions:{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,recordCrossOriginIframes:!1}},h9=PEe;class DEe extends Ma{constructor(e){super(NEe),this.recordingEvents=[],this.isRecording=!1,this.recordingStartTime=null,this.flushTimer=null,this.stopRecording=null,this.enabled=!1;const n=Object.assign(Object.assign(Object.assign({},h9.recordOptions),e?.recordOptions),MEe);this.config=Object.assign(Object.assign(Object.assign({},h9),e),{recordOptions:n}),Se.info("RRWebPlugin initialized",{additionalSampleRate:this.config.additionalSampleRate,batchSize:this.config.batchSize,flushInterval:this.config.flushInterval})}enable(){var e;if(this.enabled){Se.info("RRWebPlugin already enabled");return}const n=(e=this.context)===null||e===void 0?void 0:e.getSession();if(!n||!n.record){Se.warn("RRWebPlugin skipping - session not being recorded",{hasSession:!!n,sessionRecord:n?.record});return}const r=Math.random();if(r>this.config.additionalSampleRate){Se.warn("RRWebPlugin skipping - session replay additionalSampleRate",{randomValue:r,samplingRate:this.config.additionalSampleRate});return}this.enabled=!0,Se.info("RRWebPlugin enabled - starting recording"),this.startRecording()}disable(){if(!this.enabled){Se.info("RRWebPlugin already disabled");return}Se.info("RRWebPlugin disabled - stopping recording"),this.enabled=!1,this.stopCurrentRecording()}record(e){const n=e?.action;n==="start"?(Se.info("RRWebPlugin manual start recording"),this.startRecording()):n==="stop"&&(Se.info("RRWebPlugin manual stop recording"),this.stopCurrentRecording())}onload(){}startRecording(){this.recordingStartTime=Date.now(),this.recordingEvents=[],this.isRecording=!0,Se.info("RRWebPlugin starting rrweb recording",{startTime:this.recordingStartTime});const e=Op(Object.assign(Object.assign({},this.config.recordOptions),{emit:this.handleRRWebEvent.bind(this)}));e?(this.stopRecording=e,Se.info("RRWebPlugin rrweb recording initialized successfully")):Se.warn("RRWebPlugin failed to initialize rrweb recording"),this.flushTimer=window.setInterval(()=>{this.flush()},this.config.flushInterval)}stopCurrentRecording(){if(!this.isRecording){Se.info("RRWebPlugin stopCurrentRecording called but not recording");return}Se.info("RRWebPlugin stopping current recording"),this.isRecording=!1,this.stopRecording&&(this.stopRecording(),this.stopRecording=null,Se.info("RRWebPlugin rrweb recording stopped")),this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null,Se.info("RRWebPlugin flush timer cleared")),this.flush()}handleRRWebEvent(e){this.isRecording&&(this.recordingEvents.push(e),this.recordingEvents.length>=this.config.batchSize&&(Se.info("RRWebPlugin flushing events due to batch size",{eventCount:this.recordingEvents.length,batchSize:this.config.batchSize}),this.flush()))}flush(){if(this.recordingEvents.length===0){Se.info("RRWebPlugin flushEvent called but no events to flush");return}Se.info("RRWebPlugin flushing events",{eventCount:this.recordingEvents.length});const e=[...this.recordingEvents],n={version:"1.0.0",events:e,eventCount:e.length};this.context.record(QM,n),Se.info("RRWebPlugin events sent to RUM",{eventType:QM,eventCount:this.recordingEvents.length}),this.recordingEvents=[]}}var LEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n},u_;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(u_||(u_={}));const oH="us-west-2",c_=`https://dataplane.rum.${oH}.amazonaws.com`,iH=()=>({unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}),lH=t=>({allowCookies:!1,batchLimit:100,client:oye,compressionStrategy:{enabled:!0},cookieAttributes:t,debug:!1,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:c_,endpointUrl:new URL(c_),eventCacheSize:1e3,eventPluginsToLoad:[],pageIdFormat:u_.Path,pagesToExclude:[],pagesToInclude:[/.*/],signing:!1,recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionAttributes:{},sessionEventLimit:200,sessionLengthSeconds:1800,sessionSampleRate:1,suppressSessionStartEvent:!1,useBeacon:!0,userIdRetentionDays:30,enableW3CTraceId:!1,candidatesCacheSize:10});let UEe=class{constructor(e,n,r,a={}){var{cookieAttributes:s}=a,i=LEe(a,["cookieAttributes"]);this.eventBus=new QF,typeof r>"u"&&(r="us-west-2"),this.applicationId=e;const u=Object.assign(Object.assign({},iH()),s);this.config=Object.assign(Object.assign({fetchFunction:fetch},lH(u)),i),this.config.sessionId&&(this.config.suppressSessionStartEvent=!0),this.config.endpoint=i.endpoint?i.endpoint:c_.replace(oH,r),this.config.endpointUrl=new URL(this.config.endpoint),Se.configure(this.config.debug),Se.info("Initialized RUM Slim"),this.eventCache=new vbe({id:e,version:n},this.config,this.eventBus),this.dispatchManager=this.initDispatch(r,e),this.pluginManager=this.initPluginManager(e,n),this.eventCache.setPluginFlushHook(()=>this.pluginManager.flush()),this.config.enableRumClient?this.enable():this.disable()}setAwsCredentials(e){this.dispatchManager.setAwsCredentials(e)}setSigningConfigFactory(e){this.dispatchManager.setSigningConfigFactory(e)}addSessionAttributes(e){this.eventCache.addSessionAttributes(e)}getSessionId(){return this.eventCache.getSessionId()}pinSessionId(e){this.eventCache.pinSessionId(e)}startSession(e){return this.eventCache.startSession(e)}getUserId(){return this.eventCache.getUserId()}pinUserId(e){this.eventCache.pinUserId(e)}setEventMetadataHook(e){this.eventCache.setEventMetadataHook(e)}clearEventMetadataHook(){this.eventCache.clearEventMetadataHook()}addPlugin(e){this.pluginManager.addPlugin(e)}dispatch(){this.dispatchManager.dispatchFetch()}dispatchBeacon(){this.dispatchManager.dispatchBeacon()}enable(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()}disable(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()}allowCookies(e){this.config.allowCookies=e}clearCookies(){const e=this.config.cookieAttributes;[d1,f1,Jc,`${d1}_${this.applicationId}`,`${f1}_${this.applicationId}`,`${Jc}_${this.applicationId}`].forEach(r=>ube(r,e))}recordPageView(e){this.eventCache.recordPageView(e)}recordError(e){this.pluginManager.record("com.amazonaws.rum.js-error",e)}registerDomEvents(e){this.pluginManager.updatePlugin("com.amazonaws.rum.dom-event",e)}recordEvent(e,n,r){this.eventCache.recordEvent(e,n,r)}initDispatch(e,n){return new iye(n,e,this.config.endpointUrl,this.eventCache,this.config)}initPluginManager(e,n){const r={applicationId:e,applicationVersion:n,config:this.config,record:this.eventCache.recordEvent,recordCandidate:this.eventCache.recordCandidate,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession,eventBus:this.eventBus},a=new lbe(r);return this.config.disableAutoPageView||a.addPlugin(new Dbe),this.config.eventPluginsToLoad.forEach(s=>{a.addPlugin(s)}),a}};var Za;(function(t){t.Errors="errors",t.Performance="performance",t.Interaction="interaction",t.Http="http",t.Replay="replay"})(Za||(Za={}));var p9;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(p9||(p9={}));const zEe=t=>Object.assign(Object.assign({},lH(t)),{signing:!0,telemetries:[Za.Errors,Za.Performance,Za.Http,Za.Replay]});class jEe extends UEe{constructor(e,n,r,a={}){super(e,n,r,Object.assign(Object.assign({},zEe(iH())),a)),Se.info(`RUM client initialized for app: ${e}`),Se.info(`Telemetries enabled: ${this.config.telemetries.join(", ")||"none"}`)}initDispatch(e,n){const r=super.initDispatch(e,n);return r.setSigningConfigFactory(Lye),r.setCognitoCredentialProviderFactory((a,s,i,u)=>{const c={identityPoolId:i,guestRoleArn:u,cookieAttributes:a.cookieAttributes};return i&&u?new Qye(c,s).ChainAnonymousCredentialsProvider:new Jye(c,s).ChainAnonymousCredentialsProvider}),this.config.signing&&this.config.identityPoolId&&r.setCognitoCredentials(this.config.identityPoolId,this.config.guestRoleArn),r}initPluginManager(e,n){const r=super.initPluginManager(e,n);return this.constructBuiltinPlugins().forEach(s=>{r.addPlugin(s)}),r}recordError(e){this.pluginManager.record(tB,e)}registerDomEvents(e){this.pluginManager.updatePlugin(JF,e)}constructBuiltinPlugins(){let e=[];const n=this.telemetryFunctor();return this.config.telemetries.forEach(r=>{typeof r=="string"&&n[r.toLowerCase()]?e=[...e,...n[r.toLowerCase()]({})]:Array.isArray(r)&&n[r[0].toLowerCase()]&&(e=[...e,...n[r[0].toLowerCase()](r[1])])}),e}telemetryFunctor(){return{[Za.Errors]:e=>[new Tbe(e)],[Za.Performance]:e=>[new Obe(e),new Ube(e),new rSe(e)],[Za.Interaction]:e=>[new SA(e)],[Za.Http]:e=>[new lSe(e),new sSe(e)],[Za.Replay]:e=>[new DEe(e)]}}}const uH={recordPageView:()=>{},recordError:()=>{},recordEvent:()=>{},recordTiming:()=>{}},FEe=/([?&](token|access_token|id_token|authorization)=[^&]*)|\/messages\/[a-z0-9_-]+/gi;function cH(t){return t.replace(FEe,"[redacted]")}function BEe(t){const e=t.indexOf("?"),n=t.indexOf("#"),r=e===-1&&n===-1?t.length:e===-1?n:n===-1?e:Math.min(e,n);return cH(t.slice(0,r))}function $Ee(t){const e=cH(t.message);if(e===t.message)return t;const n=new Error(e);return n.name=t.name,n.stack=t.stack,n}function HEe(t){return{recordPageView(e){t.recordPageView(BEe(e))},recordError(e,n){t.recordError($Ee(e)),n&&t.recordEvent("telemetry.error_context",n)},recordEvent(e,n){t.recordEvent(e,n??{})},recordTiming(e,n,r){t.recordEvent("telemetry.timing",{...r,name:e,durationMs:String(n)})}}}function m9(t){return t instanceof Error?t:new Error(String(t))}function qEe(t){window.addEventListener("error",e=>{t.recordError(m9(e.error??e.message))}),window.addEventListener("unhandledrejection",e=>{t.recordError(m9(e.reason))})}function WEe(){const{appMonitorId:t,identityPoolId:e,region:n}=ev().rum;if(!t)return uH;const r=new jEe(t,"1.0.0",n,{sessionSampleRate:1,identityPoolId:e,endpoint:`https://dataplane.rum.${n}.amazonaws.com`,telemetries:["performance"],disableAutoPageView:!0,allowCookies:!1,enableXRay:!1}),a=HEe(r);return qEe(a),a}const dH=_.createContext(uH);function CIe(){return _.useContext(dH)}const d_="remit.theme",VEe="dark";function g9(){return typeof localStorage>"u"?"system":localStorage.getItem(d_)??"system"}function f_(t){if(typeof document>"u")return;const e=t==="dark"||t==="system"&&typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle(VEe,e)}function EIe(t){typeof localStorage<"u"&&(t==="system"?localStorage.removeItem(d_):localStorage.setItem(d_,t)),f_(t)}const GEe=()=>{if(typeof window>"u"||(f_(g9()),typeof window.matchMedia!="function"))return;const t=window.matchMedia("(prefers-color-scheme: dark)"),e=()=>{f_(g9())};typeof t.addEventListener=="function"?t.addEventListener("change",e):t.addListener(e)},KEe=(t,e,n,r)=>{const a=[n,{code:e,...r||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(a,"warn","react-i18next::",!0);Wl(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...a):console?.warn&&console.warn(...a)},v9={},h_=(t,e,n,r)=>{Wl(n)&&v9[n]||(Wl(n)&&(v9[n]=new Date),KEe(t,e,n,r))},fH=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},p_=(t,e,n)=>{t.loadNamespaces(e,fH(t,n))},y9=(t,e,n,r)=>{if(Wl(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return p_(t,n,r);n.forEach(a=>{t.options.ns.indexOf(a)<0&&t.options.ns.push(a)}),t.loadLanguages(e,fH(t,r))},YEe=(t,e,n={})=>!e.languages||!e.languages.length?(h_(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,t))return!1}}),Wl=t=>typeof t=="string",ZEe=t=>typeof t=="object"&&t!==null,XEe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,QEe={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},JEe=t=>QEe[t],e3e=t=>t.replace(XEe,JEe);let m_={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e3e};const t3e=(t={})=>{m_={...m_,...t}},n3e=()=>m_;let hH;const r3e=t=>{hH=t},a3e=()=>hH,s3e={type:"3rdParty",init(t){t3e(t.options.react),r3e(t)}},o3e=_.createContext();class i3e{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const l3e=(t,e)=>{const n=_.useRef();return _.useEffect(()=>{n.current=t},[t,e]),n.current},pH=(t,e,n,r)=>t.getFixedT(e,n,r),u3e=(t,e,n,r)=>_.useCallback(pH(t,e,n,r),[t,e,n,r]),c3e=(t,e={})=>{const{i18n:n}=e,{i18n:r,defaultNS:a}=_.useContext(o3e)||{},s=n||r||a3e();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new i3e),!s){h_(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const R=(O,I)=>Wl(I)?I:ZEe(I)&&Wl(I.defaultValue)?I.defaultValue:Array.isArray(O)?O[O.length-1]:O,N=[R,{},!1];return N.t=R,N.i18n={},N.ready=!1,N}s.options.react?.wait&&h_(s,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...n3e(),...s.options.react,...e},{useSuspense:u,keyPrefix:c}=i;let f=t||a||s.options?.defaultNS;f=Wl(f)?[f]:f||["translation"],s.reportNamespaces.addUsedNamespaces?.(f);const h=(s.isInitialized||s.initializedStoreOnce)&&f.every(R=>YEe(R,s,i)),m=u3e(s,e.lng||null,i.nsMode==="fallback"?f:f[0],c),g=()=>m,y=()=>pH(s,e.lng||null,i.nsMode==="fallback"?f:f[0],c),[S,w]=_.useState(g);let x=f.join();e.lng&&(x=`${e.lng}${x}`);const E=l3e(x),k=_.useRef(!0);_.useEffect(()=>{const{bindI18n:R,bindI18nStore:N}=i;k.current=!0,!h&&!u&&(e.lng?y9(s,e.lng,f,()=>{k.current&&w(y)}):p_(s,f,()=>{k.current&&w(y)})),h&&E&&E!==x&&k.current&&w(y);const O=()=>{k.current&&w(y)};return R&&s?.on(R,O),N&&s?.store.on(N,O),()=>{k.current=!1,s&&R&&R?.split(" ").forEach(I=>s.off(I,O)),N&&s&&N.split(" ").forEach(I=>s.store.off(I,O))}},[s,x]),_.useEffect(()=>{k.current&&h&&w(g)},[s,c,h]);const A=[S,s,h];if(A.t=S,A.i18n=s,A.ready=h,h||!h&&!u)return A;throw new Promise(R=>{e.lng?y9(s,e.lng,f,()=>R()):p_(s,f,()=>R())})},d3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts",...t,headers:{"Content-Type":"application/json",...t.headers}}),f3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/oauth/microsoft/start",...t,headers:{"Content-Type":"application/json",...t.headers}}),h3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/test-connection",...t,headers:{"Content-Type":"application/json",...t.headers}}),p3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}",...t}),m3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),g3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters",...t}),v3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters",...t,headers:{"Content-Type":"application/json",...t.headers}}),y3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters/{filterId}",...t}),b3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters/{filterId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),S3e=t=>(t.client??Pe).put({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/folder-roles/{role}",...t,headers:{"Content-Type":"application/json",...t.headers}}),w3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels",...t}),x3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels",...t,headers:{"Content-Type":"application/json",...t.headers}}),C3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels/{labelId}",...t}),E3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels/{labelId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),_3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes",...t}),k3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes",...t,headers:{"Content-Type":"application/json",...t.headers}}),_Ie=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes/{mailboxId}",...t}),A3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes/{mailboxId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),T3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize",...t,headers:{"Content-Type":"application/json",...t.headers}}),R3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize/preview",...t,headers:{"Content-Type":"application/json",...t.headers}}),I3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize/{organizeJobId}",...t}),O3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/sync",...t}),N3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/sync/status",...t}),M3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/addresses/search",...t}),P3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/addresses/{addressId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),D3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/config",...t}),kIe=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/mailboxes/{mailboxId}/threads",...t}),L3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/mailboxes/{mailboxId}/threads/search",...t}),U3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/me",...t,headers:{"Content-Type":"application/json",...t.headers}}),z3e=t=>(t?.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/me/export",...t}),j3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/me/vip-suggestions",...t}),F3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/delete",...t,headers:{"Content-Type":"application/json",...t.headers}}),B3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/flags",...t,headers:{"Content-Type":"application/json",...t.headers}}),$3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/labels",...t,headers:{"Content-Type":"application/json",...t.headers}}),H3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/move",...t,headers:{"Content-Type":"application/json",...t.headers}}),AIe=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/not-spam",...t,headers:{"Content-Type":"application/json",...t.headers}}),TIe=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/report-spam",...t,headers:{"Content-Type":"application/json",...t.headers}}),q3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}",...t}),W3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}/flags",...t,headers:{"Content-Type":"application/json",...t.headers}}),V3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}/raw",...t}),G3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox",...t}),K3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox",...t,headers:{"Content-Type":"application/json",...t.headers}}),Y3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...t}),Z3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...t}),X3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),Q3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}/send",...t}),J3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/search/semantic",...t}),e_e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/system/update",...t}),t_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/system/update",...t,headers:{"Content-Type":"application/json",...t.headers}}),n_e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/threads",...t}),r_e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/threads/{threadId}/messages",...t}),RIe=t=>({mutationFn:async n=>{const{data:r}=await d3e({...t,...n,throwOnError:!0});return r}}),jn=(t,e,n,r)=>{const a={_id:t,baseUrl:e?.baseUrl||(e?.client??Pe).getConfig().baseUrl};return e?.body&&(a.body=e.body),e?.headers&&(a.headers=e.headers),e?.path&&(a.path=e.path),e?.query&&(a.query=e.query),[a]},IIe=t=>({mutationFn:async n=>{const{data:r}=await f3e({...t,...n,throwOnError:!0});return r}}),OIe=t=>({mutationFn:async n=>{const{data:r}=await h3e({...t,...n,throwOnError:!0});return r}}),NIe=t=>({mutationFn:async n=>{const{data:r}=await p3e({...t,...n,throwOnError:!0});return r}}),MIe=t=>({mutationFn:async n=>{const{data:r}=await m3e({...t,...n,throwOnError:!0});return r}}),a_e=t=>jn("filterOperationsListFilters",t),PIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await g3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:a_e(t)}),DIe=t=>({mutationFn:async n=>{const{data:r}=await v3e({...t,...n,throwOnError:!0});return r}}),LIe=t=>({mutationFn:async n=>{const{data:r}=await y3e({...t,...n,throwOnError:!0});return r}}),UIe=t=>jn("filterDetailOperationsGetFilter",t),zIe=t=>({mutationFn:async n=>{const{data:r}=await b3e({...t,...n,throwOnError:!0});return r}}),jIe=t=>({mutationFn:async n=>{const{data:r}=await S3e({...t,...n,throwOnError:!0});return r}}),s_e=t=>jn("labelOperationsListLabels",t),FIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await w3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:s_e(t)}),BIe=t=>({mutationFn:async n=>{const{data:r}=await x3e({...t,...n,throwOnError:!0});return r}}),$Ie=t=>({mutationFn:async n=>{const{data:r}=await C3e({...t,...n,throwOnError:!0});return r}}),HIe=t=>({mutationFn:async n=>{const{data:r}=await E3e({...t,...n,throwOnError:!0});return r}}),o_e=t=>jn("mailboxOperationsListMailboxes",t),qIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await _3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:o_e(t)}),WIe=t=>({mutationFn:async n=>{const{data:r}=await k3e({...t,...n,throwOnError:!0});return r}}),VIe=t=>({mutationFn:async n=>{const{data:r}=await A3e({...t,...n,throwOnError:!0});return r}}),GIe=t=>({mutationFn:async n=>{const{data:r}=await T3e({...t,...n,throwOnError:!0});return r}}),KIe=t=>({mutationFn:async n=>{const{data:r}=await R3e({...t,...n,throwOnError:!0});return r}}),i_e=t=>jn("organizeJobDetailOperationsGetOrganizeJob",t),YIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await I3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:i_e(t)}),ZIe=t=>({mutationFn:async n=>{const{data:r}=await O3e({...t,...n,throwOnError:!0});return r}}),l_e=t=>jn("syncOperationsGetSyncStatus",t),XIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await N3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:l_e(t)}),u_e=t=>jn("addressOperationsSearchAddresses",t),QIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await M3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:u_e(t)}),JIe=t=>({mutationFn:async n=>{const{data:r}=await P3e({...t,...n,throwOnError:!0});return r}}),c_e=t=>jn("configOperationsGetConfig",t),d_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await D3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:c_e(t)}),e4e=t=>jn("threadOperationsListThreads",t),f_e=t=>jn("threadOperationsSearchThreads",t),t4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await L3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:f_e(t)}),n4e=t=>({mutationFn:async n=>{const{data:r}=await U3e({...t,...n,throwOnError:!0});return r}}),r4e=t=>({mutationFn:async n=>{const{data:r}=await z3e({...t,...n,throwOnError:!0});return r}}),h_e=t=>jn("meOperationsListVipSuggestions",t),a4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await j3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:h_e(t)}),s4e=t=>({mutationFn:async n=>{const{data:r}=await F3e({...t,...n,throwOnError:!0});return r}}),o4e=t=>({mutationFn:async n=>{const{data:r}=await B3e({...t,...n,throwOnError:!0});return r}}),i4e=t=>({mutationFn:async n=>{const{data:r}=await $3e({...t,...n,throwOnError:!0});return r}}),l4e=t=>({mutationFn:async n=>{const{data:r}=await H3e({...t,...n,throwOnError:!0});return r}}),p_e=t=>jn("messageOperationsDescribeMessage",t),u4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await q3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:p_e(t)}),c4e=t=>({mutationFn:async n=>{const{data:r}=await W3e({...t,...n,throwOnError:!0});return r}}),m_e=t=>jn("messageOperationsGetRawMessage",t),d4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await V3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:m_e(t)}),mH=t=>jn("outboxOperationsListOutboxMessages",t),f4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await G3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:mH(t)}),h4e=t=>({mutationFn:async n=>{const{data:r}=await K3e({...t,...n,throwOnError:!0});return r}}),p4e=t=>({mutationFn:async n=>{const{data:r}=await Y3e({...t,...n,throwOnError:!0});return r}}),g_e=t=>jn("outboxDetailOperationsGetOutboxMessage",t),v_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await Z3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:g_e(t)}),m4e=t=>({mutationFn:async n=>{const{data:r}=await X3e({...t,...n,throwOnError:!0});return r}}),g4e=t=>({mutationFn:async n=>{const{data:r}=await Q3e({...t,...n,throwOnError:!0});return r}}),y_e=t=>jn("semanticSearchOperationsSemanticSearch",t),v4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await J3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:y_e(t)}),gH=t=>jn("systemOperationsGetSystemUpdate",t),b_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await e_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:gH(t)}),S_e=t=>({mutationFn:async n=>{const{data:r}=await t_e({...t,...n,throwOnError:!0});return r}}),w_e=t=>jn("unifiedThreadOperationsListAllThreads",t),x_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await n_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:w_e(t)}),C_e=t=>jn("threadDetailOperationsListThreadMessages",t),y4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await r_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:C_e(t)}),vH=_.createContext(void 0),b9={isOpen:!1,mode:"new"},E_e=2e3,__e=6e4,k_e=({children:t})=>{const[e,n]=_.useState(b9),[r,a]=_.useState(),s=_.useRef(0),i=zv(),{data:u}=Yj({...v_e({path:{outboxMessageId:r??""}}),enabled:!!r,refetchInterval:y=>{const S=y.state.data?.status;return S==="sent"||S==="failed"||S==="blocked"||Date.now()-s.current>__e?!1:E_e}});_.useEffect(()=>{if(!u||!r)return;(u.status==="sent"||u.status==="failed"||u.status==="blocked")&&(a(void 0),i.invalidateQueries({queryKey:mH()}))},[u,r,i]);const c=_.useCallback(y=>{n({...y,isOpen:!0})},[]),f=_.useCallback(()=>{n(b9)},[]),h=_.useCallback(y=>{n(S=>({...S,outboxMessageId:y}))},[]),m=_.useCallback(y=>{s.current=Date.now(),a(y)},[]),g=_.useMemo(()=>({state:e,openCompose:c,closeCompose:f,setOutboxMessageId:h,startSendPolling:m}),[e,c,f,h,m]);return C.jsx(vH.Provider,{value:g,children:t})},b4e=()=>{const t=_.useContext(vH);if(!t)throw new Error("useCompose must be used within a ComposeProvider");return t},A_e=600,T_e=300,yH="remit logs",R_e="https://github.com/remit-mail/reader/releases/tag/",I_e={checking:"preparing",pulling:"preparing",snapshotting:"preparing",stopping:"restarting",starting:"restarting",verifying:"reconnecting",committing:"reconnecting",rollingBack:"reconnecting",recovering:"reconnecting"};function eT(t){return I_e[t]??"reconnecting"}function bH(t){const e=du(t);return e===404||e===403||e===401}function SH(t,e){const n=t?.check;if(n?.status==="ok"&&!(!n.updateAvailable||!n.latestVersion))return{version:n.latestVersion,releasedAt:M1(n.publishedAt)??e,releaseNotesUrl:n.releaseNotesUrl??xH(n.latestVersion),summary:n.summary??""}}function O_e(t){const e=t?.check.schemaVersion,n=t?.currentSchemaVersion;return e===void 0||n===void 0?!1:e>n}function S9(){return A_e+T_e}function wH(t,e){return Math.max(0,Math.floor((e-t)/1e3))}function M1(t){if(!t)return;const e=Date.parse(t);return Number.isNaN(e)?void 0:e}function xH(t){return`${R_e}${t}`}function Th(t,e,n,r,a){return{status:"applying",runId:t,version:e,target:n,phase:r,elapsedSeconds:a}}function N_e(t,e,n){switch(n){case"succeeded":return{status:"succeeded",runId:e.runId,version:e.targetVersion,previousVersion:e.fromVersion,releaseNotesUrl:t.check.releaseNotesUrl??xH(e.targetVersion)};case"rolledBack":return{status:"rolledBack",runId:e.runId,version:e.fromVersion,attemptedVersion:e.targetVersion,reason:e.message,logsCommand:e.logCommand};case"rollbackFailed":return{status:"rollbackFailed",runId:e.runId,attemptedVersion:e.targetVersion,previousVersion:e.fromVersion,reason:e.message,logsCommand:e.logCommand};case"abandoned":return{status:"abandoned",runId:e.runId,version:e.fromVersion,attemptedVersion:e.targetVersion,reason:e.message,logsCommand:e.logCommand};default:return n}}function M_e(t,e,n){const r=t.check;if(e)return{status:"checking",version:t.currentVersion};if(r.status==="failed")return{status:"checkFailed",version:t.currentVersion,reason:r.error??"Remit could not reach the update service.",lastCheckedAt:M1(r.lastCheckedAt)};if(r.status==="disabled")return{status:"neverChecked",version:t.currentVersion};const a=SH(t,n);return a?{status:"available",version:t.currentVersion,release:a}:{status:"upToDate",version:t.currentVersion,checkedAt:M1(r.lastCheckedAt)??n}}function aE(t,e,n){return{surface:{status:"ready",section:t,overlay:e},releaseHeld:n}}function P_e(t,e){return{surface:{status:"ready",section:Th(t.runId,t.previousVersion,t.attemptedVersion,"reconnecting",e),overlay:{kind:"neverCameBack",attemptedVersion:t.attemptedVersion,previousVersion:t.previousVersion,elapsedSeconds:e,logsCommand:yH}},releaseHeld:!1}}function D_e(t,e,n,r,a){const s=wH(t.startedAt,a),i=e?.currentVersion??t.previousVersion,u=!r&&n!==null&&n.runId===t.runId;if(u&&n!==null&&n.outcome!==null)return null;if(u&&n!==null){const c=eT(n.phase);return aE(Th(n.runId,i,n.targetVersion,c,s),{kind:"applying",target:n.targetVersion,phase:c,elapsedSeconds:s},!1)}return r?s>S9()?P_e(t,s):aE(Th(t.runId,t.previousVersion,t.attemptedVersion,"reconnecting",s),{kind:"applying",target:t.attemptedVersion,phase:"reconnecting",elapsedSeconds:s},!1):e===void 0?{surface:{status:"loading"},releaseHeld:!1}:s>S9()?{surface:{status:"ready",section:{status:"unreachable",runId:t.runId,previousVersion:t.previousVersion,attemptedVersion:t.attemptedVersion,elapsedSeconds:s,logsCommand:n?.logCommand??yH},overlay:{kind:"none"}},releaseHeld:!0}:aE(Th(t.runId,i,t.attemptedVersion,t.phase,s),{kind:"applying",target:t.attemptedVersion,phase:t.phase,elapsedSeconds:s},!1)}function w9(t){const{data:e,isError:n,isFetching:r,dismissedRunId:a,checkRequested:s,now:i}=t;if(n)return{status:"ready",section:{status:"checkFailed",version:e?.currentVersion??"the current version",reason:"Remit could not reach the update service."},overlay:{kind:"none"}};if(!e)return{status:"loading"};const u=e.run,c=u!==null&&a!==null&&u.runId===a;if(u!==null&&!c&&u.outcome!==null)return{status:"ready",section:N_e(e,u,u.outcome),overlay:{kind:"none"}};if(u!==null&&!c&&u.outcome===null){const f=wH(M1(u.startedAt)??i,i),h=eT(u.phase);return{status:"ready",section:Th(u.runId,u.fromVersion,u.targetVersion,h,f),overlay:{kind:"applying",target:u.targetVersion,phase:h,elapsedSeconds:f}}}return{status:"ready",section:M_e(e,s&&r,i),overlay:{kind:"none"}}}function L_e(t){const{data:e,isError:n,error:r,held:a,now:s}=t,i=e?.run??null;if(bH(r)&&!a)return{surface:{status:"absent"},releaseHeld:!0};if(a){const u=D_e(a,e,i,n,s);return u||{surface:w9(t),releaseHeld:!0}}return{surface:w9(t),releaseHeld:!1}}const U_e=3e4,z_e=5e3;function j_e(t,e,n){if(bH(t)&&!n)return!1;const r=e!==null&&e.outcome===null;return n||r?z_e:U_e}function F_e(){const t=zv(),[e,n]=_.useState(null),[r,a]=_.useState(null),[s,i]=_.useState(!1),u=_.useRef(e);u.current=e;const c=Yj({...b_e(),retry:!1,meta:{softError:!0},refetchInterval:A=>j_e(A.state.error,A.state.data?.run??null,u.current!==null)}),f=L_e({data:c.data,isError:c.isError,error:c.error,isFetching:c.isFetching,held:e,dismissedRunId:r,checkRequested:s,now:Date.now()}),h=_.useRef(null);h.current=f.surface.status==="ready"&&"runId"in f.surface.section?f.surface.section.runId:null;const{releaseHeld:m}=f;_.useEffect(()=>{m&&n(A=>A===null?A:null)},[m]),_.useEffect(()=>{s&&!c.isFetching&&i(!1)},[s,c.isFetching]);const{refetch:g}=c,y=_.useCallback(()=>{i(!0),g()},[g]),S=_.useCallback(()=>{g()},[g]),w=t0e({...S_e(),meta:{softError:!0},onSuccess:A=>{const R=A.run;R!==null&&(n({runId:R.runId,attemptedVersion:R.targetVersion,previousVersion:R.fromVersion,phase:eT(R.phase),startedAt:Date.now()}),a(null)),t.setQueryData(gH(),A)},onError:()=>{g()}}),{mutate:x}=w,E=_.useCallback(A=>{x({body:{targetVersion:A}})},[x]),k=_.useCallback(()=>{h.current!==null&&a(h.current),n(null)},[]);return{surface:f.surface,appliesSchemaMigration:O_e(c.data),currentVersion:c.data?.currentVersion,release:SH(c.data,Date.now()),onCheck:y,install:E,onDismissResult:k,onRetryConnection:S}}const tT=_.createContext(null);function B_e({children:t}){const e=F_e();return _.createElement(tT.Provider,{value:e},t)}function $_e(){const t=_.useContext(tT);if(t===null)throw new Error("useSelfUpdate must be used within a SelfUpdateProvider");return t}function H_e(){return _.useContext(tT)}function q_e(){const{surface:t,onRetryConnection:e}=$_e();if(t.status!=="ready")return null;const{overlay:n}=t;return n.kind==="applying"?C.jsx(Hre,{target:n.target,phase:n.phase,elapsedSeconds:n.elapsedSeconds}):n.kind==="neverCameBack"?C.jsx(qre,{attemptedVersion:n.attemptedVersion,previousVersion:n.previousVersion,elapsedSeconds:n.elapsedSeconds,logsCommand:n.logsCommand,onRetryConnection:e}):null}const sE=(...t)=>DL(EL(t)),W_e={error:{container:"border-danger/50 bg-danger-soft",icon:"text-danger",title:"text-danger"},warning:{container:"border-warning/50 bg-warning-soft",icon:"text-warning",title:"text-warning"},info:{container:"border-accent-2/50 bg-accent-2-soft",icon:"text-accent-2",title:"text-accent-2"}},V_e={error:AJ,warning:Nh,info:RL},G_e={error:"Error",warning:"Warning",info:"Information"},K_e=({id:t,severity:e,title:n,detail:r,onDismiss:a})=>{const s=W_e[e],i=V_e[e];return C.jsxs("div",{role:e==="error"?"alert":"status","aria-live":e==="error"?"assertive":"polite",className:sE("pointer-events-auto flex items-start gap-3 rounded-md border bg-canvas px-3 py-2 shadow-lg",s.container),children:[C.jsx(i,{className:sE("size-5 shrink-0 mt-0.5",s.icon),"aria-hidden":"true"}),C.jsxs("div",{className:"flex-1 min-w-0",children:[C.jsx("p",{className:sE("text-sm font-medium",s.title),children:n}),r&&C.jsx("p",{className:"mt-0.5 text-xs text-fg-muted break-words",children:r})]}),C.jsx("button",{type:"button",onClick:()=>a(t),className:"shrink-0 rounded-md p-1 text-fg-muted hover:bg-surface-raised hover:text-fg transition-colors","aria-label":`Dismiss ${G_e[e].toLowerCase()}`,children:C.jsx(Ms,{className:"size-4","aria-hidden":"true"})})]})},Y_e=({errors:t,onDismiss:e})=>t.length===0?null:C.jsx("section",{"aria-label":"Notifications",className:"pointer-events-none fixed inset-x-0 top-0 z-[60] flex flex-col items-center gap-2 px-4 pt-[calc(1rem+env(safe-area-inset-top,0px))] sm:items-end sm:pr-6",children:C.jsx("div",{className:"flex w-full max-w-md flex-col gap-2",children:t.map(n=>C.jsx(K_e,{id:n.id,severity:n.severity,title:n.title,detail:n.detail,onDismiss:e},n.id))})}),x9=5,S4e=(t,e,n)=>({title:t,detail:CH(n)??e,error:n}),CH=t=>{if(t!=null){if(t instanceof Error)return t.message||void 0;if(typeof t=="string")return t||void 0;if(typeof t=="object"&&"message"in t&&typeof t.message=="string")return t.message||void 0}},w4e=t=>{const e=CH(t);return e?e.startsWith("Message not found"):!1},Z_e=(t,e,n)=>t.severity===n&&t.title===e.title&&t.detail===e.detail,X_e=(t,e)=>{const r=[...t.filter(a=>!Z_e(a,{title:e.title,detail:e.detail,severity:e.severity},e.severity)),e];return r.length<=x9?r:r.slice(r.length-x9)},Q_e=(t,e)=>t.filter(n=>n.id!==e),J_e=(t,e,n)=>({id:e,severity:t.severity??"error",title:t.title,detail:t.detail,createdAt:n}),EH=_.createContext(void 0),eke=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`banner-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,tke=({children:t})=>{const[e,n]=_.useState([]),r=_.useCallback(u=>{if(u.error!=null&&qU(u.error))return Kl(u.error).correlationId;const c=J_e(u,eke(),Date.now());return n(f=>X_e(f,c)),c.id},[]),a=_.useCallback(u=>{n(c=>Q_e(c,u))},[]),s=_.useCallback(()=>{n([])},[]),i=_.useMemo(()=>({errors:e,pushError:r,dismissError:a,clearAll:s}),[e,r,a,s]);return C.jsxs(EH.Provider,{value:i,children:[t,C.jsx(Y_e,{errors:e,onDismiss:a})]})},x4e=()=>{const t=_.useContext(EH);if(!t)throw new Error("useErrorBanners must be used within an ErrorBannerProvider");return t},nke=({error:t,reset:e,info:n})=>{const r=uv(t),a=Kl(t,{recoverable:r,componentStack:n?.componentStack});return C.jsx(JU,{fatal:a,onRetry:r?e:void 0})},Np=R1e()({component:ake,errorComponent:nke}),rke=()=>{const{t}=c3e("common",{useSuspense:!1});return C.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:z-50 focus:p-4 focus:bg-canvas focus:text-fg focus:rounded-md",children:t("accessibility.skipToContent","Skip to main content")})};function ake(){return C.jsxs(tke,{children:[C.jsxs(B_e,{children:[C.jsxs(k_e,{children:[C.jsx(rke,{}),C.jsx("main",{id:"main-content",className:"h-dvh overflow-hidden",children:C.jsx(_.Suspense,{fallback:C.jsx(sk,{}),children:C.jsx(_F,{})})})]}),C.jsx(q_e,{})]}),C.jsx(QU,{})]})}const ske=ur("/")({beforeLoad:()=>{throw oF({to:"/mail"})}});var Tt;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function n(a){throw new Error}t.assertNever=n,t.arrayToEnum=a=>{const s={};for(const i of a)s[i]=i;return s},t.getValidEnumValues=a=>{const s=t.objectKeys(a).filter(u=>typeof a[a[u]]!="number"),i={};for(const u of s)i[u]=a[u];return t.objectValues(i)},t.objectValues=a=>t.objectKeys(a).map(function(s){return a[s]}),t.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const s=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&s.push(i);return s},t.find=(a,s)=>{for(const i of a)if(s(i))return i},t.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function r(a,s=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}t.joinValues=r,t.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(Tt||(Tt={}));var C9;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(C9||(C9={}));const Ie=Tt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ai=t=>{switch(typeof t){case"undefined":return Ie.undefined;case"string":return Ie.string;case"number":return Number.isNaN(t)?Ie.nan:Ie.number;case"boolean":return Ie.boolean;case"function":return Ie.function;case"bigint":return Ie.bigint;case"symbol":return Ie.symbol;case"object":return Array.isArray(t)?Ie.array:t===null?Ie.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?Ie.promise:typeof Map<"u"&&t instanceof Map?Ie.map:typeof Set<"u"&&t instanceof Set?Ie.set:typeof Date<"u"&&t instanceof Date?Ie.date:Ie.object;default:return Ie.unknown}},ge=Tt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class No extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(s){return s.message},r={_errors:[]},a=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let u=r,c=0;for(;c<i.path.length;){const f=i.path[c];c===i.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(n(i))):u[f]=u[f]||{_errors:[]},u=u[f],c++}}};return a(this),r}static assert(e){if(!(e instanceof No))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Tt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const a of this.issues)if(a.path.length>0){const s=a.path[0];n[s]=n[s]||[],n[s].push(e(a))}else r.push(e(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}No.create=t=>new No(t);const g_=(t,e)=>{let n;switch(t.code){case ge.invalid_type:t.received===Ie.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case ge.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Tt.jsonStringifyReplacer)}`;break;case ge.unrecognized_keys:n=`Unrecognized key(s) in object: ${Tt.joinValues(t.keys,", ")}`;break;case ge.invalid_union:n="Invalid input";break;case ge.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Tt.joinValues(t.options)}`;break;case ge.invalid_enum_value:n=`Invalid enum value. Expected ${Tt.joinValues(t.options)}, received '${t.received}'`;break;case ge.invalid_arguments:n="Invalid function arguments";break;case ge.invalid_return_type:n="Invalid function return type";break;case ge.invalid_date:n="Invalid date";break;case ge.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Tt.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case ge.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case ge.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case ge.custom:n="Invalid input";break;case ge.invalid_intersection_types:n="Intersection results could not be merged";break;case ge.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case ge.not_finite:n="Number must be finite";break;default:n=e.defaultError,Tt.assertNever(t)}return{message:n}};let oke=g_;function ike(){return oke}const lke=t=>{const{data:e,path:n,errorMaps:r,issueData:a}=t,s=[...n,...a.path||[]],i={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let u="";const c=r.filter(f=>!!f).slice().reverse();for(const f of c)u=f(i,{data:e,defaultError:u}).message;return{...a,path:s,message:u}};function ke(t,e){const n=ike(),r=lke({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===g_?void 0:g_].filter(a=>!!a)});t.common.issues.push(r)}class da{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const a of n){if(a.status==="aborted")return Xe;a.status==="dirty"&&e.dirty(),r.push(a.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const a of n){const s=await a.key,i=await a.value;r.push({key:s,value:i})}return da.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const a of n){const{key:s,value:i}=a;if(s.status==="aborted"||i.status==="aborted")return Xe;s.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(r[s.value]=i.value)}return{status:e.value,value:r}}}const Xe=Object.freeze({status:"aborted"}),ph=t=>({status:"dirty",value:t}),Pa=t=>({status:"valid",value:t}),E9=t=>t.status==="aborted",_9=t=>t.status==="dirty",id=t=>t.status==="valid",P1=t=>typeof Promise<"u"&&t instanceof Promise;var Ne;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Ne||(Ne={}));class Ki{constructor(e,n,r,a){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const k9=(t,e)=>{if(id(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new No(t.common.issues);return this._error=n,this._error}}};function st(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:a}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(i,u)=>{const{message:c}=t;return i.code==="invalid_enum_value"?{message:c??u.defaultError}:typeof u.data>"u"?{message:c??r??u.defaultError}:i.code!=="invalid_type"?{message:u.defaultError}:{message:c??n??u.defaultError}},description:a}}class Et{get description(){return this._def.description}_getType(e){return Ai(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Ai(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new da,ctx:{common:e.parent.common,data:e.data,parsedType:Ai(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(P1(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ai(e)},a=this._parseSync({data:e,path:r.path,parent:r});return k9(r,a)}"~validate"(e){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ai(e)};if(!this["~standard"].async)try{const r=this._parseSync({data:e,path:[],parent:n});return id(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(r=>id(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ai(e)},a=this._parse({data:e,path:r.path,parent:r}),s=await(P1(a)?a:Promise.resolve(a));return k9(r,s)}refine(e,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,s)=>{const i=e(a),u=()=>s.addIssue({code:ge.custom,...r(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(u(),!1)):i?!0:(u(),!1)})}refinement(e,n){return this._refinement((r,a)=>e(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(e){return new cd({schema:this,typeName:Qe.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ji.create(this,this._def)}nullable(){return dd.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ts.create(this)}promise(){return z1.create(this,this._def)}or(e){return L1.create([this,e],this._def)}and(e){return U1.create(this,e,this._def)}transform(e){return new cd({...st(this._def),schema:this,typeName:Qe.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new S_({...st(this._def),innerType:this,defaultValue:n,typeName:Qe.ZodDefault})}brand(){return new Oke({typeName:Qe.ZodBranded,type:this,...st(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new w_({...st(this._def),innerType:this,catchValue:n,typeName:Qe.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return nT.create(this,e)}readonly(){return x_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const uke=/^c[^\s-]{8,}$/i,cke=/^[0-9a-z]+$/,dke=/^[0-9A-HJKMNP-TV-Z]{26}$/i,fke=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,hke=/^[a-z0-9_-]{21}$/i,pke=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,mke=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,gke=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,vke="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let oE;const yke=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,bke=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Ske=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,wke=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xke=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Cke=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,_H="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Eke=new RegExp(`^${_H}$`);function kH(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function _ke(t){return new RegExp(`^${kH(t)}$`)}function kke(t){let e=`${_H}T${kH(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function Ake(t,e){return!!((e==="v4"||!e)&&yke.test(t)||(e==="v6"||!e)&&Ske.test(t))}function Tke(t,e){if(!pke.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function Rke(t,e){return!!((e==="v4"||!e)&&bke.test(t)||(e==="v6"||!e)&&wke.test(t))}class wo extends Et{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Ie.string){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_type,expected:Ie.string,received:s.parsedType}),Xe}const r=new da;let a;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")e.data.length>s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=e.data.length>s.value,u=e.data.length<s.value;(i||u)&&(a=this._getOrReturnCtx(e,a),i?ke(a,{code:ge.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):u&&ke(a,{code:ge.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")gke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"email",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")oE||(oE=new RegExp(vke,"u")),oE.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"emoji",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")fke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"uuid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")hke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"nanoid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")uke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"cuid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")cke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"cuid2",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")dke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"ulid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),ke(a,{validation:"url",code:ge.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"regex",code:ge.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?kke(s).test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?Eke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?_ke(s).test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?mke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"duration",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?Ake(e.data,s.version)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"ip",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="jwt"?Tke(e.data,s.alg)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"jwt",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="cidr"?Rke(e.data,s.version)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"cidr",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?xke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"base64",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="base64url"?Cke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"base64url",code:ge.invalid_string,message:s.message}),r.dirty()):Tt.assertNever(s);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(a=>e.test(a),{validation:n,code:ge.invalid_string,...Ne.errToObj(r)})}_addCheck(e){return new wo({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Ne.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Ne.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Ne.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Ne.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Ne.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Ne.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Ne.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Ne.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Ne.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...Ne.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...Ne.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Ne.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...Ne.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Ne.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...Ne.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...Ne.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...Ne.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...Ne.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...Ne.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...Ne.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...Ne.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...Ne.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...Ne.errToObj(n)})}nonempty(e){return this.min(1,Ne.errToObj(e))}trim(){return new wo({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new wo({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new wo({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}wo.create=t=>new wo({checks:[],typeName:Qe.ZodString,coerce:t?.coerce??!1,...st(t)});function Ike(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=n>r?n:r,s=Number.parseInt(t.toFixed(a).replace(".","")),i=Number.parseInt(e.toFixed(a).replace(".",""));return s%i/10**a}class ru extends Et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Ie.number){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_type,expected:Ie.number,received:s.parsedType}),Xe}let r;const a=new da;for(const s of this._def.checks)s.kind==="int"?Tt.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?Ike(e.data,s.value)!==0&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.not_finite,message:s.message}),a.dirty()):Tt.assertNever(s);return{status:a.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,Ne.toString(n))}gt(e,n){return this.setLimit("min",e,!1,Ne.toString(n))}lte(e,n){return this.setLimit("max",e,!0,Ne.toString(n))}lt(e,n){return this.setLimit("max",e,!1,Ne.toString(n))}setLimit(e,n,r,a){return new ru({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Ne.toString(a)}]})}_addCheck(e){return new ru({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Ne.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ne.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ne.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ne.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ne.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:Ne.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:Ne.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ne.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ne.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Tt.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}ru.create=t=>new ru({checks:[],typeName:Qe.ZodNumber,coerce:t?.coerce||!1,...st(t)});class au extends Et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==Ie.bigint)return this._getInvalidInput(e);let r;const a=new da;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):Tt.assertNever(s);return{status:a.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return ke(n,{code:ge.invalid_type,expected:Ie.bigint,received:n.parsedType}),Xe}gte(e,n){return this.setLimit("min",e,!0,Ne.toString(n))}gt(e,n){return this.setLimit("min",e,!1,Ne.toString(n))}lte(e,n){return this.setLimit("max",e,!0,Ne.toString(n))}lt(e,n){return this.setLimit("max",e,!1,Ne.toString(n))}setLimit(e,n,r,a){return new au({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Ne.toString(a)}]})}_addCheck(e){return new au({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ne.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ne.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ne.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ne.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:Ne.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}au.create=t=>new au({checks:[],typeName:Qe.ZodBigInt,coerce:t?.coerce??!1,...st(t)});class D1 extends Et{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Ie.boolean){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.boolean,received:r.parsedType}),Xe}return Pa(e.data)}}D1.create=t=>new D1({typeName:Qe.ZodBoolean,coerce:t?.coerce||!1,...st(t)});class ld extends Et{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Ie.date){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_type,expected:Ie.date,received:s.parsedType}),Xe}if(Number.isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_date}),Xe}const r=new da;let a;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):Tt.assertNever(s);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ld({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:Ne.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:Ne.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}ld.create=t=>new ld({checks:[],coerce:t?.coerce||!1,typeName:Qe.ZodDate,...st(t)});class A9 extends Et{_parse(e){if(this._getType(e)!==Ie.symbol){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.symbol,received:r.parsedType}),Xe}return Pa(e.data)}}A9.create=t=>new A9({typeName:Qe.ZodSymbol,...st(t)});class T9 extends Et{_parse(e){if(this._getType(e)!==Ie.undefined){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.undefined,received:r.parsedType}),Xe}return Pa(e.data)}}T9.create=t=>new T9({typeName:Qe.ZodUndefined,...st(t)});class R9 extends Et{_parse(e){if(this._getType(e)!==Ie.null){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.null,received:r.parsedType}),Xe}return Pa(e.data)}}R9.create=t=>new R9({typeName:Qe.ZodNull,...st(t)});class I9 extends Et{constructor(){super(...arguments),this._any=!0}_parse(e){return Pa(e.data)}}I9.create=t=>new I9({typeName:Qe.ZodAny,...st(t)});class v_ extends Et{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Pa(e.data)}}v_.create=t=>new v_({typeName:Qe.ZodUnknown,...st(t)});class Yi extends Et{_parse(e){const n=this._getOrReturnCtx(e);return ke(n,{code:ge.invalid_type,expected:Ie.never,received:n.parsedType}),Xe}}Yi.create=t=>new Yi({typeName:Qe.ZodNever,...st(t)});class O9 extends Et{_parse(e){if(this._getType(e)!==Ie.undefined){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.void,received:r.parsedType}),Xe}return Pa(e.data)}}O9.create=t=>new O9({typeName:Qe.ZodVoid,...st(t)});class Ts extends Et{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),a=this._def;if(n.parsedType!==Ie.array)return ke(n,{code:ge.invalid_type,expected:Ie.array,received:n.parsedType}),Xe;if(a.exactLength!==null){const i=n.data.length>a.exactLength.value,u=n.data.length<a.exactLength.value;(i||u)&&(ke(n,{code:i?ge.too_big:ge.too_small,minimum:u?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ke(n,{code:ge.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ke(n,{code:ge.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,u)=>a.type._parseAsync(new Ki(n,i,n.path,u)))).then(i=>da.mergeArray(r,i));const s=[...n.data].map((i,u)=>a.type._parseSync(new Ki(n,i,n.path,u)));return da.mergeArray(r,s)}get element(){return this._def.type}min(e,n){return new Ts({...this._def,minLength:{value:e,message:Ne.toString(n)}})}max(e,n){return new Ts({...this._def,maxLength:{value:e,message:Ne.toString(n)}})}length(e,n){return new Ts({...this._def,exactLength:{value:e,message:Ne.toString(n)}})}nonempty(e){return this.min(1,e)}}Ts.create=(t,e)=>new Ts({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Qe.ZodArray,...st(e)});function Tc(t){if(t instanceof An){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=ji.create(Tc(r))}return new An({...t._def,shape:()=>e})}else return t instanceof Ts?new Ts({...t._def,type:Tc(t.element)}):t instanceof ji?ji.create(Tc(t.unwrap())):t instanceof dd?dd.create(Tc(t.unwrap())):t instanceof su?su.create(t.items.map(e=>Tc(e))):t}class An extends Et{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=Tt.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==Ie.object){const f=this._getOrReturnCtx(e);return ke(f,{code:ge.invalid_type,expected:Ie.object,received:f.parsedType}),Xe}const{status:r,ctx:a}=this._processInputParams(e),{shape:s,keys:i}=this._getCached(),u=[];if(!(this._def.catchall instanceof Yi&&this._def.unknownKeys==="strip"))for(const f in a.data)i.includes(f)||u.push(f);const c=[];for(const f of i){const h=s[f],m=a.data[f];c.push({key:{status:"valid",value:f},value:h._parse(new Ki(a,m,a.path,f)),alwaysSet:f in a.data})}if(this._def.catchall instanceof Yi){const f=this._def.unknownKeys;if(f==="passthrough")for(const h of u)c.push({key:{status:"valid",value:h},value:{status:"valid",value:a.data[h]}});else if(f==="strict")u.length>0&&(ke(a,{code:ge.unrecognized_keys,keys:u}),r.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const h of u){const m=a.data[h];c.push({key:{status:"valid",value:h},value:f._parse(new Ki(a,m,a.path,h)),alwaysSet:h in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const f=[];for(const h of c){const m=await h.key,g=await h.value;f.push({key:m,value:g,alwaysSet:h.alwaysSet})}return f}).then(f=>da.mergeObjectSync(r,f)):da.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(e){return Ne.errToObj,new An({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{const a=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:Ne.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new An({...this._def,unknownKeys:"strip"})}passthrough(){return new An({...this._def,unknownKeys:"passthrough"})}extend(e){return new An({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new An({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Qe.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new An({...this._def,catchall:e})}pick(e){const n={};for(const r of Tt.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new An({...this._def,shape:()=>n})}omit(e){const n={};for(const r of Tt.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new An({...this._def,shape:()=>n})}deepPartial(){return Tc(this)}partial(e){const n={};for(const r of Tt.objectKeys(this.shape)){const a=this.shape[r];e&&!e[r]?n[r]=a:n[r]=a.optional()}return new An({...this._def,shape:()=>n})}required(e){const n={};for(const r of Tt.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof ji;)s=s._def.innerType;n[r]=s}return new An({...this._def,shape:()=>n})}keyof(){return AH(Tt.objectKeys(this.shape))}}An.create=(t,e)=>new An({shape:()=>t,unknownKeys:"strip",catchall:Yi.create(),typeName:Qe.ZodObject,...st(e)});An.strictCreate=(t,e)=>new An({shape:()=>t,unknownKeys:"strict",catchall:Yi.create(),typeName:Qe.ZodObject,...st(e)});An.lazycreate=(t,e)=>new An({shape:t,unknownKeys:"strip",catchall:Yi.create(),typeName:Qe.ZodObject,...st(e)});class L1 extends Et{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function a(s){for(const u of s)if(u.result.status==="valid")return u.result;for(const u of s)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const i=s.map(u=>new No(u.ctx.common.issues));return ke(n,{code:ge.invalid_union,unionErrors:i}),Xe}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(a);{let s;const i=[];for(const c of r){const f={...n,common:{...n.common,issues:[]},parent:null},h=c._parseSync({data:n.data,path:n.path,parent:f});if(h.status==="valid")return h;h.status==="dirty"&&!s&&(s={result:h,ctx:f}),f.common.issues.length&&i.push(f.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const u=i.map(c=>new No(c));return ke(n,{code:ge.invalid_union,unionErrors:u}),Xe}}get options(){return this._def.options}}L1.create=(t,e)=>new L1({options:t,typeName:Qe.ZodUnion,...st(e)});function y_(t,e){const n=Ai(t),r=Ai(e);if(t===e)return{valid:!0,data:t};if(n===Ie.object&&r===Ie.object){const a=Tt.objectKeys(e),s=Tt.objectKeys(t).filter(u=>a.indexOf(u)!==-1),i={...t,...e};for(const u of s){const c=y_(t[u],e[u]);if(!c.valid)return{valid:!1};i[u]=c.data}return{valid:!0,data:i}}else if(n===Ie.array&&r===Ie.array){if(t.length!==e.length)return{valid:!1};const a=[];for(let s=0;s<t.length;s++){const i=t[s],u=e[s],c=y_(i,u);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===Ie.date&&r===Ie.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class U1 extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),a=(s,i)=>{if(E9(s)||E9(i))return Xe;const u=y_(s.value,i.value);return u.valid?((_9(s)||_9(i))&&n.dirty(),{status:n.value,value:u.data}):(ke(r,{code:ge.invalid_intersection_types}),Xe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>a(s,i)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}U1.create=(t,e,n)=>new U1({left:t,right:e,typeName:Qe.ZodIntersection,...st(n)});class su extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ie.array)return ke(r,{code:ge.invalid_type,expected:Ie.array,received:r.parsedType}),Xe;if(r.data.length<this._def.items.length)return ke(r,{code:ge.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Xe;!this._def.rest&&r.data.length>this._def.items.length&&(ke(r,{code:ge.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,u)=>{const c=this._def.items[u]||this._def.rest;return c?c._parse(new Ki(r,i,r.path,u)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>da.mergeArray(n,i)):da.mergeArray(n,s)}get items(){return this._def.items}rest(e){return new su({...this._def,rest:e})}}su.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new su({items:t,typeName:Qe.ZodTuple,rest:null,...st(e)})};class N9 extends Et{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ie.map)return ke(r,{code:ge.invalid_type,expected:Ie.map,received:r.parsedType}),Xe;const a=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([u,c],f)=>({key:a._parse(new Ki(r,u,r.path,[f,"key"])),value:s._parse(new Ki(r,c,r.path,[f,"value"]))}));if(r.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const c of i){const f=await c.key,h=await c.value;if(f.status==="aborted"||h.status==="aborted")return Xe;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(f.value,h.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const c of i){const f=c.key,h=c.value;if(f.status==="aborted"||h.status==="aborted")return Xe;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(f.value,h.value)}return{status:n.value,value:u}}}}N9.create=(t,e,n)=>new N9({valueType:e,keyType:t,typeName:Qe.ZodMap,...st(n)});class ip extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ie.set)return ke(r,{code:ge.invalid_type,expected:Ie.set,received:r.parsedType}),Xe;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(ke(r,{code:ge.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(ke(r,{code:ge.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const s=this._def.valueType;function i(c){const f=new Set;for(const h of c){if(h.status==="aborted")return Xe;h.status==="dirty"&&n.dirty(),f.add(h.value)}return{status:n.value,value:f}}const u=[...r.data.values()].map((c,f)=>s._parse(new Ki(r,c,r.path,f)));return r.common.async?Promise.all(u).then(c=>i(c)):i(u)}min(e,n){return new ip({...this._def,minSize:{value:e,message:Ne.toString(n)}})}max(e,n){return new ip({...this._def,maxSize:{value:e,message:Ne.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}ip.create=(t,e)=>new ip({valueType:t,minSize:null,maxSize:null,typeName:Qe.ZodSet,...st(e)});class M9 extends Et{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}M9.create=(t,e)=>new M9({getter:t,typeName:Qe.ZodLazy,...st(e)});class b_ extends Et{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return ke(n,{received:n.data,code:ge.invalid_literal,expected:this._def.value}),Xe}return{status:"valid",value:e.data}}get value(){return this._def.value}}b_.create=(t,e)=>new b_({value:t,typeName:Qe.ZodLiteral,...st(e)});function AH(t,e){return new ud({values:t,typeName:Qe.ZodEnum,...st(e)})}class ud extends Et{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return ke(n,{expected:Tt.joinValues(r),received:n.parsedType,code:ge.invalid_type}),Xe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return ke(n,{received:n.data,code:ge.invalid_enum_value,options:r}),Xe}return Pa(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return ud.create(e,{...this._def,...n})}exclude(e,n=this._def){return ud.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}ud.create=AH;class P9 extends Et{_parse(e){const n=Tt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==Ie.string&&r.parsedType!==Ie.number){const a=Tt.objectValues(n);return ke(r,{expected:Tt.joinValues(a),received:r.parsedType,code:ge.invalid_type}),Xe}if(this._cache||(this._cache=new Set(Tt.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=Tt.objectValues(n);return ke(r,{received:r.data,code:ge.invalid_enum_value,options:a}),Xe}return Pa(e.data)}get enum(){return this._def.values}}P9.create=(t,e)=>new P9({values:t,typeName:Qe.ZodNativeEnum,...st(e)});class z1 extends Et{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==Ie.promise&&n.common.async===!1)return ke(n,{code:ge.invalid_type,expected:Ie.promise,received:n.parsedType}),Xe;const r=n.parsedType===Ie.promise?n.data:Promise.resolve(n.data);return Pa(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}z1.create=(t,e)=>new z1({type:t,typeName:Qe.ZodPromise,...st(e)});class cd extends Et{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),a=this._def.effect||null,s={addIssue:i=>{ke(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const i=a.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async u=>{if(n.value==="aborted")return Xe;const c=await this._def.schema._parseAsync({data:u,path:r.path,parent:r});return c.status==="aborted"?Xe:c.status==="dirty"||n.value==="dirty"?ph(c.value):c});{if(n.value==="aborted")return Xe;const u=this._def.schema._parseSync({data:i,path:r.path,parent:r});return u.status==="aborted"?Xe:u.status==="dirty"||n.value==="dirty"?ph(u.value):u}}if(a.type==="refinement"){const i=u=>{const c=a.refinement(u,s);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?Xe:(u.status==="dirty"&&n.dirty(),i(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>u.status==="aborted"?Xe:(u.status==="dirty"&&n.dirty(),i(u.value).then(()=>({status:n.value,value:u.value}))))}if(a.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!id(i))return Xe;const u=a.transform(i.value,s);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>id(i)?Promise.resolve(a.transform(i.value,s)).then(u=>({status:n.value,value:u})):Xe);Tt.assertNever(a)}}cd.create=(t,e,n)=>new cd({schema:t,typeName:Qe.ZodEffects,effect:e,...st(n)});cd.createWithPreprocess=(t,e,n)=>new cd({schema:e,effect:{type:"preprocess",transform:t},typeName:Qe.ZodEffects,...st(n)});class ji extends Et{_parse(e){return this._getType(e)===Ie.undefined?Pa(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ji.create=(t,e)=>new ji({innerType:t,typeName:Qe.ZodOptional,...st(e)});class dd extends Et{_parse(e){return this._getType(e)===Ie.null?Pa(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}dd.create=(t,e)=>new dd({innerType:t,typeName:Qe.ZodNullable,...st(e)});class S_ extends Et{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===Ie.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}S_.create=(t,e)=>new S_({innerType:t,typeName:Qe.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...st(e)});class w_ extends Et{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return P1(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new No(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new No(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}w_.create=(t,e)=>new w_({innerType:t,typeName:Qe.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...st(e)});class D9 extends Et{_parse(e){if(this._getType(e)!==Ie.nan){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.nan,received:r.parsedType}),Xe}return{status:"valid",value:e.data}}}D9.create=t=>new D9({typeName:Qe.ZodNaN,...st(t)});class Oke extends Et{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class nT extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Xe:s.status==="dirty"?(n.dirty(),ph(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Xe:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(e,n){return new nT({in:e,out:n,typeName:Qe.ZodPipeline})}}class x_ extends Et{_parse(e){const n=this._def.innerType._parse(e),r=a=>(id(a)&&(a.value=Object.freeze(a.value)),a);return P1(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}x_.create=(t,e)=>new x_({innerType:t,typeName:Qe.ZodReadonly,...st(e)});var Qe;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Qe||(Qe={}));const _r=wo.create;ru.create;au.create;const Nke=D1.create;ld.create;const TH=v_.create;Yi.create;Ts.create;const Td=An.create;L1.create;U1.create;su.create;const Mke=b_.create,Pke=ud.create;z1.create;ji.create;dd.create;const C4e={string:(t=>wo.create({...t,coerce:!0})),number:(t=>ru.create({...t,coerce:!0})),boolean:(t=>D1.create({...t,coerce:!0})),bigint:(t=>au.create({...t,coerce:!0})),date:(t=>ld.create({...t,coerce:!0}))},Dke=Pke(["match","properties","folder","rule","name","review","run"]),Lke=t=>{const e=Dke.safeParse(t);return e.success?e.data:void 0},Uke=Mke("search"),zke=t=>{const e=Uke.safeParse(t);return e.success?e.data:void 0},jke=TH().transform(zke),Fke=()=>$v({from:"/mail",select:t=>t.wizardFrom}),Bke=TH().transform(Lke),$ke=(t,e)=>vp(t,e)+1,RH=()=>$v({from:"/mail",select:t=>t.wizard}),Hke=()=>{const t=Ep();return _.useCallback((e,n)=>{t({to:".",search:r=>({...r,wizard:e,wizardFrom:n})})},[t])},E4e=()=>{const t=RH(),e=Hke(),[n,r]=_.useState("organize"),a=_.useCallback(i=>{r(i),e("match")},[e]),s=_.useCallback(()=>{e("properties","search")},[e]);return{verb:n,start:a,startFromSearch:s,isOpen:t!==void 0}},_4e=t=>{const e=Kr(),n=Ep(),r=RH(),a=Fke(),s=_.useRef(r!==void 0),i=_.useRef(a),u=_.useRef(void 0);_.useEffect(()=>{u.current=void 0},[r]),_.useEffect(()=>{if(!s.current)return;s.current=!1;const m=i.current;(async()=>(await n({to:".",search:g=>({...g,wizard:void 0,wizardFrom:void 0}),replace:!0}),await n({to:".",search:g=>({...g,wizard:t,wizardFrom:m})})))()},[t,n]);const c=_.useCallback(m=>{m===r||u.current===m||(u.current=m,n({to:".",search:g=>({...g,wizard:m})}))},[n,r]),f=_.useCallback(()=>{e.history.back()},[e]),h=_.useCallback((m,g)=>{e.history.go(-$ke(m,g))},[e]);return{step:r,goToStep:c,goBack:f,closeWizard:h}},qke=ev().apiUrl;Pe.setConfig({baseUrl:qke,fetch:SL});Pe.interceptors.error.use((t,e)=>{if(t instanceof qE||!e)return t;const n=t,r=n&&typeof n=="object"&&"message"in n?String(n.message):`Request failed with status ${e.status}`;return new qE(r,e.status,n)});const iE={Inbox:"inbox",Drafts:"drafts",Sent:"sent",Archive:"archive",Junk:"junk",Trash:"trash",All:"all",Flagged:"flagged"},k4e={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Junk",trash:"Trash",all:"All",flagged:"Flagged"},L9=["inbox","flagged","drafts","sent","archive","all","junk","trash"];function Wke(t){const e=new Map,n=[...t].sort((r,a)=>L9.indexOf(iE[r.role])-L9.indexOf(iE[a.role]));for(const r of n){if(!r.mailboxId||e.has(r.mailboxId))continue;const a=iE[r.role];a&&e.set(r.mailboxId,a)}return e}const Vke=t=>{const e=t.split("/");return e[e.length-1]||t};function A4e(t,e,n){const r=t.displayNameOverride?.trim();if(r)return r;const a=Vke(t.fullPath);return!e||!n?a:n(`sidebar.${e}`,a)}const Gke=new Set(["sent","drafts","trash"]),T4e=t=>t===void 0||!Gke.has(t),Kke=new Map;function R4e(t){const e=new Map;for(const n of t){const r=Wke(n.folderAppointments);for(const[a,s]of r)e.set(a,{role:s});for(const a of n.mailboxes){const s=r.get(a.mailboxId);e.set(a.mailboxId,{...s?{role:s}:{},providerPath:a.fullPath})}}return e}function I4e(t,e){const n=e[0];if(!t)return n?{mailboxId:n}:{};for(const a of e){const s=t.get(a);if(s&&Wne(s)!==void 0)return{mailboxId:a,folder:s}}if(!n)return{};const r=t.get(n);return{mailboxId:n,...r?{folder:r}:{}}}const Yke=_.createContext(null),O4e=()=>_.useContext(Yke)??{accounts:[],mailboxNameIndex:new Map,accountNameIndex:new Map,resultFolderIndex:Kke,searchQuery:"",searchInput:"",searchViewKey:"",onSearchChange:()=>{},onSearchClear:()=>{},onSearchClearQuery:()=>{},intelligenceOpen:!1,onToggleIntelligence:()=>{},onSetIntelligenceOpen:()=>{}},Zke=()=>zn(()=>import("./mail-B1GD7zkK.js").then(t=>t.m),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])),Xke=Td({q:_r().optional(),wizard:Bke,wizardFrom:jke}),Qke=ur("/mail")({loader:({context:{queryClient:t}})=>{t.prefetchQuery(d_e()),t.prefetchQuery({...x_e(),staleTime:6e4})},component:Wn(Zke,"component"),validateSearch:Xke}),Jke=()=>zn(()=>import("./onboarding-BlmHjHRm.js"),__vite__mapDeps([16,17,3,5])),eAe=ur("/onboarding")({component:Wn(Jke,"component")});function tAe(){const t=H_e(),e=t?.surface.status==="ready"&&t.surface.section.status==="available";return C.jsx(Bre,{show:e,children:C.jsx(WJ,{className:"size-4"})})}const nAe=()=>zn(()=>import("./settings-C_MIWHGc.js"),[]),N4e=[{id:"accounts",label:"Accounts",icon:C.jsx(TL,{className:"size-4"})},{id:"senders",label:"Senders & Rules",icon:C.jsx(qJ,{className:"size-4"})},{id:"folders",label:"Folder roles",icon:C.jsx(PJ,{className:"size-4"})},{id:"filters",label:"Filters",icon:C.jsx(OJ,{className:"size-4"})},{id:"labels",label:"Labels",icon:C.jsx($J,{className:"size-4"})},{id:"appearance",label:"Appearance",icon:C.jsx(UJ,{className:"size-4"})},{id:"advanced",label:"Advanced",icon:C.jsx(tAe,{})}],M4e={accounts:"/settings/accounts",senders:"/settings/senders",folders:"/settings/folders",filters:"/settings/filters",labels:"/settings/labels",appearance:"/settings/appearance",advanced:"/settings/advanced"},rAe=ur("/settings")({component:Wn(nAe,"component")}),aAe=()=>zn(()=>import("./index-BRWYLOII.js"),__vite__mapDeps([18,9])),sAe=()=>zn(()=>import("./index-DtqBFgK5.js"),[]),oAe=Td({selectedMessageId:_r().optional(),selectedThreadId:_r().optional(),selectedMailboxId:_r().optional(),q:_r().optional()}),iAe=ur("/mail/")({component:Wn(sAe,"component"),validateSearch:oAe,errorComponent:Wn(aAe,"errorComponent")}),lAe=()=>zn(()=>import("./_mailboxId-DtqBFgK5.js"),[]),uAe=Td({selectedMessageId:_r().optional(),selectedThreadId:_r().optional(),q:_r().optional()}),cAe=ur("/mail/$mailboxId")({component:Wn(lAe,"component"),validateSearch:uAe}),dAe=()=>zn(()=>import("./flagged-CoKvDI2R.js"),__vite__mapDeps([19,9])),fAe=()=>zn(()=>import("./flagged-DtqBFgK5.js"),[]),hAe=Td({selectedMessageId:_r().optional(),q:_r().optional()}),pAe=ur("/mail/flagged")({component:Wn(fAe,"component"),validateSearch:hAe,errorComponent:Wn(dAe,"errorComponent")}),mAe=()=>zn(()=>import("./outbox-DtqBFgK5.js"),[]),gAe=Td({selectedOutboxMessageId:_r().optional(),q:_r().optional()}),vAe=ur("/mail/outbox")({component:Wn(mAe,"component"),validateSearch:gAe}),yAe=()=>zn(()=>import("./index-D60kRk0L.js"),[]),bAe=ur("/settings/")({component:Wn(yAe,"component")}),SAe=()=>zn(()=>import("./accounts-Do8sVKGo.js"),__vite__mapDeps([20,6,21,2,17,3,5,12,9,10])),wAe=Td({editAccountId:_r().optional(),focusSmtp:Nke().optional(),connected:_r().optional(),oauthError:_r().optional()}),xAe=ur("/settings/accounts")({component:Wn(SAe,"component"),validateSearch:wAe}),CAe=()=>zn(()=>import("./advanced-D1fiZ_fQ.js"),__vite__mapDeps([22,21,2,12,4,15])),EAe=ur("/settings/advanced")({component:Wn(CAe,"component")}),_Ae=()=>zn(()=>import("./appearance-gQ1gWf6o.js"),__vite__mapDeps([23,21,2])),kAe=ur("/settings/appearance")({component:Wn(_Ae,"component")}),AAe=()=>zn(()=>import("./filters-sVqTGjIM.js"),__vite__mapDeps([24,21,2,8,11,13,15,9])),TAe=ur("/settings/filters")({component:Wn(AAe,"component")}),RAe=()=>zn(()=>import("./folders-CDTrujI2.js"),__vite__mapDeps([25,1,21,2,11,9])),IAe=ur("/settings/folders")({component:Wn(RAe,"component")}),OAe=()=>zn(()=>import("./labels-wYIFrXzO.js"),__vite__mapDeps([26,14,21,2,9,13])),NAe=ur("/settings/labels")({component:Wn(OAe,"component")}),MAe=()=>zn(()=>import("./senders-CXTCeTh1.js"),__vite__mapDeps([27,3,21,2,9,7,10])),PAe=ur("/settings/senders")({component:Wn(MAe,"component")}),DAe=()=>zn(()=>import("./suggested-vips-oROGBDZu.js"),[]),LAe=ur("/settings/suggested-vips")({component:Wn(DAe,"component")}),UAe=ske.update({id:"/",path:"/",getParentRoute:()=>Np}),Mp=Qke.update({id:"/mail",path:"/mail",getParentRoute:()=>Np}),zAe=eAe.update({id:"/onboarding",path:"/onboarding",getParentRoute:()=>Np}),js=rAe.update({id:"/settings",path:"/settings",getParentRoute:()=>Np}),jAe=iAe.update({id:"/",path:"/",getParentRoute:()=>Mp}),FAe=cAe.update({id:"/$mailboxId",path:"/$mailboxId",getParentRoute:()=>Mp}),BAe=pAe.update({id:"/flagged",path:"/flagged",getParentRoute:()=>Mp}),$Ae=vAe.update({id:"/outbox",path:"/outbox",getParentRoute:()=>Mp}),HAe=bAe.update({id:"/",path:"/",getParentRoute:()=>js}),qAe=xAe.update({id:"/accounts",path:"/accounts",getParentRoute:()=>js}),WAe=EAe.update({id:"/advanced",path:"/advanced",getParentRoute:()=>js}),VAe=kAe.update({id:"/appearance",path:"/appearance",getParentRoute:()=>js}),GAe=TAe.update({id:"/filters",path:"/filters",getParentRoute:()=>js}),KAe=IAe.update({id:"/folders",path:"/folders",getParentRoute:()=>js}),YAe=NAe.update({id:"/labels",path:"/labels",getParentRoute:()=>js}),ZAe=PAe.update({id:"/senders",path:"/senders",getParentRoute:()=>js}),XAe=LAe.update({id:"/suggested-vips",path:"/suggested-vips",getParentRoute:()=>js}),QAe={MailMailboxIdRoute:FAe,MailFlaggedRoute:BAe,MailOutboxRoute:$Ae,MailIndexRoute:jAe},JAe=Mp._addFileChildren(QAe),eTe={SettingsAccountsRoute:qAe,SettingsAdvancedRoute:WAe,SettingsAppearanceRoute:VAe,SettingsFiltersRoute:GAe,SettingsFoldersRoute:KAe,SettingsLabelsRoute:YAe,SettingsSendersRoute:ZAe,SettingsSuggestedVipsRoute:XAe,SettingsIndexRoute:HAe},tTe=js._addFileChildren(eTe),nTe={IndexRoute:UAe,MailRoute:JAe,OnboardingRoute:zAe,SettingsRoute:tTe},rTe=Np._addFileChildren(nTe)._addFileTypes(),aTe=(t,e)=>{const n=W1e({routeTree:rTe,context:{queryClient:t},defaultPreload:"intent"});return n.subscribe("onResolved",r=>{e.recordPageView(r.toLocation.pathname),yae(r.toLocation.pathname)}),n},Ve=t=>typeof t=="string",eh=()=>{let t,e;const n=new Promise((r,a)=>{t=r,e=a});return n.resolve=t,n.reject=e,n},U9=t=>t==null?"":""+t,sTe=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},oTe=/###/g,z9=t=>t&&t.indexOf("###")>-1?t.replace(oTe,"."):t,j9=t=>!t||Ve(t),Rh=(t,e,n)=>{const r=Ve(e)?e.split("."):e;let a=0;for(;a<r.length-1;){if(j9(t))return{};const s=z9(r[a]);!t[s]&&n&&(t[s]=new n),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={},++a}return j9(t)?{}:{obj:t,k:z9(r[a])}},F9=(t,e,n)=>{const{obj:r,k:a}=Rh(t,e,Object);if(r!==void 0||e.length===1){r[a]=n;return}let s=e[e.length-1],i=e.slice(0,e.length-1),u=Rh(t,i,Object);for(;u.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),u=Rh(t,i,Object),u?.obj&&typeof u.obj[`${u.k}.${s}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${s}`]=n},iTe=(t,e,n,r)=>{const{obj:a,k:s}=Rh(t,e,Object);a[s]=a[s]||[],a[s].push(n)},j1=(t,e)=>{const{obj:n,k:r}=Rh(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},lTe=(t,e,n)=>{const r=j1(t,n);return r!==void 0?r:j1(e,n)},IH=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?Ve(t[r])||t[r]instanceof String||Ve(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):IH(t[r],e[r],n):t[r]=e[r]);return t},gc=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var uTe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const cTe=t=>Ve(t)?t.replace(/[&<>"'\/]/g,e=>uTe[e]):t;class dTe{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const fTe=[" ",",","?","!",";"],hTe=new dTe(20),pTe=(t,e,n)=>{e=e||"",n=n||"";const r=fTe.filter(i=>e.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=hTe.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!a.test(t);if(!s){const i=t.indexOf(n);i>0&&!a.test(t.substring(0,i))&&(s=!0)}return s},C_=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let a=t;for(let s=0;s<r.length;){if(!a||typeof a!="object")return;let i,u="";for(let c=s;c<r.length;++c)if(c!==s&&(u+=n),u+=r[c],i=a[u],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<r.length-1)continue;s+=c-s+1;break}a=i}return a},F1=t=>t?.replace("_","-"),mTe={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class B1{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||mTe,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,a){return a&&!this.debug?null:(Ve(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new B1(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new B1(this.logger,e)}}var As=new B1;class ly{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(i=>{let[u,c]=i;for(let f=0;f<c;f++)u(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[u,c]=i;for(let f=0;f<c;f++)u.apply(u,[e,...r])})}}class B9 extends ly{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;e.indexOf(".")>-1?u=e.split("."):(u=[e,n],r&&(Array.isArray(r)?u.push(...r):Ve(r)&&s?u.push(...r.split(s)):u.push(r)));const c=j1(this.data,u);return!c&&!n&&!r&&e.indexOf(".")>-1&&(e=u[0],n=u[1],r=u.slice(2).join(".")),c||!i||!Ve(r)?c:C_(this.data?.[e]?.[n],r,s)}addResource(e,n,r,a){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let u=[e,n];r&&(u=u.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(u=e.split("."),a=n,n=u[1]),this.addNamespaces(n),F9(this.data,u,a),s.silent||this.emit("added",e,n,r,a)}addResources(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(Ve(r[s])||Array.isArray(r[s]))&&this.addResource(e,n,s,r[s],{silent:!0});a.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[e,n];e.indexOf(".")>-1&&(u=e.split("."),a=r,r=n,n=u[1]),this.addNamespaces(n);let c=j1(this.data,u)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?IH(c,r,s):c={...c,...r},F9(this.data,u,c),i.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var OH={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,a){return t.forEach(s=>{e=this.processors[s]?.process(e,n,r,a)??e}),e}};const $9={},H9=t=>!Ve(t)&&typeof t!="boolean"&&typeof t!="number";class $1 extends ly{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),sTe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=As.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};return e==null?!1:this.resolve(e,n)?.res!==void 0}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const i=r&&e.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!pTe(e,r,a);if(i&&!u){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:Ve(s)?[s]:s};const f=e.split(r);(r!==a||r===a&&this.options.ns.indexOf(f[0])>-1)&&(s=f.shift()),e=f.join(a)}return{key:e,namespaces:Ve(s)?[s]:s}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:u}=this.extractFromKey(e[e.length-1],n),c=u[u.length-1],f=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode"){if(h){const z=n.nsSeparator||this.options.nsSeparator;return a?{res:`${c}${z}${i}`,usedKey:i,exactUsedKey:i,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${z}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:i}const m=this.resolve(e,n);let g=m?.res;const y=m?.usedKey||i,S=m?.exactUsedKey||i,w=["[object Number]","[object Function]","[object RegExp]"],x=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,k=n.count!==void 0&&!Ve(n.count),A=$1.hasDefaultValue(n),R=k?this.pluralResolver.getSuffix(f,n.count,n):"",N=n.ordinal&&k?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",O=k&&!n.ordinal&&n.count===0,I=O&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${N}`]||n.defaultValue;let P=g;E&&!g&&A&&(P=I);const U=H9(P),H=Object.prototype.toString.apply(P);if(E&&P&&U&&w.indexOf(H)<0&&!(Ve(x)&&Array.isArray(P))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,P,{...n,ns:u}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(m.res=z,m.usedParams=this.getUsedParamsDetails(n),m):z}if(s){const z=Array.isArray(P),j=z?[]:{},$=z?S:y;for(const Z in P)if(Object.prototype.hasOwnProperty.call(P,Z)){const J=`${$}${s}${Z}`;A&&!g?j[Z]=this.translate(J,{...n,defaultValue:H9(I)?I[Z]:void 0,joinArrays:!1,ns:u}):j[Z]=this.translate(J,{...n,joinArrays:!1,ns:u}),j[Z]===J&&(j[Z]=P[Z])}g=j}}else if(E&&Ve(x)&&Array.isArray(g))g=g.join(x),g&&(g=this.extendTranslation(g,e,n,r));else{let z=!1,j=!1;!this.isValidLookup(g)&&A&&(z=!0,g=I),this.isValidLookup(g)||(j=!0,g=i);const Z=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:g,J=A&&I!==g&&this.options.updateMissing;if(j||z||J){if(this.logger.log(J?"updateKey":"missingKey",f,c,i,J?I:g),s){const he=this.resolve(i,{...n,keySeparator:!1});he&&he.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let q=[];const X=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&X&&X[0])for(let he=0;he<X.length;he++)q.push(X[he]);else this.options.saveMissingTo==="all"?q=this.languageUtils.toResolveHierarchy(n.lng||this.language):q.push(n.lng||this.language);const ae=(he,xe,D)=>{const Y=A&&D!==g?D:Z;this.options.missingKeyHandler?this.options.missingKeyHandler(he,c,xe,Y,J,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(he,c,xe,Y,J,n),this.emit("missingKey",he,c,xe,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?q.forEach(he=>{const xe=this.pluralResolver.getSuffixes(he,n);O&&n[`defaultValue${this.options.pluralSeparator}zero`]&&xe.indexOf(`${this.options.pluralSeparator}zero`)<0&&xe.push(`${this.options.pluralSeparator}zero`),xe.forEach(D=>{ae([he],i+D,n[`defaultValue${D}`]||I)})}):ae(q,i,I))}g=this.extendTranslation(g,e,n,m,r),j&&g===i&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${i}`),(j||z)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,z?g:void 0))}return a?(m.res=g,m.usedParams=this.getUsedParamsDetails(n),m):g}extendTranslation(e,n,r,a,s){var i=this;if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=Ve(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(f){const g=e.match(this.interpolator.nestingRegexp);h=g&&g.length}let m=r.replace&&!Ve(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),e=this.interpolator.interpolate(e,m,r.lng||this.language||a.usedLng,r),f){const g=e.match(this.interpolator.nestingRegexp),y=g&&g.length;h<y&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var g=arguments.length,y=new Array(g),S=0;S<g;S++)y[S]=arguments[S];return s?.[0]===y[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`),null):i.translate(...y,n)},r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,c=Ve(u)?[u]:u;return e!=null&&c?.length&&r.applyPostProcessor!==!1&&(e=OH.handle(c,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,s,i,u;return Ve(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(c,n),h=f.key;a=h;let m=f.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=n.count!==void 0&&!Ve(n.count),y=g&&!n.ordinal&&n.count===0,S=n.context!==void 0&&(Ve(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(x=>{this.isValidLookup(r)||(u=x,!$9[`${w[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(u)&&($9[`${w[0]}-${x}`]=!0,this.logger.warn(`key "${a}" for languages "${w.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(E=>{if(this.isValidLookup(r))return;i=E;const k=[h];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(k,h,E,x,n);else{let R;g&&(R=this.pluralResolver.getSuffix(E,n.count,n));const N=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(k.push(h+R),n.ordinal&&R.indexOf(O)===0&&k.push(h+R.replace(O,this.options.pluralSeparator)),y&&k.push(h+N)),S){const I=`${h}${this.options.contextSeparator}${n.context}`;k.push(I),g&&(k.push(I+R),n.ordinal&&R.indexOf(O)===0&&k.push(I+R.replace(O,this.options.pluralSeparator)),y&&k.push(I+N))}}let A;for(;A=k.pop();)this.isValidLookup(r)||(s=A,r=this.getResource(E,x,A,n))}))})}),{res:r,usedKey:a,exactUsedKey:s,usedLng:i,usedNS:u}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,r,a):this.resourceStore.getResource(e,n,r,a)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!Ve(e.replace);let a=r?e.replace:e;if(r&&typeof e.count<"u"&&(a.count=e.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const s of n)delete a[s]}return a}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}class q9{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=As.create("languageUtils")}getScriptPartFromCode(e){if(e=F1(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=F1(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Ve(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),Ve(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),a=[],s=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return Ve(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):Ve(e)&&s(this.formatLanguageCode(e)),r.forEach(i=>{a.indexOf(i)<0&&s(this.formatLanguageCode(i))}),a}}const W9={zero:0,one:1,two:2,few:3,many:4,other:5},V9={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class gTe{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=As.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=F1(e==="dev"?"en":e),a=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:a});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let i;try{i=new Intl.PluralRules(r,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),V9;if(!e.match(/-|_/))return V9;const c=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(c,n)}return this.pluralRulesCache[s]=i,i}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(a=>`${n}${a}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,s)=>W9[a]-W9[s]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(e,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const G9=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=lTe(t,e,n);return!s&&a&&Ve(n)&&(s=C_(t,n,r),s===void 0&&(s=C_(e,n,r))),s},lE=t=>t.replace(/\$/g,"$$$$");class vTe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=As.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:s,prefixEscaped:i,suffix:u,suffixEscaped:c,formatSeparator:f,unescapeSuffix:h,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:y,nestingSuffix:S,nestingSuffixEscaped:w,nestingOptionsSeparator:x,maxReplaces:E,alwaysFormat:k}=e.interpolation;this.escape=n!==void 0?n:cTe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=s?gc(s):i||"{{",this.suffix=u?gc(u):c||"}}",this.formatSeparator=f||",",this.unescapePrefix=h?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=g?gc(g):y||gc("$t("),this.nestingSuffix=S?gc(S):w||gc(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=E||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,a){let s,i,u;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=y=>{if(y.indexOf(this.formatSeparator)<0){const E=G9(n,c,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,r,{...a,...n,interpolationkey:y}):E}const S=y.split(this.formatSeparator),w=S.shift().trim(),x=S.join(this.formatSeparator).trim();return this.format(G9(n,c,w,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,{...a,...n,interpolationkey:w})};this.resetRegExp();const h=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>lE(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?lE(this.escape(y)):lE(y)}].forEach(y=>{for(u=0;s=y.regex.exec(e);){const S=s[1].trim();if(i=f(S),i===void 0)if(typeof h=="function"){const x=h(e,s,a);i=Ve(x)?x:""}else if(a&&Object.prototype.hasOwnProperty.call(a,S))i="";else if(m){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${e}`),i="";else!Ve(i)&&!this.useRawValueToEscape&&(i=U9(i));const w=y.safeValue(i);if(e=e.replace(s[0],w),m?(y.regex.lastIndex+=i.length,y.regex.lastIndex-=s[0].length):y.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,i;const u=(c,f)=>{const h=this.nestingOptionsSeparator;if(c.indexOf(h)<0)return c;const m=c.split(new RegExp(`${h}[ ]*{`));let g=`{${m[1]}`;c=m[0],g=this.interpolate(g,i);const y=g.match(/'/g),S=g.match(/"/g);((y?.length??0)%2===0&&!S||S.length%2!==0)&&(g=g.replace(/'/g,'"'));try{i=JSON.parse(g),f&&(i={...f,...i})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,w),`${c}${h}${g}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;a=this.nestingRegexp.exec(e);){let c=[];i={...r},i=i.replace&&!Ve(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const h=a[1].split(this.formatSeparator).map(m=>m.trim());a[1]=h.shift(),c=h,f=!0}if(s=n(u.call(this,a[1].trim(),i),i),s&&a[0]===e&&!Ve(s))return s;Ve(s)||(s=U9(s)),s||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`),s=""),f&&(s=c.reduce((h,m)=>this.format(h,m,r.lng,{...r,interpolationkey:a[1].trim()}),s.trim())),e=e.replace(a[0],s),this.regexp.lastIndex=0}return e}}const yTe=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);e==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):e==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[u,...c]=i.split(":"),f=c.join(":").trim().replace(/^'+|'+$/g,""),h=u.trim();n[h]||(n[h]=f),f==="false"&&(n[h]=!1),f==="true"&&(n[h]=!0),isNaN(f)||(n[h]=parseInt(f,10))}})}return{formatName:e,formatOptions:n}},vc=t=>{const e={};return(n,r,a)=>{let s=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(s={...s,[a.interpolationkey]:void 0});const i=r+JSON.stringify(s);let u=e[i];return u||(u=t(F1(r),a),e[i]=u),u(n)}};class bTe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=As.create("formatter"),this.options=e,this.formats={number:vc((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return s=>a.format(s)}),currency:vc((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>a.format(s)}),datetime:vc((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return s=>a.format(s)}),relativetime:vc((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return s=>a.format(s,r.range||"day")}),list:vc((n,r)=>{const a=new Intl.ListFormat(n,{...r});return s=>a.format(s)})},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=vc(n)}format(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(u=>u.indexOf(")")>-1)){const u=s.findIndex(c=>c.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,u)].join(this.formatSeparator)}return s.reduce((u,c)=>{const{formatName:f,formatOptions:h}=yTe(c);if(this.formats[f]){let m=u;try{const g=a?.formatParams?.[a.interpolationkey]||{},y=g.locale||g.lng||a.locale||a.lng||r;m=this.formats[f](u,y,{...h,...a,...g})}catch(g){this.logger.warn(g)}return m}else this.logger.warn(`there was no format function for ${f}`);return u},e)}}const STe=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class wTe extends ly{constructor(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=As.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,a.backend,a)}queueLoad(e,n,r,a){const s={},i={},u={},c={};return e.forEach(f=>{let h=!0;n.forEach(m=>{const g=`${f}|${m}`;!r.reload&&this.store.hasResourceBundle(f,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?i[g]===void 0&&(i[g]=!0):(this.state[g]=1,h=!1,i[g]===void 0&&(i[g]=!0),s[g]===void 0&&(s[g]=!0),c[m]===void 0&&(c[m]=!0)))}),h||(u[f]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(c)}}loaded(e,n,r){const a=e.split("|"),s=a[0],i=a[1];n&&this.emit("failedLoading",s,i,n),!n&&r&&this.store.addResourceBundle(s,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const u={};this.queue.forEach(c=>{iTe(c.loaded,[s],i),STe(c,e),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(f=>{u[f]||(u[f]={});const h=c.loaded[f];h.length&&h.forEach(m=>{u[f][m]===void 0&&(u[f][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(c=>!c.done)}read(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:a,wait:s,callback:i});return}this.readingCalls++;const u=(f,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(f&&h&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,a+1,s*2,i)},s);return}i(f,h)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const f=c(e,n);f&&typeof f.then=="function"?f.then(h=>u(null,h)).catch(u):u(null,f)}catch(f){u(f)}return}return c(e,n,u)}prepareLoading(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Ve(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Ve(n)&&(n=[n]);const s=this.queueLoad(e,n,r,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),a=r[0],s=r[1];this.read(a,s,"read",void 0,void 0,(i,u)=>{i&&this.logger.warn(`${n}loading namespace ${s} for language ${a} failed`,i),!i&&u&&this.logger.log(`${n}loaded namespace ${s} for language ${a}`,u),this.loaded(e,i,u)})}saveMissing(e,n,r,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const c={...i,isUpdate:s},f=this.backend.create.bind(this.backend);if(f.length<6)try{let h;f.length===5?h=f(e,n,r,a,c):h=f(e,n,r,a),h&&typeof h.then=="function"?h.then(m=>u(null,m)).catch(u):u(null,h)}catch(h){u(h)}else f(e,n,r,a,u,c)}!e||!e[0]||this.store.addResource(e[0],n,r,a)}}}const K9=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Ve(t[1])&&(e.defaultValue=t[1]),Ve(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Y9=t=>(Ve(t.ns)&&(t.ns=[t.ns]),Ve(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Ve(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),Jg=()=>{},xTe=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class lp extends ly{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Y9(e),this.services={},this.logger=As,this.modules={external:[]},xTe(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(Ve(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=K9();this.options={...a,...this.options,...Y9(n)},this.options.interpolation={...a.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const s=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?As.init(s(this.modules.logger),this.options):As.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=bTe;const m=new q9(this.options);this.store=new B9(this.options.resources,this.options);const g=this.services;g.logger=As,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new gTe(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(g.formatter=s(h),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new vTe(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new wTe(s(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(y){for(var S=arguments.length,w=new Array(S>1?S-1:0),x=1;x<S;x++)w[x-1]=arguments[x];e.emit(y,...w)}),this.modules.languageDetector&&(g.languageDetector=s(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=s(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new $1(this.services,this.options),this.translator.on("*",function(y){for(var S=arguments.length,w=new Array(S>1?S-1:0),x=1;x<S;x++)w[x-1]=arguments[x];e.emit(y,...w)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Jg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=function(){return e.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return e.store[h](...arguments),e}});const c=eh(),f=()=>{const h=(m,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(g),r(m,g)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),c}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jg;const a=Ve(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(a?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],i=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload?.forEach?.(u=>i(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(e,n,r){const a=eh();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=Jg),this.services.backendConnector.reload(e,n,s=>{a.resolve(),r(s)}),a}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&OH.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(e,n){var r=this;this.isLanguageChangingTo=e;const a=eh();this.emit("languageChanging",e);const s=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,f)=>{f?(s(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},u=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);const f=Ve(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);f&&(this.language||s(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector?.cacheUserLanguage?.(f)),this.loadResources(f,h=>{i(h,f)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(e),a}getFixedT(e,n,r){var a=this;const s=function(i,u){let c;if(typeof u!="object"){for(var f=arguments.length,h=new Array(f>2?f-2:0),m=2;m<f;m++)h[m-2]=arguments[m];c=a.options.overloadTranslationOptionHandler([i,u].concat(h))}else c={...u};c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||s.keyPrefix);const g=a.options.keySeparator||".";let y;return c.keyPrefix&&Array.isArray(i)?y=i.map(S=>`${c.keyPrefix}${g}${S}`):y=c.keyPrefix?`${c.keyPrefix}${g}${i}`:i,a.t(y,c)};return Ve(e)?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=r,s}t(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.translator?.translate(...n)}exists(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.translator?.exists(...n)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(u,c)=>{const f=this.services.backendConnector.state[`${u}|${c}`];return f===-1||f===0||f===2};if(n.precheck){const u=n.precheck(this,i);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!a||i(s,e)))}loadNamespaces(e,n){const r=eh();return this.options.ns?(Ve(e)&&(e=[e]),e.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=eh();Ve(e)&&(e=[e]);const a=this.options.preload||[],s=e.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=a.concat(s),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new q9(K9());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new lp(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jg;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const a={...this.options,...e,isClone:!0},s=new lp(a);if((e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(u=>{s[u]=this[u]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const u=Object.keys(this.store.data).reduce((c,f)=>(c[f]={...this.store.data[f]},Object.keys(c[f]).reduce((h,m)=>(h[m]={...c[f][m]},h),{})),{});s.store=new B9(u,a),s.services.resourceStore=s.store}return s.translator=new $1(s.services,a),s.translator.on("*",function(u){for(var c=arguments.length,f=new Array(c>1?c-1:0),h=1;h<c;h++)f[h-1]=arguments[h];s.emit(u,...f)}),s.init(a,n),s.translator.options=a,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const mr=lp.createInstance();mr.createInstance=lp.createInstance;mr.createInstance;mr.dir;mr.init;mr.loadResources;mr.reloadResources;mr.use;mr.changeLanguage;mr.getFixedT;mr.t;mr.exists;mr.setDefaultNamespace;mr.hasLoadedNamespace;mr.loadNamespaces;mr.loadLanguages;const{slice:CTe,forEach:ETe}=[];function _Te(t){return ETe.call(CTe.call(arguments,1),e=>{if(e)for(const n in e)t[n]===void 0&&(t[n]=e[n])}),t}function kTe(t){return typeof t!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(t))}const Z9=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,ATe=function(t,e){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},a=encodeURIComponent(e);let s=`${t}=${a}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!Z9.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!Z9.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s},X9={create(t,e,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=ATe(t,e,a)},read(t){const e=`${t}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(e)===0)return a.substring(e.length,a.length)}return null},remove(t,e){this.create(t,"",-1,e)}};var TTe={name:"cookie",lookup(t){let{lookupCookie:e}=t;if(e&&typeof document<"u")return X9.read(e)||void 0},cacheUserLanguage(t,e){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:s}=e;n&&typeof document<"u"&&X9.create(n,t,r,a,s)}},RTe={name:"querystring",lookup(t){let{lookupQuerystring:e}=t,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const s=r.substring(1).split("&");for(let i=0;i<s.length;i++){const u=s[i].indexOf("=");u>0&&s[i].substring(0,u)===e&&(n=s[i].substring(u+1))}}return n}},ITe={name:"hash",lookup(t){let{lookupHash:e,lookupFromHashIndex:n}=t,r;if(typeof window<"u"){const{hash:a}=window.location;if(a&&a.length>2){const s=a.substring(1);if(e){const i=s.split("&");for(let u=0;u<i.length;u++){const c=i[u].indexOf("=");c>0&&i[u].substring(0,c)===e&&(r=i[u].substring(c+1))}}if(r)return r;if(!r&&n>-1){const i=a.match(/\/([a-zA-Z-]*)/g);return Array.isArray(i)?i[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let yc=null;const Q9=()=>{if(yc!==null)return yc;try{if(yc=typeof window<"u"&&window.localStorage!==null,!yc)return!1;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{yc=!1}return yc};var OTe={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&Q9())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:n}=e;n&&Q9()&&window.localStorage.setItem(n,t)}};let bc=null;const J9=()=>{if(bc!==null)return bc;try{if(bc=typeof window<"u"&&window.sessionStorage!==null,!bc)return!1;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{bc=!1}return bc};var NTe={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&J9())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:n}=e;n&&J9()&&window.sessionStorage.setItem(n,t)}},MTe={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let s=0;s<n.length;s++)e.push(n[s]);r&&e.push(r),a&&e.push(a)}return e.length>0?e:void 0}},PTe={name:"htmlTag",lookup(t){let{htmlTag:e}=t,n;const r=e||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},DTe={name:"path",lookup(t){let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof e=="number"?e:0]?.replace("/",""):void 0}},LTe={name:"subdomain",lookup(t){let{lookupFromSubdomainIndex:e}=t;const n=typeof e=="number"?e+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let NH=!1;try{document.cookie,NH=!0}catch{}const MH=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];NH||MH.splice(1,1);const UTe=()=>({order:MH,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t});class PH{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,n)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=_Te(n,this.options||{},UTe()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(TTe),this.addDetector(RTe),this.addDetector(OTe),this.addDetector(NTe),this.addDetector(MTe),this.addDetector(PTe),this.addDetector(DTe),this.addDetector(LTe),this.addDetector(ITe)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return e.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.filter(r=>r!=null&&!kTe(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(e,this.options)}))}}PH.type="languageDetector";function zTe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=jTe(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(f){throw f},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
294
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,i=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var f=n.next();return i=f.done,f},e:function(f){u=!0,s=f},f:function(){try{i||n.return==null||n.return()}finally{if(u)throw s}}}}function jTe(t,e){if(t){if(typeof t=="string")return eD(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eD(t,e):void 0}}function eD(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function E_(t){"@babel/helpers - typeof";return E_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E_(t)}var DH=["__proto__","constructor","prototype"];function LH(t){return!(typeof t!="string"||t.length===0||t.length>128||DH.indexOf(t)>-1||t.indexOf("..")>-1||t.indexOf("\\")>-1||/[?#%\s@]/.test(t)||/[\x00-\x1F\x7F]/.test(t))}function UH(t){return!(!LH(t)||t.indexOf("/")>-1)}function FTe(t){return LH(t)}var BTe={lng:UH,ns:FTe};function e0(t){return typeof t!="string"?t:t.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function $Te(t){if(typeof t!="string"||t.length===0)return t;try{var e=new URL(t);return e.username||e.password?(e.username="",e.password="",e.toString()):t}catch{return t.replace(/(\/\/)[^/@\s]+@/g,"$1")}}function zH(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":E_(XMLHttpRequest))==="object"}function HTe(t){return!!t&&typeof t.then=="function"}function qTe(t){return HTe(t)?t:Promise.resolve(t)}var WTe=/\{\{(.+?)\}\}/g;function tD(t,e){var n=!1,r=t.replace(WTe,function(a,s){var i=s.trim();if(DH.indexOf(i)>-1)return a;var u=e[i];if(u==null)return a;var c=BTe[i]||UH,f=String(u).split("+"),h=zTe(f),m;try{for(h.s();!(m=h.n()).done;){var g=m.value;if(!c(g))return n=!0,a}}catch(y){h.e(y)}finally{h.f()}return f.join("+")});return n?null:r}function nD(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function rD(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nD(Object(n),!0).forEach(function(r){VTe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nD(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function VTe(t,e,n){return(e=GTe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function GTe(t){var e=KTe(t,"string");return ou(e)=="symbol"?e:e+""}function KTe(t,e){if(ou(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ou(t){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ou(t)}var Zi=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?Zi=global.fetch:typeof window<"u"&&window.fetch&&(Zi=window.fetch);var up;zH()&&(typeof global<"u"&&global.XMLHttpRequest?up=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(up=window.XMLHttpRequest));var H1;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?H1=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(H1=window.ActiveXObject));typeof Zi!="function"&&(Zi=void 0);if(!Zi&&!up&&!H1)try{zn(()=>import("./browser-ponyfill-BG8I-k7n.js").then(t=>t.b),[]).then(function(t){Zi=t.default}).catch(function(){})}catch{}var jH=["__proto__","constructor","prototype"],__=function(e,n){if(n&&ou(n)==="object"){for(var r="",a=0,s=Object.keys(n);a<s.length;a++){var i=s[a];jH.indexOf(i)>-1||(r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]))}if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},aD=function(e,n,r,a){var s=function(c){if(!c.ok)return r(c.statusText||"Error",{status:c.status});c.text().then(function(f){r(null,{status:c.status,data:f})}).catch(r)};if(a){var i=a(e,n);if(i instanceof Promise){i.then(s).catch(r);return}}typeof fetch=="function"?fetch(e,n).then(s).catch(r):Zi(e,n).then(s).catch(r)},YTe=function(e,n,r,a){e.queryStringParams&&(n=__(n,e.queryStringParams));var s=rD({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(s["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(s["Content-Type"]="application/json");var i=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,u=rD({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:s},e._omitFetchOptions?{}:i),c=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{aD(n,u,a,c)}catch(f){if(!i||Object.keys(i).length===0||!f.message||f.message.indexOf("not implemented")<0)return a(f);try{Object.keys(i).forEach(function(h){delete u[h]}),aD(n,u,a,c),e._omitFetchOptions=!0}catch(h){a(h)}}},ZTe=function(e,n,r,a){r&&ou(r)==="object"&&(r=__("",r).slice(1)),e.queryStringParams&&(n=__(n,e.queryStringParams));try{var s=up?new up:new H1("MSXML2.XMLHTTP.3.0");s.open(r?"POST":"GET",n,1),e.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!e.withCredentials,r&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var i=e.customHeaders;if(i=typeof i=="function"?i():i,i)for(var u=0,c=Object.keys(i);u<c.length;u++){var f=c[u];jH.indexOf(f)>-1||s.setRequestHeader(f,i[f])}s.onreadystatechange=function(){s.readyState>3&&a(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(r)}catch(h){console&&console.log(h)}},XTe=function(e,n,r,a){if(typeof r=="function"&&(a=r,r=void 0),a=a||function(){},Zi&&n.indexOf("file:")!==0)return YTe(e,n,r,a);if(zH()||typeof ActiveXObject=="function")return ZTe(e,n,r,a);a(new Error("No fetch and no xhr implementation found!"))};function fd(t){"@babel/helpers - typeof";return fd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fd(t)}function sD(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function uE(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sD(Object(n),!0).forEach(function(r){FH(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sD(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function QTe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JTe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,BH(r.key),r)}}function eRe(t,e,n){return e&&JTe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function FH(t,e,n){return(e=BH(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function BH(t){var e=tRe(t,"string");return fd(e)=="symbol"?e:e+""}function tRe(t,e){if(fd(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(fd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var nRe=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,a){return FH({},r,a||"")},parseLoadPayload:function(n,r){},request:XTe,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},$H=(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};QTe(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return eRe(t,[{key:"init",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=uE(uE(uE({},nRe()),this.options||{}),a),this.allOptions=s,this.services&&this.options.reloadInterval){var i=setInterval(function(){return r.reload()},this.options.reloadInterval);fd(i)==="object"&&typeof i.unref=="function"&&i.unref()}}},{key:"readMulti",value:function(n,r,a){this._readAny(n,n,r,r,a)}},{key:"read",value:function(n,r,a){this._readAny([n],n,[r],r,a)}},{key:"_readAny",value:function(n,r,a,s,i){var u=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,a)),c=qTe(c),c.then(function(f){if(!f)return i(null,{});var h=tD(f,{lng:n.join("+"),ns:a.join("+")});if(h==null){var m=n.map(e0).join(", "),g=a.map(e0).join(", ");return i(new Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+m+"] namespaces=["+g+"]"),!1)}u.loadUrl(h,i,r,s)})}},{key:"loadUrl",value:function(n,r,a,s){var i=this,u=typeof a=="string"?[a]:a,c=typeof s=="string"?[s]:s,f=this.options.parseLoadPayload(u,c),h=e0($Te(n));this.options.request(this.options,n,f,function(m,g){if(g&&(g.status>=500&&g.status<600||!g.status))return r("failed loading "+h+"; status code: "+g.status,!0);if(g&&g.status>=400&&g.status<500)return r("failed loading "+h+"; status code: "+g.status,!1);if(!g&&m&&m.message){var y=m.message.toLowerCase(),S=["failed","fetch","network","load"].find(function(E){return y.indexOf(E)>-1});if(S)return r("failed loading "+h+": "+e0(m.message),!0)}if(m)return r(m,!1);var w,x;try{typeof g.data=="string"?w=i.options.parse(g.data,a,s):w=g.data}catch{x="failed parsing "+h+" to json"}if(x)return r(x,!1);r(null,w)})}},{key:"create",value:function(n,r,a,s,i){var u=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,a,s),f=0,h=[],m=[];n.forEach(function(g){var y=u.options.addPath;typeof u.options.addPath=="function"&&(y=u.options.addPath(g,r));var S=tD(y,{lng:g,ns:r});if(S==null){f+=1,i&&f===n.length&&i(h,m);return}u.options.request(u.options,S,c,function(w,x){f+=1,h.push(w),m.push(x),f===n.length&&typeof i=="function"&&i(h,m)})})}}},{key:"reload",value:function(){var n=this,r=this.services,a=r.backendConnector,s=r.languageUtils,i=r.logger,u=a.language;if(!(u&&u.toLowerCase()==="cimode")){var c=[],f=function(m){var g=s.toResolveHierarchy(m);g.forEach(function(y){c.indexOf(y)<0&&c.push(y)})};f(u),this.allOptions.preload&&this.allOptions.preload.forEach(function(h){return f(h)}),c.forEach(function(h){n.allOptions.ns.forEach(function(m){a.read(h,m,"read",null,null,function(g,y){g&&i.warn("loading namespace ".concat(m," for language ").concat(h," failed"),g),!g&&y&&i.log("loaded namespace ".concat(m," for language ").concat(h),y),a.loaded("".concat(h,"|").concat(m),g,y)})})})}}}])})();$H.type="backend";mr.use($H).use(PH).use(s3e).init({fallbackLng:"en",supportedLngs:["en","nl","de","fr"],ns:["common","mail","settings","errors"],defaultNS:"common",backend:{loadPath:"/locales/{{lng}}/{{ns}}.json"},detection:{order:["navigator","htmlTag"],caches:[]},interpolation:{escapeValue:!1},react:{useSuspense:!0,bindI18n:"languageChanged loaded"}});const rRe=({authProvider:t,rootElementId:e="root"})=>{mae(),GEe(),t.configure(),vve(t);const n=WEe();sae(n);const r=new $ge({queryCache:new Vj({onError:wve}),mutationCache:new Wj({onError:xve}),defaultOptions:{queries:{staleTime:3e4,gcTime:5*6e4,retry:1}}}),a=aTe(r,n);n.recordPageView(window.location.pathname);const s=document.getElementById(e);if(!s)throw new Error(`Root element not found: #${e}`);const{Shell:i}=t;J1e.createRoot(s).render(C.jsx(_.StrictMode,{children:C.jsx(dH.Provider,{value:n,children:C.jsxs(Hge,{client:r,children:[C.jsx(Sve,{value:t,children:C.jsx(i,{children:C.jsx(K1e,{router:a})})}),!1]})})}))};rRe({authProvider:bge});export{Zne as $,AL as A,on as B,kE as C,Iee as D,rne as E,NJ as F,Nh as G,_J as H,RL as I,Gne as J,Wne as K,j0 as L,LJ as M,PE as N,V_ as O,OJ as P,ene as Q,F as R,BJ as S,HJ as T,kRe as U,fRe as V,dte as W,Ms as X,iRe as Y,ARe as Z,RU as _,Rt as a,zn as a$,hte as a0,DRe as a1,bL as a2,yJ as a3,B4 as a4,aRe as a5,sRe as a6,Uge as a7,zRe as a8,URe as a9,CIe as aA,o_e as aB,O3e as aC,WU as aD,Kl as aE,SF as aF,c3e as aG,A4e as aH,LRe as aI,Yj as aJ,p_e as aK,SL as aL,t0e as aM,h4e as aN,m4e as aO,f4e as aP,QIe as aQ,d_e as aR,x4e as aS,v_e as aT,xRe as aU,CH as aV,g4e as aW,S4e as aX,p4e as aY,bRe as aZ,wRe as a_,kd as aa,Ln as ab,n1 as ac,Uj as ad,zv as ae,qge as af,Gge as ag,Xge as ah,Kge as ai,Yge as aj,xr as ak,Jge as al,oM as am,Zge as an,e0e as ao,Kr as ap,Vr as aq,v1e as ar,b4e as as,Ep as at,qIe as au,Wke as av,sE as aw,$Re as ax,XIe as ay,O4e as az,kJ as b,FRe as b$,e4e as b0,f_e as b1,w_e as b2,o4e as b3,C_e as b4,c4e as b5,l4e as b6,TIe as b7,AIe as b8,qE as b9,_4e as bA,TRe as bB,vp as bC,ORe as bD,NRe as bE,RRe as bF,IRe as bG,E4e as bH,x_e as bI,uv as bJ,pte as bK,dRe as bL,u_e as bM,n_e as bN,mH as bO,RH as bP,ZIe as bQ,kIe as bR,T4e as bS,R4e as bT,hd as bU,ev as bV,Yke as bW,lRe as bX,sk as bY,_F as bZ,c_e as b_,Vke as ba,s4e as bb,JIe as bc,$v as bd,XU as be,VE as bf,d4e as bg,u4e as bh,w4e as bi,y4e as bj,v4e as bk,I4e as bl,i4e as bm,OE as bn,mte as bo,$J as bp,Hke as bq,hRe as br,xF as bs,L3e as bt,H3e as bu,B3e as bv,F3e as bw,t4e as bx,KIe as by,Fke as bz,EL as c,Ym as c$,yRe as c0,Q_ as c1,ane as c2,MIe as c3,OIe as c4,RIe as c5,xU as c6,ts as c7,Kne as c8,Td as c9,Sne as cA,GIe as cB,YIe as cC,CRe as cD,PIe as cE,LIe as cF,a_e as cG,DIe as cH,Bne as cI,_Re as cJ,Fne as cK,_Ie as cL,_3e as cM,jIe as cN,VIe as cO,iE as cP,k4e as cQ,WIe as cR,L9 as cS,mRe as cT,FIe as cU,BIe as cV,s_e as cW,HIe as cX,$Ie as cY,a4e as cZ,h_e as c_,Nke as ca,_r as cb,C4e as cc,n4e as cd,r4e as ce,xAe as cf,IIe as cg,NIe as ch,N4e as ci,zJ as cj,M4e as ck,J_ as cl,PRe as cm,uRe as cn,MRe as co,$_e as cp,Jre as cq,Xre as cr,Zre as cs,g9 as ct,d0 as cu,EIe as cv,UIe as cw,zIe as cx,bU as cy,ERe as cz,Ue as d,vRe as d0,SRe as d1,ite as d2,one as d3,IE as e,AE as f,AJ as g,Ree as h,gte as i,C as j,cRe as k,rv as l,kee as m,ote as n,pRe as o,gRe as p,TL as q,_ as r,cte as s,FJ as t,lte as u,DJ as v,jJ as w,EJ as x,IJ as y,nne as z};