@wix/events 1.0.898 → 1.0.899
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.
- package/_sdk-exports/context-event-by-id-context/runtime.js +2 -2
- package/_sdk-exports/context-event-by-slug-context/runtime.js +2 -2
- package/_sdk-exports/context-event-item-context/runtime.js +2 -2
- package/_sdk-exports/context-event-list-context/runtime.js +2 -2
- package/build/cjs/context-event-by-id-context.js +1 -1
- package/build/cjs/context-event-by-id-context.js.map +1 -1
- package/build/cjs/context-event-by-slug-context.js +1 -1
- package/build/cjs/context-event-by-slug-context.js.map +1 -1
- package/build/cjs/context-event-item-context.js +1 -1
- package/build/cjs/context-event-item-context.js.map +1 -1
- package/build/cjs/context-event-list-context.js +1 -1
- package/build/cjs/context-event-list-context.js.map +1 -1
- package/build/es/context-event-by-id-context.mjs +1 -1
- package/build/es/context-event-by-id-context.mjs.map +1 -1
- package/build/es/context-event-by-slug-context.mjs +1 -1
- package/build/es/context-event-by-slug-context.mjs.map +1 -1
- package/build/es/context-event-item-context.mjs +1 -1
- package/build/es/context-event-item-context.mjs.map +1 -1
- package/build/es/context-event-list-context.mjs +1 -1
- package/build/es/context-event-list-context.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e,{useEventContext as t}from"@wix/events/context/event-context";import{useService as n}from"@wix/services-manager-react";import*as r from"react";import{Component as i,Suspense as a,useMemo as o}from"react";import{Fragment as s,jsx as c,jsxs as l}from"react/jsx-runtime";import*as u from"react-dom";var d=Object.defineProperty,f=(e,t)=>{let n={};for(var r in e)d(n,r,{get:e[r],enumerable:!0});return t||d(n,Symbol.toStringTag,{value:`Module`}),n},p={};function m(e,t=!1,n=e=>e){return()=>({__type:`event-definition`,type:e,isDomainEvent:t,transformations:n})}var h=e=>{switch(e){case`get`:case`GET`:return`GET`;case`post`:case`POST`:return`POST`;case`put`:case`PUT`:return`PUT`;case`delete`:case`DELETE`:return`DELETE`;case`patch`:case`PATCH`:return`PATCH`;case`head`:case`HEAD`:return`HEAD`;case`options`:case`OPTIONS`:return`OPTIONS`;default:throw Error(`Unknown method: ${e}`)}},g=e=>t=>async n=>{let r,i=t=>{if(r=e(n)(t),r.url===void 0)throw Error(`Url was not successfully created for this request, please reach out to support channels for assistance.`);let{method:i,url:a,params:o}=r;return{...r,method:h(i),url:a,data:r.data,params:o}};try{let e=await t.request(i);if(r===void 0)throw Error(`Request options were not created for this request, please reach out to support channels for assistance.`);let n=Array.isArray(r.transformResponse)?r.transformResponse:[r.transformResponse],a=e.data;return n.forEach(t=>{t&&(a=t(e.data,e.headers))}),a}catch(e){throw typeof e==`object`&&e&&`response`in e&&typeof e.response==`object`&&e.response!==null&&`data`in e.response?e.response.data:e}},_=e=>e.__isAmbassador?!0:!!e().__isAmbassador,v=`__metadata`,y=`edge.wixapis.com`,b=class extends Error{message;response;constructor(e,t){super(e),this.message=e,this.response=t}async details(){let e=await this.response.json();return x(this.response.status,e?.message,e?.details,{requestId:this.response.headers.get(`X-Wix-Request-Id`),details:e})}},x=(e,t,n,r)=>({details:{...!n?.validationError&&{applicationError:{description:t,code:e,data:r}},...n},message:t,requestId:r?.requestId}),S=e=>e?.method&&[`post`,`put`,`patch`].includes(e.method.toLocaleLowerCase())&&e.body?{"Content-Type":`application/json`}:{},C=e=>e&&typeof e==`object`&&!Array.isArray(e),w=e=>e.__type===`host`;function T(e,t){return e.create(t)}var E=`x-wix-bi-gateway`;function D(e,t,n){return{[E]:O({environment:`js-sdk${n?`-${n}`:``}`,"package-name":e.packageName??t?.PACKAGE_NAME,"method-fqn":e.methodFqn,entity:e.entityFqdn})}}function O(e){return Object.entries(e).filter(([e,t])=>!!t).map(([e,t])=>`${e}=${t}`).join(`,`)}function k(e){let t=globalThis.__wix_context__,n={client:p.client,elevatedClient:p.elevatedClient},r;globalThis.__wix_context__=void 0,p.client=void 0,p.elevatedClient=void 0,typeof $wixContext<`u`&&(r={client:$wixContext?.client,elevatedClient:$wixContext?.elevatedClient},delete $wixContext.client,delete $wixContext.elevatedClient);try{return e()}finally{globalThis.__wix_context__=t,p.client=n.client,p.elevatedClient=n.elevatedClient,typeof $wixContext<`u`&&($wixContext.client=r.client,$wixContext.elevatedClient=r.elevatedClient)}}var A={id:`_id`,createdDate:`_createdDate`,updatedDate:`_updatedDate`};function j(e){return I(e).map(e=>e.toLocaleUpperCase()).join(`_`)}var M=/([\p{Ll}\d])(\p{Lu})/gu,N=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,P=`$1\0$2`,F=/[^\p{L}\d]+/giu;function I(e){let t=e.trim();t=t.replace(M,P).replace(N,P),t=t.replace(F,`\0`);let n=0,r=t.length;for(;t.charAt(n)===`\0`;)n++;if(n===r)return[];for(;t.charAt(r-1)===`\0`;)r--;return t.slice(n,r).split(/\0/g)}var L=e=>`validationError`in(e.response?.data?.details??{}),ee=e=>`applicationError`in(e.response?.data?.details??{}),R=e=>(e.response?.status??-1)>=400&&(e.response?.status??-1)<500;function te(e,t={explicitPathsToArguments:{},spreadPathsToArguments:{},singleArgumentUnchanged:!1},n=[]){if(typeof e!=`object`||!e)throw e;if(L(e))return z(e,t,n);if(ee(e))return ne(e);if(R(e)){let t=e.response?.status,n=e.response?.statusText??`UNKNOWN`,r=e.response?.data?.message??n,i={applicationError:{description:n,code:j(n),data:{}},requestId:e.requestId};return B(e,{message:JSON.stringify({message:r,details:i},null,2),extraProperties:{details:i,status:t}})}return re(e)}var z=(e,t,n)=>{let r=e.response?.data,i=e.requestId,{fieldViolations:a}=r.details.validationError,o=ie(t,a,n)?.sort((e,t)=>e.field<t.field?-1:1),s=`INVALID_ARGUMENT: ${o?.map(({field:e,description:t})=>`"${e}" ${t}`)?.join(`, `)}`,c={validationError:{fieldViolations:o},requestId:i};return B(e,{message:JSON.stringify({message:s,details:c},null,2),extraProperties:{details:c,status:e.response?.status,requestId:i}})},B=(e,{message:t,extraProperties:n})=>Object.assign(e,{...n,message:t}),ne=e=>{let t=e.response?.status,n=e.response?.statusText??`UNKNOWN`,r=e.response?.data?.message??n,i=e.response?.data?.details?.applicationError?.description??n,a=e.response?.data?.details?.applicationError?.code??j(n),o=e.response?.data?.details?.applicationError?.data??{},s=r===i?r:`${r}: ${i}`,c={applicationError:{description:i,code:a,data:o},requestId:e.requestId};return B(e,{message:JSON.stringify({message:s,details:c},null,2),extraProperties:{details:c,status:t,requestId:e.requestId}})},re=e=>B(e,{message:e.requestId?`System error occurred, request-id: ${e.requestId}`:`System error occurred: ${JSON.stringify(e)}`,extraProperties:{requestId:e.requestId,status:e.response?.status,code:j(e.response?.statusText??`UNKNOWN`),...!e.response&&{runtimeError:e}}}),ie=({spreadPathsToArguments:e,explicitPathsToArguments:t,singleArgumentUnchanged:n},r,i)=>{let a={...e,...t},o=Object.keys(a);return r?.filter(e=>!r.some(t=>t.field.length>e.field.length&&t.field.startsWith(e.field)&&o.includes(t.field))).map(e=>{let r=t[e.field];if(r)return{...e,field:ae(r,i)};let s=o?.sort((e,t)=>t.length-e.length)?.find(t=>e.field.startsWith(t));if(s){let t=a[s];if(t)return{...e,field:e.field.replace(s,ae(t,i))}}return n?{...e,field:`${i[0]}.${e.field}`}:e})},ae=(e,t)=>{let n=V(e);return n==null?e:e.replace(`$[${n}]`,t[n])},V=e=>{let t=e.match(/\$\[(?<argIndex>\d+)\]/);return t&&t.groups&&Number(t.groups.argIndex)};function oe(e,t,n,r,i,a,o,s,c,l,u){return k(()=>e({request:async e=>{let i=e({host:s?.HTTPHost||`www.wixapis.com`}),a=i;a.method===`GET`&&a.fallback?.length&&(a.params?.toString().length??0)>4e3&&(a=i.fallback[0]);let o=s?.HTTPHost??`www.wixapis.com`,u=`https://${l?y:o}${a.url}`;a.params&&a.params.toString()&&(u+=`?${a.params.toString()}`);try{let e=D(i,t,c),o={method:a.method,...a.data&&{body:JSON.stringify(a.data)},headers:{...e}},s=await n(u,o);if(s.status!==200){let e=null;try{e=await s.json()}catch{}let t=ce(s.status,e?.message??s.statusText,e?.details,{requestId:s.headers.get(`X-Wix-Request-Id`),details:e}),n=te(t);throw r?.handleError(n,{requestOptions:{url:a.url,method:a.method,entityFqdn:i.entityFqdn,methodFqn:i.methodFqn}}),t}let l=await s.json();return{data:a.migrationOptions?.optInTransformResponse&&a.transformResponse?Array.isArray(a.transformResponse)?a.transformResponse[0](l):a.transformResponse(l):l,headers:s.headers,status:s.status,statusText:s.statusText}}catch(e){throw e.message?.includes(`fetch is not defined`)&&console.error(`Node.js v18+ is required`),e}},fetchWithAuth:n,wixAPIFetch:i,getActiveToken:a,getAuthHeaders:o},{validateRequestSchema:u}))}var se=class extends Error{response;requestId;constructor(e){super(),this.response=e.response,this.requestId=e.requestId}},ce=(e,t,n,r)=>new se({response:{data:{details:{...!n?.validationError&&{applicationError:{description:t,code:e,data:r}},...n},message:t},status:e},requestId:r?.requestId}),le=`.`;function ue(e,t,n){if(e==null)throw Error(`Cannot set value on null or undefined`);let r=de(t),i=e;for(let e=0;e<r.length;e++){let t=r[e];if(e===r.length-1){i[t]=n;break}let a=r[e+1];(!(t in i)||i[t]==null||typeof i[t]!=`object`||i[t]===null)&&(i[t]=typeof a==`number`?[]:{}),i=i[t]}return e}function de(e){return Array.isArray(e)?e:e.split(le).map(e=>fe(e)?Number(e):e)}function fe(e){return/^\d+$/.test(e)}function pe(e){let t={};for(let[n,r]of Object.entries(e))me(n)||ue(t,de(n),r);return t}function me(e){return e===`__proto__`||e===`constructor`||e===`prototype`}var he=class{BRACKET_PATTERN=/\[(\d+)\]/g;NUMERIC_PATTERN=/^\d+$/;ESCAPED_DOT_PATTERN=/\\\./g;ESCAPED_LEFT_BRACKET_PATTERN=/\\\[/g;ESCAPED_RIGHT_BRACKET_PATTERN=/\\\]/g;SPLIT_PATTERN=/\.|\[(\d+)\]/g;DOT_BEFORE_BRACKET_PATTERN=/\.\[/g;ESCAPED_DOT_PLACEHOLDER=`__DOT__`;ESCAPED_RIGHT_BRACKET_PLACEHOLDER=`__RB__`;ESCAPED_LEFT_BRACKET_PLACEHOLDER=`__LB__`;modifiedFields;cleanedModifiedFields;constructor(e){this.modifiedFields=e}replaceEscapedCharacters(e){return e.replace(this.ESCAPED_DOT_PATTERN,this.ESCAPED_DOT_PLACEHOLDER).replace(this.ESCAPED_LEFT_BRACKET_PATTERN,this.ESCAPED_LEFT_BRACKET_PLACEHOLDER).replace(this.ESCAPED_RIGHT_BRACKET_PATTERN,this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER)}restoreEscapedCharacters(e){return e.replace(this.ESCAPED_DOT_PLACEHOLDER,`\\.`).replace(this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER,`\\]`).replace(this.ESCAPED_LEFT_BRACKET_PLACEHOLDER,`\\[`)}unflatten(){return this.cleanedModifiedFields=Object.fromEntries(Object.entries(this.modifiedFields).map(([e,t])=>[this.replaceEscapedCharacters(this.bracketToDotNotation(e)),t])),pe(this.cleanedModifiedFields)}flatten(e){let t={};for(let n of Object.keys(this.cleanedModifiedFields)){let r=this.splitPath(n),i=this.navigatePath(e,r);t={...t,...i}}return Object.fromEntries(Object.entries(t).map(([e,t])=>[this.restoreEscapedCharacters(e),t]))}splitPath(e){let t=[],n=0,r=Array.from(e.matchAll(this.SPLIT_PATTERN));for(let i of r)i.index>n&&t.push(e.substring(n,i.index)),i[1]&&t.push(i[1]),n=i.index+i[0].length;return n<e.length&&t.push(e.substring(n)),t}navigatePath(e,t){let n=e,r=[],i=e=>{if(!Array.isArray(n))throw Error(`Expected array at path ${this.buildPathString(r)}, but got ${typeof n}`);r.push(`[${e}]`),n=n[parseInt(e,10)]},a=(e,t)=>{let i=e in A?A[e]:void 0;if(i&&i in t){r.push(i),n=t[i];return}let a=ye(e);if(a&&a in t)r.push(a),n=t[a];else throw Error(`Cannot find key '${e}' or its transformations at path ${this.buildPathString(r)}`)},o=(e,t)=>{r.push(e),n=t[e]};for(let e of t){if(this.NUMERIC_PATTERN.test(e)){i(e);continue}if(typeof n!=`object`||!n)throw Error(`Cannot access property '${e}' on ${typeof n} at path ${this.buildPathString(r)}`);let t=n;e in n?o(e,t):a(e,t)}return{[this.buildPathString(r)]:n}}buildPathString(e){return e.join(`.`).replace(this.DOT_BEFORE_BRACKET_PATTERN,`[`)}bracketToDotNotation(e){return e.replace(this.BRACKET_PATTERN,(t,n,r)=>r>0&&e[r-1]===`\\`?t:`.`+n)}};function ge(e,t){let n=e?.modifiedFields;if(!n)return null;let r=_e(n);if(!r)return null;let{unflattenedModifiedFields:i,modifiedFieldsManipulator:a}=r;e={...e,modifiedFields:i};let o=t(e),s=o?.modifiedFields;if(!s)return null;let c=ve(s,a);return c===null?null:(o.modifiedFields=c,o)}function _e(e){if(typeof e==`object`&&e&&!Array.isArray(e))try{let t=new he(e);return{unflattenedModifiedFields:t.unflatten(),modifiedFieldsManipulator:t}}catch{return null}return null}function ve(e,t){if(typeof e==`object`&&e&&!Array.isArray(e))try{return t.flatten(e)}catch{return null}return null}function ye(e){return e.replace(/[-_\s]+(.)?/g,(e,t)=>t?t.toUpperCase():``).replace(/^./,e=>e.toLowerCase())}function be(){return{emit(e,...t){for(let n=0,r=this.events[e]||[],i=r.length;n<i;n++)r[n](...t)},events:{},on(e,t){return(this.events[e]||=[]).push(t),()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}}}var xe=e=>e.__type===`event-definition`;function Se(e,t,n,r){let i;if(e.isDomainEvent){let{deletedEvent:e,actionEvent:t,createdEvent:a,updatedEvent:o,...s}=n,c={...r,...s};i=e?e?.deletedEntity?{entity:e?.deletedEntity,metadata:c}:{metadata:c}:t?{data:t.body,metadata:c}:o?{entity:o.currentEntity,metadata:c,...o.modifiedFields?{modifiedFields:o.modifiedFields}:{}}:{entity:a?.entity,metadata:c}}else i={data:n,metadata:r};let a=e.transformations??(e=>e),o=i,s=i;if(s.modifiedFields){let e=s.modifiedFields;if(typeof e==`object`&&e&&!Array.isArray(e)){o=structuredClone(i);let e=ge(s,a);if(e)return t(e)}}return t(a(o))}function Ce(e){let t=new Map,n=be();return{initModule(e){return r=>{let i=t.get(e.type)??[];i.push({eventDefinition:e,handler:r}),t.set(e.type,i),n.emit(`registered`,e)}},client:{...n,getRegisteredEvents:()=>t,async process(e,n={expectedEvents:[]}){let{eventType:r,identity:i,instanceId:a,payload:o,accountInfo:s}=await this.parseJWT(e),c=[...n.expectedEvents,...Array.from(t.keys()).map(e=>({type:e}))];if(c.length>0&&!c.some(({type:e})=>e===r))throw Error(`Unexpected event type: ${r}. Expected one of: ${c.map(e=>e.type).join(`, `)}`);let l=t.get(r)??[];return await Promise.all(l.map(({eventDefinition:e,handler:t})=>Se(e,t,o,{instanceId:a,identity:i,accountInfo:s}))),{instanceId:a,eventType:r,payload:o,identity:i,accountInfo:s}},async processRequest(e,t){let n=await e.text();return this.process(n,t)},async parseJWT(t){let n=e();if(!n.decodeJWT)throw Error(`decodeJWT is not supported by the authentication strategy`);let{decoded:r,valid:i}=await n.decodeJWT(t);if(!i)throw Error(`JWT is not valid`);if(typeof r.data!=`string`)throw Error(`Unexpected type of JWT data: expected string, got ${typeof r.data}`);let a=JSON.parse(r.data),o=a.eventType,s=a.accountInfo,c=a.instanceId,l=a.identity?JSON.parse(a.identity):void 0;return{instanceId:c,eventType:o,payload:JSON.parse(a.data),identity:l,accountInfo:s}},async parseRequest(e){let t=await e.text();return this.parseJWT(t)},async executeHandlers(e){let n=Array.from(t.keys()).map(e=>({type:e}));if(n.length>0&&!n.some(({type:t})=>t===e.eventType))throw Error(`Unexpected event type: ${e.eventType}. Expected one of: ${n.map(e=>e.type).join(`, `)}`);let r=t.get(e.eventType)??[];await Promise.all(r.map(({eventDefinition:t,handler:n})=>Se(t,n,e.payload,{instanceId:e.instanceId,identity:e.identity})))},apps:{AppInstalled:m(`AppInstalled`)(),AppRemoved:m(`AppRemoved`)()}}}}var we=e=>e.__type===`service-plugin-definition`;function Te(e){let t=new Map,n=be();return{initModule(e){return r=>{let i=t.get(e.componentType.toLowerCase())??[];i.push({servicePluginDefinition:e,implementation:r}),t.set(e.componentType.toLowerCase(),i),n.emit(`registered`,e)}},client:{...n,getRegisteredServicePlugins:()=>t,async parseJWT(t){let n=e();if(!n.decodeJWT)throw Error(`decodeJWT is not supported by the authentication strategy`);let{decoded:r,valid:i}=await n.decodeJWT(t,!0);if(!i)throw Error(`JWT is not valid`);if(typeof r.data!=`object`||r.data===null||!(`metadata`in r.data)||typeof r.data.metadata!=`object`||r.data.metadata===null||!(`appExtensionType`in r.data.metadata)||typeof r.data.metadata.appExtensionType!=`string`)throw Error(`Unexpected JWT data: expected object with metadata.appExtensionType string`);return r.data},async process(e){let t=await this.parseJWT(e.body);return this.executeHandler(t,e.url)},async parseRequest(e){let t=await e.text();return this.parseJWT(t)},async processRequest(e){let t=await this.parseRequest(e);return this.processParsedRequest(t,e.url)},async processParsedRequest(e,t){try{let n=await this.executeHandler(e,t);return Response.json(n)}catch(e){if(e.errorType===`SPI`&&e.applicationCode&&e.httpCode)return Response.json({applicationError:{code:e.applicationCode,data:e.data}},{status:e.httpCode});throw e}},async executeHandler(e,n){let r=e.metadata.appExtensionType.toLowerCase(),i=t.get(r)??[];if(i.length===0)throw Error(`No service plugin implementations found for component type ${r}`);if(i.length>1)throw Error(`Multiple service plugin implementations found for component type ${r}. This is currently not supported`);let{implementation:a,servicePluginDefinition:o}=i[0],s=o.methods.find(e=>n.endsWith(e.primaryHttpMappingPath));if(!s)throw Error(`Unexpect request: request url did not match any method: `+n);let c=a[s.name];if(!c)throw Error(`Got request for service plugin method ${s.name} but no implementation was provided. Available methods: ${Object.keys(a).join(`, `)}`);return s.transformations.toREST(await c(s.transformations.fromREST(e)))}}}}var Ee=`X-Wix-Consistent`;function De(e){let t=e.headers||{Authorization:``},n={getAuthHeaders:e=>Promise.resolve({headers:{}})},r=e.auth,i=typeof r==`function`?r:()=>r??n,a=()=>i().getAuthHeaders(e.host),o=()=>e.fetch??fetch,s=async(n,r)=>{let i=o(),s=await a(),c={...r?.headers??{},...s.headers,...e.host?.essentials?.passThroughHeaders,...t[`X-Wix-Consistent`]?{[Ee]:t[Ee]}:{}},l=e.host?.getErrorHandler?.();try{if(typeof n==`string`||n instanceof URL){let e=await i(n,{...r,headers:c});l?.handleError(e,{requestOptions:{url:n.toString(),method:r?.method}});let a=Oe(e);return a&&(t[Ee]=a),e}{for(let[e,t]of Object.entries(c))typeof t==`string`&&n.headers.set(e,t);let e=await i(n,r);l?.handleError(e,{requestOptions:{url:n.url,method:r?.method}});let a=Oe(e);return a&&(t[Ee]=a),e}}catch(e){throw l?.handleError(e,{requestOptions:{url:typeof n==`string`||n instanceof URL?n.toString():n.url,method:r?.method}}),e}},{client:c,initModule:l}=Te(i),{client:u,initModule:d}=Ce(i),f=async(n,r)=>{let i=o(),s=await a(),c=S(r),l=await i(n,{...r,headers:{...c,...t,...s?.headers,...r?.headers,...e.host?.essentials?.passThroughHeaders,...t[`X-Wix-Consistent`]?{[Ee]:t[Ee]}:{}}}),u=Oe(l);return u&&(t[Ee]=u),l},m=(t,n)=>{if(xe(t))return d(t);if(we(t))return l(t);if(w(t)&&e.host)return T(t,e.host);if(typeof t==`function`){if(`__type`in t&&t.__type===`wix_spi_error`)return t;let r=e.host?.apiBaseUrl??`www.wixapis.com`,o=e.useCDN===void 0?i().shouldUseCDN:e.useCDN;return oe(k(()=>_(t))?g(t):t,n??{},f,e.host?.getErrorHandler?.(),(e,t)=>{let n=new URL(e,`https://${r}`);return n.host=r,n.protocol=`https`,f(n.toString(),t)},i().getActiveToken,async()=>a(),{HTTPHost:r},e.host?.name,o,e.validateRequestSchema)}return C(t)?Object.fromEntries(Object.entries(t).map(([e,n])=>[e,m(n,t[v])])):t},h=e=>{for(let n in e)t[n]=e[n]};return{...e.modules?m(e.modules):{},get auth(){let t=i();return t.getAuthHeaders=t.getAuthHeaders.bind(void 0,e.host),t},setHeaders:h,use:m,enableContext(e,t={elevated:!1}){e===`global`?globalThis.__wix_context__==null?t.elevated?globalThis.__wix_context__={elevatedClient:this}:globalThis.__wix_context__={client:this}:t.elevated?globalThis.__wix_context__.elevatedClient=this:globalThis.__wix_context__.client=this:t.elevated?p.elevatedClient=this:p.client=this},fetch:(t,n)=>{let r=e.host?.apiBaseUrl??`www.wixapis.com`,i=new URL(t,`https://${r}`);return i.host=r,i.protocol=`https`,f(i.toString(),n)},fetchWithAuth:s,async graphql(t,n,r={apiVersion:`alpha`}){let i=e?.host?.apiBaseUrl??`www.wixapis.com`,a=await f(`https://${i}/graphql/${r.apiVersion}`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({query:t,variables:n})});if(a.status!==200)throw new b(`GraphQL request failed with status ${a.status}`,a);let{data:o,errors:s}=await a.json();return{data:o??{},errors:s}},webhooks:u,servicePlugins:c}}function Oe(e){return e.headers?.get(`X-Wix-Consistent`)??e.headers?.get(`x-wix-consistent`)}var ke=`wix:`,Ae={_id:`id`,_createdDate:`createdDate`,_updatedDate:`updatedDate`},je={id:`_id`,createdDate:`_createdDate`,updatedDate:`_updatedDate`},Me=`items`,Ne=`pagingMetadata`,Pe=Ae;function Fe(e,t){return e?.split(`.`).map(e=>t?.[e]??e).join(`.`)}function Ie(e,{transformSystemFields:t=!0}={}){return t?Fe(e,Pe):e}var Le=`sort.fieldName`;function Re(e,t,n){return(e===Le||e.endsWith(`.${Le}`))&&typeof t==`string`?Fe(t,n):t}function ze(e,t,n){let r=e=>n.includes(e),i=(e,n)=>{if(Array.isArray(e))e.forEach(e=>{i(e,n)});else if(typeof e==`object`&&e){let a=e;Object.keys(a).forEach(e=>{let o=n===``?e:`${n}.${e}`;if(r(o))return;let s=Be(e,t);s!==e&&!(s in a)&&(a[s]=a[e],delete a[e]),a[s]=Re(o,a[s],t),i(a[s],o)})}};return i(e,``),e}function Be(e,t){let n;return n=e.includes(`.`)?e.split(`.`).map(e=>t[e]??e).join(`.`):t[e]??e,n}function H(e,t=[]){return ze(e,Ae,t)}function U(e,t=[]){return ze(e,je,t)}function Ve(e){return e?.toISOString()}function W(e){return e?new Date(e):void 0}var He=new WeakMap;function Ue(){return{leaves:void 0,fields:void 0,mapFields:void 0,anyField:void 0}}function We(e,t){let n=e.get(t);return n||(n=Ue(),e.set(t,n)),n}function Ge(e,t){return t===`*`?(e.anyField??=Ue(),e.anyField):t.endsWith(`{}`)?(e.mapFields??=new Map,We(e.mapFields,t.slice(0,-2))):(e.fields??=new Map,We(e.fields,t))}function Ke(e){let t=Ue();for(let n of e){let e=n.path.split(`.`).reduce(Ge,t);e.leaves??=[],e.leaves.push(n)}return t}function qe(e){let t=He.get(e);return t||(t=Ke(e),He.set(e,t)),t}function Je(e){return typeof e==`object`&&!!e}function Ye(e,{isRepeated:t,isMap:n},r){return t?Array.isArray(e)?e.map(r):e:n?Je(e)?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,r(t)])):e:r(e)}function Xe(e,t,n){Je(e)&&$e(e,t,n)}function Ze(e,t,n){for(let[r,i]of t){if(!(r in e))continue;if(i.leaves)for(let t of i.leaves)e[r]=Ye(e[r],t,n);let t=e[r];Array.isArray(t)?t.forEach(e=>Xe(e,i,n)):Xe(t,i,n)}}function Qe(e,t,n){for(let[r,i]of t){let t=e[r];Je(t)&&Object.values(t).forEach(e=>Xe(e,i,n))}}function $e(e,{fields:t,mapFields:n,anyField:r},i){t&&Ze(e,t,i),n&&Qe(e,n,i),r&&Object.values(e).forEach(e=>Xe(e,r,i))}function G(e,t){if(!Je(e))return e;for(let{paths:n,transformFn:r}of t)$e(e,qe(n),r);return e}function et(e,t){let{protocol:n}=new URL(e);return n===`${t}:`?`${ke}${e}`:e}function tt(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}function nt(e){return st(e).map(e=>e.toLocaleUpperCase()).join(`_`)}var rt=/([\p{Ll}\d])(\p{Lu})/gu,it=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,at=`$1\0$2`,ot=/[^\p{L}\d]+/giu;function st(e){let t=e.trim();t=t.replace(rt,at).replace(it,at),t=t.replace(ot,`\0`);let n=0,r=t.length;for(;t.charAt(n)===`\0`;)n++;if(n===r)return[];for(;t.charAt(r-1)===`\0`;)r--;return t.slice(n,r).split(/\0/g)}var ct=e=>`validationError`in(e.response?.data?.details??{}),lt=e=>`applicationError`in(e.response?.data?.details??{}),ut=e=>(e.response?.status??-1)>=400&&(e.response?.status??-1)<500;function K(e,t={explicitPathsToArguments:{},spreadPathsToArguments:{},singleArgumentUnchanged:!1},n=[]){if(typeof e!=`object`||!e)throw e;if(ct(e))return dt(e,t,n);if(lt(e))return pt(e);if(ut(e)){let t=e.response?.status,n=e.response?.statusText??`UNKNOWN`,r=e.response?.data?.message??n,i={applicationError:{description:n,code:nt(n),data:{}},requestId:e.requestId};return ft(e,{message:JSON.stringify({message:r,details:i},null,2),extraProperties:{details:i,status:t}})}return mt(e)}var dt=(e,t,n)=>{let r=e.response?.data,i=e.requestId,{fieldViolations:a}=r.details.validationError,o=ht(t,a,n)?.sort((e,t)=>e.field<t.field?-1:1),s=`INVALID_ARGUMENT: ${o?.map(({field:e,description:t})=>`"${e}" ${t}`)?.join(`, `)}`,c={validationError:{fieldViolations:o},requestId:i};return ft(e,{message:JSON.stringify({message:s,details:c},null,2),extraProperties:{details:c,status:e.response?.status,requestId:i}})},ft=(e,{message:t,extraProperties:n})=>Object.assign(e,{...n,message:t}),pt=e=>{let t=e.response?.status,n=e.response?.statusText??`UNKNOWN`,r=e.response?.data?.message??n,i=e.response?.data?.details?.applicationError?.description??n,a=e.response?.data?.details?.applicationError?.code??nt(n),o=e.response?.data?.details?.applicationError?.data??{},s=r===i?r:`${r}: ${i}`,c={applicationError:{description:i,code:a,data:o},requestId:e.requestId};return ft(e,{message:JSON.stringify({message:s,details:c},null,2),extraProperties:{details:c,status:t,requestId:e.requestId}})},mt=e=>ft(e,{message:e.requestId?`System error occurred, request-id: ${e.requestId}`:`System error occurred: ${JSON.stringify(e)}`,extraProperties:{requestId:e.requestId,status:e.response?.status,code:nt(e.response?.statusText??`UNKNOWN`),...!e.response&&{runtimeError:e}}}),ht=({spreadPathsToArguments:e,explicitPathsToArguments:t,singleArgumentUnchanged:n},r,i)=>{let a={...e,...t},o=Object.keys(a);return r?.filter(e=>!r.some(t=>t.field.length>e.field.length&&t.field.startsWith(e.field)&&o.includes(t.field))).map(e=>{let r=t[e.field];if(r)return{...e,field:gt(r,i)};let s=o?.sort((e,t)=>t.length-e.length)?.find(t=>e.field.startsWith(t));if(s){let t=a[s];if(t)return{...e,field:e.field.replace(s,gt(t,i))}}return n?{...e,field:`${i[0]}.${e.field}`}:e})},gt=(e,t)=>{let n=_t(e);return n==null?e:e.replace(`$[${n}]`,t[n])},_t=e=>{let t=e.match(/\$\[(?<argIndex>\d+)\]/);return t&&t.groups&&Number(t.groups.argIndex)};function vt(){let e=typeof $wixContext<`u`&&$wixContext.initWixModules?$wixContext.initWixModules:globalThis.__wix_context__!==void 0&&globalThis.__wix_context__.initWixModules?globalThis.__wix_context__.initWixModules:void 0;if(e)return{initWixModules(t,n){return yt(()=>e(t,n))},fetchWithAuth(){throw Error(`fetchWithAuth is not available in this context`)},graphql(){throw Error(`graphql is not available in this context`)}};let t=typeof $wixContext<`u`?$wixContext.client:p.client===void 0?globalThis.__wix_context__===void 0?void 0:globalThis.__wix_context__.client:p.client,n=typeof $wixContext<`u`?$wixContext.elevatedClient:p.elevatedClient===void 0?globalThis.__wix_context__===void 0?void 0:globalThis.__wix_context__.elevatedClient:p.elevatedClient;if(t||n)return{initWixModules(e,r){if(r){if(!n)throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);return yt(()=>n.use(e))}if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return yt(()=>t.use(e))},fetchWithAuth:(e,n)=>{if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return t.fetchWithAuth(e,n)},getAuth(){if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return t.auth},async graphql(e,n,r){if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return t.graphql(e,n,r)}}}function yt(e){let t=globalThis.__wix_context__,n={client:p.client,elevatedClient:p.elevatedClient},r;globalThis.__wix_context__=void 0,p.client=void 0,p.elevatedClient=void 0,typeof $wixContext<`u`&&(r={client:$wixContext?.client,elevatedClient:$wixContext?.elevatedClient},delete $wixContext.client,delete $wixContext.elevatedClient);try{return e()}finally{globalThis.__wix_context__=t,p.client=n.client,p.elevatedClient=n.elevatedClient,typeof $wixContext<`u`&&($wixContext.client=r.client,$wixContext.elevatedClient=r.elevatedClient)}}function bt(e,t){return((...n)=>{let r=vt();return r?r.initWixModules(e,t).apply(void 0,n):e.apply(void 0,n)})}function xt(e){let t=((...t)=>{let n=vt();return n?n.initWixModules(e).apply(void 0,t):()=>({slug:e.type})});return t.__type=e.__type,t.type=e.type,t.isDomainEvent=e.isDomainEvent,t.transformations=e.transformations,t}function q(e,t=!1){return bt(e,t)}function St(e,t){let n=wt(e),r=Object.entries(n).some(([e,t])=>e.includes(`.`)||Array.isArray(t)&&t.some(e=>typeof e==`object`));return t&&r?new URLSearchParams({".r":Et(JSON.stringify(e))}):Object.entries(n).reduce((e,[t,n])=>((Array.isArray(n)?n:[n]).forEach(r=>{r==null||Array.isArray(n)&&typeof r==`object`||e.append(t,r)}),e),new URLSearchParams)}function Ct(e){let t=zt(Lt(e.host),e.domainToMappings);return Jt(Gt(e.protoPath,e.data||{}),t)}function wt(e,t=``){let n={};return Object.entries(e).forEach(([e,r])=>{let i=typeof r==`object`&&!!r&&!Array.isArray(r),a=Tt(t,e);if(i){let e=wt(r,a);Object.assign(n,e)}else n[a]=r}),n}function Tt(e,t){return`${e}${e?`.`:``}${t}`}var Et=e=>{let t=new TextEncoder().encode(e);return(typeof btoa<`u`?btoa(String.fromCodePoint(...t)):Buffer.from(e,`utf-8`).toString(`base64`)).replace(/=/g,``).replace(/\+/g,`-`).replace(/\//g,`_`)},Dt=[`wix.com`,`editorx.com`],Ot=`_`,kt=`*.`,At=RegExp(`\\.(${Dt.join(`|`)})$`),jt=[`42.wixprod.net`,`uw2-edt-1.wixprod.net`,`virginia-edt.wixprod.net`],Mt={"payments.base44.com":`manage.wix.com`,"create.editorx.com":`editor.editorx.com`},Nt=`dev.wix-code.com`,Pt=/{(.*)}/,Ft=RegExp(`\\.(${jt.join(`|`)})$`),It=RegExp(`.*\\.${Nt}$`);function Lt(e){return Rt(e).replace(At,`._base_domain_`).replace(Ft,`._api_base_domain_`).replace(It,`*.dev.wix-code.com`)}function Rt(e){return Mt[e]??e}function zt(e,t){let n=t[e];if(n)return n;let r=Bt(e,t)??Vt(e,t);if(!r){if(Ut(e)){let e=t[Wt];if(e)return e}let n=t[Ot];if(n)return n}return r??[]}function Bt(e,t){return Object.entries(t).find(([t])=>{let[,...n]=e.split(`.`);return n.join(`.`)===t})?.[1]}function Vt(e,t){let[n]=Object.entries(t).filter(([t])=>Ht(e,t)).sort(([e],[t])=>t.length-e.length);if(!n)return;let[,r]=n;return r}function Ht(e,t){if(!t.startsWith(kt))return!1;let n=t.slice(1);return e.length>n.length&&e.endsWith(n)}function Ut(e){return!!e.match(/\._base_domain_$/)}var Wt=`www._base_domain_`;function Gt(e,t){return e.split(`/`).map(e=>Kt(e,t)).join(`/`)}function Kt(e,t){let n=e.match(Pt)||[],r=n[1];return r?qt(t,r,e,e.replace(n[0],``)):e}function qt(e,t,n,r){let i=e;for(let e of t.split(`.`)){if(!i)return n;i=i[e]}return`${i}${r}`}function Jt(e,t){let n=t?.find(t=>e.startsWith(t.destPath));return n?n.srcPath+e.slice(n.destPath.length):e}function Yt(e){return xt(e)}function Xt(e){return isFinite(e)?e:e.toString()}function Zt(e){return e===`NaN`?NaN:e===`Infinity`?1/0:e===`-Infinity`?-1/0:e}function Qt(e){return e&&tt({city:e.city,hint:e.hint,subdivision:e.subdivision,country:e.country,postalCode:e.postalCode,formattedAddress:e.formatted,geocode:e.location,addressLine:e.addressLine1,addressLine2:e.addressLine2,streetAddress:e.streetAddress&&{name:e.streetAddress.name,number:e.streetAddress.number,apt:e.streetAddress.apt,formattedAddressLine:e.streetAddress.formattedAddressLine}})}function $t(e){return e&&tt({formatted:e.formattedAddress,location:e.geocode,addressLine1:e.addressLine,addressLine2:e.addressLine2,streetAddress:e.streetAddress&&{name:e.streetAddress.name,number:e.streetAddress.number,apt:e.streetAddress.apt,formattedAddressLine:e.streetAddress.formattedAddressLine},hint:e.hint,city:e.city,subdivision:e.subdivision,country:e.country,postalCode:e.postalCode,countryFullname:e.countryFullname,subdivisionFullname:e.subdivisionFullname})}function en(e){return e&&e.join(`,`)}var tn=`x-wix-linguist`,nn=`00000000-0000-0000-0000-000000000000`,rn=`false`,an=()=>{let e=cn(`language`),t=cn(`locale`);if(e)return{[tn]:[e,t||e,rn,nn].join(`|`)}};function on(){let e=null,t=null;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var sn=()=>(typeof window<`u`?window.commonConfig:void 0)??globalThis.commonConfig,cn=e=>sn()?.[e],ln=({createHost:e})=>({__type:`host`,create:e=>({}),host:t=>{let{applicationId:n,componentId:r}=t??{},i=typeof window<`u`?window.wixEmbedsAPI:void 0,a=e(t),o=dn();return{...a,apiBaseUrl:o,getMonitoringClient:i?.getMonitoringClientFunction?.(n,r),essentials:{language:cn(`language`),locale:cn(`locale`),get passThroughHeaders(){return an()}}}},auth:e=>{let t=typeof window<`u`?window.wixEmbedsAPI:void 0;!e&&un()&&(e=t?.getAccessTokenFunction?.());let n=!1,{resolve:r,promise:i}=on();return{getAuthHeaders:async()=>{if(!e&&n&&(e=await i),!e)throw Error(`Failed to resolve auth token`);return{headers:{Authorization:await e()}}},getAccessTokenInjector:()=>(n=!0,e=>{r(e)})}}});function un(){return typeof document<`u`&&document.currentScript?.tagName===`SCRIPT`}function dn(){let e=(typeof window<`u`?window.wixEmbedsAPI:void 0)?.getExternalBaseUrl?.();if(!e)return;let t=new URL(e);return t?.pathname&&t.pathname!==`/`?`${t.hostname}${t.pathname}`:t.hostname}var fn=({clientSdk:e,applicationId:t})=>({invoke:async({namespace:n,method:r,args:i})=>{if(!e)throw Error(`Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction`);return e.invoke({namespace:n,method:r,args:i,applicationId:t,accessToken:`accessToken`})},getAccessToken:()=>{throw Error(`Not implemented`)},observeState:()=>({disconnect:()=>{}})}),pn=ln({createHost:function(e){let t=(typeof $wixContext<`u`?$wixContext.clientSdk:void 0)??e?.clientSdk??(typeof window<`u`?window?.clientSdk:void 0),{applicationId:n}=e||{};if(!n)throw Error(`"createHost" was called without a required field "applicationId"`);return{channel:fn({clientSdk:t,applicationId:n}),close:()=>{}}}}),mn=(e,t)=>{let n=pn.host({applicationId:e,componentId:t}),r=pn.auth();return De({auth:r,host:n}).enableContext(`module`),r.getAccessTokenInjector()},hn=e=>mn(`140603ad-af8d-84a5-2c80-a0f60cb47351`,e);function gn(e){return e}var _n=gn(`@wix/site-service-url`),vn=e=>{if(e.status===`fulfilled`)return e.value;throw e.status===`rejected`?e.reason:(e.status===`pending`||(e.status=`pending`,e.then(t=>{e.status=`fulfilled`,e.value=t},t=>{e.status=`rejected`,e.reason=t})),e)},yn=gn(`@wix/site-service-locale`),bn=()=>{let{language:e}=n(yn);return e},xn=()=>{let{locale:e,language:t}=n(yn);return e||t};function Sn(e){let{host:t,pathname:n}=new URL(e);return{base:t,path:n}}function Cn(e){if(e)return[`http://`,`https://`].some(t=>e.base?.startsWith(t))?`${e.base}${e.path}`:`http://${e.base}${e.path}`}function wn(e){return Object.keys(e).length===1&&`$and`in e&&Array.isArray(e.$and)}function Tn(e){return Object.keys(e).length===1&&`$or`in e&&Array.isArray(e.$or)}function En(e){return Object.keys(e).length===1&&`$not`in e&&typeof e.$not==`object`}function Dn(e,t){return e===void 0||Object.keys(e).length===0?t:t===void 0||Object.keys(t).length===0?e:{$and:[...wn(e)?e.$and:[e],...wn(t)?t.$and:[t]]}}function On(e,t){return e===void 0||Object.keys(e).length===0?t:t===void 0||Object.keys(t).length===0?e:{$or:[...Tn(e)?e.$or:[e],...Tn(t)?t.$or:[t]]}}function kn(e){if(e!==void 0&&Object.keys(e).length!==0)return En(e)?e.$not:{$not:e}}var An=class{_items;_fetchNextPage;_fetchPrevPage;_originQuery;_limit;constructor({items:e,originQuery:t,fetchNextPage:n,fetchPrevPage:r,limit:i}){this._items=e,this._fetchNextPage=n,this._fetchPrevPage=r,this._originQuery=t,this._limit=i}get items(){return this._items}get length(){return this._items.length}get pageSize(){return this._limit}get query(){return this._originQuery}async next(){if(!this.hasNext())throw Error(`No next page to fetch`);return await this._fetchNextPage()}async prev(){if(!this.hasPrev())throw Error(`No previous page to fetch`);return await this._fetchPrevPage()}},jn=class extends An{_nextCursor;_prevCursor;cursors;constructor({items:e,originQuery:t,fetchNextPage:n,fetchPrevPage:r,limit:i,nextCursor:a,prevCursor:o}){super({items:e,originQuery:t,fetchNextPage:n,fetchPrevPage:r,limit:i}),this._nextCursor=a,this._prevCursor=o,this.cursors={next:a,prev:o}}hasNext(){return!!this._nextCursor}hasPrev(){return!!this._prevCursor}},Mn=class extends An{_totalCount;_offset;_tooManyToCount;constructor({items:e,fetchNextPage:t,fetchPrevPage:n,offset:r,originQuery:i,limit:a,totalCount:o,tooManyToCount:s}){super({items:e,fetchNextPage:t,fetchPrevPage:n,originQuery:i,limit:a}),this._totalCount=o,this._offset=r,this._tooManyToCount=s}get currentPage(){return this._limit===0?void 0:Math.floor(this._offset/this._limit)}get totalPages(){return this._tooManyToCount||this._limit===0?void 0:Math.ceil(this._totalCount/this._limit)}get totalCount(){return this._tooManyToCount?void 0:this._totalCount}hasNext(){return this._limit!==0&&this.currentPage!==void 0&&this.totalPages!==void 0&&this.currentPage<this.totalPages-1}hasPrev(){return!!(this._limit!==0&&this.currentPage&&this.currentPage>0)}};function Nn(e){let t=n=>({query:n,async find(){try{let r=e.requestTransformer(e.pagingMethod===`CURSOR`&&n.cursorPaging.cursor?{cursorPaging:n.cursorPaging}:n),i=await e.func(r),{[Me]:a,[Ne]:o}=e.responseTransformer(i);if(e.pagingMethod===`OFFSET`){let e=n;return new Mn({items:a??[],fetchNextPage:()=>t({...e,paging:{offset:e.paging.offset+e.paging.limit,limit:e.paging.limit}}).find(),fetchPrevPage:()=>t({...n,paging:{offset:Math.max(e.paging.offset-e.paging.limit,0),limit:e.paging.limit}}).find(),offset:e.paging.offset,limit:e.paging.limit,totalCount:o?.total,tooManyToCount:o?.tooManyToCount,originQuery:this})}let s=n.cursorPaging;return new jn({items:a??[],limit:s.limit,originQuery:this,fetchNextPage:()=>t({...n,cursorPaging:{cursor:o?.cursors?.next??void 0,limit:s.limit}}).find(),fetchPrevPage:()=>t({...n,cursorPaging:{cursor:o?.cursors?.prev??void 0,limit:s.limit}}).find(),prevCursor:o?.cursors?.prev??void 0,nextCursor:o?.cursors?.next??void 0})}catch(t){throw e.errorTransformer(t)}},skipTo(e){return t({...n,cursorPaging:{cursor:e,limit:n.cursorPaging.limit}})},eq(r,i){let a=i===void 0?null:i,o={[Pn(e.transformationPaths,r)]:a};return t({...n,filter:Dn(n.filter,o)})},ne(r,i){let a=i===void 0?null:i,o={[Pn(e.transformationPaths,r)]:{$ne:a}};return t({...n,filter:Dn(n.filter,o)})},ge(r,i){let a={[Pn(e.transformationPaths,r)]:{$gte:i}};return t({...n,filter:Dn(n.filter,a)})},gt(r,i){let a={[Pn(e.transformationPaths,r)]:{$gt:i}};return t({...n,filter:Dn(n.filter,a)})},le(r,i){let a={[Pn(e.transformationPaths,r)]:{$lte:i}};return t({...n,filter:Dn(n.filter,a)})},lt(r,i){let a={[Pn(e.transformationPaths,r)]:{$lt:i}};return t({...n,filter:Dn(n.filter,a)})},isNotEmpty(e){return this.ne(e,null)},isEmpty(e){return this.eq(e,null)},startsWith(r,i){let a={[Pn(e.transformationPaths,r)]:{$startsWith:i}};return t({...n,filter:Dn(n.filter,a)})},endsWith(r,i){let a={[Pn(e.transformationPaths,r)]:{$endsWith:i}};return t({...n,filter:Dn(n.filter,a)})},contains(r,i){let a={[Pn(e.transformationPaths,r)]:{$contains:i}};return t({...n,filter:Dn(n.filter,a)})},hasSome(r,...i){let a={[Pn(e.transformationPaths,r)]:{$hasSome:Array.isArray(i[0])?i[0]:i}};return t({...n,filter:Dn(n.filter,a)})},hasAll(r,...i){let a={[Pn(e.transformationPaths,r)]:{$hasAll:Array.isArray(i[0])?i[0]:i}};return t({...n,filter:Dn(n.filter,a)})},between(e,t,n){return this.ge(e,t).lt(e,n)},in(r,i){let a={[Pn(e.transformationPaths,r)]:{$in:i}};return t({...n,filter:Dn(n.filter,a)})},exists(r,i=!0){let a={[Pn(e.transformationPaths,r)]:{$exists:i}};return t({...n,filter:Dn(n.filter,a)})},or(e){return t({...n,filter:On(n.filter,e.query.filter)})},and(e){return t({...n,filter:Dn(n.filter,e.query.filter)})},not(e){return t({...n,filter:kn(e.query.filter)})},ascending(...r){return t({...n,sort:[...n.sort??[],...r.map(t=>({fieldName:Pn(e.transformationPaths,t),order:`ASC`}))]})},descending(...r){return t({...n,sort:[...n.sort??[],...r.map(t=>({fieldName:Pn(e.transformationPaths,t),order:`DESC`}))]})},skip(e){return t({...n,paging:{offset:e,limit:`limit`in n.paging?n.paging.limit:50}})},limit(r){if(e.pagingMethod===`CURSOR`){let e=n;return t({...n,cursorPaging:{limit:r,cursor:`cursor`in e.cursorPaging?e.cursorPaging.cursor:void 0}})}let i=n;return t({...n,paging:{limit:r,offset:`offset`in i.paging?i.paging.offset:0}})}});return t({filter:{},...e.pagingMethod===`OFFSET`?{paging:{offset:0,limit:50}}:{cursorPaging:{limit:50}}})}function Pn(e,t){let n=Object.entries(e).find(([e])=>e===t||t.startsWith(`${e}.`))?.[0];return n?t.replace(n,e[n]):Fe(t,{...e,...Pe})}function Fn(e,t,n={}){let r=(r,i)=>Fn(e,t,{...n,[r]:i}),i=()=>Object.keys(n).length===0?{}:{[Ie(e,t)]:n};return{get filter(){return i()},eq:e=>r(`$eq`,e),ne:e=>r(`$ne`,e),gt:e=>r(`$gt`,e),gte:e=>r(`$gte`,e),lt:e=>r(`$lt`,e),lte:e=>r(`$lte`,e),startsWith:e=>r(`$startsWith`,e),endsWith:e=>r(`$endsWith`,e),contains:e=>r(`$contains`,e),in:e=>r(`$in`,e),nin:e=>r(`$nin`,e),hasSome:e=>r(`$hasSome`,e),hasAll:e=>r(`$hasAll`,e),exists:(e=!0)=>r(`$exists`,e),isEmpty:(e=!0)=>r(`$isEmpty`,e),isNotEmpty:()=>r(`$ne`,null)}}function In(e){return Object.assign(t=>Fn(t,e),{and:(...e)=>({filter:{$and:e.map(e=>e.filter)}}),or:(...e)=>({filter:{$or:e.map(e=>e.filter)}}),not:e=>({filter:{$not:e.filter}})})}function Ln(e){return(t=>({asc:()=>({sort:{fieldName:Ie(t,e),order:`ASC`}}),desc:()=>({sort:{fieldName:Ie(t,e),order:`DESC`}})}))}function Rn(e){return()=>{let t={},n={withFilter(e){return t={...t,filter:e.filter},n},withFields(...r){return t={...t,fields:r.map(t=>Ie(t,e))},n},withSorting(...e){return t={...t,sort:e.map(e=>e.sort)},n},withPaging(e){return t={...t,paging:e},n},build(){return t}};return n}}function zn(e){return{QueryBuilder:Rn(e),Filter:In(e),Sort:Ln(e)}}var Bn=`filter`,Vn=`sort`,Hn=`cursorPaging`,Un=`paging`,Wn=[Bn,Vn,Hn],Gn=[Bn,Vn,Un];function Kn(e,t){return!e||typeof e!=`object`?!1:t.some(t=>e.hasOwnProperty(t))}function qn(e){return Kn(e,Wn)}function Jn(e){return Kn(e,Gn)}function Yn(e){let{hasOptionsParameter:t}=e;return function(...n){return t?Zn(n,e):Xn(n,e)}}function Xn(e,t){return e.length===0?t.builderQueryFunction():t.typedQueryFunction(e[0])}function Zn(e,t){switch(e.length){case 0:return t.builderQueryFunction();case 1:return qn(e[0])||Jn(e[0])?t.typedQueryFunction(e[0]):t.builderQueryFunction(e[0]);default:return t.typedQueryFunction(e[0],e[1])}}function Qn(e){if(!e)return;let t=et(e,`image`),{protocol:n,hash:r,pathname:i}=new URL(t),a=new URLSearchParams(r.replace(`#`,``)),o=a.get(`originHeight`),s=a.get(`originWidth`),[c,l]=i.replace(`image://v1/`,``).split(`/`),u=decodeURIComponent(l);if(n===`wix:`){let t={id:c,height:Number(o),width:Number(s)};return u?{...t,altText:u,filename:u,url:e}:t}return{url:e}}function $n(e){if(!e)return;let t=``;return(e.filename||e.altText)&&(t=`/${encodeURIComponent(e.filename||e.altText)}`),e.id?`wix:image://v1/${e.id}${t}#originWidth=${e.width}&originHeight=${e.height}`:e.url}var er=f({Action:()=>Kr,ChannelType:()=>Vr,FeeName:()=>Ur,FeeType:()=>Wr,OrderFieldset:()=>Jr,OrderStatus:()=>Br,OrderTag:()=>Yr,OrderType:()=>qr,ReservationStatus:()=>Zr,ScheduledActionEnumAction:()=>Gr,State:()=>Qr,SubdivisionType:()=>zr,TaxType:()=>Hr,TicketDefinitionFieldset:()=>ti,TicketSaleStatus:()=>$r,Type:()=>ei,WebhookIdentityType:()=>Xr,bulkUpdateOrders:()=>ta,cancelReservation:()=>ua,captureAuthorizedPayment:()=>ia,checkout:()=>fa,confirmOrder:()=>na,createReservation:()=>la,getCheckoutOptions:()=>oa,getInvoice:()=>da,getOrder:()=>$i,getSummary:()=>ra,listAvailableTickets:()=>sa,listOrders:()=>Qi,onOrderConfirmed:()=>_a,onOrderDeleted:()=>ha,onOrderInitiated:()=>va,onOrderReservationCreated:()=>ya,onOrderReservationUpdated:()=>ba,onOrderUpdated:()=>ga,posCheckout:()=>ma,queryAvailableTickets:()=>ca,updateCheckout:()=>pa,updateOrder:()=>ea,voidAuthorizedPayment:()=>aa}),tr=[{path:`orders.created`},{path:`orders.updated`},{path:`orders.checkoutForm.inputValues.dateTime`},{path:`orders.tickets.checkIn.created`},{path:`orders.tickets.checkIn.checkInCanceledDate`},{path:`orders.tickets.guestDetails.form.inputValues.dateTime`},{path:`orders.paymentDetails.transaction.scheduledActionExecutionDate`}],nr=[{path:`orders.checkoutForm.inputValues.number`},{path:`orders.checkoutForm.inputValues.address.address.geocode.latitude`},{path:`orders.checkoutForm.inputValues.address.address.geocode.longitude`},{path:`orders.tickets.guestDetails.form.inputValues.number`},{path:`orders.tickets.guestDetails.form.inputValues.address.address.geocode.latitude`},{path:`orders.tickets.guestDetails.form.inputValues.address.address.geocode.longitude`}],rr=[{path:`order.created`},{path:`order.updated`},{path:`order.checkoutForm.inputValues.dateTime`},{path:`order.tickets.checkIn.created`},{path:`order.tickets.checkIn.checkInCanceledDate`},{path:`order.tickets.guestDetails.form.inputValues.dateTime`},{path:`order.paymentDetails.transaction.scheduledActionExecutionDate`}],ir=[{path:`order.checkoutForm.inputValues.number`},{path:`order.checkoutForm.inputValues.address.address.geocode.latitude`},{path:`order.checkoutForm.inputValues.address.address.geocode.longitude`},{path:`order.tickets.guestDetails.form.inputValues.number`},{path:`order.tickets.guestDetails.form.inputValues.address.address.geocode.latitude`},{path:`order.tickets.guestDetails.form.inputValues.address.address.geocode.longitude`}],ar=[{path:`fields`}],or=[{path:`expires`},{path:`checkoutForm.inputValues.dateTime`}],sr=[{path:`checkoutForm.inputValues.number`},{path:`checkoutForm.inputValues.address.address.geocode.latitude`},{path:`checkoutForm.inputValues.address.address.geocode.longitude`}],cr=[{path:`overrideRequestTime`}],lr=[{path:`definitions.salePeriod.startDate`},{path:`definitions.salePeriod.endDate`}],ur=[{path:`expires`},{path:`reservations.ticket.salePeriod.startDate`},{path:`reservations.ticket.salePeriod.endDate`}],dr=[{path:`overrideRequestTime`},{path:`guests.form.inputValues.dateTime`}],fr=[{path:`guests.form.inputValues.number`},{path:`guests.form.inputValues.address.address.geocode.latitude`},{path:`guests.form.inputValues.address.address.geocode.longitude`}],pr=[{path:`expires`},{path:`order.created`},{path:`order.updated`},{path:`order.checkoutForm.inputValues.dateTime`},{path:`order.tickets.checkIn.created`},{path:`order.tickets.checkIn.checkInCanceledDate`},{path:`order.tickets.guestDetails.form.inputValues.dateTime`},{path:`order.paymentDetails.transaction.scheduledActionExecutionDate`},{path:`reservations.ticket.salePeriod.startDate`},{path:`reservations.ticket.salePeriod.endDate`}],mr=[{path:`guests.form.inputValues.dateTime`}];function hr(e){return Ct(Object.assign(e,{domainToMappings:{"www.wixapis.com":[{srcPath:`/events/v1/tickets`,destPath:`/v1/tickets`},{srcPath:`/events/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/events/v2/ticket-definitions`,destPath:`/v2/ticket-definitions`},{srcPath:`/events/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/events/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/events/v1/pos-checkout`,destPath:`/v1/pos-checkout`}],"manage._base_domain_":[{srcPath:`/_api/wix-events-web/v1/tickets`,destPath:`/v1/tickets`},{srcPath:`/events/v1/tickets`,destPath:`/v1/tickets`},{srcPath:`/events/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/events/v2/ticket-definitions`,destPath:`/v2/ticket-definitions`},{srcPath:`/events/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/events/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/events/v1/pos-checkout`,destPath:`/v1/pos-checkout`},{srcPath:`/_api/events/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/_api/events/v2/ticket-definitions`,destPath:`/v2/ticket-definitions`},{srcPath:`/_api/events/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/_api/events/v1/pos-checkout`,destPath:`/v1/pos-checkout`},{srcPath:`/_api/events/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/_api/events-ticketing-v1-proxy`,destPath:`/api`}],_:[{srcPath:`/_api/events/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/_api/events/v2/ticket-definition`,destPath:`/v2/ticket-definitions`},{srcPath:`/_api/events/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/_api/events/v1/pos-checkout`,destPath:`/v1/pos-checkout`},{srcPath:`/_api/events/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/_api/events-ticketing-v1-proxy/v1`,destPath:`/v1`},{srcPath:`/_api/events-ticketing-v1-proxy/v2`,destPath:`/v2`},{srcPath:`/_api/wix-events-web/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/_api/wix-events-web/v1/pos-checkout`,destPath:`/v1/pos-checkout`},{srcPath:`/_api/wix-events-web/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/_api/wix-events-web/v1/tickets`,destPath:`/v1/tickets`},{srcPath:`/_api/wix-events-web/v1/tickets/available`,destPath:`/v1/tickets/available`}],"editor._base_domain_":[{srcPath:`/_api/events/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/_api/events/v2/ticket-definitions`,destPath:`/v2/ticket-definitions`},{srcPath:`/_api/events/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/_api/events/v1/pos-checkout`,destPath:`/v1/pos-checkout`},{srcPath:`/_api/events/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/_api/wix-events-web/v1/tickets`,destPath:`/v1/tickets`},{srcPath:`/_api/wix-events-web/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/_api/wix-events-web/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/_api/wix-events-web/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/_api/wix-events-web/v1/pos-checkout`,destPath:`/v1/pos-checkout`}],"blocks._base_domain_":[{srcPath:`/_api/events/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/_api/events/v2/ticket-definitions`,destPath:`/v2/ticket-definitions`},{srcPath:`/_api/events/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/_api/events/v1/pos-checkout`,destPath:`/v1/pos-checkout`},{srcPath:`/_api/events/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/_api/wix-events-web/v1/tickets`,destPath:`/v1/tickets`},{srcPath:`/_api/wix-events-web/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/_api/wix-events-web/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/_api/wix-events-web/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/_api/wix-events-web/v1/pos-checkout`,destPath:`/v1/pos-checkout`}],"create.editorx":[{srcPath:`/_api/events/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/_api/events/v2/ticket-definitions`,destPath:`/v2/ticket-definitions`},{srcPath:`/_api/events/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/_api/events/v1/pos-checkout`,destPath:`/v1/pos-checkout`},{srcPath:`/_api/events/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/_api/wix-events-web/v1/tickets`,destPath:`/v1/tickets`},{srcPath:`/_api/wix-events-web/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/_api/wix-events-web/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/_api/wix-events-web/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/_api/wix-events-web/v1/pos-checkout`,destPath:`/v1/pos-checkout`}],"*.dev.wix-code.com":[{srcPath:`/_api/wix-events-web/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/_api/wix-events-web/v1/pos-checkout`,destPath:`/v1/pos-checkout`},{srcPath:`/_api/wix-events-web/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/_api/wix-events-web/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/_api/wix-events-web/v1/tickets`,destPath:`/v1/tickets`}],"*.pub.wix-code.com":[{srcPath:`/_api/wix-events-web/v1/tickets`,destPath:`/v1/tickets`},{srcPath:`/_api/wix-events-web/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/_api/wix-events-web/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/_api/wix-events-web/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/_api/wix-events-web/v1/pos-checkout`,destPath:`/v1/pos-checkout`}],"api._base_domain_":[{srcPath:`/events/v1/tickets`,destPath:`/v1/tickets`},{srcPath:`/events/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/events/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/events/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/events/v1/pos-checkout`,destPath:`/v1/pos-checkout`}],"editor-flow.wixapps.net":[{srcPath:`/_api/wix-events-web/v1/tickets`,destPath:`/v1/tickets`},{srcPath:`/_api/wix-events-web/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/_api/wix-events-web/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/_api/wix-events-web/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/_api/wix-events-web/v1/pos-checkout`,destPath:`/v1/pos-checkout`}],"editor.wixapps.net":[{srcPath:`/_api/wix-events-web/v1/tickets`,destPath:`/v1/tickets`},{srcPath:`/_api/wix-events-web/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/_api/wix-events-web/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/_api/wix-events-web/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/_api/wix-events-web/v1/pos-checkout`,destPath:`/v1/pos-checkout`}],"www._base_domain_":[{srcPath:`/_api/wix-events-web/v1/tickets`,destPath:`/v1/tickets`},{srcPath:`/_api/wix-events-web/v1/checkout`,destPath:`/v1/checkout`},{srcPath:`/_api/wix-events-web/v1/ticket-definitions`,destPath:`/v1/ticket-definitions`},{srcPath:`/_api/wix-events-web/v1/tickets/available`,destPath:`/v1/tickets/available`},{srcPath:`/_api/wix-events-web/v1/pos-checkout`,destPath:`/v1/pos-checkout`},{srcPath:`/_api/events/v1/checkout`,destPath:`/v1/checkout`}]}}))}function gr(e){return Ct(Object.assign(e,{domainToMappings:{"events._base_domain_":[{srcPath:``,destPath:``},{srcPath:`/_api/wix-events-web`,destPath:`/api`}],"www.wixevents.com":[{srcPath:`/_api/wix-events-web`,destPath:`/api`},{srcPath:`/api`,destPath:`/api`},{srcPath:`/viewEvent`,destPath:`/viewEvent`},{srcPath:`/viewRsvpDashboard`,destPath:`/viewRsvpDashboard`},{srcPath:`/viewOrderDashboard`,destPath:`/viewOrderDashboard`},{srcPath:`/viewSummarySubscription`,destPath:`/viewSummarySubscription`},{srcPath:`/v2`,destPath:`/v2`},{srcPath:`/export`,destPath:`/export`},{srcPath:`/tickets`,destPath:`/tickets`},{srcPath:`/payment-redirect`,destPath:`/payment-redirect`},{srcPath:`/admin`,destPath:`/admin`},{srcPath:`/ticket`,destPath:`/ticket`},{srcPath:`/media`,destPath:`/media`},{srcPath:`/wix-events-web/media`,destPath:`/media`}],"api._api_base_domain_":[{srcPath:`/wix-events-web`,destPath:``}],"events.wixapps.net":[{srcPath:`/_api/wix-events-web`,destPath:`/api`},{srcPath:`/events`,destPath:``}],"www._base_domain_":[{srcPath:`/_api/wix-events-web`,destPath:`/api`},{srcPath:`/_api/wix-events-web/v2`,destPath:`/v2`},{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`}],"apps._base_domain_":[{srcPath:`/_api/wix-events-web`,destPath:`/api`},{srcPath:`/events`,destPath:``}],"manage._base_domain_":[{srcPath:`/_api/wix-events-web`,destPath:`/api`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v2/events`,destPath:`/v2/events`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/events`,destPath:`/v1/bulk/events`},{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/events/v1/events`,destPath:`/v1/events`},{srcPath:`/events/v1/categories`,destPath:`/v1/categories`},{srcPath:`/events/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/events/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/events/v1/bulk/events`,destPath:`/v1/bulk/events`},{srcPath:`/events/v1/reports`,destPath:`/v1/reports`},{srcPath:`/events/v1/orders`,destPath:`/v1/orders`},{srcPath:`/events/v1/web`,destPath:`/v1/web`},{srcPath:`/events/v2/tickets`,destPath:`/v2/tickets`},{srcPath:`/events/v2/events`,destPath:`/v2/events`}],"www.wixapis.com":[{srcPath:`/events/v1/events`,destPath:`/v1/events`},{srcPath:`/events/v1/categories`,destPath:`/v1/categories`},{srcPath:`/events/v1/orders`,destPath:`/v1/orders`},{srcPath:`/events/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/events/v2/events`,destPath:`/v2/events`},{srcPath:`/events/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/events/v1/bulk/events`,destPath:`/v1/bulk/events`}],"api._base_domain_":[{srcPath:`/events/v2`,destPath:`/v2`},{srcPath:`/events/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/events/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/events/v1/categories`,destPath:`/v1/categories`},{srcPath:`/events/v1/events`,destPath:`/v1/events`},{srcPath:`/events/v1/orders`,destPath:`/v1/orders`}],_:[{srcPath:`/_api/wix-events-web/v2`,destPath:`/v2`},{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`},{srcPath:`/events/v1/bulk/events`,destPath:`/v1/bulk/events`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`}],"editor.wixapps.net":[{srcPath:`/events/v2/events`,destPath:`/v2/events`},{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`}],"*.dev.wix-code.com":[{srcPath:`/_api/wix-events-web/v2`,destPath:`/v2`},{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`},{srcPath:`/events/v1/bulk/events`,destPath:`/v1/bulk/events`}],"*.pub.wix-code.com":[{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`}],"editor-flow.wixapps.net":[{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`}],"editor._base_domain_":[{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`}],"blocks._base_domain_":[{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`}],"create.editorx":[{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`}]}}))}var _r=`@wix/auto_sdk_events_orders`;function vr(e){function t({host:t}){return{entityFqdn:`wix.events.v1.order`,method:`GET`,methodFqn:`wix.events.ticketing.OrderManagement.ListOrders`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:gr({protoPath:`/v1/orders`,data:e,host:t}),params:St(e),transformResponse:e=>G(e,[{transformFn:W,paths:tr},{transformFn:Zt,paths:nr}])}}return t}function yr(e){function t({host:t}){return{entityFqdn:`wix.events.v1.order`,method:`GET`,methodFqn:`wix.events.ticketing.OrderManagement.GetOrder`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:gr({protoPath:`/v1/events/{eventId}/orders/{orderNumber}`,data:e,host:t}),params:St(e),transformResponse:e=>G(e,[{transformFn:W,paths:rr},{transformFn:Zt,paths:ir}])}}return t}function br(e){function t({host:t}){let n=G(e,[{transformFn:en,paths:ar},{transformFn:Ve,paths:or},{transformFn:Xt,paths:sr}]);return{entityFqdn:`wix.events.v1.order`,method:`PATCH`,methodFqn:`wix.events.ticketing.OrderManagement.UpdateOrder`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:gr({protoPath:`/v1/events/{eventId}/orders/{orderNumber}`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:rr},{transformFn:Zt,paths:ir}])}}return t}function xr(e){function t({host:t}){let n=G(e,[{transformFn:en,paths:ar}]);return{entityFqdn:`wix.events.v1.order`,method:`PATCH`,methodFqn:`wix.events.ticketing.OrderManagement.BulkUpdateOrders`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:gr({protoPath:`/v1/events/{eventId}/orders`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:tr},{transformFn:Zt,paths:nr}])}}return t}function Sr(e){function t({host:t}){return{entityFqdn:`wix.events.v1.order`,method:`POST`,methodFqn:`wix.events.ticketing.OrderManagement.ConfirmOrder`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:gr({protoPath:`/v1/events/{eventId}/orders/confirm`,data:e,host:t}),data:e,transformResponse:e=>G(e,[{transformFn:W,paths:tr},{transformFn:Zt,paths:nr}])}}return t}function Cr(e){function t({host:t}){return{entityFqdn:`wix.events.v1.order`,method:`GET`,methodFqn:`wix.events.ticketing.OrderManagement.GetSummary`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:gr({protoPath:`/v1/orders/summary`,data:e,host:t}),params:St(e)}}return t}function wr(e){function t({host:t}){return{entityFqdn:`wix.events.v1.order`,method:`POST`,methodFqn:`wix.events.ticketing.OrderManagement.CaptureAuthorizedPayment`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:gr({protoPath:`/v1/events/orders/{orderNumber}/capture`,data:e,host:t}),data:e}}return t}function Tr(e){function t({host:t}){return{entityFqdn:`wix.events.v1.order`,method:`POST`,methodFqn:`wix.events.ticketing.OrderManagement.VoidAuthorizedPayment`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:gr({protoPath:`/v1/events/orders/{orderNumber}/void`,data:e,host:t}),data:e}}return t}function Er(e){function t({host:t}){return{entityFqdn:`wix.events.v1.order`,method:`GET`,methodFqn:`wix.events.ticketing.CheckoutService.GetCheckoutOptions`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:hr({protoPath:`/v1/checkout/options`,data:e,host:t}),params:St(e)}}return t}function Dr(e){function t({host:t}){let n=G(e,[{transformFn:Ve,paths:cr}]);return{entityFqdn:`wix.events.v1.order`,method:`GET`,methodFqn:`wix.events.ticketing.CheckoutService.ListAvailableTickets`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:hr({protoPath:`/v1/checkout/available-tickets`,data:n,host:t}),params:St(n),transformResponse:e=>G(e,[{transformFn:W,paths:lr}])}}return t}function Or(e){function t({host:t}){return{entityFqdn:`wix.events.v1.order`,method:`POST`,methodFqn:`wix.events.ticketing.CheckoutService.QueryAvailableTickets`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:hr({protoPath:`/v1/checkout/available-tickets/query`,data:e,host:t}),data:e,transformResponse:e=>G(e,[{transformFn:W,paths:lr}])}}return t}function kr(e){function t({host:t}){let n=G(e,[{transformFn:Ve,paths:cr}]);return{entityFqdn:`wix.events.v1.order`,method:`POST`,methodFqn:`wix.events.ticketing.CheckoutService.CreateReservation`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:hr({protoPath:`/v1/checkout/reservations`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:ur}])}}return t}function Ar(e){function t({host:t}){return{entityFqdn:`wix.events.v1.order`,method:`DELETE`,methodFqn:`wix.events.ticketing.CheckoutService.CancelReservation`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:hr({protoPath:`/v1/checkout/reservations/{id}`,data:e,host:t}),params:St(e)}}return t}function jr(e){function t({host:t}){return{entityFqdn:`wix.events.v1.order`,method:`POST`,methodFqn:`wix.events.ticketing.CheckoutService.GetInvoice`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:hr({protoPath:`/v1/checkout/invoices/{reservationId}`,data:e,host:t}),data:e,transformResponse:e=>G(e,[{transformFn:W,paths:ur}])}}return t}function Mr(e){function t({host:t}){let n=G(e,[{transformFn:Ve,paths:dr},{transformFn:Xt,paths:fr}]);return{entityFqdn:`wix.events.v1.order`,method:`POST`,methodFqn:`wix.events.ticketing.CheckoutService.Checkout`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:hr({protoPath:`/v1/checkout`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:pr},{transformFn:Zt,paths:ir}])}}return t}function Nr(e){function t({host:t}){let n=G(e,[{transformFn:Xt,paths:fr},{transformFn:Ve,paths:mr}]);return{entityFqdn:`wix.events.v1.order`,method:`PATCH`,methodFqn:`wix.events.ticketing.CheckoutService.UpdateCheckout`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:hr({protoPath:`/v1/checkout/{orderNumber}`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:rr},{transformFn:Zt,paths:ir}])}}return t}function Pr(e){function t({host:t}){return{entityFqdn:`wix.events.v1.order`,method:`POST`,methodFqn:`wix.events.ticketing.CheckoutService.PosCheckout`,packageName:_r,migrationOptions:{optInTransformResponse:!0},url:hr({protoPath:`/v1/pos-checkout`,data:e,host:t}),data:e,transformResponse:e=>G(e,[{transformFn:W,paths:pr},{transformFn:Zt,paths:ir}])}}return t}var Fr=[{path:`orders.checkoutForm.inputValues.address.address`},{path:`orders.tickets.guestDetails.form.inputValues.address.address`}],Ir=[{path:`order.checkoutForm.inputValues.address.address`},{path:`order.tickets.guestDetails.form.inputValues.address.address`}],Lr=[{path:`checkoutForm.inputValues.address.address`}],Rr=[{path:`guests.form.inputValues.address.address`}],zr=(e=>(e.UNKNOWN_SUBDIVISION_TYPE=`UNKNOWN_SUBDIVISION_TYPE`,e.ADMINISTRATIVE_AREA_LEVEL_1=`ADMINISTRATIVE_AREA_LEVEL_1`,e.ADMINISTRATIVE_AREA_LEVEL_2=`ADMINISTRATIVE_AREA_LEVEL_2`,e.ADMINISTRATIVE_AREA_LEVEL_3=`ADMINISTRATIVE_AREA_LEVEL_3`,e.ADMINISTRATIVE_AREA_LEVEL_4=`ADMINISTRATIVE_AREA_LEVEL_4`,e.ADMINISTRATIVE_AREA_LEVEL_5=`ADMINISTRATIVE_AREA_LEVEL_5`,e.COUNTRY=`COUNTRY`,e))(zr||{}),Br=(e=>(e.NA_ORDER_STATUS=`NA_ORDER_STATUS`,e.FREE=`FREE`,e.PENDING=`PENDING`,e.PAID=`PAID`,e.OFFLINE_PENDING=`OFFLINE_PENDING`,e.INITIATED=`INITIATED`,e.CANCELED=`CANCELED`,e.DECLINED=`DECLINED`,e.AUTHORIZED=`AUTHORIZED`,e.VOIDED=`VOIDED`,e.PARTIALLY_PAID=`PARTIALLY_PAID`,e))(Br||{}),Vr=(e=>(e.ONLINE=`ONLINE`,e.OFFLINE_POS=`OFFLINE_POS`,e))(Vr||{}),Hr=(e=>(e.INCLUDED=`INCLUDED`,e.ADDED=`ADDED`,e.ADDED_AT_CHECKOUT=`ADDED_AT_CHECKOUT`,e))(Hr||{}),Ur=(e=>(e.WIX_FEE=`WIX_FEE`,e))(Ur||{}),Wr=(e=>(e.FEE_ADDED=`FEE_ADDED`,e.FEE_INCLUDED=`FEE_INCLUDED`,e.FEE_ADDED_AT_CHECKOUT=`FEE_ADDED_AT_CHECKOUT`,e))(Wr||{}),Gr=(e=>(e.UNKNOWN_ACTION=`UNKNOWN_ACTION`,e.CAPTURE=`CAPTURE`,e.VOID=`VOID`,e))(Gr||{}),Kr=(e=>(e.ARCHIVE=`ARCHIVE`,e.UNARCHIVE=`UNARCHIVE`,e.CONFIRM=`CONFIRM`,e.CAPTURE=`CAPTURE`,e.VOID=`VOID`,e))(Kr||{}),qr=(e=>(e.UNASSIGNED_TICKETS=`UNASSIGNED_TICKETS`,e.ASSIGNED_TICKETS=`ASSIGNED_TICKETS`,e))(qr||{}),Jr=(e=>(e.TICKETS=`TICKETS`,e.DETAILS=`DETAILS`,e.FORM=`FORM`,e.INVOICE=`INVOICE`,e))(Jr||{}),Yr=(e=>(e.CONFIRMED=`CONFIRMED`,e.UNCONFIRMED=`UNCONFIRMED`,e.MEMBER=`MEMBER`,e.ARCHIVED=`ARCHIVED`,e.NON_ARCHIVED=`NON_ARCHIVED`,e.FULLY_CHECKED_IN=`FULLY_CHECKED_IN`,e.NOT_FULLY_CHECKED_IN=`NOT_FULLY_CHECKED_IN`,e))(Yr||{}),Xr=(e=>(e.UNKNOWN=`UNKNOWN`,e.ANONYMOUS_VISITOR=`ANONYMOUS_VISITOR`,e.MEMBER=`MEMBER`,e.WIX_USER=`WIX_USER`,e.APP=`APP`,e))(Xr||{}),Zr=(e=>(e.RESERVATION_PENDING=`RESERVATION_PENDING`,e.RESERVATION_CONFIRMED=`RESERVATION_CONFIRMED`,e.RESERVATION_CANCELED=`RESERVATION_CANCELED`,e.RESERVATION_CANCELED_MANUALLY=`RESERVATION_CANCELED_MANUALLY`,e.RESERVATION_EXPIRED=`RESERVATION_EXPIRED`,e.RESERVATION_PREVIEW=`RESERVATION_PREVIEW`,e))(Zr||{}),Qr=(e=>(e.INCLUDE_HIDDEN_NOT_ON_SALE=`INCLUDE_HIDDEN_NOT_ON_SALE`,e))(Qr||{}),$r=(e=>(e.SALE_SCHEDULED=`SALE_SCHEDULED`,e.SALE_STARTED=`SALE_STARTED`,e.SALE_ENDED=`SALE_ENDED`,e))($r||{}),ei=(e=>(e.STANDARD=`STANDARD`,e.DONATION=`DONATION`,e))(ei||{}),ti=(e=>(e.POLICY=`POLICY`,e.DASHBOARD=`DASHBOARD`,e))(ti||{});async function ni(e){let{httpClient:t,sideEffects:n}=arguments[1],r=vr(H({offset:e?.offset,limit:e?.limit,fieldset:e?.fieldset,status:e?.status,eventId:e?.eventId,orderNumber:e?.orderNumber,memberId:e?.memberId,facet:e?.facet,searchPhrase:e?.searchPhrase,eventCreatorId:e?.eventCreatorId,sort:e?.sort,tag:e?.tag,contactId:e?.contactId}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(G(e.data,[{transformFn:$t,paths:Fr}]))}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{offset:`$[0].offset`,limit:`$[0].limit`,fieldset:`$[0].fieldset`,status:`$[0].status`,eventId:`$[0].eventId`,orderNumber:`$[0].orderNumber`,memberId:`$[0].memberId`,facet:`$[0].facet`,searchPhrase:`$[0].searchPhrase`,eventCreatorId:`$[0].eventCreatorId`,sort:`$[0].sort`,tag:`$[0].tag`,contactId:`$[0].contactId`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}async function ri(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=yr(H({eventId:e?.eventId,orderNumber:e?.orderNumber,fieldset:t?.fieldset}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$t,paths:Ir}]))?.order}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0].eventId`,orderNumber:`$[0].orderNumber`,fieldset:`$[1].fieldset`},singleArgumentUnchanged:!1},[`identifiers`,`options`]);throw r?.onError?.(e),t}}async function ii(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=br(G(H({eventId:e?.eventId,orderNumber:e?.orderNumber,fields:t?.fields,checkoutForm:t?.checkoutForm,archived:t?.archived}),[{transformFn:Qt,paths:Lr}]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$t,paths:Ir}]))}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0].eventId`,orderNumber:`$[0].orderNumber`,fields:`$[1].fields`,checkoutForm:`$[1].checkoutForm`,archived:`$[1].archived`},singleArgumentUnchanged:!1},[`identifiers`,`options`]);throw r?.onError?.(e),t}}async function ai(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=xr(H({eventId:e,orderNumber:t?.orderNumber,fields:t?.fields,archived:t?.archived}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$t,paths:Fr}]))}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`,orderNumber:`$[1].orderNumber`,fields:`$[1].fields`,archived:`$[1].archived`},singleArgumentUnchanged:!1},[`eventId`,`options`]);throw r?.onError?.(e),t}}async function oi(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Sr(H({eventId:e,orderNumber:t?.orderNumber}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$t,paths:Fr}]))}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`,orderNumber:`$[1].orderNumber`},singleArgumentUnchanged:!1},[`eventId`,`options`]);throw r?.onError?.(e),t}}async function si(e){let{httpClient:t,sideEffects:n}=arguments[1],r=Cr(H({eventId:e?.eventId}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0].eventId`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}async function ci(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=wr(H({orderNumber:e,eventId:t?.eventId}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{orderNumber:`$[0]`,eventId:`$[1].eventId`},singleArgumentUnchanged:!1},[`orderNumber`,`options`]);throw r?.onError?.(e),t}}async function li(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Tr(H({orderNumber:e,eventId:t?.eventId}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{orderNumber:`$[0]`,eventId:`$[1].eventId`},singleArgumentUnchanged:!1},[`orderNumber`,`options`]);throw r?.onError?.(e),t}}async function ui(){let{httpClient:e,sideEffects:t}=arguments[0],n=Er(H({}));t?.onSiteCall?.();try{let r=await e.request(n);return t?.onSuccess?.(r),U(r.data)}catch(e){let n=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{},singleArgumentUnchanged:!1},[]);throw t?.onError?.(e),n}}async function di(e){let{httpClient:t,sideEffects:n}=arguments[1],r=Dr(H({eventId:e?.eventId,offset:e?.offset,limit:e?.limit,sort:e?.sort,state:e?.state}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0].eventId`,offset:`$[0].offset`,limit:`$[0].limit`,sort:`$[0].sort`,state:`$[0].state`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}async function fi(e){let{httpClient:t,sideEffects:n}=arguments[1],r=Or(H({offset:e?.offset,limit:e?.limit,filter:e?.filter,fieldset:e?.fieldset,sort:e?.sort}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{offset:`$[0].offset`,limit:`$[0].limit`,filter:`$[0].filter`,fieldset:`$[0].fieldset`,sort:`$[0].sort`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}async function pi(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=kr(H({eventId:e,ticketQuantities:t?.ticketQuantities,ignoreLimits:t?.ignoreLimits,allowHiddenTickets:t?.allowHiddenTickets}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`,ticketQuantities:`$[1].ticketQuantities`,ignoreLimits:`$[1].ignoreLimits`,allowHiddenTickets:`$[1].allowHiddenTickets`},singleArgumentUnchanged:!1},[`eventId`,`options`]);throw r?.onError?.(e),t}}async function mi(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Ar(H({id:e,eventId:t}));r?.onSiteCall?.();try{let e=await n.request(i);r?.onSuccess?.(e)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{id:`$[0]`,eventId:`$[1]`},singleArgumentUnchanged:!1},[`_id`,`eventId`]);throw r?.onError?.(e),t}}async function hi(e,t,n){let{httpClient:r,sideEffects:i}=arguments[3],a=jr(H({reservationId:e,eventId:t,withDiscount:n?.withDiscount,paidPlanBenefit:n?.paidPlanBenefit,giftCardCode:n?.giftCardCode}));i?.onSiteCall?.();try{let e=await r.request(a);return i?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{reservationId:`$[0]`,eventId:`$[1]`,withDiscount:`$[2].withDiscount`,paidPlanBenefit:`$[2].paidPlanBenefit`,giftCardCode:`$[2].giftCardCode`},singleArgumentUnchanged:!1},[`reservationId`,`eventId`,`options`]);throw i?.onError?.(e),t}}async function gi(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Mr(G(H({eventId:e,reservationId:t?.reservationId,memberId:t?.memberId,discount:t?.discount,buyer:t?.buyer,guests:t?.guests,paidPlanBenefit:t?.paidPlanBenefit,options:t?.options,giftCardCode:t?.giftCardCode,marketingConsent:t?.marketingConsent}),[{transformFn:Qt,paths:Rr}]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$t,paths:Ir}]))}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`,reservationId:`$[1].reservationId`,memberId:`$[1].memberId`,discount:`$[1].discount`,buyer:`$[1].buyer`,guests:`$[1].guests`,paidPlanBenefit:`$[1].paidPlanBenefit`,options:`$[1].options`,giftCardCode:`$[1].giftCardCode`,marketingConsent:`$[1].marketingConsent`},singleArgumentUnchanged:!1},[`eventId`,`options`]);throw r?.onError?.(e),t}}async function _i(e,t,n){let{httpClient:r,sideEffects:i}=arguments[3],a=Nr(G(H({orderNumber:e,eventId:t,buyer:n?.buyer,guests:n?.guests,memberId:n?.memberId,discount:n?.discount,paidPlanBenefit:n?.paidPlanBenefit,paymentDetailsId:n?.paymentDetailsId,giftCardCode:n?.giftCardCode}),[{transformFn:Qt,paths:Rr}]));i?.onSiteCall?.();try{let e=await r.request(a);return i?.onSuccess?.(e),U(G(e.data,[{transformFn:$t,paths:Ir}]))}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{orderNumber:`$[0]`,eventId:`$[1]`,buyer:`$[2].buyer`,guests:`$[2].guests`,memberId:`$[2].memberId`,discount:`$[2].discount`,paidPlanBenefit:`$[2].paidPlanBenefit`,paymentDetailsId:`$[2].paymentDetailsId`,giftCardCode:`$[2].giftCardCode`},singleArgumentUnchanged:!1},[`orderNumber`,`eventId`,`options`]);throw i?.onError?.(e),t}}async function vi(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Pr(H({eventId:e,reservationId:t?.reservationId,paymentDetailsId:t?.paymentDetailsId}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$t,paths:Ir}]))}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`,reservationId:`$[1].reservationId`,paymentDetailsId:`$[1].paymentDetailsId`},singleArgumentUnchanged:!1},[`eventId`,`options`]);throw r?.onError?.(e),t}}var yi=[{path:`data.timestamp`},{path:`data.created`},{path:`data.updated`},{path:`data.tickets.checkIn.created`},{path:`data.tickets.checkIn.checkInCanceledDate`},{path:`data.tickets.form.inputValues.dateTime`}],bi=[{path:`data.tickets.form.inputValues.number`}],xi=[{path:`data.tickets.form.inputValues.address.address`}],Si=[{path:`data.timestamp`},{path:`data.created`},{path:`data.updated`},{path:`data.checkoutForm.inputValues.dateTime`},{path:`data.tickets.checkIn.created`},{path:`data.tickets.checkIn.checkInCanceledDate`},{path:`data.tickets.form.inputValues.dateTime`}],Ci=[{path:`data.checkoutForm.inputValues.number`},{path:`data.tickets.form.inputValues.number`}],wi=[{path:`data.checkoutForm.inputValues.address.address`},{path:`data.tickets.form.inputValues.address.address`}],Ti=[{path:`data.timestamp`},{path:`data.created`},{path:`data.updated`},{path:`data.checkoutForm.inputValues.dateTime`}],Ei=[{path:`data.checkoutForm.inputValues.number`}],Di=[{path:`data.checkoutForm.inputValues.address.address`}],Oi=[{path:`data.timestamp`},{path:`data.expires`},{path:`data.updatedDate`},{path:`data.quantities.updatedDate`},{path:`data.counts.timestamp`}];function ki(e){return t=>ni(t,{httpClient:e})}function Ai(e){return(t,n)=>ri(t,n,{httpClient:e})}function ji(e){return(t,n)=>ii(t,n,{httpClient:e})}function Mi(e){return(t,n)=>ai(t,n,{httpClient:e})}function Ni(e){return(t,n)=>oi(t,n,{httpClient:e})}function Pi(e){return t=>si(t,{httpClient:e})}function Fi(e){return(t,n)=>ci(t,n,{httpClient:e})}function Ii(e){return(t,n)=>li(t,n,{httpClient:e})}function Li(e){return()=>ui({httpClient:e})}function Ri(e){return t=>di(t,{httpClient:e})}function zi(e){return t=>fi(t,{httpClient:e})}function Bi(e){return(t,n)=>pi(t,n,{httpClient:e})}function Vi(e){return(t,n)=>mi(t,n,{httpClient:e})}function Hi(e){return(t,n,r)=>hi(t,n,r,{httpClient:e})}function Ui(e){return(t,n)=>gi(t,n,{httpClient:e})}function Wi(e){return(t,n,r)=>_i(t,n,r,{httpClient:e})}function Gi(e){return(t,n)=>vi(t,n,{httpClient:e})}var Ki=m(`wix.events.ticketing.events.OrderDeleted`,!1,e=>U(G(e,[{transformFn:W,paths:yi},{transformFn:Zt,paths:bi},{transformFn:$t,paths:xi}])))(),qi=m(`wix.events.ticketing.events.OrderUpdated`,!1,e=>U(G(e,[{transformFn:W,paths:Si},{transformFn:Zt,paths:Ci},{transformFn:$t,paths:wi}])))(),Ji=m(`wix.events.ticketing.events.OrderConfirmed`,!1,e=>U(G(e,[{transformFn:W,paths:Si},{transformFn:Zt,paths:Ci},{transformFn:$t,paths:wi}])))(),Yi=m(`wix.events.ticketing.events.OrderInitiated`,!1,e=>U(G(e,[{transformFn:W,paths:Ti},{transformFn:Zt,paths:Ei},{transformFn:$t,paths:Di}])))(),Xi=m(`wix.events.ticketing.events.ReservationCreated`,!1,e=>U(G(e,[{transformFn:W,paths:Oi}])))(),Zi=m(`wix.events.ticketing.events.ReservationUpdated`,!1,e=>U(G(e,[{transformFn:W,paths:Oi}])))(),Qi=q(ki),$i=q(Ai),ea=q(ji),ta=q(Mi),na=q(Ni),ra=q(Pi),ia=q(Fi),aa=q(Ii),oa=q(Li),sa=q(Ri),ca=q(zi),la=q(Bi),ua=q(Vi),da=q(Hi),fa=q(Ui),pa=q(Wi),ma=q(Gi),ha=Yt(Ki),ga=Yt(qi),_a=Yt(Ji),va=Yt(Yi),ya=Yt(Xi),ba=Yt(Zi);function xa(e){let t={},n={get search(){return t},expression(e){return t={...t,expression:e},n},mode(e){return t={...t,mode:e},n},fields(r){return t={...t,fields:r.map(t=>Ie(t,e))},n},fuzzy(e=!0){return t={...t,fuzzy:e},n}};return n}function Sa(e){return t=>{let n=xa(e);return t===void 0?n:n.expression(t)}}function Ca(e){let t={...e,type:`VALUE`,value:{...e.value}},n={get aggregation(){return t},sortBy(e,r){return t={...t,value:{...t.value,sortType:e,sortDirection:r}},n},limit(e){return t={...t,value:{...t.value,limit:e}},n},excludeMissingValues(){return t={...t,value:{...t.value,missingValues:`EXCLUDE`}},n},includeMissingValues(){return t={...t,value:{...t.value,missingValues:`INCLUDE`}},n},includeValues(e){return t={...t,value:{...t.value,includeOptions:{addToBucket:e}}},n}};return n}function wa(e){let t={...e,type:`RANGE`,range:{buckets:[]}},n={get aggregation(){return t},withBuckets(...e){return t={...t,range:{buckets:e}},n}};return n}function Ta(e){let t={...e,type:`DATE_HISTOGRAM`,dateHistogram:{}},n={get aggregation(){return t},interval(e){return t={...t,dateHistogram:{interval:e}},n}};return n}function Ea(e){let t={...e,type:`SCALAR`,scalar:{}},n={get aggregation(){return t},type(e){return t={...t,scalar:{type:e}},n}};return n}function Da(e){let t={...e,type:`NESTED`,nested:{nestedAggregations:[]}},n={get aggregation(){return t},addNestedAggregation(e){let r=e.aggregation,i=[...t.nested?.nestedAggregations??[],r];return t={...t,nested:{nestedAggregations:i}},n}};return n}function Oa(e,t){let n={name:e},r={get aggregation(){return n},ofType(e){return n={...n,type:e},r},onField(e){return n={...n,fieldPath:Ie(e,t)},r},asValueAggregation(){return Ca(n)},asRangeAggregation(){return wa(n)},asDateHistogramAggregation(){return Ta(n)},asScalarAggregation(){return Ea(n)},asNestedAggregation(){return Da(n)}};return r}function ka(e){return t=>Oa(t,e)}function Aa(){return()=>{let e={},t={withFilter(n){return e={...e,filter:n.filter},t},withSearchClause(n){return e={...e,search:n.search},t},withSorting(...n){return e={...e,sort:n.map(e=>e.sort)},t},withAggregation(...n){return e={...e,aggregations:n.map(e=>e.aggregation)},t},withPaging(n){return e={...e,paging:n},t},withTimeZone(n){return e={...e,timeZone:n},t},build(){return e}};return t}}function ja(e){return{SearchBuilder:Aa(),Filter:In(e),Sort:Ln(e),SearchParams:Sa(e),Aggregation:ka(e)}}var Ma=f({ActorType:()=>yo,Alignment:()=>ss,AnimationType:()=>ko,AppType:()=>ls,AspectRatio:()=>rs,BackdropType:()=>xs,BackgroundType:()=>Co,BadgeTypeType:()=>Ms,BannerPosition:()=>vs,ButtonDataType:()=>Do,CardDataBackgroundType:()=>Ds,CardStylesType:()=>os,CheckoutType:()=>mo,ColorDataBackgroundType:()=>es,ColumnSize:()=>js,CommonSortOrder:()=>Is,ConferenceTypeType:()=>bo,Crop:()=>Ho,DecorationType:()=>$o,DesignTarget:()=>ws,Direction:()=>ds,DividerDataAlignment:()=>Ro,EntranceEffectType:()=>Ao,FontType:()=>Po,GIFType:()=>Wo,GradientType:()=>wo,GuestTypeType:()=>ho,ImagePosition:()=>hs,ImagePositionPosition:()=>Es,ImageScalingScaling:()=>ms,Indentation:()=>ks,InitialExpandedItems:()=>us,InitialRegistrationTypeType:()=>go,InputControlType:()=>_o,LayerEffect:()=>ys,Layout:()=>cs,LayoutDataBackgroundType:()=>gs,LayoutType:()=>Bo,LineCap:()=>Fo,LineStyle:()=>Io,ListStyle:()=>Os,LocationType:()=>ao,LoopEffectType:()=>jo,MapType:()=>qo,NodeType:()=>So,NullValue:()=>ps,Orientation:()=>Vo,Origin:()=>_s,Placement:()=>as,PluginContainerDataAlignment:()=>Eo,PointerEffectType:()=>Mo,PollDesignBackgroundType:()=>Qo,PollLayoutDirection:()=>Zo,PollLayoutType:()=>Xo,Position:()=>ns,PublishStatus:()=>Fs,RecurrenceStatusStatus:()=>so,RegistrationStatusStatus:()=>uo,RegistrationTypeType:()=>lo,Relation:()=>Rs,RequestedFields:()=>Ns,Resizing:()=>is,ResponseType:()=>fo,ResponsivenessBehaviour:()=>Cs,Scaling:()=>Ts,Shape:()=>bs,SmartBlockDataType:()=>As,SortOrder:()=>Ls,Source:()=>Go,Status:()=>co,StylesPosition:()=>Ko,SubdivisionType:()=>oo,Target:()=>Oo,TaxType:()=>po,TextAlignment:()=>No,ThumbnailsAlignment:()=>Uo,Type:()=>xo,UpdaterIdentity:()=>Ps,ValueType:()=>vo,Variant:()=>ts,VerticalAlignment:()=>fs,VerticalAlignmentAlignment:()=>Ss,ViewMode:()=>zo,ViewRole:()=>Jo,VoteRole:()=>Yo,WebhookIdentityType:()=>zs,Width:()=>Lo,WidthType:()=>To,bulkCancelEventsByFilter:()=>Gc,bulkDeleteEventsByFilter:()=>qc,cancelEvent:()=>Wc,cloneEvent:()=>Vc,countEventsByStatus:()=>Jc,createEvent:()=>Bc,deleteEvent:()=>Kc,getEvent:()=>Xc,getEventBySlug:()=>Zc,listEventsByCategory:()=>Yc,onEventCanceled:()=>$c,onEventCloned:()=>el,onEventCreated:()=>tl,onEventDeleted:()=>nl,onEventEnded:()=>rl,onEventPublished:()=>il,onEventReminder:()=>al,onEventStarted:()=>ol,onEventUpdated:()=>sl,publishDraftEvent:()=>Uc,queryEvents:()=>Qc,updateEvent:()=>Hc,utils:()=>Xs}),Na=[{path:`event.createdDate`},{path:`event.updatedDate`},{path:`event.publishedDate`},{path:`event.dateAndTimeSettings.startDate`},{path:`event.dateAndTimeSettings.endDate`},{path:`event.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`event.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`},{path:`event.mainImage.urlExpirationDate`},{path:`event.registration.rsvp.startDate`},{path:`event.registration.rsvp.endDate`},{path:`event.summaries.cancellation.canceledDate`},{path:`event.categories.categories.createdDate`},{path:`event.description.metadata.createdTimestamp`},{path:`event.description.metadata.updatedTimestamp`},{path:`event.badges.badges.functionUpdateDate`}],Pa=[{path:`event.location.address.geocode.latitude`},{path:`event.location.address.geocode.longitude`},{path:`event.description.nodes.buttonData.styles.background.gradient.centerX`},{path:`event.description.nodes.buttonData.styles.background.gradient.centerY`},{path:`event.description.nodes.buttonData.styles.background.gradient.stops.position`},{path:`event.description.nodes.buttonData.styles.backgroundHover.gradient.centerX`},{path:`event.description.nodes.buttonData.styles.backgroundHover.gradient.centerY`},{path:`event.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position`},{path:`event.description.nodes.galleryData.items.image.media.duration`},{path:`event.description.nodes.galleryData.items.video.media.duration`},{path:`event.description.nodes.galleryData.items.video.thumbnail.duration`},{path:`event.description.nodes.galleryData.options.item.ratio`},{path:`event.description.nodes.imageData.image.duration`},{path:`event.description.nodes.imageData.crop.x`},{path:`event.description.nodes.imageData.crop.y`},{path:`event.description.nodes.imageData.crop.width`},{path:`event.description.nodes.imageData.crop.height`},{path:`event.description.nodes.mapData.mapSettings.lat`},{path:`event.description.nodes.mapData.mapSettings.lng`},{path:`event.description.nodes.pollData.poll.image.duration`},{path:`event.description.nodes.pollData.poll.options.image.duration`},{path:`event.description.nodes.pollData.design.poll.background.image.duration`},{path:`event.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.nodes.appEmbedData.image.duration`},{path:`event.description.nodes.videoData.video.duration`},{path:`event.description.nodes.videoData.thumbnail.duration`},{path:`event.description.nodes.audioData.audio.duration`},{path:`event.description.nodes.audioData.coverImage.duration`},{path:`event.description.nodes.layoutData.backgroundImage.media.duration`},{path:`event.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX`},{path:`event.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY`},{path:`event.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position`},{path:`event.description.nodes.layoutData.backdropImage.media.duration`},{path:`event.description.nodes.layoutData.backdropImage.overlay.gradient.centerX`},{path:`event.description.nodes.layoutData.backdropImage.overlay.gradient.centerY`},{path:`event.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position`},{path:`event.description.nodes.layoutData.background.gradient.centerX`},{path:`event.description.nodes.layoutData.background.gradient.centerY`},{path:`event.description.nodes.layoutData.background.gradient.stops.position`},{path:`event.description.nodes.layoutData.backdrop.gradient.centerX`},{path:`event.description.nodes.layoutData.backdrop.gradient.centerY`},{path:`event.description.nodes.layoutData.backdrop.gradient.stops.position`},{path:`event.description.nodes.shapeData.shape.duration`},{path:`event.description.nodes.cardData.background.gradient.centerX`},{path:`event.description.nodes.cardData.background.gradient.centerY`},{path:`event.description.nodes.cardData.background.gradient.stops.position`},{path:`event.description.nodes.cardData.backgroundImage.media.duration`},{path:`event.description.nodes.cardData.backgroundImage.overlay.gradient.centerX`},{path:`event.description.nodes.cardData.backgroundImage.overlay.gradient.centerY`},{path:`event.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position`},{path:`event.description.nodes.tocData.fontSize`},{path:`event.description.nodes.tocData.itemSpacing`},{path:`event.description.nodes.smartBlockCellData.shape.duration`},{path:`event.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position`}],Fa=[{path:`fieldmask`}],Ia=[{path:`events.createdDate`},{path:`events.updatedDate`},{path:`events.publishedDate`},{path:`events.dateAndTimeSettings.startDate`},{path:`events.dateAndTimeSettings.endDate`},{path:`events.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`events.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`},{path:`events.mainImage.urlExpirationDate`},{path:`events.registration.rsvp.startDate`},{path:`events.registration.rsvp.endDate`},{path:`events.summaries.cancellation.canceledDate`},{path:`events.categories.categories.createdDate`},{path:`events.description.metadata.createdTimestamp`},{path:`events.description.metadata.updatedTimestamp`},{path:`events.badges.badges.functionUpdateDate`}],La=[{path:`events.location.address.geocode.latitude`},{path:`events.location.address.geocode.longitude`},{path:`events.description.nodes.buttonData.styles.background.gradient.centerX`},{path:`events.description.nodes.buttonData.styles.background.gradient.centerY`},{path:`events.description.nodes.buttonData.styles.background.gradient.stops.position`},{path:`events.description.nodes.buttonData.styles.backgroundHover.gradient.centerX`},{path:`events.description.nodes.buttonData.styles.backgroundHover.gradient.centerY`},{path:`events.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position`},{path:`events.description.nodes.galleryData.items.image.media.duration`},{path:`events.description.nodes.galleryData.items.video.media.duration`},{path:`events.description.nodes.galleryData.items.video.thumbnail.duration`},{path:`events.description.nodes.galleryData.options.item.ratio`},{path:`events.description.nodes.imageData.image.duration`},{path:`events.description.nodes.imageData.crop.x`},{path:`events.description.nodes.imageData.crop.y`},{path:`events.description.nodes.imageData.crop.width`},{path:`events.description.nodes.imageData.crop.height`},{path:`events.description.nodes.mapData.mapSettings.lat`},{path:`events.description.nodes.mapData.mapSettings.lng`},{path:`events.description.nodes.pollData.poll.image.duration`},{path:`events.description.nodes.pollData.poll.options.image.duration`},{path:`events.description.nodes.pollData.design.poll.background.image.duration`},{path:`events.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.nodes.appEmbedData.image.duration`},{path:`events.description.nodes.videoData.video.duration`},{path:`events.description.nodes.videoData.thumbnail.duration`},{path:`events.description.nodes.audioData.audio.duration`},{path:`events.description.nodes.audioData.coverImage.duration`},{path:`events.description.nodes.layoutData.backgroundImage.media.duration`},{path:`events.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX`},{path:`events.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY`},{path:`events.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position`},{path:`events.description.nodes.layoutData.backdropImage.media.duration`},{path:`events.description.nodes.layoutData.backdropImage.overlay.gradient.centerX`},{path:`events.description.nodes.layoutData.backdropImage.overlay.gradient.centerY`},{path:`events.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position`},{path:`events.description.nodes.layoutData.background.gradient.centerX`},{path:`events.description.nodes.layoutData.background.gradient.centerY`},{path:`events.description.nodes.layoutData.background.gradient.stops.position`},{path:`events.description.nodes.layoutData.backdrop.gradient.centerX`},{path:`events.description.nodes.layoutData.backdrop.gradient.centerY`},{path:`events.description.nodes.layoutData.backdrop.gradient.stops.position`},{path:`events.description.nodes.shapeData.shape.duration`},{path:`events.description.nodes.cardData.background.gradient.centerX`},{path:`events.description.nodes.cardData.background.gradient.centerY`},{path:`events.description.nodes.cardData.background.gradient.stops.position`},{path:`events.description.nodes.cardData.backgroundImage.media.duration`},{path:`events.description.nodes.cardData.backgroundImage.overlay.gradient.centerX`},{path:`events.description.nodes.cardData.backgroundImage.overlay.gradient.centerY`},{path:`events.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position`},{path:`events.description.nodes.tocData.fontSize`},{path:`events.description.nodes.tocData.itemSpacing`},{path:`events.description.nodes.smartBlockCellData.shape.duration`},{path:`events.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position`}];function Ra(e){return Ct(Object.assign(e,{domainToMappings:{"www.wixapis.com":[{srcPath:`/events/v3/events`,destPath:`/v3/events`},{srcPath:`/events/v3/bulk/events`,destPath:`/v3/bulk/events`}],"api._api_base_domain_":[{srcPath:`/events-events-v3-adapter`,destPath:``}],"manage._base_domain_":[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}],"editor.wixapps.net":[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}],"editor._base_domain_":[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}],"blocks._base_domain_":[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}],"create.editorx":[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}],"*.dev.wix-code.com":[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}],_:[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}],"www._base_domain_":[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}]}}))}var za=`@wix/auto_sdk_events_wix-events-v-2`;function Ba(e){function t({host:t}){let n=G(e,[{transformFn:Ve,paths:Na},{transformFn:Xt,paths:Pa}]);return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.CreateEvent`,packageName:za,migrationOptions:{optInTransformResponse:!0},url:Ra({protoPath:`/v3/events`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:Na},{transformFn:Zt,paths:Pa}])}}return t}function Va(e){function t({host:t}){let n=G(e,[{transformFn:en,paths:Fa},{transformFn:Ve,paths:Na},{transformFn:Xt,paths:Pa}]);return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.CloneEvent`,packageName:za,migrationOptions:{optInTransformResponse:!0},url:Ra({protoPath:`/v3/events/{eventId}/clone`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:Na},{transformFn:Zt,paths:Pa}])}}return t}function Ha(e){function t({host:t}){let n=G(e,[{transformFn:en,paths:Fa},{transformFn:Ve,paths:Na},{transformFn:Xt,paths:Pa}]);return{entityFqdn:`wix.events.v3.event`,method:`PATCH`,methodFqn:`wix.events.events.v3.EventManagement.UpdateEvent`,packageName:za,migrationOptions:{optInTransformResponse:!0},url:Ra({protoPath:`/v3/events/{event.id}`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:Na},{transformFn:Zt,paths:Pa}])}}return t}function Ua(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.PublishDraftEvent`,packageName:za,migrationOptions:{optInTransformResponse:!0},url:Ra({protoPath:`/v3/events/{eventId}/publish`,data:e,host:t}),data:e,transformResponse:e=>G(e,[{transformFn:W,paths:Na},{transformFn:Zt,paths:Pa}])}}return t}function Wa(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.CancelEvent`,packageName:za,migrationOptions:{optInTransformResponse:!0},url:Ra({protoPath:`/v3/events/{eventId}/cancel`,data:e,host:t}),data:e,transformResponse:e=>G(e,[{transformFn:W,paths:Na},{transformFn:Zt,paths:Pa}])}}return t}function Ga(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.BulkCancelEventsByFilter`,packageName:za,migrationOptions:{optInTransformResponse:!0},url:Ra({protoPath:`/v3/bulk/events/cancel-by-filter`,data:e,host:t}),data:e}}return t}function Ka(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`DELETE`,methodFqn:`wix.events.events.v3.EventManagement.DeleteEvent`,packageName:za,migrationOptions:{optInTransformResponse:!0},url:Ra({protoPath:`/v3/events/{eventId}`,data:e,host:t}),params:St(e)}}return t}function qa(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.BulkDeleteEventsByFilter`,packageName:za,migrationOptions:{optInTransformResponse:!0},url:Ra({protoPath:`/v3/bulk/events/delete-by-filter`,data:e,host:t}),data:e}}return t}function Ja(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.QueryEvents`,packageName:za,migrationOptions:{optInTransformResponse:!0},url:Ra({protoPath:`/v3/events/query`,data:e,host:t}),data:e,transformResponse:e=>G(e,[{transformFn:W,paths:Ia},{transformFn:Zt,paths:La}])}}return t}function Ya(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.CountEventsByStatus`,packageName:za,migrationOptions:{optInTransformResponse:!0},url:Ra({protoPath:`/v3/events/count-by-status`,data:e,host:t}),data:e}}return t}function Xa(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`GET`,methodFqn:`wix.events.events.v3.EventManagement.ListEventsByCategory`,packageName:za,migrationOptions:{optInTransformResponse:!0},url:Ra({protoPath:`/v3/events/category/{categoryId}`,data:e,host:t}),params:St(e),transformResponse:e=>G(e,[{transformFn:W,paths:Ia},{transformFn:Zt,paths:La}])}}return t}function Za(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`GET`,methodFqn:`wix.events.events.v3.EventManagement.GetEvent`,packageName:za,migrationOptions:{optInTransformResponse:!0},url:Ra({protoPath:`/v3/events/{eventId}`,data:e,host:t}),params:St(e),transformResponse:e=>G(e,[{transformFn:W,paths:Na},{transformFn:Zt,paths:Pa}])}}return t}function Qa(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`GET`,methodFqn:`wix.events.events.v3.EventManagement.GetEventBySlug`,packageName:za,migrationOptions:{optInTransformResponse:!0},url:Ra({protoPath:`/v3/events/slug/{slug}`,data:e,host:t}),params:St(e),transformResponse:e=>G(e,[{transformFn:W,paths:Na},{transformFn:Zt,paths:Pa}])}}return t}var $a=[{path:`event.mainImage`}],eo=[{path:`event.eventPageUrl`},{path:`event.agendaSettings.pageUrl`}],to=[{path:`event.location.address`}],no=[{path:`events.mainImage`}],ro=[{path:`events.eventPageUrl`},{path:`events.agendaSettings.pageUrl`}],io=[{path:`events.location.address`}],ao=(e=>(e.VENUE=`VENUE`,e.ONLINE=`ONLINE`,e))(ao||{}),oo=(e=>(e.UNKNOWN_SUBDIVISION_TYPE=`UNKNOWN_SUBDIVISION_TYPE`,e.ADMINISTRATIVE_AREA_LEVEL_1=`ADMINISTRATIVE_AREA_LEVEL_1`,e.ADMINISTRATIVE_AREA_LEVEL_2=`ADMINISTRATIVE_AREA_LEVEL_2`,e.ADMINISTRATIVE_AREA_LEVEL_3=`ADMINISTRATIVE_AREA_LEVEL_3`,e.ADMINISTRATIVE_AREA_LEVEL_4=`ADMINISTRATIVE_AREA_LEVEL_4`,e.ADMINISTRATIVE_AREA_LEVEL_5=`ADMINISTRATIVE_AREA_LEVEL_5`,e.COUNTRY=`COUNTRY`,e))(oo||{}),so=(e=>(e.ONE_TIME=`ONE_TIME`,e.RECURRING=`RECURRING`,e.RECURRING_UPCOMING=`RECURRING_UPCOMING`,e.RECURRING_RECENTLY_ENDED=`RECURRING_RECENTLY_ENDED`,e.RECURRING_RECENTLY_CANCELED=`RECURRING_RECENTLY_CANCELED`,e))(so||{}),co=(e=>(e.UPCOMING=`UPCOMING`,e.STARTED=`STARTED`,e.ENDED=`ENDED`,e.CANCELED=`CANCELED`,e.DRAFT=`DRAFT`,e))(co||{}),lo=(e=>(e.RSVP=`RSVP`,e.TICKETING=`TICKETING`,e.EXTERNAL=`EXTERNAL`,e.NONE=`NONE`,e.RSVP_AND_TICKETING=`RSVP_AND_TICKETING`,e))(lo||{}),uo=(e=>(e.UNKNOWN_REGISTRATION_STATUS=`UNKNOWN_REGISTRATION_STATUS`,e.CLOSED_AUTOMATICALLY=`CLOSED_AUTOMATICALLY`,e.CLOSED_MANUALLY=`CLOSED_MANUALLY`,e.OPEN_RSVP=`OPEN_RSVP`,e.OPEN_RSVP_WAITLIST_ONLY=`OPEN_RSVP_WAITLIST_ONLY`,e.OPEN_TICKETS=`OPEN_TICKETS`,e.OPEN_EXTERNAL=`OPEN_EXTERNAL`,e.SCHEDULED_RSVP=`SCHEDULED_RSVP`,e.OPEN_RSVP_AND_TICKETS=`OPEN_RSVP_AND_TICKETS`,e))(uo||{}),fo=(e=>(e.YES_ONLY=`YES_ONLY`,e.YES_AND_NO=`YES_AND_NO`,e))(fo||{}),po=(e=>(e.INCLUDED_IN_PRICE=`INCLUDED_IN_PRICE`,e.ADDED_AT_CHECKOUT=`ADDED_AT_CHECKOUT`,e))(po||{}),mo=(e=>(e.EVENTS_APP=`EVENTS_APP`,e.ECOMM_PLATFORM=`ECOMM_PLATFORM`,e))(mo||{}),ho=(e=>(e.VISITOR_OR_MEMBER=`VISITOR_OR_MEMBER`,e.MEMBER=`MEMBER`,e))(ho||{}),go=(e=>(e.RSVP=`RSVP`,e.TICKETING=`TICKETING`,e.RSVP_AND_TICKETING=`RSVP_AND_TICKETING`,e))(go||{}),_o=(e=>(e.INPUT=`INPUT`,e.TEXTAREA=`TEXTAREA`,e.DROPDOWN=`DROPDOWN`,e.RADIO=`RADIO`,e.CHECKBOX=`CHECKBOX`,e.NAME=`NAME`,e.GUEST_CONTROL=`GUEST_CONTROL`,e.ADDRESS_SHORT=`ADDRESS_SHORT`,e.ADDRESS_FULL=`ADDRESS_FULL`,e.DATE=`DATE`,e))(_o||{}),vo=(e=>(e.TEXT=`TEXT`,e.NUMBER=`NUMBER`,e.TEXT_ARRAY=`TEXT_ARRAY`,e.DATE_TIME=`DATE_TIME`,e.ADDRESS=`ADDRESS`,e))(vo||{}),yo=(e=>(e.USER=`USER`,e.APP=`APP`,e.SYSTEM=`SYSTEM`,e))(yo||{}),bo=(e=>(e.MEETING=`MEETING`,e.WEBINAR=`WEBINAR`,e))(bo||{}),xo=(e=>(e.MANUAL=`MANUAL`,e.RECURRING_EVENT=`RECURRING_EVENT`,e.COMPONENT=`COMPONENT`,e))(xo||{}),So=(e=>(e.PARAGRAPH=`PARAGRAPH`,e.TEXT=`TEXT`,e.HEADING=`HEADING`,e.BULLETED_LIST=`BULLETED_LIST`,e.ORDERED_LIST=`ORDERED_LIST`,e.LIST_ITEM=`LIST_ITEM`,e.BLOCKQUOTE=`BLOCKQUOTE`,e.CODE_BLOCK=`CODE_BLOCK`,e.VIDEO=`VIDEO`,e.DIVIDER=`DIVIDER`,e.FILE=`FILE`,e.GALLERY=`GALLERY`,e.GIF=`GIF`,e.HTML=`HTML`,e.IMAGE=`IMAGE`,e.LINK_PREVIEW=`LINK_PREVIEW`,e.MAP=`MAP`,e.POLL=`POLL`,e.APP_EMBED=`APP_EMBED`,e.BUTTON=`BUTTON`,e.COLLAPSIBLE_LIST=`COLLAPSIBLE_LIST`,e.TABLE=`TABLE`,e.EMBED=`EMBED`,e.COLLAPSIBLE_ITEM=`COLLAPSIBLE_ITEM`,e.COLLAPSIBLE_ITEM_TITLE=`COLLAPSIBLE_ITEM_TITLE`,e.COLLAPSIBLE_ITEM_BODY=`COLLAPSIBLE_ITEM_BODY`,e.TABLE_CELL=`TABLE_CELL`,e.TABLE_ROW=`TABLE_ROW`,e.EXTERNAL=`EXTERNAL`,e.AUDIO=`AUDIO`,e.CAPTION=`CAPTION`,e.LAYOUT=`LAYOUT`,e.LAYOUT_CELL=`LAYOUT_CELL`,e.SHAPE=`SHAPE`,e.CARD=`CARD`,e.TOC=`TOC`,e.SMART_BLOCK=`SMART_BLOCK`,e.SMART_BLOCK_CELL=`SMART_BLOCK_CELL`,e.CHECKBOX_LIST=`CHECKBOX_LIST`,e.SLOT=`SLOT`,e))(So||{}),Co=(e=>(e.COLOR=`COLOR`,e.GRADIENT=`GRADIENT`,e))(Co||{}),wo=(e=>(e.LINEAR=`LINEAR`,e.RADIAL=`RADIAL`,e))(wo||{}),To=(e=>(e.CONTENT=`CONTENT`,e.SMALL=`SMALL`,e.ORIGINAL=`ORIGINAL`,e.FULL_WIDTH=`FULL_WIDTH`,e))(To||{}),Eo=(e=>(e.CENTER=`CENTER`,e.LEFT=`LEFT`,e.RIGHT=`RIGHT`,e))(Eo||{}),Do=(e=>(e.LINK=`LINK`,e.ACTION=`ACTION`,e))(Do||{}),Oo=(e=>(e.SELF=`SELF`,e.BLANK=`BLANK`,e.PARENT=`PARENT`,e.TOP=`TOP`,e))(Oo||{}),ko=(e=>(e.VIEW=`VIEW`,e.POINTER=`POINTER`,e))(ko||{}),Ao=(e=>(e.FADE=`FADE`,e.ARC=`ARC`,e.BLUR=`BLUR`,e.BOUNCE=`BOUNCE`,e.DROP=`DROP`,e.EXPAND=`EXPAND`,e.FLIP=`FLIP`,e.FLOAT=`FLOAT`,e.FOLD=`FOLD`,e.GLIDE=`GLIDE`,e.REVEAL=`REVEAL`,e.SHAPE=`SHAPE`,e.SHUTTERS=`SHUTTERS`,e.SLIDE=`SLIDE`,e.SPIN=`SPIN`,e.TILT=`TILT`,e.TURN=`TURN`,e.WINK=`WINK`,e))(Ao||{}),jo=(e=>(e.BOUNCE=`BOUNCE`,e.BREATHE=`BREATHE`,e.CROSS=`CROSS`,e.FLASH=`FLASH`,e.FLIP=`FLIP`,e.FOLD=`FOLD`,e.JELLO=`JELLO`,e.POKE=`POKE`,e.PULSE=`PULSE`,e.RUBBER=`RUBBER`,e.SPIN=`SPIN`,e.SWING=`SWING`,e.WIGGLE=`WIGGLE`,e))(jo||{}),Mo=(e=>(e.AIRY=`AIRY`,e.BLOB=`BLOB`,e.BLUR=`BLUR`,e.SCALE=`SCALE`,e.SKEW=`SKEW`,e.SWIVEL=`SWIVEL`,e.TILT_3D=`TILT_3D`,e.TRACK=`TRACK`,e.TRACK_3D=`TRACK_3D`,e))(Mo||{}),No=(e=>(e.AUTO=`AUTO`,e.LEFT=`LEFT`,e.RIGHT=`RIGHT`,e.CENTER=`CENTER`,e.JUSTIFY=`JUSTIFY`,e))(No||{}),Po=(e=>(e.PX=`PX`,e.EM=`EM`,e))(Po||{}),Fo=(e=>(e.SQUARE=`SQUARE`,e.ROUND=`ROUND`,e))(Fo||{}),Io=(e=>(e.SINGLE=`SINGLE`,e.DOUBLE=`DOUBLE`,e.DASHED=`DASHED`,e.DOTTED=`DOTTED`,e))(Io||{}),Lo=(e=>(e.LARGE=`LARGE`,e.MEDIUM=`MEDIUM`,e.SMALL=`SMALL`,e))(Lo||{}),Ro=(e=>(e.CENTER=`CENTER`,e.LEFT=`LEFT`,e.RIGHT=`RIGHT`,e))(Ro||{}),zo=(e=>(e.NONE=`NONE`,e.FULL=`FULL`,e.MINI=`MINI`,e))(zo||{}),Bo=(e=>(e.COLLAGE=`COLLAGE`,e.MASONRY=`MASONRY`,e.GRID=`GRID`,e.THUMBNAIL=`THUMBNAIL`,e.SLIDER=`SLIDER`,e.SLIDESHOW=`SLIDESHOW`,e.PANORAMA=`PANORAMA`,e.COLUMN=`COLUMN`,e.MAGIC=`MAGIC`,e.FULLSIZE=`FULLSIZE`,e))(Bo||{}),Vo=(e=>(e.ROWS=`ROWS`,e.COLUMNS=`COLUMNS`,e))(Vo||{}),Ho=(e=>(e.FILL=`FILL`,e.FIT=`FIT`,e))(Ho||{}),Uo=(e=>(e.TOP=`TOP`,e.RIGHT=`RIGHT`,e.BOTTOM=`BOTTOM`,e.LEFT=`LEFT`,e.NONE=`NONE`,e))(Uo||{}),Wo=(e=>(e.NORMAL=`NORMAL`,e.STICKER=`STICKER`,e))(Wo||{}),Go=(e=>(e.HTML=`HTML`,e.ADSENSE=`ADSENSE`,e.AI=`AI`,e.AI_WIDGET=`AI_WIDGET`,e))(Go||{}),Ko=(e=>(e.START=`START`,e.END=`END`,e.TOP=`TOP`,e.HIDDEN=`HIDDEN`,e))(Ko||{}),qo=(e=>(e.ROADMAP=`ROADMAP`,e.SATELITE=`SATELITE`,e.HYBRID=`HYBRID`,e.TERRAIN=`TERRAIN`,e))(qo||{}),Jo=(e=>(e.CREATOR=`CREATOR`,e.VOTERS=`VOTERS`,e.EVERYONE=`EVERYONE`,e))(Jo||{}),Yo=(e=>(e.SITE_MEMBERS=`SITE_MEMBERS`,e.ALL=`ALL`,e))(Yo||{}),Xo=(e=>(e.LIST=`LIST`,e.GRID=`GRID`,e))(Xo||{}),Zo=(e=>(e.LTR=`LTR`,e.RTL=`RTL`,e))(Zo||{}),Qo=(e=>(e.COLOR=`COLOR`,e.IMAGE=`IMAGE`,e.GRADIENT=`GRADIENT`,e))(Qo||{}),$o=(e=>(e.BOLD=`BOLD`,e.ITALIC=`ITALIC`,e.UNDERLINE=`UNDERLINE`,e.SPOILER=`SPOILER`,e.ANCHOR=`ANCHOR`,e.MENTION=`MENTION`,e.LINK=`LINK`,e.COLOR=`COLOR`,e.FONT_SIZE=`FONT_SIZE`,e.EXTERNAL=`EXTERNAL`,e.STRIKETHROUGH=`STRIKETHROUGH`,e.SUPERSCRIPT=`SUPERSCRIPT`,e.SUBSCRIPT=`SUBSCRIPT`,e.FONT_FAMILY=`FONT_FAMILY`,e.SKETCH=`SKETCH`,e))($o||{}),es=(e=>(e.COLOR=`COLOR`,e.GRADIENT=`GRADIENT`,e))(es||{}),ts=(e=>(e.UNDERLINE=`UNDERLINE`,e.BOX=`BOX`,e.CIRCLE=`CIRCLE`,e.HIGHLIGHT=`HIGHLIGHT`,e.STRIKETHROUGH=`STRIKETHROUGH`,e.CROSSED_OFF=`CROSSED_OFF`,e))(ts||{}),ns=(e=>(e.START=`START`,e.END=`END`,e.TOP=`TOP`,e))(ns||{}),rs=(e=>(e.SQUARE=`SQUARE`,e.RECTANGLE=`RECTANGLE`,e))(rs||{}),is=(e=>(e.FILL=`FILL`,e.FIT=`FIT`,e))(is||{}),as=(e=>(e.IMAGE=`IMAGE`,e.PRODUCT_INFO=`PRODUCT_INFO`,e))(as||{}),os=(e=>(e.CONTAINED=`CONTAINED`,e.FRAMELESS=`FRAMELESS`,e))(os||{}),ss=(e=>(e.START=`START`,e.CENTER=`CENTER`,e.END=`END`,e))(ss||{}),cs=(e=>(e.STACKED=`STACKED`,e.SIDE_BY_SIDE=`SIDE_BY_SIDE`,e))(cs||{}),ls=(e=>(e.PRODUCT=`PRODUCT`,e.EVENT=`EVENT`,e.BOOKING=`BOOKING`,e))(ls||{}),us=(e=>(e.FIRST=`FIRST`,e.ALL=`ALL`,e.NONE=`NONE`,e))(us||{}),ds=(e=>(e.LTR=`LTR`,e.RTL=`RTL`,e))(ds||{}),fs=(e=>(e.TOP=`TOP`,e.MIDDLE=`MIDDLE`,e.BOTTOM=`BOTTOM`,e))(fs||{}),ps=(e=>(e.NULL_VALUE=`NULL_VALUE`,e))(ps||{}),ms=(e=>(e.AUTO=`AUTO`,e.CONTAIN=`CONTAIN`,e.COVER=`COVER`,e))(ms||{}),hs=(e=>(e.CENTER=`CENTER`,e.CENTER_LEFT=`CENTER_LEFT`,e.CENTER_RIGHT=`CENTER_RIGHT`,e.TOP=`TOP`,e.TOP_LEFT=`TOP_LEFT`,e.TOP_RIGHT=`TOP_RIGHT`,e.BOTTOM=`BOTTOM`,e.BOTTOM_LEFT=`BOTTOM_LEFT`,e.BOTTOM_RIGHT=`BOTTOM_RIGHT`,e))(hs||{}),gs=(e=>(e.COLOR=`COLOR`,e.GRADIENT=`GRADIENT`,e))(gs||{}),_s=(e=>(e.IMAGE=`IMAGE`,e.LAYOUT=`LAYOUT`,e))(_s||{}),vs=(e=>(e.TOP=`TOP`,e.BOTTOM=`BOTTOM`,e.PAYWALL=`PAYWALL`,e))(vs||{}),ys=(e=>(e.CENTER=`CENTER`,e.FADE_TO_TOP=`FADE_TO_TOP`,e.FADE_TO_BOTTOM=`FADE_TO_BOTTOM`,e))(ys||{}),bs=(e=>(e.ELLIPSE=`ELLIPSE`,e.TILT=`TILT`,e.LIQUID=`LIQUID`,e.LEFT_WAVE=`LEFT_WAVE`,e.PAINT_SCRIBBLE=`PAINT_SCRIBBLE`,e.INVERTED_ELLIPSE=`INVERTED_ELLIPSE`,e.RIGHT_WAVE=`RIGHT_WAVE`,e.DUNES=`DUNES`,e.WAVES=`WAVES`,e.TRIANGLE=`TRIANGLE`,e.SEMI_ELLIPSE=`SEMI_ELLIPSE`,e.PLANTS=`PLANTS`,e.LAYERED_ELLIPSE=`LAYERED_ELLIPSE`,e.PIXELS=`PIXELS`,e.PAINT=`PAINT`,e.CLOUDS=`CLOUDS`,e.OPTICAL_ILLUSION=`OPTICAL_ILLUSION`,e.STRIPES=`STRIPES`,e.BLOBS=`BLOBS`,e.SEMI_CIRCLES=`SEMI_CIRCLES`,e.HILL=`HILL`,e.BRUSH=`BRUSH`,e.PEAKS=`PEAKS`,e.ANGLED_TRIANGLE=`ANGLED_TRIANGLE`,e))(bs||{}),xs=(e=>(e.COLOR=`COLOR`,e.GRADIENT=`GRADIENT`,e))(xs||{}),Ss=(e=>(e.TOP=`TOP`,e.MIDDLE=`MIDDLE`,e.BOTTOM=`BOTTOM`,e))(Ss||{}),Cs=(e=>(e.STACK=`STACK`,e.WRAP=`WRAP`,e))(Cs||{}),ws=(e=>(e.LAYOUT=`LAYOUT`,e.CELL=`CELL`,e))(ws||{}),Ts=(e=>(e.AUTO=`AUTO`,e.CONTAIN=`CONTAIN`,e.COVER=`COVER`,e))(Ts||{}),Es=(e=>(e.CENTER=`CENTER`,e.CENTER_LEFT=`CENTER_LEFT`,e.CENTER_RIGHT=`CENTER_RIGHT`,e.TOP=`TOP`,e.TOP_LEFT=`TOP_LEFT`,e.TOP_RIGHT=`TOP_RIGHT`,e.BOTTOM=`BOTTOM`,e.BOTTOM_LEFT=`BOTTOM_LEFT`,e.BOTTOM_RIGHT=`BOTTOM_RIGHT`,e))(Es||{}),Ds=(e=>(e.COLOR=`COLOR`,e.GRADIENT=`GRADIENT`,e))(Ds||{}),Os=(e=>(e.PLAIN=`PLAIN`,e.NUMBERED=`NUMBERED`,e.LETTERS=`LETTERS`,e.ROMAN=`ROMAN`,e.BULLETED=`BULLETED`,e.ALPHABETICAL_INDEX=`ALPHABETICAL_INDEX`,e.ALPHABETICAL_INDEX_COMPACT=`ALPHABETICAL_INDEX_COMPACT`,e))(Os||{}),ks=(e=>(e.NESTED=`NESTED`,e.FLAT=`FLAT`,e))(ks||{}),As=(e=>(e.SOLID_BOXES=`SOLID_BOXES`,e.NUMBERED_BOXES=`NUMBERED_BOXES`,e.STATS=`STATS`,e.CIRCLE_STATS=`CIRCLE_STATS`,e.SOLID_BOXES_ALTERNATING=`SOLID_BOXES_ALTERNATING`,e.SOLID_JOINED_BOXES=`SOLID_JOINED_BOXES`,e.SIDE_LINE_TEXT=`SIDE_LINE_TEXT`,e.TOP_LINE_TEXT=`TOP_LINE_TEXT`,e.OUTLINE_BOXES_WITH_TOP_CIRCLE=`OUTLINE_BOXES_WITH_TOP_CIRCLE`,e.BIG_BULLETS=`BIG_BULLETS`,e.SMALL_BULLETS=`SMALL_BULLETS`,e.ARROW_BULLETS=`ARROW_BULLETS`,e.PROCESS_STEPS=`PROCESS_STEPS`,e.BAR_STATS=`BAR_STATS`,e.TIMELINE=`TIMELINE`,e.MINIMAL_TIMELINE=`MINIMAL_TIMELINE`,e.PILLS=`PILLS`,e.STAR_RATING=`STAR_RATING`,e.QUOTE_BOXES=`QUOTE_BOXES`,e.CIRCLE=`CIRCLE`,e.PYRAMID=`PYRAMID`,e.STAIRCASE=`STAIRCASE`,e.VERTICAL_FUNNEL=`VERTICAL_FUNNEL`,e))(As||{}),js=(e=>(e.SMALL=`SMALL`,e.MEDIUM=`MEDIUM`,e.LARGE=`LARGE`,e.EXTRA_LARGE=`EXTRA_LARGE`,e))(js||{}),Ms=(e=>(e.FIRST_PRIORITY=`FIRST_PRIORITY`,e.SECOND_PRIORITY=`SECOND_PRIORITY`,e.THIRD_PRIORITY=`THIRD_PRIORITY`,e))(Ms||{}),Ns=(e=>(e.DETAILS=`DETAILS`,e.TEXTS=`TEXTS`,e.REGISTRATION=`REGISTRATION`,e.URLS=`URLS`,e.FORM=`FORM`,e.DASHBOARD=`DASHBOARD`,e.FEED=`FEED`,e.ONLINE_CONFERENCING_SESSION=`ONLINE_CONFERENCING_SESSION`,e.SEO_SETTINGS=`SEO_SETTINGS`,e.AGENDA=`AGENDA`,e.CATEGORIES=`CATEGORIES`,e.CUSTOMIZABLE_TICKETS=`CUSTOMIZABLE_TICKETS`,e.BADGES=`BADGES`,e))(Ns||{}),Ps=(e=>(e.UNKNOWN_UPDATER_IDENTITY=`UNKNOWN_UPDATER_IDENTITY`,e.USER=`USER`,e.EXTERNAL_APP=`EXTERNAL_APP`,e.MACHINE=`MACHINE`,e))(Ps||{}),Fs=(e=>(e.UNKNOWN_PUBLISH_STATUS=`UNKNOWN_PUBLISH_STATUS`,e.UNPUBLISHED=`UNPUBLISHED`,e.PARTIALLY_PUBLISHED=`PARTIALLY_PUBLISHED`,e.PUBLISHED=`PUBLISHED`,e))(Fs||{}),Is=(e=>(e.ASC=`ASC`,e.DESC=`DESC`,e))(Is||{}),Ls=(e=>(e.ASC=`ASC`,e.DESC=`DESC`,e))(Ls||{}),Rs=(e=>(e.ATTENDING=`ATTENDING`,e))(Rs||{}),zs=(e=>(e.UNKNOWN=`UNKNOWN`,e.ANONYMOUS_VISITOR=`ANONYMOUS_VISITOR`,e.MEMBER=`MEMBER`,e.WIX_USER=`WIX_USER`,e.APP=`APP`,e))(zs||{});async function Bs(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Ba(G(H({event:e,draft:t?.draft,fields:t?.fields},[`event.description`]),[{transformFn:Qn,paths:$a},{transformFn:Sn,paths:eo},{transformFn:Qt,paths:to}]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:$a},{transformFn:Cn,paths:eo},{transformFn:$t,paths:to}]),[`event.description`])?.event}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{event:`$[0]`,draft:`$[1].draft`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`event`,`options`]);throw r?.onError?.(e),t}}async function Vs(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Va(G(H({eventId:e,event:t?.event,draft:t?.draft,fields:t?.fields},[`event.description`]),[{transformFn:Qn,paths:$a},{transformFn:Sn,paths:eo},{transformFn:Qt,paths:to}]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:$a},{transformFn:Cn,paths:eo},{transformFn:$t,paths:to}]),[`event.description`])}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`,event:`$[1].event`,draft:`$[1].draft`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`eventId`,`options`]);throw r?.onError?.(e),t}}async function Hs(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Ha(G(H({event:{...t?.event,id:e},fields:t?.fields},[`event.description`]),[{transformFn:Qn,paths:$a},{transformFn:Sn,paths:eo},{transformFn:Qt,paths:to}]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:$a},{transformFn:Cn,paths:eo},{transformFn:$t,paths:to}]),[`event.description`])?.event}catch(e){let t=K(e,{spreadPathsToArguments:{event:`$[1].event`},explicitPathsToArguments:{"event.id":`$[0]`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`_id`,`options`]);throw r?.onError?.(e),t}}async function Us(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Ua(H({eventId:e,fields:t?.fields},[]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:$a},{transformFn:Cn,paths:eo},{transformFn:$t,paths:to}]),[`event.description`])}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`eventId`,`options`]);throw r?.onError?.(e),t}}async function Ws(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Wa(H({eventId:e,fields:t?.fields},[]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:$a},{transformFn:Cn,paths:eo},{transformFn:$t,paths:to}]),[`event.description`])}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`eventId`,`options`]);throw r?.onError?.(e),t}}async function Gs(e){let{httpClient:t,sideEffects:n}=arguments[1],r=Ga(H({filter:e?.filter},[]));n?.onSiteCall?.();try{let e=await t.request(r);n?.onSuccess?.(e)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{filter:`$[0].filter`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}async function Ks(e){let{httpClient:t,sideEffects:n}=arguments[1],r=Ka(H({eventId:e},[]));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(e.data,[])}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`},singleArgumentUnchanged:!1},[`eventId`]);throw n?.onError?.(e),t}}async function qs(e){let{httpClient:t,sideEffects:n}=arguments[1],r=qa(H({filter:e?.filter},[]));n?.onSiteCall?.();try{let e=await t.request(r);n?.onSuccess?.(e)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{filter:`$[0].filter`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}function Js(e){let{httpClient:t,sideEffects:n}=arguments[1];return Nn({func:async r=>{let i=Ja({...r,...e??{}});n?.onSiteCall?.();try{let e=await t.request(i);return n?.onSuccess?.(e),e}catch(e){throw n?.onError?.(e),e}},requestTransformer:t=>{let n=[t,e];return H({...n?.[1],query:n?.[0]},[])},responseTransformer:({data:e})=>{let t=U(G(e,[{transformFn:$n,paths:no},{transformFn:Cn,paths:ro},{transformFn:$t,paths:io}]),[`events.description`]);return{items:t?.events,pagingMetadata:t?.pagingMetadata}},errorTransformer:e=>{throw K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{query:`$[0]`},singleArgumentUnchanged:!1})},pagingMethod:`OFFSET`,transformationPaths:{}})}async function Ys(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Ja(H({query:e,...t},[]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:no},{transformFn:Cn,paths:ro},{transformFn:$t,paths:io}]),[`events.description`])}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{query:`$[0]`},singleArgumentUnchanged:!1},[`query`,`options`]);throw r?.onError?.(e),t}}var Xs={query:zn()};async function Zs(e){let{httpClient:t,sideEffects:n}=arguments[1],r=Ya(H({filter:e?.filter,facet:e?.facet,includeDrafts:e?.includeDrafts},[]));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(e.data,[])}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{filter:`$[0].filter`,facet:`$[0].facet`,includeDrafts:`$[0].includeDrafts`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}async function Qs(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Xa(H({categoryId:e,paging:t?.paging,fields:t?.fields},[]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:no},{transformFn:Cn,paths:ro},{transformFn:$t,paths:io}]),[`events.description`])}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{categoryId:`$[0]`,paging:`$[1].paging`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`categoryId`,`options`]);throw r?.onError?.(e),t}}async function $s(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Za(H({eventId:e,fields:t?.fields},[]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:$a},{transformFn:Cn,paths:eo},{transformFn:$t,paths:to}]),[`event.description`])?.event}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`eventId`,`options`]);throw r?.onError?.(e),t}}async function ec(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Qa(H({slug:e,fields:t?.fields},[]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:$a},{transformFn:Cn,paths:eo},{transformFn:$t,paths:to}]),[`event.description`])}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{slug:`$[0]`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`slug`,`options`]);throw r?.onError?.(e),t}}var tc=[{path:`data.timestamp`},{path:`metadata.eventTime`}],nc=[{path:`data.timestamp`},{path:`data.dateAndTimeSettings.startDate`},{path:`data.dateAndTimeSettings.endDate`},{path:`data.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`data.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`},{path:`metadata.eventTime`}],rc=[{path:`data.location.address`}],ic=[{path:`entity.mainImage`}],ac=[{path:`entity.createdDate`},{path:`entity.updatedDate`},{path:`entity.publishedDate`},{path:`entity.dateAndTimeSettings.startDate`},{path:`entity.dateAndTimeSettings.endDate`},{path:`entity.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`entity.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`},{path:`entity.registration.rsvp.startDate`},{path:`entity.registration.rsvp.endDate`},{path:`entity.summaries.cancellation.canceledDate`},{path:`entity.categories.categories.createdDate`},{path:`entity.description.metadata.createdTimestamp`},{path:`entity.description.metadata.updatedTimestamp`},{path:`entity.badges.badges.functionUpdateDate`},{path:`metadata.eventTime`}],oc=[{path:`entity.eventPageUrl`},{path:`entity.agendaSettings.pageUrl`}],sc=[{path:`entity.location.address`}],cc=[{path:`entity.description.nodes.buttonData.styles.background.gradient.centerX`},{path:`entity.description.nodes.buttonData.styles.background.gradient.centerY`},{path:`entity.description.nodes.buttonData.styles.background.gradient.stops.position`},{path:`entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX`},{path:`entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY`},{path:`entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position`},{path:`entity.description.nodes.galleryData.items.image.media.duration`},{path:`entity.description.nodes.galleryData.items.video.media.duration`},{path:`entity.description.nodes.galleryData.items.video.thumbnail.duration`},{path:`entity.description.nodes.galleryData.options.item.ratio`},{path:`entity.description.nodes.imageData.image.duration`},{path:`entity.description.nodes.imageData.crop.x`},{path:`entity.description.nodes.imageData.crop.y`},{path:`entity.description.nodes.imageData.crop.width`},{path:`entity.description.nodes.imageData.crop.height`},{path:`entity.description.nodes.mapData.mapSettings.lat`},{path:`entity.description.nodes.mapData.mapSettings.lng`},{path:`entity.description.nodes.pollData.poll.image.duration`},{path:`entity.description.nodes.pollData.poll.options.image.duration`},{path:`entity.description.nodes.pollData.design.poll.background.image.duration`},{path:`entity.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.nodes.appEmbedData.image.duration`},{path:`entity.description.nodes.videoData.video.duration`},{path:`entity.description.nodes.videoData.thumbnail.duration`},{path:`entity.description.nodes.audioData.audio.duration`},{path:`entity.description.nodes.audioData.coverImage.duration`},{path:`entity.description.nodes.layoutData.backgroundImage.media.duration`},{path:`entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX`},{path:`entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY`},{path:`entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position`},{path:`entity.description.nodes.layoutData.backdropImage.media.duration`},{path:`entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX`},{path:`entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY`},{path:`entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position`},{path:`entity.description.nodes.layoutData.background.gradient.centerX`},{path:`entity.description.nodes.layoutData.background.gradient.centerY`},{path:`entity.description.nodes.layoutData.background.gradient.stops.position`},{path:`entity.description.nodes.layoutData.backdrop.gradient.centerX`},{path:`entity.description.nodes.layoutData.backdrop.gradient.centerY`},{path:`entity.description.nodes.layoutData.backdrop.gradient.stops.position`},{path:`entity.description.nodes.shapeData.shape.duration`},{path:`entity.description.nodes.cardData.background.gradient.centerX`},{path:`entity.description.nodes.cardData.background.gradient.centerY`},{path:`entity.description.nodes.cardData.background.gradient.stops.position`},{path:`entity.description.nodes.cardData.backgroundImage.media.duration`},{path:`entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX`},{path:`entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY`},{path:`entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position`},{path:`entity.description.nodes.tocData.fontSize`},{path:`entity.description.nodes.tocData.itemSpacing`},{path:`entity.description.nodes.smartBlockCellData.shape.duration`},{path:`entity.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position`}],lc=[{path:`undefined.mainImage`}],uc=[{path:`undefined.createdDate`},{path:`undefined.updatedDate`},{path:`undefined.publishedDate`},{path:`undefined.dateAndTimeSettings.startDate`},{path:`undefined.dateAndTimeSettings.endDate`},{path:`undefined.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`undefined.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`},{path:`undefined.registration.rsvp.startDate`},{path:`undefined.registration.rsvp.endDate`},{path:`undefined.summaries.cancellation.canceledDate`},{path:`undefined.categories.categories.createdDate`},{path:`undefined.description.metadata.createdTimestamp`},{path:`undefined.description.metadata.updatedTimestamp`},{path:`undefined.badges.badges.functionUpdateDate`},{path:`metadata.eventTime`}],dc=[{path:`undefined.eventPageUrl`},{path:`undefined.agendaSettings.pageUrl`}],fc=[{path:`undefined.location.address`}],pc=[{path:`undefined.description.nodes.buttonData.styles.background.gradient.centerX`},{path:`undefined.description.nodes.buttonData.styles.background.gradient.centerY`},{path:`undefined.description.nodes.buttonData.styles.background.gradient.stops.position`},{path:`undefined.description.nodes.buttonData.styles.backgroundHover.gradient.centerX`},{path:`undefined.description.nodes.buttonData.styles.backgroundHover.gradient.centerY`},{path:`undefined.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position`},{path:`undefined.description.nodes.galleryData.items.image.media.duration`},{path:`undefined.description.nodes.galleryData.items.video.media.duration`},{path:`undefined.description.nodes.galleryData.items.video.thumbnail.duration`},{path:`undefined.description.nodes.galleryData.options.item.ratio`},{path:`undefined.description.nodes.imageData.image.duration`},{path:`undefined.description.nodes.imageData.crop.x`},{path:`undefined.description.nodes.imageData.crop.y`},{path:`undefined.description.nodes.imageData.crop.width`},{path:`undefined.description.nodes.imageData.crop.height`},{path:`undefined.description.nodes.mapData.mapSettings.lat`},{path:`undefined.description.nodes.mapData.mapSettings.lng`},{path:`undefined.description.nodes.pollData.poll.image.duration`},{path:`undefined.description.nodes.pollData.poll.options.image.duration`},{path:`undefined.description.nodes.pollData.design.poll.background.image.duration`},{path:`undefined.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.nodes.appEmbedData.image.duration`},{path:`undefined.description.nodes.videoData.video.duration`},{path:`undefined.description.nodes.videoData.thumbnail.duration`},{path:`undefined.description.nodes.audioData.audio.duration`},{path:`undefined.description.nodes.audioData.coverImage.duration`},{path:`undefined.description.nodes.layoutData.backgroundImage.media.duration`},{path:`undefined.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX`},{path:`undefined.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY`},{path:`undefined.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position`},{path:`undefined.description.nodes.layoutData.backdropImage.media.duration`},{path:`undefined.description.nodes.layoutData.backdropImage.overlay.gradient.centerX`},{path:`undefined.description.nodes.layoutData.backdropImage.overlay.gradient.centerY`},{path:`undefined.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position`},{path:`undefined.description.nodes.layoutData.background.gradient.centerX`},{path:`undefined.description.nodes.layoutData.background.gradient.centerY`},{path:`undefined.description.nodes.layoutData.background.gradient.stops.position`},{path:`undefined.description.nodes.layoutData.backdrop.gradient.centerX`},{path:`undefined.description.nodes.layoutData.backdrop.gradient.centerY`},{path:`undefined.description.nodes.layoutData.backdrop.gradient.stops.position`},{path:`undefined.description.nodes.shapeData.shape.duration`},{path:`undefined.description.nodes.cardData.background.gradient.centerX`},{path:`undefined.description.nodes.cardData.background.gradient.centerY`},{path:`undefined.description.nodes.cardData.background.gradient.stops.position`},{path:`undefined.description.nodes.cardData.backgroundImage.media.duration`},{path:`undefined.description.nodes.cardData.backgroundImage.overlay.gradient.centerX`},{path:`undefined.description.nodes.cardData.backgroundImage.overlay.gradient.centerY`},{path:`undefined.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position`},{path:`undefined.description.nodes.tocData.fontSize`},{path:`undefined.description.nodes.tocData.itemSpacing`},{path:`undefined.description.nodes.smartBlockCellData.shape.duration`},{path:`undefined.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position`}],mc=[{path:`data.timestamp`},{path:`data.dateAndTimeSettings.startDate`},{path:`data.dateAndTimeSettings.endDate`},{path:`data.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`data.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`},{path:`data.registration.rsvp.startDate`},{path:`data.registration.rsvp.endDate`},{path:`metadata.eventTime`}],hc=[{path:`data.eventPageUrl`}];function gc(e){return(t,n)=>Bs(t,n,{httpClient:e})}function _c(e){return(t,n)=>Vs(t,n,{httpClient:e})}function vc(e){return(t,n)=>Hs(t,n,{httpClient:e})}function yc(e){return(t,n)=>Us(t,n,{httpClient:e})}function bc(e){return(t,n)=>Ws(t,n,{httpClient:e})}function xc(e){return t=>Gs(t,{httpClient:e})}function Sc(e){return t=>Ks(t,{httpClient:e})}function Cc(e){return t=>qs(t,{httpClient:e})}function wc(e){return t=>Js(t,{httpClient:e})}function Tc(e){return(t,n)=>Ys(t,n,{httpClient:e})}function Ec(e){return t=>Zs(t,{httpClient:e})}function Dc(e){return(t,n)=>Qs(t,n,{httpClient:e})}function Oc(e){return(t,n)=>$s(t,n,{httpClient:e})}function kc(e){return(t,n)=>ec(t,n,{httpClient:e})}var Ac=m(`wix.events.v3.event_canceled`,!0,e=>U(G(e,[{transformFn:W,paths:tc}])))(),jc=m(`wix.events.v3.event_cloned`,!0,e=>U(G(e,[{transformFn:W,paths:nc},{transformFn:$t,paths:rc}])))(),Mc=m(`wix.events.v3.event_created`,!0,e=>U(G(e,[{transformFn:$n,paths:ic},{transformFn:W,paths:ac},{transformFn:Cn,paths:oc},{transformFn:$t,paths:sc},{transformFn:Zt,paths:cc}])))(),Nc=m(`wix.events.v3.event_deleted`,!0,e=>U(G(e,[{transformFn:$n,paths:lc},{transformFn:W,paths:uc},{transformFn:Cn,paths:dc},{transformFn:$t,paths:fc},{transformFn:Zt,paths:pc}])))(),Pc=m(`wix.events.v3.event_ended`,!0,e=>U(G(e,[{transformFn:W,paths:tc}])))(),Fc=m(`wix.events.v3.event_published`,!0,e=>U(G(e,[{transformFn:W,paths:mc},{transformFn:Cn,paths:hc},{transformFn:$t,paths:rc}])))(),Ic=m(`wix.events.v3.event_reminder`,!0,e=>U(G(e,[{transformFn:W,paths:nc},{transformFn:$t,paths:rc}])))(),Lc=m(`wix.events.v3.event_started`,!0,e=>U(G(e,[{transformFn:W,paths:tc}])))(),Rc=m(`wix.events.v3.event_updated`,!0,e=>U(G(e,[{transformFn:$n,paths:ic},{transformFn:W,paths:ac},{transformFn:Cn,paths:oc},{transformFn:$t,paths:sc},{transformFn:Zt,paths:cc}])))();function zc(e){let t=Yn({builderQueryFunction:t=>wc(e)(t),typedQueryFunction:(t,n)=>Tc(e)(t,n),hasOptionsParameter:!0});function n(e,n){return t(...arguments)}return n}var Bc=q(gc),Vc=q(_c),Hc=q(vc),Uc=q(yc),Wc=q(bc),Gc=q(xc),Kc=q(Sc),qc=q(Cc),Jc=q(Ec),Yc=q(Dc),Xc=q(Oc),Zc=q(kc),Qc=q(zc),$c=Yt(Ac),el=Yt(jc),tl=Yt(Mc),nl=Yt(Nc),rl=Yt(Pc),il=Yt(Fc),al=Yt(Ic),ol=Yt(Lc),sl=Yt(Rc),cl=f({Alignment:()=>Bu,AnimationType:()=>cu,AppType:()=>Hu,AspectRatio:()=>Iu,BackdropType:()=>ed,BackgroundType:()=>nu,BannerPosition:()=>Zu,ButtonDataType:()=>ou,CancellationActorType:()=>Bl,CardDataBackgroundType:()=>od,CardStylesType:()=>zu,CategoryStateState:()=>eu,CheckoutType:()=>Yl,ColorDataBackgroundType:()=>Nu,ColumnSize:()=>ud,ConferenceType:()=>$l,Crop:()=>xu,DecorationType:()=>Mu,DeleteStatus:()=>hd,DesignTarget:()=>rd,Direction:()=>Wu,DividerDataAlignment:()=>_u,EntranceEffectType:()=>lu,EventStatus:()=>Wl,EventType:()=>Gl,EventsRecurrenceStatusStatus:()=>Ul,FeeTypeEnumType:()=>Ml,Field:()=>Rl,FontType:()=>pu,GIFType:()=>Cu,GradientType:()=>ru,ImagePosition:()=>Ju,ImagePositionPosition:()=>ad,ImageScalingScaling:()=>qu,Indentation:()=>cd,InitialExpandedItems:()=>Uu,InputControlType:()=>Zl,LayerEffect:()=>Qu,Layout:()=>Vu,LayoutDataBackgroundType:()=>Yu,LayoutType:()=>yu,LineCap:()=>mu,LineStyle:()=>hu,ListStyle:()=>sd,LocationLocationType:()=>Vl,LocationType:()=>Pl,LoopEffectType:()=>uu,MapType:()=>Eu,Namespace:()=>md,NodeType:()=>tu,NullValue:()=>Ku,Orientation:()=>bu,Origin:()=>Xu,Placement:()=>Ru,PluginContainerDataAlignment:()=>au,PointerEffectType:()=>du,PollDesignBackgroundType:()=>ju,PollLayoutDirection:()=>Au,PollLayoutType:()=>ku,Position:()=>Fu,PricingTypeEnumType:()=>jl,RecurrenceStatusStatus:()=>Il,RegistrationStatus:()=>Kl,Resizing:()=>Lu,ResponsivenessBehaviour:()=>nd,RsvpStatusOptions:()=>ql,SaleStatusEnumStatus:()=>Nl,Scaling:()=>id,Shape:()=>$u,SiteCreatedContext:()=>pd,SmartBlockDataType:()=>ld,SortOrder:()=>zl,Source:()=>wu,State:()=>fd,Status:()=>Ll,StylesPosition:()=>Tu,SubdivisionSubdivisionType:()=>Fl,SubdivisionType:()=>Hl,Target:()=>su,TaxType:()=>Jl,TextAlignment:()=>fu,ThumbnailsAlignment:()=>Su,Type:()=>dd,ValueType:()=>Ql,Variant:()=>Pu,VerticalAlignment:()=>Gu,VerticalAlignmentAlignment:()=>td,ViewMode:()=>vu,ViewRole:()=>Du,VisitorType:()=>Xl,VoteRole:()=>Ou,WebhookIdentityType:()=>gd,Width:()=>gu,WidthType:()=>iu,bulkDeleteTicketDefinitionsByFilter:()=>mf,changeCurrency:()=>hf,countAvailableTicketDefinitions:()=>pf,countTicketDefinitions:()=>ff,createTicketDefinition:()=>of,deleteTicketDefinition:()=>lf,getTicketDefinition:()=>cf,onTicketDefinitionCreated:()=>_f,onTicketDefinitionDeleted:()=>vf,onTicketDefinitionSaleEnded:()=>yf,onTicketDefinitionSalePeriodUpdated:()=>bf,onTicketDefinitionSaleStarted:()=>xf,onTicketDefinitionUpdated:()=>Sf,queryAvailableTicketDefinitions:()=>df,queryTicketDefinitions:()=>gf,reorderTicketDefinitions:()=>uf,updateTicketDefinition:()=>sf,utils:()=>wd}),ll=[{path:`ticketDefinition.createdDate`},{path:`ticketDefinition.updatedDate`},{path:`ticketDefinition.eventCreatedDate`},{path:`ticketDefinition.salePeriod.startDate`},{path:`ticketDefinition.salePeriod.endDate`},{path:`ticketDefinition.eventDetails.dateAndTimeSettings.startDate`},{path:`ticketDefinition.eventDetails.dateAndTimeSettings.endDate`},{path:`ticketDefinition.eventDetails.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`ticketDefinition.eventDetails.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`}],ul=[{path:`ticketDefinition.eventDetails.location.address.geocode.latitude`},{path:`ticketDefinition.eventDetails.location.address.geocode.longitude`}],dl=[{path:`mask`}],fl=[{path:`ticketDefinitions.createdDate`},{path:`ticketDefinitions.updatedDate`},{path:`ticketDefinitions.eventCreatedDate`},{path:`ticketDefinitions.salePeriod.startDate`},{path:`ticketDefinitions.salePeriod.endDate`},{path:`ticketDefinitions.eventDetails.dateAndTimeSettings.startDate`},{path:`ticketDefinitions.eventDetails.dateAndTimeSettings.endDate`},{path:`ticketDefinitions.eventDetails.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`ticketDefinitions.eventDetails.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`}],pl=[{path:`ticketDefinitions.eventDetails.location.address.geocode.latitude`},{path:`ticketDefinitions.eventDetails.location.address.geocode.longitude`}];function ml(e){return Ct(Object.assign(e,{domainToMappings:{"*.dev.wix-code.com":[{srcPath:`/_api/events-ticket-definitions`,destPath:``}],"editor.wixapps.net":[{srcPath:`/_api/events-ticket-definitions`,destPath:``}],"manage._base_domain_":[{srcPath:`/_api/events-ticket-definitions`,destPath:``}],"www.wixapis.com":[{srcPath:`/events-ticket-definitions`,destPath:``},{srcPath:`/events/v3/ticket-definitions`,destPath:`/v3/ticket-definitions`},{srcPath:`/events/v3/bulk/ticket-definitions`,destPath:`/v3/bulk/ticket-definitions`}],"api._api_base_domain_":[{srcPath:`/events-ticket-definitions`,destPath:``}],"events.wixapps.net":[{srcPath:`/_api/events-ticket-definitions`,destPath:``}],_:[{srcPath:`/_api/events-ticket-definitions`,destPath:``}],"www._base_domain_":[{srcPath:`/_api/events-ticket-definitions`,destPath:``}]}}))}var hl=`@wix/auto_sdk_events_ticket-definitions-v-2`;function gl(e){function t({host:t}){let n=G(e,[{transformFn:Ve,paths:ll},{transformFn:Xt,paths:ul}]);return{entityFqdn:`wix.events.v3.ticket_definition`,method:`POST`,methodFqn:`wix.events.ticketdef.v3.TicketDefinitionManagement.CreateTicketDefinition`,packageName:hl,migrationOptions:{optInTransformResponse:!0},url:ml({protoPath:`/v3/ticket-definitions`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:ll},{transformFn:Zt,paths:ul}])}}return t}function _l(e){function t({host:t}){let n=G(e,[{transformFn:en,paths:dl},{transformFn:Ve,paths:ll},{transformFn:Xt,paths:ul}]);return{entityFqdn:`wix.events.v3.ticket_definition`,method:`PATCH`,methodFqn:`wix.events.ticketdef.v3.TicketDefinitionManagement.UpdateTicketDefinition`,packageName:hl,migrationOptions:{optInTransformResponse:!0},url:ml({protoPath:`/v3/ticket-definitions/{ticketDefinition.id}`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:ll},{transformFn:Zt,paths:ul}])}}return t}function vl(e){function t({host:t}){return{entityFqdn:`wix.events.v3.ticket_definition`,method:`GET`,methodFqn:`wix.events.ticketdef.v3.TicketDefinitionManagement.GetTicketDefinition`,packageName:hl,migrationOptions:{optInTransformResponse:!0},url:ml({protoPath:`/v3/ticket-definitions/{ticketDefinitionId}`,data:e,host:t}),params:St(e),transformResponse:e=>G(e,[{transformFn:W,paths:ll},{transformFn:Zt,paths:ul}])}}return t}function yl(e){function t({host:t}){return{entityFqdn:`wix.events.v3.ticket_definition`,method:`DELETE`,methodFqn:`wix.events.ticketdef.v3.TicketDefinitionManagement.DeleteTicketDefinition`,packageName:hl,migrationOptions:{optInTransformResponse:!0},url:ml({protoPath:`/v3/ticket-definitions/{ticketDefinitionId}`,data:e,host:t}),params:St(e)}}return t}function bl(e){function t({host:t}){return{entityFqdn:`wix.events.v3.ticket_definition`,method:`POST`,methodFqn:`wix.events.ticketdef.v3.TicketDefinitionManagement.ReorderTicketDefinitions`,packageName:hl,migrationOptions:{optInTransformResponse:!0},url:ml({protoPath:`/v3/ticket-definitions/reorder`,data:e,host:t}),data:e}}return t}function xl(e){function t({host:t}){return{entityFqdn:`wix.events.v3.ticket_definition`,method:`POST`,methodFqn:`wix.events.ticketdef.v3.TicketDefinitionManagement.QueryTicketDefinitions`,packageName:hl,migrationOptions:{optInTransformResponse:!0},url:ml({protoPath:`/v3/ticket-definitions/query`,data:e,host:t}),data:e,transformResponse:e=>G(e,[{transformFn:W,paths:fl},{transformFn:Zt,paths:pl}])}}return t}function Sl(e){function t({host:t}){return{entityFqdn:`wix.events.v3.ticket_definition`,method:`POST`,methodFqn:`wix.events.ticketdef.v3.TicketDefinitionManagement.QueryAvailableTicketDefinitions`,packageName:hl,migrationOptions:{optInTransformResponse:!0},url:ml({protoPath:`/v3/ticket-definitions/available/query`,data:e,host:t}),data:e,transformResponse:e=>G(e,[{transformFn:W,paths:fl},{transformFn:Zt,paths:pl}])}}return t}function Cl(e){function t({host:t}){return{entityFqdn:`wix.events.v3.ticket_definition`,method:`POST`,methodFqn:`wix.events.ticketdef.v3.TicketDefinitionManagement.CountTicketDefinitions`,packageName:hl,migrationOptions:{optInTransformResponse:!0},url:ml({protoPath:`/v3/ticket-definitions/count`,data:e,host:t}),data:e}}return t}function wl(e){function t({host:t}){return{entityFqdn:`wix.events.v3.ticket_definition`,method:`POST`,methodFqn:`wix.events.ticketdef.v3.TicketDefinitionManagement.CountAvailableTicketDefinitions`,packageName:hl,migrationOptions:{optInTransformResponse:!0},url:ml({protoPath:`/v3/ticket-definitions/available/count`,data:e,host:t}),data:e}}return t}function Tl(e){function t({host:t}){return{entityFqdn:`wix.events.v3.ticket_definition`,method:`POST`,methodFqn:`wix.events.ticketdef.v3.TicketDefinitionManagement.BulkDeleteTicketDefinitionsByFilter`,packageName:hl,migrationOptions:{optInTransformResponse:!0},url:ml({protoPath:`/v3/bulk/ticket-definitions/delete`,data:e,host:t}),data:e}}return t}function El(e){function t({host:t}){return{entityFqdn:`wix.events.v3.ticket_definition`,method:`POST`,methodFqn:`wix.events.ticketdef.v3.TicketDefinitionManagement.ChangeCurrency`,packageName:hl,migrationOptions:{optInTransformResponse:!0},url:ml({protoPath:`/v3/ticket-definitions/currency`,data:e,host:t}),data:e}}return t}var Dl=[{path:`ticketDefinition.eventDetails.eventPageUrl`}],Ol=[{path:`ticketDefinition.eventDetails.location.address`}],kl=[{path:`ticketDefinitions.eventDetails.eventPageUrl`}],Al=[{path:`ticketDefinitions.eventDetails.location.address`}],jl=(e=>(e.STANDARD=`STANDARD`,e.DONATION=`DONATION`,e))(jl||{}),Ml=(e=>(e.FEE_INCLUDED=`FEE_INCLUDED`,e.FEE_ADDED_AT_CHECKOUT=`FEE_ADDED_AT_CHECKOUT`,e.NO_FEE=`NO_FEE`,e))(Ml||{}),Nl=(e=>(e.SALE_SCHEDULED=`SALE_SCHEDULED`,e.SALE_STARTED=`SALE_STARTED`,e.SALE_ENDED=`SALE_ENDED`,e))(Nl||{}),Pl=(e=>(e.VENUE=`VENUE`,e.ONLINE=`ONLINE`,e))(Pl||{}),Fl=(e=>(e.UNKNOWN_SUBDIVISION_TYPE=`UNKNOWN_SUBDIVISION_TYPE`,e.ADMINISTRATIVE_AREA_LEVEL_1=`ADMINISTRATIVE_AREA_LEVEL_1`,e.ADMINISTRATIVE_AREA_LEVEL_2=`ADMINISTRATIVE_AREA_LEVEL_2`,e.ADMINISTRATIVE_AREA_LEVEL_3=`ADMINISTRATIVE_AREA_LEVEL_3`,e.ADMINISTRATIVE_AREA_LEVEL_4=`ADMINISTRATIVE_AREA_LEVEL_4`,e.ADMINISTRATIVE_AREA_LEVEL_5=`ADMINISTRATIVE_AREA_LEVEL_5`,e.COUNTRY=`COUNTRY`,e))(Fl||{}),Il=(e=>(e.ONE_TIME=`ONE_TIME`,e.RECURRING=`RECURRING`,e.RECURRING_UPCOMING=`RECURRING_UPCOMING`,e.RECURRING_RECENTLY_ENDED=`RECURRING_RECENTLY_ENDED`,e.RECURRING_RECENTLY_CANCELED=`RECURRING_RECENTLY_CANCELED`,e))(Il||{}),Ll=(e=>(e.UPCOMING=`UPCOMING`,e.STARTED=`STARTED`,e.ENDED=`ENDED`,e.CANCELED=`CANCELED`,e.DRAFT=`DRAFT`,e))(Ll||{}),Rl=(e=>(e.SALES_DETAILS=`SALES_DETAILS`,e.EVENT_DETAILS=`EVENT_DETAILS`,e.SEATING_DETAILS=`SEATING_DETAILS`,e))(Rl||{}),zl=(e=>(e.ASC=`ASC`,e.DESC=`DESC`,e))(zl||{}),Bl=(e=>(e.USER=`USER`,e.APP=`APP`,e.SYSTEM=`SYSTEM`,e))(Bl||{}),Vl=(e=>(e.VENUE=`VENUE`,e.ONLINE=`ONLINE`,e))(Vl||{}),Hl=(e=>(e.UNKNOWN_SUBDIVISION_TYPE=`UNKNOWN_SUBDIVISION_TYPE`,e.ADMINISTRATIVE_AREA_LEVEL_1=`ADMINISTRATIVE_AREA_LEVEL_1`,e.ADMINISTRATIVE_AREA_LEVEL_2=`ADMINISTRATIVE_AREA_LEVEL_2`,e.ADMINISTRATIVE_AREA_LEVEL_3=`ADMINISTRATIVE_AREA_LEVEL_3`,e.ADMINISTRATIVE_AREA_LEVEL_4=`ADMINISTRATIVE_AREA_LEVEL_4`,e.ADMINISTRATIVE_AREA_LEVEL_5=`ADMINISTRATIVE_AREA_LEVEL_5`,e.COUNTRY=`COUNTRY`,e))(Hl||{}),Ul=(e=>(e.ONE_TIME=`ONE_TIME`,e.RECURRING=`RECURRING`,e.RECURRING_NEXT=`RECURRING_NEXT`,e.RECURRING_LAST_ENDED=`RECURRING_LAST_ENDED`,e.RECURRING_LAST_CANCELED=`RECURRING_LAST_CANCELED`,e))(Ul||{}),Wl=(e=>(e.SCHEDULED=`SCHEDULED`,e.STARTED=`STARTED`,e.ENDED=`ENDED`,e.CANCELED=`CANCELED`,e.DRAFT=`DRAFT`,e))(Wl||{}),Gl=(e=>(e.NA_EVENT_TYPE=`NA_EVENT_TYPE`,e.RSVP=`RSVP`,e.TICKETS=`TICKETS`,e.EXTERNAL=`EXTERNAL`,e.NO_REGISTRATION=`NO_REGISTRATION`,e.RSVP_AND_TICKETS=`RSVP_AND_TICKETS`,e))(Gl||{}),Kl=(e=>(e.NA_REGISTRATION_STATUS=`NA_REGISTRATION_STATUS`,e.CLOSED=`CLOSED`,e.CLOSED_MANUALLY=`CLOSED_MANUALLY`,e.OPEN_RSVP=`OPEN_RSVP`,e.OPEN_RSVP_WAITLIST=`OPEN_RSVP_WAITLIST`,e.OPEN_TICKETS=`OPEN_TICKETS`,e.OPEN_EXTERNAL=`OPEN_EXTERNAL`,e.SCHEDULED_RSVP=`SCHEDULED_RSVP`,e.OPEN_RSVP_AND_TICKETS=`OPEN_RSVP_AND_TICKETS`,e))(Kl||{}),ql=(e=>(e.YES_ONLY=`YES_ONLY`,e.YES_AND_NO=`YES_AND_NO`,e))(ql||{}),Jl=(e=>(e.INCLUDED=`INCLUDED`,e.ADDED=`ADDED`,e.ADDED_AT_CHECKOUT=`ADDED_AT_CHECKOUT`,e))(Jl||{}),Yl=(e=>(e.EVENTS_APP=`EVENTS_APP`,e.ECOMM_PLATFORM=`ECOMM_PLATFORM`,e))(Yl||{}),Xl=(e=>(e.VISITOR=`VISITOR`,e.MEMBER=`MEMBER`,e.VISITOR_OR_MEMBER=`VISITOR_OR_MEMBER`,e))(Xl||{}),Zl=(e=>(e.INPUT=`INPUT`,e.TEXTAREA=`TEXTAREA`,e.DROPDOWN=`DROPDOWN`,e.RADIO=`RADIO`,e.CHECKBOX=`CHECKBOX`,e.NAME=`NAME`,e.GUEST_CONTROL=`GUEST_CONTROL`,e.ADDRESS_SHORT=`ADDRESS_SHORT`,e.ADDRESS_FULL=`ADDRESS_FULL`,e.DATE=`DATE`,e))(Zl||{}),Ql=(e=>(e.TEXT=`TEXT`,e.NUMBER=`NUMBER`,e.TEXT_ARRAY=`TEXT_ARRAY`,e.DATE_TIME=`DATE_TIME`,e.ADDRESS=`ADDRESS`,e))(Ql||{}),$l=(e=>(e.MEETING=`MEETING`,e.WEBINAR=`WEBINAR`,e))($l||{}),eu=(e=>(e.MANUAL=`MANUAL`,e.AUTO=`AUTO`,e.RECURRING_EVENT=`RECURRING_EVENT`,e.HIDDEN=`HIDDEN`,e.COMPONENT=`COMPONENT`,e))(eu||{}),tu=(e=>(e.PARAGRAPH=`PARAGRAPH`,e.TEXT=`TEXT`,e.HEADING=`HEADING`,e.BULLETED_LIST=`BULLETED_LIST`,e.ORDERED_LIST=`ORDERED_LIST`,e.LIST_ITEM=`LIST_ITEM`,e.BLOCKQUOTE=`BLOCKQUOTE`,e.CODE_BLOCK=`CODE_BLOCK`,e.VIDEO=`VIDEO`,e.DIVIDER=`DIVIDER`,e.FILE=`FILE`,e.GALLERY=`GALLERY`,e.GIF=`GIF`,e.HTML=`HTML`,e.IMAGE=`IMAGE`,e.LINK_PREVIEW=`LINK_PREVIEW`,e.MAP=`MAP`,e.POLL=`POLL`,e.APP_EMBED=`APP_EMBED`,e.BUTTON=`BUTTON`,e.COLLAPSIBLE_LIST=`COLLAPSIBLE_LIST`,e.TABLE=`TABLE`,e.EMBED=`EMBED`,e.COLLAPSIBLE_ITEM=`COLLAPSIBLE_ITEM`,e.COLLAPSIBLE_ITEM_TITLE=`COLLAPSIBLE_ITEM_TITLE`,e.COLLAPSIBLE_ITEM_BODY=`COLLAPSIBLE_ITEM_BODY`,e.TABLE_CELL=`TABLE_CELL`,e.TABLE_ROW=`TABLE_ROW`,e.EXTERNAL=`EXTERNAL`,e.AUDIO=`AUDIO`,e.CAPTION=`CAPTION`,e.LAYOUT=`LAYOUT`,e.LAYOUT_CELL=`LAYOUT_CELL`,e.SHAPE=`SHAPE`,e.CARD=`CARD`,e.TOC=`TOC`,e.SMART_BLOCK=`SMART_BLOCK`,e.SMART_BLOCK_CELL=`SMART_BLOCK_CELL`,e.CHECKBOX_LIST=`CHECKBOX_LIST`,e.SLOT=`SLOT`,e))(tu||{}),nu=(e=>(e.COLOR=`COLOR`,e.GRADIENT=`GRADIENT`,e))(nu||{}),ru=(e=>(e.LINEAR=`LINEAR`,e.RADIAL=`RADIAL`,e))(ru||{}),iu=(e=>(e.CONTENT=`CONTENT`,e.SMALL=`SMALL`,e.ORIGINAL=`ORIGINAL`,e.FULL_WIDTH=`FULL_WIDTH`,e))(iu||{}),au=(e=>(e.CENTER=`CENTER`,e.LEFT=`LEFT`,e.RIGHT=`RIGHT`,e))(au||{}),ou=(e=>(e.LINK=`LINK`,e.ACTION=`ACTION`,e))(ou||{}),su=(e=>(e.SELF=`SELF`,e.BLANK=`BLANK`,e.PARENT=`PARENT`,e.TOP=`TOP`,e))(su||{}),cu=(e=>(e.VIEW=`VIEW`,e.POINTER=`POINTER`,e))(cu||{}),lu=(e=>(e.FADE=`FADE`,e.ARC=`ARC`,e.BLUR=`BLUR`,e.BOUNCE=`BOUNCE`,e.DROP=`DROP`,e.EXPAND=`EXPAND`,e.FLIP=`FLIP`,e.FLOAT=`FLOAT`,e.FOLD=`FOLD`,e.GLIDE=`GLIDE`,e.REVEAL=`REVEAL`,e.SHAPE=`SHAPE`,e.SHUTTERS=`SHUTTERS`,e.SLIDE=`SLIDE`,e.SPIN=`SPIN`,e.TILT=`TILT`,e.TURN=`TURN`,e.WINK=`WINK`,e))(lu||{}),uu=(e=>(e.BOUNCE=`BOUNCE`,e.BREATHE=`BREATHE`,e.CROSS=`CROSS`,e.FLASH=`FLASH`,e.FLIP=`FLIP`,e.FOLD=`FOLD`,e.JELLO=`JELLO`,e.POKE=`POKE`,e.PULSE=`PULSE`,e.RUBBER=`RUBBER`,e.SPIN=`SPIN`,e.SWING=`SWING`,e.WIGGLE=`WIGGLE`,e))(uu||{}),du=(e=>(e.AIRY=`AIRY`,e.BLOB=`BLOB`,e.BLUR=`BLUR`,e.SCALE=`SCALE`,e.SKEW=`SKEW`,e.SWIVEL=`SWIVEL`,e.TILT_3D=`TILT_3D`,e.TRACK=`TRACK`,e.TRACK_3D=`TRACK_3D`,e))(du||{}),fu=(e=>(e.AUTO=`AUTO`,e.LEFT=`LEFT`,e.RIGHT=`RIGHT`,e.CENTER=`CENTER`,e.JUSTIFY=`JUSTIFY`,e))(fu||{}),pu=(e=>(e.PX=`PX`,e.EM=`EM`,e))(pu||{}),mu=(e=>(e.SQUARE=`SQUARE`,e.ROUND=`ROUND`,e))(mu||{}),hu=(e=>(e.SINGLE=`SINGLE`,e.DOUBLE=`DOUBLE`,e.DASHED=`DASHED`,e.DOTTED=`DOTTED`,e))(hu||{}),gu=(e=>(e.LARGE=`LARGE`,e.MEDIUM=`MEDIUM`,e.SMALL=`SMALL`,e))(gu||{}),_u=(e=>(e.CENTER=`CENTER`,e.LEFT=`LEFT`,e.RIGHT=`RIGHT`,e))(_u||{}),vu=(e=>(e.NONE=`NONE`,e.FULL=`FULL`,e.MINI=`MINI`,e))(vu||{}),yu=(e=>(e.COLLAGE=`COLLAGE`,e.MASONRY=`MASONRY`,e.GRID=`GRID`,e.THUMBNAIL=`THUMBNAIL`,e.SLIDER=`SLIDER`,e.SLIDESHOW=`SLIDESHOW`,e.PANORAMA=`PANORAMA`,e.COLUMN=`COLUMN`,e.MAGIC=`MAGIC`,e.FULLSIZE=`FULLSIZE`,e))(yu||{}),bu=(e=>(e.ROWS=`ROWS`,e.COLUMNS=`COLUMNS`,e))(bu||{}),xu=(e=>(e.FILL=`FILL`,e.FIT=`FIT`,e))(xu||{}),Su=(e=>(e.TOP=`TOP`,e.RIGHT=`RIGHT`,e.BOTTOM=`BOTTOM`,e.LEFT=`LEFT`,e.NONE=`NONE`,e))(Su||{}),Cu=(e=>(e.NORMAL=`NORMAL`,e.STICKER=`STICKER`,e))(Cu||{}),wu=(e=>(e.HTML=`HTML`,e.ADSENSE=`ADSENSE`,e.AI=`AI`,e.AI_WIDGET=`AI_WIDGET`,e))(wu||{}),Tu=(e=>(e.START=`START`,e.END=`END`,e.TOP=`TOP`,e.HIDDEN=`HIDDEN`,e))(Tu||{}),Eu=(e=>(e.ROADMAP=`ROADMAP`,e.SATELITE=`SATELITE`,e.HYBRID=`HYBRID`,e.TERRAIN=`TERRAIN`,e))(Eu||{}),Du=(e=>(e.CREATOR=`CREATOR`,e.VOTERS=`VOTERS`,e.EVERYONE=`EVERYONE`,e))(Du||{}),Ou=(e=>(e.SITE_MEMBERS=`SITE_MEMBERS`,e.ALL=`ALL`,e))(Ou||{}),ku=(e=>(e.LIST=`LIST`,e.GRID=`GRID`,e))(ku||{}),Au=(e=>(e.LTR=`LTR`,e.RTL=`RTL`,e))(Au||{}),ju=(e=>(e.COLOR=`COLOR`,e.IMAGE=`IMAGE`,e.GRADIENT=`GRADIENT`,e))(ju||{}),Mu=(e=>(e.BOLD=`BOLD`,e.ITALIC=`ITALIC`,e.UNDERLINE=`UNDERLINE`,e.SPOILER=`SPOILER`,e.ANCHOR=`ANCHOR`,e.MENTION=`MENTION`,e.LINK=`LINK`,e.COLOR=`COLOR`,e.FONT_SIZE=`FONT_SIZE`,e.EXTERNAL=`EXTERNAL`,e.STRIKETHROUGH=`STRIKETHROUGH`,e.SUPERSCRIPT=`SUPERSCRIPT`,e.SUBSCRIPT=`SUBSCRIPT`,e.FONT_FAMILY=`FONT_FAMILY`,e.SKETCH=`SKETCH`,e))(Mu||{}),Nu=(e=>(e.COLOR=`COLOR`,e.GRADIENT=`GRADIENT`,e))(Nu||{}),Pu=(e=>(e.UNDERLINE=`UNDERLINE`,e.BOX=`BOX`,e.CIRCLE=`CIRCLE`,e.HIGHLIGHT=`HIGHLIGHT`,e.STRIKETHROUGH=`STRIKETHROUGH`,e.CROSSED_OFF=`CROSSED_OFF`,e))(Pu||{}),Fu=(e=>(e.START=`START`,e.END=`END`,e.TOP=`TOP`,e))(Fu||{}),Iu=(e=>(e.SQUARE=`SQUARE`,e.RECTANGLE=`RECTANGLE`,e))(Iu||{}),Lu=(e=>(e.FILL=`FILL`,e.FIT=`FIT`,e))(Lu||{}),Ru=(e=>(e.IMAGE=`IMAGE`,e.PRODUCT_INFO=`PRODUCT_INFO`,e))(Ru||{}),zu=(e=>(e.CONTAINED=`CONTAINED`,e.FRAMELESS=`FRAMELESS`,e))(zu||{}),Bu=(e=>(e.START=`START`,e.CENTER=`CENTER`,e.END=`END`,e))(Bu||{}),Vu=(e=>(e.STACKED=`STACKED`,e.SIDE_BY_SIDE=`SIDE_BY_SIDE`,e))(Vu||{}),Hu=(e=>(e.PRODUCT=`PRODUCT`,e.EVENT=`EVENT`,e.BOOKING=`BOOKING`,e))(Hu||{}),Uu=(e=>(e.FIRST=`FIRST`,e.ALL=`ALL`,e.NONE=`NONE`,e))(Uu||{}),Wu=(e=>(e.LTR=`LTR`,e.RTL=`RTL`,e))(Wu||{}),Gu=(e=>(e.TOP=`TOP`,e.MIDDLE=`MIDDLE`,e.BOTTOM=`BOTTOM`,e))(Gu||{}),Ku=(e=>(e.NULL_VALUE=`NULL_VALUE`,e))(Ku||{}),qu=(e=>(e.AUTO=`AUTO`,e.CONTAIN=`CONTAIN`,e.COVER=`COVER`,e))(qu||{}),Ju=(e=>(e.CENTER=`CENTER`,e.CENTER_LEFT=`CENTER_LEFT`,e.CENTER_RIGHT=`CENTER_RIGHT`,e.TOP=`TOP`,e.TOP_LEFT=`TOP_LEFT`,e.TOP_RIGHT=`TOP_RIGHT`,e.BOTTOM=`BOTTOM`,e.BOTTOM_LEFT=`BOTTOM_LEFT`,e.BOTTOM_RIGHT=`BOTTOM_RIGHT`,e))(Ju||{}),Yu=(e=>(e.COLOR=`COLOR`,e.GRADIENT=`GRADIENT`,e))(Yu||{}),Xu=(e=>(e.IMAGE=`IMAGE`,e.LAYOUT=`LAYOUT`,e))(Xu||{}),Zu=(e=>(e.TOP=`TOP`,e.BOTTOM=`BOTTOM`,e.PAYWALL=`PAYWALL`,e))(Zu||{}),Qu=(e=>(e.CENTER=`CENTER`,e.FADE_TO_TOP=`FADE_TO_TOP`,e.FADE_TO_BOTTOM=`FADE_TO_BOTTOM`,e))(Qu||{}),$u=(e=>(e.ELLIPSE=`ELLIPSE`,e.TILT=`TILT`,e.LIQUID=`LIQUID`,e.LEFT_WAVE=`LEFT_WAVE`,e.PAINT_SCRIBBLE=`PAINT_SCRIBBLE`,e.INVERTED_ELLIPSE=`INVERTED_ELLIPSE`,e.RIGHT_WAVE=`RIGHT_WAVE`,e.DUNES=`DUNES`,e.WAVES=`WAVES`,e.TRIANGLE=`TRIANGLE`,e.SEMI_ELLIPSE=`SEMI_ELLIPSE`,e.PLANTS=`PLANTS`,e.LAYERED_ELLIPSE=`LAYERED_ELLIPSE`,e.PIXELS=`PIXELS`,e.PAINT=`PAINT`,e.CLOUDS=`CLOUDS`,e.OPTICAL_ILLUSION=`OPTICAL_ILLUSION`,e.STRIPES=`STRIPES`,e.BLOBS=`BLOBS`,e.SEMI_CIRCLES=`SEMI_CIRCLES`,e.HILL=`HILL`,e.BRUSH=`BRUSH`,e.PEAKS=`PEAKS`,e.ANGLED_TRIANGLE=`ANGLED_TRIANGLE`,e))($u||{}),ed=(e=>(e.COLOR=`COLOR`,e.GRADIENT=`GRADIENT`,e))(ed||{}),td=(e=>(e.TOP=`TOP`,e.MIDDLE=`MIDDLE`,e.BOTTOM=`BOTTOM`,e))(td||{}),nd=(e=>(e.STACK=`STACK`,e.WRAP=`WRAP`,e))(nd||{}),rd=(e=>(e.LAYOUT=`LAYOUT`,e.CELL=`CELL`,e))(rd||{}),id=(e=>(e.AUTO=`AUTO`,e.CONTAIN=`CONTAIN`,e.COVER=`COVER`,e))(id||{}),ad=(e=>(e.CENTER=`CENTER`,e.CENTER_LEFT=`CENTER_LEFT`,e.CENTER_RIGHT=`CENTER_RIGHT`,e.TOP=`TOP`,e.TOP_LEFT=`TOP_LEFT`,e.TOP_RIGHT=`TOP_RIGHT`,e.BOTTOM=`BOTTOM`,e.BOTTOM_LEFT=`BOTTOM_LEFT`,e.BOTTOM_RIGHT=`BOTTOM_RIGHT`,e))(ad||{}),od=(e=>(e.COLOR=`COLOR`,e.GRADIENT=`GRADIENT`,e))(od||{}),sd=(e=>(e.PLAIN=`PLAIN`,e.NUMBERED=`NUMBERED`,e.LETTERS=`LETTERS`,e.ROMAN=`ROMAN`,e.BULLETED=`BULLETED`,e.ALPHABETICAL_INDEX=`ALPHABETICAL_INDEX`,e.ALPHABETICAL_INDEX_COMPACT=`ALPHABETICAL_INDEX_COMPACT`,e))(sd||{}),cd=(e=>(e.NESTED=`NESTED`,e.FLAT=`FLAT`,e))(cd||{}),ld=(e=>(e.SOLID_BOXES=`SOLID_BOXES`,e.NUMBERED_BOXES=`NUMBERED_BOXES`,e.STATS=`STATS`,e.CIRCLE_STATS=`CIRCLE_STATS`,e.SOLID_BOXES_ALTERNATING=`SOLID_BOXES_ALTERNATING`,e.SOLID_JOINED_BOXES=`SOLID_JOINED_BOXES`,e.SIDE_LINE_TEXT=`SIDE_LINE_TEXT`,e.TOP_LINE_TEXT=`TOP_LINE_TEXT`,e.OUTLINE_BOXES_WITH_TOP_CIRCLE=`OUTLINE_BOXES_WITH_TOP_CIRCLE`,e.BIG_BULLETS=`BIG_BULLETS`,e.SMALL_BULLETS=`SMALL_BULLETS`,e.ARROW_BULLETS=`ARROW_BULLETS`,e.PROCESS_STEPS=`PROCESS_STEPS`,e.BAR_STATS=`BAR_STATS`,e.TIMELINE=`TIMELINE`,e.MINIMAL_TIMELINE=`MINIMAL_TIMELINE`,e.PILLS=`PILLS`,e.STAR_RATING=`STAR_RATING`,e.QUOTE_BOXES=`QUOTE_BOXES`,e.CIRCLE=`CIRCLE`,e.PYRAMID=`PYRAMID`,e.STAIRCASE=`STAIRCASE`,e.VERTICAL_FUNNEL=`VERTICAL_FUNNEL`,e))(ld||{}),ud=(e=>(e.SMALL=`SMALL`,e.MEDIUM=`MEDIUM`,e.LARGE=`LARGE`,e.EXTRA_LARGE=`EXTRA_LARGE`,e))(ud||{}),dd=(e=>(e.FIRST_PRIORITY=`FIRST_PRIORITY`,e.SECOND_PRIORITY=`SECOND_PRIORITY`,e.THIRD_PRIORITY=`THIRD_PRIORITY`,e))(dd||{}),fd=(e=>(e.UNKNOWN=`UNKNOWN`,e.ENABLED=`ENABLED`,e.DISABLED=`DISABLED`,e.PENDING=`PENDING`,e.DEMO=`DEMO`,e))(fd||{}),pd=(e=>(e.OTHER=`OTHER`,e.FROM_TEMPLATE=`FROM_TEMPLATE`,e.DUPLICATE_BY_SITE_TRANSFER=`DUPLICATE_BY_SITE_TRANSFER`,e.DUPLICATE=`DUPLICATE`,e.OLD_SITE_TRANSFER=`OLD_SITE_TRANSFER`,e.FLASH=`FLASH`,e))(pd||{}),md=(e=>(e.UNKNOWN_NAMESPACE=`UNKNOWN_NAMESPACE`,e.WIX=`WIX`,e.SHOUT_OUT=`SHOUT_OUT`,e.ALBUMS=`ALBUMS`,e.WIX_STORES_TEST_DRIVE=`WIX_STORES_TEST_DRIVE`,e.HOTELS=`HOTELS`,e.CLUBS=`CLUBS`,e.ONBOARDING_DRAFT=`ONBOARDING_DRAFT`,e.DEV_SITE=`DEV_SITE`,e.LOGOS=`LOGOS`,e.VIDEO_MAKER=`VIDEO_MAKER`,e.PARTNER_DASHBOARD=`PARTNER_DASHBOARD`,e.DEV_CENTER_COMPANY=`DEV_CENTER_COMPANY`,e.HTML_DRAFT=`HTML_DRAFT`,e.SITELESS_BUSINESS=`SITELESS_BUSINESS`,e.CREATOR_ECONOMY=`CREATOR_ECONOMY`,e.DASHBOARD_FIRST=`DASHBOARD_FIRST`,e.ANYWHERE=`ANYWHERE`,e.HEADLESS=`HEADLESS`,e.ACCOUNT_MASTER_CMS=`ACCOUNT_MASTER_CMS`,e.RISE=`RISE`,e.BRANDED_FIRST=`BRANDED_FIRST`,e.NOWNIA=`NOWNIA`,e.UGC_TEMPLATE=`UGC_TEMPLATE`,e.CODUX=`CODUX`,e.MEDIA_DESIGN_CREATOR=`MEDIA_DESIGN_CREATOR`,e.SHARED_BLOG_ENTERPRISE=`SHARED_BLOG_ENTERPRISE`,e.STANDALONE_FORMS=`STANDALONE_FORMS`,e.STANDALONE_EVENTS=`STANDALONE_EVENTS`,e.MIMIR=`MIMIR`,e.TWINS=`TWINS`,e.NANO=`NANO`,e.BASE44=`BASE44`,e.CHANNELS=`CHANNELS`,e.NAUTILUS=`NAUTILUS`,e.SYMPHONY=`SYMPHONY`,e.NAUTILUS_APPS=`NAUTILUS_APPS`,e.VIBU=`VIBU`,e.ENTERPRISE_BRAND_KIT=`ENTERPRISE_BRAND_KIT`,e.DEV_CENTER_DEV_SITE=`DEV_CENTER_DEV_SITE`,e))(md||{}),hd=(e=>(e.UNKNOWN=`UNKNOWN`,e.TRASH=`TRASH`,e.DELETED=`DELETED`,e.PENDING_PURGE=`PENDING_PURGE`,e.PURGED_EXTERNALLY=`PURGED_EXTERNALLY`,e))(hd||{}),gd=(e=>(e.UNKNOWN=`UNKNOWN`,e.ANONYMOUS_VISITOR=`ANONYMOUS_VISITOR`,e.MEMBER=`MEMBER`,e.WIX_USER=`WIX_USER`,e.APP=`APP`,e))(gd||{});async function _d(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=gl(G(H({ticketDefinition:e,fields:t?.fields}),[{transformFn:Sn,paths:Dl},{transformFn:Qt,paths:Ol}]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:Cn,paths:Dl},{transformFn:$t,paths:Ol}]))?.ticketDefinition}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{ticketDefinition:`$[0]`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`ticketDefinition`,`options`]);throw r?.onError?.(e),t}}async function vd(e,t,n){let{httpClient:r,sideEffects:i}=arguments[3],a=_l(G(H({ticketDefinition:{...t,id:e},fields:n?.fields}),[{transformFn:Sn,paths:Dl},{transformFn:Qt,paths:Ol}]));i?.onSiteCall?.();try{let e=await r.request(a);return i?.onSuccess?.(e),U(G(e.data,[{transformFn:Cn,paths:Dl},{transformFn:$t,paths:Ol}]))?.ticketDefinition}catch(e){let t=K(e,{spreadPathsToArguments:{ticketDefinition:`$[1]`},explicitPathsToArguments:{"ticketDefinition.id":`$[0]`,fields:`$[2].fields`},singleArgumentUnchanged:!1},[`_id`,`ticketDefinition`,`options`]);throw i?.onError?.(e),t}}async function yd(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=vl(H({ticketDefinitionId:e,fields:t?.fields}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:Cn,paths:Dl},{transformFn:$t,paths:Ol}]))?.ticketDefinition}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{ticketDefinitionId:`$[0]`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`ticketDefinitionId`,`options`]);throw r?.onError?.(e),t}}async function bd(e){let{httpClient:t,sideEffects:n}=arguments[1],r=yl(H({ticketDefinitionId:e}));n?.onSiteCall?.();try{let e=await t.request(r);n?.onSuccess?.(e)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{ticketDefinitionId:`$[0]`},singleArgumentUnchanged:!1},[`ticketDefinitionId`]);throw n?.onError?.(e),t}}async function xd(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=bl(H({eventId:e,ticketDefinitionId:t?.ticketDefinitionId,beforeDefinitionId:t?.beforeDefinitionId,afterDefinitionId:t?.afterDefinitionId}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`,ticketDefinitionId:`$[1].ticketDefinitionId`,beforeDefinitionId:`$[1].beforeDefinitionId`,afterDefinitionId:`$[1].afterDefinitionId`},singleArgumentUnchanged:!1},[`eventId`,`options`]);throw r?.onError?.(e),t}}function Sd(e){let{httpClient:t,sideEffects:n}=arguments[1];return Nn({func:async r=>{let i=xl({...r,...e??{}});n?.onSiteCall?.();try{let e=await t.request(i);return n?.onSuccess?.(e),e}catch(e){throw n?.onError?.(e),e}},requestTransformer:t=>{let n=[t,e];return H({...n?.[1],query:n?.[0]})},responseTransformer:({data:e})=>{let t=U(G(e,[{transformFn:Cn,paths:kl},{transformFn:$t,paths:Al}]));return{items:t?.ticketDefinitions,pagingMetadata:t?.metadata}},errorTransformer:e=>{throw K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{query:`$[0]`},singleArgumentUnchanged:!1})},pagingMethod:`CURSOR`,transformationPaths:{}})}async function Cd(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=xl(H({query:e,...t}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:Cn,paths:kl},{transformFn:$t,paths:Al}]))}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{query:`$[0]`},singleArgumentUnchanged:!1},[`query`,`options`]);throw r?.onError?.(e),t}}var wd={query:zn()};async function Td(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Sl(H({query:e,fields:t?.fields}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:Cn,paths:kl},{transformFn:$t,paths:Al}]))}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{query:`$[0]`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`query`,`options`]);throw r?.onError?.(e),t}}async function Ed(e){let{httpClient:t,sideEffects:n}=arguments[1],r=Cl(H({filter:e?.filter,facet:e?.facet}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{filter:`$[0].filter`,facet:`$[0].facet`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}async function Dd(e){let{httpClient:t,sideEffects:n}=arguments[1],r=wl(H({filter:e?.filter}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{filter:`$[0].filter`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}async function Od(e){let{httpClient:t,sideEffects:n}=arguments[1],r=Tl(H({filter:e}));n?.onSiteCall?.();try{let e=await t.request(r);n?.onSuccess?.(e)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{filter:`$[0]`},singleArgumentUnchanged:!1},[`filter`]);throw n?.onError?.(e),t}}async function kd(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=El(H({eventId:e,currency:t?.currency}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`,currency:`$[1].currency`},singleArgumentUnchanged:!1},[`eventId`,`options`]);throw r?.onError?.(e),t}}var Ad=[{path:`entity.createdDate`},{path:`entity.updatedDate`},{path:`entity.eventCreatedDate`},{path:`entity.salePeriod.startDate`},{path:`entity.salePeriod.endDate`},{path:`entity.eventDetails.dateAndTimeSettings.startDate`},{path:`entity.eventDetails.dateAndTimeSettings.endDate`},{path:`entity.eventDetails.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`entity.eventDetails.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`},{path:`metadata.eventTime`}],jd=[{path:`entity.eventDetails.eventPageUrl`}],Md=[{path:`entity.eventDetails.location.address`}],Nd=[{path:`data.ticketDefinition.createdDate`},{path:`data.ticketDefinition.updatedDate`},{path:`data.ticketDefinition.eventCreatedDate`},{path:`data.ticketDefinition.salePeriod.startDate`},{path:`data.ticketDefinition.salePeriod.endDate`},{path:`data.ticketDefinition.eventDetails.dateAndTimeSettings.startDate`},{path:`data.ticketDefinition.eventDetails.dateAndTimeSettings.endDate`},{path:`data.ticketDefinition.eventDetails.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`data.ticketDefinition.eventDetails.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`},{path:`metadata.eventTime`}],Pd=[{path:`data.ticketDefinition.eventDetails.eventPageUrl`}],Fd=[{path:`data.ticketDefinition.eventDetails.location.address`}],Id=[{path:`data.afterUpdate.startDate`},{path:`data.afterUpdate.endDate`},{path:`metadata.eventTime`}],Ld=[{path:`entity.createdDate`},{path:`entity.updatedDate`},{path:`entity.eventCreatedDate`},{path:`entity.salePeriod.startDate`},{path:`entity.salePeriod.endDate`},{path:`entity.eventDetails.dateAndTimeSettings.startDate`},{path:`entity.eventDetails.dateAndTimeSettings.endDate`},{path:`entity.eventDetails.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`entity.eventDetails.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`},{path:`metadata.eventTime`},{path:`modifiedFields.createdDate`},{path:`modifiedFields.updatedDate`},{path:`modifiedFields.eventCreatedDate`},{path:`modifiedFields.salePeriod.startDate`},{path:`modifiedFields.salePeriod.endDate`},{path:`modifiedFields.eventDetails.dateAndTimeSettings.startDate`},{path:`modifiedFields.eventDetails.dateAndTimeSettings.endDate`},{path:`modifiedFields.eventDetails.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`modifiedFields.eventDetails.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`}],Rd=[{path:`entity.eventDetails.eventPageUrl`},{path:`modifiedFields.eventDetails.eventPageUrl`}],zd=[{path:`entity.eventDetails.location.address`},{path:`modifiedFields.eventDetails.location.address`}];function Bd(e){return(t,n)=>_d(t,n,{httpClient:e})}function Vd(e){return(t,n,r)=>vd(t,n,r,{httpClient:e})}function Hd(e){return(t,n)=>yd(t,n,{httpClient:e})}function Ud(e){return t=>bd(t,{httpClient:e})}function Wd(e){return(t,n)=>xd(t,n,{httpClient:e})}function Gd(e){return t=>Sd(t,{httpClient:e})}function Kd(e){return(t,n)=>Cd(t,n,{httpClient:e})}function qd(e){return(t,n)=>Td(t,n,{httpClient:e})}function Jd(e){return t=>Ed(t,{httpClient:e})}function Yd(e){return t=>Dd(t,{httpClient:e})}function Xd(e){return t=>Od(t,{httpClient:e})}function Zd(e){return(t,n)=>kd(t,n,{httpClient:e})}var Qd=m(`wix.events.v3.ticket_definition_created`,!0,e=>U(G(e,[{transformFn:W,paths:Ad},{transformFn:Cn,paths:jd},{transformFn:$t,paths:Md}])))(),$d=m(`wix.events.v3.ticket_definition_deleted`,!0,e=>U(G(e,[{transformFn:W,paths:Ad},{transformFn:Cn,paths:jd},{transformFn:$t,paths:Md}])))(),ef=m(`wix.events.v3.ticket_definition_sale_ended`,!0,e=>U(G(e,[{transformFn:W,paths:Nd},{transformFn:Cn,paths:Pd},{transformFn:$t,paths:Fd}])))(),tf=m(`wix.events.v3.ticket_definition_sale_period_updated`,!0,e=>U(G(e,[{transformFn:W,paths:Id}])))(),nf=m(`wix.events.v3.ticket_definition_sale_started`,!0,e=>U(G(e,[{transformFn:W,paths:Nd},{transformFn:Cn,paths:Pd},{transformFn:$t,paths:Fd}])))(),rf=m(`wix.events.v3.ticket_definition_updated`,!0,e=>U(G(e,[{transformFn:W,paths:Ld},{transformFn:Cn,paths:Rd},{transformFn:$t,paths:zd}])))();function af(e){let t=Yn({builderQueryFunction:t=>Gd(e)(t),typedQueryFunction:(t,n)=>Kd(e)(t,n),hasOptionsParameter:!0});function n(e,n){return t(...arguments)}return n}var of=q(Bd),sf=q(Vd),cf=q(Hd),lf=q(Ud),uf=q(Wd),df=q(qd),ff=q(Jd),pf=q(Yd),mf=q(Xd),hf=q(Zd),gf=q(af),_f=Yt(Qd),vf=Yt($d),yf=Yt(ef),bf=Yt(tf),xf=Yt(nf),Sf=Yt(rf),Cf=!0,wf=`__LITE_EVENTS_DEBUG__`,Tf=typeof window>`u`,Ef=()=>typeof performance<`u`?performance.now():Date.now(),Df=Ef(),Of=()=>{let e=globalThis[wf];if(typeof e==`boolean`)return e;if(!Tf)try{let e=new URLSearchParams(window.location.search).get(`debug`);return e===null?void 0:e===`true`}catch{return}},kf=()=>Of()??Cf,Af=(e,t,n)=>{if(!kf())return;let r=(Ef()-Df).toFixed(1),i=`[lite-events ${Tf?`server`:`client`} ${r}ms] ${e}:${t}`,a=t===`error`?console.error:console.log;n===void 0?a(i):a(i,n)},jf=(e,t,n)=>Af(e,`error`,{...n,error:t}),{FeeName:Mf,FeeType:Nf,OrderFieldset:Pf,ReservationStatus:Ff,TaxType:If}=er,Lf={acceptCoupons:!0,acceptGiftCards:!0,premiumServices:!0},Rf=({size:e,...t})=>r.createElement(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,width:e||`24`,height:e||`24`,...t},r.createElement(`path`,{d:`M8.14644661,10.1464466 C8.34170876,9.95118446 8.65829124,9.95118446 8.85355339,10.1464466 L12.4989857,13.7981758 L16.1502401,10.1464466 C16.3455022,9.95118446 16.6620847,9.95118446 16.8573469,10.1464466 C17.052609,10.3417088 17.052609,10.6582912 16.8573469,10.8535534 L12.4989857,15.2123894 L8.14644661,10.8535534 C7.95118446,10.6582912 7.95118446,10.3417088 8.14644661,10.1464466 Z`}));Rf.displayName=`ChevronDown`;var zf=Rf,Bf=({size:e,...t})=>r.createElement(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,width:e||`24`,height:e||`24`,...t},r.createElement(`path`,{d:`M13,15 L13,10 L11,10 L10,12 L11,12 L11,15 L10,16 L10,17 L14,17 L14,16 L13,15 Z M11,9 L13,9 L13,7 L11,7 L11,9 Z M12,20 C7.589,20 4,16.411 4,12 C4,7.589 7.589,4 12,4 C16.411,4 20,7.589 20,12 C20,16.411 16.411,20 12,20 L12,20 Z M12,3 C7.029,3 3,7.029 3,12 C3,16.971 7.029,21 12,21 C16.971,21 21,16.971 21,12 C21,7.029 16.971,3 12,3 L12,3 Z`}));Bf.displayName=`InfoCircle`;var Vf=Bf;function Hf(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Hf(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t)}return r}function Uf(){for(var e,t,n=0,r=``;n<arguments.length;)(e=arguments[n++])&&(t=Hf(e))&&(r&&(r+=` `),r+=t);return r}var Wf={};function Gf(e,t){let n=r.useRef(Wf);return n.current===Wf&&(n.current=e(t)),n}function Kf(e,t,n,r){let i=Gf(Jf).current;return Yf(i,e,t,n,r)&&Zf(i,[e,t,n,r]),i.callback}function qf(e){let t=Gf(Jf).current;return Xf(t,e)&&Zf(t,e),t.callback}function Jf(){return{callback:null,cleanup:null,refs:[]}}function Yf(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Xf(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function Zf(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}function Qf(){}var $f=Object.freeze([]),ep=Object.freeze({});function tp(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var np=tp(`https://base-ui.com/production-error`,`Base UI`),rp=parseInt(r.version,10);function ip(e){return rp>=e}function ap(e){if(!r.isValidElement(e))return null;let t=e,n=t.props;return(ip(19)?n?.ref:t.ref)??null}function op(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function sp(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else!0===i?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function cp(e,t){return typeof e==`function`?e(t):e}function lp(e,t){return typeof e==`function`?e(t):e}var up={};function dp(e,t,n,r,i){if(!n&&!r&&!i&&!e)return pp(t);let a=pp(e);return t&&(a=mp(a,t)),n&&(a=mp(a,n)),r&&(a=mp(a,r)),i&&(a=mp(a,i)),a}function fp(e){if(e.length===0)return up;if(e.length===1)return pp(e[0]);let t=pp(e[0]);for(let n=1;n<e.length;n+=1)t=mp(t,e[n]);return t}function pp(e){return vp(e)?{...yp(e,up)}:hp(e)}function mp(e,t){return vp(t)?yp(t,e):gp(e,t)}function hp(e){let t={...e};for(let e in t){let n=t[e];_p(e,n)&&(t[e]=xp(n))}return t}function gp(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=op(e.style,r);break;case`className`:e[n]=Cp(e.className,r);break;default:e[n]=_p(n,r)?bp(e[n],r):r}}return e}function _p(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function vp(e){return typeof e==`function`}function yp(e,t){return vp(e)?e(t):e??up}function bp(e,t){return t?e?(...n)=>{let r=n[0];if(wp(r)){let i=r;Sp(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:xp(t):e}function xp(e){return e&&((...t)=>{let n=t[0];return wp(n)&&Sp(n),e(...t)})}function Sp(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Cp(e,t){return t?e?t+` `+e:t:e}function wp(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Tp(e,t,n={}){let r=t.render,i=Ep(t,n);return!1===n.enabled?null:kp(e,r,i,n.state??ep)}function Ep(e,t={}){let{className:n,style:r,render:i}=e,{state:a=ep,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?cp(n,a):void 0,d=l?lp(r,a):void 0,f=l?sp(a,c):ep,p=l&&s?Dp(s):void 0,m=l?op(f,p)??{}:ep;return`u`>typeof document&&(l?m.ref=Array.isArray(o)?qf([m.ref,ap(i),...o]):Kf(m.ref,ap(i),o):Kf(null,null)),l?(u!==void 0&&(m.className=Cp(m.className,u)),d!==void 0&&(m.style=op(m.style,d)),m):ep}function Dp(e){return Array.isArray(e)?fp(e):dp(void 0,e)}var Op=Symbol.for(`react.lazy`);function kp(e,t,n,i){if(t){if(typeof t==`function`)return t(n,i);let e=dp(n,t.props);e.ref=n.ref;let a=t;return a?.$$typeof===Op&&(a=r.Children.toArray(t)[0]),r.cloneElement(a,e)}if(e&&typeof e==`string`)return Ap(e,n);throw Error(np(8))}function Ap(e,t){return e===`button`?(0,r.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,r.createElement)(`img`,{alt:``,...t,key:t.key}):r.createElement(e,t)}function jp({controlled:e,default:t,name:n,state:i=`value`}){let{current:a}=r.useRef(e!==void 0),[o,s]=r.useState(t);return[a?e:o,r.useCallback(e=>{a||s(e)},[])]}var Mp={...r},J=`u`>typeof document?r.useLayoutEffect:()=>{},Np=[];function Pp(e){r.useEffect(e,Np)}var Fp=null;globalThis.requestAnimationFrame;var Ip=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},Lp=class e{static create(){return new e}static request(e){return Ip.request(e)}static cancel(e){return Ip.cancel(e)}currentId=Fp;request(e){this.cancel(),this.currentId=Ip.request(()=>{this.currentId=Fp,e()})}cancel=()=>{this.currentId!==Fp&&(Ip.cancel(this.currentId),this.currentId=Fp)};disposeEffect=()=>this.cancel};function Rp(){let e=Gf(Lp.create).current;return Pp(e.disposeEffect),e}function zp(e,t=!1,n=!1){let[i,a]=r.useState(e&&t?`idle`:void 0),[o,s]=r.useState(e);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),J(()=>{if(!e&&o&&i!==`ending`&&n){let e=Lp.request(()=>{a(`ending`)});return()=>{Lp.cancel(e)}}},[e,o,i,n]),J(()=>{if(!e||t)return;let n=Lp.request(()=>{a(void 0)});return()=>{Lp.cancel(n)}},[t,e]),J(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=Lp.request(()=>{a(`idle`)});return()=>{Lp.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}var Bp=0;function Vp(e,t=`mui`){let[n,i]=r.useState(e),a=e||n;return r.useEffect(()=>{n??(Bp+=1,i(`${t}-${Bp}`))},[n,t]),a}var Hp=Mp.useId;function Up(e,t){if(Hp!==void 0){let n=Hp();return e??(t?`${t}-${n}`:n)}return Vp(e,t)}function Wp(e){return Up(e,`base-ui`)}var Gp=Mp.useInsertionEffect,Kp=Gp&&Gp!==Mp.useLayoutEffect?Gp:e=>e();function Y(e){let t=Gf(qp).current;return t.next=e,Kp(t.effect),t.trampoline}function qp(){let e={next:void 0,callback:Jp,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Jp(){}function Yp(e,t,n,r){let i=!1,a=!1,o=r??ep;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var Xp=`trigger-press`,Zp=`trigger-hover`,Qp=`trigger-focus`,$p=`outside-press`,em=`item-press`,tm=`focus-out`,nm=`escape-key`,rm=`list-navigation`,im=`cancel-open`,am=`disabled`,om=`imperative-action`,sm=`window-resize`,cm=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),lm={[cm.startingStyle]:``},um={[cm.endingStyle]:``},dm={transitionStatus(e){return e===`starting`?lm:e===`ending`?um:null}};function fm(e){return e==null?e:`current`in e?e.current:e}function pm(e,t=!1,n=!0){let r=Rp();return Y((i,a=null)=>{r.cancel();let o=fm(e);if(o==null)return;let s=o,c=()=>{u.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void i();function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=cm.startingStyle;if(!s.hasAttribute(e))return void r.request(l);let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function mm(e){let{enabled:t=!0,open:n,ref:i,onComplete:a}=e,o=Y(a),s=pm(i,n,!1);r.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}function hm(e){let t=Gf(gm,e).current;return t.next=e,J(t.effect),t}function gm(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function _m(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function vm(){return`u`>typeof window}function ym(e){return Sm(e)?(e.nodeName||``).toLowerCase():`#document`}function bm(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xm(e){return((Sm(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Sm(e){return vm()?e instanceof Node||e instanceof bm(e).Node:!1}function Cm(e){return vm()?e instanceof Element||e instanceof bm(e).Element:!1}function wm(e){return vm()?e instanceof HTMLElement||e instanceof bm(e).HTMLElement:!1}function Tm(e){return!vm()||`u`<typeof ShadowRoot?!1:e instanceof ShadowRoot||e instanceof bm(e).ShadowRoot}function Em(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Lm(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Dm(e){return/^(table|td|th)$/.test(ym(e))}function Om(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var km=/transform|translate|scale|rotate|perspective|filter/,Am=/paint|layout|strict|content/,jm=e=>!!e&&e!==`none`,Mm;function Nm(e){let t=Cm(e)?Lm(e):e;return jm(t.transform)||jm(t.translate)||jm(t.scale)||jm(t.rotate)||jm(t.perspective)||!Fm()&&(jm(t.backdropFilter)||jm(t.filter))||km.test(t.willChange||``)||Am.test(t.contain||``)}function Pm(e){let t=zm(e);for(;wm(t)&&!Im(t);){if(Nm(t))return t;if(Om(t))break;t=zm(t)}return null}function Fm(){return Mm??=`u`>typeof CSS&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Mm}function Im(e){return/^(html|body|#document)$/.test(ym(e))}function Lm(e){return bm(e).getComputedStyle(e)}function Rm(e){return Cm(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zm(e){if(ym(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Tm(e)&&e.host||xm(e);return Tm(t)?t.host:t}function Bm(e){let t=zm(e);return Im(t)?e.ownerDocument?e.ownerDocument.body:e.body:wm(t)&&Em(t)?t:Bm(t)}function Vm(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Bm(e),i=r===e.ownerDocument?.body,a=bm(r);if(!i)return t.concat(r,Vm(r,[],n));{let e=Hm(a);return t.concat(a,a.visualViewport||[],Em(r)?r:[],e&&n?Vm(e):[])}}function Hm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Um=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=cm.startingStyle]=`startingStyle`,e[e.endingStyle=cm.endingStyle]=`endingStyle`,e}({}),Wm=function(e){return e.panelOpen=`data-panel-open`,e}({}),Gm={[Um.open]:``},Km={[Um.closed]:``},qm={open(e){return e?{[Wm.panelOpen]:``}:null}},Jm={open(e){return e?Gm:Km}},Ym=r.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Xm(){return r.useContext(Ym)}var Zm=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function Qm(e={}){let{label:t,metadata:n,textRef:i,indexGuessBehavior:a,index:o}=e,{register:s,unregister:c,subscribeMapChange:l,elementsRef:u,labelsRef:d,nextIndexRef:f}=Xm(),p=r.useRef(-1),[m,h]=r.useState(o??(a===Zm.GuessFromOrder?()=>{if(p.current===-1){let e=f.current;f.current+=1,p.current=e}return p.current}:-1)),g=r.useRef(null),_=r.useCallback(e=>{if(g.current=e,m!==-1&&e!==null&&(u.current[m]=e,d)){let n=t!==void 0;d.current[m]=n?t:i?.current?.textContent??e.textContent}},[m,u,d,t,i]);return J(()=>{if(o!=null)return;let e=g.current;if(e)return s(e,n),()=>{c(e)}},[o,s,c,n]),J(()=>{if(o==null)return l(e=>{let t=g.current?e.get(g.current)?.index:null;t!=null&&h(t)})},[o,l,h]),r.useMemo(()=>({ref:_,index:m}),[m,_])}function $m(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var eh=r.createContext(void 0);function th(e=!1){let t=r.useContext(eh);if(t===void 0&&!e)throw Error(np(16));return t}function nh(e){let{focusableWhenDisabled:t,disabled:n,composite:i=!1,tabIndex:a=0,isNativeButton:o}=e,s=i&&!1!==t,c=i&&!1===t;return{props:r.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return i||(e.tabIndex=a,!o&&n&&(e.tabIndex=t?a:-1)),(o&&(t||s)||!o&&n)&&(e[`aria-disabled`]=n),o&&(!t||c)&&(e.disabled=n),e},[i,n,t,s,c,o,a])}}function rh(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:i=0,native:a=!0,composite:o}=e,s=r.useRef(null),c=th(!0),l=o??c!==void 0,{props:u}=nh({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:i,isNativeButton:a}),d=r.useCallback(()=>{let e=s.current;ih(e)&&l&&t&&u.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,u.disabled,l]);return J(d,[d]),{getButtonProps:r.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:i,onKeyDown:o,onPointerDown:s,...c}=e;return dp({onClick(e){if(t)return void e.preventDefault();n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(Sp(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,i=e.currentTarget,s=ih(i),c=!a&&ah(i),u=r&&(a?s:!c),d=e.key===`Enter`,f=e.key===` `,p=i.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&l&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),c||a&&s?(i.click(),e.preventBaseUIHandler()):u&&(n?.(e),e.preventBaseUIHandler())}else u&&(!a&&(f||d)&&e.preventDefault(),!a&&d&&n?.(e))},onKeyUp(e){if(!t){if(Sp(e),i?.(e),e.target===e.currentTarget&&a&&l&&ih(e.currentTarget)&&e.key===` `)return void e.preventDefault();e.baseUIHandlerPrevented||e.target===e.currentTarget&&!a&&!l&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t)return void e.preventDefault();s?.(e)}},a?{type:`button`}:{role:`button`},u,c)},[t,u,l,a]),buttonRef:Y(e=>{s.current=e,d()})}}function ih(e){return wm(e)&&e.tagName===`BUTTON`}function ah(e){return!!(e?.tagName===`A`&&e?.href)}var oh=`ArrowUp`,sh=`ArrowDown`,ch=`ArrowLeft`,lh=`ArrowRight`,uh=`Home`,dh=`End`,fh=new Set([ch,lh]),ph=new Set([ch,lh,uh,dh]),mh=new Set([oh,sh]),hh=new Set([oh,sh,uh,dh]),gh=new Set([...fh,...mh]),_h=new Set([...gh,uh,dh]),vh=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function yh(e){return wm(e)&&e.tagName===`INPUT`}function bh(e){return!!(yh(e)&&e.selectionStart!=null||wm(e)&&e.tagName===`TEXTAREA`)}function xh(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=Sh(e,t,`left`),a=Ch(e),o=Ch(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginRight<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=Sh(e,t,`top`),r=Ch(e),i=Ch(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function Sh(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function Ch(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var wh=`u`>typeof navigator,Th=Ph(),Eh=Ih(),Dh=Fh(),Oh=`u`>typeof CSS&&CSS.supports?CSS.supports(`-webkit-backdrop-filter:none`):!1,kh=Th.platform===`MacIntel`&&Th.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(Th.platform);wh&&/firefox/i.test(Dh);var Ah=wh&&/apple/i.test(navigator.vendor);wh&&/Edg/i.test(Dh);var jh=wh&&/android/i.test(Eh)||/android/i.test(Dh),Mh=wh&&Eh.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,Nh=Dh.includes(`jsdom/`);function Ph(){if(!wh)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function Fh(){if(!wh)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function Ih(){if(!wh)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}function Lh(e){e.preventDefault(),e.stopPropagation()}function Rh(e){return`nativeEvent`in e}function zh(e){return e.pointerType===``&&e.isTrusted?!0:jh&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Bh(e){return Nh?!1:!jh&&e.width===0&&e.height===0||jh&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Vh(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Hh(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var Uh=r.createContext(void 0);function Wh(){return r.useContext(Uh)?.direction??`ltr`}function Gh(e){let{children:t,elementsRef:n,labelsRef:i,onMapChange:a}=e,o=Y(a),s=r.useRef(0),l=Gf(qh).current,u=Gf(Kh).current,[d,f]=r.useState(0),p=r.useRef(d),m=Y((e,t)=>{u.set(e,t??null),p.current+=1,f(p.current)}),h=Y(e=>{u.delete(e),p.current+=1,f(p.current)}),g=r.useMemo(()=>{let e=new Map;return Array.from(u.keys()).filter(e=>e.isConnected).sort(Jh).forEach((t,n)=>{let r=u.get(t)??{};e.set(t,{...r,index:n})}),e},[u,d]);J(()=>{if(typeof MutationObserver!=`function`||g.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(p.current+=1,f(p.current))});return g.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[g]),J(()=>{p.current===d&&(n.current.length!==g.size&&(n.current.length=g.size),i&&i.current.length!==g.size&&(i.current.length=g.size),s.current=g.size),o(g)},[o,g,n,i,d]),J(()=>()=>{n.current=[]},[n]),J(()=>()=>{i&&(i.current=[])},[i]);let _=Y(e=>(l.add(e),()=>{l.delete(e)}));J(()=>{l.forEach(e=>e(g))},[l,g]);let v=r.useMemo(()=>({register:m,unregister:h,subscribeMapChange:_,elementsRef:n,labelsRef:i,nextIndexRef:s}),[m,h,_,n,i,s]);return c(Ym.Provider,{value:v,children:t})}function Kh(){return new Map}function qh(){return new Set}function Jh(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}var Yh={h1:`h1-go2_mI`,h2:`h2-dAyvwd`,h3:`h3-LClqyK`,h4:`h4-pzBHGr`,h5:`h5-HOx5Wp`,h6:`h6-zCNm1M`,p1:`p1-pY02jM`,p2:`p2-TsZIq5`,p3:`p3-N6QdAQ`},Xh={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,p1:`p`,p2:`p`,p3:`p`},Zh=r.forwardRef(({variant:e=`p2`,render:t,className:n,...i},a)=>{let o=Yh[e];if(t){let{className:e,...s}=t.props;return r.cloneElement(t,{...s,...i,ref:a,className:Uf(o,e,n)})}let s=Xh[e];return c(s,{ref:a,className:Uf(o,n),...i})});({...Jm}),{...dm};var Qh=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=cm.startingStyle]=`startingStyle`,e[e.endingStyle=cm.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),$h=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),eg={[$h.popupOpen]:``},tg={[$h.popupOpen]:``,[$h.pressed]:``},ng={[Qh.open]:``},rg={[Qh.closed]:``},ig={[Qh.anchorHidden]:``},ag={open(e){return e?eg:null}},og={open(e){return e?tg:null}},sg={open(e){return e?ng:rg},anchorHidden(e){return e?ig:null}},cg={},lg={};function ug(e){var t=lg[e];if(t!==void 0)return t.exports;var n=lg[e]={exports:{}};return cg[e](n,n.exports,ug),n.exports}ug.m=cg,ug.add=function(e){Object.assign(ug.m,e)},ug.add({"../../node_modules/use-sync-external-store/cjs/use-sync-external-store.development.js"(e,t,n){},"../../node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js"(e,t,n){t.useSyncExternalStore=n(`react?f15c`).useSyncExternalStore},"../../node_modules/use-sync-external-store/index.js"(e,t,n){e.exports=n(`../../node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js`)},"react?f15c"(e){e.exports=r}}),ug.add({"../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js"(e,t,n){},"../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js"(e,t,n){var r=n(`react?1096`);function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=r.useRef,c=r.useEffect,l=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},"../../node_modules/use-sync-external-store/with-selector.js"(e,t,n){e.exports=n(`../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js`)},"react?1096"(e){e.exports=r}});function dg(e){return`data-base-ui-${e}`}var X=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(np(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},fg=[],pg;function mg(){return pg}function hg(e){fg.push(e)}function gg(e){let t=(t,n)=>{let r=Gf(vg).current,i;try{pg=r;for(let e of fg)e.before(r);i=e(t,n);for(let e of fg)e.after(r);r.didInitialize=!0}finally{pg=void 0}return i};return t.displayName=e.displayName||e.name,t}function _g(e){return r.forwardRef(gg(e))}function vg(){return{didInitialize:!1}}var yg=ug(`../../node_modules/use-sync-external-store/index.js`),bg=ug(`../../node_modules/use-sync-external-store/with-selector.js`),xg=ip(19)?Cg:wg;function Z(e,t,n,r,i){return xg(e,t,n,r,i)}function Sg(e,t,n,i,a){let o=r.useCallback(()=>t(e.getSnapshot(),n,i,a),[e,t,n,i,a]);return(0,yg.useSyncExternalStore)(e.subscribe,o,o)}hg({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,yg.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Cg(e,t,n,r,i){let a=mg();if(!a)return Sg(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function wg(e,t,n,r,i){return(0,bg.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Tg=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Z(this,e,t,n,r)}},Eg=class extends Tg{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){r.useDebugValue(e);let n=this;J(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;J(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;J(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){r.useDebugValue(e);let n=this,i=t!==void 0;J(()=>{i&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,i])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,i){return r.useDebugValue(e),Z(this,this.selectors[e],t,n,i)}useContextCallback(e,t){r.useDebugValue(e);let n=Y(t??Qf);this.context[e]=n}useStateSetter(e){let t=r.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}};function Dg(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Og=class{nodesRef={current:[]};events=Dg();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},kg=r.createContext(null),Ag=r.createContext(null),jg=()=>r.useContext(kg)?.id||null,Mg=e=>{let t=r.useContext(Ag);return e??t};function Ng(e){let t=Up(),n=Mg(e),r=jg();return J(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function Pg(e){let{children:t,externalTree:n}=e,r=Gf(()=>n??new Og).current;return c(Ag.Provider,{value:r,children:t})}var Fg=0,Ig=class e{static create(){return new e}currentId=Fg;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Fg,t()},e)}isStarted(){return this.currentId!==Fg}clear=()=>{this.currentId!==Fg&&(clearTimeout(this.currentId),this.currentId=Fg)};disposeEffect=()=>this.clear};function Lg(){let e=Gf(Ig.create).current;return Pp(e.disposeEffect),e}function Rg(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Q(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Tm(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function zg(e){return`composedPath`in e?e.composedPath()[0]:e.target}var Bg=`data-base-ui-focusable`,Vg=`ArrowLeft`,Hg=`ArrowRight`,Ug=`ArrowUp`,Wg=`ArrowDown`;function Gg(e,t){if(!Cm(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(Q(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Kg(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function qg(e){return e.matches(`html,body`)}function Jg(e){return wm(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Yg(e){return e?e.getAttribute(`role`)===`combobox`&&Jg(e):!1}function Xg(e){if(!e||Nh)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Zg(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Qg(e){return e?.ownerDocument||document}function $g(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function e_(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...e_(e,t.id,n)])}function t_(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}var n_={open:X(e=>e.open),transitionStatus:X(e=>e.transitionStatus),domReferenceElement:X(e=>e.domReferenceElement),referenceElement:X(e=>e.positionReference??e.referenceElement),floatingElement:X(e=>e.floatingElement),floatingId:X(e=>e.floatingId)},r_=class extends Eg{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Dg(),nested:n,triggerElements:i},n_),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Hh(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly)return void this.context.onOpenChange?.(e,t);this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}},i_={intentional:`onClick`,sloppy:`onPointerDown`};function a_(){return!1}function o_(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function s_(e,t={}){let{enabled:n=!0,escapeKey:i=!0,outsidePress:a=!0,outsidePressEvent:o=`sloppy`,referencePress:s=a_,referencePressEvent:c=`sloppy`,bubbles:l,externalTree:u}=t,d=`rootStore`in e?e.rootStore:e,f=d.useState(`open`),p=d.useState(`floatingElement`),{dataRef:m}=d.context,h=Mg(u),g=Y(typeof a==`function`?a:()=>!1),_=typeof a==`function`?g:a,v=!1!==_,y=Y(()=>o),{escapeKey:b,outsidePress:x}=o_(l),S=r.useRef(!1),C=r.useRef(!1),w=r.useRef(!1),T=r.useRef(!1),E=r.useRef(``),D=r.useRef(null),O=Lg(),k=Lg(),A=Y(()=>{k.clear(),m.current.insideReactTree=!1}),j=Y(e=>{let t=m.current.floatingContext?.nodeId;return(h?e_(h.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=Y(e=>Kg(e,d.select(`floatingElement`))||Kg(e,d.select(`domReferenceElement`))),N=Y(e=>{s()&&d.setOpen(!1,Yp(Xp,e.nativeEvent))}),P=Y(e=>{if(!f||!n||!i||e.key!==`Escape`||T.current||!b&&j(`__escapeKeyBubbles`))return;let t=Yp(nm,Rh(e)?e.nativeEvent:e);d.setOpen(!1,t),t.isCanceled||e.preventDefault(),!b&&!t.isPropagationAllowed&&e.stopPropagation()}),F=Y(()=>{m.current.insideReactTree=!0,k.start(0,A)}),I=Y(e=>{if(!f||!n||e.button!==0)return;let t=zg(e.nativeEvent);Q(d.select(`floatingElement`),t)&&(S.current||(S.current=!0,C.current=!1))}),L=Y(e=>{f&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&S.current&&(C.current=!0)});r.useEffect(()=>{if(!f||!n)return;m.current.__escapeKeyBubbles=b,m.current.__outsidePressBubbles=x;let e=new Ig,t=new Ig;function r(){e.clear(),T.current=!0}function a(){e.start(Fm()?5:0,()=>{T.current=!1})}function o(){w.current=!0,t.start(0,()=>{w.current=!1})}function s(){S.current=!1,C.current=!1}function c(){let e=E.current,t=e!==`pen`&&e?e:`mouse`,n=y(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function l(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function u(e){let t=m.current.floatingContext?.nodeId,n=h&&e_(h.nodesRef.current,t).some(t=>Kg(e,t.context?.elements.floating));return M(e)||n}function g(e){if(l(e)){e.type!==`click`&&!M(e)&&(t.clear(),w.current=!1),A();return}if(m.current.insideReactTree)return void A();let n=zg(e),r=`[${dg(`inert`)}]`,i=Cm(n)?n.getRootNode():null,a=Array.from((Tm(i)?i:Qg(d.select(`floatingElement`))).querySelectorAll(r)),o=d.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>Q(e,n))))return;let s=Cm(n)?n:null;for(;s&&!Im(s);){let e=zm(s);if(Im(e)||!Cm(e))break;s=e}if(!(a.length&&Cm(n)&&!qg(n)&&!Q(n,d.select(`floatingElement`))&&a.every(e=>!Q(s,e)))){if(wm(n)&&!(`touches`in e)){let t=Im(n),r=Lm(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}u(e)||(c()===`intentional`&&w.current?(t.clear(),w.current=!1):(typeof _!=`function`||_(e))&&(j(`__outsidePressBubbles`)||(d.setOpen(!1,Yp($p,e)),A())))}}function k(e){c()===`sloppy`&&e.pointerType!==`touch`&&d.select(`open`)&&n&&!M(e)&&g(e)}function N(e){if(c()!==`sloppy`||!d.select(`open`)||!n||M(e))return;let t=e.touches[0];t&&(D.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},O.start(1e3,()=>{D.current&&(D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1)}))}function F(e,t){let n=zg(e);if(!n)return;let r=_m(n,e.type,()=>{t(e),r()})}function I(e){E.current=`touch`,F(e,N)}function L(e){O.clear(),e.type===`pointerdown`&&(E.current=e.pointerType),(e.type!==`mousedown`||!D.current||D.current.dismissOnMouseDown)&&F(e,e=>{e.type===`pointerdown`?k(e):g(e)})}function ee(e){if(!S.current)return;let n=C.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`)n&&o();else if(!u(e)){if(n)return void o();(typeof _!=`function`||_(e))&&(t.clear(),w.current=!0,A())}}}function R(e){if(c()!==`sloppy`||!D.current||M(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-D.current.startX),r=Math.abs(t.clientY-D.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(D.current.dismissOnTouchEnd=!0),i>10&&(g(e),O.clear(),D.current=null)}function te(e){F(e,R)}function z(e){c()===`sloppy`&&D.current&&!M(e)&&(D.current.dismissOnTouchEnd&&g(e),O.clear(),D.current=null)}function B(e){F(e,z)}let ne=Qg(p),re=$g(i&&$g(_m(ne,`keydown`,P),_m(ne,`compositionstart`,r),_m(ne,`compositionend`,a)),v&&$g(_m(ne,`click`,L,!0),_m(ne,`pointerdown`,L,!0),_m(ne,`pointerup`,ee,!0),_m(ne,`pointercancel`,ee,!0),_m(ne,`mousedown`,L,!0),_m(ne,`mouseup`,ee,!0),_m(ne,`touchstart`,I,!0),_m(ne,`touchmove`,te,!0),_m(ne,`touchend`,B,!0)));return()=>{re(),e.clear(),t.clear(),s(),w.current=!1}},[m,p,i,v,_,f,n,b,x,P,A,y,j,M,h,d,O]),r.useEffect(A,[_,A]);let ee=r.useMemo(()=>({onKeyDown:P,[i_[c]]:N,...c!==`intentional`&&{onClick:N}}),[P,N,c]),R=r.useMemo(()=>({onKeyDown:P,onPointerDown:L,onMouseDown:L,onClickCapture:F,onMouseDownCapture(e){F(),I(e)},onPointerDownCapture(e){F(),I(e)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[P,F,I,L]);return r.useMemo(()=>n?{reference:ee,floating:R,trigger:ee}:{},[n,ee,R])}var c_=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function l_(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:i,floatingId:a,nested:o,onOpenChange:s}=e,c=t.useState(`open`),l=t.useState(`activeTriggerElement`),u=t.useState(n?`popupElement`:`positionerElement`),d=t.context.triggerElements,f=s,p=r.useRef(null);i===void 0&&p.current===null&&(p.current=new r_({open:c,transitionStatus:void 0,referenceElement:l,floatingElement:u,triggerElements:d,onOpenChange:f,floatingId:a,syncOnly:!0,nested:o}));let m=i??p.current;return t.useSyncedValue(`floatingId`,a),J(()=>{let e={open:c,floatingId:a,referenceElement:l,floatingElement:u};Cm(l)&&(e.domReferenceElement=l),m.state.positionReference===m.state.referenceElement&&(e.positionReference=l),m.update(e)},[c,a,l,u,m]),m.context.onOpenChange=f,m.context.nested=o,m}var u_={tabIndex:-1,[Bg]:``};function d_(e,t,n=!1){let i=Up(),a=jg()!=null,o=r.useRef(null);e===void 0&&o.current===null&&(o.current=t(i,a));let s=e??o.current;return l_({popupStore:s,treatPopupAsFloatingElement:n,floatingRootContext:s.state.floatingRootContext,floatingId:i,nested:a,onOpenChange:s.setOpen}),{store:s,internalStore:o.current}}function f_(e,t){let n=r.useRef(null),i=r.useRef(null);return r.useCallback(r=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,r=i.current,o=t.context.triggerElements.getById(e);r&&o===r&&(t.context.triggerElements.delete(e),a=!0),n.current=null,i.current=null}if(r!==null&&(n.current=e,i.current=r,t.context.triggerElements.add(e,r),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function p_(e,t,n){let r=n?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function m_(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=f_(e,n),o=Y(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e)return void n.update({activeTriggerElement:t,...i?r:null});o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return J(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function h_(e){let t=e.useState(`open`);J(()=>{if(!t){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let n=e.context.triggerElements.size,r={};if(e.state.triggerCount!==n&&(r.triggerCount=n),!e.select(`activeTriggerId`)&&n===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;r.activeTriggerId=e,r.activeTriggerElement=n}}(r.triggerCount!==void 0||r.activeTriggerId!==void 0)&&e.update(r)},[t,e,e.useState(`triggerCount`)])}function g_(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=zp(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=Y(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),s=t.useState(`preventUnmountingOnClose`);return mm({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}function __(e,t){e.useSyncedValues(t),J(()=>()=>{e.update({activeTriggerProps:ep,inactiveTriggerProps:ep,popupProps:ep})},[e])}function v_(e){let t=r.useRef(!0);t.current&&(t.current=!1,e())}function y_(e,t={}){let{enabled:n=!0,event:i=`click`,toggle:a=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:c=0,reason:l=Xp}=t,u=`rootStore`in e?e.rootStore:e,d=u.context.dataRef,f=r.useRef(void 0),p=Rp(),m=Lg(),h=r.useMemo(()=>{function e(e,t,n,r){let i=Yp(l,t,n);e&&r===`touch`&&c>0?m.start(c,()=>{u.setOpen(!0,i)}):u.setOpen(e,i)}function t(e,t,n){let r=d.current.openEvent,i=u.select(`domReferenceElement`)!==t;return e&&i||!e||!a?!0:r&&s?!n(r.type):!1}return{onPointerDown(e){f.current=e.pointerType},onMouseDown(n){let r=f.current,a=n.nativeEvent,s=u.select(`open`);if(n.button!==0||i===`click`||Vh(r,!0)&&o)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),l=zg(a);if(Jg(l))return void e(c,a,l,r);let d=n.currentTarget;p.request(()=>{e(c,a,d,r)})},onClick(n){if(i===`mousedown-only`)return;let r=f.current;i===`mousedown`&&r?f.current=void 0:Vh(r,!0)&&o||e(t(u.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,r)},onKeyDown(){f.current=void 0}}},[d,i,o,l,u,s,a,p,m,c]);return r.useMemo(()=>n?{reference:h}:ep,[n,h])}var b_={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},x_={...b_,position:`fixed`,top:0,left:0},S_={...b_,position:`absolute`},C_=[`top`,`right`,`bottom`,`left`],w_=Math.min,T_=Math.max,E_=Math.round,D_=Math.floor,O_=e=>({x:e,y:e}),k_={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function A_(e,t,n){return T_(e,w_(t,n))}function j_(e,t){return typeof e==`function`?e(t):e}function M_(e){return e.split(`-`)[0]}function N_(e){return e.split(`-`)[1]}function P_(e){return e===`x`?`y`:`x`}function F_(e){return e===`y`?`height`:`width`}function I_(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function L_(e){return P_(I_(e))}function R_(e,t,n){n===void 0&&(n=!1);let r=N_(e),i=L_(e),a=F_(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=q_(o)),[o,q_(o)]}function z_(e){let t=q_(e);return[B_(e),t,B_(t)]}function B_(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var V_=[`left`,`right`],H_=[`right`,`left`],U_=[`top`,`bottom`],W_=[`bottom`,`top`];function G_(e,t,n){switch(e){case`top`:case`bottom`:return n?t?H_:V_:t?V_:H_;case`left`:case`right`:return t?U_:W_;default:return[]}}function K_(e,t,n,r){let i=N_(e),a=G_(M_(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(B_)))),a}function q_(e){let t=M_(e);return k_[t]+e.slice(t.length)}function J_(e){return{top:0,right:0,bottom:0,left:0,...e}}function Y_(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:J_(e)}function X_(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Z_(e,t,n){return Math.floor(e/t)!==n}function Q_(e,t){return t<0||t>=e.length}function $_(e,t){return tv(e.current,{disabledIndices:t})}function ev(e,t){return tv(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function tv(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&ov(e,a,r));return a}function nv(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1),r=i(t,u,n[o][e]??n[o][0]);o=a[r]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!ov(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=D_(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!ov(e,r,s))return r}};d&&Lh(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=tv(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=tv(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}Q_(e,f)&&(f=u)}if(n===`both`){let n=D_(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&Lh(t),u%o===o-1?r&&(f=tv(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=tv(e,{startingIndex:u,disabledIndices:s}),r&&Z_(f,o,n)&&(f=tv(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),Z_(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&Lh(t),u%o===0?r&&(f=tv(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=tv(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&Z_(f,o,n)&&(f=tv(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),Z_(f,o,n)&&(f=u));let c=D_(l/o)===n;Q_(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:tv(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function rv(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;r<e;r+=1)for(let e=0;e<a;e+=1)n.push(i+r+e*t);i%t+e<=t&&n.every(e=>r[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function iv(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function av(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function ov(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!cv(r)||!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function sv(e){return e.visibility===`hidden`||e.visibility===`collapse`}function cv(e,t=e?Lm(e):null){return!e||!e.isConnected||!t||sv(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var lv=r.forwardRef(function(e,t){let[n,i]=r.useState();J(()=>{Ah&&i(`button`)},[]);let a={tabIndex:0,role:n};return c(`span`,{...e,ref:t,style:x_,"aria-hidden":!n||void 0,...a,"data-base-ui-focus-guard":``})}),uv=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function dv(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Tm(n)?n.host:null}function fv(e){for(let t of Array.from(e.children))if(ym(t)===`summary`)return t;return null}function pv(e,t){let n=fv(t);return!!n&&(e===n||Q(n,e))}function mv(e){let t=e?ym(e):``;return e!=null&&e.matches(uv)&&(t!==`summary`||e.parentElement!=null&&ym(e.parentElement)===`details`&&fv(e.parentElement)===e)&&(t!==`details`||fv(e)==null)&&(t!==`input`||e.type!==`hidden`)}function hv(e){if(!mv(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=dv(t)){let n=t!==e,r=ym(t)===`slot`;if(t.hasAttribute(`inert`)||n&&ym(t)===`details`&&!t.open&&!pv(e,t)||t.hasAttribute(`hidden`)||!r&&!gv(t,n))return!1}return!0}function gv(e,t){let n=Lm(e);return t?n.display!==`none`:cv(e,n)}function _v(e){let t=e.tabIndex;if(t<0){let t=ym(e);if(t===`details`||t===`audio`||t===`video`||wm(e)&&e.isContentEditable)return 0}return t}function vv(e){if(ym(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function yv(e,t){let n=vv(e);if(!n)return!0;let r=t.find(e=>{let t=vv(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=vv(e);return t?.name===n.name&&t.form===n.form})===n}function bv(e){if(wm(e)&&ym(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return wm(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function xv(e,t){bv(e).forEach(e=>{mv(e)&&t.push(e),xv(e,t)})}function Sv(e,t,n){bv(e).forEach(e=>{wm(e)&&e.matches(t)&&n.push(e),Sv(e,t,n)})}function Cv(e){return hv(e)&&_v(e)>=0}function wv(e){let t=[];return xv(e,t),t.filter(hv)}function Tv(e){let t=wv(e);return t.filter(e=>_v(e)>=0&&yv(e,t))}function Ev(e,t){let n=Tv(e),r=n.length;if(r===0)return;let i=Rg(Qg(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Dv(e){return Ev(Qg(e).body,1)||e}function Ov(e){return Ev(Qg(e).body,-1)||e}function kv(e,t){if(!e)return null;let n=Tv(Qg(e).body),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function Av(e){return kv(e,1)}function jv(e){return kv(e,-1)}function Mv(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Q(n,r)}function Nv(e){Tv(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Pv(e){let t=[];Sv(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var Fv={style:{transition:`none`}},Iv={fallbackAxisSide:`none`},Lv={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Rv=r.createContext(null),zv=()=>r.useContext(Rv),Bv=dg(`portal`);function Vv(e={}){let{ref:t,container:n,componentProps:i=ep,elementProps:a}=e,o=Up(),s=zv()?.portalNode,[c,l]=r.useState(null),[d,f]=r.useState(null),p=Y(e=>{e!==null&&f(e)}),m=r.useRef(null);J(()=>{if(n===null){m.current&&(m.current=null,f(null),l(null));return}if(o==null)return;let e=(n&&(Sm(n)?n:n.current))??s??document.body;e==null?m.current&&(m.current=null,f(null),l(null)):m.current!==e&&(m.current=e,f(null),l(e))},[n,s,o]);let h=Tp(`div`,i,{ref:[t,p],props:[{id:o,[Bv]:``},a]});return{portalNode:d,portalSubtree:c&&h?u.createPortal(h,c):null}}var Hv=r.forwardRef(function(e,t){let{render:n,className:i,style:a,children:o,container:s,renderGuards:d,...f}=e,{portalNode:p,portalSubtree:m}=Vv({container:s,ref:t,componentProps:e,elementProps:f}),h=r.useRef(null),g=r.useRef(null),_=r.useRef(null),v=r.useRef(null),[y,b]=r.useState(null),x=r.useRef(!1),S=y?.modal,C=y?.open,w=typeof d==`boolean`?d:!!y&&!y.modal&&y.open&&!!p;r.useEffect(()=>{if(!p||S)return;function e(e){p&&e.relatedTarget&&Mv(e)&&(e.type===`focusin`?x.current&&=(Pv(p),!1):(Nv(p),x.current=!0))}return $g(_m(p,`focusin`,e,!0),_m(p,`focusout`,e,!0))},[p,S]),r.useEffect(()=>{p&&!1===C&&(Pv(p),x.current=!1)},[C,p]);let T=r.useMemo(()=>({beforeOutsideRef:h,afterOutsideRef:g,beforeInsideRef:_,afterInsideRef:v,portalNode:p,setFocusManagerState:b}),[p]);return l(r.Fragment,{children:[m,l(Rv.Provider,{value:T,children:[w&&p&&c(lv,{"data-type":`outside`,ref:h,onFocus:e=>{Mv(e,p)?_.current?.focus():Ov(y?y.domReference:null)?.focus()}}),w&&p&&c(`span`,{"aria-owns":p.id,style:Lv}),p&&u.createPortal(o,p),w&&p&&c(lv,{"data-type":`outside`,ref:g,onFocus:e=>{Mv(e,p)?v.current?.focus():(Dv(y?y.domReference:null)?.focus(),y?.closeOnFocusOut&&y?.onOpenChange(!1,Yp(`focus-out`,e.nativeEvent)))}})]})]})});function Uv(e,t){let n=r.useRef(e),i=Y(t);J(()=>{n.current!==e&&i(n.current)},[e,i]),J(()=>{n.current=e},[e])}var Wv=0;function Gv(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Wv);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),Qf;let o=requestAnimationFrame(a);return Wv=o,()=>{Wv===o&&(cancelAnimationFrame(o),Wv=0)}}var Kv={inert:new WeakMap,"aria-hidden":new WeakMap},qv=`data-base-ui-inert`,Jv={inert:new WeakSet,"aria-hidden":new WeakSet},Yv=new WeakMap,Xv=0;function Zv(e){return Jv[e]}function Qv(e){return e?Tm(e)?e.host:Qv(e.parentNode):null}var $v=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Qv(t);return e.contains(n)?n:null}).filter(e=>e!=null),ey=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},ty=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{ym(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function ny(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=$v(t,e),u=i?$v(t,a):[],d=new Set(u),f=i?ty(t,ey(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=Kv[o],n=Zv(o);c=n,s=e;let r=$v(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);ty(t,ey(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(Yv.get(e)||0)+1;Yv.set(e,t),m.push(e),t===1&&e.setAttribute(qv,``)}),Xv+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(Yv.get(e)||0)-1;Yv.set(e,t),t||e.removeAttribute(qv)}),--Xv,Xv||(Kv.inert=new WeakMap,Kv[`aria-hidden`]=new WeakMap,Jv.inert=new WeakSet,Jv[`aria-hidden`]=new WeakSet,Yv=new WeakMap)}}function ry(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=Qg(e[0]).body;return ny(e,o,n,r,{mark:i,markerIgnoreElements:a})}function iy(e,t){let n=bm(zg(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var ay=20,oy=[];function sy(){oy=oy.filter(e=>e.deref()?.isConnected)}function cy(e){sy(),e&&ym(e)!==`body`&&(oy.push(new WeakRef(e)),oy.length>ay&&(oy=oy.slice(-20)))}function ly(){return sy(),oy[oy.length-1]?.deref()}function uy(e){return e?Cv(e)?e:Tv(e)[0]||e:null}function dy(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=wv(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Cv(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function fy(e){let{context:t,children:n,disabled:i=!1,initialFocus:a=!0,returnFocus:o=!0,restoreFocus:s=!1,modal:u=!0,closeOnFocusOut:d=!0,openInteractionType:f=``,nextFocusableElement:p,previousFocusableElement:m,beforeContentFocusGuardRef:h,externalTree:g,getInsideElements:_}=e,v=`rootStore`in t?t.rootStore:t,y=v.useState(`open`),b=v.useState(`domReferenceElement`),x=v.useState(`floatingElement`),{events:S,dataRef:C}=v.context,w=Y(()=>C.current.floatingContext?.nodeId),T=!1===a,E=Yg(b)&&T,D=r.useRef([`content`]),O=hm(a),k=hm(o),A=hm(f),j=Mg(g),M=zv(),N=r.useRef(!1),P=r.useRef(!1),F=r.useRef(!1),I=r.useRef(null),L=r.useRef(``),ee=r.useRef(``),R=r.useRef(null),te=r.useRef(null),z=Kf(R,h,M?.beforeInsideRef),B=Kf(te,M?.afterInsideRef),ne=Lg(),re=Lg(),ie=Rp(),ae=M!=null,V=Zg(x),oe=Y((e=V)=>e?Tv(e):[]),se=Y(()=>_?.().filter(e=>e!=null)??[]);r.useEffect(()=>{if(i||!u)return;function e(e){e.key===`Tab`&&Q(V,Rg(Qg(V)))&&oe().length===0&&!E&&Lh(e)}return _m(Qg(V),`keydown`,e)},[i,V,u,E,oe]),r.useEffect(()=>{if(i||!y)return;let e=Qg(V);function t(){F.current=!1}function n(e){let t=zg(e),n=se(),r=Q(x,t)||Q(b,t)||Q(M?.portalNode,t)||n.some(e=>e===t||Q(e,t));F.current=!r,ee.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(P.current=!0)}function r(){ee.current=`keyboard`}return $g(_m(e,`pointerdown`,n,!0),_m(e,`pointerup`,t,!0),_m(e,`pointercancel`,t,!0),_m(e,`keydown`,r,!0))},[i,x,b,V,y,M,se]),r.useEffect(()=>{if(i||!d)return;let e=Qg(V);function t(){P.current=!0,re.start(0,()=>{P.current=!1})}function n(e){let t=zg(e);Cv(t)&&(I.current=t)}function r(t){let n=t.relatedTarget,r=t.currentTarget,i=zg(t);queueMicrotask(()=>{let a=w(),o=v.context.triggerElements,c=se(),l=n?.hasAttribute(dg(`focus-guard`))&&[R.current,te.current,M?.beforeInsideRef.current,M?.afterInsideRef.current,M?.beforeOutsideRef.current,M?.afterOutsideRef.current,fm(m),fm(p)].includes(n),d=!(Q(b,n)||Q(x,n)||Q(n,x)||Q(M?.portalNode,n)||c.some(e=>e===n||Q(e,n))||n!=null&&o.hasElement(n)||o.hasMatchingElement(e=>Q(e,n))||l||j&&(e_(j.nodesRef.current,a).find(e=>Q(e.context?.elements.floating,n)||Q(e.context?.elements.domReference,n))||t_(j.nodesRef.current,a).find(e=>[e.context?.elements.floating,Zg(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===b&&V&&dy(V,D),s&&r!==b&&!cv(i)&&Rg(e)===e.body){if(wm(V)&&(V.focus(),s===`popup`))return void ie.request(()=>{V.focus()});let e=oe(),t=I.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||V;wm(n)&&n.focus()}C.current.insideReactTree?C.current.insideReactTree=!1:(E||!u)&&n&&d&&!P.current&&(E||n!==ly())&&(N.current=!0,v.setOpen(!1,Yp(tm,t)))})}function a(){F.current||(C.current.insideReactTree=!0,ne.start(0,()=>{C.current.insideReactTree=!1}))}let o=wm(b)?b:null;if(x||o)return $g(o&&_m(o,`focusout`,r),o&&_m(o,`pointerdown`,t),x&&_m(x,`focusin`,n),x&&_m(x,`focusout`,r),x&&M&&_m(x,`focusout`,a,!0))},[i,b,x,V,u,j,M,v,d,s,oe,E,w,D,C,ne,re,ie,p,m,se]),r.useEffect(()=>{if(i||!x||!y)return;let e=Array.from(M?.portalNode?.querySelectorAll(`[${dg(`portal`)}]`)||[]),t=(j?t_(j.nodesRef.current,w()):[]).find(e=>Yg(e.context?.elements.domReference||null))?.context?.elements.domReference,n=ry([x,...e,R.current,te.current,M?.beforeOutsideRef.current,M?.afterOutsideRef.current,...se(),t,fm(m),fm(p),E?b:null].filter(e=>e!=null),{ariaHidden:u||E,mark:!1}),r=ry([x,...e].filter(e=>e!=null));return()=>{r(),n()}},[y,i,b,x,u,M,E,j,w,p,m,se]),J(()=>{if(!y||i||!wm(V))return;let e=Qg(V),t=Rg(e);queueMicrotask(()=>{let n=O.current,r=typeof n==`function`?n(A.current||``):n;if(r===void 0||!1===r||Q(V,t))return;let i=null,a=()=>(i??=oe(V),i[0]||V),o;o=!0===r||r===null?a():fm(r),o||=a();let s=Q(V,Rg(e));Gv(o,{preventScroll:o===V,shouldFocus(){if(s)return!0;let t=Rg(e);return!(t!==o&&Q(V,t))}})})},[i,y,V,oe,O,A]),J(()=>{if(i||!V)return;let e=Qg(V);cy(Rg(e));function t(e){if(e.open||(L.current=iy(e.nativeEvent,ee.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(N.current=!0),e.reason===`outside-press`){if(e.nested)N.current=!1;else if(zh(e.nativeEvent)||Bh(e.nativeEvent))N.current=!1;else{let e=!1;Qg(V).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?N.current=!1:N.current=!0}}}S.on(`openchange`,t);function n(){let e=k.current,t=typeof e==`function`?e(L.current):e;if(t===void 0||!1===t)return null;if(t===null&&(t=!0),typeof t==`boolean`)return b?.isConnected?b:ly()||null;let n=b?.isConnected?b:ly();return fm(t)||n||null}return()=>{S.off(`openchange`,t);let r=Rg(e),i=se(),a=Q(x,r)||i.some(e=>e===r||Q(e,r))||j&&e_(j.nodesRef.current,w(),!1).some(e=>Q(e.context?.elements.floating,r)),o=k.current,s=n();queueMicrotask(()=>{let t=uy(s),n=typeof o!=`boolean`;o&&!N.current&&wm(t)&&(n||t===r||r===e.body||a)&&t.focus({preventScroll:!0}),N.current=!1})}},[i,x,V,k,S,j,b,w,se]),J(()=>{if(!Oh||y||!x)return;let e=Rg(Qg(x));wm(e)&&Jg(e)&&Q(x,e)&&e.blur()},[y,x]),J(()=>{if(!i&&M)return M.setFocusManagerState({modal:u,closeOnFocusOut:d,open:y,onOpenChange:v.setOpen,domReference:b}),()=>{M.setFocusManagerState(null)}},[i,M,u,y,v,d,b]),J(()=>{if(!i&&V)return dy(V,D),()=>{queueMicrotask(sy)}},[i,V,D]);let ce=!i&&(!u||!E)&&(ae||u);return l(r.Fragment,{children:[ce&&c(lv,{"data-type":`inside`,ref:z,onFocus:e=>{if(u){let e=oe();Gv(e[e.length-1])}else M?.portalNode&&(N.current=!1,Mv(e,M.portalNode)?Dv(b)?.focus():fm(m??M.beforeOutsideRef)?.focus())}}),n,ce&&c(lv,{"data-type":`inside`,ref:B,onFocus:e=>{u?Gv(oe()[0]):M?.portalNode&&(d&&(N.current=!0),Mv(e,M.portalNode)?Ov(b)?.focus():fm(p??M.afterOutsideRef)?.focus())}})]})}function py(e){let t=r.useRef(``),n=r.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:r.useCallback(n=>{if(n.detail===0)return void e(n,`keyboard`);`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function my(e,t){let{onClick:n,onPointerDown:i}=py(Y((n,r)=>{(typeof e==`function`?e():e)||t(r||(kh?`touch`:``))}));return r.useMemo(()=>({onClick:n,onPointerDown:i}),[n,i])}function hy(e){let[t,n]=r.useState(null),i=my(e,n);return Uv(e,t=>{t&&!e&&n(null)}),r.useMemo(()=>({openMethod:t,triggerProps:i}),[t,i])}var gy={},_y={},vy=``;function yy(e){if(`u`<typeof document)return!1;let t=Qg(e);return bm(t).innerWidth-t.documentElement.clientWidth>0}function by(e){if(!(`u`>typeof CSS&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||`u`<typeof document)return!1;let t=Qg(e),n=t.documentElement,r=t.body,i=Em(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function xy(e){let t=Qg(e),n=t.documentElement,r=t.body,i=Em(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Sy(e){let t=Qg(e),n=t.documentElement,r=t.body,i=bm(n),a=0,o=0,s=!1,c=Lp.create();if(Oh&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,gy={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},vy=n.style.scrollBehavior,_y={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=Em(n)?n:r;s=by(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,gy),Object.assign(r.style,_y),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=vy)}function d(){u(),c.request(l)}l();let f=_m(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Cy=new class{lockCount=0;restore=null;timeoutLock=Ig.create();timeoutUnlock=Ig.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Qg(e).documentElement,n=bm(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=Qf;return}let r=kh||!yy(e);this.restore=r?xy(e):Sy(e)}};function wy(e=!0,t=null){J(()=>{if(e)return Cy.acquire(t)},[e,t])}var Ty=r.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return c(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function Ey(){return new r_({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new c_,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Dy(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Ey(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:ep,inactiveTriggerProps:ep,popupProps:ep}}function Oy(e,t,n=!1){return new r_({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var ky=X(e=>e.triggerIdProp??e.activeTriggerId),Ay=X(e=>e.openProp??e.open),jy=X(e=>(e.popupElement?.id??e.floatingId)||void 0);function My(e,t){return t!==void 0&&Ay(e)&&ky(e)===t}function Ny(e,t){return My(e,t)?!0:t!==void 0&&Ay(e)&&ky(e)==null&&e.triggerCount===1}var Py={open:Ay,mounted:X(e=>e.mounted),transitionStatus:X(e=>e.transitionStatus),floatingRootContext:X(e=>e.floatingRootContext),triggerCount:X(e=>e.triggerCount),preventUnmountingOnClose:X(e=>e.preventUnmountingOnClose),payload:X(e=>e.payload),activeTriggerId:ky,activeTriggerElement:X(e=>e.mounted?e.activeTriggerElement:null),popupId:jy,isTriggerActive:X((e,t)=>t!==void 0&&ky(e)===t),isOpenedByTrigger:X((e,t)=>My(e,t)),isMountedByTrigger:X((e,t)=>t!==void 0&&ky(e)===t&&e.mounted),triggerProps:X((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:X((e,t)=>Ny(e,t)?jy(e):void 0),popupProps:X(e=>e.popupProps),popupElement:X(e=>e.popupElement),positionerElement:X(e=>e.positionerElement)};function Fy(e){return ip(19)?e:e?`true`:void 0}(function(e){return e[e.open=Qh.open]=`open`,e[e.closed=Qh.closed]=`closed`,e[e.startingStyle=Qh.startingStyle]=`startingStyle`,e[e.endingStyle=Qh.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e})({}),{...sg,...dm},{...Py},X(e=>e.modal),X(e=>e.nested),X(e=>e.nestedOpenDialogCount),X(e=>e.nestedOpenDrawerCount),X(e=>e.disablePointerDismissal),X(e=>e.openMethod),X(e=>e.descriptionElementId),X(e=>e.titleElementId),X(e=>e.viewportElement),X(e=>e.role),{...sg,...dm},function(e){return e[e.open=Qh.open]=`open`,e[e.closed=Qh.closed]=`closed`,e[e.startingStyle=Qh.startingStyle]=`startingStyle`,e[e.endingStyle=Qh.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),{...sg,...dm};function Iy(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}var Ly=(e,t)=>Object.is(e,t);function Ry(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function zy(e,t,n){return!e||e.length===0?!1:e.some(e=>e!==void 0&&Ry(t,e,n))}function By(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e!==void 0&&Ry(e,t,n))}function Vy(e,t,n){return e.filter(e=>!Ry(t,e,n))}function Hy(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function Uy(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(Hy(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function Wy(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return Iy(e)}function Gy(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?Iy(e.value):Iy(e)}function Ky(e,t,n){function r(){return Wy(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=Hy(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function qy(e,t,n){return e.reduce((e,i,a)=>(a>0&&e.push(`, `),e.push(c(r.Fragment,{children:Ky(i,t,n)},a)),e),[])}var Jy=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),Yy={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Xy={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Zy={disabled:!1,...Xy},Qy={valid(e){return e===null?null:e?{[Jy.valid]:``}:{[Jy.invalid]:``}}},$y={invalid:void 0,name:void 0,validityData:{state:Yy,errors:[],error:``,value:``,initialValue:null},setValidityData:Qf,disabled:void 0,touched:Xy.touched,setTouched:Qf,dirty:Xy.dirty,setDirty:Qf,filled:Xy.filled,setFilled:Qf,focused:Xy.focused,setFocused:Qf,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:Zy,markedDirtyRef:{current:!1},registerFieldControl:Qf,validation:{getValidationProps:(e=ep)=>e,getInputValidationProps:(e=ep)=>e,inputRef:{current:null},commit:async()=>{}}},eb=r.createContext($y);function tb(e=!0){let t=r.useContext(eb);if(t.setValidityData===Qf&&!e)throw Error(np(28));return t}var nb=r.createContext({controlId:void 0,registerControlId:Qf,labelId:void 0,setLabelId:Qf,messageIds:[],setMessageIds:Qf,getDescriptionProps:e=>e});function rb(){return r.useContext(nb)}function ib(e){return e==null?void 0:`${e}-label`}function ab(e,t){return e??t}function ob(e,t,n){let{reference:r,floating:i}=e,a=I_(t),o=L_(t),s=F_(o),c=M_(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(N_(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1)}return p}async function sb(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=j_(t,e),p=Y_(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=X_(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=X_(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var cb=50,lb=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:sb},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ob(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<cb&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=!0===x.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ob(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ub=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=j_(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=M_(r),_=I_(o),v=M_(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[q_(o)]:z_(o)),x=p!==`none`;!d&&x&&b.push(...K_(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=R_(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===I_(t)||T.every(e=>I_(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=I_(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function db(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fb(e){return C_.some(t=>e[t]>=0)}var pb=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=j_(e,t);switch(i){case`referenceHidden`:{let e=db(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:fb(e)}}}case`escaped`:{let e=db(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:fb(e)}}}default:return{}}}}},mb=new Set([`left`,`top`]);async function hb(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=M_(n),s=N_(n),c=I_(n)===`y`,l=mb.has(o)?-1:1,u=a&&c?-1:1,d=j_(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?-1*m:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var gb=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await hb(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},_b=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=j_(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=I_(M_(i)),p=P_(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=A_(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=A_(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},vb=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=j_(e,t),u={x:n,y:r},d=I_(i),f=P_(d),p=u[f],m=u[d],h=j_(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=mb.has(M_(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},yb=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=j_(e,t),u=await o.detectOverflow(t,l),d=M_(i),f=N_(i),p=I_(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=w_(h-u[g],v),x=w_(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=T_(u.left,0),t=T_(u.right,0),n=T_(u.top,0),r=T_(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:T_(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:T_(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function bb(e){let t=Lm(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=wm(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=E_(n)!==a||E_(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function xb(e){return Cm(e)?e:e.contextElement}function Sb(e){let t=xb(e);if(!wm(t))return O_(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=bb(t),o=(a?E_(n.width):n.width)/r,s=(a?E_(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Cb=O_(0);function wb(e){let t=bm(e);return!Fm()||!t.visualViewport?Cb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Tb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==bm(e)?!1:t}function Eb(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=xb(e),o=O_(1);t&&(r?Cm(r)&&(o=Sb(r)):o=Sb(e));let s=Tb(a,n,r)?wb(a):O_(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=bm(a),t=r&&Cm(r)?bm(r):r,n=e,i=Hm(n);for(;i&&r&&t!==n;){let e=Sb(i),t=i.getBoundingClientRect(),r=Lm(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=bm(i),i=Hm(n)}}return X_({width:u,height:d,x:c,y:l})}function Db(e,t){let n=Rm(e).scrollLeft;return t?t.left+n:Eb(xm(e)).left+n}function Ob(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Db(e,n),y:n.top+t.scrollTop}}function kb(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=xm(r),s=t?Om(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=O_(1),u=O_(0),d=wm(r);if((d||!d&&!a)&&((ym(r)!==`body`||Em(o))&&(c=Rm(r)),d)){let e=Eb(r);l=Sb(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=!o||d||a?O_(0):Ob(o,c);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ab(e){return Array.from(e.getClientRects())}function jb(e){let t=xm(e),n=Rm(e),r=e.ownerDocument.body,i=T_(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=T_(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Db(e),s=-n.scrollTop;return Lm(r).direction===`rtl`&&(o+=T_(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Mb=25;function Nb(e,t){let n=bm(e),r=xm(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Fm();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Db(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Mb&&(a-=o)}else l<=Mb&&(a+=l);return{width:a,height:o,x:s,y:c}}function Pb(e,t){let n=Eb(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=wm(e)?Sb(e):O_(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Fb(e,t,n){let r;if(t===`viewport`)r=Nb(e,n);else if(t===`document`)r=jb(xm(e));else if(Cm(t))r=Pb(t,n);else{let n=wb(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return X_(r)}function Ib(e,t){let n=zm(e);return n===t||!Cm(n)||Im(n)?!1:Lm(n).position===`fixed`||Ib(n,t)}function Lb(e,t){let n=t.get(e);if(n)return n;let r=Vm(e,[],!1).filter(e=>Cm(e)&&ym(e)!==`body`),i=null,a=Lm(e).position===`fixed`,o=a?zm(e):e;for(;Cm(o)&&!Im(o);){let t=Lm(o),n=Nm(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Em(o)&&!n&&Ib(e,o))?r=r.filter(e=>e!==o):i=t,o=zm(o)}return t.set(e,r),r}function Rb(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Om(t)?[]:Lb(t,this._c):[].concat(n),r],o=Fb(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Fb(t,a[e],i);s=T_(n.top,s),c=w_(n.right,c),l=w_(n.bottom,l),u=T_(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function zb(e){let{width:t,height:n}=bb(e);return{width:t,height:n}}function Bb(e,t,n){let r=wm(t),i=xm(t),a=n===`fixed`,o=Eb(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=O_(0);function l(){c.x=Db(i)}if(r||!r&&!a){if((ym(t)!==`body`||Em(i))&&(s=Rm(t)),r){let e=Eb(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l()}a&&!r&&i&&l();let u=!i||r||a?O_(0):Ob(i,s);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Vb(e){return Lm(e).position===`static`}function Hb(e,t){if(!wm(e)||Lm(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return xm(e)===n&&(n=n.ownerDocument.body),n}function Ub(e,t){let n=bm(e);if(Om(e))return n;if(!wm(e)){let t=zm(e);for(;t&&!Im(t);){if(Cm(t)&&!Vb(t))return t;t=zm(t)}return n}let r=Hb(e,t);for(;r&&Dm(r)&&Vb(r);)r=Hb(r,t);return r&&Im(r)&&Vb(r)&&!Nm(r)?n:r||Pm(e)||n}var Wb=async function(e){let t=this.getOffsetParent||Ub,n=this.getDimensions,r=await n(e.floating);return{reference:Bb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Gb(e){return Lm(e).direction===`rtl`}var Kb={convertOffsetParentRelativeRectToViewportRelativeRect:kb,getDocumentElement:xm,getClippingRect:Rb,getOffsetParent:Ub,getElementRects:Wb,getClientRects:Ab,getDimensions:zb,getScale:Sb,isElement:Cm,isRTL:Gb};function qb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jb(e,t){let n=null,r,i=xm(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=D_(d),h=D_(i.clientWidth-(u+f)),g=D_(i.clientHeight-(d+p)),_=D_(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:T_(0,w_(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!qb(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Yb(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=xb(e),u=i||a?[...l?Vm(l):[],...t?Vm(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Jb(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Eb(e):null;c&&g();function g(){let t=Eb(e);h&&!qb(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Xb=gb,Zb=_b,Qb=ub,$b=yb,ex=pb,tx=vb,nx=(e,t,n)=>{let r=new Map,i={platform:Kb,...n},a={...i.platform,_c:r};return lb(e,t,{...i,platform:a})},rx=`u`>typeof document?r.useLayoutEffect:function(){};function ix(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ix(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if((n!==`_owner`||!e.$$typeof)&&!ix(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ax(e){return`u`<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ox(e,t){let n=ax(e);return Math.round(t*n)/n}function sx(e){let t=r.useRef(e);return rx(()=>{t.current=e}),t}function cx(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:i=[],platform:a,elements:{reference:o,floating:s}={},transform:c=!0,whileElementsMounted:l,open:d}=e,[f,p]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=r.useState(i);ix(m,i)||h(i);let[g,_]=r.useState(null),[v,y]=r.useState(null),b=r.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=r.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=o||g,C=s||v,w=r.useRef(null),T=r.useRef(null),E=r.useRef(f),D=l!=null,O=sx(l),k=sx(a),A=sx(d),j=r.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};k.current&&(e.platform=k.current),nx(w.current,T.current,e).then(e=>{let t={...e,isPositioned:!1!==A.current};M.current&&!ix(E.current,t)&&(E.current=t,u.flushSync(()=>{p(t)}))})},[m,t,n,k,A]);rx(()=>{!1===d&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let M=r.useRef(!1);rx(()=>(M.current=!0,()=>{M.current=!1}),[]),rx(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=r.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=r.useMemo(()=>({reference:S,floating:C}),[S,C]),F=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=ox(P.floating,f.x),r=ox(P.floating,f.y);return c?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ax(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,c,P.floating,f.x,f.y]);return r.useMemo(()=>({...f,update:j,refs:N,elements:P,floatingStyles:F}),[f,j,N,P,F])}var lx=(e,t)=>{let n=Xb(e);return{name:n.name,fn:n.fn,options:[e,t]}},ux=(e,t)=>{let n=Zb(e);return{name:n.name,fn:n.fn,options:[e,t]}},dx=(e,t)=>({fn:tx(e).fn,options:[e,t]}),fx=(e,t)=>{let n=Qb(e);return{name:n.name,fn:n.fn,options:[e,t]}},px=(e,t)=>{let n=$b(e);return{name:n.name,fn:n.fn,options:[e,t]}},mx=(e,t)=>{let n=ex(e);return{name:n.name,fn:n.fn,options:[e,t]}};function hx(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Up(),a=jg()!=null,o=Gf(()=>new r_({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new c_,floatingId:i,syncOnly:!1,nested:a})).current;return J(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=Cm(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function gx(e={}){let{nodeId:t,externalTree:n}=e,i=hx(e),a=e.rootContext||i,o=a.useState(`referenceElement`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),l=a.useState(`open`),u=a.useState(`floatingId`),[d,f]=r.useState(null),[p,m]=r.useState(void 0),[h,g]=r.useState(void 0),_=r.useRef(null),v=Mg(n),y=r.useMemo(()=>({reference:o,floating:s,domReference:c}),[o,s,c]),b=cx({...e,elements:{...y,...d&&{reference:d}}}),x=Cm(p)?p:null,S=h===void 0?a.state.floatingElement:h;a.useSyncedValue(`referenceElement`,p??null),a.useSyncedValue(`domReferenceElement`,p===void 0?c:x),a.useSyncedValue(`floatingElement`,S);let C=r.useCallback(e=>{let t=Cm(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;f(t),b.refs.setReference(t)},[b.refs]),w=r.useCallback(e=>{(Cm(e)||e===null)&&(_.current=e,m(e)),(Cm(b.refs.reference.current)||b.refs.reference.current===null||e!==null&&!Cm(e))&&b.refs.setReference(e)},[b.refs,m]),T=r.useCallback(e=>{g(e),b.refs.setFloating(e)},[b.refs]),E=r.useMemo(()=>({...b.refs,setReference:w,setFloating:T,setPositionReference:C,domReference:_}),[b.refs,w,T,C]),D=r.useMemo(()=>({...b.elements,domReference:c}),[b.elements,c]),O=r.useMemo(()=>({...b,dataRef:a.context.dataRef,open:l,onOpenChange:a.setOpen,events:a.context.events,floatingId:u,refs:E,elements:D,nodeId:t,rootStore:a}),[b,E,D,t,a,l,u]);return J(()=>{c&&(_.current=c)},[c]),J(()=>{a.context.dataRef.current.floatingContext=O;let e=v?.nodesRef.current.find(e=>e.id===t);e&&(e.context=O)}),r.useMemo(()=>({...b,context:O,refs:E,elements:D,rootStore:a}),[b,E,D,O,a])}var _x=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=j_(e,t)||{};if(l==null)return{};let f=Y_(u),p={x:n,y:r},m=L_(i),h=F_(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=A_(k,j,A),N=!c.arrow&&N_(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,P=N?j<k?j-k:j-A:0;return{[m]:p[m]+P,data:{[m]:M,centerOffset:j-M-P,...N&&{alignmentOffset:P}},reset:N}}}),vx=(e,t)=>({..._x(e),options:[e,t]}),yx={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await mx().fn(e)).data?.referenceHidden||a}}}},bx={sideX:`left`,sideY:`top`};function xx(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function Sx(e,t,n){let{rects:r,placement:i}=e;return{side:xx(t,M_(i),n),align:N_(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Cx(e){let{anchor:t,positionMethod:n=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shiftCrossAxis:v=!1,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,[C,w]=r.useState(null);!g&&C!==null&&w(null);let T=_.side||`flip`,E=_.align||`flip`,D=_.fallbackAxisSide||`end`,O=typeof t==`function`?t:void 0,k=Y(O),A=O?k:t,j=hm(t),M=hm(g),N=Wh()===`rtl`,P=C||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[i],F=o===`center`?P:`${P}-${o}`,I=l,L=+(i===`bottom`),ee=+(i===`top`),R=+(i===`right`),te=+(i===`left`);typeof I==`number`?I={top:I+L,right:I+te,bottom:I+ee,left:I+R}:I&&={top:(I.top||0)+L,right:(I.right||0)+te,bottom:(I.bottom||0)+ee,left:(I.left||0)+R};let z={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:I},B=r.useRef(null),ne=hm(a),re=hm(s),ie=typeof a==`function`?0:a,ae=typeof s==`function`?0:s,V=[];p&&V.push(p),V.push(lx(e=>{let t=Sx(e,i,N),n=typeof ne.current==`function`?ne.current(t):ne.current,r=typeof re.current==`function`?re.current(t):re.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[ie,ae,N,i]));let oe=E===`none`&&T!==`shift`,se=!oe&&(u||v||T===`shift`),ce=T===`none`?null:fx({...z,padding:{top:I.top+1,right:I.right+1,bottom:I.bottom+1,left:I.left+1},mainAxis:!v&&T===`flip`,crossAxis:E===`flip`&&`alignment`,fallbackAxisSideDirection:D}),le=oe?null:ux(e=>{let t=Qg(e.elements.floating).documentElement;return{...z,rootBoundary:v?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:E!==`none`,crossAxis:se,limiter:u||v?void 0:dx(e=>{if(!B.current)return{};let{width:t,height:n}=B.current.getBoundingClientRect(),r=I_(M_(e.placement)),i=r===`y`?t:n,a=r===`y`?I.left+I.right:I.top+I.bottom;return{offset:i/2+a/2}})}},[z,u,v,I,E]);T===`shift`||E===`shift`||o===`center`?V.push(le,ce):V.push(ce,le),V.push(px({...z,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=bm(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),vx(e=>({element:B.current||Qg(e.elements.floating).createElement(`div`),padding:d,offsetParent:`floating`}),[d]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:r,rects:o,y:s}=e,c=M_(r),l=I_(c),u=B.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof a==`function`?a(Sx(e,i,N)):a,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,se&&l===`y`&&b?S:x),{}}},yx,b),J(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let ue=r.useMemo(()=>({elementResize:!f&&`u`>typeof ResizeObserver,layoutShift:!f&&`u`>typeof IntersectionObserver}),[f]),{refs:de,elements:fe,x:pe,y:me,middlewareData:he,update:ge,placement:_e,context:ve,isPositioned:ye,floatingStyles:be}=gx({rootContext:h,open:m?g:void 0,placement:F,middleware:V,strategy:n,whileElementsMounted:m?void 0:(...e)=>Yb(...e,ue),nodeId:y,externalTree:S}),{sideX:xe,sideY:Se}=he.adaptiveOrigin||bx,Ce=ye?n:`fixed`,we=r.useMemo(()=>{let e=b?{position:Ce,[xe]:pe,[Se]:me}:{position:Ce,...be};return ye||(e.opacity=0),e},[b,Ce,xe,pe,Se,me,be,ye]),Te=r.useRef(null);J(()=>{if(!g)return;let e=j.current,t=typeof e==`function`?e():e,n=(wx(t)?t.current:t)||null;n!==Te.current&&(de.setPositionReference(n),Te.current=n)},[g,de,A,j]),r.useEffect(()=>{if(!g)return;let e=j.current;typeof e!=`function`&&wx(e)&&e.current!==Te.current&&(de.setPositionReference(e.current),Te.current=e.current)},[g,de,A,j]),r.useEffect(()=>{if(m&&g&&fe.domReference&&fe.floating)return Yb(fe.domReference,fe.floating,ge,ue)},[m,g,fe,ge,ue]);let Ee=M_(_e),De=xx(i,Ee,N),Oe=N_(_e)||`center`,ke=!!he.hide?.referenceHidden;J(()=>{x&&g&&ye&&w(Ee)},[x,g,ye,Ee]);let Ae=r.useMemo(()=>({position:`absolute`,top:he.arrow?.y,left:he.arrow?.x}),[he.arrow]),je=he.arrow?.centerOffset!==0;return r.useMemo(()=>({positionerStyles:we,arrowStyles:Ae,arrowRef:B,arrowUncentered:je,side:De,align:Oe,physicalSide:Ee,anchorHidden:ke,refs:de,context:ve,isPositioned:ye,update:ge}),[we,Ae,B,je,De,Oe,Ee,ke,de,ve,ye,ge])}function wx(e){return e!=null&&`current`in e}function Tx(e){return e===`starting`?Fv:ep}function Ex(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),Tp(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Tx(r),i],stateAttributesMapping:sg})}var Dx=20;function Ox(e,t,n,i){let[a,o]=r.useState(!1);J(()=>{if(!e||!t||n==null)return void o(!1);let r=Qg(n).documentElement.clientWidth,i=n.offsetWidth;o(r>0&&i>0&&i>=r-Dx)},[e,t,n]),wy(e&&(!t||a),i)}function kx(e={}){let{id:t,implicit:n=!1,controlRef:i}=e,{controlId:a,registerControlId:o}=rb(),s=Wp(t),c=n?a:void 0,l=Gf(()=>Symbol(`labelable-control`)),u=r.useRef(!1),d=r.useRef(t!=null),f=Y(()=>{u.current&&o!==Qf&&(u.current=!1,o(l.current,void 0))});return J(()=>{if(o===Qf)return;let e;if(n){let n=i?.current;e=Cm(n)&&n.closest(`label`)!=null?t??null:c??s}else if(t!=null)d.current=!0,e=t;else{if(!d.current)return void f();e=s}if(e===void 0)return void f();u.current=!0,o(l.current,e)},[t,i,c,o,n,s,l,f]),r.useEffect(()=>f,[f]),a??s}function Ax(e,t){let{listRef:n,elementsRef:i,activeIndex:a,onMatch:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=`rootStore`in e?e.rootStore:e,f=d.useState(`open`),p=Lg(),m=r.useRef(``),h=r.useRef(u??a??-1),g=r.useRef(null),_=Y(e=>{function t(e){let t=i?.current[e];return!t||cv(t)}function r(e,n,r=0){if(e.length===0)return-1;let i=(r%e.length+e.length)%e.length,a=n.toLocaleLowerCase();for(let n=0;n<e.length;n+=1){let r=(i+n)%e.length;if(e[r]?.toLocaleLowerCase().startsWith(a)&&t(r))return r}return-1}let c=n.current;if(m.current.length>0&&e.key===` `&&(Lh(e),s?.(!0)),m.current.length>0&&m.current[0]!==` `&&r(c,m.current)===-1&&e.key!==` `&&s?.(!1),c==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&(Lh(e),s?.(!0));let d=m.current===``;d&&(h.current=u??a??-1),c.every(e=>!e||e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase())&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,s?.(!1)});let _=((d?u??a??-1:h.current)??0)+1,v=r(c,m.current,_);v===-1?e.key!==` `&&(m.current=``,s?.(!1)):(o?.(v),g.current=v)}),v=Y(e=>{let t=e.relatedTarget,n=d.select(`domReferenceElement`),r=d.select(`floatingElement`);Q(n,t)||Q(r,t)||(p.clear(),m.current=``,h.current=g.current,s?.(!1))});J(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``))},[f,u,p]),J(()=>{f&&m.current===``&&(h.current=u??a??-1)},[f,u,a]);let y=r.useMemo(()=>({onKeyDown:_,onBlur:v}),[_,v]);return r.useMemo(()=>c?{reference:y,floating:y}:{},[c,y])}var jx=`Escape`;function Mx(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Nx(e,t){return Mx(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Px(e,t,n){return Mx(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function Fx(e,t,n){return Mx(t,n?e===Vg:e===Hg,e===Wg)}function Ix(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===jx:Mx(t,n?e===Hg:e===Vg,e===Ug)}function Lx(e,t){let{listRef:n,activeIndex:i,onNavigate:a=()=>{},enabled:o=!0,selectedIndex:s=null,allowEscape:c=!1,loopFocus:l=!1,nested:u=!1,rtl:d=!1,virtual:f=!1,focusItemOnOpen:p=`auto`,focusItemOnHover:m=!0,openOnArrowKeyDown:h=!0,disabledIndices:g,orientation:_=`vertical`,parentOrientation:v,cols:y=1,id:b,resetOnPointerLeave:x=!0,externalTree:S}=t,C=`rootStore`in e?e.rootStore:e,w=C.useState(`open`),T=C.useState(`floatingElement`),E=C.useState(`domReferenceElement`),D=C.context.dataRef,O=Zg(T),k=Yg(E),A=hm(O),j=jg(),M=Mg(S),N=r.useRef(p),P=r.useRef(s??-1),F=r.useRef(null),I=r.useRef(!0),L=Y(e=>{a(P.current===-1?null:P.current,e)}),ee=r.useRef(L),R=r.useRef(!!T),te=r.useRef(w),z=r.useRef(!1),B=r.useRef(!1),ne=r.useRef(null),re=hm(g),ie=hm(w),ae=hm(s),V=hm(x),oe=Rp(),se=Rp(),ce=Y(()=>{function e(e){f?M?.events.emit(`virtualfocus`,e):ne.current=Gv(e,{sync:z.current,preventScroll:!0})}let t=n.current[P.current],r=B.current;t&&e(t),(z.current?e=>e():e=>oe.request(e))(()=>{let i=n.current[P.current]||t;i&&(t||e(i),me&&(r||!I.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});J(()=>{D.current.orientation=_},[D,_]),J(()=>{o&&(w&&T?(P.current=s??-1,N.current&&s!=null&&(B.current=!0,L())):R.current&&(P.current=-1,ee.current()))},[o,w,T,s,L]),J(()=>{if(o){if(!w)z.current=!1;else if(T){if(i==null){if(z.current=!1,ae.current!=null)return;if(R.current&&(P.current=-1,ce()),(!te.current||!R.current)&&N.current&&(F.current!=null||!0===N.current&&F.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>se.request(e):queueMicrotask)(t),e+=1):(P.current=F.current==null||Px(F.current,_,d)||u?$_(n):ev(n),F.current=null,L())};t()}}else Q_(n.current,i)||(P.current=i,ce(),B.current=!1)}}},[o,w,T,i,ae,u,n,_,d,L,ce,se]),J(()=>{if(!o||T||!M||f||!R.current)return;let e=M.nodesRef.current,t=e.find(e=>e.id===j)?.context?.elements.floating,n=Rg(Qg(T)),r=e.some(e=>e.context&&Q(e.context.elements.floating,n));t&&!r&&I.current&&t.focus({preventScroll:!0})},[o,T,M,j,f]),J(()=>{ee.current=L,te.current=w,R.current=!!T}),J(()=>{w||(F.current=null,N.current=p)},[w,p]);let le=i!=null,ue=Y(e=>{if(!ie.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(P.current!==t||i!==t)&&(P.current=t,L(e))}),de=Y(()=>v??M?.nodesRef.current.find(e=>e.id===j)?.context?.dataRef?.current.orientation),fe=Y(()=>$_(n,re.current)),pe=Y(e=>{if(I.current=!1,z.current=!0,e.which===229||!ie.current&&e.currentTarget===A.current)return;if(u&&Ix(e.key,_,d,y)){Nx(e.key,de())||Lh(e),C.setOpen(!1,Yp(rm,e.nativeEvent)),wm(E)&&(f?M?.events.emit(`virtualfocus`,E):E.focus());return}let t=P.current,r=$_(n,g),i=ev(n,g);if(k||(e.key===`Home`&&(Lh(e),P.current=r,L(e)),e.key===`End`&&(Lh(e),P.current=i,L(e))),y>1){let t=Array.from({length:n.current.length},()=>({width:1,height:1})),a=rv(t,y,!1),o=a.findIndex(e=>e!=null&&!ov(n.current,e,g)),s=a.reduce((e,t,r)=>t==null||ov(n.current,t,g)?e:r,-1),c=a[nv(a.map(e=>e==null?null:n.current[e]),{event:e,orientation:_,loopFocus:l,rtl:d,cols:y,disabledIndices:av([...(typeof g==`function`?null:g)||n.current.map((e,t)=>ov(n.current,t,g)?t:void 0),void 0],a),minIndex:o,maxIndex:s,prevIndex:iv(P.current>i?r:P.current,t,a,y,e.key===`ArrowDown`?`bl`:e.key===(d?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(c!=null&&(P.current=c,L(e)),_===`both`)return}if(Nx(e.key,_)){if(Lh(e),w&&!f&&Rg(e.currentTarget.ownerDocument)===e.currentTarget){P.current=Px(e.key,_,d)?r:i,L(e);return}Px(e.key,_,d)?l?t>=i?c&&t!==n.current.length?P.current=-1:(z.current=!1,P.current=r):P.current=tv(n.current,{startingIndex:t,disabledIndices:g}):P.current=Math.min(i,tv(n.current,{startingIndex:t,disabledIndices:g})):l?t<=r?c&&t!==-1?P.current=n.current.length:(z.current=!1,P.current=i):P.current=tv(n.current,{startingIndex:t,decrement:!0,disabledIndices:g}):P.current=Math.max(r,tv(n.current,{startingIndex:t,decrement:!0,disabledIndices:g})),Q_(n.current,P.current)&&(P.current=-1),L(e)}}),me=r.useMemo(()=>({onFocus(e){z.current=!0,ue(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){z.current=!0,B.current=!1,m&&ue(e)},onPointerLeave(e){if(!ie.current||!I.current||e.pointerType===`touch`)return;z.current=!0;let t=e.relatedTarget;if(m&&!n.current.includes(t)&&V.current&&(ne.current?.(),ne.current=null,P.current=-1,L(e),!f)){let e=A.current,t=Rg(Qg(e));e&&Q(e,t)&&e.focus({preventScroll:!0})}}}),[ue,ie,A,m,n,L,V,f]),he=r.useMemo(()=>f&&w&&le&&{"aria-activedescendant":`${b}-${i}`},[f,w,le,b,i]),ge=r.useMemo(()=>({"aria-orientation":_===`both`?void 0:_,...k?{}:he,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&w&&!f){let t=zg(e.nativeEvent);if(t&&!Q(A.current,t))return;Lh(e),C.setOpen(!1,Yp(tm,e.nativeEvent)),wm(E)&&E.focus()}else pe(e)},onPointerMove(){I.current=!0}}),[he,pe,A,_,k,C,w,f,E]),_e=r.useMemo(()=>{function e(e){C.setOpen(!0,Yp(rm,e.nativeEvent,e.currentTarget))}function t(e){p===`auto`&&zh(e.nativeEvent)&&(N.current=!f)}function n(e){N.current=p,p===`auto`&&Bh(e.nativeEvent)&&(N.current=!0)}return{onKeyDown(t){let n=C.select(`open`);I.current=!1;let r=t.key.startsWith(`Arrow`),i=Fx(t.key,de(),d),a=Nx(t.key,_),o=(u?i:a)||t.key===`Enter`||t.key.trim()===``;if(f&&n)return pe(t);if(n||h||!r){if(o){let e=Nx(t.key,de());F.current=u&&e?null:t.key}u?i&&(Lh(t),n?(P.current=fe(),L(t)):e(t)):a&&(ae.current!=null&&(P.current=ae.current),Lh(t),!n&&h?e(t):pe(t),n&&L(t))}},onFocus(e){C.select(`open`)&&!f&&(P.current=-1,L(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[pe,p,fe,u,L,C,h,_,de,d,ae,f]),ve=r.useMemo(()=>({...he,..._e}),[he,_e]);return r.useMemo(()=>o?{reference:ve,floating:ge,item:me,trigger:_e}:{},[o,ve,ge,_e,me])}function Rx(e){let t=e.getBoundingClientRect(),n=bm(e),r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var zx=r.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Qf,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Bx(){return r.useContext(zx)}function Vx(e,t,n,i,a=!0){let{registerFieldControl:o}=tb(),s=r.useRef(null);s.current||=Symbol(),J(()=>{let r=s.current;if(r&&a)return o(r,{controlRef:e,getValue:i,id:t,value:n}),()=>{o(r,void 0)}},[e,a,i,t,o,n])}X(e=>e.id),X(e=>e.labelId),X(e=>e.items),X(e=>e.selectedValue),X(e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0}),X(e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0}),X((e,t)=>t?Uy(e.items):!1),X(e=>e.open),X(e=>e.mounted),X(e=>e.forceMounted),X(e=>e.inline),X(e=>e.activeIndex),X(e=>e.selectedIndex),X((e,t)=>e.activeIndex===t),X((e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>Ry(t,e,n)):Ry(t,r,n)}),X(e=>e.transitionStatus),X(e=>e.popupProps),X(e=>e.inputProps),X(e=>e.triggerProps),X(e=>e.itemProps),X(e=>e.positionerElement),X(e=>e.listElement),X(e=>e.triggerElement),X(e=>e.inputElement),X(e=>e.inputGroupElement),X(e=>e.popupSide),X(e=>e.openMethod),X(e=>e.inputInsidePopup),X(e=>e.inputOwnsFormValue),X(e=>e.selectionMode),X(e=>e.name),X(e=>e.form),X(e=>e.disabled),X(e=>e.readOnly),X(e=>e.required),X(e=>e.grid),X(e=>e.virtualized),X(e=>e.itemToStringLabel),X(e=>e.isItemEqualToValue),X(e=>e.modal),X(e=>e.autoHighlight),X(e=>e.submitOnItemClick),{...og,...Qy},{...dm,...ag},{...sg,...dm},{...sg,...dm};var Hx=r.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return Tp(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});({...dm});var Ux={root:`root-ig2Z1s`,default:`default-nJusqF`,light:`light-qGxiE8`,primary:`primary-bU68vw`,secondary:`secondary-dA1Wg2`},Wx={default:`default`,light:`light`,primary:`primary`,secondary:`secondary`},Gx=r.forwardRef(({variant:e=Wx.default,className:t,...n},r)=>c(`span`,{ref:r,className:Uf(Ux.root,Ux[e],t),...n}));Gx.displayName=`Badge`;var Kx={root:`root-Ao8l6B`,primary:`primary-CVNdae`,secondary:`secondary-cuRZXS`},qx=r.forwardRef(({variant:e=`primary`,render:t,className:n,...i},a)=>{let o=Kx[e];if(t){let{className:e,...s}=t.props;return r.cloneElement(t,{...s,...i,ref:a,className:Uf(Kx.root,o,e,n)})}return c(`div`,{ref:a,className:Uf(Kx.root,o,n),...i})});qx.displayName=`Box`;var Jx=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Ig,this.restTimeout=new Ig,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Yx=new WeakMap;function Xx(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Yx.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Yx.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Zx(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Yx.get(n);a&&a!==e&&Xx(a),Xx(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Yx.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Qx(e){let t=e.context.dataRef.current,n=Gf(()=>t.hoverInteractionState??Jx.create()).current;return t.hoverInteractionState||=n,Pp(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function $x(e,t){return t!=null&&!Vh(t)?0:typeof e==`function`?e():e}function eS(e,t,n){let r=$x(e,n);return typeof r==`number`?r:r?.[t]}function tS(e){return typeof e==`function`?e():e}function nS(e,t){return t||e===`click`||e===`mousedown`}var rS=`data-composite-item-active`,iS=[];function aS(e){let{itemSizes:t,cols:n=1,loopFocus:i=!0,onLoop:a,dense:o=!1,orientation:s=`both`,direction:c,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:d,enableHomeAndEndKeys:f=!1,stopEventPropagation:p=!1,disabledIndices:m,modifierKeys:h=iS}=e,[g,_]=r.useState(0),v=n>1,y=r.useRef(null),b=Kf(y,d),x=r.useRef([]),S=r.useRef(!1),C=l??g,w=Y((e,t=!1)=>{if((u??_)(e),t){let t=x.current[e];xh(y.current,t,c,s)}}),T=Y(e=>{if(e.size===0||S.current)return;S.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,r=n?t.indexOf(n):-1;r!==-1&&w(r),xh(y.current,n,c,s)}),E=Y((e,t,n)=>a?a?.(e,t,n,x):n),D=r.useMemo(()=>({"aria-orientation":s===`both`?void 0:s,ref:b,onFocus(e){let t=y.current,n=zg(e.nativeEvent);t&&n!=null&&bh(n)&&n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){let r=f?_h:gh;if(!r.has(e.key)||oS(e,h)||!y.current)return;let l=c===`rtl`,u=l?ch:lh,d={horizontal:u,vertical:sh,both:u}[s],g=l?lh:ch,_={horizontal:g,vertical:oh,both:g}[s],b=zg(e.nativeEvent);if(b!=null&&bh(b)&&!$m(b)){let t=b.selectionStart,n=b.selectionEnd,r=b.value??``;if(t==null||e.shiftKey||t!==n||e.key!==_&&t<r.length||e.key!==d&&t>0)return}let S=C,T=$_(x,m),D=ev(x,m);if(v){let r=t||Array.from({length:x.current.length},()=>({width:1,height:1})),a=rv(r,n,o),c=a.findIndex(e=>e!=null&&!ov(x.current,e,m)),u=a.reduce((e,t,n)=>t==null||ov(x.current,t,m)?e:n,-1);S=a[nv(a.map(e=>e==null?null:x.current[e]),{event:e,orientation:s,loopFocus:i,onLoop:E,cols:n,disabledIndices:av([...m||x.current.map((e,t)=>ov(x.current,t)?t:void 0),void 0],a),minIndex:c,maxIndex:u,prevIndex:iv(C>D?T:C,r,a,n,e.key===`ArrowDown`?`bl`:e.key===`ArrowRight`?`tr`:`tl`),rtl:l})]}let O={horizontal:[u],vertical:[sh],both:[u,sh]}[s],k={horizontal:[g],vertical:[oh],both:[g,oh]}[s],A=v?r:{horizontal:f?ph:fh,vertical:f?hh:mh,both:r}[s];f&&(e.key===`Home`?S=T:e.key===`End`&&(S=D)),S===C&&(O.includes(e.key)||k.includes(e.key))&&(i&&S===D&&O.includes(e.key)?(S=T,a&&(S=a(e,C,S,x))):i&&S===T&&k.includes(e.key)?(S=D,a&&(S=a(e,C,S,x))):S=tv(x.current,{startingIndex:S,decrement:k.includes(e.key),disabledIndices:m})),S!==C&&!Q_(x.current,S)&&(p&&e.stopPropagation(),A.has(e.key)&&e.preventDefault(),w(S,!0),queueMicrotask(()=>{x.current[S]?.focus()}))}}),[n,o,c,m,x,f,C,v,t,i,a,E,b,h,w,s,p]);return r.useMemo(()=>({props:D,highlightedIndex:C,onHighlightedIndexChange:w,elementsRef:x,disabledIndices:m,onMapChange:T,relayKeyboardEvent:D.onKeyDown}),[D,C,w,x,m,T])}function oS(e,t){for(let n of vh.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function sS(e){let{render:t,className:n,style:i,refs:a=$f,props:o=$f,state:s=ep,stateAttributesMapping:l,highlightedIndex:u,onHighlightedIndexChange:d,orientation:f,dense:p,itemSizes:m,loopFocus:h,onLoop:g,cols:_,enableHomeAndEndKeys:v,onMapChange:y,stopEventPropagation:b=!0,rootRef:x,disabledIndices:S,modifierKeys:C,highlightItemOnHover:w=!1,tag:T=`div`,...E}=e,{props:D,highlightedIndex:O,onHighlightedIndexChange:k,elementsRef:A,onMapChange:j,relayKeyboardEvent:M}=aS({itemSizes:m,cols:_,loopFocus:h,onLoop:g,dense:p,orientation:f,highlightedIndex:u,onHighlightedIndexChange:d,rootRef:x,stopEventPropagation:b,enableHomeAndEndKeys:v,direction:Wh(),disabledIndices:S,modifierKeys:C}),N=Tp(T,e,{state:s,ref:a,props:[D,...o,E],stateAttributesMapping:l}),P=r.useMemo(()=>({highlightedIndex:O,onHighlightedIndexChange:k,highlightItemOnHover:w,relayKeyboardEvent:M}),[O,k,w,M]);return c(eh.Provider,{value:P,children:c(Gh,{elementsRef:A,onMapChange:e=>{y?.(e),j(e)},children:N})})}function cS(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:i}=th(),{ref:a,index:o}=Qm(e),s=n===o,c=r.useRef(null),l=Kf(a,c);return{compositeProps:r.useMemo(()=>({tabIndex:s?0:-1,onFocus(){i(o)},onMouseMove(){let e=c.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!s&&!n&&e.focus()}}),[s,i,o,t]),compositeRef:l,index:o}}function lS(e){let{render:t,className:n,style:r,state:i=ep,props:a=$f,refs:o=$f,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=cS({metadata:s});return Tp(l,e,{state:i,ref:[...o,f],props:[d,...a,u],stateAttributesMapping:c})}({root:`root-uwc56U`,list:`list-HHG8hu`,item:`item-yTmapi`,link:`link-GDIKcZ`,page:`page-adRf_w`,separator:`separator-Kz0pCd`,separatorIcon:`separatorIcon-vONtbc`}).separatorIcon;var uS=r.createContext({disabled:!1});function dS(){return r.useContext(uS)}var fS=r.createContext(void 0);function pS(e=!0){let t=r.useContext(fS);if(t===void 0&&!e)throw Error(np(3));return t}function mS(e,t,n,i=!0,a){let[o,s]=r.useState(),c=Wp(a?`${a}-label`:void 0),l=e??t??o;return J(()=>{let r=e||t||!i?void 0:hS(n.current,c);o!==r&&s(r)}),l}function hS(e,t){let n=gS(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function gS(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}function _S(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(e===`BUTTON`||e===`INPUT`){let e=t;if(e.type===`submit`)return e}}return null}var vS=function(e){return e.checked=`data-checked`,e.unchecked=`data-unchecked`,e.indeterminate=`data-indeterminate`,e.disabled=`data-disabled`,e.readonly=`data-readonly`,e.required=`data-required`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({});function yS(e){return r.useMemo(()=>({checked(t){return e.indeterminate?{}:t?{[vS.checked]:``}:{[vS.unchecked]:``}},...Qy}),[e.indeterminate])}var bS=r.createContext(void 0);function xS(){let e=r.useContext(bS);if(e===void 0)throw Error(np(14));return e}var SS=`data-parent`,CS=r.forwardRef(function(e,t){let{checked:n,className:i,defaultChecked:a=!1,"aria-labelledby":o,disabled:s=!1,form:u,id:d,indeterminate:f=!1,inputRef:p,name:m,onCheckedChange:h,parent:g=!1,readOnly:_=!1,render:v,required:y=!1,uncheckedValue:b,value:x,nativeButton:S=!1,style:C,...w}=e,{clearErrors:T}=Bx(),{disabled:E,name:D,setDirty:O,setFilled:k,setFocused:A,setTouched:j,state:M,validationMode:N,validityData:P,shouldValidateOnChange:F,validation:I}=tb(),L=dS(),{labelId:ee,controlId:R,registerControlId:te,getDescriptionProps:z}=rb(),B=pS(),ne=B?.parent,re=ne&&B.allValues,ie=E||L.disabled||B?.disabled||s,ae=D??m,V=x??ae,oe=Wp(),se=Wp(),ce=R;re?ce=g?se:`${ne.id}-${V}`:d&&(ce=d);let le={};re&&(g?le=B.parent.getParentProps():V&&(le=B.parent.getChildProps(V)));let{checked:ue=n,indeterminate:de=f,onCheckedChange:fe,...pe}=le,me=B?.value,he=B?.setValue,ge=B?.defaultValue,_e=r.useRef(null),ve=Gf(()=>Symbol(`checkbox-control`)),ye=r.useRef(!1),{getButtonProps:be,buttonRef:xe}=rh({disabled:ie,native:S}),Se=B?.validation??I,[Ce,we]=jp({controlled:V&&me&&!g?me.includes(V):ue,default:V&&ge&&!g?ge.includes(V):a,name:`Checkbox`,state:`checked`});J(()=>{te!==Qf&&(ye.current=!0,te(ve.current,ce))},[ce,te,ve]),r.useEffect(()=>{let e=ve.current;return()=>{ye.current&&te!==Qf&&(ye.current=!1,te(e,void 0))}},[te,ve]),Vx(_e,oe,Ce,void 0,!B);let Te=r.useRef(null),Ee=Kf(p,Te,Se.inputRef),De=mS(o,ee,Te,!S,ce??void 0);J(()=>{Te.current&&(Te.current.indeterminate=de,Ce&&k(!0))},[Ce,de,k]),Uv(Ce,()=>{(!B||g)&&(T(ae),k(Ce),O(Ce!==P.initialValue),F()?Se.commit(Ce):Se.commit(Ce,!0))});let Oe=dp({checked:Ce,disabled:ie,form:u,name:g?void 0:ae,id:S?void 0:ce??void 0,required:y,ref:Ee,style:ae?S_:x_,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(_)return void e.preventDefault();let t=e.currentTarget.checked,n=Yp(`none`,e.nativeEvent);if(fe?.(t,n),h?.(t,n),!n.isCanceled&&(we(t),V&&me&&he&&!g&&!re)){let e=t?[...me,V]:me.filter(e=>e!==V);he(e,n)}},onFocus(){_e.current?.focus()}},x===void 0?ep:{value:(B?Ce&&x:x)||``},z,B?Se.getValidationProps:Se.getInputValidationProps),ke=re?!!ue:Ce,Ae=re&&de||f;r.useEffect(()=>{if(!ne||!V)return;let e=ne.disabledStatesRef.current;return e.set(V,ie),()=>{e.delete(V)}},[ne,ie,V]);let je=r.useMemo(()=>({...M,checked:ke,disabled:ie,readOnly:_,required:y,indeterminate:Ae}),[M,ke,ie,_,y,Ae]),Me=yS(je),Ne=Tp(`span`,e,{state:je,ref:[xe,_e,t,B?.registerControlRef],props:[{id:S?ce??void 0:oe,role:`checkbox`,"aria-checked":de?`mixed`:Ce,"aria-readonly":_||void 0,"aria-required":y||void 0,"aria-labelledby":De,[SS]:g?``:void 0,onFocus(){A(!0)},onBlur(){let e=Te.current;e&&(j(!0),A(!1),N===`onBlur`&&Se.commit(B?me:e.checked))},onKeyDown(e){if(e.key!==`Enter`||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=Te.current?.form??null,n=e.currentTarget,r=e.nativeEvent,i=e.preventDefault,a=r.preventDefault,o=!1;e.preventDefault=()=>{o=!0,i.call(e)},r.preventDefault=()=>{o=!0,a.call(r)},a.call(r),bm(n).queueMicrotask(()=>{e.preventDefault=i,r.preventDefault=a,o||_S(t)?.click()})},onClick(e){if(_||ie)return;e.preventDefault();let t=Te.current;t&&t.dispatchEvent(new(bm(t)).PointerEvent(`click`,{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))}},z,Se.getValidationProps,w,pe,be],stateAttributesMapping:Me});return l(bS.Provider,{value:je,children:[Ne,!Ce&&!B&&ae&&!g&&b!==void 0&&c(`input`,{type:`hidden`,form:u,name:ae,value:b}),c(`input`,{...Oe,suppressHydrationWarning:!0})]})}),wS=r.forwardRef(function(e,t){let{render:n,className:i,style:a,keepMounted:o=!1,...s}=e,c=xS(),l=c.checked||c.indeterminate,{mounted:u,transitionStatus:d,setMounted:f}=zp(l),p=r.useRef(null),m={...c,transitionStatus:d};mm({open:l,ref:p,onComplete(){l||f(!1)}});let h={...yS(c),...dm,...Qy},g=o||u,_=Tp(`span`,e,{ref:[t,p],state:m,stateAttributesMapping:h,props:s});return g?_:null}),TS={root:`root-OrOWpu`,indicator:`indicator-g_8JYy`,indicatorIcon:`indicatorIcon-6oqHA9`,checkmarkIcon:`checkmarkIcon-MX0Ccp`,indeterminateIcon:`indeterminateIcon-_b18QI`},ES=({size:e,...t})=>c(`svg`,{viewBox:`0 0 10 8`,fill:`currentColor`,width:e||`10`,height:e||`8`,...t,children:c(`path`,{d:`M3.5 5.2 1.2 3 0 4.2 3.5 7.8 10 1.2 8.8 0z`})}),DS=({size:e,...t})=>c(`svg`,{viewBox:`0 0 8 2`,fill:`currentColor`,width:e||`8`,height:e||`2`,...t,children:c(`path`,{d:`M0 0H8V2H0z`})}),OS={small:12,medium:14,large:20},kS=r.forwardRef(({className:e,size:t=OS.medium,style:n,...r},i)=>c(CS,{ref:i,className:Uf(TS.root,e,`has-custom-focus`),style:{"--checkbox-size":`${t}px`,...n},...r}));kS.displayName=`Checkbox.Root`;var AS=r.forwardRef(({className:e,children:t,...n},r)=>c(wS,{ref:r,keepMounted:!0,className:Uf(TS.indicator,e),...n,children:t??l(s,{children:[c(ES,{"aria-hidden":`true`,className:Uf(TS.indicatorIcon,TS.checkmarkIcon)}),c(DS,{"aria-hidden":`true`,className:Uf(TS.indicatorIcon,TS.indeterminateIcon)})]})}));AS.displayName=`Checkbox.Indicator`;var jS={Root:kS,Indicator:AS},MS=r.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0});function NS(e=!1){let t=r.useContext(MS);if(!t&&!e)throw Error(np(86));return t}function PS(e,t){let n=Wp(e);return J(()=>(t(n),()=>{t(void 0)}),[n,t]),n}function FS(e={}){let{id:t,fallbackControlId:n,native:r=!1,setLabelId:i,focusControl:a}=e,{controlId:o,setLabelId:s}=rb(),c=PS(t,Y(e=>{s(e),i?.(e)})),l=o??n;function u(e){if(a)return void a(e,l);if(!l)return;let t=Qg(e.currentTarget).getElementById(l);wm(t)&&IS(t)}function d(e){zg(e.nativeEvent)?.closest(`button,input,select,textarea`)||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),!r&&u(e))}return r?{id:c,htmlFor:l??void 0,onMouseDown:d}:{id:c,onClick:d,onPointerDown(e){e.preventDefault()}}}function IS(e){e.focus({focusVisible:!0})}var LS=r.forwardRef(function(e,t){let{render:n,className:i,id:a,name:o,value:s,disabled:c=!1,onValueChange:l,defaultValue:u,autoFocus:d=!1,style:f,...p}=e,{state:m,name:h,disabled:g,setTouched:_,setDirty:v,validityData:y,setFocused:b,setFilled:x,validationMode:S,validation:C}=tb(),w=g||c,T=h??o,E={...m,disabled:w},{labelId:D}=rb(),O=kx({id:a});J(()=>{let e=s!=null;C.inputRef.current?.value||e&&s!==``?x(!0):e&&s===``&&x(!1)},[C.inputRef,x,s]);let k=r.useRef(null);J(()=>{d&&k.current===Rg(Qg(k.current))&&b(!0)},[d,b]);let[A]=jp({controlled:s,default:u,name:`FieldControl`,state:`value`}),j=s!==void 0,M=j?A:void 0,N=Y(()=>C.inputRef.current?.value);return Vx(C.inputRef,O,M,N),Tp(`input`,e,{ref:[t,k],state:E,props:[{id:O,disabled:w,name:T,ref:C.inputRef,"aria-labelledby":D,autoFocus:d,...j?{value:M}:{defaultValue:u},onChange(e){let t=e.currentTarget.value;l?.(t,Yp(`none`,e.nativeEvent)),v(t!==y.initialValue),x(t!==``)},onFocus(){b(!0)},onBlur(e){_(!0),b(!1),S===`onBlur`&&C.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(_(!0),C.commit(e.currentTarget.value))}},C.getInputValidationProps(),p],stateAttributesMapping:Qy})}),RS={root:`root-Y7wYn3`},zS=function(e){let t=Wp(),n=e.controlId===void 0?t:e.controlId,[i,a]=r.useState(n),[o,s]=r.useState(e.labelId),[l,u]=r.useState([]),d=Gf(()=>new Map),{messageIds:f}=rb(),p=Y((e,t)=>{let n=d.current;if(t===void 0)return void n.delete(e);n.set(e,t),a(e=>{if(n.size===0)return;let t;for(let r of n.values()){if(e!==void 0&&r===e)return e;t===void 0&&(t=r)}return t})}),m=r.useCallback(e=>dp({"aria-describedby":f.concat(l).join(` `)||void 0},e),[f,l]),h=r.useMemo(()=>({controlId:i,registerControlId:p,labelId:o,setLabelId:s,messageIds:l,setMessageIds:u,getDescriptionProps:m}),[i,p,o,s,l,u,m]);return c(nb.Provider,{value:h,children:e.children})};function BS(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var VS=Object.keys(Yy);function HS(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(let n of VS)n!==`valid`&&(n===`valueMissing`&&(t=e[n]),e[n]&&(t=!1));return t}function US(e){let{formRef:t,clearErrors:n}=Bx(),{setValidityData:i,validate:a,validityData:o,validationDebounceTime:s,invalid:c,markedDirtyRef:l,state:u,name:d,shouldValidateOnChange:f,getRegisteredFieldId:p}=e,{controlId:m,getDescriptionProps:h}=rb(),g=Lg(),_=r.useRef(null),v=Y(async(e,n=!1)=>{let r=_.current;if(!r)return;function s(e,n=c){let r=p()??m;if(r==null)return;let i=t.current.fields.get(r);if(!i)return;let a=BS(e,n);t.current.fields.set(r,{...i,validityData:a})}if(n){if(!1!==u.valid)return;let t=r.validity;if(!t.valueMissing){let t={value:e,state:{...Yy,valid:!0},error:``,errors:[],initialValue:o.initialValue};r.setCustomValidity(``),s(t,!1),i(t);return}let n=VS.reduce((e,n)=>(e[n]=t[n],e),{});if(!n.valid&&!HS(n))return}function d(e){let t=VS.reduce((t,n)=>(t[n]=e.validity[n],t),{}),n=!1;for(let e of VS)if(e!==`valid`){if(e===`valueMissing`&&t[e])n=!0;else if(t[e])return t}return n&&!l.current&&(t.valid=!0,t.valueMissing=!1),t}g.clear();let h=null,v=[],y=d(r),b,x=f();if(r.validationMessage&&!x)b=r.validationMessage,v=[r.validationMessage];else{let n=Array.from(t.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}),i=a(e,n);h=typeof i==`object`&&i&&`then`in i?await i:i,h===null?x&&(r.setCustomValidity(``),y.customError=!1,r.validationMessage?(b=r.validationMessage,v=[r.validationMessage]):r.validity.valid&&!y.valid&&(y.valid=!0)):(y.valid=!1,y.customError=!0,Array.isArray(h)?(v=h,r.setCustomValidity(h.join(`
|
|
2
|
-
`))):h&&(v=[h],r.setCustomValidity(h)))}let S={value:e,state:y,error:b??(Array.isArray(h)?h[0]:h??``),errors:v,initialValue:o.initialValue};s(S),i(S)}),y=r.useCallback((e={})=>dp(h,!1===u.valid?{"aria-invalid":!0}:ep,e),[h,u.valid]),b=r.useCallback((e={})=>dp({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(n(d),!f())return void v(e.currentTarget.value,!0);let t=e.currentTarget;if(t.value===``)return void v(t.value);g.clear(),s?g.start(s,()=>{v(t.value)}):v(t.value)}},y(e)),[y,n,d,g,v,s,f]);return r.useMemo(()=>({getValidationProps:y,getInputValidationProps:b,inputRef:_,commit:v}),[y,b,v])}function WS(e){let{commit:t,invalid:n,markedDirtyRef:i,name:a,setRegisteredFieldId:o,setValidityData:s,validityData:c}=e,{formRef:l}=Bx(),u=r.useRef(null),d=r.useRef(null),f=r.useRef(null),p=Y(()=>{let e=d.current;if(e)return e.getValue?e.getValue():e.value}),m=Y(()=>{let e=d.current;if(!e)return;let n=e.value;n===void 0&&(n=p()),i.current=!0,t(n)});function h(){let e=d.current;e&&e.id&&l.current.fields.set(e.id,{getValue:p,name:a,controlRef:e.controlRef??f,validityData:BS(c,n),validate:m})}function g(e=d.current?.id){e&&l.current.fields.delete(e)}function _(){let e=d.current;if(!e)return;let t=e.value;t===void 0&&(t=p()),c.initialValue===null&&t!==null&&s(e=>({...e,initialValue:t}))}return J(()=>{let e=d.current;e&&e.id&&l.current.fields.set(e.id,{getValue:p,name:a,controlRef:e.controlRef??f,validityData:BS(c,n),validate:m})},[l,p,n,a,m,c]),J(()=>{let e=l.current.fields;return()=>{let t=d.current?.id;t&&e.delete(t)}},[l]),Y((e,t)=>{if(!t){u.current===e&&(u.current=null,g(),d.current=null,o(void 0));return}let n=d.current?.id;u.current=e,d.current=t,o(t.id),n&&n!==t.id&&g(n),_(),h()})}var GS=r.forwardRef(function(e,t){let{errors:n,validationMode:i,submitAttemptedRef:a}=Bx(),{render:o,className:s,validate:l,validationDebounceTime:u=0,validationMode:d=i,name:f,disabled:p=!1,invalid:m,dirty:h,touched:g,actionsRef:_,style:v,...y}=e,{disabled:b}=NS(),x=Y(l||(()=>null)),S=b||p,[C,w]=r.useState(!1),[T,E]=r.useState(!1),[D,O]=r.useState(!1),[k,A]=r.useState(!1),j=h??T,M=g??C,N=r.useRef(!1),P=r.useRef(void 0),F=r.useCallback(()=>P.current,[]),I=r.useCallback(e=>{P.current=e},[]),L=Y(e=>{h===void 0&&(e&&(N.current=!0),E(e))}),ee=Y(e=>{g===void 0&&w(e)}),R=Y(()=>d===`onChange`||d===`onSubmit`&&a.current),te=!!f&&Object.hasOwn(n,f)&&n[f]!==void 0,z=!0===m||te,[B,ne]=r.useState({state:Yy,error:``,errors:[],value:null,initialValue:null}),re=!z&&B.state.valid,ie=r.useMemo(()=>({disabled:S,touched:M,dirty:j,valid:re,filled:D,focused:k}),[S,M,j,re,D,k]),ae=US({setValidityData:ne,validate:x,validityData:B,validationDebounceTime:u,invalid:z,markedDirtyRef:N,state:ie,name:f,shouldValidateOnChange:R,getRegisteredFieldId:F}),V=B.value,oe=r.useCallback(()=>{N.current=!0,ae.commit(V)},[ae,V]),se=WS({commit:ae.commit,invalid:z,markedDirtyRef:N,name:f,setRegisteredFieldId:I,setValidityData:ne,validityData:B});r.useImperativeHandle(_,()=>({validate:oe}),[oe]);let ce=r.useMemo(()=>({invalid:z,name:f,validityData:B,setValidityData:ne,disabled:S,touched:M,setTouched:ee,dirty:j,setDirty:L,filled:D,setFilled:O,focused:k,setFocused:A,validate:x,validationMode:d,validationDebounceTime:u,shouldValidateOnChange:R,state:ie,markedDirtyRef:N,registerFieldControl:se,validation:ae}),[z,f,B,S,M,ee,j,L,D,O,k,A,x,d,u,R,ie,se,ae]),le=Tp(`div`,e,{ref:t,state:ie,props:y,stateAttributesMapping:Qy});return c(eb.Provider,{value:ce,children:le})}),KS=r.forwardRef(function(e,t){return c(zS,{children:c(GS,{...e,ref:t})})}),qS=r.forwardRef(function(e,t){let{render:n,className:i,style:a,id:o,nativeLabel:s=!0,...c}=e,l=tb(!1),{labelId:u}=rb(),d=r.useRef(null),f=FS({id:u??o,native:s});return Tp(`label`,e,{ref:[t,d],state:l.state,props:[f,c],stateAttributesMapping:Qy})}),JS={...Qy,...dm},YS=r.forwardRef(function(e,t){let{render:n,id:i,className:a,match:o,style:s,...l}=e,u=Wp(i),{validityData:d,state:f,name:p}=tb(!1),{setMessageIds:m}=rb(),{errors:h}=Bx(),g=p?h[p]:null,_=typeof o==`string`,v=!1;v=!0===o?!0:_?!!d.state[o]:!!g||!1===d.state.valid;let{mounted:y,transitionStatus:b,setMounted:x}=zp(v);J(()=>{if(v&&u)return m(e=>e.concat(u)),()=>{m(e=>e.filter(e=>e!==u))}},[v,u,m]);let S=r.useRef(null),[C,w]=r.useState(null),[T,E]=r.useState(null),D=d.errors.length>1?c(`ul`,{children:d.errors.map(e=>c(`li`,{children:e},e))}):d.error,O=_?D:g||D,k=d.error;g==null?d.errors.length>1&&(k=JSON.stringify(d.errors)):k=Array.isArray(g)?JSON.stringify(g):g,v&&k!==T&&(E(k),w(O)),mm({open:v,ref:S,onComplete(){v||x(!1)}});let A={...f,transitionStatus:b},j=Tp(`div`,e,{ref:[t,S],state:A,props:[{id:u,children:v?O:C},l],stateAttributesMapping:JS,enabled:y});return y?j:null}),XS=r.forwardRef(function(e,t){let{render:n,id:r,className:i,style:a,...o}=e,s=Wp(r),c=tb(!1),{setMessageIds:l}=rb();return J(()=>{if(s)return l(e=>e.concat(s)),()=>{l(e=>e.filter(e=>e!==s))}},[s,l]),Tp(`p`,e,{ref:t,state:c.state,props:[{id:s},o],stateAttributesMapping:Qy})}),ZS=r.forwardRef(function(e,t){let{render:n,className:i,style:a,disabled:o=!1,...s}=e,{state:l,disabled:u}=tb(!1),d=u||o,f=pS(),p=f?.allValues===void 0?void 0:f?.parent.id,m=r.useMemo(()=>({disabled:d}),[d]),h=Tp(`div`,e,{ref:t,state:l,props:s,stateAttributesMapping:Qy});return c(zS,{controlId:p,children:c(uS.Provider,{value:m,children:h})})}),QS=function(e){let{children:t}=e,{validityData:n,invalid:i}=tb(!1),a=r.useMemo(()=>BS(n,i),[n,i]),{transitionStatus:o}=zp(!1===a.state.valid),s=r.useMemo(()=>({...a,validity:a.state,transitionStatus:o}),[a,o]);return c(r.Fragment,{children:t(s)})},$S={root:`root-ECdHfF`,label:`label-YSWZBs`,error:`error-BUDKWp`,description:`description-IVviYU`,descriptionEnd:`descriptionEnd-O3mOtW`,control:`control-fRhDZ8`,controlLine:`controlLine-cAw0CF`,labelFloating:`labelFloating-io8BLN`,group:`group-XazO1A`,adornment:`adornment-Z1N0NF`,item:`item-kQeHOQ`,groupLine:`groupLine-vlna4V`},eC=r.createContext(!1),tC=r.forwardRef(({className:e,...t},n)=>c(eC.Provider,{value:!1,children:c(KS,{ref:n,className:Uf($S.root,e),...t})})),nC=r.forwardRef(({className:e,variant:t=`default`,...n},r)=>c(qS,{ref:r,className:Uf($S.label,{[$S.labelFloating]:t===`floating`},e),...n})),rC=r.forwardRef(({className:e,...t},n)=>c(YS,{ref:n,className:Uf($S.error,e),render:({children:e,...t})=>l(`div`,{...t,children:[c(Vf,{"aria-hidden":!0}),e]}),...t})),iC=r.forwardRef(({className:e,align:t=`start`,...n},r)=>c(XS,{ref:r,className:Uf($S.description,{[$S.descriptionEnd]:t===`end`},e),...n})),aC=r.forwardRef(({className:e,variant:t=`box`,...n},r)=>c(eC.Provider,{value:!0,children:c(`div`,{ref:r,className:Uf(RS.root,$S.group,{[$S.groupLine]:t===`line`},e),...n})})),oC=r.forwardRef(({className:e,...t},n)=>c(`span`,{ref:n,className:Uf($S.adornment,e),...t})),sC=new Set([`text`,`email`,`password`,`search`,`url`,`tel`,`number`,`date`,`datetime-local`,`month`,`week`,`time`]),cC=e=>e!=null&&typeof e!=`boolean`,lC={Root:tC,Label:nC,Error:rC,Description:iC,Control:r.forwardRef(({className:e,type:t=`text`,variant:n=`box`,prefix:i,suffix:a,groupClassName:o,...u},d)=>{let f=r.useContext(eC),p=cC(i),m=cC(a),h=p||m,g=c(LS,{ref:d,type:t,className:Uf({[RS.root]:sC.has(t)},$S.control,{[$S.controlLine]:n===`line`},{"has-custom-focus":h||f},e),...u}),_=l(s,{children:[p&&c(oC,{children:i}),g,m&&c(oC,{children:a})]});return f?_:h?c(aC,{variant:n,className:o,children:_}):g}),Group:aC,Adornment:oC,Item:r.forwardRef(({className:e,...t},n)=>c(ZS,{ref:n,className:Uf($S.item,e),...t})),Validity:QS};function uC(e){return typeof e==`number`?`${e}px`:e}var dC={option:`option-o8pAcb`,root:`root-tqmYsF`,indicator:`indicator-_WzHbq`,optionContent:`optionContent-inaJL9`,optionLabel:`optionLabel-fJWxkM`,optionSuffix:`optionSuffix-AJytXe`},fC=r.forwardRef(({className:e,style:t,label:n,suffix:r,variant:i=`default`,error:a=!1,errorMessage:o,verticalAlignment:s=`center`,size:u=OS.medium,width:d,indeterminate:f=!1,disabled:p=!1,...m},h)=>{let g=a||!!o,_=uC(d),v={...t,..._?{"--checkbox-option-width":_}:null};return l(lC.Root,{ref:h,className:Uf(dC.option,e),style:v,invalid:g,disabled:p,"data-variant":i,"data-has-error-message":o?``:void 0,children:[l(jS.Root,{...m,className:dC.root,indeterminate:f,disabled:p,"data-variant":i,"data-vertical-alignment":s,render:c(`label`,{}),size:u,children:[c(jS.Indicator,{className:dC.indicator}),l(`span`,{className:dC.optionContent,children:[c(`span`,{className:dC.optionLabel,children:n}),r?c(`span`,{className:dC.optionSuffix,children:r}):null]})]}),g&&o?c(lC.Error,{match:!0,children:o}):null]})});fC.displayName=`CheckboxField`;function pC(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}var mC=[];function hC(e){let{allValues:t=mC,value:n=mC,onValueChange:i}=e,a=r.useRef(n),o=r.useRef(new Map),[s,c]=r.useState(`mixed`),l=Wp(),u=n.length===t.length,d=n.length!==t.length&&n.length>0,f=Y(i),p=r.useCallback(()=>({id:l,indeterminate:d,checked:u,"aria-controls":t.map(e=>`${l}-${e}`).join(` `),onCheckedChange(e,r){let i=a.current,l=t.filter(e=>o.current.get(e)&&i.includes(e)),u=t.filter(e=>!o.current.get(e)||o.current.get(e)&&i.includes(e));if(i.length===u.length||i.length===0)return void(n.length===u.length?f(l,r):f(u,r));s===`mixed`?(f(u,r),c(`on`)):s===`on`?(f(l,r),c(`off`)):s===`off`&&(f(i,r),c(`mixed`))}}),[t,u,l,d,f,s,n.length]),m=r.useCallback(e=>({checked:n.includes(e),onCheckedChange(t,r){let i=n.slice();t?i.push(e):i.splice(i.indexOf(e),1),a.current=i,f(i,r),c(`mixed`)}}),[f,n]);return r.useMemo(()=>({id:l,indeterminate:d,getParentProps:p,getChildProps:m,disabledStatesRef:o}),[l,d,p,m])}var gC=r.forwardRef(function(e,t){let{allValues:n,className:i,defaultValue:a,disabled:o=!1,id:s,onValueChange:l,render:u,value:d,style:f,...p}=e,{disabled:m,name:h,state:g,validation:_,setFilled:v,setDirty:y,shouldValidateOnChange:b,validityData:x}=tb(),{labelId:S,getDescriptionProps:C}=rb(),{clearErrors:w}=Bx(),T=m||o,E=r.useMemo(()=>{if(d===void 0)return a??[]},[d,a]),[D,O]=jp({controlled:d,default:E,name:`CheckboxGroup`,state:`value`}),k=Y((e,t)=>{l?.(e,t),!t.isCanceled&&O(e)}),A=hC({allValues:n,value:D,onValueChange:k}),j=Wp(s),M=r.useRef(null),N=r.useCallback(e=>{M.current==null&&e!=null&&!e.hasAttribute(`data-parent`)&&(M.current=e)},[]);Vx(M,j,D,void 0,!!h);let P=D??$f;Uv(P,()=>{h&&w(h);let e=Array.isArray(x.initialValue)?x.initialValue:$f;v(P.length>0),y(!pC(P,e)),b()?_.commit(P):_.commit(P,!0)});let F={...g,disabled:T},I=r.useMemo(()=>({allValues:n,value:D,defaultValue:E,setValue:k,parent:A,disabled:T,validation:_,registerControlRef:N}),[n,D,E,k,A,T,_,N]),L=Tp(`div`,e,{state:F,ref:t,props:[{role:`group`,"aria-labelledby":S},C,p],stateAttributesMapping:Qy});return c(fS.Provider,{value:I,children:L})}),_C=r.forwardRef((e,t)=>c(gC,{ref:t,...e})),vC={field:`field-Tx5eMP`,label:`label-E_rDm0`,items:`items-lFFDGE`},yC=r.forwardRef(({className:e,style:t,children:n,label:i,layout:a=`vertical`,fluid:o=!1,error:s=!1,errorMessage:u,required:d=!1,width:f,disabled:p=!1,"aria-labelledby":m,"aria-required":h,...g},_)=>{let v=r.useId(),y=s||!!u,b=i?v:void 0,x=b&&m?`${m} ${b}`:b??m,S=uC(f),C={...t,...S?{"--checkbox-group-width":S}:null};return l(lC.Root,{className:Uf(vC.field,e),style:C,invalid:y,disabled:p,"data-fluid":o?``:void 0,children:[i?c(`span`,{id:b,className:vC.label,children:i}):null,c(_C,{ref:_,className:vC.items,disabled:p,"data-layout":a,"data-fluid":o?``:void 0,"aria-labelledby":x,"aria-required":d?!0:h,...g,children:n}),y&&u?c(lC.Error,{match:!0,children:u}):null]})});yC.displayName=`CheckboxGroupField`,{...Jm,...dm},{...qm,...dm};var bC=r.createContext(void 0);function xC(e){let t=r.useContext(bC);if(t===void 0&&!e)throw Error(np(69));return t}var SC={current:null};function CC(e,t={}){let{enabled:n=!0,delay:i=0,handleClose:a=null,mouseOnly:o=!1,restMs:s=0,move:c=!0,triggerElementRef:l=SC,externalTree:d,isActiveTrigger:f=!0,getHandleCloseContext:p,isClosing:m,shouldOpen:h}=t,g=`rootStore`in e?e.rootStore:e,{dataRef:_,events:v}=g.context,y=Mg(d),b=Qx(g),x=r.useRef(!1),S=hm(a),C=hm(i),w=hm(s),T=hm(n),E=hm(h),D=hm(m),O=Y(()=>nS(_.current.openEvent?.type,b.interactedInside)),k=Y(()=>E.current?.()!==!1),A=Y((e,t,n)=>{let r=g.context.triggerElements;if(r.hasElement(t))return!e||!Q(e,t);if(!Cm(n))return!1;let i=n;return r.hasMatchingElement(e=>Q(e,i))&&(!e||!Q(e,i))}),j=Y(()=>{b.handler&&=(Qg(g.select(`domReferenceElement`)).removeEventListener(`mousemove`,b.handler),void 0)}),M=Y(()=>{Xx(b)});return f&&(b.handleCloseOptions=S.current?.__options),r.useEffect(()=>j,[j]),r.useEffect(()=>{if(!n)return;function e(e){e.open?x.current=!1:(x.current=e.reason===Zp,j(),b.openChangeTimeout.clear(),b.restTimeout.clear(),b.blockMouseMove=!0,b.restTimeoutPending=!1)}return v.on(`openchange`,e),()=>{v.off(`openchange`,e)}},[n,v,b,j]),r.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=eS(C.current,`close`,b.pointerType);n?b.openChangeTimeout.start(n,()=>{g.setOpen(!1,Yp(Zp,e)),y?.events.emit(`floating.closed`,e)}):t&&(b.openChangeTimeout.clear(),g.setOpen(!1,Yp(Zp,e)),y?.events.emit(`floating.closed`,e))}let t=l.current??(f?g.select(`domReferenceElement`):null);if(!Cm(t))return;function r(e){if(b.openChangeTimeout.clear(),b.blockMouseMove=!1,o&&!Vh(b.pointerType))return;let t=tS(w.current),n=eS(C.current,`open`,b.pointerType),r=zg(e),i=e.currentTarget??null,a=g.select(`domReferenceElement`),s=i;if(Cm(r)&&!g.context.triggerElements.hasElement(r)){for(let e of g.context.triggerElements.elements())if(Q(e,r)){s=e;break}}Cm(i)&&Cm(a)&&!g.context.triggerElements.hasElement(i)&&Q(i,a)&&(s=a);let c=s!=null&&A(a,s,r),l=g.select(`open`),u=D.current?.()??g.select(`transitionStatus`)===`ending`,d=!l&&u&&x.current,f=!c&&Cm(s)&&Cm(a)&&Q(a,s)&&d,p=t>0&&!n,m=c&&(l||d)||f,h=!l||c;m?k()&&g.setOpen(!0,Yp(Zp,e,s)):p||(n?b.openChangeTimeout.start(n,()=>{h&&k()&&g.setOpen(!0,Yp(Zp,e,s))}):h&&k()&&g.setOpen(!0,Yp(Zp,e,s)))}function i(t){if(O())return void M();j();let n=Qg(g.select(`domReferenceElement`));b.restTimeout.clear(),b.restTimeoutPending=!1;let r=_.current.floatingContext??p?.();if(!Gg(t.relatedTarget,g.context.triggerElements)){if(S.current&&r){g.select(`open`)||b.openChangeTimeout.clear();let i=l.current;b.handler=S.current({...r,tree:y,x:t.clientX,y:t.clientY,onClose(){M(),j(),T.current&&!O()&&i===g.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,b.handler),b.handler(t)}else(b.pointerType!==`touch`||!Q(g.select(`floatingElement`),t.relatedTarget))&&e(t)}}return c?$g(_m(t,`mousemove`,r,{once:!0}),_m(t,`mouseenter`,r),_m(t,`mouseleave`,i)):$g(_m(t,`mouseenter`,r),_m(t,`mouseleave`,i))},[j,M,_,C,g,n,S,b,f,A,O,o,c,w,l,y,T,p,D,k]),r.useMemo(()=>{if(!n)return;function e(e){b.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=g.select(`domReferenceElement`),i=g.select(`open`),a=A(r,n,e.target);if(o&&!Vh(b.pointerType))return;if(i&&a&&b.handleCloseOptions?.blockPointerEvents){let e=g.select(`floatingElement`);if(e){let t=b.handleCloseOptions?.getScope?.()??n.ownerDocument.body;Zx(b,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=tS(w.current);if(i&&!a||s===0||!a&&b.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;b.restTimeout.clear();function c(){if(b.restTimeoutPending=!1,O())return;let e=g.select(`open`);!b.blockMouseMove&&(!e||a)&&k()&&g.setOpen(!0,Yp(Zp,t,n))}b.pointerType===`touch`?u.flushSync(()=>{c()}):a&&i?c():(b.restTimeoutPending=!0,b.restTimeout.start(s,c))}}},[n,b,O,A,o,g,w,k])}var wC=.1,TC=wC*wC,EC=.5;function DC(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function OC(e,t,n,r,i,a,o,s,c,l){let u=!1;return DC(e,t,n,r,i,a)&&(u=!u),DC(e,t,i,a,o,s)&&(u=!u),DC(e,t,o,s,c,l)&&(u=!u),DC(e,t,c,l,n,r)&&(u=!u),u}function kC(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function AC(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function jC(e={}){let{blockPointerEvents:t=!1}=e,n=new Ig,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=`u`>typeof performance?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*TC;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=zg(r),g=r.type===`mouseleave`,_=Q(u,h),v=Q(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&Cm(r.relatedTarget)&&Q(u,r.relatedTarget))return;function y(){return!!(s&&e_(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1)return void b();let j=!1;switch(c){case`top`:j=AC(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=AC(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=AC(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=AC(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!kC(d,f,x)||!g&&p(d,f))return void b();let M=!1;switch(c){case`top`:{let n=T?EC/2:4*EC,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+EC+1,o=C||T?S.bottom-EC:S.top,s=C?T?S.bottom-EC:S.top:S.bottom-EC;M=OC(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?EC/2:4*EC,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-EC,o=C||T?S.top+EC:S.bottom,s=C?T?S.top+EC:S.bottom:S.top+EC;M=OC(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?EC/2:4*EC,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+EC+1,o=w||E?S.right-EC:S.left,s=w?E?S.right-EC:S.left:S.right-EC;M=OC(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?EC/2:4*EC,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-EC,o=w||E?S.left+EC:S.right,s=w?E?S.left+EC:S.right:S.left+EC;M=OC(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var MC=r.createContext(null);function NC(e){let t=r.useContext(MC);if(t===null&&!e)throw Error(np(5));return t}var PC=r.createContext(void 0);function FC(e=!0){let t=r.useContext(PC);if(t===void 0&&!e)throw Error(np(25));return t}var IC=r.createContext(void 0);function LC(e){let t=r.useContext(IC);if(t===void 0&&!e)throw Error(np(36));return t}function RC(e){if(wm(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`)??void 0;if(!Im(e))return RC(zm(e))}({...sg,...dm}),{...sg,...dm},{...dm};var zC=r.createContext(void 0);function BC(){return r.useContext(zC)}var VC={...Py,disabled:X(e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled),modal:X(e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0)),openMethod:X(e=>e.openMethod),allowMouseEnter:X(e=>e.allowMouseEnter),stickIfOpen:X(e=>e.stickIfOpen),parent:X(e=>e.parent),rootId:X(e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId),activeIndex:X(e=>e.activeIndex),isActive:X((e,t)=>e.activeIndex===t),hoverEnabled:X(e=>e.hoverEnabled),instantType:X(e=>e.instantType),lastOpenChangeReason:X(e=>e.openChangeReason),floatingTreeRoot:X(e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot),floatingNodeId:X(e=>e.floatingNodeId),floatingParentNodeId:X(e=>e.floatingParentNodeId),itemProps:X(e=>e.itemProps),closeDelay:X(e=>e.closeDelay),hasViewport:X(e=>e.hasViewport),keyboardEventRelay:X(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)})},HC=class e extends Eg{constructor(e){super({...UC(),...e},{positionerRef:r.createRef(),popupRef:r.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:r.createRef(),beforeContentFocusGuardRef:r.createRef(),onOpenChangeComplete:void 0,triggerElements:new c_},VC),this.unsubscribeParentListener=this.observe(`parent`,e=>{if(this.unsubscribeParentListener?.(),e.type===`menu`){let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef}else e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}static useStore(t,n){let r=Gf(()=>new e(n)).current;return t??r}unsubscribeParentListener=null};function UC(){return{...Dy(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new Og,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:ep,keyboardEventRelay:void 0,closeDelay:0,hasViewport:!1}}gg(function(e){let{children:t,open:n,onOpenChange:i,onOpenChangeComplete:a,defaultOpen:o=!1,disabled:s=!1,modal:l,loopFocus:u=!0,orientation:d=`vertical`,actionsRef:f,closeParentOnEsc:p=!1,handle:m,triggerId:h,defaultTriggerId:g=null,highlightItemOnHover:_=!0}=e,v=FC(!0),y=LC(!0),b=NC(!0),x=BC(),S=r.useMemo(()=>x&&y?{type:`menu`,store:y.store}:b?{type:`menubar`,context:b}:v&&!y?{type:`context-menu`,context:v}:{type:void 0},[v,y,b,x]),C=HC.useStore(m?.store,{open:o,openProp:n,activeTriggerId:g,triggerIdProp:h,parent:S});v_(()=>{n===void 0&&!1===C.state.open&&!0===o&&C.update({open:!0,activeTriggerId:g})}),C.useControlledProp(`openProp`,n),C.useControlledProp(`triggerIdProp`,h),C.useContextCallback(`onOpenChangeComplete`,a);let w=Up(),T=Up(),E=C.useState(`floatingTreeRoot`),D=Ng(E),O=jg(),k=C.useState(`open`),A=C.useState(`activeTriggerElement`),j=C.useState(`positionerElement`),M=C.useState(`hoverEnabled`),N=C.useState(`disabled`),P=C.useState(`lastOpenChangeReason`),F=C.useState(`parent`),I=C.useState(`activeIndex`),L=C.useState(`payload`),ee=C.useState(`floatingParentNodeId`),R=r.useRef(null),te=r.useRef(F.type!==`context-menu`),z=Lg(),B=r.useRef(!0),ne=Lg(),re=ee!=null,{openMethod:ie,triggerProps:ae}=hy(k);C.useSyncedValues({disabled:s,modal:F.type===void 0?l:void 0,openMethod:ie,rootId:w}),h_(C);let{forceUnmount:V}=g_(k,C,()=>{C.update({allowMouseEnter:!1,stickIfOpen:!0})});J(()=>{v&&!y?C.update({parent:{type:`context-menu`,context:v},floatingNodeId:D,floatingParentNodeId:O}):y&&C.update({floatingNodeId:D,floatingParentNodeId:O})},[v,y,D,O,C]),r.useEffect(()=>{k||(R.current=null),F.type===`context-menu`&&(k?z.start(500,()=>{te.current=!0}):(z.clear(),te.current=!1))},[z,k,F.type]),J(()=>{!k&&!M&&C.set(`hoverEnabled`,!0)},[k,M,C]);let oe=Y((e,t)=>{let n=t.reason;if(k===e&&t.trigger===A&&P===n||(t.preventUnmountOnClose=()=>{C.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&(t.trigger=A??void 0),i?.(e,t),t.isCanceled))return;C.state.floatingRootContext.dispatchOpenChange(e,t);let r=t.event;if(!1===e&&r?.type===`click`&&r.pointerType===`touch`&&!B.current)return;if(!e&&I!==null){let e=C.context.itemDomElements.current[I];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}e&&n===`trigger-focus`?(B.current=!1,ne.start(300,()=>{B.current=!0})):(B.current=!0,ne.clear());let a=(n===`trigger-press`||n===`item-press`)&&r.detail===0&&r?.isTrusted,o=!e&&(n===`escape-key`||n==null),s={open:e,openChangeReason:n};R.current=t.event??null;let c=t.trigger?.id??null;(c||e)&&(s.activeTriggerId=c,s.activeTriggerElement=t.trigger??null),C.update(s),F.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?C.set(`instantType`,`group`):a||o?C.set(`instantType`,a?`click`:`dismiss`):C.set(`instantType`,void 0)}),se=l_({popupStore:C,floatingId:T,nested:O!=null,onOpenChange:oe}),ce=se.context.events;r.useEffect(()=>{let e=({open:e,eventDetails:t})=>oe(e,t);return ce.on(`setOpen`,e),()=>{ce?.off(`setOpen`,e)}},[ce,oe]);let le=r.useCallback(()=>{C.setOpen(!1,Yp(om))},[C]);r.useImperativeHandle(f,()=>({unmount:V,close:le}),[V,le]);let ue;F.type===`context-menu`&&(ue=F.context),r.useImperativeHandle(ue?.positionerRef,()=>j,[j]),r.useImperativeHandle(ue?.actionsRef,()=>({setOpen:oe}),[oe]);let de=s_(se,{enabled:!N,bubbles:{escapeKey:p&&F.type===`menu`},outsidePress(){return F.type!==`context-menu`||R.current?.type===`contextmenu`||te.current},externalTree:re?E:void 0}),fe=Wh(),pe=r.useCallback(e=>{C.select(`activeIndex`)!==e&&C.set(`activeIndex`,e)},[C]),me=Lx(se,{enabled:!N,listRef:C.context.itemDomElements,activeIndex:I,nested:F.type!==void 0,loopFocus:u,orientation:d,parentOrientation:F.type===`menubar`?F.context.orientation:void 0,rtl:fe===`rtl`,disabledIndices:$f,onNavigate:pe,openOnArrowKeyDown:F.type!==`context-menu`,externalTree:re?E:void 0,focusItemOnHover:_}),he=r.useCallback(e=>{C.context.typingRef.current=e},[C]),ge=Ax(se,{listRef:C.context.itemLabels,elementsRef:C.context.itemDomElements,activeIndex:I,resetMs:500,onMatch:e=>{k&&e!==I&&C.set(`activeIndex`,e)},onTyping:he});__(C,{floatingRootContext:se,activeTriggerProps:r.useMemo(()=>{let e=dp(ge.reference,me.reference,de.reference,{onMouseMove(){C.set(`allowMouseEnter`,!0)}},ae);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=k,e},[C,ge.reference,me.reference,de.reference,ae,k]),inactiveTriggerProps:r.useMemo(()=>{let e=dp(me.trigger,de.trigger,ae);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[me.trigger,de.trigger,ae]),popupProps:r.useMemo(()=>dp(u_,{id:T,role:`menu`,"aria-labelledby":A?.id,onMouseMove(){C.set(`allowMouseEnter`,!0),F.type===`menu`&&C.set(`hoverEnabled`,!1)},onClick(){C.select(`hoverEnabled`)&&C.set(`hoverEnabled`,!1)},onKeyDown(e){let t=C.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},ge.floating,me.floating,de.floating),[A,T,F.type,C,ge.floating,me.floating,de.floating]),itemProps:me.item??ep});let _e=r.useMemo(()=>({store:C,parent:S}),[C,S]),ve=c(IC.Provider,{value:_e,children:typeof t==`function`?t({payload:L}):t});return F.type===void 0||F.type===`context-menu`?c(Pg,{externalTree:E,children:ve}):ve});function WC(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}({...sg,...dm}),function(e){return e[e.open=Qh.open]=`open`,e[e.closed=Qh.closed]=`closed`,e[e.startingStyle=Qh.startingStyle]=`startingStyle`,e[e.endingStyle=Qh.endingStyle]=`endingStyle`,e.expanded=`data-expanded`,e.nestedDrawerOpen=`data-nested-drawer-open`,e.nestedDrawerSwiping=`data-nested-drawer-swiping`,e.swipeDismiss=`data-swipe-dismiss`,e.swipeDirection=`data-swipe-direction`,e.swiping=`data-swiping`,e}({}),{...sg,...dm};var GC=function(e){return e[e.open=Qh.open]=`open`,e[e.closed=Qh.closed]=`closed`,e.disabled=`data-disabled`,e.swipeDirection=`data-swipe-direction`,e.swiping=`data-swiping`,e}({});GC.open,GC.closed,GC.swiping,GC.disabled;function KC(e){let[t,n]=r.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var qC=Mh&&Ah;function JC(e,t={}){let{enabled:n=!0,delay:i}=t,a=`rootStore`in e?e.rootStore:e,{events:o,dataRef:s}=a.context,c=r.useRef(!1),l=r.useRef(null),u=r.useRef(!0),d=Lg();r.useEffect(()=>{let e=a.select(`domReferenceElement`);if(!n)return;let t=bm(e);function r(){let e=a.select(`domReferenceElement`);!a.select(`open`)&&wm(e)&&e===Rg(Qg(e))&&(c.current=!0)}function i(){u.current=!0}function o(){u.current=!1}return $g(_m(t,`blur`,r),qC&&_m(t,`keydown`,i,!0),qC&&_m(t,`pointerdown`,o,!0))},[a,n]),r.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=a.select(`domReferenceElement`);Cm(e)&&(l.current=e,c.current=!0)}}return o.on(`openchange`,e),()=>{o.off(`openchange`,e)}},[o,n,a]);let f=r.useMemo(()=>{function e(){c.current=!1,l.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(c.current){if(l.current===n)return;e()}let r=zg(t.nativeEvent);if(Cm(r)){if(qC&&!t.relatedTarget){if(!u.current&&!Jg(r))return}else if(!Xg(r))return}let o=Gg(t.relatedTarget,a.context.triggerElements),{nativeEvent:s,currentTarget:f}=t,p=typeof i==`function`?i():i;if(a.select(`open`)&&o||p===0||p===void 0)return void a.setOpen(!0,Yp(Qp,s,f));d.start(p,()=>{c.current||a.setOpen(!0,Yp(Qp,s,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,i=Cm(n)&&n.hasAttribute(dg(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;d.start(0,()=>{let e=a.select(`domReferenceElement`),t=Rg(Qg(e));(n||t!==e)&&(Q(s.current.floatingContext?.refs.floating.current,t)||Q(e,t)||i||Gg(n??t,a.context.triggerElements)||a.setOpen(!1,Yp(Qp,r)))})}}},[s,i,a,d]);return r.useMemo(()=>n?{reference:f,trigger:f}:{},[n,f])}function YC(e,t){let n=r.useRef(null);function i(t){u.flushSync(()=>{e.setOpen(!1,Yp(tm,t.nativeEvent,t.currentTarget))}),jv(n.current)?.focus()}function a(n){let r=e.select(`positionerElement`);if(r&&Mv(n,r))e.context.beforeContentFocusGuardRef.current?.focus();else{u.flushSync(()=>{e.setOpen(!1,Yp(tm,n.nativeEvent,n.currentTarget))});let i=Av(e.context.triggerFocusTargetRef.current||t.current);for(;i!==null&&Q(r,i);){let e=i;if(i=Dv(i),i===e)break}i?.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:i,handleFocusTargetFocus:a}}function XC(e){let{enabled:t=!0,mouseDownAction:n,open:i}=e,a=r.useRef(!1);return r.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!i||n===`close`&&i)&&(a.current=!0,Qg(e.currentTarget).addEventListener(`click`,()=>{a.current=!1},{once:!0}))},onClick:e=>{a.current&&(a.current=!1,e.preventBaseUIHandler())}}:ep,[t,n,i])}var ZC=2;_g(function(e,t){let{render:n,className:i,style:a,disabled:o=!1,nativeButton:s=!0,id:u,openOnHover:d,delay:f=100,closeDelay:p=0,handle:m,payload:h,...g}=e,_=LC(!0),v=m?.store??_?.store;if(!v)throw Error(np(85));let y=Wp(u),b=v.useState(`isTriggerActive`,y),x=v.useState(`floatingRootContext`),S=v.useState(`isOpenedByTrigger`,y),C=v.useState(`triggerPopupId`,y),w=r.useRef(null),T=$C(),E=th(!0),D=Mg(),O=r.useMemo(()=>D??new Og,[D]),{registerTrigger:k,isMountedByThisTrigger:A}=m_(y,w,v,{payload:h,closeDelay:p,parent:T,floatingTreeRoot:O,floatingNodeId:Ng(O),floatingParentNodeId:jg(),keyboardEventRelay:E?.relayKeyboardEvent}),j=T.type===`menubar`,M=v.useState(`disabled`),N=o||M||j&&T.context.disabled,{getButtonProps:P,buttonRef:F}=rh({disabled:N,native:s});r.useEffect(()=>{!S&&T.type===void 0&&(v.context.allowMouseUpTriggerRef.current=!1)},[v,S,T.type]);let I=r.useRef(null),L=Lg(),ee=Y(e=>{if(!I.current)return;L.clear(),v.context.allowMouseUpTriggerRef.current=!1;let t=e.target;if(Q(I.current,t)||Q(v.select(`positionerElement`),t)||t===I.current||t!=null&&RC(t)===v.select(`rootId`))return;let n=Rx(I.current);e.clientX>=n.left-ZC&&e.clientX<=n.right+ZC&&e.clientY>=n.top-ZC&&e.clientY<=n.bottom+ZC||O.events.emit(`close`,{domEvent:e,reason:im})});r.useEffect(()=>{S&&v.select(`lastOpenChangeReason`)===`trigger-hover`&&Qg(I.current).addEventListener(`mouseup`,ee,{once:!0})},[S,ee,v]);let R=j&&T.context.hasSubmenuOpen,te=CC(x,{enabled:(d??R)&&!N&&T.type!==`context-menu`&&(!j||R&&!A),handleClose:jC({blockPointerEvents:!j}),mouseOnly:!0,move:!1,restMs:T.type===void 0?f:void 0,delay:{close:p},triggerElementRef:w,externalTree:O,isActiveTrigger:b,isClosing:()=>v.select(`transitionStatus`)===`ending`}),z=QC(S,v.select(`lastOpenChangeReason`)),B=y_(x,{enabled:!N&&T.type!==`context-menu`,event:S&&j?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:T.type===void 0&&z}),ne=JC(x,{enabled:!N&&R}),re=XC({open:S,enabled:j,mouseDownAction:`open`}),ie=r.useMemo(()=>dp(ne.reference,B.reference),[ne.reference,B.reference]),ae=v.useState(`triggerProps`,A),{preFocusGuardRef:V,handlePreFocusGuardFocus:oe,handleFocusTargetFocus:se}=YC(v,w),ce={disabled:N,open:S},le=[I,t,F,k,w],ue=[ie,te??ep,ae,{"aria-haspopup":`menu`,"aria-controls":C,id:y,onMouseDown:e=>{v.select(`open`)||(L.start(200,()=>{v.context.allowMouseUpTriggerRef.current=!0}),Qg(e.currentTarget).addEventListener(`mouseup`,ee,{once:!0}))}},j?{role:`menuitem`}:{},re,g,P],de=Tp(`button`,e,{enabled:!j,stateAttributesMapping:og,state:ce,ref:le,props:ue});return j?c(lS,{tag:`button`,render:n,className:i,style:a,state:ce,refs:le,props:ue,stateAttributesMapping:og}):S?l(r.Fragment,{children:[c(lv,{ref:V,onFocus:oe},`${y}-pre-focus-guard`),c(r.Fragment,{children:de},y),c(lv,{ref:v.context.triggerFocusTargetRef,onFocus:se},`${y}-post-focus-guard`)]}):c(r.Fragment,{children:de},y)});function QC(e,t){let n=Lg(),[i,a]=r.useState(!1);return J(()=>{e&&t===`trigger-hover`?(a(!0),n.start(500,()=>{a(!1)})):e||(n.clear(),a(!1))},[e,t,n]),i}function $C(){let e=FC(!0),t=LC(!0),n=NC(!0);return r.useMemo(()=>n?{type:`menubar`,context:n}:e&&!t?{type:`context-menu`,context:e}:{type:void 0},[e,t,n])}({...sg,...dm}),Ey(),Ey(),{...sg,...dm},{...sg,...dm};var ew={inputValue:()=>null,value:()=>null,...Qy},tw=[`零`,`〇`,`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`],nw=[`٠`,`١`,`٢`,`٣`,`٤`,`٥`,`٦`,`٧`,`٨`,`٩`],rw=[`۰`,`۱`,`۲`,`۳`,`۴`,`۵`,`۶`,`۷`,`۸`,`۹`],iw=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],aw=[`%`,`٪`,`%`,`﹪`],ow=[`‰`,`؉`],sw=[`−`,`-`,`‒`,`–`,`—`,`﹣`],cw=[`+`,`﹢`];RegExp(`[${nw.join(``)}]`,`g`),RegExp(`[${rw.join(``)}]`,`g`),RegExp(`[${iw.join(``)}]`,`g`),RegExp(`[${tw.join(``)}]`,`g`),RegExp(`[${aw.join(``)}]`),RegExp(`[${ow.join(``)}]`),RegExp(`[${iw.join(``)}]`),[...cw],[...sw];var lw=e=>e.replace(/[-\\\]^]/g,e=>`\\${e}`),uw=e=>`[${e.map(lw).join(``)}]`,dw=uw([`-`].concat(sw)),fw=uw([`+`].concat(cw));new RegExp(dw,`gu`),new RegExp(fw,`gu`),new RegExp(dw),new RegExp(fw),{...Qy,...ew},lC.Error,{...sg,...dm},{...sg,...dm},{...Py},X(e=>e.disabled),X(e=>e.instantType),X(e=>e.openMethod),X(e=>e.openChangeReason),X(e=>e.modal),X(e=>e.focusManagerModal),X(e=>e.stickIfOpen),X(e=>e.titleElementId),X(e=>e.descriptionElementId),X(e=>e.openOnHover),X(e=>e.closeDelay),X(e=>e.hasViewport);var pw=r.createContext(void 0);function mw(e){let t=r.useContext(pw);if(t===void 0&&!e)throw Error(np(50));return t}function hw(e,t,n,r){return{left:e,top:t,right:n,bottom:r,x:e,y:t,width:n-e,height:r-t}}function gw(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}function _w(e){let t=[],n,r=1/0,i=1/0,a=-1/0,o=-1/0;for(let s of Array.from(e).sort((e,t)=>e.top-t.top)){if(r=Math.min(r,s.left),i=Math.min(i,s.top),a=Math.max(a,s.right),o=Math.max(o,s.bottom),!n||s.top-n.top>n.height/2)t.push(gw(s));else{let e=t[t.length-1];e.left=Math.min(e.left,s.left),e.right=Math.max(e.right,s.right),e.bottom=Math.max(e.bottom,s.bottom),e.width=e.right-e.left,e.height=e.bottom-e.top}n=s}return{lines:t,fallback:hw(r,i,a,o)}}function vw(e,t,n){return e.findIndex(e=>t>e.left-2&&t<e.right+2&&n>e.top-2&&n<e.bottom+2)}function yw(e,t,n){let{lines:r}=_w(e.getClientRects());if(r.length<2)return;let i=vw(r,t,n);return{x:t,y:n,lineIndex:i===-1?void 0:i,element:e}}function bw(e,t){function n(t){xw(e,t.currentTarget,t.clientX,t.clientY)}function r(e){t||n(e)}return{onFocus(){e.current=void 0},onMouseEnter:n,onMouseMove:r}}function xw(e,t,n,r){let i=yw(t,n,r);return e.current=i,i}({...sg,...dm}),{...sg,...dm},_g(function(e,t){let{render:n,className:i,delay:a,closeDelay:o,id:s,payload:c,handle:l,style:u,...d}=e,f=mw(!0),p=l?.store??f;if(!p)throw Error(np(89));let m=Wp(s),h=p.useState(`isTriggerActive`,m),g=p.useState(`isOpenedByTrigger`,m),_=p.useState(`floatingRootContext`),v=p.context.inlineRectCoordsRef,y=r.useRef(null),b=a??600,x=o??300,{registerTrigger:S,isMountedByThisTrigger:C}=m_(m,y,p,{payload:c});J(()=>{C&&(p.context.closeDelayRef.current=x)},[p,C,x]);let w=CC(_,{mouseOnly:!0,move:!1,handleClose:jC(),delay:()=>({open:b,close:x}),triggerElementRef:y,isActiveTrigger:h,isClosing:()=>p.select(`transitionStatus`)===`ending`}),T=JC(_,{delay:b}),E={open:g},D=p.useState(`triggerProps`,C),O=bw(v,g);return Tp(`a`,e,{state:E,ref:[t,S,y],props:[w,T.reference,D,O,{id:m},d],stateAttributesMapping:ag})});var Sw={...Py,instantType:X(e=>e.instantType),hasViewport:X(e=>e.hasViewport)},Cw=class e extends Eg{constructor(e,t,n=!1){let i=new c_,a={...ww(),...e};a.floatingRootContext=Oy(i,t,n),super(a,{popupRef:r.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:i,closeDelayRef:{current:300},inlineRectCoordsRef:{current:void 0}},Sw)}setOpen=(e,t)=>{let n=t.reason,r=n===Zp,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;let o=t.event;e&&r&&t.trigger&&`clientX`in o&&`clientY`in o&&this.context.inlineRectCoordsRef.current?.element!==t.trigger&&xw(this.context.inlineRectCoordsRef,t.trigger,o.clientX,o.clientY),this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let r={open:e};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),p_(r,e,t.trigger),this.update(r)};r?u.flushSync(s):s()};static useStore(t,n){return d_(t,(t,r)=>new e(n,t,r)).store}};function ww(){return{...Dy(),instantType:void 0,hasViewport:!1}}function Tw(e){let{open:t,defaultOpen:n=!1,onOpenChange:i,onOpenChangeComplete:a,actionsRef:o,handle:s,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=Cw.useStore(s?.store,{open:n,openProp:t,activeTriggerId:d,triggerIdProp:u});v_(()=>{t===void 0&&!1===p.state.open&&!0===n&&p.update({open:!0,activeTriggerId:d})}),p.useControlledProp(`openProp`,t),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,i),p.useContextCallback(`onOpenChangeComplete`,a);let m=p.useState(`open`),h=p.useState(`activeTriggerId`),g=p.useState(`mounted`),_=p.useState(`payload`);h_(p);let{forceUnmount:v}=g_(m,p,()=>{p.context.inlineRectCoordsRef.current=void 0});J(()=>{m&&(h??p.set(`payload`,void 0))},[p,h,m]);let y=r.useCallback(()=>{p.setOpen(!1,Yp(om))},[p]);r.useImperativeHandle(o,()=>({unmount:v,close:y}),[v,y]);let b=m||g;return l(pw.Provider,{value:p,children:[b&&c(Ew,{store:p}),typeof f==`function`?f({payload:_}):f]})}function Ew({store:e}){let t=s_(e.useState(`floatingRootContext`));return __(e,{activeTriggerProps:t.reference??ep,inactiveTriggerProps:t.trigger??ep,popupProps:r.useMemo(()=>dp(u_,t.floating),[t.floating])}),null}gg(function(e){return mw(!0)?c(Tw,{...e}):c(Pg,{children:c(Tw,{...e})})});var Dw=r.createContext(void 0);function Ow(){return r.useContext(Dw)}var kw=function(e){return e.checked=`data-checked`,e.unchecked=`data-unchecked`,e.disabled=`data-disabled`,e.readonly=`data-readonly`,e.required=`data-required`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),Aw={checked(e){return e?{[kw.checked]:``}:{[kw.unchecked]:``}},...dm,...Qy},jw=r.createContext(void 0);function Mw(){let e=r.useContext(jw);if(e===void 0)throw Error(np(52));return e}var Nw=r.forwardRef(function(e,t){let{render:n,className:i,disabled:a=!1,readOnly:o=!1,required:s=!1,"aria-labelledby":u,value:d,inputRef:f,nativeButton:p=!1,id:m,style:h,...g}=e,_=Ow(),{disabled:v,readOnly:y,required:b,form:x,checkedValue:S,touched:C=!1,validation:w,name:T}=_??{},E=_?.setCheckedValue??Qf,D=_?.setTouched??Qf,O=_?.registerControlRef??Qf,k=_?.registerInputRef??Qf,{setDirty:A,validityData:j,setTouched:M,setFilled:N,state:P,disabled:F}=tb(),I=dS(),{labelId:L,getDescriptionProps:ee}=rb(),R=F||I.disabled||v||a,te=y||o,z=b||s,B=x,ne=_?S===d:d===``,re=r.useRef(null),ie=r.useRef(null),ae=Y(e=>{e&&O(e,R)}),V=Kf(f,ie,k);J(()=>{ie.current?.checked&&N(!0)},[N]),J(()=>{if(ie.current){if(R&&ne)return void k(null);re.current&&O(re.current,R),k(ie.current)}},[ne,R,O,k]);let oe=Wp(),se=kx({id:m,implicit:!1,controlRef:re}),ce=p?void 0:se,le=mS(u,L,ie,!p,ce),ue={role:`radio`,"aria-checked":ne,"aria-required":z||void 0,"aria-readonly":te||void 0,"aria-labelledby":le,[rS]:ne?``:void 0,id:p?se:oe,onKeyDown(e){e.key===`Enter`&&e.preventDefault()},onClick(e){if(e.defaultPrevented||R||te)return;e.preventDefault();let t=ie.current;t&&t.dispatchEvent(new(bm(t)).PointerEvent(`click`,{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))},onFocus(e){e.defaultPrevented||R||te||!C||(ie.current?.click(),D(!1))}},{getButtonProps:de,buttonRef:fe}=rh({disabled:R,native:p}),pe={type:`radio`,ref:V,form:B,id:ce,name:T,tabIndex:-1,style:T?S_:x_,"aria-hidden":!0,...d===void 0?ep:{value:Iy(d)},disabled:R,checked:ne,required:z,readOnly:te,onChange(e){if(e.nativeEvent.defaultPrevented||R||te||d===void 0)return;let t=Yp(`none`,e.nativeEvent);t.isCanceled||(M(!0),A(d!==j.initialValue),N(!0),E(d,t))},onFocus(){re.current?.focus()}},me=r.useMemo(()=>({...P,required:z,disabled:R,readOnly:te,checked:ne}),[P,R,te,ne,z]),he=me,ge=_!==void 0,_e=[t,re,fe,ae],ve=[ue,ee,w?.getValidationProps??ep,g,de],ye=Tp(`span`,e,{enabled:!ge,state:me,ref:_e,props:ve,stateAttributesMapping:Aw});return l(jw.Provider,{value:he,children:[ge?c(lS,{tag:`span`,render:n,className:i,style:h,state:me,refs:_e,props:ve,stateAttributesMapping:Aw}):ye,c(`input`,{...pe,suppressHydrationWarning:!0})]})}),Pw=r.forwardRef(function(e,t){let{render:n,className:i,style:a,keepMounted:o=!1,...s}=e,c=Mw(),l=c.checked,{mounted:u,transitionStatus:d,setMounted:f}=zp(l),p={...c,transitionStatus:d},m=r.useRef(null),h=o||u,g=Tp(`span`,e,{ref:[t,m],state:p,props:s,stateAttributesMapping:Aw});return mm({open:l,ref:m,onComplete(){l||f(!1)}}),h?g:null}),Fw={root:`root-Lal8hj`,indicator:`indicator-YyFvol`},Iw={small:12,medium:16,large:20};function Lw({className:e,size:t=Iw.medium,style:n,...r}){return c(Nw,{...r,className:Uf(Fw.root,e,`has-custom-focus`),style:{"--radio-size":`${t}px`,...n}})}var Rw={Root:Lw,Indicator:r.forwardRef(({className:e,...t},n)=>c(Pw,{ref:n,className:Uf(Fw.indicator,e),...t}))},zw={fieldItem:`fieldItem-RyE1Xd`,fieldLabel:`fieldLabel-3Ws24V`,fieldLabelStack:`fieldLabelStack-TwpByX`,fieldLabelText:`fieldLabelText-cfnyvw`,fieldSuffix:`fieldSuffix-SKi6ny`},Bw=r.forwardRef(({checked:e,description:t,descriptionProps:n,disabled:r,error:i,errorProps:a,indicatorProps:o,invalid:s,itemProps:u,label:d,labelProps:f,name:p,onSelect:m,radioProps:h,size:g,suffix:_,value:v,variant:y=`default`,...b},x)=>{let{className:S,onClick:C,...w}=u??{},{className:T,...E}=f??{},{className:D,render:O=c(`span`,{}),...k}=n??{},{className:A,match:j=!0,...M}=a??{},{disabled:N,...P}=h??{},F=r||N,I=t=>{C?.(t),!t.defaultPrevented&&m&&!F&&!e&&m(v)};return l(lC.Root,{...b,ref:x,name:p,disabled:F,invalid:s??!!i,children:[l(lC.Item,{...w,className:Uf(zw.fieldItem,S),"data-variant":y,onClick:I,children:[c(Rw.Root,{value:e?``:v,size:g,disabled:F,...P,children:c(Rw.Indicator,{...o})}),l(lC.Label,{...E,className:Uf(zw.fieldLabel,{[zw.fieldLabelStack]:t},T),children:[l(`span`,{className:zw.fieldLabelText,children:[d,_?c(`span`,{className:zw.fieldSuffix,children:_}):null]}),t?c(lC.Description,{...k,render:O,className:D,children:t}):null]})]}),i?c(lC.Error,{...M,match:j,className:A,children:i}):null]})});Bw.displayName=`RadioField`;var Vw=[`Shift`],Hw=r.forwardRef(function(e,t){let{render:n,className:i,disabled:a,readOnly:o,required:s,onValueChange:l,value:u,defaultValue:d,form:f,name:p,inputRef:m,id:h,style:g,..._}=e,{setTouched:v,setFocused:y,shouldValidateOnChange:b,validationMode:x,name:S,disabled:C,state:w,validation:T,setDirty:E,setFilled:D,validityData:O}=tb(),{labelId:k}=rb(),{clearErrors:A}=Bx(),j=NS(!0),M=C||a,N=S??p,P=Wp(h),[F,I]=jp({controlled:u,default:d,name:`RadioGroup`,state:`value`}),[L,ee]=r.useState(!1),R=Y((e,t)=>{l?.(e,t),!t.isCanceled&&I(e)}),te=r.useRef(null),z=r.useRef(null),B=r.useRef(null);function ne(e){let t;return m&&(typeof m==`function`?t=m(e):m.current=e),z.current=e,T.inputRef.current=e,t}let re=Y((e,t=!1)=>{e&&(t?te.current===e&&(te.current=null):te.current??=e)}),ie=Y(e=>{if(!e||e.disabled)return;B.current||=e;let t=z.current;if(e.checked||t==null||t.disabled)return ne(e)});Vx(te,P,F??null),Uv(F,()=>{A(N),E(F!==O.initialValue),D(F!=null),b()?T.commit(F):T.commit(F,!0);let e=B.current;F==null&&e&&!e.disabled&&ne(e)});let ae=_[`aria-labelledby`]??k??j?.legendId,V={...w,disabled:M??!1,required:s??!1,readOnly:o??!1},oe=r.useMemo(()=>({...w,checkedValue:F,disabled:M,form:f,validation:T,name:N,readOnly:o,registerControlRef:re,registerInputRef:ie,required:s,setCheckedValue:R,setTouched:ee,touched:L}),[F,M,f,T,w,N,o,re,ie,s,R,ee,L]),se={role:`radiogroup`,"aria-required":s||void 0,"aria-disabled":M||void 0,"aria-readonly":o||void 0,"aria-labelledby":ae,onFocus(){y(!0)},onBlur(e){Q(e.currentTarget,e.relatedTarget)||(v(!0),y(!1),x===`onBlur`&&T.commit(F))},onKeyDownCapture(e){e.key.startsWith(`Arrow`)&&(v(!0),ee(!0),y(!0))}};return c(Dw.Provider,{value:oe,children:c(sS,{render:n,className:i,style:g,state:V,props:[se,T.getValidationProps,_],refs:[t],stateAttributesMapping:Qy,enableHomeAndEndKeys:!1,modifierKeys:Vw})})}),Uw={root:`root-kKvIZ_`},Ww=r.forwardRef(({className:e,orientation:t=`vertical`,"aria-orientation":n,...r},i)=>c(Hw,{ref:i,className:Uf(Uw.root,e),"data-orientation":t,"aria-orientation":n??(t===`horizontal`?t:void 0),...r})),Gw={label:`label-JrSYqL`,group:`group-N19s7N`},Kw=r.forwardRef(({label:e,error:t,description:n,variant:i=`default`,withSpacing:a=!1,fluid:o=!1,invalid:s,disabled:u,size:d,children:f,className:p,"aria-label":m,"aria-labelledby":h,...g},_)=>{let v=r.useId(),y=s??!!t,b=r.Children.map(f,e=>{if(!r.isValidElement(e))return e;let t=e.props;return r.cloneElement(e,{variant:t.variant??i,invalid:t.invalid??(y||void 0),size:t.size??d,checked:void 0})});return l(lC.Root,{invalid:y,disabled:u,children:[e==null?null:c(`span`,{id:v,className:Gw.label,children:e}),c(Ww,{ref:_,disabled:u,"aria-label":e==null?m:void 0,"aria-labelledby":e==null?h:h??v,"data-variant":i,"data-spacing":a?``:void 0,"data-fluid":o?``:void 0,className:Uf(Gw.group,p),...g,children:b}),t==null?null:c(lC.Error,{match:y,children:t}),n==null?null:c(lC.Description,{children:n})]})});Kw.displayName=`RadioGroupField`;var qw=r.createContext(void 0),Jw={disableStyleElements:!1};function Yw(){return r.useContext(qw)??Jw}var Xw=`base-ui-disable-scrollbar`,Zw={className:Xw,getElement(e){return c(`style`,{nonce:e,href:Xw,precedence:`base-ui:low`,children:`.${Xw}{scrollbar-width:none}.${Xw}::-webkit-scrollbar{display:none}`})}},Qw=1;function $w(e,t){return Math.max(0,e-t)}function eT(e,t){if(t<=0)return 0;let n=WC(e,0,t),r=n,i=t-n,a=r<=Qw,o=i<=Qw;return a&&o?r<=i?0:t:a?0:o?t:n}var tT=r.createContext(null),nT=r.createContext(null);function rT(){let e=r.useContext(tT);if(e===null)throw Error(np(60));return e}function iT(){let e=r.useContext(nT);if(e===null)throw Error(np(61));return e}var $={id:X(e=>e.id),labelId:X(e=>e.labelId),modal:X(e=>e.modal),multiple:X(e=>e.multiple),items:X(e=>e.items),itemToStringLabel:X(e=>e.itemToStringLabel),itemToStringValue:X(e=>e.itemToStringValue),isItemEqualToValue:X(e=>e.isItemEqualToValue),value:X(e=>e.value),hasSelectedValue:X(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Gy(t,r)!==``}),hasNullItemLabel:X((e,t)=>t?Uy(e.items):!1),open:X(e=>e.open),mounted:X(e=>e.mounted),forceMount:X(e=>e.forceMount),transitionStatus:X(e=>e.transitionStatus),openMethod:X(e=>e.openMethod),activeIndex:X(e=>e.activeIndex),selectedIndex:X(e=>e.selectedIndex),isActive:X((e,t)=>e.activeIndex===t),isSelected:X((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>Ry(n,e,r)):e.selectedIndex===t&&e.selectedIndex!==null||Ry(n,i,r)}),isSelectedByFocus:X((e,t)=>e.selectedIndex===t),popupProps:X(e=>e.popupProps),triggerProps:X(e=>e.triggerProps),triggerElement:X(e=>e.triggerElement),positionerElement:X(e=>e.positionerElement),listElement:X(e=>e.listElement),popupSide:X(e=>e.popupSide),scrollUpArrowVisible:X(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:X(e=>e.scrollDownArrowVisible),hasScrollArrows:X(e=>e.hasScrollArrows)},aT=r.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=a;delete o.id;let s=tb(),{store:c}=rT(),l=Z(c,$.triggerElement),u=Z(c,$.id),d=FS({id:ib(u),fallbackControlId:l?.id??u,setLabelId(e){c.set(`labelId`,e)}});return Tp(`div`,e,{ref:t,state:s.state,props:[d,a],stateAttributesMapping:Qy})}),oT=2,sT=400,cT={...og,...Qy,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},lT=r.forwardRef(function(e,t){let{render:n,className:i,id:a,disabled:o=!1,nativeButton:s=!0,style:c,...l}=e,{setTouched:u,setFocused:d,validationMode:f,state:p,disabled:m}=tb(),{labelId:h}=rb(),{store:g,setOpen:_,selectionRef:v,validation:y,readOnly:b,required:x,alignItemWithTriggerActiveRef:S,disabled:C,keyboardActiveRef:w}=rT(),T=m||C||o,E=Z(g,$.open),D=Z(g,$.mounted),O=Z(g,$.value),k=Z(g,$.triggerProps),A=Z(g,$.positionerElement),j=Z(g,$.listElement),M=Z(g,$.popupSide),N=Z(g,$.id),P=Z(g,$.labelId),F=Z(g,$.hasSelectedValue),I=D&&A?M:null,L=a??N,ee=ab(h,P);kx({id:L});let R=hm(A),te=r.useRef(null),{getButtonProps:z,buttonRef:B}=rh({disabled:T,native:s}),ne=Kf(t,te,B,Y(e=>{g.set(`triggerElement`,e)})),re=Lg(),ie=Lg(),ae=Lg();r.useEffect(()=>{if(E)return ae.start(sT,()=>{v.current.allowUnselectedMouseUp=!0,v.current.allowSelectedMouseUp=!0}),()=>{ae.clear()};v.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},ie.clear()},[E,v,ie,ae]);let V=dp(k,{id:L,role:`combobox`,"aria-expanded":E?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":E?j?.id??Zg(A)?.id:void 0,"aria-labelledby":ee,"aria-readonly":b||void 0,"aria-required":x||void 0,tabIndex:T?-1:0,ref:ne,onFocus(e){d(!0),E&&S.current&&_(!1,Yp(`none`,e.nativeEvent)),re.start(0,()=>{g.set(`forceMount`,!0)})},onBlur(e){Q(A,e.relatedTarget)||(u(!0),d(!1),f===`onBlur`&&y.commit(O))},onPointerMove(){w.current=!1},onKeyDown(){w.current=!0},onMouseDown(e){if(E)return;let t=Qg(e.currentTarget);function n(e){if(!te.current)return;let t=e.target;if(Q(te.current,t)||Q(R.current,t)||t===te.current)return;let n=Rx(te.current);e.clientX>=n.left-oT&&e.clientX<=n.right+oT&&e.clientY>=n.top-oT&&e.clientY<=n.bottom+oT||_(!1,Yp(im,e))}ie.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},y.getValidationProps,l,z);V.role=`combobox`;let oe={...p,open:E,disabled:T,value:O,readOnly:b,popupSide:I,placeholder:!F};return Tp(`button`,e,{ref:[t,te],state:oe,stateAttributesMapping:cT,props:V})}),uT={value:()=>null},dT=r.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:l}=rT(),u=Z(c,$.value),d=Z(c,$.items),f=Z(c,$.itemToStringLabel),p=Z(c,$.hasSelectedValue),m=!p&&a!=null&&i==null,h=Z(c,$.hasNullItemLabel,m),g={value:u,placeholder:!p},_=null;return _=typeof i==`function`?i(u):i??(p||a==null||h?Array.isArray(u)?qy(u,d,f):Ky(u,d,f):a),Tp(`span`,e,{state:g,ref:[t,l],props:[{children:_},s],stateAttributesMapping:uT})}),fT=r.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=rT();return Tp(`span`,e,{state:{open:Z(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:ag})}),pT={...sg,...dm},mT=r.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=rT(),s=Z(o,$.open),c=Z(o,$.mounted);return Tp(`div`,e,{state:{open:s,transitionStatus:Z(o,$.transitionStatus)},ref:t,props:[{role:`presentation`,hidden:!c,style:{userSelect:`none`,WebkitUserSelect:`none`}},a],stateAttributesMapping:pT})}),hT=r.createContext(void 0);function gT(){let e=r.useContext(hT);if(!e)throw Error(np(59));return e}function _T(e,t){e&&Object.assign(e.style,t)}var vT={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},yT={position:`fixed`},bT=r.forwardRef(function(e,t){let{anchor:n,positionMethod:i=`absolute`,className:a,render:o,side:s=`bottom`,align:u=`center`,sideOffset:d=0,alignOffset:f=0,collisionBoundary:p=`clipping-ancestors`,collisionPadding:m,arrowPadding:h=5,sticky:g=!1,disableAnchorTracking:_,alignItemWithTrigger:v=!0,collisionAvoidance:y=Iv,style:b,...x}=e,{store:S,listRef:C,labelsRef:w,alignItemWithTriggerActiveRef:T,selectedItemTextRef:E,valuesRef:D,initialValueRef:O,popupRef:k,setValue:A}=rT(),j=iT(),M=Z(S,$.open),N=Z(S,$.mounted),P=Z(S,$.modal),F=Z(S,$.value),I=Z(S,$.openMethod),L=Z(S,$.positionerElement),ee=Z(S,$.triggerElement),R=Z(S,$.isItemEqualToValue),te=Z(S,$.transitionStatus),z=r.useRef(null),B=r.useRef(null),[ne,re]=r.useState(v),ie=N&&ne&&I!==`touch`;!N&&ne!==v&&re(v),J(()=>{N||($.scrollUpArrowVisible(S.state)&&S.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(S.state)&&S.set(`scrollDownArrowVisible`,!1))},[S,N]),r.useImperativeHandle(T,()=>ie),Ox((ie||P)&&M,I===`touch`,L,ee);let ae=Cx({anchor:n,floatingRootContext:j,positionMethod:i,mounted:N,side:s,sideOffset:d,align:u,alignOffset:f,arrowPadding:h,collisionBoundary:p,collisionPadding:m,sticky:g,disableAnchorTracking:_??ie,collisionAvoidance:y,keepMounted:!0}),V=ie?`none`:ae.side,oe=ie?yT:ae.positionerStyles,se={open:M,side:V,align:ae.align,anchorHidden:ae.anchorHidden};J(()=>{S.set(`popupSide`,ae.side)},[S,ae.side]);let ce=Ex(e,se,{styles:oe,transitionStatus:te,props:x,refs:[t,Y(e=>{S.set(`positionerElement`,e)})],hidden:!N,inert:!M}),le=r.useRef(0),ue=Y(e=>{if(e.size===0&&le.current===0||D.current.length===0)return;let t=le.current;if(le.current=e.size,e.size===t)return;let n=Yp(`none`);if(t!==0&&!S.state.multiple&&F!==null&&By(D.current,F,R)===-1){let e=O.current,t=e!=null&&By(D.current,e,R)!==-1?e:null;A(t,n),t===null&&(S.set(`selectedIndex`,null),E.current=null)}if(t!==0&&S.state.multiple&&Array.isArray(F)){let e=e=>By(D.current,e,R)!==-1,t=F.filter(t=>e(t));(t.length!==F.length||t.some(e=>!zy(F,e,R)))&&(A(t,n),t.length===0&&(S.set(`selectedIndex`,null),E.current=null))}if(M&&ie){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};_T(L,e),_T(k.current,e)}}),de=r.useMemo(()=>({...ae,side:V,alignItemWithTriggerActive:ie,setControlledAlignItemWithTrigger:re,scrollUpArrowRef:z,scrollDownArrowRef:B}),[ae,V,ie,re]);return c(Gh,{elementsRef:C,labelsRef:w,onMapChange:ue,children:l(hT.Provider,{value:de,children:[N&&P&&c(Ty,{inert:Fy(!M),cutout:ee}),ce]})})}),xT={...sg,...dm},ST=r.forwardRef(function(e,t){let{render:n,className:i,style:a,finalFocus:o,...s}=e,{store:u,popupRef:d,onOpenChangeComplete:f,setOpen:p,valueRef:m,firstItemTextRef:h,selectedItemTextRef:g,keyboardActiveRef:_,multiple:v,handleScrollArrowVisibility:y,scrollHandlerRef:b,listRef:x,highlightItemOnHover:S}=rT(),{side:C,align:w,alignItemWithTriggerActive:T,isPositioned:E,setControlledAlignItemWithTrigger:D,scrollDownArrowRef:O,scrollUpArrowRef:k}=gT(),A=xC(!0)!=null,j=iT(),M=Wh(),{nonce:N,disableStyleElements:P}=Yw(),F=Z(u,$.id),I=Z(u,$.open),L=Z(u,$.mounted),ee=Z(u,$.popupProps),R=Z(u,$.transitionStatus),te=Z(u,$.triggerElement),z=Z(u,$.positionerElement),B=Z(u,$.listElement),ne=r.useRef(!1),re=r.useRef(!1),ie=r.useRef({}),ae=Rp(),V=Y(e=>{if(!z||!d.current||!re.current)return;if(ne.current||!T)return void y();let t=z.style.top===`0px`,n=z.style.bottom===`0px`;if(!t&&!n)return void y();let r=TT(z),i=ET(z.getBoundingClientRect().height,`y`,r),a=Qg(z),o=getComputedStyle(z),s=parseFloat(o.marginTop),c=parseFloat(o.marginBottom),l=CT(getComputedStyle(d.current)),u=Math.min(a.documentElement.clientHeight-s-c,l),f=e.scrollTop,p=wT(e),m=0,h=null,g=!1,_=!1,v=e=>{z.style.height=`${e}px`},b=(t,n)=>{let r=WC(t,0,u-i);r>0&&v(i+r),e.scrollTop=n,u-(i+r)<=1&&(ne.current=!0),y()},x=t?p-f:f,S=Math.min(i+x,u);if(m=S,x<=1)return void b(x,t?p:0);if(u-S>1?t?_=!0:h=0:(g=!0,n&&f<p&&(h=f-(x-(i+x-u)))),m=Math.ceil(m),m!==0&&v(m),_||h!=null){let t=wT(e),n=_?t:WC(h,0,t);Math.abs(e.scrollTop-n)>1&&(e.scrollTop=n)}(g||m>=u-1)&&(ne.current=!0),y()});r.useImperativeHandle(b,()=>V,[V]),mm({open:I,ref:d,onComplete(){I&&f?.(!0)}});let oe={open:I,transitionStatus:R,side:C,align:w};J(()=>{z&&d.current&&!Object.keys(ie.current).length&&(ie.current={top:z.style.top||`0`,left:z.style.left||`0`,right:z.style.right,height:z.style.height,bottom:z.style.bottom,minHeight:z.style.minHeight,maxHeight:z.style.maxHeight,marginTop:z.style.marginTop,marginBottom:z.style.marginBottom})},[d,z]),J(()=>{I||T||(re.current=!1,ne.current=!1,_T(z,ie.current))},[I,T,z,d]),J(()=>{let e=d.current;if(!I||!te||!z||!e||T&&!E||u.state.transitionStatus===`ending`)return;if(!T){re.current=!0,ae.request(y),e.style.removeProperty(`--transform-origin`);return}let t=kT(e);e.style.removeProperty(`--transform-origin`);try{let t=g.current;t?.isConnected||(t=!$.hasSelectedValue(u.state)&&h.current?.isConnected?h.current:null);let n=m.current,r=getComputedStyle(z),i=getComputedStyle(e),a=Qg(te),o=bm(z),s=TT(te),c=DT(te.getBoundingClientRect(),s),l=DT(z.getBoundingClientRect(),s),d=c.height,f=B||e,p=f.scrollHeight,_=parseFloat(i.borderBottomWidth),v=parseFloat(r.marginTop)||10,b=parseFloat(r.marginBottom)||10,C=parseFloat(r.minHeight)||100,w=CT(i),T=a.documentElement.clientHeight-v-b,E=a.documentElement.clientWidth,O=T-c.bottom+d,k,A=M===`rtl`?c.right-l.width:c.left,j=0;if(t&&n){let e=DT(n.getBoundingClientRect(),s);k=DT(t.getBoundingClientRect(),s),A=l.left+(M===`rtl`?e.right-k.right:e.left-k.left);let r=e.top-c.top+e.height/2;j=k.top-l.top+k.height/2-r}let N=O+j+b+_,P=Math.min(T,N),F=T-v-b,I=N-P,L=E-5;z.style.left=`${WC(A,5,L-l.width)}px`,z.style.height=`${P}px`,z.style.maxHeight=`auto`,z.style.marginTop=`${v}px`,z.style.marginBottom=`${b}px`,e.style.height=`100%`;let ee=wT(f),R=I>=ee-1;R&&(P=Math.min(T,l.height)-(I-ee));let ae=c.top<20||c.bottom>T-20||Math.ceil(P)+1<Math.min(p,C),V=(o.visualViewport?.scale??1)!==1&&Oh;if(ae||V){re.current=!0,_T(z,ie.current),D(!1);return}let oe=Math.max(C,P);if(R){let e=Math.max(0,T-N);z.style.top=l.height>=F?`0`:`${e}px`,z.style.height=`${P}px`,f.scrollTop=wT(f)}else z.style.bottom=`0`,f.scrollTop=I;if(k){let t=l.top,n=l.height,r=k.top+k.height/2,i=WC(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(oe===T||P>=w)&&(ne.current=!0),y(),S&&u.state.selectedIndex===null&&u.state.activeIndex===null&&x.current[0]!=null&&u.set(`activeIndex`,0),re.current=!0}finally{t()}},[u,I,z,te,m,h,g,d,y,T,D,ae,O,k,B,x,S,M,E]),r.useEffect(()=>{if(!T||!z||!I)return;let e=bm(z);function t(e){p(!1,Yp(sm,e))}return _m(e,`resize`,t)},[p,T,z,I]);let se={...B?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":v||void 0,id:`${F}-list`},onKeyDown(e){_.current=!0,A&&_h.has(e.key)&&e.stopPropagation()},onMouseMove(){_.current=!1},onScroll(e){B||V(e.currentTarget)},...T&&{style:B?{height:`100%`}:vT}},ce=Tp(`div`,e,{ref:[t,d],state:oe,stateAttributesMapping:xT,props:[ee,se,Tx(R),{className:!B&&T?Zw.className:void 0},s]});return l(r.Fragment,{children:[!P&&Zw.getElement(N),c(fy,{context:j,modal:!1,disabled:!L,returnFocus:o,restoreFocus:!0,children:ce})]})});function CT(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function wT(e){return $w(e.scrollHeight,e.clientHeight)}function TT(e){return Kb.getScale(e)}function ET(e,t,n){return e/n[t]}function DT(e,t){return X_({x:ET(e.x,`x`,t),y:ET(e.y,`y`,t),width:ET(e.width,`x`,t),height:ET(e.height,`y`,t)})}var OT=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function kT(e){let{style:t}=e,n={};for(let[e,r]of OT)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of OT){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var AT=r.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=rT(),{alignItemWithTriggerActive:c}=gT(),l=Z(o,$.hasScrollArrows),u=Z(o,$.openMethod),d=Z(o,$.multiple),f={id:`${Z(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":d||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:vT},className:l&&u!==`touch`?Zw.className:void 0};return Tp(`div`,e,{ref:[t,Y(e=>{o.set(`listElement`,e)})],props:[f,a]})}),jT=r.createContext(void 0);function MT(){let e=r.useContext(jT);if(!e)throw Error(np(57));return e}var NT=r.memo(r.forwardRef(function(e,t){let{render:n,className:i,style:a,value:o=null,label:s,disabled:l=!1,nativeButton:u=!1,...d}=e,f=r.useRef(null),p=Qm({label:s,textRef:f,indexGuessBehavior:Zm.GuessFromOrder}),{store:m,itemProps:h,setOpen:g,setValue:_,selectionRef:v,typingRef:y,valuesRef:b,multiple:x,selectedItemTextRef:S}=rT(),C=Z(m,$.isActive,p.index),w=Z(m,$.isSelected,p.index,o),T=Z(m,$.isSelectedByFocus,p.index),E=Z(m,$.isItemEqualToValue),D=p.index,O=D!==-1,k=r.useRef(null);J(()=>{if(!O)return;let e=b.current;return e[D]=o,()=>{delete e[D]}},[O,D,o,b]),J(()=>{if(!O)return;let e=m.state.value,t=e;x&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&&Ry(o,t,E)&&(m.set(`selectedIndex`,D),f.current&&(S.current=f.current))},[O,D,x,E,m,o,S]);let A=r.useRef(null),j=r.useRef(`mouse`),M=r.useRef(!1),{getButtonProps:N,buttonRef:P}=rh({disabled:l,focusableWhenDisabled:!0,native:u,composite:!0}),F={disabled:l,selected:w,highlighted:C};function I(e){let t=m.state.value;if(x){let n=Array.isArray(t)?t:[],r=w?Vy(n,o,E):[...n,o];_(r,Yp(em,e))}else _(o,Yp(em,e)),g(!1,Yp(em,e))}function L(){v.current.dragY=0}let ee={role:`option`,"aria-selected":w,tabIndex:C?0:-1,onKeyDown(e){A.current=e.key,m.set(`activeIndex`,D),e.key===` `&&y.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&j.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&zh(e.nativeEvent)&&(n!==void 0||C),i=t&&!r&&!M.current;M.current=!1,(e.type!==`keydown`||A.current!==null)&&(l||e.type===`keydown`&&A.current===` `&&y.current||i||(A.current=null,I(e.nativeEvent)))},onPointerEnter(e){j.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=v.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){j.current=e.pointerType,M.current=!0,L()},onMouseUp(){if(L(),l||j.current===`touch`||M.current)return;let e=!v.current.allowSelectedMouseUp&&w,t=!v.current.allowUnselectedMouseUp&&!w;e||t||(M.current=!0,k.current?.click(),M.current=!1)}},R=Tp(`div`,e,{ref:[P,t,p.ref,k],state:F,props:[h,ee,d,N]}),te=r.useMemo(()=>({selected:w,index:D,textRef:f,selectedByFocus:T,hasRegistered:O}),[w,D,f,T,O]);return c(jT.Provider,{value:te,children:R})})),PT=r.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=MT();return n||r?c(FT,{...e,ref:t}):null}),FT=r.memo(r.forwardRef((e,t)=>{let{render:n,className:i,style:a,keepMounted:o,...s}=e,{selected:c}=MT(),l=r.useRef(null),{transitionStatus:u,setMounted:d}=zp(c),f=Tp(`span`,e,{ref:[t,l],state:{selected:c,transitionStatus:u},props:[{"aria-hidden":!0,children:`✔️`},s],stateAttributesMapping:dm});return mm({open:c,ref:l,onComplete(){c||d(!1)}}),f})),IT=r.memo(r.forwardRef(function(e,t){let{index:n,textRef:i,selectedByFocus:a,hasRegistered:o}=MT(),{firstItemTextRef:s,selectedItemTextRef:c}=rT(),{render:l,className:u,style:d,...f}=e;return Tp(`div`,e,{ref:[r.useCallback(e=>{e&&(o&&n===0&&(s.current=e),o&&a&&(c.current=e))},[s,c,n,a,o]),t,i],props:f})})),LT={...sg,...dm},RT=r.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=rT(),{side:s,align:c,arrowRef:l,arrowStyles:u,arrowUncentered:d,alignItemWithTriggerActive:f}=gT(),p=Tp(`div`,e,{state:{open:Z(o,$.open,!0),side:s,align:c,uncentered:d},ref:[l,t],props:[{style:u,"aria-hidden":!0},a],stateAttributesMapping:LT});return f?null:p}),zT=r.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:l,popupRef:u,listRef:d,handleScrollArrowVisibility:f,scrollArrowsMountedCountRef:p}=rT(),{side:m,scrollDownArrowRef:h,scrollUpArrowRef:g}=gT(),_=Z(l,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),v=Z(l,$.openMethod),y=_&&v!==`touch`,b=Lg(),x=c?g:h,{transitionStatus:S,setMounted:C}=zp(y);J(()=>(p.current+=1,l.state.hasScrollArrows||l.set(`hasScrollArrows`,!0),()=>{p.current=Math.max(0,p.current-1),p.current===0&&l.state.hasScrollArrows&&l.set(`hasScrollArrows`,!1)}),[l,p]),mm({open:y,ref:x,onComplete(){y||C(!1)}});let w=Tp(`div`,e,{ref:[t,x],state:{direction:a,visible:y,side:m,transitionStatus:S},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||b.isStarted())return;l.set(`activeIndex`,null);function t(){let e=l.state.listElement??u.current;if(!e)return;l.set(`activeIndex`,null),f();let n=$w(e.scrollHeight,e.clientHeight),r=eT(e.scrollTop,n),i=r===(c?0:n),a=d.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&l.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i)return void b.clear();if(a.length>0){let t=x.current?.offsetHeight||0;e.scrollTop=BT(a,c,r,e.clientHeight,t,n)}b.start(40,t)}b.start(40,t)},onMouseLeave(){b.clear()}},s]});return y||o?w:null});function BT(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return o<t&&s?eT(s.offsetTop-i,a):0}let o=e.length-1,s=n+r-i+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>s){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?eT(l.offsetTop+l.offsetHeight-r+i,a):a}var VT=r.forwardRef(function(e,t){return c(zT,{...e,ref:t,direction:`down`})}),HT=r.forwardRef(function(e,t){return c(zT,{...e,ref:t,direction:`up`})}),UT=r.createContext(void 0);function WT(){let e=r.useContext(UT);if(e===void 0)throw Error(np(56));return e}var GT=r.forwardRef(function(e,t){let{render:n,className:i,style:a,...o}=e,[s,l]=r.useState(),u=r.useMemo(()=>({labelId:s,setLabelId:l}),[s,l]),d=Tp(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":s},o]});return c(UT.Provider,{value:u,children:d})}),KT=r.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=WT(),c=Wp(a);return J(()=>{s(c)},[c,s]),Tp(`div`,e,{ref:t,props:[{id:c},o]})});function qT(e){let{id:t,value:n,defaultValue:i=null,onValueChange:a,open:o,defaultOpen:s=!1,onOpenChange:u,name:d,form:f,autoComplete:p,disabled:m=!1,readOnly:h=!1,required:g=!1,modal:_=!0,actionsRef:v,inputRef:y,onOpenChangeComplete:b,items:x,multiple:S=!1,itemToStringLabel:C,itemToStringValue:w,isItemEqualToValue:T=Ly,highlightItemOnHover:E=!0,children:D}=e,{clearErrors:O}=Bx(),{setDirty:k,setTouched:A,setFocused:j,shouldValidateOnChange:M,validityData:N,setFilled:P,name:F,disabled:I,validation:L,validationMode:ee}=tb(),R=kx({id:t}),te=I||m,z=F??d,[B,ne]=jp({controlled:n,default:S?i??$f:i,name:`Select`,state:`value`}),[re,ie]=jp({controlled:o,default:s,name:`Select`,state:`open`}),ae=r.useRef([]),V=r.useRef([]),oe=r.useRef(null),se=r.useRef(null),ce=r.useRef(0),le=r.useRef(null),ue=r.useRef([]),de=r.useRef(!1),fe=r.useRef(!1),pe=r.useRef(null),me=r.useRef(null),he=r.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ge=r.useRef(!1),{mounted:_e,setMounted:ve,transitionStatus:ye}=zp(re),{openMethod:be,triggerProps:xe}=hy(re),Se=Gf(()=>new Tg({id:R,labelId:void 0,modal:_,multiple:S,itemToStringLabel:C,itemToStringValue:w,isItemEqualToValue:T,value:B,open:re,mounted:_e,transitionStatus:ye,items:x,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,Ce=Z(Se,$.activeIndex),we=Z(Se,$.selectedIndex),Te=Z(Se,$.triggerElement),Ee=Z(Se,$.positionerElement),De=KC(be),Oe=be??De,ke=r.useMemo(()=>S&&Array.isArray(B)&&B.length===0?``:Gy(B,w),[S,B,w]),Ae=r.useMemo(()=>S&&Array.isArray(B)?B.map(e=>Gy(e,w)):Gy(B,w),[S,B,w]);Vx(hm(Se.state.triggerElement),R,B,Y(()=>Ae));let je=r.useRef(B),Me=S?Array.isArray(B)&&B.length>0:B!=null;J(()=>{B!==je.current&&Se.set(`forceMount`,!0)},[Se,B]),J(()=>{P(Me)},[Me,P]),J(function(){let e=ue.current,t;if(S){let n=Array.isArray(B)?B:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=By(e,r,T);t=i===-1?null:i}}else{let n=By(e,B,T);t=n===-1?null:n}t===null&&(me.current=null),!re&&Se.set(`selectedIndex`,t)},[Me,S,re,B,ue,T,Se,me]),Uv(B,()=>{O(z),k(B!==N.initialValue),M()?L.commit(B):L.commit(B,!0)});let Ne=Y((e,t)=>{if(u?.(e,t),!t.isCanceled&&(ie(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(A(!0),j(!1),ee===`onBlur`&&L.commit(B)),!e&&Se.state.activeIndex!==null)){let e=ae.current[Se.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),Pe=Y(()=>{ve(!1),Se.update({activeIndex:null,openMethod:null}),b?.(!1)});mm({enabled:!v,open:re,ref:oe,onComplete(){re||Pe()}}),r.useImperativeHandle(v,()=>({unmount:Pe}),[Pe]);let Fe=Y((e,t)=>{a?.(e,t),!t.isCanceled&&ne(e)}),Ie=Y(()=>{let e=Se.state.listElement||oe.current;if(!e)return;let t=$w(e.scrollHeight,e.clientHeight),n=eT(e.scrollTop,t),r=n>0,i=n<t;Se.state.scrollUpArrowVisible!==r&&Se.set(`scrollUpArrowVisible`,r),Se.state.scrollDownArrowVisible!==i&&Se.set(`scrollDownArrowVisible`,i)}),Le=hx({open:re,onOpenChange:Ne,elements:{reference:Te,floating:Ee}}),Re=y_(Le,{enabled:!h&&!te,event:`mousedown`}),ze=s_(Le),Be=Lx(Le,{enabled:!h&&!te,listRef:ae,activeIndex:Ce,selectedIndex:we,disabledIndices:$f,onNavigate(e){(e!==null||re)&&Se.set(`activeIndex`,e)},focusItemOnHover:E}),H=Ax(Le,{enabled:!h&&!te&&(re||!S),listRef:V,activeIndex:Ce,selectedIndex:we,onMatch(e){re?Se.set(`activeIndex`,e):Fe(ue.current[e],Yp(`none`))},onTyping(e){de.current=e}}),U=r.useMemo(()=>{let e=dp(H.reference,Be.reference,ze.reference,Re.reference,xe);return R&&(e.id=R),e},[Re.reference,H.reference,Be.reference,ze.reference,xe,R]),Ve=r.useMemo(()=>dp(u_,H.floating,Be.floating,ze.floating),[H.floating,Be.floating,ze.floating]),W=Be.item??ep;v_(()=>{Se.update({popupProps:Ve,triggerProps:U})}),J(()=>{Se.update({id:R,modal:_,multiple:S,value:B,open:re,mounted:_e,transitionStatus:ye,popupProps:Ve,triggerProps:U,items:x,itemToStringLabel:C,itemToStringValue:w,isItemEqualToValue:T,openMethod:Oe})},[Se,R,_,S,B,re,_e,ye,Ve,U,x,C,w,T,Oe]);let He=r.useMemo(()=>({store:Se,name:z,required:g,disabled:te,readOnly:h,multiple:S,highlightItemOnHover:E,setValue:Fe,setOpen:Ne,listRef:ae,popupRef:oe,scrollHandlerRef:se,handleScrollArrowVisibility:Ie,scrollArrowsMountedCountRef:ce,itemProps:W,events:Le.context.events,valueRef:le,valuesRef:ue,labelsRef:V,typingRef:de,selectionRef:he,firstItemTextRef:pe,selectedItemTextRef:me,validation:L,onOpenChangeComplete:b,keyboardActiveRef:fe,alignItemWithTriggerActiveRef:ge,initialValueRef:je}),[Se,z,g,te,h,S,E,Fe,Ne,W,Le.context.events,L,b,Ie]),Ue=Kf(y,L.inputRef),We=S&&Array.isArray(B)&&B.length>0,Ge=S?void 0:z,Ke=r.useMemo(()=>!S||!Array.isArray(B)||!z?null:B.map(e=>{let t=Gy(e,w);return c(`input`,{type:`hidden`,form:f,name:z,value:t},t)}),[S,B,f,z,w]);return c(tT.Provider,{value:He,children:l(nT.Provider,{value:Le,children:[D,c(`input`,{...L.getInputValidationProps({onFocus(){Se.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||te||h)return void e.preventBaseUIHandler?.();let t=e.currentTarget.value,n=Yp(`none`,e.nativeEvent);function r(){if(S)return;let e=ue.current.find(e=>Gy(e,w).toLowerCase()===t.toLowerCase()||Wy(e,C).toLowerCase()===t.toLowerCase());e!=null&&(k(e!==N.initialValue),Fe(e,n),M()&&L.commit(e))}Se.set(`forceMount`,!0),queueMicrotask(r)}}),id:R&&Ge==null?`${R}-hidden-input`:void 0,form:f,name:Ge,autoComplete:p,value:ke,disabled:te,required:g&&!We,readOnly:h,ref:Ue,style:z?S_:x_,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Ke]})})}var JT=r.createContext(void 0),YT=r.forwardRef(function(e,t){let{store:n}=rT(),r=Z(n,$.mounted),i=Z(n,$.forceMount);return r||i?c(JT.Provider,{value:!0,children:c(Hv,{ref:t,...e})}):null}),XT={label:`label-UrIm_f`,fieldLabel:`fieldLabel-KieHgU`,requiredMarker:`requiredMarker-ZRoZQT`,trigger:`trigger-UPubf5`,value:`value-fKND1Z`,icon:`icon-_ToIv8`,backdrop:`backdrop-kGw5mZ`,positioner:`positioner-rz27gX`,popup:`popup-BEvbSY`,list:`list-fTpwcL`,item:`item-SBIvtk`,itemText:`itemText-tVdjcF`,itemContent:`itemContent-N1nRUK`,itemDescription:`itemDescription-MNvNbs`,itemIcon:`itemIcon-ASIDFq`,itemSuffix:`itemSuffix-h2RKor`,itemIndicator:`itemIndicator-qlxJA4`,arrow:`arrow-TRzfpO`,scrollDownArrow:`scrollDownArrow-mffvLs`,scrollUpArrow:`scrollUpArrow-P67Eti`,groupLabel:`groupLabel-GC3RgN`,separator:`separator-XEtOy2`,loadingIndicator:`loadingIndicator-X_6SEg`,loadingIndicatorSpin:`loadingIndicatorSpin-xPUyVe`},ZT={Root:qT,Label:r.forwardRef(({className:e,...t},n)=>c(aT,{ref:n,className:Uf(XT.label,e),...t})),Trigger:r.forwardRef(({className:e,...t},n)=>c(lT,{ref:n,className:Uf(XT.trigger,e),...t})),Value:r.forwardRef(({className:e,...t},n)=>c(dT,{ref:n,className:Uf(XT.value,e),...t})),Icon:r.forwardRef(({className:e,...t},n)=>c(fT,{ref:n,className:Uf(XT.icon,e),...t})),Portal:YT,Backdrop:r.forwardRef(({className:e,...t},n)=>c(mT,{ref:n,className:Uf(XT.backdrop,e),...t})),Positioner:r.forwardRef(({className:e,...t},n)=>c(bT,{ref:n,className:Uf(XT.positioner,e),...t})),Popup:r.forwardRef(({className:e,...t},n)=>c(ST,{ref:n,className:Uf(XT.popup,e),...t})),List:r.forwardRef(({className:e,...t},n)=>c(AT,{ref:n,className:Uf(XT.list,e),...t})),Item:r.forwardRef(({className:e,...t},n)=>c(NT,{ref:n,className:Uf(XT.item,e),...t})),ItemIndicator:r.forwardRef(({className:e,...t},n)=>c(PT,{ref:n,className:Uf(XT.itemIndicator,e),...t})),ItemText:r.forwardRef(({className:e,...t},n)=>c(IT,{ref:n,className:Uf(XT.itemText,e),...t})),Arrow:r.forwardRef(({className:e,...t},n)=>c(RT,{ref:n,className:Uf(XT.arrow,e),...t})),ScrollDownArrow:r.forwardRef(({className:e,...t},n)=>c(VT,{ref:n,className:Uf(XT.scrollDownArrow,e),...t})),ScrollUpArrow:r.forwardRef(({className:e,...t},n)=>c(HT,{ref:n,className:Uf(XT.scrollUpArrow,e),...t})),Group:r.forwardRef(({className:e,...t},n)=>c(GT,{ref:n,className:Uf(XT.group,e),...t})),GroupLabel:r.forwardRef(({className:e,...t},n)=>c(KT,{ref:n,className:Uf(XT.groupLabel,e),...t})),Separator:r.forwardRef(({className:e,...t},n)=>c(Hx,{ref:n,className:Uf(XT.separator,e),...t}))},QT=e=>`divider`in e,$T=e=>`groupLabel`in e;function eE(e){let{value:t,label:n,disabled:r,icon:i,description:a,suffix:o}=e,u=n??t,d=i!=null||a!=null||o!=null;return c(ZT.Item,{value:t,disabled:r,children:d?l(s,{children:[i==null?null:c(`span`,{className:XT.itemIcon,"aria-hidden":`true`,children:i}),l(`div`,{className:XT.itemContent,children:[c(ZT.ItemText,{children:u}),a==null?null:c(`div`,{className:XT.itemDescription,children:a})]}),o==null?null:c(`span`,{className:XT.itemSuffix,children:o})]}):c(ZT.ItemText,{children:u})},t)}var tE=r.forwardRef(({options:e,label:t,"aria-label":n,placeholder:r,description:i,error:a,variant:o=`floating`,alignment:s=`start`,invalid:u=!1,loading:d=!1,required:f=!1,disabled:p=!1,readOnly:m,icon:h=c(zf,{}),outerBorder:g=!1,sideOffset:_=4,dir:v,triggerClassName:y,popupClassName:b,...x},S)=>c(lC.Root,{invalid:u,disabled:p,children:l(ZT.Root,{readOnly:m||d,required:f,disabled:p,...x,children:[t==null?null:l(ZT.Label,{className:XT.fieldLabel,children:[t,f?c(`span`,{className:XT.requiredMarker,"aria-hidden":`true`,children:`*`}):null]}),l(ZT.Trigger,{ref:S,dir:v,"aria-label":t==null?n:void 0,"aria-busy":d||void 0,"data-variant":o,"data-alignment":s,"data-loading":d?``:void 0,className:y,children:[c(ZT.Value,{placeholder:r}),d?c(`span`,{className:XT.loadingIndicator,"aria-hidden":`true`}):c(ZT.Icon,{children:h})]}),a==null?null:c(lC.Error,{match:u,children:a}),i==null?null:c(lC.Description,{children:i}),c(ZT.Portal,{children:c(ZT.Positioner,{dir:v,align:`start`,alignItemWithTrigger:!1,sideOffset:_,children:c(ZT.Popup,{dir:v,"data-variant":o,"data-outer-border":g?``:void 0,className:b,children:c(ZT.List,{children:e.map((e,t)=>QT(e)?c(ZT.Separator,{},`divider-${t}`):$T(e)?l(ZT.Group,{children:[c(ZT.GroupLabel,{children:e.groupLabel}),e.options.map(eE)]},`group-${t}`):eE(e))})})})})]})}));tE.displayName=`SelectField`,ug(`../../node_modules/use-sync-external-store/index.js`),{...Qy},[..._h],{...Qy};var nE=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),rE={tabActivationDirection:e=>({[nE.activationDirection]:e})};({...rE}),function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=cm.startingStyle]=`startingStyle`,e[e.endingStyle=cm.endingStyle]=`endingStyle`,e}({}),{...rE,...dm};var iE={root:`root-Hb4MhN`,list:`list-ZEK7AG`,underlineFull:`underlineFull-qh4VtD`,underlineFit:`underlineFit-ahY1xs`,alignStart:`alignStart-haA6GJ`,alignCenter:`alignCenter-e896qY`,alignEnd:`alignEnd-ClTg6L`,tab:`tab-FRO0Rd`,indicator:`indicator-a2Roef`,panel:`panel-dMpxFc`};iE.underlineFull,iE.underlineFit,iE.underlineNone,iE.alignStart,iE.alignCenter,iE.alignEnd,{...dm};var aE=e=>e.toastMetadata;X(e=>e.toasts),X(e=>e.toasts.length===0),X(aE,(e,t)=>e.get(t)?.value),X(aE,(e,t)=>e.get(t)?.domIndex??-1),X(aE,(e,t)=>e.get(t)?.offsetY??0),X(aE,(e,t)=>e.get(t)?.visibleIndex??-1),X(e=>e.hovering),X(e=>e.focused),X(e=>e.hovering||e.focused),X(e=>e.hovering||e.focused||!e.isWindowFocused),X(e=>e.prevFocusElement);var oE=r.createContext(void 0);function sE(e){let t=r.useContext(oE);if(t===void 0&&!e)throw Error(np(72));return t}var cE=r.createContext(void 0);function lE(){return r.useContext(cE)}var uE=r.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Ig,currentIdRef:{current:null},currentContextRef:{current:null}});function dE(e,t={open:!1}){let{open:n}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`floatingId`),{currentIdRef:o,delayRef:s,timeoutMs:c,initialDelayRef:l,currentContextRef:u,hasProvider:d,timeout:f}=r.useContext(uE),[p,m]=r.useState(!1);return J(()=>{function e(){m(!1),u.current?.setIsInstantPhase(!1),o.current=null,u.current=null,s.current=l.current}if(o.current&&!n&&o.current===a){if(m(!1),c){let t=a;return f.start(c,()=>{i.select(`open`)||o.current&&o.current!==t||e()}),()=>{f.clear()}}e()}},[n,a,o,s,c,l,u,f,i]),J(()=>{if(!n)return;let e=u.current,t=o.current;f.clear(),u.current={onOpenChange:i.setOpen,setIsInstantPhase:m},o.current=a,s.current={open:0,close:eS(l.current,`close`)},t!==null&&t!==a?(m(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Yp(`none`))):(m(!1),e?.setIsInstantPhase(!1))},[n,a,i,o,s,l,u,f]),J(()=>()=>{u.current=null},[u]),r.useMemo(()=>({hasProvider:d,delayRef:s,isInstantPhase:p}),[d,s,p])}var fE=function(e){return e[e.popupOpen=$h.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),pE=`data-base-ui-tooltip-trigger`;function mE(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(Cm(n))return n}}let t=e.target;return Cm(t)?t:null}function hE(e){let t=e;for(;t;){if(t.hasAttribute(pE))return t;let e=t.parentElement;if(e){t=e;continue}let n=t.getRootNode();t=`host`in n&&Cm(n.host)?n.host:null}return null}_g(function(e,t){let{render:n,className:i,style:a,handle:o,payload:s,disabled:c,delay:l,closeOnClick:u=!0,closeDelay:d,id:f,...p}=e,m=sE(!0),h=o?.store??m;if(!h)throw Error(np(82));let g=Wp(f),_=h.useState(`isTriggerActive`,g),v=h.useState(`isOpenedByTrigger`,g),y=h.useState(`floatingRootContext`),b=r.useRef(null),x=l??600,S=d??0,{registerTrigger:C,isMountedByThisTrigger:w}=m_(g,b,h,{payload:s,closeOnClick:u,closeDelay:S}),T=lE(),{delayRef:E,isInstantPhase:D,hasProvider:O}=dE(y,{open:v}),k=Qx(y);h.useSyncedValue(`isInstantPhase`,D);let A=h.useState(`disabled`),j=c??A,M=hm(j),N=h.useState(`trackCursorAxis`),P=h.useState(`disableHoverablePopup`),F=r.useRef(!1),I=Lg(),L=r.useRef(void 0);function ee(){let e=T?.delay,t=typeof E.current==`object`?E.current.open:void 0,n=x;return O&&(n=t===0?0:l??e??x),n}function R(e){let t=b.current;if(!t||!e)return!1;let n=hE(e);return n!==null&&n!==t&&Q(t,n)}function te(e){let t=R(e);return F.current=t,t&&(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1,I.clear()),t}let z=CC(y,{enabled:!j,mouseOnly:!0,move:!1,handleClose:P||N===`both`?null:jC(),restMs:ee,delay(){let e=typeof E.current==`object`?E.current.close:void 0,t=S;return d==null&&O&&(t=e),{close:t}},triggerElementRef:b,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`,shouldOpen(){return!F.current}}),B=JC(y,{enabled:!j}).reference,ne=e=>{let t=F.current,n=mE(e),r=te(n),i=b.current,a=i&&n&&Q(i,n);if(r&&h.select(`open`)&&h.select(`lastOpenChangeReason`)===`trigger-hover`)return void h.setOpen(!1,Yp(Zp,e));if(t&&!r&&a&&!M.current&&!h.select(`open`)&&i&&Vh(L.current)){let t=()=>{!F.current&&!M.current&&!h.select(`open`)&&h.setOpen(!0,Yp(Zp,e,i))},n=ee();n===0?(I.clear(),t()):I.start(n,t)}},re=h.useState(`triggerProps`,w);return Tp(`button`,e,{state:{open:v},ref:[t,C,b],props:[z,B,w||N!==`none`?re:void 0,{onMouseOver(e){ne(e.nativeEvent)},onFocus(e){R(mE(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){F.current=!1,I.clear(),L.current=void 0},onPointerEnter(e){L.current=e.pointerType},onPointerDown(e){L.current=e.pointerType,h.set(`closeOnClick`,u),u&&!h.select(`open`)&&h.cancelPendingOpen(e.nativeEvent)},onClick(e){u&&!h.select(`open`)&&h.cancelPendingOpen(e.nativeEvent)},id:g,[fE.triggerDisabled]:j?``:void 0,[pE]:j?void 0:``},p],stateAttributesMapping:ag})}),{...sg,...dm};function gE(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function _E(e){return e!=null&&e.clientX!=null}function vE(e,t={}){let{enabled:n=!0,axis:i=`both`}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),l=a.context.dataRef,u=r.useRef(!1),d=r.useRef(null),[f,p]=r.useState(),[m,h]=r.useState([]),g=Y(e=>{a.set(`positionReference`,e)}),_=Y((e,t,n)=>{u.current||(!l.current.openEvent||_E(l.current.openEvent))&&a.set(`positionReference`,gE(n??c,{x:e,y:t,axis:i,dataRef:l,pointerType:f}))}),v=Y(e=>{o?d.current||(_(e.clientX,e.clientY,e.currentTarget),h([])):_(e.clientX,e.clientY,e.currentTarget)}),y=Vh(f)?s:o;r.useEffect(()=>{if(!n)return void g(c);if(!y)return;function e(){d.current?.(),d.current=null}let t=bm(s);function r(t){let n=zg(t);Q(s,n)?e():_(t.clientX,t.clientY)}return!l.current.openEvent||_E(l.current.openEvent)?d.current=_m(t,`mousemove`,r):g(c),e},[y,n,s,l,c,a,_,g,m]),r.useEffect(()=>()=>{a.set(`positionReference`,null)},[a]),r.useEffect(()=>{n&&!s&&(u.current=!1)},[n,s]),r.useEffect(()=>{!n&&o&&(u.current=!0)},[n,o]);let b=r.useMemo(()=>{function e(e){p(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:v,onMouseEnter:v}},[v]);return r.useMemo(()=>n?{reference:b,trigger:b}:{},[n,b])}var yE={...Py,disabled:X(e=>e.disabled),instantType:X(e=>e.instantType),isInstantPhase:X(e=>e.isInstantPhase),trackCursorAxis:X(e=>e.trackCursorAxis),disableHoverablePopup:X(e=>e.disableHoverablePopup),lastOpenChangeReason:X(e=>e.openChangeReason),closeOnClick:X(e=>e.closeOnClick),closeDelay:X(e=>e.closeDelay),hasViewport:X(e=>e.hasViewport)},bE=class e extends Eg{constructor(e,t,n=!1){let i=new c_,a={...xE(),...e};a.floatingRootContext=Oy(i,t,n),super(a,{popupRef:r.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:i},yE)}setOpen=(e,t)=>{let n=t.reason,r=n===Zp,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),p_(r,e,t.trigger),this.update(r)};r?u.flushSync(o):o()};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Yp(Xp,e))}static useStore(t,n){return d_(t,(t,r)=>new e(n,t,r)).store}};function xE(){return{...Dy(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}gg(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:i,disableHoverablePopup:a=!1,trackCursorAxis:o=`none`,actionsRef:s,onOpenChange:u,onOpenChangeComplete:d,handle:f,triggerId:p,defaultTriggerId:m=null,children:h}=e,g=bE.useStore(f?.store,{open:n,openProp:i,activeTriggerId:m,triggerIdProp:p});v_(()=>{i===void 0&&!1===g.state.open&&!0===n&&g.update({open:!0,activeTriggerId:m})}),g.useControlledProp(`openProp`,i),g.useControlledProp(`triggerIdProp`,p),g.useContextCallback(`onOpenChange`,u),g.useContextCallback(`onOpenChangeComplete`,d);let _=g.useState(`open`),v=!t&&_,y=g.useState(`activeTriggerId`),b=g.useState(`mounted`),x=g.useState(`payload`);g.useSyncedValues({trackCursorAxis:o,disableHoverablePopup:a}),g.useSyncedValue(`disabled`,t),h_(g);let{forceUnmount:S,transitionStatus:C}=g_(v,g),w=g.useState(`isInstantPhase`),T=g.useState(`instantType`),E=g.useState(`lastOpenChangeReason`),D=r.useRef(null);J(()=>{_&&t&&g.setOpen(!1,Yp(am))},[_,t,g]),J(()=>{C===`ending`&&E===`none`||C!==`ending`&&w?(T!==`delay`&&(D.current=T),g.set(`instantType`,`delay`)):D.current!==null&&(g.set(`instantType`,D.current),D.current=null)},[C,w,E,T,g]),J(()=>{v&&(y??g.set(`payload`,void 0))},[g,y,v]);let O=r.useCallback(()=>{g.setOpen(!1,Yp(om))},[g]);r.useImperativeHandle(s,()=>({unmount:S,close:O}),[S,O]);let k=v||b||!t&&o!==`none`;return l(oE.Provider,{value:g,children:[k&&c(SE,{store:g,disabled:t,trackCursorAxis:o}),typeof h==`function`?h({payload:x}):h]})});function SE({store:e,disabled:t,trackCursorAxis:n}){let i=e.useState(`floatingRootContext`),a=s_(i,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),o=vE(i,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return __(e,{activeTriggerProps:r.useMemo(()=>dp(o.reference,a.reference),[o.reference,a.reference]),inactiveTriggerProps:r.useMemo(()=>dp(o.trigger,a.trigger),[o.trigger,a.trigger]),popupProps:r.useMemo(()=>dp(u_,o.floating,a.floating),[o.floating,a.floating])}),null}var CE={root:`_root_1b47m_1`,content:`_content_1b47m_9`,icon:`_icon_1b47m_15`,label:`_label_1b47m_22`,message:`_message_1b47m_27`},wE=`Event configuration does not provide data for this component`,TE=()=>l(`svg`,{className:CE.icon,viewBox:`0 0 40 40`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:[c(`circle`,{cx:`20`,cy:`20`,r:`18`,stroke:`currentColor`,strokeWidth:`1.5`}),c(`path`,{d:`M20 12v11`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`}),c(`circle`,{cx:`20`,cy:`28`,r:`1.5`,fill:`currentColor`})]}),EE=({id:e,className:t,componentName:n,message:r=wE})=>(Af(`MissingEventData`,`render`,{id:e,componentName:n}),c(`div`,{id:e,className:`${CE.root} ${t??``}`,role:`status`,"data-hook":`missing-event-data`,children:l(`div`,{className:CE.content,children:[c(TE,{}),c(Zh,{variant:`p3`,className:CE.label,children:n}),c(Zh,{variant:`p3`,className:CE.message,children:r})]})})),DE=`Something went wrong while rendering this component`,OE=class extends i{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){jf(this.props.componentName,e,{componentStack:t.componentStack})}render(){let{componentName:e,id:t,className:n,children:r,fallback:i}=this.props,{error:a}=this.state;return a?`fallback`in this.props?i:c(EE,{id:t,className:n,componentName:e,message:a.message||DE}):r}},kE=(e,t)=>{let n=n=>c(OE,{componentName:t,fallback:n.children,children:c(e,{...n})});return n.displayName=`WithProviderErrorBoundary(${t})`,n},AE=f({default:()=>jE}),jE={"events.demo.adult":`Adult`,"events.common.checkout":`Checkout`,"events.checkout.ticketTitle":`Ticket #{number} - {name}`,"events.seating.removeFromBasketLabel":`Remove {label} from basket`,"events.order.sentToBuyer":`{count, plural, one {The ticket is on the way to your email: {email}.} other {The tickets are on the way to your email: {email}.}}`,"events.registration.weCouldnTAddYouToTheWaitlistBecauseItS":`We couldn't add you to the waitlist because it's no longer available.`,"events.common.close":`Close`,"events.seating.chooseYourSeatOnTheMap":`Choose your seat on the map.`,"events.registration.nextTicket":`Next Ticket`,"events.checkout.seat":`Seat: {label}`,"events.seating.tablePrice":`Table reservation price: {price}`,"events.demo.child":`Child`,"events.registration.buyerDetails":`Add your details`,"events.membership.alreadyHaveAMembership":`Already have a membership?`,"events.seating.seatProperties":`Seat properties`,"events.demo.area":`Area 1`,"events.seating.selectPricingOptionFor":`Select pricing option for {label}`,"events.seating.quantityFor":`Quantity for {label}`,"events.dialogs.paymentsCannotBeUsedInPreviewModeToCompletePayment":`Payments cannot be used in Preview mode. To complete Payment, go to your live published site.`,"events.demo.priceOption":`Price option {number}`,"events.order.timeRemaining":`Time remaining: {time}`,"events.tickets.noTicketsAtTheMoment":`No tickets at the moment`,"events.tickets.saleEnds":`Sale ends`,"events.registration.couldNotFindThisCouponCode":`Could not find this coupon code.`,"events.tickets.taxAdded":`+{amount} {name}`,"events.checkout.addCoupon":`Add Coupon Code`,"events.seating.ticketDescription":`Ticket description`,"events.registration.guestLimitExceededPlacesAvailable":`Guest limit exceeded. {count} places available.`,"events.registration.thisCouponIsNotActiveYet":`This coupon is not active yet.`,"events.registration.seat":`Seat`,"events.seating.discount":`Discount`,"events.demo.rowLabel":`Row`,"events.membership.trial":`{prefix}{days} day free trial`,"events.seating.fromTo":`From {min} to {max}`,"events.tickets.showPrices":`{count, plural, one {Show # more price} other {Show # more prices}}`,"events.common.edit":`Edit`,"events.demo.aboutIntro":`Use this space to tell guests more about this event, e.g., event schedule, speakers, important info & more. To customize this text head to Manage Event > Event Details.`,"events.checkout.chooseMembership":`Choose membership`,"events.membership.membershipDiscountHasBeenUsedUp":`Membership discount has been used up`,"events.registration.enterTheCode":`Enter the code`,"events.donation.writeAPriceAbove":`Write a price above {minimum}`,"events.common.total":`Total`,"events.seating.selectAPriceOption":`Select a price option`,"events.registration.google":`Google`,"events.dialogs.addToAppleWallet":`Add To Apple Wallet`,"events.ribbon.demo":`Ribbon`,"events.membership.hideMembershipOffers":`Hide membership offers`,"events.seating.pickASeatToProceedToTheCheckout":`Pick a seat to proceed to the checkout.`,"events.membership.untilCanceled":`Valid until canceled`,"events.tickets.optionQuantity":`Quantity for {name} – {option}`,"events.registration.giftCard":`Gift card`,"events.registration.remove":`Remove`,"events.registration.iAgreeTo":`I agree to:`,"events.tickets.thereIsALimitOfTicketsPerOrder":`There is a limit of {orderLimit} tickets per order`,"events.seating.payWhatYouWant":`Pay What You Want`,"events.dialogs.checkoutUnavailable":`Checkout unavailable`,"events.common.cancel":`Cancel`,"events.membership.getAMembership":`Get a membership`,"events.order.number":`Order No. {number}`,"events.registration.ticketServiceFee":`Ticket service fee`,"events.order.sentToGuests":`{count, plural, one {The ticket is on the way to the guest and to your email: {email}.} other {The tickets are on the way to the guests and to your email: {email}.}}`,"events.registration.thisFieldIsRequired":`This field is required`,"events.common.quantity":`Quantity`,"events.tickets.thisEventDoesnTHaveTicketsAvailableCheckAgainLater":`This event doesn't have tickets available. Check again later`,"events.seating.companion":`Companion`,"events.checkout.couponCode":`Add coupon code`,"events.membership.noMembership":`No membership`,"events.membership.logIn":`Log In`,"events.registration.price":`Price:`,"events.membership.cycle.day":`{count, plural, one {Every day} other {Every # days}}`,"events.common.unableToLoadTheFormPleaseRefreshThePage":`Unable to load the form. Please refresh the page.`,"events.tickets.soldOut":`Sold Out`,"events.seating.tableFree":`Table reservation price: Free`,"events.demo.buyerEmail":`email@example.com`,"events.common.free":`Free`,"events.membership.hideDetails":`Hide Details`,"events.registration.thereSATechnicalIssueOnOurSidePleaseRefreshThe":`There's a technical issue on our side. Please refresh the page and try again.`,"events.demo.registrationMessages":`Registration Messages`,"events.membership.duration.day":`{count, plural, one {Valid for one day} other {Valid for # days}}`,"events.checkout.row":`Row: {label}`,"events.seating.removeFromBasket":`Remove from Basket`,"events.membership.duration.month":`{count, plural, one {Valid for one month} other {Valid for # months}}`,"events.registration.thisGiftCardWasDisabled":`This gift card was disabled.`,"events.reservation.pleaseTryAgainInAMoment":`Please try again in a moment.`,"events.order.allSet":`You're all set for {title}.`,"events.tickets.thisEventIsSoldOut":`This event is sold out`,"events.order.addToCalendar":`Add to Calendar`,"events.tickets.pickTicketsToProceedToTheCheckout":`Pick tickets to proceed to the checkout.`,"events.registration.thisGiftCardHasExpired":`This gift card has expired.`,"events.seating.update":`Update`,"events.dialogs.downloadPdf":`Download PDF`,"events.registration.membership":`Membership (-{percent}%)`,"events.tickets.taxIncluded":`+{name} included`,"events.donation.minimumDonationIs":`Minimum donation is {minimum}`,"events.registration.looksLikeThisPageHasExpired":`Looks like this page has expired`,"events.tickets.quantityFor":`Quantity for {name}`,"events.order.thankYou":`Thank you, {name}`,"events.tickets.additionalFeesApply":`+Additional fees apply`,"events.seating.someSeatsAtThisTableHaveSpecialProperties":`Some seats at this table have special properties.`,"events.seating.continueToPricingOptionsFor":`Continue to pricing options for {label}`,"events.seating.whenYouVeChosenYourTicketsTheyWillAppearHere":`When you've chosen your tickets, they will appear here.`,"events.reservation.tryAgain":`Try again`,"events.tickets.plusAdditionalFees":`+additional fees apply`,"events.checkout.area":`Area: {label}`,"events.demo.membership":`Membership {number}`,"events.reservation.somethingWentWrong":`Something went wrong`,"events.tickets.payWhatYouWant":`Pay what you want`,"events.checkout.addGiftCard":`Add Gift Card`,"events.registration.coupon":`Coupon`,"events.tickets.moreInfo":`More info`,"events.demo.table":`Table 1`,"events.seating.tablePriceRange":`Table reservation price: from {min} to {max}`,"events.common.price":`Price`,"events.seating.goesOnSale":`Goes on sale {date}`,"events.demo.longLocation":`Address`,"events.registration.outlook":`Outlook`,"events.order.confirmationSent":`A confirmation email has been sent to: {email}.`,"events.reservation.selectedSeatsAreNoLongerAvailable":`Selected seats are no longer available`,"events.seating.seat":`Seat {label}`,"events.registration.yourOrderDidnTGoThroughGoBackToThe":`Your order didn't go through. Go back to the event and try again.`,"events.ribbon.multipleDates":`Multiple Dates`,"events.tickets.goesOnSale":`Goes on sale`,"events.common.subtotal":`Subtotal`,"events.ribbon.membershipOffer":`Membership Offer`,"events.registration.thisOptionIsNoLongerAvailableBecauseTheEventSRegistration":`This option is no longer available because the event's registration settings have changed. Please refresh the page and try again.`,"events.checkout.table":`Table: {label}`,"events.membership.cycle.month":`{count, plural, one {Every month} other {Every # months}}`,"events.demo.section":`Section A`,"events.demo.aboutBody":`This is a paragraph about your event. You can tell guests about the event history, background, types of participants and more. This is a great place to give guests plenty of additional information to get them excited to register. To customize this text head to Manage Event > Event Details.`,"events.tickets.ticketServiceFee":`+ Ticket service fee`,"events.reservation.youCanBuyUpToTicketsPerOrderRemoveSomeTo":`You can buy up to {orderLimit} tickets per order. Remove some to add new ones.`,"events.registration.registrationHasClosedCheckOutOtherEvents":`Registration has closed. Check out other events.`,"events.membership.showDetails":`Show Details`,"events.common.moreInfo":`More Info`,"events.checkout.section":`Section: {label}`,"events.membership.cycle.week":`{count, plural, one {Every week} other {Every # weeks}}`,"events.registration.pleaseIndicateThatYouVeReadAndAgreeToThe":`Please indicate that you've read and agree to the event's policies.`,"events.registration.weCouldnTFindThisGiftCardCheckTheCodeAnd":`We couldn't find this gift card. Check the code and try again.`,"events.registration.preparingOrder":`Preparing order`,"events.seating.addToBasketMessage":`Add {label} to basket`,"events.demo.seat":`Seat 1`,"events.seating.selectTickets":`Select tickets`,"events.registration.youHaveAlreadyRegistered":`You have already registered.`,"events.registration.continue":`Continue`,"events.seating.moreInfoAbout":`More info about {label}`,"events.demo.shortLocation":`Location name`,"events.membership.membershipOffers":`Membership Offers`,"events.seating.obstructed":`Obstructed view`,"events.demo.ticketDescription":`Use this space to add details about this ticket, e.g., includes a backstage pass and free drinks.`,"events.registration.ical":`iCal`,"events.registration.table":`Table`,"events.registration.policies":`Event policies`,"events.registration.thereWasATechnicalProblemAndWeCouldnTFindThis":`There was a technical problem and we couldn't find this coupon code. Try submitting it again or enter a different coupon code.`,"events.dialogs.addToAppleWalletLabel":`Add to Apple Wallet`,"events.checkout.redeemGiftCard":`Redeem a gift card`,"events.recurringDates.showMore":`Show more dates`,"events.registration.row":`Row`,"events.seating.basket":`Basket`,"events.seating.unnamedTable":`Table {id}`,"events.membership.active":`Your membership is now active. Use it to get discounts on event tickets.`,"events.order.processing":`{count, plural, one {Your order is being processed. When it's confirmed you will receive an email with your ticket.} other {Your order is being processed. When it's confirmed you will receive an email with your tickets.}}`,"events.reservation.ok":`OK`,"events.seating.addToBasket":`Add to basket`,"events.order.preparingTickets":`{count, plural, one {Preparing Ticket} other {Preparing Tickets}}`,"events.membership.duration.year":`{count, plural, one {Valid for one year} other {Valid for # years}}`,"events.seating.serviceFee":`Service fee`,"events.demo.row":`Row 1`,"events.demo.areaLabel":`Area`,"events.registration.chooseMembership":`Choose membership`,"events.tickets.lessInfo":`Less info`,"events.membership.purchased":`Purchased`,"events.ribbon.soldOut":`Sold Out`,"events.order.downloadTickets":`{count, plural, one {Download Ticket} other {Download Tickets}}`,"events.registration.paymentCanceled":`Payment Canceled`,"events.registration.section":`Section`,"events.registration.ticketType":`Ticket type`,"events.membership.benefit":`{count, plural, one {{percent}% off for # ticket} other {{percent}% off for # tickets}}`,"events.registration.qty":`Qty:`,"events.demo.dateAndTimeTbdMessage":`Date and Time TBD Message`,"events.recurringDates.showLess":`Show less dates`,"events.registration.sameAsBuyerDetails":`Same as buyer details`,"events.membership.duration.week":`{count, plural, one {Valid for one week} other {Valid for # weeks}}`,"events.membership.showMembershipOffers":`Show membership offers`,"events.list.allEvents":`All Events`,"events.event.registrationNotRequired":`No registration required`,"events.tickets.hidePrices":`{count, plural, one {Hide # price} other {Hide # prices}}`,"events.common.ok":`OK`,"events.common.back":`Back`,"events.registration.thisCouponHasAlreadyBeenUsed":`This coupon has already been used.`,"events.donation.enterADonationAmount":`Enter a donation amount`,"events.seating.seatNumber":`Seat {number}`,"events.seating.ticketCount":`{count, plural, one {# ticket} other {# tickets}}`,"events.dialogs.download":`Download`,"events.seating.saleEnds":`Sale ends {date}`,"events.registration.placeOrder":`Place Order`,"events.button.details":`Details`,"events.registration.thisCouponHasExpired":`This coupon has expired.`,"events.reservation.oneOfTheTicketsYouSelectedIsNoLongerAvailable":`One of the tickets you selected is no longer available`,"events.seating.accessible":`Accessible`,"events.button.buyTickets":`Buy Tickets`,"events.common.continue":`Continue`,"events.registration.thisGiftCardBalanceIs0":`This gift card balance is 0.`,"events.registration.payment":`Payment`,"events.demo.ticketName":`Ticket name`,"events.demo.eventTitle":`Event name`,"events.dialogs.checkoutIsUnavailableAtTheMomentPleaseContactUsFor":`Checkout is unavailable at the moment. Please contact us for more information.`,"events.reservation.dismiss":`Dismiss`,"events.reservation.someoneElseJustReservedOneOrMoreOfYourSeatsWe":`Someone else just reserved one or more of your seats. We'll refresh the seating plan so you can pick again.`,"events.demo.buyerName":`Guest`,"events.donation.writeAPrice":`Write a price`,"events.membership.buyAMembershipAndGetUpToOffThisEventAt":`Buy a membership and get up to {percent}% off this event at checkout`,"events.registration.thereSATechnicalIssueOnOurSidePleaseTryAgain":`There's a technical issue on our side. Please try again.`,"events.ribbon.joinWaitlist":`Join Waitlist`,"events.dialogs.timeSUpToBuyTheseTicketsRefreshYourPage":`Time's Up. To buy these tickets, refresh your page.`,"events.registration.ticketDetails":`Tickets details`,"events.membership.thankYou":`Thank you!`,"events.tickets.saleEnded":`Sale ended`,"events.seating.viewBasket":`View Basket`,"events.button.rsvp":`RSVP`,"events.reservation.someTicketsAreNoLongerAvailable":`Some tickets are no longer available`,"events.seating.basketCount":`Basket ({count})`,"events.registration.area":`Area`,"events.seating.wheelchair":`Wheelchair accessible`,"events.seating.seatQty":`Seat Qty`,"events.seating.zoomOut":`Zoom out`,"events.tickets.feeAmount":`+{amount} ticket service fee`,"events.registration.seatInfo":`Seat info`,"events.reservation.ticketLimitReached":`Ticket limit reached`,"events.event.registrationOpens":`Registration opens {date}`,"events.recurringDates.otherDates":`Other dates`,"events.common.backToSite":`Back to site`,"events.common.backToEvent":`Back to Event`,"events.reservation.somethingWentWrongPleaseTryAgain":`Something went wrong. Please try again.`,"events.order.date":`Placed on: {date}`,"events.ribbon.rsvpClosed":`RSVP Closed`,"events.registration.apply":`Apply`,"events.seating.youCanBuyUpToTicketsPerOrderRemoveSome":`You can buy up to {orderLimit} tickets per order. Remove some to add new ones.`,"events.demo.eventTeaser":`This is a great place to get your guests excited by telling them a little more about this event.`,"events.membership.cycle.year":`{count, plural, one {Every year} other {Every # years}}`,"events.seating.zoomIn":`Zoom in`},ME=()=>{let e=new Map;return{getOrInsert:(t,n)=>(e.has(t)||e.set(t,n().finally(()=>{e.delete(t)})),e.get(t))}},NE=async e=>{try{let{default:t}=await e();return t}catch{return}},PE=({isDev:e,loadMessages:t,loadDevMessages:n})=>{let r=ME(),i=async r=>{let[i,a]=await Promise.all([NE(()=>t(r)),!e||!n?void 0:NE(()=>n(r))]);if(i&&a)return{...i,...a};if(i)return i;if(a)return a;throw Error(`No translation files found for ${r}`)};return e=>r.getOrInsert(e,()=>i(e))},FE=e=>typeof e==`string`,IE=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},LE=e=>e==null?``:String(e),RE=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},zE=/###/g,BE=e=>e&&e.includes(`###`)?e.replace(zE,`.`):e,VE=e=>!e||FE(e),HE=(e,t,n)=>{let r=FE(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(VE(e))return{};let t=BE(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return VE(e)?{}:{obj:e,k:BE(r[i])}},UE=(e,t,n)=>{let{obj:r,k:i}=HE(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=HE(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=HE(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},WE=(e,t,n,r)=>{let{obj:i,k:a}=HE(e,t,Object);i[a]=i[a]||[],i[a].push(n)},GE=(e,t)=>{let{obj:n,k:r}=HE(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},KE=(e,t,n)=>{let r=GE(e,n);return r===void 0?GE(t,n):r},qE=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(Object.prototype.hasOwnProperty.call(e,r)?FE(e[r])||e[r]instanceof String||FE(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):qE(e[r],t[r],n):e[r]=t[r]);return e},JE=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),YE={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},XE=e=>FE(e)?e.replace(/[&<>"'\/]/g,e=>YE[e]):e,ZE=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},QE=[` `,`,`,`?`,`!`,`;`],$E=new ZE(20),eD=(e,t,n)=>{t||=``,n||=``;let r=QE.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=$E.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},tD=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},nD=e=>e?.replace(/_/g,`-`),rD={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},iD=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||rD,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>FE(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),FE(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},aD=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},oD=new WeakSet,sD=class extends aD{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):FE(n)&&i?o.push(...n.split(i)):o.push(n)));let s=GE(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!FE(n)?s:tD(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),UE(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(FE(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=GE(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?qE(s,n,i):s={...s,...n},UE(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>{let n=t[e];return oD.has(n)?!0:!n||Object.keys(n).length===0?!1:(typeof n==`object`&&oD.add(n),!0)})}toJSON(){return this.data}},cD={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},lD=Symbol(`i18next/PATH_KEY`);function uD(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===lD?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function dD(e,t){let{[lD]:n}=e(uD()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var fD=e=>!FE(e)&&typeof e!=`boolean`&&typeof e!=`number`,pD=class e extends aD{constructor(e,t={}){super(),RE([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=iD.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=fD(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!eD(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:FE(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:FE(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=dD(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?dD(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!FE(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=fD(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&!_.includes(O)&&!(FE(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;t[e]=x&&!m?this.translate(r,{...i,defaultValue:fD(T)?T[e]:void 0,joinArrays:!1,ns:c}):this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&FE(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.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 e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=FE(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!FE(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=FE(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=cD.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return FE(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?dD(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!FE(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(FE(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" 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!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!FE(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},mD=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=iD.create(`languageUtils`),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(e=nD(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=nD(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(FE(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(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.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),FE(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.options.fallbackLng,r=Array.isArray(n)?n.join(`|`):n;r!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=r);let i=t===void 0||t===!1||FE(t),a=t===void 0&&typeof this.options.fallbackLng==`function`,o=FE(e)&&i&&!a,s=null;if(o){let n;n=t===void 0?`undefined`:t===!1?`boolean:false`:`string:${t}`,s=`${e.length}:${e}|${n}`}if(s!==null){let e=this.resolveHierarchyCache[s];if(e!==void 0)return e.slice()}let c=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),l=[],u=e=>{e&&(this.isSupportedCode(e)?l.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return FE(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&u(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&u(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&u(this.getLanguagePartFromCode(e))):FE(e)&&u(this.formatLanguageCode(e)),c.forEach(e=>{l.includes(e)||u(this.formatLanguageCode(e))}),s===null?l:(this.resolveHierarchyCache[s]=l,l.slice())}},hD={zero:0,one:1,two:2,few:3,many:4,other:5},gD={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},_D=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=iD.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=nD(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),gD;if(!e.match(/-|_/))return gD;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>hD[e]-hD[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},vD=(e,t,n,r=`.`,i=!0)=>{let a=KE(e,t,n);return!a&&i&&FE(n)&&(a=tD(e,n,r),a===void 0&&(a=tD(t,n,r))),a},yD=e=>e.replace(/\$/g,`$$$$`),bD=class{constructor(e={}){this.logger=iD.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?XE:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?JE(i):a||`{{`,this.suffix=o?JE(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?JE(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?JE(l):``,this.nestingPrefix=d?JE(d):f||JE(`$t(`),this.nestingSuffix=p?JE(p):m||JE(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`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,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=vD(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(vD(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0){if(typeof l==`function`){let t=l(e,i,r);a=FE(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``}else!FE(a)&&!this.useRawValueToEscape&&(a=LE(a));let s=t.safeValue(a);if(e=e.replace(i[0],yD(s)),u?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${JE(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e},s=new RegExp(this.nestingRegexp),c=``,l=0;for(;r=s.exec(e);){let u=[];a={...n},a=a.replace&&!FE(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let d=/{.*}/s.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(d!==-1&&(u=r[1].slice(d).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,d)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!FE(i))return i;FE(i)||(i=LE(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),u.length&&(i=u.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),c+=e.slice(l,r.index)+LE(i),l=s.lastIndex,this.regexp.lastIndex=0}return l?c+e.slice(l):e}},xD=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},SD=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(nD(r),i),t[o]=s),s(n)}},CD=e=>(t,n,r)=>e(nD(n),r)(t),wD=class{constructor(e={}){this.logger=iD.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?SD:CD;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=SD(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator),a=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf(`(`)>-1&&!t.includes(`)`)&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;a.push(t)}return a.reduce((e,t)=>{let{formatName:i,formatOptions:a}=xD(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}},TD=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},ED=class extends aD{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=iD.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{WE(n.loaded,[i],a),TD(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}o&&s&&r<this.maxRetries?setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i):a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2)try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}else return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();FE(e)&&(e=this.languageUtils.toResolveHierarchy(e)),FE(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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!!!`);else if(n!=null&&n!==``){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}},DD=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,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:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),FE(e[1])&&(t.defaultValue=e[1]),FE(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),OD=e=>(FE(e.ns)&&(e.ns=[e.ns]),FE(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),FE(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),kD=()=>{},AD=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},jD=class e extends aD{constructor(e={},t){if(super(),this.options=OD(e),this.services={},this.logger=iD,this.modules={external:[]},AD(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(FE(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=DD();this.options={...n,...this.options,...OD(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?iD.init(r(this.modules.logger),this.options):iD.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:wD;let t=new mD(this.options);this.store=new sD(this.options.resources,this.options);let n=this.services;n.logger=iD,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new _D(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new bD(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new ED(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new pD(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=kD,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[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(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=IE(),a=()=>{let e=(e,n)=>{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),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=kD){let n=t,r=FE(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=IE();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=kD,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw 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`&&cD.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`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=IE();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=FE(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(FE(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=dD(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=dD(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=dD(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return FE(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){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;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}if(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages)return!0;let{languageUtils:o}=this.services,s=t.lng?o.isSupportedCode(n)&&o.toResolveHierarchy(n,!1)[0]:n;return!(s&&!a(s,e)||r&&!a(i,e))}loadNamespaces(e,t){let n=IE();return this.options.ns?(FE(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=IE();FE(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`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`.split(`.`),n=this.services?.languageUtils||new mD(DD());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=kD){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new sD(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...DD().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new bD(n)}return a.translator=new pD(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();jD.createInstance,jD.dir,jD.init,jD.loadResources,jD.reloadResources,jD.use,jD.changeLanguage,jD.getFixedT,jD.t,jD.exists,jD.setDefaultNamespace,jD.hasLoadedNamespace,jD.loadNamespaces,jD.loadLanguages;var MD=({locale:e,asyncMessagesLoader:t,messages:n,useSuspense:r=!1,disableAutoInit:i=!1,bindI18n:a},{icu:o}={})=>{let s={lng:e,fallbackLng:`en`,keySeparator:!1,react:{useSuspense:r,bindI18n:a},_polyfill:{isLoading:!1}},c=jD.createInstance(i?s:void 0);return o&&c.use(o),t&&c.use({type:`backend`,read:async(e,n,r)=>{try{return r(null,await t(e))}catch(e){return r(e,null)}}}),n&&(s.resources={[e]:{translation:n}}),i||c.init(s),c},ND=[`__proto__`,`constructor`,`prototype`];function PD(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}function i(){return!e||typeof e==`string`}for(var a=typeof t==`string`?t.split(`.`):[].concat(t);a.length>1;){if(i())return{};var o=r(a.shift());if(ND.indexOf(o)>-1)return{};!e[o]&&n&&(e[o]=new n),e=e[o]}if(i())return{};var s=r(a.shift());return ND.indexOf(s)>-1?{}:{obj:e,k:s}}function FD(e,t,n){var r=PD(e,t,Object),i=r.obj,a=r.k;i!==void 0&&(i[a]=n)}function ID(e,t){var n=PD(e,t),r=n.obj,i=n.k;if(r)return r[i]}var LD=[],RD=LD.forEach,zD=LD.slice;function BD(e){return RD.call(zD.call(arguments,1),function(t){if(t)for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];ND.indexOf(i)>-1||e[i]===void 0&&(e[i]=t[i])}}),e}function VD(e,t){let n=t&&t.cache?t.cache:ZD,r=t&&t.serializer?t.serializer:YD;return(t&&t.strategy?t.strategy:KD)(e,{cache:n,serializer:r})}function HD(e){return e==null||typeof e==`number`||typeof e==`boolean`}function UD(e,t,n,r){let i=HD(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function WD(e,t,n){let r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}function GD(e,t,n,r,i){return n.bind(t,e,r,i)}function KD(e,t){let n=e.length===1?UD:WD;return GD(e,this,n,t.cache.create(),t.serializer)}function qD(e,t){return GD(e,this,WD,t.cache.create(),t.serializer)}function JD(e,t){return GD(e,this,UD,t.cache.create(),t.serializer)}var YD=function(){return JSON.stringify(arguments)},XD=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}},ZD={create:function(){return new XD}},QD={variadic:qD,monadic:JD},$D=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function eO(e){let t={};return e.replace($D,e=>{let n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}var tO=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function nO(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);let t=e.split(tO).filter(e=>e.length>0),n=[];for(let e of t){let t=e.split(`/`);if(t.length===0)throw Error(`Invalid number skeleton`);let[r,...i]=t;for(let e of i)if(e.length===0)throw Error(`Invalid number skeleton`);n.push({stem:r,options:i})}return n}function rO(e){return e.replace(/^(.*?)-/,``)}var iO=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,aO=/^(@+)?(\+|#+)?[rs]?$/g,oO=/(\*)(0+)|(#+)(0+)|(0+)/g,sO=/^(0+)$/;function cO(e){let t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(aO,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function lO(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:case`()`:return{currencySign:`accounting`};case`sign-always`:case`+!`:return{signDisplay:`always`};case`sign-accounting-always`:case`()!`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:case`+?`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:case`()?`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:case`+_`:return{signDisplay:`never`}}}function uO(e){let t;if(e[0]===`E`&&e[1]===`E`?(t={notation:`engineering`},e=e.slice(2)):e[0]===`E`&&(t={notation:`scientific`},e=e.slice(1)),t){let n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!sO.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function dO(e){return lO(e)||{}}function fO(e){let t={};for(let n of e){switch(n.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=n.options[0];continue;case`group-off`:case`,_`:t.useGrouping=!1;continue;case`precision-integer`:case`.`:t.maximumFractionDigits=0;continue;case`measure-unit`:case`unit`:t.style=`unit`,t.unit=rO(n.options[0]);continue;case`compact-short`:case`K`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:case`KK`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t={...t,notation:`scientific`,...n.options.reduce((e,t)=>({...e,...dO(t)}),{})};continue;case`engineering`:t={...t,notation:`engineering`,...n.options.reduce((e,t)=>({...e,...dO(t)}),{})};continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue;case`scale`:t.scale=parseFloat(n.options[0]);continue;case`rounding-mode-floor`:t.roundingMode=`floor`;continue;case`rounding-mode-ceiling`:t.roundingMode=`ceil`;continue;case`rounding-mode-down`:t.roundingMode=`trunc`;continue;case`rounding-mode-up`:t.roundingMode=`expand`;continue;case`rounding-mode-half-even`:t.roundingMode=`halfEven`;continue;case`rounding-mode-half-down`:t.roundingMode=`halfTrunc`;continue;case`rounding-mode-half-up`:t.roundingMode=`halfExpand`;continue;case`integer-width`:if(n.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);n.options[0].replace(oO,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(sO.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(iO.test(n.stem)){if(n.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);n.stem.replace(iO,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});let e=n.options[0];e===`w`?t={...t,trailingZeroDisplay:`stripIfInteger`}:e&&(t={...t,...cO(e)});continue}if(aO.test(n.stem)){t={...t,...cO(n.stem)};continue}let e=lO(n.stem);e&&(t={...t,...e});let r=uO(n.stem);r&&(t={...t,...r})}return t}var pO=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`,e}({});function mO(e){return e.type===0}function hO(e){return e.type===1}function gO(e){return e.type===2}function _O(e){return e.type===3}function vO(e){return e.type===4}function yO(e){return e.type===5}function bO(e){return e.type===6}function xO(e){return e.type===7}function SO(e){return e.type===8}function CO(e){return!!(e&&typeof e==`object`&&e.type===0)}function wO(e){return!!(e&&typeof e==`object`&&e.type===1)}var TO=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,EO={"001":[`H`,`h`],419:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AD:[`H`,`hB`],AE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AI:[`H`,`h`,`hb`,`hB`],AL:[`h`,`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AR:[`h`,`H`,`hB`,`hb`],AS:[`h`,`H`],AT:[`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],AW:[`H`,`hB`],AX:[`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BB:[`h`,`hb`,`H`,`hB`],BD:[`h`,`hB`,`H`],BE:[`H`,`hB`],BF:[`H`,`hB`],BG:[`H`,`hB`,`h`],BH:[`h`,`hB`,`hb`,`H`],BI:[`H`,`h`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BN:[`hb`,`hB`,`h`,`H`],BO:[`h`,`H`,`hB`,`hb`],BQ:[`H`],BR:[`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],BT:[`h`,`H`],BW:[`H`,`h`,`hb`,`hB`],BY:[`H`,`h`],BZ:[`H`,`h`,`hb`,`hB`],CA:[`h`,`hb`,`H`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CD:[`hB`,`H`],CF:[`H`,`h`,`hB`],CG:[`H`,`hB`],CH:[`H`,`hB`,`h`],CI:[`H`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CL:[`h`,`H`,`hB`,`hb`],CM:[`H`,`h`,`hB`],CN:[`H`,`hB`,`hb`,`h`],CO:[`h`,`H`,`hB`,`hb`],CP:[`H`],CR:[`h`,`H`,`hB`,`hb`],CU:[`h`,`H`,`hB`,`hb`],CV:[`H`,`hB`],CW:[`H`,`hB`],CX:[`H`,`h`,`hb`,`hB`],CY:[`h`,`H`,`hb`,`hB`],CZ:[`H`],DE:[`H`,`hB`],DG:[`H`,`h`,`hb`,`hB`],DJ:[`h`,`H`],DK:[`H`],DM:[`h`,`hb`,`H`,`hB`],DO:[`h`,`H`,`hB`,`hb`],DZ:[`h`,`hB`,`hb`,`H`],EA:[`H`,`h`,`hB`,`hb`],EC:[`h`,`H`,`hB`,`hb`],EE:[`H`,`hB`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],ER:[`h`,`H`],ES:[`H`,`hB`,`h`,`hb`],ET:[`hB`,`hb`,`h`,`H`],FI:[`H`],FJ:[`h`,`hb`,`H`,`hB`],FK:[`H`,`h`,`hb`,`hB`],FM:[`h`,`hb`,`H`,`hB`],FO:[`H`,`h`],FR:[`H`,`hB`],GA:[`H`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GE:[`H`,`hB`,`h`],GF:[`H`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GH:[`h`,`H`],GI:[`H`,`h`,`hb`,`hB`],GL:[`H`,`h`],GM:[`h`,`hb`,`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GQ:[`H`,`hB`,`h`,`hb`],GR:[`h`,`H`,`hb`,`hB`],GS:[`H`,`h`,`hb`,`hB`],GT:[`h`,`H`,`hB`,`hb`],GU:[`h`,`hb`,`H`,`hB`],GW:[`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],HK:[`h`,`hB`,`hb`,`H`],HN:[`h`,`H`,`hB`,`hb`],HR:[`H`,`hB`],HU:[`H`,`h`],IC:[`H`,`h`,`hB`,`hb`],ID:[`H`],IE:[`H`,`h`,`hb`,`hB`],IL:[`H`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IN:[`h`,`H`],IO:[`H`,`h`,`hb`,`hB`],IQ:[`h`,`hB`,`hb`,`H`],IR:[`hB`,`H`],IS:[`H`],IT:[`H`,`hB`],JE:[`H`,`h`,`hb`,`hB`],JM:[`h`,`hb`,`H`,`hB`],JO:[`h`,`hB`,`hb`,`H`],JP:[`H`,`K`,`h`],KE:[`hB`,`hb`,`H`,`h`],KG:[`H`,`h`,`hB`,`hb`],KH:[`hB`,`h`,`H`,`hb`],KI:[`h`,`hb`,`H`,`hB`],KM:[`H`,`h`,`hB`,`hb`],KN:[`h`,`hb`,`H`,`hB`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],KW:[`h`,`hB`,`hb`,`H`],KY:[`h`,`hb`,`H`,`hB`],KZ:[`H`,`hB`],LA:[`H`,`hb`,`hB`,`h`],LB:[`h`,`hB`,`hb`,`H`],LC:[`h`,`hb`,`H`,`hB`],LI:[`H`,`hB`,`h`],LK:[`H`,`h`,`hB`,`hb`],LR:[`h`,`hb`,`H`,`hB`],LS:[`h`,`H`],LT:[`H`,`h`,`hb`,`hB`],LU:[`H`,`h`,`hB`],LV:[`H`,`hB`,`hb`,`h`],LY:[`h`,`hB`,`hb`,`H`],MA:[`H`,`h`,`hB`,`hb`],MC:[`H`,`hB`],MD:[`H`,`hB`],ME:[`H`,`hB`,`h`],MF:[`H`,`hB`],MG:[`H`,`h`],MH:[`h`,`hb`,`H`,`hB`],MK:[`H`,`h`,`hb`,`hB`],ML:[`H`],MM:[`hB`,`hb`,`H`,`h`],MN:[`H`,`h`,`hb`,`hB`],MO:[`h`,`hB`,`hb`,`H`],MP:[`h`,`hb`,`H`,`hB`],MQ:[`H`,`hB`],MR:[`h`,`hB`,`hb`,`H`],MS:[`H`,`h`,`hb`,`hB`],MT:[`H`,`h`],MU:[`H`,`h`],MV:[`H`,`h`],MW:[`h`,`hb`,`H`,`hB`],MX:[`h`,`H`,`hB`,`hb`],MY:[`hb`,`hB`,`h`,`H`],MZ:[`H`,`hB`],NA:[`h`,`H`,`hB`,`hb`],NC:[`H`,`hB`],NE:[`H`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NI:[`h`,`H`,`hB`,`hb`],NL:[`H`,`hB`],NO:[`H`,`h`],NP:[`H`,`h`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],OM:[`h`,`hB`,`hb`,`H`],PA:[`h`,`H`,`hB`,`hb`],PE:[`h`,`H`,`hB`,`hb`],PF:[`H`,`h`,`hB`],PG:[`h`,`H`],PH:[`h`,`hB`,`hb`,`H`],PK:[`h`,`hB`,`H`],PL:[`H`,`h`],PM:[`H`,`hB`],PN:[`H`,`h`,`hb`,`hB`],PR:[`h`,`H`,`hB`,`hb`],PS:[`h`,`hB`,`hb`,`H`],PT:[`H`,`hB`],PW:[`h`,`H`],PY:[`h`,`H`,`hB`,`hb`],QA:[`h`,`hB`,`hb`,`H`],RE:[`H`,`hB`],RO:[`H`,`hB`],RS:[`H`,`hB`,`h`],RU:[`H`],RW:[`H`,`h`],SA:[`h`,`hB`,`hb`,`H`],SB:[`h`,`hb`,`H`,`hB`],SC:[`H`,`h`,`hB`],SD:[`h`,`hB`,`hb`,`H`],SE:[`H`],SG:[`h`,`hb`,`H`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SI:[`H`,`hB`],SJ:[`H`],SK:[`H`],SL:[`h`,`hb`,`H`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],SO:[`h`,`H`],SR:[`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],ST:[`H`,`hB`],SV:[`h`,`H`,`hB`,`hb`],SX:[`H`,`h`,`hb`,`hB`],SY:[`h`,`hB`,`hb`,`H`],SZ:[`h`,`hb`,`H`,`hB`],TA:[`H`,`h`,`hb`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TD:[`h`,`H`,`hB`],TF:[`H`,`h`,`hB`],TG:[`H`,`hB`],TH:[`H`,`h`],TJ:[`H`,`h`],TL:[`H`,`hB`,`hb`,`h`],TM:[`H`,`h`],TN:[`h`,`hB`,`hb`,`H`],TO:[`h`,`H`],TR:[`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],TW:[`hB`,`hb`,`h`,`H`],TZ:[`hB`,`hb`,`H`,`h`],UA:[`H`,`hB`,`h`],UG:[`hB`,`hb`,`H`,`h`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],UY:[`h`,`H`,`hB`,`hb`],UZ:[`H`,`hB`,`h`],VA:[`H`,`h`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VE:[`h`,`H`,`hB`,`hb`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],VN:[`H`,`h`],VU:[`h`,`H`],WF:[`H`,`hB`],WS:[`h`,`H`],XK:[`H`,`hB`,`h`],YE:[`h`,`hB`,`hb`,`H`],YT:[`H`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],ZW:[`H`,`h`],"af-ZA":[`H`,`h`,`hB`,`hb`],"ar-001":[`h`,`hB`,`hb`,`H`],"ca-ES":[`H`,`h`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],"en-HK":[`h`,`hb`,`H`,`hB`],"en-IL":[`H`,`h`,`hb`,`hB`],"en-MY":[`h`,`hb`,`H`,`hB`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"gu-IN":[`hB`,`hb`,`h`,`H`],"hi-IN":[`hB`,`h`,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ku-SY":[`H`,`hB`],"ml-IN":[`hB`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],"ta-IN":[`hB`,`h`,`hb`,`H`],"te-IN":[`hB`,`h`,`H`],"zu-ZA":[`H`,`hB`,`hb`,`h`]};function DO(e,t){let n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`j`){let a=0;for(;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;let o=1+(a&1),s=a<2?1:3+(a>>1),c=OO(t);for((c==`H`||c==`k`)&&(s=0);s-->0;)n+=`a`;for(;o-->0;)n=c+n}else n+=i===`J`?`H`:i}return n}function OO(e){let t=e.hourCycle;if(t===void 0){let n=e;t=n.getHourCycles?.()[0]??n.hourCycles?.[0]}if(t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}let n=e.language,r;return n!==`root`&&(r=e.maximize().region),(EO[`${n}-${r}`]||EO[r||``]||EO[n||``]||EO[`${n}-001`]||EO[`001`])[0].charAt(0)}var kO=RegExp(`^${TO.source}*`),AO=RegExp(`${TO.source}*$`);function jO(e,t){return{start:e,end:t}}var MO=!!Object.fromEntries,NO=!!String.prototype.trimStart,PO=!!String.prototype.trimEnd,FO=MO?Object.fromEntries:function(e){let t={};for(let[n,r]of e)t[n]=r;return t},IO=NO?function(e){return e.trimStart()}:function(e){return e.replace(kO,``)},LO=PO?function(e){return e.trimEnd()}:function(e){return e.replace(AO,``)},RO=RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);function zO(e,t){return RO.lastIndex=t,RO.exec(e)[1]??``}function BO(e){if(e.length===0)return null;let t=1,n=1;for(let r=0;r<e.length;){let i=e.charCodeAt(r);switch(i){case 35:case 39:case 60:case 123:case 125:return null}if(i===10)t++,n=1,r++;else if(n++,i>=55296&&i<=56319&&r+1<e.length){let t=e.charCodeAt(r+1);r+=t>=56320&&t<=57343?2:1}else r++}return{offset:e.length,line:t,column:n}}var VO=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(this.offset()!==0)throw Error(`parser can only be used once`);if(this.message.length>0){let e=this.message.charCodeAt(0);if(e!==35&&e!==39&&e!==60&&e!==123&&e!==125){let e=BO(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:jO(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,``,!1)}parseMessage(e,t,n){let r=[];for(;!this.isEOF();){let i=this.char();if(i===123){let t=this.parseArgument(e,n);if(t.err)return t;r.push(t.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){let e=this.clonePosition();this.bump(),r.push({type:7,location:jO(e,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(26,jO(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&HO(this.peek()||0)){let n=this.parseTag(e,t);if(n.err)return n;r.push(n.val)}else{let n=this.parseLiteral(e,t);if(n.err)return n;r.push(n.val)}}return{val:r,err:null}}parseTag(e,t){let n=this.clonePosition();this.bump();let r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:0,value:`<${r}/>`,location:jO(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!HO(this.char()))return this.error(23,jO(o,this.clonePosition()));let e=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:8,value:r,children:a,location:jO(n,this.clonePosition())},err:null}:this.error(23,jO(o,this.clonePosition()))):this.error(26,jO(e,this.clonePosition()))}return this.error(27,jO(n,this.clonePosition()))}return this.error(23,jO(n,this.clonePosition()))}parseTagName(){let e=this.offset();for(this.bump();!this.isEOF()&&WO(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){let n=this.clonePosition(),r=``;for(;;){let n=this.tryParseQuote(t);if(n){r+=n;continue}let i=this.tryParseUnquoted(e,t);if(i){r+=i;continue}let a=this.tryParseLeftAngleBracket();if(a)r+=a;else break}let i=jO(n,this.clonePosition());return{val:{type:0,value:r,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!UO(this.peek()||0))?(this.bump(),`<`):null}tryParseQuote(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(e===39){if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(e,t){let n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,jO(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,jO(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,jO(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,jO(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:jO(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,jO(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(3,jO(n,this.clonePosition()))}}parseIdentifierIfPossible(){let e=this.clonePosition(),t=this.offset(),n=zO(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:jO(e,this.clonePosition())}}parseArgumentOptions(e,t,n,r){let i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(4,jO(i,o));case`number`:case`date`:case`time`:{this.bumpSpace();let e=null;if(this.bumpIf(`,`)){this.bumpSpace();let t=this.clonePosition(),n=this.parseSimpleArgStyleIfPossible();if(n.err)return n;let r=LO(n.val);if(r.length===0)return this.error(6,jO(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:jO(t,this.clonePosition())}}let t=this.tryParseArgumentClose(r);if(t.err)return t;let i=jO(r,this.clonePosition());if(e&&e.style.startsWith(`::`)){let t=IO(e.style.slice(2));if(a===`number`){let r=this.parseNumberSkeletonFromString(t,e.styleLocation);return r.err?r:{val:{type:2,value:n,location:i,style:r.val},err:null}}{if(t.length===0)return this.error(10,i);let r=t;this.locale&&(r=DO(t,this.locale));let o={type:1,pattern:r,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?eO(r):{}};return{val:{type:a===`date`?3:4,value:n,location:i,style:o},err:null}}}return{val:{type:a===`number`?2:a===`date`?3:4,value:n,location:i,style:e?.style??null},err:null}}case`plural`:case`selectordinal`:case`select`:{let i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(12,jO(i,{...i}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if(a!==`select`&&o.value===`offset`){if(!this.bumpIf(`:`))return this.error(13,jO(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),s=e.val}let c=this.tryParsePluralOrSelectOptions(e,a,t,o);if(c.err)return c;let l=this.tryParseArgumentClose(r);if(l.err)return l;let u=jO(r,this.clonePosition());return a===`select`?{val:{type:5,value:n,options:FO(c.val),location:u},err:null}:{val:{type:6,value:n,options:FO(c.val),offset:s,pluralType:a===`plural`?`cardinal`:`ordinal`,location:u},err:null}}default:return this.error(5,jO(i,o))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,jO(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(11,jO(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let n=[];try{n=nO(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?fO(n):{}},err:null}}tryParsePluralOrSelectOptions(e,t,n,r){let i=!1,a=[],o=new Set,{value:s,location:c}=r;for(;;){if(s.length===0){let e=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;c=jO(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}else break}if(o.has(s))return this.error(t===`select`?21:20,c);s===`other`&&(i=!0),this.bumpSpace();let r=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?17:18,jO(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,n);if(l.err)return l;let u=this.tryParseArgumentClose(r);if(u.err)return u;a.push([s,{value:l.val,location:jO(r,this.clonePosition())}]),o.add(s),this.bumpSpace(),{value:s,location:c}=this.parseIdentifierIfPossible()}return a.length===0?this.error(t===`select`?15:16,jO(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,jO(this.clonePosition(),this.clonePosition())):{val:a,err:null}}tryParseDecimalInteger(e,t){let n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);let i=!1,a=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)i=!0,a=a*10+(e-48),this.bump();else break}let o=jO(r,this.clonePosition());return i?(a*=n,Number.isSafeInteger(a)?{val:a,err:null}:this.error(t,o)):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);let t=this.message.codePointAt(e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&GO(this.char());)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function HO(e){return e>=97&&e<=122||e>=65&&e<=90}function UO(e){return HO(e)||e===47}function WO(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function GO(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function KO(e){e.forEach(e=>{if(delete e.location,yO(e)||bO(e))for(let t in e.options)delete e.options[t].location,KO(e.options[t].value);else gO(e)&&CO(e.style)||(_O(e)||vO(e))&&wO(e.style)?delete e.style.location:SO(e)&&KO(e.children)})}function qO(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};let n=new VO(e,t).parse();if(n.err){let e=SyntaxError(pO[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||KO(n.val),n.val}var JO=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},YO=class extends JO{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join(`", "`)}"`,`INVALID_VALUE`,r)}},XO=class extends JO{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,`INVALID_VALUE`,n)}},ZO=class extends JO{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,`MISSING_VALUE`,t)}};function QO(e){return e.length<2?e:e.reduce((e,t)=>{let n=e[e.length-1];return!n||n.type!==0||t.type!==0?e.push(t):n.value+=t.value,e},[])}function $O(e){return typeof e==`function`}function ek(e,t,n,r,i,a,o){if(e.length===1&&mO(e[0]))return[{type:0,value:e[0].value}];let s=[];for(let c of e){if(mO(c)){s.push({type:0,value:c.value});continue}if(xO(c)){typeof a==`number`&&s.push({type:0,value:n.getNumberFormat(t).format(a)});continue}let{value:e}=c;if(!(i&&e in i))throw new ZO(e,o);let l=i[e];if(hO(c))(!l||typeof l==`string`||typeof l==`number`||typeof l==`bigint`)&&(l=typeof l==`string`||typeof l==`number`||typeof l==`bigint`?String(l):``),s.push({type:typeof l==`string`?0:1,value:l});else if(_O(c)){let e=typeof c.style==`string`?r.date[c.style]:wO(c.style)?c.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)})}else if(vO(c)){let e=typeof c.style==`string`?r.time[c.style]:wO(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)})}else if(gO(c)){let e=typeof c.style==`string`?r.number[c.style]:CO(c.style)?c.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if(typeof l==`bigint`){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);l*=BigInt(t)}else l*=t}s.push({type:0,value:n.getNumberFormat(t,e).format(l)})}else{if(SO(c)){let{children:e,value:l}=c,u=i[l];if(!$O(u))throw new XO(l,`function`,o);let d=u(ek(e,t,n,r,i,a).map(e=>e.value));Array.isArray(d)||(d=[d]),s.push(...d.map(e=>({type:typeof e==`string`?0:1,value:e})))}if(yO(c)){let e=l,a=(Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0)||c.options.other;if(!a)throw new YO(c.value,l,Object.keys(c.options),o);s.push(...ek(a.value,t,n,r,i))}else if(bO(c)){let e=`=${l}`,a=Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0;if(!a){if(!Intl.PluralRules)throw new JO(`Intl.PluralRules is not available in this environment.
|
|
2
|
+
`))):h&&(v=[h],r.setCustomValidity(h)))}let S={value:e,state:y,error:b??(Array.isArray(h)?h[0]:h??``),errors:v,initialValue:o.initialValue};s(S),i(S)}),y=r.useCallback((e={})=>dp(h,!1===u.valid?{"aria-invalid":!0}:ep,e),[h,u.valid]),b=r.useCallback((e={})=>dp({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(n(d),!f())return void v(e.currentTarget.value,!0);let t=e.currentTarget;if(t.value===``)return void v(t.value);g.clear(),s?g.start(s,()=>{v(t.value)}):v(t.value)}},y(e)),[y,n,d,g,v,s,f]);return r.useMemo(()=>({getValidationProps:y,getInputValidationProps:b,inputRef:_,commit:v}),[y,b,v])}function WS(e){let{commit:t,invalid:n,markedDirtyRef:i,name:a,setRegisteredFieldId:o,setValidityData:s,validityData:c}=e,{formRef:l}=Bx(),u=r.useRef(null),d=r.useRef(null),f=r.useRef(null),p=Y(()=>{let e=d.current;if(e)return e.getValue?e.getValue():e.value}),m=Y(()=>{let e=d.current;if(!e)return;let n=e.value;n===void 0&&(n=p()),i.current=!0,t(n)});function h(){let e=d.current;e&&e.id&&l.current.fields.set(e.id,{getValue:p,name:a,controlRef:e.controlRef??f,validityData:BS(c,n),validate:m})}function g(e=d.current?.id){e&&l.current.fields.delete(e)}function _(){let e=d.current;if(!e)return;let t=e.value;t===void 0&&(t=p()),c.initialValue===null&&t!==null&&s(e=>({...e,initialValue:t}))}return J(()=>{let e=d.current;e&&e.id&&l.current.fields.set(e.id,{getValue:p,name:a,controlRef:e.controlRef??f,validityData:BS(c,n),validate:m})},[l,p,n,a,m,c]),J(()=>{let e=l.current.fields;return()=>{let t=d.current?.id;t&&e.delete(t)}},[l]),Y((e,t)=>{if(!t){u.current===e&&(u.current=null,g(),d.current=null,o(void 0));return}let n=d.current?.id;u.current=e,d.current=t,o(t.id),n&&n!==t.id&&g(n),_(),h()})}var GS=r.forwardRef(function(e,t){let{errors:n,validationMode:i,submitAttemptedRef:a}=Bx(),{render:o,className:s,validate:l,validationDebounceTime:u=0,validationMode:d=i,name:f,disabled:p=!1,invalid:m,dirty:h,touched:g,actionsRef:_,style:v,...y}=e,{disabled:b}=NS(),x=Y(l||(()=>null)),S=b||p,[C,w]=r.useState(!1),[T,E]=r.useState(!1),[D,O]=r.useState(!1),[k,A]=r.useState(!1),j=h??T,M=g??C,N=r.useRef(!1),P=r.useRef(void 0),F=r.useCallback(()=>P.current,[]),I=r.useCallback(e=>{P.current=e},[]),L=Y(e=>{h===void 0&&(e&&(N.current=!0),E(e))}),ee=Y(e=>{g===void 0&&w(e)}),R=Y(()=>d===`onChange`||d===`onSubmit`&&a.current),te=!!f&&Object.hasOwn(n,f)&&n[f]!==void 0,z=!0===m||te,[B,ne]=r.useState({state:Yy,error:``,errors:[],value:null,initialValue:null}),re=!z&&B.state.valid,ie=r.useMemo(()=>({disabled:S,touched:M,dirty:j,valid:re,filled:D,focused:k}),[S,M,j,re,D,k]),ae=US({setValidityData:ne,validate:x,validityData:B,validationDebounceTime:u,invalid:z,markedDirtyRef:N,state:ie,name:f,shouldValidateOnChange:R,getRegisteredFieldId:F}),V=B.value,oe=r.useCallback(()=>{N.current=!0,ae.commit(V)},[ae,V]),se=WS({commit:ae.commit,invalid:z,markedDirtyRef:N,name:f,setRegisteredFieldId:I,setValidityData:ne,validityData:B});r.useImperativeHandle(_,()=>({validate:oe}),[oe]);let ce=r.useMemo(()=>({invalid:z,name:f,validityData:B,setValidityData:ne,disabled:S,touched:M,setTouched:ee,dirty:j,setDirty:L,filled:D,setFilled:O,focused:k,setFocused:A,validate:x,validationMode:d,validationDebounceTime:u,shouldValidateOnChange:R,state:ie,markedDirtyRef:N,registerFieldControl:se,validation:ae}),[z,f,B,S,M,ee,j,L,D,O,k,A,x,d,u,R,ie,se,ae]),le=Tp(`div`,e,{ref:t,state:ie,props:y,stateAttributesMapping:Qy});return c(eb.Provider,{value:ce,children:le})}),KS=r.forwardRef(function(e,t){return c(zS,{children:c(GS,{...e,ref:t})})}),qS=r.forwardRef(function(e,t){let{render:n,className:i,style:a,id:o,nativeLabel:s=!0,...c}=e,l=tb(!1),{labelId:u}=rb(),d=r.useRef(null),f=FS({id:u??o,native:s});return Tp(`label`,e,{ref:[t,d],state:l.state,props:[f,c],stateAttributesMapping:Qy})}),JS={...Qy,...dm},YS=r.forwardRef(function(e,t){let{render:n,id:i,className:a,match:o,style:s,...l}=e,u=Wp(i),{validityData:d,state:f,name:p}=tb(!1),{setMessageIds:m}=rb(),{errors:h}=Bx(),g=p?h[p]:null,_=typeof o==`string`,v=!1;v=!0===o?!0:_?!!d.state[o]:!!g||!1===d.state.valid;let{mounted:y,transitionStatus:b,setMounted:x}=zp(v);J(()=>{if(v&&u)return m(e=>e.concat(u)),()=>{m(e=>e.filter(e=>e!==u))}},[v,u,m]);let S=r.useRef(null),[C,w]=r.useState(null),[T,E]=r.useState(null),D=d.errors.length>1?c(`ul`,{children:d.errors.map(e=>c(`li`,{children:e},e))}):d.error,O=_?D:g||D,k=d.error;g==null?d.errors.length>1&&(k=JSON.stringify(d.errors)):k=Array.isArray(g)?JSON.stringify(g):g,v&&k!==T&&(E(k),w(O)),mm({open:v,ref:S,onComplete(){v||x(!1)}});let A={...f,transitionStatus:b},j=Tp(`div`,e,{ref:[t,S],state:A,props:[{id:u,children:v?O:C},l],stateAttributesMapping:JS,enabled:y});return y?j:null}),XS=r.forwardRef(function(e,t){let{render:n,id:r,className:i,style:a,...o}=e,s=Wp(r),c=tb(!1),{setMessageIds:l}=rb();return J(()=>{if(s)return l(e=>e.concat(s)),()=>{l(e=>e.filter(e=>e!==s))}},[s,l]),Tp(`p`,e,{ref:t,state:c.state,props:[{id:s},o],stateAttributesMapping:Qy})}),ZS=r.forwardRef(function(e,t){let{render:n,className:i,style:a,disabled:o=!1,...s}=e,{state:l,disabled:u}=tb(!1),d=u||o,f=pS(),p=f?.allValues===void 0?void 0:f?.parent.id,m=r.useMemo(()=>({disabled:d}),[d]),h=Tp(`div`,e,{ref:t,state:l,props:s,stateAttributesMapping:Qy});return c(zS,{controlId:p,children:c(uS.Provider,{value:m,children:h})})}),QS=function(e){let{children:t}=e,{validityData:n,invalid:i}=tb(!1),a=r.useMemo(()=>BS(n,i),[n,i]),{transitionStatus:o}=zp(!1===a.state.valid),s=r.useMemo(()=>({...a,validity:a.state,transitionStatus:o}),[a,o]);return c(r.Fragment,{children:t(s)})},$S={root:`root-ECdHfF`,label:`label-YSWZBs`,error:`error-BUDKWp`,description:`description-IVviYU`,descriptionEnd:`descriptionEnd-O3mOtW`,control:`control-fRhDZ8`,controlLine:`controlLine-cAw0CF`,labelFloating:`labelFloating-io8BLN`,group:`group-XazO1A`,adornment:`adornment-Z1N0NF`,item:`item-kQeHOQ`,groupLine:`groupLine-vlna4V`},eC=r.createContext(!1),tC=r.forwardRef(({className:e,...t},n)=>c(eC.Provider,{value:!1,children:c(KS,{ref:n,className:Uf($S.root,e),...t})})),nC=r.forwardRef(({className:e,variant:t=`default`,...n},r)=>c(qS,{ref:r,className:Uf($S.label,{[$S.labelFloating]:t===`floating`},e),...n})),rC=r.forwardRef(({className:e,...t},n)=>c(YS,{ref:n,className:Uf($S.error,e),render:({children:e,...t})=>l(`div`,{...t,children:[c(Vf,{"aria-hidden":!0}),e]}),...t})),iC=r.forwardRef(({className:e,align:t=`start`,...n},r)=>c(XS,{ref:r,className:Uf($S.description,{[$S.descriptionEnd]:t===`end`},e),...n})),aC=r.forwardRef(({className:e,variant:t=`box`,...n},r)=>c(eC.Provider,{value:!0,children:c(`div`,{ref:r,className:Uf(RS.root,$S.group,{[$S.groupLine]:t===`line`},e),...n})})),oC=r.forwardRef(({className:e,...t},n)=>c(`span`,{ref:n,className:Uf($S.adornment,e),...t})),sC=new Set([`text`,`email`,`password`,`search`,`url`,`tel`,`number`,`date`,`datetime-local`,`month`,`week`,`time`]),cC=e=>e!=null&&typeof e!=`boolean`,lC={Root:tC,Label:nC,Error:rC,Description:iC,Control:r.forwardRef(({className:e,type:t=`text`,variant:n=`box`,prefix:i,suffix:a,groupClassName:o,...u},d)=>{let f=r.useContext(eC),p=cC(i),m=cC(a),h=p||m,g=c(LS,{ref:d,type:t,className:Uf({[RS.root]:sC.has(t)},$S.control,{[$S.controlLine]:n===`line`},{"has-custom-focus":h||f},e),...u}),_=l(s,{children:[p&&c(oC,{children:i}),g,m&&c(oC,{children:a})]});return f?_:h?c(aC,{variant:n,className:o,children:_}):g}),Group:aC,Adornment:oC,Item:r.forwardRef(({className:e,...t},n)=>c(ZS,{ref:n,className:Uf($S.item,e),...t})),Validity:QS};function uC(e){return typeof e==`number`?`${e}px`:e}var dC={option:`option-o8pAcb`,root:`root-tqmYsF`,indicator:`indicator-_WzHbq`,optionContent:`optionContent-inaJL9`,optionLabel:`optionLabel-fJWxkM`,optionSuffix:`optionSuffix-AJytXe`},fC=r.forwardRef(({className:e,style:t,label:n,suffix:r,variant:i=`default`,error:a=!1,errorMessage:o,verticalAlignment:s=`center`,size:u=OS.medium,width:d,indeterminate:f=!1,disabled:p=!1,...m},h)=>{let g=a||!!o,_=uC(d),v={...t,..._?{"--checkbox-option-width":_}:null};return l(lC.Root,{ref:h,className:Uf(dC.option,e),style:v,invalid:g,disabled:p,"data-variant":i,"data-has-error-message":o?``:void 0,children:[l(jS.Root,{...m,className:dC.root,indeterminate:f,disabled:p,"data-variant":i,"data-vertical-alignment":s,render:c(`label`,{}),size:u,children:[c(jS.Indicator,{className:dC.indicator}),l(`span`,{className:dC.optionContent,children:[c(`span`,{className:dC.optionLabel,children:n}),r?c(`span`,{className:dC.optionSuffix,children:r}):null]})]}),g&&o?c(lC.Error,{match:!0,children:o}):null]})});fC.displayName=`CheckboxField`;function pC(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}var mC=[];function hC(e){let{allValues:t=mC,value:n=mC,onValueChange:i}=e,a=r.useRef(n),o=r.useRef(new Map),[s,c]=r.useState(`mixed`),l=Wp(),u=n.length===t.length,d=n.length!==t.length&&n.length>0,f=Y(i),p=r.useCallback(()=>({id:l,indeterminate:d,checked:u,"aria-controls":t.map(e=>`${l}-${e}`).join(` `),onCheckedChange(e,r){let i=a.current,l=t.filter(e=>o.current.get(e)&&i.includes(e)),u=t.filter(e=>!o.current.get(e)||o.current.get(e)&&i.includes(e));if(i.length===u.length||i.length===0)return void(n.length===u.length?f(l,r):f(u,r));s===`mixed`?(f(u,r),c(`on`)):s===`on`?(f(l,r),c(`off`)):s===`off`&&(f(i,r),c(`mixed`))}}),[t,u,l,d,f,s,n.length]),m=r.useCallback(e=>({checked:n.includes(e),onCheckedChange(t,r){let i=n.slice();t?i.push(e):i.splice(i.indexOf(e),1),a.current=i,f(i,r),c(`mixed`)}}),[f,n]);return r.useMemo(()=>({id:l,indeterminate:d,getParentProps:p,getChildProps:m,disabledStatesRef:o}),[l,d,p,m])}var gC=r.forwardRef(function(e,t){let{allValues:n,className:i,defaultValue:a,disabled:o=!1,id:s,onValueChange:l,render:u,value:d,style:f,...p}=e,{disabled:m,name:h,state:g,validation:_,setFilled:v,setDirty:y,shouldValidateOnChange:b,validityData:x}=tb(),{labelId:S,getDescriptionProps:C}=rb(),{clearErrors:w}=Bx(),T=m||o,E=r.useMemo(()=>{if(d===void 0)return a??[]},[d,a]),[D,O]=jp({controlled:d,default:E,name:`CheckboxGroup`,state:`value`}),k=Y((e,t)=>{l?.(e,t),!t.isCanceled&&O(e)}),A=hC({allValues:n,value:D,onValueChange:k}),j=Wp(s),M=r.useRef(null),N=r.useCallback(e=>{M.current==null&&e!=null&&!e.hasAttribute(`data-parent`)&&(M.current=e)},[]);Vx(M,j,D,void 0,!!h);let P=D??$f;Uv(P,()=>{h&&w(h);let e=Array.isArray(x.initialValue)?x.initialValue:$f;v(P.length>0),y(!pC(P,e)),b()?_.commit(P):_.commit(P,!0)});let F={...g,disabled:T},I=r.useMemo(()=>({allValues:n,value:D,defaultValue:E,setValue:k,parent:A,disabled:T,validation:_,registerControlRef:N}),[n,D,E,k,A,T,_,N]),L=Tp(`div`,e,{state:F,ref:t,props:[{role:`group`,"aria-labelledby":S},C,p],stateAttributesMapping:Qy});return c(fS.Provider,{value:I,children:L})}),_C=r.forwardRef((e,t)=>c(gC,{ref:t,...e})),vC={field:`field-Tx5eMP`,label:`label-E_rDm0`,items:`items-lFFDGE`},yC=r.forwardRef(({className:e,style:t,children:n,label:i,layout:a=`vertical`,fluid:o=!1,error:s=!1,errorMessage:u,required:d=!1,width:f,disabled:p=!1,"aria-labelledby":m,"aria-required":h,...g},_)=>{let v=r.useId(),y=s||!!u,b=i?v:void 0,x=b&&m?`${m} ${b}`:b??m,S=uC(f),C={...t,...S?{"--checkbox-group-width":S}:null};return l(lC.Root,{className:Uf(vC.field,e),style:C,invalid:y,disabled:p,"data-fluid":o?``:void 0,children:[i?c(`span`,{id:b,className:vC.label,children:i}):null,c(_C,{ref:_,className:vC.items,disabled:p,"data-layout":a,"data-fluid":o?``:void 0,"aria-labelledby":x,"aria-required":d?!0:h,...g,children:n}),y&&u?c(lC.Error,{match:!0,children:u}):null]})});yC.displayName=`CheckboxGroupField`,{...Jm,...dm},{...qm,...dm};var bC=r.createContext(void 0);function xC(e){let t=r.useContext(bC);if(t===void 0&&!e)throw Error(np(69));return t}var SC={current:null};function CC(e,t={}){let{enabled:n=!0,delay:i=0,handleClose:a=null,mouseOnly:o=!1,restMs:s=0,move:c=!0,triggerElementRef:l=SC,externalTree:d,isActiveTrigger:f=!0,getHandleCloseContext:p,isClosing:m,shouldOpen:h}=t,g=`rootStore`in e?e.rootStore:e,{dataRef:_,events:v}=g.context,y=Mg(d),b=Qx(g),x=r.useRef(!1),S=hm(a),C=hm(i),w=hm(s),T=hm(n),E=hm(h),D=hm(m),O=Y(()=>nS(_.current.openEvent?.type,b.interactedInside)),k=Y(()=>E.current?.()!==!1),A=Y((e,t,n)=>{let r=g.context.triggerElements;if(r.hasElement(t))return!e||!Q(e,t);if(!Cm(n))return!1;let i=n;return r.hasMatchingElement(e=>Q(e,i))&&(!e||!Q(e,i))}),j=Y(()=>{b.handler&&=(Qg(g.select(`domReferenceElement`)).removeEventListener(`mousemove`,b.handler),void 0)}),M=Y(()=>{Xx(b)});return f&&(b.handleCloseOptions=S.current?.__options),r.useEffect(()=>j,[j]),r.useEffect(()=>{if(!n)return;function e(e){e.open?x.current=!1:(x.current=e.reason===Zp,j(),b.openChangeTimeout.clear(),b.restTimeout.clear(),b.blockMouseMove=!0,b.restTimeoutPending=!1)}return v.on(`openchange`,e),()=>{v.off(`openchange`,e)}},[n,v,b,j]),r.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=eS(C.current,`close`,b.pointerType);n?b.openChangeTimeout.start(n,()=>{g.setOpen(!1,Yp(Zp,e)),y?.events.emit(`floating.closed`,e)}):t&&(b.openChangeTimeout.clear(),g.setOpen(!1,Yp(Zp,e)),y?.events.emit(`floating.closed`,e))}let t=l.current??(f?g.select(`domReferenceElement`):null);if(!Cm(t))return;function r(e){if(b.openChangeTimeout.clear(),b.blockMouseMove=!1,o&&!Vh(b.pointerType))return;let t=tS(w.current),n=eS(C.current,`open`,b.pointerType),r=zg(e),i=e.currentTarget??null,a=g.select(`domReferenceElement`),s=i;if(Cm(r)&&!g.context.triggerElements.hasElement(r)){for(let e of g.context.triggerElements.elements())if(Q(e,r)){s=e;break}}Cm(i)&&Cm(a)&&!g.context.triggerElements.hasElement(i)&&Q(i,a)&&(s=a);let c=s!=null&&A(a,s,r),l=g.select(`open`),u=D.current?.()??g.select(`transitionStatus`)===`ending`,d=!l&&u&&x.current,f=!c&&Cm(s)&&Cm(a)&&Q(a,s)&&d,p=t>0&&!n,m=c&&(l||d)||f,h=!l||c;m?k()&&g.setOpen(!0,Yp(Zp,e,s)):p||(n?b.openChangeTimeout.start(n,()=>{h&&k()&&g.setOpen(!0,Yp(Zp,e,s))}):h&&k()&&g.setOpen(!0,Yp(Zp,e,s)))}function i(t){if(O())return void M();j();let n=Qg(g.select(`domReferenceElement`));b.restTimeout.clear(),b.restTimeoutPending=!1;let r=_.current.floatingContext??p?.();if(!Gg(t.relatedTarget,g.context.triggerElements)){if(S.current&&r){g.select(`open`)||b.openChangeTimeout.clear();let i=l.current;b.handler=S.current({...r,tree:y,x:t.clientX,y:t.clientY,onClose(){M(),j(),T.current&&!O()&&i===g.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,b.handler),b.handler(t)}else(b.pointerType!==`touch`||!Q(g.select(`floatingElement`),t.relatedTarget))&&e(t)}}return c?$g(_m(t,`mousemove`,r,{once:!0}),_m(t,`mouseenter`,r),_m(t,`mouseleave`,i)):$g(_m(t,`mouseenter`,r),_m(t,`mouseleave`,i))},[j,M,_,C,g,n,S,b,f,A,O,o,c,w,l,y,T,p,D,k]),r.useMemo(()=>{if(!n)return;function e(e){b.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=g.select(`domReferenceElement`),i=g.select(`open`),a=A(r,n,e.target);if(o&&!Vh(b.pointerType))return;if(i&&a&&b.handleCloseOptions?.blockPointerEvents){let e=g.select(`floatingElement`);if(e){let t=b.handleCloseOptions?.getScope?.()??n.ownerDocument.body;Zx(b,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=tS(w.current);if(i&&!a||s===0||!a&&b.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;b.restTimeout.clear();function c(){if(b.restTimeoutPending=!1,O())return;let e=g.select(`open`);!b.blockMouseMove&&(!e||a)&&k()&&g.setOpen(!0,Yp(Zp,t,n))}b.pointerType===`touch`?u.flushSync(()=>{c()}):a&&i?c():(b.restTimeoutPending=!0,b.restTimeout.start(s,c))}}},[n,b,O,A,o,g,w,k])}var wC=.1,TC=wC*wC,EC=.5;function DC(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function OC(e,t,n,r,i,a,o,s,c,l){let u=!1;return DC(e,t,n,r,i,a)&&(u=!u),DC(e,t,i,a,o,s)&&(u=!u),DC(e,t,o,s,c,l)&&(u=!u),DC(e,t,c,l,n,r)&&(u=!u),u}function kC(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function AC(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function jC(e={}){let{blockPointerEvents:t=!1}=e,n=new Ig,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=`u`>typeof performance?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*TC;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=zg(r),g=r.type===`mouseleave`,_=Q(u,h),v=Q(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&Cm(r.relatedTarget)&&Q(u,r.relatedTarget))return;function y(){return!!(s&&e_(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1)return void b();let j=!1;switch(c){case`top`:j=AC(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=AC(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=AC(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=AC(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!kC(d,f,x)||!g&&p(d,f))return void b();let M=!1;switch(c){case`top`:{let n=T?EC/2:4*EC,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+EC+1,o=C||T?S.bottom-EC:S.top,s=C?T?S.bottom-EC:S.top:S.bottom-EC;M=OC(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?EC/2:4*EC,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-EC,o=C||T?S.top+EC:S.bottom,s=C?T?S.top+EC:S.bottom:S.top+EC;M=OC(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?EC/2:4*EC,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+EC+1,o=w||E?S.right-EC:S.left,s=w?E?S.right-EC:S.left:S.right-EC;M=OC(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?EC/2:4*EC,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-EC,o=w||E?S.left+EC:S.right,s=w?E?S.left+EC:S.right:S.left+EC;M=OC(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var MC=r.createContext(null);function NC(e){let t=r.useContext(MC);if(t===null&&!e)throw Error(np(5));return t}var PC=r.createContext(void 0);function FC(e=!0){let t=r.useContext(PC);if(t===void 0&&!e)throw Error(np(25));return t}var IC=r.createContext(void 0);function LC(e){let t=r.useContext(IC);if(t===void 0&&!e)throw Error(np(36));return t}function RC(e){if(wm(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`)??void 0;if(!Im(e))return RC(zm(e))}({...sg,...dm}),{...sg,...dm},{...dm};var zC=r.createContext(void 0);function BC(){return r.useContext(zC)}var VC={...Py,disabled:X(e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled),modal:X(e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0)),openMethod:X(e=>e.openMethod),allowMouseEnter:X(e=>e.allowMouseEnter),stickIfOpen:X(e=>e.stickIfOpen),parent:X(e=>e.parent),rootId:X(e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId),activeIndex:X(e=>e.activeIndex),isActive:X((e,t)=>e.activeIndex===t),hoverEnabled:X(e=>e.hoverEnabled),instantType:X(e=>e.instantType),lastOpenChangeReason:X(e=>e.openChangeReason),floatingTreeRoot:X(e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot),floatingNodeId:X(e=>e.floatingNodeId),floatingParentNodeId:X(e=>e.floatingParentNodeId),itemProps:X(e=>e.itemProps),closeDelay:X(e=>e.closeDelay),hasViewport:X(e=>e.hasViewport),keyboardEventRelay:X(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)})},HC=class e extends Eg{constructor(e){super({...UC(),...e},{positionerRef:r.createRef(),popupRef:r.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:r.createRef(),beforeContentFocusGuardRef:r.createRef(),onOpenChangeComplete:void 0,triggerElements:new c_},VC),this.unsubscribeParentListener=this.observe(`parent`,e=>{if(this.unsubscribeParentListener?.(),e.type===`menu`){let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef}else e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}static useStore(t,n){let r=Gf(()=>new e(n)).current;return t??r}unsubscribeParentListener=null};function UC(){return{...Dy(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new Og,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:ep,keyboardEventRelay:void 0,closeDelay:0,hasViewport:!1}}gg(function(e){let{children:t,open:n,onOpenChange:i,onOpenChangeComplete:a,defaultOpen:o=!1,disabled:s=!1,modal:l,loopFocus:u=!0,orientation:d=`vertical`,actionsRef:f,closeParentOnEsc:p=!1,handle:m,triggerId:h,defaultTriggerId:g=null,highlightItemOnHover:_=!0}=e,v=FC(!0),y=LC(!0),b=NC(!0),x=BC(),S=r.useMemo(()=>x&&y?{type:`menu`,store:y.store}:b?{type:`menubar`,context:b}:v&&!y?{type:`context-menu`,context:v}:{type:void 0},[v,y,b,x]),C=HC.useStore(m?.store,{open:o,openProp:n,activeTriggerId:g,triggerIdProp:h,parent:S});v_(()=>{n===void 0&&!1===C.state.open&&!0===o&&C.update({open:!0,activeTriggerId:g})}),C.useControlledProp(`openProp`,n),C.useControlledProp(`triggerIdProp`,h),C.useContextCallback(`onOpenChangeComplete`,a);let w=Up(),T=Up(),E=C.useState(`floatingTreeRoot`),D=Ng(E),O=jg(),k=C.useState(`open`),A=C.useState(`activeTriggerElement`),j=C.useState(`positionerElement`),M=C.useState(`hoverEnabled`),N=C.useState(`disabled`),P=C.useState(`lastOpenChangeReason`),F=C.useState(`parent`),I=C.useState(`activeIndex`),L=C.useState(`payload`),ee=C.useState(`floatingParentNodeId`),R=r.useRef(null),te=r.useRef(F.type!==`context-menu`),z=Lg(),B=r.useRef(!0),ne=Lg(),re=ee!=null,{openMethod:ie,triggerProps:ae}=hy(k);C.useSyncedValues({disabled:s,modal:F.type===void 0?l:void 0,openMethod:ie,rootId:w}),h_(C);let{forceUnmount:V}=g_(k,C,()=>{C.update({allowMouseEnter:!1,stickIfOpen:!0})});J(()=>{v&&!y?C.update({parent:{type:`context-menu`,context:v},floatingNodeId:D,floatingParentNodeId:O}):y&&C.update({floatingNodeId:D,floatingParentNodeId:O})},[v,y,D,O,C]),r.useEffect(()=>{k||(R.current=null),F.type===`context-menu`&&(k?z.start(500,()=>{te.current=!0}):(z.clear(),te.current=!1))},[z,k,F.type]),J(()=>{!k&&!M&&C.set(`hoverEnabled`,!0)},[k,M,C]);let oe=Y((e,t)=>{let n=t.reason;if(k===e&&t.trigger===A&&P===n||(t.preventUnmountOnClose=()=>{C.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&(t.trigger=A??void 0),i?.(e,t),t.isCanceled))return;C.state.floatingRootContext.dispatchOpenChange(e,t);let r=t.event;if(!1===e&&r?.type===`click`&&r.pointerType===`touch`&&!B.current)return;if(!e&&I!==null){let e=C.context.itemDomElements.current[I];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}e&&n===`trigger-focus`?(B.current=!1,ne.start(300,()=>{B.current=!0})):(B.current=!0,ne.clear());let a=(n===`trigger-press`||n===`item-press`)&&r.detail===0&&r?.isTrusted,o=!e&&(n===`escape-key`||n==null),s={open:e,openChangeReason:n};R.current=t.event??null;let c=t.trigger?.id??null;(c||e)&&(s.activeTriggerId=c,s.activeTriggerElement=t.trigger??null),C.update(s),F.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?C.set(`instantType`,`group`):a||o?C.set(`instantType`,a?`click`:`dismiss`):C.set(`instantType`,void 0)}),se=l_({popupStore:C,floatingId:T,nested:O!=null,onOpenChange:oe}),ce=se.context.events;r.useEffect(()=>{let e=({open:e,eventDetails:t})=>oe(e,t);return ce.on(`setOpen`,e),()=>{ce?.off(`setOpen`,e)}},[ce,oe]);let le=r.useCallback(()=>{C.setOpen(!1,Yp(om))},[C]);r.useImperativeHandle(f,()=>({unmount:V,close:le}),[V,le]);let ue;F.type===`context-menu`&&(ue=F.context),r.useImperativeHandle(ue?.positionerRef,()=>j,[j]),r.useImperativeHandle(ue?.actionsRef,()=>({setOpen:oe}),[oe]);let de=s_(se,{enabled:!N,bubbles:{escapeKey:p&&F.type===`menu`},outsidePress(){return F.type!==`context-menu`||R.current?.type===`contextmenu`||te.current},externalTree:re?E:void 0}),fe=Wh(),pe=r.useCallback(e=>{C.select(`activeIndex`)!==e&&C.set(`activeIndex`,e)},[C]),me=Lx(se,{enabled:!N,listRef:C.context.itemDomElements,activeIndex:I,nested:F.type!==void 0,loopFocus:u,orientation:d,parentOrientation:F.type===`menubar`?F.context.orientation:void 0,rtl:fe===`rtl`,disabledIndices:$f,onNavigate:pe,openOnArrowKeyDown:F.type!==`context-menu`,externalTree:re?E:void 0,focusItemOnHover:_}),he=r.useCallback(e=>{C.context.typingRef.current=e},[C]),ge=Ax(se,{listRef:C.context.itemLabels,elementsRef:C.context.itemDomElements,activeIndex:I,resetMs:500,onMatch:e=>{k&&e!==I&&C.set(`activeIndex`,e)},onTyping:he});__(C,{floatingRootContext:se,activeTriggerProps:r.useMemo(()=>{let e=dp(ge.reference,me.reference,de.reference,{onMouseMove(){C.set(`allowMouseEnter`,!0)}},ae);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=k,e},[C,ge.reference,me.reference,de.reference,ae,k]),inactiveTriggerProps:r.useMemo(()=>{let e=dp(me.trigger,de.trigger,ae);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[me.trigger,de.trigger,ae]),popupProps:r.useMemo(()=>dp(u_,{id:T,role:`menu`,"aria-labelledby":A?.id,onMouseMove(){C.set(`allowMouseEnter`,!0),F.type===`menu`&&C.set(`hoverEnabled`,!1)},onClick(){C.select(`hoverEnabled`)&&C.set(`hoverEnabled`,!1)},onKeyDown(e){let t=C.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},ge.floating,me.floating,de.floating),[A,T,F.type,C,ge.floating,me.floating,de.floating]),itemProps:me.item??ep});let _e=r.useMemo(()=>({store:C,parent:S}),[C,S]),ve=c(IC.Provider,{value:_e,children:typeof t==`function`?t({payload:L}):t});return F.type===void 0||F.type===`context-menu`?c(Pg,{externalTree:E,children:ve}):ve});function WC(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}({...sg,...dm}),function(e){return e[e.open=Qh.open]=`open`,e[e.closed=Qh.closed]=`closed`,e[e.startingStyle=Qh.startingStyle]=`startingStyle`,e[e.endingStyle=Qh.endingStyle]=`endingStyle`,e.expanded=`data-expanded`,e.nestedDrawerOpen=`data-nested-drawer-open`,e.nestedDrawerSwiping=`data-nested-drawer-swiping`,e.swipeDismiss=`data-swipe-dismiss`,e.swipeDirection=`data-swipe-direction`,e.swiping=`data-swiping`,e}({}),{...sg,...dm};var GC=function(e){return e[e.open=Qh.open]=`open`,e[e.closed=Qh.closed]=`closed`,e.disabled=`data-disabled`,e.swipeDirection=`data-swipe-direction`,e.swiping=`data-swiping`,e}({});GC.open,GC.closed,GC.swiping,GC.disabled;function KC(e){let[t,n]=r.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var qC=Mh&&Ah;function JC(e,t={}){let{enabled:n=!0,delay:i}=t,a=`rootStore`in e?e.rootStore:e,{events:o,dataRef:s}=a.context,c=r.useRef(!1),l=r.useRef(null),u=r.useRef(!0),d=Lg();r.useEffect(()=>{let e=a.select(`domReferenceElement`);if(!n)return;let t=bm(e);function r(){let e=a.select(`domReferenceElement`);!a.select(`open`)&&wm(e)&&e===Rg(Qg(e))&&(c.current=!0)}function i(){u.current=!0}function o(){u.current=!1}return $g(_m(t,`blur`,r),qC&&_m(t,`keydown`,i,!0),qC&&_m(t,`pointerdown`,o,!0))},[a,n]),r.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=a.select(`domReferenceElement`);Cm(e)&&(l.current=e,c.current=!0)}}return o.on(`openchange`,e),()=>{o.off(`openchange`,e)}},[o,n,a]);let f=r.useMemo(()=>{function e(){c.current=!1,l.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(c.current){if(l.current===n)return;e()}let r=zg(t.nativeEvent);if(Cm(r)){if(qC&&!t.relatedTarget){if(!u.current&&!Jg(r))return}else if(!Xg(r))return}let o=Gg(t.relatedTarget,a.context.triggerElements),{nativeEvent:s,currentTarget:f}=t,p=typeof i==`function`?i():i;if(a.select(`open`)&&o||p===0||p===void 0)return void a.setOpen(!0,Yp(Qp,s,f));d.start(p,()=>{c.current||a.setOpen(!0,Yp(Qp,s,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,i=Cm(n)&&n.hasAttribute(dg(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;d.start(0,()=>{let e=a.select(`domReferenceElement`),t=Rg(Qg(e));(n||t!==e)&&(Q(s.current.floatingContext?.refs.floating.current,t)||Q(e,t)||i||Gg(n??t,a.context.triggerElements)||a.setOpen(!1,Yp(Qp,r)))})}}},[s,i,a,d]);return r.useMemo(()=>n?{reference:f,trigger:f}:{},[n,f])}function YC(e,t){let n=r.useRef(null);function i(t){u.flushSync(()=>{e.setOpen(!1,Yp(tm,t.nativeEvent,t.currentTarget))}),jv(n.current)?.focus()}function a(n){let r=e.select(`positionerElement`);if(r&&Mv(n,r))e.context.beforeContentFocusGuardRef.current?.focus();else{u.flushSync(()=>{e.setOpen(!1,Yp(tm,n.nativeEvent,n.currentTarget))});let i=Av(e.context.triggerFocusTargetRef.current||t.current);for(;i!==null&&Q(r,i);){let e=i;if(i=Dv(i),i===e)break}i?.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:i,handleFocusTargetFocus:a}}function XC(e){let{enabled:t=!0,mouseDownAction:n,open:i}=e,a=r.useRef(!1);return r.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!i||n===`close`&&i)&&(a.current=!0,Qg(e.currentTarget).addEventListener(`click`,()=>{a.current=!1},{once:!0}))},onClick:e=>{a.current&&(a.current=!1,e.preventBaseUIHandler())}}:ep,[t,n,i])}var ZC=2;_g(function(e,t){let{render:n,className:i,style:a,disabled:o=!1,nativeButton:s=!0,id:u,openOnHover:d,delay:f=100,closeDelay:p=0,handle:m,payload:h,...g}=e,_=LC(!0),v=m?.store??_?.store;if(!v)throw Error(np(85));let y=Wp(u),b=v.useState(`isTriggerActive`,y),x=v.useState(`floatingRootContext`),S=v.useState(`isOpenedByTrigger`,y),C=v.useState(`triggerPopupId`,y),w=r.useRef(null),T=$C(),E=th(!0),D=Mg(),O=r.useMemo(()=>D??new Og,[D]),{registerTrigger:k,isMountedByThisTrigger:A}=m_(y,w,v,{payload:h,closeDelay:p,parent:T,floatingTreeRoot:O,floatingNodeId:Ng(O),floatingParentNodeId:jg(),keyboardEventRelay:E?.relayKeyboardEvent}),j=T.type===`menubar`,M=v.useState(`disabled`),N=o||M||j&&T.context.disabled,{getButtonProps:P,buttonRef:F}=rh({disabled:N,native:s});r.useEffect(()=>{!S&&T.type===void 0&&(v.context.allowMouseUpTriggerRef.current=!1)},[v,S,T.type]);let I=r.useRef(null),L=Lg(),ee=Y(e=>{if(!I.current)return;L.clear(),v.context.allowMouseUpTriggerRef.current=!1;let t=e.target;if(Q(I.current,t)||Q(v.select(`positionerElement`),t)||t===I.current||t!=null&&RC(t)===v.select(`rootId`))return;let n=Rx(I.current);e.clientX>=n.left-ZC&&e.clientX<=n.right+ZC&&e.clientY>=n.top-ZC&&e.clientY<=n.bottom+ZC||O.events.emit(`close`,{domEvent:e,reason:im})});r.useEffect(()=>{S&&v.select(`lastOpenChangeReason`)===`trigger-hover`&&Qg(I.current).addEventListener(`mouseup`,ee,{once:!0})},[S,ee,v]);let R=j&&T.context.hasSubmenuOpen,te=CC(x,{enabled:(d??R)&&!N&&T.type!==`context-menu`&&(!j||R&&!A),handleClose:jC({blockPointerEvents:!j}),mouseOnly:!0,move:!1,restMs:T.type===void 0?f:void 0,delay:{close:p},triggerElementRef:w,externalTree:O,isActiveTrigger:b,isClosing:()=>v.select(`transitionStatus`)===`ending`}),z=QC(S,v.select(`lastOpenChangeReason`)),B=y_(x,{enabled:!N&&T.type!==`context-menu`,event:S&&j?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:T.type===void 0&&z}),ne=JC(x,{enabled:!N&&R}),re=XC({open:S,enabled:j,mouseDownAction:`open`}),ie=r.useMemo(()=>dp(ne.reference,B.reference),[ne.reference,B.reference]),ae=v.useState(`triggerProps`,A),{preFocusGuardRef:V,handlePreFocusGuardFocus:oe,handleFocusTargetFocus:se}=YC(v,w),ce={disabled:N,open:S},le=[I,t,F,k,w],ue=[ie,te??ep,ae,{"aria-haspopup":`menu`,"aria-controls":C,id:y,onMouseDown:e=>{v.select(`open`)||(L.start(200,()=>{v.context.allowMouseUpTriggerRef.current=!0}),Qg(e.currentTarget).addEventListener(`mouseup`,ee,{once:!0}))}},j?{role:`menuitem`}:{},re,g,P],de=Tp(`button`,e,{enabled:!j,stateAttributesMapping:og,state:ce,ref:le,props:ue});return j?c(lS,{tag:`button`,render:n,className:i,style:a,state:ce,refs:le,props:ue,stateAttributesMapping:og}):S?l(r.Fragment,{children:[c(lv,{ref:V,onFocus:oe},`${y}-pre-focus-guard`),c(r.Fragment,{children:de},y),c(lv,{ref:v.context.triggerFocusTargetRef,onFocus:se},`${y}-post-focus-guard`)]}):c(r.Fragment,{children:de},y)});function QC(e,t){let n=Lg(),[i,a]=r.useState(!1);return J(()=>{e&&t===`trigger-hover`?(a(!0),n.start(500,()=>{a(!1)})):e||(n.clear(),a(!1))},[e,t,n]),i}function $C(){let e=FC(!0),t=LC(!0),n=NC(!0);return r.useMemo(()=>n?{type:`menubar`,context:n}:e&&!t?{type:`context-menu`,context:e}:{type:void 0},[e,t,n])}({...sg,...dm}),Ey(),Ey(),{...sg,...dm},{...sg,...dm};var ew={inputValue:()=>null,value:()=>null,...Qy},tw=[`零`,`〇`,`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`],nw=[`٠`,`١`,`٢`,`٣`,`٤`,`٥`,`٦`,`٧`,`٨`,`٩`],rw=[`۰`,`۱`,`۲`,`۳`,`۴`,`۵`,`۶`,`۷`,`۸`,`۹`],iw=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],aw=[`%`,`٪`,`%`,`﹪`],ow=[`‰`,`؉`],sw=[`−`,`-`,`‒`,`–`,`—`,`﹣`],cw=[`+`,`﹢`];RegExp(`[${nw.join(``)}]`,`g`),RegExp(`[${rw.join(``)}]`,`g`),RegExp(`[${iw.join(``)}]`,`g`),RegExp(`[${tw.join(``)}]`,`g`),RegExp(`[${aw.join(``)}]`),RegExp(`[${ow.join(``)}]`),RegExp(`[${iw.join(``)}]`),[...cw],[...sw];var lw=e=>e.replace(/[-\\\]^]/g,e=>`\\${e}`),uw=e=>`[${e.map(lw).join(``)}]`,dw=uw([`-`].concat(sw)),fw=uw([`+`].concat(cw));new RegExp(dw,`gu`),new RegExp(fw,`gu`),new RegExp(dw),new RegExp(fw),{...Qy,...ew},lC.Error,{...sg,...dm},{...sg,...dm},{...Py},X(e=>e.disabled),X(e=>e.instantType),X(e=>e.openMethod),X(e=>e.openChangeReason),X(e=>e.modal),X(e=>e.focusManagerModal),X(e=>e.stickIfOpen),X(e=>e.titleElementId),X(e=>e.descriptionElementId),X(e=>e.openOnHover),X(e=>e.closeDelay),X(e=>e.hasViewport);var pw=r.createContext(void 0);function mw(e){let t=r.useContext(pw);if(t===void 0&&!e)throw Error(np(50));return t}function hw(e,t,n,r){return{left:e,top:t,right:n,bottom:r,x:e,y:t,width:n-e,height:r-t}}function gw(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}function _w(e){let t=[],n,r=1/0,i=1/0,a=-1/0,o=-1/0;for(let s of Array.from(e).sort((e,t)=>e.top-t.top)){if(r=Math.min(r,s.left),i=Math.min(i,s.top),a=Math.max(a,s.right),o=Math.max(o,s.bottom),!n||s.top-n.top>n.height/2)t.push(gw(s));else{let e=t[t.length-1];e.left=Math.min(e.left,s.left),e.right=Math.max(e.right,s.right),e.bottom=Math.max(e.bottom,s.bottom),e.width=e.right-e.left,e.height=e.bottom-e.top}n=s}return{lines:t,fallback:hw(r,i,a,o)}}function vw(e,t,n){return e.findIndex(e=>t>e.left-2&&t<e.right+2&&n>e.top-2&&n<e.bottom+2)}function yw(e,t,n){let{lines:r}=_w(e.getClientRects());if(r.length<2)return;let i=vw(r,t,n);return{x:t,y:n,lineIndex:i===-1?void 0:i,element:e}}function bw(e,t){function n(t){xw(e,t.currentTarget,t.clientX,t.clientY)}function r(e){t||n(e)}return{onFocus(){e.current=void 0},onMouseEnter:n,onMouseMove:r}}function xw(e,t,n,r){let i=yw(t,n,r);return e.current=i,i}({...sg,...dm}),{...sg,...dm},_g(function(e,t){let{render:n,className:i,delay:a,closeDelay:o,id:s,payload:c,handle:l,style:u,...d}=e,f=mw(!0),p=l?.store??f;if(!p)throw Error(np(89));let m=Wp(s),h=p.useState(`isTriggerActive`,m),g=p.useState(`isOpenedByTrigger`,m),_=p.useState(`floatingRootContext`),v=p.context.inlineRectCoordsRef,y=r.useRef(null),b=a??600,x=o??300,{registerTrigger:S,isMountedByThisTrigger:C}=m_(m,y,p,{payload:c});J(()=>{C&&(p.context.closeDelayRef.current=x)},[p,C,x]);let w=CC(_,{mouseOnly:!0,move:!1,handleClose:jC(),delay:()=>({open:b,close:x}),triggerElementRef:y,isActiveTrigger:h,isClosing:()=>p.select(`transitionStatus`)===`ending`}),T=JC(_,{delay:b}),E={open:g},D=p.useState(`triggerProps`,C),O=bw(v,g);return Tp(`a`,e,{state:E,ref:[t,S,y],props:[w,T.reference,D,O,{id:m},d],stateAttributesMapping:ag})});var Sw={...Py,instantType:X(e=>e.instantType),hasViewport:X(e=>e.hasViewport)},Cw=class e extends Eg{constructor(e,t,n=!1){let i=new c_,a={...ww(),...e};a.floatingRootContext=Oy(i,t,n),super(a,{popupRef:r.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:i,closeDelayRef:{current:300},inlineRectCoordsRef:{current:void 0}},Sw)}setOpen=(e,t)=>{let n=t.reason,r=n===Zp,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;let o=t.event;e&&r&&t.trigger&&`clientX`in o&&`clientY`in o&&this.context.inlineRectCoordsRef.current?.element!==t.trigger&&xw(this.context.inlineRectCoordsRef,t.trigger,o.clientX,o.clientY),this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let r={open:e};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),p_(r,e,t.trigger),this.update(r)};r?u.flushSync(s):s()};static useStore(t,n){return d_(t,(t,r)=>new e(n,t,r)).store}};function ww(){return{...Dy(),instantType:void 0,hasViewport:!1}}function Tw(e){let{open:t,defaultOpen:n=!1,onOpenChange:i,onOpenChangeComplete:a,actionsRef:o,handle:s,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=Cw.useStore(s?.store,{open:n,openProp:t,activeTriggerId:d,triggerIdProp:u});v_(()=>{t===void 0&&!1===p.state.open&&!0===n&&p.update({open:!0,activeTriggerId:d})}),p.useControlledProp(`openProp`,t),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,i),p.useContextCallback(`onOpenChangeComplete`,a);let m=p.useState(`open`),h=p.useState(`activeTriggerId`),g=p.useState(`mounted`),_=p.useState(`payload`);h_(p);let{forceUnmount:v}=g_(m,p,()=>{p.context.inlineRectCoordsRef.current=void 0});J(()=>{m&&(h??p.set(`payload`,void 0))},[p,h,m]);let y=r.useCallback(()=>{p.setOpen(!1,Yp(om))},[p]);r.useImperativeHandle(o,()=>({unmount:v,close:y}),[v,y]);let b=m||g;return l(pw.Provider,{value:p,children:[b&&c(Ew,{store:p}),typeof f==`function`?f({payload:_}):f]})}function Ew({store:e}){let t=s_(e.useState(`floatingRootContext`));return __(e,{activeTriggerProps:t.reference??ep,inactiveTriggerProps:t.trigger??ep,popupProps:r.useMemo(()=>dp(u_,t.floating),[t.floating])}),null}gg(function(e){return mw(!0)?c(Tw,{...e}):c(Pg,{children:c(Tw,{...e})})});var Dw=r.createContext(void 0);function Ow(){return r.useContext(Dw)}var kw=function(e){return e.checked=`data-checked`,e.unchecked=`data-unchecked`,e.disabled=`data-disabled`,e.readonly=`data-readonly`,e.required=`data-required`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),Aw={checked(e){return e?{[kw.checked]:``}:{[kw.unchecked]:``}},...dm,...Qy},jw=r.createContext(void 0);function Mw(){let e=r.useContext(jw);if(e===void 0)throw Error(np(52));return e}var Nw=r.forwardRef(function(e,t){let{render:n,className:i,disabled:a=!1,readOnly:o=!1,required:s=!1,"aria-labelledby":u,value:d,inputRef:f,nativeButton:p=!1,id:m,style:h,...g}=e,_=Ow(),{disabled:v,readOnly:y,required:b,form:x,checkedValue:S,touched:C=!1,validation:w,name:T}=_??{},E=_?.setCheckedValue??Qf,D=_?.setTouched??Qf,O=_?.registerControlRef??Qf,k=_?.registerInputRef??Qf,{setDirty:A,validityData:j,setTouched:M,setFilled:N,state:P,disabled:F}=tb(),I=dS(),{labelId:L,getDescriptionProps:ee}=rb(),R=F||I.disabled||v||a,te=y||o,z=b||s,B=x,ne=_?S===d:d===``,re=r.useRef(null),ie=r.useRef(null),ae=Y(e=>{e&&O(e,R)}),V=Kf(f,ie,k);J(()=>{ie.current?.checked&&N(!0)},[N]),J(()=>{if(ie.current){if(R&&ne)return void k(null);re.current&&O(re.current,R),k(ie.current)}},[ne,R,O,k]);let oe=Wp(),se=kx({id:m,implicit:!1,controlRef:re}),ce=p?void 0:se,le=mS(u,L,ie,!p,ce),ue={role:`radio`,"aria-checked":ne,"aria-required":z||void 0,"aria-readonly":te||void 0,"aria-labelledby":le,[rS]:ne?``:void 0,id:p?se:oe,onKeyDown(e){e.key===`Enter`&&e.preventDefault()},onClick(e){if(e.defaultPrevented||R||te)return;e.preventDefault();let t=ie.current;t&&t.dispatchEvent(new(bm(t)).PointerEvent(`click`,{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))},onFocus(e){e.defaultPrevented||R||te||!C||(ie.current?.click(),D(!1))}},{getButtonProps:de,buttonRef:fe}=rh({disabled:R,native:p}),pe={type:`radio`,ref:V,form:B,id:ce,name:T,tabIndex:-1,style:T?S_:x_,"aria-hidden":!0,...d===void 0?ep:{value:Iy(d)},disabled:R,checked:ne,required:z,readOnly:te,onChange(e){if(e.nativeEvent.defaultPrevented||R||te||d===void 0)return;let t=Yp(`none`,e.nativeEvent);t.isCanceled||(M(!0),A(d!==j.initialValue),N(!0),E(d,t))},onFocus(){re.current?.focus()}},me=r.useMemo(()=>({...P,required:z,disabled:R,readOnly:te,checked:ne}),[P,R,te,ne,z]),he=me,ge=_!==void 0,_e=[t,re,fe,ae],ve=[ue,ee,w?.getValidationProps??ep,g,de],ye=Tp(`span`,e,{enabled:!ge,state:me,ref:_e,props:ve,stateAttributesMapping:Aw});return l(jw.Provider,{value:he,children:[ge?c(lS,{tag:`span`,render:n,className:i,style:h,state:me,refs:_e,props:ve,stateAttributesMapping:Aw}):ye,c(`input`,{...pe,suppressHydrationWarning:!0})]})}),Pw=r.forwardRef(function(e,t){let{render:n,className:i,style:a,keepMounted:o=!1,...s}=e,c=Mw(),l=c.checked,{mounted:u,transitionStatus:d,setMounted:f}=zp(l),p={...c,transitionStatus:d},m=r.useRef(null),h=o||u,g=Tp(`span`,e,{ref:[t,m],state:p,props:s,stateAttributesMapping:Aw});return mm({open:l,ref:m,onComplete(){l||f(!1)}}),h?g:null}),Fw={root:`root-Lal8hj`,indicator:`indicator-YyFvol`},Iw={small:12,medium:16,large:20};function Lw({className:e,size:t=Iw.medium,style:n,...r}){return c(Nw,{...r,className:Uf(Fw.root,e,`has-custom-focus`),style:{"--radio-size":`${t}px`,...n}})}var Rw={Root:Lw,Indicator:r.forwardRef(({className:e,...t},n)=>c(Pw,{ref:n,className:Uf(Fw.indicator,e),...t}))},zw={fieldItem:`fieldItem-RyE1Xd`,fieldLabel:`fieldLabel-3Ws24V`,fieldLabelStack:`fieldLabelStack-TwpByX`,fieldLabelText:`fieldLabelText-cfnyvw`,fieldSuffix:`fieldSuffix-SKi6ny`},Bw=r.forwardRef(({checked:e,description:t,descriptionProps:n,disabled:r,error:i,errorProps:a,indicatorProps:o,invalid:s,itemProps:u,label:d,labelProps:f,name:p,onSelect:m,radioProps:h,size:g,suffix:_,value:v,variant:y=`default`,...b},x)=>{let{className:S,onClick:C,...w}=u??{},{className:T,...E}=f??{},{className:D,render:O=c(`span`,{}),...k}=n??{},{className:A,match:j=!0,...M}=a??{},{disabled:N,...P}=h??{},F=r||N,I=t=>{C?.(t),!t.defaultPrevented&&m&&!F&&!e&&m(v)};return l(lC.Root,{...b,ref:x,name:p,disabled:F,invalid:s??!!i,children:[l(lC.Item,{...w,className:Uf(zw.fieldItem,S),"data-variant":y,onClick:I,children:[c(Rw.Root,{value:e?``:v,size:g,disabled:F,...P,children:c(Rw.Indicator,{...o})}),l(lC.Label,{...E,className:Uf(zw.fieldLabel,{[zw.fieldLabelStack]:t},T),children:[l(`span`,{className:zw.fieldLabelText,children:[d,_?c(`span`,{className:zw.fieldSuffix,children:_}):null]}),t?c(lC.Description,{...k,render:O,className:D,children:t}):null]})]}),i?c(lC.Error,{...M,match:j,className:A,children:i}):null]})});Bw.displayName=`RadioField`;var Vw=[`Shift`],Hw=r.forwardRef(function(e,t){let{render:n,className:i,disabled:a,readOnly:o,required:s,onValueChange:l,value:u,defaultValue:d,form:f,name:p,inputRef:m,id:h,style:g,..._}=e,{setTouched:v,setFocused:y,shouldValidateOnChange:b,validationMode:x,name:S,disabled:C,state:w,validation:T,setDirty:E,setFilled:D,validityData:O}=tb(),{labelId:k}=rb(),{clearErrors:A}=Bx(),j=NS(!0),M=C||a,N=S??p,P=Wp(h),[F,I]=jp({controlled:u,default:d,name:`RadioGroup`,state:`value`}),[L,ee]=r.useState(!1),R=Y((e,t)=>{l?.(e,t),!t.isCanceled&&I(e)}),te=r.useRef(null),z=r.useRef(null),B=r.useRef(null);function ne(e){let t;return m&&(typeof m==`function`?t=m(e):m.current=e),z.current=e,T.inputRef.current=e,t}let re=Y((e,t=!1)=>{e&&(t?te.current===e&&(te.current=null):te.current??=e)}),ie=Y(e=>{if(!e||e.disabled)return;B.current||=e;let t=z.current;if(e.checked||t==null||t.disabled)return ne(e)});Vx(te,P,F??null),Uv(F,()=>{A(N),E(F!==O.initialValue),D(F!=null),b()?T.commit(F):T.commit(F,!0);let e=B.current;F==null&&e&&!e.disabled&&ne(e)});let ae=_[`aria-labelledby`]??k??j?.legendId,V={...w,disabled:M??!1,required:s??!1,readOnly:o??!1},oe=r.useMemo(()=>({...w,checkedValue:F,disabled:M,form:f,validation:T,name:N,readOnly:o,registerControlRef:re,registerInputRef:ie,required:s,setCheckedValue:R,setTouched:ee,touched:L}),[F,M,f,T,w,N,o,re,ie,s,R,ee,L]),se={role:`radiogroup`,"aria-required":s||void 0,"aria-disabled":M||void 0,"aria-readonly":o||void 0,"aria-labelledby":ae,onFocus(){y(!0)},onBlur(e){Q(e.currentTarget,e.relatedTarget)||(v(!0),y(!1),x===`onBlur`&&T.commit(F))},onKeyDownCapture(e){e.key.startsWith(`Arrow`)&&(v(!0),ee(!0),y(!0))}};return c(Dw.Provider,{value:oe,children:c(sS,{render:n,className:i,style:g,state:V,props:[se,T.getValidationProps,_],refs:[t],stateAttributesMapping:Qy,enableHomeAndEndKeys:!1,modifierKeys:Vw})})}),Uw={root:`root-kKvIZ_`},Ww=r.forwardRef(({className:e,orientation:t=`vertical`,"aria-orientation":n,...r},i)=>c(Hw,{ref:i,className:Uf(Uw.root,e),"data-orientation":t,"aria-orientation":n??(t===`horizontal`?t:void 0),...r})),Gw={label:`label-JrSYqL`,group:`group-N19s7N`},Kw=r.forwardRef(({label:e,error:t,description:n,variant:i=`default`,withSpacing:a=!1,fluid:o=!1,invalid:s,disabled:u,size:d,children:f,className:p,"aria-label":m,"aria-labelledby":h,...g},_)=>{let v=r.useId(),y=s??!!t,b=r.Children.map(f,e=>{if(!r.isValidElement(e))return e;let t=e.props;return r.cloneElement(e,{variant:t.variant??i,invalid:t.invalid??(y||void 0),size:t.size??d,checked:void 0})});return l(lC.Root,{invalid:y,disabled:u,children:[e==null?null:c(`span`,{id:v,className:Gw.label,children:e}),c(Ww,{ref:_,disabled:u,"aria-label":e==null?m:void 0,"aria-labelledby":e==null?h:h??v,"data-variant":i,"data-spacing":a?``:void 0,"data-fluid":o?``:void 0,className:Uf(Gw.group,p),...g,children:b}),t==null?null:c(lC.Error,{match:y,children:t}),n==null?null:c(lC.Description,{children:n})]})});Kw.displayName=`RadioGroupField`;var qw=r.createContext(void 0),Jw={disableStyleElements:!1};function Yw(){return r.useContext(qw)??Jw}var Xw=`base-ui-disable-scrollbar`,Zw={className:Xw,getElement(e){return c(`style`,{nonce:e,href:Xw,precedence:`base-ui:low`,children:`.${Xw}{scrollbar-width:none}.${Xw}::-webkit-scrollbar{display:none}`})}},Qw=1;function $w(e,t){return Math.max(0,e-t)}function eT(e,t){if(t<=0)return 0;let n=WC(e,0,t),r=n,i=t-n,a=r<=Qw,o=i<=Qw;return a&&o?r<=i?0:t:a?0:o?t:n}var tT=r.createContext(null),nT=r.createContext(null);function rT(){let e=r.useContext(tT);if(e===null)throw Error(np(60));return e}function iT(){let e=r.useContext(nT);if(e===null)throw Error(np(61));return e}var $={id:X(e=>e.id),labelId:X(e=>e.labelId),modal:X(e=>e.modal),multiple:X(e=>e.multiple),items:X(e=>e.items),itemToStringLabel:X(e=>e.itemToStringLabel),itemToStringValue:X(e=>e.itemToStringValue),isItemEqualToValue:X(e=>e.isItemEqualToValue),value:X(e=>e.value),hasSelectedValue:X(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Gy(t,r)!==``}),hasNullItemLabel:X((e,t)=>t?Uy(e.items):!1),open:X(e=>e.open),mounted:X(e=>e.mounted),forceMount:X(e=>e.forceMount),transitionStatus:X(e=>e.transitionStatus),openMethod:X(e=>e.openMethod),activeIndex:X(e=>e.activeIndex),selectedIndex:X(e=>e.selectedIndex),isActive:X((e,t)=>e.activeIndex===t),isSelected:X((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>Ry(n,e,r)):e.selectedIndex===t&&e.selectedIndex!==null||Ry(n,i,r)}),isSelectedByFocus:X((e,t)=>e.selectedIndex===t),popupProps:X(e=>e.popupProps),triggerProps:X(e=>e.triggerProps),triggerElement:X(e=>e.triggerElement),positionerElement:X(e=>e.positionerElement),listElement:X(e=>e.listElement),popupSide:X(e=>e.popupSide),scrollUpArrowVisible:X(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:X(e=>e.scrollDownArrowVisible),hasScrollArrows:X(e=>e.hasScrollArrows)},aT=r.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=a;delete o.id;let s=tb(),{store:c}=rT(),l=Z(c,$.triggerElement),u=Z(c,$.id),d=FS({id:ib(u),fallbackControlId:l?.id??u,setLabelId(e){c.set(`labelId`,e)}});return Tp(`div`,e,{ref:t,state:s.state,props:[d,a],stateAttributesMapping:Qy})}),oT=2,sT=400,cT={...og,...Qy,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},lT=r.forwardRef(function(e,t){let{render:n,className:i,id:a,disabled:o=!1,nativeButton:s=!0,style:c,...l}=e,{setTouched:u,setFocused:d,validationMode:f,state:p,disabled:m}=tb(),{labelId:h}=rb(),{store:g,setOpen:_,selectionRef:v,validation:y,readOnly:b,required:x,alignItemWithTriggerActiveRef:S,disabled:C,keyboardActiveRef:w}=rT(),T=m||C||o,E=Z(g,$.open),D=Z(g,$.mounted),O=Z(g,$.value),k=Z(g,$.triggerProps),A=Z(g,$.positionerElement),j=Z(g,$.listElement),M=Z(g,$.popupSide),N=Z(g,$.id),P=Z(g,$.labelId),F=Z(g,$.hasSelectedValue),I=D&&A?M:null,L=a??N,ee=ab(h,P);kx({id:L});let R=hm(A),te=r.useRef(null),{getButtonProps:z,buttonRef:B}=rh({disabled:T,native:s}),ne=Kf(t,te,B,Y(e=>{g.set(`triggerElement`,e)})),re=Lg(),ie=Lg(),ae=Lg();r.useEffect(()=>{if(E)return ae.start(sT,()=>{v.current.allowUnselectedMouseUp=!0,v.current.allowSelectedMouseUp=!0}),()=>{ae.clear()};v.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},ie.clear()},[E,v,ie,ae]);let V=dp(k,{id:L,role:`combobox`,"aria-expanded":E?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":E?j?.id??Zg(A)?.id:void 0,"aria-labelledby":ee,"aria-readonly":b||void 0,"aria-required":x||void 0,tabIndex:T?-1:0,ref:ne,onFocus(e){d(!0),E&&S.current&&_(!1,Yp(`none`,e.nativeEvent)),re.start(0,()=>{g.set(`forceMount`,!0)})},onBlur(e){Q(A,e.relatedTarget)||(u(!0),d(!1),f===`onBlur`&&y.commit(O))},onPointerMove(){w.current=!1},onKeyDown(){w.current=!0},onMouseDown(e){if(E)return;let t=Qg(e.currentTarget);function n(e){if(!te.current)return;let t=e.target;if(Q(te.current,t)||Q(R.current,t)||t===te.current)return;let n=Rx(te.current);e.clientX>=n.left-oT&&e.clientX<=n.right+oT&&e.clientY>=n.top-oT&&e.clientY<=n.bottom+oT||_(!1,Yp(im,e))}ie.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},y.getValidationProps,l,z);V.role=`combobox`;let oe={...p,open:E,disabled:T,value:O,readOnly:b,popupSide:I,placeholder:!F};return Tp(`button`,e,{ref:[t,te],state:oe,stateAttributesMapping:cT,props:V})}),uT={value:()=>null},dT=r.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:l}=rT(),u=Z(c,$.value),d=Z(c,$.items),f=Z(c,$.itemToStringLabel),p=Z(c,$.hasSelectedValue),m=!p&&a!=null&&i==null,h=Z(c,$.hasNullItemLabel,m),g={value:u,placeholder:!p},_=null;return _=typeof i==`function`?i(u):i??(p||a==null||h?Array.isArray(u)?qy(u,d,f):Ky(u,d,f):a),Tp(`span`,e,{state:g,ref:[t,l],props:[{children:_},s],stateAttributesMapping:uT})}),fT=r.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=rT();return Tp(`span`,e,{state:{open:Z(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:ag})}),pT={...sg,...dm},mT=r.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=rT(),s=Z(o,$.open),c=Z(o,$.mounted);return Tp(`div`,e,{state:{open:s,transitionStatus:Z(o,$.transitionStatus)},ref:t,props:[{role:`presentation`,hidden:!c,style:{userSelect:`none`,WebkitUserSelect:`none`}},a],stateAttributesMapping:pT})}),hT=r.createContext(void 0);function gT(){let e=r.useContext(hT);if(!e)throw Error(np(59));return e}function _T(e,t){e&&Object.assign(e.style,t)}var vT={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},yT={position:`fixed`},bT=r.forwardRef(function(e,t){let{anchor:n,positionMethod:i=`absolute`,className:a,render:o,side:s=`bottom`,align:u=`center`,sideOffset:d=0,alignOffset:f=0,collisionBoundary:p=`clipping-ancestors`,collisionPadding:m,arrowPadding:h=5,sticky:g=!1,disableAnchorTracking:_,alignItemWithTrigger:v=!0,collisionAvoidance:y=Iv,style:b,...x}=e,{store:S,listRef:C,labelsRef:w,alignItemWithTriggerActiveRef:T,selectedItemTextRef:E,valuesRef:D,initialValueRef:O,popupRef:k,setValue:A}=rT(),j=iT(),M=Z(S,$.open),N=Z(S,$.mounted),P=Z(S,$.modal),F=Z(S,$.value),I=Z(S,$.openMethod),L=Z(S,$.positionerElement),ee=Z(S,$.triggerElement),R=Z(S,$.isItemEqualToValue),te=Z(S,$.transitionStatus),z=r.useRef(null),B=r.useRef(null),[ne,re]=r.useState(v),ie=N&&ne&&I!==`touch`;!N&&ne!==v&&re(v),J(()=>{N||($.scrollUpArrowVisible(S.state)&&S.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(S.state)&&S.set(`scrollDownArrowVisible`,!1))},[S,N]),r.useImperativeHandle(T,()=>ie),Ox((ie||P)&&M,I===`touch`,L,ee);let ae=Cx({anchor:n,floatingRootContext:j,positionMethod:i,mounted:N,side:s,sideOffset:d,align:u,alignOffset:f,arrowPadding:h,collisionBoundary:p,collisionPadding:m,sticky:g,disableAnchorTracking:_??ie,collisionAvoidance:y,keepMounted:!0}),V=ie?`none`:ae.side,oe=ie?yT:ae.positionerStyles,se={open:M,side:V,align:ae.align,anchorHidden:ae.anchorHidden};J(()=>{S.set(`popupSide`,ae.side)},[S,ae.side]);let ce=Ex(e,se,{styles:oe,transitionStatus:te,props:x,refs:[t,Y(e=>{S.set(`positionerElement`,e)})],hidden:!N,inert:!M}),le=r.useRef(0),ue=Y(e=>{if(e.size===0&&le.current===0||D.current.length===0)return;let t=le.current;if(le.current=e.size,e.size===t)return;let n=Yp(`none`);if(t!==0&&!S.state.multiple&&F!==null&&By(D.current,F,R)===-1){let e=O.current,t=e!=null&&By(D.current,e,R)!==-1?e:null;A(t,n),t===null&&(S.set(`selectedIndex`,null),E.current=null)}if(t!==0&&S.state.multiple&&Array.isArray(F)){let e=e=>By(D.current,e,R)!==-1,t=F.filter(t=>e(t));(t.length!==F.length||t.some(e=>!zy(F,e,R)))&&(A(t,n),t.length===0&&(S.set(`selectedIndex`,null),E.current=null))}if(M&&ie){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};_T(L,e),_T(k.current,e)}}),de=r.useMemo(()=>({...ae,side:V,alignItemWithTriggerActive:ie,setControlledAlignItemWithTrigger:re,scrollUpArrowRef:z,scrollDownArrowRef:B}),[ae,V,ie,re]);return c(Gh,{elementsRef:C,labelsRef:w,onMapChange:ue,children:l(hT.Provider,{value:de,children:[N&&P&&c(Ty,{inert:Fy(!M),cutout:ee}),ce]})})}),xT={...sg,...dm},ST=r.forwardRef(function(e,t){let{render:n,className:i,style:a,finalFocus:o,...s}=e,{store:u,popupRef:d,onOpenChangeComplete:f,setOpen:p,valueRef:m,firstItemTextRef:h,selectedItemTextRef:g,keyboardActiveRef:_,multiple:v,handleScrollArrowVisibility:y,scrollHandlerRef:b,listRef:x,highlightItemOnHover:S}=rT(),{side:C,align:w,alignItemWithTriggerActive:T,isPositioned:E,setControlledAlignItemWithTrigger:D,scrollDownArrowRef:O,scrollUpArrowRef:k}=gT(),A=xC(!0)!=null,j=iT(),M=Wh(),{nonce:N,disableStyleElements:P}=Yw(),F=Z(u,$.id),I=Z(u,$.open),L=Z(u,$.mounted),ee=Z(u,$.popupProps),R=Z(u,$.transitionStatus),te=Z(u,$.triggerElement),z=Z(u,$.positionerElement),B=Z(u,$.listElement),ne=r.useRef(!1),re=r.useRef(!1),ie=r.useRef({}),ae=Rp(),V=Y(e=>{if(!z||!d.current||!re.current)return;if(ne.current||!T)return void y();let t=z.style.top===`0px`,n=z.style.bottom===`0px`;if(!t&&!n)return void y();let r=TT(z),i=ET(z.getBoundingClientRect().height,`y`,r),a=Qg(z),o=getComputedStyle(z),s=parseFloat(o.marginTop),c=parseFloat(o.marginBottom),l=CT(getComputedStyle(d.current)),u=Math.min(a.documentElement.clientHeight-s-c,l),f=e.scrollTop,p=wT(e),m=0,h=null,g=!1,_=!1,v=e=>{z.style.height=`${e}px`},b=(t,n)=>{let r=WC(t,0,u-i);r>0&&v(i+r),e.scrollTop=n,u-(i+r)<=1&&(ne.current=!0),y()},x=t?p-f:f,S=Math.min(i+x,u);if(m=S,x<=1)return void b(x,t?p:0);if(u-S>1?t?_=!0:h=0:(g=!0,n&&f<p&&(h=f-(x-(i+x-u)))),m=Math.ceil(m),m!==0&&v(m),_||h!=null){let t=wT(e),n=_?t:WC(h,0,t);Math.abs(e.scrollTop-n)>1&&(e.scrollTop=n)}(g||m>=u-1)&&(ne.current=!0),y()});r.useImperativeHandle(b,()=>V,[V]),mm({open:I,ref:d,onComplete(){I&&f?.(!0)}});let oe={open:I,transitionStatus:R,side:C,align:w};J(()=>{z&&d.current&&!Object.keys(ie.current).length&&(ie.current={top:z.style.top||`0`,left:z.style.left||`0`,right:z.style.right,height:z.style.height,bottom:z.style.bottom,minHeight:z.style.minHeight,maxHeight:z.style.maxHeight,marginTop:z.style.marginTop,marginBottom:z.style.marginBottom})},[d,z]),J(()=>{I||T||(re.current=!1,ne.current=!1,_T(z,ie.current))},[I,T,z,d]),J(()=>{let e=d.current;if(!I||!te||!z||!e||T&&!E||u.state.transitionStatus===`ending`)return;if(!T){re.current=!0,ae.request(y),e.style.removeProperty(`--transform-origin`);return}let t=kT(e);e.style.removeProperty(`--transform-origin`);try{let t=g.current;t?.isConnected||(t=!$.hasSelectedValue(u.state)&&h.current?.isConnected?h.current:null);let n=m.current,r=getComputedStyle(z),i=getComputedStyle(e),a=Qg(te),o=bm(z),s=TT(te),c=DT(te.getBoundingClientRect(),s),l=DT(z.getBoundingClientRect(),s),d=c.height,f=B||e,p=f.scrollHeight,_=parseFloat(i.borderBottomWidth),v=parseFloat(r.marginTop)||10,b=parseFloat(r.marginBottom)||10,C=parseFloat(r.minHeight)||100,w=CT(i),T=a.documentElement.clientHeight-v-b,E=a.documentElement.clientWidth,O=T-c.bottom+d,k,A=M===`rtl`?c.right-l.width:c.left,j=0;if(t&&n){let e=DT(n.getBoundingClientRect(),s);k=DT(t.getBoundingClientRect(),s),A=l.left+(M===`rtl`?e.right-k.right:e.left-k.left);let r=e.top-c.top+e.height/2;j=k.top-l.top+k.height/2-r}let N=O+j+b+_,P=Math.min(T,N),F=T-v-b,I=N-P,L=E-5;z.style.left=`${WC(A,5,L-l.width)}px`,z.style.height=`${P}px`,z.style.maxHeight=`auto`,z.style.marginTop=`${v}px`,z.style.marginBottom=`${b}px`,e.style.height=`100%`;let ee=wT(f),R=I>=ee-1;R&&(P=Math.min(T,l.height)-(I-ee));let ae=c.top<20||c.bottom>T-20||Math.ceil(P)+1<Math.min(p,C),V=(o.visualViewport?.scale??1)!==1&&Oh;if(ae||V){re.current=!0,_T(z,ie.current),D(!1);return}let oe=Math.max(C,P);if(R){let e=Math.max(0,T-N);z.style.top=l.height>=F?`0`:`${e}px`,z.style.height=`${P}px`,f.scrollTop=wT(f)}else z.style.bottom=`0`,f.scrollTop=I;if(k){let t=l.top,n=l.height,r=k.top+k.height/2,i=WC(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(oe===T||P>=w)&&(ne.current=!0),y(),S&&u.state.selectedIndex===null&&u.state.activeIndex===null&&x.current[0]!=null&&u.set(`activeIndex`,0),re.current=!0}finally{t()}},[u,I,z,te,m,h,g,d,y,T,D,ae,O,k,B,x,S,M,E]),r.useEffect(()=>{if(!T||!z||!I)return;let e=bm(z);function t(e){p(!1,Yp(sm,e))}return _m(e,`resize`,t)},[p,T,z,I]);let se={...B?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":v||void 0,id:`${F}-list`},onKeyDown(e){_.current=!0,A&&_h.has(e.key)&&e.stopPropagation()},onMouseMove(){_.current=!1},onScroll(e){B||V(e.currentTarget)},...T&&{style:B?{height:`100%`}:vT}},ce=Tp(`div`,e,{ref:[t,d],state:oe,stateAttributesMapping:xT,props:[ee,se,Tx(R),{className:!B&&T?Zw.className:void 0},s]});return l(r.Fragment,{children:[!P&&Zw.getElement(N),c(fy,{context:j,modal:!1,disabled:!L,returnFocus:o,restoreFocus:!0,children:ce})]})});function CT(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function wT(e){return $w(e.scrollHeight,e.clientHeight)}function TT(e){return Kb.getScale(e)}function ET(e,t,n){return e/n[t]}function DT(e,t){return X_({x:ET(e.x,`x`,t),y:ET(e.y,`y`,t),width:ET(e.width,`x`,t),height:ET(e.height,`y`,t)})}var OT=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function kT(e){let{style:t}=e,n={};for(let[e,r]of OT)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of OT){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var AT=r.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=rT(),{alignItemWithTriggerActive:c}=gT(),l=Z(o,$.hasScrollArrows),u=Z(o,$.openMethod),d=Z(o,$.multiple),f={id:`${Z(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":d||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:vT},className:l&&u!==`touch`?Zw.className:void 0};return Tp(`div`,e,{ref:[t,Y(e=>{o.set(`listElement`,e)})],props:[f,a]})}),jT=r.createContext(void 0);function MT(){let e=r.useContext(jT);if(!e)throw Error(np(57));return e}var NT=r.memo(r.forwardRef(function(e,t){let{render:n,className:i,style:a,value:o=null,label:s,disabled:l=!1,nativeButton:u=!1,...d}=e,f=r.useRef(null),p=Qm({label:s,textRef:f,indexGuessBehavior:Zm.GuessFromOrder}),{store:m,itemProps:h,setOpen:g,setValue:_,selectionRef:v,typingRef:y,valuesRef:b,multiple:x,selectedItemTextRef:S}=rT(),C=Z(m,$.isActive,p.index),w=Z(m,$.isSelected,p.index,o),T=Z(m,$.isSelectedByFocus,p.index),E=Z(m,$.isItemEqualToValue),D=p.index,O=D!==-1,k=r.useRef(null);J(()=>{if(!O)return;let e=b.current;return e[D]=o,()=>{delete e[D]}},[O,D,o,b]),J(()=>{if(!O)return;let e=m.state.value,t=e;x&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&&Ry(o,t,E)&&(m.set(`selectedIndex`,D),f.current&&(S.current=f.current))},[O,D,x,E,m,o,S]);let A=r.useRef(null),j=r.useRef(`mouse`),M=r.useRef(!1),{getButtonProps:N,buttonRef:P}=rh({disabled:l,focusableWhenDisabled:!0,native:u,composite:!0}),F={disabled:l,selected:w,highlighted:C};function I(e){let t=m.state.value;if(x){let n=Array.isArray(t)?t:[],r=w?Vy(n,o,E):[...n,o];_(r,Yp(em,e))}else _(o,Yp(em,e)),g(!1,Yp(em,e))}function L(){v.current.dragY=0}let ee={role:`option`,"aria-selected":w,tabIndex:C?0:-1,onKeyDown(e){A.current=e.key,m.set(`activeIndex`,D),e.key===` `&&y.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&j.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&zh(e.nativeEvent)&&(n!==void 0||C),i=t&&!r&&!M.current;M.current=!1,(e.type!==`keydown`||A.current!==null)&&(l||e.type===`keydown`&&A.current===` `&&y.current||i||(A.current=null,I(e.nativeEvent)))},onPointerEnter(e){j.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=v.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){j.current=e.pointerType,M.current=!0,L()},onMouseUp(){if(L(),l||j.current===`touch`||M.current)return;let e=!v.current.allowSelectedMouseUp&&w,t=!v.current.allowUnselectedMouseUp&&!w;e||t||(M.current=!0,k.current?.click(),M.current=!1)}},R=Tp(`div`,e,{ref:[P,t,p.ref,k],state:F,props:[h,ee,d,N]}),te=r.useMemo(()=>({selected:w,index:D,textRef:f,selectedByFocus:T,hasRegistered:O}),[w,D,f,T,O]);return c(jT.Provider,{value:te,children:R})})),PT=r.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=MT();return n||r?c(FT,{...e,ref:t}):null}),FT=r.memo(r.forwardRef((e,t)=>{let{render:n,className:i,style:a,keepMounted:o,...s}=e,{selected:c}=MT(),l=r.useRef(null),{transitionStatus:u,setMounted:d}=zp(c),f=Tp(`span`,e,{ref:[t,l],state:{selected:c,transitionStatus:u},props:[{"aria-hidden":!0,children:`✔️`},s],stateAttributesMapping:dm});return mm({open:c,ref:l,onComplete(){c||d(!1)}}),f})),IT=r.memo(r.forwardRef(function(e,t){let{index:n,textRef:i,selectedByFocus:a,hasRegistered:o}=MT(),{firstItemTextRef:s,selectedItemTextRef:c}=rT(),{render:l,className:u,style:d,...f}=e;return Tp(`div`,e,{ref:[r.useCallback(e=>{e&&(o&&n===0&&(s.current=e),o&&a&&(c.current=e))},[s,c,n,a,o]),t,i],props:f})})),LT={...sg,...dm},RT=r.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=rT(),{side:s,align:c,arrowRef:l,arrowStyles:u,arrowUncentered:d,alignItemWithTriggerActive:f}=gT(),p=Tp(`div`,e,{state:{open:Z(o,$.open,!0),side:s,align:c,uncentered:d},ref:[l,t],props:[{style:u,"aria-hidden":!0},a],stateAttributesMapping:LT});return f?null:p}),zT=r.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:l,popupRef:u,listRef:d,handleScrollArrowVisibility:f,scrollArrowsMountedCountRef:p}=rT(),{side:m,scrollDownArrowRef:h,scrollUpArrowRef:g}=gT(),_=Z(l,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),v=Z(l,$.openMethod),y=_&&v!==`touch`,b=Lg(),x=c?g:h,{transitionStatus:S,setMounted:C}=zp(y);J(()=>(p.current+=1,l.state.hasScrollArrows||l.set(`hasScrollArrows`,!0),()=>{p.current=Math.max(0,p.current-1),p.current===0&&l.state.hasScrollArrows&&l.set(`hasScrollArrows`,!1)}),[l,p]),mm({open:y,ref:x,onComplete(){y||C(!1)}});let w=Tp(`div`,e,{ref:[t,x],state:{direction:a,visible:y,side:m,transitionStatus:S},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||b.isStarted())return;l.set(`activeIndex`,null);function t(){let e=l.state.listElement??u.current;if(!e)return;l.set(`activeIndex`,null),f();let n=$w(e.scrollHeight,e.clientHeight),r=eT(e.scrollTop,n),i=r===(c?0:n),a=d.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&l.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i)return void b.clear();if(a.length>0){let t=x.current?.offsetHeight||0;e.scrollTop=BT(a,c,r,e.clientHeight,t,n)}b.start(40,t)}b.start(40,t)},onMouseLeave(){b.clear()}},s]});return y||o?w:null});function BT(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return o<t&&s?eT(s.offsetTop-i,a):0}let o=e.length-1,s=n+r-i+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>s){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?eT(l.offsetTop+l.offsetHeight-r+i,a):a}var VT=r.forwardRef(function(e,t){return c(zT,{...e,ref:t,direction:`down`})}),HT=r.forwardRef(function(e,t){return c(zT,{...e,ref:t,direction:`up`})}),UT=r.createContext(void 0);function WT(){let e=r.useContext(UT);if(e===void 0)throw Error(np(56));return e}var GT=r.forwardRef(function(e,t){let{render:n,className:i,style:a,...o}=e,[s,l]=r.useState(),u=r.useMemo(()=>({labelId:s,setLabelId:l}),[s,l]),d=Tp(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":s},o]});return c(UT.Provider,{value:u,children:d})}),KT=r.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=WT(),c=Wp(a);return J(()=>{s(c)},[c,s]),Tp(`div`,e,{ref:t,props:[{id:c},o]})});function qT(e){let{id:t,value:n,defaultValue:i=null,onValueChange:a,open:o,defaultOpen:s=!1,onOpenChange:u,name:d,form:f,autoComplete:p,disabled:m=!1,readOnly:h=!1,required:g=!1,modal:_=!0,actionsRef:v,inputRef:y,onOpenChangeComplete:b,items:x,multiple:S=!1,itemToStringLabel:C,itemToStringValue:w,isItemEqualToValue:T=Ly,highlightItemOnHover:E=!0,children:D}=e,{clearErrors:O}=Bx(),{setDirty:k,setTouched:A,setFocused:j,shouldValidateOnChange:M,validityData:N,setFilled:P,name:F,disabled:I,validation:L,validationMode:ee}=tb(),R=kx({id:t}),te=I||m,z=F??d,[B,ne]=jp({controlled:n,default:S?i??$f:i,name:`Select`,state:`value`}),[re,ie]=jp({controlled:o,default:s,name:`Select`,state:`open`}),ae=r.useRef([]),V=r.useRef([]),oe=r.useRef(null),se=r.useRef(null),ce=r.useRef(0),le=r.useRef(null),ue=r.useRef([]),de=r.useRef(!1),fe=r.useRef(!1),pe=r.useRef(null),me=r.useRef(null),he=r.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ge=r.useRef(!1),{mounted:_e,setMounted:ve,transitionStatus:ye}=zp(re),{openMethod:be,triggerProps:xe}=hy(re),Se=Gf(()=>new Tg({id:R,labelId:void 0,modal:_,multiple:S,itemToStringLabel:C,itemToStringValue:w,isItemEqualToValue:T,value:B,open:re,mounted:_e,transitionStatus:ye,items:x,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,Ce=Z(Se,$.activeIndex),we=Z(Se,$.selectedIndex),Te=Z(Se,$.triggerElement),Ee=Z(Se,$.positionerElement),De=KC(be),Oe=be??De,ke=r.useMemo(()=>S&&Array.isArray(B)&&B.length===0?``:Gy(B,w),[S,B,w]),Ae=r.useMemo(()=>S&&Array.isArray(B)?B.map(e=>Gy(e,w)):Gy(B,w),[S,B,w]);Vx(hm(Se.state.triggerElement),R,B,Y(()=>Ae));let je=r.useRef(B),Me=S?Array.isArray(B)&&B.length>0:B!=null;J(()=>{B!==je.current&&Se.set(`forceMount`,!0)},[Se,B]),J(()=>{P(Me)},[Me,P]),J(function(){let e=ue.current,t;if(S){let n=Array.isArray(B)?B:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=By(e,r,T);t=i===-1?null:i}}else{let n=By(e,B,T);t=n===-1?null:n}t===null&&(me.current=null),!re&&Se.set(`selectedIndex`,t)},[Me,S,re,B,ue,T,Se,me]),Uv(B,()=>{O(z),k(B!==N.initialValue),M()?L.commit(B):L.commit(B,!0)});let Ne=Y((e,t)=>{if(u?.(e,t),!t.isCanceled&&(ie(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(A(!0),j(!1),ee===`onBlur`&&L.commit(B)),!e&&Se.state.activeIndex!==null)){let e=ae.current[Se.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),Pe=Y(()=>{ve(!1),Se.update({activeIndex:null,openMethod:null}),b?.(!1)});mm({enabled:!v,open:re,ref:oe,onComplete(){re||Pe()}}),r.useImperativeHandle(v,()=>({unmount:Pe}),[Pe]);let Fe=Y((e,t)=>{a?.(e,t),!t.isCanceled&&ne(e)}),Ie=Y(()=>{let e=Se.state.listElement||oe.current;if(!e)return;let t=$w(e.scrollHeight,e.clientHeight),n=eT(e.scrollTop,t),r=n>0,i=n<t;Se.state.scrollUpArrowVisible!==r&&Se.set(`scrollUpArrowVisible`,r),Se.state.scrollDownArrowVisible!==i&&Se.set(`scrollDownArrowVisible`,i)}),Le=hx({open:re,onOpenChange:Ne,elements:{reference:Te,floating:Ee}}),Re=y_(Le,{enabled:!h&&!te,event:`mousedown`}),ze=s_(Le),Be=Lx(Le,{enabled:!h&&!te,listRef:ae,activeIndex:Ce,selectedIndex:we,disabledIndices:$f,onNavigate(e){(e!==null||re)&&Se.set(`activeIndex`,e)},focusItemOnHover:E}),H=Ax(Le,{enabled:!h&&!te&&(re||!S),listRef:V,activeIndex:Ce,selectedIndex:we,onMatch(e){re?Se.set(`activeIndex`,e):Fe(ue.current[e],Yp(`none`))},onTyping(e){de.current=e}}),U=r.useMemo(()=>{let e=dp(H.reference,Be.reference,ze.reference,Re.reference,xe);return R&&(e.id=R),e},[Re.reference,H.reference,Be.reference,ze.reference,xe,R]),Ve=r.useMemo(()=>dp(u_,H.floating,Be.floating,ze.floating),[H.floating,Be.floating,ze.floating]),W=Be.item??ep;v_(()=>{Se.update({popupProps:Ve,triggerProps:U})}),J(()=>{Se.update({id:R,modal:_,multiple:S,value:B,open:re,mounted:_e,transitionStatus:ye,popupProps:Ve,triggerProps:U,items:x,itemToStringLabel:C,itemToStringValue:w,isItemEqualToValue:T,openMethod:Oe})},[Se,R,_,S,B,re,_e,ye,Ve,U,x,C,w,T,Oe]);let He=r.useMemo(()=>({store:Se,name:z,required:g,disabled:te,readOnly:h,multiple:S,highlightItemOnHover:E,setValue:Fe,setOpen:Ne,listRef:ae,popupRef:oe,scrollHandlerRef:se,handleScrollArrowVisibility:Ie,scrollArrowsMountedCountRef:ce,itemProps:W,events:Le.context.events,valueRef:le,valuesRef:ue,labelsRef:V,typingRef:de,selectionRef:he,firstItemTextRef:pe,selectedItemTextRef:me,validation:L,onOpenChangeComplete:b,keyboardActiveRef:fe,alignItemWithTriggerActiveRef:ge,initialValueRef:je}),[Se,z,g,te,h,S,E,Fe,Ne,W,Le.context.events,L,b,Ie]),Ue=Kf(y,L.inputRef),We=S&&Array.isArray(B)&&B.length>0,Ge=S?void 0:z,Ke=r.useMemo(()=>!S||!Array.isArray(B)||!z?null:B.map(e=>{let t=Gy(e,w);return c(`input`,{type:`hidden`,form:f,name:z,value:t},t)}),[S,B,f,z,w]);return c(tT.Provider,{value:He,children:l(nT.Provider,{value:Le,children:[D,c(`input`,{...L.getInputValidationProps({onFocus(){Se.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||te||h)return void e.preventBaseUIHandler?.();let t=e.currentTarget.value,n=Yp(`none`,e.nativeEvent);function r(){if(S)return;let e=ue.current.find(e=>Gy(e,w).toLowerCase()===t.toLowerCase()||Wy(e,C).toLowerCase()===t.toLowerCase());e!=null&&(k(e!==N.initialValue),Fe(e,n),M()&&L.commit(e))}Se.set(`forceMount`,!0),queueMicrotask(r)}}),id:R&&Ge==null?`${R}-hidden-input`:void 0,form:f,name:Ge,autoComplete:p,value:ke,disabled:te,required:g&&!We,readOnly:h,ref:Ue,style:z?S_:x_,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Ke]})})}var JT=r.createContext(void 0),YT=r.forwardRef(function(e,t){let{store:n}=rT(),r=Z(n,$.mounted),i=Z(n,$.forceMount);return r||i?c(JT.Provider,{value:!0,children:c(Hv,{ref:t,...e})}):null}),XT={label:`label-UrIm_f`,fieldLabel:`fieldLabel-KieHgU`,requiredMarker:`requiredMarker-ZRoZQT`,trigger:`trigger-UPubf5`,value:`value-fKND1Z`,icon:`icon-_ToIv8`,backdrop:`backdrop-kGw5mZ`,positioner:`positioner-rz27gX`,popup:`popup-BEvbSY`,list:`list-fTpwcL`,item:`item-SBIvtk`,itemText:`itemText-tVdjcF`,itemContent:`itemContent-N1nRUK`,itemDescription:`itemDescription-MNvNbs`,itemIcon:`itemIcon-ASIDFq`,itemSuffix:`itemSuffix-h2RKor`,itemIndicator:`itemIndicator-qlxJA4`,arrow:`arrow-TRzfpO`,scrollDownArrow:`scrollDownArrow-mffvLs`,scrollUpArrow:`scrollUpArrow-P67Eti`,groupLabel:`groupLabel-GC3RgN`,separator:`separator-XEtOy2`,loadingIndicator:`loadingIndicator-X_6SEg`,loadingIndicatorSpin:`loadingIndicatorSpin-xPUyVe`},ZT={Root:qT,Label:r.forwardRef(({className:e,...t},n)=>c(aT,{ref:n,className:Uf(XT.label,e),...t})),Trigger:r.forwardRef(({className:e,...t},n)=>c(lT,{ref:n,className:Uf(XT.trigger,e),...t})),Value:r.forwardRef(({className:e,...t},n)=>c(dT,{ref:n,className:Uf(XT.value,e),...t})),Icon:r.forwardRef(({className:e,...t},n)=>c(fT,{ref:n,className:Uf(XT.icon,e),...t})),Portal:YT,Backdrop:r.forwardRef(({className:e,...t},n)=>c(mT,{ref:n,className:Uf(XT.backdrop,e),...t})),Positioner:r.forwardRef(({className:e,...t},n)=>c(bT,{ref:n,className:Uf(XT.positioner,e),...t})),Popup:r.forwardRef(({className:e,...t},n)=>c(ST,{ref:n,className:Uf(XT.popup,e),...t})),List:r.forwardRef(({className:e,...t},n)=>c(AT,{ref:n,className:Uf(XT.list,e),...t})),Item:r.forwardRef(({className:e,...t},n)=>c(NT,{ref:n,className:Uf(XT.item,e),...t})),ItemIndicator:r.forwardRef(({className:e,...t},n)=>c(PT,{ref:n,className:Uf(XT.itemIndicator,e),...t})),ItemText:r.forwardRef(({className:e,...t},n)=>c(IT,{ref:n,className:Uf(XT.itemText,e),...t})),Arrow:r.forwardRef(({className:e,...t},n)=>c(RT,{ref:n,className:Uf(XT.arrow,e),...t})),ScrollDownArrow:r.forwardRef(({className:e,...t},n)=>c(VT,{ref:n,className:Uf(XT.scrollDownArrow,e),...t})),ScrollUpArrow:r.forwardRef(({className:e,...t},n)=>c(HT,{ref:n,className:Uf(XT.scrollUpArrow,e),...t})),Group:r.forwardRef(({className:e,...t},n)=>c(GT,{ref:n,className:Uf(XT.group,e),...t})),GroupLabel:r.forwardRef(({className:e,...t},n)=>c(KT,{ref:n,className:Uf(XT.groupLabel,e),...t})),Separator:r.forwardRef(({className:e,...t},n)=>c(Hx,{ref:n,className:Uf(XT.separator,e),...t}))},QT=e=>`divider`in e,$T=e=>`groupLabel`in e;function eE(e){let{value:t,label:n,disabled:r,icon:i,description:a,suffix:o}=e,u=n??t,d=i!=null||a!=null||o!=null;return c(ZT.Item,{value:t,disabled:r,children:d?l(s,{children:[i==null?null:c(`span`,{className:XT.itemIcon,"aria-hidden":`true`,children:i}),l(`div`,{className:XT.itemContent,children:[c(ZT.ItemText,{children:u}),a==null?null:c(`div`,{className:XT.itemDescription,children:a})]}),o==null?null:c(`span`,{className:XT.itemSuffix,children:o})]}):c(ZT.ItemText,{children:u})},t)}var tE=r.forwardRef(({options:e,label:t,"aria-label":n,placeholder:r,description:i,error:a,variant:o=`floating`,alignment:s=`start`,invalid:u=!1,loading:d=!1,required:f=!1,disabled:p=!1,readOnly:m,icon:h=c(zf,{}),outerBorder:g=!1,sideOffset:_=4,dir:v,triggerClassName:y,popupClassName:b,...x},S)=>c(lC.Root,{invalid:u,disabled:p,children:l(ZT.Root,{readOnly:m||d,required:f,disabled:p,...x,children:[t==null?null:l(ZT.Label,{className:XT.fieldLabel,children:[t,f?c(`span`,{className:XT.requiredMarker,"aria-hidden":`true`,children:`*`}):null]}),l(ZT.Trigger,{ref:S,dir:v,"aria-label":t==null?n:void 0,"aria-busy":d||void 0,"data-variant":o,"data-alignment":s,"data-loading":d?``:void 0,className:y,children:[c(ZT.Value,{placeholder:r}),d?c(`span`,{className:XT.loadingIndicator,"aria-hidden":`true`}):c(ZT.Icon,{children:h})]}),a==null?null:c(lC.Error,{match:u,children:a}),i==null?null:c(lC.Description,{children:i}),c(ZT.Portal,{children:c(ZT.Positioner,{dir:v,align:`start`,alignItemWithTrigger:!1,sideOffset:_,children:c(ZT.Popup,{dir:v,"data-variant":o,"data-outer-border":g?``:void 0,className:b,children:c(ZT.List,{children:e.map((e,t)=>QT(e)?c(ZT.Separator,{},`divider-${t}`):$T(e)?l(ZT.Group,{children:[c(ZT.GroupLabel,{children:e.groupLabel}),e.options.map(eE)]},`group-${t}`):eE(e))})})})})]})}));tE.displayName=`SelectField`,ug(`../../node_modules/use-sync-external-store/index.js`),{...Qy},[..._h],{...Qy};var nE=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),rE={tabActivationDirection:e=>({[nE.activationDirection]:e})};({...rE}),function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=cm.startingStyle]=`startingStyle`,e[e.endingStyle=cm.endingStyle]=`endingStyle`,e}({}),{...rE,...dm};var iE={root:`root-Hb4MhN`,list:`list-ZEK7AG`,underlineFull:`underlineFull-qh4VtD`,underlineFit:`underlineFit-ahY1xs`,alignStart:`alignStart-haA6GJ`,alignCenter:`alignCenter-e896qY`,alignEnd:`alignEnd-ClTg6L`,tab:`tab-FRO0Rd`,indicator:`indicator-a2Roef`,panel:`panel-dMpxFc`};iE.underlineFull,iE.underlineFit,iE.underlineNone,iE.alignStart,iE.alignCenter,iE.alignEnd,{...dm};var aE=e=>e.toastMetadata;X(e=>e.toasts),X(e=>e.toasts.length===0),X(aE,(e,t)=>e.get(t)?.value),X(aE,(e,t)=>e.get(t)?.domIndex??-1),X(aE,(e,t)=>e.get(t)?.offsetY??0),X(aE,(e,t)=>e.get(t)?.visibleIndex??-1),X(e=>e.hovering),X(e=>e.focused),X(e=>e.hovering||e.focused),X(e=>e.hovering||e.focused||!e.isWindowFocused),X(e=>e.prevFocusElement);var oE=r.createContext(void 0);function sE(e){let t=r.useContext(oE);if(t===void 0&&!e)throw Error(np(72));return t}var cE=r.createContext(void 0);function lE(){return r.useContext(cE)}var uE=r.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Ig,currentIdRef:{current:null},currentContextRef:{current:null}});function dE(e,t={open:!1}){let{open:n}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`floatingId`),{currentIdRef:o,delayRef:s,timeoutMs:c,initialDelayRef:l,currentContextRef:u,hasProvider:d,timeout:f}=r.useContext(uE),[p,m]=r.useState(!1);return J(()=>{function e(){m(!1),u.current?.setIsInstantPhase(!1),o.current=null,u.current=null,s.current=l.current}if(o.current&&!n&&o.current===a){if(m(!1),c){let t=a;return f.start(c,()=>{i.select(`open`)||o.current&&o.current!==t||e()}),()=>{f.clear()}}e()}},[n,a,o,s,c,l,u,f,i]),J(()=>{if(!n)return;let e=u.current,t=o.current;f.clear(),u.current={onOpenChange:i.setOpen,setIsInstantPhase:m},o.current=a,s.current={open:0,close:eS(l.current,`close`)},t!==null&&t!==a?(m(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Yp(`none`))):(m(!1),e?.setIsInstantPhase(!1))},[n,a,i,o,s,l,u,f]),J(()=>()=>{u.current=null},[u]),r.useMemo(()=>({hasProvider:d,delayRef:s,isInstantPhase:p}),[d,s,p])}var fE=function(e){return e[e.popupOpen=$h.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),pE=`data-base-ui-tooltip-trigger`;function mE(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(Cm(n))return n}}let t=e.target;return Cm(t)?t:null}function hE(e){let t=e;for(;t;){if(t.hasAttribute(pE))return t;let e=t.parentElement;if(e){t=e;continue}let n=t.getRootNode();t=`host`in n&&Cm(n.host)?n.host:null}return null}_g(function(e,t){let{render:n,className:i,style:a,handle:o,payload:s,disabled:c,delay:l,closeOnClick:u=!0,closeDelay:d,id:f,...p}=e,m=sE(!0),h=o?.store??m;if(!h)throw Error(np(82));let g=Wp(f),_=h.useState(`isTriggerActive`,g),v=h.useState(`isOpenedByTrigger`,g),y=h.useState(`floatingRootContext`),b=r.useRef(null),x=l??600,S=d??0,{registerTrigger:C,isMountedByThisTrigger:w}=m_(g,b,h,{payload:s,closeOnClick:u,closeDelay:S}),T=lE(),{delayRef:E,isInstantPhase:D,hasProvider:O}=dE(y,{open:v}),k=Qx(y);h.useSyncedValue(`isInstantPhase`,D);let A=h.useState(`disabled`),j=c??A,M=hm(j),N=h.useState(`trackCursorAxis`),P=h.useState(`disableHoverablePopup`),F=r.useRef(!1),I=Lg(),L=r.useRef(void 0);function ee(){let e=T?.delay,t=typeof E.current==`object`?E.current.open:void 0,n=x;return O&&(n=t===0?0:l??e??x),n}function R(e){let t=b.current;if(!t||!e)return!1;let n=hE(e);return n!==null&&n!==t&&Q(t,n)}function te(e){let t=R(e);return F.current=t,t&&(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1,I.clear()),t}let z=CC(y,{enabled:!j,mouseOnly:!0,move:!1,handleClose:P||N===`both`?null:jC(),restMs:ee,delay(){let e=typeof E.current==`object`?E.current.close:void 0,t=S;return d==null&&O&&(t=e),{close:t}},triggerElementRef:b,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`,shouldOpen(){return!F.current}}),B=JC(y,{enabled:!j}).reference,ne=e=>{let t=F.current,n=mE(e),r=te(n),i=b.current,a=i&&n&&Q(i,n);if(r&&h.select(`open`)&&h.select(`lastOpenChangeReason`)===`trigger-hover`)return void h.setOpen(!1,Yp(Zp,e));if(t&&!r&&a&&!M.current&&!h.select(`open`)&&i&&Vh(L.current)){let t=()=>{!F.current&&!M.current&&!h.select(`open`)&&h.setOpen(!0,Yp(Zp,e,i))},n=ee();n===0?(I.clear(),t()):I.start(n,t)}},re=h.useState(`triggerProps`,w);return Tp(`button`,e,{state:{open:v},ref:[t,C,b],props:[z,B,w||N!==`none`?re:void 0,{onMouseOver(e){ne(e.nativeEvent)},onFocus(e){R(mE(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){F.current=!1,I.clear(),L.current=void 0},onPointerEnter(e){L.current=e.pointerType},onPointerDown(e){L.current=e.pointerType,h.set(`closeOnClick`,u),u&&!h.select(`open`)&&h.cancelPendingOpen(e.nativeEvent)},onClick(e){u&&!h.select(`open`)&&h.cancelPendingOpen(e.nativeEvent)},id:g,[fE.triggerDisabled]:j?``:void 0,[pE]:j?void 0:``},p],stateAttributesMapping:ag})}),{...sg,...dm};function gE(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function _E(e){return e!=null&&e.clientX!=null}function vE(e,t={}){let{enabled:n=!0,axis:i=`both`}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),l=a.context.dataRef,u=r.useRef(!1),d=r.useRef(null),[f,p]=r.useState(),[m,h]=r.useState([]),g=Y(e=>{a.set(`positionReference`,e)}),_=Y((e,t,n)=>{u.current||(!l.current.openEvent||_E(l.current.openEvent))&&a.set(`positionReference`,gE(n??c,{x:e,y:t,axis:i,dataRef:l,pointerType:f}))}),v=Y(e=>{o?d.current||(_(e.clientX,e.clientY,e.currentTarget),h([])):_(e.clientX,e.clientY,e.currentTarget)}),y=Vh(f)?s:o;r.useEffect(()=>{if(!n)return void g(c);if(!y)return;function e(){d.current?.(),d.current=null}let t=bm(s);function r(t){let n=zg(t);Q(s,n)?e():_(t.clientX,t.clientY)}return!l.current.openEvent||_E(l.current.openEvent)?d.current=_m(t,`mousemove`,r):g(c),e},[y,n,s,l,c,a,_,g,m]),r.useEffect(()=>()=>{a.set(`positionReference`,null)},[a]),r.useEffect(()=>{n&&!s&&(u.current=!1)},[n,s]),r.useEffect(()=>{!n&&o&&(u.current=!0)},[n,o]);let b=r.useMemo(()=>{function e(e){p(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:v,onMouseEnter:v}},[v]);return r.useMemo(()=>n?{reference:b,trigger:b}:{},[n,b])}var yE={...Py,disabled:X(e=>e.disabled),instantType:X(e=>e.instantType),isInstantPhase:X(e=>e.isInstantPhase),trackCursorAxis:X(e=>e.trackCursorAxis),disableHoverablePopup:X(e=>e.disableHoverablePopup),lastOpenChangeReason:X(e=>e.openChangeReason),closeOnClick:X(e=>e.closeOnClick),closeDelay:X(e=>e.closeDelay),hasViewport:X(e=>e.hasViewport)},bE=class e extends Eg{constructor(e,t,n=!1){let i=new c_,a={...xE(),...e};a.floatingRootContext=Oy(i,t,n),super(a,{popupRef:r.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:i},yE)}setOpen=(e,t)=>{let n=t.reason,r=n===Zp,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),p_(r,e,t.trigger),this.update(r)};r?u.flushSync(o):o()};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Yp(Xp,e))}static useStore(t,n){return d_(t,(t,r)=>new e(n,t,r)).store}};function xE(){return{...Dy(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}gg(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:i,disableHoverablePopup:a=!1,trackCursorAxis:o=`none`,actionsRef:s,onOpenChange:u,onOpenChangeComplete:d,handle:f,triggerId:p,defaultTriggerId:m=null,children:h}=e,g=bE.useStore(f?.store,{open:n,openProp:i,activeTriggerId:m,triggerIdProp:p});v_(()=>{i===void 0&&!1===g.state.open&&!0===n&&g.update({open:!0,activeTriggerId:m})}),g.useControlledProp(`openProp`,i),g.useControlledProp(`triggerIdProp`,p),g.useContextCallback(`onOpenChange`,u),g.useContextCallback(`onOpenChangeComplete`,d);let _=g.useState(`open`),v=!t&&_,y=g.useState(`activeTriggerId`),b=g.useState(`mounted`),x=g.useState(`payload`);g.useSyncedValues({trackCursorAxis:o,disableHoverablePopup:a}),g.useSyncedValue(`disabled`,t),h_(g);let{forceUnmount:S,transitionStatus:C}=g_(v,g),w=g.useState(`isInstantPhase`),T=g.useState(`instantType`),E=g.useState(`lastOpenChangeReason`),D=r.useRef(null);J(()=>{_&&t&&g.setOpen(!1,Yp(am))},[_,t,g]),J(()=>{C===`ending`&&E===`none`||C!==`ending`&&w?(T!==`delay`&&(D.current=T),g.set(`instantType`,`delay`)):D.current!==null&&(g.set(`instantType`,D.current),D.current=null)},[C,w,E,T,g]),J(()=>{v&&(y??g.set(`payload`,void 0))},[g,y,v]);let O=r.useCallback(()=>{g.setOpen(!1,Yp(om))},[g]);r.useImperativeHandle(s,()=>({unmount:S,close:O}),[S,O]);let k=v||b||!t&&o!==`none`;return l(oE.Provider,{value:g,children:[k&&c(SE,{store:g,disabled:t,trackCursorAxis:o}),typeof h==`function`?h({payload:x}):h]})});function SE({store:e,disabled:t,trackCursorAxis:n}){let i=e.useState(`floatingRootContext`),a=s_(i,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),o=vE(i,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return __(e,{activeTriggerProps:r.useMemo(()=>dp(o.reference,a.reference),[o.reference,a.reference]),inactiveTriggerProps:r.useMemo(()=>dp(o.trigger,a.trigger),[o.trigger,a.trigger]),popupProps:r.useMemo(()=>dp(u_,o.floating,a.floating),[o.floating,a.floating])}),null}var CE={root:`_root_1b47m_1`,content:`_content_1b47m_9`,icon:`_icon_1b47m_15`,label:`_label_1b47m_22`,message:`_message_1b47m_27`},wE=`Event configuration does not provide data for this component`,TE=()=>l(`svg`,{className:CE.icon,viewBox:`0 0 40 40`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:[c(`circle`,{cx:`20`,cy:`20`,r:`18`,stroke:`currentColor`,strokeWidth:`1.5`}),c(`path`,{d:`M20 12v11`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`}),c(`circle`,{cx:`20`,cy:`28`,r:`1.5`,fill:`currentColor`})]}),EE=({id:e,className:t,componentName:n,message:r=wE})=>(Af(`MissingEventData`,`render`,{id:e,componentName:n}),c(`div`,{id:e,className:`${CE.root} ${t??``}`,role:`status`,"data-hook":`missing-event-data`,children:l(`div`,{className:CE.content,children:[c(TE,{}),c(Zh,{variant:`p3`,className:CE.label,children:n}),c(Zh,{variant:`p3`,className:CE.message,children:r})]})})),DE=`Something went wrong while rendering this component`,OE=class extends i{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){jf(this.props.componentName,e,{componentStack:t.componentStack})}render(){let{componentName:e,id:t,className:n,children:r,fallback:i}=this.props,{error:a}=this.state;return a?`fallback`in this.props?i:c(EE,{id:t,className:n,componentName:e,message:a.message||DE}):r}},kE=(e,t)=>{let n=n=>c(OE,{componentName:t,fallback:n.children,children:c(e,{...n})});return n.displayName=`WithProviderErrorBoundary(${t})`,n},AE=f({default:()=>jE}),jE={"events.demo.adult":`Adult`,"events.common.checkout":`Checkout`,"events.checkout.ticketTitle":`Ticket #{number} - {name}`,"events.seating.removeFromBasketLabel":`Remove {label} from basket`,"events.order.sentToBuyer":`{count, plural, one {The ticket is on the way to your email: {email}.} other {The tickets are on the way to your email: {email}.}}`,"events.registration.weCouldnTAddYouToTheWaitlistBecauseItS":`We couldn't add you to the waitlist because it's no longer available.`,"events.common.close":`Close`,"events.seating.chooseYourSeatOnTheMap":`Choose your seat on the map.`,"events.registration.nextTicket":`Next Ticket`,"events.checkout.seat":`Seat: {label}`,"events.seating.tablePrice":`Table reservation price: {price}`,"events.demo.child":`Child`,"events.seating.mapPositionMiddleRight":`Right part of the map`,"events.registration.buyerDetails":`Add your details`,"events.membership.alreadyHaveAMembership":`Already have a membership?`,"events.seating.seatProperties":`Seat properties`,"events.demo.area":`Area 1`,"events.seating.selectPricingOptionFor":`Select pricing option for {label}`,"events.seating.quantityFor":`Quantity for {label}`,"events.dialogs.paymentsCannotBeUsedInPreviewModeToCompletePayment":`Payments cannot be used in Preview mode. To complete Payment, go to your live published site.`,"events.demo.priceOption":`Price option {number}`,"events.order.timeRemaining":`Time remaining: {time}`,"events.tickets.noTicketsAtTheMoment":`No tickets at the moment`,"events.tickets.saleEnds":`Sale ends`,"events.registration.couldNotFindThisCouponCode":`Could not find this coupon code.`,"events.tickets.taxAdded":`+{amount} {name}`,"events.checkout.addCoupon":`Add Coupon Code`,"events.seating.ticketDescription":`Ticket description`,"events.registration.guestLimitExceededPlacesAvailable":`Guest limit exceeded. {count} places available.`,"events.registration.thisCouponIsNotActiveYet":`This coupon is not active yet.`,"events.registration.seat":`Seat`,"events.seating.discount":`Discount`,"events.demo.rowLabel":`Row`,"events.membership.trial":`{prefix}{days} day free trial`,"events.seating.mapPositionLowerRight":`Lower right of the map`,"events.seating.fromTo":`From {min} to {max}`,"events.tickets.showPrices":`{count, plural, one {Show # more price} other {Show # more prices}}`,"events.common.edit":`Edit`,"events.seating.seatingPlan":`Seating plan`,"events.demo.aboutIntro":`Use this space to tell guests more about this event, e.g., event schedule, speakers, important info & more. To customize this text head to Manage Event > Event Details.`,"events.checkout.chooseMembership":`Choose membership`,"events.membership.membershipDiscountHasBeenUsedUp":`Membership discount has been used up`,"events.registration.enterTheCode":`Enter the code`,"events.seating.tableSeat":`Table {table}, seat {seat}`,"events.seating.mapPositionUpperRight":`Upper right of the map`,"events.donation.writeAPriceAbove":`Write a price above {minimum}`,"events.common.total":`Total`,"events.seating.selectAPriceOption":`Select a price option`,"events.seating.markerSummary":`{name}, {placeCount, plural, one {# seat} other {# seats}}, {availableCount} available, {selectedCount} selected`,"events.registration.google":`Google`,"events.dialogs.addToAppleWallet":`Add To Apple Wallet`,"events.ribbon.demo":`Ribbon`,"events.membership.hideMembershipOffers":`Hide membership offers`,"events.seating.pickASeatToProceedToTheCheckout":`Pick a seat to proceed to the checkout.`,"events.membership.untilCanceled":`Valid until canceled`,"events.tickets.optionQuantity":`Quantity for {name} – {option}`,"events.registration.giftCard":`Gift card`,"events.registration.remove":`Remove`,"events.registration.iAgreeTo":`I agree to:`,"events.tickets.thereIsALimitOfTicketsPerOrder":`There is a limit of {orderLimit} tickets per order`,"events.seating.payWhatYouWant":`Pay What You Want`,"events.dialogs.checkoutUnavailable":`Checkout unavailable`,"events.common.cancel":`Cancel`,"events.membership.getAMembership":`Get a membership`,"events.order.number":`Order No. {number}`,"events.registration.ticketServiceFee":`Ticket service fee`,"events.order.sentToGuests":`{count, plural, one {The ticket is on the way to the guest and to your email: {email}.} other {The tickets are on the way to the guests and to your email: {email}.}}`,"events.registration.thisFieldIsRequired":`This field is required`,"events.common.quantity":`Quantity`,"events.tickets.thisEventDoesnTHaveTicketsAvailableCheckAgainLater":`This event doesn't have tickets available. Check again later`,"events.seating.companion":`Companion`,"events.checkout.couponCode":`Add coupon code`,"events.membership.noMembership":`No membership`,"events.membership.logIn":`Log In`,"events.registration.price":`Price:`,"events.membership.cycle.day":`{count, plural, one {Every day} other {Every # days}}`,"events.seating.mapPositionUpperCentre":`Upper centre of the map`,"events.common.unableToLoadTheFormPleaseRefreshThePage":`Unable to load the form. Please refresh the page.`,"events.tickets.soldOut":`Sold Out`,"events.seating.tableFree":`Table reservation price: Free`,"events.demo.buyerEmail":`email@example.com`,"events.common.free":`Free`,"events.membership.hideDetails":`Hide Details`,"events.registration.thereSATechnicalIssueOnOurSidePleaseRefreshThe":`There's a technical issue on our side. Please refresh the page and try again.`,"events.seating.areaName":`Area {label}`,"events.seating.rowSeat":`Row {row}, seat {seat}`,"events.demo.registrationMessages":`Registration Messages`,"events.membership.duration.day":`{count, plural, one {Valid for one day} other {Valid for # days}}`,"events.checkout.row":`Row: {label}`,"events.seating.removeFromBasket":`Remove from Basket`,"events.membership.duration.month":`{count, plural, one {Valid for one month} other {Valid for # months}}`,"events.registration.thisGiftCardWasDisabled":`This gift card was disabled.`,"events.reservation.pleaseTryAgainInAMoment":`Please try again in a moment.`,"events.order.allSet":`You're all set for {title}.`,"events.tickets.thisEventIsSoldOut":`This event is sold out`,"events.order.addToCalendar":`Add to Calendar`,"events.tickets.pickTicketsToProceedToTheCheckout":`Pick tickets to proceed to the checkout.`,"events.registration.thisGiftCardHasExpired":`This gift card has expired.`,"events.seating.update":`Update`,"events.dialogs.downloadPdf":`Download PDF`,"events.registration.membership":`Membership (-{percent}%)`,"events.tickets.taxIncluded":`+{name} included`,"events.seating.mapPositionMiddleCentre":`Central part of the map`,"events.donation.minimumDonationIs":`Minimum donation is {minimum}`,"events.registration.looksLikeThisPageHasExpired":`Looks like this page has expired`,"events.tickets.quantityFor":`Quantity for {name}`,"events.order.thankYou":`Thank you, {name}`,"events.tickets.additionalFeesApply":`+Additional fees apply`,"events.seating.someSeatsAtThisTableHaveSpecialProperties":`Some seats at this table have special properties.`,"events.seating.continueToPricingOptionsFor":`Continue to pricing options for {label}`,"events.seating.whenYouVeChosenYourTicketsTheyWillAppearHere":`When you've chosen your tickets, they will appear here.`,"events.reservation.tryAgain":`Try again`,"events.tickets.plusAdditionalFees":`+additional fees apply`,"events.checkout.area":`Area: {label}`,"events.demo.membership":`Membership {number}`,"events.reservation.somethingWentWrong":`Something went wrong`,"events.tickets.payWhatYouWant":`Pay what you want`,"events.checkout.addGiftCard":`Add Gift Card`,"events.seating.tableName":`Table {label}`,"events.registration.coupon":`Coupon`,"events.tickets.moreInfo":`More info`,"events.demo.table":`Table 1`,"events.seating.tablePriceRange":`Table reservation price: from {min} to {max}`,"events.common.price":`Price`,"events.seating.goesOnSale":`Goes on sale {date}`,"events.demo.longLocation":`Address`,"events.registration.outlook":`Outlook`,"events.order.confirmationSent":`A confirmation email has been sent to: {email}.`,"events.reservation.selectedSeatsAreNoLongerAvailable":`Selected seats are no longer available`,"events.seating.seat":`Seat {label}`,"events.registration.yourOrderDidnTGoThroughGoBackToThe":`Your order didn't go through. Go back to the event and try again.`,"events.ribbon.multipleDates":`Multiple Dates`,"events.tickets.goesOnSale":`Goes on sale`,"events.common.subtotal":`Subtotal`,"events.ribbon.membershipOffer":`Membership Offer`,"events.registration.thisOptionIsNoLongerAvailableBecauseTheEventSRegistration":`This option is no longer available because the event's registration settings have changed. Please refresh the page and try again.`,"events.checkout.table":`Table: {label}`,"events.membership.cycle.month":`{count, plural, one {Every month} other {Every # months}}`,"events.seating.mapPositionUpperLeft":`Upper left of the map`,"events.demo.section":`Section A`,"events.seating.seatingBlockName":`Seating block {label}`,"events.demo.aboutBody":`This is a paragraph about your event. You can tell guests about the event history, background, types of participants and more. This is a great place to give guests plenty of additional information to get them excited to register. To customize this text head to Manage Event > Event Details.`,"events.tickets.ticketServiceFee":`+ Ticket service fee`,"events.reservation.youCanBuyUpToTicketsPerOrderRemoveSomeTo":`You can buy up to {orderLimit} tickets per order. Remove some to add new ones.`,"events.registration.registrationHasClosedCheckOutOtherEvents":`Registration has closed. Check out other events.`,"events.membership.showDetails":`Show Details`,"events.common.moreInfo":`More Info`,"events.checkout.section":`Section: {label}`,"events.membership.cycle.week":`{count, plural, one {Every week} other {Every # weeks}}`,"events.registration.pleaseIndicateThatYouVeReadAndAgreeToThe":`Please indicate that you've read and agree to the event's policies.`,"events.registration.weCouldnTFindThisGiftCardCheckTheCodeAnd":`We couldn't find this gift card. Check the code and try again.`,"events.registration.preparingOrder":`Preparing order`,"events.seating.addToBasketMessage":`Add {label} to basket`,"events.demo.seat":`Seat 1`,"events.seating.selectTickets":`Select tickets`,"events.registration.youHaveAlreadyRegistered":`You have already registered.`,"events.registration.continue":`Continue`,"events.seating.moreInfoAbout":`More info about {label}`,"events.demo.shortLocation":`Location name`,"events.membership.membershipOffers":`Membership Offers`,"events.seating.obstructed":`Obstructed view`,"events.demo.ticketDescription":`Use this space to add details about this ticket, e.g., includes a backstage pass and free drinks.`,"events.registration.ical":`iCal`,"events.registration.table":`Table`,"events.registration.policies":`Event policies`,"events.registration.thereWasATechnicalProblemAndWeCouldnTFindThis":`There was a technical problem and we couldn't find this coupon code. Try submitting it again or enter a different coupon code.`,"events.dialogs.addToAppleWalletLabel":`Add to Apple Wallet`,"events.checkout.redeemGiftCard":`Redeem a gift card`,"events.seating.mapPositionMiddleLeft":`Left part of the map`,"events.recurringDates.showMore":`Show more dates`,"events.registration.row":`Row`,"events.seating.basket":`Basket`,"events.seating.unnamedTable":`Table {id}`,"events.membership.active":`Your membership is now active. Use it to get discounts on event tickets.`,"events.order.processing":`{count, plural, one {Your order is being processed. When it's confirmed you will receive an email with your ticket.} other {Your order is being processed. When it's confirmed you will receive an email with your tickets.}}`,"events.reservation.ok":`OK`,"events.seating.addToBasket":`Add to basket`,"events.order.preparingTickets":`{count, plural, one {Preparing Ticket} other {Preparing Tickets}}`,"events.membership.duration.year":`{count, plural, one {Valid for one year} other {Valid for # years}}`,"events.seating.serviceFee":`Service fee`,"events.demo.row":`Row 1`,"events.demo.areaLabel":`Area`,"events.registration.chooseMembership":`Choose membership`,"events.seating.mapPositionLowerCentre":`Lower centre of the map`,"events.tickets.lessInfo":`Less info`,"events.membership.purchased":`Purchased`,"events.ribbon.soldOut":`Sold Out`,"events.order.downloadTickets":`{count, plural, one {Download Ticket} other {Download Tickets}}`,"events.registration.paymentCanceled":`Payment Canceled`,"events.registration.section":`Section`,"events.registration.ticketType":`Ticket type`,"events.membership.benefit":`{count, plural, one {{percent}% off for # ticket} other {{percent}% off for # tickets}}`,"events.registration.qty":`Qty:`,"events.demo.dateAndTimeTbdMessage":`Date and Time TBD Message`,"events.recurringDates.showLess":`Show less dates`,"events.registration.sameAsBuyerDetails":`Same as buyer details`,"events.membership.duration.week":`{count, plural, one {Valid for one week} other {Valid for # weeks}}`,"events.membership.showMembershipOffers":`Show membership offers`,"events.list.allEvents":`All Events`,"events.event.registrationNotRequired":`No registration required`,"events.tickets.hidePrices":`{count, plural, one {Hide # price} other {Hide # prices}}`,"events.common.ok":`OK`,"events.common.back":`Back`,"events.registration.thisCouponHasAlreadyBeenUsed":`This coupon has already been used.`,"events.seating.rowName":`Row {label}`,"events.donation.enterADonationAmount":`Enter a donation amount`,"events.seating.seatNumber":`Seat {number}`,"events.seating.ticketCount":`{count, plural, one {# ticket} other {# tickets}}`,"events.dialogs.download":`Download`,"events.seating.saleEnds":`Sale ends {date}`,"events.registration.placeOrder":`Place Order`,"events.button.details":`Details`,"events.registration.thisCouponHasExpired":`This coupon has expired.`,"events.reservation.oneOfTheTicketsYouSelectedIsNoLongerAvailable":`One of the tickets you selected is no longer available`,"events.seating.accessible":`Accessible`,"events.button.buyTickets":`Buy Tickets`,"events.common.continue":`Continue`,"events.registration.thisGiftCardBalanceIs0":`This gift card balance is 0.`,"events.registration.payment":`Payment`,"events.demo.ticketName":`Ticket name`,"events.demo.eventTitle":`Event name`,"events.dialogs.checkoutIsUnavailableAtTheMomentPleaseContactUsFor":`Checkout is unavailable at the moment. Please contact us for more information.`,"events.reservation.dismiss":`Dismiss`,"events.reservation.someoneElseJustReservedOneOrMoreOfYourSeatsWe":`Someone else just reserved one or more of your seats. We'll refresh the seating plan so you can pick again.`,"events.demo.buyerName":`Guest`,"events.donation.writeAPrice":`Write a price`,"events.membership.buyAMembershipAndGetUpToOffThisEventAt":`Buy a membership and get up to {percent}% off this event at checkout`,"events.registration.thereSATechnicalIssueOnOurSidePleaseTryAgain":`There's a technical issue on our side. Please try again.`,"events.ribbon.joinWaitlist":`Join Waitlist`,"events.dialogs.timeSUpToBuyTheseTicketsRefreshYourPage":`Time's Up. To buy these tickets, refresh your page.`,"events.registration.ticketDetails":`Tickets details`,"events.membership.thankYou":`Thank you!`,"events.tickets.saleEnded":`Sale ended`,"events.seating.viewBasket":`View Basket`,"events.button.rsvp":`RSVP`,"events.reservation.someTicketsAreNoLongerAvailable":`Some tickets are no longer available`,"events.seating.basketCount":`Basket ({count})`,"events.registration.area":`Area`,"events.seating.wheelchair":`Wheelchair accessible`,"events.seating.seatQty":`Seat Qty`,"events.seating.zoomOut":`Zoom out`,"events.tickets.feeAmount":`+{amount} ticket service fee`,"events.registration.seatInfo":`Seat info`,"events.seating.mapPositionLowerLeft":`Lower left of the map`,"events.reservation.ticketLimitReached":`Ticket limit reached`,"events.event.registrationOpens":`Registration opens {date}`,"events.recurringDates.otherDates":`Other dates`,"events.common.backToSite":`Back to site`,"events.common.backToEvent":`Back to Event`,"events.reservation.somethingWentWrongPleaseTryAgain":`Something went wrong. Please try again.`,"events.order.date":`Placed on: {date}`,"events.ribbon.rsvpClosed":`RSVP Closed`,"events.registration.apply":`Apply`,"events.seating.youCanBuyUpToTicketsPerOrderRemoveSome":`You can buy up to {orderLimit} tickets per order. Remove some to add new ones.`,"events.demo.eventTeaser":`This is a great place to get your guests excited by telling them a little more about this event.`,"events.membership.cycle.year":`{count, plural, one {Every year} other {Every # years}}`,"events.seating.zoomIn":`Zoom in`},ME=()=>{let e=new Map;return{getOrInsert:(t,n)=>(e.has(t)||e.set(t,n().finally(()=>{e.delete(t)})),e.get(t))}},NE=async e=>{try{let{default:t}=await e();return t}catch{return}},PE=({isDev:e,loadMessages:t,loadDevMessages:n})=>{let r=ME(),i=async r=>{let[i,a]=await Promise.all([NE(()=>t(r)),!e||!n?void 0:NE(()=>n(r))]);if(i&&a)return{...i,...a};if(i)return i;if(a)return a;throw Error(`No translation files found for ${r}`)};return e=>r.getOrInsert(e,()=>i(e))},FE=e=>typeof e==`string`,IE=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},LE=e=>e==null?``:String(e),RE=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},zE=/###/g,BE=e=>e&&e.includes(`###`)?e.replace(zE,`.`):e,VE=e=>!e||FE(e),HE=(e,t,n)=>{let r=FE(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(VE(e))return{};let t=BE(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return VE(e)?{}:{obj:e,k:BE(r[i])}},UE=(e,t,n)=>{let{obj:r,k:i}=HE(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=HE(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=HE(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},WE=(e,t,n,r)=>{let{obj:i,k:a}=HE(e,t,Object);i[a]=i[a]||[],i[a].push(n)},GE=(e,t)=>{let{obj:n,k:r}=HE(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},KE=(e,t,n)=>{let r=GE(e,n);return r===void 0?GE(t,n):r},qE=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(Object.prototype.hasOwnProperty.call(e,r)?FE(e[r])||e[r]instanceof String||FE(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):qE(e[r],t[r],n):e[r]=t[r]);return e},JE=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),YE={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},XE=e=>FE(e)?e.replace(/[&<>"'\/]/g,e=>YE[e]):e,ZE=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},QE=[` `,`,`,`?`,`!`,`;`],$E=new ZE(20),eD=(e,t,n)=>{t||=``,n||=``;let r=QE.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=$E.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},tD=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},nD=e=>e?.replace(/_/g,`-`),rD={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},iD=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||rD,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>FE(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),FE(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},aD=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},oD=new WeakSet,sD=class extends aD{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):FE(n)&&i?o.push(...n.split(i)):o.push(n)));let s=GE(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!FE(n)?s:tD(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),UE(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(FE(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=GE(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?qE(s,n,i):s={...s,...n},UE(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>{let n=t[e];return oD.has(n)?!0:!n||Object.keys(n).length===0?!1:(typeof n==`object`&&oD.add(n),!0)})}toJSON(){return this.data}},cD={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},lD=Symbol(`i18next/PATH_KEY`);function uD(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===lD?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function dD(e,t){let{[lD]:n}=e(uD()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var fD=e=>!FE(e)&&typeof e!=`boolean`&&typeof e!=`number`,pD=class e extends aD{constructor(e,t={}){super(),RE([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=iD.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=fD(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!eD(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:FE(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:FE(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=dD(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?dD(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!FE(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=fD(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&!_.includes(O)&&!(FE(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;t[e]=x&&!m?this.translate(r,{...i,defaultValue:fD(T)?T[e]:void 0,joinArrays:!1,ns:c}):this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&FE(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.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 e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=FE(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!FE(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=FE(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=cD.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return FE(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?dD(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!FE(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(FE(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" 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!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!FE(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},mD=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=iD.create(`languageUtils`),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(e=nD(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=nD(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(FE(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(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.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),FE(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.options.fallbackLng,r=Array.isArray(n)?n.join(`|`):n;r!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=r);let i=t===void 0||t===!1||FE(t),a=t===void 0&&typeof this.options.fallbackLng==`function`,o=FE(e)&&i&&!a,s=null;if(o){let n;n=t===void 0?`undefined`:t===!1?`boolean:false`:`string:${t}`,s=`${e.length}:${e}|${n}`}if(s!==null){let e=this.resolveHierarchyCache[s];if(e!==void 0)return e.slice()}let c=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),l=[],u=e=>{e&&(this.isSupportedCode(e)?l.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return FE(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&u(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&u(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&u(this.getLanguagePartFromCode(e))):FE(e)&&u(this.formatLanguageCode(e)),c.forEach(e=>{l.includes(e)||u(this.formatLanguageCode(e))}),s===null?l:(this.resolveHierarchyCache[s]=l,l.slice())}},hD={zero:0,one:1,two:2,few:3,many:4,other:5},gD={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},_D=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=iD.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=nD(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),gD;if(!e.match(/-|_/))return gD;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>hD[e]-hD[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},vD=(e,t,n,r=`.`,i=!0)=>{let a=KE(e,t,n);return!a&&i&&FE(n)&&(a=tD(e,n,r),a===void 0&&(a=tD(t,n,r))),a},yD=e=>e.replace(/\$/g,`$$$$`),bD=class{constructor(e={}){this.logger=iD.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?XE:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?JE(i):a||`{{`,this.suffix=o?JE(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?JE(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?JE(l):``,this.nestingPrefix=d?JE(d):f||JE(`$t(`),this.nestingSuffix=p?JE(p):m||JE(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`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,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=vD(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(vD(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0){if(typeof l==`function`){let t=l(e,i,r);a=FE(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``}else!FE(a)&&!this.useRawValueToEscape&&(a=LE(a));let s=t.safeValue(a);if(e=e.replace(i[0],yD(s)),u?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${JE(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e},s=new RegExp(this.nestingRegexp),c=``,l=0;for(;r=s.exec(e);){let u=[];a={...n},a=a.replace&&!FE(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let d=/{.*}/s.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(d!==-1&&(u=r[1].slice(d).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,d)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!FE(i))return i;FE(i)||(i=LE(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),u.length&&(i=u.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),c+=e.slice(l,r.index)+LE(i),l=s.lastIndex,this.regexp.lastIndex=0}return l?c+e.slice(l):e}},xD=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},SD=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(nD(r),i),t[o]=s),s(n)}},CD=e=>(t,n,r)=>e(nD(n),r)(t),wD=class{constructor(e={}){this.logger=iD.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?SD:CD;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=SD(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator),a=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf(`(`)>-1&&!t.includes(`)`)&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;a.push(t)}return a.reduce((e,t)=>{let{formatName:i,formatOptions:a}=xD(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}},TD=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},ED=class extends aD{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=iD.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{WE(n.loaded,[i],a),TD(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}o&&s&&r<this.maxRetries?setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i):a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2)try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}else return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();FE(e)&&(e=this.languageUtils.toResolveHierarchy(e)),FE(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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!!!`);else if(n!=null&&n!==``){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}},DD=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,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:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),FE(e[1])&&(t.defaultValue=e[1]),FE(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),OD=e=>(FE(e.ns)&&(e.ns=[e.ns]),FE(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),FE(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),kD=()=>{},AD=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},jD=class e extends aD{constructor(e={},t){if(super(),this.options=OD(e),this.services={},this.logger=iD,this.modules={external:[]},AD(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(FE(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=DD();this.options={...n,...this.options,...OD(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?iD.init(r(this.modules.logger),this.options):iD.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:wD;let t=new mD(this.options);this.store=new sD(this.options.resources,this.options);let n=this.services;n.logger=iD,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new _D(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new bD(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new ED(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new pD(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=kD,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[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(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=IE(),a=()=>{let e=(e,n)=>{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),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=kD){let n=t,r=FE(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=IE();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=kD,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw 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`&&cD.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`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=IE();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=FE(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(FE(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=dD(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=dD(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=dD(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return FE(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){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;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}if(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages)return!0;let{languageUtils:o}=this.services,s=t.lng?o.isSupportedCode(n)&&o.toResolveHierarchy(n,!1)[0]:n;return!(s&&!a(s,e)||r&&!a(i,e))}loadNamespaces(e,t){let n=IE();return this.options.ns?(FE(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=IE();FE(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`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`.split(`.`),n=this.services?.languageUtils||new mD(DD());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=kD){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new sD(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...DD().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new bD(n)}return a.translator=new pD(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();jD.createInstance,jD.dir,jD.init,jD.loadResources,jD.reloadResources,jD.use,jD.changeLanguage,jD.getFixedT,jD.t,jD.exists,jD.setDefaultNamespace,jD.hasLoadedNamespace,jD.loadNamespaces,jD.loadLanguages;var MD=({locale:e,asyncMessagesLoader:t,messages:n,useSuspense:r=!1,disableAutoInit:i=!1,bindI18n:a},{icu:o}={})=>{let s={lng:e,fallbackLng:`en`,keySeparator:!1,react:{useSuspense:r,bindI18n:a},_polyfill:{isLoading:!1}},c=jD.createInstance(i?s:void 0);return o&&c.use(o),t&&c.use({type:`backend`,read:async(e,n,r)=>{try{return r(null,await t(e))}catch(e){return r(e,null)}}}),n&&(s.resources={[e]:{translation:n}}),i||c.init(s),c},ND=[`__proto__`,`constructor`,`prototype`];function PD(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}function i(){return!e||typeof e==`string`}for(var a=typeof t==`string`?t.split(`.`):[].concat(t);a.length>1;){if(i())return{};var o=r(a.shift());if(ND.indexOf(o)>-1)return{};!e[o]&&n&&(e[o]=new n),e=e[o]}if(i())return{};var s=r(a.shift());return ND.indexOf(s)>-1?{}:{obj:e,k:s}}function FD(e,t,n){var r=PD(e,t,Object),i=r.obj,a=r.k;i!==void 0&&(i[a]=n)}function ID(e,t){var n=PD(e,t),r=n.obj,i=n.k;if(r)return r[i]}var LD=[],RD=LD.forEach,zD=LD.slice;function BD(e){return RD.call(zD.call(arguments,1),function(t){if(t)for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];ND.indexOf(i)>-1||e[i]===void 0&&(e[i]=t[i])}}),e}function VD(e,t){let n=t&&t.cache?t.cache:ZD,r=t&&t.serializer?t.serializer:YD;return(t&&t.strategy?t.strategy:KD)(e,{cache:n,serializer:r})}function HD(e){return e==null||typeof e==`number`||typeof e==`boolean`}function UD(e,t,n,r){let i=HD(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function WD(e,t,n){let r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}function GD(e,t,n,r,i){return n.bind(t,e,r,i)}function KD(e,t){let n=e.length===1?UD:WD;return GD(e,this,n,t.cache.create(),t.serializer)}function qD(e,t){return GD(e,this,WD,t.cache.create(),t.serializer)}function JD(e,t){return GD(e,this,UD,t.cache.create(),t.serializer)}var YD=function(){return JSON.stringify(arguments)},XD=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}},ZD={create:function(){return new XD}},QD={variadic:qD,monadic:JD},$D=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function eO(e){let t={};return e.replace($D,e=>{let n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}var tO=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function nO(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);let t=e.split(tO).filter(e=>e.length>0),n=[];for(let e of t){let t=e.split(`/`);if(t.length===0)throw Error(`Invalid number skeleton`);let[r,...i]=t;for(let e of i)if(e.length===0)throw Error(`Invalid number skeleton`);n.push({stem:r,options:i})}return n}function rO(e){return e.replace(/^(.*?)-/,``)}var iO=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,aO=/^(@+)?(\+|#+)?[rs]?$/g,oO=/(\*)(0+)|(#+)(0+)|(0+)/g,sO=/^(0+)$/;function cO(e){let t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(aO,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function lO(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:case`()`:return{currencySign:`accounting`};case`sign-always`:case`+!`:return{signDisplay:`always`};case`sign-accounting-always`:case`()!`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:case`+?`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:case`()?`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:case`+_`:return{signDisplay:`never`}}}function uO(e){let t;if(e[0]===`E`&&e[1]===`E`?(t={notation:`engineering`},e=e.slice(2)):e[0]===`E`&&(t={notation:`scientific`},e=e.slice(1)),t){let n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!sO.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function dO(e){return lO(e)||{}}function fO(e){let t={};for(let n of e){switch(n.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=n.options[0];continue;case`group-off`:case`,_`:t.useGrouping=!1;continue;case`precision-integer`:case`.`:t.maximumFractionDigits=0;continue;case`measure-unit`:case`unit`:t.style=`unit`,t.unit=rO(n.options[0]);continue;case`compact-short`:case`K`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:case`KK`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t={...t,notation:`scientific`,...n.options.reduce((e,t)=>({...e,...dO(t)}),{})};continue;case`engineering`:t={...t,notation:`engineering`,...n.options.reduce((e,t)=>({...e,...dO(t)}),{})};continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue;case`scale`:t.scale=parseFloat(n.options[0]);continue;case`rounding-mode-floor`:t.roundingMode=`floor`;continue;case`rounding-mode-ceiling`:t.roundingMode=`ceil`;continue;case`rounding-mode-down`:t.roundingMode=`trunc`;continue;case`rounding-mode-up`:t.roundingMode=`expand`;continue;case`rounding-mode-half-even`:t.roundingMode=`halfEven`;continue;case`rounding-mode-half-down`:t.roundingMode=`halfTrunc`;continue;case`rounding-mode-half-up`:t.roundingMode=`halfExpand`;continue;case`integer-width`:if(n.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);n.options[0].replace(oO,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(sO.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(iO.test(n.stem)){if(n.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);n.stem.replace(iO,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});let e=n.options[0];e===`w`?t={...t,trailingZeroDisplay:`stripIfInteger`}:e&&(t={...t,...cO(e)});continue}if(aO.test(n.stem)){t={...t,...cO(n.stem)};continue}let e=lO(n.stem);e&&(t={...t,...e});let r=uO(n.stem);r&&(t={...t,...r})}return t}var pO=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`,e}({});function mO(e){return e.type===0}function hO(e){return e.type===1}function gO(e){return e.type===2}function _O(e){return e.type===3}function vO(e){return e.type===4}function yO(e){return e.type===5}function bO(e){return e.type===6}function xO(e){return e.type===7}function SO(e){return e.type===8}function CO(e){return!!(e&&typeof e==`object`&&e.type===0)}function wO(e){return!!(e&&typeof e==`object`&&e.type===1)}var TO=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,EO={"001":[`H`,`h`],419:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AD:[`H`,`hB`],AE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AI:[`H`,`h`,`hb`,`hB`],AL:[`h`,`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AR:[`h`,`H`,`hB`,`hb`],AS:[`h`,`H`],AT:[`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],AW:[`H`,`hB`],AX:[`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BB:[`h`,`hb`,`H`,`hB`],BD:[`h`,`hB`,`H`],BE:[`H`,`hB`],BF:[`H`,`hB`],BG:[`H`,`hB`,`h`],BH:[`h`,`hB`,`hb`,`H`],BI:[`H`,`h`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BN:[`hb`,`hB`,`h`,`H`],BO:[`h`,`H`,`hB`,`hb`],BQ:[`H`],BR:[`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],BT:[`h`,`H`],BW:[`H`,`h`,`hb`,`hB`],BY:[`H`,`h`],BZ:[`H`,`h`,`hb`,`hB`],CA:[`h`,`hb`,`H`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CD:[`hB`,`H`],CF:[`H`,`h`,`hB`],CG:[`H`,`hB`],CH:[`H`,`hB`,`h`],CI:[`H`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CL:[`h`,`H`,`hB`,`hb`],CM:[`H`,`h`,`hB`],CN:[`H`,`hB`,`hb`,`h`],CO:[`h`,`H`,`hB`,`hb`],CP:[`H`],CR:[`h`,`H`,`hB`,`hb`],CU:[`h`,`H`,`hB`,`hb`],CV:[`H`,`hB`],CW:[`H`,`hB`],CX:[`H`,`h`,`hb`,`hB`],CY:[`h`,`H`,`hb`,`hB`],CZ:[`H`],DE:[`H`,`hB`],DG:[`H`,`h`,`hb`,`hB`],DJ:[`h`,`H`],DK:[`H`],DM:[`h`,`hb`,`H`,`hB`],DO:[`h`,`H`,`hB`,`hb`],DZ:[`h`,`hB`,`hb`,`H`],EA:[`H`,`h`,`hB`,`hb`],EC:[`h`,`H`,`hB`,`hb`],EE:[`H`,`hB`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],ER:[`h`,`H`],ES:[`H`,`hB`,`h`,`hb`],ET:[`hB`,`hb`,`h`,`H`],FI:[`H`],FJ:[`h`,`hb`,`H`,`hB`],FK:[`H`,`h`,`hb`,`hB`],FM:[`h`,`hb`,`H`,`hB`],FO:[`H`,`h`],FR:[`H`,`hB`],GA:[`H`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GE:[`H`,`hB`,`h`],GF:[`H`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GH:[`h`,`H`],GI:[`H`,`h`,`hb`,`hB`],GL:[`H`,`h`],GM:[`h`,`hb`,`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GQ:[`H`,`hB`,`h`,`hb`],GR:[`h`,`H`,`hb`,`hB`],GS:[`H`,`h`,`hb`,`hB`],GT:[`h`,`H`,`hB`,`hb`],GU:[`h`,`hb`,`H`,`hB`],GW:[`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],HK:[`h`,`hB`,`hb`,`H`],HN:[`h`,`H`,`hB`,`hb`],HR:[`H`,`hB`],HU:[`H`,`h`],IC:[`H`,`h`,`hB`,`hb`],ID:[`H`],IE:[`H`,`h`,`hb`,`hB`],IL:[`H`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IN:[`h`,`H`],IO:[`H`,`h`,`hb`,`hB`],IQ:[`h`,`hB`,`hb`,`H`],IR:[`hB`,`H`],IS:[`H`],IT:[`H`,`hB`],JE:[`H`,`h`,`hb`,`hB`],JM:[`h`,`hb`,`H`,`hB`],JO:[`h`,`hB`,`hb`,`H`],JP:[`H`,`K`,`h`],KE:[`hB`,`hb`,`H`,`h`],KG:[`H`,`h`,`hB`,`hb`],KH:[`hB`,`h`,`H`,`hb`],KI:[`h`,`hb`,`H`,`hB`],KM:[`H`,`h`,`hB`,`hb`],KN:[`h`,`hb`,`H`,`hB`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],KW:[`h`,`hB`,`hb`,`H`],KY:[`h`,`hb`,`H`,`hB`],KZ:[`H`,`hB`],LA:[`H`,`hb`,`hB`,`h`],LB:[`h`,`hB`,`hb`,`H`],LC:[`h`,`hb`,`H`,`hB`],LI:[`H`,`hB`,`h`],LK:[`H`,`h`,`hB`,`hb`],LR:[`h`,`hb`,`H`,`hB`],LS:[`h`,`H`],LT:[`H`,`h`,`hb`,`hB`],LU:[`H`,`h`,`hB`],LV:[`H`,`hB`,`hb`,`h`],LY:[`h`,`hB`,`hb`,`H`],MA:[`H`,`h`,`hB`,`hb`],MC:[`H`,`hB`],MD:[`H`,`hB`],ME:[`H`,`hB`,`h`],MF:[`H`,`hB`],MG:[`H`,`h`],MH:[`h`,`hb`,`H`,`hB`],MK:[`H`,`h`,`hb`,`hB`],ML:[`H`],MM:[`hB`,`hb`,`H`,`h`],MN:[`H`,`h`,`hb`,`hB`],MO:[`h`,`hB`,`hb`,`H`],MP:[`h`,`hb`,`H`,`hB`],MQ:[`H`,`hB`],MR:[`h`,`hB`,`hb`,`H`],MS:[`H`,`h`,`hb`,`hB`],MT:[`H`,`h`],MU:[`H`,`h`],MV:[`H`,`h`],MW:[`h`,`hb`,`H`,`hB`],MX:[`h`,`H`,`hB`,`hb`],MY:[`hb`,`hB`,`h`,`H`],MZ:[`H`,`hB`],NA:[`h`,`H`,`hB`,`hb`],NC:[`H`,`hB`],NE:[`H`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NI:[`h`,`H`,`hB`,`hb`],NL:[`H`,`hB`],NO:[`H`,`h`],NP:[`H`,`h`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],OM:[`h`,`hB`,`hb`,`H`],PA:[`h`,`H`,`hB`,`hb`],PE:[`h`,`H`,`hB`,`hb`],PF:[`H`,`h`,`hB`],PG:[`h`,`H`],PH:[`h`,`hB`,`hb`,`H`],PK:[`h`,`hB`,`H`],PL:[`H`,`h`],PM:[`H`,`hB`],PN:[`H`,`h`,`hb`,`hB`],PR:[`h`,`H`,`hB`,`hb`],PS:[`h`,`hB`,`hb`,`H`],PT:[`H`,`hB`],PW:[`h`,`H`],PY:[`h`,`H`,`hB`,`hb`],QA:[`h`,`hB`,`hb`,`H`],RE:[`H`,`hB`],RO:[`H`,`hB`],RS:[`H`,`hB`,`h`],RU:[`H`],RW:[`H`,`h`],SA:[`h`,`hB`,`hb`,`H`],SB:[`h`,`hb`,`H`,`hB`],SC:[`H`,`h`,`hB`],SD:[`h`,`hB`,`hb`,`H`],SE:[`H`],SG:[`h`,`hb`,`H`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SI:[`H`,`hB`],SJ:[`H`],SK:[`H`],SL:[`h`,`hb`,`H`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],SO:[`h`,`H`],SR:[`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],ST:[`H`,`hB`],SV:[`h`,`H`,`hB`,`hb`],SX:[`H`,`h`,`hb`,`hB`],SY:[`h`,`hB`,`hb`,`H`],SZ:[`h`,`hb`,`H`,`hB`],TA:[`H`,`h`,`hb`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TD:[`h`,`H`,`hB`],TF:[`H`,`h`,`hB`],TG:[`H`,`hB`],TH:[`H`,`h`],TJ:[`H`,`h`],TL:[`H`,`hB`,`hb`,`h`],TM:[`H`,`h`],TN:[`h`,`hB`,`hb`,`H`],TO:[`h`,`H`],TR:[`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],TW:[`hB`,`hb`,`h`,`H`],TZ:[`hB`,`hb`,`H`,`h`],UA:[`H`,`hB`,`h`],UG:[`hB`,`hb`,`H`,`h`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],UY:[`h`,`H`,`hB`,`hb`],UZ:[`H`,`hB`,`h`],VA:[`H`,`h`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VE:[`h`,`H`,`hB`,`hb`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],VN:[`H`,`h`],VU:[`h`,`H`],WF:[`H`,`hB`],WS:[`h`,`H`],XK:[`H`,`hB`,`h`],YE:[`h`,`hB`,`hb`,`H`],YT:[`H`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],ZW:[`H`,`h`],"af-ZA":[`H`,`h`,`hB`,`hb`],"ar-001":[`h`,`hB`,`hb`,`H`],"ca-ES":[`H`,`h`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],"en-HK":[`h`,`hb`,`H`,`hB`],"en-IL":[`H`,`h`,`hb`,`hB`],"en-MY":[`h`,`hb`,`H`,`hB`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"gu-IN":[`hB`,`hb`,`h`,`H`],"hi-IN":[`hB`,`h`,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ku-SY":[`H`,`hB`],"ml-IN":[`hB`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],"ta-IN":[`hB`,`h`,`hb`,`H`],"te-IN":[`hB`,`h`,`H`],"zu-ZA":[`H`,`hB`,`hb`,`h`]};function DO(e,t){let n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`j`){let a=0;for(;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;let o=1+(a&1),s=a<2?1:3+(a>>1),c=OO(t);for((c==`H`||c==`k`)&&(s=0);s-->0;)n+=`a`;for(;o-->0;)n=c+n}else n+=i===`J`?`H`:i}return n}function OO(e){let t=e.hourCycle;if(t===void 0){let n=e;t=n.getHourCycles?.()[0]??n.hourCycles?.[0]}if(t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}let n=e.language,r;return n!==`root`&&(r=e.maximize().region),(EO[`${n}-${r}`]||EO[r||``]||EO[n||``]||EO[`${n}-001`]||EO[`001`])[0].charAt(0)}var kO=RegExp(`^${TO.source}*`),AO=RegExp(`${TO.source}*$`);function jO(e,t){return{start:e,end:t}}var MO=!!Object.fromEntries,NO=!!String.prototype.trimStart,PO=!!String.prototype.trimEnd,FO=MO?Object.fromEntries:function(e){let t={};for(let[n,r]of e)t[n]=r;return t},IO=NO?function(e){return e.trimStart()}:function(e){return e.replace(kO,``)},LO=PO?function(e){return e.trimEnd()}:function(e){return e.replace(AO,``)},RO=RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);function zO(e,t){return RO.lastIndex=t,RO.exec(e)[1]??``}function BO(e){if(e.length===0)return null;let t=1,n=1;for(let r=0;r<e.length;){let i=e.charCodeAt(r);switch(i){case 35:case 39:case 60:case 123:case 125:return null}if(i===10)t++,n=1,r++;else if(n++,i>=55296&&i<=56319&&r+1<e.length){let t=e.charCodeAt(r+1);r+=t>=56320&&t<=57343?2:1}else r++}return{offset:e.length,line:t,column:n}}var VO=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(this.offset()!==0)throw Error(`parser can only be used once`);if(this.message.length>0){let e=this.message.charCodeAt(0);if(e!==35&&e!==39&&e!==60&&e!==123&&e!==125){let e=BO(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:jO(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,``,!1)}parseMessage(e,t,n){let r=[];for(;!this.isEOF();){let i=this.char();if(i===123){let t=this.parseArgument(e,n);if(t.err)return t;r.push(t.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){let e=this.clonePosition();this.bump(),r.push({type:7,location:jO(e,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(26,jO(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&HO(this.peek()||0)){let n=this.parseTag(e,t);if(n.err)return n;r.push(n.val)}else{let n=this.parseLiteral(e,t);if(n.err)return n;r.push(n.val)}}return{val:r,err:null}}parseTag(e,t){let n=this.clonePosition();this.bump();let r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:0,value:`<${r}/>`,location:jO(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!HO(this.char()))return this.error(23,jO(o,this.clonePosition()));let e=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:8,value:r,children:a,location:jO(n,this.clonePosition())},err:null}:this.error(23,jO(o,this.clonePosition()))):this.error(26,jO(e,this.clonePosition()))}return this.error(27,jO(n,this.clonePosition()))}return this.error(23,jO(n,this.clonePosition()))}parseTagName(){let e=this.offset();for(this.bump();!this.isEOF()&&WO(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){let n=this.clonePosition(),r=``;for(;;){let n=this.tryParseQuote(t);if(n){r+=n;continue}let i=this.tryParseUnquoted(e,t);if(i){r+=i;continue}let a=this.tryParseLeftAngleBracket();if(a)r+=a;else break}let i=jO(n,this.clonePosition());return{val:{type:0,value:r,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!UO(this.peek()||0))?(this.bump(),`<`):null}tryParseQuote(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(e===39){if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(e,t){let n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,jO(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,jO(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,jO(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,jO(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:jO(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,jO(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(3,jO(n,this.clonePosition()))}}parseIdentifierIfPossible(){let e=this.clonePosition(),t=this.offset(),n=zO(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:jO(e,this.clonePosition())}}parseArgumentOptions(e,t,n,r){let i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(4,jO(i,o));case`number`:case`date`:case`time`:{this.bumpSpace();let e=null;if(this.bumpIf(`,`)){this.bumpSpace();let t=this.clonePosition(),n=this.parseSimpleArgStyleIfPossible();if(n.err)return n;let r=LO(n.val);if(r.length===0)return this.error(6,jO(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:jO(t,this.clonePosition())}}let t=this.tryParseArgumentClose(r);if(t.err)return t;let i=jO(r,this.clonePosition());if(e&&e.style.startsWith(`::`)){let t=IO(e.style.slice(2));if(a===`number`){let r=this.parseNumberSkeletonFromString(t,e.styleLocation);return r.err?r:{val:{type:2,value:n,location:i,style:r.val},err:null}}{if(t.length===0)return this.error(10,i);let r=t;this.locale&&(r=DO(t,this.locale));let o={type:1,pattern:r,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?eO(r):{}};return{val:{type:a===`date`?3:4,value:n,location:i,style:o},err:null}}}return{val:{type:a===`number`?2:a===`date`?3:4,value:n,location:i,style:e?.style??null},err:null}}case`plural`:case`selectordinal`:case`select`:{let i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(12,jO(i,{...i}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if(a!==`select`&&o.value===`offset`){if(!this.bumpIf(`:`))return this.error(13,jO(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),s=e.val}let c=this.tryParsePluralOrSelectOptions(e,a,t,o);if(c.err)return c;let l=this.tryParseArgumentClose(r);if(l.err)return l;let u=jO(r,this.clonePosition());return a===`select`?{val:{type:5,value:n,options:FO(c.val),location:u},err:null}:{val:{type:6,value:n,options:FO(c.val),offset:s,pluralType:a===`plural`?`cardinal`:`ordinal`,location:u},err:null}}default:return this.error(5,jO(i,o))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,jO(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(11,jO(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let n=[];try{n=nO(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?fO(n):{}},err:null}}tryParsePluralOrSelectOptions(e,t,n,r){let i=!1,a=[],o=new Set,{value:s,location:c}=r;for(;;){if(s.length===0){let e=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;c=jO(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}else break}if(o.has(s))return this.error(t===`select`?21:20,c);s===`other`&&(i=!0),this.bumpSpace();let r=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?17:18,jO(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,n);if(l.err)return l;let u=this.tryParseArgumentClose(r);if(u.err)return u;a.push([s,{value:l.val,location:jO(r,this.clonePosition())}]),o.add(s),this.bumpSpace(),{value:s,location:c}=this.parseIdentifierIfPossible()}return a.length===0?this.error(t===`select`?15:16,jO(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,jO(this.clonePosition(),this.clonePosition())):{val:a,err:null}}tryParseDecimalInteger(e,t){let n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);let i=!1,a=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)i=!0,a=a*10+(e-48),this.bump();else break}let o=jO(r,this.clonePosition());return i?(a*=n,Number.isSafeInteger(a)?{val:a,err:null}:this.error(t,o)):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);let t=this.message.codePointAt(e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&GO(this.char());)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function HO(e){return e>=97&&e<=122||e>=65&&e<=90}function UO(e){return HO(e)||e===47}function WO(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function GO(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function KO(e){e.forEach(e=>{if(delete e.location,yO(e)||bO(e))for(let t in e.options)delete e.options[t].location,KO(e.options[t].value);else gO(e)&&CO(e.style)||(_O(e)||vO(e))&&wO(e.style)?delete e.style.location:SO(e)&&KO(e.children)})}function qO(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};let n=new VO(e,t).parse();if(n.err){let e=SyntaxError(pO[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||KO(n.val),n.val}var JO=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},YO=class extends JO{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join(`", "`)}"`,`INVALID_VALUE`,r)}},XO=class extends JO{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,`INVALID_VALUE`,n)}},ZO=class extends JO{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,`MISSING_VALUE`,t)}};function QO(e){return e.length<2?e:e.reduce((e,t)=>{let n=e[e.length-1];return!n||n.type!==0||t.type!==0?e.push(t):n.value+=t.value,e},[])}function $O(e){return typeof e==`function`}function ek(e,t,n,r,i,a,o){if(e.length===1&&mO(e[0]))return[{type:0,value:e[0].value}];let s=[];for(let c of e){if(mO(c)){s.push({type:0,value:c.value});continue}if(xO(c)){typeof a==`number`&&s.push({type:0,value:n.getNumberFormat(t).format(a)});continue}let{value:e}=c;if(!(i&&e in i))throw new ZO(e,o);let l=i[e];if(hO(c))(!l||typeof l==`string`||typeof l==`number`||typeof l==`bigint`)&&(l=typeof l==`string`||typeof l==`number`||typeof l==`bigint`?String(l):``),s.push({type:typeof l==`string`?0:1,value:l});else if(_O(c)){let e=typeof c.style==`string`?r.date[c.style]:wO(c.style)?c.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)})}else if(vO(c)){let e=typeof c.style==`string`?r.time[c.style]:wO(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)})}else if(gO(c)){let e=typeof c.style==`string`?r.number[c.style]:CO(c.style)?c.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if(typeof l==`bigint`){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);l*=BigInt(t)}else l*=t}s.push({type:0,value:n.getNumberFormat(t,e).format(l)})}else{if(SO(c)){let{children:e,value:l}=c,u=i[l];if(!$O(u))throw new XO(l,`function`,o);let d=u(ek(e,t,n,r,i,a).map(e=>e.value));Array.isArray(d)||(d=[d]),s.push(...d.map(e=>({type:typeof e==`string`?0:1,value:e})))}if(yO(c)){let e=l,a=(Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0)||c.options.other;if(!a)throw new YO(c.value,l,Object.keys(c.options),o);s.push(...ek(a.value,t,n,r,i))}else if(bO(c)){let e=`=${l}`,a=Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0;if(!a){if(!Intl.PluralRules)throw new JO(`Intl.PluralRules is not available in this environment.
|
|
3
3
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
4
4
|
`,`MISSING_INTL_API`,o);let e=typeof l==`bigint`?Number(l):l,r=n.getPluralRules(t,{type:c.pluralType}).select(e-(c.offset||0));a=(Object.prototype.hasOwnProperty.call(c.options,r)?c.options[r]:void 0)||c.options.other}if(!a)throw new YO(c.value,l,Object.keys(c.options),o);let u=typeof l==`bigint`?Number(l):l;s.push(...ek(a.value,t,n,r,i,u-(c.offset||0)))}}}return QO(s)}function tk(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function nk(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=tk(e[r],t[r]),n),{...e}):e}function rk(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function ik(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:VD((...e)=>new Intl.NumberFormat(...e),{cache:rk(e.number),strategy:QD.variadic}),getDateTimeFormat:VD((...e)=>new Intl.DateTimeFormat(...e),{cache:rk(e.dateTime),strategy:QD.variadic}),getPluralRules:VD((...e)=>new Intl.PluralRules(...e),{cache:rk(e.pluralRules),strategy:QD.variadic})}}var ak=class e{constructor(t,n=e.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(t.length===1)return t[0].value;let n=t.reduce((e,t)=>(!e.length||t.type!==0||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e),[]);return n.length<=1?n[0]||``:n},this.formatToParts=e=>ek(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...n}=i||{};this.ast=e.__parse(t,{...n,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=nk(e.formats,r),this.formatters=i&&i.formatters||ik(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(Intl.Locale===void 0)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}}static{this.__parse=qO}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}}}};function ok(e,t){return dk(e)||uk(e,t)||ck(e,t)||sk()}function sk(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
5
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ck(e,t){if(e){if(typeof e==`string`)return lk(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lk(e,t):void 0}}function lk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uk(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function dk(e){if(Array.isArray(e))return e}function fk(e){"@babel/helpers - typeof";return fk=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},fk(e)}function pk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pk(Object(n),!0).forEach(function(t){hk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hk(e,t,n){return(t=yk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gk(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,yk(r.key),r)}}function vk(e,t,n){return t&&_k(e.prototype,t),n&&_k(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yk(e){var t=bk(e,`string`);return fk(t)==`symbol`?t:t+``}function bk(e,t){if(fk(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(fk(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function xk(){return{memoize:!0,memoizeFallback:!1,bindI18n:``,bindI18nStore:``,parseErrorHandler:function(e,t,n,r){return n},parseLngForICU:function(e){return e},escapeVariables:!1}}var Sk=function(){function e(t){gk(this,e),this.type=`i18nFormat`,this.mem={},this.init(null,t)}return vk(e,[{key:`init`,value:function(e,t){var n=this,r=e&&e.options&&e.options.i18nFormat||{};if(this.options=BD(r,t,this.options||{},xk()),this.formats=this.options.formats,e){var i=this.options,a=i.bindI18n,o=i.bindI18nStore,s=i.memoize;e.IntlMessageFormat=ak,e.ICU=this,s&&(a&&e.on(a,function(){return n.clearCache()}),o&&e.store.on(o,function(){return n.clearCache()}))}}},{key:`addUserDefinedFormats`,value:function(e){this.formats=this.formats?mk(mk({},this.formats),e):e}},{key:`parse`,value:function(e,t,n,r,i,a){var o=a&&a.resolved&&a.resolved.res,s=this.options.memoize&&`${n}.${r}.${i.replace(/\./g,`###`)}`,c;this.options.memoize&&(c=ID(this.mem,s));try{return c||(c=new ak(e,this.options.parseLngForICU(n),this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!a||o)&&FD(this.mem,s,c)),c.format(this.escapeVariableValues(t))}catch(n){return this.options.parseErrorHandler(n,i,e,t)}}},{key:`addLookupKeys`,value:function(e,t,n,r,i){return e}},{key:`clearCache`,value:function(){this.mem={}}},{key:`escapeVariableValues`,value:function(e){if(!this.options.escapeVariables||!e||fk(e)!==`object`)return e;for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=ok(r[n],2),a=i[0],o=i[1];t[a]=typeof o==`string`?o.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`):o}return t}}]),e}();Sk.type=`i18nFormat`;function Ck({icuOptions:e={},...t}){let{parseErrorHandler:n=void 0}=t;return MD(t,{icu:new Sk({parseErrorHandler:n,bindI18n:t.bindI18n,...e})})}var wk=Object.assign({"../assets/locale/messages_en.json":AE}),Tk=(e,t=``)=>`../assets/locale/messages_${e}${t}.json`,Ek=e=>{let[t]=e.toLowerCase().replace(/_/g,`-`).split(`-`);return wk[Tk(t)]?t:`en`},Dk=PE({isDev:!1,loadMessages:async e=>wk[Tk(e)],loadDevMessages:void 0}),Ok=async e=>{let t=Ck({asyncMessagesLoader:Dk,locale:Ek(e),disableAutoInit:!0,useSuspense:!1});if(await t.init({initAsync:!1}),!t.hasResourceBundle(t.language,`translation`))throw Error(`Unable to load Events translations`);return t},kk=()=>{let e=bn();return o(()=>Ok(e??`en`),[e])},Ak={short:{weekday:`short`,month:`short`,day:`2-digit`,hour:`numeric`,minute:`2-digit`},long:{month:`short`,day:`2-digit`,year:`numeric`,hour:`numeric`,minute:`2-digit`},full:{month:`short`,day:`2-digit`,year:`numeric`,hour:`numeric`,minute:`2-digit`},dateOnly:{month:`short`,day:`2-digit`,year:`numeric`},timeOnly:{hour:`numeric`,minute:`2-digit`}},jk=864e5,Mk=14,Nk=19,Pk=23,Fk=e=>e.replace(/[\u00a0\u2009\u202f]/g,` `),Ik=(e,t,n)=>new Intl.DateTimeFormat(n,t?{...e,timeZone:t}:e),Lk=e=>{if(!e)return null;let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t},Rk=(e,t,n,r)=>{let i=Lk(e);if(!i)return``;try{return Fk(Ik(Ak[t],n,r).format(i))}catch{return i.toString()}},zk=(e,t)=>Object.fromEntries(new Intl.DateTimeFormat(`en-US`,{timeZone:t,hourCycle:`h23`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}).formatToParts(e).filter(({type:e})=>e!==`literal`).map(({type:e,value:t})=>[e,Number(t)])),Bk=(e,t)=>{let{year:n,month:r,day:i,hour:a,minute:o,second:s}=zk(e,t);return Date.UTC(n,r-1,i,a,o,s)-Math.floor(e.getTime()/1e3)*1e3},Vk=(e,t=new Date)=>{let{year:n,month:r,day:i}=zk(new Date(t.getTime()+Mk*jk),e),a=Date.UTC(n,r-1,i,Nk),o=a-Bk(new Date(a),e);return new Date(a-Bk(new Date(o),e))},Hk=(e,t=new Date)=>{let{year:n,month:r,day:i}=zk(new Date(t.getTime()+Mk*jk),e),a=Date.UTC(n,r-1,i,Pk),o=a-Bk(new Date(a),e);return new Date(a-Bk(new Date(o),e))},Uk=e=>e?._id??``,Wk=e=>e?.slug??``,Gk=e=>e?.title??``,Kk=e=>e?.shortDescription??``,qk=e=>e?.description,Jk=e=>e?.mainImage,Yk=e=>!!e?.shortDescription,Xk=e=>!!e?.description?.nodes?.some(gA),Zk=e=>!!e?.mainImage,Qk=e=>!!e?.registration?.tickets?.stockManagerAppId,$k=e=>e?.registration?.type===`TICKETING`,eA=e=>e?.registration?.type===`RSVP`,tA=e=>e?.registration?.type===`EXTERNAL`,nA=e=>e?.registration?.type===`NONE`,rA=e=>!!e?.dateAndTimeSettings?.dateAndTimeTbd,iA=e=>{let t=e?.dateAndTimeSettings?.recurrenceStatus;return!!t&&t!==`ONE_TIME`},aA=e=>e?.registration?.status===`SCHEDULED_RSVP`,oA=e=>[`OPEN_RSVP`,`OPEN_RSVP_WAITLIST_ONLY`,`OPEN_TICKETS`,`OPEN_EXTERNAL`].includes(e?.registration?.status??``),sA=e=>[`CLOSED_MANUALLY`,`CLOSED_AUTOMATICALLY`].includes(e?.registration?.status??``),cA=e=>$k(e)||eA(e)?!1:nA(e)?!!e?.eventDisplaySettings?.hideEventDetailsButton:!!e?.eventDisplaySettings?.hideEventDetailsPage,lA=e=>e?.registration?.external?.url,uA=e=>!!e?.location?.locationTbd,dA=e=>e?.location?.name??``,fA=e=>e?.location?.address?.formatted||[e?.location?.address?.addressLine1,e?.location?.address?.city].filter(Boolean).join(`, `),pA=e=>e?.registration?.rsvp?.startDate,mA=e=>e?.dateAndTimeSettings?.timeZoneId??void 0,hA=e=>e?.form?.messages?.registrationClosed?.message??``,gA=e=>!!e.textData?.text?.trim()||!!e.nodes?.some(gA)||[`IMAGE`,`VIDEO`,`AUDIO`,`FILE`,`GALLERY`,`HTML`,`EMBED`,`GIF`,`DIVIDER`,`BUTTON`].includes(e.type??``),{InitialRegistrationTypeType:_A,LocationType:vA,NodeType:yA,RegistrationStatusStatus:bA,RegistrationTypeType:xA,RequestedFields:SA,SortOrder:CA,Status:wA,TaxType:TA}=Ma,EA=e=>({type:yA.PARAGRAPH,id:``,nodes:e?[{type:yA.TEXT,id:``,nodes:[],textData:{text:e,decorations:[]}}]:[],paragraphData:{}}),DA=e=>({nodes:[e(`events.demo.aboutIntro`),``,e(`events.demo.aboutBody`),``,e(`events.demo.aboutBody`)].map(EA)}),OA=`demo`,kA=`America/Los_Angeles`,AA=[`wix:image://v1/936ad1_09b33941d2854a5bb7fc93f78d30e85d~mv2.png/#originWidth=1920&originHeight=1080`,`wix:image://v1/936ad1_5f3e23b488e441d6a9fd32fa59e0ac11~mv2.png/#originWidth=1920&originHeight=1080`,`wix:image://v1/936ad1_41ef3a552bb64327893a80e7c7926abc~mv2.png/#originWidth=1920&originHeight=1080`],jA=`wix:image://v1/913019_b2108feea3fb45e0ba632c024d7d5f69~mv2.jpg/#originWidth=1920&originHeight=1080`,MA=e=>({_id:`${OA}1`,slug:``,status:wA.UPCOMING,title:e(`events.demo.eventTitle`),shortDescription:e(`events.demo.eventTeaser`),description:DA(e),mainImage:AA[0],dateAndTimeSettings:{startDate:Vk(kA),endDate:Hk(kA),hideEndDate:!1,dateAndTimeTbd:!1,timeZoneId:kA},location:{name:e(`events.demo.shortLocation`),type:vA.VENUE,address:{addressLine1:`500 Terry Francine Street`,city:`San Francisco`,formatted:e(`events.demo.longLocation`),location:{latitude:37.7749295,longitude:-122.41941550000001}}},registration:{type:xA.TICKETING,status:bA.OPEN_TICKETS,initialType:_A.TICKETING,tickets:{currency:`USD`,ticketLimitPerOrder:50,guestsAssignedSeparately:!1,soldOut:!1,lowestPrice:{value:`10.25`,currency:`USD`},highestPrice:{value:`30.75`,currency:`USD`}}}}),NA=(e,t)=>{let n=MA(e);return PA({...t,title:t.title||n.title,shortDescription:t.shortDescription||n.shortDescription,description:Xk(t)?t.description:n.description,location:t.location??n.location,dateAndTimeSettings:t.dateAndTimeSettings??n.dateAndTimeSettings})},PA=e=>({...e,mainImage:e.mainImage||jA}),FA=e=>String(e).padStart(2,`0`),IA=(e,t,n={})=>{let r=new Intl.DateTimeFormat(`en-CA`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,hour12:!1,timeZone:t,...n}).formatToParts(e),i=Object.fromEntries(r.map(e=>[e.type,e.value]));return{...i,hour:i.hour===`24`?`00`:i.hour}},LA=(e,t)=>{let n=Lk(e);if(!n)return``;try{let{year:e,month:r,day:i,hour:a,minute:o}=IA(n,t);return!e||!r||!i||!a||!o?``:`${e}-${r}-${i}T${FA(Number(a))}:${FA(Number(o))}`}catch{return``}},RA=e=>!e||e.dateAndTimeTbd?``:LA(e.startDate,e.timeZoneId??void 0),zA=e=>!e||e.dateAndTimeTbd||e.hideEndDate?``:LA(e.endDate,e.timeZoneId??void 0),BA=e=>/^https?:\/\/.+$/i.test(e)?e:`http://${e}`,VA=`140603ad-af8d-84a5-2c80-a0f60cb47351`,HA=`event-details-builder`,UA=`event-registration-builder`,WA=e=>e.appSectionRelativeUrl(VA,HA,!0),GA=e=>e.appSectionRelativeUrl(VA,UA,!0),KA=(e,t,n,r=``)=>`${e.siteUrl}${t}${n?`/${n}`:``}${r}`,qA=(e,t)=>{let n=WA(e),r=GA(e);return tA(t)&&cA(t)?{href:BA(lA(t)),target:`_blank`}:cA(t)?nA(t)?{href:void 0}:r?{href:KA(e,r,t.slug),target:`_self`}:void 0:n?{href:KA(e,n,t.slug),target:`_self`}:void 0},JA=(e,t)=>{let n=WA(e),r=GA(e);return tA(t)?{href:BA(lA(t)),target:`_blank`}:nA(t)?{href:void 0}:$k(t)?n?{href:KA(e,n,t.slug,`#tickets`),target:`_self`}:void 0:r?{href:KA(e,r,t.slug),target:`_self`}:void 0},YA=`https://static.wixstatic.com/media/`,XA=1200,ZA=800,QA=e=>!e.uri||e.width>0&&e.height>0?e:{...e,width:XA,height:ZA},$A=e=>{let t=e.startsWith(`//`)?`https:${e}`:e;if(!t.startsWith(YA))return;let n=t.slice(35).split(/[?#]/)[0];return n?decodeURIComponent(n):void 0},ej=(e,t)=>{let n=e.width??0,r=e.height??0;return QA({uri:e.id??(e.url?$A(e.url):void 0)??``,name:t,width:n,height:r,alt:t})},tj=(e,t)=>{if(!e)return;let n=Qn(e);if(!n)return;let r=ej(n,t);return r.uri?r:void 0},nj=f({AppliedAt:()=>xj,ArchivedFilter:()=>Cj,PeriodUnit:()=>bj,PublicFilter:()=>wj,SortOrder:()=>Sj,WebhookIdentityType:()=>Tj,archivePlan:()=>pM,clearPrimary:()=>fM,createPlan:()=>cM,getPlan:()=>aM,getPlanStats:()=>sM,listPlans:()=>oM,listPublicPlans:()=>iM,makePlanPrimary:()=>dM,onPlanArchived:()=>_M,onPlanBuyerCanCancelUpdated:()=>hM,onPlanCreated:()=>gM,onPlanUpdated:()=>vM,queryPublicPlans:()=>mM,setPlanVisibility:()=>uM,updatePlan:()=>lM,utils:()=>kj}),rj=[{path:`plans.createdDate`},{path:`plans.updatedDate`}],ij=[{path:`query.sort.origin.latitude`},{path:`query.sort.origin.longitude`}],aj=[{path:`plan.createdDate`},{path:`plan.updatedDate`}],oj=[{path:`fieldMask`}];function sj(e){return Ct(Object.assign(e,{domainToMappings:{"*.dev.wix-code.com":[{srcPath:`/_api/paid-plans/v2/plans`,destPath:`/v2/plans`},{srcPath:`/_api/pricing-plans/v2/plans`,destPath:`/v2/plans`}],"*.pub.wix-code.com":[{srcPath:`/_api/paid-plans/v2/plans`,destPath:`/v2/plans`}],"*.wixapps.net":[{srcPath:`/_api/paid-plans/v2/plans`,destPath:`/v2/plans`}],"editor-flow.wixapps.net":[{srcPath:`/_api/paid-plans/v2/plans`,destPath:`/v2/plans`}],"editor._base_domain_":[{srcPath:`/_api/paid-plans/v2/plans`,destPath:`/v2/plans`},{srcPath:`/_api/pricing-plans/v2/plans`,destPath:`/v2/plans`}],"blocks._base_domain_":[{srcPath:`/_api/paid-plans/v2/plans`,destPath:`/v2/plans`},{srcPath:`/_api/pricing-plans/v2/plans`,destPath:`/v2/plans`}],"create.editorx":[{srcPath:`/_api/paid-plans/v2/plans`,destPath:`/v2/plans`},{srcPath:`/_api/pricing-plans/v2/plans`,destPath:`/v2/plans`}],"editor.wixapps.net":[{srcPath:`/_api/paid-plans/v2/plans`,destPath:`/v2/plans`},{srcPath:`/_api/pricing-plans/v2/plans`,destPath:`/v2/plans`}],"forums._base_domain_":[{srcPath:`/_api/paid-plans/v2/plans`,destPath:`/v2/plans`}],"forums.wixapps.net":[{srcPath:`/_api/paid-plans/v2/plans`,destPath:`/v2/plans`}],"manage._base_domain_":[{srcPath:`/_api/paid-plans/v2/plans`,destPath:`/v2/plans`},{srcPath:`/_api/pricing-plans/v2/plans`,destPath:`/v2/plans`}],"www._base_domain_":[{srcPath:`/_api/paid-plans/v2/plans`,destPath:`/v2/plans`}],"www.wixapis.com":[{srcPath:`/pricing-plans/v2/plans`,destPath:`/v2/plans`}],_:[{srcPath:`/_api/pricing-plans/v2/plans`,destPath:`/v2/plans`},{srcPath:`/_api/paid-plans/v2/plans`,destPath:`/v2/plans`}],"apps._base_domain_":[{srcPath:`/_api/paid-plans/v2/plans`,destPath:`/v2/plans`},{srcPath:`/_api/pricing-plans/v2/plans`,destPath:`/v2/plans`}],"dev._base_domain_":[{srcPath:`/_api/paid-plans/v2/plans`,destPath:`/v2/plans`},{srcPath:`/_api/pricing-plans/v2/plans`,destPath:`/v2/plans`}],"api._api_base_domain_":[{srcPath:`/plan-proxy`,destPath:``}]}}))}var cj=`@wix/auto_sdk_pricing-plans_plans`;function lj(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v2.plan`,method:`GET`,methodFqn:`com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans`,packageName:cj,migrationOptions:{optInTransformResponse:!0},url:sj({protoPath:`/v2/plans/public`,data:e,host:t}),params:St(e),transformResponse:e=>G(e,[{transformFn:W,paths:rj}])}}return t}function uj(e){function t({host:t}){let n=G(e,[{transformFn:Xt,paths:ij}]);return{entityFqdn:`wix.pricing_plans.v2.plan`,method:`POST`,methodFqn:`com.wixpress.membership.v2.plans.PlansServiceV2.QueryPublicPlans`,packageName:cj,migrationOptions:{optInTransformResponse:!0},url:sj({protoPath:`/v2/plans/public/query`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:rj}])}}return t}function dj(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v2.plan`,method:`GET`,methodFqn:`com.wixpress.membership.v2.plans.PlansServiceV2.GetPlan`,packageName:cj,migrationOptions:{optInTransformResponse:!0},url:sj({protoPath:`/v2/plans/{id}`,data:e,host:t}),params:St(e),transformResponse:e=>G(e,[{transformFn:W,paths:aj}])}}return t}function fj(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v2.plan`,method:`GET`,methodFqn:`com.wixpress.membership.v2.plans.PlansServiceV2.ListPlans`,packageName:cj,migrationOptions:{optInTransformResponse:!0},url:sj({protoPath:`/v2/plans`,data:e,host:t}),params:St(e),transformResponse:e=>G(e,[{transformFn:W,paths:rj}])}}return t}function pj(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v2.plan`,method:`GET`,methodFqn:`com.wixpress.membership.v2.plans.PlansServiceV2.GetPlanStats`,packageName:cj,migrationOptions:{optInTransformResponse:!0},url:sj({protoPath:`/v2/plans/stats`,data:e,host:t}),params:St(e)}}return t}function mj(e){function t({host:t}){let n=G(e,[{transformFn:Ve,paths:aj}]);return{entityFqdn:`wix.pricing_plans.v2.plan`,method:`POST`,methodFqn:`com.wixpress.membership.v2.plans.PlansServiceV2.CreatePlan`,packageName:cj,migrationOptions:{optInTransformResponse:!0},url:sj({protoPath:`/v2/plans`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:aj}])}}return t}function hj(e){function t({host:t}){let n=G(e,[{transformFn:en,paths:oj},{transformFn:Ve,paths:aj}]);return{entityFqdn:`wix.pricing_plans.v2.plan`,method:`PATCH`,methodFqn:`com.wixpress.membership.v2.plans.PlansServiceV2.UpdatePlan`,packageName:cj,migrationOptions:{optInTransformResponse:!0},url:sj({protoPath:`/v2/plans/{plan.id}`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:aj}])}}return t}function gj(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v2.plan`,method:`PUT`,methodFqn:`com.wixpress.membership.v2.plans.PlansServiceV2.SetPlanVisibility`,packageName:cj,migrationOptions:{optInTransformResponse:!0},url:sj({protoPath:`/v2/plans/{id}/visibility`,data:e,host:t}),data:e,transformResponse:e=>G(e,[{transformFn:W,paths:aj}])}}return t}function _j(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v2.plan`,method:`POST`,methodFqn:`com.wixpress.membership.v2.plans.PlansServiceV2.MakePlanPrimary`,packageName:cj,migrationOptions:{optInTransformResponse:!0},url:sj({protoPath:`/v2/plans/{id}/make-primary`,data:e,host:t}),data:e,transformResponse:e=>G(e,[{transformFn:W,paths:aj}])}}return t}function vj(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v2.plan`,method:`POST`,methodFqn:`com.wixpress.membership.v2.plans.PlansServiceV2.ClearPrimary`,packageName:cj,migrationOptions:{optInTransformResponse:!0},url:sj({protoPath:`/v2/plans/clear-primary`,data:e,host:t}),data:e}}return t}function yj(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v2.plan`,method:`POST`,methodFqn:`com.wixpress.membership.v2.plans.PlansServiceV2.ArchivePlan`,packageName:cj,migrationOptions:{optInTransformResponse:!0},url:sj({protoPath:`/v2/plans/{id}/archive`,data:e,host:t}),data:e,transformResponse:e=>G(e,[{transformFn:W,paths:aj}])}}return t}var bj=(e=>(e.UNDEFINED=`UNDEFINED`,e.DAY=`DAY`,e.WEEK=`WEEK`,e.MONTH=`MONTH`,e.YEAR=`YEAR`,e))(bj||{}),xj=(e=>(e.FIRST_PAYMENT=`FIRST_PAYMENT`,e))(xj||{}),Sj=(e=>(e.ASC=`ASC`,e.DESC=`DESC`,e))(Sj||{}),Cj=(e=>(e.ACTIVE=`ACTIVE`,e.ARCHIVED=`ARCHIVED`,e.ARCHIVED_AND_ACTIVE=`ARCHIVED_AND_ACTIVE`,e))(Cj||{}),wj=(e=>(e.PUBLIC_AND_HIDDEN=`PUBLIC_AND_HIDDEN`,e.PUBLIC=`PUBLIC`,e.HIDDEN=`HIDDEN`,e))(wj||{}),Tj=(e=>(e.UNKNOWN=`UNKNOWN`,e.ANONYMOUS_VISITOR=`ANONYMOUS_VISITOR`,e.MEMBER=`MEMBER`,e.WIX_USER=`WIX_USER`,e.APP=`APP`,e))(Tj||{});async function Ej(e){let{httpClient:t,sideEffects:n}=arguments[1],r=lj(H({limit:e?.limit,offset:e?.offset,planIds:e?.planIds}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{limit:`$[0].limit`,offset:`$[0].offset`,planIds:`$[0].planIds`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}function Dj(){let{httpClient:e,sideEffects:t}=arguments[0];return Nn({func:async n=>{let r=uj(n);t?.onSiteCall?.();try{let n=await e.request(r);return t?.onSuccess?.(n),n}catch(e){throw t?.onError?.(e),e}},requestTransformer:e=>{let t=[e,{}];return H({...t?.[1],query:t?.[0]})},responseTransformer:({data:e})=>{let t=U(G(e,[]));return{items:t?.plans,pagingMetadata:t?.pagingMetadata}},errorTransformer:e=>{throw K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{query:`$[0]`},singleArgumentUnchanged:!1})},pagingMethod:`OFFSET`,transformationPaths:{}})}async function Oj(e){let{httpClient:t,sideEffects:n}=arguments[1],r=uj(H({query:e}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{query:`$[0]`},singleArgumentUnchanged:!1},[`query`]);throw n?.onError?.(e),t}}var kj={query:zn()};async function Aj(e){let{httpClient:t,sideEffects:n}=arguments[1],r=dj(H({id:e}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(e.data)?.plan}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{id:`$[0]`},singleArgumentUnchanged:!1},[`_id`]);throw n?.onError?.(e),t}}async function jj(e){let{httpClient:t,sideEffects:n}=arguments[1],r=fj(H({archived:e?.archived,public:e?.public,limit:e?.limit,offset:e?.offset,planIds:e?.planIds}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{archived:`$[0].archived`,public:`$[0].public`,limit:`$[0].limit`,offset:`$[0].offset`,planIds:`$[0].planIds`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}async function Mj(){let{httpClient:e,sideEffects:t}=arguments[0],n=pj(H({}));t?.onSiteCall?.();try{let r=await e.request(n);return t?.onSuccess?.(r),U(r.data)}catch(e){let n=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{},singleArgumentUnchanged:!1},[]);throw t?.onError?.(e),n}}async function Nj(e){let{httpClient:t,sideEffects:n}=arguments[1],r=mj(H({plan:e}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(e.data)?.plan}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{plan:`$[0]`},singleArgumentUnchanged:!1},[`plan`]);throw n?.onError?.(e),t}}async function Pj(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=hj(H({plan:{...t,id:e}}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(e.data)?.plan}catch(e){let t=K(e,{spreadPathsToArguments:{plan:`$[1]`},explicitPathsToArguments:{"plan.id":`$[0]`},singleArgumentUnchanged:!1},[`_id`,`plan`]);throw r?.onError?.(e),t}}async function Fj(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=gj(H({id:e,visible:t}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{id:`$[0]`,visible:`$[1]`},singleArgumentUnchanged:!1},[`_id`,`visible`]);throw r?.onError?.(e),t}}async function Ij(e){let{httpClient:t,sideEffects:n}=arguments[1],r=_j(H({id:e}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{id:`$[0]`},singleArgumentUnchanged:!1},[`_id`]);throw n?.onError?.(e),t}}async function Lj(){let{httpClient:e,sideEffects:t}=arguments[0],n=vj(H({}));t?.onSiteCall?.();try{let r=await e.request(n);return t?.onSuccess?.(r),U(r.data)}catch(e){let n=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{},singleArgumentUnchanged:!1},[]);throw t?.onError?.(e),n}}async function Rj(e){let{httpClient:t,sideEffects:n}=arguments[1],r=yj(H({id:e}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{id:`$[0]`},singleArgumentUnchanged:!1},[`_id`]);throw n?.onError?.(e),t}}var zj=[{path:`data.plan.createdDate`},{path:`data.plan.updatedDate`},{path:`metadata.eventTime`}],Bj=[{path:`entity.createdDate`},{path:`entity.updatedDate`},{path:`metadata.eventTime`}];function Vj(e){return t=>Ej(t,{httpClient:e})}function Hj(e){return()=>Dj({httpClient:e})}function Uj(e){return t=>Oj(t,{httpClient:e})}function Wj(e){return t=>Aj(t,{httpClient:e})}function Gj(e){return t=>jj(t,{httpClient:e})}function Kj(e){return()=>Mj({httpClient:e})}function qj(e){return t=>Nj(t,{httpClient:e})}function Jj(e){return(t,n)=>Pj(t,n,{httpClient:e})}function Yj(e){return(t,n)=>Fj(t,n,{httpClient:e})}function Xj(e){return t=>Ij(t,{httpClient:e})}function Zj(e){return()=>Lj({httpClient:e})}function Qj(e){return t=>Rj(t,{httpClient:e})}var $j=m(`wix.pricing_plans.plan_buyer_can_cancel_updated`,!0,e=>U(G(e,[{transformFn:W,paths:zj}])))(),eM=m(`wix.pricing_plans.plan_created`,!0,e=>U(G(e,[{transformFn:W,paths:Bj}])))(),tM=m(`wix.pricing_plans.plan_plan_archived`,!0,e=>U(G(e,[{transformFn:W,paths:zj}])))(),nM=m(`wix.pricing_plans.plan_updated`,!0,e=>U(G(e,[{transformFn:W,paths:Bj}])))();function rM(e){let t=Yn({builderQueryFunction:()=>Hj(e)(),typedQueryFunction:t=>Uj(e)(t),hasOptionsParameter:!1});function n(e){return t(...arguments)}return n}var iM=q(Vj),aM=q(Wj),oM=q(Gj),sM=q(Kj),cM=q(qj),lM=q(Jj),uM=q(Yj),dM=q(Xj),fM=q(Zj),pM=q(Qj),mM=q(rM),hM=Yt($j),gM=Yt(eM),_M=Yt(tM),vM=Yt(nM),yM=f({AggregationType:()=>kN,AppliedAt:()=>YM,Cascade:()=>xN,CustomerEligibility:()=>$M,DayOfWeek:()=>vN,DistributionStrategyType:()=>oN,DurationUnit:()=>aN,EndType:()=>QM,FreeTrialPolicy:()=>pN,Interval:()=>ON,MissingValues:()=>TN,Mode:()=>AN,NestedAggregationType:()=>DN,OverrideType:()=>tN,Period:()=>XM,PlacementType:()=>_N,PriceOverrideOverrideType:()=>eN,PriceType:()=>JM,PricingStrategyType:()=>fN,PurchaseFlow:()=>dN,PurchaseLimitType:()=>iN,RecurrenceType:()=>hN,ResolutionMethod:()=>yN,RulesType:()=>mN,ScalarType:()=>EN,SortDirection:()=>wN,SortOrder:()=>SN,SortType:()=>CN,StartDateType:()=>sN,StartType:()=>ZM,Status:()=>rN,TaxableAddress:()=>lN,Type:()=>cN,V1DayOfWeek:()=>gN,ValidationStrategy:()=>uN,Visibility:()=>nN,WebhookIdentityType:()=>bN,bulkUpdatePlanTags:()=>wP,bulkUpdatePlanTagsByFilter:()=>TP,bulkUpdatePlans:()=>CP,countPlans:()=>OP,createPlan:()=>bP,deletePlan:()=>EP,getPlan:()=>xP,getPlanConfigurationConstraints:()=>_P,getPlanPreview:()=>vP,listPlanPreviews:()=>yP,onPlanCreated:()=>AP,onPlanDeleted:()=>jP,onPlanTagsModified:()=>MP,onPlanUpdated:()=>NP,queryPlans:()=>kP,searchPlans:()=>DP,updatePlan:()=>SP,utils:()=>UN}),bM=[{path:`plan.createdDate`},{path:`plan.updatedDate`},{path:`plan.pricingVariants.priceOverrides.overrides.conditions.validFromDate`},{path:`plan.pricingVariants.priceOverrides.overrides.conditions.validUntilDate`},{path:`plan.pricingVariants.feeOverrides.overrides.conditions.validFromDate`},{path:`plan.pricingVariants.feeOverrides.overrides.conditions.validUntilDate`},{path:`plan.startDateSettings.fixedDateOptions.startDates`,isRepeated:!0},{path:`plan.startDateSettings.dateRangeOptions.startDate`},{path:`plan.startDateSettings.dateRangeOptions.endDate`}],xM=[{path:`plans.createdDate`},{path:`plans.updatedDate`},{path:`plans.pricingVariants.priceOverrides.overrides.conditions.validFromDate`},{path:`plans.pricingVariants.priceOverrides.overrides.conditions.validUntilDate`},{path:`plans.pricingVariants.feeOverrides.overrides.conditions.validFromDate`},{path:`plans.pricingVariants.feeOverrides.overrides.conditions.validUntilDate`},{path:`plans.startDateSettings.fixedDateOptions.startDates`,isRepeated:!0},{path:`plans.startDateSettings.dateRangeOptions.startDate`},{path:`plans.startDateSettings.dateRangeOptions.endDate`}],SM=[{path:`fieldMask`}],CM=[{path:`plans.fieldMask`}],wM=[{path:`plans.plan.createdDate`},{path:`plans.plan.updatedDate`},{path:`plans.plan.pricingVariants.priceOverrides.overrides.conditions.validFromDate`},{path:`plans.plan.pricingVariants.priceOverrides.overrides.conditions.validUntilDate`},{path:`plans.plan.pricingVariants.feeOverrides.overrides.conditions.validFromDate`},{path:`plans.plan.pricingVariants.feeOverrides.overrides.conditions.validUntilDate`},{path:`plans.plan.startDateSettings.fixedDateOptions.startDates`,isRepeated:!0},{path:`plans.plan.startDateSettings.dateRangeOptions.startDate`},{path:`plans.plan.startDateSettings.dateRangeOptions.endDate`}],TM=[{path:`results.item.createdDate`},{path:`results.item.updatedDate`},{path:`results.item.pricingVariants.priceOverrides.overrides.conditions.validFromDate`},{path:`results.item.pricingVariants.priceOverrides.overrides.conditions.validUntilDate`},{path:`results.item.pricingVariants.feeOverrides.overrides.conditions.validFromDate`},{path:`results.item.pricingVariants.feeOverrides.overrides.conditions.validUntilDate`},{path:`results.item.startDateSettings.fixedDateOptions.startDates`,isRepeated:!0},{path:`results.item.startDateSettings.dateRangeOptions.startDate`},{path:`results.item.startDateSettings.dateRangeOptions.endDate`}],EM=[{path:`search.aggregations.range.buckets.from`},{path:`search.aggregations.range.buckets.to`},{path:`search.aggregations.nested.nestedAggregations.range.buckets.from`},{path:`search.aggregations.nested.nestedAggregations.range.buckets.to`}],DM=[{path:`aggregationData.results.ranges.results.from`},{path:`aggregationData.results.ranges.results.to`},{path:`aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from`},{path:`aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to`},{path:`aggregationData.results.nested.results.results.*.range.from`},{path:`aggregationData.results.nested.results.results.*.range.to`},{path:`aggregationData.results.scalar.value`},{path:`aggregationData.results.groupedByValue.results.nestedResults.scalar.value`},{path:`aggregationData.results.nested.results.results.*.scalar.value`}];function OM(e){return Ct(Object.assign(e,{domainToMappings:{"manage._base_domain_":[{srcPath:`/_api/pricing-plans/v3`,destPath:`/v3`}],"www.wixapis.com":[{srcPath:`/pricing-plans/v3`,destPath:`/v3`}],"www._base_domain_":[{srcPath:`/_api/pricing-plans/v3`,destPath:`/v3`}],"*.dev.wix-code.com":[{srcPath:`/_api/pricing-plans`,destPath:`/v3`},{srcPath:`/_api/pricing-plans/v3`,destPath:`/v3`},{srcPath:`/_api/pricing-plans/plans`,destPath:`/v3/plans`},{srcPath:`/_api/pricing-plans/bulk`,destPath:`/v3/bulk`}],"editor._base_domain_":[{srcPath:`/_api/pricing-plans/v3`,destPath:`/v3`}],"blocks._base_domain_":[{srcPath:`/_api/pricing-plans/v3`,destPath:`/v3`}],"create.editorx":[{srcPath:`/_api/pricing-plans/v3`,destPath:`/v3`}],"*.wixapps.net":[{srcPath:`/_api/pricing-plans/v3`,destPath:`/v3`}],"editor.wixapps.net":[{srcPath:`/_api/pricing-plans/v3`,destPath:`/v3`}],_:[{srcPath:`/_api/pricing-plans/v3`,destPath:`/v3`}],"apps._base_domain_":[{srcPath:`/_api/pricing-plans/v3`,destPath:`/v3`}],"dev._base_domain_":[{srcPath:`/_api/pricing-plans/v3`,destPath:`/v3`}],"api._api_base_domain_":[{srcPath:`/pricing-plans`,destPath:``}]}}))}function kM(e){return Ct(Object.assign(e,{domainToMappings:{"manage._base_domain_":[{srcPath:`/_api/plan-catalog`,destPath:``}],_:[{srcPath:`/_api/plan-catalog`,destPath:``}],"www.wixapis.com":[{srcPath:`/pricing-plans/ecom-integration/v3/plan-configuration-constraints`,destPath:`/v3/plan-configuration-constraints`},{srcPath:`/pricing-plans/ecom-integration/v3/plan-preview`,destPath:`/v3/plan-preview`}],"*.dev.wix-code.com":[{srcPath:`/_api/pricing-plans/ecom-integration/v3/plan-configuration-constraints`,destPath:`/v3/plan-configuration-constraints`},{srcPath:`/_api/pricing-plans/ecom-integration/v3/plan-preview`,destPath:`/v3/plan-preview`},{srcPath:`/_api/plan-catalog`,destPath:``}],"editor._base_domain_":[{srcPath:`/_api/plan-catalog`,destPath:``}],"blocks._base_domain_":[{srcPath:`/_api/plan-catalog`,destPath:``}],"create.editorx":[{srcPath:`/_api/plan-catalog`,destPath:``}],"editor.wixapps.net":[{srcPath:`/_api/plan-catalog`,destPath:``}],"apps._base_domain_":[{srcPath:`/_api/plan-catalog`,destPath:``}],"dev._base_domain_":[{srcPath:`/_api/plan-catalog`,destPath:``}]}}))}var AM=`@wix/auto_sdk_pricing-plans_plans-v-3`;function jM(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v3.plan`,method:`GET`,methodFqn:`wix.pricing_plans.plans.v3.PlanCatalog.GetPlanConfigurationConstraints`,packageName:AM,migrationOptions:{optInTransformResponse:!0},url:kM({protoPath:`/v3/plan-configuration-constraints`,data:e,host:t}),params:St(e)}}return t}function MM(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v3.plan`,method:`GET`,methodFqn:`wix.pricing_plans.plans.v3.PlanCatalog.GetPlanPreview`,packageName:AM,migrationOptions:{optInTransformResponse:!0},url:kM({protoPath:`/v3/plan-preview`,data:e,host:t}),params:St(e),transformResponse:e=>G(e,[{transformFn:W,paths:bM}])}}return t}function NM(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v3.plan`,method:`POST`,methodFqn:`wix.pricing_plans.plans.v3.PlanCatalog.ListPlanPreviews`,packageName:AM,migrationOptions:{optInTransformResponse:!0},url:kM({protoPath:`/v3/plan-preview/previews`,data:e,host:t}),data:e,transformResponse:e=>G(e,[{transformFn:W,paths:xM}])}}return t}function PM(e){function t({host:t}){let n=G(e,[{transformFn:Ve,paths:bM}]);return{entityFqdn:`wix.pricing_plans.v3.plan`,method:`POST`,methodFqn:`wix.pricing_plans.plans.v3.PlanService.CreatePlan`,packageName:AM,migrationOptions:{optInTransformResponse:!0},url:OM({protoPath:`/v3/plans`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:bM}])}}return t}function FM(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v3.plan`,method:`GET`,methodFqn:`wix.pricing_plans.plans.v3.PlanService.GetPlan`,packageName:AM,migrationOptions:{optInTransformResponse:!0},url:OM({protoPath:`/v3/plans/{planId}`,data:e,host:t}),params:St(e),transformResponse:e=>G(e,[{transformFn:W,paths:bM}])}}return t}function IM(e){function t({host:t}){let n=G(e,[{transformFn:en,paths:SM},{transformFn:Ve,paths:bM}]);return{entityFqdn:`wix.pricing_plans.v3.plan`,method:`PATCH`,methodFqn:`wix.pricing_plans.plans.v3.PlanService.UpdatePlan`,packageName:AM,migrationOptions:{optInTransformResponse:!0},url:OM({protoPath:`/v3/plans/{plan.id}`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:bM}])}}return t}function LM(e){function t({host:t}){let n=G(e,[{transformFn:en,paths:CM},{transformFn:Ve,paths:wM}]);return{entityFqdn:`wix.pricing_plans.v3.plan`,method:`POST`,methodFqn:`wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans`,packageName:AM,migrationOptions:{optInTransformResponse:!0},url:OM({protoPath:`/v3/bulk/plans/update`,data:n,host:t}),data:n,transformResponse:e=>G(e,[{transformFn:W,paths:TM}])}}return t}function RM(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v3.plan`,method:`POST`,methodFqn:`wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlanTags`,packageName:AM,migrationOptions:{optInTransformResponse:!0},url:OM({protoPath:`/v3/bulk/plans/update-tags`,data:e,host:t}),data:e}}return t}function zM(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v3.plan`,method:`POST`,methodFqn:`wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlanTagsByFilter`,packageName:AM,migrationOptions:{optInTransformResponse:!0},url:OM({protoPath:`/v3/bulk/plans/update-tags-by-filter`,data:e,host:t}),data:e}}return t}function BM(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v3.plan`,method:`DELETE`,methodFqn:`wix.pricing_plans.plans.v3.PlanService.DeletePlan`,packageName:AM,migrationOptions:{optInTransformResponse:!0},url:OM({protoPath:`/v3/plans/{planId}`,data:e,host:t}),params:St(e)}}return t}function VM(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v3.plan`,method:`GET`,methodFqn:`wix.pricing_plans.plans.v3.PlanService.QueryPlans`,packageName:AM,migrationOptions:{optInTransformResponse:!0},url:OM({protoPath:`/v3/plans/query`,data:e,host:t}),params:St(e,!0),transformResponse:e=>G(e,[{transformFn:W,paths:xM}]),fallback:[{method:`POST`,url:OM({protoPath:`/v3/plans/query`,data:e,host:t}),data:e}]}}return t}function HM(e){function t({host:t}){let n=G(e,[{transformFn:Xt,paths:EM}]);return{entityFqdn:`wix.pricing_plans.v3.plan`,method:`GET`,methodFqn:`wix.pricing_plans.plans.v3.PlanService.SearchPlans`,packageName:AM,migrationOptions:{optInTransformResponse:!0},url:OM({protoPath:`/v3/plans/search`,data:n,host:t}),params:St(n,!0),transformResponse:e=>G(e,[{transformFn:W,paths:xM},{transformFn:Zt,paths:DM}]),fallback:[{method:`POST`,url:OM({protoPath:`/v3/plans/search`,data:n,host:t}),data:n}]}}return t}function UM(e){function t({host:t}){return{entityFqdn:`wix.pricing_plans.v3.plan`,method:`POST`,methodFqn:`wix.pricing_plans.plans.v3.PlanService.CountPlans`,packageName:AM,migrationOptions:{optInTransformResponse:!0},url:OM({protoPath:`/v3/plans/count`,data:e,host:t}),data:e}}return t}var WM=[{path:`plan.image`}],GM=[{path:`plans.image`}],KM=[{path:`plans.plan.image`}],qM=[{path:`results.item.image`}],JM=(e=>(e.FIXED_AMOUNT=`FIXED_AMOUNT`,e))(JM||{}),YM=(e=>(e.FIRST_PAYMENT=`FIRST_PAYMENT`,e))(YM||{}),XM=(e=>(e.DAY=`DAY`,e.WEEK=`WEEK`,e.MONTH=`MONTH`,e.YEAR=`YEAR`,e))(XM||{}),ZM=(e=>(e.ON_PURCHASE=`ON_PURCHASE`,e.CUSTOM=`CUSTOM`,e))(ZM||{}),QM=(e=>(e.UNTIL_CANCELLED=`UNTIL_CANCELLED`,e.CYCLES_COMPLETED=`CYCLES_COMPLETED`,e))(QM||{}),$M=(e=>(e.ALL=`ALL`,e.RETURNING=`RETURNING`,e.SPECIFIC_MEMBERS=`SPECIFIC_MEMBERS`,e))($M||{}),eN=(e=>(e.FIXED_PRICE=`FIXED_PRICE`,e.PERCENTAGE_DISCOUNT=`PERCENTAGE_DISCOUNT`,e))(eN||{}),tN=(e=>(e.FIXED_AMOUNT=`FIXED_AMOUNT`,e.WAIVED=`WAIVED`,e))(tN||{}),nN=(e=>(e.PUBLIC=`PUBLIC`,e.PRIVATE=`PRIVATE`,e))(nN||{}),rN=(e=>(e.ACTIVE=`ACTIVE`,e))(rN||{}),iN=(e=>(e.PER_MEMBER_LIFETIME=`PER_MEMBER_LIFETIME`,e.PER_MEMBER_ACTIVE=`PER_MEMBER_ACTIVE`,e.TOTAL_ACTIVE=`TOTAL_ACTIVE`,e.TOTAL_SOLD=`TOTAL_SOLD`,e))(iN||{}),aN=(e=>(e.UNKNOWN=`UNKNOWN`,e.DAY=`DAY`,e.WEEK=`WEEK`,e.MONTH=`MONTH`,e.YEAR=`YEAR`,e))(aN||{}),oN=(e=>(e.UNKNOWN_DISTRIBUTION_STRATEGY_TYPE=`UNKNOWN_DISTRIBUTION_STRATEGY_TYPE`,e.PER_BILLING_CYCLE=`PER_BILLING_CYCLE`,e.CUSTOM_SCHEDULE=`CUSTOM_SCHEDULE`,e))(oN||{}),sN=(e=>(e.FIXED_DATE=`FIXED_DATE`,e.DAY_OF_MONTH=`DAY_OF_MONTH`,e.DATE_RANGE=`DATE_RANGE`,e))(sN||{}),cN=(e=>(e.PLAN=`PLAN`,e))(cN||{}),lN=(e=>(e.BILLING=`BILLING`,e.BUSINESS=`BUSINESS`,e))(lN||{}),uN=(e=>(e.ON_BEHALF=`ON_BEHALF`,e.PREVIEW=`PREVIEW`,e))(uN||{}),dN=(e=>(e.MANUAL=`MANUAL`,e.ONLINE=`ONLINE`,e))(dN||{}),fN=(e=>(e.UNKNOWN_PRICING_STRATEGY_TYPE=`UNKNOWN_PRICING_STRATEGY_TYPE`,e.FLAT_RATE=`FLAT_RATE`,e.CUSTOMER_CHOSEN_PRICE=`CUSTOMER_CHOSEN_PRICE`,e))(fN||{}),pN=(e=>(e.SKIP_FREE_TRIAL=`SKIP_FREE_TRIAL`,e))(pN||{}),mN=(e=>(e.AVAILABLE_IMMEDIATELY=`AVAILABLE_IMMEDIATELY`,e.FIXED_DATES=`FIXED_DATES`,e.RECURRENCE=`RECURRENCE`,e))(mN||{}),hN=(e=>(e.WEEKLY=`WEEKLY`,e.MONTHLY=`MONTHLY`,e))(hN||{}),gN=(e=>(e.SUNDAY=`SUNDAY`,e.MONDAY=`MONDAY`,e.TUESDAY=`TUESDAY`,e.WEDNESDAY=`WEDNESDAY`,e.THURSDAY=`THURSDAY`,e.FRIDAY=`FRIDAY`,e.SATURDAY=`SATURDAY`,e))(gN||{}),_N=(e=>(e.BEFORE=`BEFORE`,e.AFTER=`AFTER`,e.REPLACE=`REPLACE`,e))(_N||{}),vN=(e=>(e.MONDAY=`MONDAY`,e.TUESDAY=`TUESDAY`,e.WEDNESDAY=`WEDNESDAY`,e.THURSDAY=`THURSDAY`,e.FRIDAY=`FRIDAY`,e.SATURDAY=`SATURDAY`,e.SUNDAY=`SUNDAY`,e))(vN||{}),yN=(e=>(e.QUERY_PARAM=`QUERY_PARAM`,e.SUBDOMAIN=`SUBDOMAIN`,e.SUBDIRECTORY=`SUBDIRECTORY`,e))(yN||{}),bN=(e=>(e.UNKNOWN=`UNKNOWN`,e.ANONYMOUS_VISITOR=`ANONYMOUS_VISITOR`,e.MEMBER=`MEMBER`,e.WIX_USER=`WIX_USER`,e.APP=`APP`,e))(bN||{}),xN=(e=>(e.NEW_SUBSCRIPTIONS=`NEW_SUBSCRIPTIONS`,e.ALL_SUBSCRIPTIONS=`ALL_SUBSCRIPTIONS`,e))(xN||{}),SN=(e=>(e.ASC=`ASC`,e.DESC=`DESC`,e))(SN||{}),CN=(e=>(e.COUNT=`COUNT`,e.VALUE=`VALUE`,e))(CN||{}),wN=(e=>(e.DESC=`DESC`,e.ASC=`ASC`,e))(wN||{}),TN=(e=>(e.EXCLUDE=`EXCLUDE`,e.INCLUDE=`INCLUDE`,e))(TN||{}),EN=(e=>(e.COUNT_DISTINCT=`COUNT_DISTINCT`,e.MIN=`MIN`,e.MAX=`MAX`,e.SUM=`SUM`,e.AVG=`AVG`,e))(EN||{}),DN=(e=>(e.VALUE=`VALUE`,e.RANGE=`RANGE`,e.SCALAR=`SCALAR`,e.DATE_HISTOGRAM=`DATE_HISTOGRAM`,e))(DN||{}),ON=(e=>(e.YEAR=`YEAR`,e.MONTH=`MONTH`,e.WEEK=`WEEK`,e.DAY=`DAY`,e.HOUR=`HOUR`,e.MINUTE=`MINUTE`,e.SECOND=`SECOND`,e))(ON||{}),kN=(e=>(e.VALUE=`VALUE`,e.RANGE=`RANGE`,e.SCALAR=`SCALAR`,e.DATE_HISTOGRAM=`DATE_HISTOGRAM`,e.NESTED=`NESTED`,e))(kN||{}),AN=(e=>(e.OR=`OR`,e.AND=`AND`,e))(AN||{});async function jN(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=jM(H({planId:e,pricingVariantId:t?.pricingVariantId,memberId:t?.memberId}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{planId:`$[0]`,pricingVariantId:`$[1].pricingVariantId`,memberId:`$[1].memberId`},singleArgumentUnchanged:!1},[`planId`,`options`]);throw r?.onError?.(e),t}}async function MN(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=MM(H({planId:e,pricingVariantId:t?.pricingVariantId,memberId:t?.memberId}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:WM}]))}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{planId:`$[0]`,pricingVariantId:`$[1].pricingVariantId`,memberId:`$[1].memberId`},singleArgumentUnchanged:!1},[`planId`,`options`]);throw r?.onError?.(e),t}}async function NN(e){let{httpClient:t,sideEffects:n}=arguments[1],r=NM(H({planSelectors:e?.planSelectors,memberId:e?.memberId}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:GM}]))}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{planSelectors:`$[0].planSelectors`,memberId:`$[0].memberId`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}async function PN(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=PM(G(H({plan:e,idempotencyKey:t?.idempotencyKey}),[{transformFn:Qn,paths:WM}]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:WM}]))?.plan}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{plan:`$[0]`,idempotencyKey:`$[1].idempotencyKey`},singleArgumentUnchanged:!1},[`plan`,`options`]);throw r?.onError?.(e),t}}async function FN(e){let{httpClient:t,sideEffects:n}=arguments[1],r=FM(H({planId:e}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:WM}]))?.plan}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{planId:`$[0]`},singleArgumentUnchanged:!1},[`planId`]);throw n?.onError?.(e),t}}async function IN(e,t,n){let{httpClient:r,sideEffects:i}=arguments[3],a=IM(G(H({plan:{...t,id:e},cascade:n?.cascade}),[{transformFn:Qn,paths:WM}]));i?.onSiteCall?.();try{let e=await r.request(a);return i?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:WM}]))?.plan}catch(e){let t=K(e,{spreadPathsToArguments:{plan:`$[1]`},explicitPathsToArguments:{"plan.id":`$[0]`,cascade:`$[2].cascade`},singleArgumentUnchanged:!1},[`_id`,`plan`,`options`]);throw i?.onError?.(e),t}}async function LN(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=LM(G(H({plans:e,returnEntity:t?.returnEntity,cascade:t?.cascade}),[{transformFn:Qn,paths:KM}]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:qM}]))}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{plans:`$[0]`,returnEntity:`$[1].returnEntity`,cascade:`$[1].cascade`},singleArgumentUnchanged:!1},[`plans`,`options`]);throw r?.onError?.(e),t}}async function RN(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=RM(H({planIds:e,assignTags:t?.assignTags,unassignTags:t?.unassignTags}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{planIds:`$[0]`,assignTags:`$[1].assignTags`,unassignTags:`$[1].unassignTags`},singleArgumentUnchanged:!1},[`planIds`,`options`]);throw r?.onError?.(e),t}}async function zN(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=zM(H({filter:e,assignTags:t?.assignTags,unassignTags:t?.unassignTags}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{filter:`$[0]`,assignTags:`$[1].assignTags`,unassignTags:`$[1].unassignTags`},singleArgumentUnchanged:!1},[`filter`,`options`]);throw r?.onError?.(e),t}}async function BN(e){let{httpClient:t,sideEffects:n}=arguments[1],r=BM(H({planId:e}));n?.onSiteCall?.();try{let e=await t.request(r);n?.onSuccess?.(e)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{planId:`$[0]`},singleArgumentUnchanged:!1},[`planId`]);throw n?.onError?.(e),t}}function VN(){let{httpClient:e,sideEffects:t}=arguments[0];return Nn({func:async n=>{let r=VM(n);t?.onSiteCall?.();try{let n=await e.request(r);return t?.onSuccess?.(n),n}catch(e){throw t?.onError?.(e),e}},requestTransformer:e=>{let t=[e,{}];return H({...t?.[1],query:t?.[0]})},responseTransformer:({data:e})=>{let t=U(G(e,[{transformFn:$n,paths:GM}]));return{items:t?.plans,pagingMetadata:t?.pagingMetadata}},errorTransformer:e=>{throw K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{query:`$[0]`},singleArgumentUnchanged:!1})},pagingMethod:`CURSOR`,transformationPaths:{}})}async function HN(e){let{httpClient:t,sideEffects:n}=arguments[1],r=VM(H({query:e}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:GM}]))}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{query:`$[0]`},singleArgumentUnchanged:!1},[`query`]);throw n?.onError?.(e),t}}var UN={query:zn(),search:ja()};async function WN(e){let{httpClient:t,sideEffects:n}=arguments[1],r=HM(H({search:e}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(G(e.data,[{transformFn:$n,paths:GM}]))}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{search:`$[0]`},singleArgumentUnchanged:!1},[`search`]);throw n?.onError?.(e),t}}async function GN(e){let{httpClient:t,sideEffects:n}=arguments[1],r=UM(H({filter:e?.filter,search:e?.search}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),U(e.data)}catch(e){let t=K(e,{spreadPathsToArguments:{},explicitPathsToArguments:{filter:`$[0].filter`,search:`$[0].search`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}var KN=[{path:`entity.createdDate`},{path:`entity.updatedDate`},{path:`entity.pricingVariants.priceOverrides.overrides.conditions.validFromDate`},{path:`entity.pricingVariants.priceOverrides.overrides.conditions.validUntilDate`},{path:`entity.pricingVariants.feeOverrides.overrides.conditions.validFromDate`},{path:`entity.pricingVariants.feeOverrides.overrides.conditions.validUntilDate`},{path:`entity.startDateSettings.fixedDateOptions.startDates`,isRepeated:!0},{path:`entity.startDateSettings.dateRangeOptions.startDate`},{path:`entity.startDateSettings.dateRangeOptions.endDate`},{path:`metadata.eventTime`}],qN=[{path:`entity.image`}],JN=[{path:`data.plan.createdDate`},{path:`data.plan.updatedDate`},{path:`data.plan.pricingVariants.priceOverrides.overrides.conditions.validFromDate`},{path:`data.plan.pricingVariants.priceOverrides.overrides.conditions.validUntilDate`},{path:`data.plan.pricingVariants.feeOverrides.overrides.conditions.validFromDate`},{path:`data.plan.pricingVariants.feeOverrides.overrides.conditions.validUntilDate`},{path:`data.plan.startDateSettings.fixedDateOptions.startDates`,isRepeated:!0},{path:`data.plan.startDateSettings.dateRangeOptions.startDate`},{path:`data.plan.startDateSettings.dateRangeOptions.endDate`},{path:`metadata.eventTime`}],YN=[{path:`data.plan.image`}],XN=[{path:`entity.createdDate`},{path:`entity.updatedDate`},{path:`entity.pricingVariants.priceOverrides.overrides.conditions.validFromDate`},{path:`entity.pricingVariants.priceOverrides.overrides.conditions.validUntilDate`},{path:`entity.pricingVariants.feeOverrides.overrides.conditions.validFromDate`},{path:`entity.pricingVariants.feeOverrides.overrides.conditions.validUntilDate`},{path:`entity.startDateSettings.fixedDateOptions.startDates`,isRepeated:!0},{path:`entity.startDateSettings.dateRangeOptions.startDate`},{path:`entity.startDateSettings.dateRangeOptions.endDate`},{path:`metadata.eventTime`},{path:`modifiedFields.createdDate`},{path:`modifiedFields.updatedDate`},{path:`modifiedFields.pricingVariants.priceOverrides.overrides.conditions.validFromDate`},{path:`modifiedFields.pricingVariants.priceOverrides.overrides.conditions.validUntilDate`},{path:`modifiedFields.pricingVariants.feeOverrides.overrides.conditions.validFromDate`},{path:`modifiedFields.pricingVariants.feeOverrides.overrides.conditions.validUntilDate`},{path:`modifiedFields.startDateSettings.fixedDateOptions.startDates`,isRepeated:!0},{path:`modifiedFields.startDateSettings.dateRangeOptions.startDate`},{path:`modifiedFields.startDateSettings.dateRangeOptions.endDate`}],ZN=[{path:`entity.image`},{path:`modifiedFields.image`}];function QN(e){return(t,n)=>jN(t,n,{httpClient:e})}function $N(e){return(t,n)=>MN(t,n,{httpClient:e})}function eP(e){return t=>NN(t,{httpClient:e})}function tP(e){return(t,n)=>PN(t,n,{httpClient:e})}function nP(e){return t=>FN(t,{httpClient:e})}function rP(e){return(t,n,r)=>IN(t,n,r,{httpClient:e})}function iP(e){return(t,n)=>LN(t,n,{httpClient:e})}function aP(e){return(t,n)=>RN(t,n,{httpClient:e})}function oP(e){return(t,n)=>zN(t,n,{httpClient:e})}function sP(e){return t=>BN(t,{httpClient:e})}function cP(e){return()=>VN({httpClient:e})}function lP(e){return t=>HN(t,{httpClient:e})}function uP(e){return t=>WN(t,{httpClient:e})}function dP(e){return t=>GN(t,{httpClient:e})}var fP=m(`wix.pricing_plans.v3.plan_created`,!0,e=>U(G(e,[{transformFn:W,paths:KN},{transformFn:$n,paths:qN}])))(),pP=m(`wix.pricing_plans.v3.plan_deleted`,!0,e=>U(G(e,[{transformFn:W,paths:KN},{transformFn:$n,paths:qN}])))(),mP=m(`wix.pricing_plans.v3.plan_tags_modified`,!0,e=>U(G(e,[{transformFn:W,paths:JN},{transformFn:$n,paths:YN}])))(),hP=m(`wix.pricing_plans.v3.plan_updated`,!0,e=>U(G(e,[{transformFn:W,paths:XN},{transformFn:$n,paths:ZN}])))();function gP(e){let t=Yn({builderQueryFunction:()=>cP(e)(),typedQueryFunction:t=>lP(e)(t),hasOptionsParameter:!1});function n(e){return t(...arguments)}return n}var _P=q(QN),vP=q($N),yP=q(eP),bP=q(tP),xP=q(nP),SP=q(rP),CP=q(iP),wP=q(aP),TP=q(oP),EP=q(sP),DP=q(uP),OP=q(dP),kP=q(gP),AP=Yt(fP),jP=Yt(pP),MP=Yt(mP),NP=Yt(hP),{EndType:PP,Period:FP}=yM,{PeriodUnit:IP}=nj,{FeeTypeEnumType:LP,PricingTypeEnumType:RP,SaleStatusEnumStatus:zP}=cl,BP=(e,t,n)=>{if(aA(t)){let r=Rk(pA(t),`short`,mA(t),n);return r?e(`events.event.registrationOpens`,{date:r}):``}return nA(t)?e(`events.event.registrationNotRequired`):sA(t)?hA(t):``},VP=(e,t)=>({isTicketed:$k(e),isRecurring:iA(e),hasImage:Zk(e),hasDateAndTime:!!e?.dateAndTimeSettings?.startDate&&!rA(e),hasShortTeaser:Yk(e),hasAboutTheEvent:Xk(e),hasSeatingMap:Qk(e),canRegister:oA(e),hasMemberships:t}),HP=(e,t,n,r,i)=>({id:Uk(n),slug:Wk(n),title:Gk(n),shortTeaser:Kk(n),aboutTheEvent:Xk(n)?qk(n):{nodes:[]},image:tj(Jk(n),Gk(n)),startDate:RA(n?.dateAndTimeSettings)||(r?RA(MA(e).dateAndTimeSettings):``),endDate:zA(n?.dateAndTimeSettings)||(r?zA(MA(e).dateAndTimeSettings):``),dateAndTimeTbdMessage:n?.dateAndTimeSettings?.dateAndTimeTbdMessage||(r?e(`events.demo.dateAndTimeTbdMessage`):``),address:uA(n)?dA(n):fA(n),locationName:dA(n),detailsPageLink:n?qA(t,n):void 0,registrationPageLink:n?JA(t,n):void 0,registrationMessages:BP(e,n,i)||(r?e(`events.demo.registrationMessages`):``)}),UP=({editor:t=!1,eventData:r,i18nPromise:i,children:a})=>{let s=vn(i),l=n(_n),u=xn(),d=o(()=>{let e=s.t.bind(s),n=t?NA(e,r.event):PA(r.event),i=HP(e,l,n,t,u),a=VP(r.event,r.hasMemberships);return{i18nInstance:s,editor:t,event:n,ticketDefinitions:[],plans:[],checkoutOptions:Lf,refetchPlans:()=>{},refetchTicketDefinitions:()=>{},...i,...a}},[s,l,t,r,u]);return c(e,{value:d,children:a})},WP=({children:e,...t})=>{let n=kk();return c(a,{fallback:null,children:c(UP,{...t,i18nPromise:n,children:e})})},GP=kE(WP,`Event Item Context`),KP=hn(`ec383d56-bda8-4484-a364-62734c0156ce`);export{WP as EventItemContextProvider,GP as default,KP as injectAccessTokenGetter,t as useEventItemContext};
|
|
6
|
-
//# sourceMappingURL=context-provider-ec383d56-bda8-4484-a364-62734c0156ce-
|
|
6
|
+
//# sourceMappingURL=context-provider-ec383d56-bda8-4484-a364-62734c0156ce-BEDAiGht.js.map
|