@fungi.computer/prints 0.20.20 → 0.20.22
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/dist/assets/arrow-right-OARGllYn.js +1 -0
- package/dist/assets/data-list-BKnOm38M.js +1 -0
- package/dist/assets/dialog-BZ61MAZB.js +1 -0
- package/dist/assets/{images-CQ3EhUoY.js → images-DQ4iT8XG.js} +1 -1
- package/dist/assets/index-BNKONPP9.js +85 -0
- package/dist/assets/library-dialogs-CMyC51Mx.js +2 -0
- package/dist/assets/library-folders-dialog-BbcwRIZr.js +1 -0
- package/dist/assets/{library-rail-DPiYJWxN.js → library-rail-CwaMUE8m.js} +2 -2
- package/dist/assets/{print-download-button-ebYCmtQ8.js → print-download-button-Cb8rlgOl.js} +5 -5
- package/dist/assets/print-info-drawer-C3j6eKaQ.js +2 -0
- package/dist/assets/print-viewer-Cu6ATcQJ.js +2 -0
- package/dist/assets/prints-activity-tray-CuwXtIBN.js +1 -0
- package/dist/assets/prints-folder-dialog-CY6IWH42.js +1 -0
- package/dist/assets/prompt-character-controls-CPUNyX8u.js +1 -0
- package/dist/assets/prompt-styles-dialog-Bn9o2wRf.js +1 -0
- package/dist/assets/reference-lightbox-scBjj8tk.js +1 -0
- package/dist/assets/rotate-ccw-DH8lePtF.js +1 -0
- package/dist/assets/upload-queue-hWBGHaYu.js +1 -0
- package/dist/index.html +1 -22
- package/package.json +3 -3
- package/dist/assets/audio-waveform-DcMy9xl2.js +0 -1
- package/dist/assets/audio-waveform-view-Bt66rIpF.js +0 -1
- package/dist/assets/button-oE2Hrd5D.js +0 -83
- package/dist/assets/computer-Drn9XugY.js +0 -1
- package/dist/assets/dialog-BXLOuKaF.js +0 -1
- package/dist/assets/dist-ujdia29J.js +0 -1
- package/dist/assets/dropdown-menu-Dz4r7a9R.js +0 -1
- package/dist/assets/ellipsis-DlNHenkt.js +0 -1
- package/dist/assets/generation-quote-BstUB0PG.js +0 -2
- package/dist/assets/heart-BquDo4lf.js +0 -1
- package/dist/assets/index-DSTUqbdP.js +0 -2
- package/dist/assets/keycap-D2RkH2IS.js +0 -1
- package/dist/assets/library-view-C71Cv37D.js +0 -1
- package/dist/assets/log-event-IU820pK9.js +0 -1
- package/dist/assets/modules-C4mfDnjH.js +0 -1
- package/dist/assets/print-info-drawer-LxcR4Myk.js +0 -2
- package/dist/assets/print-viewer-B1_RBET9.js +0 -2
- package/dist/assets/prints-folder-dialog-DCmQaMUu.js +0 -1
- package/dist/assets/query-DKNLqHPu.js +0 -1
- package/dist/assets/rolldown-runtime-hePW80VL.js +0 -1
- package/dist/assets/status-DNJRO5m5.js +0 -1
- package/dist/assets/textarea-DUwcxEMN.js +0 -1
- package/dist/assets/upload-queue-BHNUzgYV.js +0 -1
- package/dist/assets/useMutation-DAlc59rA.js +0 -1
- package/dist/assets/useTriggerFocusGuards-Bddw7Qdn.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{F as t,I as n,N as r,Vn as i,W as a,Z as o,at as s,it as c,nt as l,st as u,tt as d,w as f}from"./button-oE2Hrd5D.js";import{Ct as p,Lt as m,Mt as h,Tt as g,bt as _,ct as ee,jt as te,ot as v,zt as ne}from"./dist-ujdia29J.js";import{c as y,d as re,f as ie,l as ae,m as b,o as oe,p as se,s as ce,u as le}from"./query-DKNLqHPu.js";var x=e(i(),1),S=class extends Error{code;details;constructor(e,t,n){super(t),this.code=e,this.details=n,this.name=`WhistleActionError`}},ue=class extends Error{constructor(){super(`Whistle runtime is closed`),this.name=`WhistleClosedError`}};function de(){let e=!1,t=z,n=[],r=[],i=!1,a=[],o=new Set,s=()=>{for(let e of o)e()};return Object.freeze({close:()=>{e||(e=!0,n=[],a=[],r=[],t=z,s(),o.clear())},contribute:t=>{if(T(t),e)throw new ue;E(t,n),D(t,n);let r=Symbol(`whistle-contribution`);w(t)||(n=[...n,{contribution:O(t),generation:r}],i=!0,s());let a=!0;return De(o=>{if(!a||e)return;let c={...t,commands:o};T(c);let l=n.findIndex(e=>e.generation===r),u=n.filter(e=>e.generation!==r);E(c,u),D(c,u);let d=O(c);if(w(c)){if(l<0)return;n=u}else n=l<0?[...n,{contribution:d,generation:r}]:n.map(e=>e.generation===r?{contribution:d,generation:r}:e);i=!0,s()},()=>{a&&(a=!1,n.find(e=>e.generation===r)!==void 0&&(n=n.filter(e=>e.generation!==r),i=!0,s()))})},execute:async(t,r)=>{if(t.namespace.trim().length===0||t.id.trim().length===0)return{status:`invalid`};if(e)return{status:`closed`};let i=_e(t,n);if(i===void 0)return{status:`missing`};let o;try{let e=V(i);if(e.status===`unavailable`)return e;let n=a.at(-1)?.presenter;r.interaction===void 0&&n!==void 0&&fe.has(r.origin)&&(o=n({commandId:C(t.namespace,t.id),title:i.title}));let s={...r,signal:r.signal??new AbortController().signal};o!==void 0&&(s.interaction=o.interaction,s.signal=AbortSignal.any([s.signal,o.interaction.signal]));let c=await i.handler(s);return o?.settle({status:`handled`}),c===void 0?{status:`handled`}:{status:`handled`,result:c}}catch(e){let t=ke(e instanceof Error?e:Error(`Command handler threw a non-Error value`));return o?.settle(o.interaction.signal.aborted?{status:`cancelled`}:{status:`failed`,message:t.message}),{status:`failed`,error:t}}},present:t=>{let n={presenter:t};return e||(a=[...a,n]),()=>{a=a.filter(e=>e!==n)}},snapshot:()=>{if(e)return z;let a=n.flatMap(e=>e.contribution.commands.map(V));return(i||a.some((e,t)=>!Oe(e,r[t])))&&(t=Ae(n,a),r=a,i=!1),t},subscribe:t=>e?()=>void 0:(o.add(t),()=>{o.delete(t)})})}var fe=new Set([`browser`,`keyboard`,`menu`,`palette`,`slash`,`terminal`]),pe=16,me=32,he=64,ge=256;function C(e,t){return m.parse(`${e}:${t}`)}function _e(e,t){for(let n of t)if(n.contribution.namespace===e.namespace){for(let t of n.contribution.commands)if(t.id===e.id)return t}}function w(e){return e.commands.length===0}function T(e){L(e.sourceId,`source ID`),L(e.namespace,`namespace`),e.scope!==void 0&&L(e.scope,`scope`);for(let t of e.commands)Se(t)}function E(e,t){t.find(t=>t.contribution.namespace===e.namespace&&t.contribution.sourceId!==e.sourceId)!==void 0&&R(`Namespace is already owned by another source`);let n=new Set,r=new Set;for(let i of t){let t=i.contribution.scope===e.scope;for(let e of i.contribution.commands)if(n.add(C(i.contribution.namespace,e.id)),t)for(let t of e.projections?.slash?.aliases??[])r.add(t)}for(let t of e.commands){let i=C(e.namespace,t.id);n.has(i)&&R(`Canonical command ID is already registered`),n.add(i);for(let e of t.projections?.slash?.aliases??[])r.has(e)&&R(`Slash alias is already registered`),r.add(e)}}function D(e,t){t.length>=he&&R(`Live contribution capacity exceeded`),t.reduce((e,t)=>e+t.contribution.commands.length,0)+e.commands.length>ge&&R(`Live command capacity exceeded`)}function O(e){let t={sourceId:e.sourceId,namespace:e.namespace,commands:e.commands.map(ve)};return e.scope===void 0?t:{...t,scope:e.scope}}function ve(e){let t={id:e.id,title:e.title,category:e.category,handler:e.handler};return e.description!==void 0&&(t.description=e.description),e.action!==void 0&&(t.action=ye(e.action)),e.availability!==void 0&&(t.availability=e.availability),e.projections!==void 0&&(t.projections=M(e.projections)),t}function ye(e){let t={};return e.inputSchema!==void 0&&(t.inputSchema=k(e.inputSchema)),e.outputSchema!==void 0&&(t.outputSchema=k(e.outputSchema)),e.presentation!==void 0&&(t.presentation=j(e.presentation)),Object.freeze(t)}function k(e){return Object.freeze(Object.fromEntries(Object.entries(e).map(([e,t])=>[e,A(t)])))}function A(e){return Array.isArray(e)?Object.freeze(e.map(A)):e!==null&&e instanceof Object?Object.freeze(Object.fromEntries(Object.entries(e).map(([e,t])=>[e,A(t)]))):e}function j(e){switch(e.type){case`action`:return Object.freeze({type:`action`});case`custom`:return Object.freeze({type:`custom`,data:k(e.data)});case`choice`:return Object.freeze({type:`choice`,options:Object.freeze(e.options.map(e=>Object.freeze({...e,value:A(e.value)})))});case`form`:return Object.freeze({...e});case`confirmation`:return Object.freeze({...e})}}function M(e){let t={};return e.bindings!==void 0&&(t.bindings=N(e.bindings)),e.agent!==void 0&&(t.agent=P(e.agent)),e.help!==void 0&&(t.help=F(e.help.order)),e.menu!==void 0&&(t.menu=F(e.menu.order)),e.palette!==void 0&&(t.palette=F(e.palette.order)),e.slash!==void 0&&(t.slash=be(e.slash)),t}function N(e){let t={values:[...e.values]};return e.order!==void 0&&(t.order=e.order),t}function P(e){let t={};return e.keybind!==void 0&&(t.keybind=e.keybind),e.order!==void 0&&(t.order=e.order),t}function F(e){let t={};return e!==void 0&&(t.order=e),t}function be(e){let t={aliases:[...e.aliases]};return e.order!==void 0&&(t.order=e.order),e.consumesDraft!==void 0&&(t.consumesDraft=e.consumesDraft),e.arguments!==void 0&&(t.arguments=xe(e.arguments)),t}function xe(e){let t={hint:e.hint};return e.words!==void 0&&(t.words=Object.freeze(e.words.map(e=>Object.freeze({...e,arguments:k(e.arguments)})))),e.text!==void 0&&(t.text=Object.freeze({...e.text,arguments:k(e.text.arguments)})),Object.freeze(t)}function Se(e){L(e.id,`command ID`,!0),L(e.title,`title`),L(e.category,`category`),Ce(e.action),we(e.projections)}function Ce(e){if(e?.presentation!==void 0)switch(e.presentation.type){case`action`:case`custom`:return;case`choice`:for(let t of e.presentation.options)L(t.label,`choice label`),t.description!==void 0&&L(t.description,`choice description`);return;case`form`:e.presentation.submitLabel!==void 0&&L(e.presentation.submitLabel,`submit label`);return;case`confirmation`:L(e.presentation.message,`confirmation message`),e.presentation.confirmLabel!==void 0&&L(e.presentation.confirmLabel,`confirmation label`),e.presentation.cancelLabel!==void 0&&L(e.presentation.cancelLabel,`cancellation label`)}}function we(e){if(e!==void 0){for(let t of[e.bindings,e.palette,e.slash,e.help,e.menu,e.agent])t!==void 0&&Ee(t.order);if(e.bindings!==void 0&&I(e.bindings.values,`binding`),e.slash!==void 0){I(e.slash.aliases,`slash alias`);for(let t of e.slash.aliases)/\s/u.test(t)&&R(`slash alias must not contain whitespace`);Te(e.slash.arguments)}e.agent?.keybind!==void 0&&L(e.agent.keybind,`agent keybind`)}}function Te(e){if(e===void 0)return;L(e.hint,`argument hint`),e.words===void 0&&e.text===void 0&&R(`slash arguments need words or text`);let t=new Set;for(let n of e.words??[])L(n.word,`argument word`),/\s/u.test(n.word)&&R(`argument word must not contain whitespace`),t.has(n.word)&&R(`argument word is repeated`),t.add(n.word),n.description!==void 0&&L(n.description,`argument word description`);t.size>me&&R(`argument word count exceeds 32`),e.text!==void 0&&(L(e.text.field,`argument text field`),e.text.requestIdField!==void 0&&L(e.text.requestIdField,`request id field`))}function I(e,t){e.length>pe&&R(`${t} count exceeds 16`);for(let n of e)L(n,t)}function L(e,t,n=!1){e.trim().length===0&&R(`${t} must not be blank`),n&&e.includes(`:`)&&R(`${t} must not contain a colon`)}function Ee(e){e!==void 0&&!Number.isSafeInteger(e)&&R(`order must be a safe integer`)}function De(e=()=>void 0,t=()=>void 0){return Object.freeze({update:e,dispose:t})}function R(e){throw Error(e)}var z=Object.freeze({bindings:Object.freeze([]),palette:Object.freeze([]),slash:Object.freeze([]),help:Object.freeze([]),menu:Object.freeze([]),agent:Object.freeze([])}),B=Object.freeze({status:`available`});function V(e){let t=e.availability?.()??B;return t.status===`available`?B:Object.freeze({status:`unavailable`,reason:t.reason})}function Oe(e,t){return e.status===`available`?t?.status===`available`:t?.status===`unavailable`&&e.reason===t.reason}function ke(e){if(e instanceof S){let t={code:e.code,message:e.message};return Object.freeze(e.details===void 0?t:{...t,details:A(e.details)})}return Object.freeze({code:`command_failed`,message:e.message})}function Ae(e,t){let n=[],r=[],i=[],a=[],o=[],s=[],c=0;for(let l of e){let e=l.contribution;for(let l of e.commands){let u=l.projections,d=t[c++]??B;if(u?.bindings!==void 0)for(let t of u.bindings.values)n.push({...K(e,l,u.bindings.order,d),binding:t});if(u?.palette!==void 0&&r.push({...K(e,l,u.palette.order,d)}),u?.slash!==void 0)for(let t of u.slash.aliases){let n={...K(e,l,u.slash.order,d),alias:t};u.slash.consumesDraft!==void 0&&(n={...n,consumesDraft:u.slash.consumesDraft}),u.slash.arguments!==void 0&&(n={...n,arguments:u.slash.arguments}),i.push(n)}u?.help!==void 0&&a.push({...K(e,l,u.help.order,d)}),u?.menu!==void 0&&o.push({...K(e,l,u.menu.order,d)}),u?.agent!==void 0&&s.push(Pe(e,l,u.agent,d))}}return je(n),Me(i),W(r),W(a),W(o),W(s),Object.freeze({bindings:G(n),palette:G(r),slash:G(i),help:G(a),menu:G(o),agent:G(s)})}var H=new TextEncoder;function U(e,t){let n=H.encode(e),r=H.encode(t),i=Math.min(n.length,r.length);for(let e=0;e<i;e+=1){let t=n[e]??0,i=r[e]??0;if(t!==i)return t<i?-1:1}return n.length<r.length?-1:+(n.length>r.length)}function W(e){e.sort((e,t)=>e.order-t.order||U(e.commandId,t.commandId))}function je(e){e.sort((e,t)=>e.order-t.order||U(e.commandId,t.commandId)||U(e.binding,t.binding))}function Me(e){e.sort((e,t)=>e.order-t.order||U(e.commandId,t.commandId)||U(e.alias,t.alias))}function G(e){return Object.freeze(e.map(e=>Object.freeze(e)))}function K(e,t,n,r){let i=Ne(e,t,n,r);return e.scope===void 0?i:{...i,scope:e.scope}}function Ne(e,t,n,r){let i={commandId:C(e.namespace,t.id),command:Object.freeze({namespace:e.namespace,id:t.id}),sourceId:e.sourceId,title:t.title,category:t.category,order:n??0,availability:r},a=t.description===void 0?i:{...i,description:t.description};return t.action===void 0?a:{...a,action:t.action}}function Pe(e,t,n,r){let i=K(e,t,n.order,r),a=i.action===void 0?i:{...i,action:Fe(i.action)};return n.keybind===void 0?a:{...a,keybind:n.keybind}}function Fe(e){let t={};return e.inputSchema!==void 0&&(t.inputSchema=e.inputSchema),e.outputSchema!==void 0&&(t.outputSchema=e.outputSchema),Object.freeze(t)}var q=new WeakMap;function Ie(e,t){let n=!1,r=[];for(let i of t){let{availability:t,handler:a,...o}=i,s=a,c=t===void 0?o:{...o,availability:t()},l=q.get(e)??new Map;q.set(e,l);let u=l.get(i.id),d=()=>e.register(c,async({arguments:e,origin:t,signal:n})=>{let r=await s(e===void 0?{origin:t,signal:n}:{arguments:e,origin:t,signal:n});return r===void 0?void 0:ne(r)}),f=(u?u.then(d):d()).then(e=>{n?e():r.push(e)},e=>{console.warn(`App command ${i.id} was not registered`,e)});l.set(i.id,f),f.finally(()=>{l.get(i.id)===f&&l.delete(i.id)})}return()=>{if(!n){n=!0;for(let e of r.splice(0))e()}}}function J(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}var Le=class extends ee{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,v.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!g(e,n)});!o&&!s||(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(J(e,n).forEach(e=>{e.destroy()}),J(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){let n=new Set;return t.map((r,i)=>{let a=e[i];return r.defaultedQueryOptions.notifyOnChangeProps?a:r.observer.trackResult(a,e=>{n.has(e)||(n.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=p(this.#a,t(e))),this.#a}return e}#f(){return!this.#r?.combine||this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new b(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=this.#t.slice(),this.#t[n]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#f(),t=this.#a,n=e?t:this.#d(this.#u(this.#t,this.#l),this.#r?.combine);(e||t!==n)&&v.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}};function Re({queries:e,...t},n){let r=te(n),i=se(),a=ie(),o=t.subscribed!==!1,s=x.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:o?`optimistic`:void 0,t}),[e,r,i,o]);s.forEach(e=>{oe(e);let t=r.getQueryCache().get(e.queryHash);ae(e,a,t)}),re(a);let[c]=x.useState(()=>new Le(r,s,t)),[l,u,d]=c.getOptimisticResult(s,t.combine),f=!i&&o;x.useSyncExternalStore(x.useCallback(e=>f?c.subscribe(v.batchCalls(e)):_,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),x.useEffect(()=>{c.setQueries(s,t)},[s,t,c]);let p=l.some((e,t)=>y(s[t],e))?l.flatMap((e,t)=>{let n=s[t];if(n&&y(n,e)){let e=new b(r,n);return ce(n,e,a)}return[]}):[];if(p.length>0)throw Promise.all(p);let m=l.find((e,t)=>{let n=s[t];return n&&le({result:e,errorResetBoundary:a,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(m)throw m.error;return u(d())}function ze(e){let t=(0,x.useCallback)(t=>e?.subscribe(t)??(()=>void 0),[e]),n=(0,x.useCallback)(()=>e?.get(),[e]);return(0,x.useSyncExternalStore)(t,n,n)}function Y(e){return ze(e?.context)??null}function Be(e){return Y(e)?.computerId??null}function Ve(e,t,n,r){let i=(0,x.useRef)(t);i.current=t;let a=(0,x.useRef)(n);a.current=n;let o=(0,x.useRef)(r);o.current=r;let s=JSON.stringify(t),c=n!==void 0;(0,x.useEffect)(()=>{e&&e.ui.reportStatus(i.current).catch(e=>{o.current?o.current(e):console.error(`Window status report failed`,e)})},[e,s]),(0,x.useEffect)(()=>{if(!(!e||!c))return e.ui.onStatusAction(e=>a.current?.(e)??!1)},[e,c]),(0,x.useEffect)(()=>()=>{e?.ui.reportStatus([]).catch(e=>{console.error(`Window status report failed`,e)})},[e])}function He(e,{sourceId:t,namespace:n},r){let i=(0,x.useMemo)(()=>de(),[]),a=(0,x.useMemo)(r,[r]);return(0,x.useEffect)(()=>{let e=i.contribute({sourceId:t,namespace:n,commands:a});return()=>{e.dispose()}},[i,t,n,a]),(0,x.useEffect)(()=>e?Ie(e.commands,a):void 0,[e,a]),i}function Ue(e,{canGoBack:t,canGoForward:n,title:r,crumbs:i,primary:a,menu:o,status:s,onBack:c,onForward:l,onCrumb:u,onAction:d}){let f=(0,x.useRef)(c),p=(0,x.useRef)(l),m=(0,x.useRef)(u),h=(0,x.useRef)(d);(0,x.useEffect)(()=>{f.current=c,p.current=l,m.current=u,h.current=d},[c,l,u,d]),(0,x.useEffect)(()=>{if(!e)return;let t=e.onBack(()=>f.current()),n=e.onForward(()=>p.current()),r=e.onActivate(e=>{if(e.kind===`action`){let t=h.current;return t?.(e.actionId),t!==void 0}let t=m.current;return e.siblingId===void 0?t?.(e.crumbId):t?.(e.crumbId,e.siblingId),t!==void 0});return()=>{t(),n(),r(),X(e,{canGoBack:!1,canGoForward:!1})}},[e]);let g=JSON.stringify([i,a,o,s]),_=(0,x.useRef)({crumbs:i,primary:a,menu:o,status:s});(0,x.useEffect)(()=>{_.current={crumbs:i,primary:a,menu:o,status:s}},[i,a,o,s]),(0,x.useEffect)(()=>{if(!e)return;let i={canGoBack:t,canGoForward:n};r!==void 0&&(i={...i,title:r});let a=_.current;a.crumbs!==void 0&&(i={...i,crumbs:a.crumbs}),a.primary!==void 0&&(i={...i,primary:a.primary}),a.menu!==void 0&&(i={...i,menu:a.menu}),a.status!==void 0&&(i={...i,status:a.status}),X(e,i)},[e,t,n,r,g])}function X(e,t){e.publish(t).catch(e=>{e instanceof h&&e.code===`DISCONNECTED`||console.warn(`App navigation report failed`,e)})}var Z=4096,We=255,Ge=new TextEncoder,Q=t.pipe(a(s(1)),a(c(Z)),a(u(e=>!e.includes(`\0`)&&e.split(`/`).every(e=>e!==``&&e!==`.`&&e!==`..`&&Ge.encode(e).byteLength<=We),{description:`a relative folder inside the library`}))),$=o(Q);function Ke(e,t){return t===void 0?e:`${e}/${t}`}function qe(e,t){let n=`${e}/`;if(!t.startsWith(n))return;let r=t.slice(n.length).split(`/`).slice(0,-1).join(`/`);return $(r)?r:void 0}function Je(e){if(e===void 0)return[];let t=e.split(`/`);return t.map((e,n)=>({name:e,folder:t.slice(0,n+1).join(`/`)}))}n({queue:f(t.pipe(a(c(Z)))).pipe(a(s(1))),offset:r.pipe(a(l()),a(d(0)))});function Ye(e){return!e.selectable&&e.atFolderRoot&&!e.loading&&!e.failed}export{Ke as a,Be as c,Re as d,S as f,$ as i,Ue as l,qe as n,He as o,Ye as r,Y as s,Je as t,Ve as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,Cn as t,D as n,Dn as r,En as i,F as a,H as o,I as s,J as c,M as l,N as u,O as d,Q as f,T as p,Tn as m,V as h,W as g,_n as _,at as ee,ct as v,et as te,fn as ne,gn as y,it as b,k as x,lt as S,nt as re,ot as ie,rt as C,sn as w,st as ae,tt as T,w as E,wn as D,yn as O}from"./button-oE2Hrd5D.js";import{Ft as oe,It as se,Mt as k,a as A,i as j,n as ce,o as le,r as M,s as ue,u as N}from"./dist-ujdia29J.js";var de=[`InferenceUpstreamError`,`AiInternalError`,`TypeError`,`AbortError`,`TimeoutError`,`Error`],fe=[`credits_exhausted`,`content_refused`,`invalid_input`,`rate_limited`,`provider_unavailable`,`timeout`,`spending_limit`],pe=[`invalid_request`,`unauthorized`,`unavailable`,`rate_limited`,`too_large`,`unreachable`,`invalid_response`],P={minimum:0,maximum:99999},F={minimum:0,maximum:599},me=x(de),he=h([s({category:me,code:l(n.check(f(P))),reason:S(x(fe)),detail:S(a.check(b(160)))}),s({category:d(`result_download`),status:n.check(f(F))}),s({category:d(`media_service`),failure:x(pe)})]);m([t({category:w(de),code:O().int().min(P.minimum).max(P.maximum).nullable(),reason:w(fe).optional(),detail:D().max(160).optional()}),t({category:_(`result_download`),status:O().int().min(F.minimum).max(F.maximum)}),t({category:_(`media_service`),failure:w(pe)})]);function ge(e){return/\.mp3$/iu.test(e)}var _e=Object.freeze({width:4,height:3}),ve=`prints-generation-notices`;function ye(e){ce.error(e,{id:`prints-playback-error`,toasterId:ve})}var I=function(e,t,n){if(t!=null){if(typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Object expected.`);var r,i;if(n){if(!Symbol.asyncDispose)throw TypeError(`Symbol.asyncDispose is not defined.`);r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw TypeError(`Symbol.dispose is not defined.`);r=t[Symbol.dispose],n&&(i=r)}if(typeof r!=`function`)throw TypeError(`Object not disposable.`);i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t},L=(function(e){return function(t){function n(n){t.error=t.hasError?new e(n,t.error,`An error was suppressed during disposal.`):n,t.hasError=!0}var r,i=0;function a(){for(;r=t.stack.pop();)try{if(!r.async&&i===1)return i=0,t.stack.push(r),Promise.resolve().then(a);if(r.dispose){var e=r.dispose.call(r.value);if(r.async)return i|=2,Promise.resolve(e).then(a,function(e){return n(e),a()})}else i|=1}catch(e){n(e)}if(i===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return a()}})(typeof SuppressedError==`function`?SuppressedError:function(e,t,n){var r=Error(n);return r.name=`SuppressedError`,r.error=e,r.suppressed=t,r}),R=class extends k{stage;provider;constructor(e){super(e.message,{code:e.code,retryable:e.retryable,...e.need!==void 0&&{need:e.need}}),this.stage=e.stage??null,this.provider=e.provider}},z=e=>a.pipe(g(ee(1)),g(b(e))),B=s({requestId:z(256),computerId:z(256)}),V=u.pipe(g(re()),g(ae(Number.isSafeInteger,{message:`Expected a safe integer`}))),H=V.pipe(g(te(0))),U=V.pipe(g(T(0))),W=u.pipe(g(e()),g(T(0))),be=u.pipe(g(e()),g(te(0))),G=x([`first-frame`,`last-frame`,`reference`]),K=x([`480p`,`720p`,`768p`,`1080p`,`4k`]),q=x([`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`,`9:21`]),xe=s({computerId:v(z(256)),path:z(4096),role:v(G)}),Se=s({path:z(4096),role:G}),Ce=s({computerId:z(256),path:z(4096)}),we=s({defaultHeight:H,defaultSteps:l(U),defaultWidth:H,dimensions:x([`none`,`own`]),guidance:l(s({default:W,max:be,min:W})).pipe(S),maxDimension:l(H),maxDimensionDocumented:p,maxReferences:U,maxSteps:l(H),referenceDimension:l(H),referenceField:l(z(256)),referenceFormat:x([`png`,`webp`]),steps:x([`steps`,`num_steps`,`fixed`]),transport:x([`json`,`multipart`])}),Te=s({minSeconds:H,maxSeconds:H,defaultSeconds:H,durations:E(H),provider:x([`seedance`,`veo`,`minimax`]),formats:E(s({resolution:K,aspectRatio:q,width:H,height:H})),defaultResolution:K,defaultAspectRatio:q,supportsAudio:p,defaultGenerateAudio:l(p),referenceRoles:E(G),maxReferenceImages:U,audioReferences:l(s({max:H,totalSeconds:H})),referenceResolutions:E(K),prices:E(s({resolution:K,silentMilliunitsPerSecond:H,audioMilliunitsPerSecond:H}))}),Ee=s({provider:d(`elevenlabs`),mode:x([`speech`,`music`]),voices:E(s({id:z(64),label:z(128)})),defaultVoiceId:l(z(64)),seconds:l(s({min:H,max:H,default:H})),milliunitsPerUnit:H}),De=s({operation:x([`remove_background`,`upscale`]),source:s({formats:E(x([`png`,`jpeg`,`webp`])),maxBytes:H,maxPixels:H}),defaultMegapixels:l(H),milliunits:l(H),sizes:E(s({megapixels:H,milliunits:H}))}),Oe=s({id:z(256),input:we,kind:x([`image`,`video`,`audio`]),label:z(512),maxPromptLength:H,tier:x([`draft`,`balanced`,`premium`,`max`]),outputFormats:E(x([`png`,`jpeg`,`webp`])).pipe(g(b(3))),sizes:l(E(a.pipe(g(ie(/^\d+x\d+$/u))))),video:l(Te),audio:l(Ee),transform:l(De),billingUnit:x([`image`,`video_second`,`audio_second`,`audio_character_block`])}),ke=E(Oe),Ae=s({[Symbol.dispose]:v(o),computerId:z(256),models:ke,canGenerate:p}),je=s({model:z(256),prompt:z(32e3),width:v(H.pipe(g(C(5040)))),height:v(H.pipe(g(C(5040)))),voiceId:v(z(64)),steps:v(H),durationSeconds:v(H),targetMegapixels:v(H),resolution:v(K),aspectRatio:v(q),generateAudio:v(p),references:v(E(xe).pipe(g(b(16))))});s({model:z(256),prompt:z(2048),resolution:v(K),aspectRatio:v(q),durationSeconds:v(H.pipe(g(T(4)),g(C(15)))),generateAudio:v(p),references:v(E(Se).pipe(g(b(4))))});var Me=[`admission`,`generation-authorization`,`settings`,`estimate`,`billing`,`operation`,`provider`,`normalization`,`artifact`,`destination-authorization`,`destination-write`],Ne=s({destination:s({path:z(4096)}),settings:o}),J=s({[Symbol.dispose]:v(o),bytes:H,costMilliunits:U,destination:Ce,format:x([`png`,`jpeg`,`gif`,`webp`,`mp4`,`mp3`]),height:v(H),model:z(256),width:v(H)});s({...J.fields,format:d(`mp4`)});var Pe=s({message:z(512),stage:v(x(Me)),provider:v(he),code:x([`CANCELLED`,`CAPABILITY_DENIED`,`CAPABILITY_REVOKED`,`DAILY_LIMIT_REACHED`,`DISCONNECTED`,`HOST_FAILURE`,`IDENTITY`,`INSUFFICIENT_CREDIT`,`INVALID_ARGUMENT`,`MEDIA_PROVIDER_FAILURE`,`MEDIA_PROVIDER_FAILURE_UNCHARGED`,`PROTOCOL`,`SAFETY_FILTER_REFUSED`,`SETUP_REQUIRED`,`TIMEOUT`]),retryable:p,need:v(oe)}),Y=h([s({[Symbol.dispose]:v(o),kind:d(`succeeded`),result:J}),s({[Symbol.dispose]:v(o),kind:d(`failed`),failure:Pe})]),Fe=j({reference:A(M(i().transform(e=>c(B)(e)))),generate:A(M(i().transform(e=>{let t=c(Y,{onExcessProperty:`error`})(e);return t.kind===`succeeded`?{kind:t.kind,result:{bytes:t.result.bytes,costMilliunits:t.result.costMilliunits,destination:t.result.destination,format:t.result.format,...t.result.height!==void 0&&{height:t.result.height},model:t.result.model,...t.result.width!==void 0&&{width:t.result.width}}}:{kind:t.kind,failure:t.failure}})))}),Ie=ue(`media.generation`,5,y(()=>j({describe:A(M(i().transform(e=>{let{computerId:t,canGenerate:n,models:r}=c(Ae,{onExcessProperty:`error`})(e);return{computerId:t,canGenerate:n,models:r}}))),quote:A(M(t({costMilliunits:O().int().nonnegative().max(2**53-1)}))).optional(),createAttempt:A(Fe),restoreAttempt:A(Fe),cancelAttempt:le}))),X=m([t({shared:_(!1)}),t({shared:_(!0),url:r(),showPrompt:ne()})]);t({requestId:D().min(1).max(256),showPrompt:ne()});var Le=ue(`media.share`,1,y(()=>j({status:A(M(X)),share:A(M(X)),stop:A(M(X))})));function Z(e,t){try{return c(e,{onExcessProperty:`error`})(t)}catch(e){throw new k(`The Media capability returned malformed data`,{cause:e,code:`PROTOCOL`,retryable:!1})}}function Q(e){return e instanceof k?e:new k(`The Media capability failed`,{cause:e,code:`HOST_FAILURE`,retryable:!0})}function $(e){if(e?.aborted)throw new k(`Media generation was cancelled`,{code:`CANCELLED`,retryable:!1})}function Re(e){let t;try{t=c(Ne,{onExcessProperty:`error`})(e)}catch(e){throw new k(`Media generation input is invalid`,{cause:e,code:`INVALID_ARGUMENT`,retryable:!1})}let n;try{n=Be(c(je,{onExcessProperty:`error`})(t.settings))}catch(e){throw new k(`Media generation settings are invalid`,{cause:e,code:`INVALID_ARGUMENT`,retryable:!1})}let r={path:t.destination.path.trim()};if(r.path.length===0)throw new k(`Media generation destination is invalid`,{code:`INVALID_ARGUMENT`,retryable:!1});return Object.freeze({destination:Object.freeze(r),settings:n})}function ze(e){try{return Be(c(je,{onExcessProperty:`error`})(e))}catch(e){throw new k(`Media generation settings are invalid`,{cause:e,code:`INVALID_ARGUMENT`,retryable:!1})}}function Be(e){let t=(e,t)=>{let n=e.trim();if(n.length===0)throw Error(`${t} must not be blank`);return n},n={model:t(e.model,`model`),prompt:t(e.prompt,`prompt`)};return e.width!==void 0&&(n.width=e.width),e.height!==void 0&&(n.height=e.height),e.voiceId!==void 0&&(n.voiceId=t(e.voiceId,`voiceId`)),e.steps!==void 0&&(n.steps=e.steps),e.durationSeconds!==void 0&&(n.durationSeconds=e.durationSeconds),e.targetMegapixels!==void 0&&(n.targetMegapixels=e.targetMegapixels),e.resolution!==void 0&&(n.resolution=e.resolution),e.aspectRatio!==void 0&&(n.aspectRatio=e.aspectRatio),e.generateAudio!==void 0&&(n.generateAudio=e.generateAudio),e.references!==void 0&&(n.references=Object.freeze(e.references.map(e=>Object.freeze({...e,path:t(e.path,`reference`)})))),Object.freeze(n)}function Ve(e){let t=Z(ke,e),n=new Set;for(let e of t){if(n.has(e.id))throw new k(`The Media capability repeated a model`,{code:`PROTOCOL`,retryable:!1});n.add(e.id)}return Object.freeze(t.map(e=>Object.freeze(e)))}function He(e,t,n,r){let i=Z(J,e);if(i.model!==t.settings.model||i.destination.computerId!==n||i.destination.path!==t.destination.path||i.width!==t.settings.width||i.height!==t.settings.height||!r&&t.settings.width===void 0!=(i.format===`mp3`))throw new k(`The Media capability returned an unrelated result`,{code:`PROTOCOL`,retryable:!1});return Object.freeze({bytes:i.bytes,costMilliunits:i.costMilliunits,destination:Object.freeze({...i.destination}),format:i.format,...i.height!==void 0&&{height:i.height},model:i.model,...i.width!==void 0&&{width:i.width}})}async function Ue(e){try{let t=e.require(Ie);{let e={stack:[],error:void 0,hasError:!1};try{let n=Z(Ae,I(e,N(await t.describe()),!1).value),r=n.computerId.trim();if(r.length===0)throw new k(`The Media capability returned no Computer`,{code:`PROTOCOL`,retryable:!1});let i=Ve(n.models),a=t.quote?.bind(t),c=async e=>{let n=N(e),a;try{{let t={stack:[],error:void 0,hasError:!1};try{let n=I(t,N(await e.reference()),!1),i=Z(s({...B.fields,[Symbol.dispose]:v(o)}),n.value);if(a={requestId:i.requestId,computerId:i.computerId},a.computerId!==r)throw new k(`Media attempt belongs to another Computer`,{code:`IDENTITY`,retryable:!1})}catch(e){t.error=e,t.hasError=!0}finally{L(t)}}}catch(e){throw n[Symbol.dispose](),Q(e)}let c=!1;return{reference:Object.freeze(a),async generate(n,o={}){if(c)throw new k(`Media generation attempt is closed`,{code:`CAPABILITY_DENIED`,retryable:!1});$(o.signal);let s=Re(n),l=o.signal,u,d,f=()=>(d??=t.cancelAttempt(a),d);try{let t=e.generate(s),n=l===void 0?await t:await Promise.race([t,new Promise((e,t)=>{u=()=>{f().then(()=>{t(new k(`Media generation was cancelled`,{code:`CANCELLED`,retryable:!1}))},t)},l.addEventListener(`abort`,u,{once:!0}),l.aborted&&u()})]);l?.aborted&&(await f(),$(l)),$(l);{let e={stack:[],error:void 0,hasError:!1};try{let t=Z(Y,I(e,N(n),!1).value);if(t.kind===`failed`)throw new R(t.failure);return He(t.result,s,r,i.find(e=>e.id===s.settings.model)?.transform!=null)}catch(t){e.error=t,e.hasError=!0}finally{L(e)}}}catch(e){throw l?.aborted&&(await f(),$(l)),Q(e)}finally{u!==void 0&&l?.removeEventListener(`abort`,u)}},[Symbol.dispose](){c||(c=!0,n[Symbol.dispose]())}}};return Object.freeze({computerId:r,canGenerate:n.canGenerate,models:i,async quote(e){let t={stack:[],error:void 0,hasError:!1};try{let n=ze(e);if(a===void 0)return null;let r=I(t,N(await a(n)),!1);return Object.freeze({costMilliunits:r.value.costMilliunits})}catch(e){t.error=e,t.hasError=!0}finally{L(t)}},async createAttempt(){return c(await t.createAttempt())},async restoreAttempt(e){let n=Z(B,e);if(n.computerId!==r)throw new k(`Select the original Computer to retry this generation`,{code:`IDENTITY`,retryable:!1});let i=await c(await t.restoreAttempt(n));if(i.reference.requestId!==n.requestId)throw i[Symbol.dispose](),new k(`Media restore changed the request identity`,{code:`PROTOCOL`,retryable:!1});return i}})}catch(t){e.error=t,e.hasError=!0}finally{L(e)}}}catch(e){throw Q(e)}}function We(e,t,n={}){console.error(`Prints operation failed`,JSON.stringify({operation:e,...n.requestId!==void 0&&{requestId:n.requestId},errorKind:t instanceof Error?`error`:`non-error`,errorName:t instanceof Error?t.name:null,stage:t instanceof R?t.stage:null,provider:t instanceof R?t.provider:void 0}),se(t))}export{B as a,Re as c,ye as d,Ne as i,_e as l,R as n,Le as o,Ie as r,Ue as s,We as t,ge as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-hePW80VL.js";var t=typeof window<`u`,n=t?window:null,r=t?document:null,i={OBJECT:0,ATTRIBUTE:1,CSS:2,TRANSFORM:3,CSS_VAR:4},a={NUMBER:0,UNIT:1,COLOR:2,COMPLEX:3},o={NONE:0,AUTO:1,FORCE:2},s={replace:0,none:1,blend:2},c=Symbol(),l=Symbol(),u=Symbol(),d=Symbol(),f=Symbol(),p=1e-11,m=0xe8d4a51000,h=1e3,g=[],_=(()=>{let e=new Map;return e.set(`x`,`translateX`),e.set(`y`,`translateY`),e.set(`z`,`translateZ`),e})(),v=[`perspective`,`translateX`,`translateY`,`translateZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`skew`,`skewX`,`skewY`],y=v.reduce((e,t)=>({...e,[t]:t+`(`}),{}),b=()=>{},x=e=>e,S=/\)\s*[-.\d]/,C=/(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i,w=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,T=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,E=/hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i,D=/hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,O=/[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi,ee=/^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i,te=/([a-z])([A-Z])/g,ne=/var\(\s*(--[\w-]+)(?:\s*,\s*([^)]+))?\s*\)/,re={id:null,keyframes:null,playbackEase:null,playbackRate:1,frameRate:240,loop:0,reversed:!1,alternate:!1,autoplay:!0,persist:!1,duration:h,delay:0,loopDelay:0,ease:`out(2)`,composition:s.replace,modifier:x,onBegin:b,onBeforeUpdate:b,onUpdate:b,onLoop:b,onPause:b,onComplete:b,onRender:b},ie={current:null,root:r},k={defaults:re,precision:4,timeScale:1,tickThreshold:200,editor:null},A={version:`4.5.0`,engine:null};t&&(n.AnimeJS||=[],n.AnimeJS.push(A));var j=e=>e.replace(te,`$1-$2`).toLowerCase(),M=(e,t)=>e.indexOf(t)===0,N=Date.now,P=Array.isArray,ae=e=>e&&e.constructor===Object,oe=e=>typeof e==`number`&&!isNaN(e),se=e=>typeof e==`string`,ce=e=>typeof e==`function`,F=e=>e===void 0,le=e=>F(e)||e===null,ue=e=>t&&e instanceof SVGElement,de=e=>C.test(e),fe=e=>M(e,`rgb`),pe=e=>M(e,`hsl`),me=e=>de(e)||(fe(e)||pe(e))&&(e[e.length-1]===`)`||!S.test(e)),he=e=>!k.defaults.hasOwnProperty(e),ge=[`opacity`,`rotate`,`overflow`,`color`],_e=(e,t)=>{if(ge.includes(t))return!1;if(e.getAttribute(t)||t in e){if(t===`scale`){let t=e.parentNode;return t&&t.tagName===`filter`}return!0}},ve=Math.pow,I=Math.sqrt,ye=Math.sin,be=Math.cos,xe=Math.abs,L=Math.exp,Se=Math.ceil,Ce=Math.floor,R=Math.asin,z=Math.PI,we=Math.round,B=(e,t,n)=>e<t?t:e>n?n:e,V=(e,t)=>{if(t<0)return e;if(!t)return we(e);let n=10**t;return we(e*n)/n},Te=(e,t,n)=>n===1?t:n===0?e:e+(t-e)*n,Ee=e=>e===1/0?m:e===-1/0?-m:e,De=e=>e<=1e-11?p:Ee(V(e,11)),H=e=>P(e)?[...e]:e,Oe=(e,t)=>{let n={...e};for(let r in t){let i=e[r];n[r]=F(i)?t[r]:i}return n},U=(e,t,n,r=`_prev`,i=`_next`)=>{let a=e._head,o=i;for(n&&(a=e._tail,o=r);a;){let e=a[o];t(a),a=e}},ke=(e,t,n=`_prev`,r=`_next`)=>{let i=t[n],a=t[r];i?i[r]=a:e._head=a,a?a[n]=i:e._tail=i,t[n]=null,t[r]=null},Ae=(e,t,n,r=`_prev`,i=`_next`)=>{let a=e._tail;for(;a&&n&&n(a,t);)a=a[r];let o=a?a[i]:e._head;a?a[i]=t:e._head=t,o?o[r]=t:e._tail=t,t[r]=a,t[i]=o},je=(e,t,n)=>{let r=e.style.transform;if(r){let i=e[d],a=0,o=r.length,s;for(;a<o;){for(;a<o&&r.charCodeAt(a)===32;)a++;if(a>=o)break;let e=a;for(;a<o&&r.charCodeAt(a)!==40;)a++;if(a>=o)break;let t=r.substring(e,a),n=1,c=a+1,l=-1,u=-1;for(a++;a<o&&n>0;){let e=r.charCodeAt(a);e===40?n++:e===41?n--:e===44&&n===1&&(l===-1?l=a:u===-1&&(u=a)),a++}let d=a-1;t===`translate`||t===`translate3d`?(l===-1?i.translateX=r.substring(c,d).trim():(i.translateX=r.substring(c,l).trim(),u===-1?i.translateY=r.substring(l+1,d).trim():(i.translateY=r.substring(l+1,u).trim(),i.translateZ=r.substring(u+1,d).trim())),s=r.substring(c,d)):t===`scale`||t===`scale3d`?l===-1?i.scale=r.substring(c,d).trim():(i.scaleX=r.substring(c,l).trim(),u===-1?i.scaleY=r.substring(l+1,d).trim():(i.scaleY=r.substring(l+1,u).trim(),i.scaleZ=r.substring(u+1,d).trim())):i[t]=r.substring(c,d)}if(t===`translate3d`&&s)return n&&(n[t]=s),s;let c=i[t];if(!F(c))return n&&(n[t]=c),c}return t===`translate3d`?`0px, 0px, 0px`:t===`rotate3d`?`0, 0, 0, 0deg`:M(t,`scale`)?`1`:M(t,`rotate`)||M(t,`skew`)?`0deg`:`0px`},Me=e=>{let t=``;for(let n=0,r=v.length;n<r;n++){let r=v[n],i=e[r];if(i!==void 0){if(r===`translateX`){let r=e.translateY;if(r!==void 0){let a=e.translateZ;a===void 0?(t+=`translate(${i},${r}) `,n+=1):(t+=`translate3d(${i},${r},${a}) `,n+=2);continue}}if(r===`scaleX`&&e.scale===void 0){let r=e.scaleY;if(r!==void 0){let a=e.scaleZ;a===void 0?(t+=`scale(${i},${r}) `,n+=1):(t+=`scale3d(${i},${r},${a}) `,n+=2);continue}}t+=`${y[r]}${i}) `}r===`rotateZ`&&e.rotate3d!==void 0&&(t+=`rotate3d(${e.rotate3d}) `)}return e.matrix!==void 0&&(t+=`matrix(${e.matrix}) `),e.matrix3d!==void 0&&(t+=`matrix3d(${e.matrix3d}) `),t},Ne=[];function Pe(e,t){if(!e)return null;let n=Ne.length;outer:for(let r=0;r<n;r++){let n=Ne[r];if(n.detect&&!n.detect(e))continue;let i=n.targetAdapters;for(let n=0,r=i.length;n<r;n++){let r=i[n];if(r.detect(e)){let n=r.props[t];if(n&&(!n.gate||n.gate(e)))return n;break outer}}}for(let r=0;r<n;r++){let n=Ne[r];if(n.detect&&!n.detect(e))continue;let i=n.propertyResolvers;for(let n=0,r=i.length;n<r;n++){let r=i[n](e,t);if(r)return r}}return null}var Fe=e=>{let t=w.exec(e)||T.exec(e),n=F(t[4])?1:+t[4];return[+t[1],+t[2],+t[3],n]},Ie=e=>{let t=e.length,n=t===4||t===5;return[+(`0x`+e[1]+e[n?1:2]),+(`0x`+e[n?2:3]+e[n?2:4]),+(`0x`+e[n?3:5]+e[n?3:6]),t===5||t===9?+((`0x`+e[n?4:7]+e[n?4:8])/255).toFixed(3):1]},Le=(e,t,n)=>(n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),Re=e=>{let t=E.exec(e)||D.exec(e),n=t[1]/360,r=t[2]/100,i=t[3]/100,a=F(t[4])?1:+t[4],o,s,c;if(r===0)o=s=c=i;else{let e=i<.5?i*(1+r):i+r-i*r,t=2*i-e;o=V(Le(t,e,n+1/3)*255,0),s=V(Le(t,e,n)*255,0),c=V(Le(t,e,n-1/3)*255,0)}return[o,s,c,a]},ze=e=>fe(e)?Fe(e):de(e)?Ie(e):pe(e)?Re(e):[0,0,0,1],W=(e,t)=>F(e)?t:e,Be=(e,t)=>{let n=e.match(ne),r=t[l]?t:document.documentElement,i=getComputedStyle(r)?.getPropertyValue(n[1]);return(!i||i.trim()===``)&&n[2]&&(i=n[2].trim()),i||0},G=(e,t,n,r,i,a)=>{if(ce(e)){if(!i){let i=e(t,n,r,a);return isNaN(+i)?i||0:+i}let o=()=>{let i=e(t,n,r,a);return isNaN(+i)?i||0:+i};return i.func=o,o()}if(se(e)&&M(e,`var(`)){if(!i)return Be(e,t);let n=()=>Be(e,t);return i.func=n,n()}return e},Ve=(e,t)=>e[l]?e[u]&&_e(e,t)?i.ATTRIBUTE:v.includes(t)||_.get(t)?i.TRANSFORM:M(t,`--`)?i.CSS_VAR:t in e.style?i.CSS:t in e?i.OBJECT:i.ATTRIBUTE:i.OBJECT,He=(e,t,n)=>{let r=e.style[t];r&&n&&(n[t]=r);let i=r||getComputedStyle(e[f]||e).getPropertyValue(t);return i===`auto`?`0`:i},Ue=(e,t,n,r)=>{let a=F(n)?Ve(e,t):n,o=Pe(e,t);if(o){let n=o.get(e);return n&&r&&(r[t]=n),n??0}if(a===i.OBJECT){let n=e[t];return n&&r&&(r[t]=n),n||0}if(a===i.ATTRIBUTE){let n=e.getAttribute(t);return n&&r&&(r[t]=n),n}return a===i.TRANSFORM?je(e,t,r):a===i.CSS_VAR?He(e,t,r).trimStart():He(e,t,r)},We=(e,t,n)=>n===`-`?e-t:n===`+`?e+t:e*t,Ge=()=>({t:a.NUMBER,n:0,u:null,o:null,d:null,s:null}),K=(e,t)=>{if(t.t=a.NUMBER,t.n=0,t.u=null,t.o=null,t.d=null,t.s=null,!e)return t;let n=+e;if(!isNaN(n))return t.n=n,t;let r=e;r[1]===`=`&&(t.o=r[0],r=r.slice(2));let i=!r.includes(` `)&&ee.exec(r);if(i)return t.t=a.UNIT,t.n=+i[1],t.u=i[2],t;if(t.o)return t.n=+r,t;if(me(r))return t.t=a.COLOR,t.d=ze(r),t;{let e=r.match(O);return t.t=a.COMPLEX,t.d=e?e.map(Number):[],t.s=r.split(O)||[],t}},Ke=(e,t)=>(t.t=e._valueType,t.n=e._toNumber,t.u=e._unit,t.o=null,t.d=H(e._toNumbers),t.s=H(e._strings),t),q=Ge(),qe=(e,t,n)=>{let r=e._modifier,i=e._fromNumbers,a=e._toNumbers,o=e._strings,s=o[0];for(let c=0,l=a.length;c<l;c++){let l=r(V(Te(i[c],a[c],t),n)),u=o[c+1];s+=`${u?l+u:l}`,e._numbers[c]=l}return s},Je=(e,t,n,r,c)=>{let l=e.parent,u=e.duration,f=e.completed,m=e.iterationDuration,h=e.iterationCount,g=e._currentIteration,_=e._loopDelay,v=e._reversed,y=e._alternate,b=e._hasChildren,x=e._delay,S=e._currentTime,C=x+m,w=t-x,T=B(S,-x,u),E=B(w,-x,u),D=w-S,O=E>0,ee=E>=u,te=u<=p,ne=c===o.FORCE,re=0,ie=w,A=0;if(h>1){let t=m+(ee?0:_),n=~~(E/t);e._currentIteration=B(n,0,h),ee&&e._currentIteration--,re=e._currentIteration%2,ie=E-n*t||0}let j=v^(y&&re),M=e._ease,N=ee?j?0:u:j?m-ie:ie;M&&(N=m*M(N/m)||0);let P=(l?l.backwards:w<S)?!j:!!j;if(e._currentTime=w,e._iterationTime=N,e.backwards=P,O&&!e.began?(e.began=!0,!n&&!(l&&(P||!l.began))&&e.onBegin(e)):w<=0&&(e.began=!1),!n&&!b&&O&&e._currentIteration!==g&&e.onLoop(e),ne||c===o.AUTO&&(t>=(l&&x>0?0:x)&&t<=C||t<=x&&T>x||t>=C&&T!==u)||N>=C&&T!==u||N<=x&&T>0&&!ee||t<=T&&T===u&&f||ee&&!f&&te){if(O&&(e.computeDeltaTime(T),n||e.onBeforeUpdate(e)),!b){let t=ne||(P?D*-1:D)>=k.tickThreshold,o=V(e._offset+(l?l._offset:0)+x+N,12),c=e._head,u,f,p,m,h=0;for(;c;){let e=c._composition,n=c._currentTime,l=c._changeDuration,g=c._absoluteStartTime+c._changeDuration,_=c._nextRep,v=c._prevRep,y=e!==s.none,b=v?v._absoluteStartTime+v._changeDuration:0,x=v&&v.parent!==c.parent,S=!_||_._isOverridden?g:_.parent===c.parent?g+_._delay:_._absoluteStartTime<_._absoluteUpdateStartTime?_._absoluteStartTime:_._absoluteUpdateStartTime;if((t||(n!==l||o<=S||v&&!x&&(!_||_.parent!==c.parent))&&(n!==0||o>=c._absoluteStartTime||x&&!c._hasFromValue&&!v._isOverridden&&o>=b||_&&!_._isOverridden&&_.parent===c.parent&&_._currentTime!==0&&N<_._startTime))&&(!v||x||N>=c._startTime)&&(!y||!c._isOverridden&&(!c._isOverlapped||o<=g)&&(!_||_._isOverridden||o<=S)&&(!v||v._isOverridden||(x?o>=c._absoluteStartTime||!c._hasFromValue&&o>=b:o>=b+c._delay)))){let t=c._currentTime=B(N-c._startTime,0,l),n=c._ease(t/c._updateDuration),o=c._modifier,g=c._valueType,_=c._tweenType,v=_===i.OBJECT,b=g===a.NUMBER,x=b&&v||n===0||n===1?-1:k.precision,S,C;if(b)S=C=o(V(Te(c._fromNumber,c._toNumber,n),x));else if(g===a.UNIT)C=o(V(Te(c._fromNumber,c._toNumber,n),x)),S=`${C}${c._unit}`;else if(g===a.COLOR){let e=c._numbers,t=c._fromNumbers,i=c._toNumbers,a=1-n,s=t[0],l=t[1],u=t[2],d=i[0],f=i[1],p=i[2];e[0]=o(Math.sqrt(s*s*a+d*d*n)),e[1]=o(Math.sqrt(l*l*a+f*f*n)),e[2]=o(Math.sqrt(u*u*a+p*p*n)),e[3]=o(Te(t[3],i[3],n)),(!c._setter||r)&&(S=`rgba(${V(e[0],0)},${V(e[1],0)},${V(e[2],0)},${e[3]})`)}else g===a.COMPLEX&&(S=qe(c,n,x));if(y&&(c._number=C),!r&&e!==s.blend){let e=c.property;u=c.target,c._setter?c._setter(u,C,c):v?u[e]=S:_===i.ATTRIBUTE?u.setAttribute(e,S):(f=u.style,_===i.TRANSFORM?(u!==p&&(p=u,m=u[d]),m[e]=S,h=1):_===i.CSS?f[e]=S:_===i.CSS_VAR&&f.setProperty(e,S)),O&&(A=1)}else c._value=S}else n&&v&&!x&&N<c._startTime&&(c._currentTime=0);h&&c._renderTransforms&&(f.transform=Me(m),h=0),c=c._next}!n&&A&&e.onRender(e)}!n&&O&&e.onUpdate(e)}return l&&te?!n&&(l.began&&!P&&w>0&&!f||P&&w<=1e-11&&f)&&(e.onComplete(e),e.completed=!P):O&&ee?h===1/0?e._startTime+=e.duration:e._currentIteration>=h-1&&(e.paused=!0,!f&&!b&&(e.completed=!0,!n&&!(l&&(P||!l.began))&&(e.onComplete(e),e._resolve(e)))):e.completed=!1,A},Ye=(e,t,n,r,i)=>{let a=e._currentIteration;if(Je(e,t,n,r,i),e._hasChildren){let s=e,c=s.backwards,l=r?t:s._iterationTime,u=N(),d=0,f=!0;if(!r&&s._currentIteration!==a){let e=s.iterationDuration;U(s,t=>{if(!c)!t.completed&&!t.backwards&&t._currentTime<t.iterationDuration&&Je(t,e,n,1,o.FORCE),t.began=!1,t.completed=!1;else{let r=t.duration,i=t._offset+t._delay,a=i+r;!n&&r<=1e-11&&(!i||a===e)&&t.onComplete(t)}}),n||s.onLoop(s)}U(s,e=>{let t=V((l-e._offset)*e._speed,12);if(c&&t>e._delay+e.duration)return;let a=e._fps<s._fps?e.requestTick(u):i;d+=Je(e,t,n,r,a),!e.completed&&f&&(f=!1)},c),!n&&d&&s.onRender(s),(f||c)&&s._currentTime>=s.duration&&(s.paused=!0,s.completed||(s.completed=!0,n||(s.onComplete(s),s._resolve(s))))}},Xe={},Ze=(e,t,n)=>{if(n===i.TRANSFORM)return _.get(e)||e;if(n===i.CSS||n===i.ATTRIBUTE&&ue(t)&&e in t.style){let t=Xe[e];if(t)return t;{let t=e&&j(e);return Xe[e]=t,t}}return e},Qe=(e,t=!1)=>{if(e._hasChildren)U(e,e=>Qe(e,t),!0);else{let n=e;n.pause(),U(n,e=>{let r=e.property,a=e.target,o=e._tweenType,s=e._inlineValue,c=le(s)||s===``;if(e._setter){if(!t&&!c){if(K(s,q),q.d){let t=q.d,n=e._numbers;for(let e=0,r=t.length;e<r;e++)n[e]=t[e]}else e._number=q.n;e._setter(e.target,e._number,e)}}else if(o===i.OBJECT)!t&&!c&&(a[r]=s);else if(a[l]){if(o===i.ATTRIBUTE)t||(c?a.removeAttribute(r):a.setAttribute(r,s));else{let t=a.style;if(o===i.TRANSFORM){let n=a[d];c?delete n[r]:n[r]=s,e._renderTransforms&&(Object.keys(n).length?t.transform=Me(n):t.removeProperty(`transform`))}else c?t.removeProperty(j(r)):t[r]=s}}a[l]&&n._tail===e&&n.targets.forEach(e=>{e.getAttribute&&e.getAttribute(`style`)===``&&e.removeAttribute(`style`)})})}return e},$e=class{constructor(e=0){this.deltaTime=0,this._currentTime=e,this._lastTickTime=e,this._startTime=e,this._lastTime=e,this._frameDuration=h/240,this._fps=240,this._speed=1,this._hasChildren=!1,this._head=null,this._tail=null}get fps(){return this._fps}set fps(e){let t=+e,n=t<1e-11?p:t,r=h/n;n>re.frameRate&&(re.frameRate=n),this._fps=n,this._frameDuration=r}get speed(){return this._speed}set speed(e){let t=+e;this._speed=t<1e-11?p:t}requestTick(e){let t=this._frameDuration,n=e-this._lastTickTime,r=t*.25;return n+(r<4?r:4)<t?o.NONE:(this._lastTickTime=n>=t?e-n%t:e,o.AUTO)}computeDeltaTime(e){let t=e-this._lastTime;return this.deltaTime=t,this._lastTime=e,t}},et={animation:null,update:b},tt=e=>{let t=et.animation;return t||(t={duration:p,computeDeltaTime:b,_offset:0,_delay:0,_head:null,_tail:null},et.animation=t,et.update=()=>{e.forEach(e=>{for(let t in e){let n=e[t],r=n._head;if(r){let e=r._valueType,t=e===a.COMPLEX||e===a.COLOR?H(r._fromNumbers):null,i=r._fromNumber,o=n._tail;for(;o&&o!==r;){if(t)for(let e=0,n=o._numbers.length;e<n;e++)t[e]+=o._numbers[e];else i+=o._number;o=o._prevAdd}r._toNumber=i,r._toNumbers=t}}}),Je(t,1,1,0,o.FORCE)}),t},nt=t?requestAnimationFrame:setImmediate,rt=t?cancelAnimationFrame:clearImmediate,it=class extends $e{constructor(e){super(e),this.useDefaultMainLoop=!0,this.pauseOnDocumentHidden=!0,this.defaults=re,this.paused=!0,this.reqId=0}update(){let e=this._currentTime=N();if(this.requestTick(e)){this.computeDeltaTime(e);let t=this._speed,n=this._fps,r=this._head;for(;r;){let i=r._next;r.paused?(ke(this,r),this._hasChildren=!!this._tail,r._running=!1,r.completed&&!r._cancelled&&r.cancel()):Ye(r,(e-r._startTime)*r._speed*t,0,0,r._fps<n?r.requestTick(e):o.AUTO),r=i}et.update()}}wake(){return this.useDefaultMainLoop&&!this.reqId&&(this.requestTick(N()),this.reqId=nt(at)),this}pause(){if(this.reqId)return this.paused=!0,ot()}resume(){if(this.paused)return this.paused=!1,U(this,e=>e.resetTime()),this.wake()}get speed(){return this._speed*(k.timeScale===1?1:h)}set speed(e){let t=e*k.timeScale;this._speed!==t&&(this._speed=t,U(this,e=>e.speed=e._speed))}get timeUnit(){return k.timeScale===1?`ms`:`s`}set timeUnit(e){let t=.001,n=e===`s`,r=n?t:1;if(k.timeScale!==r){k.timeScale=r,k.tickThreshold=200*r;let e=n?t:h;this.defaults.duration*=e,this._speed*=e}}get precision(){return k.precision}set precision(e){k.precision=e}},J=(()=>{let e=new it(N());return t&&(A.engine=e,r.addEventListener(`visibilitychange`,()=>{e.pauseOnDocumentHidden&&(r.hidden?e.pause():e.resume())})),e})(),at=()=>{J._head?(J.reqId=nt(at),J.update()):J.reqId=0},ot=()=>(rt(J.reqId),J.reqId=0,J),st={_rep:new WeakMap,_add:new Map},ct=(e,t,n=`_rep`)=>{let r=st[n],i=r.get(e);return i||(i={},r.set(e,i)),i[t]?i[t]:i[t]={_head:null,_tail:null}},lt=(e,t)=>e._isOverridden||e._absoluteStartTime>t._absoluteStartTime,ut=e=>{e._isOverlapped=1,e._isOverridden=1,e._changeDuration=p,e._currentTime=p},dt=(e,t)=>{let n=e._composition;if(n===s.replace){let n=e._absoluteStartTime;Ae(t,e,lt,`_prevRep`,`_nextRep`);let r=e._prevRep;if(r){let t=r.parent,i=r._absoluteEndTime;if(e.parent.id!==t.id&&t.iterationCount>1&&i+(t.duration-t.iterationDuration)>n){ut(r);let e=r._prevRep;for(;e&&e.parent.id===t.id;)ut(e),e=e._prevRep}let a=e._absoluteUpdateStartTime;if(i>a){let e=r._startTime,t=V(a-(i-(e+r._updateDuration))-e,12);r._changeDuration=t,r._currentTime=t,r._isOverlapped=1,t<1e-11&&ut(r)}let o=e.parent.parent;if(!o||o!==t.parent){let e=!0;if(U(t,t=>{t._isOverlapped||(e=!1)}),e){let e=t.parent;if(e){let n=!0;U(e,e=>{e!==t&&U(e,e=>{e._isOverlapped||(n=!1)})}),n&&e.cancel()}else t.cancel()}}}}else if(n===s.blend){let t=ct(e.target,e.property,`_add`),n=tt(st._add),r=t._head;r||(r={...e},r._composition=s.replace,r._updateDuration=p,r._startTime=0,r._numbers=H(e._fromNumbers),r._number=0,r._next=null,r._prev=null,Ae(t,r),Ae(n,r));let i=e._toNumber;if(e._fromNumber=r._fromNumber-i,e._toNumber=0,e._numbers=H(e._fromNumbers),e._number=0,r._fromNumber=i,e._toNumbers.length){let t=H(e._toNumbers);t.forEach((t,n)=>{e._fromNumbers[n]=r._fromNumbers[n]-t,e._toNumbers[n]=0}),r._fromNumbers=t}Ae(t,e,null,`_prevAdd`,`_nextAdd`)}return e},ft=e=>{let t=e._composition;if(t!==s.none){let n=e.target,r=e.property,i=st._rep.get(n)[r];if(ke(i,e,`_prevRep`,`_nextRep`),t===s.blend){let t=st._add,i=t.get(n);if(!i)return;let a=i[r],o=et.animation;ke(a,e,`_prevAdd`,`_nextAdd`);let s=a._head;if(s&&s===a._tail){ke(a,s,`_prevAdd`,`_nextAdd`),ke(o,s);let e=!0;for(let t in i)if(i[t]._head){e=!1;break}e&&t.delete(n)}}}return e},pt=e=>(e.paused=!0,e.began=!1,e.completed=!1,e),mt=e=>e._cancelled?(e._hasChildren?U(e,mt):U(e,e=>{e._composition!==s.none&&dt(e,ct(e.target,e.property))}),e._cancelled=0,e):e,ht=0,gt=(e,t)=>e._priority>t._priority,_t=class extends $e{constructor(e={},t=null,n=0){super(0),++ht;let{id:r,delay:i,duration:a,reversed:o,alternate:s,loop:c,loopDelay:l,autoplay:u,frameRate:d,playbackRate:f,priority:p,onComplete:m,onLoop:h,onPause:g,onBegin:_,onBeforeUpdate:v,onUpdate:y}=e;ie.current&&ie.current.register(this);let x=t?0:J._lastTickTime,S=t?t.defaults:k.defaults,C=ce(i)||F(i)?S.delay:+i,w=ce(a)||F(a)?1/0:+a,T=W(c,S.loop),E=W(l,S.loopDelay),D=T===!0||T===1/0||T<0?1/0:T+1,O=0;t?O=n:(J.reqId||J.requestTick(N()),O=(J._lastTickTime-J._startTime)*k.timeScale),this.id=F(r)?ht:r,this.parent=t,this.duration=Ee((w+E)*D-E)||1e-11,this.backwards=!1,this.paused=!0,this.began=!1,this.completed=!1,this.onBegin=_||S.onBegin,this.onBeforeUpdate=v||S.onBeforeUpdate,this.onUpdate=y||S.onUpdate,this.onLoop=h||S.onLoop,this.onPause=g||S.onPause,this.onComplete=m||S.onComplete,this.iterationDuration=w,this.iterationCount=D,this._autoplay=!t&&W(u,S.autoplay),this._offset=O,this._delay=C,this._loopDelay=E,this._iterationTime=0,this._currentIteration=0,this._resolve=b,this._running=!1,this._reversed=+W(o,S.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=W(s,S.alternate),this._prev=null,this._next=null,this._lastTickTime=x,this._startTime=x,this._lastTime=x,this._fps=W(d,S.frameRate),this._speed=W(f,S.playbackRate),this._priority=+W(p,1)}get cancelled(){return!!this._cancelled}set cancelled(e){e?this.cancel():this.reset(!0).play()}get currentTime(){return B(V(this._currentTime,k.precision),-this._delay,this.duration)}set currentTime(e){let t=this.paused;this.pause().seek(+e),t||this.resume()}get iterationCurrentTime(){return B(V(this._iterationTime,k.precision),0,this.iterationDuration)}set iterationCurrentTime(e){this.currentTime=this.iterationDuration*this._currentIteration+e}get progress(){return B(V(this._currentTime/this.duration,10),0,1)}set progress(e){this.currentTime=this.duration*e}get iterationProgress(){return B(V(this._iterationTime/this.iterationDuration,10),0,1)}set iterationProgress(e){let t=this.iterationDuration;this.currentTime=t*this._currentIteration+t*e}get currentIteration(){return this._currentIteration}set currentIteration(e){this.currentTime=this.iterationDuration*B(+e,0,this.iterationCount-1)}get reversed(){return!!this._reversed}set reversed(e){e?this.reverse():this.play()}get speed(){return super.speed}set speed(e){super.speed=e,this.resetTime()}reset(e=!1){return mt(this),this._reversed&&!this._reverse&&(this.reversed=!1),this._iterationTime=this.iterationDuration,Ye(this,0,1,~~e,o.FORCE),pt(this),this._hasChildren&&U(this,pt),this}init(e=!1){this.fps=this._fps,this.speed=this._speed,!e&&this._hasChildren&&Ye(this,this.duration,1,~~e,o.FORCE),this.reset(e);let t=this._autoplay;return t===!0?this.resume():t&&!F(t.linked)&&t.link(this),this}resetTime(){let e=1/(this._speed*J._speed);return this._startTime=N()-(this._currentTime+this._delay)*e,this}pause(){return this.paused?this:(this.paused=!0,this.onPause(this),this)}resume(){return this.paused?(this.paused=!1,this.duration<=1e-11&&!this._hasChildren?Ye(this,p,0,0,o.FORCE):(this._running||=(Ae(J,this,gt),J._hasChildren=!0,!0),this.resetTime(),this._startTime-=12,J.wake()),this):this}restart(){return this.reset().resume()}seek(e,t=0,n=0){mt(this),this.completed=!1;let r=this.paused;return this.paused=!0,Ye(this,e+this._delay,~~t,~~n,o.AUTO),r?this:this.resume()}alternate(){let e=this._reversed,t=this.iterationCount,n=this.iterationDuration,r=t===1/0?Ce(m/n):t;return this._reversed=+(this._alternate&&!(r%2)?e:!e),t===1/0?this.iterationProgress=this._reversed?1-this.iterationProgress:this.iterationProgress:this.seek(n*r-this._currentTime),this.resetTime(),this}play(){return this._reversed&&this.alternate(),this.resume()}reverse(){return this._reversed||this.alternate(),this.resume()}cancel(){return this._hasChildren?U(this,e=>e.cancel(),!0):U(this,ft),this._cancelled=1,this.pause()}stretch(e){let t=this.duration,n=De(e);if(t===n)return this;let r=e/t,i=e<=p;return this.duration=i?p:n,this.iterationDuration=i?p:De(this.iterationDuration*r),this._offset*=r,this._delay*=r,this._loopDelay*=r,this}revert(){Ye(this,0,1,0,o.AUTO);let e=this._autoplay;return e&&e.linked&&e.linked===this&&e.revert(),this.cancel()}complete(e=0){return this.seek(this.duration,e).cancel()}then(e=b){let t=this.then,n=()=>{this.then=null,e(this),this.then=t,this._resolve=b};return new Promise(e=>(this._resolve=()=>e(n()),this.completed&&this._resolve(),this))}};function vt(e){let t=se(e)?ie.root.querySelectorAll(e):e;if(t instanceof NodeList||t instanceof HTMLCollection)return t}function yt(e){if(le(e))return[];if(!t)return P(e)&&e.flat(1/0)||[e];if(P(e)){let t=e.flat(1/0),n=[];for(let e=0,r=t.length;e<r;e++){let r=t[e];if(!le(r)){let e=vt(r);if(e)for(let t=0,r=e.length;t<r;t++){let r=e[t];if(!le(r)){let e=!1;for(let t=0,i=n.length;t<i;t++)if(n[t]===r){e=!0;break}e||n.push(r)}}else{let e=!1;for(let t=0,i=n.length;t<i;t++)if(n[t]===r){e=!0;break}e||n.push(r)}}}return n}let n=vt(e);return n?Array.from(n):[e]}function bt(e){let t=yt(e),n=t.length;for(let e=0;e<n;e++){let n=t[e];if(!n[c]){n[c]=!0;let e=ue(n);(n.nodeType||e)&&(n[l]=!0,n[u]=e,n[d]={})}}return t}var xt={deg:1,rad:180/z,turn:360},St={},Ct=(e,t,n,i=!1)=>{let o=t.u,s=t.n;if(t.t===a.UNIT&&o===n)return t;let c=s+o+n,l=St[c];if(!F(l)&&!i)t.n=l;else{let i;if(o in xt)i=s*xt[o]/xt[n];else{let t=e.cloneNode(),a=e.parentNode,c=a&&a!==r?a:r.body;c.appendChild(t);let l=t.style;l.width=100+o;let u=t.offsetWidth||100;l.width=100+n;let d=u/(t.offsetWidth||100);c.removeChild(t),i=d*s}t.n=i,St[c]=i}return t.t,a.UNIT,t.u=n,t},Y=e=>e,wt=(e=1.68)=>t=>ve(t,+e),Tt={in:e=>t=>e(t),out:e=>t=>1-e(1-t),inOut:e=>t=>t<.5?e(t*2)/2:1-e(t*-2+2)/2,outIn:e=>t=>t<.5?(1-e(1-t*2))/2:(e(t*2-1)+1)/2},Et=z/2,Dt=z*2,Ot={"":wt,Quad:wt(2),Cubic:wt(3),Quart:wt(4),Quint:wt(5),Sine:e=>1-be(e*Et),Circ:e=>1-I(1-e*e),Expo:e=>e?ve(2,10*e-10):0,Bounce:e=>{let t,n=4;for(;e<((t=ve(2,--n))-1)/11;);return 1/ve(4,3-n)-7.5625*ve((t*3-2)/22-e,2)},Back:(e=1.7)=>t=>(+e+1)*t*t*t-+e*t*t,Elastic:(e=1,t=.3)=>{let n=B(+e,1,10),r=B(+t,p,2),i=r/Dt*R(1/n),a=Dt/r;return e=>e===0||e===1?e:-n*ve(2,-10*(1-e))*ye((1-e-i)*a)}},kt=(()=>{let e={linear:Y,none:Y};for(let t in Tt)for(let n in Ot){let r=Ot[n],i=Tt[t];e[t+n]=n===``||n===`Back`||n===`Elastic`?(e,t)=>i(r(e,t)):i(r)}return e})(),At={linear:Y,none:Y},jt=e=>{if(At[e])return At[e];if(e.indexOf(`(`)<=-1){let t=Tt[e]||e.includes(`Back`)||e.includes(`Elastic`)?kt[e]():kt[e];return t?At[e]=t:Y}{let t=e.slice(0,-1).split(`(`),n=kt[t[0]];return n?At[e]=n(...t[1].split(`,`)):Y}},Mt=[`steps(`,`irregular(`,`linear(`,`cubicBezier(`],Nt=e=>{if(se(e)){for(let t=0,n=Mt.length;t<n;t++)if(M(e,Mt[t]))return console.warn(`String syntax for \`ease: "${e}"\` has been removed from the core and replaced by importing and passing the easing function directly: \`ease: ${e}\``),Y}return ce(e)?e:se(e)?jt(e):Y},X=Ge(),Z=Ge(),Pt={},Ft={func:null},It={func:null},Lt=[null],Rt=[null,null],zt={to:null},Bt=0,Vt=0,Ht,Q,Ut=(e,t)=>{let n={};if(P(e)){let t=[].concat(...e.map(e=>Object.keys(e))).filter(he);for(let r=0,i=t.length;r<i;r++){let i=t[r];n[i]=e.map(e=>{let t={};for(let n in e){let r=e[n];he(n)?n===i&&(t.to=r):t[n]=r}return t})}}else{let r=W(t.duration,k.defaults.duration);Object.keys(e).map(t=>({o:parseFloat(t)/100,p:e[t]})).sort((e,t)=>e.o-t.o).forEach(e=>{let t=e.o,i=e.p;for(let e in i)if(he(e)){let a=n[e];a||=n[e]=[];let o=t*r,s=a.length,c=a[s-1],l={to:i[e]},u=0;for(let e=0;e<s;e++)u+=a[e].duration;s===1&&(l.from=c.to),i.ease&&(l.ease=i.ease),l.duration=o-(s?u:0),a.push(l)}return e});for(let e in n){let t=n[e],r;for(let e=0,n=t.length;e<n;e++){let n=t[e],i=n.ease;n.ease=r||void 0,r=i}t[0].duration||t.shift()}}return n},Wt=class extends _t{constructor(e,t,n,r,o=!1,c=0,l){super(t,n,r),this._head,this._tail,++Vt;let u=bt(e),d=u.length,f=t.keyframes,m=f?Oe(Ut(f,t),t):t,{id:h,delay:_,duration:v,ease:y,playbackEase:b,modifier:x,composition:S,onRender:C}=m,w=n?n.defaults:k.defaults,T=W(y,w.ease),E=W(b,w.playbackEase),D=E?Nt(E):null,O=!F(T.ease),ee=O?T.ease:W(y,D?`linear`:w.ease),te=O?T.settlingDuration:W(v,w.duration),ne=W(_,w.delay),re=x||w.modifier,ie=F(S)&&d>=1e3?s.none:F(S)?w.composition:S,A=this._offset+(n?n._offset:0);O&&(T.parent=this);let j=NaN,M=NaN,N=0,ue=0;for(let e=0;e<d;e++){let t=u[e],r=c||e,d=l||u,f=NaN,p=NaN;for(let e in m)if(he(e)){let c=Ve(t,e),l=Pe(t,e),u=Ze(e,t,c),h=m[e],_=P(h);if(o&&!_&&(Rt[0]=h,Rt[1]=h,h=Rt),_){let e=h.length,t=!ae(h[0]);e===2&&t?(zt.to=h,Lt[0]=zt,Ht=Lt):e>2&&t?(Ht=[],h.forEach((e,t)=>{t?t===1?(Rt[1]=e,Ht.push(Rt)):Ht.push(e):Rt[0]=e})):Ht=h}else Lt[0]=h,Ht=Lt;let v=null,y=null,b=NaN,x=0,S=0;for(let e=Ht.length;S<e;S++){let i=Ht[S];ae(i)?Q=i:(zt.to=i,Q=zt),Ft.func=null,It.func=null;let o=G(W(Q.composition,ie),t,r,d,null,null),f=oe(o)?o:s[o];!v&&f!==s.none&&(v=ct(t,u));let p=v?v._tail:null,m=n&&p&&p.parent.parent===n?p:y,h=G(Q.to,t,r,d,Ft,m),_;ae(h)&&!F(h.to)?(Q=h,_=h.to):_=h;let C=G(Q.from,t,r,d,It,m),w=Q.ease||ee,T=G(w,t,r,d,null,m),E=ce(T)||se(T)?T:w,D=!F(E)&&!F(E.ease),O=D?E.ease:E,k=D?E.settlingDuration:G(W(Q.duration,e>1?G(te,t,r,d,null,m)/e:te),t,r,d,null,m),j=G(W(Q.delay,S?0:ne),t,r,d,null,m),M=Q.modifier||re,de=!F(C),fe=!F(_),pe=P(_),me=pe||de&&fe,he=y?x:0,ge=y?x+j:j,_e=V(A+ge,12),ve=V(A+he,12);!ue&&(de||pe)&&(ue=1);let I=y;if(f!==s.none){let e=v._head;for(;e&&e._absoluteStartTime<=_e;)if(e._isOverridden||(I=e),e=e._nextRep,e&&e._absoluteStartTime>=_e)for(;e;)ut(e),e=e._nextRep}if(me){K(pe?G(_[0],t,r,d,It,m):C,X),K(pe?G(_[1],t,r,d,Ft,m):_,Z);let e=Ue(t,u,c,Pt);X.t===a.NUMBER&&(I?I._valueType===a.UNIT&&(X.t=a.UNIT,X.u=I._unit):(K(e,q),q.t===a.UNIT&&(X.t=a.UNIT,X.u=q.u)))}else fe?K(_,Z):y?Ke(y,Z):K(n&&I&&I.parent.parent===n?I._value:Ue(t,u,c,Pt),Z),de?K(C,X):y?Ke(y,X):K(n&&I&&I.parent.parent===n?I._value:Ue(t,u,c,Pt),X);if(X.o&&(X.n=We(I?I._toNumber:K(Ue(t,u,c,Pt),q).n,X.n,X.o)),Z.o&&(Z.n=We(X.n,Z.n,Z.o)),X.t!==Z.t){if(X.t===a.COMPLEX||Z.t===a.COMPLEX){let e=X.t===a.COMPLEX?X:Z,t=X.t===a.COMPLEX?Z:X;t.t=a.COMPLEX,t.s=H(e.s),t.d=e.d.map(()=>t.n)}else if(X.t===a.UNIT||Z.t===a.UNIT){let e=X.t===a.UNIT?X:Z,t=X.t===a.UNIT?Z:X;t.t=a.UNIT,t.u=e.u}else if(X.t===a.COLOR||Z.t===a.COLOR){let e=X.t===a.COLOR?X:Z,t=X.t===a.COLOR?Z:X;t.t=a.COLOR,t.d=e.d.map(()=>0)}}if(X.u!==Z.u){let e=Z.u?X:Z;e=Ct(t,e,Z.u?Z.u:X.u,!1)}if(Z.d&&X.d&&Z.d.length!==X.d.length){let e=X.d.length>Z.d.length?X:Z,t=e===X?Z:X;t.d=e.d.map((e,n)=>F(t.d[n])?0:t.d[n]),t.s=H(e.s)}let ye=V(+k||1e-11,12),be=Pt[u];le(be)||(Pt[u]=null);let xe=l?l.set:null;x=V(ge+ye,12);let L=X.d,Se=Z.d,Ce=Z.s,R={parent:this,id:Bt++,property:u,target:t,_value:null,_toFunc:Ft.func,_fromFunc:It.func,_ease:Nt(O),_fromNumbers:L?H(L):g,_toNumbers:Se?H(Se):g,_strings:Ce?H(Ce):g,_fromNumber:X.n,_toNumber:Z.n,_numbers:L?H(L):g,_number:X.n,_unit:Z.u,_modifier:M,_currentTime:0,_startTime:ge,_delay:+j,_updateDuration:ye,_changeDuration:ye,_absoluteStartTime:_e,_absoluteUpdateStartTime:ve,_absoluteEndTime:V(A+x,12),_hasFromValue:de||pe?1:0,_tweenType:c,_setter:xe,_valueType:Z.t,_composition:f,_isOverlapped:0,_isOverridden:0,_renderTransforms:0,_inlineValue:be,_prevRep:null,_nextRep:null,_prevAdd:null,_nextAdd:null,_prev:null,_next:null};f!==s.none&&dt(R,v);let z=R._valueType;if(z===a.COMPLEX)R._value=qe(R,1,-1);else if(z===a.UNIT)R._value=`${M(R._toNumber)}${R._unit}`;else if(z===a.COLOR){let e=Z.d;R._value=`rgba(${V(e[0],0)},${V(e[1],0)},${V(e[2],0)},${e[3]})`}else R._value=M(R._toNumber);isNaN(b)&&(b=R._startTime),y=R,N++,Ae(this,R)}(isNaN(M)||b<M)&&(M=b),(isNaN(j)||x>j)&&(j=x),c===i.TRANSFORM&&(f=N-S,p=N)}if(!isNaN(f)){let e=0;U(this,t=>{e>=f&&e<p&&(t._renderTransforms=1,t._composition===s.blend&&U(et.animation,e=>{e.id===t.id&&(e._renderTransforms=1)})),e++})}}d||console.warn(`No target found. Make sure the element you're trying to animate is accessible before creating your animation.`),M?(U(this,e=>{e._startTime-e._delay||(e._delay-=M),e._startTime-=M}),j-=M):M=0,j||(j=p,this.iterationCount=0),this.targets=u,this.id=F(h)?Vt:h,this.duration=j===1e-11?p:Ee((j+this._loopDelay)*this.iterationCount-this._loopDelay)||1e-11,this.onRender=C||w.onRender,this._ease=D,this._delay=M,this.iterationDuration=j,!this._autoplay&&ue&&this.onRender(this)}stretch(e){let t=this.duration;if(t===De(e))return this;let n=e/t;return U(this,e=>{e._updateDuration=De(e._updateDuration*n),e._changeDuration=De(e._changeDuration*n),e._currentTime*=n,e._delay*=n,e._startTime*=n,e._absoluteStartTime*=n,e._absoluteUpdateStartTime*=n,e._absoluteEndTime*=n}),super.stretch(e)}refresh(){return U(this,e=>{let t=e._toFunc,n=e._fromFunc;(t||n)&&(n?(K(n(),X),X.u!==e._unit&&e.target[l]&&Ct(e.target,X,e._unit,!0),e._fromNumbers=H(X.d),e._fromNumber=X.n):t&&(K(Ue(e.target,e.property,e._tweenType),q),e._fromNumbers=H(q.d),e._fromNumber=q.n),t&&(K(t(),Z),e._toNumbers=H(Z.d),e._strings=H(Z.s),e._toNumber=Z.o?We(e._fromNumber,Z.n,Z.o):Z.n))}),this.duration===1e-11&&this.restart(),this}revert(){return super.revert(),Qe(this)}then(e){return super.then(e)}},Gt=(e,t)=>k.editor?k.editor.addAnimation(e,t):new Wt(e,t,null,0,!1).init(),$=h*10,Kt=class{constructor(e={}){let t=!F(e.bounce)||!F(e.duration);this.timeStep=.02,this.restThreshold=5e-4,this.restDuration=200,this.maxDuration=6e4,this.maxRestSteps=this.restDuration/this.timeStep/h,this.maxIterations=this.maxDuration/this.timeStep/h,this.bn=B(W(e.bounce,.5),-1,1),this.pd=B(W(e.duration,628),10*k.timeScale,$*k.timeScale),this.m=B(W(e.mass,1),1,$),this.s=B(W(e.stiffness,100),p,$),this.d=B(W(e.damping,10),p,$),this.v=B(W(e.velocity,0),-$,$),this.w0=0,this.zeta=0,this.wd=0,this.b=0,this.completed=!1,this.solverDuration=0,this.settlingDuration=0,this.parent=null,this.onComplete=e.onComplete||b,t&&this.calculateSDFromBD(),this.compute(),this.ease=e=>{let t=e*this.settlingDuration,n=this.completed,r=this.pd;return t>=r&&!n&&(this.completed=!0,this.onComplete(this.parent)),t<r&&n&&(this.completed=!1),e===0||e===1?e:this.solve(e*this.solverDuration)}}solve(e){let{zeta:t,w0:n,wd:r,b:i}=this,a=e;return a=t<1?L(-a*t*n)*(1*be(r*a)+i*ye(r*a)):t===1?(1+i*a)*L(-a*n):((1+i)*L((-t*n+r)*a)+(1-i)*L((-t*n-r)*a))/2,1-a}calculateSDFromBD(){let e=k.timeScale===1?this.pd/h:this.pd;this.m=1,this.v=0,this.s=ve(2*z/e,2),this.d=this.bn>=0?(1-this.bn)*4*z/e:4*z/(e*(1+this.bn)),this.s=V(B(this.s,p,$),3),this.d=V(B(this.d,p,300),3)}calculateBDFromSD(){let e=2*z/I(this.s);this.pd=e*(k.timeScale===1?h:1),this.bn=this.d/(2*I(this.s))<=1?1-this.d*e/(4*z):4*z/(this.d*e)-1,this.bn=V(B(this.bn,-1,1),3),this.pd=V(B(this.pd,10*k.timeScale,$*k.timeScale),3)}compute(){let{maxRestSteps:e,maxIterations:t,restThreshold:n,timeStep:r,m:i,d:a,s:o,v:s}=this,c=this.w0=B(I(o/i),p,h),l=this.zeta=a/(2*I(o*i));l<1?(this.wd=c*I(1-l*l),this.b=(l*c+-s)/this.wd):l===1?(this.wd=0,this.b=-s+c):(this.wd=c*I(l*l-1),this.b=(l*c+-s)/this.wd);let u=0,d=0,f=0;for(;d<=e&&f<=t;)xe(1-this.solve(u))<n?d++:d=0,this.solverDuration=u,u+=r,f++;this.settlingDuration=V(this.solverDuration*h,0)*k.timeScale}get bounce(){return this.bn}set bounce(e){this.bn=B(W(e,1),-1,1),this.calculateSDFromBD(),this.compute()}get duration(){return this.pd}set duration(e){this.pd=B(W(e,1),10*k.timeScale,$*k.timeScale),this.calculateSDFromBD(),this.compute()}get stiffness(){return this.s}set stiffness(e){this.s=B(W(e,100),p,$),this.calculateBDFromSD(),this.compute()}get damping(){return this.d}set damping(e){this.d=B(W(e,10),p,$),this.calculateBDFromSD(),this.compute()}get mass(){return this.m}set mass(e){this.m=B(W(e,1),1,$),this.compute()}get velocity(){return this.v}set velocity(e){this.v=B(W(e,0),-$,$),this.compute()}},qt=e=>new Kt(e),Jt=e({animate:()=>Gt,spring:()=>qt});export{B as a,Se as i,qt as n,Ce as o,Gt as r,Jt as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./print-download-button-ebYCmtQ8.js","./rolldown-runtime-hePW80VL.js","./button-oE2Hrd5D.js","./modules-C4mfDnjH.js","./dist-ujdia29J.js","./log-event-IU820pK9.js","./useMutation-DAlc59rA.js","./computer-Drn9XugY.js","./ellipsis-DlNHenkt.js","./dropdown-menu-Dz4r7a9R.js","./useTriggerFocusGuards-Bddw7Qdn.js","./keycap-D2RkH2IS.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{C as t,Vn as n,bn as r,dn as i,sn as a,wn as o,x as s,yn as c}from"./button-oE2Hrd5D.js";import{jt as l}from"./dist-ujdia29J.js";import{o as u,t as d,u as f}from"./log-event-IU820pK9.js";import{i as p,t as m}from"./query-DKNLqHPu.js";import{t as h}from"./useMutation-DAlc59rA.js";import{E as g,G as _,K as v,O as y,U as b,a as x,i as S,k as ee,l as te,o as C,r as w,s as ne,t as re}from"./audio-waveform-DcMy9xl2.js";import{$ as T,C as ie,J as E,Q as D,X as O,Z as k,g as ae,it as A,l as oe,m as se,nt as ce,r as j,rt as le,s as ue,tt as de,v as M}from"./generation-quote-BstUB0PG.js";import{f as fe,m as N,p as pe,u as P}from"./textarea-DUwcxEMN.js";import{a as me,o as he}from"./status-DNJRO5m5.js";import{n as ge,t as _e}from"./heart-BquDo4lf.js";import{t as ve}from"./images-CQ3EhUoY.js";import{n as ye,t as F}from"./keycap-D2RkH2IS.js";var be=s(`CircleDollarSign`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8`,key:`1h4pet`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}]]),xe=s(`Clapperboard`,[[`path`,{d:`M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z`,key:`1tn4o7`}],[`path`,{d:`m6.2 5.3 3.1 3.9`,key:`iuk76l`}],[`path`,{d:`m12.4 3.4 3.1 4`,key:`6hsd6n`}],[`path`,{d:`M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z`,key:`ltgou9`}]]),Se=s(`Copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Ce=s(`Eraser`,[[`path`,{d:`m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21`,key:`182aya`}],[`path`,{d:`M22 21H7`,key:`t4ddhn`}],[`path`,{d:`m5 11 9 9`,key:`1mo9qw`}]]),we=s(`Link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),Te=s(`MessageSquareText`,[[`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`,key:`1lielz`}],[`path`,{d:`M13 8H7`,key:`14i4kc`}],[`path`,{d:`M17 12H7`,key:`16if0g`}]]),Ee=s(`Palette`,[[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`path`,{d:`M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z`,key:`12rzf8`}]]),De=s(`Ruler`,[[`path`,{d:`M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z`,key:`icamh8`}],[`path`,{d:`m14.5 12.5 2-2`,key:`inckbg`}],[`path`,{d:`m11.5 9.5 2-2`,key:`fmmyf7`}],[`path`,{d:`m8.5 6.5 2-2`,key:`vc6u1g`}],[`path`,{d:`m17.5 15.5 2-2`,key:`wo5hmg`}]]),Oe=s(`Shuffle`,[[`path`,{d:`M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22`,key:`1wmou1`}],[`path`,{d:`m18 2 4 4-4 4`,key:`pucp1d`}],[`path`,{d:`M2 6h1.9c1.5 0 2.9.9 3.6 2.2`,key:`10bdb2`}],[`path`,{d:`M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8`,key:`vgxac0`}],[`path`,{d:`m18 14 4 4-4 4`,key:`10pe0f`}]]),ke=s(`Users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`path`,{d:`M16 3.13a4 4 0 0 1 0 7.75`,key:`1da9ce`}]]),Ae=s(`WandSparkles`,[[`path`,{d:`m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72`,key:`ul74o6`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`M5 6v4`,key:`ilb8ba`}],[`path`,{d:`M19 14v4`,key:`blhpug`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M7 8H3`,key:`zfb6yr`}],[`path`,{d:`M21 16h-4`,key:`1cnmox`}],[`path`,{d:`M11 3H9`,key:`1obp7u`}]]),I=t(),L={coral:`var(--stipe-art-coral, #ff6558)`,blue:`var(--stipe-art-blue, #43a6f2)`,mint:`var(--stipe-art-mint, #63cfaa)`,grape:`var(--stipe-art-grape, #a66cc1)`,yellow:`var(--stipe-art-yellow, #ffd05d)`,cream:`var(--stipe-art-cream, #fff4de)`,ink:`var(--stipe-art-ink, #242c28)`,graphite:`var(--stipe-art-graphite, #49423f)`,inkcap:`var(--stipe-art-inkcap, #80499d)`},R=`light-dark(var(--stipe-sketch-ink, #242c28), var(--stipe-art-cream, #fff4de))`,je=`var(--color-base-100, light-dark(#fff4de, #242c28))`;function z({transform:e,fill:t=R}){return(0,I.jsx)(`path`,{transform:e,style:{fill:t},d:`M-1.264-9.479C-2.098-8.643-1.802-1.057-.907-.332.47.782 1.6-.446 1.618-3.075 1.623-3.888 1.691-5.398 1.77-6.429 1.979-9.202 1.596-10 .055-10-.588-10-.843-9.9-1.264-9.479Z`})}function Me(){return(0,I.jsxs)(`g`,{children:[(0,I.jsx)(z,{transform:`translate(25.4 19.8) rotate(-39) scale(.95 .76)`}),(0,I.jsx)(z,{transform:`translate(32.1 17.8) scale(.96 .95)`}),(0,I.jsx)(z,{transform:`translate(38.8 19.9) rotate(39) scale(.95 .77)`})]})}function Ne(){return(0,I.jsxs)(`g`,{style:{fill:L.blue},children:[(0,I.jsx)(`path`,{d:`M10.574 .604C9.804 1.375 9.867-.885 9.961 22.81 10.054 47.202 9.722 45.378 14.193 45.94 25.813 47.399 38.465 52.211 44.662 57.532 47.653 60.097 48.082 59.411 47.967 52.242L47.734 19.335C47.734 17.523 47.13 16.616 45.964 15.076 40.604 8.018 30.127 2.767 16.804 .462 13.045-.184 11.326-.148 10.574 .604Z`}),(0,I.jsx)(`path`,{d:`M81.571 .746C71.063 2.665 62.221 6.713 56.562 12.199 54.242 14.45 52 17.356 52.115 19.335L52.033 52.628C51.927 59.934 51.979 59.994 55.74 57.091 62.423 51.931 71.272 48.541 84.103 46.221 90.625 45.039 89.967 47.631 90.145 22.432 90.326-3.079 91.148-1 81.571 .746Z`}),(0,I.jsx)(`path`,{d:`M1.906 12.692C.1 13.42 .151 12.804 .151 33.825 .151 54.097 .163 54.302 1.447 55.498 2.71 56.674 3.384 56.81 7.937 56.816 20.943 56.834 30.647 58.293 38.776 61.45 45.964 64.242 46.435 61.924 39.526 57.773 32.296 53.429 26.656 51.544 14.943 49.553 5.958 48.027 6.535 49.414 6.408 29.003 6.32 14.74 6.263 13.103 5.816 12.764 5.254 12.335 2.9 12.293 1.906 12.692Z`}),(0,I.jsx)(`path`,{d:`M94.326 12.858C93.656 13.326 93.656 13.326 93.653 28.492 93.653 48.882 93.997 48.063 84.743 49.556 73.574 51.36 64.45 54.695 57.801 59.405 54.082 62.039 55.384 63.864 59.722 62.1 68.897 58.372 76.363 57.115 90.03 56.994 100.405 56.903 99.489 58.976 99.773 34.976 100.018 14.142 100.006 13.958 98.399 12.979 97.236 12.269 95.251 12.208 94.326 12.858Z`})]})}function B(){return(0,I.jsxs)(`g`,{children:[(0,I.jsx)(`path`,{style:{fill:L.cream},d:`M-8.572-25.123C-21.412-23.39-33.235-17.39-44.235-7.027-51.235-.433-51.251 .358-44.524 6.749-20.77 29.316 10.23 31.893 36.364 13.487 41.043 10.187 48.193 3.551 49.235 1.524 50.358-.642 49.471-2.102 43.738-7.497 29.257-21.128 9.968-27.631-8.572-25.123Z`}),(0,I.jsx)(`path`,{style:{fill:L.ink},d:`M-6.225-16.807C-17.727-13.267-21.176 4.433-12.08 13.257-1.118 23.898 16.829 16.102 17.032 .604 17.209-12.412 6.219-20.642-6.225-16.807Z`})]})}function Pe(){return(0,I.jsxs)(`g`,{children:[(0,I.jsx)(`path`,{style:{fill:L.mint},d:`M540 342C520 340 497 355 477 374C450 399 440 421 456 444C465 458 480 462 492 464C503 466 500 477 494 486C487 500 508 496 522 478L530 468C557 468 578 464 591 451C601 442 599 429 585 427C572 425 556 432 547 418C538 403 550 390 568 385C579 382 589 380 584 368C576 352 557 341 540 342Z`}),(0,I.jsx)(`path`,{style:{fill:L.coral},d:`M589 396C614 380 659 381 683 392C709 404 721 428 710 451C704 464 693 472 685 479C680 487 684 498 689 503C695 514 684 513 675 507C667 502 662 497 657 491C637 496 610 495 594 486C584 480 583 469 595 464C607 460 622 454 622 441C622 428 612 423 597 420C580 417 578 407 589 396Z`})]})}function V({fill:e}){return(0,I.jsx)(`path`,{style:{fill:e},d:`M44.648 .288C26.645 1.615 13.263 8.266 5.942 19.529-4.299 35.277-.917 57.684 13.224 67.784 16.958 70.452 16.936 71.742 13.064 77.665 11.28 80.391 10.895 81.565 11.341 82.914 13.163 88.435 25.022 86.396 36.307 78.62L38.681 76.986 41.294 77.335C45.371 77.878 59.645 77.789 64.125 77.191 89.213 73.837 100.562 61.427 99.92 38.044 99.18 11.1 79.587-2.285 44.648 .288Z`})}function H({onFigure:e=!1}){return(0,I.jsxs)(`g`,{style:{fill:e?je:L.ink},children:[(0,I.jsx)(`rect`,{x:`-15`,y:`-11`,width:`10`,height:`22`,rx:`5`}),(0,I.jsx)(`rect`,{x:`5`,y:`-11`,width:`10`,height:`22`,rx:`5`})]})}function Fe(){return(0,I.jsx)(`path`,{style:{fill:L.cream},d:`M18.125 .621C.039 1.574-2.575 4.791 2.264 20.133 17.454 68.284 77.345 69.396 96.119 21.875 100.749 10.154 100.318 4.348 94.605 1.513 91.981 .21 37.878-.421 18.125 .621Z`})}function Ie(){return(0,I.jsxs)(`g`,{children:[(0,I.jsx)(`path`,{style:{fill:L.yellow},d:`M31.42 5.279C29.108 5.983 28.068 6.993 25.817 10.732 24.033 13.687 24.027 13.762 25.58 14.265 30.375 15.821 36.711 20.506 39.938 24.885 42.077 27.788 41.835 27.806 45.281 24.463 48.633 21.213 49.164 20.185 48.982 17.325 48.812 14.643 48.174 13.872 42.68 9.741 36.737 5.273 34.439 4.361 31.42 5.279Z`}),(0,I.jsx)(`path`,{style:{fill:L.yellow},d:`M22.538 16.207C22.093 16.652 19.732 20.231 13.309 30.196 10.737 34.188 10.723 33.911 13.589 35.351 16.461 36.798 19.778 39.28 21.825 41.523L22.6 42.37Q23.34 43.186 24.05 42.538L24.711 41.933C31.278 35.937 38.928 28.484 38.928 28.083 38.928 24.656 24.521 14.219 22.538 16.207Z`}),(0,I.jsx)(`path`,{style:{fill:L.cream},d:`M8.89 38.053C8.203 39.566 6.598 44.473 6.598 45.056 6.598 45.137 6.887 45.125 7.236 45.036 9.655 44.404 13.526 47.475 13.526 50.027 13.526 51.132 13.361 51.164 16.187 49.49 21.421 46.387 21.966 45.665 20.575 43.659 19.002 41.387 14.975 38.238 11.909 36.881 9.799 35.949 9.854 35.926 8.89 38.053Z`}),(0,I.jsx)(`path`,{style:{fill:L.graphite},d:`M6.598 45.056C5.732 46.866 5.155 49.464 6.309 50.907 8.041 53.505 10.928 52.639 13.526 50.907 13.526 48.021 9.978 44.404 7.236 45.036Z`})]})}function Le(){return(0,I.jsx)(`path`,{style:{fill:L.coral},d:`M40.804 40.625C38.238 41.462 37.291 41.953 31.169 45.625 15.743 54.871 8.047 56.158 5.879 49.856 5.501 48.754 5.501 48.754 4.843 50.913 1.673 61.302 12.377 61.671 30.386 51.796 39.649 46.719 41.142 46.647 40.81 51.291 40.565 54.775 41.168 56.135 43.486 57.31 49.556 60.387 62.035 54.816 59.605 50.116 58.502 47.983 56.1 47.882 52.163 49.799 47.082 52.273 45.983 51.652 47.998 47.449 50.89 41.416 47.686 38.376 40.804 40.625Z`})}function U({transform:e}){return(0,I.jsx)(`path`,{style:{fill:L.mint},transform:e,d:`M0 0C3 -2 5 -5 5 -8 5 -10.5 3 -12 0 -12S-5 -10.5 -5 -8C-5 -5 -3 -2 0 0Z`})}function Re(){return(0,I.jsxs)(`g`,{children:[(0,I.jsx)(`path`,{fillRule:`evenodd`,style:{fill:R},d:`M25.3 17.69C14.8 19.34 10.66 20.18 9.05 20.99 5.51 22.78 4.2 27.21 6.71 28.9 7.47 29.42 8.48 29.4 10.25 28.84 12.41 28.15 12.56 27.57 11.02 25.85 10 24.71 10.53 23.62 11.79 24.27 13.9 25.36 15.02 28.98 15.63 36.66 16.18 43.48 17.33 47.43 19.69 50.49 22.76 54.48 27.69 55.73 30.31 53.19 33 50.57 31.24 46.04 28.44 48.38 26.29 50.17 26.16 47.08 28.3 45.14 29.61 43.95 30.78 43.58 38.92 41.75 39.45 41.63 39.41 41.52 38.39 40.01 36.87 37.78 36.04 35.22 34.72 28.69 33.37 22 32.04 19.3 29.5 18.07 28.69 17.68 26.59 17.49 25.3 17.69M24.11 26.51C18.61 27.67 18.16 27.82 17.98 28.55 17.64 29.91 18.54 30.44 20.51 30.05 25.4 29.08 30.11 28.03 30.49 27.83 31.65 27.23 31 25.33 29.66 25.4 29.5 25.4 27 25.91 24.11 26.51M29.2 31.42C28.64 31.54 26.23 32.07 23.85 32.58 20.01 33.41 19.48 33.57 19.15 33.96 18.67 34.5 18.66 35.05 19.12 35.63 19.61 36.26 19.86 36.23 26.05 34.88 29.05 34.23 31.53 33.7 31.57 33.7 31.82 33.7 32.34 32.88 32.34 32.5 32.34 31.25 31.37 30.92 29.2 31.42M29.79 37.19C28.81 37.41 26.45 37.94 24.53 38.37 22.62 38.8 20.84 39.23 20.58 39.33 19.61 39.71 19.35 40.62 19.98 41.41 20.48 42.05 21 41.99 27.59 40.5 33.85 39.09 34.21 38.91 33.45 37.44 33.02 36.61 32.51 36.58 29.79 37.19M45.41 41.95C44.89 42.09 41.61 42.89 38.12 43.73 30.94 45.45 29.81 45.84 31.05 46.15 33.2 46.69 34.11 50.18 32.77 52.76 32.23 53.79 32.23 54.03 32.76 54.16 33.34 54.31 45.35 51.3 46.72 50.67 50.19 49.06 51.76 45.01 49.79 42.76 48.8 41.64 47.46 41.39 45.41 41.95`}),(0,I.jsx)(`path`,{style:{fill:L.grape},d:`M48.21 10.15C47.92 10.41 47.5 11.27 46.96 12.74 45.52 16.61 45.24 16.99 43.01 18.15 39.18 20.15 39.05 20.99 42.28 22.73 45.37 24.39 45.68 24.79 47.12 28.95 48.3 32.32 49.28 32.2 50.65 28.52 52.23 24.25 52.26 24.22 55.2 22.56 57.53 21.24 57.79 21 57.79 20.16 57.79 19.49 57.55 19.31 55.01 18.06 52.16 16.66 52.2 16.72 50.31 11.56 49.7 9.89 49.03 9.44 48.21 10.15M32.59 13.92C31.78 14.73 32.28 15.89 33.58 16.22 35.07 16.6 36.19 17.1 37.17 17.84 38.42 18.77 39.23 18.86 39.79 18.15 39.99 17.9 40.15 17.53 40.15 17.32 40.15 15.29 33.99 12.52 32.59 13.92M42.48 34.38C40.96 35.96 40.65 36.88 41.39 37.57 42.2 38.33 43.36 37.74 44.55 35.95 45.2 34.97 45.22 34.35 44.62 33.88 43.89 33.31 43.41 33.42 42.48 34.38`}),(0,I.jsx)(`path`,{style:{fill:L.yellow},d:`M40.75 25.96C39.69 27.07 38.11 30.69 38.11 31.98 38.11 32.66 38.55 33.19 39.12 33.19 39.8 33.19 40.24 32.73 40.58 31.66 40.95 30.46 41.65 29.09 42.42 28.01 43.77 26.14 42.29 24.32 40.75 25.96M54.85 27.67C54.71 27.81 54.47 28.32 54.31 28.82 53.67 30.76 53.19 31.37 51.67 32.13 50.25 32.85 50.34 33.36 52.04 34.21 53.25 34.82 53.57 35.23 54.24 37.01 54.98 38.98 55.47 39.08 56.03 37.37 56.7 35.32 57.08 34.81 58.64 33.87 60.18 32.95 60.14 32.65 58.38 31.78 57.02 31.11 56.68 30.66 56.02 28.65 55.69 27.64 55.25 27.27 54.85 27.67`})]})}function ze(){return(0,I.jsxs)(`g`,{children:[(0,I.jsx)(`path`,{fillRule:`evenodd`,style:{fill:R},d:`M42.24 14.07C41.52 14.24 40.53 14.54 35.06 16.26 33.33 16.8 31.2 17.47 30.34 17.74 29.47 18.01 27.86 18.52 26.75 18.88 25.64 19.23 24.03 19.74 23.16 20.01 20.16 20.94 19.45 21.4 18.97 22.71 18.71 23.44 18.45 26.33 17.83 35.41 17.64 38.25 17.44 41.03 17.41 41.58 17.32 42.77 17.24 42.69 18.79 42.84L20.01 42.95 21.98 39.97C24.69 35.88 24.85 35.82 27.05 37.9 27.9 38.7 28.43 39.08 28.61 39.02 28.76 38.96 28.91 38.91 28.94 38.91 28.98 38.91 29.38 38.38 29.84 37.73 30.3 37.08 31.47 35.48 32.43 34.17 33.4 32.86 34.86 30.85 35.67 29.71 36.49 28.56 37.5 27.29 37.91 26.88 39.73 25.07 41.01 26.43 43.32 32.67 43.76 33.84 44.3 35.28 44.52 35.86 44.74 36.44 44.97 37.28 45.04 37.74 45.19 38.71 45.17 38.71 46.63 38.03 47.69 37.53 47.77 37.46 47.68 37.02 47.58 36.52 46.97 30.64 46.79 28.41 46.73 27.69 46.62 26.43 46.53 25.61 46.44 24.79 46.24 22.87 46.09 21.32 45.61 16.44 45.5 15.66 45.22 15.12 44.72 14.15 43.59 13.76 42.24 14.07M29.38 22.45C26.04 23.47 24.49 27.62 26.6 29.91 29.17 32.7 34.15 30.16 34.16 26.05 34.16 23.38 31.9 21.68 29.38 22.45M46.7 41.5C39.3 44.23 28.33 46.04 20.1 45.88L17.21 45.82 17.16 46.88C17.08 48.22 17.33 49.03 18.01 49.68 18.73 50.37 19.73 50.35 23.77 49.53 25.46 49.19 29.12 48.47 31.91 47.93 46.31 45.14 46.9 44.99 47.57 43.91 47.95 43.3 48.25 41.29 47.99 41.15 47.91 41.11 47.33 41.26 46.7 41.5`}),(0,I.jsx)(`path`,{style:{fill:L.coral},d:`M29.72 22.45C25.84 23.34 24.28 28.36 27.25 30.42 29.34 31.88 32.91 30.43 33.83 27.75 34.92 24.55 32.75 21.76 29.72 22.45`}),(0,I.jsx)(`path`,{style:{fill:L.mint},d:`M12.96 14.29C12.87 14.41 12.7 15.03 12.58 15.68 12.37 16.82 11.59 18.26 11.18 18.26 11.08 18.26 10.88 18.46 10.72 18.7 10.36 19.25 10.59 19.58 11.45 19.74 12.18 19.88 13.08 20.63 13.54 21.49 14.23 22.76 14.75 22.53 15.15 20.79 15.39 19.71 15.51 19.51 16.4 18.66 17.54 17.58 17.51 17.36 16.18 16.85 15.16 16.47 14.84 16.19 14.14 15.1 13.56 14.2 13.22 13.96 12.96 14.29M49.04 24.13C48.56 24.86 48.91 25.31 50.59 26.09 53.89 27.64 54.85 29.82 53.45 32.6 52.01 35.43 46.84 38.54 40.51 40.39 39.73 40.62 38.88 40.89 38.62 40.99 37.24 41.52 30.85 42.64 27.54 42.93 20.72 43.52 13.63 42.49 10.57 40.46 5.81 37.3 7.51 32.32 14.74 28.24 15.84 27.61 16.17 27.1 15.9 26.4 15.66 25.78 15.35 25.84 13.19 26.94 6 30.61 2.97 35.32 4.95 39.74 7.86 46.21 22.78 47.8 40.05 43.46 51.97 40.47 58.57 36.38 59.47 31.43 60.09 27.97 57.74 25.34 52.93 24.12 50.6 23.53 49.43 23.54 49.04 24.13`}),(0,I.jsx)(`path`,{style:{fill:L.grape},d:`M34.82 8.91C33.48 10.04 34.21 12.14 35.94 12.14 37.29 12.14 38.18 10.99 37.77 9.77 37.36 8.53 35.81 8.08 34.82 8.91M53.15 43.16C53 43.28 52.74 43.86 52.57 44.45 52.18 45.78 51.76 46.32 50.64 46.93 49.52 47.53 49.45 47.89 50.33 48.34 51.34 48.85 52.24 49.95 52.56 51.04 53.13 53.01 53.6 53 54.21 50.99 54.61 49.69 55.13 48.93 55.91 48.54 57.17 47.91 57.23 47.51 56.15 46.96 55.23 46.49 54.67 45.76 54.23 44.44 53.8 43.15 53.54 42.84 53.15 43.16M24.18 53.18C22.45 53.9 22.87 56.59 24.71 56.59 26.79 56.59 27.2 53.67 25.2 53.09 24.89 53.01 24.51 53.04 24.18 53.18`}),(0,I.jsx)(`path`,{style:{fill:L.yellow},d:`M51.76 11.04C51.21 12.77 50.56 13.61 49.24 14.34 48.6 14.69 48.72 15.07 49.59 15.48 50.54 15.93 51.11 16.69 51.62 18.22 52.06 19.57 52.26 19.54 52.79 18.08 53.29 16.69 53.87 15.91 54.86 15.31 55.76 14.77 55.77 14.48 54.92 14.02 53.91 13.46 53.5 12.99 52.89 11.66 52.23 10.21 52.06 10.12 51.76 11.04M11.06 48.22C10.99 48.35 10.71 48.88 10.46 49.41 9.95 50.48 9.45 50.99 8.59 51.33 7.89 51.61 7.85 52.1 8.52 52.37 9.51 52.79 10.3 53.85 10.89 55.58 11.09 56.18 11.48 55.88 11.87 54.84 12.24 53.87 13.33 52.56 13.79 52.56 14 52.56 14.5 52.06 14.5 51.85 14.5 51.77 14.19 51.54 13.81 51.34 12.98 50.92 12.36 50.14 11.93 48.99 11.6 48.09 11.31 47.83 11.06 48.22`})]})}function Be(){return(0,I.jsxs)(`g`,{transform:`translate(2 8) scale(.114) translate(-125 -122)`,children:[(0,I.jsx)(`path`,{style:{fill:L.coral},d:`M278 155 482 123C517 117 527 135 530 167L542 309Q543 329 561 341L631 404Q649 419 646 444 645 465 623 472L407 521Q374 531 345 519L156 436Q115 418 128 375L221 191Q238 163 278 155Z`}),(0,I.jsx)(`path`,{style:{fill:L.ink},d:`M317 183 461 161Q493 155 497 188L504 288Q508 320 478 326L318 356Q289 362 286 331L281 226Q278 194 317 183Z`}),(0,I.jsx)(`path`,{style:{fill:L.cream},d:`M304 386 553 340Q562 337 570 346L631 404Q649 419 646 444Q645 448 629 452L411 483Q382 492 367 474Z`}),(0,I.jsxs)(`g`,{style:{fill:L.cream},children:[(0,I.jsx)(`rect`,{x:`319`,y:`236`,width:`26`,height:`59`,rx:`13`}),(0,I.jsx)(`rect`,{x:`364`,y:`229`,width:`26`,height:`59`,rx:`13`})]}),(0,I.jsxs)(`g`,{style:{fill:L.ink},transform:`rotate(-11 470 411)`,children:[(0,I.jsx)(`rect`,{x:`369`,y:`380`,width:`61`,height:`25`,rx:`13`}),(0,I.jsx)(`rect`,{x:`444`,y:`380`,width:`61`,height:`25`,rx:`13`}),(0,I.jsx)(`rect`,{x:`518`,y:`380`,width:`57`,height:`25`,rx:`13`}),(0,I.jsx)(`rect`,{x:`392`,y:`421`,width:`58`,height:`25`,rx:`13`}),(0,I.jsx)(`rect`,{x:`462`,y:`421`,width:`65`,height:`25`,rx:`13`}),(0,I.jsx)(`rect`,{x:`539`,y:`421`,width:`58`,height:`25`,rx:`13`})]})]})}function Ve(){return(0,I.jsxs)(`g`,{transform:`translate(3 10) scale(.114) translate(-760 -140)`,children:[(0,I.jsx)(`path`,{style:{fill:L.blue},d:`M1226 153C1257 153 1273 195 1267 231Q1263 265 1237 268L1176 270V215C1176 178 1195 153 1226 153Z`}),(0,I.jsx)(`path`,{style:{fill:L.blue},d:`M824 376Q908 372 871 400C842 427 866 442 902 450L1113 480Q1188 479 1199 392C1207 447 1204 497 1163 511Q1134 521 1097 516C1055 510 991 507 957 507S869 511 826 512C781 513 758 483 760 441Q760 385 824 376Z`}),(0,I.jsx)(`path`,{style:{fill:L.cream},d:`M824 376 857 184Q864 133 911 141C1039 169 1124 151 1226 153Q1179 159 1184 241L1199 377C1202 434 1174 482 1117 480L902 450C864 445 849 429 871 400Q908 372 824 376Z`}),(0,I.jsxs)(`g`,{style:{fill:L.coral},children:[(0,I.jsx)(`path`,{d:`M982 198C1008 190 1030 197 1028 220L1023 265Q1020 295 1000 279C981 261 951 223 963 210Q970 202 982 198Z`}),(0,I.jsx)(`path`,{d:`M1063 220C1077 215 1100 237 1102 251Q1107 267 1084 282L1063 295Q1037 307 1040 278L1045 245Q1049 224 1063 220Z`}),(0,I.jsx)(`path`,{d:`M911 252C925 240 939 254 957 269L978 291Q995 311 961 316C938 318 907 316 898 308Q884 296 911 252Z`}),(0,I.jsx)(`path`,{d:`M1106 289Q1127 281 1134 304C1142 327 1146 352 1125 350Q1097 348 1073 335C1051 324 1072 311 1084 302Z`}),(0,I.jsx)(`path`,{d:`M927 338C946 334 972 334 985 343Q1004 353 984 384C970 408 957 418 940 403C922 389 896 356 913 345Z`}),(0,I.jsx)(`path`,{d:`M1010 375Q1025 363 1037 384C1049 407 1064 438 1044 442Q1025 448 1002 436C984 428 991 410 997 393Z`}),(0,I.jsx)(`path`,{d:`M1068 357C1084 359 1110 376 1120 389Q1130 402 1107 419C1090 432 1082 418 1073 401C1062 383 1043 355 1068 357Z`}),(0,I.jsx)(`path`,{d:`M1018 311C1037 312 1050 334 1034 343C1018 351 998 337 1005 320Q1009 311 1018 311Z`})]})]})}function He(){return(0,I.jsxs)(`g`,{transform:`translate(2 7) scale(.11) translate(-1380 -96)`,children:[(0,I.jsx)(`path`,{style:{fill:L.inkcap},d:`M1384 276C1394 238 1445 200 1497 158C1547 119 1604 97 1647 97C1690 97 1720 109 1745 138C1772 170 1791 184 1833 194C1870 201 1919 220 1922 257C1923 307 1891 339 1853 336C1801 335 1767 299 1701 294C1666 291 1620 294 1642 303Q1670 307 1675 333C1681 367 1697 389 1717 413C1735 434 1738 443 1719 464C1700 485 1692 502 1686 520Q1682 541 1653 541L1626 541Q1598 541 1594 519C1590 495 1578 474 1563 458C1545 440 1544 429 1559 410C1585 377 1608 337 1572 326C1554 320 1529 333 1506 340C1461 356 1428 357 1402 340Q1371 319 1384 276Z`}),(0,I.jsx)(`path`,{style:{fill:L.cream},d:`M1634 362Q1641 346 1649 362C1660 390 1676 404 1705 424Q1721 435 1704 453C1685 475 1677 490 1671 513Q1670 526 1653 525L1626 525Q1611 525 1610 513C1606 492 1592 465 1575 449Q1562 437 1577 424C1604 404 1620 390 1634 362Z`}),(0,I.jsx)(`path`,{style:{fill:L.inkcap},d:`M1634 456A18 18 0 1 1 1648 456V492Q1648 500 1641 500T1634 492Z`}),(0,I.jsx)(`path`,{style:{fill:L.inkcap},d:`M1780 391Q1786 386 1793 396C1810 420 1828 444 1827 467C1826 508 1768 510 1753 480C1741 456 1762 413 1780 391Z`})]})}var{coral:W,blue:G,mint:K,grape:q,yellow:J,cream:Y,ink:X}=L,Ue={bonsai:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`path`,{fill:`none`,stroke:K,strokeWidth:`3.7`,strokeLinecap:`round`,d:`M35 27.5C36 25 35.5 22.5 34 21S31.5 17.5 31.5 14M36 27C40 26.8 43 26 45 24S47 20.5 47.5 18.5M30.5 31C32.5 26.5 30.5 24.6 26.5 24 22 23.5 18.5 21.6 16.8 18.5M29 37C26.5 34.5 25 33.7 21.5 33.2S15.5 32 13 31.6M36 39.5C38 38 40 37.5 42 36.5S47 34 51 32.2`}),(0,I.jsx)(`path`,{fill:K,d:`M25.5 43.5C28 40.5 28 37 27.5 33 27.3 29.5 29.5 27 33.5 26.3L37.5 26V29.5C35 29.8 34.2 31.5 34.3 34 34.5 37.5 37 39.5 41 43.5Z`}),(0,I.jsx)(`circle`,{fill:G,cx:`31.5`,cy:`10.7`,r:`4.8`}),(0,I.jsx)(`circle`,{fill:q,cx:`16.6`,cy:`18.3`,r:`4.6`}),(0,I.jsx)(`circle`,{fill:J,cx:`47.9`,cy:`17.7`,r:`4.6`}),(0,I.jsx)(`circle`,{fill:J,cx:`12.8`,cy:`31.5`,r:`4.6`}),(0,I.jsx)(`circle`,{fill:G,cx:`50.9`,cy:`32.1`,r:`4.6`}),(0,I.jsx)(`path`,{fill:W,d:`M16 46H47.5C47.5 54 44 58 38 58H25.5C19.5 58 16 54 16 46Z`}),(0,I.jsx)(`rect`,{fill:W,x:`14`,y:`43`,width:`35.5`,height:`4.6`,rx:`2.3`})]}),computer:(0,I.jsx)(Be,{}),prints:(0,I.jsx)(Ve,{}),inkcap:(0,I.jsx)(He,{}),vishnu:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`path`,{style:{fill:W},d:`M6 37C6 21 17.5 9 32 9s26 12 26 28c0 2.2-1.8 4-4 4H10c-2.2 0-4-1.8-4-4Z`}),(0,I.jsx)(`circle`,{style:{fill:Y},cx:`19`,cy:`25`,r:`4`}),(0,I.jsx)(`circle`,{style:{fill:Y},cx:`33`,cy:`19.5`,r:`4.8`}),(0,I.jsx)(`circle`,{style:{fill:Y},cx:`46`,cy:`28`,r:`3.4`}),(0,I.jsx)(`rect`,{style:{fill:G},x:`13`,y:`39`,width:`38`,height:`18`,rx:`9`}),(0,I.jsx)(`rect`,{style:{fill:Y},x:`18.5`,y:`46.2`,width:`10`,height:`3.6`,rx:`1.8`}),(0,I.jsx)(`rect`,{style:{fill:Y},x:`21.7`,y:`43`,width:`3.6`,height:`10`,rx:`1.8`}),(0,I.jsx)(`circle`,{style:{fill:J},cx:`39`,cy:`50.5`,r:`2.7`}),(0,I.jsx)(`circle`,{style:{fill:Y},cx:`45`,cy:`45.5`,r:`2.7`})]}),generateText:(0,I.jsx)(Re,{}),generateMedia:(0,I.jsx)(ze,{}),buyApps:(0,I.jsxs)(`g`,{transform:`rotate(-6 32 32)`,children:[(0,I.jsx)(`circle`,{fill:J,cx:`32`,cy:`20`,r:`12`}),(0,I.jsx)(`circle`,{stroke:Y,strokeWidth:`4`,cx:`32`,cy:`20`,r:`6`}),(0,I.jsx)(z,{fill:J,transform:`translate(15.5 12) rotate(-60) scale(1.1 .85)`}),(0,I.jsx)(z,{fill:J,transform:`translate(48.5 12) rotate(60) scale(1.1 .85)`}),(0,I.jsx)(`path`,{fill:G,d:`M10 35H54L50 53Q49 58 44 58H20Q15 58 14 53Z`}),(0,I.jsx)(`rect`,{fill:W,x:`5`,y:`27`,width:`54`,height:`10`,rx:`5`}),(0,I.jsxs)(`g`,{fill:Y,children:[(0,I.jsx)(`rect`,{x:`20`,y:`41`,width:`5`,height:`11`,rx:`2.5`}),(0,I.jsx)(`rect`,{x:`29.5`,y:`41`,width:`5`,height:`11`,rx:`2.5`}),(0,I.jsx)(`rect`,{x:`39`,y:`41`,width:`5`,height:`11`,rx:`2.5`})]})]}),browseBazaar:(0,I.jsxs)(`g`,{transform:`rotate(-5 32 32)`,children:[(0,I.jsx)(`rect`,{fill:G,x:`10`,y:`14`,width:`44`,height:`38`,rx:`6`}),(0,I.jsx)(`rect`,{fill:G,x:`5`,y:`47`,width:`54`,height:`12`,rx:`6`}),(0,I.jsx)(`rect`,{fill:Y,x:`12`,y:`50.5`,width:`40`,height:`4.5`,rx:`2.25`}),(0,I.jsx)(`rect`,{fill:W,x:`2`,y:`4`,width:`60`,height:`9`,rx:`4.5`}),(0,I.jsx)(`path`,{fill:W,d:`M3 9H14.6V18A5.8 5.8 0 0 1 3 18Z`}),(0,I.jsx)(`path`,{fill:Y,d:`M14.6 9H26.2V18A5.8 5.8 0 0 1 14.6 18Z`}),(0,I.jsx)(`path`,{fill:W,d:`M26.2 9H37.8V18A5.8 5.8 0 0 1 26.2 18Z`}),(0,I.jsx)(`path`,{fill:Y,d:`M37.8 9H49.4V18A5.8 5.8 0 0 1 37.8 18Z`}),(0,I.jsx)(`path`,{fill:W,d:`M49.4 9H61V18A5.8 5.8 0 0 1 49.4 18Z`}),(0,I.jsx)(`g`,{transform:`translate(32 36.5) scale(.34)`,children:(0,I.jsx)(B,{})})]}),agent:(0,I.jsxs)(`g`,{transform:`translate(32 33) scale(2.02) translate(-47.2 -41.8)`,children:[(0,I.jsx)(`path`,{fill:G,d:`M46.666 29.533C39.623 30.116 34.627 34.849 34.603 40.96 34.585 45.387 36.412 47.971 40.602 49.445 42.036 49.95 42.076 50.049 41.491 51.666 40.968 53.111 41.167 53.761 42.201 53.988 43.463 54.265 46.679 52.293 47.929 50.475 48.134 50.178 48.268 50.13 49.332 49.977 56.938 48.882 60.956 43.889 59.582 37.237 58.622 32.59 53.42 29.07 48.034 29.424 47.904 29.432 47.289 29.482 46.666 29.533Z`}),(0,I.jsx)(`g`,{transform:`translate(47.3 40) scale(.36 .34)`,children:(0,I.jsx)(H,{})})]}),list:(0,I.jsxs)(`g`,{transform:`rotate(-7 32 32)`,children:[(0,I.jsx)(`path`,{style:{fill:G},d:`M12 13Q6 13 6 19V50Q6 57 13 57H47Q53 57 53 50V20Q53 13 47 13Z`}),(0,I.jsx)(`path`,{style:{fill:Y},d:`M19 7H39Q42 7 44 9L55 20Q57 22 57 26V44Q57 50 51 50H19Q13 50 13 44V13Q13 7 19 7Z`}),(0,I.jsx)(`path`,{style:{fill:W},d:`M39 7V18Q39 24 45 24H57Q57 22 55 20L44 9Q42 7 39 7Z`}),(0,I.jsxs)(`g`,{style:{fill:W},children:[(0,I.jsx)(`circle`,{cx:`22`,cy:`21`,r:`3`}),(0,I.jsx)(`circle`,{cx:`22`,cy:`31`,r:`3`}),(0,I.jsx)(`circle`,{cx:`22`,cy:`41`,r:`3`})]}),(0,I.jsx)(`path`,{style:{stroke:G},strokeWidth:`5`,strokeLinecap:`round`,d:`M31 21H32M31 31H46M31 41H42`})]}),chat:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`g`,{transform:`translate(3 11) scale(.22) translate(-449 -327)`,children:(0,I.jsx)(Pe,{})}),(0,I.jsx)(z,{transform:`translate(38.2 18) rotate(16) scale(.95 .6)`}),(0,I.jsx)(z,{transform:`translate(44.4 20.5) rotate(47) scale(.95 .6)`})]}),read:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`g`,{transform:`translate(4 20.5) scale(.56)`,children:(0,I.jsx)(Ne,{})}),(0,I.jsx)(`g`,{transform:`translate(32 38.6) scale(.3164)`,children:(0,I.jsx)(B,{})}),(0,I.jsx)(Me,{})]}),readConversations:(0,I.jsxs)(`g`,{transform:`translate(32 32) scale(.9) translate(-32 -32)`,children:[(0,I.jsx)(`g`,{transform:`translate(4 7.88) scale(.56)`,children:(0,I.jsx)(V,{fill:G})}),(0,I.jsx)(`g`,{transform:`translate(32.2 30.3) scale(.352)`,children:(0,I.jsx)(B,{})})]}),listAgents:(0,I.jsxs)(`g`,{transform:`translate(32 32) scale(1.04) translate(-32 -32)`,children:[(0,I.jsx)(`path`,{style:{fill:R},d:`M32.059 10.146C23.878 10.646 18.949 14.844 18.925 21.331 18.912 24.856 20.167 27.259 22.274 27.74 24.437 28.233 26.097 29.061 27.481 30.337 28.275 31.068 28.328 31.096 29.352 31.306 31.161 31.677 31.653 32.094 32.115 33.651 32.392 34.582 32.557 34.868 32.915 35.041 33.919 35.523 35.864 33.733 36.539 31.706L36.775 30.997 38.008 30.681C42.663 29.489 45.29 26.142 45.468 21.176 45.734 13.784 40.673 9.62 32.059 10.146Z`}),(0,I.jsx)(`g`,{transform:`translate(32.4 21.2) scale(.39)`,children:(0,I.jsx)(H,{onFigure:!0})}),(0,I.jsx)(`path`,{style:{fill:W},d:`M14.375 27.586C8.014 28.591 4.363 32.396 4.355 38.027 4.347 43.93 8.071 47.469 15.239 48.368L16.828 48.568 17.873 49.568C19.854 51.464 22.469 52.496 23.691 51.864 24.384 51.506 24.431 51.044 23.924 49.606 23.337 47.943 23.479 47.492 24.749 46.977 32.756 43.73 32.643 31.899 24.573 28.49 22.238 27.504 17.535 27.087 14.375 27.586Z`}),(0,I.jsx)(`g`,{transform:`translate(17.6 37.7) scale(.38 .36)`,children:(0,I.jsx)(H,{})}),(0,I.jsx)(`path`,{style:{fill:G},d:`M46.666 29.533C39.623 30.116 34.627 34.849 34.603 40.96 34.585 45.387 36.412 47.971 40.602 49.445 42.036 49.95 42.076 50.049 41.491 51.666 40.968 53.111 41.167 53.761 42.201 53.988 43.463 54.265 46.679 52.293 47.929 50.475 48.134 50.178 48.268 50.13 49.332 49.977 56.938 48.882 60.956 43.889 59.582 37.237 58.622 32.59 53.42 29.07 48.034 29.424 47.904 29.432 47.289 29.482 46.666 29.533Z`}),(0,I.jsx)(`g`,{transform:`translate(47.3 40) scale(.36 .34)`,children:(0,I.jsx)(H,{})})]}),createAgents:(0,I.jsxs)(`g`,{transform:`translate(32 32) scale(1.08) translate(-32 -32)`,children:[(0,I.jsx)(`path`,{style:{fill:R},d:`M20.436 24.499C13.35 25.216 7.504 28.799 5.442 33.687 3.114 39.208 4.438 45.791 8.593 49.358 10.446 50.949 10.34 50.831 10.34 51.301 10.34 51.796 10.106 52.294 9.281 53.558 7.191 56.76 12.108 56.905 16.701 53.777 17.517 53.221 17.715 53.135 18.015 53.201 20.013 53.639 25.739 53.051 28.595 52.113 35.47 49.857 39.129 44.162 37.83 37.738C37 31 33 26 26.717 24.428L24.075 24.413C22.623 24.405 20.985 24.444 20.436 24.499Z`}),(0,I.jsx)(`g`,{transform:`translate(21.9 40) scale(.46 .43)`,children:(0,I.jsx)(H,{onFigure:!0})}),(0,I.jsx)(`path`,{style:{fill:K},d:`M37.987 15.734C32.277 16.627 28.675 20.713 28.92 26.022 29.062 29.118 30.627 31.606 33.331 33.036 34.675 33.747 34.761 34.018 34.237 35.923 33.376 39.051 36.878 38.551 39.174 35.218 39.574 34.637 39.65 34.583 40.058 34.583 46.203 34.583 50.414 30.91 50.424 25.543 50.435 18.989 44.932 14.649 37.987 15.734Z`}),(0,I.jsx)(`g`,{transform:`translate(38.9 24.9) scale(.31)`,children:(0,I.jsx)(H,{})}),(0,I.jsx)(z,{fill:J,transform:`translate(48.1 15.7) rotate(31) scale(1.25 .85)`}),(0,I.jsx)(z,{fill:J,transform:`translate(52.2 19.8) rotate(70) scale(1.25 .85)`})]}),sendPrompts:(0,I.jsxs)(`g`,{transform:`translate(32 32) scale(1.08) translate(-32 -32)`,children:[(0,I.jsx)(`g`,{transform:`translate(4 13.2) scale(.412 .436)`,children:(0,I.jsx)(V,{fill:W})}),(0,I.jsx)(`g`,{transform:`translate(17.1 28.7) scale(.19)`,children:(0,I.jsx)(Fe,{})}),(0,I.jsx)(z,{fill:K,transform:`translate(48.1 26.4) rotate(65) scale(1.7 1.28)`}),(0,I.jsx)(z,{fill:K,transform:`translate(48.4 33.8) rotate(110) scale(1.7 1.28)`})]}),write:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ie,{}),(0,I.jsx)(Le,{})]}),run:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`rect`,{style:{fill:G},x:`6`,y:`9`,width:`52`,height:`43`,rx:`7`}),(0,I.jsx)(`path`,{style:{stroke:Y},strokeWidth:`5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`m17 22 9 8-9 8m17 0h12`})]}),stop:(0,I.jsx)(`rect`,{style:{fill:W},x:`12`,y:`12`,width:`40`,height:`40`,rx:`9`}),connected:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`path`,{fill:`none`,style:{stroke:G},strokeWidth:`12`,strokeLinecap:`round`,d:`M34 37Q43 21 26 20H18Q3 20 6 37q2 10 15 9`}),(0,I.jsx)(`path`,{fill:`none`,style:{stroke:W},strokeWidth:`12`,strokeLinecap:`round`,d:`M29 33Q20 50 38 53h8q16-1 12-17-2-11-14-10`}),(0,I.jsx)(`path`,{style:{stroke:J},strokeWidth:`4`,strokeLinecap:`round`,d:`m27 4 2 6m10-5-2 7m12 0-5 4`})]}),working:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`ellipse`,{style:{fill:K},cx:`23`,cy:`14`,rx:`13`,ry:`8`,transform:`rotate(-30 23 14)`}),(0,I.jsx)(`ellipse`,{style:{fill:J},cx:`48`,cy:`36`,rx:`13`,ry:`8`,transform:`rotate(35 48 36)`}),(0,I.jsx)(`ellipse`,{style:{fill:q},cx:`22`,cy:`48`,rx:`13`,ry:`8`,transform:`rotate(45 22 48)`}),(0,I.jsx)(`path`,{fill:`none`,style:{stroke:R},strokeWidth:`3`,strokeLinecap:`round`,d:`M42 8q13 2 13 13M43 55q-5 5-12 4M5 39q-5-9 1-17`})]}),complete:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`path`,{style:{fill:K},d:`M32 6q5-8 10 0 9-3 10 6 9 2 5 11 8 6 0 12 3 9-6 11-1 9-10 6-6 8-12 0-9 3-11-6-9-2-6-11-8-6 0-12-3-9 6-11 1-9 10-6Z`}),(0,I.jsx)(`path`,{fill:`none`,style:{stroke:X},strokeWidth:`6`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`m23 29 7 7 13-15`}),(0,I.jsx)(`path`,{style:{stroke:R},strokeWidth:`3`,strokeLinecap:`round`,d:`m4 8 5 6m48-4 5-5M2 24l6 1`})]}),installApps:(0,I.jsxs)(`g`,{transform:`rotate(-6 32 32)`,children:[(0,I.jsx)(`rect`,{style:{fill:G},x:`9`,y:`26`,width:`46`,height:`32`,rx:`10`}),(0,I.jsx)(`rect`,{style:{fill:Y},x:`17`,y:`33`,width:`30`,height:`18`,rx:`5`}),(0,I.jsx)(`path`,{style:{fill:K},d:`M22 38h8v8h-8z`}),(0,I.jsx)(`path`,{style:{fill:q},d:`M34 38h8v8h-8z`}),(0,I.jsx)(`path`,{style:{stroke:W},strokeWidth:`6`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M32 4v17m-8-7 8 8 8-8`})]}),restricted:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`path`,{fill:`none`,style:{stroke:W},strokeWidth:`9`,strokeLinecap:`round`,d:`M16 23V19q0-17 16-17t16 17v4`}),(0,I.jsx)(`rect`,{style:{fill:W},x:`8`,y:`26`,width:`48`,height:`36`,rx:`9`}),(0,I.jsx)(`path`,{style:{fill:Y},d:`M32 34a7 7 0 0 0-4 13v7h8v-7a7 7 0 0 0-4-13Z`})]}),error:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`path`,{style:{fill:W},d:`M32 6q5-8 10 0 9-3 10 6 9 2 5 11 8 6 0 12 3 9-6 11-1 9-10 6-6 8-12 0-9 3-11-6-9-2-6-11-8-6 0-12-3-9 6-11 1-9 10-6Z`}),(0,I.jsx)(`path`,{fill:`none`,style:{stroke:Y},strokeWidth:`7`,strokeLinecap:`round`,d:`M32 18v15`}),(0,I.jsx)(`circle`,{style:{fill:Y},cx:`32`,cy:`45`,r:`4`})]}),trellis:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(`g`,{fill:J,children:[(0,I.jsx)(`rect`,{x:`17.25`,y:`9`,width:`3.9`,height:`49.2`,rx:`1.95`}),(0,I.jsx)(`rect`,{x:`42.95`,y:`9`,width:`3.9`,height:`49.2`,rx:`1.95`}),(0,I.jsx)(`rect`,{x:`30.4`,y:`18`,width:`3.2`,height:`26`}),(0,I.jsx)(`rect`,{x:`14.8`,y:`15.75`,width:`34.4`,height:`3.1`,rx:`1.55`}),(0,I.jsx)(`rect`,{x:`14.8`,y:`28.85`,width:`34.4`,height:`3.1`,rx:`1.55`}),(0,I.jsx)(`rect`,{x:`14.8`,y:`42.55`,width:`34.4`,height:`3.1`,rx:`1.55`})]}),(0,I.jsx)(`path`,{fill:`none`,stroke:K,strokeWidth:`3`,strokeLinecap:`round`,d:`M21.9 56.1C31.5 54.4 32.9 47 32.1 45.8`}),(0,I.jsx)(`path`,{fill:`none`,stroke:K,strokeWidth:`3`,strokeLinecap:`round`,d:`M32 44.2C28.7 41.8 25.2 35.7 32 32.3 38.8 28 38.9 24 31.9 18.8 32.4 16.3 32.8 14.7 34.5 12.2`}),(0,I.jsx)(U,{transform:`translate(32.1 14.1) rotate(45) scale(0.45 0.86)`}),(0,I.jsx)(U,{transform:`translate(32.2 14.7) rotate(-60) scale(0.42 0.58)`}),(0,I.jsx)(U,{transform:`translate(34.8 28.3) rotate(65) scale(0.38 0.8)`}),(0,I.jsx)(U,{transform:`translate(28.2 33.1) rotate(-51) scale(0.5 0.57)`}),(0,I.jsx)(U,{transform:`translate(28.6 53.3) rotate(-48) scale(0.47 0.6)`}),(0,I.jsx)(`circle`,{fill:W,cx:`31.9`,cy:`18.8`,r:`4`}),(0,I.jsx)(`circle`,{fill:G,cx:`32`,cy:`32.3`,r:`4`}),(0,I.jsx)(`circle`,{fill:q,cx:`32`,cy:`44.2`,r:`4`})]}),games:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`path`,{fill:G,d:`M18.5 28.5H45.5C49.5 29.5 53 32 54 35 55 37.5 56.8 45.5 56.6 48 56.5 53 52.5 57.5 47 58H15C9.5 56.5 6.6 51 7.6 45.5 8.6 39.5 9.3 35 10.5 33 12 31 14.5 29.5 18.5 28.5Z`}),(0,I.jsx)(`ellipse`,{fill:Y,cx:`26.8`,cy:`37.9`,rx:`9.1`,ry:`5.6`}),(0,I.jsx)(`ellipse`,{fill:X,cx:`27`,cy:`37.6`,rx:`4.7`,ry:`2.2`}),(0,I.jsx)(`path`,{fill:X,d:`M23.1 26V35.4A4 4.2 0 0 0 31.1 35.4V26Z`}),(0,I.jsx)(`circle`,{fill:W,cx:`27.1`,cy:`18.3`,r:`12.4`}),(0,I.jsx)(`circle`,{fill:Y,cx:`22.6`,cy:`14.3`,r:`3.05`}),(0,I.jsx)(`ellipse`,{fill:J,cx:`45.1`,cy:`37.2`,rx:`5.6`,ry:`3.95`}),(0,I.jsx)(`ellipse`,{fill:Y,cx:`40.1`,cy:`46.6`,rx:`6.2`,ry:`4.4`})]}),oyster:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`path`,{fill:q,d:`M35.5 6C33.7 6.3 32.3 7.6 31.4 9.4 30.9 10.3 30.4 10.3 29.5 10 25.5 9 20.6 11.6 19.6 15.9 19.4 16.6 19 17 18 17.1 14.5 17.6 12 20.6 12.1 24.2 12.2 25.4 12 25.9 11.5 26.5 7.5 30 10.5 34.5 17.5 34.4 15.3 32.6 16 31 19 29 26 24 37 19.5 43.5 19 46 19 46 22 43 25.5 46.5 23.5 51.5 18.5 53.5 15 55 11 50 7 45 9 43.8 9.4 43.3 9.2 42.5 8 40.7 6.3 38 5.6 35.5 6Z`}),(0,I.jsx)(`circle`,{fill:Y,cx:`34.9`,cy:`41.9`,r:`11.3`}),(0,I.jsxs)(`g`,{fill:X,children:[(0,I.jsx)(`rect`,{x:`29.9`,y:`33.2`,width:`3.2`,height:`5.6`,rx:`1.6`}),(0,I.jsx)(`rect`,{x:`36.7`,y:`33.2`,width:`3.2`,height:`5.6`,rx:`1.6`})]}),(0,I.jsx)(`path`,{fill:q,d:`M49.5 39C47.9 39.3 46.5 40 46.1 41.6 45.8 43.2 45.5 43.5 44 43.5 38.5 43.5 35 48 39 49.5 40 50 39.5 50.5 38 51 35.5 52.5 32.5 52 30 51 29 50.5 28.5 50 29.5 50 33 47.5 30 43.5 24.5 43.5 23.3 43.5 22.9 43.3 22.5 43 20.5 40.5 19 40 17.5 39.5 13 39.5 13 44 17 47.5 18.3 48.4 18.6 48.7 19 49.5 20.5 53 23 55 26 55 26.8 55 27 55.3 27.5 56 31 58.5 36.5 58.5 40 56 40.8 55.2 41.2 55 42 55 45 55 47.5 53 49 49.5 49.6 48.5 50 48 50.5 47.5 56 43.5 55 38.5 49.5 39Z`}),(0,I.jsx)(`path`,{fill:`none`,stroke:J,strokeWidth:`3`,strokeLinecap:`round`,d:`M46.6 31.8 49.2 27.8 M49.4 35.5 52.8 33.7 M21.5 32.5 22.9 33.5 M19.3 37.5 21.1 38.1`})]}),tourtois:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`rect`,{fill:Y,x:`11.07`,y:`35.73`,width:`26.8`,height:`9.7`,rx:`3.25`,transform:`rotate(-5 24.47 40.58)`}),(0,I.jsx)(`path`,{fill:J,d:`M14.8 16C19 14.6 23 13.5 26.5 12.6 28.4 12.1 29.6 13.4 30.1 15.3L31.6 21 17.4 37.6C13.8 38.2 10.6 37.8 10.1 35.4L9.2 27.8C9.1 26.1 10.1 24.7 11.6 24.1 11.4 22.4 11.4 20.6 11.8 19.1 12.3 17.4 13.3 16.5 14.8 16Z`}),(0,I.jsx)(`path`,{fill:W,d:`M14.0 24.1Q13.3 21.2 16.2 20.4L30.7 16.2Q33.6 15.4 34.6 18.2L36.0 22.7Q37.0 25.5 34.7 27.4L20.2 39.7Q17.9 41.6 17.2 38.7Z`}),(0,I.jsx)(`path`,{fill:G,d:`M21 23.4 35.5 20.6C37.3 20.2 38.6 21 38.9 22.6L40 34.5C40.1 36.2 39.1 37.3 37.5 37.7 32.6 39.9 26 41 21 41 16 41 12.2 40.2 11 38.8 10.4 37.6 10.8 36.4 12.4 37L19.6 38.4 18.4 27C18.2 25.2 19.3 23.7 21 23.4Z`}),(0,I.jsx)(`path`,{fill:Y,d:`M22.8 29.6 34.8 26.9C36.2 26.6 37 27.3 37.2 28.6L37.9 33C38.1 34.2 37.5 35 36.3 35.3L24.3 37.8C23 38.1 22.3 37.5 22.1 36.3L21.3 31.6C21.1 30.6 21.7 29.8 22.8 29.6Z`}),(0,I.jsxs)(`g`,{fill:Y,children:[(0,I.jsx)(`circle`,{cx:`14.7`,cy:`18.45`,r:`1`}),(0,I.jsx)(`circle`,{cx:`17.6`,cy:`17.65`,r:`1`}),(0,I.jsx)(`circle`,{cx:`20.5`,cy:`16.85`,r:`1`}),(0,I.jsx)(`circle`,{cx:`17.9`,cy:`22.2`,r:`1`}),(0,I.jsx)(`circle`,{cx:`21`,cy:`21.5`,r:`1`}),(0,I.jsx)(`circle`,{cx:`24.1`,cy:`20.75`,r:`1`}),(0,I.jsx)(`circle`,{cx:`28.2`,cy:`25.3`,r:`1`})]}),(0,I.jsx)(`circle`,{fill:W,cx:`21.7`,cy:`26.6`,r:`1`}),(0,I.jsx)(`circle`,{fill:J,cx:`24.9`,cy:`25.9`,r:`1.05`}),(0,I.jsxs)(`g`,{fill:K,children:[(0,I.jsx)(`ellipse`,{cx:`8.8`,cy:`36.6`,rx:`3.6`,ry:`1.9`,transform:`rotate(22 8.8 36.6)`}),(0,I.jsx)(`path`,{d:`M12 41C10 41.5 7.5 44.5 7 46.5 7 48 8.5 49.5 10.5 50 12.5 50.5 13.5 50 15 48 15.5 47 16.5 47.5 19 50 22 49.5 22 46.5 22 45.5 20.5 45.5 17 45 16.5 44.5 16.5 44 16.5 42 13.5 40.5L12 41Z`}),(0,I.jsx)(`path`,{d:`M40 33C39 38 36 42 34.5 41.5 32.5 40.5 29.5 42 28.5 44 26 49 27.5 51.5 32.5 51 36 51 37 50 36 46.5 36 45 37 44.5 38 44.5 38.5 45.5 40.5 49 43.5 50 46.5 47.5 47.5 46.5 46 43.5 44 42 43 41.5 43.5 40.5 44.5 39.5 46 38 47 37.5L47 33Z`})]}),(0,I.jsx)(`ellipse`,{fill:K,cx:`46.4`,cy:`30.6`,rx:`8.1`,ry:`8.3`}),(0,I.jsxs)(`g`,{fill:X,children:[(0,I.jsx)(`rect`,{x:`45.05`,y:`26.95`,width:`2.25`,height:`4.6`,rx:`1.1`,transform:`rotate(-6 46.2 29.3)`}),(0,I.jsx)(`rect`,{x:`49.25`,y:`26.4`,width:`2.25`,height:`4.6`,rx:`1.1`,transform:`rotate(-6 50.4 28.7)`})]}),(0,I.jsx)(`path`,{fill:W,d:`M46.8 32.2H51C51 34.3 50 35.4 48.9 35.4S46.8 34.3 46.8 32.2Z`,transform:`rotate(-8 48.9 33.5)`}),(0,I.jsx)(`path`,{fill:`none`,stroke:J,strokeWidth:`3`,strokeLinecap:`round`,d:`M50.9 17.7 50.5 19.7 M55.2 20.1 53.4 21.9 M56.5 24.5 55.7 24.7`})]}),allApps:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`rect`,{fill:W,x:`7`,y:`7.25`,width:`23.2`,height:`22.7`,rx:`4.6`,transform:`rotate(-6.2 18.6 18.6)`}),(0,I.jsx)(`rect`,{fill:G,x:`33.9`,y:`7.25`,width:`23.2`,height:`22.7`,rx:`4.6`,transform:`rotate(6.2 45.5 18.6)`}),(0,I.jsx)(`rect`,{fill:K,x:`7`,y:`34.15`,width:`23.2`,height:`22.7`,rx:`4.6`,transform:`rotate(6.2 18.6 45.5)`}),(0,I.jsx)(`rect`,{fill:J,x:`33.9`,y:`34.15`,width:`23.2`,height:`22.7`,rx:`4.6`,transform:`rotate(-6.2 45.5 45.5)`})]}),search:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`path`,{fill:`none`,stroke:G,strokeWidth:`6.5`,d:`M37 37.5 43 43.5`}),(0,I.jsx)(`path`,{fill:`none`,stroke:W,strokeWidth:`12.6`,strokeLinecap:`round`,d:`M44.2 43.8 51.4 51.8`}),(0,I.jsx)(`path`,{fill:`none`,stroke:J,strokeWidth:`3`,strokeLinecap:`round`,d:`M47.2 42.4 52.8 47.8`}),(0,I.jsx)(`ellipse`,{fill:G,cx:`25.6`,cy:`24.6`,rx:`19.25`,ry:`18.6`}),(0,I.jsx)(`ellipse`,{fill:Y,cx:`25.2`,cy:`24.1`,rx:`14.2`,ry:`13.6`})]}),browser:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`rect`,{fill:W,x:`5.9`,y:`6.15`,width:`52.2`,height:`51.7`,rx:`5.5`}),(0,I.jsx)(`path`,{fill:Y,d:`M10 16.5H29.4C30.3 16.1 31 14.4 31.8 12.5 32.5 10.9 33.2 10 34.5 10H52.2C53.4 10 54 10.7 54 12V16.5C55.2 16.5 56 17.1 56 18.3V52.4C56 53.7 55.1 54.6 53.8 54.6H10.2C8.9 54.6 8 53.7 8 52.4V18.2C8 17.1 8.7 16.5 10 16.5Z`}),(0,I.jsx)(`circle`,{fill:J,cx:`12.2`,cy:`11.9`,r:`1.95`}),(0,I.jsx)(`circle`,{fill:G,cx:`18.6`,cy:`11.9`,r:`1.95`}),(0,I.jsx)(`circle`,{fill:q,cx:`25.1`,cy:`11.9`,r:`1.95`}),(0,I.jsx)(`circle`,{fill:K,cx:`32`,cy:`34.9`,r:`14.5`}),(0,I.jsxs)(`g`,{fill:`none`,stroke:Y,strokeWidth:`3`,children:[(0,I.jsx)(`ellipse`,{cx:`32`,cy:`34.9`,rx:`7.7`,ry:`13.3`}),(0,I.jsx)(`path`,{d:`M17.5 34.9H46.5`})]})]}),internet:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`ellipse`,{fill:`none`,stroke:J,strokeWidth:`4.4`,cx:`32.2`,cy:`30.2`,rx:`25.6`,ry:`8.1`,transform:`rotate(-20.8 32.2 30.2)`}),(0,I.jsx)(`circle`,{fill:G,cx:`32`,cy:`32`,r:`21.1`}),(0,I.jsxs)(`g`,{fill:`none`,stroke:Y,strokeWidth:`3`,children:[(0,I.jsx)(`ellipse`,{cx:`32`,cy:`31.8`,rx:`12.2`,ry:`18.7`}),(0,I.jsx)(`path`,{d:`M32 13.1V50.5M15 20.4Q32 29 49 20.4M12.5 39Q32 44.6 51.5 39`})]}),(0,I.jsx)(`path`,{fill:`none`,stroke:J,strokeWidth:`4.4`,d:`M6.6 30.2A25.6 8.1 0 0 0 57.8 30.2`,transform:`rotate(-20.8 32.2 30.2)`})]}),members:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`circle`,{fill:G,cx:`41.9`,cy:`22.85`,r:`12.2`}),(0,I.jsx)(`path`,{fill:G,d:`M36 34C33.8 34.8 32.2 35.8 31 37 37.5 39.5 40.5 43.5 40.5 49.5V53.5H54.5C57 53.5 58 51 58 47.5 58 40 55 35.5 49 34Z`}),(0,I.jsx)(`circle`,{fill:W,cx:`22.95`,cy:`27.6`,r:`12.85`}),(0,I.jsx)(`path`,{fill:W,d:`M15.5 38C10.5 39 7.5 42.5 6.5 47 5.5 50.5 6 53.5 8.5 53.5H38.5C42 52 40 43 36 40 34.5 39 32 38 31 38Z`}),(0,I.jsxs)(`g`,{fill:X,children:[(0,I.jsx)(`circle`,{cx:`18.3`,cy:`28`,r:`1.6`}),(0,I.jsx)(`circle`,{cx:`27.9`,cy:`28`,r:`1.6`}),(0,I.jsx)(`circle`,{cx:`39.1`,cy:`23.05`,r:`1.55`}),(0,I.jsx)(`circle`,{cx:`47.25`,cy:`23.05`,r:`1.55`})]})]}),sell:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`path`,{fill:J,d:`M6.4 41.2V48.4C6.4 51.4 13.2 54 21.8 54S37.2 51.4 37.2 48.4V41.2C37.2 37.8 30.4 35 21.8 35S6.4 37.8 6.4 41.2Z`}),(0,I.jsx)(`ellipse`,{fill:Y,cx:`21.9`,cy:`40.8`,rx:`13.2`,ry:`3.6`}),(0,I.jsxs)(`g`,{transform:`rotate(-3 22.5 30) translate(0.5 0)`,children:[(0,I.jsx)(`path`,{fill:J,d:`M7.5 26V34C7.5 37.3 14.2 40 22.5 40S37.5 37.3 37.5 34V26C37.5 22.7 30.8 20 22.5 20S7.5 22.7 7.5 26Z`}),(0,I.jsx)(`ellipse`,{fill:Y,cx:`23.7`,cy:`26.55`,rx:`13.05`,ry:`4.4`})]}),(0,I.jsxs)(`g`,{transform:`translate(46.3 40.3) rotate(-25)`,children:[(0,I.jsx)(`path`,{fill:W,d:`M-8.5-10Q-8.5-12-7-13L-1.5-16.3Q0-17.2 1.5-16.3L7-13Q8.5-12 8.5-10V9Q8.5 12 5.5 12H-5.5Q-8.5 12-8.5 9Z`}),(0,I.jsx)(`circle`,{fill:Y,cx:`0`,cy:`-10.7`,r:`2.2`})]}),(0,I.jsx)(z,{fill:J,transform:`translate(38.2 18.6) scale(1.1 .86)`}),(0,I.jsx)(z,{fill:J,transform:`translate(42.8 21.2) rotate(45) scale(1.1 .85)`})]}),schedule:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`rect`,{fill:Y,x:`6`,y:`11`,width:`47.6`,height:`44`,rx:`6`}),(0,I.jsx)(`path`,{fill:W,d:`M12 11H47.6Q53.6 11 53.6 17V21.5H6V17Q6 11 12 11Z`}),(0,I.jsxs)(`g`,{fill:Y,children:[(0,I.jsx)(`circle`,{cx:`16.1`,cy:`16.15`,r:`3.4`}),(0,I.jsx)(`circle`,{cx:`43.4`,cy:`16.15`,r:`3.4`})]}),(0,I.jsxs)(`g`,{fill:G,children:[(0,I.jsx)(`rect`,{x:`13.6`,y:`6`,width:`5`,height:`11.2`,rx:`2.5`}),(0,I.jsx)(`rect`,{x:`40.9`,y:`6`,width:`5`,height:`11.2`,rx:`2.5`})]}),(0,I.jsxs)(`g`,{fill:K,children:[(0,I.jsx)(`rect`,{x:`11.1`,y:`25.1`,width:`6.9`,height:`6.6`,rx:`1.8`}),(0,I.jsx)(`rect`,{x:`20.7`,y:`25.1`,width:`6.9`,height:`6.6`,rx:`1.8`}),(0,I.jsx)(`rect`,{x:`30.4`,y:`25.1`,width:`6.9`,height:`6.6`,rx:`1.8`}),(0,I.jsx)(`rect`,{x:`20.7`,y:`33.9`,width:`6.9`,height:`6.6`,rx:`1.8`}),(0,I.jsx)(`rect`,{x:`30.4`,y:`33.9`,width:`6.9`,height:`6.6`,rx:`1.8`}),(0,I.jsx)(`rect`,{x:`11.1`,y:`42.7`,width:`6.9`,height:`6.6`,rx:`1.8`}),(0,I.jsx)(`rect`,{x:`30.4`,y:`42.7`,width:`6.9`,height:`6.6`,rx:`1.8`})]}),(0,I.jsxs)(`g`,{fill:q,children:[(0,I.jsx)(`rect`,{x:`40.4`,y:`25.1`,width:`6.9`,height:`6.6`,rx:`1.8`}),(0,I.jsx)(`rect`,{x:`11.1`,y:`33.9`,width:`6.9`,height:`6.6`,rx:`1.8`}),(0,I.jsx)(`rect`,{x:`20.7`,y:`42.7`,width:`6.9`,height:`6.6`,rx:`1.8`})]}),(0,I.jsx)(`circle`,{fill:J,cx:`45.5`,cy:`45.6`,r:`12.2`}),(0,I.jsx)(`path`,{fill:`none`,stroke:X,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M45.1 39.3V46.2L51.3 49.8`}),(0,I.jsx)(`circle`,{fill:X,cx:`45.1`,cy:`46.2`,r:`2.5`})]}),loop:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`path`,{style:{stroke:W},strokeWidth:`6`,strokeLinecap:`round`,d:`M47.5 14.5C43 11 37.5 9 32 9 19.5 9 9 19.5 9 32S19.5 55 32 55 55 44.5 55 32`}),(0,I.jsx)(`path`,{style:{fill:W},d:`M53.5 21.5Q54.5 20 55 22L58 33Q58.5 35 56.5 34.5L48.5 32.5Q47 32 48 30.5Z`}),(0,I.jsx)(`g`,{transform:`translate(18 21) scale(.28)`,children:(0,I.jsx)(V,{fill:G})}),(0,I.jsxs)(`g`,{style:{fill:Y},children:[(0,I.jsx)(`rect`,{x:`25`,y:`27.5`,width:`14`,height:`3`,rx:`1.5`}),(0,I.jsx)(`rect`,{x:`25`,y:`33.5`,width:`9`,height:`3`,rx:`1.5`})]})]}),fungi:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`ellipse`,{fill:Y,cx:`33.5`,cy:`43.6`,rx:`18.6`,ry:`14.4`,transform:`rotate(-6 33.5 43.6)`}),(0,I.jsx)(`path`,{fill:W,d:`M29.5 6.5C22 7.5 16 11 11 18.5 4 29 4.6 39.6 13.5 42.2 24 45 44 40.5 54 34.6 57.6 32.6 58.6 29.2 57.5 25 56.5 20 53 16 48.5 13 43.5 8 37 5.5 29.5 6.5Z`}),(0,I.jsxs)(`g`,{fill:Y,children:[(0,I.jsx)(`ellipse`,{cx:`29`,cy:`15.7`,rx:`8.7`,ry:`6.3`,transform:`rotate(-15.5 29 15.7)`}),(0,I.jsx)(`ellipse`,{cx:`50.8`,cy:`20.1`,rx:`6.5`,ry:`3.5`,transform:`rotate(51.6 50.8 20.1)`}),(0,I.jsx)(`ellipse`,{cx:`13`,cy:`26.8`,rx:`4.2`,ry:`3.3`,transform:`rotate(-54.5 13 26.8)`})]}),(0,I.jsxs)(`g`,{fill:X,transform:`translate(26.6 46.6) scale(1.1) translate(-33.7 -38.5)`,children:[(0,I.jsx)(`rect`,{x:`31.85`,y:`35.9`,width:`3.75`,height:`5.25`,rx:`1.85`}),(0,I.jsx)(`path`,{d:`M 47.4 34.3 C 46 35 44.6 35.8 43.5 36.7 42.9 37.2 43.2 38.3 44 38.4 45.2 38.6 46.5 38.6 47.7 38.4 48.4 38.3 48.3 37.3 47.6 37.3 46.6 37.4 45.7 37.4 45 37.3 45.9 36.7 46.9 36.1 48 35.6 48.7 35.3 48.2 34 47.4 34.3 Z`}),(0,I.jsx)(`path`,{d:`M 37.4 41.1 C 38.6 44.3 42.6 44.3 43.6 40.5 43.7 40 43.1 39.8 42.9 40.3 41.9 42.8 39.1 42.9 38.3 40.7 38.1 40.2 37.3 40.5 37.4 41.1 Z`})]})]})};function Z({name:e,size:t}){return(0,I.jsx)(`svg`,{viewBox:`0 0 64 64`,width:t,height:t,fill:`none`,stroke:`none`,"aria-hidden":`true`,focusable:`false`,"data-sigil":e,children:Ue[e]})}var Q=e(n(),1),We=(e,t)=>p.of(e,`prints`,`share`,t);async function Ge(e,t,n){return n.kind===`stop`?e.stop(t):(n.kind===`reshare`&&await e.stop(t),e.share({requestId:t,showPrompt:n.showPrompt}))}function Ke({app:e,printId:t}){let n=l(),r=We(e,t),[i,a]=(0,Q.useState)(!0),[o,s]=(0,Q.useState)(!1),c=A({...m(e,u,r,e=>e.status(t)),enabled:e.capabilities.has(u)}),d=h({mutationFn:n=>Ge(e.capabilities.require(u),t,n),onSuccess:e=>{n.setQueryData(r,e),s(!1)}}),f=c.data?.shared===!0?c.data:null,p=f===null?i:f.showPrompt,g=c.isPending||d.isPending,_=d.isError||c.isError;return(0,Q.useEffect)(()=>{_&&ne(`Sharing is unavailable right now. Try again.`,`prints-share-error`)},[_]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(M,{children:[(0,I.jsxs)(`span`,{className:`prints-info-label`,children:[(0,I.jsx)(Z,{name:`connected`,size:16}),`Share`]}),(0,I.jsxs)(`span`,{className:`prints-info-value prints-share-value`,children:[(0,I.jsx)(P,{"aria-label":`Public link`,checked:f!==null,disabled:g||c.isError,onCheckedChange:e=>{d.mutate(e?{kind:`share`,showPrompt:i}:{kind:`stop`})}}),f===null?(0,I.jsx)(`span`,{className:`prints-share-note`,children:`Only your Team can see it`}):(0,I.jsx)(F,{density:`compact`,label:o?`Copied`:`Copy link`,icon:o?(0,I.jsx)(N,{}):(0,I.jsx)(we,{}),onClick:()=>{navigator.clipboard.writeText(f.url).then(()=>{s(!0)},()=>{s(!1)})}})]})]}),(0,I.jsxs)(M,{children:[(0,I.jsxs)(`span`,{className:`prints-info-label`,children:[(0,I.jsx)(Z,{name:`sendPrompts`,size:16}),`Shared page`]}),(0,I.jsxs)(`span`,{className:`prints-info-value prints-share-value`,children:[(0,I.jsx)(P,{"aria-label":`Show prompt on shared page`,checked:p,disabled:g||c.isError,onCheckedChange:e=>{a(e),f!==null&&d.mutate({kind:`reshare`,showPrompt:e})}}),(0,I.jsx)(`span`,{className:`prints-share-note`,"aria-hidden":`true`,children:`Show prompt`})]})]})]})}function qe(e,t){return t.state===`loading`?`${e} · …`:t.state===`ready`&&t.price!==null?`${e} · ${t.price}`:e}function Je({models:e,source:t,operations:n}){let r=O(e,`remove_background`),i=O(e,`upscale`),a=i===void 0?[]:T(i,t),[o,s]=(0,Q.useState)(void 0),[c,l]=(0,Q.useState)(!1),u=a.find(e=>e.disabledReason===void 0),d=a.find(e=>e.megapixels===o&&e.disabledReason===void 0)?.megapixels??u?.megapixels,f=r===void 0?void 0:k(r,t),p=i===void 0?void 0:k(i,t),m=j(n.session,r===void 0||f!==void 0?null:D(r,t,void 0)),h=j(n.session,i===void 0||p!==void 0||d===void 0?null:D(i,t,d));if(r===void 0&&i===void 0)return null;let g=(e,t)=>{l(!0),n.onRun(e,t).finally(()=>{l(!1)})},_=c||n.atLimit,v=n.atLimit?b:void 0,y=a.filter(e=>e.disabledReason);return(0,I.jsxs)(`section`,{className:`prints-info-operations`,"aria-label":`Edit this image`,"data-print-operations":!0,children:[r?(0,I.jsx)(F,{label:qe(E.remove_background,m),icon:(0,I.jsx)(Ce,{}),disabled:_||f!==void 0||m.state===`loading`,"aria-busy":m.state===`loading`,title:f??v,"data-operation":`remove_background`,onClick:()=>{g(`remove_background`,void 0)}}):null,i?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(S,{className:`prints-info-sizes`,value:d===void 0?``:String(d),onValueChange:e=>{s(Number(e))},children:(0,I.jsx)(x,{variant:`segmented`,"aria-label":`Upscale output size`,children:a.map(e=>(0,I.jsxs)(C,{value:String(e.megapixels),disabled:e.disabledReason!==void 0,title:e.disabledReason,children:[e.megapixels,` MP`]},e.megapixels))})}),y.length>0?(0,I.jsx)(`p`,{className:`prints-info-hint`,"data-operation-hint":!0,children:y[0]?.disabledReason}):null,(0,I.jsx)(F,{label:qe(d===void 0?E.upscale:`${E.upscale} to ${String(d)} MP`,h),icon:(0,I.jsx)(de,{}),disabled:_||p!==void 0||d===void 0||h.state===`loading`,"aria-busy":h.state===`loading`,title:p??(d===void 0?`This image is already larger than any size offered.`:v),"data-operation":`upscale`,onClick:()=>{g(`upscale`,d)}})]}):null]})}var Ye=(0,Q.lazy)(async()=>({default:(await w(()=>import(`./print-download-button-ebYCmtQ8.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)).PrintDownloadButton})),Xe=r({print:r({printId:o(),source:a([`recorded`,`file`]),kind:a([`image`,`video`,`audio`]),model:o(),width:c().nullable(),height:c().nullable(),steps:c().nullable(),durationSeconds:c().nullable().optional(),costMilliunits:c(),createdAt:c()}),typed:r({prompt:o(),references:c()}),references:i(r({path:o(),computerId:o().optional()})),characters:i(o())}),Ze=(e,t)=>({style:t,kind:e.print.kind,model:e.print.model,typed:e.typed,references:e.references,steps:e.print.steps,width:e.print.width,height:e.print.height}),Qe={image:`Image`,video:`Video`,audio:`Audio`},$e=(e,t)=>t===0?e:$e(t,e%t),et=(e,t)=>{let n=$e(e,t);return`${String(e/n)}:${String(t/n)}`},tt=new Intl.DateTimeFormat(`en`,{dateStyle:`medium`,timeStyle:`short`});function nt(e,t){let n=e.source,r=n.kind===`computer`?n.path:null,i=n.kind===`computer`?n.computerId:null;return A({...m(t,v,p.of(t,`prints`,`output-details`,i,r),async(e,t)=>{let n=await e.call(`getOutput`,JSON.stringify({path:r}));t.throwIfAborted();let i=Xe.safeParse(n);return i.success?i.data:null}),enabled:!!(t&&r&&i&&t.capabilities.has(v)),retry:!1})}function $({icon:e,label:t,children:n}){return(0,I.jsxs)(M,{children:[(0,I.jsxs)(`span`,{className:`prints-info-label`,children:[(0,I.jsx)(e,{size:16,"aria-hidden":!0}),t]}),(0,I.jsx)(`span`,{className:`prints-info-value`,children:n})]})}function rt({name:e}){let t=e.length>it?e.slice(-it):``;return(0,I.jsxs)(`span`,{className:`prints-info-file`,title:e,"data-print-file":!0,children:[(0,I.jsx)(`span`,{className:`prints-info-file-head`,children:e.slice(0,e.length-t.length)}),t?(0,I.jsx)(`span`,{className:`prints-info-file-tail`,children:t}):null]})}var it=10,at=240;function ot({prompt:e,references:t}){let[n,r]=(0,Q.useState)(!1),[i,a]=(0,Q.useState)(!1),o=e.length>at,s=async()=>{try{await navigator.clipboard.writeText(e),a(!0),setTimeout(()=>{a(!1)},1500)}catch(e){d(`copy-print-prompt`,e)}};return(0,I.jsxs)(`span`,{className:`prints-info-prompt`,children:[(0,I.jsx)(`span`,{className:`whitespace-pre-wrap`,"data-print-prompt":!0,"data-folded":o&&!n?!0:void 0,children:e}),(0,I.jsx)(ue,{tokens:oe(e,[],t,[])}),(0,I.jsxs)(`span`,{className:`prints-info-prompt-tools`,children:[(0,I.jsxs)(`button`,{type:`button`,className:`prints-info-link`,onClick:()=>{s()},children:[i?(0,I.jsx)(N,{"aria-hidden":!0,size:14}):(0,I.jsx)(Se,{"aria-hidden":!0,size:14}),` `,i?`Copied`:`Copy`]}),o?(0,I.jsxs)(`button`,{type:`button`,className:`prints-info-link`,"aria-expanded":n,onClick:()=>{r(!n)},children:[n?(0,I.jsx)(le,{"aria-hidden":!0,size:14}):(0,I.jsx)(he,{"aria-hidden":!0,size:14}),` `,n?`Show less`:`Show more`]}):null]})]})}function st({image:e,app:t,download:n=(0,I.jsx)(Q.Suspense,{fallback:null,children:(0,I.jsx)(Ye,{source:e.source,app:t})}),referenceImages:r,models:i,canAnimate:a,onIterate:o,operations:s,library:c,onClose:l}){let d=e=>{e&&ne(e,`prints-iterate-refusal`)},p=(0,Q.useRef)(null),m=A(ie(t,e.source.kind===`computer`?e.source.path:null)),h=nt(e,t).data,v=h?Ze(h,f(e.file.name)?null:m.data?.style??null):null,b=t=>e.source.kind===`computer`&&g(t,e.source.computerId)?r.find(e=>e.path===t.path):void 0,x=h?y(i,h.print.model):null,S=h?se(h.print.costMilliunits):null,C=x?.transform?.operation,w=h?.references.at(0),T=C!==void 0&&w!==void 0?{operation:E[C],sourcePath:w.path}:null;return(0,Q.useEffect)(()=>{let e=document.activeElement;return p.current?.focus(),()=>{e instanceof HTMLElement&&e.isConnected&&e.focus()}},[]),(0,I.jsxs)(te,{ref:p,className:`prints-info-drawer`,role:`region`,"aria-label":`Image information`,tabIndex:-1,onKeyDown:e=>{e.key===`Escape`&&(e.stopPropagation(),l())},children:[(0,I.jsxs)(`div`,{className:`flex items-center justify-between gap-sm`,children:[(0,I.jsxs)(`div`,{className:`prints-info-title`,children:[(0,I.jsx)(`h2`,{className:`text-base font-semibold`,title:e.file.name,children:e.file.name.replace(/\.[^.]+$/,``)}),(0,I.jsx)(`span`,{className:`prints-info-subtitle`,children:h?`${Qe[h.print.kind]} · ${tt.format(h.print.createdAt)}`:`Image info`})]}),(0,I.jsx)(ye,{className:`prints-info-close`,"aria-label":`Close image information`,icon:(0,I.jsx)(me,{}),onClick:l})]}),(0,I.jsxs)(`div`,{className:`prints-info-actions`,role:`group`,"aria-label":`Image actions`,children:[v&&e.source.kind===`computer`?(0,I.jsxs)(I.Fragment,{children:[T===null?(0,I.jsx)(F,{label:`Reuse`,icon:(0,I.jsx)(fe,{}),disabled:m.isPending,onClick:()=>{d(o(`reuse`,v))}}):null,v.kind===`audio`?null:(0,I.jsx)(F,{label:`Remix`,icon:(0,I.jsx)(Oe,{}),disabled:m.isPending,onClick:()=>{d(o(`remix`,v))}}),a&&v.kind===`image`?(0,I.jsx)(F,{label:`Animate`,icon:(0,I.jsx)(xe,{}),disabled:m.isPending,onClick:()=>{d(o(`animate`,v))}}):null]}):null,c?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(F,{label:c.favorite?`Unfavorite`:`Favorite`,icon:(0,I.jsx)(_e,{}),onClick:c.onToggleFavorite}),c.onMove?(0,I.jsx)(F,{label:`Move to…`,icon:(0,I.jsx)(ge,{}),onClick:c.onMove}):null]}):null,n]}),s&&h?.print.kind===`image`&&e.source.kind===`computer`?(0,I.jsx)(Je,{models:i,source:{computerId:e.source.computerId,path:e.source.path,width:e.width,height:e.height},operations:s}):null,(0,I.jsxs)(ae,{density:`compact`,className:`prints-info-facts`,children:[(0,I.jsx)($,{icon:pe,label:`File`,children:(0,I.jsx)(rt,{name:e.file.name})}),f(e.file.name)?null:(0,I.jsxs)($,{icon:De,label:`Size`,children:[e.width,` × `,e.height,` ·`,` `,et(e.width,e.height)]}),m.data?.style&&!f(e.file.name)?(0,I.jsx)($,{icon:Ee,label:`Style`,children:m.data.style}):null,h&&T===null?(0,I.jsx)($,{icon:Te,label:`Prompt`,children:(0,I.jsx)(ot,{prompt:h.typed.prompt,references:h.references.map((e,t)=>({number:t+1,name:e.path.split(`/`).at(-1)??e.path,url:b(e)?.url}))})}):null,h?(0,I.jsx)($,{icon:ce,label:`Model`,children:(0,I.jsx)(`span`,{"data-print-model":!0,children:x?ee(x):`${h.print.model} (no longer available)`})}):null,h&&T!==null?(0,I.jsx)($,{icon:Ae,label:`Made from`,children:(0,I.jsxs)(`span`,{"data-print-source":!0,children:[T.operation,` of`,` `,T.sourcePath.split(`/`).at(-1)??T.sourcePath]})}):null,h&&h.characters.length>0?(0,I.jsx)($,{icon:ke,label:`Characters`,children:(0,I.jsx)(`span`,{"data-print-characters":!0,children:h.characters.map(e=>`@${e}`).join(`, `)})}):null,h&&h.references.length>0?(0,I.jsx)($,{icon:ve,label:`References`,children:(0,I.jsx)(`ul`,{className:`prints-info-references`,"data-print-references":!0,"aria-label":`${String(h.references.length)} references`,children:h.references.map((e,t)=>{let n=e.path.split(`/`).at(-1),r=b(e);return(0,I.jsxs)(`li`,{title:e.path,children:[r?(0,I.jsx)(`img`,{src:r.url,alt:``}):null,(0,I.jsx)(`span`,{"data-print-reference-name":!0,children:n})]},`${String(t)}:${e.path}`)})})}):null,h!=null&&h.print.kind!==`image`&&h.print.durationSeconds!=null?(0,I.jsx)($,{icon:_,label:`Duration`,children:(0,I.jsx)(`span`,{"data-print-duration":!0,children:re(h.print.durationSeconds)})}):null,h?.print.source===`recorded`&&S!==null?(0,I.jsx)($,{icon:be,label:`Cost`,children:(0,I.jsx)(`span`,{"data-print-cost":!0,children:S})}):null,h?(0,I.jsx)($,{icon:_,label:`Made`,children:tt.format(h.print.createdAt)}):null,t&&h?.print.source===`recorded`&&t.capabilities.has(u)?(0,I.jsx)(Ke,{app:t,printId:h.print.printId}):null]})]})}export{st as PrintInfoDrawer};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./print-download-button-ebYCmtQ8.js","./rolldown-runtime-hePW80VL.js","./button-oE2Hrd5D.js","./modules-C4mfDnjH.js","./dist-ujdia29J.js","./log-event-IU820pK9.js","./useMutation-DAlc59rA.js","./computer-Drn9XugY.js","./ellipsis-DlNHenkt.js","./dropdown-menu-Dz4r7a9R.js","./useTriggerFocusGuards-Bddw7Qdn.js","./keycap-D2RkH2IS.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{C as t,Vn as n,b as r,n as i,v as a,x as o}from"./button-oE2Hrd5D.js";import{d as s,t as c,u as l}from"./log-event-IU820pK9.js";import{A as u,D as d,E as f,O as p,_ as m,g as h,h as g,i as _,k as v,m as y,n as b,r as x,t as S,v as C}from"./audio-waveform-view-Bt66rIpF.js";import{c as w,n as T,r as E,s as D,t as O}from"./audio-waveform-DcMy9xl2.js";import{a as k}from"./status-DNJRO5m5.js";import{a as A,u as j}from"./dropdown-menu-Dz4r7a9R.js";import{n as M,t as N}from"./keycap-D2RkH2IS.js";import{c as P,l as F,n as I,s as L,t as R}from"./dialog-BXLOuKaF.js";var z=o(`ExternalLink`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),B=o(`Maximize`,[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]),V=t(),H=e(n(),1),U=r(`badge caps-badge`,{variants:{tone:{neutral:`badge-neutral`,primary:`badge-primary`,secondary:`badge-secondary`,accent:`badge-accent`,success:`badge-success`,info:`badge-info`,warning:`badge-warning`,error:`badge-error`},size:{sm:`badge-sm`,default:`badge-md`,lg:`badge-lg`},variant:{solid:``,quiet:`caps-badge-quiet`}},defaultVariants:{tone:`neutral`,size:`default`}}),W=(0,H.forwardRef)(function({className:e,size:t,tone:n,variant:r,...i},o){return(0,V.jsx)(`span`,{...i,className:a(U({size:t,tone:n,variant:r}),e),ref:o})});function G(e){return e.map(e=>e.key)}function K(e,t,n){let r=e.indexOf(t);return r<0?null:e[r+n]??null}function q(e,t,n){if(e.includes(t))return t;let r=n.indexOf(t);if(r>=0){let t=new Set(e);for(let e=1;e<n.length;e+=1)for(let i of[e,-e]){let e=r+i;if(e<0||e>=n.length)continue;let a=n[e];if(t.has(a))return a}}return e[0]??null}function J({facts:e}){let t=b(e.url,s),n=T(e.url,96),r=e.durationSeconds??(n.status===`ready`?n.durationSeconds:void 0),i=e.mode===void 0?`Audio`:_[e.mode],a=t.progress*(r??0);return(0,V.jsxs)(`section`,{"aria-label":`${i} print`,className:`prints-audio-stage`,"data-audio-stage":!0,children:[(0,V.jsx)(W,{size:`sm`,variant:`quiet`,children:i}),(0,V.jsx)(`button`,{"aria-label":`Seek`,className:`prints-audio-stage-seek`,type:`button`,onClick:e=>{let n=e.currentTarget.getBoundingClientRect();t.seek((e.clientX-n.left)/n.width)},children:(0,V.jsx)(S,{bars:96,className:`prints-audio-stage-waveform`,progress:t.progress,url:e.url})}),(0,V.jsxs)(`div`,{className:`prints-audio-stage-controls`,children:[(0,V.jsx)(M,{"aria-label":t.playing?`Pause`:`Play`,icon:t.playing?(0,V.jsx)(d,{}):(0,V.jsx)(f,{}),iconSize:`md`,size:`default`,variant:`accent`,onClick:t.toggle}),(0,V.jsxs)(`span`,{className:`prints-audio-stage-time`,children:[O(a,`elapsed`),r===void 0?null:` / ${O(r)}`]})]})]})}var Y=(0,H.lazy)(async()=>({default:(await E(()=>import(`./print-download-button-ebYCmtQ8.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)).PrintDownloadButton}));function X({url:e,path:t,onError:n,autoPlay:r}){let i=(0,H.useRef)(null);return(0,H.useEffect)(()=>{let t=i.current;if(!t)return;let a=!1;return r&&t.play().catch(t=>{a||t instanceof DOMException&&(t.name===`NotAllowedError`||t.name===`AbortError`)||(c(`play-print-video`,t),n(e))}),()=>{a=!0,t.pause()}},[e,n,r]),(0,V.jsx)(`video`,{ref:i,src:e,"aria-label":t,controls:!0,playsInline:!0,preload:`auto`,className:`block max-h-full max-w-full object-contain`,onError:()=>{n(e)}})}function Z({item:e,actualSize:t}){let[n,r]=(0,H.useState)(null),[a,o]=(0,H.useState)(null),s=e.pending===!0&&!e.onVisible,[c,u]=(0,H.useState)(s);s&&!c&&u(!0);let d=e.pendingLabel??`Loading print…`,f=s?`Not saved`:`Prints can’t show this file`,p=(0,V.jsx)(`img`,{src:e.url,alt:e.path,decoding:`async`,width:t?e.width:void 0,height:t?e.height:void 0,className:t?`block max-w-none`:`block max-h-full max-w-full object-contain`,onLoad:()=>{r(e.url)},onError:()=>{o(e.url)}},e.url);return(0,V.jsx)(`div`,{className:`relative flex min-h-0 min-w-0 flex-1 items-center justify-center overflow-hidden`,"data-print-viewer-stage":!0,children:e.error||a===e.url?(0,V.jsx)(x,{status:`failed`,className:`h-full w-full`,failure:(0,V.jsxs)(`div`,{className:`flex max-w-full flex-col items-center gap-sm px-md text-center`,children:[(0,V.jsx)(`p`,{className:`max-w-full break-words text-sm`,children:e.path}),(0,V.jsx)(y,{density:`tile`,message:e.error?`${f}: ${e.error}`:f,onRetry:e.onRetry,onDismiss:e.onDismiss})]})}):l(e.path)&&e.url?(0,V.jsx)(J,{facts:{url:e.url}}):j(e.path)&&e.url?(0,V.jsx)(X,{url:e.url,path:e.path,onError:o,autoPlay:!c}):e.url?(0,V.jsxs)(V.Fragment,{children:[t?(0,V.jsx)(g,{className:`h-full w-full`,role:`region`,"aria-label":`Actual-size print`,tabIndex:0,"data-print-viewer-scroll":!0,children:p}):p,n===e.url?null:(0,V.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,V.jsx)(i,{label:`Loading print`,variant:`bloom`})})]}):(0,V.jsx)(x,{status:`generating`,label:d,className:`h-full w-full`,indicator:(0,V.jsxs)(`div`,{"aria-hidden":`true`,className:`flex max-w-full flex-col items-center gap-sm px-md text-center`,children:[(0,V.jsx)(i,{decorative:!0,variant:`bloom`}),(0,V.jsx)(`p`,{className:`text-sm`,children:d})]})})})}var Q=`(max-width: 640px)`;function $(){return(0,H.useSyncExternalStore)(e=>{let t=globalThis.matchMedia(Q);return t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)}},()=>globalThis.matchMedia(Q).matches,()=>!1)}function ee(e){let[t,n]=(0,H.useState)(!1);return{pending:t,open:()=>{e&&(n(!0),m(e).catch(t=>{c(`open-print-in-inkcap`,t),D(`Could not open ${e.path} in Inkcap.`,`prints-inkcap-open`)}).finally(()=>{n(!1)}))}}}function te({source:e,app:t,inkcap:n,phone:r}){let i=e.kind===`computer`&&n?e:null,a=ee(i);return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(H.Suspense,{fallback:null,children:(0,V.jsx)(Y,{source:e,app:t,presentation:r?`menu`:`key`,menuItems:i?(0,V.jsx)(A,{disabled:a.pending,onSelect:a.open,children:`Open in Inkcap`}):void 0})}),i&&!r?(0,V.jsx)(N,{label:`Open in Inkcap`,icon:(0,V.jsx)(z,{}),disabled:a.pending,onClick:a.open}):null]})}function ne({items:e,images:t,viewerKey:n,app:r,onNavigate:i,onClose:a,renderInfo:o}){let s=(0,H.useRef)(null),c=C(r),d=$(),f=G(e),m=(0,H.useRef)(f),g=n===null?null:q(f,n,m.current);(0,H.useEffect)(()=>{m.current=f,n!==null&&g!==n&&(g===null?a(n):i(g))},[f,g,n,a,i]),(0,H.useEffect)(()=>{if(g===null)return;let t=e.findIndex(e=>e.key===g);for(let n of e.slice(Math.max(0,t-1),t+2))n.onVisible?.()},[e,g]);let[_,y]=(0,H.useState)(null),[b,x]=(0,H.useState)(null);(0,H.useEffect)(()=>{x(null)},[g]),(0,H.useEffect)(()=>{y(null)},[n]);let S=e.find(e=>e.key===g),T=t.find(e=>h(e)===g);if(!S||g===null)return null;let E=K(f,g,-1),D=K(f,g,1),O=S.path.split(`/`).at(-1)??S.path,A=()=>{a(g)},N=e=>{e!==null&&i(e)};return(0,V.jsx)(R,{open:!0,onOpenChange:e=>{e||A()},children:(0,V.jsxs)(P,{children:[(0,V.jsx)(I,{}),(0,V.jsxs)(L,{ref:s,size:`fill`,initialFocus:s,finalFocus:!1,className:`flex min-h-0 flex-col gap-sm`,onKeyDown:e=>{e.altKey||e.ctrlKey||e.metaKey||e.target instanceof HTMLElement&&e.target.closest(`input, textarea, select, video, [data-print-viewer-scroll], [contenteditable=true]`)||(e.key===`ArrowLeft`||e.key===`ArrowRight`?(e.preventDefault(),N(e.key===`ArrowLeft`?E:D)):e.key.toLowerCase()===`i`&&T&&(e.preventDefault(),y(_===g?null:g)))},children:[(0,V.jsx)(w,{className:`prints-viewer-frame`,children:(0,V.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col`,children:[(0,V.jsxs)(`div`,{className:`prints-viewer-caption`,"data-print-viewer-caption":!0,children:[(0,V.jsx)(F,{className:`prints-viewer-caption-name truncate text-xs font-normal`,children:O}),(0,V.jsxs)(`span`,{className:`prints-viewer-caption-position`,"aria-live":`polite`,"aria-atomic":`true`,children:[(0,V.jsxs)(`span`,{className:`sr-only`,children:[O,`, `]}),f.indexOf(g)+1,` of `,f.length]})]}),(0,V.jsxs)(`div`,{className:`@container relative flex min-h-0 min-w-0 flex-1`,children:[(0,V.jsx)(Z,{item:S,actualSize:b===g},g),_===g&&T?o(T,()=>{y(null)}):null]})]})}),(0,V.jsxs)(`div`,{className:`prints-viewer-actions`,children:[(0,V.jsx)(M,{size:`default`,iconSize:`md`,"aria-label":`Previous print`,title:`Previous print (Left arrow)`,"aria-keyshortcuts":`ArrowLeft`,icon:(0,V.jsx)(u,{}),disabled:E===null,onClick:()=>{N(E)}}),(0,V.jsx)(M,{size:`default`,iconSize:`md`,"aria-label":`Next print`,title:`Next print (Right arrow)`,"aria-keyshortcuts":`ArrowRight`,icon:(0,V.jsx)(v,{}),disabled:D===null,onClick:()=>{N(D)}}),(0,V.jsx)(M,{size:`default`,iconSize:`md`,"aria-label":`Image info`,title:`Image info (I)`,"aria-keyshortcuts":`i`,"aria-expanded":_===g,icon:(0,V.jsx)(p,{}),disabled:!T,onClick:()=>{y(_===g?null:g)}}),!j(S.path)&&!l(S.path)?(0,V.jsx)(M,{size:`default`,iconSize:`md`,"aria-label":`Actual size`,title:`Actual size`,"aria-pressed":b===g,active:b===g,icon:(0,V.jsx)(B,{}),disabled:!S.url||!!S.error,onClick:()=>{x(b===g?null:g)}}):null,T?(0,V.jsx)(te,{source:T.source,app:r,inkcap:c,phone:d},`${g}\n${T.url}`):null,(0,V.jsx)(M,{size:`default`,iconSize:`md`,"aria-label":`Close viewer`,title:`Close viewer (Escape)`,icon:(0,V.jsx)(k,{}),onClick:A})]})]})]})})}export{ne as PrintViewer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{$t as t,C as n,Ct as r,E as i,F as a,Ft as o,I as s,It as c,Jt as l,K as u,L as d,M as f,Nt as p,P as m,Pt as h,Qt as g,S as _,St as v,T as y,U as b,V as x,Vn as S,X as C,Xt as w,Yt as T,Z as E,Zt as D,_ as O,_t as k,a as A,an as j,bt as M,dt as N,en as P,ft as F,gt as I,h as L,ht as R,in as z,j as ee,jt as te,kn as ne,kt as B,mt as re,nn as ie,o as ae,on as oe,pt as se,rn as ce,s as le,st as ue,t as V,tn as de,v as H,vt as U,w as W,wt as fe,x as pe,xt as me,yt as he,z as ge}from"./button-oE2Hrd5D.js";import{a as _e,d as ve,i as ye,l as be,m as xe,t as Se,u as Ce}from"./textarea-DUwcxEMN.js";import{i as we,o as Te,r as Ee,t as De}from"./status-DNJRO5m5.js";import{_ as Oe,a as ke,c as Ae,d as je,f as G,g as Me,h as K,i as Ne,l as Pe,m as Fe,n as Ie,o as Le,p as Re,r as ze,s as Be,t as Ve,u as He}from"./upload-queue-BHNUzgYV.js";import{r as Ue}from"./modules-C4mfDnjH.js";import{A as We,B as Ge,C as Ke,D as qe,E as Je,F as Ye,G as Xe,Gt as Ze,H as Qe,I as $e,Kt as et,M as tt,N as nt,O as rt,On as it,P as at,Q as ot,S as st,St as ct,T as lt,Tn as ut,U as dt,V as ft,W as pt,X as mt,Y as ht,_ as gt,a as _t,b as q,bn as vt,bt as yt,c as bt,f as xt,fn as St,g as Ct,gn as wt,h as Tt,i as Et,j as Dt,k as Ot,kn as kt,lt as At,m as jt,mn as Mt,n as Nt,o as Pt,p as Ft,qt as It,r as Lt,s as Rt,t as zt,tt as Bt,u as Vt,v as Ht,vt as Ut,w as Wt,x as Gt,y as Kt,yn as J}from"./useTriggerFocusGuards-Bddw7Qdn.js";import{t as qt}from"./keycap-D2RkH2IS.js";import{a as Jt,i as Yt,l as Xt,o as Zt,r as Qt,t as $t}from"./dialog-BXLOuKaF.js";var en=pe(`EyeOff`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),tn=pe(`Eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Y=e(S(),1);function nn({getKey:e,isDisabled:t=()=>!1,items:n,getFallbackKey:r}){let i=(0,Y.useMemo)(()=>{let r=n.map(e);if(r.some(e=>!e))throw Error(`Selectable items require non-empty keys`);if(new Set(r).size!==r.length)throw Error(`Selectable items require unique keys`);return n.filter(e=>!t(e))},[e,t,n]),[a,o]=(0,Y.useState)(null),s=r?.(i)??null,c=a!==null&&i.some(t=>e(t)===a)?a:s!==null&&i.some(t=>e(t)===s)?s:null;(0,Y.useEffect)(()=>{a!==null&&!i.some(t=>e(t)===a)&&o(null)},[a,i,e]);let l=i.find(t=>e(t)===c),u=l?i.findIndex(t=>e(t)===c):-1;return{activeIndex:u,activeItem:l,activeKey:c,enabledItems:i,move:(t,n)=>{if(i.length===0)return;let r=n?n===`start`?0:i.length-1:u<0?t>0?0:i.length-1:(u+t+i.length)%i.length,a=i[r];a&&o(e(a))},setActiveKey:o}}var rn=u(a),an=u(s({message:a}));function on(e){for(let t of e.errors){let e=te(c(h(an(t),e=>e.message),()=>rn(t)));if(e!==void 0&&e.length>0)return e}}var sn=Y.createContext(void 0);function X(e){let t=Y.useContext(sn);if(t===void 0&&!e)throw Error(J(47));return t}var cn=e(_(),1),ln={...q,disabled:e=>e.disabled,instantType:e=>e.instantType===`trigger-change`&&!q.open(e)?void 0:e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,isPressOpenedByTrigger:(e,t)=>e.openChangeReason===`trigger-press`&&q.isOpenedByTrigger(e,t),isTouchPressOpen:(e,t)=>t&&e.openMethod===`touch`&&e.openChangeReason===`trigger-press`,hasTriggerFocusGuards:(e,t)=>q.isOpenedByTrigger(e,t)&&!e.focusManagerModal,modal:e=>e.modal,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},un=class extends Gt{constructor(e,t,n){let r=new Wt;super(dn(e,r,t,n),fn(r),ln)}setOpen=(e,t)=>{let n=t.reason===Ut,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null),a=qe(t),o=this.select(`activeTriggerId`);if(!e&&t.reason===`close-press`&&t.trigger==null&&o!=null&&(t.trigger=this.context.triggerElements.getById(o)??this.select(`activeTriggerElement`)??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let n=Ot(this.state,e,t.trigger,a());n.openChangeReason=t.reason,this.update(n)};n?(this.context.stickIfOpen=!0,this.context.stickIfOpenTimeout.start(500,()=>{this.context.stickIfOpen=!1}),cn.flushSync(s)):s();let c;r?c=`click`:i?c=`dismiss`:t.reason===`focus-out`&&(c=`focus`),this.set(`instantType`,c)}};function dn(e,t,n,r=!1){let i={...Kt(t,n,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function fn(e){return{popupRef:Y.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:Y.createRef(),beforeTriggerFocusGuardRef:Y.createRef(),beforeContentFocusGuardRef:Y.createRef(),stickIfOpenTimeout:new vt,stickIfOpen:!0,triggerElements:e}}var Z=n(),pn=st(function({props:e}){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,modal:o=!1,handle:s,triggerId:c,defaultTriggerId:l=null}=e,u=hn(s,{modal:o,open:r,openProp:n,activeTriggerId:l,triggerIdProp:c});u.useControlledProp(`openProp`,n),u.useControlledProp(`triggerIdProp`,c);let d=u.useState(`open`),f=u.useState(`mounted`),p=u.useState(`payload`);u.useContextCallback(`onOpenChange`,i),u.useContextCallback(`onOpenChangeComplete`,a),at(u,d),We(u);let{forceUnmount:m}=Dt(d,u,()=>{u.context.stickIfOpen=!0,u.set(`openChangeReason`,null)});u.useSyncedValues({modal:o}),Y.useEffect(()=>{d||u.context.stickIfOpenTimeout.clear()},[u,d]),Y.useImperativeHandle(e.actionsRef,()=>({unmount:m,close:()=>u.setOpen(!1,yt(At))}),[m,u]);let h=d||f||s!=null;return(0,Z.jsxs)(sn.Provider,{value:u,children:[s&&(0,Z.jsx)(Je,{handle:s,store:u}),h&&(0,Z.jsx)(gn,{store:u,modal:o}),typeof t==`function`?t({payload:p}):t]})});function mn(e){return X(!0)?(0,Z.jsx)(pn,{props:e}):(0,Z.jsx)(pt,{children:(0,Z.jsx)(pn,{props:e})})}function hn(e,t){let n=nt((e,n)=>new un(t,e,n));return Y.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function gn({store:e,modal:t}){let n=e.useState(`floatingRootContext`),r=Ge(n,{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),i=r.reference,a=r.floating;return tt(e,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:a}),null}var _n=Ke(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,handle:s,payload:c,openOnHover:l=!1,delay:u=300,closeDelay:d=0,id:f,...p}=e,m=X(!0),h=Ht(s)??m;if(!h)throw Error(J(74));let g=Mt(f),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerPopupId`,g),x=Y.useRef(null),{registerTrigger:S,isMountedByThisTrigger:C}=Ye(g,x,h,{payload:c,disabled:a,openOnHover:l,closeDelay:d}),w=h.useState(`isPressOpenedByTrigger`,g),T=h.useState(`isTouchPressOpen`,l),E=h.useState(`hasTriggerFocusGuards`,g),D=Ct(v,{enabled:!a&&l&&!T,mouseOnly:!0,move:!1,handleClose:Tt(),restMs:u,delay:{close:d},triggerElementRef:x,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),O=ut(()=>h.context.stickIfOpen),k=ft(v,{stickIfOpen:O}),A=Vt(()=>h.select(`open`),e=>{h.set(`openMethod`,e)}),j=h.useState(`triggerProps`,C),{getButtonProps:M,buttonRef:N}=ct({disabled:a,native:o}),P={open(e){return w?et.open(e):It.open(e)}},{handlePreFocusGuardFocus:F,handleFocusTargetFocus:I}=zt(h,x),L=wt(`button`,e,{state:{disabled:a,open:y},ref:[N,t,S,x],props:[k.reference,D,j,A,{[mt]:``,id:g,"aria-haspopup":`dialog`,"aria-expanded":y,"aria-controls":b},p,M],stateAttributesMapping:P}),R=(0,Z.jsx)(Y.Fragment,{children:L},g);return E?(0,Z.jsxs)(Y.Fragment,{children:[(0,Z.jsx)(Bt,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:F}),R,(0,Z.jsx)(Bt,{ref:h.context.triggerFocusTargetRef,onFocus:I})]}):R}),vn=Y.createContext(void 0);function yn(){let e=Y.useContext(vn);if(e===void 0)throw Error(J(45));return e}var bn=Y.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return X().useState(`mounted`)||n?(0,Z.jsx)(vn.Provider,{value:n,children:(0,Z.jsx)(ht,{ref:t,...r})}):null}),xn=Y.createContext(void 0);function Sn(){let e=Y.useContext(xn);if(!e)throw Error(J(46));return e}var Cn=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,anchor:a,positionMethod:o,side:s,align:c,sideOffset:l,alignOffset:u,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p,sticky:m,disableAnchorTracking:h=!1,collisionAvoidance:g=ot,..._}=e,v=X(),y=yn(),b=Xe(),x=v.useState(`floatingRootContext`),S=v.useState(`mounted`),C=v.useState(`open`),w=v.useState(`openChangeReason`),T=v.useState(`activeTriggerElement`),E=v.useState(`modal`),D=v.useState(`openMethod`),O=v.useState(`positionerElement`),k=v.useState(`instantType`),A=v.useState(`transitionStatus`),j=v.useState(`adaptiveOrigin`),M=_t({anchor:a,floatingRootContext:x,positionMethod:o,mounted:S,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h,keepMounted:y,nodeId:b,collisionAvoidance:g,adaptiveOrigin:j}),N=x.useState(`domReferenceElement`);Et({store:v,domReference:N,positionerElement:O,open:C});let P=E===!0&&w!==`trigger-hover`;Nt(C&&P,D===`touch`,O,T);let F=v.useStateSetter(`positionerElement`),I={open:C,side:M.side,align:M.align,anchorHidden:M.anchorHidden,instant:k},L=Lt(e,I,{styles:M.positionerStyles,transitionStatus:A,props:_,refs:[t,F],hidden:!S,inert:!C});return(0,Z.jsxs)(xn.Provider,{value:M,children:[S&&P&&(0,Z.jsx)(xt,{inert:Ft(!C),cutout:T}),(0,Z.jsx)(dt,{id:b,children:L})]})}),wn=Y.createContext(void 0);function Tn(){let[e,t]=Y.useState(0),n=ut(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:Y.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}var En=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=X(),l=Sn(),u=Rt(!0)!=null,{context:d,hasClosePart:f}=Tn(),p=c.useState(`open`),m=c.useState(`openMethod`),h=c.useState(`instantType`),g=c.useState(`transitionStatus`),_=c.useState(`popupProps`),v=c.useState(`titleElementId`),y=c.useState(`descriptionElementId`),b=c.useState(`modal`),x=c.useState(`mounted`),S=c.useState(`openChangeReason`),C=c.useState(`activeTriggerElement`),w=c.useState(`floatingRootContext`),T=w.useState(`floatingId`),E=c.useState(`disabled`),D=c.useState(`openOnHover`),O=c.useState(`closeDelay`);$e({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete?.(!0)}}),gt(w,{enabled:D&&!E,closeDelay:O});let k=a===void 0?rt(c.context.popupRef):a,A=b!==!1&&f;c.useSyncedValue(`focusManagerModal`,A);let j=c.useStateSetter(`popupElement`),M={open:p,side:l.side,align:l.align,instant:h,transitionStatus:g},N=wt(`div`,e,{state:M,ref:[t,c.context.popupRef,j],props:[_,{id:T,role:`dialog`,...lt,"aria-labelledby":v,"aria-describedby":y,onKeyDown(e){u&&jt.has(e.key)&&e.stopPropagation()}},Pt(g),s],stateAttributesMapping:Ze});return(0,Z.jsx)(Qe,{context:w,openInteractionType:m,modal:A,disabled:!x||S===`trigger-hover`,initialFocus:k,returnFocus:o,restoreFocus:`popup`,getInsideElements:()=>[c.context.beforeTriggerFocusGuardRef.current],previousFocusableElement:St(C)?C:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,Z.jsx)(wn.Provider,{value:d,children:N})})}),Dn=(0,Y.forwardRef)(function({children:e,className:t,type:n=`button`,...r},i){return(0,Z.jsxs)(`button`,{...r,ref:i,type:n,className:H(`select caps-select caps-combobox-trigger w-full`,t),children:[(0,Z.jsx)(`span`,{children:e}),(0,Z.jsx)(Te,{className:`caps-select-chevron`,"aria-hidden":`true`})]})});function On({defaultInputValue:e,defaultOpen:t,defaultValue:n,getKey:r,getSearchText:i,groupBy:a,id:o,isDisabled:s,items:c,onOpenChange:l,onCommit:u,multiple:d,controlledOpen:f,controlledKeys:p,trigger:m}){let h=`${o}-listbox`,[g,_]=(0,Y.useState)(e),[v,y]=(0,Y.useState)(!1),[b,x]=(0,Y.useState)(n),[S,C]=(0,Y.useState)(t),w=p??(b===null?[]:[b]),T=m?f??S:!0,E=(0,Y.useMemo)(()=>{let e=g.trim().toLowerCase();return e?c.filter(t=>i(t).toLowerCase().includes(e)):c},[i,c,g]),D=nn({getKey:r,isDisabled:s,items:E});(0,Y.useEffect)(()=>{if(D.activeKey!==null)return;let e=D.enabledItems.find(e=>w.includes(r(e)))??D.enabledItems[0];e&&D.setActiveKey(r(e))},[D.activeKey,D.enabledItems,D.setActiveKey,r,w]);let O=e=>{y(!1),e||_(``),f===void 0&&C(e),l?.(e)},k=e=>`${h}-option-${encodeURIComponent(e)}`,A=e=>{let t=r(e);p===void 0&&x(t),u(e),m&&!d&&O(!1)},j=e=>{y(!0),_(e.target.value),D.setActiveKey(null)},M=e=>{if(be(e))return;let t;switch(e.key){case`ArrowDown`:t=[1,void 0];break;case`ArrowUp`:t=[-1,void 0];break;case`End`:t=[1,`end`];break;case`Home`:t=[-1,`start`]}t?(y(!0),e.preventDefault(),D.move(t[0],t[1])):e.key===`Enter`&&D.activeItem&&(e.preventDefault(),A(D.activeItem))},N=(0,Y.useMemo)(()=>{if(!a)return[{label:``,items:E}];let e=new Map;for(let t of E){let n=a(t),r=e.get(n);r?r.push(t):e.set(n,[t])}return[...e].map(([e,t])=>({label:e,items:t}))},[E,a]);return{keyboardNavigation:v,onPointerMove:()=>{y(!1)},activeKey:D.activeKey,activeItem:D.activeItem,groups:N,inputValue:g,listboxId:h,onInputChange:j,onInputKeyDown:M,optionId:k,open:T,commit:A,selectedKeys:w,setOpen:O}}function kn(e){let{"aria-describedby":t,"aria-invalid":n,"aria-label":r,"aria-labelledby":i,"aria-required":a,activeTone:o=`neutral`,container:s,contentClassName:c,defaultInputValue:l=``,defaultOpen:u=!1,defaultValue:d=null,emptyMessage:f=`No matches`,getKey:p,getLabel:m,getSearchText:h=m,groupBy:g,id:_,inputProps:v,inputRef:y,isDisabled:b=()=>!1,items:x,onOpenChange:S,onValueChange:C,multiple:w,open:T,placeholder:E=`Search…`,renderItem:D,rootRef:O,trigger:k,triggerRef:A,value:j,...M}=e,N=e=>{let t=p(e);if(w){let e=j.includes(t)?j.filter(e=>e!==t):[...j,t];C?.(e,x.filter(t=>e.includes(p(t))))}else C?.(t,e)},P;w?P=j:j!==void 0&&(P=j===null?[]:[j]);let F=(0,Y.useId)(),I=k?.props??v,L=_??I?.id??F,R={id:L,"aria-describedby":[t,I?.[`aria-describedby`]].filter(Boolean).join(` `)||void 0,"aria-invalid":n??I?.[`aria-invalid`],"aria-label":I?.[`aria-label`]??r,"aria-labelledby":I?.[`aria-labelledby`]??i,"aria-required":a??I?.[`aria-required`]},{keyboardNavigation:z,onPointerMove:ee,activeItem:te,activeKey:ne,commit:B,groups:re,inputValue:ie,listboxId:ae,onInputChange:oe,onInputKeyDown:se,open:ce,optionId:le,selectedKeys:ue,setOpen:V}=On({defaultInputValue:l,defaultOpen:u,defaultValue:d,getKey:p,getSearchText:h,groupBy:g,id:L,isDisabled:b,items:x,onOpenChange:S,onCommit:N,multiple:w??!1,controlledOpen:T,controlledKeys:P,trigger:k});it(()=>{k&&V(!1)});let de=kt(`popover`),U=s===void 0?de:s,W=bt(`.caps-combobox-option[data-active="true"]:not(:disabled), [data-navigation="pointer"] .caps-combobox-option:hover:not(:disabled)`),fe=(0,Z.jsx)(G,{...v,...k?{}:R,"aria-activedescendant":te?le(p(te)):void 0,"aria-autocomplete":`list`,"aria-controls":ae,"aria-expanded":!0,className:H(`input-sm`,v?.className),id:k?v?.id??`${L}-input`:L,onChange:e=>{v?.onChange?.(e),oe(e)},onKeyDown:e=>{v?.onKeyDown?.(e),e.defaultPrevented||se(e)},placeholder:v?.placeholder??E,ref:y,role:`combobox`,value:ie}),pe=(0,Z.jsx)(`div`,{id:ae,ref:W,className:`caps-combobox-list`,"data-navigation":z?`keyboard`:`pointer`,onPointerMove:ee,role:`listbox`,"aria-multiselectable":w??void 0,children:re.every(e=>e.items.length===0)?(0,Z.jsx)(`div`,{className:`px-md py-md text-sm text-base-content`,children:f}):re.map(e=>(0,Z.jsxs)(`div`,{"aria-label":e.label||void 0,role:e.label?`group`:void 0,children:[e.label?(0,Z.jsx)(`div`,{className:`px-md pb-xs pt-sm text-xs text-base-content uppercase tracking-wider`,children:e.label}):null,e.items.map(e=>{let t=p(e),n=b(e),r=ne===t,i={active:r,disabled:n,selected:ue.includes(t)};return(0,Z.jsxs)(`button`,{"aria-disabled":n||void 0,"aria-selected":i.selected,className:`caps-combobox-option`,"data-active":r&&z,disabled:n,id:le(t),onClick:()=>{B(e)},onMouseDown:e=>{e.preventDefault()},role:`option`,tabIndex:-1,type:`button`,children:[(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`caps-combobox-check`,children:i.selected?(0,Z.jsx)(xe,{}):null}),D?.(e,r,i)??m(e)]},t)})]},e.label))});return k?(0,Z.jsx)(`div`,{...M,className:H(M.className),ref:O,children:(0,Z.jsxs)(mn,{modal:!0,onOpenChange:V,open:ce,children:[(0,Z.jsx)(_n,{...R,"aria-haspopup":`dialog`,className:`btn`,ref:A,render:k}),U===null?null:(0,Z.jsx)(bn,{container:U,children:(0,Z.jsx)(Cn,{align:`start`,side:`bottom`,sideOffset:4,children:(0,Z.jsxs)(En,{"data-active-tone":o,className:H(`min-w-40 rounded-box border border-base-300 bg-base-100 p-xs shadow-lg outline-none caps-combobox-panel caps-combobox-popup`,c),children:[(0,Z.jsx)(`div`,{className:`caps-combobox-search`,children:fe}),pe]})})})]})}):(0,Z.jsx)(`div`,{...M,className:H(M.className),ref:O,children:(0,Z.jsxs)(`div`,{className:H(`caps-combobox-panel`,c),"data-active-tone":o,children:[(0,Z.jsx)(`div`,{className:`caps-combobox-search`,children:fe}),pe]})})}function An({icon:e,caption:t}){return(0,Z.jsxs)(`span`,{className:`caps-icon-choice-mark`,"aria-hidden":`true`,children:[(0,Z.jsx)(`span`,{className:`caps-icon-choice-art`,children:e}),t?(0,Z.jsx)(`span`,{className:`caps-icon-choice-caption`,children:t}):null,(0,Z.jsx)(`span`,{className:`caps-icon-choice-lamp`})]})}var jn=(0,Y.forwardRef)(function({label:e,icon:t,caption:n,appearance:r,className:i,...a},o){return(0,Z.jsx)(`label`,{className:`caps-icon-choice`,"data-appearance":r===`compact`?r:void 0,children:(0,Z.jsx)(Ie,{...a,appearance:r??`default`,"aria-label":e,className:H(`caps-icon-choice-input`,i),indicator:(0,Z.jsx)(An,{icon:t,caption:n}),ref:o})})}),Mn=(0,Y.forwardRef)(function({label:e,icon:t,hint:n,className:r,...i},a){let o=(0,Y.useId)(),s=[i[`aria-describedby`],n?o:null].filter(Boolean).join(` `)||void 0;return(0,Z.jsx)(`label`,{className:`caps-check-key`,children:(0,Z.jsx)(Ie,{...i,"aria-label":e,"aria-describedby":s,className:H(`caps-check-key-input`,r),indicator:(0,Z.jsxs)(`span`,{className:`caps-check-key-face`,"aria-hidden":`true`,children:[t?(0,Z.jsx)(`span`,{className:`caps-check-key-icon`,children:t}):null,(0,Z.jsxs)(`span`,{className:`caps-check-key-copy`,children:[(0,Z.jsx)(`span`,{className:`caps-check-key-label`,children:e}),n?(0,Z.jsx)(`span`,{className:`caps-check-key-hint`,id:o,children:n}):null]}),(0,Z.jsx)(`span`,{className:`caps-check-key-lamp`})]}),ref:a})})});function Nn({className:e,...t}){return(0,Z.jsx)(`div`,{...t,className:H(`caps-check-keys`,e)})}function Pn({checked:e}){let t=`caps-radio-${(0,Y.useId)().replaceAll(`:`,``)}`,n=(0,Y.useRef)(null),r=(0,Y.useRef)(e).current,i=(0,Y.useRef)(e),a=(0,Y.useRef)(null),o=L(a),{reduced:s}=o;return(0,Y.useLayoutEffect)(()=>{if(!n.current)return;let t=s||i.current===e;i.current=e;let r=e?4:0,a=Ee(o,{ease:`outCubic`,duration:75}),c=e?we(o,{bounce:.65,duration:300}):Ee(o,{ease:`inCubic`,duration:100}),l=Ue(n.current,t?{rx:r,ry:r,cy:6,duration:0}:{rx:[{to:e?3.5:4.15,...a},{to:r,...c}],ry:[{to:e?4.5:3.85,...a},{to:r,...c}],cy:[{to:e?5.85:6.1,...a},{to:6,...c}]});return()=>{l.cancel()}},[e,s,o]),(0,Z.jsxs)(`svg`,{ref:a,className:`caps-radio-visual`,width:`24`,height:`24`,viewBox:`0 0 12 12`,"aria-hidden":`true`,focusable:`false`,children:[(0,Z.jsxs)(`defs`,{children:[(0,Z.jsx)(le,{id:`${t}-surface`,transform:`matrix(1 0 0 1 6 6)`}),(0,Z.jsx)(ae,{id:`${t}-shadow`}),(0,Z.jsx)(A,{id:`${t}-inset`}),(0,Z.jsx)(`clipPath`,{id:`${t}-well`,children:(0,Z.jsx)(`circle`,{cx:`6`,cy:`6`,r:`5`})})]}),(0,Z.jsx)(`circle`,{className:`caps-radio-track`,cx:`6`,cy:`6`,r:`5.5`,filter:`url(#${t}-inset)`}),(0,Z.jsx)(`g`,{clipPath:`url(#${t}-well)`,children:(0,Z.jsx)(`ellipse`,{ref:n,cx:`6`,cy:`6`,rx:r?4:0,ry:r?4:0,fill:`url(#${t}-surface)`,filter:`url(#${t}-shadow)`})})]})}var Fn=(0,Y.createContext)(null),In=(0,Y.forwardRef)(function({children:e,className:t,defaultValue:n,disabled:r=!1,name:i,onValueChange:a,orientation:o=`vertical`,value:s,...c},l){let u=(0,Y.useId)(),d=(0,Y.useRef)(null);(0,Y.useImperativeHandle)(l,()=>{if(!d.current)throw Error(`RadioGroup is not mounted`);return d.current},[]);let f=i??`radio-group-${u}`,[p,m]=(0,Y.useState)(n),h=s??p;return(0,Y.useEffect)(()=>{let e=d.current?.form;if(!e||s!==void 0)return;let t=e=>{queueMicrotask(()=>{e.defaultPrevented||m(n)})};return e.addEventListener(`reset`,t),()=>{e.removeEventListener(`reset`,t)}},[s,n,c.form]),(0,Z.jsx)(Fn.Provider,{value:{disabled:r,name:f,onValueChange:e=>{s===void 0&&m(e),a?.(e)},value:h},children:(0,Z.jsx)(`fieldset`,{...c,className:H(`flex gap-md`,o===`horizontal`?`flex-row flex-wrap`:`flex-col`,t),disabled:r,role:c.role??`radiogroup`,ref:d,children:e})})}),Q=(0,Y.forwardRef)(function({className:e,indicator:t,onChange:n,onClick:r,value:i,...a},o){let s=(0,Y.useContext)(Fn);if(!s)throw Error(`RadioGroupItem must be used inside <RadioGroup>`);let c=s.value===i,l=e=>{n?.(e),e.target.checked&&s.onValueChange?.(i)};return(0,Z.jsxs)(`span`,{className:`caps-radio`,"data-checked":c,"data-custom-indicator":t!==void 0||void 0,children:[(0,Z.jsx)(`input`,{...a,"aria-checked":c,checked:c,className:H(`caps-radio-input`,e),disabled:s.disabled||a.disabled,name:s.name,onChange:l,onClick:r,ref:o,type:`radio`,value:i}),t===void 0?(0,Z.jsx)(Pn,{checked:c}):t]})}),Ln=(0,Y.forwardRef)(function({description:e,id:t,meta:n,title:r,...i},a){let o=(0,Y.useContext)(Fn),s=(0,Y.useId)(),c=t??s,l=o?.value===i.value,u=o?.disabled===!0||i.disabled===!0;return(0,Z.jsxs)(`label`,{className:`caps-choice-card`,"data-checked":l,"data-disabled":u||void 0,htmlFor:c,children:[(0,Z.jsx)(Q,{...i,"aria-describedby":e?`${c}-description`:void 0,"aria-labelledby":`${c}-title`,id:c,ref:a}),(0,Z.jsxs)(`span`,{className:`caps-choice-card-copy`,children:[(0,Z.jsx)(`span`,{className:`caps-choice-card-title`,id:`${c}-title`,children:r}),e?(0,Z.jsx)(`span`,{className:`caps-choice-card-description`,id:`${c}-description`,children:e}):null]}),n?(0,Z.jsx)(`span`,{className:`caps-choice-card-meta`,children:n}):null]})}),Rn=(0,Y.forwardRef)(function({label:e,icon:t,caption:n,art:r=`dim`,className:i,...a},o){return(0,Z.jsx)(`label`,{className:`caps-icon-choice`,"data-art":r===`color`?r:void 0,children:(0,Z.jsx)(Q,{...a,"aria-label":e,className:H(`caps-icon-choice-input`,i),indicator:(0,Z.jsx)(An,{icon:t,caption:n}),ref:o})})});(0,Y.forwardRef)(function({label:e,color:t,className:n,...r},i){return(0,Z.jsx)(`label`,{className:`caps-icon-choice`,"data-art":`color`,"data-swatch":``,title:e,children:(0,Z.jsx)(Q,{...r,"aria-label":e,className:H(`caps-icon-choice-input`,n),indicator:(0,Z.jsx)(An,{icon:(0,Z.jsx)(`span`,{className:`caps-swatch-dot`,style:{backgroundColor:t}})}),ref:i})})});var zn=u(a),Bn=u(y),Vn=u(f(i)),Hn=u(W(a)),Un=W(C(File)),Wn=u(Un),Gn=x([a,i,y,ee,ge,W(a),Un]),Kn=u(Gn),$=e=>B(zn(e.state.value),()=>``),qn=e=>B(Bn(e.state.value),()=>!1),Jn=e=>B(Vn(e.state.value),()=>null),Yn=e=>B(Hn(e.state.value),()=>[]),Xn=e=>B(Wn(e.state.value),()=>[]),Zn=e=>B(Kn(e.state.value),()=>null);function Qn({field:e,spec:t,locked:n,...r}){let[i,a]=(0,Y.useState)(!1);return(0,Z.jsxs)(He,{children:[(0,Z.jsx)(G,{...r,name:t.name,disabled:n,type:i?`text`:`password`,autoComplete:`off`,spellCheck:!1,className:`caps-field-secret`,placeholder:t.placeholder,readOnly:t.readOnly,value:$(e),onBlur:e.handleBlur,onChange:t=>{e.handleChange(t.currentTarget.value)}}),(0,Z.jsx)(V,{type:`button`,variant:`outline`,size:`icon`,"aria-label":i?`Hide`:`Show`,"aria-pressed":i,disabled:n,onClick:()=>{a(e=>!e)},children:i?(0,Z.jsx)(en,{"aria-hidden":`true`}):(0,Z.jsx)(tn,{"aria-hidden":`true`})})]})}var $n={text:`text`,email:`email`,url:`url`,tel:`tel`};function er({spec:e,field:t,locked:n,...r}){let i=Xn(t),a=n||e.readOnly===!0,o=(0,Y.useRef)(null);return(0,Z.jsxs)(`div`,{className:`flex flex-col gap-sm`,children:[(0,Z.jsx)(O,{asChild:!0,children:(0,Z.jsx)(`input`,{...r,ref:o,type:`file`,tabIndex:-1,required:r.required===!0&&i.length===0,name:e.name,accept:e.accept,multiple:e.multiple,disabled:a,onBlur:t.handleBlur,onChange:e=>{t.handleChange(Array.from(e.currentTarget.files??[])),e.currentTarget.value=``}})}),(0,Z.jsx)(V,{type:`button`,variant:`outline`,"aria-label":`Choose files for ${e.label}`,"aria-describedby":r[`aria-describedby`],"aria-invalid":r[`aria-invalid`],disabled:a,onBlur:t.handleBlur,onClick:()=>{o.current?.click()},children:`Choose files`}),(0,Z.jsx)(Ve,{items:i.map((e,t)=>({id:String(t),name:e.name,preview:{kind:`file`},progress:0,progressLabel:`${String(e.size)} bytes`,statusLabel:`Selected`,actions:a?{}:{remove:{label:`Remove`,accessibleLabel:`Remove ${e.name}`}}})),onRemove:e=>{t.handleChange(i.filter((t,n)=>String(n)!==e))},onCancel:()=>void 0,onRetry:()=>void 0})]})}function tr({spec:e,field:t,locked:n,...r}){let i=e=>{t.handleChange(e)},a={...r,name:e.name,disabled:n,onBlur:t.handleBlur};switch(e.kind){case`text`:case`email`:case`url`:case`tel`:return(0,Z.jsx)(G,{...a,type:$n[e.kind],inputMode:e.kind===`text`?void 0:e.kind,autoComplete:e.autoComplete,placeholder:e.placeholder,maxLength:e.maxLength,readOnly:e.readOnly,value:$(t),onChange:e=>{i(e.currentTarget.value)}});case`textarea`:return(0,Z.jsx)(Se,{...a,rows:e.rows??3,placeholder:e.placeholder,maxLength:e.maxLength,readOnly:e.readOnly,value:$(t),onChange:e=>{i(e.currentTarget.value)}});case`secret`:return(0,Z.jsx)(Qn,{...r,field:t,spec:e,locked:n});case`money`:return(0,Z.jsxs)(He,{children:[(0,Z.jsx)(je,{className:`caps-field-currency`,children:e.currency??`USD`}),(0,Z.jsx)(G,{...a,inputMode:`decimal`,autoComplete:`off`,className:`caps-field-amount`,placeholder:e.placeholder??`0.00`,readOnly:e.readOnly,value:$(t),onChange:e=>{i(e.currentTarget.value)}})]});case`date`:return(0,Z.jsx)(G,{...a,type:`date`,readOnly:e.readOnly,value:$(t),onChange:e=>{i(e.currentTarget.value)}});case`number`:return(0,Z.jsx)(Pe,{...a,...e.min===void 0?{}:{min:e.min},...e.max===void 0?{}:{max:e.max},...e.step===void 0?{}:{step:e.step},...e.unit===void 0?{}:{unit:e.unit},...e.wrap===void 0?{}:{wrap:e.wrap},disabled:n||e.readOnly===!0,decrementLabel:`Decrease ${e.label}`,incrementLabel:`Increase ${e.label}`,value:Jn(t),onValueChange:e=>{t.handleChange(e)}});case`select`:return(0,Z.jsxs)(ze,{...a,value:$(t),onChange:e=>{i(e.currentTarget.value)},children:[e.placeholder===void 0?null:(0,Z.jsx)(`option`,{value:``,disabled:!0,children:e.placeholder}),e.options.map(e=>(0,Z.jsx)(`option`,{value:e.value,disabled:e.disabled,children:e.label},e.value))]});case`combobox`:return(0,Z.jsx)(kn,{id:r.id??e.name,"aria-describedby":r[`aria-describedby`],"aria-invalid":r[`aria-invalid`],"aria-required":r[`aria-required`],items:e.options,getKey:e=>e.value,getLabel:e=>e.label,isDisabled:t=>t.disabled||n||e.readOnly===!0,value:$(t),...e.placeholder===void 0?{}:{placeholder:e.placeholder},trigger:(0,Z.jsx)(Dn,{name:e.name,disabled:n||e.readOnly===!0,onBlur:t.handleBlur,children:e.options.find(e=>e.value===$(t))?.label??e.placeholder??`Choose…`}),inputProps:{"aria-label":`Search ${e.label}`,disabled:n||e.readOnly===!0},onValueChange:e=>{i(e??``),t.handleBlur()}});case`file`:return(0,Z.jsx)(er,{...r,spec:e,field:t,locked:n});case`checkbox`:return(0,Z.jsx)(Ie,{...a,disabled:n||e.readOnly===!0,checked:qn(t),onChange:e=>{t.handleChange(e.currentTarget.checked)}});case`switch`:return(0,Z.jsx)(Ce,{...a,disabled:n||e.readOnly===!0,checked:qn(t),onCheckedChange:e=>{t.handleChange(e)}});case`radio`:case`icon-radio`:case`checkboxes`:case`icon-checkboxes`:return null}}var nr=new Set([`radio`,`icon-radio`,`checkboxes`,`icon-checkboxes`]);function rr({spec:e,field:t,locked:n,error:r,layout:i}){let a=n||e.readOnly===!0,o=e.label;if(e.kind===`checkboxes`||e.kind===`icon-checkboxes`){let n=Yn(t),s=(e,r)=>{t.handleChange(r?[...n,e]:n.filter(t=>t!==e))};return(0,Z.jsx)(ke,{legend:o,icon:e.icon,layout:i,...i===`columns`?{legendTitle:o}:{},description:e.help,disabled:a,error:r??null,children:e.kind===`icon-checkboxes`?(0,Z.jsx)(`div`,{className:`caps-field-icon-choices`,children:e.options.map(r=>(0,Z.jsx)(jn,{name:e.name,value:r.value,label:r.label,...r.caption===void 0?{}:{caption:r.caption},icon:r.icon,disabled:r.disabled,checked:n.includes(r.value),onBlur:t.handleBlur,onChange:e=>{s(r.value,e.currentTarget.checked)}},r.value))}):(0,Z.jsx)(Nn,{children:e.options.map(r=>(0,Z.jsx)(Mn,{name:e.name,value:r.value,label:r.label,icon:r.icon,hint:r.description,disabled:r.disabled,checked:n.includes(r.value),onBlur:t.handleBlur,onChange:e=>{s(r.value,e.currentTarget.checked)}},r.value))})})}let s=e.options.some(e=>e.description!==void 0||e.meta!==void 0);return(0,Z.jsx)(ke,{legend:o,icon:e.icon,layout:i,...i===`columns`?{legendTitle:o}:{},description:e.help,disabled:a,error:r??null,children:(0,Z.jsx)(In,{name:e.name,"aria-label":o,value:$(t),onValueChange:e=>{t.handleChange(e),t.handleBlur()},orientation:e.kind===`icon-radio`||s?`horizontal`:`vertical`,children:e.options.map(t=>e.kind===`icon-radio`?(0,Z.jsx)(Rn,{value:t.value,label:t.label,...t.caption===void 0?{}:{caption:t.caption},icon:t.icon,disabled:t.disabled},t.value):s?(0,Z.jsx)(Ln,{value:t.value,title:t.label,description:t.description,meta:t.meta,disabled:t.disabled},t.value):(0,Z.jsx)(Ne,{label:t.label,orientation:`inline`,children:(0,Z.jsx)(Q,{value:t.value,disabled:t.disabled})},t.value))})})}function ir({spec:e,field:t,locked:n,error:r,render:i,...a}){return i({name:e.name,label:e.label,help:e.help,value:Zn(t),onChange:e=>{t.handleChange(e)},onBlur:t.handleBlur,error:r,disabled:n,id:a.id??e.name,"aria-describedby":a[`aria-describedby`],"aria-invalid":r!==void 0})}function ar({form:e,spec:t,locked:n,layout:r}){let i=Fe({form:e,name:t.name}),a=K(e.store,e=>e.submissionAttempts>0),o=i.state.meta.isBlurred||a?on(i.state.meta):void 0;if(t.render===void 0&&nr.has(t.kind))return(0,Z.jsx)(rr,{spec:t,field:i,locked:n,error:o,layout:r});let s=r===`columns`?t.kind===`switch`||t.kind===`checkbox`?`horizontal`:`vertical`:t.kind===`checkbox`?`inline`:(t.layout??(t.kind===`switch`?`row`:`stacked`))===`row`?`horizontal`:`vertical`;return(0,Z.jsx)(Ne,{label:t.label,...r===`columns`?{labelTitle:t.label}:{},description:t.help,icon:t.icon,orientation:s,error:o,...t.required===void 0?{}:{required:t.required},...t.optional===void 0?{}:{optional:t.optional},children:t.render===void 0?(0,Z.jsx)(tr,{spec:t,field:i,locked:n}):(0,Z.jsx)(ir,{spec:t,field:i,locked:n,error:o,render:t.render})})}var or=u(m(a,Gn));function sr({form:e,spec:t,locked:n,layout:r}){let i=t.when;return K(e.store,e=>i===void 0||i(B(or(e.values),()=>({}))))?(0,Z.jsx)(ar,{form:e,spec:t,locked:n,layout:r}):null}function cr({form:e,section:t,locked:n,layout:r}){let i=t.fields.map(t=>(0,Z.jsx)(sr,{form:e,spec:t,locked:n,layout:r},t.name));return t.title===void 0?i:(0,Z.jsx)(Ae,{title:t.title,description:t.description,layout:r,children:i})}function lr({model:e,names:t,disabled:n=!1,layout:r}){let i=e.form;return t===void 0?e.description.sections.map(e=>(0,Z.jsx)(cr,{form:i,section:e,locked:n,layout:r},e.id??``)):t.map(t=>{let a=e.description.fields.find(e=>e.name===t);return a===void 0?null:(0,Z.jsx)(sr,{form:i,spec:a,locked:n,layout:r},t)})}var ur=class{annotation;constructor(e){this.annotation=e}},dr=class{sections;constructor(e){this.sections=e}},fr=`caps/form`,pr=0;function mr(e){pr+=1;let t={[`${fr}:${String(pr)}`]:new ur(e)};return e.label!==void 0&&(t.title=e.label),e.help!==void 0&&(t.description=e.help),t}a.annotate(mr({kind:`secret`})).pipe(b(`Secret`));var hr=e=>{let t=e.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/[-_]+/g,` `).toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)};function gr(e){return Object.values(e??{}).reduce((e,t)=>t instanceof ur?{...e,...t.annotation}:e,{})}function _r(e){return e.reduce((e,t)=>({...e,...gr(t)}),{})}function vr(e){let t=e?.[fr];return t instanceof dr?t.sections:{}}var yr=u(a);function br(e){if(re(e))return o(yr(e.literal),{onNone:()=>null,onSome:e=>[e]});if(!M(e))return null;let t=[];for(let n of e.types){if(he(n))continue;let e=br(n);if(e===null)return null;t.push(...e)}return t}function xr(e){if(U(e))return{type:`string`,literals:[]};if(I(e))return{type:`number`,nullable:!1};if(se(e))return{type:`boolean`};let t=br(e);if(t!==null)return{type:`string`,literals:t};if(F(e)){let[t]=e.rest;if(t===void 0)return null;if(U(t))return{type:`strings`,literals:[]};let n=br(t);return n===null?null:{type:`strings`,literals:n}}if(M(e)){let t=e.types.filter(e=>!he(e)&&!R(e)),n=e.types.some(e=>R(e)),[r]=t;if(t.length!==1||r===void 0)return null;let i=xr(r);return i?.type===`number`?{type:`number`,nullable:n}:n?null:i}return null}function Sr(e){let t=e.ast;if(!k(t))throw Error(`A schema form needs a Schema.Struct.`);return{fields:t.propertySignatures.map(e=>{let t=String(e.name),n=fe(e.type),i=_r([e.type.annotations,...(e.type.checks??[]).map(e=>e.annotations)]),a=i.kind===`file`?{type:`files`}:xr(n);if(a===null)throw Error(`Schema field "${t}" has no form control. Annotate it with field({ render }) or a kind.`);return{name:t,valueType:a,optional:e.type.context?.isOptional===!0,annotation:i,title:r(e.type),description:v(e.type)}}),sections:vr(me(t))}}function Cr(e){let n=e,r=!1,i=!1;for(;;)if(n instanceof ie)r=!0,n=n.unwrap();else if(n instanceof t)i=!0,n=n.unwrap();else if(n instanceof w)n=n.unwrap();else if(n instanceof ce)n=n.in;else return{node:n,optional:r,nullable:i}}function wr(e){if(e instanceof oe){let t=e.options.map(e=>wr(e));return t.some(e=>e===null)?null:t.flatMap(e=>e??[])}let t=e instanceof D?e.options:e instanceof g?[...e.values]:null;if(t===null)return null;let n=t.map(e=>yr(e));return n.every(p)?n.map(e=>e.value):null}function Tr(e){let{node:t,nullable:n}=Cr(e);if(t instanceof z)return{type:`string`,literals:[]};if(t instanceof P)return{type:`number`,nullable:n};if(t instanceof T)return{type:`boolean`};let r=wr(t);if(r!==null)return{type:`string`,literals:r};if(t instanceof l){let e=Cr(t.element).node;if(e instanceof z)return{type:`strings`,literals:[]};let n=wr(e);return n===null?null:{type:`strings`,literals:n}}return null}function Er(e){let n=[e];for(;;){let e=n[n.length-1];if(e===void 0)break;let r=e instanceof ie||e instanceof t||e instanceof w?e.unwrap():e instanceof ce?e.in:e;if(r===e)break;n.push(r)}return n.reverse().map(e=>ne.get(e))}function Dr(e){return Er(e).reduce((e,t)=>({...e,...t}),{})}function Or(e){return Object.entries(e.shape)}function kr(e){let t=Cr(e).node;if(!(t instanceof de))throw Error(`A schema form needs a z.object.`);return{fields:Or(t).map(([e,t])=>{let n=_r(Er(t)),r=n.kind===`file`?{type:`files`}:Tr(t);if(r===null)throw Error(`Schema field "${e}" has no form control. Annotate it with field({ render }) or a kind.`);let i=Dr(t);return{name:e,valueType:r,optional:Cr(t).optional,annotation:n,title:i.title,description:i.description}}),sections:vr(Dr(e))}}function Ar(e,t){let n=t.options??{};return(e.length>0?e:Object.keys(n)).map(e=>{let t=n[e],r=t===void 0?{}:t instanceof Object?t:{label:t};return{value:e,label:r.label??hr(e),description:r.description,meta:r.meta,icon:r.icon,caption:r.caption,disabled:r.disabled===!0}})}function jr(e,t){let n=t.some(e=>e.icon!==void 0);switch(e.type){case`boolean`:return`switch`;case`number`:return`number`;case`strings`:return n?`icon-checkboxes`:`checkboxes`;case`files`:return`file`;case`string`:return t.length===0?`text`:t.length>12?`combobox`:n?`icon-radio`:t.some(e=>e.description!==void 0||e.meta!==void 0)||t.length<=3?`radio`:`select`}}function Mr(e,t){switch(e.type){case`boolean`:return!1;case`number`:return e.nullable?null:0;case`strings`:case`files`:return[];case`string`:return t[0]?.value??``}}function Nr(e){let t=e instanceof j?kr(e):Sr(e),n=t.fields.map((e,t)=>{let{kind:n,...r}=e.annotation,i=Ar(e.valueType.type===`string`||e.valueType.type===`strings`?e.valueType.literals:[],e.annotation),a=r.help??e.description;return{...r,name:e.name,label:r.label??e.title??hr(e.name),help:a,kind:n??jr(e.valueType,i),options:i,optionalInSchema:e.optional,index:t}}),r={};t.fields.forEach((e,t)=>{let i=n[t];i&&(r[e.name]=Mr(e.valueType,i.options))});let i=e=>e.order??e.index,a=e=>e.section!==void 0&&Object.hasOwn(t.sections,e.section)?e.section:null,o=e=>n.filter(t=>a(t)===e).sort((e,t)=>i(e)-i(t)),s=Object.entries(t.sections).map(([e,t])=>({id:e,title:t.title,description:t.description,fields:o(e)}));return{fields:n,sections:[{id:null,title:void 0,description:void 0,fields:o(null)},...s].filter(e=>e.fields.length>0),defaults:r}}function Pr(e){let t=e instanceof j?e:N(e);return{"~standard":{...t[`~standard`],validate:e=>{let n=t[`~standard`].validate(e);return n instanceof Promise?n.then(e=>Fr(e)):Fr(n)}}}}function Fr(e){return e.issues===void 0?e:{issues:e.issues.map(e=>e.path===void 0?e:{...e,path:e.path.slice(0,1)})}}var Ir=`onServer`;function Lr(e){let t=e.querySelector(`[aria-invalid="true"]`),n=t?.matches(`input, select, textarea, button, [tabindex]`)?t:t?.querySelector(`input, select, textarea, button`);return n?.focus(),n!=null}function Rr(e){if(Lr(e))return()=>void 0;let t=new MutationObserver(()=>{Lr(e)&&t.disconnect()});return t.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`aria-invalid`]}),()=>{t.disconnect()}}function zr(e){return e.state.meta.errorMap.onServer!==void 0}function Br(e){e.setMeta(e=>({...e,errorMap:{...e.errorMap,[Ir]:void 0}}))}function Vr(e,t,n){e.setFieldMeta(t,e=>({...e,isBlurred:!0,errorMap:{...e.errorMap,[Ir]:n}}))}function Hr(e){let[t,n]=(0,Y.useState)(null),[r,i]=(0,Y.useState)(null),[a,o]=(0,Y.useState)(e.defaultValues),[s,c]=(0,Y.useState)(null);Me(a,e.defaultValues)||(o(e.defaultValues),c(null));let{schema:l}=e,u=(0,Y.useMemo)(()=>Nr(l),[l]),d=(0,Y.useMemo)(()=>Pr(l),[l]),f=Re({defaultValues:s??a,validators:{onChange:d,onSubmit:d},listeners:{onChange:({fieldApi:e})=>{n(null),i(null),zr(e)&&Br(e)}},onSubmit:async({value:t,formApi:r})=>{n(null),i(null);let a=await Pr(l)[`~standard`].validate(t);if(a.issues){n(a.issues[0]?.message??`Check the form and try again.`);return}let o;try{o=await e.onSubmit(a.value,t)??{kind:`saved`}}catch(t){console.error(`SchemaForm submit failed`,t),n(e.failure??`Couldn't save changes. Try again.`);return}if(o.kind===`refused`){n(o.error??null);let e=r;for(let[t,n]of Object.entries(o.fields??{}))n!==void 0&&n.length>0&&Vr(e,t,n);return}let s=o.values??t;c(s),r.reset(s),i(o.message??`Saved`),e.onSaved?.(s)}});return{description:u,form:f,error:t,saved:r,discard:()=>{n(null),i(null),f.reset()},submit:()=>f.handleSubmit()}}function Ur(e){return{dirty:K(e.form.store,e=>!e.isDefaultValue),submitting:K(e.form.store,e=>e.isSubmitting),canSubmit:K(e.form.store,e=>e.canSubmit)}}function Wr({model:e,submitLabel:t=`Save changes`,discardLabel:n,onCancel:r,cancelLabel:i,allowClean:a,layout:o,footer:s,children:c,disabled:l=!1,...u}){let{submitting:d}=Ur(e),f=(0,Y.useRef)(null),p=(0,Y.useRef)(()=>void 0);return(0,Y.useEffect)(()=>()=>{p.current()},[]),(0,Z.jsxs)(Le,{...u,ref:f,layout:o,busy:d,noValidate:!0,onSubmit:t=>{t.preventDefault(),e.form.state.isSubmitting||e.submit().then(()=>{p.current();let t=f.current;t!==null&&!e.form.state.isValid&&(p.current=Rr(t))})},children:[c??(0,Z.jsx)(lr,{model:e,disabled:l,layout:o}),s===void 0?(0,Z.jsx)(qr,{model:e,label:t,discardLabel:r===void 0?n:void 0,onCancel:r,cancelLabel:i,allowClean:a??r!==void 0,divider:r===void 0}):s]})}function Gr({schema:e,defaultValues:t,onSubmit:n,onSaved:r,failure:i,...a}){let o=Hr({schema:e,defaultValues:t,onSubmit:n,onSaved:r,failure:i});return(0,Z.jsx)(Wr,{...a,model:o})}function Kr(e){return`model`in e?(0,Z.jsx)(Wr,{...e}):(0,Z.jsx)(Gr,{...e})}function qr({model:e,label:t,discardLabel:n,onCancel:r,cancelLabel:i=`Cancel`,allowClean:a=!1,dirtyLabel:o=`Unsaved changes`,buttonProps:s,...c}){let{dirty:l,submitting:u}=Ur(e),d=u?null:e.saved&&!l?(0,Z.jsx)(De,{tone:`success`,size:`compact`,label:e.saved}):l?(0,Z.jsx)(De,{tone:`neutral`,size:`compact`,label:o}):null;return(0,Z.jsxs)(Be,{...c,error:e.error,status:d,children:[r?(0,Z.jsx)(V,{type:`button`,variant:`ghost`,disabled:u,onClick:r,children:i}):n&&l?(0,Z.jsx)(V,{type:`button`,variant:`ghost`,disabled:u,onClick:e.discard,children:n}):null,(0,Z.jsx)(V,{...s,type:`submit`,loading:u,disabled:u||!l&&!a,title:!l&&!a?`No changes to save`:void 0,children:t})]})}function Jr({folder:e}){return(0,Z.jsx)($t,{open:e.editing,onOpenChange:e.setEditing,children:(0,Z.jsxs)(Yt,{children:[(0,Z.jsx)(Zt,{children:(0,Z.jsx)(Xt,{children:`Save prints to`})}),(0,Z.jsx)(Xr,{folder:e},e.computerId),(0,Z.jsx)(Jt,{children:(0,Z.jsx)(Qt,{render:(0,Z.jsx)(V,{variant:`outline`,size:`sm`}),children:`Close`})})]})})}var Yr=s({path:d.check(ue(E(ve),{message:`Enter an absolute Computer folder, such as /media.`})).annotate(mr({label:`Folder`,placeholder:`/media`}))});function Xr({folder:e}){let t=(0,Y.useRef)(!1),n=Hr({schema:Yr,defaultValues:{path:e.path??`/media`},onSubmit:async({path:n})=>{let r=await e.choose(n,t.current);return r?{kind:`refused`,fields:{path:r}}:{kind:`saved`}}}),r=e=>{t.current=e,n.form.setFieldMeta(`path`,e=>({...e,errorMap:{...e.errorMap,onServer:void 0}}))},i=e.busy||!e.writable;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Kr,{model:n,disabled:i,footer:(0,Z.jsxs)(Be,{divider:!1,children:[(0,Z.jsx)(qt,{className:`[--caps-keycap-width:auto]`,label:`Use`,type:`submit`,disabled:i,onClick:()=>{r(!1)}}),(0,Z.jsx)(qt,{className:`[--caps-keycap-width:auto]`,label:`Create`,type:`submit`,disabled:i,onClick:()=>{r(!0)}})]})}),e.error?(0,Z.jsx)(_e,{role:`alert`,icon:(0,Z.jsx)(Oe,{"aria-hidden":`true`,className:`size-[var(--stipe-icon-size-sm)]`}),primary:e.error}):(0,Z.jsx)(ye,{children:e.writable?`Prints saves new images and uploads here and shows this folder as your gallery.`:`This Computer is read-only for Prints, so the folder can’t change.`})]})}export{Jr as PrintsFolderDialog};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{C as t,Vn as n,vn as r,yn as i}from"./button-oE2Hrd5D.js";import{$ as a,Dt as o,Et as s,Mt as c,Ot as l,St as u,Tt as d,_t as f,at as p,bt as m,ct as h,dt as g,ft as _,gt as v,ht as y,it as b,kt as x,lt as S,mt as ee,nt as C,ot as w,pt as T,rt as te,st as E,tt as ne,ut as D,vt as O,wt as k,xt as A,yt as j}from"./dist-ujdia29J.js";function re(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{D(e,()=>t.signal,()=>n=!0)},u=T(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?_:g;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?N:M,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:M(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function M(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function N(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function P(e,t){return t?M(e,t)!=null:!1}function F(e,t){return!t||!e.getPreviousPageParam?!1:N(e,t)!=null}var I=class extends ne{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=z(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=z(this.options);e.data!==void 0&&(this.setState(R(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=u(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(m).catch(m):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>k(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===o||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>k(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!l(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=T(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?re(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=b({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof C&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof C){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...L(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...R(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),w.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function L(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:te(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function R(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function z(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var ie=class extends h{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),B(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return V(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return V(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof k(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!d(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&H(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||k(this.options.enabled,this.#t)!==k(t.enabled,this.#t)||k(this.options.staleTime,this.#t)!==k(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||k(this.options.enabled,this.#t)!==k(t.enabled,this.#t)||i!==this.#f)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return d(this.getCurrentResult(),n)||(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch().then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(m)),t}#h(e){return!S()&&k(this.options.enabled,this.#t)!==!1&&f(e)}#g(){this.#b();let e=k(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=l(this.#r.dataUpdatedAt,e)+1;this.#u=x.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#f=e,!(this.#f===0||!this.#h(this.#f))&&(this.#d=x.setInterval(()=>{(this.options.refetchIntervalInBackground||E.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(x.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(x.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},d=!1,f;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&B(e,t),o=i&&H(e,n,t,r);(a||o)&&(l={...l,...L(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:p,errorUpdatedAt:m,status:h}=l;f=l.data;let g=!1;if(t.placeholderData!==void 0&&f===void 0&&h===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,g=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,e!==void 0&&(h=`success`,f=u(i?.data,e,t),d=!0)}if(t.select&&f!==void 0&&!g){if(i&&f===a?.data&&t.select===this.#s)f=this.#c;else try{this.#s=t.select,f=t.select(f),f=u(i?.data,f,t),this.#c=f,this.#o=null}catch(e){this.#o=e}}else f===void 0&&(this.#o=null);this.#o&&(p=this.#o,f=this.#c,m=Date.now(),h=`error`,d=!1);let _=l.fetchStatus===`fetching`,v=h===`pending`,y=h===`error`,b=v&&_,x=f!==void 0;return{status:h,fetchStatus:l.fetchStatus,isPending:v,isSuccess:h===`success`,isError:y,isInitialLoading:b,isLoading:b,data:f,dataUpdatedAt:l.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:_,isRefetching:_&&!v,isLoadingError:y&&!x,isPaused:l.fetchStatus===`paused`,isPlaceholderData:d,isRefetchError:y&&x,isStale:U(e,t),refetch:this.refetch,isEnabled:k(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#l=this.#t),d(t,e))return;this.#r=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size)return!0;let r=new Set(n??this.#p);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})();w.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function ae(e,t){return k(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||k(t.retryOnMount,e)!==!1)}function B(e,t){return ae(e,t)||e.state.data!==void 0&&V(e,t,t.refetchOnMount)}function V(e,t,n){if(k(t.enabled,e)!==!1&&k(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&U(e,t)}return!1}function H(e,t,n,r){return(e!==t||k(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&U(e,n)}function U(e,t){return k(t.enabled,e)!==!1&&e.isStaleByTime(k(t.staleTime,e))}var W=class extends h{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new a({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=G(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=G(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=G(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=G(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){w.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>O(t,e))}findAll(e={}){return this.getAll().filter(t=>O(e,t))}notify(e){w.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return w.batch(()=>Promise.all(e.map(e=>e.continue().catch(m))))}};function G(e){return e.options.scope?.id}var K=class extends h{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??v(r,t),a=this.get(i);return a||(a=new I({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){w.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>j(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>j(e,t)):t}notify(e){w.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){w.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){w.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},q=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new K,this.#t=e.mutationCache||new W,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=E.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=p.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(k(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=ee(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return w.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;w.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return w.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=w.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(m).catch(m)}invalidateQueries(e,t={}){return w.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=w.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(m)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(m)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(k(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(k(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(m).catch(m)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(m).catch(m)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return p.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(y(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{A(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(y(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{A(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=v(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===o&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},J=e(n(),1),Y=J.createContext(!1),oe=()=>J.useContext(Y);Y.Provider,t();function se(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ce=J.createContext(se()),le=()=>J.useContext(ce),ue=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?s(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},de=e=>{J.useEffect(()=>{e.clearReset()},[e])},fe=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||s(n,[e.error,r])),pe=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},me=(e,t)=>e?.suspense&&t.isPending,he=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function X(e){return e}function ge(e){return e}var _e=r({status:i()}),ve=3,ye=/network ?(?:changed|error)|failed to fetch|load failed|network connection was lost/iu;function be(e){let t=[];for(let n=e;n!==void 0&&t.length<5;n=n instanceof Error?n.cause:void 0)t.push(n);return t}function xe(e){return be(e).some(e=>{if(e instanceof TypeError)return!0;if(e instanceof c)return e.code===`HOST_FAILURE`&&e.retryable;let t=_e.safeParse(e);return t.success?t.data.status>=500:e instanceof Error&&ye.test(e.message)})}function Se(e,t){return e<ve&&xe(t)}function Z(e){return 250*2**e}function Q(e){return e instanceof c?e:new c(`App operation failed`,{cause:e,code:`HOST_FAILURE`,retryable:!1})}var $=new WeakMap,Ce={of(e,...t){return[e?.identity.surfaceId??null,e?.context.get().computerId??null,...t]}};function we(e){let t={};return e&&$.set(t,e),t}function Te(){let e=new q({defaultOptions:{queries:{retry:!1,staleTime:3e4,refetchOnWindowFocus:!1},mutations:{retry:!1}}}),t=new Map;return e.getQueryCache().subscribe(n=>{let r=n.query;if(n.type===`removed`){t.get(r.queryHash)?.release(),t.delete(r.queryHash);return}let i=r.meta&&$.get(r.meta),a=t.get(r.queryHash);if(a?.app===i||(a?.release(),t.delete(r.queryHash),!i))return;let o=()=>{queueMicrotask(()=>{e.getQueryCache().get(r.queryHash)===r&&t.get(r.queryHash)?.app===i&&e.resetQueries({predicate:e=>e===r})})},s=i.capabilities.subscribe(o);t.set(r.queryHash,{app:i,release:s}),a&&o()}),e}function Ee(e,t,n,r){let i=e?.context.get().computerId;return X({queryKey:n,meta:we(e),enabled:e!==null,retry:Se,retryDelay:Z,queryFn:async({signal:n})=>{try{if(!e)throw new c(`No App connection`,{code:`DISCONNECTED`,retryable:!0});if(e.context.get().computerId!==i)throw new c(`The selected Computer changed`,{code:`SELECTION_CHANGED`,retryable:!1});return await r(e.capabilities.require(t),n)}catch(e){throw Q(e)}}})}function De(e){return ge({mutationKey:e.queryKey,scope:{id:y(e.queryKey)},mutationFn:async(t,n)=>{try{return await e.mutationFn(t,n)}catch(e){throw Q(e)}},onMutate:async(t,{client:n})=>{if(n.isMutating({mutationKey:e.queryKey,exact:!0})>1)return;await n.cancelQueries({queryKey:e.queryKey,exact:!0});let r=n.getQueryData(e.queryKey);if(r!==void 0)return n.setQueryData(e.queryKey,e.apply(r,t)),{previous:r,optimistic:n.getQueryData(e.queryKey)}},onError:(t,n,r,{client:i})=>{r&&i.getQueryData(e.queryKey)===r.optimistic&&i.setQueryData(e.queryKey,r.previous)},onSettled:(t,n,r,i,{client:a})=>a.invalidateQueries({queryKey:e.queryKey,exact:!0})})}export{X as a,me as c,de as d,le as f,F as g,P as h,Ce as i,ue as l,ie as m,Te as n,pe as o,oe as p,De as r,he as s,Ee as t,fe as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));export{s as n,l as r,o as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{C as t,Vn as n,c as r,f as i,g as a,h as o,i as s,m as c,o as l,p as u,r as d,s as f,u as p,v as m,x as h}from"./button-oE2Hrd5D.js";import{a as g,i as _,n as v,o as y,r as b}from"./modules-C4mfDnjH.js";var x=h(`ChevronDown`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),S=h(`X`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),C=(e=10,t)=>{let n=t?_:y;return t=>n(g(t,0,1)*e)*(1/e)},w=e(n(),1),T=t(),E=Object.freeze({ease:`linear`,duration:0});function D(e,t){let n=i(e,t.duration);return n<=0?E:e.steps>0?{ease:C(e.steps),duration:n}:{ease:v({bounce:p(e,t.bounce),duration:n}),duration:n}}function O(e,t){let n=u(e,t.duration);return{ease:e.steps>0?C(e.steps):t.ease,duration:n}}var k={dot:{y:-4,height:8,cy:0},pill:{y:-16,height:32,cy:0},bang:{y:-16,height:20,cy:12}};function A({className:e,glyph:t,motion:n}){let i=`caps-status-${(0,w.useId)().replaceAll(`:`,``)}`,a=(0,w.useRef)(null),p=(0,w.useRef)(null),m=(0,w.useRef)(null),h=(0,w.useRef)(null),g=(0,w.useRef)(null),_=(0,w.useRef)(null),v=(0,w.useRef)(k[t]).current,y=(0,w.useRef)(t===`dot`?1:4).current,x=(0,w.useRef)(+(t===`bang`)).current,S=(0,w.useRef)(t),C=o(h),{reduced:A}=C;return(0,w.useLayoutEffect)(()=>{if(!a.current||!p.current||!g.current||!_.current)return;let e=k[t],n=A||S.current===t;S.current=t;let r=c(a.current),i=n?{duration:0}:D(r,{bounce:.3,duration:360}),o=b(a.current,{y:e.y,height:e.height,...i}),s=b(p.current,{cy:e.cy,...n?{duration:0}:{delay:u(r,35),...D(r,{bounce:.3,duration:420})}}),l=b(g.current,{gradientTransform:`matrix(1 0 0 ${t===`dot`?`1`:`4`} 0 0)`,...i}),d=b(_.current,{opacity:+(t===`bang`),...n?E:O(r,{ease:`inOutSine`,duration:220})});return()=>{o.cancel(),s.cancel(),l.cancel(),d.cancel()}},[t,A]),(0,w.useLayoutEffect)(()=>{if(!m.current||!h.current||A||n===`none`)return;let e=n===`pulse`?b(m.current,{opacity:[1,.45],...O(C,{ease:`inOutSine`,duration:750}),alternate:!0,loop:!0}):b(m.current,{keyframes:{"0%":{translateY:0,scaleX:1,scaleY:1},"18%":{translateY:.25,scaleX:1.1,scaleY:.91},"42%":{translateY:-1.3,scaleX:.94,scaleY:1.06},"62%":{translateY:-1.65,scaleX:1,scaleY:1},"82%":{translateY:.15,scaleX:1.06,scaleY:.95},"100%":{translateY:0,scaleX:1,scaleY:1}},...O(C,{ease:`inOutSine`,duration:1e3}),loop:!0}),t=d(h.current,t=>{t?e.resume():e.pause()});return()=>{t(),e.revert()}},[n,A,C]),(0,T.jsxs)(`svg`,{ref:h,"aria-hidden":`true`,className:`caps-status-bead ${e??``}`,width:`8`,height:`8`,viewBox:`-4 -4 8 8`,focusable:`false`,children:[(0,T.jsxs)(`defs`,{children:[(0,T.jsx)(s,{id:i,values:r}),(0,T.jsx)(f,{ref:g,id:`${i}-surface`,transform:`matrix(1 0 0 ${String(y)} 0 0)`}),(0,T.jsxs)(`radialGradient`,{id:`${i}-drop-light`,gradientUnits:`userSpaceOnUse`,cx:`-1.2`,cy:`10.4`,r:`5.6`,children:[(0,T.jsx)(`stop`,{offset:`0`,stopColor:`var(--color-white)`,style:{stopOpacity:`calc(var(--depth) * 0.5)`}}),(0,T.jsx)(`stop`,{offset:`1`,stopColor:`var(--color-white)`,stopOpacity:`0`})]}),(0,T.jsx)(l,{id:`${i}-shadow`}),(0,T.jsx)(`mask`,{id:`${i}-silhouette`,maskUnits:`userSpaceOnUse`,x:`-12`,y:`-24`,width:`24`,height:`48`,style:{maskType:`alpha`},children:(0,T.jsxs)(`g`,{fill:`var(--color-white)`,filter:`url(#${i})`,children:[(0,T.jsx)(`rect`,{ref:a,x:`-4`,y:v.y,width:`8`,height:v.height,rx:`4`}),(0,T.jsx)(`circle`,{ref:p,cx:`0`,cy:v.cy,r:`4`})]})})]}),(0,T.jsx)(`g`,{ref:m,filter:`url(#${i}-shadow)`,children:(0,T.jsxs)(`g`,{mask:`url(#${i}-silhouette)`,children:[(0,T.jsx)(`rect`,{x:`-12`,y:`-24`,width:`24`,height:`48`,fill:`url(#${i}-surface)`}),(0,T.jsx)(`rect`,{ref:_,x:`-12`,y:`-24`,width:`24`,height:`48`,fill:`url(#${i}-drop-light)`,opacity:x})]})})]})}var j=.28;function M(e,t){switch(e){case`ring`:return{dashes:1,track:0,arc:0,sweep:0,disc:0,tick:0,cross:0};case`arc`:return{dashes:0,track:1,arc:1,sweep:t===void 0?j:Math.min(1,Math.max(0,t)),disc:0,tick:0,cross:0};case`check`:return{dashes:0,track:0,arc:1,sweep:1,disc:1,tick:1,cross:0};case`cross`:return{dashes:0,track:0,arc:1,sweep:1,disc:1,tick:0,cross:1}}}var N=7.25;function P({className:e,glyph:t,progress:n}){let r=`caps-status-mark-${(0,w.useId)().replaceAll(`:`,``)}`,i=(0,w.useRef)(null),o=(0,w.useRef)(null),s=(0,w.useRef)(null),l=(0,w.useRef)(null),u=(0,w.useRef)(null),p=(0,w.useRef)(null),m=(0,w.useRef)(null),h=(0,w.useRef)(null),g=(0,w.useRef)(M(t,n)).current,_=(0,w.useRef)(t),v=a();(0,w.useLayoutEffect)(()=>{let e=i.current,r=o.current,a=s.current,u=l.current,d=p.current,f=m.current,g=h.current;if(!e||!r||!a||!u||!d||!f||!g)return;let y=M(t,n),x=_.current;_.current=t;let S=c(e),C=v||x===t&&t!==`arc`,w=C?v?{ease:S.ease,duration:S.fast}:E:O(S,{ease:`outQuad`,duration:160}),T=(t===`check`||t===`cross`)&&!C,k=O(S,{ease:`inOutSine`,duration:220}),A=[b(r,{opacity:y.dashes,...w}),b(a,{opacity:y.track*.28,...w}),b(u,{opacity:y.arc,"stroke-dasharray":`${String(y.sweep)} 1`,...C?v?E:w:k}),b(d,{r:y.disc*N,...T?{delay:k.duration*.7,...D(S,{bounce:.35,duration:360})}:v?E:O(S,{ease:`inCubic`,duration:140})}),b(f,{"stroke-dashoffset":1-y.tick,...T&&y.tick>0?{delay:k.duration*.7+S.fast,...O(S,{ease:`outCubic`,duration:240})}:E}),b(g,{"stroke-dashoffset":1-y.cross,...T&&y.cross>0?{delay:k.duration*.7+S.fast,...O(S,{ease:`outCubic`,duration:240})}:E})];return t===`cross`&&T&&S.shake>0&&A.push(b(e,{translateX:[0,-S.shake,S.shake,-S.shake/2,0],delay:k.duration+S.fast,...O(S,{ease:`linear`,duration:300})})),()=>{for(let e of A)e.cancel()}},[t,n,v]);let y=t===`arc`&&n===void 0&&!v;return(0,w.useLayoutEffect)(()=>{if(!y||!u.current||!i.current)return;let e=c(i.current),t=b(u.current,{rotate:[0,360],...O(e,{ease:`linear`,duration:900}),loop:!0}),n=d(i.current,e=>{e?t.resume():t.pause()});return()=>{n(),t.revert()}},[y]),(0,T.jsxs)(`svg`,{ref:i,"aria-hidden":`true`,className:`caps-status-mark ${e??``}`,viewBox:`0 0 16 16`,focusable:`false`,children:[(0,T.jsxs)(`defs`,{children:[(0,T.jsx)(f,{id:`${r}-surface`,transform:`matrix(1.6 0 0 1.6 8 8)`}),(0,T.jsxs)(`mask`,{id:`${r}-knock`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`16`,height:`16`,children:[(0,T.jsx)(`rect`,{width:`16`,height:`16`,fill:`var(--color-white)`}),(0,T.jsx)(`path`,{ref:m,d:`M4.9 8.3 7.1 10.5 11.2 5.9`,fill:`none`,stroke:`var(--color-black)`,strokeWidth:`1.9`,strokeLinecap:`round`,strokeLinejoin:`round`,pathLength:1,strokeDasharray:`1 1`,strokeDashoffset:1-g.tick}),(0,T.jsx)(`path`,{ref:h,d:`M5.4 5.4 10.6 10.6 M10.6 5.4 5.4 10.6`,fill:`none`,stroke:`var(--color-black)`,strokeWidth:`1.9`,strokeLinecap:`round`,pathLength:1,strokeDasharray:`1 1`,strokeDashoffset:1-g.cross})]})]}),(0,T.jsx)(`circle`,{ref:o,cx:`8`,cy:`8`,r:`6.25`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeDasharray:`1.7 2.2`,opacity:g.dashes}),(0,T.jsx)(`circle`,{ref:s,cx:`8`,cy:`8`,r:`6.25`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,opacity:g.track*.28}),(0,T.jsx)(`g`,{ref:u,className:`caps-status-mark-spin`,children:(0,T.jsx)(`circle`,{ref:l,cx:`8`,cy:`8`,r:`6.25`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,pathLength:1,strokeDasharray:`${String(g.sweep)} 1`,transform:`rotate(-90 8 8)`,opacity:g.arc})}),(0,T.jsx)(`circle`,{ref:p,cx:`8`,cy:`8`,r:g.disc*N,fill:`url(#${r}-surface)`,mask:`url(#${r}-knock)`})]})}var F=new Set([`ring`,`arc`,`check`,`cross`]);function I(e){return F.has(e)}var L={neutral:`text-base-content`,primary:`text-primary`,secondary:`text-secondary`,accent:`text-accent`,success:`text-success`,info:`text-info`,warning:`text-warning`,error:`text-error`},R=(0,w.forwardRef)(function({className:e,label:t,glyph:n=`dot`,motion:r=`none`,tone:i=`neutral`,size:a=`default`,appearance:o=`plain`,progress:s,...c},l){return(0,T.jsxs)(`span`,{...c,className:m(`caps-status`,a===`compact`&&`caps-status-compact`,o===`chip`&&`caps-status-chip`,e),"data-tone":o===`chip`?i:void 0,"data-glyph":n,"data-motion":r,ref:l,children:[I(n)?(0,T.jsx)(P,{className:L[i],glyph:n,progress:s}):(0,T.jsx)(A,{className:L[i],glyph:n,motion:r}),t===void 0?null:(0,T.jsx)(`span`,{children:t})]})});export{S as a,D as i,E as n,x as o,O as r,R as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{A as t,An as n,Bn as r,C as i,F as a,Fn as o,I as s,In as c,Ln as l,M as u,Mn as d,Nn as f,Pn as p,Rn as m,Vn as h,W as g,a as _,g as v,it as y,jn as b,m as x,o as S,s as C,st as w,v as T,x as E,zn as D}from"./button-oE2Hrd5D.js";import{a as O,i as k,r as A,t as j}from"./status-DNJRO5m5.js";import{r as M}from"./modules-C4mfDnjH.js";import{n as N}from"./keycap-D2RkH2IS.js";var P=r(`ZodMiniType`,(e,t)=>{if(!e._zod)throw Error(`Uninitialized schema in ZodMiniType.`);d.init(e,t),e.def=t,e.type=t.type,e.parse=(t,n)=>f(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>o(e,t,n),e.parseAsync=async(t,n)=>p(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>c(e,t,n),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]},{parent:!0}),e.with=e.check,e.clone=(t,n)=>l(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.apply=t=>t(e)}),F=r(`ZodMiniObject`,(e,t)=>{b.init(e,t),P.init(e,t),m(e,`shape`,()=>t.shape)});function I(e,t){return new F({type:`object`,shape:e??{},...D(t)})}var L=r(`ZodMiniLiteral`,(e,t)=>{n.init(e,t),P.init(e,t)});function R(e,t){return new L({type:`literal`,values:Array.isArray(e)?e:[e],...D(t)})}var z=E(`Check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),B=E(`FileImage`,[[`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`,key:`1rqfz7`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`circle`,{cx:`10`,cy:`12`,r:`2`,key:`737tya`}],[`path`,{d:`m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22`,key:`wt3hpn`}]]),V=E(`RotateCcw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]);s({computerId:t});var H=a.pipe(g(y(4096)),g(w(e=>e.startsWith(`/`)&&e!==`/`&&!e.includes(`\0`)&&!e.endsWith(`/`)&&!e.split(`/`).some(e=>e===`.`||e===`..`))));s({path:u(H)});var U=i(),W=e(h(),1);function G({checked:e}){let t=`caps-switch-${(0,W.useId)().replaceAll(`:`,``)}`,n=(0,W.useRef)(null),r=(0,W.useRef)(null),i=(0,W.useRef)(e).current,a=(0,W.useRef)(e),o=v();return(0,W.useLayoutEffect)(()=>{if(!n.current||!r.current)return;let t=o||a.current===e;a.current=e;let i=e?16:8,s=x(n.current),c=k(s,{bounce:.25,duration:440}),l=A(s,{ease:`inOutSine`,duration:100}),u=M(n.current,t?{x:2,y:2,width:i,height:8,duration:0}:{x:[{to:e?2.5:1.5,...l},{to:2,...c}],y:[{to:1.5,...l},{to:2,...c}],height:[{to:9,...l},{to:8,...c}],width:[{to:e?7:16.5,...l},{to:i,...c}]}),d=M(r.current,{gradientTransform:e?`matrix(2 0 0 1 10 6)`:`matrix(1 0 0 1 6 6)`,...t?{duration:0}:{delay:l.duration,...c}});return()=>{u.cancel(),d.cancel()}},[e,o]),(0,U.jsxs)(`svg`,{className:`caps-switch-visual`,width:`40`,height:`24`,viewBox:`0 0 20 12`,"aria-hidden":`true`,focusable:`false`,children:[(0,U.jsxs)(`defs`,{children:[(0,U.jsx)(C,{ref:r,id:`${t}-surface`,transform:i?`matrix(2 0 0 1 10 6)`:`matrix(1 0 0 1 6 6)`}),(0,U.jsx)(S,{id:`${t}-shadow`}),(0,U.jsx)(_,{id:`${t}-inset`}),(0,U.jsx)(`clipPath`,{id:`${t}-track`,children:(0,U.jsx)(`rect`,{x:`1`,y:`1`,width:`18`,height:`10`,rx:`5`})})]}),(0,U.jsx)(`rect`,{className:`caps-switch-track`,filter:`url(#${t}-inset)`,x:`0.5`,y:`0.5`,width:`19`,height:`11`,rx:`5.5`}),(0,U.jsx)(`g`,{clipPath:`url(#${t}-track)`,children:(0,U.jsx)(`rect`,{ref:n,x:`2`,y:`2`,width:i?16:8,height:`8`,rx:`4`,fill:`url(#${t}-surface)`,filter:`url(#${t}-shadow)`})})]})}var K=(0,W.forwardRef)(function({className:e,checked:t,defaultChecked:n=!1,onChange:r,onCheckedChange:i,...a},o){let s=(0,W.useRef)(null),[c,l]=(0,W.useState)(n),u=t??c;return(0,W.useImperativeHandle)(o,()=>{if(!s.current)throw Error(`Switch input is not mounted`);return s.current},[]),(0,W.useEffect)(()=>{let e=s.current?.form;if(!e||t!==void 0)return;let r=e=>{queueMicrotask(()=>{!e.defaultPrevented&&s.current&&l(n)})};return e.addEventListener(`reset`,r),()=>{e.removeEventListener(`reset`,r)}},[t,n,a.form]),(0,U.jsxs)(`span`,{className:`caps-switch`,"data-checked":u,children:[(0,U.jsx)(`input`,{...a,checked:u,className:T(`caps-switch-input`,e),onChange:e=>{t===void 0&&l(e.target.checked),r?.(e),i?.(e.target.checked)},ref:s,role:`switch`,type:`checkbox`}),(0,U.jsx)(G,{checked:u})]})}),q=I({keyCode:R(229)});function J(e){return e.nativeEvent.isComposing||o(q,e.nativeEvent).success}var Y=(0,W.forwardRef)(function({className:e,...t},n){return(0,U.jsx)(`div`,{...t,ref:n,className:T(`caps-popover-anchor`,e)})}),X=(0,W.forwardRef)(function({className:e,open:t,side:n=`top`,...r},i){return t?(0,U.jsx)(`div`,{...r,ref:i,className:T(`caps-popover`,e),"data-side":n}):null}),Z=(0,W.forwardRef)(function({active:e,className:t,onMouseDown:n,...r},i){return(0,U.jsx)(`div`,{role:`option`,"aria-selected":e,...r,ref:i,className:T(`caps-popover-option`,t),"data-active":e,onMouseDown:e=>{e.preventDefault(),n?.(e)}})});function Q({items:e,openId:t,onOpenChange:n,leading:r,trailing:i,renderTrigger:a,placement:o=`housing`,align:s=`end`,hostInset:c,className:l,...u}){let d=(0,W.useId)(),f=(0,W.useRef)(null),p=(0,W.useRef)(null),m=(0,W.useRef)(new Map),h=e.find(e=>e.id===t&&!e.disabled),g=h?.id,_=()=>{g&&m.current.get(g)?.focus(),n(null)};return(0,W.useEffect)(()=>{g&&p.current?.focus()},[g]),(0,W.useEffect)(()=>{c===void 0?f.current?.style.removeProperty(`--caps-status-tray-host-inset`):f.current?.style.setProperty(`--caps-status-tray-host-inset`,`${String(Math.max(0,c))}px`)},[c]),(0,W.useEffect)(()=>{if(!g)return;let e=e=>{e.key!==`Escape`||e.defaultPrevented||(e.preventDefault(),m.current.get(g)?.focus(),n(null))},t=e=>{!(e.target instanceof Node)||f.current?.contains(e.target)||f.current?.querySelector(`[aria-haspopup="menu"][aria-expanded="true"]`)||n(null)};return document.addEventListener(`keydown`,e),document.addEventListener(`pointerdown`,t,!0),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`pointerdown`,t,!0)}},[g,n]),(0,U.jsxs)(Y,{...u,ref:f,className:T(`caps-status-tray`,l),"data-placement":o,"data-align":s,children:[h?(0,U.jsxs)(X,{open:!0,ref:p,tabIndex:-1,side:`top`,id:`${d}-${h.id}`,role:`dialog`,"aria-labelledby":`${d}-title`,className:`caps-status-tray-panel`,"data-status-tray-panel":h.id,children:[(0,U.jsxs)(`div`,{className:`caps-status-tray-head`,children:[h.tone?(0,U.jsx)(j,{size:`compact`,tone:h.tone,glyph:h.glyph??`dot`}):null,(0,U.jsx)(`span`,{id:`${d}-title`,className:`caps-status-tray-title`,children:h.title??h.label}),h.actions,(0,U.jsx)(N,{"aria-label":`Close tray`,icon:(0,U.jsx)(O,{"aria-hidden":`true`}),onClick:_})]}),(0,U.jsx)(`div`,{className:`caps-status-tray-body`,children:h.content})]}):null,o===`host`?null:(0,U.jsxs)(`div`,{className:`caps-status-tray-row`,children:[r,(0,U.jsx)(`div`,{className:`caps-status-tray-chips`,children:e.map(e=>{let r={ref:t=>{t?m.current.set(e.id,t):m.current.delete(e.id)},type:`button`,className:a?void 0:`caps-status-tray-chip`,"aria-expanded":g===e.id,"aria-controls":g===e.id?`${d}-${e.id}`:void 0,"aria-label":e.accessibleLabel,disabled:e.disabled,title:e.disabled?e.accessibleLabel:void 0,"aria-haspopup":`dialog`,"data-status-tray-chip":e.id,onClick:()=>{n(t===e.id?null:e.id)},children:(0,U.jsxs)(U.Fragment,{children:[e.tone?(0,U.jsx)(j,{size:`compact`,glyph:e.glyph??`dot`,motion:e.motion??`none`,tone:e.tone}):null,(0,U.jsx)(`span`,{className:`caps-status-tray-label`,children:e.label}),e.count!==void 0&&e.count>0?(0,U.jsx)(`span`,{className:`caps-status-tray-count`,children:e.count}):null]})};return(0,U.jsxs)(W.Fragment,{children:[a?a(r):(0,U.jsx)(`button`,{...r}),e.after]},e.id)})}),i]})]})}function $({children:e,className:t,...n}){return(0,U.jsx)(`div`,{...n,className:T(`caps-status-tray-list`,t),children:e})}function ee({icon:e,primary:t,secondary:n,actions:r,className:i,...a}){return(0,U.jsxs)(`div`,{...a,className:T(`caps-status-tray-item`,i),children:[e?(0,U.jsx)(`span`,{className:`caps-status-tray-icon`,children:e}):null,(0,U.jsxs)(`span`,{className:`caps-status-tray-text`,children:[(0,U.jsx)(`span`,{className:`caps-status-tray-primary`,children:t}),n?(0,U.jsx)(`span`,{className:`caps-status-tray-secondary`,children:n}):null]}),r?(0,U.jsx)(`span`,{className:`caps-status-tray-actions`,children:r}):null]})}function te({children:e=`All caught up.`,title:t}){return(0,U.jsxs)(`div`,{className:`caps-status-tray-note`,children:[t?(0,U.jsx)(`strong`,{className:`caps-status-tray-note-title`,children:t}):null,(0,U.jsx)(`p`,{children:e})]})}var ne=(0,W.forwardRef)(function({className:e,invalid:t,...n},r){return(0,U.jsx)(`textarea`,{...n,"aria-invalid":t?!0:n[`aria-invalid`]===!1?void 0:n[`aria-invalid`],className:T(`textarea textarea-bordered w-full`,t&&`textarea-error`,e),ref:r})});export{ee as a,Z as c,H as d,V as f,te as i,J as l,z as m,Q as n,X as o,B as p,$ as r,Y as s,ne as t,K as u};
|