@manifest-editor/components 2.2.2-next.0.903673e → 2.2.2-next.0.92cba17
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/README.md +67 -0
- package/dist/HTMLEditorImpl-BTL6pknt.js +3 -0
- package/dist/HTMLEditorImpl-BTL6pknt.js.map +1 -0
- package/dist/HTMLEditorImpl-YSNaSOFQ.cjs +3 -0
- package/dist/HTMLEditorImpl-YSNaSOFQ.cjs.map +1 -0
- package/dist/IIIFBrowserI18n-BqjV5W5b.cjs +3 -0
- package/dist/IIIFBrowserI18n-BqjV5W5b.cjs.map +1 -0
- package/dist/IIIFBrowserI18n-DroWtq-M.js +3 -0
- package/dist/IIIFBrowserI18n-DroWtq-M.js.map +1 -0
- package/dist/IIIFBrowserI18nImpl-B3WDLcnW.cjs +3 -0
- package/dist/IIIFBrowserI18nImpl-B3WDLcnW.cjs.map +1 -0
- package/dist/IIIFBrowserI18nImpl-DLwELdwH.js +3 -0
- package/dist/IIIFBrowserI18nImpl-DLwELdwH.js.map +1 -0
- package/dist/IIIFMediaPlayerImpl-BrVehzn_.js +3 -0
- package/dist/IIIFMediaPlayerImpl-BrVehzn_.js.map +1 -0
- package/dist/IIIFMediaPlayerImpl-cjHwnAgN.cjs +3 -0
- package/dist/IIIFMediaPlayerImpl-cjHwnAgN.cjs.map +1 -0
- package/dist/MDXEditorImpl-0XZVgBT6.js +3 -0
- package/dist/MDXEditorImpl-0XZVgBT6.js.map +1 -0
- package/dist/MDXEditorImpl-Db_xagm5.cjs +3 -0
- package/dist/MDXEditorImpl-Db_xagm5.cjs.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -21
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +53 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/lib.css +7132 -3154
- package/package.json +18 -10
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import{
|
|
2
|
+
import{a as e,i as t,n,r,t as i}from"./IIIFBrowserI18n-DroWtq-M.js";import{Button as a,Checkbox as o,Dialog as s,Form as c,Heading as l,Input as u,Label as d,ListBox as f,ListBoxItem as p,Menu as m,MenuItem as ee,MenuTrigger as te,Modal as ne,ModalOverlay as re,Popover as ie,Radio as ae,RadioGroup as oe,Tab as se,TabList as ce,TabPanel as le,Tabs as ue,Text as de,TextArea as fe}from"react-aria-components";import{Fragment as h,jsx as g,jsxs as _}from"react/jsx-runtime";import{twMerge as v}from"tailwind-merge";import{EditorI18nScope as pe,useEditorI18n as y,useTranslations as b}from"@manifest-editor/i18n";import{clsx as me}from"clsx";import{useDrag as he,useId as ge,usePress as _e}from"react-aria";import{createPaintingAnnotationsHelper as ve,createThumbnailHelper as ye,expandTarget as be,getValue as x}from"@iiif/helpers";import{CanvasContext as xe,LocaleString as S,getRenderingStrategy as Se,useAnnotation as Ce,useCanvas as C,useCollection as we,useLoadImageService as Te,useManifest as Ee,usePaintingAnnotations as De,useSvgEditorControls as Oe,useThumbnail as ke,useVault as w,useVaultSelector as T}from"react-iiif-vault";import*as E from"react";import{Suspense as D,forwardRef as O,lazy as k,memo as Ae,useCallback as je,useEffect as A,useLayoutEffect as j,useMemo as M,useRef as N,useState as P}from"react";import{ErrorBoundary as Me}from"react-error-boundary";import{LazyLoadComponent as Ne}from"react-lazy-load-image-component";import{getValue as Pe}from"@iiif/helpers/i18n";import{FloatingPortal as Fe,autoUpdate as Ie,flip as Le,offset as Re,shift as ze,useDismiss as Be,useFloating as Ve,useFocus as He,useHover as Ue,useInteractions as We,useMergeRefs as Ge,useRole as Ke}from"@floating-ui/react";import qe from"mitt";import{createPortal as F}from"react-dom";import Je,{STATUS as Ye}from"react-joyride";import{createHideableComponent as Xe}from"@react-aria/collections";import{useToast as Ze,useToastRegion as Qe}from"@react-aria/toast";function $e({className:e,children:t,...n}){return g(a,{className:[`sr-only focus:not-sr-only p-2 bg-white text-black`,e].join(` `),...n,children:t})}function I({className:e,primary:t,center:n,large:r,onDark:i,children:o,...s}){return g(a,{className:a=>v(`border-none flex gap-1 items-center bg-me-50 flex-nowrap whitespace-nowrap text-me-700 text-sm rounded hover:bg-me-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-me-primary-500 focus-visible:ring-offset-2`,t&&!i?`bg-me-primary-500 text-white hover:bg-me-primary-600`:``,t&&i?`bg-me-700 text-white hover:bg-me-800`:``,n?`place-content-center`:``,r?`px-4 py-2`:`px-2 py-1`,a.isDisabled?`opacity-70 cursor-not-allowed pointer-events-none`:``,typeof e==`string`?e:e?.(a)),...s,children:o})}function et({children:e,controlsId:t}){return _(`div`,{className:`bg-me-gray-100 border-b text-black p-1 flex gap-4 items-center h-12`,children:[g(`div`,{className:`px-4`,children:e}),g(`div`,{id:t||`atlas-controls`,className:`flex gap-2`})]})}function L({title:e,titleId:t,...n}){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,"aria-labelledby":t,...n,children:[e?g(`title`,{id:t,children:e}):null,g(`path`,{d:`M0 0h24v24H0V0z`,fill:`none`}),g(`path`,{d:`M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z`,fill:`currentColor`})]})}const R=(...e)=>v(me(e));function tt({className:e,...t}){return g(`div`,{className:R(`relative ml-2`,e),...t})}function nt({className:e,active:t,runningCount:n=0,errorCount:r=0,children:i,...a}){let o=r>0,s=b(`components`),c=n>0;return _(`button`,{className:R(`relative cursor-pointer rounded-md border-0 bg-me-gray-100 p-1.5 text-xl text-me-primary-500`,`hover:bg-me-primary-500 hover:text-white focus:outline-none focus:ring-2 focus:ring-me-primary-500`,t&&`bg-me-primary-500 text-white`,e),type:`button`,"aria-label":n||r?s(`background.summary`,{running:n,errors:r}):s(`background.menu`),...a,children:[i||g(gt,{"aria-hidden":!0}),o?g(`span`,{className:`absolute -right-1.5 -top-1.5 flex h-[18px] min-w-[18px] items-center justify-center rounded-full bg-red-500 px-1 text-[9px] font-bold leading-none text-white ring-2 ring-white`,children:r>9?`9+`:r}):c?g(`span`,{className:`absolute -right-1.5 -top-1.5 flex h-[18px] min-w-[18px] animate-pulse items-center justify-center rounded-full bg-orange-400 px-1 text-[9px] font-bold leading-none text-white ring-2 ring-white`,children:n>9?`9+`:n}):null]})}function rt({className:e,open:t,...n}){return g(`div`,{className:R(`pointer-events-none absolute right-0 top-full z-50 mt-2 w-80 max-w-[calc(100vw-2rem)] rounded-lg border border-zinc-200 bg-white opacity-0 shadow-[0_12px_32px_rgba(0,0,0,0.12)] transition-[opacity,transform] duration-150 ease-out translate-y-2 overflow-hidden`,t&&`pointer-events-auto opacity-100 translate-y-0`,e),...n})}function it({className:e,...t}){return g(`div`,{className:R(`px-3 pt-2.5 pb-1 text-[10px] font-semibold uppercase tracking-widest leading-none text-zinc-600`,e),...t})}function at({className:e,...t}){return g(`div`,{className:R(`my-1.5 h-px bg-zinc-100`,e),...t})}function ot({className:e,status:t=`idle`,...n}){return g(`div`,{className:R(`mx-1.5 flex items-stretch gap-0 rounded-md overflow-hidden`,t===`error`&&`bg-red-50 outline outline-1 outline-red-200`,(t===`running`||t===`preparing`)&&`bg-orange-50/60`,t===`complete`&&`bg-green-50/60`,e),...n})}function st({className:e,running:t,...n}){return _(`button`,{className:R(`group flex min-w-0 flex-1 cursor-pointer items-center gap-2.5 rounded-md border-0 bg-transparent px-3 py-2 text-left text-black`,`hover:bg-black/5 focus:bg-black/5 focus:outline-none`,e),type:`button`,...n,children:[g(`span`,{className:`flex-none text-zinc-400 group-hover:text-zinc-600`,children:g(t?vt:_t,{"aria-hidden":!0})}),n.children]})}function ct({className:e,...t}){return g(`span`,{className:R(`flex min-w-0 flex-1 flex-col gap-0.5`,e),...t})}function lt({className:e,running:t,...n}){return g(`span`,{className:R(`truncate text-sm font-medium leading-tight text-zinc-800`,t&&`text-zinc-600`,e),...n})}function ut({className:e,variant:t=`default`,...n}){return g(`span`,{className:R(`text-xs leading-tight`,t===`error`?`text-red-700 font-medium line-clamp-2`:`truncate text-zinc-600`,e),...n})}function dt({className:e,children:t,...n}){return g(`button`,{className:R(`flex-none cursor-pointer self-center border-0 bg-transparent px-2 py-1 text-xs font-medium leading-none text-me-primary-500 hover:text-me-primary-600 focus:outline-none focus:ring-2 focus:ring-me-primary-200 rounded`,e),type:`button`,...n,children:t})}function ft({className:e,...t}){let n=b(`components`);return g(`button`,{className:R(`flex w-8 flex-none cursor-pointer items-center justify-center self-stretch border-0 border-l border-transparent bg-transparent text-[15px] text-zinc-300`,`hover:border-zinc-100 hover:bg-zinc-50 hover:text-zinc-500 focus:outline-none`,e),"aria-label":n(`background.info`),type:`button`,...t,children:g(L,{"aria-hidden":!0,style:{display:`block`}})})}function pt({className:e,percent:t,label:n}){let r=Math.min(100,Math.max(0,Number.isFinite(t)?t:0)),i=b(`components`),{locale:a}=y(),o=Math.round(r),s=new Intl.NumberFormat(a,{style:`percent`,maximumFractionDigits:0}).format(o/100);return _(`span`,{className:R(`flex w-full items-center gap-2 pt-0.5`,e),children:[g(`span`,{className:`h-1 min-w-0 flex-1 overflow-hidden rounded-full bg-zinc-200`,role:`progressbar`,"aria-label":n??i(`background.progress`),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o,children:g(`span`,{className:`block h-full rounded-full bg-me-primary-500 transition-[width] duration-500 ease-out`,style:{width:`${r}%`}})}),g(`span`,{className:`w-7 flex-none text-right text-[10px] font-medium leading-none text-zinc-400`,children:s})]})}function mt({className:e,running:t,...n}){return null}function ht({className:e,status:t=`idle`}){return null}function gt(e){return g(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 20 20`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,children:g(`g`,{id:`Header-design`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:g(`g`,{id:`Artboard`,transform:`translate(-1125, -19)`,children:_(`g`,{id:`Actions`,transform:`translate(1125, 19)`,children:[g(`circle`,{id:`Oval`,stroke:`currentColor`,strokeWidth:`2`,cx:`10`,cy:`10`,r:`9`}),g(`polygon`,{id:`Triangle`,fill:`currentColor`,transform:`translate(11.0714, 10) rotate(-270) translate(-11.0714, -10)`,points:`11.0714286 6.42857143 15.7142857 13.5714286 6.42857143 13.5714286`})]})})})})}function _t(e){return g(`svg`,{...e,viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,height:`14`,width:`14`,fill:`currentColor`,children:g(`path`,{d:`M3 2.5v11l10-5.5z`})})}function vt(e){return g(`svg`,{...e,viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,height:`14`,width:`14`,fill:`currentColor`,children:g(`rect`,{x:`3`,y:`3`,width:`10`,height:`10`,rx:`1.5`})})}function yt(e){let t=C();return t?g(S,{className:e.className,as:e.as,children:t.label}):null}function z({className:e,shouldTranslate:t,children:n,...r}){let i=N(null),a=N(null);return j(()=>{if(!i.current||!a.current)return;let e;function n(n){let r=n.clientX,o=n.clientY,s=r-e.x,c=o-e.y,l={x:s-e.width/2,y:c-e.height/2},u=Math.sqrt(l.x**2+l.y**2);t&&(i.current.style.transform=`
|
|
3
3
|
scale3d(1.07, 1.07, 1.07)
|
|
4
4
|
rotate3d(
|
|
5
5
|
${l.y/100},
|
|
@@ -15,5 +15,5 @@ import{Button as e,Checkbox as t,Dialog as n,Form as r,Heading as i,Input as a,L
|
|
|
15
15
|
#ffffff66,
|
|
16
16
|
#ffffff00
|
|
17
17
|
)
|
|
18
|
-
`}function r(){i.current.style.transform=``,a.current.style.backgroundImage=``}let o=!1,s=()=>{e=i.current.getBoundingClientRect(),o=!0},c=()=>{o=!1,r()},l=e=>{o&&n(e)};return i.current.addEventListener(`mouseenter`,s),i.current.addEventListener(`mouseleave`,c),i.current.addEventListener(`mousemove`,l),()=>{i.current.removeEventListener(`mouseenter`,s),i.current.removeEventListener(`mouseleave`,c),i.current.removeEventListener(`mousemove`,l)}},[]),v(`div`,{ref:i,className:y(`relative transition-all hover:duration-50`,t&&`hover:shadow-xl`,e),...r,children:[n,_(`div`,{className:`pointer-events-none absolute inset-0 transition-all`,style:{backgroundImage:`radial-gradient(circle at 50% -20%, #ffffff00, #ffffff00)`},ref:a})]})}function R(e){return v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:[_(`title`,{children:`Text`}),_(`path`,{fill:`currentColor`,d:`M3 21v-2h18v2zm0-4v-2h12v2zm0-4v-2h18v2zm0-4V7h12v2zm0-4V3h18v2z`})]})}function z(e){return _(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 42 42`,xmlns:`http://www.w3.org/2000/svg`,stroke:`currentColor`,...e,children:v(`g`,{transform:`translate(2 2)`,strokeWidth:5,fill:`none`,fillRule:`evenodd`,children:[_(`circle`,{strokeOpacity:.5,cx:18,cy:18,r:18}),_(`path`,{d:`M36 18c0-9.94-8.06-18-18-18`,children:_(`animateTransform`,{attributeName:`transform`,type:`rotate`,from:`0 18 18`,to:`360 18 18`,dur:`1s`,repeatCount:`indefinite`})})]})})}function B({cover:e,fade:t=!0,region:n,singleImage:r}){return _(we,{children:_(Ce,{fallback:_(`div`,{}),children:_(Bt,{cover:e,fade:t,region:n,singleImage:r})})})}const V=new Map;function Lt(e,t){return!!t&&le(e.target).source.id===t}function H(){let e=S(),t=C(),n=be(),[r]=ve(),i=A(()=>se(t),[t]),a=A(()=>i.getPaintables(n.filter(t=>Lt(t,e?.id))),[n,e?.id,i]);return A(()=>he({canvas:e,paintables:a,supports:[`empty`,`images`,`media`,`textual-content`,`complex-timeline`],loadImageService:r,vault:t}),[e,r,a,t])}function U(e){let t=e?.selector;return t&&(t.type===`iiif:ImageApiSelector`||t.type===`ImageApiSelector`)&&Rt(t.region)?t.region:null}function W(e){let t=e?.selector;if(!t||t.type!==`iiif:ImageApiSelector`&&t.type!==`ImageApiSelector`)return null;let n=String(t.rotation??``),r=Number(n.replace(/^!/,``));return n&&Number.isFinite(r)?n:null}function Rt(e){if(typeof e!=`string`)return!1;let t=(e.startsWith(`pct:`)?e.slice(4):e).split(`,`).map(Number);return t.length===4&&t.every(Number.isFinite)&&t[0]>=0&&t[1]>=0&&t[2]>0&&t[3]>0}function G(e,t=e=>e,n){return e.type===`images`?e.images.length>1||n?!0:e.images.some(e=>{let n=Gt(e.annotation?.body);return[t(n),n].some(e=>{let t=e?.selector,n=Number(t?.rotation);return U(e)!==null||(t?.type===`iiif:ImageApiSelector`||t?.type===`ImageApiSelector`)&&Number.isFinite(n)&&n!==0})}):!1}function K(e,t,n){let r=e.split(`/`);return r.length<4?e:(t&&(r[r.length-4]=t),r[r.length-3]=`256,`,n&&(r[r.length-2]=n),r.join(`/`))}function zt(e,t){return K(e,t,null)}function Bt({cover:e,fade:t=!0,region:n,singleImage:r}){let i=H(),a=C();return G(i,e=>(e?.id?a.get(e,{skipSelfReturn:!1}):e)||e,n)?_(Kt,{cover:e,fade:t,region:n,singleImage:r}):i.type===`textual-content`?_(`div`,{className:`text-black/60 flex items-center justify-center h-full bg-me-gray-100 animate-fadeInDelayed absolute inset-0`,children:_(R,{className:`w-16 h-16`})}):_(Vt,{cover:e,fade:t})}function Vt({cover:e,fade:t=!0}){j(null);let n=S(),r=n?!!V.get(n?.id):!1,[i,a]=M(!r),o=xe({height:256,width:256},!0),s=o?.id;O(()=>{if(!s||!n?.id)return;let e=V.get(n.id);e&&e!==s&&(V.delete(n.id),a(!0))},[s,n?.id]),n?.id&&s?V.set(n.id,s):n?.id&&V.get(n.id)&&(s=V.get(n?.id)),O(()=>{s&&!r&&a(!0)},[s,r]);let c=D(e=>{e&&!r&&(e.complete||e.naturalWidth>0)&&a(!1)},[r]);return v(`div`,{className:`w-full h-full relative`,children:[o?.id?_(`img`,{onLoad:()=>a(!1),ref:c,src:o?.id,alt:``,className:`select-none w-full h-full ${e?`object-cover`:`object-contain`} ${i?`opacity-0`:r?``:`animate-fadeIn`}`}):_(Ht,{}),!o?.id||i?_(`div`,{className:y(`absolute inset-0 flex items-center justify-center bg-me-gray-100 text-2xl z-10`,t&&`animate-fadeIn`),children:_(z,{})}):null]})}function Ht(){return H().type===`textual-content`?_(`div`,{className:`text-black/60 flex items-center justify-center h-full bg-me-gray-100 animate-fadeInDelayed absolute inset-0`,children:_(R,{className:`w-16 h-16`})}):_(`div`,{className:`text-black/60 flex items-center justify-center h-full bg-me-gray-100 animate-fadeInDelayed absolute inset-0`,children:`No thumbnail`})}function Ut(e,t){let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),i=Math.min(e.x+e.width,t.x+t.width),a=Math.min(e.y+e.height,t.y+t.height);return i<=n||a<=r?null:{x:n,y:r,width:i-n,height:a-r}}function Wt(e){return e?`${e.x},${e.y},${e.width},${e.height}`:``}function Gt(e){return Array.isArray(e)?e[0]:e}function Kt({cover:e,fade:t=!0,region:n,singleImage:r}){let i=S(),a=H(),o=C(),s=A(()=>ce(o),[o]),[c,l]=M({canvasId:null,regionKey:``,region:null,imagesToRender:[]}),u=`${Wt(n)}/${r?`single`:`all`}`;return O(()=>{let e=new AbortController;return(async()=>{if(!i||a.type!==`images`||!G(a,e=>(e?.id?o.get(e,{skipSelfReturn:!1}):e)||e,n))return;let t=a.images.map(e=>({image:e,target:e.target||{spatial:{x:0,y:0,width:i.width,height:i.height}}})),c=n?t.filter(e=>Ut(n,e.target.spatial)):t,d=n||null,f=n?r?(c.length?c:t).slice(0,1):c:t,p=[];for(let{image:t,target:n}of f){let i=Gt(t.annotation.body),a=i?o.get(i,{skipSelfReturn:!1})||i:t.annotation,c=U(a)||U(i),l=W(a)||W(i);if(await s.getBestThumbnailAtSize(a,{width:256,height:256,maxWidth:768,maxHeight:768,unsafeImageService:!0,allowUnsafe:!0,returnAllOptions:!0}).then(t=>{e.signal.aborted||t.best?.type===`fixed`&&p.push({image:{...t.best,id:K(t.best.id,c,l)},target:n})}).catch(()=>void 0),e.signal.aborted)return;if(d&&r&&p.length)break}l({canvasId:i.id,regionKey:u,region:d,imagesToRender:p})})().catch(t=>{!e.signal.aborted&&i?.id&&l({canvasId:i.id,regionKey:u,region:null,imagesToRender:[]})}),()=>{e.abort()}},[a,s,u,i]),!c||!i||c.canvasId!==i?.id||c.regionKey!==u?_(`div`,{className:y(`absolute inset-0 flex items-center justify-center bg-me-gray-100 text-2xl z-10`,t&&`animate-fadeIn`),children:_(z,{})}):_(`div`,{className:`flex items-center justify-center w-full h-full`,children:_(`div`,{className:`relative overflow-hidden max-h-full max-w-full`,style:{aspectRatio:`${(c.region?.width||i.width)/(c.region?.height||i.height)}`,width:(c.region?.width||i.width)>=(c.region?.height||i.height)?`100%`:`auto`,height:(c.region?.width||i.width)>=(c.region?.height||i.height)?`auto`:`100%`},children:c.imagesToRender.length?c.imagesToRender.map(e=>_(`div`,{className:`absolute`,style:{width:`${e.target.spatial.width/(c.region?.width||i.width)*100}%`,height:`${e.target.spatial.height/(c.region?.height||i.height)*100}%`,top:`${(e.target.spatial.y-(c.region?.y||0))/(c.region?.height||i.height)*100}%`,left:`${(e.target.spatial.x-(c.region?.x||0))/(c.region?.width||i.width)*100}%`},children:_(`img`,{className:`w-full h-full object-cover select-none`,src:e.image.id})},e.image.id)):_(Ht,{})})})}function qt(e){let t=S({id:e.id}),{dragProps:n}=ue({isDisabled:!e.dragState,getItems(){return[{"text/plain":JSON.stringify(e.dragState)}]}}),r=e.onClick?`button`:`div`,i=e.selected||e.active;return _(pe,{canvas:e.id,children:v(r,{...e.onClick?{type:`button`}:{},...e.dragState?n:{},onClick:e.onClick,className:y(`flex w-full flex-col border-0 bg-transparent p-0 text-inherit`,e.className),"data-canvas-selected":e.selected,"aria-current":i?`true`:void 0,"aria-label":e.onClick?b(t?.label)||`Untitled canvas`:void 0,...e.containerProps||{},children:[v(`div`,{className:`bg-me-gray-100 relative w-full aspect-square group flex-1 overflow-hidden rounded`,children:[_(L,{"data-canvas-selected":e.active,className:I(`border-2 border-transparent p-1 w-full h-full rounded select-none`,e.selected&&`border-me-primary-500`),children:_(B,{})}),e.icon||null]}),e.hideLabel?null:e.customLabel?e.customLabel({className:`text-sm text-center truncate mt-1`}):_(It,{className:`text-sm text-center truncate mt-1`,as:`div`})]})})}function Jt(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 -960 960 960`,"aria-label":`collection`,role:`img`,...e,children:_(`path`,{d:`M320-320h480v-480h-80v280l-100-60-100 60v-280H320v480Zm0 80q-33 0-56.5-23.5T240-320v-480q0-33 23.5-56.5T320-880h480q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H320ZM160-80q-33 0-56.5-23.5T80-160v-560h80v560h560v80H160Zm360-720h200-200Zm-200 0h480-480Z`,fill:`currentColor`})})}function Yt({as:e=`li`,isActive:t,onAction:n}){let r=_e({}),{pressProps:i}=fe({onPress:n});return v(e,{"aria-label":Te(r?.label),className:`border-b-2 border-b-gray-200 flex p-2 gap-3 text-left truncate items-center w-full hover:bg-gray-100 data-[active]:bg-gray-200 data-[active]:border-b-me-primary-500`,"data-active":t||void 0,...i,children:[_(Jt,{"data-active":t||void 0,className:`flex-shrink-0 text-2xl data-[active]:text-me-primary-500 text-gray-400`}),_(x,{children:r?.label})]})}function Xt({onPress:t,children:n}){return _(e,{className:`bg-me-primary-500 px-3 py-1 hover:bg-me-primary-600 text-white rounded`,onPress:t,children:n})}function Zt({children:e,className:t,...n}){return _(`button`,{className:I(`bg-white border border-me-primary-500 text-xs py-1 px-2 rounded text-me-primary-600 hover:bg-me-primary-50`,t),...n,children:e})}function Qt(e){return _(s,{orientation:`horizontal`,"aria-label":e.label,selectionMode:`single`,items:e.items,className:`grid grid-sm gap-4 p-4 mb-8`,children:e=>_($t,{...e})})}function $t(e){return v(c,{id:e.id,onAction:e.onClick,className:e=>y(`bg-white p-2 border-me-gray-300 rounded-md border hover:border-me-primary-500`,e.isFocused&&`border-me-primary-500 outline-me-primary-500 outline-2`),children:[_(`div`,{className:`rounded bg-me-gray-300 mb-2 flex items-center justify-center py-1 aspect-square`,title:e.id,children:_(`div`,{className:`text-center [&>svg]:w-16 [&>svg]:h-16`,children:e.icon})}),_(`div`,{className:`text-center font-semibold text-sm`,children:e.title}),_(`div`,{className:`text-sm text-center text-gray-600`,children:e.description})]})}const q=e=>_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#5f6368`,viewBox:`0 -960 960 960`,...e,children:_(`path`,{d:`M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z`,fill:`currentColor`})});function en({initialOpen:e=!1,placement:t=`top`,open:n,onOpenChange:r}={}){let[i,a]=T.useState(e),o=n??i,s=r??a,c=Me({placement:t,open:o,onOpenChange:s,whileElementsMounted:De,middleware:[ke(5),Oe({crossAxis:t.includes(`-`),fallbackAxisSideDirection:`start`,padding:5}),Ae({padding:5})]}),l=c.context,u=Pe(l,{move:!1,enabled:n==null}),d=Ne(l,{enabled:n==null}),f=je(l),p=Le(l,{role:`tooltip`}),m=Fe([u,d,f,p]);return T.useMemo(()=>({open:o,setOpen:s,...m,...c}),[o,s,m,c])}const tn=T.createContext(null),nn=()=>{let e=T.useContext(tn);if(e==null)throw Error(`Tooltip components must be wrapped in <Tooltip />`);return e};function J({children:e,...t}){let n=en(t);return _(tn.Provider,{value:n,children:e})}const Y=T.forwardRef(function({children:t,as:n,asChild:r=!1,...i},a){let o=nn(),s=t.ref,c=Ie([o.refs.setReference,a,s]);return r&&T.isValidElement(t)?T.cloneElement(t,o.getReferenceProps({ref:c,...i,...t.props,"data-state":o.open?`open`:`closed`})):_(n||e,{ref:c,"data-state":o.open?`open`:`closed`,...o.getReferenceProps(i),children:t})}),X=T.forwardRef(function({style:e,root:t,...n},r){let i=nn(),a=Ie([i.refs.setFloating,r]);if(!i.open)return null;let o=t||document.getElementById(`manifest-editor-container`);return _(Ee,{root:o,children:_(`div`,{ref:a,style:{...i.floatingStyles,...e},...i.getFloatingProps(n)})})});function Z(e){return _(X,{root:e.root,className:y(`bg-me-gray-900 text-white text-sm px-3 py-2 rounded opacity-90 z-50`,e.className),children:e.children})}function rn({label:e,id:t,getData:n,fileName:r,fileType:i}){let a=de(t);return _(J,{placement:`bottom`,children:v(Y,{className:`bg-me-gray-100 hover:bg-me-primary-500 hover:text-white p-1 rounded-md text-me-primary-500 text-2xl`,"aria-label":e,id:a,onPress:()=>an(n(),r,i),children:[_(q,{"aria-labelledby":t}),_(Z,{children:e})]})})}function an(e,t,n=`text/json`){let r=e instanceof Blob?e:new Blob([e],{type:n}),i=document.createElement(`a`);i.download=t,i.href=window.URL.createObjectURL(r);let a=new MouseEvent(`click`,{view:window,bubbles:!0,cancelable:!0});i.dispatchEvent(a),i.remove()}function on(e){return _(`div`,{className:I(`flex items-center justify-center text-gray-600 text-md`,e.$noMargin?``:`m-4`,e.$box?`p-4 border border-gray-200 rounded`:``),children:e.children})}function sn({children:e,small:t=!1,className:n}){return _(`div`,{className:y(`bg-red-500 text-white`,`border-1 drop-shadow border-red-700 w-full rounded-md py-2 px-4 leading-[1.9em] flex items-center`,`has-[a]:text-white`,t&&`text-xs whitespace-nowrap py-1 px-2 leading-[1.6em] w-fit`,n),children:e})}function cn({className:e,...t}){return _(o,{className:I(`font-semibold text-sm`,e),...t})}function ln({className:e,...t}){return _(te,{className:I(``,e),...t})}function un({className:e,...t}){return _(ee,{className:t=>I(`outline outline-me-primary-500 outline-offset-2 w-5 h-5 rounded-full bg-white transition-all border-[7px] border-gray-700 group-pressed:border-gray-800 outline-0`,e),...t})}function dn({className:e,...t}){return _(r,{className:I(``,e),...t})}function fn({className:e,...t}){return _(a,{className:I(`p-2 bg-me-gray-100 border-b border-b-me-gray-500`,`focus:ring-0 outline-0 focus:border-me-primary-500 focus:bg-[#ECEEF5]`,e),...t})}function pn({className:e,...t}){return _(ae,{className:I(`p-2 bg-me-gray-100 border-b border-b-me-gray-500`,`focus:ring-0 outline-0 focus:border-me-primary-500 focus:bg-[#ECEEF5]`,e),...t})}function mn({horizontal:e,className:t,...n}){return _(`div`,{className:I(`flex flex-col gap-2`,e&&`flex-row`,t),...n})}const hn={Input:fn,Form:dn,Label:cn,InputContainer:mn,RadioGroup:ln,Radio:un,TextArea:pn},gn=E(function({className:e,...t},n){return _(`div`,{ref:n,className:`relative text-2xl flex p-0.5 rounded-sm aspect-square hover:bg-me-primary-100 aria-expanded:bg-me-primary-500 aria-expanded:text-white ${e||``}`,...t})});function _n({className:e,locale:t}){let n=ge(),r=C(),i=A(()=>{if(!n?.body)return[];let e=vn(n.body,r),i=[];if(t&&n){let n=e.filter(e=>(Array.isArray(e.language)?e.language[0]:e.language)===t);i=n.length?n:e.length?[e[0]]:[]}else i=e;return i.filter(e=>e).map(e=>e.value).filter(Boolean)},[t,n,r]);return _(`div`,{className:e,children:i.map((e,t)=>_(`div`,{className:`prose-headings:mt-1 prose-headings:mb-1 prose-sm`,children:_(`div`,{dangerouslySetInnerHTML:{__html:e}})},t))})}function vn(e,t){return e.flatMap(e=>yn(e,t))}function yn(e,t){let n=bn(e,t);return n?n.type===`Choice`?xn(n.items).flatMap(e=>yn(e,t)):n.type===`TextualBody`||n.type===`Text`?[n]:[]:[]}function bn(e,t){return!e?.id||e.value||e.items?e:t.get(e,{skipSelfReturn:!1})||e}function xn(e){return Array.isArray(e)?e:e==null?[]:[e]}const Sn=new ze;Sn.setFlavor(`github`);const Cn=new Be;Cn.addRule(`iiif-image`,{filter:e=>e.nodeName===`IMG`&&e.getAttribute(`data-iiif-image`)===`true`,replacement:(e,t)=>t.outerHTML.replace(/\/?>$/,` />`)});function wn(e){return Cn.turndown(e)}function Tn(e){return Sn.makeHtml(e)}function En({editorRef:e,...t}){return _(Ge,{plugins:A(()=>[Je({allowedHeadingLevels:[2,3]}),Ze(),Xe(),Qe(),$e(),nt({browserProps:{navigation:{canSelectCollection:!1,canSelectManifest:!1,canSelectCanvas:!0}}}),Ye(),qe(),et({toolbarContents:()=>v(g,{children:[_(Ke,{}),_(He,{}),_(Ve,{}),_(We,{options:[`bullet`,`number`]}),_(Ue,{}),_(tt,{})]})})],[]),...t,ref:e})}function Dn({className:e,value:t,onChange:n,disabled:r}){let i=j(null),a=j(t),o=j(n);O(()=>{o.current=n},[n]);let s=D(()=>{if(i.current){let e=Tn(i.current.getMarkdown());e!==a.current&&(a.current=e,o.current(e))}},[]),c=Re(s,400),l=A(()=>wn(t),[t]);return O(()=>{t!==a.current&&(a.current=t,i.current?.setMarkdown(l))},[l,t]),O(()=>{let e=i.current,t=()=>{if(!e)return;let t=Tn(e.getMarkdown());t!==a.current&&(a.current=t,o.current(t))};return()=>{c.cancel(),t()}},[c]),_(En,{editorRef:i,onBlur:s,readOnly:r,className:y([`bg-white prose prose-sm text-sm border rounded prose-a:text-me-primary-500 prose-a:underline prose-ul:list-disc p-0.5`,`prose-ol:list-decimal`,`focus-within:outline-none focus-within:border-me-primary-500 z-50 relative`].join(` `),e),markdown:l,onError:e=>{console.log(`err`,e)},onChange:()=>{c()}})}function On(e,t=24){let[n,r]=M(!1);return k(()=>{e&&setTimeout(()=>{r(!0)},0)},[e]),e?n?e:e.slice(0,t):[]}globalThis.MS_LS_EMITTER=globalThis.MS_LS_EMITTER||rt();const Q=globalThis.MS_LS_EMITTER;function kn(e,t,n){let[r,i]=M(t),[a,o]=$(e,t);return n?[r,i]:[a,o]}function $(e,t){let n=j(void 0);!n.current&&t!==void 0&&(n.current=JSON.stringify(t));let[r,i]=M(()=>{try{if(typeof window>`u`||window.localStorage===void 0)return t;let r=window.localStorage.getItem(e);return r!=null&&(n.current=r),r?JSON.parse(r):t}catch(e){return console.log(e),t}});return O(()=>{let t=({valueJson:e})=>{if(e&&e!==n.current)try{i(JSON.parse(e)),n.current=e}catch{}};return Q.on(`change:${e}`,t),()=>{Q.off(`change:${e}`,t)}},[e]),[r,r=>{try{if(typeof window<`u`&&window.localStorage!==void 0){let a=t;try{a=n.current===void 0?t:JSON.parse(n.current)}catch{}let o=r instanceof Function?r(a):r;i(o);let s=JSON.stringify(o);window.localStorage.setItem(e,s),s!==n.current&&(n.current=s,Q.emit(`change:${e}`,{valueJson:s}))}}catch(e){console.log(e)}},n]}function An(e,t={}){let{defaultGridSize:n=`grid-md`,onDark:r=!1}=t,[i,a]=$(e||`default-grid-size`,n||`grid-md`);return[{size:i},v(`div`,{className:`flex gap-2 items-center`,id:`grid-options`,children:[_(`div`,{className:r?` text-white text-sm`:` text-sm`,children:`Grid size:`}),_(P,{onDark:r,primary:i===`grid-sm`,onPress:()=>a(`grid-sm`),children:`Small`}),_(P,{onDark:r,primary:i===`grid-md`,onPress:()=>a(`grid-md`),children:`Medium`}),_(P,{onDark:r,primary:i===`grid-lg`,onPress:()=>a(`grid-lg`),children:`Large`})]})]}function jn(e,t){let[n,r]=M(t.batchSize),i=A(()=>e.slice(0,n),[e,n]),a=D(()=>{r(e=>e+t.batchSize)},[t.batchSize]),o=A(()=>_(`div`,{style:{width:1,height:1},ref:e=>{let t=new IntersectionObserver(e=>{e[0]?.isIntersecting&&a()},{root:e?.parentElement,threshold:.1});return e&&t.observe(e),()=>{e&&t.unobserve(e)}}}),[a]),s=n>=e.length;return[s?e:i,{intersector:s?null:o,loadMore:a,isFullyLoaded:s,reset:()=>{r(t.batchSize)}}]}function Mn({children:e,active:t,label:n,disabled:r,onPress:i,root:a,className:o,placement:s=`top`}){return _(J,{placement:s,children:v(Y,{"aria-label":n,onClick:i,className:y(`rounded flex items-center bg-white justify-center p-2 hover:bg-gray-100 text-2xl`,t?`bg-me-primary-500 bg-opacity-40 hover:bg-opacity-70 hover:bg-me-primary-500`:``,r?`opacity-50 pointer-events-none`:``,o),children:[e,_(Z,{root:a,className:`translate-x-3 z-50`,children:n})]})})}const Nn=E(function({className:t,...n},r){return _(e,{className:y(`transition-all mt-1 mb-1 opacity-0 transform scale-y-70 focus-visible:ring-2 focus-visible:ring-me-primary-500`,`bg-white h-8 w-8 flex items-center justify-center rounded-full drop-shadow select-none group-hover:opacity-100 text-gray-500`,`hover:text-me-500 hover:bg-me-100`,t),...n,ref:r})});function Pn(e){let t=j(null),n=e.captions||[],r=e.language,i=j(e.startTime||0);return _(at,{onTimeUpdate:e=>{let t=Math.round(e.currentTime);i.current!==t&&(i.current=t)},ref:t,lang:r,className:`h-full w-full min-w-[275px] flex radius-0`,playsInline:!0,currentTime:e.startTime,duration:e.media.duration,src:[{src:e.media.url,type:e.media.format}],children:v(ot,{className:`w-full h-full [&>video]:w-full [&>video]:h-full [&>video]:object-contain`,children:[n.map(e=>_(ct,{src:e.id,kind:`subtitles`,label:b(e.label),default:e.language===r,language:e.language},e.id)),e.poster?_(st,{className:`absolute inset-0 bg-black block h-full w-full opacity-0 transition-opacity data-[visible]:opacity-100 object-contain`,src:e.poster}):null,_(Fn,{}),_(lt,{className:`z-1`,noGestures:!0,icons:ut})]})})}function Fn(){return v(g,{children:[_(it,{className:`pointer-coarse:hidden absolute top-0 start-12 bottom-20 right-0 -z-1 block`,event:`pointerup`,action:`toggle:paused`}),_(it,{className:`absolute inset-0 z-0 block h-full w-full`,event:`dblpointerup`,action:`toggle:fullscreen`})]})}function In({children:e,small:t=!1,className:n}){return _(`div`,{className:y(`bg-me-500 text-white`,`border-1 drop-shadow border-me-700 w-full rounded-md py-2 px-4 leading-[1.9em] flex items-center`,`has-[a]:text-white`,t&&`text-xs whitespace-nowrap py-1 px-2 leading-[1.6em] w-fit`,n),children:e})}function Ln({children:e,handle:t,actions:n,grid:r}){return v(`div`,{className:r?`relative flex flex-col`:`flex items-center`,children:[_(`div`,{className:`flex-1 min-w-0`,style:{flex:1,minWidth:0},children:e}),v(`div`,{className:r?`absolute flex p-1 gap-1 bg-white z-1 right-1 top-1 rounded`:`flex-shrink-0 flex items-center gap-1 px-1`,children:[n,t]})]})}function Rn({className:e,inline:t,height:n=16,color:r=`black`}){return v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:`${n}px`,viewBox:`0 0 24 24`,width:`24px`,fill:r,style:{verticalAlign:t?`bottom`:void 0},className:e,children:[_(`path`,{d:`M0 0h24v24H0z`,fill:`none`}),_(`path`,{d:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z`,fill:`currentColor`})]})}const zn=e=>_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#5f6368`,viewBox:`0 -960 960 960`,...e,children:_(`path`,{d:`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h360v80H200v560h560v-360h80v360q0 33-23.5 56.5T760-120H200Zm480-480v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80ZM240-280h480L570-480 450-320l-90-120-120 160Zm-40-480v560-560Z`,fill:`currentColor`})});function Bn(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:_(`path`,{fill:`currentColor`,d:`M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm9-2V5H5v14z`})})}function Vn(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:_(`path`,{fill:`currentColor`,d:`M4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h16q.825 0 1.413.588T22 6v5h-2V6H4v12h11v2H4Zm7.075-5.5l1.425-1.425L9.4 10H12V8H6v6h2v-2.575l3.075 3.075ZM17 20v-7h5v7h-5Zm-5-8Z`})})}function Hn({title:e,className:t,...n}){return v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,className:t,...n,children:[e?_(`title`,{children:e}):null,_(`path`,{fill:`currentColor`,d:`M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59a.996.996 0 0 0 0-1.41l-6.58-6.6a.996.996 0 1 0-1.41 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1`})]})}const Un=e=>_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#5f6368`,viewBox:`0 -960 960 960`,...e,children:_(`path`,{d:`M480-400q-50 0-85-35t-35-85v-240q0-50 35-85t85-35q50 0 85 35t35 85v240q0 50-35 85t-85 35Zm0-240Zm-40 520v-123q-104-14-172-93t-68-184h80q0 83 58.5 141.5T480-320q83 0 141.5-58.5T680-520h80q0 105-68 184t-172 93v123h-80Zm40-360q17 0 28.5-11.5T520-520v-240q0-17-11.5-28.5T480-800q-17 0-28.5 11.5T440-760v240q0 17 11.5 28.5T480-480Z`,fill:`currentColor`})});function Wn(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:_(`path`,{fill:`currentColor`,d:`M20 11H7.83l5.59-5.59L12 4l-8 8l8 8l1.41-1.41L7.83 13H20z`})})}function Gn(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:_(`path`,{fill:`currentColor`,d:`M9 16.17L4.83 12l-1.42 1.41L9 19L21 7l-1.41-1.41z`})})}function Kn(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:_(`path`,{fill:`currentColor`,d:`M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59L7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12L5.7 16.89a.996.996 0 1 0 1.41 1.41L12 13.41l4.89 4.89a.996.996 0 1 0 1.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4`})})}function qn(){return v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:`24`,viewBox:`0 0 24 24`,width:`24`,children:[_(`path`,{d:`M0 0h24v24H0V0z`,fill:`none`}),_(`path`,{d:`M13 11h-2v3H8v2h3v3h2v-3h3v-2h-3zm1-9H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z`,fill:`currentColor`})]})}function Jn(e){return v(`svg`,{height:`1em`,width:`1em`,viewBox:`0 0 24 24`,...e,children:[_(`path`,{d:`M0 0h24v24H0z`,fill:`none`}),_(`path`,{d:`M0 0h24v24H0V0z`,fill:`none`}),_(`path`,{d:`M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z`,fill:`currentColor`})]})}function Yn(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:_(`path`,{fill:`currentColor`,d:`M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12l1.41 1.41L13.41 14l2.12 2.12l-1.41 1.41L12 15.41l-2.12 2.12l-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z`})})}function Xn(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:_(`path`,{fill:`currentColor`,d:`M14 11c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1s.45-1 1-1h9c.55 0 1 .45 1 1M3 7c0 .55.45 1 1 1h9c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1m7 8c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1h5c.55 0 1-.45 1-1m8.01-2.13l.71-.71a.996.996 0 0 1 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71zm-.71.71l-5.16 5.16c-.09.09-.14.21-.14.35v1.41c0 .28.22.5.5.5h1.41c.13 0 .26-.05.35-.15l5.16-5.16z`})})}const Zn=e=>_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#5f6368`,viewBox:`0 -960 960 960`,...e,children:_(`path`,{d:`M240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z`,fill:`currentColor`})});function Qn(e){return v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:[_(`path`,{fill:`currentColor`,d:`M10 10h4v4h-4zm0 6h4v4h-4zM4 4h4v4H4zm0 6h4v4H4zm0 6h4v4H4zM16 4h4v4h-4zm0 6h4v4h-4zm0 6h4v4h-4zM10 4h4v4h-4z`,opacity:`.3`}),_(`path`,{fill:`currentColor`,d:`M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M8 20H4v-4h4zm0-6H4v-4h4zm0-6H4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4z`})]})}const $n=e=>_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#5f6368`,viewBox:`0 -960 960 960`,...e,children:_(`path`,{d:`M0-360v-240h60v80h80v-80h60v240h-60v-100H60v100H0Zm310 0v-180h-70v-60h200v60h-70v180h-60Zm170 0v-200q0-17 11.5-28.5T520-600h180q17 0 28.5 11.5T740-560v200h-60v-180h-40v140h-60v-140h-40v180h-60Zm320 0v-240h60v180h100v60H800Z`,fill:`currentColor`})}),er=e=>_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#5f6368`,viewBox:`0 -960 960 960`,...e,children:_(`path`,{d:`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h200v80H200v560h560v-214l80 80v134q0 33-23.5 56.5T760-120H200Zm40-160 120-160 90 120 120-160 150 200H240Zm622-144L738-548q-21 14-45 21t-51 7q-74 0-126-52.5T464-700q0-75 52.5-127.5T644-880q75 0 127.5 52.5T824-700q0 27-8 52t-20 46l122 122-56 56ZM644-600q42 0 71-29t29-71q0-42-29-71t-71-29q-42 0-71 29t-29 71q0 42 29 71t71 29Z`,fill:`currentColor`})}),tr=({mono:e=!0,...t})=>v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlSpace:`preserve`,width:`1em`,height:`1em`,...t,viewBox:`0 0 493.36 441.333`,children:[_(`path`,{d:`m65.242 2178.75 710-263.75-1.25-1900-708.75 261.25v1902.5m738.903 461.34c81.441-240.91-26.473-436.2-241.04-436.2-214.558 0-454.511 195.29-535.953 436.2-81.433 240.89 26.48 436.18 241.039 436.18 214.567 0 454.512-195.29 535.954-436.18`,style:{fill:e?`currentColor`:`#2873ab`,fillOpacity:1,fillRule:`nonzero`,stroke:`none`},transform:`matrix(.13333 0 0 -.13333 0 441.333)`}),_(`path`,{d:`M1678.58 2178.75 968.578 1915l1.25-1900 708.752 261.25v1902.5m-743.498 461.34c-81.437-240.91 26.477-436.2 241.038-436.2 214.56 0 454.51 195.29 535.96 436.2 81.43 240.89-26.48 436.18-241.04 436.18-214.57 0-454.52-195.29-535.958-436.18`,style:{fill:e?`currentColor`:`#ed1d33`,fillOpacity:1,fillRule:`nonzero`,stroke:`none`},transform:`matrix(.13333 0 0 -.13333 0 441.333)`}),_(`path`,{d:`m1860.24 2178.75 710-263.75-1.25-1900-708.75 261.25v1902.5m743.5 461.34c81.45-240.91-26.47-436.2-241.03-436.2-214.58 0-454.52 195.29-535.96 436.2-81.44 240.89 26.48 436.18 241.03 436.18 214.57 0 454.51-195.29 535.96-436.18`,style:{fill:e?`currentColor`:`#2873ab`,fillOpacity:1,fillRule:`nonzero`,stroke:`none`},transform:`matrix(.13333 0 0 -.13333 0 441.333)`}),_(`path`,{d:`M3700.24 3310v-652.5s-230 90-257.5-142.5c-2.5-247.5 0-336.25 0-336.25l257.5 83.75V1690l-258.61-92.5v-1335L2735.24 0v2360s-15 850 965 950`,style:{fill:e?`currentColor`:`#ed1d33`,fillOpacity:1,fillRule:`nonzero`,stroke:`none`},transform:`matrix(.13333 0 0 -.13333 0 441.333)`})]});function nr(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:_(`path`,{fill:`currentColor`,d:`M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1M11 17l2.5-3.15L15.29 16l2.5-3.22L21 17z`})})}function rr({title:e,titleId:t,...n}){return v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:`24`,viewBox:`0 0 24 24`,width:`24`,"aria-labelledby":t,...n,children:[e?_(`title`,{id:t,children:e}):null,_(`path`,{d:`M0 0h24v24H0V0z`,fill:`none`}),_(`path`,{d:`M14.06 9.02l.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z`})]})}function ir({title:e,titleId:t,...n}){return v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,"aria-labelledby":t,...n,children:[e?_(`title`,{id:t,children:e}):null,v(`g`,{fill:`none`,children:[_(`path`,{d:`M0 0h24v24H0V0z`}),_(`path`,{d:`M0 0h24v24H0V0z`,opacity:`.87`})]}),_(`path`,{d:`M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7zm-4 6h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z`,fill:`currentColor`})]})}function ar(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`20 -910 960 960`,"aria-label":`manifest`,role:`img`,...e,children:_(`path`,{d:`M480-160q-48-38-104-59t-116-21q-42 0-82.5 11T100-198q-21 11-40.5-1T40-234v-482q0-11 5.5-21T62-752q46-24 96-36t102-12q58 0 113.5 15T480-740v484q51-32 107-48t113-16q36 0 70.5 6t69.5 18v-480q15 5 29.5 10.5T898-752q11 5 16.5 15t5.5 21v482q0 23-19.5 35t-40.5 1q-37-20-77.5-31T700-240q-60 0-116 21t-104 59Zm80-200v-380l200-200v400L560-360Zm-160 65v-396q-33-14-68.5-21.5T260-720q-37 0-72 7t-68 21v397q35-13 69.5-19t70.5-6q36 0 70.5 6t69.5 19Zm0 0v-396 396Z`,fill:`currentColor`})})}function or(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:_(`path`,{fill:`currentColor`,d:`M12 8c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2`})})}const sr=or;function cr(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:_(`path`,{fill:`currentColor`,d:`M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5s5 2.24 5 5s-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3s3-1.34 3-3s-1.34-3-3-3`})})}function lr(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:_(`path`,{fill:`currentColor`,d:`M17 4v16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-4-2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 18H4V4h9zm8-14v12c.83 0 1.5-.67 1.5-1.5v-9c0-.83-.67-1.5-1.5-1.5`})})}function ur(e){return v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:`1em`,width:`1em`,viewBox:`0 0 24 24`,...e,children:[_(`path`,{d:`M0 0h24v24H0V0z`,fill:`none`}),_(`path`,{d:`M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8zM6 13c0-1.65.67-3.15 1.76-4.24L6.34 7.34A8.014 8.014 0 0 0 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91z`,fill:`currentColor`})]})}function dr({title:e,...t}){return v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,height:`1em`,width:`1em`,...t,children:[_(`path`,{fill:`none`,d:`M0 0h24v24H0z`}),_(`path`,{d:`M20 9H4v2h16V9zM4 15h16v-2H4v2z`}),e?_(`title`,{children:e}):null]})}function fr(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:_(`path`,{fill:`currentColor`,d:`M21 15h2v2h-2zm0-4h2v2h-2zm2 8h-2v2c1 0 2-1 2-2M13 3h2v2h-2zm8 4h2v2h-2zm0-4v2h2c0-1-1-2-2-2M1 7h2v2H1zm16-4h2v2h-2zm0 16h2v2h-2zM3 3C2 3 1 4 1 5h2zm6 0h2v2H9zM5 3h2v2H5zm-4 8v8c0 1.1.9 2 2 2h12V11zm2 8l2.5-3.21l1.79 2.15l2.5-3.22L13 19z`})})}function pr(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:_(`path`,{fill:`currentColor`,d:`M21 15h2v2h-2zm0-4h2v2h-2zm2 8h-2v2c1 0 2-1 2-2M13 3h2v2h-2zm8 4h2v2h-2zm0-4v2h2c0-1-1-2-2-2M1 7h2v2H1zm16-4h2v2h-2zm0 16h2v2h-2zM3 3C2 3 1 4 1 5h2zm6 0h2v2H9zM5 3h2v2H5zm-4 8v8c0 1.1.9 2 2 2h12V11zm2 8l2.5-3.21l1.79 2.15l2.5-3.22L13 19z`})})}const mr=e=>_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#5f6368`,viewBox:`0 -960 960 960`,...e,children:_(`path`,{d:`M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h480q33 0 56.5 23.5T720-720v180l160-160v440L720-420v180q0 33-23.5 56.5T640-160H160Zm0-80h480v-480H160v480Zm0 0v-480 480Z`,fill:`currentColor`})}),hr=e=>_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#5f6368`,viewBox:`0 -960 960 960`,...e,children:_(`path`,{d:`M616-242q-27 1-51.5 1.5t-43.5.5h-41q-71 0-133-2-53-2-104.5-5.5T168-257q-26-7-45-26t-26-45q-6-23-9.5-56T82-447q-2-36-2-73t2-73q2-30 5.5-63t9.5-56q7-26 26-45t45-26q23-6 74.5-9.5T347-798q62-2 133-2t133 2q53 2 104.5 5.5T792-783q26 7 45 26t26 45q6 23 9.5 56t5.5 63q2 36 2 73v17q-19-8-39-12.5t-41-4.5q-83 0-141.5 58.5T600-320q0 21 4 40.5t12 37.5ZM400-400l208-120-208-120v240Zm360 200v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80Z`,fill:`currentColor`})});function gr(){return _(e,{"aria-label":`Reorder item`,slot:`drag`,className:`rounded-sm cursor-move bg-transparent text-gray-500 hover:bg-gray-300`,children:_(dr,{"aria-hidden":`true`,className:`text-xl cursor-move`})})}function _r(e){return _(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 206 27`,xmlns:`http://www.w3.org/2000/svg`,className:`me-logo h-[23px] w-[176px]`,...e,children:v(`g`,{fill:`none`,children:[_(`path`,{d:`M62.558 5.41v14.873h-2.983v-9.675l-3.985 9.675h-2.26l-4.006-9.675v9.675H46.34V5.41h3.388l4.73 11.06L59.19 5.41zm2.173 8.928c0-1.194.238-2.252.714-3.176.476-.923 1.123-1.633 1.94-2.13.816-.498 1.73-.746 2.738-.746.88 0 1.651.177 2.312.532.66.355 1.19.803 1.588 1.343V8.477h3.004v11.806h-3.004v-1.726c-.384.554-.913 1.012-1.588 1.374-.675.363-1.453.544-2.334.544-.994 0-1.9-.256-2.717-.767-.816-.512-1.463-1.233-1.939-2.163-.476-.93-.714-2-.714-3.207Zm9.292.042c0-.724-.143-1.346-.427-1.864a3.005 3.005 0 0 0-1.15-1.194 3.076 3.076 0 0 0-1.556-.415c-.554 0-1.066.135-1.534.405-.47.27-.85.664-1.14 1.182-.292.519-.437 1.133-.437 1.844 0 .71.145 1.331.437 1.864.29.533.674.941 1.15 1.226.476.284.984.426 1.524.426.554 0 1.073-.139 1.556-.416a3.005 3.005 0 0 0 1.15-1.193c.284-.519.427-1.14.427-1.865Zm12.466-6.073c1.406 0 2.543.444 3.41 1.332.866.888 1.3 2.127 1.3 3.718v6.926h-2.984v-6.52c0-.938-.234-1.66-.703-2.164-.47-.504-1.108-.756-1.918-.756-.824 0-1.474.252-1.95.756-.476.505-.714 1.226-.714 2.163v6.521h-2.983V8.477h2.983v1.47a4.121 4.121 0 0 1 1.524-1.203 4.713 4.713 0 0 1 2.035-.437Zm9.057-1.237c-.526 0-.963-.166-1.311-.5a1.657 1.657 0 0 1-.522-1.247c0-.497.174-.912.522-1.246.348-.334.785-.5 1.31-.5.526 0 .963.166 1.311.5.348.334.522.75.522 1.246 0 .498-.174.913-.522 1.247-.348.334-.785.5-1.31.5Zm1.47 1.407v11.806h-2.983V8.477h2.983Zm8.354 2.451h-2.068v9.355h-3.026v-9.355h-1.342v-2.45h1.342V7.88c0-1.45.412-2.515 1.236-3.197.824-.682 2.067-1.001 3.73-.959V6.24c-.725-.014-1.23.106-1.513.362-.284.256-.427.718-.427 1.385v.49h2.068v2.451Zm12.913 3.197c0 .426-.028.81-.085 1.15h-8.63c.07.853.369 1.52.895 2.003.525.483 1.172.725 1.939.725 1.108 0 1.896-.476 2.365-1.428h3.218c-.34 1.137-.994 2.07-1.96 2.802-.967.732-2.153 1.098-3.56 1.098-1.136 0-2.155-.252-3.057-.757a5.325 5.325 0 0 1-2.11-2.141c-.504-.924-.756-1.99-.756-3.197 0-1.222.248-2.294.745-3.218a5.204 5.204 0 0 1 2.089-2.13c.895-.498 1.925-.746 3.09-.746 1.122 0 2.127.241 3.015.724a5.1 5.1 0 0 1 2.067 2.057c.49.887.735 1.907.735 3.058Zm-3.09-.853c-.014-.767-.29-1.381-.83-1.843-.54-.462-1.201-.693-1.982-.693-.74 0-1.36.224-1.865.671-.504.448-.813 1.07-.927 1.865h5.604Zm9.782 7.203c-.966 0-1.833-.174-2.6-.522-.767-.348-1.375-.82-1.822-1.417a3.591 3.591 0 0 1-.735-1.982h3.004c.057.454.281.83.672 1.13.39.298.877.447 1.46.447.568 0 1.012-.114 1.331-.341.32-.227.48-.519.48-.874 0-.383-.196-.671-.586-.863-.391-.192-1.012-.401-1.865-.629-.88-.213-1.602-.433-2.163-.66a3.755 3.755 0 0 1-1.449-1.044c-.405-.47-.607-1.101-.607-1.897 0-.653.188-1.25.564-1.79.377-.54.917-.966 1.62-1.279.703-.312 1.53-.468 2.483-.468 1.406 0 2.528.351 3.367 1.054.838.704 1.3 1.652 1.385 2.845h-2.856c-.042-.469-.238-.841-.586-1.118-.348-.277-.813-.416-1.396-.416-.54 0-.955.1-1.246.298a.951.951 0 0 0-.437.831c0 .398.199.7.597.906.397.206 1.015.416 1.854.629.852.213 1.555.433 2.11.66a3.727 3.727 0 0 1 1.438 1.055c.405.476.614 1.105.628 1.886 0 .682-.188 1.293-.564 1.833-.377.54-.917.962-1.62 1.268-.703.305-1.524.458-2.461.458Zm10.569-9.547v5.711c0 .398.096.686.288.863.192.178.515.267.97.267h1.385v2.514h-1.875c-2.515 0-3.772-1.222-3.772-3.665v-5.69h-1.407v-2.45h1.407v-2.92h3.004v2.92h2.643v2.45h-2.643Zm12.851-3.111v3.73h5.007v2.364h-5.007v3.943h5.647v2.43h-8.631V5.386h8.63v2.43zm7.585 6.521c0-1.194.239-2.252.715-3.176.476-.923 1.126-1.633 1.95-2.13.824-.498 1.74-.746 2.749-.746.767 0 1.498.167 2.194.5.697.334 1.25.778 1.663 1.332V4.514h3.026v15.77h-3.026v-1.748c-.37.582-.888 1.051-1.556 1.406s-1.442.533-2.323.533a5.07 5.07 0 0 1-2.727-.767c-.824-.512-1.474-1.233-1.95-2.163-.476-.93-.714-2-.714-3.207Zm9.292.042c0-.724-.142-1.346-.426-1.864a3.005 3.005 0 0 0-1.151-1.194 3.076 3.076 0 0 0-1.556-.415 3.02 3.02 0 0 0-1.534.405c-.469.27-.849.664-1.14 1.182-.291.519-.437 1.133-.437 1.844 0 .71.146 1.331.437 1.864.291.533.675.941 1.15 1.226a2.93 2.93 0 0 0 1.524.426c.554 0 1.073-.139 1.556-.416a3.005 3.005 0 0 0 1.15-1.193c.285-.519.427-1.14.427-1.865Zm7.438-7.31c-.527 0-.963-.166-1.311-.5a1.657 1.657 0 0 1-.523-1.247c0-.497.174-.912.523-1.246.348-.334.784-.5 1.31-.5s.963.166 1.31.5c.349.334.523.75.523 1.246 0 .498-.174.913-.522 1.247-.348.334-.785.5-1.31.5Zm1.47 1.407v11.806h-2.984V8.477h2.984Zm6.414 2.451v5.711c0 .398.096.686.287.863.192.178.515.267.97.267h1.385v2.514h-1.875c-2.515 0-3.772-1.222-3.772-3.665v-5.69h-1.406v-2.45h1.406v-2.92h3.005v2.92h2.642v2.45h-2.642Zm10.036 9.547c-1.136 0-2.159-.252-3.068-.757a5.447 5.447 0 0 1-2.141-2.141c-.519-.924-.778-1.99-.778-3.197s.266-2.273.799-3.196a5.553 5.553 0 0 1 2.184-2.142c.924-.504 1.954-.756 3.09-.756 1.137 0 2.167.252 3.09.756a5.553 5.553 0 0 1 2.184 2.142c.533.923.8 1.989.8 3.196 0 1.208-.274 2.273-.821 3.197a5.681 5.681 0 0 1-2.216 2.141c-.93.505-1.971.757-3.122.757Zm0-2.6a3.1 3.1 0 0 0 1.524-.394c.476-.263.856-.657 1.14-1.183.285-.526.427-1.165.427-1.918 0-1.122-.295-1.985-.885-2.589a2.907 2.907 0 0 0-2.163-.906c-.852 0-1.566.302-2.141.906-.576.604-.863 1.467-.863 2.59 0 1.122.28 1.985.841 2.588.562.604 1.268.906 2.12.906Zm11.338-7.565a4.194 4.194 0 0 1 1.502-1.47c.618-.356 1.325-.533 2.12-.533v3.132h-.788c-.938 0-1.644.22-2.12.661-.476.44-.714 1.208-.714 2.302v5.881h-2.984V8.477h2.984v1.833Z`,fill:`#000`}),_(`path`,{fill:`#E94581`,className:`me-logo-1`,d:`M0 13.343 13.343 0l13.343 13.343-13.343 13.343z`}),_(`path`,{fill:`#E94581`,className:`me-logo-2`,d:`M12.137 13.346 25.48.003l13.343 13.343L25.48 26.69z`}),_(`path`,{fill:`#C63E75`,className:`me-logo-3`,d:`m12.104 13.348 7.311-7.311 7.312 7.311-7.312 7.312z`})]})})}function vr({as:e=`li`,isActive:t,onAction:n}){let r=ye(),{pressProps:i}=fe({onPress:n});return v(e,{"aria-label":b(r?.label),className:`border-b-2 border-b-gray-200 flex p-2 gap-3 text-left truncate items-center w-full hover:bg-gray-100 data-[active]:bg-gray-200 data-[active]:border-b-me-primary-500`,"data-active":t||void 0,...i,children:[_(ar,{"data-active":t||void 0,className:`flex-shrink-0 text-2xl data-[active]:text-me-primary-500 text-gray-400`}),_(x,{children:r?.label})]})}function yr({onCreate:t,canCreate:n}){return v(`div`,{className:`flex items-center flex-col gap-5 py-16`,children:[_(L,{shouldTranslate:!0,onClick:n?t:void 0,className:`border-2 border-dotted bg-black/5 aspect-[3/4] rounded w-32 border-black`}),_(`div`,{className:`font-bold text-lg`,children:`Let's get started!`}),_(`div`,{className:`max-w-xl px-5 my-4`,children:`Add a title and top level information for this manifest using the editing panel on the right, and then add some canvases and content.`}),n?_(e,{className:`px-8 font-bold py-2 border rounded-lg border-me-primary-500 text-me-primary-500 hover:border-me-primary-600 hover:text-me-primary-600`,onPress:t,children:`Start adding content`}):null]})}function br({className:e,label:t,children:n,...r}){return v(`fieldset`,{className:I(`hover:ring ring-gray-200 focus-within:ring-me-primary-500 focus-within:ring p-2 rounded mb-2`,e),...r,children:[_(x,{className:`text-lg font-bold text-[#333] mb-2`,as:`h3`,children:t}),n]})}function xr({children:e}){let t=document.getElementById(`modal-back-slot`);return t?N(e,t):null}function Sr({id:e,className:t,title:r,open:a=!0,onClose:o,actions:s,children:c,width:l,height:u,disableAnimation:d}){return _(p,{isDismissable:!0,isOpen:a,onOpenChange:e=>{e||o()},className:`manifest-editor-modal-overlay manifest-editor`,children:_(f,{className:y(`manifest-editor-modal relative w-full max-w-4xl max-h-full`,t),style:{width:l,height:u,animation:d?`none`:void 0},children:v(n,{id:e,className:`relative h-full bg-white rounded-lg overflow-hidden shadow-2xl max-h-[80vh] flex flex-col outline-none`,children:[v(`div`,{className:`flex items-center justify-between gap-3 p-4 rounded-t-lg sticky top-0 bg-white`,children:[_(`div`,{id:`modal-back-slot`}),_(i,{slot:`title`,level:2,className:`text-xl font-semibold text-gray-900 grow`,children:r}),v(`button`,{type:`button`,className:`text-gray-600 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-me-primary-500 focus-visible:ring-offset-2`,onClick:o,children:[_(`svg`,{className:`w-3 h-3`,"aria-hidden":`true`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 14 14`,children:_(`path`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,d:`m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6`})}),_(`span`,{className:`sr-only`,children:`Close`})]})]}),_(`div`,{className:`flex-1 min-h-0 overflow-y-auto flex flex-col`,children:c}),s?_(`div`,{className:`flex items-center p-4 border-t border-gray-200 rounded-b justify-end`,children:s}):null]})})})}function Cr(){return _(e,{"aria-label":`More actions`,className:`rounded-full bg-gray-200 text-gray-500 hover:bg-me-600 hover:text-white data-[pressed]:bg-me-600 data-[pressed]:text-white`,children:_(sr,{"aria-hidden":`true`,className:`text-xl`})})}function wr({id:e,steps:t,forceStart:n,onClose:r,lastButtonLabel:i}){let[a,o]=$(`tour_step/${e}`,!0),s=a||n;return O(()=>{let t=t=>{t.detail?.id===e&&o(!0)};return window.addEventListener(`onboarding:restart`,t),()=>window.removeEventListener(`onboarding:restart`,t)},[e]),O(()=>{let e=document.getElementById(`manifest-editor-container`);if(!(!e||!s))return e.setAttribute(`inert`,``),()=>{e.removeAttribute(`inert`)}},[s]),t.length===0?null:_(dt,{showProgress:!0,showSkipButton:!0,continuous:!0,steps:t,run:s,callback:e=>{(e.action===`close`||e.action===`skip`||e.action===`stop`||e.action===`reset`||e.status===ft.FINISHED||e.status===ft.SKIPPED)&&(o(!1),r?.())},locale:i?{last:i}:void 0,styles:{options:{primaryColor:`#b84c74`,textColor:`#000000`,zIndex:1e4}}},e)}function Tr(e){return _(`div`,{className:I(`flex w-full p-0.5 opacity-0 transition-opacity duration-300 gap-2`,e.active&&`opacity-1`),children:e.children})}const Er=E(({className:e,...t},n)=>_(`div`,{ref:n,className:y(`px-4 py-2 flex-1 overflow-visible`,e),...t}));function Dr(t){return _(J,{placement:`right`,children:_(Y,{asChild:!0,children:v(e,{className:I(`border-none bg-white aspect-square w-full flex justify-center items-center hover:bg-me-primary-100 hover:text-black [&>svg]:text-2xl cursor-default`,t.selected?`bg-me-primary-500 hover:bg-me-primary-600 hover:text-white text-white`:`text-me-gray-700`),"aria-label":t.label,onMouseDown:t.onClick,children:[t.icon,_(X,{className:`bg-me-gray-900 text-white text-sm px-3 py-2 rounded opacity-90 z-50`,children:t.label})]})})})}function Or(e){return _(`nav`,{"aria-label":`Editor panels`,className:`bg-white border-me-gray-300 border-t border-r flex flex-col w-12 pb-2 h-full`,"data-open":e.open,children:e.items.map(t=>v(g,{children:[t.separator?_(`div`,{className:`mx-2 my-1 border-t border-me-gray-200`}):null,t.divide?_(`div`,{className:`flex-1 block w-2 min-h-1`}):null,_(Dr,{label:t.label,selected:t.id===e.current&&e.open,icon:t.icon,onClick:t.onClick},t.id)]},t.id))})}function kr(t){let n=t.strategy.items.map(e=>Object.keys(e.text)[0]),[r,i]=M(n[0]),a=t.strategy.items.find(e=>Object.keys(e.text)[0]===r);return v(`div`,{className:`overflow-y-auto bg-white shadow`,children:[_(`div`,{className:`flex gap-2 border-b`,children:n.map(t=>_(e,{className:`py-1 px-3 ${r===t?`bg-me-500 text-white`:`bg-white text-black`}`,onPress:()=>i(t),children:t},t))}),_(`div`,{className:`p-4 prose`,children:_(x,{enableDangerouslySetInnerHTML:!0,defaultText:_(`span`,{className:`text-gray-500 my-8`,children:`No content available`}),children:a?.text})})]})}const Ar=E(function({className:t,...n},r){return _(e,{className:y(`transition-all mt-2 mb-2 opacity-0 transform scale-y-70 focus-visible:ring-2 focus-visible:ring-me-primary-500`,`bg-white h-10 w-6 rounded shadow select-none group-hover:opacity-100`,t),...n,ref:r})});function jr({alwaysVisible:e}){return _(t,{slot:`selection`,className:y(`bg-white/50`,`group-hover:opacity-100 block h-5 w-5 shrink-0 rounded border border-gray-300 hover:border-gray-400 ring-offset-1`,`data-[disabled]:hidden data-[indeterminate]:bg-me-700 data-[selected]:bg-me-700 data-[indeterminate]:text-white`,`data-[selected]:border-me-700 data-[indeterminate]:border-me-700`,`data-[selected]:text-white data-[disabled]:opacity-50 data-[focus-visible]:outline-none data-[focus-visible]:ring-2`,`data-[focus-visible]:ring-me-700 data-[focus-visible]:ring-offset-2 data-[focus-visible]:opacity-100`,!e&&`opacity-0 group-hover:opacity-100 data-[selected]:opacity-100 data-[indeterminate]:opacity-100`),children:({isSelected:e,isIndeterminate:t})=>_(`div`,{className:`flex items-center justify-center text-current`,children:_(`svg`,{viewBox:`0 -960 960 960`,"aria-hidden":`true`,fill:`currentColor`,children:t?_(`path`,{d:`M160-440v-80h640v80H160Z`}):e?_(`path`,{d:`M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z`}):null})})})}function Mr({children:e}){return _(`div`,{className:`w-full h-full flex flex-col overflow-hidden`,children:e})}function Nr({id:e,children:t,className:n,padding:r}){return _(`div`,{id:e,className:I(`flex-1 min-h-0 overflow-y-auto pb-64`,n,r&&`px-3 pt-3`),children:t})}function Pr(t){let{actions:n,title:r,customActions:i}=t;return v(`div`,{className:`bg-me-gray-100 h-12 flex items-center px-3 z-10 text-black border-b-me-gray-300 border-b flex-shrink-0`,children:[_(x,{as:`h1`,className:`flex-1`,children:r}),v(`div`,{className:`ml-auto flex gap-2 items-center`,children:[n?.map((t,n)=>t.menu?v(d,{children:[_(e,{id:t.id,className:I(`p-1 rounded hover:bg-me-gray-300`,t.toggled&&`bg-me-gray-300`,t.disabled&&`opacity-50 cursor-not-allowed`),"aria-label":typeof t.title==`string`?t.title:``,isDisabled:t.disabled,children:t.icon},n),_(m,{placement:`bottom right`,children:t.menu})]},n):v(J,{placement:`bottom`,children:[_(Y,{asChild:!0,children:_(e,{id:t.id,className:I(`p-1 rounded hover:bg-me-gray-300`,t.toggled&&`bg-me-gray-300`,t.disabled&&`opacity-50 cursor-not-allowed`),onPress:t.onClick,"aria-label":typeof t.title==`string`?t.title:``,isDisabled:t.disabled,children:t.icon},n)}),t.disabled?null:_(Z,{children:t.title})]},n)),i]})]})}function Fr({menu:e,menuId:t,selectedKey:n,onSelectionChange:r}){let i=j(null),[a,o]=M(0),[s,c]=M(null),l=j([]),u=j([]),d=A(()=>e.findIndex(e=>e.id===n),[e,n]);k(()=>{let e=()=>{if(l.current.length===0){l.current=[];for(let e of u.current)e&&l.current.push(e.getBoundingClientRect().width)}if(l.current.reduce((e,t)=>e+t,0)&&i.current){let e=i.current.getBoundingClientRect().width-20,t=0,n=0;for(let r=l.current.length-1;r>=0;r--)if(n+=l.current[r],n>e){t=r+1;break}o(t)}};e();let t=setInterval(e,500);return()=>{clearInterval(t)}},[]);let f=e.filter((t,n)=>a>=e.length-n);return v(g,{children:[v(ie,{className:`w-full flex-1 overflow-hidden flex flex-col`,selectedKey:n,onSelectionChange:r,children:[v(`div`,{className:`flex items-center w-full tab-shadow`,children:[_(ne,{ref:i,className:`flex-1 overflow-hidden w-full flex text-sm whitespace-nowrap`,children:e.map((t,n)=>{let r=a>=e.length-n;return _(Ir,{id:t.id,idx:n,isHidden:r,itemsRef:u,children:t.label},t.id)})}),_(`div`,{ref:c})]}),e.map(e=>_(re,{id:e.id,className:`flex-1 overflow-y-auto h-full`,children:n===e.id?e.renderComponent():null},e.id))]},t),s&&a>0?N(_(Lr,{hidden:a,menuHidden:f,selectedIndex:d,selectedKey:n,onSelectionChange:r}),s):null]})}const Ir=Se(function({id:e,idx:t,isHidden:n,itemsRef:r,children:i}){return _(h,{ref:e=>{r.current[t]=e},id:e,className:({isSelected:e,isFocusVisible:t})=>I(`border-b-2 px-2 py-1 text-sm text-gray-600 select-none hover:text-black focus:outline-none`,e&&`border-me-primary-500 text-black`,t&&`ring-2 ring-inset ring-me-primary-500 bg-me-gray-100`,n&&`hidden`),children:i})}),Lr=pt(({selectedIndex:t,hidden:n,menuHidden:r,selectedKey:i,onSelectionChange:a})=>v(d,{children:[_(e,{"aria-label":`More tabs`,className:I(`min-h-6 border-none rounded bg-gray-100 px-1.5 py-1 mr-2 mb-1 text-me-primary-600 semibold uppercase text-[10px]`,t>n&&`bg-me-primary-500 text-white rounded`),children:`MORE`}),_(m,{children:r.length?_(l,{className:`bg-white rounded shadow-lg flex flex-col gap-0.5 p-0.5 min-w-28`,children:r.map(e=>_(u,{className:t=>I(`hover:bg-me-gray-100 p-1 rounded-sm text-sm`,i===e.id&&`ring ring-me-primary-500`),onAction:()=>a?.(e.id),children:e.label},e.id))}):null})]})),Rr=({title:e,titleId:t,...n})=>v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 -960 960 960`,"aria-labelledby":t,...n,children:[e?_(`title`,{id:t,children:e}):null,_(`path`,{fill:`currentColor`,d:`M160-120v-170l527-526q12-12 27-18t30-6q16 0 30.5 6t25.5 18l56 56q12 11 18 25.5t6 30.5q0 15-6 30t-18 27L330-120H160Zm80-80h56l393-392-28-29-29-28-392 393v56Zm560-503-57-57 57 57Zm-139 82-29-28 57 57-28-29ZM560-120q74 0 137-37t63-103q0-36-19-62t-51-45l-59 59q23 10 36 22t13 26q0 23-36.5 41.5T560-200q-17 0-28.5 11.5T520-160q0 17 11.5 28.5T560-120ZM183-426l60-60q-20-8-31.5-16.5T200-520q0-12 18-24t76-37q88-38 117-69t29-70q0-55-44-87.5T280-840q-45 0-80.5 16T145-785q-11 13-9 29t15 26q13 11 29 9t27-13q14-14 31-20t42-6q41 0 60.5 12t19.5 28q0 14-17.5 25.5T262-654q-80 35-111 63.5T120-520q0 32 17 54.5t46 39.5Z`})]}),zr=({title:e,titleId:t,...n})=>v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 -960 960 960`,"aria-labelledby":t,...n,children:[e?_(`title`,{id:t,children:e}):null,_(`path`,{fill:`currentColor`,d:`M272-120 64-480l208-360h416l208 360-208 360H272Zm46-80h324l161-280-161-280H318L156-480l162 280Zm162-280Z`})]});function Br({title:e,titleId:t,...n}){return v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,"aria-labelledby":t,...n,children:[e?_(`title`,{id:t,children:e}):null,v(`g`,{fill:`none`,fillRule:`evenodd`,children:[_(`path`,{d:`M0 0h20v20H0z`}),_(`path`,{stroke:`currentColor`,strokeLinecap:`square`,strokeWidth:2,d:`m8.5 11.5 6-6M16 4v3m0-3h-3m0 14L2 7`}),_(`path`,{stroke:`currentColor`,strokeOpacity:.407,strokeWidth:2,d:`m2 7 5-5 11 11-5 5z`})]})]})}function Vr({title:e,titleId:t,...n}){return v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,"aria-labelledby":t,...n,children:[e?_(`title`,{id:t,children:e}):null,v(`g`,{fill:`none`,fillRule:`evenodd`,children:[_(`circle`,{cx:4.5,cy:4.5,r:2.5,fill:`currentColor`}),_(`circle`,{cx:15.5,cy:15.5,r:2.5,fill:`currentColor`}),_(`path`,{stroke:`currentColor`,strokeLinecap:`square`,strokeWidth:2,d:`m13.5 13.5-9-9`})]})]})}const Hr={DrawIcon:_(Rr,{}),PolygonIcon:_(({title:e,titleId:t,...n})=>v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 -960 960 960`,"aria-labelledby":t,...n,children:[e?_(`title`,{id:t,children:e}):null,_(`path`,{fill:`currentColor`,d:`M600-80v-100L320-320H120v-240h172l108-124v-196h240v240H468L360-516v126l240 120v-50h240v240H600ZM480-720h80v-80h-80v80ZM200-400h80v-80h-80v80Zm480 240h80v-80h-80v80ZM520-760ZM240-440Zm480 240Z`})]}),{}),LineIcon:_(Vr,{}),LineBoxIcon:_(Br,{}),ShapesIcon:_(({title:e,titleId:t,...n})=>v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 -960 960 960`,"aria-labelledby":t,...n,children:[e?_(`title`,{id:t,children:e}):null,_(`path`,{fill:`currentColor`,d:`M600-360ZM320-242q10 1 19.5 1.5t20.5.5q11 0 20.5-.5T400-242v82h400v-400h-82q1-10 1.5-19.5t.5-20.5q0-11-.5-20.5T718-640h82q33 0 56.5 23.5T880-560v400q0 33-23.5 56.5T800-80H400q-33 0-56.5-23.5T320-160v-82Zm40-78q-117 0-198.5-81.5T80-600q0-117 81.5-198.5T360-880q117 0 198.5 81.5T640-600q0 117-81.5 198.5T360-320Zm0-80q83 0 141.5-58.5T560-600q0-83-58.5-141.5T360-800q-83 0-141.5 58.5T160-600q0 83 58.5 141.5T360-400Zm0-200Z`})]}),{}),SquareIcon:_(({title:e,titleId:t,...n})=>v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 -960 960 960`,"aria-labelledby":t,...n,children:[e?_(`title`,{id:t,children:e}):null,_(`path`,{fill:`currentColor`,d:`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0 0v-560 560Z`})]}),{}),TriangleIcon:_(({title:e,titleId:t,...n})=>v(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 -960 960 960`,"aria-labelledby":t,...n,children:[e?_(`title`,{id:t,children:e}):null,_(`path`,{d:`m80-160 400-640 400 640H80Zm144-80h512L480-650 224-240Zm256-205Z`,fill:`currentColor`})]}),{}),HexagonIcon:_(zr,{}),DeleteForeverIcon:_(Jn,{})};function Ur({helper:e,showShapes:t}){return O(()=>{e.stamps.square()},[]),_(me,{icons:Hr,showShapes:t,classNames:{button:`bg-me-gray-100 border hover:bg-me-gray-300 rounded p-1 text-2xl text-me-primary-500 data-[active="true"]:border-me-primary-600`}})}function Wr({className:e,children:t,...n}){return _(ie,{className:t=>{let n=typeof e==`function`?e(t):e;return I(``,n)},...n,children:t})}function Gr({className:e,children:t,...n}){return _(ne,{className:t=>{let n=typeof e==`function`?e(t):e;return I(`flex gap-4`,n)},...n,children:t})}function Kr({className:e,children:t,...n}){return _(h,{className:t=>{let n=typeof e==`function`?e(t):e;return I(`cursor-default outline-none group py-1 font-semibold px-2 border-b-2 text-me-gray-700`,t.isSelected&&`border-b-me-primary-600 text-black`,t.isFocusVisible&&`focus-visible:bg-me-primary-100`,n)},...n,children:t})}function qr({className:e,children:t,...n}){return _(re,{className:t=>{let n=typeof e==`function`?e(t):e;return I(``,n)},...n,children:t})}function Jr(e){return e.wide?_(`div`,{className:y(`grid`,e.size||`grid-md`,`gap-4 p-4 overflow-y-auto`),children:e.children}):_(`div`,{className:`grid grid-cols-2 gap-4 p-4`,children:e.children})}function Yr(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,fill:`currentColor`,...e,children:_(`path`,{d:`M1 21h22L12 2L1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z`})})}function Xr(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,fill:`currentColor`,...e,children:_(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z`})})}const Zr={info:{borderClass:`border-l-me-primary-500`,iconClass:`text-me-primary-500`,actionClass:`text-me-primary-600 hover:bg-gray-100`,progressClass:`bg-me-primary-500`,Icon:F},success:{borderClass:`border-l-green-600`,iconClass:`text-green-600`,actionClass:`text-green-700 hover:bg-green-50`,progressClass:`bg-green-600`,Icon:Gn},warning:{borderClass:`border-l-orange-500`,iconClass:`text-orange-500`,actionClass:`text-orange-700 hover:bg-orange-50`,progressClass:`bg-orange-500`,Icon:Yr},error:{borderClass:`border-l-red-500`,iconClass:`text-red-500`,actionClass:`text-red-700 hover:bg-red-50`,progressClass:`bg-red-500`,Icon:Xr}};function Qr({state:e,className:t,"aria-label":n=`Notifications`}){let r=j(null),{regionProps:i}=ht({"aria-label":n},e,r),[a,o]=M(!1);return O(()=>o(!0),[]),!a||!e.visibleToasts.length?null:N(_(`div`,{className:`manifest-editor`,children:_(`div`,{...i,ref:r,className:y(`fixed bottom-5 right-5 z-[10000000] flex w-[calc(100vw-2.5rem)] max-w-sm flex-col gap-2 pointer-events-none sm:w-96`,t),children:e.visibleToasts.map(t=>_($r,{toast:t,state:e},t.key))})}),document.body)}function $r({toast:t,state:n}){let r=j(null),{toastProps:i,contentProps:a,titleProps:o,descriptionProps:s,closeButtonProps:c}=mt({toast:t},n,r),l=t.content,u=l.variant??`info`,d=Zr[u];return v(`div`,{...i,ref:r,className:y(`pointer-events-auto relative overflow-hidden rounded-lg border border-gray-100 border-l-4 bg-white shadow-xl outline-none`,`data-[animation=entering]:animate-toast-enter`,`data-[animation=exiting]:animate-toast-exit`,`focus-visible:ring-2 focus-visible:ring-me-primary-500 focus-visible:ring-offset-2`,d.borderClass),children:[v(`div`,{className:`flex items-start gap-3 px-4 py-3`,children:[_(d.Icon,{"aria-hidden":!0,className:y(`mt-0.5 h-4 w-4 shrink-0 text-base`,d.iconClass)}),v(`div`,{...a,className:`min-w-0 flex-1`,children:[_(`div`,{...o,className:`text-sm font-semibold leading-5 text-gray-900`,children:l.title}),l.description?_(`div`,{...s,className:`mt-0.5 text-xs leading-relaxed text-gray-500`,children:l.description}):null,l.action?_(`div`,{className:`mt-2`,children:_(e,{className:y(`rounded px-2 py-0.5 text-xs font-medium transition-colors`,d.actionClass),onPress:()=>{l.action?.onPress(),l.action?.closeOnPress!==!1&&n.close(t.key)},children:l.action.label})}):null]}),_(e,{...c,className:`flex h-6 w-6 shrink-0 items-center justify-center rounded text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-700`,children:_(Kn,{"aria-hidden":`true`,className:`h-3.5 w-3.5`})})]}),t.timeout?_(`div`,{className:y(`absolute bottom-0 left-0 h-[2px] w-full origin-left animate-toast-progress opacity-40`,d.progressClass),style:{animationDuration:`${t.timeout}ms`}}):null]})}function ei({className:e,item:t}){let n=w((e,n)=>n.get(t,{skipSelfReturn:!1}),[t]);return _(`div`,{className:y(`h-16 my-5 w-full`,e),children:_(`img`,{src:n.id,alt:``,className:y(`h-full w-full object-contain`)})})}function ti({className:e,item:t}){let n=w((e,n)=>n.get(t),[t]);return t.id.startsWith(`http://example.org/`)||!n?null:_(`a`,{href:n.id,target:`_blank`,className:y(`flex justify-between items-center group pe-2 focus:ring focus:outline-none ring-me-500 cursor-default underline-offset-4 underline focus:no-underline focus:bg-gray-50 rounded py-1 px-2`,e),rel:`noreferrer`,children:_(x,{enableDangerouslySetInnerHTML:!0,separator:`<br>`,className:`whitespace-nowrap overflow-hidden text-ellipsis min-w-0`,defaultText:`Go to link`,children:n.label})})}function ni({resource:t,onPress:n}){let r=w((e,n)=>n.get(t));if(!r)return null;let i=b(r.label),a=i===`Unknown`;return v(`div`,{className:`rounded p-2 border border-gray-200 text-center hover:border-me-500 shadow-sm`,children:[v(e,{"aria-label":`Edit ${i||`provider`}`,className:`w-full rounded border-0 bg-transparent p-0 text-inherit`,onPress:n,children:[r.logo?.length>0?_(`div`,{children:r.logo.map((e,t)=>_(ei,{item:e},t))}):null,!a&&_(`div`,{className:`px-2 font-semibold mb-5`,children:_(x,{enableDangerouslySetInnerHTML:!0,separator:`<br>`,children:r?.label})})]}),r.homepage?.length>0?_(`div`,{children:r.homepage.map((e,t)=>_(ti,{className:`justify-center`,item:e},t))}):null,r.seeAlso?.length>0?_(`div`,{children:r.seeAlso?.map((e,t)=>_(ti,{className:`justify-center`,item:e},t))}):null]},r.id)}function ri({children:e,small:t=!1,className:n}){return _(`div`,{className:y(`bg-orange-500 text-white`,`border-1 drop-shadow border-orange-700 w-full rounded-md py-2 px-4 leading-[1.9em] flex items-center`,`has-[a]:text-white`,t&&`text-xs whitespace-nowrap py-1 px-2 leading-[1.6em] w-fit`,n),children:e})}export{gt as AccessibilityButton,P as ActionButton,Rn as AddIcon,zn as AddImageIcon,Bn as AnnotationPopInIcon,Vn as AnnotationPopOutIcon,Hn as ArrowRightIcon,_t as AtlasBanner,Un as AudioIcon,Wn as BackIcon,jt as BackgroundActionMenuActionButton,yt as BackgroundActionMenuButton,Nt as BackgroundActionMenuCogIcon,St as BackgroundActionMenuDivider,kt as BackgroundActionMenuInfoButton,Ot as BackgroundActionMenuInlineAction,Ct as BackgroundActionMenuItem,Et as BackgroundActionMenuLabel,Dt as BackgroundActionMenuMeta,bt as BackgroundActionMenuPanel,At as BackgroundActionMenuProgressBar,vt as BackgroundActionMenuRoot,xt as BackgroundActionMenuSection,Mt as BackgroundActionMenuStatusDot,Tt as BackgroundActionMenuText,wt as BackgroundActionMenuTrigger,qt as CanvasThumbnailGridItem,L as Card3D,Gn as CheckIcon,Kn as CloseIcon,Jt as CollectionIcon,Yt as CollectionListItem,Xt as ConfirmSelectionButton,Zt as ControlButton,qn as CreateCanvasIcon,Qt as CreatorGrid,Z as DefaultTooltipContent,Jn as DeleteForeverIcon,Yn as DeleteIcon,rn as DownloadButton,q as DownloadIcon,Xn as EditTextIcon,Zn as EmptyCanvasIcon,on as EmptyState,sn as ErrorMessage,hn as Form,Qn as GridIcon,_n as HTMLAnnotationBodyRender,Dn as HTMLEditor,$n as HTMLIcon,gn as HandleContainer,er as IIIFBrowserIcon,tr as IIIFLogo,Pn as IIIFMediaPlayer,Mn as IconButton,Nn as IconHandle,nr as ImageListIcon,F as InfoIcon,In as InfoMessage,Ln as ItemWithHandle,B as LazyThumbnail,rr as ListEditIcon,gr as ListResizeDragHandle,ir as ListingIcon,En as MDXEditor,_r as ManifestEditorLogo,ar as ManifestIcon,vr as ManifestListItem,yr as ManifestOverviewEmptyState,br as MetadataContainer,Sr as Modal,xr as ModalBackSlot,or as MoreMenu,Cr as MoreMenuButton,sr as MoreMenuIcon,wr as OnboardingTour,Tr as OpaqueControls,Er as PaddedSidebarContainer,Or as PanelSideMenu,cr as PreviewIcon,lr as RangesIcon,kr as RenderTextualContent,ur as ResetIcon,Ar as ResizeHandle,dr as ResizeHandleIcon,fr as ScaledImageIcon,jr as SelectionCheckbox,Mr as Sidebar,Nr as SidebarContent,Pr as SidebarHeader,Fr as SidebarTabs,z as Spinner,Ur as SvgControlBar,Kr as Tab,Gr as TabList,qr as TabPanel,Wr as Tabs,pr as TargetIcon,R as TextIcon,Jr as ThumbnailGridContainer,Qr as ToastRegion,J as Tooltip,X as TooltipContent,Y as TooltipTrigger,mr as VideoIcon,ni as ViewProvider,ri as WarningMessage,hr as YouTubeIcon,an as createDownload,U as getImageApiRegion,W as getImageApiRotation,Ut as getRegionIntersection,zt as imageUrlWithRegion,K as imageUrlWithTransform,Lt as paintingAnnotationTargetsCanvas,G as shouldUseComplexCanvasThumbnail,H as useCanvasRenderingStrategy,On as useFastList,An as useGridOptions,jn as useLoadMoreItems,$ as useLocalStorage,kn as useOptionalLocalStorage,en as useTooltip};
|
|
18
|
+
`}function r(){i.current.style.transform=``,a.current.style.backgroundImage=``}let o=!1,s=()=>{e=i.current.getBoundingClientRect(),o=!0},c=()=>{o=!1,r()},l=e=>{o&&n(e)};return i.current.addEventListener(`mouseenter`,s),i.current.addEventListener(`mouseleave`,c),i.current.addEventListener(`mousemove`,l),()=>{i.current.removeEventListener(`mouseenter`,s),i.current.removeEventListener(`mouseleave`,c),i.current.removeEventListener(`mousemove`,l)}},[]),_(`div`,{ref:i,className:v(`relative transition-all hover:duration-50`,t&&`hover:shadow-xl`,e),...r,children:[n,g(`div`,{className:`pointer-events-none absolute inset-0 transition-all`,style:{backgroundImage:`radial-gradient(circle at 50% -20%, #ffffff00, #ffffff00)`},ref:a})]})}function B(e){let t=b(`components`);return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:[g(`title`,{children:t(`icons.text`)}),g(`path`,{fill:`currentColor`,d:`M3 21v-2h18v2zm0-4v-2h12v2zm0-4v-2h18v2zm0-4V7h12v2zm0-4V3h18v2z`})]})}function bt({cover:e,fade:t=!0,region:n,singleImage:r}){return g(Ne,{children:g(Me,{fallback:g(xt,{}),children:g(Tt,{cover:e,fade:t,region:n,singleImage:r})})})}function xt(){let e=b(`components`);return g(`div`,{className:`text-black/60`,children:e(`errors.thumbnail`)})}const V=new Map;function St(e,t){return!!t&&be(e.target).source.id===t}function H(){let e=C(),t=w(),n=De(),[r]=Te(),i=M(()=>ve(t),[t]),a=M(()=>i.getPaintables(n.filter(t=>St(t,e?.id))),[n,e?.id,i]);return M(()=>Se({canvas:e,paintables:a,supports:[`empty`,`images`,`media`,`textual-content`,`complex-timeline`],loadImageService:r,vault:t}),[e,r,a,t])}function U(e){let t=e?.selector;return t&&(t.type===`iiif:ImageApiSelector`||t.type===`ImageApiSelector`)&&Ct(t.region)?t.region:null}function W(e){let t=e?.selector;if(!t||t.type!==`iiif:ImageApiSelector`&&t.type!==`ImageApiSelector`)return null;let n=String(t.rotation??``),r=Number(n.replace(/^!/,``));return n&&Number.isFinite(r)?n:null}function Ct(e){if(typeof e!=`string`)return!1;let t=(e.startsWith(`pct:`)?e.slice(4):e).split(`,`).map(Number);return t.length===4&&t.every(Number.isFinite)&&t[0]>=0&&t[1]>=0&&t[2]>0&&t[3]>0}function G(e,t=e=>e,n){return e.type===`images`?e.images.length>1||n?!0:e.images.some(e=>{let n=At(e.annotation?.body);return[t(n),n].some(e=>{let t=e?.selector,n=Number(t?.rotation);return U(e)!==null||(t?.type===`iiif:ImageApiSelector`||t?.type===`ImageApiSelector`)&&Number.isFinite(n)&&n!==0})}):!1}function K(e,t,n){let r=e.split(`/`);return r.length<4?e:(t&&(r[r.length-4]=t),r[r.length-3]=`256,`,n&&(r[r.length-2]=n),r.join(`/`))}function wt(e,t){return K(e,t,null)}function Tt({cover:e,fade:t=!0,region:n,singleImage:r}){let i=H(),a=w();return G(i,e=>(e?.id?a.get(e,{skipSelfReturn:!1}):e)||e,n)?g(jt,{cover:e,fade:t,region:n,singleImage:r}):i.type===`textual-content`?g(`div`,{className:`text-black/60 flex items-center justify-center h-full bg-me-gray-100 animate-fadeInDelayed absolute inset-0`,children:g(B,{className:`w-16 h-16`})}):g(Et,{cover:e,fade:t})}function Et({cover:e,fade:n=!0}){N(null);let r=C(),i=r?!!V.get(r?.id):!1,[a,o]=P(!i),s=ke({height:256,width:256},!0),c=s?.id;A(()=>{if(!c||!r?.id)return;let e=V.get(r.id);e&&e!==c&&(V.delete(r.id),o(!0))},[c,r?.id]),r?.id&&c?V.set(r.id,c):r?.id&&V.get(r.id)&&(c=V.get(r?.id)),A(()=>{c&&!i&&o(!0)},[c,i]);let l=je(e=>{e&&!i&&(e.complete||e.naturalWidth>0)&&o(!1)},[i]);return _(`div`,{className:`w-full h-full relative`,style:{backgroundColor:r?.backgroundColor},children:[s?.id?g(`img`,{onLoad:()=>o(!1),ref:l,src:s?.id,alt:``,className:`select-none w-full h-full ${e?`object-cover`:`object-contain`} ${a?`opacity-0`:i?``:`animate-fadeIn`}`}):g(Dt,{}),!s?.id||a?g(`div`,{className:v(`absolute inset-0 flex items-center justify-center bg-me-gray-100 text-2xl z-10`,n&&`animate-fadeIn`),children:g(t,{})}):null]})}function Dt(){let e=b(`components`);return H().type===`textual-content`?g(`div`,{className:`text-black/60 flex items-center justify-center h-full bg-me-gray-100 animate-fadeInDelayed absolute inset-0`,children:g(B,{className:`w-16 h-16`})}):g(`div`,{className:`text-black/60 flex items-center justify-center h-full bg-me-gray-100 animate-fadeInDelayed absolute inset-0`,children:e(`empty.thumbnail`)})}function Ot(e,t){let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),i=Math.min(e.x+e.width,t.x+t.width),a=Math.min(e.y+e.height,t.y+t.height);return i<=n||a<=r?null:{x:n,y:r,width:i-n,height:a-r}}function kt(e){return e?`${e.x},${e.y},${e.width},${e.height}`:``}function At(e){return Array.isArray(e)?e[0]:e}function jt({cover:e,fade:n=!0,region:r,singleImage:i}){let a=C(),o=H(),s=w(),c=M(()=>ye(s),[s]),[l,u]=P({canvasId:null,regionKey:``,region:null,imagesToRender:[]}),d=`${kt(r)}/${i?`single`:`all`}`;return A(()=>{let e=new AbortController;return(async()=>{if(!a||o.type!==`images`||!G(o,e=>(e?.id?s.get(e,{skipSelfReturn:!1}):e)||e,r))return;let t=o.images.map(e=>({image:e,target:e.target||{spatial:{x:0,y:0,width:a.width,height:a.height}}})),n=r?t.filter(e=>Ot(r,e.target.spatial)):t,l=r||null,f=r?i?(n.length?n:t).slice(0,1):n:t,p=[];for(let{image:t,target:n}of f){let r=At(t.annotation.body),a=r?s.get(r,{skipSelfReturn:!1})||r:t.annotation,o=U(a)||U(r),u=W(a)||W(r);if(await c.getBestThumbnailAtSize(a,{width:256,height:256,maxWidth:768,maxHeight:768,unsafeImageService:!0,allowUnsafe:!0,returnAllOptions:!0}).then(t=>{e.signal.aborted||t.best?.type===`fixed`&&p.push({image:{...t.best,id:K(t.best.id,o,u)},target:n})}).catch(()=>void 0),e.signal.aborted)return;if(l&&i&&p.length)break}u({canvasId:a.id,regionKey:d,region:l,imagesToRender:p})})().catch(t=>{!e.signal.aborted&&a?.id&&u({canvasId:a.id,regionKey:d,region:null,imagesToRender:[]})}),()=>{e.abort()}},[o,c,d,a]),!l||!a||l.canvasId!==a?.id||l.regionKey!==d?g(`div`,{className:v(`absolute inset-0 flex items-center justify-center bg-me-gray-100 text-2xl z-10`,n&&`animate-fadeIn`),children:g(t,{})}):g(`div`,{className:`flex items-center justify-center w-full h-full`,children:g(`div`,{className:`relative overflow-hidden max-h-full max-w-full`,style:{backgroundColor:a?.backgroundColor,aspectRatio:`${(l.region?.width||a.width)/(l.region?.height||a.height)}`,width:(l.region?.width||a.width)>=(l.region?.height||a.height)?`100%`:`auto`,height:(l.region?.width||a.width)>=(l.region?.height||a.height)?`auto`:`100%`},children:l.imagesToRender.length?l.imagesToRender.map(e=>g(`div`,{className:`absolute`,style:{width:`${e.target.spatial.width/(l.region?.width||a.width)*100}%`,height:`${e.target.spatial.height/(l.region?.height||a.height)*100}%`,top:`${(e.target.spatial.y-(l.region?.y||0))/(l.region?.height||a.height)*100}%`,left:`${(e.target.spatial.x-(l.region?.x||0))/(l.region?.width||a.width)*100}%`},children:g(`img`,{alt:``,className:`w-full h-full object-cover select-none`,src:e.image.id})},e.image.id)):g(Dt,{})})})}function Mt(e){let t=b(`components`),n=C({id:e.id}),{dragProps:r}=he({isDisabled:!e.dragState,getItems(){return[{"text/plain":JSON.stringify(e.dragState)}]}}),i=e.onClick?`button`:`div`,a=e.selected||e.active;return g(xe,{canvas:e.id,children:_(i,{...e.onClick?{type:`button`}:{},...e.dragState?r:{},onClick:e.onClick,className:v(`flex w-full flex-col border-0 bg-transparent p-0 text-inherit`,e.className),"data-canvas-selected":e.selected,"aria-current":a?`true`:void 0,"aria-label":e.onClick?x(n?.label)||t(`empty.untitledCanvas`):void 0,...e.containerProps||{},children:[_(`div`,{className:`bg-me-gray-100 relative w-full aspect-square group flex-1 overflow-hidden rounded`,children:[g(z,{"data-canvas-selected":e.active,className:R(`border-2 border-transparent p-1 w-full h-full rounded select-none`,e.selected&&`border-me-primary-500`),children:g(bt,{})}),e.icon||null]}),e.hideLabel?null:e.customLabel?e.customLabel({className:`text-sm text-center truncate mt-1`}):g(yt,{className:`text-sm text-center truncate mt-1`,as:`div`})]})})}function Nt(t){return g(e,{children:g(Mt,{...t})})}function Pt(e){let t=b(`components`);return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 -960 960 960`,"aria-label":t(`icons.collection`),role:`img`,...e,children:g(`path`,{d:`M320-320h480v-480h-80v280l-100-60-100 60v-280H320v480Zm0 80q-33 0-56.5-23.5T240-320v-480q0-33 23.5-56.5T320-880h480q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H320ZM160-80q-33 0-56.5-23.5T80-160v-560h80v560h560v80H160Zm360-720h200-200Zm-200 0h480-480Z`,fill:`currentColor`})})}function Ft({as:e=`li`,isActive:t,onAction:n}){let r=we({}),{pressProps:i}=_e({onPress:n});return _(e,{"aria-label":Pe(r?.label),className:`border-b-2 border-b-gray-200 flex p-2 gap-3 text-left truncate items-center w-full hover:bg-gray-100 data-[active]:bg-gray-200 data-[active]:border-b-me-primary-500`,"data-active":t||void 0,...i,children:[g(Pt,{"data-active":t||void 0,className:`flex-shrink-0 text-2xl data-[active]:text-me-primary-500 text-gray-400`}),g(S,{children:r?.label})]})}function It({onPress:e,children:t}){return g(a,{className:`bg-me-primary-500 px-3 py-1 hover:bg-me-primary-600 text-white rounded`,onPress:e,children:t})}function Lt({children:e,className:t,...n}){return g(`button`,{className:R(`bg-white border border-me-primary-500 text-xs py-1 px-2 rounded text-me-primary-600 hover:bg-me-primary-50`,t),...n,children:e})}const Rt=e=>g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#5f6368`,viewBox:`0 -960 960 960`,...e,children:g(`path`,{d:`M240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z`,fill:`currentColor`})});function q({initialOpen:e=!1,placement:t=`top`,open:n,onOpenChange:r}={}){let[i,a]=E.useState(e),o=n??i,s=r??a,c=Ve({placement:t,open:o,onOpenChange:s,whileElementsMounted:Ie,middleware:[Re(5),Le({crossAxis:t.includes(`-`),fallbackAxisSideDirection:`start`,padding:5}),ze({padding:5})]}),l=c.context,u=Ue(l,{move:!1,enabled:n==null}),d=He(l,{enabled:n==null}),f=Be(l),p=Ke(l,{role:`tooltip`}),m=We([u,d,f,p]);return E.useMemo(()=>({open:o,setOpen:s,...m,...c}),[o,s,m,c])}const zt=E.createContext(null),Bt=()=>{let e=E.useContext(zt);if(e==null)throw Error(`Tooltip components must be wrapped in <Tooltip />`);return e};function J({children:e,...t}){let n=q(t);return g(zt.Provider,{value:n,children:e})}const Y=E.forwardRef(function({children:e,as:t,asChild:n=!1,...r},i){let o=Bt(),s=e.ref,c=Ge([o.refs.setReference,i,s]);return n&&E.isValidElement(e)?E.cloneElement(e,o.getReferenceProps({ref:c,...r,...e.props,"data-state":o.open?`open`:`closed`})):g(t||a,{ref:c,"data-state":o.open?`open`:`closed`,...o.getReferenceProps(r),children:e})}),X=E.forwardRef(function({style:e,root:t,...n},r){let i=Bt(),a=Ge([i.refs.setFloating,r]);if(!i.open)return null;let o=i.elements.reference,s=o&&`closest`in o?o.closest(`.manifest-editor-modal`):void 0,c=t||s||document.getElementById(`manifest-editor-container`);return g(Fe,{root:c,children:g(pe,{children:g(`div`,{className:`manifest-editor`,children:g(`div`,{ref:a,style:{...i.floatingStyles,...e},...i.getFloatingProps(n)})})})})});function Z(e){return g(X,{root:e.root,className:v(`bg-me-gray-900 text-white text-sm px-3 py-2 rounded opacity-90 z-50`,e.className),children:e.children})}function Vt(e){let{resolveMessage:t}=y();return g(f,{orientation:`horizontal`,"aria-label":t(e.labelMessage,e.label),selectionMode:`single`,items:e.items,className:v(`grid grid-cols-2 gap-2 p-4 sm:grid-cols-3`,e.compact&&`flex flex-wrap pt-0`),children:t=>g(Ht,{...t,compact:e.compact})})}function Ht(e){let{resolveMessage:t}=y(),n=t(e.titleMessage,e.title),r=t(e.descriptionMessage,e.description),i=q(),a=i.elements.reference,o=a&&`closest`in a?a.closest(`.manifest-editor-modal`):void 0;return _(h,{children:[_(p,{...i.getReferenceProps(),ref:i.refs.setReference,id:e.id,textValue:n,"aria-label":n,onAction:e.onClick,className:t=>v(`flex cursor-pointer items-center gap-3 rounded-md border border-me-gray-300 bg-white p-3 text-me-gray-700 transition-colors hover:border-me-primary-500 hover:bg-me-primary-100 motion-reduce:transition-none`,e.compact&&`gap-2 px-3 py-2`,t.isFocused&&`border-me-primary-500 outline outline-2 outline-me-primary-500`),children:[g(`span`,{"aria-hidden":`true`,className:v(`flex shrink-0 items-center justify-center [&>svg]:h-8 [&>svg]:w-8`,e.compact&&`[&>svg]:h-5 [&>svg]:w-5`),children:e.icon||g(Rt,{})}),g(`span`,{className:`text-sm font-medium`,children:n}),g(de,{slot:`description`,className:`sr-only`,children:r})]}),i.open&&r?g(Fe,{root:o||void 0,children:g(pe,{children:g(`div`,{className:`manifest-editor`,children:g(`div`,{ref:i.refs.setFloating,...i.getFloatingProps(),style:i.floatingStyles,className:`pointer-events-none z-50 max-w-xs rounded bg-gray-900 px-3 py-2 text-sm text-white shadow`,children:r})})})}):null]})}function Ut(t){return g(e,{children:g(Vt,{...t})})}const Wt=e=>g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#5f6368`,viewBox:`0 -960 960 960`,...e,children:g(`path`,{d:`M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z`,fill:`currentColor`})});function Gt({label:e,id:t,getData:n,fileName:r,fileType:i}){let a=b(`components`),o=ge(t),s=e??a(`actions.download`);return g(J,{placement:`bottom`,children:_(Y,{className:`bg-me-gray-100 hover:bg-me-primary-500 hover:text-white p-1 rounded-md text-me-primary-500 text-2xl`,"aria-label":s,id:o,onPress:()=>Kt(n(),r,i),children:[g(Wt,{"aria-labelledby":t}),g(Z,{children:s})]})})}function Kt(e,t,n=`text/json`){let r=e instanceof Blob?e:new Blob([e],{type:n}),i=document.createElement(`a`);i.download=t,i.href=window.URL.createObjectURL(r);let a=new MouseEvent(`click`,{view:window,bubbles:!0,cancelable:!0});i.dispatchEvent(a),i.remove()}function qt(e){return g(`div`,{className:R(`flex items-center justify-center text-gray-600 text-md`,e.$noMargin?``:`m-4`,e.$box?`p-4 border border-gray-200 rounded`:``),children:e.children})}function Jt({children:e,small:t=!1,className:n}){return g(`div`,{className:v(`bg-red-500 text-white`,`border-1 drop-shadow border-red-700 w-full rounded-md py-2 px-4 leading-[1.9em] flex items-center`,`has-[a]:text-white`,t&&`text-xs whitespace-nowrap py-1 px-2 leading-[1.6em] w-fit`,n),children:e})}function Yt({className:e,...t}){return g(d,{className:R(`font-semibold text-sm`,e),...t})}function Xt({className:e,...t}){return g(oe,{className:R(``,e),...t})}function Zt({className:e,...t}){return g(ae,{className:t=>R(`outline outline-me-primary-500 outline-offset-2 w-5 h-5 rounded-full bg-white transition-all border-[7px] border-gray-700 group-pressed:border-gray-800 outline-0`,e),...t})}function Qt({className:e,...t}){return g(c,{className:R(``,e),...t})}function $t({className:e,...t}){return g(u,{className:R(`p-2 bg-me-gray-100 border-b border-b-me-gray-500`,`focus:ring-0 outline-0 focus:border-me-primary-500 focus:bg-[#ECEEF5]`,e),...t})}function en({className:e,...t}){return g(fe,{className:R(`p-2 bg-me-gray-100 border-b border-b-me-gray-500`,`focus:ring-0 outline-0 focus:border-me-primary-500 focus:bg-[#ECEEF5]`,e),...t})}function tn({horizontal:e,className:t,...n}){return g(`div`,{className:R(`flex flex-col gap-2`,e&&`flex-row`,t),...n})}const nn={Input:$t,Form:Qt,Label:Yt,InputContainer:tn,RadioGroup:Xt,Radio:Zt,TextArea:en},rn=O(function({className:e,...t},n){return g(`div`,{ref:n,className:`relative text-2xl flex p-0.5 rounded-sm aspect-square hover:bg-me-primary-100 aria-expanded:bg-me-primary-500 aria-expanded:text-white ${e||``}`,...t})});function an({className:e,locale:t}){let n=Ce(),r=w(),i=M(()=>{if(!n?.body)return[];let e=on(n.body,r),i=[];if(t&&n){let n=e.filter(e=>(Array.isArray(e.language)?e.language[0]:e.language)===t);i=n.length?n:e.length?[e[0]]:[]}else i=e;return i.filter(e=>e).map(e=>e.value).filter(Boolean)},[t,n,r]);return g(`div`,{className:e,children:i.map((e,t)=>g(`div`,{className:`prose-headings:mt-1 prose-headings:mb-1 prose-sm`,children:g(`div`,{dangerouslySetInnerHTML:{__html:e}})},t))})}function on(e,t){return e.flatMap(e=>sn(e,t))}function sn(e,t){let n=cn(e,t);return n?n.type===`Choice`?ln(n.items).flatMap(e=>sn(e,t)):n.type===`TextualBody`||n.type===`Text`?[n]:[]:[]}function cn(e,t){return!e?.id||e.value||e.items?e:t.get(e,{skipSelfReturn:!1})||e}function ln(e){return Array.isArray(e)?e:e==null?[]:[e]}const un=k(()=>import(`./HTMLEditorImpl-BTL6pknt.js`).then(e=>({default:e.HTMLEditor})));function dn(e){return g(D,{fallback:g(t,{}),children:g(un,{...e})})}function fn(e,t=24){let[n,r]=P(!1);return j(()=>{e&&setTimeout(()=>{r(!0)},0)},[e]),e?n?e:e.slice(0,t):[]}globalThis.MS_LS_EMITTER=globalThis.MS_LS_EMITTER||qe();const Q=globalThis.MS_LS_EMITTER;function pn(e,t,n){let[r,i]=P(t),[a,o]=$(e,t);return n?[r,i]:[a,o]}function $(e,t){let n=N(void 0);!n.current&&t!==void 0&&(n.current=JSON.stringify(t));let[r,i]=P(()=>{try{if(typeof window>`u`||window.localStorage===void 0)return t;let r=window.localStorage.getItem(e);return r!=null&&(n.current=r),r?JSON.parse(r):t}catch(e){return console.log(e),t}});return A(()=>{let t=({valueJson:e})=>{if(e&&e!==n.current)try{i(JSON.parse(e)),n.current=e}catch{}};return Q.on(`change:${e}`,t),()=>{Q.off(`change:${e}`,t)}},[e]),[r,r=>{try{if(typeof window<`u`&&window.localStorage!==void 0){let a=t;try{a=n.current===void 0?t:JSON.parse(n.current)}catch{}let o=r instanceof Function?r(a):r;i(o);let s=JSON.stringify(o);window.localStorage.setItem(e,s),s!==n.current&&(n.current=s,Q.emit(`change:${e}`,{valueJson:s}))}}catch(e){console.log(e)}},n]}function mn(e,t={}){let n=b(`components`),{defaultGridSize:r=`grid-md`,onDark:i=!1}=t,[a,o]=$(e||`default-grid-size`,r||`grid-md`),s=_(`div`,{className:`flex gap-2 items-center`,id:`grid-options`,children:[g(`div`,{className:i?` text-white text-sm`:` text-sm`,children:n(`grid.size`)}),g(I,{onDark:i,primary:a===`grid-sm`,onPress:()=>o(`grid-sm`),children:n(`grid.small`)}),g(I,{onDark:i,primary:a===`grid-md`,onPress:()=>o(`grid-md`),children:n(`grid.medium`)}),g(I,{onDark:i,primary:a===`grid-lg`,onPress:()=>o(`grid-lg`),children:n(`grid.large`)})]});return[{size:a},s]}function hn(e,t){let[n,r]=P(t.batchSize),i=M(()=>e.slice(0,n),[e,n]),a=je(()=>{r(e=>e+t.batchSize)},[t.batchSize]),o=M(()=>g(`div`,{style:{width:1,height:1},ref:e=>{let t=new IntersectionObserver(e=>{e[0]?.isIntersecting&&a()},{root:e?.parentElement,threshold:.1});return e&&t.observe(e),()=>{e&&t.unobserve(e)}}}),[a]),s=n>=e.length;return[s?e:i,{intersector:s?null:o,loadMore:a,isFullyLoaded:s,reset:()=>{r(t.batchSize)}}]}function gn({children:e,active:t,label:n,labelMessage:r,disabled:i,onPress:a,root:o,className:s,placement:c=`top`}){let{resolveMessage:l}=y(),u=l(r,n);return g(J,{placement:c,children:_(Y,{"aria-label":u,onClick:a,className:v(`rounded flex items-center bg-white justify-center p-2 hover:bg-gray-100 text-2xl`,t?`bg-me-primary-500 bg-opacity-40 hover:bg-opacity-70 hover:bg-me-primary-500`:``,i?`opacity-50 pointer-events-none`:``,s),children:[e,g(Z,{root:o,className:`translate-x-3 z-50`,children:u})]})})}const _n=O(function({className:e,...t},n){return g(a,{className:v(`transition-all mt-1 mb-1 opacity-0 transform scale-y-70 focus-visible:ring-2 focus-visible:ring-me-primary-500`,`bg-white h-8 w-8 flex items-center justify-center rounded-full drop-shadow select-none group-hover:opacity-100 text-gray-500`,`hover:text-me-500 hover:bg-me-100`,e),...t,ref:n})}),vn=k(()=>import(`./IIIFMediaPlayerImpl-BrVehzn_.js`).then(e=>({default:e.IIIFMediaPlayer})));function yn(e){return g(D,{fallback:g(t,{}),children:g(vn,{...e})})}function bn({children:e,small:t=!1,className:n}){return g(`div`,{className:v(`bg-me-500 text-white`,`border-1 drop-shadow border-me-700 w-full rounded-md py-2 px-4 leading-[1.9em] flex items-center`,`has-[a]:text-white`,t&&`text-xs whitespace-nowrap py-1 px-2 leading-[1.6em] w-fit`,n),children:e})}function xn({children:e,handle:t,actions:n,grid:r}){return _(`div`,{className:r?`relative flex flex-col`:`flex items-center`,children:[g(`div`,{className:`flex-1 min-w-0`,style:{flex:1,minWidth:0},children:e}),_(`div`,{className:r?`absolute flex p-1 gap-1 bg-white z-1 right-1 top-1 rounded`:`flex-shrink-0 flex items-center gap-1 px-1`,children:[n,t]})]})}function Sn({className:e,inline:t,height:n=16,color:r=`black`}){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:`${n}px`,viewBox:`0 0 24 24`,width:`24px`,fill:r,style:{verticalAlign:t?`bottom`:void 0},className:e,children:[g(`path`,{d:`M0 0h24v24H0z`,fill:`none`}),g(`path`,{d:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z`,fill:`currentColor`})]})}const Cn=e=>g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#5f6368`,viewBox:`0 -960 960 960`,...e,children:g(`path`,{d:`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h360v80H200v560h560v-360h80v360q0 33-23.5 56.5T760-120H200Zm480-480v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80ZM240-280h480L570-480 450-320l-90-120-120 160Zm-40-480v560-560Z`,fill:`currentColor`})});function wn(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:g(`path`,{fill:`currentColor`,d:`M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm9-2V5H5v14z`})})}function Tn(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:g(`path`,{fill:`currentColor`,d:`M4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h16q.825 0 1.413.588T22 6v5h-2V6H4v12h11v2H4Zm7.075-5.5l1.425-1.425L9.4 10H12V8H6v6h2v-2.575l3.075 3.075ZM17 20v-7h5v7h-5Zm-5-8Z`})})}function En({title:e,className:t,...n}){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,className:t,...n,children:[e?g(`title`,{children:e}):null,g(`path`,{fill:`currentColor`,d:`M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59a.996.996 0 0 0 0-1.41l-6.58-6.6a.996.996 0 1 0-1.41 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1`})]})}const Dn=e=>g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#5f6368`,viewBox:`0 -960 960 960`,...e,children:g(`path`,{d:`M480-400q-50 0-85-35t-35-85v-240q0-50 35-85t85-35q50 0 85 35t35 85v240q0 50-35 85t-85 35Zm0-240Zm-40 520v-123q-104-14-172-93t-68-184h80q0 83 58.5 141.5T480-320q83 0 141.5-58.5T680-520h80q0 105-68 184t-172 93v123h-80Zm40-360q17 0 28.5-11.5T520-520v-240q0-17-11.5-28.5T480-800q-17 0-28.5 11.5T440-760v240q0 17 11.5 28.5T480-480Z`,fill:`currentColor`})});function On(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:g(`path`,{fill:`currentColor`,d:`M20 11H7.83l5.59-5.59L12 4l-8 8l8 8l1.41-1.41L7.83 13H20z`})})}function kn(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:g(`path`,{fill:`currentColor`,d:`M9 16.17L4.83 12l-1.42 1.41L9 19L21 7l-1.41-1.41z`})})}function An(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:g(`path`,{fill:`currentColor`,d:`M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59L7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12L5.7 16.89a.996.996 0 1 0 1.41 1.41L12 13.41l4.89 4.89a.996.996 0 1 0 1.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4`})})}function jn(){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:`24`,viewBox:`0 0 24 24`,width:`24`,children:[g(`path`,{d:`M0 0h24v24H0V0z`,fill:`none`}),g(`path`,{d:`M13 11h-2v3H8v2h3v3h2v-3h3v-2h-3zm1-9H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z`,fill:`currentColor`})]})}function Mn(e){return _(`svg`,{height:`1em`,width:`1em`,viewBox:`0 0 24 24`,...e,children:[g(`path`,{d:`M0 0h24v24H0z`,fill:`none`}),g(`path`,{d:`M0 0h24v24H0V0z`,fill:`none`}),g(`path`,{d:`M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z`,fill:`currentColor`})]})}function Nn(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:g(`path`,{fill:`currentColor`,d:`M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12l1.41 1.41L13.41 14l2.12 2.12l-1.41 1.41L12 15.41l-2.12 2.12l-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z`})})}function Pn(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:g(`path`,{fill:`currentColor`,d:`M14 11c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1s.45-1 1-1h9c.55 0 1 .45 1 1M3 7c0 .55.45 1 1 1h9c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1m7 8c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1h5c.55 0 1-.45 1-1m8.01-2.13l.71-.71a.996.996 0 0 1 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71zm-.71.71l-5.16 5.16c-.09.09-.14.21-.14.35v1.41c0 .28.22.5.5.5h1.41c.13 0 .26-.05.35-.15l5.16-5.16z`})})}function Fn(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:[g(`path`,{fill:`currentColor`,d:`M10 10h4v4h-4zm0 6h4v4h-4zM4 4h4v4H4zm0 6h4v4H4zm0 6h4v4H4zM16 4h4v4h-4zm0 6h4v4h-4zm0 6h4v4h-4zM10 4h4v4h-4z`,opacity:`.3`}),g(`path`,{fill:`currentColor`,d:`M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M8 20H4v-4h4zm0-6H4v-4h4zm0-6H4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4z`})]})}const In=e=>g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#5f6368`,viewBox:`0 -960 960 960`,...e,children:g(`path`,{d:`M0-360v-240h60v80h80v-80h60v240h-60v-100H60v100H0Zm310 0v-180h-70v-60h200v60h-70v180h-60Zm170 0v-200q0-17 11.5-28.5T520-600h180q17 0 28.5 11.5T740-560v200h-60v-180h-40v140h-60v-140h-40v180h-60Zm320 0v-240h60v180h100v60H800Z`,fill:`currentColor`})}),Ln=e=>g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#5f6368`,viewBox:`0 -960 960 960`,...e,children:g(`path`,{d:`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h200v80H200v560h560v-214l80 80v134q0 33-23.5 56.5T760-120H200Zm40-160 120-160 90 120 120-160 150 200H240Zm622-144L738-548q-21 14-45 21t-51 7q-74 0-126-52.5T464-700q0-75 52.5-127.5T644-880q75 0 127.5 52.5T824-700q0 27-8 52t-20 46l122 122-56 56ZM644-600q42 0 71-29t29-71q0-42-29-71t-71-29q-42 0-71 29t-29 71q0 42 29 71t71 29Z`,fill:`currentColor`})}),Rn=({mono:e=!0,...t})=>_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlSpace:`preserve`,width:`1em`,height:`1em`,...t,viewBox:`0 0 493.36 441.333`,children:[g(`path`,{d:`m65.242 2178.75 710-263.75-1.25-1900-708.75 261.25v1902.5m738.903 461.34c81.441-240.91-26.473-436.2-241.04-436.2-214.558 0-454.511 195.29-535.953 436.2-81.433 240.89 26.48 436.18 241.039 436.18 214.567 0 454.512-195.29 535.954-436.18`,style:{fill:e?`currentColor`:`#2873ab`,fillOpacity:1,fillRule:`nonzero`,stroke:`none`},transform:`matrix(.13333 0 0 -.13333 0 441.333)`}),g(`path`,{d:`M1678.58 2178.75 968.578 1915l1.25-1900 708.752 261.25v1902.5m-743.498 461.34c-81.437-240.91 26.477-436.2 241.038-436.2 214.56 0 454.51 195.29 535.96 436.2 81.43 240.89-26.48 436.18-241.04 436.18-214.57 0-454.52-195.29-535.958-436.18`,style:{fill:e?`currentColor`:`#ed1d33`,fillOpacity:1,fillRule:`nonzero`,stroke:`none`},transform:`matrix(.13333 0 0 -.13333 0 441.333)`}),g(`path`,{d:`m1860.24 2178.75 710-263.75-1.25-1900-708.75 261.25v1902.5m743.5 461.34c81.45-240.91-26.47-436.2-241.03-436.2-214.58 0-454.52 195.29-535.96 436.2-81.44 240.89 26.48 436.18 241.03 436.18 214.57 0 454.51-195.29 535.96-436.18`,style:{fill:e?`currentColor`:`#2873ab`,fillOpacity:1,fillRule:`nonzero`,stroke:`none`},transform:`matrix(.13333 0 0 -.13333 0 441.333)`}),g(`path`,{d:`M3700.24 3310v-652.5s-230 90-257.5-142.5c-2.5-247.5 0-336.25 0-336.25l257.5 83.75V1690l-258.61-92.5v-1335L2735.24 0v2360s-15 850 965 950`,style:{fill:e?`currentColor`:`#ed1d33`,fillOpacity:1,fillRule:`nonzero`,stroke:`none`},transform:`matrix(.13333 0 0 -.13333 0 441.333)`})]});function zn(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:g(`path`,{fill:`currentColor`,d:`M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1M11 17l2.5-3.15L15.29 16l2.5-3.22L21 17z`})})}function Bn({title:e,titleId:t,...n}){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:`24`,viewBox:`0 0 24 24`,width:`24`,"aria-labelledby":t,...n,children:[e?g(`title`,{id:t,children:e}):null,g(`path`,{d:`M0 0h24v24H0V0z`,fill:`none`}),g(`path`,{d:`M14.06 9.02l.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z`})]})}function Vn({title:e,titleId:t,...n}){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,"aria-labelledby":t,...n,children:[e?g(`title`,{id:t,children:e}):null,_(`g`,{fill:`none`,children:[g(`path`,{d:`M0 0h24v24H0V0z`}),g(`path`,{d:`M0 0h24v24H0V0z`,opacity:`.87`})]}),g(`path`,{d:`M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7zm-4 6h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z`,fill:`currentColor`})]})}function Hn(e){let t=b(`components`);return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`20 -910 960 960`,"aria-label":t(`icons.manifest`),role:`img`,...e,children:g(`path`,{d:`M480-160q-48-38-104-59t-116-21q-42 0-82.5 11T100-198q-21 11-40.5-1T40-234v-482q0-11 5.5-21T62-752q46-24 96-36t102-12q58 0 113.5 15T480-740v484q51-32 107-48t113-16q36 0 70.5 6t69.5 18v-480q15 5 29.5 10.5T898-752q11 5 16.5 15t5.5 21v482q0 23-19.5 35t-40.5 1q-37-20-77.5-31T700-240q-60 0-116 21t-104 59Zm80-200v-380l200-200v400L560-360Zm-160 65v-396q-33-14-68.5-21.5T260-720q-37 0-72 7t-68 21v397q35-13 69.5-19t70.5-6q36 0 70.5 6t69.5 19Zm0 0v-396 396Z`,fill:`currentColor`})})}function Un(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:g(`path`,{fill:`currentColor`,d:`M12 8c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2`})})}const Wn=Un;function Gn(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:g(`path`,{fill:`currentColor`,d:`M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5s5 2.24 5 5s-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3s3-1.34 3-3s-1.34-3-3-3`})})}function Kn(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:g(`path`,{fill:`currentColor`,d:`M17 4v16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-4-2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 18H4V4h9zm8-14v12c.83 0 1.5-.67 1.5-1.5v-9c0-.83-.67-1.5-1.5-1.5`})})}function qn(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:`1em`,width:`1em`,viewBox:`0 0 24 24`,...e,children:[g(`path`,{d:`M0 0h24v24H0V0z`,fill:`none`}),g(`path`,{d:`M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8zM6 13c0-1.65.67-3.15 1.76-4.24L6.34 7.34A8.014 8.014 0 0 0 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91z`,fill:`currentColor`})]})}function Jn({title:e,...t}){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,height:`1em`,width:`1em`,...t,children:[g(`path`,{fill:`none`,d:`M0 0h24v24H0z`}),g(`path`,{d:`M20 9H4v2h16V9zM4 15h16v-2H4v2z`}),e?g(`title`,{children:e}):null]})}function Yn(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:g(`path`,{fill:`currentColor`,d:`M21 15h2v2h-2zm0-4h2v2h-2zm2 8h-2v2c1 0 2-1 2-2M13 3h2v2h-2zm8 4h2v2h-2zm0-4v2h2c0-1-1-2-2-2M1 7h2v2H1zm16-4h2v2h-2zm0 16h2v2h-2zM3 3C2 3 1 4 1 5h2zm6 0h2v2H9zM5 3h2v2H5zm-4 8v8c0 1.1.9 2 2 2h12V11zm2 8l2.5-3.21l1.79 2.15l2.5-3.22L13 19z`})})}function Xn(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:g(`path`,{fill:`currentColor`,d:`M21 15h2v2h-2zm0-4h2v2h-2zm2 8h-2v2c1 0 2-1 2-2M13 3h2v2h-2zm8 4h2v2h-2zm0-4v2h2c0-1-1-2-2-2M1 7h2v2H1zm16-4h2v2h-2zm0 16h2v2h-2zM3 3C2 3 1 4 1 5h2zm6 0h2v2H9zM5 3h2v2H5zm-4 8v8c0 1.1.9 2 2 2h12V11zm2 8l2.5-3.21l1.79 2.15l2.5-3.22L13 19z`})})}const Zn=e=>g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#5f6368`,viewBox:`0 -960 960 960`,...e,children:g(`path`,{d:`M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h480q33 0 56.5 23.5T720-720v180l160-160v440L720-420v180q0 33-23.5 56.5T640-160H160Zm0-80h480v-480H160v480Zm0 0v-480 480Z`,fill:`currentColor`})});function Qn(e){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:[g(`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`}),g(`path`,{d:`m10 8 6 4-6 4z`,fill:`currentColor`})]})}function $n(){let e=b(`components`);return g(a,{"aria-label":e(`actions.reorder`),slot:`drag`,className:`rounded-sm cursor-move bg-transparent text-gray-500 hover:bg-gray-300`,children:g(Jn,{"aria-hidden":`true`,className:`text-xl cursor-move`})})}function er(e){return g(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 206 27`,xmlns:`http://www.w3.org/2000/svg`,className:`me-logo h-[23px] w-[176px]`,...e,children:_(`g`,{fill:`none`,children:[g(`path`,{d:`M62.558 5.41v14.873h-2.983v-9.675l-3.985 9.675h-2.26l-4.006-9.675v9.675H46.34V5.41h3.388l4.73 11.06L59.19 5.41zm2.173 8.928c0-1.194.238-2.252.714-3.176.476-.923 1.123-1.633 1.94-2.13.816-.498 1.73-.746 2.738-.746.88 0 1.651.177 2.312.532.66.355 1.19.803 1.588 1.343V8.477h3.004v11.806h-3.004v-1.726c-.384.554-.913 1.012-1.588 1.374-.675.363-1.453.544-2.334.544-.994 0-1.9-.256-2.717-.767-.816-.512-1.463-1.233-1.939-2.163-.476-.93-.714-2-.714-3.207Zm9.292.042c0-.724-.143-1.346-.427-1.864a3.005 3.005 0 0 0-1.15-1.194 3.076 3.076 0 0 0-1.556-.415c-.554 0-1.066.135-1.534.405-.47.27-.85.664-1.14 1.182-.292.519-.437 1.133-.437 1.844 0 .71.145 1.331.437 1.864.29.533.674.941 1.15 1.226.476.284.984.426 1.524.426.554 0 1.073-.139 1.556-.416a3.005 3.005 0 0 0 1.15-1.193c.284-.519.427-1.14.427-1.865Zm12.466-6.073c1.406 0 2.543.444 3.41 1.332.866.888 1.3 2.127 1.3 3.718v6.926h-2.984v-6.52c0-.938-.234-1.66-.703-2.164-.47-.504-1.108-.756-1.918-.756-.824 0-1.474.252-1.95.756-.476.505-.714 1.226-.714 2.163v6.521h-2.983V8.477h2.983v1.47a4.121 4.121 0 0 1 1.524-1.203 4.713 4.713 0 0 1 2.035-.437Zm9.057-1.237c-.526 0-.963-.166-1.311-.5a1.657 1.657 0 0 1-.522-1.247c0-.497.174-.912.522-1.246.348-.334.785-.5 1.31-.5.526 0 .963.166 1.311.5.348.334.522.75.522 1.246 0 .498-.174.913-.522 1.247-.348.334-.785.5-1.31.5Zm1.47 1.407v11.806h-2.983V8.477h2.983Zm8.354 2.451h-2.068v9.355h-3.026v-9.355h-1.342v-2.45h1.342V7.88c0-1.45.412-2.515 1.236-3.197.824-.682 2.067-1.001 3.73-.959V6.24c-.725-.014-1.23.106-1.513.362-.284.256-.427.718-.427 1.385v.49h2.068v2.451Zm12.913 3.197c0 .426-.028.81-.085 1.15h-8.63c.07.853.369 1.52.895 2.003.525.483 1.172.725 1.939.725 1.108 0 1.896-.476 2.365-1.428h3.218c-.34 1.137-.994 2.07-1.96 2.802-.967.732-2.153 1.098-3.56 1.098-1.136 0-2.155-.252-3.057-.757a5.325 5.325 0 0 1-2.11-2.141c-.504-.924-.756-1.99-.756-3.197 0-1.222.248-2.294.745-3.218a5.204 5.204 0 0 1 2.089-2.13c.895-.498 1.925-.746 3.09-.746 1.122 0 2.127.241 3.015.724a5.1 5.1 0 0 1 2.067 2.057c.49.887.735 1.907.735 3.058Zm-3.09-.853c-.014-.767-.29-1.381-.83-1.843-.54-.462-1.201-.693-1.982-.693-.74 0-1.36.224-1.865.671-.504.448-.813 1.07-.927 1.865h5.604Zm9.782 7.203c-.966 0-1.833-.174-2.6-.522-.767-.348-1.375-.82-1.822-1.417a3.591 3.591 0 0 1-.735-1.982h3.004c.057.454.281.83.672 1.13.39.298.877.447 1.46.447.568 0 1.012-.114 1.331-.341.32-.227.48-.519.48-.874 0-.383-.196-.671-.586-.863-.391-.192-1.012-.401-1.865-.629-.88-.213-1.602-.433-2.163-.66a3.755 3.755 0 0 1-1.449-1.044c-.405-.47-.607-1.101-.607-1.897 0-.653.188-1.25.564-1.79.377-.54.917-.966 1.62-1.279.703-.312 1.53-.468 2.483-.468 1.406 0 2.528.351 3.367 1.054.838.704 1.3 1.652 1.385 2.845h-2.856c-.042-.469-.238-.841-.586-1.118-.348-.277-.813-.416-1.396-.416-.54 0-.955.1-1.246.298a.951.951 0 0 0-.437.831c0 .398.199.7.597.906.397.206 1.015.416 1.854.629.852.213 1.555.433 2.11.66a3.727 3.727 0 0 1 1.438 1.055c.405.476.614 1.105.628 1.886 0 .682-.188 1.293-.564 1.833-.377.54-.917.962-1.62 1.268-.703.305-1.524.458-2.461.458Zm10.569-9.547v5.711c0 .398.096.686.288.863.192.178.515.267.97.267h1.385v2.514h-1.875c-2.515 0-3.772-1.222-3.772-3.665v-5.69h-1.407v-2.45h1.407v-2.92h3.004v2.92h2.643v2.45h-2.643Zm12.851-3.111v3.73h5.007v2.364h-5.007v3.943h5.647v2.43h-8.631V5.386h8.63v2.43zm7.585 6.521c0-1.194.239-2.252.715-3.176.476-.923 1.126-1.633 1.95-2.13.824-.498 1.74-.746 2.749-.746.767 0 1.498.167 2.194.5.697.334 1.25.778 1.663 1.332V4.514h3.026v15.77h-3.026v-1.748c-.37.582-.888 1.051-1.556 1.406s-1.442.533-2.323.533a5.07 5.07 0 0 1-2.727-.767c-.824-.512-1.474-1.233-1.95-2.163-.476-.93-.714-2-.714-3.207Zm9.292.042c0-.724-.142-1.346-.426-1.864a3.005 3.005 0 0 0-1.151-1.194 3.076 3.076 0 0 0-1.556-.415 3.02 3.02 0 0 0-1.534.405c-.469.27-.849.664-1.14 1.182-.291.519-.437 1.133-.437 1.844 0 .71.146 1.331.437 1.864.291.533.675.941 1.15 1.226a2.93 2.93 0 0 0 1.524.426c.554 0 1.073-.139 1.556-.416a3.005 3.005 0 0 0 1.15-1.193c.285-.519.427-1.14.427-1.865Zm7.438-7.31c-.527 0-.963-.166-1.311-.5a1.657 1.657 0 0 1-.523-1.247c0-.497.174-.912.523-1.246.348-.334.784-.5 1.31-.5s.963.166 1.31.5c.349.334.523.75.523 1.246 0 .498-.174.913-.522 1.247-.348.334-.785.5-1.31.5Zm1.47 1.407v11.806h-2.984V8.477h2.984Zm6.414 2.451v5.711c0 .398.096.686.287.863.192.178.515.267.97.267h1.385v2.514h-1.875c-2.515 0-3.772-1.222-3.772-3.665v-5.69h-1.406v-2.45h1.406v-2.92h3.005v2.92h2.642v2.45h-2.642Zm10.036 9.547c-1.136 0-2.159-.252-3.068-.757a5.447 5.447 0 0 1-2.141-2.141c-.519-.924-.778-1.99-.778-3.197s.266-2.273.799-3.196a5.553 5.553 0 0 1 2.184-2.142c.924-.504 1.954-.756 3.09-.756 1.137 0 2.167.252 3.09.756a5.553 5.553 0 0 1 2.184 2.142c.533.923.8 1.989.8 3.196 0 1.208-.274 2.273-.821 3.197a5.681 5.681 0 0 1-2.216 2.141c-.93.505-1.971.757-3.122.757Zm0-2.6a3.1 3.1 0 0 0 1.524-.394c.476-.263.856-.657 1.14-1.183.285-.526.427-1.165.427-1.918 0-1.122-.295-1.985-.885-2.589a2.907 2.907 0 0 0-2.163-.906c-.852 0-1.566.302-2.141.906-.576.604-.863 1.467-.863 2.59 0 1.122.28 1.985.841 2.588.562.604 1.268.906 2.12.906Zm11.338-7.565a4.194 4.194 0 0 1 1.502-1.47c.618-.356 1.325-.533 2.12-.533v3.132h-.788c-.938 0-1.644.22-2.12.661-.476.44-.714 1.208-.714 2.302v5.881h-2.984V8.477h2.984v1.833Z`,fill:`#000`}),g(`path`,{fill:`#E94581`,className:`me-logo-1`,d:`M0 13.343 13.343 0l13.343 13.343-13.343 13.343z`}),g(`path`,{fill:`#E94581`,className:`me-logo-2`,d:`M12.137 13.346 25.48.003l13.343 13.343L25.48 26.69z`}),g(`path`,{fill:`#C63E75`,className:`me-logo-3`,d:`m12.104 13.348 7.311-7.311 7.312 7.311-7.312 7.312z`})]})})}function tr({as:e=`li`,isActive:t,onAction:n}){let r=Ee(),{pressProps:i}=_e({onPress:n});return _(e,{"aria-label":x(r?.label),className:`border-b-2 border-b-gray-200 flex p-2 gap-3 text-left truncate items-center w-full hover:bg-gray-100 data-[active]:bg-gray-200 data-[active]:border-b-me-primary-500`,"data-active":t||void 0,...i,children:[g(Hn,{"data-active":t||void 0,className:`flex-shrink-0 text-2xl data-[active]:text-me-primary-500 text-gray-400`}),g(S,{children:r?.label})]})}function nr({onCreate:e,canCreate:t}){let n=b(`components`);return _(`div`,{className:`flex items-center flex-col gap-5 py-16`,children:[g(z,{shouldTranslate:!0,onClick:t?e:void 0,className:`border-2 border-dotted bg-black/5 aspect-[3/4] rounded w-32 border-black`}),g(`div`,{className:`font-bold text-lg`,children:n(`onboarding.title`)}),g(`div`,{className:`max-w-xl px-5 my-4`,children:n(`onboarding.description`)}),t?g(a,{className:`px-8 font-bold py-2 border rounded-lg border-me-primary-500 text-me-primary-500 hover:border-me-primary-600 hover:text-me-primary-600`,onPress:e,children:n(`onboarding.start`)}):null]})}const rr=k(()=>import(`./MDXEditorImpl-0XZVgBT6.js`).then(e=>({default:e.MDXEditor})));function ir(e){return g(D,{fallback:g(t,{}),children:g(rr,{...e})})}function ar({className:e,label:t,children:n,...r}){return _(`fieldset`,{className:R(`hover:ring ring-gray-200 focus-within:ring-me-primary-500 focus-within:ring p-2 rounded mb-2`,e),...r,children:[g(S,{className:`text-lg font-bold text-[#333] mb-2`,as:`h3`,children:t}),n]})}function or({children:e}){let t=document.getElementById(`modal-back-slot`);return t?F(e,t):null}function sr({id:e,className:t,title:n,open:r=!0,onClose:i,actions:a,children:o,width:c,height:u,disableAnimation:d}){let f=b(`components`),{locale:p,direction:m}=y();return g(re,{isDismissable:!0,isOpen:r,onOpenChange:e=>{e||i()},className:`manifest-editor-modal-overlay manifest-editor`,children:g(ne,{lang:p,dir:m,className:v(`manifest-editor-modal relative w-full max-w-4xl max-h-full`,t),style:{width:c,height:u,animation:d?`none`:void 0},children:_(s,{id:e,className:`relative h-full bg-white rounded-lg overflow-hidden shadow-2xl max-h-[80vh] flex flex-col outline-none`,children:[_(`div`,{className:`flex items-center justify-between gap-3 p-4 rounded-t-lg sticky top-0 bg-white`,children:[g(`div`,{id:`modal-back-slot`}),g(l,{slot:`title`,level:2,className:`text-xl font-semibold text-gray-900 grow`,children:n}),_(`button`,{type:`button`,className:`text-gray-600 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-me-primary-500 focus-visible:ring-offset-2`,onClick:i,children:[g(`svg`,{className:`w-3 h-3`,"aria-hidden":`true`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 14 14`,children:g(`path`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,d:`m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6`})}),g(`span`,{className:`sr-only`,children:f(`actions.close`)})]})]}),g(`div`,{className:`flex-1 min-h-0 overflow-y-auto flex flex-col`,children:o}),a?g(`div`,{className:`flex items-center p-4 border-t border-gray-200 rounded-b justify-end`,children:a}):null]})})})}function cr(t){return g(e,{children:g(sr,{...t})})}function lr(){let e=b(`components`);return g(a,{"aria-label":e(`actions.more`),className:`rounded-full bg-gray-200 text-gray-500 hover:bg-me-600 hover:text-white data-[pressed]:bg-me-600 data-[pressed]:text-white`,children:g(Wn,{"aria-hidden":`true`,className:`text-xl`})})}function ur({id:e,steps:t,forceStart:n,onClose:r,lastButtonLabel:i}){let a=b(`components`),[o,s]=$(`tour_step/${e}`,!0),c=o||n;return A(()=>{let t=t=>{t.detail?.id===e&&s(!0)};return window.addEventListener(`onboarding:restart`,t),()=>window.removeEventListener(`onboarding:restart`,t)},[e]),A(()=>{let e=document.getElementById(`manifest-editor-container`);if(!(!e||!c))return e.setAttribute(`inert`,``),()=>{e.removeAttribute(`inert`)}},[c]),t.length===0?null:g(Je,{showProgress:!0,showSkipButton:!0,continuous:!0,steps:t,run:c,callback:e=>{(e.action===`close`||e.action===`skip`||e.action===`stop`||e.action===`reset`||e.status===Ye.FINISHED||e.status===Ye.SKIPPED)&&(s(!1),r?.())},locale:{back:a(`tour.back`),close:a(`actions.close`),last:i??a(`tour.last`),next:a(`tour.next`),nextLabelWithProgress:a(`tour.nextProgress`),open:a(`tour.open`),skip:a(`tour.skip`)},styles:{options:{primaryColor:`#b84c74`,textColor:`#000000`,zIndex:1e4}}},e)}function dr(e){return g(`div`,{className:R(`flex w-full p-0.5 opacity-0 transition-opacity duration-300 gap-2`,e.active&&`opacity-1`),children:e.children})}const fr=O(({className:e,...t},n)=>g(`div`,{ref:n,className:v(`px-4 py-2 flex-1 overflow-visible`,e),...t}));function pr(e){let{resolveMessage:t}=y(),n=t(e.labelMessage,e.label);return g(J,{placement:`right`,children:g(Y,{asChild:!0,children:_(a,{className:R(`border-none bg-white aspect-square w-full flex justify-center items-center hover:bg-me-primary-100 hover:text-black [&>svg]:text-2xl cursor-default`,e.selected?`bg-me-primary-500 hover:bg-me-primary-600 hover:text-white text-white`:`text-me-gray-700`),"aria-label":n,onMouseDown:e.onClick,children:[e.icon,g(X,{className:`bg-me-gray-900 text-white text-sm px-3 py-2 rounded opacity-90 z-50`,children:n})]})})})}function mr(e){let t=b(`components`);return g(`nav`,{"aria-label":t(`panels.navigation`),className:`bg-white border-me-gray-300 border-t border-r flex flex-col w-12 pb-2 h-full`,"data-open":e.open,children:e.items.map(t=>_(h,{children:[t.separator?g(`div`,{className:`mx-2 my-1 border-t border-me-gray-200`}):null,t.divide?g(`div`,{className:`flex-1 block w-2 min-h-1`}):null,g(pr,{label:t.label,labelMessage:t.labelMessage,selected:t.id===e.current&&e.open,icon:t.icon,onClick:t.onClick},t.id)]},t.id))})}function hr(e){let t=b(`components`),n=e.strategy.items.map(e=>Object.keys(e.text)[0]),[r,i]=P(n[0]),o=e.strategy.items.find(e=>Object.keys(e.text)[0]===r);return _(`div`,{className:`overflow-y-auto bg-white shadow`,children:[g(`div`,{className:`flex gap-2 border-b`,children:n.map(e=>g(a,{className:`py-1 px-3 ${r===e?`bg-me-500 text-white`:`bg-white text-black`}`,onPress:()=>i(e),children:e},e))}),g(`div`,{className:`p-4 prose`,children:g(S,{enableDangerouslySetInnerHTML:!0,defaultText:g(`span`,{className:`text-gray-500 my-8`,children:t(`empty.content`)}),children:o?.text})})]})}const gr=O(function({className:e,...t},n){let r=b(`components`);return g(a,{className:v(`transition-all mt-2 mb-2 opacity-0 transform scale-y-70 focus-visible:ring-2 focus-visible:ring-me-primary-500`,`bg-white h-10 w-6 rounded shadow select-none group-hover:opacity-100`,e),"aria-label":r(`controls.resizeList`),...t,ref:n})});function _r({alwaysVisible:e,label:t}){let n=b(`components`);return g(o,{slot:`selection`,"aria-label":t??n(`selection.item`),className:v(`bg-white/50`,`group-hover:opacity-100 block h-5 w-5 shrink-0 rounded border border-gray-300 hover:border-gray-400 ring-offset-1`,`data-[disabled]:hidden data-[indeterminate]:bg-me-700 data-[selected]:bg-me-700 data-[indeterminate]:text-white`,`data-[selected]:border-me-700 data-[indeterminate]:border-me-700`,`data-[selected]:text-white data-[disabled]:opacity-50 data-[focus-visible]:outline-none data-[focus-visible]:ring-2`,`data-[focus-visible]:ring-me-700 data-[focus-visible]:ring-offset-2 data-[focus-visible]:opacity-100`,!e&&`opacity-0 group-hover:opacity-100 data-[selected]:opacity-100 data-[indeterminate]:opacity-100`),children:({isSelected:e,isIndeterminate:t})=>g(`div`,{className:`flex items-center justify-center text-current`,children:g(`svg`,{viewBox:`0 -960 960 960`,"aria-hidden":`true`,fill:`currentColor`,children:t?g(`path`,{d:`M160-440v-80h640v80H160Z`}):e?g(`path`,{d:`M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z`}):null})})})}function vr({children:e}){return g(`div`,{className:`w-full h-full flex flex-col overflow-hidden`,children:e})}function yr({id:e,children:t,className:n,padding:r}){return g(`div`,{id:e,className:R(`flex-1 min-h-0 overflow-y-auto pb-64`,n,r&&`px-3 pt-3`),children:t})}function br(e){let{resolveMessage:t,locale:n,direction:r}=y(),{actions:i,title:o,customActions:s}=e;return _(`div`,{className:`bg-me-gray-100 h-12 flex items-center px-3 z-10 text-black border-b-me-gray-300 border-b flex-shrink-0`,children:[g(S,{as:`h1`,className:`flex-1`,children:typeof o==`string`?t(e.titleMessage,o):o}),_(`div`,{className:`ml-auto flex gap-2 items-center`,children:[i?.map((e,i)=>e.menu?_(te,{children:[g(a,{id:e.id,className:R(`p-1 rounded hover:bg-me-gray-300`,e.toggled&&`bg-me-gray-300`,e.disabled&&`opacity-50 cursor-not-allowed`),"aria-label":t(e.titleMessage,e.title),isDisabled:e.disabled,children:e.icon},i),g(ie,{placement:`bottom right`,lang:n,dir:r,children:e.menu})]},i):_(J,{placement:`bottom`,children:[g(Y,{asChild:!0,children:g(a,{id:e.id,className:R(`p-1 rounded hover:bg-me-gray-300`,e.toggled&&`bg-me-gray-300`,e.disabled&&`opacity-50 cursor-not-allowed`),onPress:e.onClick,"aria-label":t(e.titleMessage,e.title),isDisabled:e.disabled,children:e.icon},i)}),e.disabled?null:g(Z,{children:t(e.titleMessage,e.title)})]},i)),s]})]})}function xr(t){return g(e,{children:g(br,{...t})})}function Sr({menu:e,menuId:t,selectedKey:n,onSelectionChange:r}){let{resolveMessage:i}=y(),a=e.map(e=>i(e.labelMessage,e.label)),o=JSON.stringify(a),s=N(null),[c,l]=P(0),[u,d]=P(null),f=N([]),p=N([]),m=M(()=>e.findIndex(e=>e.id===n),[e,n]);j(()=>{f.current=[];let e=()=>{let e=p.current.filter(e=>!!e),t=e.map(e=>e.style.display);try{for(let t of e)t.style.display=`block`;f.current=e.map(e=>e.getBoundingClientRect().width)}finally{e.forEach((e,n)=>{e.style.display=t[n]})}if(f.current.reduce((e,t)=>e+t,0)&&s.current){let e=s.current.getBoundingClientRect().width-20,t=0,n=0;for(let r=f.current.length-1;r>=0;r--)if(n+=f.current[r],n>e){t=r+1;break}l(t)}};e();let t=setInterval(e,500);return()=>{clearInterval(t)}},[o,e]);let ee=e.filter((t,n)=>c>=e.length-n);return _(h,{children:[_(ue,{className:`w-full flex-1 overflow-hidden flex flex-col`,selectedKey:n,onSelectionChange:r,children:[_(`div`,{className:`flex items-center w-full tab-shadow`,children:[g(ce,{ref:s,className:`flex-1 overflow-hidden w-full flex text-sm whitespace-nowrap`,children:e.map((t,n)=>{let r=c>=e.length-n;return g(Cr,{id:t.id,idx:n,isHidden:r,itemsRef:p,children:a[n]},t.id)})}),g(`div`,{ref:d})]}),e.map(e=>g(le,{id:e.id,className:`flex-1 overflow-y-auto h-full`,children:n===e.id?e.renderComponent():null},e.id))]},t),u&&c>0?F(g(wr,{hidden:c,menuHidden:ee,selectedIndex:m,selectedKey:n,onSelectionChange:r}),u):null]})}const Cr=Ae(function({id:e,idx:t,isHidden:n,itemsRef:r,children:i}){return g(se,{ref:e=>{r.current[t]=e},id:e,className:({isSelected:e,isFocusVisible:t})=>R(`border-b-2 px-2 py-1 text-sm text-gray-600 select-none hover:text-black focus:outline-none`,e&&`border-me-primary-500 text-black`,t&&`ring-2 ring-inset ring-me-primary-500 bg-me-gray-100`,n&&`hidden`),children:i})}),wr=Xe(({selectedIndex:e,hidden:t,menuHidden:n,selectedKey:r,onSelectionChange:i})=>{let{resolveMessage:o,locale:s,direction:c}=y(),l=b(`components`);return _(te,{children:[g(a,{"aria-label":l(`panels.moreTabs`),className:R(`min-h-6 border-none rounded bg-gray-100 px-1.5 py-1 mr-2 mb-1 text-me-primary-600 semibold uppercase text-[10px]`,e>t&&`bg-me-primary-500 text-white rounded`),children:l(`panels.more`)}),g(ie,{lang:s,dir:c,children:n.length?g(m,{className:`bg-white rounded shadow-lg flex flex-col gap-0.5 p-0.5 min-w-28`,children:n.map(e=>g(ee,{className:t=>R(`hover:bg-me-gray-100 p-1 rounded-sm text-sm`,r===e.id&&`ring ring-me-primary-500`),onAction:()=>i?.(e.id),children:o(e.labelMessage,e.label)},e.id))}):null})]})});function Tr(t){return g(e,{children:g(Sr,{...t})})}function Er({showShapes:e=!0,enabled:t,classNames:n={},icons:r={}}){let i=b(`components`),{currentTool:a,switchTool:o,selectedStamp:s}=Oe(),c=[{id:`pointer`,icon:r.PointerIcon,active:a===`pointer`,action:o.pointer},{id:`hand`,icon:r.HandIcon,active:a===`hand`,action:o.hand},...e?[{id:`box`,icon:r.BoxIcon,active:a===`box`,action:o.box},{id:`pen`,icon:r.PenIcon,active:a===`pen`,action:o.pen},{id:`draw`,icon:r.DrawIcon,active:a===`pencil`,action:o.draw},{id:`line`,icon:r.LineIcon,active:a===`line`,action:o.line},{id:`lineBox`,icon:r.LineBoxIcon,active:a===`lineBox`,action:o.lineBox},{id:`triangle`,icon:r.TriangleIcon,active:a===`stamp`&&s?.id===`triangle`,action:o.triangle},{id:`hexagon`,icon:r.HexagonIcon,active:a===`stamp`&&s?.id===`hexagon`,action:o.hexagon},{id:`circle`,icon:r.CircleIcon,active:a===`stamp`&&s?.id===`circle`,action:o.circle}]:[],{id:`delete`,icon:r.DeleteForeverIcon,action:o.remove}];return _(`fieldset`,{style:{border:0,margin:0,padding:0,minWidth:0},children:[g(`legend`,{className:`sr-only`,children:i(`svg.group`)}),c.filter(({id:e})=>e===`pointer`||e===`hand`||!t||t[e]).map(e=>{let t=i(`svg.${e.id}`);return g(`button`,{type:`button`,className:n.button,title:t,"aria-label":t,"aria-pressed":`active`in e?e.active:void 0,"data-active":`active`in e?e.active:void 0,onClick:e.action,children:e.icon?g(`span`,{"aria-hidden":`true`,children:e.icon}):t},e.id)})]})}const Dr=({title:e,titleId:t,...n})=>_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 -960 960 960`,"aria-labelledby":t,...n,children:[e?g(`title`,{id:t,children:e}):null,g(`path`,{fill:`currentColor`,d:`M160-120v-170l527-526q12-12 27-18t30-6q16 0 30.5 6t25.5 18l56 56q12 11 18 25.5t6 30.5q0 15-6 30t-18 27L330-120H160Zm80-80h56l393-392-28-29-29-28-392 393v56Zm560-503-57-57 57 57Zm-139 82-29-28 57 57-28-29ZM560-120q74 0 137-37t63-103q0-36-19-62t-51-45l-59 59q23 10 36 22t13 26q0 23-36.5 41.5T560-200q-17 0-28.5 11.5T520-160q0 17 11.5 28.5T560-120ZM183-426l60-60q-20-8-31.5-16.5T200-520q0-12 18-24t76-37q88-38 117-69t29-70q0-55-44-87.5T280-840q-45 0-80.5 16T145-785q-11 13-9 29t15 26q13 11 29 9t27-13q14-14 31-20t42-6q41 0 60.5 12t19.5 28q0 14-17.5 25.5T262-654q-80 35-111 63.5T120-520q0 32 17 54.5t46 39.5Z`})]}),Or=({title:e,titleId:t,...n})=>_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 -960 960 960`,"aria-labelledby":t,...n,children:[e?g(`title`,{id:t,children:e}):null,g(`path`,{fill:`currentColor`,d:`M272-120 64-480l208-360h416l208 360-208 360H272Zm46-80h324l161-280-161-280H318L156-480l162 280Zm162-280Z`})]});function kr({title:e,titleId:t,...n}){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,"aria-labelledby":t,...n,children:[e?g(`title`,{id:t,children:e}):null,_(`g`,{fill:`none`,fillRule:`evenodd`,children:[g(`path`,{d:`M0 0h20v20H0z`}),g(`path`,{stroke:`currentColor`,strokeLinecap:`square`,strokeWidth:2,d:`m8.5 11.5 6-6M16 4v3m0-3h-3m0 14L2 7`}),g(`path`,{stroke:`currentColor`,strokeOpacity:.407,strokeWidth:2,d:`m2 7 5-5 11 11-5 5z`})]})]})}function Ar({title:e,titleId:t,...n}){return _(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,"aria-labelledby":t,...n,children:[e?g(`title`,{id:t,children:e}):null,_(`g`,{fill:`none`,fillRule:`evenodd`,children:[g(`circle`,{cx:4.5,cy:4.5,r:2.5,fill:`currentColor`}),g(`circle`,{cx:15.5,cy:15.5,r:2.5,fill:`currentColor`}),g(`path`,{stroke:`currentColor`,strokeLinecap:`square`,strokeWidth:2,d:`m13.5 13.5-9-9`})]})]})}const jr={DrawIcon:g(Dr,{}),PenIcon:g(({title:e,titleId:t,...n})=>_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 -960 960 960`,"aria-labelledby":t,...n,children:[e?g(`title`,{id:t,children:e}):null,g(`path`,{fill:`currentColor`,d:`M600-80v-100L320-320H120v-240h172l108-124v-196h240v240H468L360-516v126l240 120v-50h240v240H600ZM480-720h80v-80h-80v80ZM200-400h80v-80h-80v80Zm480 240h80v-80h-80v80ZM520-760ZM240-440Zm480 240Z`})]}),{}),LineIcon:g(Ar,{}),LineBoxIcon:g(kr,{}),ShapesIcon:g(({title:e,titleId:t,...n})=>_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 -960 960 960`,"aria-labelledby":t,...n,children:[e?g(`title`,{id:t,children:e}):null,g(`path`,{fill:`currentColor`,d:`M600-360ZM320-242q10 1 19.5 1.5t20.5.5q11 0 20.5-.5T400-242v82h400v-400h-82q1-10 1.5-19.5t.5-20.5q0-11-.5-20.5T718-640h82q33 0 56.5 23.5T880-560v400q0 33-23.5 56.5T800-80H400q-33 0-56.5-23.5T320-160v-82Zm40-78q-117 0-198.5-81.5T80-600q0-117 81.5-198.5T360-880q117 0 198.5 81.5T640-600q0 117-81.5 198.5T360-320Zm0-80q83 0 141.5-58.5T560-600q0-83-58.5-141.5T360-800q-83 0-141.5 58.5T160-600q0 83 58.5 141.5T360-400Zm0-200Z`})]}),{}),BoxIcon:g(({title:e,titleId:t,...n})=>_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 -960 960 960`,"aria-labelledby":t,...n,children:[e?g(`title`,{id:t,children:e}):null,g(`path`,{fill:`currentColor`,d:`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0 0v-560 560Z`})]}),{}),TriangleIcon:g(({title:e,titleId:t,...n})=>_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 -960 960 960`,"aria-labelledby":t,...n,children:[e?g(`title`,{id:t,children:e}):null,g(`path`,{d:`m80-160 400-640 400 640H80Zm144-80h512L480-650 224-240Zm256-205Z`,fill:`currentColor`})]}),{}),HexagonIcon:g(Or,{}),DeleteForeverIcon:g(Mn,{})};function Mr({helper:e,showShapes:t}){return A(()=>{e.stamps.square()},[]),g(Er,{icons:jr,showShapes:t,classNames:{button:`bg-me-gray-100 border hover:bg-me-gray-300 rounded p-1 text-2xl text-me-primary-500 data-[active="true"]:border-me-primary-600`}})}function Nr({className:t,children:n,...r}){return g(e,{children:g(ue,{className:e=>{let n=typeof t==`function`?t(e):t;return R(``,n)},...r,children:n})})}function Pr({className:e,children:t,...n}){return g(ce,{className:t=>{let n=typeof e==`function`?e(t):e;return R(`flex gap-4`,n)},...n,children:t})}function Fr({className:e,children:t,...n}){return g(se,{className:t=>{let n=typeof e==`function`?e(t):e;return R(`cursor-default outline-none group py-1 font-semibold px-2 border-b-2 text-me-gray-700`,t.isSelected&&`border-b-me-primary-600 text-black`,t.isFocusVisible&&`focus-visible:bg-me-primary-100`,n)},...n,children:t})}function Ir({className:e,children:t,...n}){return g(le,{className:t=>{let n=typeof e==`function`?e(t):e;return R(``,n)},...n,children:t})}function Lr(e){return e.wide?g(`div`,{className:v(`grid`,e.size||`grid-md`,`gap-4 p-4 overflow-y-auto`),children:e.children}):g(`div`,{className:`grid grid-cols-2 gap-4 p-4`,children:e.children})}function Rr(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,fill:`currentColor`,...e,children:g(`path`,{d:`M1 21h22L12 2L1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z`})})}function zr(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,fill:`currentColor`,...e,children:g(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z`})})}const Br={info:{borderClass:`border-l-me-primary-500`,iconClass:`text-me-primary-500`,actionClass:`text-me-primary-600 hover:bg-gray-100`,progressClass:`bg-me-primary-500`,Icon:L},success:{borderClass:`border-l-green-600`,iconClass:`text-green-600`,actionClass:`text-green-700 hover:bg-green-50`,progressClass:`bg-green-600`,Icon:kn},warning:{borderClass:`border-l-orange-500`,iconClass:`text-orange-500`,actionClass:`text-orange-700 hover:bg-orange-50`,progressClass:`bg-orange-500`,Icon:Rr},error:{borderClass:`border-l-red-500`,iconClass:`text-red-500`,actionClass:`text-red-700 hover:bg-red-50`,progressClass:`bg-red-500`,Icon:zr}};function Vr({state:e,className:t,"aria-label":n}){let r=b(`components`),i=N(null),{regionProps:a}=Qe({"aria-label":n??r(`notifications.region`)},e,i),[o,s]=P(!1);return A(()=>s(!0),[]),!o||!e.visibleToasts.length?null:F(g(pe,{children:g(`div`,{className:`manifest-editor`,children:g(`div`,{...a,ref:i,className:v(`fixed bottom-5 right-5 z-[10000000] flex w-[calc(100vw-2.5rem)] max-w-sm flex-col gap-2 pointer-events-none sm:w-96`,t),children:e.visibleToasts.map(t=>g(Hr,{toast:t,state:e},t.key))})})}),document.body)}function Hr({toast:e,state:t}){let n=b(`components`),r=N(null),{toastProps:i,contentProps:o,titleProps:s,descriptionProps:c,closeButtonProps:l}=Ze({toast:e},t,r),u=e.content,d=u.variant??`info`,f=Br[d];return _(`div`,{...i,ref:r,className:v(`pointer-events-auto relative overflow-hidden rounded-lg border border-gray-100 border-l-4 bg-white shadow-xl outline-none`,`data-[animation=entering]:animate-toast-enter`,`data-[animation=exiting]:animate-toast-exit`,`focus-visible:ring-2 focus-visible:ring-me-primary-500 focus-visible:ring-offset-2`,f.borderClass),children:[_(`div`,{className:`flex items-start gap-3 px-4 py-3`,children:[g(f.Icon,{"aria-hidden":!0,className:v(`mt-0.5 h-4 w-4 shrink-0 text-base`,f.iconClass)}),_(`div`,{...o,className:`min-w-0 flex-1`,children:[g(`div`,{...s,className:`text-sm font-semibold leading-5 text-gray-900`,children:u.title}),u.description?g(`div`,{...c,className:`mt-0.5 text-xs leading-relaxed text-gray-500`,children:u.description}):null,u.action?g(`div`,{className:`mt-2`,children:g(a,{className:v(`rounded px-2 py-0.5 text-xs font-medium transition-colors`,f.actionClass),onPress:()=>{u.action?.onPress(),u.action?.closeOnPress!==!1&&t.close(e.key)},children:u.action.label})}):null]}),g(a,{...l,"aria-label":n(`actions.close`),className:`flex h-6 w-6 shrink-0 items-center justify-center rounded text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-700`,children:g(An,{"aria-hidden":`true`,className:`h-3.5 w-3.5`})})]}),e.timeout?g(`div`,{className:v(`absolute bottom-0 left-0 h-[2px] w-full origin-left animate-toast-progress opacity-40`,f.progressClass),style:{animationDuration:`${e.timeout}ms`}}):null]})}function Ur(t){return g(e,{children:g(Vr,{...t})})}function Wr({className:e,item:t}){let n=T((e,n)=>n.get(t,{skipSelfReturn:!1}),[t]);return g(`div`,{className:v(`h-16 my-5 w-full`,e),children:g(`img`,{src:n.id,alt:``,className:v(`h-full w-full object-contain`)})})}function Gr({className:e,item:t}){let n=b(`components`),r=T((e,n)=>n.get(t),[t]);return t.id.startsWith(`http://example.org/`)||!r?null:g(`a`,{href:r.id,target:`_blank`,className:v(`flex justify-between items-center group pe-2 focus:ring focus:outline-none ring-me-500 cursor-default underline-offset-4 underline focus:no-underline focus:bg-gray-50 rounded py-1 px-2`,e),rel:`noreferrer`,children:g(S,{enableDangerouslySetInnerHTML:!0,separator:`<br>`,className:`whitespace-nowrap overflow-hidden text-ellipsis min-w-0`,defaultText:n(`actions.followLink`),children:r.label})})}function Kr({resource:e,onPress:t}){let n=b(`components`),r=T((t,n)=>n.get(e));if(!r)return null;let i=x(r.label),o=i===`Unknown`;return _(`div`,{className:`rounded p-2 border border-gray-200 text-center hover:border-me-500 shadow-sm`,children:[_(a,{"aria-label":i?n(`provider.editNamed`,{name:i}):n(`provider.edit`),className:`w-full rounded border-0 bg-transparent p-0 text-inherit`,onPress:t,children:[r.logo?.length>0?g(`div`,{children:r.logo.map((e,t)=>g(Wr,{item:e},t))}):null,!o&&g(`div`,{className:`px-2 font-semibold mb-5`,children:g(S,{enableDangerouslySetInnerHTML:!0,separator:`<br>`,children:r?.label})})]}),r.homepage?.length>0?g(`div`,{children:r.homepage.map((e,t)=>g(Gr,{className:`justify-center`,item:e},t))}):null,r.seeAlso?.length>0?g(`div`,{children:r.seeAlso?.map((e,t)=>g(Gr,{className:`justify-center`,item:e},t))}):null]},r.id)}function qr({children:e,small:t=!1,className:n}){return g(`div`,{className:v(`bg-orange-500 text-white`,`border-1 drop-shadow border-orange-700 w-full rounded-md py-2 px-4 leading-[1.9em] flex items-center`,`has-[a]:text-white`,t&&`text-xs whitespace-nowrap py-1 px-2 leading-[1.6em] w-fit`,n),children:e})}function Jr(){let e=b(`components`),{locale:t}=y();return M(()=>{let n=new Intl.NumberFormat(t,{maximumFractionDigits:0}),r=r=>{let i=Number.isFinite(r)?Math.max(0,Math.floor(r)):0,a=Math.floor(i/3600),o=Math.floor(i%3600/60),s=i%60,c=[];return a&&c.push(e(`media.time.hours`,{count:a,value:n.format(a)})),o&&c.push(e(`media.time.minutes`,{count:o,value:n.format(o)})),(s||!c.length)&&c.push(e(`media.time.seconds`,{count:s,value:n.format(s)})),new Intl.ListFormat(t,{style:`long`,type:`unit`}).format(c)};return{formatSpokenTime:r,formatTimeRange:(t,n)=>Number.isFinite(t)?e(`media.time.range`,{current:r(t),duration:r(n)}):e(`media.time.live`),formatSeek:(t,n)=>e(`media.time.seek${n===`forward`?`Forward`:`Backward`}`,{time:r(t)})}},[e,t])}export{$e as AccessibilityButton,I as ActionButton,Sn as AddIcon,Cn as AddImageIcon,wn as AnnotationPopInIcon,Tn as AnnotationPopOutIcon,En as ArrowRightIcon,et as AtlasBanner,Dn as AudioIcon,On as BackIcon,mt as BackgroundActionMenuActionButton,nt as BackgroundActionMenuButton,gt as BackgroundActionMenuCogIcon,at as BackgroundActionMenuDivider,ft as BackgroundActionMenuInfoButton,dt as BackgroundActionMenuInlineAction,ot as BackgroundActionMenuItem,lt as BackgroundActionMenuLabel,ut as BackgroundActionMenuMeta,rt as BackgroundActionMenuPanel,pt as BackgroundActionMenuProgressBar,tt as BackgroundActionMenuRoot,it as BackgroundActionMenuSection,ht as BackgroundActionMenuStatusDot,ct as BackgroundActionMenuText,st as BackgroundActionMenuTrigger,Nt as CanvasThumbnailGridItem,z as Card3D,kn as CheckIcon,An as CloseIcon,Pt as CollectionIcon,Ft as CollectionListItem,It as ConfirmSelectionButton,Lt as ControlButton,jn as CreateCanvasIcon,Ut as CreatorGrid,Z as DefaultTooltipContent,Mn as DeleteForeverIcon,Nn as DeleteIcon,Gt as DownloadButton,Wt as DownloadIcon,Pn as EditTextIcon,Rt as EmptyCanvasIcon,qt as EmptyState,Jt as ErrorMessage,nn as Form,Fn as GridIcon,an as HTMLAnnotationBodyRender,dn as HTMLEditor,In as HTMLIcon,rn as HandleContainer,i as IIIFBrowserI18nProvider,Ln as IIIFBrowserIcon,Rn as IIIFLogo,yn as IIIFMediaPlayer,gn as IconButton,_n as IconHandle,zn as ImageListIcon,L as InfoIcon,bn as InfoMessage,xn as ItemWithHandle,bt as LazyThumbnail,Bn as ListEditIcon,$n as ListResizeDragHandle,Vn as ListingIcon,n as LocalizedIIIFBrowser,ir as MDXEditor,er as ManifestEditorLogo,Hn as ManifestIcon,tr as ManifestListItem,nr as ManifestOverviewEmptyState,ar as MetadataContainer,cr as Modal,or as ModalBackSlot,Un as MoreMenu,lr as MoreMenuButton,Wn as MoreMenuIcon,ur as OnboardingTour,dr as OpaqueControls,fr as PaddedSidebarContainer,mr as PanelSideMenu,Gn as PreviewIcon,Kn as RangesIcon,hr as RenderTextualContent,qn as ResetIcon,gr as ResizeHandle,Jn as ResizeHandleIcon,Yn as ScaledImageIcon,_r as SelectionCheckbox,vr as Sidebar,yr as SidebarContent,xr as SidebarHeader,Tr as SidebarTabs,t as Spinner,Mr as SvgControlBar,Er as SvgEditorControls,Fr as Tab,Pr as TabList,Ir as TabPanel,Nr as Tabs,Xn as TargetIcon,B as TextIcon,Lr as ThumbnailGridContainer,Ur as ToastRegion,J as Tooltip,X as TooltipContent,Y as TooltipTrigger,Zn as VideoIcon,Kr as ViewProvider,qr as WarningMessage,Qn as YouTubeIcon,Kt as createDownload,U as getImageApiRegion,W as getImageApiRotation,Ot as getRegionIntersection,wt as imageUrlWithRegion,K as imageUrlWithTransform,St as paintingAnnotationTargetsCanvas,G as shouldUseComplexCanvasThumbnail,H as useCanvasRenderingStrategy,fn as useFastList,mn as useGridOptions,r as useIIIFBrowserI18n,hn as useLoadMoreItems,$ as useLocalStorage,Jr as useMediaTimeTranslations,pn as useOptionalLocalStorage,q as useTooltip};
|
|
19
19
|
//# sourceMappingURL=index.js.map
|