sunpeak 0.20.42 → 0.20.49
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/bin/commands/inspect.mjs +142 -40
- package/bin/commands/test-init.mjs +2 -0
- package/bin/lib/eval/eval-runner.mjs +4 -0
- package/bin/lib/eval/model-registry.mjs +3 -6
- package/bin/lib/inspect/inspect-config.d.mts +8 -0
- package/bin/lib/inspect/inspect-config.mjs +9 -0
- package/bin/lib/inspect/inspect-server.d.mts +2 -0
- package/bin/lib/test/test-config.d.mts +6 -0
- package/bin/lib/test/test-config.mjs +11 -0
- package/bin/sunpeak.js +1 -0
- package/dist/chatgpt/index.cjs +1 -1
- package/dist/chatgpt/index.js +1 -1
- package/dist/claude/index.cjs +1 -1
- package/dist/claude/index.js +1 -1
- package/dist/hooks/tool-data-store.d.ts +26 -0
- package/dist/hooks/use-tool-data.d.ts +3 -9
- package/dist/host/chatgpt/index.cjs +1 -1
- package/dist/host/chatgpt/index.js +1 -1
- package/dist/index.cjs +36 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +36 -22
- package/dist/index.js.map +1 -1
- package/dist/inspector/index.cjs +1 -1
- package/dist/inspector/index.js +1 -1
- package/dist/{inspector-DOmiG64-.cjs → inspector-BGnxpdOn.cjs} +46 -20
- package/dist/inspector-BGnxpdOn.cjs.map +1 -0
- package/dist/{inspector-C6n8zap3.js → inspector-DvduUVNG.js} +46 -20
- package/dist/inspector-DvduUVNG.js.map +1 -0
- package/dist/lib/utils.d.ts +8 -7
- package/dist/mcp/index.cjs +6 -4
- package/dist/mcp/index.cjs.map +1 -1
- package/dist/mcp/index.js +6 -4
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/server.d.ts +12 -1
- package/dist/{use-app-Duar2Ipu.js → use-app-CmrLc3wz.js} +63 -2
- package/dist/use-app-CmrLc3wz.js.map +1 -0
- package/dist/{use-app-DUdnDLP5.cjs → use-app-fizR-zbu.cjs} +63 -2
- package/dist/use-app-fizR-zbu.cjs.map +1 -0
- package/package.json +9 -9
- package/template/dist/albums/albums.html +2 -2
- package/template/dist/albums/albums.json +1 -1
- package/template/dist/carousel/carousel.html +2 -2
- package/template/dist/carousel/carousel.json +1 -1
- package/template/dist/map/map.html +3 -3
- package/template/dist/map/map.json +1 -1
- package/template/dist/review/review.html +2 -2
- package/template/dist/review/review.json +1 -1
- package/template/node_modules/.bin/tsc +2 -2
- package/template/node_modules/.bin/tsserver +2 -2
- package/template/node_modules/.bin/vitest +2 -2
- package/template/node_modules/.vite/deps/_metadata.json +3 -3
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js +1 -1
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js +1 -1
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js +1 -1
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/_metadata.json +23 -23
- package/template/node_modules/.vite-mcp/deps/vitest.js +7 -7
- package/template/node_modules/.vite-mcp/deps/vitest.js.map +1 -1
- package/template/package.json +1 -1
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-dark-chatgpt-linux.png +0 -0
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-dark-claude-linux.png +0 -0
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-chatgpt-darwin.png +0 -0
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-chatgpt-linux.png +0 -0
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-claude-darwin.png +0 -0
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-claude-linux.png +0 -0
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-light-chatgpt-linux.png +0 -0
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-light-claude-linux.png +0 -0
- package/template/tsconfig.json +2 -0
- package/dist/inspector-C6n8zap3.js.map +0 -1
- package/dist/inspector-DOmiG64-.cjs.map +0 -1
- package/dist/use-app-DUdnDLP5.cjs.map +0 -1
- package/dist/use-app-Duar2Ipu.js.map +0 -1
|
@@ -125,8 +125,8 @@ Boolean requesting whether a visible border and background is provided by the ho
|
|
|
125
125
|
- omitted: host decides border`)}),U({method:K(`ui/request-display-mode`),params:U({mode:Nv.describe(`The display mode being requested.`)})});var Yv=U({mode:Nv.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),Xv=W([K(`model`),K(`app`)]).describe(`Tool visibility scope - who can access the tool.`);U({resourceUri:B().optional(),visibility:H(Xv).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
126
126
|
- "model": Tool visible to and callable by the agent
|
|
127
127
|
- "app": Tool callable by the app from this server only`),csp:op().optional(),permissions:op().optional()}),U({mimeTypes:H(B()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),U({method:K(`ui/download-file`),params:U({contents:H(W([T_,E_])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),U({method:K(`ui/message`),params:U({role:K(`user`).describe(`Message role, currently only "user" is supported.`),content:H(D_).describe(`Message content blocks (text, image, etc.).`)})}),U({method:K(`ui/notifications/sandbox-resource-ready`),params:U({html:B().describe(`HTML content to load into the inner iframe.`),sandbox:B().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:Rv.optional().describe(`CSP configuration from resource metadata.`),permissions:zv.optional().describe(`Sandbox permissions from resource metadata.`)})});var Zv=U({method:K(`ui/notifications/tool-result`),params:I_.describe(`Standard MCP tool execution result.`)}),Qv=U({toolInfo:U({id:tg.optional().describe(`JSON-RPC id of the tools/call request.`),tool:N_.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:Mv.optional().describe(`Current color theme preference.`),styles:Wv.optional().describe(`Style configuration for theming the app.`),displayMode:Nv.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:H(Nv).optional().describe(`Display modes the host supports.`),containerDimensions:W([U({height:V().describe(`Fixed container height in pixels.`)}),U({maxHeight:W([V(),np()]).optional().describe(`Maximum container height in pixels.`)})]).and(W([U({width:V().describe(`Fixed container width in pixels.`)}),U({maxWidth:W([V(),np()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
128
|
-
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:B().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:B().optional().describe(`User's timezone in IANA format.`),userAgent:B().optional().describe(`Host application identifier.`),platform:W([K(`web`),K(`desktop`),K(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:U({touch:Zf().optional().describe(`Whether the device supports touch input.`),hover:Zf().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:U({top:V().describe(`Top safe area inset in pixels.`),right:V().describe(`Right safe area inset in pixels.`),bottom:V().describe(`Bottom safe area inset in pixels.`),left:V().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),$v=U({method:K(`ui/notifications/host-context-changed`),params:Qv.describe(`Partial context update containing only changed fields.`)});U({method:K(`ui/update-model-context`),params:U({content:H(D_).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:G(B(),ap().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),U({method:K(`ui/initialize`),params:U({appInfo:_g.describe(`App identification (name and version).`),appCapabilities:Jv.describe(`Features and capabilities this app provides.`),protocolVersion:B().describe(`Protocol version this app supports.`)})});var ey=U({protocolVersion:B().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:_g.describe(`Host application identification and version.`),hostCapabilities:qv.describe(`Features and capabilities provided by the host.`),hostContext:Qv.describe(`Rich context about the host environment.`)}).passthrough(),ty={target:`draft-2020-12`};async function ny(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](ty);if(n.vendor===`zod`){let{z:n}=await Promise.resolve().then(()=>(Bh(),Rh));return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function ry(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}function iy(e){let t=document.documentElement;t.setAttribute(`data-theme`,e),t.style.colorScheme=e}function ay(e,t=document.documentElement){for(let[n,r]of Object.entries(e))r!==void 0&&t.style.setProperty(n,r)}function oy(e){if(document.getElementById(`__mcp-host-fonts`))return;let t=document.createElement(`style`);t.id=`__mcp-host-fonts`,t.textContent=e,document.head.appendChild(t)}var sy=class e extends kv{_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),S(this,`_appInfo`,void 0),S(this,`_capabilities`,void 0),S(this,`options`,void 0),S(this,`_hostCapabilities`,void 0),S(this,`_hostInfo`,void 0),S(this,`_hostContext`,void 0),S(this,`_registeredTools`,{}),S(this,`_initializedSent`,!1),S(this,`eventSchemas`,{toolinput:Bv,toolinputpartial:Vv,toolresult:Zv,toolcancelled:Hv,hostcontextchanged:$v}),S(this,`_everHadListener`,new Set),S(this,`_toolHandlersInitialized`,!1),S(this,`_onteardown`,void 0),S(this,`_oncalltool`,void 0),S(this,`_onlisttools`,void 0),S(this,`sendOpenLink`,this.openLink),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||w({jitless:!0}),this.setRequestHandler(Dg,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=Ov(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await ry(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await ry(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await ny(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await ny(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(Gv,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(R_,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(P_,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){switch(e){case`sampling/createMessage`:if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`);break}}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},I_,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},s_,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},t_,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?ev:$_;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},Lv,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},fg,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},Fv,t)}downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},Iv,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},Yv,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new jv(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:Av}},ey,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};S(sy,`ONE_SHOT_EVENTS`,new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]));var cy=s((e=>{var t=Symbol.for(`react.transitional.element`);function n(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.jsx=n,e.jsxs=n})),ly=s(((e,t)=>{t.exports=cy()})),Y=u(m(),1),X=ly(),uy={app:null,isConnected:!1,error:null},dy=(0,Y.createContext)(uy),fy=null,py=null,my=5e3,hy=3,gy=500;function _y(e,t){return new Promise((n,r)=>{let i=setTimeout(()=>r(Error(`Connection timed out`)),t);e.then(e=>{clearTimeout(i),n(e)},e=>{clearTimeout(i),r(e)})})}async function vy(e,t,n){let r=null;for(let i=0;i<=hy;i++){if(i>0){let e=gy*2**(i-1);await new Promise(t=>setTimeout(t,e))}let a=null;try{a=new jv(window.parent,window.parent);let r=new sy(e,t);return n?.(r),await _y(r.connect(a),my),r}catch(e){if(a)try{await a.close()}catch{}r=e instanceof Error?e:Error(`Connection failed`),i<hy&&console.warn(`[sunpeak] Connection attempt ${i+1}/4 failed, retrying...`,r.message)}}throw console.error(`[sunpeak] All connection attempts failed. Try refreshing the page or opening a new chat.
|
|
129
|
-
Troubleshooting: https://sunpeak.ai/docs/app-framework/guides/troubleshooting`),r??Error(`Failed to connect`)}function yy({appInfo:e,capabilities:t,onAppCreated:n,children:r}){let[i,a]=(0,Y.useState)(()=>fy?{app:fy,isConnected:!0,error:null}:uy);return(0,Y.useEffect)(()=>{let r=!1;return fy?(a({app:fy,isConnected:!0,error:null}),()=>{r=!0}):(py||(py=vy(e,t??{},n)),py.then(e=>{fy=e,r||a({app:e,isConnected:!0,error:null})},e=>{py=null,r||a({app:null,isConnected:!1,error:e instanceof Error?e:Error(`Failed to connect`)})}),()=>{r=!0})},[]),(0,X.jsx)(dy.Provider,{value:i,children:r})}function by(){return(0,Y.useContext)(dy).app}var xy={"--color-background-primary":`light-dark(#ffffff, #1a1a1a)`,"--color-background-secondary":`light-dark(#f5f5f5, #2d2d2d)`,"--color-background-tertiary":`light-dark(#e5e5e5, #404040)`,"--color-background-inverse":`light-dark(#1a1a1a, #ffffff)`,"--color-background-ghost":`light-dark(rgba(255,255,255,0), rgba(26,26,26,0))`,"--color-background-info":`light-dark(#eff6ff, #1e3a5f)`,"--color-background-danger":`light-dark(#fef2f2, #7f1d1d)`,"--color-background-success":`light-dark(#f0fdf4, #14532d)`,"--color-background-warning":`light-dark(#fefce8, #713f12)`,"--color-background-disabled":`light-dark(rgba(255,255,255,0.5), rgba(26,26,26,0.5))`,"--color-text-primary":`light-dark(#1f2937, #f3f4f6)`,"--color-text-secondary":`light-dark(#6b7280, #9ca3af)`,"--color-text-tertiary":`light-dark(#9ca3af, #6b7280)`,"--color-text-inverse":`light-dark(#f3f4f6, #1f2937)`,"--color-text-ghost":`light-dark(rgba(107,114,128,0.5), rgba(156,163,175,0.5))`,"--color-text-info":`light-dark(#1d4ed8, #60a5fa)`,"--color-text-danger":`light-dark(#b91c1c, #f87171)`,"--color-text-success":`light-dark(#15803d, #4ade80)`,"--color-text-warning":`light-dark(#a16207, #fbbf24)`,"--color-text-disabled":`light-dark(rgba(31,41,55,0.5), rgba(243,244,246,0.5))`,"--color-border-primary":`light-dark(#e5e7eb, #404040)`,"--color-border-secondary":`light-dark(#d1d5db, #525252)`,"--color-border-tertiary":`light-dark(#f3f4f6, #374151)`,"--color-border-inverse":`light-dark(rgba(255,255,255,0.3), rgba(0,0,0,0.3))`,"--color-border-ghost":`light-dark(rgba(229,231,235,0), rgba(64,64,64,0))`,"--color-border-info":`light-dark(#93c5fd, #1e40af)`,"--color-border-danger":`light-dark(#fca5a5, #991b1b)`,"--color-border-success":`light-dark(#86efac, #166534)`,"--color-border-warning":`light-dark(#fde047, #854d0e)`,"--color-border-disabled":`light-dark(rgba(229,231,235,0.5), rgba(64,64,64,0.5))`,"--color-ring-primary":`light-dark(#3b82f6, #60a5fa)`,"--color-ring-secondary":`light-dark(#6b7280, #9ca3af)`,"--color-ring-inverse":`light-dark(#ffffff, #1f2937)`,"--color-ring-info":`light-dark(#2563eb, #3b82f6)`,"--color-ring-danger":`light-dark(#dc2626, #ef4444)`,"--color-ring-success":`light-dark(#16a34a, #22c55e)`,"--color-ring-warning":`light-dark(#ca8a04, #eab308)`,"--font-sans":`system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif`,"--font-mono":`ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', monospace`,"--font-weight-normal":`400`,"--font-weight-medium":`500`,"--font-weight-semibold":`600`,"--font-weight-bold":`700`,"--font-text-xs-size":`0.75rem`,"--font-text-sm-size":`0.875rem`,"--font-text-md-size":`1rem`,"--font-text-lg-size":`1.125rem`,"--font-heading-xs-size":`0.75rem`,"--font-heading-sm-size":`0.875rem`,"--font-heading-md-size":`1rem`,"--font-heading-lg-size":`1.25rem`,"--font-heading-xl-size":`1.5rem`,"--font-heading-2xl-size":`1.875rem`,"--font-heading-3xl-size":`2.25rem`,"--font-text-xs-line-height":`1.4`,"--font-text-sm-line-height":`1.4`,"--font-text-md-line-height":`1.5`,"--font-text-lg-line-height":`1.5`,"--font-heading-xs-line-height":`1.4`,"--font-heading-sm-line-height":`1.4`,"--font-heading-md-line-height":`1.4`,"--font-heading-lg-line-height":`1.3`,"--font-heading-xl-line-height":`1.25`,"--font-heading-2xl-line-height":`1.2`,"--font-heading-3xl-line-height":`1.1`,"--border-radius-xs":`2px`,"--border-radius-sm":`4px`,"--border-radius-md":`6px`,"--border-radius-lg":`8px`,"--border-radius-xl":`12px`,"--border-radius-full":`9999px`,"--border-width-regular":`1px`,"--shadow-hairline":`0 1px 2px 0 rgba(0, 0, 0, 0.05)`,"--shadow-sm":`0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)`,"--shadow-md":`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`,"--shadow-lg":`0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)`},Sy=new WeakMap;function Cy(e){ay(xy),e&&ay(e)}function wy(e){let t=Sy.get(e);if(!t){t=new Set,Sy.set(e,t);let n=e.getHostContext();n?.theme&&iy(n.theme),Cy(n?.styles?.variables),n?.styles?.css?.fonts&&oy(n.styles.css.fonts);let r=null;e.onhostcontextchanged=()=>{let n=e.getHostContext();n?.theme&&iy(n.theme),Cy(n?.styles?.variables),n?.styles?.css?.fonts&&oy(n.styles.css.fonts),r&&clearTimeout(r),r=setTimeout(()=>{r=null;for(let e of t)e()},50)}}return t}function Ty(){let e=by(),t=(0,Y.useCallback)(t=>{if(!e)return()=>{};let n=wy(e);return n.add(t),()=>{n.delete(t)}},[e]),n=(0,Y.useCallback)(()=>e?.getHostContext()??null,[e]);return(0,Y.useSyncExternalStore)(t,n,n)}var Ey=new WeakMap;function Dy(e,t,n){let r=Ey.get(e);if(!r){r={data:{input:t??null,inputPartial:null,output:n??null,isError:!1,isLoading:!n,isCancelled:!1,cancelReason:null},listeners:new Set},Ey.set(e,r);let i=()=>{for(let e of r.listeners)e()};e.ontoolinput=e=>{r.data={...r.data,input:e.arguments,inputPartial:null},i()},e.ontoolinputpartial=e=>{r.data={...r.data,inputPartial:e.arguments},i()},e.ontoolresult=e=>{r.data={...r.data,output:e.structuredContent??e.content,isError:e.isError??!1,isLoading:!1},i()},e.ontoolcancelled=e=>{r.data={...r.data,isCancelled:!0,cancelReason:e.reason??null,isLoading:!1},i()}}return r}function Oy(e,t){let n=by(),r=(0,Y.useRef)(e),i=(0,Y.useRef)(t),a=(0,Y.useMemo)(()=>({input:e??null,inputPartial:null,output:t??null,isError:!1,isLoading:!t,isCancelled:!1,cancelReason:null}),[]),o=(0,Y.useCallback)(e=>{if(!n)return()=>{};let t=Dy(n,r.current,i.current);return t.listeners.add(e),()=>{t.listeners.delete(e)}},[n]),s=(0,Y.useCallback)(()=>n?Dy(n,r.current,i.current).data:a,[n,a]);return(0,Y.useSyncExternalStore)(o,s,s)}function ky(){return Ty()?.deviceCapabilities??{}}function Ay(){return Ty()?.displayMode??`inline`}var jy={top:0,bottom:0,left:0,right:0};function My(){return Ty()?.safeAreaInsets??jy}function Ny(){return Ty()?.containerDimensions??null}var Py=(0,Y.forwardRef)(function({children:e,style:t,...n},r){let i=My(),a=Ny(),o=Ay()===`fullscreen`?`100dvh`:void 0;return(0,X.jsx)(`div`,{ref:r,style:{paddingTop:i.top||void 0,paddingBottom:i.bottom||void 0,paddingLeft:i.left||void 0,paddingRight:i.right||void 0,height:o,maxHeight:a?.maxHeight,overflow:a?.maxHeight==null?void 0:`hidden`,width:a?.width,maxWidth:a?.maxWidth,...t},...n,children:e})});function Fy(){let e=by(),t=Ty();return{requestDisplayMode:(0,Y.useCallback)(async t=>{if(!e){console.warn(`[useRequestDisplayMode] App not connected`);return}await e.requestDisplayMode({mode:t})},[e]),availableModes:t?.availableDisplayModes}}function Iy(){let e=by();return(0,Y.useCallback)(async t=>{e&&await e.updateModelContext(t)},[e])}function Ly(e){let t=by(),[n,r]=(0,Y.useState)(e),i=(0,Y.useRef)(null);return(0,Y.useEffect)(()=>{if(typeof window>`u`)return;let e=e=>{if(e.source!==window.parent)return;let t=e.data;t&&typeof t==`object`&&t.method===`sunpeak/injectState`&&t.params?.state!=null&&r(t.params.state)};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)},[]),(0,Y.useEffect)(()=>{if(i.current!=null&&t){let e=i.current;i.current=null,t.updateModelContext({structuredContent:e}).catch(()=>{})}}),[n,(0,Y.useCallback)(e=>{r(t=>{let n=typeof e==`function`?e(t):e;return i.current=n,n})},[])]}function Ry(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ry(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function zy(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ry(e))&&(r&&(r+=` `),r+=t);return r}var By=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Vy=(e,t)=>({classGroupId:e,validator:t}),Hy=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Uy=`-`,Wy=[],Gy=`arbitrary..`,Ky=e=>{let t=Yy(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Jy(e);let n=e.split(Uy);return qy(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?By(i,t):t:i||Wy}return n[e]||Wy}}},qy=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=qy(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Uy):e.slice(t).join(Uy),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Jy=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Gy+r:void 0})(),Yy=e=>{let{theme:t,classGroups:n}=e;return Xy(n,t)},Xy=(e,t)=>{let n=Hy();for(let r in e){let i=e[r];Zy(i,n,r,t)}return n},Zy=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Qy(i,t,n,r)}},Qy=(e,t,n,r)=>{if(typeof e==`string`){$y(e,t,n);return}if(typeof e==`function`){eb(e,t,n,r);return}tb(e,t,n,r)},$y=(e,t,n)=>{let r=e===``?t:nb(t,e);r.classGroupId=n},eb=(e,t,n,r)=>{if(rb(e)){Zy(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Vy(n,e))},tb=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Zy(o,nb(t,a),n,r)}},nb=(e,t)=>{let n=e,r=t.split(Uy),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Hy(),n.nextPart.set(t,i)),n=i}return n},rb=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ib=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},ab=`!`,ob=`:`,sb=[],cb=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),lb=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===ob){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(ab)?(c=s.slice(0,-1),l=!0):s.startsWith(ab)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return cb(t,l,c,u)};if(t){let e=t+ob,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):cb(sb,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},ub=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},db=e=>({cache:ib(e.cacheSize),parseClassName:lb(e),sortModifiers:ub(e),postfixLookupClassGroupIds:fb(e),...Ky(e)}),fb=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},pb=/\s+/,mb=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(pb),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+ab:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},hb=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=gb(n))&&(i&&(i+=` `),i+=r);return i},gb=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=gb(e[r]))&&(n&&(n+=` `),n+=t);return n},_b=(e,...t)=>{let n,r,i,a,o=o=>(n=db(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=mb(e,n);return i(e,a),a};return a=o,(...e)=>a(hb(...e))},vb=[],yb=e=>{let t=t=>t[e]||vb;return t.isThemeGetter=!0,t},bb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Sb=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Cb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Tb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Eb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Db=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ob=e=>Sb.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),kb=e=>!!e&&Number.isInteger(Number(e)),Ab=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),jb=e=>Cb.test(e),Mb=()=>!0,Nb=e=>wb.test(e)&&!Tb.test(e),Pb=()=>!1,Fb=e=>Eb.test(e),Ib=e=>Db.test(e),Lb=e=>!Q(e)&&!$(e),Rb=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),zb=e=>ex(e,ix,Pb),Q=e=>bb.test(e),Bb=e=>ex(e,ax,Nb),Vb=e=>ex(e,ox,Z),Hb=e=>ex(e,cx,Mb),Ub=e=>ex(e,sx,Pb),Wb=e=>ex(e,nx,Pb),Gb=e=>ex(e,rx,Ib),Kb=e=>ex(e,lx,Fb),$=e=>xb.test(e),qb=e=>tx(e,ax),Jb=e=>tx(e,sx),Yb=e=>tx(e,nx),Xb=e=>tx(e,ix),Zb=e=>tx(e,rx),Qb=e=>tx(e,lx,!0),$b=e=>tx(e,cx,!0),ex=(e,t,n)=>{let r=bb.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},tx=(e,t,n=!1)=>{let r=xb.exec(e);return r?r[1]?t(r[1]):n:!1},nx=e=>e===`position`||e===`percentage`,rx=e=>e===`image`||e===`url`,ix=e=>e===`length`||e===`size`||e===`bg-size`,ax=e=>e===`length`,ox=e=>e===`number`,sx=e=>e===`family-name`,cx=e=>e===`number`||e===`weight`,lx=e=>e===`shadow`,ux=_b(()=>{let e=yb(`color`),t=yb(`font`),n=yb(`text`),r=yb(`font-weight`),i=yb(`tracking`),a=yb(`leading`),o=yb(`breakpoint`),s=yb(`container`),c=yb(`spacing`),l=yb(`radius`),u=yb(`shadow`),d=yb(`inset-shadow`),f=yb(`text-shadow`),p=yb(`drop-shadow`),m=yb(`blur`),h=yb(`perspective`),g=yb(`aspect`),_=yb(`ease`),v=yb(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],ee=()=>[Ob,`full`,`auto`,...w()],te=()=>[kb,`none`,`subgrid`,$,Q],ne=()=>[`auto`,{span:[`full`,kb,$,Q]},kb,$,Q],re=()=>[kb,`auto`,$,Q],ie=()=>[`auto`,`min`,`max`,`fr`,$,Q],ae=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],oe=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],se=()=>[`auto`,...w()],ce=()=>[Ob,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],le=()=>[Ob,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ue=()=>[Ob,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],T=()=>[e,$,Q],E=()=>[...b(),Yb,Wb,{position:[$,Q]}],de=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],D=()=>[`auto`,`cover`,`contain`,Xb,zb,{size:[$,Q]}],fe=()=>[Ab,qb,Bb],O=()=>[``,`none`,`full`,l,$,Q],k=()=>[``,Z,qb,Bb],A=()=>[`solid`,`dashed`,`dotted`,`double`],pe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],j=()=>[Z,Ab,Yb,Wb],me=()=>[``,`none`,m,$,Q],he=()=>[`none`,Z,$,Q],ge=()=>[`none`,Z,$,Q],_e=()=>[Z,$,Q],ve=()=>[Ob,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[jb],breakpoint:[jb],color:[Mb],container:[jb],"drop-shadow":[jb],ease:[`in`,`out`,`in-out`],font:[Lb],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[jb],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[jb],shadow:[jb],spacing:[`px`,Z],text:[jb],"text-shadow":[jb],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Ob,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[Rb],columns:[{columns:[Z,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{"inset-s":ee(),start:ee()}],end:[{"inset-e":ee(),end:ee()}],"inset-bs":[{"inset-bs":ee()}],"inset-be":[{"inset-be":ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[kb,`auto`,$,Q]}],basis:[{basis:[Ob,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,Ob,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[kb,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ae(),`normal`]}],"justify-items":[{"justify-items":[...oe(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...oe()]}],"align-content":[{content:[`normal`,...ae()]}],"align-items":[{items:[...oe(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...oe(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...oe(),`baseline`]}],"place-self":[{"place-self":[`auto`,...oe()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:se()}],mx:[{mx:se()}],my:[{my:se()}],ms:[{ms:se()}],me:[{me:se()}],mbs:[{mbs:se()}],mbe:[{mbe:se()}],mt:[{mt:se()}],mr:[{mr:se()}],mb:[{mb:se()}],ml:[{ml:se()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ce()}],"inline-size":[{inline:[`auto`,...le()]}],"min-inline-size":[{"min-inline":[`auto`,...le()]}],"max-inline-size":[{"max-inline":[`none`,...le()]}],"block-size":[{block:[`auto`,...ue()]}],"min-block-size":[{"min-block":[`auto`,...ue()]}],"max-block-size":[{"max-block":[`none`,...ue()]}],w:[{w:[s,`screen`,...ce()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ce()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ce()]}],h:[{h:[`screen`,`lh`,...ce()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ce()]}],"max-h":[{"max-h":[`screen`,`lh`,...ce()]}],"font-size":[{text:[`base`,n,qb,Bb]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,$b,Hb]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Ab,Q]}],"font-family":[{font:[Jb,Ub,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,Vb]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...A(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,Bb]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[kb,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:E()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:D()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},kb,$,Q],radial:[``,$,Q],conic:[kb,$,Q]},Zb,Gb]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-bs":[{"border-bs":k()}],"border-w-be":[{"border-be":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":k()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...A(),`hidden`,`none`]}],"divide-style":[{divide:[...A(),`hidden`,`none`]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...A(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,qb,Bb]}],"outline-color":[{outline:T()}],shadow:[{shadow:[``,`none`,u,Qb,Kb]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":[`none`,d,Qb,Kb]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:k()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Z,Bb]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":[`none`,f,Qb,Kb]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...pe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":pe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:E()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:me()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Qb,Kb]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":[`scale-3d`],skew:[{skew:_e()}],"skew-x":[{"skew-x":_e()}],"skew-y":[{"skew-y":_e()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":[`translate-none`],zoom:[{zoom:[kb,$,Q]}],accent:[{accent:T()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...T()]}],"stroke-w":[{stroke:[Z,qb,Bb,Vb]}],stroke:[{stroke:[`none`,...T()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}}),dx=v();function fx(e){return Object.prototype.toString.call(e)===`[object Object]`}function px(e){return fx(e)||Array.isArray(e)}function mx(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function hx(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||JSON.stringify(Object.keys(e.breakpoints||{}))!==JSON.stringify(Object.keys(t.breakpoints||{}))?!1:n.every(n=>{let r=e[n],i=t[n];return typeof r==`function`?`${r}`==`${i}`:!px(r)||!px(i)?r===i:hx(r,i)})}function gx(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function _x(e,t){if(e.length!==t.length)return!1;let n=gx(e),r=gx(t);return n.every((e,t)=>{let n=r[t];return hx(e,n)})}function vx(e){return typeof e==`number`}function yx(e){return typeof e==`string`}function bx(e){return typeof e==`boolean`}function xx(e){return Object.prototype.toString.call(e)===`[object Object]`}function Sx(e){return Math.abs(e)}function Cx(e){return Math.sign(e)}function wx(e,t){return Sx(e-t)}function Tx(e,t){return e===0||t===0||Sx(e)<=Sx(t)?0:Sx(wx(Sx(e),Sx(t))/e)}function Ex(e){return Math.round(e*100)/100}function Dx(e){return Mx(e).map(Number)}function Ox(e){return e[kx(e)]}function kx(e){return Math.max(0,e.length-1)}function Ax(e,t){return t===kx(e)}function jx(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function Mx(e){return Object.keys(e)}function Nx(e,t){return[e,t].reduce((e,t)=>(Mx(t).forEach(n=>{let r=e[n],i=t[n];e[n]=xx(r)&&xx(i)?Nx(r,i):i}),e),{})}function Px(e,t){return t.MouseEvent!==void 0&&e instanceof t.MouseEvent}function Fx(e,t){let n={start:r,center:i,end:a};function r(){return 0}function i(e){return a(e)/2}function a(e){return t-e}function o(r,i){return yx(e)?n[e](r):e(t,r,i)}return{measure:o}}function Ix(){let e=[];function t(t,n,i,a={passive:!0}){let o;if(`addEventListener`in t)t.addEventListener(n,i,a),o=()=>t.removeEventListener(n,i,a);else{let e=t;e.addListener(i),o=()=>e.removeListener(i)}return e.push(o),r}function n(){e=e.filter(e=>e())}let r={add:t,clear:n};return r}function Lx(e,t,n,r){let i=Ix(),a=1e3/60,o=null,s=0,c=0;function l(){i.add(e,`visibilitychange`,()=>{e.hidden&&m()})}function u(){p(),i.clear()}function d(e){if(!c)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),c&&(c=t.requestAnimationFrame(d))}function f(){c||(c=t.requestAnimationFrame(d))}function p(){t.cancelAnimationFrame(c),o=null,s=0,c=0}function m(){o=null,s=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function Rx(e,t){let n=t===`rtl`,r=e===`y`,i=r?`y`:`x`,a=r?`x`:`y`,o=!r&&n?-1:1,s=u(),c=d();function l(e){let{height:t,width:n}=e;return r?t:n}function u(){return r?`top`:n?`right`:`left`}function d(){return r?`bottom`:n?`left`:`right`}function f(e){return e*o}return{scroll:i,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function zx(e=0,t=0){let n=Sx(e-t);function r(t){return t<e}function i(e){return e>t}function a(e){return r(e)||i(e)}function o(n){return a(n)?r(n)?e:t:n}function s(e){return n?e-n*Math.ceil((e-t)/n):e}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function Bx(e,t,n){let{constrain:r}=zx(0,e),i=e+1,a=o(t);function o(e){return n?Sx((i+e)%i):r(e)}function s(){return a}function c(e){return a=o(e),d}function l(e){return u().set(s()+e)}function u(){return Bx(e,s(),n)}let d={get:s,set:c,add:l,clone:u};return d}function Vx(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let{cross:y,direction:b}=e,x=[`INPUT`,`SELECT`,`TEXTAREA`],S={passive:!1},C=Ix(),w=Ix(),ee=zx(50,225).constrain(p.measure(20)),te={mouse:300,touch:400},ne={mouse:500,touch:600},re=m?43:25,ie=!1,ae=0,oe=0,se=!1,ce=!1,le=!1,ue=!1;function T(e){if(!v)return;function n(t){(bx(v)||v(e,t))&&k(t)}let r=t;C.add(r,`dragstart`,e=>e.preventDefault(),S).add(r,`touchmove`,()=>void 0,S).add(r,`touchend`,()=>void 0).add(r,`touchstart`,n).add(r,`mousedown`,n).add(r,`touchcancel`,pe).add(r,`contextmenu`,pe).add(r,`click`,j,!0)}function E(){C.clear(),w.clear()}function de(){let e=ue?n:t;w.add(e,`touchmove`,A,S).add(e,`touchend`,pe).add(e,`mousemove`,A,S).add(e,`mouseup`,pe)}function D(e){let t=e.nodeName||``;return x.includes(t)}function fe(){return(m?ne:te)[ue?`mouse`:`touch`]}function O(e,t){let n=d.add(Cx(e)*-1),r=u.byDistance(e,!m).distance;return m||Sx(e)<ee?r:g&&t?r*.5:u.byIndex(n.get(),0).distance}function k(e){let t=Px(e,r);ue=t,le=m&&t&&!e.buttons&&ie,ie=wx(i.get(),o.get())>=2,!(t&&e.button!==0)&&(D(e.target)||(se=!0,a.pointerDown(e),l.useFriction(0).useDuration(0),i.set(o),de(),ae=a.readPoint(e),oe=a.readPoint(e,y),f.emit(`pointerDown`)))}function A(e){if(!Px(e,r)&&e.touches.length>=2)return pe(e);let t=a.readPoint(e),n=a.readPoint(e,y),o=wx(t,ae),c=wx(n,oe);if(!ce&&!ue&&(!e.cancelable||(ce=o>c,!ce)))return pe(e);let u=a.pointerMove(e);o>h&&(le=!0),l.useFriction(.3).useDuration(.75),s.start(),i.add(b(u)),e.preventDefault()}function pe(e){let t=u.byDistance(0,!1).index!==d.get(),n=a.pointerUp(e)*fe(),r=O(b(n),t),i=Tx(n,r),o=re-10*i,s=_+i/50;ce=!1,se=!1,w.clear(),l.useDuration(o).useFriction(s),c.distance(r,!m),ue=!1,f.emit(`pointerUp`)}function j(e){le&&(e.stopPropagation(),e.preventDefault(),le=!1)}function me(){return se}return{init:T,destroy:E,pointerDown:me}}function Hx(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=`client${(r||e.scroll)===`x`?`X`:`Y`}`;return(Px(n,t)?n:n.touches[0])[i]}function o(e){return n=e,r=e,a(e)}function s(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t}function c(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,c=t/o;return o&&!s&&Sx(c)>.1?c:0}return{pointerDown:o,pointerMove:s,pointerUp:c,readPoint:a}}function Ux(){function e(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}return{measure:e}}function Wx(e){function t(t){return t/100*e}return{measure:t}}function Gx(e,t,n,r,i,a,o){let s=[e].concat(r),c,l,u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}function p(i){if(!a)return;l=f(e),u=r.map(f);function o(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if(Sx(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit(`resize`);break}}}c=new ResizeObserver(e=>{(bx(a)||a(i,e))&&o(e)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))})}function m(){d=!0,c&&c.disconnect()}return{init:p,destroy:m}}function Kx(e,t,n,r,i,a){let o=0,s=0,c=i,l=a,u=e.get(),d=0;function f(){let t=r.get()-e.get(),i=!c,a=0;return i?(o=0,n.set(r),e.set(r),a=t):(n.set(e),o+=t/c,o*=l,u+=o,e.add(o),a=u-d),s=Cx(a),d=u,x}function p(){return Sx(r.get()-t.get())<.001}function m(){return c}function h(){return s}function g(){return o}function _(){return y(i)}function v(){return b(a)}function y(e){return c=e,x}function b(e){return l=e,x}let x={direction:h,duration:m,velocity:g,seek:f,settled:p,useBaseFriction:v,useBaseDuration:_,useFriction:b,useDuration:y};return x}function qx(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=zx(.1,.99),c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(i){if(!l())return;let c=Sx(e[e.reachedMin(t.get())?`min`:`max`]-t.get()),u=n.get()-t.get(),d=s.constrain(c/o);n.subtract(u*d),!i&&Sx(u)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(e){c=!e}return{shouldConstrain:l,constrain:u,toggleActive:d}}function Jx(e,t,n,r,i){let a=zx(-t+e,0),o=d(),s=u(),c=f();function l(e,t){return wx(e,t)<=1}function u(){let e=o[0],t=Ox(o);return zx(o.lastIndexOf(e),o.indexOf(t)+1)}function d(){return n.map((e,t)=>{let{min:r,max:i}=a,o=a.constrain(e),s=!t,c=Ax(n,t);return s?i:c||l(r,o)?r:l(i,o)?i:o}).map(e=>parseFloat(e.toFixed(3)))}function f(){if(t<=e+i)return[a.max];if(r===`keepSnaps`)return o;let{min:n,max:c}=s;return o.slice(n,c)}return{snapsContained:c,scrollContainLimit:s}}function Yx(e,t,n){let r=t[0];return{limit:zx(n?r-e:Ox(t),r)}}function Xx(e,t,n,r){let i=.1,{reachedMin:a,reachedMax:o}=zx(t.min+i,t.max+i);function s(e){return e===1?o(n.get()):e===-1?a(n.get()):!1}function c(t){if(!s(t))return;let n=t*-1*e;r.forEach(e=>e.add(n))}return{loop:c}}function Zx(e){let{max:t,length:n}=e;function r(e){let r=e-t;return n?r/-n:0}return{get:r}}function Qx(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,c=d().map(t.measure),l=f(),u=p();function d(){return s(r).map(e=>Ox(e)[o]-e[0][a]).map(Sx)}function f(){return r.map(e=>n[a]-e[a]).map(e=>-Sx(e))}function p(){return s(l).map(e=>e[0]).map((e,t)=>e+c[t])}return{snaps:l,snapsAligned:u}}function $x(e,t,n,r,i,a){let{groupSlides:o}=i,{min:s,max:c}=r,l=u();function u(){let r=o(a),i=!e||t===`keepSnaps`;return n.length===1?[a]:i?r:r.slice(s,c).map((e,t,n)=>{let r=!t,i=Ax(n,t);return r?jx(Ox(n[0])+1):i?jx(kx(a)-Ox(n)[0]+1,Ox(n)[0]):e})}return{slideRegistry:l}}function eS(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function c(e){return e.concat().sort((e,t)=>Sx(e)-Sx(t))[0]}function l(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>Sx(e.diff)-Sx(t.diff))[0];return{index:i,distance:r}}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let a=i.filter(e=>Cx(e)===r);return a.length?c(a):Ox(i)-n}function d(e,n){return{index:e,distance:u(t[e]-i.get(),n)}}function f(n,r){let o=i.get()+n,{index:s,distance:c}=l(o),d=!e&&a(o);return!r||d?{index:s,distance:n}:{index:s,distance:n+u(t[s]-c,0)}}return{byDistance:f,byIndex:d,shortcut:u}}function tS(e,t,n,r,i,a,o){function s(i){let s=i.distance,c=i.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),o.emit(`select`))}function c(e,t){s(i.byDistance(e,t))}function l(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}return{distance:c,index:l}}function nS(e,t,n,r,i,a,o,s){let c={passive:!0,capture:!0},l=0;function u(u){if(!s)return;function f(t){if(new Date().getTime()-l>10)return;o.emit(`slideFocusStart`),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));vx(a)&&(i.useDuration(0),r.index(a,0),o.emit(`slideFocus`))}a.add(document,`keydown`,d,!1),t.forEach((e,t)=>{a.add(e,`focus`,e=>{(bx(s)||s(u,e))&&f(t)},c)})}function d(e){e.code===`Tab`&&(l=new Date().getTime())}return{init:u}}function rS(e){let t=e;function n(){return t}function r(e){t=o(e)}function i(e){t+=o(e)}function a(e){t-=o(e)}function o(e){return vx(e)?e:e.get()}return{get:n,set:r,add:i,subtract:a}}function iS(e,t){let n=e.scroll===`x`?o:s,r=t.style,i=null,a=!1;function o(e){return`translate3d(${e}px,0px,0px)`}function s(e){return`translate3d(0px,${e}px,0px)`}function c(t){if(a)return;let o=Ex(e.direction(t));o!==i&&(r.transform=n(o),i=o)}function l(e){a=!e}function u(){a||(r.transform=``,t.getAttribute(`style`)||t.removeAttribute(`style`))}return{clear:u,to:c,toggleActive:l}}function aS(e,t,n,r,i,a,o,s,c){let l=.5,u=Dx(i),d=Dx(i).reverse(),f=_().concat(v());function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(e){return a.map((n,i)=>({start:n-r[i]+l+e,end:n+t-l+e}))}function g(t,r,i){let a=h(r);return t.map(t=>{let r=i?0:-n,o=i?n:0,l=i?`end`:`start`,u=a[t][l];return{index:t,loopPoint:u,slideLocation:rS(-1),translate:iS(e,c[t]),target:()=>s.get()>u?r:o}})}function _(){let e=o[0];return g(m(d,e),n,!1)}function v(){return g(m(u,t-o[0]-1),-n,!0)}function y(){return f.every(({index:e})=>p(u.filter(t=>t!==e),t)<=.1)}function b(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})}function x(){f.forEach(e=>e.translate.clear())}return{canLoop:y,clear:x,loop:b,loopPoints:f}}function oS(e,t,n){let r,i=!1;function a(a){if(!n)return;function o(e){for(let n of e)if(n.type===`childList`){a.reInit(),t.emit(`slidesChanged`);break}}r=new MutationObserver(e=>{i||(bx(n)||n(a,e))&&o(e)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function sS(e,t,n,r){let i={},a=null,o=null,s,c=!1;function l(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{let n=t.indexOf(e.target);i[n]=e}),a=null,o=null,n.emit(`slidesInView`))},{root:e.parentElement,threshold:r}),t.forEach(e=>s.observe(e))}function u(){s&&s.disconnect(),c=!0}function d(e){return Mx(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(e&&a||!e&&!a)&&t.push(r),t},[])}function f(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=d(e);return e&&(a=t),e||(o=t),t}return{init:l,destroy:u,get:f}}function cS(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:c}=e,l=n[0]&&i,u=m(),d=h(),f=n.map(o),p=g();function m(){if(!l)return 0;let e=n[0];return Sx(t[s]-e[s])}function h(){if(!l)return 0;let e=a.getComputedStyle(Ox(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}function g(){return n.map((e,t,n)=>{let r=!t,i=Ax(n,t);return r?f[t]+u:i?f[t]+d:n[t+1][s]-e[s]}).map(Sx)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function lS(e,t,n,r,i,a,o,s,c){let{startEdge:l,endEdge:u,direction:d}=e,f=vx(n);function p(e,t){return Dx(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}function m(e){return e.length?Dx(e).reduce((n,f,p)=>{let m=Ox(n)||0,h=m===0,g=f===kx(e),_=i[l]-a[m][l],v=i[l]-a[f][u],y=!r&&h?d(o):0,b=Sx(v-(!r&&g?d(s):0)-(_+y));return p&&b>t+c&&n.push(f),g&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}function h(e){return f?p(e,n):m(e)}return{groupSlides:h}}function uS(e,t,n,r,i,a,o){let{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:g,skipSnaps:_,containScroll:v,watchResize:y,watchSlides:b,watchDrag:x,watchFocus:S}=a,C=Ux(),w=C.measure(t),ee=n.map(C.measure),te=Rx(c,l),ne=te.measureSize(w),re=Wx(ne),ie=Fx(s,ne),ae=!d&&!!v,{slideSizes:oe,slideSizesWithGaps:se,startGap:ce,endGap:le}=cS(te,w,ee,n,d||!!v,i),ue=lS(te,ne,g,d,w,ee,ce,le,2),{snaps:T,snapsAligned:E}=Qx(te,ie,w,ee,ue),de=-Ox(T)+Ox(se),{snapsContained:D,scrollContainLimit:fe}=Jx(ne,de,E,v,2),O=ae?D:E,{limit:k}=Yx(de,O,d),A=Bx(kx(O),u,d),pe=A.clone(),j=Dx(n),me=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},he=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!s.pointerDown();g&&c.stop();let _=n.get()*f+i.get()*(1-f);r.set(_),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),g&&l.emit(`settle`),h||l.emit(`scroll`)},ge=Lx(r,i,()=>me(N),e=>he(N,e)),_e=.68,ve=O[A.get()],ye=rS(ve),be=rS(ve),xe=rS(ve),Se=rS(ve),Ce=Kx(ye,xe,be,Se,f,_e),we=eS(d,O,de,k,Se),Te=tS(ge,A,pe,Ce,we,Se,o),Ee=Zx(k),De=Ix(),Oe=sS(t,n,o,h),{slideRegistry:M}=$x(ae,v,O,fe,ue,j),ke=nS(e,n,M,Te,Ce,De,o,S),N={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:w,slideRects:ee,animation:ge,axis:te,dragHandler:Vx(te,e,r,i,Se,Hx(te,i),ye,ge,Te,Ce,we,A,o,re,p,m,_,_e,x),eventStore:De,percentOfView:re,index:A,indexPrevious:pe,limit:k,location:ye,offsetLocation:xe,previousLocation:be,options:a,resizeHandler:Gx(t,o,i,n,te,y,C),scrollBody:Ce,scrollBounds:qx(k,xe,Se,Ce,re),scrollLooper:Xx(de,k,xe,[ye,xe,be,Se]),scrollProgress:Ee,scrollSnapList:O.map(Ee.get),scrollSnaps:O,scrollTarget:we,scrollTo:Te,slideLooper:aS(te,ne,de,oe,se,T,O,xe,n),slideFocus:ke,slidesHandler:oS(t,o,b),slidesInView:Oe,slideIndexes:j,slideRegistry:M,slidesToScroll:ue,target:Se,translate:iS(te,t)};return N}function dS(){let e={},t;function n(e){t=e}function r(t){return e[t]||[]}function i(e){return r(e).forEach(n=>n(t,e)),c}function a(t,n){return e[t]=r(t).concat([n]),c}function o(t,n){return e[t]=r(t).filter(e=>e!==n),c}function s(){e={}}let c={init:n,emit:i,off:o,on:a,clear:s};return c}var fS={align:`center`,axis:`x`,container:null,slides:null,containScroll:`trimSnaps`,direction:`ltr`,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function pS(e){function t(e,t){return Nx(e,t||{})}function n(n){let r=n.breakpoints||{};return t(n,Mx(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{}))}function r(t){return t.map(e=>Mx(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function mS(e){let t=[];function n(n,r){return t=r.filter(({options:t})=>e.optionsAtMedia(t).active!==!1),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})}function r(){t=t.filter(e=>e.destroy())}return{init:n,destroy:r}}function hS(e,t,n){let r=e.ownerDocument,i=r.defaultView,a=pS(i),o=mS(a),s=Ix(),c=dS(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:p,emit:m}=c,h=ne,g=!1,_,v=l(fS,hS.globalOptions),y=l(v),b=[],x,S,C;function w(){let{container:t,slides:n}=y;S=(yx(t)?e.querySelector(t):t)||e.children[0];let r=yx(n)?S.querySelectorAll(n):n;C=[].slice.call(r||S.children)}function ee(t){let n=uS(e,S,C,r,i,t,c);return t.loop&&!n.slideLooper.canLoop()?ee(Object.assign({},t,{loop:!1})):n}function te(e,t){g||(v=l(v,e),y=u(v),b=t||b,w(),_=ee(y),d([v,...b.map(({options:e})=>e)]).forEach(e=>s.add(e,`change`,ne)),y.active&&(_.translate.to(_.location.get()),_.animation.init(),_.slidesInView.init(),_.slideFocus.init(me),_.eventHandler.init(me),_.resizeHandler.init(me),_.slidesHandler.init(me),_.options.loop&&_.slideLooper.loop(),S.offsetParent&&C.length&&_.dragHandler.init(me),x=o.init(me,b)))}function ne(e,t){let n=E();re(),te(l({startIndex:n},e),t),c.emit(`reInit`)}function re(){_.dragHandler.destroy(),_.eventStore.clear(),_.translate.clear(),_.slideLooper.clear(),_.resizeHandler.destroy(),_.slidesHandler.destroy(),_.slidesInView.destroy(),_.animation.destroy(),o.destroy(),s.clear()}function ie(){g||(g=!0,s.clear(),re(),c.emit(`destroy`),c.clear())}function ae(e,t,n){!y.active||g||(_.scrollBody.useBaseFriction().useDuration(t===!0?0:y.duration),_.scrollTo.index(e,n||0))}function oe(e){ae(_.index.add(1).get(),e,-1)}function se(e){ae(_.index.add(-1).get(),e,1)}function ce(){return _.index.add(1).get()!==E()}function le(){return _.index.add(-1).get()!==E()}function ue(){return _.scrollSnapList}function T(){return _.scrollProgress.get(_.offsetLocation.get())}function E(){return _.index.get()}function de(){return _.indexPrevious.get()}function D(){return _.slidesInView.get()}function fe(){return _.slidesInView.get(!1)}function O(){return x}function k(){return _}function A(){return e}function pe(){return S}function j(){return C}let me={canScrollNext:ce,canScrollPrev:le,containerNode:pe,internalEngine:k,destroy:ie,off:p,on:f,emit:m,plugins:O,previousScrollSnap:de,reInit:h,rootNode:A,scrollNext:oe,scrollPrev:se,scrollProgress:T,scrollSnapList:ue,scrollTo:ae,selectedScrollSnap:E,slideNodes:j,slidesInView:D,slidesNotInView:fe};return te(t,n),setTimeout(()=>c.emit(`init`),0),me}hS.globalOptions=void 0;function gS(e={},t=[]){let n=(0,Y.useRef)(e),r=(0,Y.useRef)(t),[i,a]=(0,Y.useState)(),[o,s]=(0,Y.useState)(),c=(0,Y.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,Y.useEffect)(()=>{hx(n.current,e)||(n.current=e,c())},[e,c]),(0,Y.useEffect)(()=>{_x(r.current,t)||(r.current=t,c())},[t,c]),(0,Y.useEffect)(()=>{if(mx()&&o){hS.globalOptions=gS.globalOptions;let e=hS(o,n.current,r.current);return a(e),()=>e.destroy()}else a(void 0)},[o,a]),[s,i]}gS.globalOptions=void 0;function _S(){return _S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_S.apply(this,arguments)}var vS=.996,yS=function(e,t){return t===void 0&&(t=vS),e*t/(1-t)};function bS(e){return e[e.length-1]}function xS(e){return e.reduce(function(e,t){return e+t})/e.length}var SS=function(e,t,n){return Math.min(Math.max(t,e),n)};function CS(e,t){if(e.length!==t.length)throw Error(`vectors must be same length`);return e.map(function(e,n){return e+t[n]})}function wS(e){return Math.max.apply(Math,e.map(Math.abs))}function TS(e){return Object.freeze(e),Object.values(e).forEach(function(e){typeof e==`object`&&e&&!Object.isFrozen(e)&&TS(e)}),e}function ES(){var e={};function t(t,r){return e[t]=(e[t]||[]).concat(r),function(){return n(t,r)}}function n(t,n){e[t]=(e[t]||[]).filter(function(e){return e!==n})}function r(t,n){t in e&&e[t].forEach(function(e){return e(n)})}return TS({on:t,off:n,dispatch:r})}function DS(e){var t=[],n=function(n){return n.addEventListener(`wheel`,e,{passive:!1}),t.push(n),function(){return r(n)}},r=function(n){n.removeEventListener(`wheel`,e),t=t.filter(function(e){return e!==n})};return TS({observe:n,unobserve:r,disconnect:function(){t.forEach(r)}})}var OS=[1,16*1.125,typeof window<`u`&&window.innerHeight||800];function kS(e){var t=e.deltaX*OS[e.deltaMode],n=e.deltaY*OS[e.deltaMode],r=(e.deltaZ||0)*OS[e.deltaMode];return{timeStamp:e.timeStamp,axisDelta:[t,n,r]}}var AS=[-1,-1,-1];function jS(e,t){if(!t)return e;var n=t===!0?AS:t.map(function(e){return e?-1:1});return _S({},e,{axisDelta:e.axisDelta.map(function(e,t){return e*n[t]})})}var MS=700,NS=function(e){return _S({},e,{axisDelta:e.axisDelta.map(function(e){return SS(e,-MS,MS)})})},PS=!1,FS=.6,IS=.96,LS=2,RS=5,zS=TS({preventWheelAction:!0,reverseSign:[!0,!0,!1]}),BS=400;function VS(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:BS}}function HS(e){e===void 0&&(e={});var t=ES(),n=t.on,r=t.off,i=t.dispatch,a=zS,o=VS(),s,c=!1,l,u=function(e){Array.isArray(e)?e.forEach(function(e){return m(e)}):m(e)},d=function(e){return e===void 0&&(e={}),Object.values(e).some(function(e){return e==null})?(PS&&console.error(`updateOptions ignored! undefined & null options not allowed`),a):a=TS(_S({},zS,a,e))},f=function(e){var t=_S({event:s,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:o.isMomentum,axisDelta:[0,0,0],axisVelocity:o.axisVelocity,axisMovement:o.axisMovement,get axisMovementProjection(){return CS(t.axisMovement,t.axisVelocity.map(function(e){return yS(e)}))}},e);i(`wheel`,_S({},t,{previous:l})),l=t},p=function(e,t){var n=a.preventWheelAction,r=t[0],i=t[1],o=t[2];if(typeof n==`boolean`)return n;switch(n){case`x`:return Math.abs(r)>=e;case`y`:return Math.abs(i)>=e;case`z`:return Math.abs(o)>=e;default:return PS&&console.warn(`unsupported preventWheelAction value: `+n,`warn`),!1}},m=function(e){var t=NS(jS(kS(e),a.reverseSign)),n=t.axisDelta,r=t.timeStamp,i=wS(n);if(e.preventDefault&&p(i,n)&&e.preventDefault(),o.isStarted?o.isMomentum&&i>Math.max(2,o.lastAbsDelta*2)&&(w(!0),S()):S(),i===0&&Object.is&&Object.is(e.deltaX,-0)){c=!0;return}s=e,o.axisMovement=CS(o.axisMovement,n),o.lastAbsDelta=i,o.scrollPointsToMerge.push({axisDelta:n,timeStamp:r}),h(),f({axisDelta:n,isStart:!o.isStartPublished}),o.isStartPublished=!0,C()},h=function(){o.scrollPointsToMerge.length===LS?(o.scrollPoints.unshift({axisDeltaSum:o.scrollPointsToMerge.map(function(e){return e.axisDelta}).reduce(CS),timeStamp:xS(o.scrollPointsToMerge.map(function(e){return e.timeStamp}))}),_(),o.scrollPointsToMerge.length=0,o.scrollPoints.length=1,o.isMomentum||b()):o.isStartPublished||g()},g=function(){o.axisVelocity=bS(o.scrollPointsToMerge).axisDelta.map(function(e){return e/o.willEndTimeout})},_=function(){var e=o.scrollPoints,t=e[0],n=e[1];if(!(!n||!t)){var r=t.timeStamp-n.timeStamp;if(r<=0){PS&&console.warn(`invalid deltaTime`);return}var i=t.axisDeltaSum.map(function(e){return e/r}),a=i.map(function(e,t){return e/(o.axisVelocity[t]||1)});o.axisVelocity=i,o.accelerationFactors.push(a),v(r)}},v=function(e){var t=Math.ceil(e/10)*10*1.2;o.isMomentum||(t=Math.max(100,t*2)),o.willEndTimeout=Math.min(1e3,Math.round(t))},y=function(e){return e===0?!0:e<=IS&&e>=FS},b=function(){if(o.accelerationFactors.length>=RS){if(c&&(c=!1,wS(o.axisVelocity)>=.2)){x();return}var e=o.accelerationFactors.slice(RS*-1);e.every(function(e){var t=!!e.reduce(function(e,t){return e&&e<1&&e===t?1:0}),n=e.filter(y).length===e.length;return t||n})&&x(),o.accelerationFactors=e}},x=function(){o.isMomentum=!0},S=function(){o=VS(),o.isStarted=!0,o.startTime=Date.now(),l=void 0,c=!1},C=function(){var e;return function(){clearTimeout(e),e=setTimeout(w,o.willEndTimeout)}}(),w=function(e){e===void 0&&(e=!1),o.isStarted&&(o.isMomentum&&e?f({isEnding:!0,isMomentumCancel:!0}):f({isEnding:!0}),o.isMomentum=!1,o.isStarted=!1)},ee=DS(u),te=ee.observe,ne=ee.unobserve,re=ee.disconnect;return d(e),TS({on:n,off:r,observe:te,unobserve:ne,disconnect:re,feedWheel:u,updateOptions:d})}var US={active:!0,breakpoints:{},wheelDraggingClass:`is-wheel-dragging`,forceWheelAxis:void 0,target:void 0};GS.globalOptions=void 0;var WS=!1;function GS(e){e===void 0&&(e={});var t,n=function(){};function r(r,i){var a=i.mergeOptions,o=i.optionsAtMedia;t=o(a(a(US,GS.globalOptions),e));var s=r.internalEngine(),c=t.target??r.containerNode().parentNode,l=t.forceWheelAxis??s.options.axis,u=HS({preventWheelAction:l,reverseSign:[!0,!0,!1]});function d(){_=(l===`x`?s.containerRect.width:s.containerRect.height)/2}var f=u.observe(c),p=u.on(`wheel`,re),m=!1,h,g=0,_=0,v=!1;d(),r.on(`resize`,d);function y(e){try{h=new MouseEvent(`mousedown`,e.event),ee(h)}catch{return WS&&console.warn(`Legacy browser requires events-polyfill (https://github.com/xiel/embla-carousel-wheel-gestures#legacy-browsers)`),n()}m=!0,g=0,x(),t.wheelDraggingClass&&c.classList.add(t.wheelDraggingClass)}function b(e){m=!1,ee(w(`mouseup`,e)),S(),t.wheelDraggingClass&&c.classList.remove(t.wheelDraggingClass)}function x(){document.documentElement.addEventListener(`mousemove`,C,!0),document.documentElement.addEventListener(`mouseup`,C,!0),document.documentElement.addEventListener(`mousedown`,C,!0)}function S(){document.documentElement.removeEventListener(`mousemove`,C,!0),document.documentElement.removeEventListener(`mouseup`,C,!0),document.documentElement.removeEventListener(`mousedown`,C,!0)}function C(e){m&&e.isTrusted&&e.stopImmediatePropagation()}function w(e,t){var n,r;if(l===s.options.axis){var i=t.axisMovement;n=i[0],r=i[1]}else{var a=t.axisMovement;r=a[0],n=a[1]}if(te(t).isAtBoundary){var o=.25+Math.min(g/_,1)*.5,c=g*(n>0?-1:1)*o;n+=c,r+=c}if(!s.options.skipSnaps&&!s.options.dragFree){var u=s.containerRect.width,d=s.containerRect.height;n=n<0?Math.max(n,-u):Math.min(n,u),r=r<0?Math.max(r,-d):Math.min(r,d)}return new MouseEvent(e,{clientX:h.clientX+n,clientY:h.clientY+r,screenX:h.screenX+n,screenY:h.screenY+r,movementX:n,movementY:r,button:0,bubbles:!0,cancelable:!0,composed:!0})}function ee(e){r.containerNode().dispatchEvent(e)}function te(e){var t=e.axisDelta,n=t[0],i=t[1],a=r.scrollProgress(),o=a<1,s=a>0,c=l===`x`?n:i;return{isAtBoundary:c<0&&!o||c>0&&!s,primaryAxisDelta:c}}function ne(e){var t=te(e),n=t.isAtBoundary,r=t.primaryAxisDelta;if(n&&!e.isMomentum){if(g+=Math.abs(r),g>_)return v=!0,b(e),!0}else g=0;return!1}function re(e){var t=e.axisDelta,n=t[0],r=t[1],i=l===`x`?n:r,a=l===`x`?r:n,o=e.isMomentum&&e.previous&&!e.previous.isMomentum,s=e.isEnding&&!e.isMomentum||o;Math.abs(i)>Math.abs(a)&&!m&&!e.isMomentum&&!v&&y(e),v&&e.isEnding&&(v=!1),m&&(ne(e)||(s?b(e):ee(w(`mousemove`,e))))}n=function(){f(),p(),r.off(`resize`,d),S()}}return{name:`wheelGestures`,options:e,init:r,destroy:function(){return n()}}}var KS=e=>(0,X.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 24 24`,fill:`currentColor`,...e,children:(0,X.jsx)(`path`,{fillRule:`evenodd`,d:`M5.293 12.707a1 1 0 0 1 0-1.414l5-5a1 1 0 1 1 1.414 1.414L8.414 11H18a1 1 0 1 1 0 2H8.414l3.293 3.293a1 1 0 0 1-1.414 1.414l-5-5Z`,clipRule:`evenodd`})}),qS=e=>(0,X.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 24 24`,fill:`currentColor`,...e,children:(0,X.jsx)(`path`,{fillRule:`evenodd`,d:`M18.707 12.707a1 1 0 0 0 0-1.414l-5-5a1 1 0 1 0-1.414 1.414L15.586 11H6a1 1 0 1 0 0 2h9.586l-3.293 3.293a1 1 0 0 0 1.414 1.414l5-5Z`,clipRule:`evenodd`})});function JS(...e){return ux(zy(e))}var YS={xs:`h-6 px-2 text-xs gap-1`,sm:`h-7 px-3 text-sm gap-1.5`,md:`h-8 px-3.5 text-sm gap-2`,lg:`h-10 px-4 text-base gap-2`},XS={solid:{primary:`bg-[var(--color-background-inverse)] text-[var(--color-text-inverse)] hover:opacity-85 active:opacity-75`,secondary:`bg-[var(--color-background-tertiary)] text-[var(--color-text-primary)] hover:opacity-80 active:opacity-70`,warning:`bg-[var(--color-text-warning)] text-white hover:opacity-85 active:opacity-75`,danger:`bg-[var(--color-text-danger)] text-white hover:opacity-85 active:opacity-75`},soft:{primary:`bg-[var(--color-background-info)] text-[var(--color-text-info)] hover:opacity-75 active:opacity-65`,secondary:`bg-[var(--color-background-secondary)] text-[var(--color-text-primary)] hover:opacity-80 active:opacity-70`,warning:`bg-[var(--color-background-warning)] text-[var(--color-text-warning)] hover:opacity-75 active:opacity-65`,danger:`bg-[var(--color-background-danger)] text-[var(--color-text-danger)] hover:opacity-75 active:opacity-65`},ghost:{primary:`bg-transparent text-[var(--color-text-info)] hover:bg-[var(--color-background-secondary)] active:bg-[var(--color-background-tertiary)]`,secondary:`bg-transparent text-[var(--color-text-secondary)] hover:bg-[var(--color-background-secondary)] active:bg-[var(--color-background-tertiary)]`,warning:`bg-transparent text-[var(--color-text-warning)] hover:bg-[var(--color-background-warning)] active:bg-[var(--color-background-tertiary)]`,danger:`bg-transparent text-[var(--color-text-danger)] hover:bg-[var(--color-background-danger)] active:bg-[var(--color-background-tertiary)]`},outline:{primary:`bg-transparent border border-[var(--color-border-primary)] text-[var(--color-text-info)] hover:bg-[var(--color-background-secondary)]`,secondary:`bg-transparent border border-[var(--color-border-primary)] text-[var(--color-text-secondary)] hover:bg-[var(--color-background-secondary)]`,warning:`bg-transparent border border-[var(--color-border-warning)] text-[var(--color-text-warning)] hover:bg-[var(--color-background-warning)]`,danger:`bg-transparent border border-[var(--color-border-danger)] text-[var(--color-text-danger)] hover:bg-[var(--color-background-danger)]`}},ZS=Y.forwardRef(({variant:e=`solid`,color:t=`primary`,size:n=`md`,className:r,children:i,...a},o)=>(0,X.jsx)(`button`,{ref:o,type:`button`,className:JS(`inline-flex items-center justify-center font-medium transition-colors rounded-full cursor-pointer select-none flex-shrink-0 whitespace-nowrap`,`disabled:opacity-50 disabled:cursor-not-allowed`,YS[n],XS[e][t],r),...a,children:i}));ZS.displayName=`Button`;function QS({children:e,gap:t=16,showArrows:n=!0,showEdgeGradients:r=!0,cardWidth:i,displayMode:a=`inline`,className:o}){let[s,c]=Y.useState(0),[l,u]=gS({align:`start`,dragFree:!0,containScroll:`trimSnaps`},[GS()]),[d,f]=Y.useState(!1),[p,m]=Y.useState(!1),h=Y.useCallback(()=>{u&&u.scrollPrev()},[u]),g=Y.useCallback(()=>{u&&u.scrollNext()},[u]),_=Y.useRef(null),v=Y.useCallback(()=>{if(!u)return;f(u.canScrollPrev()),m(u.canScrollNext());let e=u.selectedScrollSnap();_.current!==e&&(_.current=e,c(e))},[u]);Y.useEffect(()=>{if(u)return f(u.canScrollPrev()),m(u.canScrollNext()),_.current=u.selectedScrollSnap(),u.on(`select`,v),u.on(`reInit`,v),()=>{u.off(`select`,v),u.off(`reInit`,v)}},[u,v]),Y.useEffect(()=>{u&&s!==u.selectedScrollSnap()&&_.current!==s&&(_.current=s,u.scrollTo(s))},[u,s]);let y=Y.Children.toArray(e),b=(()=>{if(typeof i==`number`)return i;if(i&&typeof i==`object`){if(a===`fullscreen`&&i.fullscreen)return i.fullscreen;if(i.inline)return i.inline}return 220})();return(0,X.jsxs)(`div`,{className:JS(`relative w-full`,o),children:[r&&d&&(0,X.jsx)(`div`,{className:`pointer-events-none absolute left-0 top-0 z-10 h-full w-12 bg-gradient-to-r from-surface to-transparent`,"aria-hidden":`true`}),r&&p&&(0,X.jsx)(`div`,{className:`pointer-events-none absolute right-0 top-0 z-10 h-full w-12 bg-gradient-to-l from-surface to-transparent`,"aria-hidden":`true`}),(0,X.jsx)(`div`,{ref:l,className:`overflow-hidden w-full`,children:(0,X.jsx)(`div`,{className:`flex touch-pan-y`,style:{gap:`${t}px`,marginLeft:`-${t}px`,paddingLeft:`${t}px`},children:y.map((e,t)=>(0,X.jsx)(`div`,{className:`flex-none`,style:{minWidth:`${b}px`,maxWidth:`${b}px`},children:e},t))})}),n&&d&&(0,X.jsx)(ZS,{variant:`soft`,color:`secondary`,onClick:h,className:`absolute left-2 top-1/2 -translate-y-1/2 z-20 h-8 w-8 min-w-8 rounded-full p-0 shadow-md`,"aria-label":`Previous slide`,children:(0,X.jsx)(KS,{className:`h-4 w-4`})}),n&&p&&(0,X.jsx)(ZS,{variant:`soft`,color:`secondary`,onClick:g,className:`absolute right-2 top-1/2 -translate-y-1/2 z-20 h-8 w-8 min-w-8 rounded-full p-0 shadow-md`,"aria-label":`Next slide`,children:(0,X.jsx)(qS,{className:`h-4 w-4`})})]})}var $S=Y.forwardRef(({album:e,onSelect:t,className:n,buttonSize:r=`md`},i)=>(0,X.jsxs)(ZS,{ref:i,variant:`ghost`,color:`secondary`,size:r,className:JS(`rounded-xl flex-shrink-0 w-full h-full p-0 text-left flex flex-col [&:hover]:bg-transparent hover:bg-transparent cursor-pointer`,n),onClick:()=>t?.(e),children:[(0,X.jsx)(`div`,{className:`aspect-[4/3] w-full overflow-hidden rounded-xl flex-shrink-0`,children:(0,X.jsx)(`img`,{src:e.cover,alt:e.title,className:`w-full h-full object-cover`,loading:`lazy`})}),(0,X.jsxs)(`div`,{className:`flex-shrink-0 w-full p-2`,children:[(0,X.jsx)(`div`,{className:`text-base font-normal text-[var(--color-text-primary)]`,children:e.title}),(0,X.jsxs)(`div`,{className:`text-sm text-[var(--color-text-secondary)]`,children:[e.photos.length,` `,e.photos.length===1?`photo`:`photos`]})]})]}));$S.displayName=`AlbumCard`;var eC=Y.forwardRef(({album:e,selectedIndex:t,onSelect:n,className:r},i)=>(0,X.jsx)(`div`,{ref:i,className:JS(`h-full w-full overflow-auto flex flex-col items-center justify-center p-5 space-y-5`,r),children:e.photos.map((e,r)=>(0,X.jsx)(ZS,{variant:`ghost`,color:`secondary`,onClick:()=>n?.(r),className:JS(`block w-full h-auto p-[1px] pointer-events-auto rounded-[10px] border transition-all`,r===t?`border-[var(--color-ring-primary)] shadow-md`:`border-transparent hover:border-[var(--color-ring-primary)]/30 opacity-60 hover:opacity-100`),children:(0,X.jsx)(`div`,{className:`aspect-[5/3] rounded-lg overflow-hidden w-full`,children:(0,X.jsx)(`img`,{src:e.url,alt:e.title||`Photo ${r+1}`,className:`h-full w-full object-cover`,loading:`lazy`})})},e.id))}));eC.displayName=`FilmStrip`;function tC({album:e,className:t}){let[n,r]=Y.useState(0),[i,a]=Y.useState(0),o=Y.useRef(null);Y.useEffect(()=>{r(0)},[e?.id]),Y.useEffect(()=>{let e=o.current;if(!e)return;let t=()=>{a(e.getBoundingClientRect().width)};t();let n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]);let s=e?.photos?.[n],c=i>0&&i<768;return(0,X.jsxs)(`div`,{ref:o,className:JS(`h-full flex w-full bg-[var(--color-background-primary)]`,c?`flex-col`:`flex-row`,t),children:[c&&(0,X.jsxs)(`div`,{className:`border-b border-[var(--color-border-tertiary)] bg-[var(--color-background-primary)]/95 backdrop-blur-sm px-4 py-3`,children:[(0,X.jsx)(`h2`,{className:`text-base font-semibold text-[var(--color-text-primary)]`,children:e.title}),(0,X.jsxs)(`p`,{className:`text-sm text-[var(--color-text-secondary)]`,children:[n+1,` / `,e.photos.length]})]}),!c&&(0,X.jsx)(`div`,{className:`w-40 flex-shrink-0`,children:(0,X.jsx)(eC,{album:e,selectedIndex:n,onSelect:r})}),(0,X.jsx)(`div`,{className:`flex-1 flex items-center justify-center p-4 md:p-10`,children:s?(0,X.jsx)(`img`,{src:s.url,alt:s.title||e.title,className:`rounded-3xl shadow-sm border border-[var(--color-ring-primary)]/10 max-w-full max-h-full object-contain`}):null})]})}function nC({className:e}){let{output:t,inputPartial:n,isLoading:r,isError:i,isCancelled:a,cancelReason:o}=Oy(),[s,c]=Ly({selectedAlbumId:null}),l=Ay(),{touch:u=!1}=ky(),{requestDisplayMode:d,availableModes:f}=Fy(),p=Iy(),m=t?.albums??[],h=m.find(e=>e.id===s.selectedAlbumId),g=f?.includes(`fullscreen`)??!1,_=Y.useCallback(e=>{c(t=>({...t,selectedAlbumId:e.id})),g&&d(`fullscreen`),p({structuredContent:{selectedAlbum:{id:e.id,title:e.title}}})},[c,d,p,g]);if(r){let e=n?.category||n?.search;return(0,X.jsxs)(`div`,{className:`flex items-center justify-center gap-2 p-8 text-[var(--color-text-secondary)]`,children:[(0,X.jsx)(`div`,{className:`w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin`}),(0,X.jsx)(`span`,{children:e?`Loading ${e} albums…`:`Loading albums…`})]})}return i?(0,X.jsx)(`div`,{className:`flex items-center justify-center p-8 text-[var(--color-text-secondary)]`,children:`Failed to load albums`}):a?(0,X.jsx)(`div`,{className:`flex items-center justify-center p-8 text-[var(--color-text-secondary)]`,children:o??`Request was cancelled`}):l===`fullscreen`&&h?(0,X.jsx)(tC,{album:h}):m.length===0?(0,X.jsx)(`div`,{className:`flex items-center justify-center p-8 text-[var(--color-text-secondary)]`,children:`No albums found`}):(0,X.jsx)(`div`,{className:e,children:(0,X.jsx)(QS,{gap:20,showArrows:!1,showEdgeGradients:!1,cardWidth:272,displayMode:l,children:m.map(e=>(0,X.jsx)($S,{album:e,onSelect:_,buttonSize:u?`lg`:`md`},e.id))})})}function rC(){return(0,X.jsx)(Py,{className:Ay()===`fullscreen`?``:`p-4`,children:(0,X.jsx)(nC,{})})}var iC=document.getElementById(`root`);iC&&(0,dx.createRoot)(iC).render((0,X.jsx)(yy,{appInfo:{name:`sunpeak-app`,version:`0.1.0`},children:(0,X.jsx)(rC,{})}))})();
|
|
128
|
+
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:B().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:B().optional().describe(`User's timezone in IANA format.`),userAgent:B().optional().describe(`Host application identifier.`),platform:W([K(`web`),K(`desktop`),K(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:U({touch:Zf().optional().describe(`Whether the device supports touch input.`),hover:Zf().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:U({top:V().describe(`Top safe area inset in pixels.`),right:V().describe(`Right safe area inset in pixels.`),bottom:V().describe(`Bottom safe area inset in pixels.`),left:V().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),$v=U({method:K(`ui/notifications/host-context-changed`),params:Qv.describe(`Partial context update containing only changed fields.`)});U({method:K(`ui/update-model-context`),params:U({content:H(D_).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:G(B(),ap().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),U({method:K(`ui/initialize`),params:U({appInfo:_g.describe(`App identification (name and version).`),appCapabilities:Jv.describe(`Features and capabilities this app provides.`),protocolVersion:B().describe(`Protocol version this app supports.`)})});var ey=U({protocolVersion:B().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:_g.describe(`Host application identification and version.`),hostCapabilities:qv.describe(`Features and capabilities provided by the host.`),hostContext:Qv.describe(`Rich context about the host environment.`)}).passthrough(),ty={target:`draft-2020-12`};async function ny(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](ty);if(n.vendor===`zod`){let{z:n}=await Promise.resolve().then(()=>(Bh(),Rh));return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function ry(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}function iy(e){let t=document.documentElement;t.setAttribute(`data-theme`,e),t.style.colorScheme=e}function ay(e,t=document.documentElement){for(let[n,r]of Object.entries(e))r!==void 0&&t.style.setProperty(n,r)}function oy(e){if(document.getElementById(`__mcp-host-fonts`))return;let t=document.createElement(`style`);t.id=`__mcp-host-fonts`,t.textContent=e,document.head.appendChild(t)}var sy=class e extends kv{_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),S(this,`_appInfo`,void 0),S(this,`_capabilities`,void 0),S(this,`options`,void 0),S(this,`_hostCapabilities`,void 0),S(this,`_hostInfo`,void 0),S(this,`_hostContext`,void 0),S(this,`_registeredTools`,{}),S(this,`_initializedSent`,!1),S(this,`eventSchemas`,{toolinput:Bv,toolinputpartial:Vv,toolresult:Zv,toolcancelled:Hv,hostcontextchanged:$v}),S(this,`_everHadListener`,new Set),S(this,`_toolHandlersInitialized`,!1),S(this,`_onteardown`,void 0),S(this,`_oncalltool`,void 0),S(this,`_onlisttools`,void 0),S(this,`sendOpenLink`,this.openLink),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||w({jitless:!0}),this.setRequestHandler(Dg,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=Ov(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await ry(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await ry(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await ny(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await ny(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(Gv,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(R_,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(P_,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){switch(e){case`sampling/createMessage`:if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`);break}}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},I_,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},s_,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},t_,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?ev:$_;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},Lv,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},fg,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},Fv,t)}downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},Iv,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},Yv,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new jv(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:Av}},ey,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};S(sy,`ONE_SHOT_EVENTS`,new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]));function cy(e){if(e.__toolDataStore)return e.__toolDataStore;let t={data:{input:null,inputPartial:null,output:null,isError:!1,isLoading:!0,isCancelled:!1,cancelReason:null},listeners:new Set};e.__toolDataStore=t;let n=()=>{for(let e of t.listeners)e()};return e.addEventListener(`toolinput`,e=>{t.data={...t.data,input:e.arguments,inputPartial:null},n()}),e.addEventListener(`toolinputpartial`,e=>{t.data={...t.data,inputPartial:e.arguments},n()}),e.addEventListener(`toolresult`,e=>{t.data={...t.data,output:e.structuredContent??e.content,isError:e.isError??!1,isLoading:!1},n()}),e.addEventListener(`toolcancelled`,e=>{t.data={...t.data,isCancelled:!0,cancelReason:e.reason??null,isLoading:!1},n()}),t}var ly=s((e=>{var t=Symbol.for(`react.transitional.element`);function n(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.jsx=n,e.jsxs=n})),uy=s(((e,t)=>{t.exports=ly()})),Y=u(m(),1),X=uy(),dy={app:null,isConnected:!1,error:null},fy=(0,Y.createContext)(dy),py=null,my=null,hy=5e3,gy=3,_y=500;function vy(e,t){return new Promise((n,r)=>{let i=setTimeout(()=>r(Error(`Connection timed out`)),t);e.then(e=>{clearTimeout(i),n(e)},e=>{clearTimeout(i),r(e)})})}async function yy(e,t,n){let r=null;for(let i=0;i<=gy;i++){if(i>0){let e=_y*2**(i-1);await new Promise(t=>setTimeout(t,e))}let a=null;try{a=new jv(window.parent,window.parent);let r=new sy(e,t);return cy(r),n?.(r),await vy(r.connect(a),hy),r}catch(e){if(a)try{await a.close()}catch{}r=e instanceof Error?e:Error(`Connection failed`),i<gy&&console.warn(`[sunpeak] Connection attempt ${i+1}/4 failed, retrying...`,r.message)}}throw console.error(`[sunpeak] All connection attempts failed. Try refreshing the page or opening a new chat.
|
|
129
|
+
Troubleshooting: https://sunpeak.ai/docs/app-framework/guides/troubleshooting`),r??Error(`Failed to connect`)}function by({appInfo:e,capabilities:t,onAppCreated:n,children:r}){let[i,a]=(0,Y.useState)(()=>py?{app:py,isConnected:!0,error:null}:dy);return(0,Y.useEffect)(()=>{let r=!1;return py?(a({app:py,isConnected:!0,error:null}),()=>{r=!0}):(my||(my=yy(e,t??{},n)),my.then(e=>{py=e,r||a({app:e,isConnected:!0,error:null})},e=>{my=null,r||a({app:null,isConnected:!1,error:e instanceof Error?e:Error(`Failed to connect`)})}),()=>{r=!0})},[]),(0,X.jsx)(fy.Provider,{value:i,children:r})}function xy(){return(0,Y.useContext)(fy).app}var Sy={"--color-background-primary":`light-dark(#ffffff, #1a1a1a)`,"--color-background-secondary":`light-dark(#f5f5f5, #2d2d2d)`,"--color-background-tertiary":`light-dark(#e5e5e5, #404040)`,"--color-background-inverse":`light-dark(#1a1a1a, #ffffff)`,"--color-background-ghost":`light-dark(rgba(255,255,255,0), rgba(26,26,26,0))`,"--color-background-info":`light-dark(#eff6ff, #1e3a5f)`,"--color-background-danger":`light-dark(#fef2f2, #7f1d1d)`,"--color-background-success":`light-dark(#f0fdf4, #14532d)`,"--color-background-warning":`light-dark(#fefce8, #713f12)`,"--color-background-disabled":`light-dark(rgba(255,255,255,0.5), rgba(26,26,26,0.5))`,"--color-text-primary":`light-dark(#1f2937, #f3f4f6)`,"--color-text-secondary":`light-dark(#6b7280, #9ca3af)`,"--color-text-tertiary":`light-dark(#9ca3af, #6b7280)`,"--color-text-inverse":`light-dark(#f3f4f6, #1f2937)`,"--color-text-ghost":`light-dark(rgba(107,114,128,0.5), rgba(156,163,175,0.5))`,"--color-text-info":`light-dark(#1d4ed8, #60a5fa)`,"--color-text-danger":`light-dark(#b91c1c, #f87171)`,"--color-text-success":`light-dark(#15803d, #4ade80)`,"--color-text-warning":`light-dark(#a16207, #fbbf24)`,"--color-text-disabled":`light-dark(rgba(31,41,55,0.5), rgba(243,244,246,0.5))`,"--color-border-primary":`light-dark(#e5e7eb, #404040)`,"--color-border-secondary":`light-dark(#d1d5db, #525252)`,"--color-border-tertiary":`light-dark(#f3f4f6, #374151)`,"--color-border-inverse":`light-dark(rgba(255,255,255,0.3), rgba(0,0,0,0.3))`,"--color-border-ghost":`light-dark(rgba(229,231,235,0), rgba(64,64,64,0))`,"--color-border-info":`light-dark(#93c5fd, #1e40af)`,"--color-border-danger":`light-dark(#fca5a5, #991b1b)`,"--color-border-success":`light-dark(#86efac, #166534)`,"--color-border-warning":`light-dark(#fde047, #854d0e)`,"--color-border-disabled":`light-dark(rgba(229,231,235,0.5), rgba(64,64,64,0.5))`,"--color-ring-primary":`light-dark(#3b82f6, #60a5fa)`,"--color-ring-secondary":`light-dark(#6b7280, #9ca3af)`,"--color-ring-inverse":`light-dark(#ffffff, #1f2937)`,"--color-ring-info":`light-dark(#2563eb, #3b82f6)`,"--color-ring-danger":`light-dark(#dc2626, #ef4444)`,"--color-ring-success":`light-dark(#16a34a, #22c55e)`,"--color-ring-warning":`light-dark(#ca8a04, #eab308)`,"--font-sans":`system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif`,"--font-mono":`ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', monospace`,"--font-weight-normal":`400`,"--font-weight-medium":`500`,"--font-weight-semibold":`600`,"--font-weight-bold":`700`,"--font-text-xs-size":`0.75rem`,"--font-text-sm-size":`0.875rem`,"--font-text-md-size":`1rem`,"--font-text-lg-size":`1.125rem`,"--font-heading-xs-size":`0.75rem`,"--font-heading-sm-size":`0.875rem`,"--font-heading-md-size":`1rem`,"--font-heading-lg-size":`1.25rem`,"--font-heading-xl-size":`1.5rem`,"--font-heading-2xl-size":`1.875rem`,"--font-heading-3xl-size":`2.25rem`,"--font-text-xs-line-height":`1.4`,"--font-text-sm-line-height":`1.4`,"--font-text-md-line-height":`1.5`,"--font-text-lg-line-height":`1.5`,"--font-heading-xs-line-height":`1.4`,"--font-heading-sm-line-height":`1.4`,"--font-heading-md-line-height":`1.4`,"--font-heading-lg-line-height":`1.3`,"--font-heading-xl-line-height":`1.25`,"--font-heading-2xl-line-height":`1.2`,"--font-heading-3xl-line-height":`1.1`,"--border-radius-xs":`2px`,"--border-radius-sm":`4px`,"--border-radius-md":`6px`,"--border-radius-lg":`8px`,"--border-radius-xl":`12px`,"--border-radius-full":`9999px`,"--border-width-regular":`1px`,"--shadow-hairline":`0 1px 2px 0 rgba(0, 0, 0, 0.05)`,"--shadow-sm":`0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)`,"--shadow-md":`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`,"--shadow-lg":`0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)`},Cy=new WeakMap;function wy(e){ay(Sy),e&&ay(e)}function Ty(e){let t=Cy.get(e);if(!t){t=new Set,Cy.set(e,t);let n=e.getHostContext();n?.theme&&iy(n.theme),wy(n?.styles?.variables),n?.styles?.css?.fonts&&oy(n.styles.css.fonts);let r=null;e.onhostcontextchanged=()=>{let n=e.getHostContext();n?.theme&&iy(n.theme),wy(n?.styles?.variables),n?.styles?.css?.fonts&&oy(n.styles.css.fonts),r&&clearTimeout(r),r=setTimeout(()=>{r=null;for(let e of t)e()},50)}}return t}function Ey(){let e=xy(),t=(0,Y.useCallback)(t=>{if(!e)return()=>{};let n=Ty(e);return n.add(t),()=>{n.delete(t)}},[e]),n=(0,Y.useCallback)(()=>e?.getHostContext()??null,[e]);return(0,Y.useSyncExternalStore)(t,n,n)}var Dy=new WeakMap;function Oy(e,t,n){let r=e.__toolDataStore;if(r)return t!==void 0&&r.data.input===null&&(r.data={...r.data,input:t}),n!==void 0&&r.data.output===null&&(r.data={...r.data,output:n,isLoading:!1}),r;let i=Dy.get(e);if(!i){let r={data:{input:t??null,inputPartial:null,output:n??null,isError:!1,isLoading:!n,isCancelled:!1,cancelReason:null},listeners:new Set};Dy.set(e,r),i=r;let a=()=>{for(let e of r.listeners)e()};e.addEventListener(`toolinput`,e=>{r.data={...r.data,input:e.arguments,inputPartial:null},a()}),e.addEventListener(`toolinputpartial`,e=>{r.data={...r.data,inputPartial:e.arguments},a()}),e.addEventListener(`toolresult`,e=>{r.data={...r.data,output:e.structuredContent??e.content,isError:e.isError??!1,isLoading:!1},a()}),e.addEventListener(`toolcancelled`,e=>{r.data={...r.data,isCancelled:!0,cancelReason:e.reason??null,isLoading:!1},a()})}return i}function ky(e,t){let n=xy(),r=(0,Y.useRef)(e),i=(0,Y.useRef)(t),a=(0,Y.useMemo)(()=>({input:e??null,inputPartial:null,output:t??null,isError:!1,isLoading:!t,isCancelled:!1,cancelReason:null}),[]),o=(0,Y.useCallback)(e=>{if(!n)return()=>{};let t=Oy(n,r.current,i.current);return t.listeners.add(e),()=>{t.listeners.delete(e)}},[n]),s=(0,Y.useCallback)(()=>n?Oy(n,r.current,i.current).data:a,[n,a]);return(0,Y.useSyncExternalStore)(o,s,s)}function Ay(){return Ey()?.deviceCapabilities??{}}function jy(){return Ey()?.displayMode??`inline`}var My={top:0,bottom:0,left:0,right:0};function Ny(){return Ey()?.safeAreaInsets??My}function Py(){return Ey()?.containerDimensions??null}var Fy=(0,Y.forwardRef)(function({children:e,style:t,...n},r){let i=Ny(),a=Py(),o=jy()===`fullscreen`?`100dvh`:void 0;return(0,X.jsx)(`div`,{ref:r,style:{paddingTop:i.top||void 0,paddingBottom:i.bottom||void 0,paddingLeft:i.left||void 0,paddingRight:i.right||void 0,height:o,maxHeight:a?.maxHeight,overflow:a?.maxHeight==null?void 0:`hidden`,width:a?.width,maxWidth:a?.maxWidth,...t},...n,children:e})});function Iy(){let e=xy(),t=Ey();return{requestDisplayMode:(0,Y.useCallback)(async t=>{if(!e){console.warn(`[useRequestDisplayMode] App not connected`);return}await e.requestDisplayMode({mode:t})},[e]),availableModes:t?.availableDisplayModes}}function Ly(){let e=xy();return(0,Y.useCallback)(async t=>{e&&await e.updateModelContext(t)},[e])}function Ry(e){let t=xy(),[n,r]=(0,Y.useState)(e),i=(0,Y.useRef)(null);return(0,Y.useEffect)(()=>{if(typeof window>`u`)return;let e=e=>{if(e.source!==window.parent)return;let t=e.data;t&&typeof t==`object`&&t.method===`sunpeak/injectState`&&t.params?.state!=null&&r(t.params.state)};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)},[]),(0,Y.useEffect)(()=>{if(i.current!=null&&t){let e=i.current;i.current=null,t.updateModelContext({structuredContent:e}).catch(()=>{})}}),[n,(0,Y.useCallback)(e=>{r(t=>{let n=typeof e==`function`?e(t):e;return i.current=n,n})},[])]}function zy(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=zy(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function By(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=zy(e))&&(r&&(r+=` `),r+=t);return r}var Vy=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Hy=(e,t)=>({classGroupId:e,validator:t}),Uy=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Wy=`-`,Gy=[],Ky=`arbitrary..`,qy=e=>{let t=Xy(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Yy(e);let n=e.split(Wy);return Jy(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Vy(i,t):t:i||Gy}return n[e]||Gy}}},Jy=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Jy(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Wy):e.slice(t).join(Wy),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Yy=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ky+r:void 0})(),Xy=e=>{let{theme:t,classGroups:n}=e;return Zy(n,t)},Zy=(e,t)=>{let n=Uy();for(let r in e){let i=e[r];Qy(i,n,r,t)}return n},Qy=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];$y(i,t,n,r)}},$y=(e,t,n,r)=>{if(typeof e==`string`){eb(e,t,n);return}if(typeof e==`function`){tb(e,t,n,r);return}nb(e,t,n,r)},eb=(e,t,n)=>{let r=e===``?t:rb(t,e);r.classGroupId=n},tb=(e,t,n,r)=>{if(ib(e)){Qy(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Hy(n,e))},nb=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Qy(o,rb(t,a),n,r)}},rb=(e,t)=>{let n=e,r=t.split(Wy),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Uy(),n.nextPart.set(t,i)),n=i}return n},ib=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ab=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},ob=`!`,sb=`:`,cb=[],lb=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),ub=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===sb){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(ob)?(c=s.slice(0,-1),l=!0):s.startsWith(ob)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return lb(t,l,c,u)};if(t){let e=t+sb,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):lb(cb,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},db=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},fb=e=>({cache:ab(e.cacheSize),parseClassName:ub(e),sortModifiers:db(e),postfixLookupClassGroupIds:pb(e),...qy(e)}),pb=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},mb=/\s+/,hb=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(mb),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+ob:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},gb=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=_b(n))&&(i&&(i+=` `),i+=r);return i},_b=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=_b(e[r]))&&(n&&(n+=` `),n+=t);return n},vb=(e,...t)=>{let n,r,i,a,o=o=>(n=fb(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=hb(e,n);return i(e,a),a};return a=o,(...e)=>a(gb(...e))},yb=[],bb=e=>{let t=t=>t[e]||yb;return t.isThemeGetter=!0,t},xb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Sb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Cb=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,wb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Eb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Db=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ob=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kb=e=>Cb.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),Ab=e=>!!e&&Number.isInteger(Number(e)),jb=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),Mb=e=>wb.test(e),Nb=()=>!0,Pb=e=>Tb.test(e)&&!Eb.test(e),Fb=()=>!1,Ib=e=>Db.test(e),Lb=e=>Ob.test(e),Rb=e=>!Q(e)&&!$(e),zb=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Bb=e=>tx(e,ax,Fb),Q=e=>xb.test(e),Vb=e=>tx(e,ox,Pb),Hb=e=>tx(e,sx,Z),Ub=e=>tx(e,lx,Nb),Wb=e=>tx(e,cx,Fb),Gb=e=>tx(e,rx,Fb),Kb=e=>tx(e,ix,Lb),qb=e=>tx(e,ux,Ib),$=e=>Sb.test(e),Jb=e=>nx(e,ox),Yb=e=>nx(e,cx),Xb=e=>nx(e,rx),Zb=e=>nx(e,ax),Qb=e=>nx(e,ix),$b=e=>nx(e,ux,!0),ex=e=>nx(e,lx,!0),tx=(e,t,n)=>{let r=xb.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},nx=(e,t,n=!1)=>{let r=Sb.exec(e);return r?r[1]?t(r[1]):n:!1},rx=e=>e===`position`||e===`percentage`,ix=e=>e===`image`||e===`url`,ax=e=>e===`length`||e===`size`||e===`bg-size`,ox=e=>e===`length`,sx=e=>e===`number`,cx=e=>e===`family-name`,lx=e=>e===`number`||e===`weight`,ux=e=>e===`shadow`,dx=vb(()=>{let e=bb(`color`),t=bb(`font`),n=bb(`text`),r=bb(`font-weight`),i=bb(`tracking`),a=bb(`leading`),o=bb(`breakpoint`),s=bb(`container`),c=bb(`spacing`),l=bb(`radius`),u=bb(`shadow`),d=bb(`inset-shadow`),f=bb(`text-shadow`),p=bb(`drop-shadow`),m=bb(`blur`),h=bb(`perspective`),g=bb(`aspect`),_=bb(`ease`),v=bb(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],ee=()=>[kb,`full`,`auto`,...w()],te=()=>[Ab,`none`,`subgrid`,$,Q],ne=()=>[`auto`,{span:[`full`,Ab,$,Q]},Ab,$,Q],re=()=>[Ab,`auto`,$,Q],ie=()=>[`auto`,`min`,`max`,`fr`,$,Q],ae=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],oe=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],se=()=>[`auto`,...w()],ce=()=>[kb,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],le=()=>[kb,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ue=()=>[kb,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],T=()=>[e,$,Q],E=()=>[...b(),Xb,Gb,{position:[$,Q]}],de=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],D=()=>[`auto`,`cover`,`contain`,Zb,Bb,{size:[$,Q]}],fe=()=>[jb,Jb,Vb],O=()=>[``,`none`,`full`,l,$,Q],k=()=>[``,Z,Jb,Vb],A=()=>[`solid`,`dashed`,`dotted`,`double`],pe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],j=()=>[Z,jb,Xb,Gb],me=()=>[``,`none`,m,$,Q],he=()=>[`none`,Z,$,Q],ge=()=>[`none`,Z,$,Q],_e=()=>[Z,$,Q],ve=()=>[kb,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Mb],breakpoint:[Mb],color:[Nb],container:[Mb],"drop-shadow":[Mb],ease:[`in`,`out`,`in-out`],font:[Rb],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Mb],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Mb],shadow:[Mb],spacing:[`px`,Z],text:[Mb],"text-shadow":[Mb],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,kb,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[zb],columns:[{columns:[Z,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{"inset-s":ee(),start:ee()}],end:[{"inset-e":ee(),end:ee()}],"inset-bs":[{"inset-bs":ee()}],"inset-be":[{"inset-be":ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Ab,`auto`,$,Q]}],basis:[{basis:[kb,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,kb,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[Ab,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ae(),`normal`]}],"justify-items":[{"justify-items":[...oe(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...oe()]}],"align-content":[{content:[`normal`,...ae()]}],"align-items":[{items:[...oe(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...oe(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...oe(),`baseline`]}],"place-self":[{"place-self":[`auto`,...oe()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:se()}],mx:[{mx:se()}],my:[{my:se()}],ms:[{ms:se()}],me:[{me:se()}],mbs:[{mbs:se()}],mbe:[{mbe:se()}],mt:[{mt:se()}],mr:[{mr:se()}],mb:[{mb:se()}],ml:[{ml:se()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ce()}],"inline-size":[{inline:[`auto`,...le()]}],"min-inline-size":[{"min-inline":[`auto`,...le()]}],"max-inline-size":[{"max-inline":[`none`,...le()]}],"block-size":[{block:[`auto`,...ue()]}],"min-block-size":[{"min-block":[`auto`,...ue()]}],"max-block-size":[{"max-block":[`none`,...ue()]}],w:[{w:[s,`screen`,...ce()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ce()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ce()]}],h:[{h:[`screen`,`lh`,...ce()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ce()]}],"max-h":[{"max-h":[`screen`,`lh`,...ce()]}],"font-size":[{text:[`base`,n,Jb,Vb]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,ex,Ub]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,jb,Q]}],"font-family":[{font:[Yb,Wb,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,Hb]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...A(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,Vb]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Ab,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:E()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:D()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Ab,$,Q],radial:[``,$,Q],conic:[Ab,$,Q]},Qb,Kb]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-bs":[{"border-bs":k()}],"border-w-be":[{"border-be":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":k()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...A(),`hidden`,`none`]}],"divide-style":[{divide:[...A(),`hidden`,`none`]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...A(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,Jb,Vb]}],"outline-color":[{outline:T()}],shadow:[{shadow:[``,`none`,u,$b,qb]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":[`none`,d,$b,qb]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:k()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Z,Vb]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":[`none`,f,$b,qb]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...pe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":pe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:E()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:me()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,$b,qb]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":[`scale-3d`],skew:[{skew:_e()}],"skew-x":[{"skew-x":_e()}],"skew-y":[{"skew-y":_e()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":[`translate-none`],zoom:[{zoom:[Ab,$,Q]}],accent:[{accent:T()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...T()]}],"stroke-w":[{stroke:[Z,Jb,Vb,Hb]}],stroke:[{stroke:[`none`,...T()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}}),fx=v();function px(e){return Object.prototype.toString.call(e)===`[object Object]`}function mx(e){return px(e)||Array.isArray(e)}function hx(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function gx(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||JSON.stringify(Object.keys(e.breakpoints||{}))!==JSON.stringify(Object.keys(t.breakpoints||{}))?!1:n.every(n=>{let r=e[n],i=t[n];return typeof r==`function`?`${r}`==`${i}`:!mx(r)||!mx(i)?r===i:gx(r,i)})}function _x(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function vx(e,t){if(e.length!==t.length)return!1;let n=_x(e),r=_x(t);return n.every((e,t)=>{let n=r[t];return gx(e,n)})}function yx(e){return typeof e==`number`}function bx(e){return typeof e==`string`}function xx(e){return typeof e==`boolean`}function Sx(e){return Object.prototype.toString.call(e)===`[object Object]`}function Cx(e){return Math.abs(e)}function wx(e){return Math.sign(e)}function Tx(e,t){return Cx(e-t)}function Ex(e,t){return e===0||t===0||Cx(e)<=Cx(t)?0:Cx(Tx(Cx(e),Cx(t))/e)}function Dx(e){return Math.round(e*100)/100}function Ox(e){return Nx(e).map(Number)}function kx(e){return e[Ax(e)]}function Ax(e){return Math.max(0,e.length-1)}function jx(e,t){return t===Ax(e)}function Mx(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function Nx(e){return Object.keys(e)}function Px(e,t){return[e,t].reduce((e,t)=>(Nx(t).forEach(n=>{let r=e[n],i=t[n];e[n]=Sx(r)&&Sx(i)?Px(r,i):i}),e),{})}function Fx(e,t){return t.MouseEvent!==void 0&&e instanceof t.MouseEvent}function Ix(e,t){let n={start:r,center:i,end:a};function r(){return 0}function i(e){return a(e)/2}function a(e){return t-e}function o(r,i){return bx(e)?n[e](r):e(t,r,i)}return{measure:o}}function Lx(){let e=[];function t(t,n,i,a={passive:!0}){let o;if(`addEventListener`in t)t.addEventListener(n,i,a),o=()=>t.removeEventListener(n,i,a);else{let e=t;e.addListener(i),o=()=>e.removeListener(i)}return e.push(o),r}function n(){e=e.filter(e=>e())}let r={add:t,clear:n};return r}function Rx(e,t,n,r){let i=Lx(),a=1e3/60,o=null,s=0,c=0;function l(){i.add(e,`visibilitychange`,()=>{e.hidden&&m()})}function u(){p(),i.clear()}function d(e){if(!c)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),c&&(c=t.requestAnimationFrame(d))}function f(){c||(c=t.requestAnimationFrame(d))}function p(){t.cancelAnimationFrame(c),o=null,s=0,c=0}function m(){o=null,s=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function zx(e,t){let n=t===`rtl`,r=e===`y`,i=r?`y`:`x`,a=r?`x`:`y`,o=!r&&n?-1:1,s=u(),c=d();function l(e){let{height:t,width:n}=e;return r?t:n}function u(){return r?`top`:n?`right`:`left`}function d(){return r?`bottom`:n?`left`:`right`}function f(e){return e*o}return{scroll:i,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function Bx(e=0,t=0){let n=Cx(e-t);function r(t){return t<e}function i(e){return e>t}function a(e){return r(e)||i(e)}function o(n){return a(n)?r(n)?e:t:n}function s(e){return n?e-n*Math.ceil((e-t)/n):e}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function Vx(e,t,n){let{constrain:r}=Bx(0,e),i=e+1,a=o(t);function o(e){return n?Cx((i+e)%i):r(e)}function s(){return a}function c(e){return a=o(e),d}function l(e){return u().set(s()+e)}function u(){return Vx(e,s(),n)}let d={get:s,set:c,add:l,clone:u};return d}function Hx(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let{cross:y,direction:b}=e,x=[`INPUT`,`SELECT`,`TEXTAREA`],S={passive:!1},C=Lx(),w=Lx(),ee=Bx(50,225).constrain(p.measure(20)),te={mouse:300,touch:400},ne={mouse:500,touch:600},re=m?43:25,ie=!1,ae=0,oe=0,se=!1,ce=!1,le=!1,ue=!1;function T(e){if(!v)return;function n(t){(xx(v)||v(e,t))&&k(t)}let r=t;C.add(r,`dragstart`,e=>e.preventDefault(),S).add(r,`touchmove`,()=>void 0,S).add(r,`touchend`,()=>void 0).add(r,`touchstart`,n).add(r,`mousedown`,n).add(r,`touchcancel`,pe).add(r,`contextmenu`,pe).add(r,`click`,j,!0)}function E(){C.clear(),w.clear()}function de(){let e=ue?n:t;w.add(e,`touchmove`,A,S).add(e,`touchend`,pe).add(e,`mousemove`,A,S).add(e,`mouseup`,pe)}function D(e){let t=e.nodeName||``;return x.includes(t)}function fe(){return(m?ne:te)[ue?`mouse`:`touch`]}function O(e,t){let n=d.add(wx(e)*-1),r=u.byDistance(e,!m).distance;return m||Cx(e)<ee?r:g&&t?r*.5:u.byIndex(n.get(),0).distance}function k(e){let t=Fx(e,r);ue=t,le=m&&t&&!e.buttons&&ie,ie=Tx(i.get(),o.get())>=2,!(t&&e.button!==0)&&(D(e.target)||(se=!0,a.pointerDown(e),l.useFriction(0).useDuration(0),i.set(o),de(),ae=a.readPoint(e),oe=a.readPoint(e,y),f.emit(`pointerDown`)))}function A(e){if(!Fx(e,r)&&e.touches.length>=2)return pe(e);let t=a.readPoint(e),n=a.readPoint(e,y),o=Tx(t,ae),c=Tx(n,oe);if(!ce&&!ue&&(!e.cancelable||(ce=o>c,!ce)))return pe(e);let u=a.pointerMove(e);o>h&&(le=!0),l.useFriction(.3).useDuration(.75),s.start(),i.add(b(u)),e.preventDefault()}function pe(e){let t=u.byDistance(0,!1).index!==d.get(),n=a.pointerUp(e)*fe(),r=O(b(n),t),i=Ex(n,r),o=re-10*i,s=_+i/50;ce=!1,se=!1,w.clear(),l.useDuration(o).useFriction(s),c.distance(r,!m),ue=!1,f.emit(`pointerUp`)}function j(e){le&&(e.stopPropagation(),e.preventDefault(),le=!1)}function me(){return se}return{init:T,destroy:E,pointerDown:me}}function Ux(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=`client${(r||e.scroll)===`x`?`X`:`Y`}`;return(Fx(n,t)?n:n.touches[0])[i]}function o(e){return n=e,r=e,a(e)}function s(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t}function c(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,c=t/o;return o&&!s&&Cx(c)>.1?c:0}return{pointerDown:o,pointerMove:s,pointerUp:c,readPoint:a}}function Wx(){function e(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}return{measure:e}}function Gx(e){function t(t){return t/100*e}return{measure:t}}function Kx(e,t,n,r,i,a,o){let s=[e].concat(r),c,l,u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}function p(i){if(!a)return;l=f(e),u=r.map(f);function o(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if(Cx(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit(`resize`);break}}}c=new ResizeObserver(e=>{(xx(a)||a(i,e))&&o(e)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))})}function m(){d=!0,c&&c.disconnect()}return{init:p,destroy:m}}function qx(e,t,n,r,i,a){let o=0,s=0,c=i,l=a,u=e.get(),d=0;function f(){let t=r.get()-e.get(),i=!c,a=0;return i?(o=0,n.set(r),e.set(r),a=t):(n.set(e),o+=t/c,o*=l,u+=o,e.add(o),a=u-d),s=wx(a),d=u,x}function p(){return Cx(r.get()-t.get())<.001}function m(){return c}function h(){return s}function g(){return o}function _(){return y(i)}function v(){return b(a)}function y(e){return c=e,x}function b(e){return l=e,x}let x={direction:h,duration:m,velocity:g,seek:f,settled:p,useBaseFriction:v,useBaseDuration:_,useFriction:b,useDuration:y};return x}function Jx(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=Bx(.1,.99),c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(i){if(!l())return;let c=Cx(e[e.reachedMin(t.get())?`min`:`max`]-t.get()),u=n.get()-t.get(),d=s.constrain(c/o);n.subtract(u*d),!i&&Cx(u)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(e){c=!e}return{shouldConstrain:l,constrain:u,toggleActive:d}}function Yx(e,t,n,r,i){let a=Bx(-t+e,0),o=d(),s=u(),c=f();function l(e,t){return Tx(e,t)<=1}function u(){let e=o[0],t=kx(o);return Bx(o.lastIndexOf(e),o.indexOf(t)+1)}function d(){return n.map((e,t)=>{let{min:r,max:i}=a,o=a.constrain(e),s=!t,c=jx(n,t);return s?i:c||l(r,o)?r:l(i,o)?i:o}).map(e=>parseFloat(e.toFixed(3)))}function f(){if(t<=e+i)return[a.max];if(r===`keepSnaps`)return o;let{min:n,max:c}=s;return o.slice(n,c)}return{snapsContained:c,scrollContainLimit:s}}function Xx(e,t,n){let r=t[0];return{limit:Bx(n?r-e:kx(t),r)}}function Zx(e,t,n,r){let i=.1,{reachedMin:a,reachedMax:o}=Bx(t.min+i,t.max+i);function s(e){return e===1?o(n.get()):e===-1?a(n.get()):!1}function c(t){if(!s(t))return;let n=t*-1*e;r.forEach(e=>e.add(n))}return{loop:c}}function Qx(e){let{max:t,length:n}=e;function r(e){let r=e-t;return n?r/-n:0}return{get:r}}function $x(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,c=d().map(t.measure),l=f(),u=p();function d(){return s(r).map(e=>kx(e)[o]-e[0][a]).map(Cx)}function f(){return r.map(e=>n[a]-e[a]).map(e=>-Cx(e))}function p(){return s(l).map(e=>e[0]).map((e,t)=>e+c[t])}return{snaps:l,snapsAligned:u}}function eS(e,t,n,r,i,a){let{groupSlides:o}=i,{min:s,max:c}=r,l=u();function u(){let r=o(a),i=!e||t===`keepSnaps`;return n.length===1?[a]:i?r:r.slice(s,c).map((e,t,n)=>{let r=!t,i=jx(n,t);return r?Mx(kx(n[0])+1):i?Mx(Ax(a)-kx(n)[0]+1,kx(n)[0]):e})}return{slideRegistry:l}}function tS(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function c(e){return e.concat().sort((e,t)=>Cx(e)-Cx(t))[0]}function l(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>Cx(e.diff)-Cx(t.diff))[0];return{index:i,distance:r}}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let a=i.filter(e=>wx(e)===r);return a.length?c(a):kx(i)-n}function d(e,n){return{index:e,distance:u(t[e]-i.get(),n)}}function f(n,r){let o=i.get()+n,{index:s,distance:c}=l(o),d=!e&&a(o);return!r||d?{index:s,distance:n}:{index:s,distance:n+u(t[s]-c,0)}}return{byDistance:f,byIndex:d,shortcut:u}}function nS(e,t,n,r,i,a,o){function s(i){let s=i.distance,c=i.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),o.emit(`select`))}function c(e,t){s(i.byDistance(e,t))}function l(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}return{distance:c,index:l}}function rS(e,t,n,r,i,a,o,s){let c={passive:!0,capture:!0},l=0;function u(u){if(!s)return;function f(t){if(new Date().getTime()-l>10)return;o.emit(`slideFocusStart`),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));yx(a)&&(i.useDuration(0),r.index(a,0),o.emit(`slideFocus`))}a.add(document,`keydown`,d,!1),t.forEach((e,t)=>{a.add(e,`focus`,e=>{(xx(s)||s(u,e))&&f(t)},c)})}function d(e){e.code===`Tab`&&(l=new Date().getTime())}return{init:u}}function iS(e){let t=e;function n(){return t}function r(e){t=o(e)}function i(e){t+=o(e)}function a(e){t-=o(e)}function o(e){return yx(e)?e:e.get()}return{get:n,set:r,add:i,subtract:a}}function aS(e,t){let n=e.scroll===`x`?o:s,r=t.style,i=null,a=!1;function o(e){return`translate3d(${e}px,0px,0px)`}function s(e){return`translate3d(0px,${e}px,0px)`}function c(t){if(a)return;let o=Dx(e.direction(t));o!==i&&(r.transform=n(o),i=o)}function l(e){a=!e}function u(){a||(r.transform=``,t.getAttribute(`style`)||t.removeAttribute(`style`))}return{clear:u,to:c,toggleActive:l}}function oS(e,t,n,r,i,a,o,s,c){let l=.5,u=Ox(i),d=Ox(i).reverse(),f=_().concat(v());function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(e){return a.map((n,i)=>({start:n-r[i]+l+e,end:n+t-l+e}))}function g(t,r,i){let a=h(r);return t.map(t=>{let r=i?0:-n,o=i?n:0,l=i?`end`:`start`,u=a[t][l];return{index:t,loopPoint:u,slideLocation:iS(-1),translate:aS(e,c[t]),target:()=>s.get()>u?r:o}})}function _(){let e=o[0];return g(m(d,e),n,!1)}function v(){return g(m(u,t-o[0]-1),-n,!0)}function y(){return f.every(({index:e})=>p(u.filter(t=>t!==e),t)<=.1)}function b(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})}function x(){f.forEach(e=>e.translate.clear())}return{canLoop:y,clear:x,loop:b,loopPoints:f}}function sS(e,t,n){let r,i=!1;function a(a){if(!n)return;function o(e){for(let n of e)if(n.type===`childList`){a.reInit(),t.emit(`slidesChanged`);break}}r=new MutationObserver(e=>{i||(xx(n)||n(a,e))&&o(e)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function cS(e,t,n,r){let i={},a=null,o=null,s,c=!1;function l(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{let n=t.indexOf(e.target);i[n]=e}),a=null,o=null,n.emit(`slidesInView`))},{root:e.parentElement,threshold:r}),t.forEach(e=>s.observe(e))}function u(){s&&s.disconnect(),c=!0}function d(e){return Nx(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(e&&a||!e&&!a)&&t.push(r),t},[])}function f(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=d(e);return e&&(a=t),e||(o=t),t}return{init:l,destroy:u,get:f}}function lS(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:c}=e,l=n[0]&&i,u=m(),d=h(),f=n.map(o),p=g();function m(){if(!l)return 0;let e=n[0];return Cx(t[s]-e[s])}function h(){if(!l)return 0;let e=a.getComputedStyle(kx(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}function g(){return n.map((e,t,n)=>{let r=!t,i=jx(n,t);return r?f[t]+u:i?f[t]+d:n[t+1][s]-e[s]}).map(Cx)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function uS(e,t,n,r,i,a,o,s,c){let{startEdge:l,endEdge:u,direction:d}=e,f=yx(n);function p(e,t){return Ox(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}function m(e){return e.length?Ox(e).reduce((n,f,p)=>{let m=kx(n)||0,h=m===0,g=f===Ax(e),_=i[l]-a[m][l],v=i[l]-a[f][u],y=!r&&h?d(o):0,b=Cx(v-(!r&&g?d(s):0)-(_+y));return p&&b>t+c&&n.push(f),g&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}function h(e){return f?p(e,n):m(e)}return{groupSlides:h}}function dS(e,t,n,r,i,a,o){let{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:g,skipSnaps:_,containScroll:v,watchResize:y,watchSlides:b,watchDrag:x,watchFocus:S}=a,C=Wx(),w=C.measure(t),ee=n.map(C.measure),te=zx(c,l),ne=te.measureSize(w),re=Gx(ne),ie=Ix(s,ne),ae=!d&&!!v,{slideSizes:oe,slideSizesWithGaps:se,startGap:ce,endGap:le}=lS(te,w,ee,n,d||!!v,i),ue=uS(te,ne,g,d,w,ee,ce,le,2),{snaps:T,snapsAligned:E}=$x(te,ie,w,ee,ue),de=-kx(T)+kx(se),{snapsContained:D,scrollContainLimit:fe}=Yx(ne,de,E,v,2),O=ae?D:E,{limit:k}=Xx(de,O,d),A=Vx(Ax(O),u,d),pe=A.clone(),j=Ox(n),me=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},he=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!s.pointerDown();g&&c.stop();let _=n.get()*f+i.get()*(1-f);r.set(_),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),g&&l.emit(`settle`),h||l.emit(`scroll`)},ge=Rx(r,i,()=>me(N),e=>he(N,e)),_e=.68,ve=O[A.get()],ye=iS(ve),be=iS(ve),xe=iS(ve),Se=iS(ve),Ce=qx(ye,xe,be,Se,f,_e),we=tS(d,O,de,k,Se),Te=nS(ge,A,pe,Ce,we,Se,o),Ee=Qx(k),De=Lx(),Oe=cS(t,n,o,h),{slideRegistry:M}=eS(ae,v,O,fe,ue,j),ke=rS(e,n,M,Te,Ce,De,o,S),N={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:w,slideRects:ee,animation:ge,axis:te,dragHandler:Hx(te,e,r,i,Se,Ux(te,i),ye,ge,Te,Ce,we,A,o,re,p,m,_,_e,x),eventStore:De,percentOfView:re,index:A,indexPrevious:pe,limit:k,location:ye,offsetLocation:xe,previousLocation:be,options:a,resizeHandler:Kx(t,o,i,n,te,y,C),scrollBody:Ce,scrollBounds:Jx(k,xe,Se,Ce,re),scrollLooper:Zx(de,k,xe,[ye,xe,be,Se]),scrollProgress:Ee,scrollSnapList:O.map(Ee.get),scrollSnaps:O,scrollTarget:we,scrollTo:Te,slideLooper:oS(te,ne,de,oe,se,T,O,xe,n),slideFocus:ke,slidesHandler:sS(t,o,b),slidesInView:Oe,slideIndexes:j,slideRegistry:M,slidesToScroll:ue,target:Se,translate:aS(te,t)};return N}function fS(){let e={},t;function n(e){t=e}function r(t){return e[t]||[]}function i(e){return r(e).forEach(n=>n(t,e)),c}function a(t,n){return e[t]=r(t).concat([n]),c}function o(t,n){return e[t]=r(t).filter(e=>e!==n),c}function s(){e={}}let c={init:n,emit:i,off:o,on:a,clear:s};return c}var pS={align:`center`,axis:`x`,container:null,slides:null,containScroll:`trimSnaps`,direction:`ltr`,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function mS(e){function t(e,t){return Px(e,t||{})}function n(n){let r=n.breakpoints||{};return t(n,Nx(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{}))}function r(t){return t.map(e=>Nx(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function hS(e){let t=[];function n(n,r){return t=r.filter(({options:t})=>e.optionsAtMedia(t).active!==!1),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})}function r(){t=t.filter(e=>e.destroy())}return{init:n,destroy:r}}function gS(e,t,n){let r=e.ownerDocument,i=r.defaultView,a=mS(i),o=hS(a),s=Lx(),c=fS(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:p,emit:m}=c,h=ne,g=!1,_,v=l(pS,gS.globalOptions),y=l(v),b=[],x,S,C;function w(){let{container:t,slides:n}=y;S=(bx(t)?e.querySelector(t):t)||e.children[0];let r=bx(n)?S.querySelectorAll(n):n;C=[].slice.call(r||S.children)}function ee(t){let n=dS(e,S,C,r,i,t,c);return t.loop&&!n.slideLooper.canLoop()?ee(Object.assign({},t,{loop:!1})):n}function te(e,t){g||(v=l(v,e),y=u(v),b=t||b,w(),_=ee(y),d([v,...b.map(({options:e})=>e)]).forEach(e=>s.add(e,`change`,ne)),y.active&&(_.translate.to(_.location.get()),_.animation.init(),_.slidesInView.init(),_.slideFocus.init(me),_.eventHandler.init(me),_.resizeHandler.init(me),_.slidesHandler.init(me),_.options.loop&&_.slideLooper.loop(),S.offsetParent&&C.length&&_.dragHandler.init(me),x=o.init(me,b)))}function ne(e,t){let n=E();re(),te(l({startIndex:n},e),t),c.emit(`reInit`)}function re(){_.dragHandler.destroy(),_.eventStore.clear(),_.translate.clear(),_.slideLooper.clear(),_.resizeHandler.destroy(),_.slidesHandler.destroy(),_.slidesInView.destroy(),_.animation.destroy(),o.destroy(),s.clear()}function ie(){g||(g=!0,s.clear(),re(),c.emit(`destroy`),c.clear())}function ae(e,t,n){!y.active||g||(_.scrollBody.useBaseFriction().useDuration(t===!0?0:y.duration),_.scrollTo.index(e,n||0))}function oe(e){ae(_.index.add(1).get(),e,-1)}function se(e){ae(_.index.add(-1).get(),e,1)}function ce(){return _.index.add(1).get()!==E()}function le(){return _.index.add(-1).get()!==E()}function ue(){return _.scrollSnapList}function T(){return _.scrollProgress.get(_.offsetLocation.get())}function E(){return _.index.get()}function de(){return _.indexPrevious.get()}function D(){return _.slidesInView.get()}function fe(){return _.slidesInView.get(!1)}function O(){return x}function k(){return _}function A(){return e}function pe(){return S}function j(){return C}let me={canScrollNext:ce,canScrollPrev:le,containerNode:pe,internalEngine:k,destroy:ie,off:p,on:f,emit:m,plugins:O,previousScrollSnap:de,reInit:h,rootNode:A,scrollNext:oe,scrollPrev:se,scrollProgress:T,scrollSnapList:ue,scrollTo:ae,selectedScrollSnap:E,slideNodes:j,slidesInView:D,slidesNotInView:fe};return te(t,n),setTimeout(()=>c.emit(`init`),0),me}gS.globalOptions=void 0;function _S(e={},t=[]){let n=(0,Y.useRef)(e),r=(0,Y.useRef)(t),[i,a]=(0,Y.useState)(),[o,s]=(0,Y.useState)(),c=(0,Y.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,Y.useEffect)(()=>{gx(n.current,e)||(n.current=e,c())},[e,c]),(0,Y.useEffect)(()=>{vx(r.current,t)||(r.current=t,c())},[t,c]),(0,Y.useEffect)(()=>{if(hx()&&o){gS.globalOptions=_S.globalOptions;let e=gS(o,n.current,r.current);return a(e),()=>e.destroy()}else a(void 0)},[o,a]),[s,i]}_S.globalOptions=void 0;function vS(){return vS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vS.apply(this,arguments)}var yS=.996,bS=function(e,t){return t===void 0&&(t=yS),e*t/(1-t)};function xS(e){return e[e.length-1]}function SS(e){return e.reduce(function(e,t){return e+t})/e.length}var CS=function(e,t,n){return Math.min(Math.max(t,e),n)};function wS(e,t){if(e.length!==t.length)throw Error(`vectors must be same length`);return e.map(function(e,n){return e+t[n]})}function TS(e){return Math.max.apply(Math,e.map(Math.abs))}function ES(e){return Object.freeze(e),Object.values(e).forEach(function(e){typeof e==`object`&&e&&!Object.isFrozen(e)&&ES(e)}),e}function DS(){var e={};function t(t,r){return e[t]=(e[t]||[]).concat(r),function(){return n(t,r)}}function n(t,n){e[t]=(e[t]||[]).filter(function(e){return e!==n})}function r(t,n){t in e&&e[t].forEach(function(e){return e(n)})}return ES({on:t,off:n,dispatch:r})}function OS(e){var t=[],n=function(n){return n.addEventListener(`wheel`,e,{passive:!1}),t.push(n),function(){return r(n)}},r=function(n){n.removeEventListener(`wheel`,e),t=t.filter(function(e){return e!==n})};return ES({observe:n,unobserve:r,disconnect:function(){t.forEach(r)}})}var kS=[1,16*1.125,typeof window<`u`&&window.innerHeight||800];function AS(e){var t=e.deltaX*kS[e.deltaMode],n=e.deltaY*kS[e.deltaMode],r=(e.deltaZ||0)*kS[e.deltaMode];return{timeStamp:e.timeStamp,axisDelta:[t,n,r]}}var jS=[-1,-1,-1];function MS(e,t){if(!t)return e;var n=t===!0?jS:t.map(function(e){return e?-1:1});return vS({},e,{axisDelta:e.axisDelta.map(function(e,t){return e*n[t]})})}var NS=700,PS=function(e){return vS({},e,{axisDelta:e.axisDelta.map(function(e){return CS(e,-NS,NS)})})},FS=!1,IS=.6,LS=.96,RS=2,zS=5,BS=ES({preventWheelAction:!0,reverseSign:[!0,!0,!1]}),VS=400;function HS(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:VS}}function US(e){e===void 0&&(e={});var t=DS(),n=t.on,r=t.off,i=t.dispatch,a=BS,o=HS(),s,c=!1,l,u=function(e){Array.isArray(e)?e.forEach(function(e){return m(e)}):m(e)},d=function(e){return e===void 0&&(e={}),Object.values(e).some(function(e){return e==null})?(FS&&console.error(`updateOptions ignored! undefined & null options not allowed`),a):a=ES(vS({},BS,a,e))},f=function(e){var t=vS({event:s,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:o.isMomentum,axisDelta:[0,0,0],axisVelocity:o.axisVelocity,axisMovement:o.axisMovement,get axisMovementProjection(){return wS(t.axisMovement,t.axisVelocity.map(function(e){return bS(e)}))}},e);i(`wheel`,vS({},t,{previous:l})),l=t},p=function(e,t){var n=a.preventWheelAction,r=t[0],i=t[1],o=t[2];if(typeof n==`boolean`)return n;switch(n){case`x`:return Math.abs(r)>=e;case`y`:return Math.abs(i)>=e;case`z`:return Math.abs(o)>=e;default:return FS&&console.warn(`unsupported preventWheelAction value: `+n,`warn`),!1}},m=function(e){var t=PS(MS(AS(e),a.reverseSign)),n=t.axisDelta,r=t.timeStamp,i=TS(n);if(e.preventDefault&&p(i,n)&&e.preventDefault(),o.isStarted?o.isMomentum&&i>Math.max(2,o.lastAbsDelta*2)&&(w(!0),S()):S(),i===0&&Object.is&&Object.is(e.deltaX,-0)){c=!0;return}s=e,o.axisMovement=wS(o.axisMovement,n),o.lastAbsDelta=i,o.scrollPointsToMerge.push({axisDelta:n,timeStamp:r}),h(),f({axisDelta:n,isStart:!o.isStartPublished}),o.isStartPublished=!0,C()},h=function(){o.scrollPointsToMerge.length===RS?(o.scrollPoints.unshift({axisDeltaSum:o.scrollPointsToMerge.map(function(e){return e.axisDelta}).reduce(wS),timeStamp:SS(o.scrollPointsToMerge.map(function(e){return e.timeStamp}))}),_(),o.scrollPointsToMerge.length=0,o.scrollPoints.length=1,o.isMomentum||b()):o.isStartPublished||g()},g=function(){o.axisVelocity=xS(o.scrollPointsToMerge).axisDelta.map(function(e){return e/o.willEndTimeout})},_=function(){var e=o.scrollPoints,t=e[0],n=e[1];if(!(!n||!t)){var r=t.timeStamp-n.timeStamp;if(r<=0){FS&&console.warn(`invalid deltaTime`);return}var i=t.axisDeltaSum.map(function(e){return e/r}),a=i.map(function(e,t){return e/(o.axisVelocity[t]||1)});o.axisVelocity=i,o.accelerationFactors.push(a),v(r)}},v=function(e){var t=Math.ceil(e/10)*10*1.2;o.isMomentum||(t=Math.max(100,t*2)),o.willEndTimeout=Math.min(1e3,Math.round(t))},y=function(e){return e===0?!0:e<=LS&&e>=IS},b=function(){if(o.accelerationFactors.length>=zS){if(c&&(c=!1,TS(o.axisVelocity)>=.2)){x();return}var e=o.accelerationFactors.slice(zS*-1);e.every(function(e){var t=!!e.reduce(function(e,t){return e&&e<1&&e===t?1:0}),n=e.filter(y).length===e.length;return t||n})&&x(),o.accelerationFactors=e}},x=function(){o.isMomentum=!0},S=function(){o=HS(),o.isStarted=!0,o.startTime=Date.now(),l=void 0,c=!1},C=function(){var e;return function(){clearTimeout(e),e=setTimeout(w,o.willEndTimeout)}}(),w=function(e){e===void 0&&(e=!1),o.isStarted&&(o.isMomentum&&e?f({isEnding:!0,isMomentumCancel:!0}):f({isEnding:!0}),o.isMomentum=!1,o.isStarted=!1)},ee=OS(u),te=ee.observe,ne=ee.unobserve,re=ee.disconnect;return d(e),ES({on:n,off:r,observe:te,unobserve:ne,disconnect:re,feedWheel:u,updateOptions:d})}var WS={active:!0,breakpoints:{},wheelDraggingClass:`is-wheel-dragging`,forceWheelAxis:void 0,target:void 0};KS.globalOptions=void 0;var GS=!1;function KS(e){e===void 0&&(e={});var t,n=function(){};function r(r,i){var a=i.mergeOptions,o=i.optionsAtMedia;t=o(a(a(WS,KS.globalOptions),e));var s=r.internalEngine(),c=t.target??r.containerNode().parentNode,l=t.forceWheelAxis??s.options.axis,u=US({preventWheelAction:l,reverseSign:[!0,!0,!1]});function d(){_=(l===`x`?s.containerRect.width:s.containerRect.height)/2}var f=u.observe(c),p=u.on(`wheel`,re),m=!1,h,g=0,_=0,v=!1;d(),r.on(`resize`,d);function y(e){try{h=new MouseEvent(`mousedown`,e.event),ee(h)}catch{return GS&&console.warn(`Legacy browser requires events-polyfill (https://github.com/xiel/embla-carousel-wheel-gestures#legacy-browsers)`),n()}m=!0,g=0,x(),t.wheelDraggingClass&&c.classList.add(t.wheelDraggingClass)}function b(e){m=!1,ee(w(`mouseup`,e)),S(),t.wheelDraggingClass&&c.classList.remove(t.wheelDraggingClass)}function x(){document.documentElement.addEventListener(`mousemove`,C,!0),document.documentElement.addEventListener(`mouseup`,C,!0),document.documentElement.addEventListener(`mousedown`,C,!0)}function S(){document.documentElement.removeEventListener(`mousemove`,C,!0),document.documentElement.removeEventListener(`mouseup`,C,!0),document.documentElement.removeEventListener(`mousedown`,C,!0)}function C(e){m&&e.isTrusted&&e.stopImmediatePropagation()}function w(e,t){var n,r;if(l===s.options.axis){var i=t.axisMovement;n=i[0],r=i[1]}else{var a=t.axisMovement;r=a[0],n=a[1]}if(te(t).isAtBoundary){var o=.25+Math.min(g/_,1)*.5,c=g*(n>0?-1:1)*o;n+=c,r+=c}if(!s.options.skipSnaps&&!s.options.dragFree){var u=s.containerRect.width,d=s.containerRect.height;n=n<0?Math.max(n,-u):Math.min(n,u),r=r<0?Math.max(r,-d):Math.min(r,d)}return new MouseEvent(e,{clientX:h.clientX+n,clientY:h.clientY+r,screenX:h.screenX+n,screenY:h.screenY+r,movementX:n,movementY:r,button:0,bubbles:!0,cancelable:!0,composed:!0})}function ee(e){r.containerNode().dispatchEvent(e)}function te(e){var t=e.axisDelta,n=t[0],i=t[1],a=r.scrollProgress(),o=a<1,s=a>0,c=l===`x`?n:i;return{isAtBoundary:c<0&&!o||c>0&&!s,primaryAxisDelta:c}}function ne(e){var t=te(e),n=t.isAtBoundary,r=t.primaryAxisDelta;if(n&&!e.isMomentum){if(g+=Math.abs(r),g>_)return v=!0,b(e),!0}else g=0;return!1}function re(e){var t=e.axisDelta,n=t[0],r=t[1],i=l===`x`?n:r,a=l===`x`?r:n,o=e.isMomentum&&e.previous&&!e.previous.isMomentum,s=e.isEnding&&!e.isMomentum||o;Math.abs(i)>Math.abs(a)&&!m&&!e.isMomentum&&!v&&y(e),v&&e.isEnding&&(v=!1),m&&(ne(e)||(s?b(e):ee(w(`mousemove`,e))))}n=function(){f(),p(),r.off(`resize`,d),S()}}return{name:`wheelGestures`,options:e,init:r,destroy:function(){return n()}}}var qS=e=>(0,X.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 24 24`,fill:`currentColor`,...e,children:(0,X.jsx)(`path`,{fillRule:`evenodd`,d:`M5.293 12.707a1 1 0 0 1 0-1.414l5-5a1 1 0 1 1 1.414 1.414L8.414 11H18a1 1 0 1 1 0 2H8.414l3.293 3.293a1 1 0 0 1-1.414 1.414l-5-5Z`,clipRule:`evenodd`})}),JS=e=>(0,X.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 24 24`,fill:`currentColor`,...e,children:(0,X.jsx)(`path`,{fillRule:`evenodd`,d:`M18.707 12.707a1 1 0 0 0 0-1.414l-5-5a1 1 0 1 0-1.414 1.414L15.586 11H6a1 1 0 1 0 0 2h9.586l-3.293 3.293a1 1 0 0 0 1.414 1.414l5-5Z`,clipRule:`evenodd`})});function YS(...e){return dx(By(e))}var XS={xs:`h-6 px-2 text-xs gap-1`,sm:`h-7 px-3 text-sm gap-1.5`,md:`h-8 px-3.5 text-sm gap-2`,lg:`h-10 px-4 text-base gap-2`},ZS={solid:{primary:`bg-[var(--color-background-inverse)] text-[var(--color-text-inverse)] hover:opacity-85 active:opacity-75`,secondary:`bg-[var(--color-background-tertiary)] text-[var(--color-text-primary)] hover:opacity-80 active:opacity-70`,warning:`bg-[var(--color-text-warning)] text-white hover:opacity-85 active:opacity-75`,danger:`bg-[var(--color-text-danger)] text-white hover:opacity-85 active:opacity-75`},soft:{primary:`bg-[var(--color-background-info)] text-[var(--color-text-info)] hover:opacity-75 active:opacity-65`,secondary:`bg-[var(--color-background-secondary)] text-[var(--color-text-primary)] hover:opacity-80 active:opacity-70`,warning:`bg-[var(--color-background-warning)] text-[var(--color-text-warning)] hover:opacity-75 active:opacity-65`,danger:`bg-[var(--color-background-danger)] text-[var(--color-text-danger)] hover:opacity-75 active:opacity-65`},ghost:{primary:`bg-transparent text-[var(--color-text-info)] hover:bg-[var(--color-background-secondary)] active:bg-[var(--color-background-tertiary)]`,secondary:`bg-transparent text-[var(--color-text-secondary)] hover:bg-[var(--color-background-secondary)] active:bg-[var(--color-background-tertiary)]`,warning:`bg-transparent text-[var(--color-text-warning)] hover:bg-[var(--color-background-warning)] active:bg-[var(--color-background-tertiary)]`,danger:`bg-transparent text-[var(--color-text-danger)] hover:bg-[var(--color-background-danger)] active:bg-[var(--color-background-tertiary)]`},outline:{primary:`bg-transparent border border-[var(--color-border-primary)] text-[var(--color-text-info)] hover:bg-[var(--color-background-secondary)]`,secondary:`bg-transparent border border-[var(--color-border-primary)] text-[var(--color-text-secondary)] hover:bg-[var(--color-background-secondary)]`,warning:`bg-transparent border border-[var(--color-border-warning)] text-[var(--color-text-warning)] hover:bg-[var(--color-background-warning)]`,danger:`bg-transparent border border-[var(--color-border-danger)] text-[var(--color-text-danger)] hover:bg-[var(--color-background-danger)]`}},QS=Y.forwardRef(({variant:e=`solid`,color:t=`primary`,size:n=`md`,className:r,children:i,...a},o)=>(0,X.jsx)(`button`,{ref:o,type:`button`,className:YS(`inline-flex items-center justify-center font-medium transition-colors rounded-full cursor-pointer select-none flex-shrink-0 whitespace-nowrap`,`disabled:opacity-50 disabled:cursor-not-allowed`,XS[n],ZS[e][t],r),...a,children:i}));QS.displayName=`Button`;function $S({children:e,gap:t=16,showArrows:n=!0,showEdgeGradients:r=!0,cardWidth:i,displayMode:a=`inline`,className:o}){let[s,c]=Y.useState(0),[l,u]=_S({align:`start`,dragFree:!0,containScroll:`trimSnaps`},[KS()]),[d,f]=Y.useState(!1),[p,m]=Y.useState(!1),h=Y.useCallback(()=>{u&&u.scrollPrev()},[u]),g=Y.useCallback(()=>{u&&u.scrollNext()},[u]),_=Y.useRef(null),v=Y.useCallback(()=>{if(!u)return;f(u.canScrollPrev()),m(u.canScrollNext());let e=u.selectedScrollSnap();_.current!==e&&(_.current=e,c(e))},[u]);Y.useEffect(()=>{if(u)return f(u.canScrollPrev()),m(u.canScrollNext()),_.current=u.selectedScrollSnap(),u.on(`select`,v),u.on(`reInit`,v),()=>{u.off(`select`,v),u.off(`reInit`,v)}},[u,v]),Y.useEffect(()=>{u&&s!==u.selectedScrollSnap()&&_.current!==s&&(_.current=s,u.scrollTo(s))},[u,s]);let y=Y.Children.toArray(e),b=(()=>{if(typeof i==`number`)return i;if(i&&typeof i==`object`){if(a===`fullscreen`&&i.fullscreen)return i.fullscreen;if(i.inline)return i.inline}return 220})();return(0,X.jsxs)(`div`,{className:YS(`relative w-full`,o),children:[r&&d&&(0,X.jsx)(`div`,{className:`pointer-events-none absolute left-0 top-0 z-10 h-full w-12 bg-gradient-to-r from-surface to-transparent`,"aria-hidden":`true`}),r&&p&&(0,X.jsx)(`div`,{className:`pointer-events-none absolute right-0 top-0 z-10 h-full w-12 bg-gradient-to-l from-surface to-transparent`,"aria-hidden":`true`}),(0,X.jsx)(`div`,{ref:l,className:`overflow-hidden w-full`,children:(0,X.jsx)(`div`,{className:`flex touch-pan-y`,style:{gap:`${t}px`,marginLeft:`-${t}px`,paddingLeft:`${t}px`},children:y.map((e,t)=>(0,X.jsx)(`div`,{className:`flex-none`,style:{minWidth:`${b}px`,maxWidth:`${b}px`},children:e},t))})}),n&&d&&(0,X.jsx)(QS,{variant:`soft`,color:`secondary`,onClick:h,className:`absolute left-2 top-1/2 -translate-y-1/2 z-20 h-8 w-8 min-w-8 rounded-full p-0 shadow-md`,"aria-label":`Previous slide`,children:(0,X.jsx)(qS,{className:`h-4 w-4`})}),n&&p&&(0,X.jsx)(QS,{variant:`soft`,color:`secondary`,onClick:g,className:`absolute right-2 top-1/2 -translate-y-1/2 z-20 h-8 w-8 min-w-8 rounded-full p-0 shadow-md`,"aria-label":`Next slide`,children:(0,X.jsx)(JS,{className:`h-4 w-4`})})]})}var eC=Y.forwardRef(({album:e,onSelect:t,className:n,buttonSize:r=`md`},i)=>(0,X.jsxs)(QS,{ref:i,variant:`ghost`,color:`secondary`,size:r,className:YS(`rounded-xl flex-shrink-0 w-full h-full p-0 text-left flex flex-col [&:hover]:bg-transparent hover:bg-transparent cursor-pointer`,n),onClick:()=>t?.(e),children:[(0,X.jsx)(`div`,{className:`aspect-[4/3] w-full overflow-hidden rounded-xl flex-shrink-0`,children:(0,X.jsx)(`img`,{src:e.cover,alt:e.title,className:`w-full h-full object-cover`,loading:`lazy`})}),(0,X.jsxs)(`div`,{className:`flex-shrink-0 w-full p-2`,children:[(0,X.jsx)(`div`,{className:`text-base font-normal text-[var(--color-text-primary)]`,children:e.title}),(0,X.jsxs)(`div`,{className:`text-sm text-[var(--color-text-secondary)]`,children:[e.photos.length,` `,e.photos.length===1?`photo`:`photos`]})]})]}));eC.displayName=`AlbumCard`;var tC=Y.forwardRef(({album:e,selectedIndex:t,onSelect:n,className:r},i)=>(0,X.jsx)(`div`,{ref:i,className:YS(`h-full w-full overflow-auto flex flex-col items-center justify-center p-5 space-y-5`,r),children:e.photos.map((e,r)=>(0,X.jsx)(QS,{variant:`ghost`,color:`secondary`,onClick:()=>n?.(r),className:YS(`block w-full h-auto p-[1px] pointer-events-auto rounded-[10px] border transition-all`,r===t?`border-[var(--color-ring-primary)] shadow-md`:`border-transparent hover:border-[var(--color-ring-primary)]/30 opacity-60 hover:opacity-100`),children:(0,X.jsx)(`div`,{className:`aspect-[5/3] rounded-lg overflow-hidden w-full`,children:(0,X.jsx)(`img`,{src:e.url,alt:e.title||`Photo ${r+1}`,className:`h-full w-full object-cover`,loading:`lazy`})})},e.id))}));tC.displayName=`FilmStrip`;function nC({album:e,className:t}){let[n,r]=Y.useState(0),[i,a]=Y.useState(0),o=Y.useRef(null);Y.useEffect(()=>{r(0)},[e?.id]),Y.useEffect(()=>{let e=o.current;if(!e)return;let t=()=>{a(e.getBoundingClientRect().width)};t();let n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]);let s=e?.photos?.[n],c=i>0&&i<768;return(0,X.jsxs)(`div`,{ref:o,className:YS(`h-full flex w-full bg-[var(--color-background-primary)]`,c?`flex-col`:`flex-row`,t),children:[c&&(0,X.jsxs)(`div`,{className:`border-b border-[var(--color-border-tertiary)] bg-[var(--color-background-primary)]/95 backdrop-blur-sm px-4 py-3`,children:[(0,X.jsx)(`h2`,{className:`text-base font-semibold text-[var(--color-text-primary)]`,children:e.title}),(0,X.jsxs)(`p`,{className:`text-sm text-[var(--color-text-secondary)]`,children:[n+1,` / `,e.photos.length]})]}),!c&&(0,X.jsx)(`div`,{className:`w-40 flex-shrink-0`,children:(0,X.jsx)(tC,{album:e,selectedIndex:n,onSelect:r})}),(0,X.jsx)(`div`,{className:`flex-1 flex items-center justify-center p-4 md:p-10`,children:s?(0,X.jsx)(`img`,{src:s.url,alt:s.title||e.title,className:`rounded-3xl shadow-sm border border-[var(--color-ring-primary)]/10 max-w-full max-h-full object-contain`}):null})]})}function rC({className:e}){let{output:t,inputPartial:n,isLoading:r,isError:i,isCancelled:a,cancelReason:o}=ky(),[s,c]=Ry({selectedAlbumId:null}),l=jy(),{touch:u=!1}=Ay(),{requestDisplayMode:d,availableModes:f}=Iy(),p=Ly(),m=t?.albums??[],h=m.find(e=>e.id===s.selectedAlbumId),g=f?.includes(`fullscreen`)??!1,_=Y.useCallback(e=>{c(t=>({...t,selectedAlbumId:e.id})),g&&d(`fullscreen`),p({structuredContent:{selectedAlbum:{id:e.id,title:e.title}}})},[c,d,p,g]);if(r){let e=n?.category||n?.search;return(0,X.jsxs)(`div`,{className:`flex items-center justify-center gap-2 p-8 text-[var(--color-text-secondary)]`,children:[(0,X.jsx)(`div`,{className:`w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin`}),(0,X.jsx)(`span`,{children:e?`Loading ${e} albums…`:`Loading albums…`})]})}return i?(0,X.jsx)(`div`,{className:`flex items-center justify-center p-8 text-[var(--color-text-secondary)]`,children:`Failed to load albums`}):a?(0,X.jsx)(`div`,{className:`flex items-center justify-center p-8 text-[var(--color-text-secondary)]`,children:o??`Request was cancelled`}):l===`fullscreen`&&h?(0,X.jsx)(nC,{album:h}):m.length===0?(0,X.jsx)(`div`,{className:`flex items-center justify-center p-8 text-[var(--color-text-secondary)]`,children:`No albums found`}):(0,X.jsx)(`div`,{className:e,children:(0,X.jsx)($S,{gap:20,showArrows:!1,showEdgeGradients:!1,cardWidth:272,displayMode:l,children:m.map(e=>(0,X.jsx)(eC,{album:e,onSelect:_,buttonSize:u?`lg`:`md`},e.id))})})}function iC(){return(0,X.jsx)(Fy,{className:jy()===`fullscreen`?``:`p-4`,children:(0,X.jsx)(rC,{})})}var aC=document.getElementById(`root`);aC&&(0,fx.createRoot)(aC).render((0,X.jsx)(by,{appInfo:{name:`sunpeak-app`,version:`0.1.0`},children:(0,X.jsx)(iC,{})}))})();
|
|
130
130
|
</script>
|
|
131
131
|
</body>
|
|
132
132
|
</html>
|