@plumix/admin 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/{-errors-B7tAsyM0.js → -errors-DymGkXzf.js} +1 -1
  3. package/dist/assets/{-locale-param-XM9QLmJ5.js → -locale-param-BBOzOc5c.js} +1 -1
  4. package/dist/assets/{_-o9O44bb8.js → _-DbGPlcLC.js} +1 -1
  5. package/dist/assets/{_authenticated-X8_ZzeVN.js → _authenticated-CxUnTydB.js} +1 -1
  6. package/dist/assets/{_authenticated-BZbICTCy.js → _authenticated-DbZWnirz.js} +1 -1
  7. package/dist/assets/{_name-CsTxHact.js → _name-BWrqcSjK.js} +1 -1
  8. package/dist/assets/{_page-CAfqCxMM.js → _page-BMWM_crl.js} +1 -1
  9. package/dist/assets/{_page-Jgddg0I9.js → _page-ClAHWpJA.js} +1 -1
  10. package/dist/assets/{_slug-CrB5RfaF.js → _slug-BGJ2I-cS.js} +1 -1
  11. package/dist/assets/{_token-9qw8O07B.js → _token-BDyoqyFe.js} +1 -1
  12. package/dist/assets/{allowed-domains-BD1FIWo8.js → allowed-domains-DIQ_LoVq.js} +1 -1
  13. package/dist/assets/{bootstrap-BjA3jejx.js → bootstrap-D1ITzrPN.js} +1 -1
  14. package/dist/assets/{breadcrumb-kPG_yvD8.js → breadcrumb-B-sB8a4_.js} +1 -1
  15. package/dist/assets/{create-CbIyckzX.js → create-BFQqxGF6.js} +1 -1
  16. package/dist/assets/{create-XNWvL9l5.js → create-BrPyaUMW.js} +1 -1
  17. package/dist/assets/{create-c0dH9rwJ.js → create-DwlFRgkL.js} +1 -1
  18. package/dist/assets/{device-CDHXIM5L.js → device-DedwLhBj.js} +1 -1
  19. package/dist/assets/{edit-Q_Ag31Id.js → edit-Ba0VjKvg.js} +1 -1
  20. package/dist/assets/{edit-Cs_d9ypU.js → edit-BdagVECm.js} +1 -1
  21. package/dist/assets/{edit-tkHAT4Yi.js → edit-BgcIFZzf.js} +1 -1
  22. package/dist/assets/{edit-BDJmvbS1.js → edit-CLa1IU8I.js} +1 -1
  23. package/dist/assets/{edit-okoLRzq-.js → edit-CteELL-K.js} +2 -2
  24. package/dist/assets/{edit-D16wc7LS.js → edit-DiaJf7-W.js} +1 -1
  25. package/dist/assets/{index-kTp--tHG.js → index-Ctqj4aiM.js} +2 -2
  26. package/dist/assets/{login-DZOKYIF-.js → login-epTUDW_0.js} +1 -1
  27. package/dist/assets/{mailer-Dyww1jwK.js → mailer-HpDxW8FX.js} +1 -1
  28. package/dist/assets/{meta-box-D-8lfuwU.js → meta-box-Dd1vNvwM.js} +1 -1
  29. package/dist/assets/{meta-box-field-r9w3rM8k.js → meta-box-field-C4Orbu3m.js} +1 -1
  30. package/dist/assets/{meta-box-grid-Dr2ygaxj.js → meta-box-grid-BfWeRDWA.js} +1 -1
  31. package/dist/assets/{plugin-error-boundary-cYpGGruP.js → plugin-error-boundary-DSHOAgQB.js} +1 -1
  32. package/dist/assets/{rich-text-field-B4Til-yn.js → rich-text-field-KC3ZBBIm.js} +1 -1
  33. package/dist/assets/{search-input-BDIFOLpj.js → search-input-J0-6kfsf.js} +1 -1
  34. package/dist/assets/{settings-Bi5BNc6-.js → settings-CkVoTIwd.js} +1 -1
  35. package/dist/assets/{toast-COG8MRHM.js → toast-p1K24g-U.js} +1 -1
  36. package/dist/assets/{use-formatters-ww2p-9js.js → use-formatters-Bq4u-MkS.js} +1 -1
  37. package/dist/assets/{users-CICoUBVu.js → users-S1uN00sD.js} +1 -1
  38. package/dist/assets/{utils-DkCVtsc2.js → utils-ByiwTMhM.js} +1 -1
  39. package/dist/index.html +1 -1
  40. package/package.json +6 -6
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./_editor-DTQYo5H1.js","./jsx-runtime-DUAcabCT.js","./esm-DfD3iRfG.js","./react-DbyrFoBd.js","./react-dom-i-Mcm3wj.js","./with-selector-Bf4HMdmS.js","./tooltip-Dm_CbtVl.js","./dist-9yav4OBD.js","./utils-DKOQrNEG.js","./_authenticated-BZbICTCy.js","./dist-BL2bKHuR.js","./orpc-DURDArDu.js","./createLucideIcon-C0O-yxZG.js","./breadcrumb-kPG_yvD8.js","./dist-B66OmIyr.js","./skeleton-BnBM1862.js","./input-xYuLUQID.js","./separator-u9O31sRo.js","./chevrons-up-down-DmmG8bmI.js","./puzzle-CkL6fcG1.js","./settings-K6TF73jB.js","./use-label-CykSHq9A.js","./passkey-C_CqNV1S.js","./_auth-DwSMg4I8.js","./_authenticated-X8_ZzeVN.js","./use-formatters-ww2p-9js.js","./card-L2-kK5VK.js","./dates-CSmOj6E-.js","./entries-MizUUcD8.js","./plugin-error-boundary-cYpGGruP.js","./alert-cwX3fWUu.js","./login-DZOKYIF-.js","./-locale-param-XM9QLmJ5.js","./form-C94uy6_t.js","./valibot-DKJGiWCI.js","./dist-ClOzYsk5.js","./bootstrap-BjA3jejx.js","./users-CICoUBVu.js","./search-input-BDIFOLpj.js","./utils-DkCVtsc2.js","./textarea-BsZaGkV-.js","./toggle-BfrQLxbv.js","./settings-Bi5BNc6-.js","./mailer-Dyww1jwK.js","./validation-CwFumc7a.js","./orpc-errors-DWk96ZMY.js","./allowed-domains-BD1FIWo8.js","./trash-2-Bn-rv3EX.js","./create-CbIyckzX.js","./arrow-left-CWzmtp8T.js","./clipboard-D6ZMYUE8.js","./_page-Jgddg0I9.js","./_page-CAfqCxMM.js","./meta-box-field-r9w3rM8k.js","./type-labels-DEpt0nSb.js","./meta-box-grid-Dr2ygaxj.js","./_-o9O44bb8.js","./device-CDHXIM5L.js","./scopes-C_7AiPdH.js","./_token-9qw8O07B.js","./_name-CsTxHact.js","./tree-BUpunTXw.js","./_slug-CrB5RfaF.js","./toast-COG8MRHM.js","./create-XNWvL9l5.js","./slugify-DglnCNxs.js","./edit-BDJmvbS1.js","./edit-D16wc7LS.js","./tablet-BnclzXSX.js","./meta-box-D-8lfuwU.js","./create-c0dH9rwJ.js","./-errors-B7tAsyM0.js","./edit-okoLRzq-.js","./underline-CoVrqZEk.js","./style-emitter-CDGtTiRG.js","./edit-Q_Ag31Id.js","./edit-tkHAT4Yi.js","./edit-Cs_d9ypU.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./_editor-DTQYo5H1.js","./jsx-runtime-DUAcabCT.js","./esm-DfD3iRfG.js","./react-DbyrFoBd.js","./react-dom-i-Mcm3wj.js","./with-selector-Bf4HMdmS.js","./tooltip-Dm_CbtVl.js","./dist-9yav4OBD.js","./utils-DKOQrNEG.js","./_authenticated-DbZWnirz.js","./dist-BL2bKHuR.js","./orpc-DURDArDu.js","./createLucideIcon-C0O-yxZG.js","./breadcrumb-B-sB8a4_.js","./dist-B66OmIyr.js","./skeleton-BnBM1862.js","./input-xYuLUQID.js","./separator-u9O31sRo.js","./chevrons-up-down-DmmG8bmI.js","./puzzle-CkL6fcG1.js","./settings-K6TF73jB.js","./use-label-CykSHq9A.js","./passkey-C_CqNV1S.js","./_auth-DwSMg4I8.js","./_authenticated-CxUnTydB.js","./use-formatters-Bq4u-MkS.js","./card-L2-kK5VK.js","./dates-CSmOj6E-.js","./entries-MizUUcD8.js","./plugin-error-boundary-DSHOAgQB.js","./alert-cwX3fWUu.js","./login-epTUDW_0.js","./-locale-param-BBOzOc5c.js","./form-C94uy6_t.js","./valibot-DKJGiWCI.js","./dist-ClOzYsk5.js","./bootstrap-D1ITzrPN.js","./users-S1uN00sD.js","./search-input-J0-6kfsf.js","./utils-ByiwTMhM.js","./textarea-BsZaGkV-.js","./toggle-BfrQLxbv.js","./settings-CkVoTIwd.js","./mailer-HpDxW8FX.js","./validation-CwFumc7a.js","./orpc-errors-DWk96ZMY.js","./allowed-domains-DIQ_LoVq.js","./trash-2-Bn-rv3EX.js","./create-BFQqxGF6.js","./arrow-left-CWzmtp8T.js","./clipboard-D6ZMYUE8.js","./_page-ClAHWpJA.js","./_page-BMWM_crl.js","./meta-box-field-C4Orbu3m.js","./type-labels-DEpt0nSb.js","./meta-box-grid-BfWeRDWA.js","./_-DbGPlcLC.js","./device-DedwLhBj.js","./scopes-C_7AiPdH.js","./_token-BDyoqyFe.js","./_name-BWrqcSjK.js","./tree-BUpunTXw.js","./_slug-BGJ2I-cS.js","./toast-p1K24g-U.js","./create-BrPyaUMW.js","./slugify-DglnCNxs.js","./edit-CLa1IU8I.js","./edit-DiaJf7-W.js","./tablet-BnclzXSX.js","./meta-box-Dd1vNvwM.js","./create-DwlFRgkL.js","./-errors-DymGkXzf.js","./edit-CteELL-K.js","./underline-CoVrqZEk.js","./style-emitter-CDGtTiRG.js","./edit-Ba0VjKvg.js","./edit-BgcIFZzf.js","./edit-BdagVECm.js"])))=>i.map(i=>d[i]);
2
2
  import{i as e,n as t,r as n,t as r}from"./jsx-runtime-DUAcabCT.js";import{t as i}from"./react-DbyrFoBd.js";import{t as a}from"./react-dom-i-Mcm3wj.js";import{i as o,n as s,r as c,t as l}from"./dist-BL2bKHuR.js";import{c as u,g as d,i as f,m as p,n as m,o as h,r as g,s as _,t as v}from"./orpc-DURDArDu.js";import{a as y,c as b,f as x,i as S,n as C,o as w,p as T,r as ee,s as E,t as D}from"./esm-DfD3iRfG.js";import{A as te,At as O,C as ne,D as k,E as re,M as A,N as j,O as M,Pt as ie,S as ae,T as oe,j as se,k as ce,t as N,w as le}from"./dist-9yav4OBD.js";import{n as ue,t as de}from"./utils-DKOQrNEG.js";import{t as P}from"./dist-B66OmIyr.js";import{t as F}from"./createLucideIcon-C0O-yxZG.js";import{t as I}from"./style-emitter-CDGtTiRG.js";import{t as fe}from"./use-label-CykSHq9A.js";import{D as L,E as pe,O as me,S as he,_ as ge,c as _e,f as ve,g as R,h as ye,i as be,l as xe,m as Se,o as Ce,s as we,v as Te,w as Ee,y as De}from"./dist-ClOzYsk5.js";import{a as Oe,i as ke,o as Ae,r as je,t as Me}from"./validation-CwFumc7a.js";import{i as Ne,n as Pe,t as Fe}from"./card-L2-kK5VK.js";import{t as Ie}from"./skeleton-BnBM1862.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Le=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,D());else{var t=n(l);t!==null&&ne(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function ee(){return g?!0:!(e.unstable_now()-T<w)}function E(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ee());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ne(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(E)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,O=te.port2;te.port1.onmessage=E,D=function(){O.postMessage(null)}}else D=function(){_(E,0)};function ne(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ne(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Re=t(((e,t)=>{t.exports=Le()})),ze=t((e=>{var t=Re(),n=i(),r=a();function o(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function l(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(o(188))}function f(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(o(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return d(i),e;if(a===r)return d(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,h=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),T=Symbol.for(`react.suspense_list`),ee=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),te=Symbol.for(`react.memo_cache_sentinel`),O=Symbol.iterator;function ne(e){return typeof e!=`object`||!e?null:(e=O&&e[O]||e[`@@iterator`],typeof e==`function`?e:null)}var k=Symbol.for(`react.client.reference`);function re(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===k?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ee:return t=e.displayName||null,t===null?re(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var A=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},ae=[],oe=-1;function se(e){return{current:e}}function ce(e){0>oe||(e.current=ae[oe],ae[oe]=null,oe--)}function N(e,t){oe++,ae[oe]=e.current,e.current=t}var le=se(null),ue=se(null),de=se(null),P=se(null);function F(e,t){switch(N(de,t),N(ue,e),N(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ce(le),N(le,e)}function I(){ce(le),ce(ue),ce(de)}function fe(e){e.memoizedState!==null&&N(P,e);var t=le.current,n=Hd(t,e.type);t!==n&&(N(ue,e),N(le,n))}function L(e){ue.current===e&&(ce(le),ce(ue)),P.current===e&&(ce(P),Qf._currentValue=ie)}var pe,me;function he(e){if(pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||``,me=-1<e.stack.indexOf(`
3
3
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
4
  `+pe+e+me}var ge=!1;function _e(e,t){if(!e||ge)return``;ge=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
@@ -23,4 +23,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),i=e,r=t),n===void 0&&(
23
23
  `},l]}}function qn(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:`>`,subLanguage:`xml`,relevance:0},r={begin:`^[-\\*]{3,}`,end:`$`},i={className:`code`,variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:`(~{3,})[^~](.|\\n)*?\\1~*[ ]*`},{begin:"```",end:"```+[ ]*$"},{begin:`~~~`,end:`~~~+[ ]*$`},{begin:"`.+?`"},{begin:`(?=^( {4}|\\t))`,contains:[{begin:`^( {4}|\\t)`,end:`(\\n)$`}],relevance:0}]},a={className:`bullet`,begin:`^[ ]*([*+-]|(\\d+\\.))(?=\\s+)`,end:`\\s+`,excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:`symbol`,begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:`link`,begin:/:\s*/,end:/$/,excludeBegin:!0}]},s={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:`string`,relevance:0,begin:`\\[`,end:`\\]`,excludeBegin:!0,returnEnd:!0},{className:`link`,relevance:0,begin:`\\]\\(`,end:`\\)`,excludeBegin:!0,excludeEnd:!0},{className:`symbol`,relevance:0,begin:`\\]\\[`,end:`\\]`,excludeBegin:!0,excludeEnd:!0}]},c={className:`strong`,contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},l={className:`emphasis`,contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},u=e.inherit(c,{contains:[]}),d=e.inherit(l,{contains:[]});c.contains.push(d),l.contains.push(u);let f=[n,s];return[c,l,u,d].forEach(e=>{e.contains=e.contains.concat(f)}),f=f.concat(c,l),{name:`Markdown`,aliases:[`md`,`mkdown`,`mkd`],contains:[{className:`section`,variants:[{begin:`^#{1,6}`,end:`$`,contains:f},{begin:`(?=^.+?\\n[=-]{2,}$)`,contains:[{begin:`^[=-]*$`},{begin:`^`,end:`\\n`,contains:f}]}]},n,a,c,l,{className:`quote`,begin:`^>\\s+`,contains:f,end:`$`},i,r,s,o,{scope:`literal`,match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function Jn(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=t.concat(/[A-Z]+/,n),o={scope:`variable`,match:`\\$+`+r},s={scope:`meta`,variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:`subst`,variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(e,t)=>{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[
24
24
  ]`,m={scope:`string`,variants:[u,l,d,f]},h={scope:`number`,variants:[{begin:`\\b0[bB][01]+(?:_[01]+)*\\b`},{begin:`\\b0[oO][0-7]+(?:_[0-7]+)*\\b`},{begin:`\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b`},{begin:`(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?`}],relevance:0},g=[`false`,`null`,`true`],_=`__CLASS__.__DIR__.__FILE__.__FUNCTION__.__COMPILER_HALT_OFFSET__.__LINE__.__METHOD__.__NAMESPACE__.__TRAIT__.die.echo.exit.include.include_once.print.require.require_once.array.abstract.and.as.binary.bool.boolean.break.callable.case.catch.class.clone.const.continue.declare.default.do.double.else.elseif.empty.enddeclare.endfor.endforeach.endif.endswitch.endwhile.enum.eval.extends.final.finally.float.for.foreach.from.global.goto.if.implements.instanceof.insteadof.int.integer.interface.isset.iterable.list.match|0.mixed.new.never.object.or.private.protected.public.readonly.real.return.string.switch.throw.trait.try.unset.use.var.void.while.xor.yield`.split(`.`),v=`Error|0.AppendIterator.ArgumentCountError.ArithmeticError.ArrayIterator.ArrayObject.AssertionError.BadFunctionCallException.BadMethodCallException.CachingIterator.CallbackFilterIterator.CompileError.Countable.DirectoryIterator.DivisionByZeroError.DomainException.EmptyIterator.ErrorException.Exception.FilesystemIterator.FilterIterator.GlobIterator.InfiniteIterator.InvalidArgumentException.IteratorIterator.LengthException.LimitIterator.LogicException.MultipleIterator.NoRewindIterator.OutOfBoundsException.OutOfRangeException.OuterIterator.OverflowException.ParentIterator.ParseError.RangeException.RecursiveArrayIterator.RecursiveCachingIterator.RecursiveCallbackFilterIterator.RecursiveDirectoryIterator.RecursiveFilterIterator.RecursiveIterator.RecursiveIteratorIterator.RecursiveRegexIterator.RecursiveTreeIterator.RegexIterator.RuntimeException.SeekableIterator.SplDoublyLinkedList.SplFileInfo.SplFileObject.SplFixedArray.SplHeap.SplMaxHeap.SplMinHeap.SplObjectStorage.SplObserver.SplPriorityQueue.SplQueue.SplStack.SplSubject.SplTempFileObject.TypeError.UnderflowException.UnexpectedValueException.UnhandledMatchError.ArrayAccess.BackedEnum.Closure.Fiber.Generator.Iterator.IteratorAggregate.Serializable.Stringable.Throwable.Traversable.UnitEnum.WeakReference.WeakMap.Directory.__PHP_Incomplete_Class.parent.php_user_filter.self.static.stdClass`.split(`.`),y={keyword:_,literal:(e=>{let t=[];return e.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t})(g),built_in:v},b=e=>e.map(e=>e.replace(/\|\d+$/,``)),x={variants:[{match:[/new/,t.concat(p,`+`),t.concat(`(?!`,b(v).join(`\\b|`),`\\b)`),i],scope:{1:`keyword`,4:`title.class`}}]},S=t.concat(r,`\\b(?!\\()`),C={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),S],scope:{2:`variable.constant`}},{match:[/::/,/class/],scope:{2:`variable.language`}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),S],scope:{1:`title.class`,3:`variable.constant`}},{match:[i,t.concat(`::`,t.lookahead(/(?!class\b)/))],scope:{1:`title.class`}},{match:[i,/::/,/class/],scope:{1:`title.class`,3:`variable.language`}}]},w={scope:`attr`,match:t.concat(r,t.lookahead(`:`),t.lookahead(/(?!::)/))},T={relevance:0,begin:/\(/,end:/\)/,keywords:y,contains:[w,o,C,e.C_BLOCK_COMMENT_MODE,m,h,x]},ee={relevance:0,match:[/\b/,t.concat(`(?!fn\\b|function\\b|`,b(_).join(`\\b|`),`|`,b(v).join(`\\b|`),`\\b)`),r,t.concat(p,`*`),t.lookahead(/(?=\()/)],scope:{3:`title.function.invoke`},contains:[T]};T.contains.push(ee);let E=[w,C,e.C_BLOCK_COMMENT_MODE,m,h,x],D={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:`meta`,end:/]/,endScope:`meta`,keywords:{literal:g,keyword:[`new`,`array`]},contains:[{begin:/\[/,end:/]/,keywords:{literal:g,keyword:[`new`,`array`]},contains:[`self`,...E]},...E,{scope:`meta`,variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:y,contains:[D,e.HASH_COMMENT_MODE,e.COMMENT(`//`,`$`),e.COMMENT(`/\\*`,`\\*/`,{contains:[{scope:`doctag`,match:`@[A-Za-z]+`}]}),{match:/__halt_compiler\(\);/,keywords:`__halt_compiler`,starts:{scope:`comment`,end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:`meta`,endsParent:!0}]}},s,{scope:`variable.language`,match:/\$this\b/},o,ee,C,{match:[/const/,/\s/,r],scope:{1:`keyword`,3:`variable.constant`}},x,{scope:`function`,relevance:0,beginKeywords:`fn function`,end:/[;{]/,excludeEnd:!0,illegal:`[$%\\[]`,contains:[{beginKeywords:`use`},e.UNDERSCORE_TITLE_MODE,{begin:`=>`,endsParent:!0},{scope:`params`,begin:`\\(`,end:`\\)`,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:[`self`,D,o,C,e.C_BLOCK_COMMENT_MODE,m,h]}]},{scope:`class`,variants:[{beginKeywords:`enum`,illegal:/[($"]/},{beginKeywords:`class interface trait`,illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:`extends implements`},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:`namespace`,relevance:0,end:`;`,illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:`title.class`})]},{beginKeywords:`use`,relevance:0,end:`;`,contains:[{match:/\b(as|const|function)\b/,scope:`keyword`},e.UNDERSCORE_TITLE_MODE]},m,h]}}function Yn(e){let t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=`and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield`.split(`.`),i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:`__import__.abs.all.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip`.split(`.`),literal:[`__debug__`,`Ellipsis`,`False`,`None`,`NotImplemented`,`True`],type:[`Any`,`Callable`,`Coroutine`,`Dict`,`List`,`Literal`,`Generic`,`Optional`,`Sequence`,`Set`,`Tuple`,`Type`,`Union`]},a={className:`meta`,begin:/^(>>>|\.\.\.) /},o={className:`subst`,begin:/\{/,end:/\}/,keywords:i,illegal:/#/},s={begin:/\{\{/,relevance:0},c={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,s,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,o]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},l=`[0-9](_?[0-9])*`,u=`(\\b(${l}))?\\.(${l})|\\b(${l})\\.`,d=`\\b|${r.join(`|`)}`,f={className:`number`,relevance:0,variants:[{begin:`(\\b(${l})|(${u}))[eE][+-]?(${l})[jJ]?(?=${d})`},{begin:`(${u})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${d})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${d})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`},{begin:`\\b(${l})[jJ](?=${d})`}]},p={className:`comment`,begin:t.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},m={className:`params`,variants:[{className:``,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:[`self`,a,f,c,e.HASH_COMMENT_MODE]}]};return o.contains=[c,f,a],{name:`Python`,aliases:[`py`,`gyp`,`ipython`],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[a,f,{scope:`variable.language`,match:/\bself\b/},{beginKeywords:`if`,relevance:0},{match:/\bor\b/,scope:`keyword`},c,p,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[m]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:`keyword`,3:`title.class`,6:`title.class.inherited`}},{className:`meta`,begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[f,m,c]}]}}function Xn(e){let t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":[`__FILE__`,`__LINE__`,`__ENCODING__`],"variable.language":[`self`,`super`],keyword:`alias.and.begin.BEGIN.break.case.class.defined.do.else.elsif.end.END.ensure.for.if.in.module.next.not.or.redo.require.rescue.retry.return.then.undef.unless.until.when.while.yield.include.extend.prepend.public.private.protected.raise.throw`.split(`.`),built_in:[`proc`,`lambda`,`attr_accessor`,`attr_reader`,`attr_writer`,`define_method`,`private_constant`,`module_function`],literal:[`true`,`false`,`nil`]},o={className:`doctag`,begin:`@[A-Za-z]+`},s={begin:`#<`,end:`>`},c=[e.COMMENT(`#`,`$`,{contains:[o]}),e.COMMENT(`^=begin`,`^=end`,{contains:[o],relevance:10}),e.COMMENT(`^__END__`,e.MATCH_NOTHING_RE)],l={className:`subst`,begin:/#\{/,end:/\}/,keywords:a},u={className:`string`,contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,l]})]}]},d=`[0-9](_?[0-9])*`,f={className:`number`,relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${d}))?([eE][+-]?(${d})|r)?i?\\b`},{begin:`\\b0[dD][0-9](_?[0-9])*r?i?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*r?i?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*r?i?\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b`},{begin:`\\b0(_?[0-7])+r?i?\\b`}]},p={variants:[{match:/\(\)/},{className:`params`,begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},m=[u,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:`title.class`},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:`title.class`}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`},{relevance:0,match:r,scope:`title.class`},{match:[/def/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[p]},{begin:e.IDENT_RE+`::`},{className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`(!|\\?)?:`,relevance:0},{className:`symbol`,begin:`:(?!\\s)`,contains:[u,{begin:n}],relevance:0},f,{className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])`},{className:`params`,begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:`(`+e.RE_STARTERS_RE+`|unless)\\s*`,keywords:`unless`,contains:[{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,l],illegal:/\n/,variants:[{begin:`/`,end:`/[a-z]*`},{begin:/%r\{/,end:/\}[a-z]*/},{begin:`%r\\(`,end:`\\)[a-z]*`},{begin:`%r!`,end:`![a-z]*`},{begin:`%r\\[`,end:`\\][a-z]*`}]}].concat(s,c),relevance:0}].concat(s,c);l.contains=m,p.contains=m;let h=[{begin:/^\s*=>/,starts:{end:`$`,contains:m}},{className:`meta.prompt`,begin:`^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])`,starts:{end:`$`,keywords:a,contains:m}}];return c.unshift(s),{name:`Ruby`,aliases:[`rb`,`gemspec`,`podspec`,`thor`,`irb`],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:`ruby`})].concat(h,c,m)}}function Zn(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),a={className:`title.function.invoke`,relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},o=`abstract.as.async.await.become.box.break.const.continue.crate.do.dyn.else.enum.extern.false.final.fn.for.if.impl.in.let.loop.macro.match.mod.move.mut.override.priv.pub.ref.return.self.Self.static.struct.super.trait.true.try.type.typeof.union.unsafe.unsized.use.virtual.where.while.yield`.split(`.`),s=[`true`,`false`,`Some`,`None`,`Ok`,`Err`],c=`drop .Copy.Send.Sized.Sync.Drop.Fn.FnMut.FnOnce.ToOwned.Clone.Debug.PartialEq.PartialOrd.Eq.Ord.AsRef.AsMut.Into.From.Default.Iterator.Extend.IntoIterator.DoubleEndedIterator.ExactSizeIterator.SliceConcatExt.ToString.assert!.assert_eq!.bitflags!.bytes!.cfg!.col!.concat!.concat_idents!.debug_assert!.debug_assert_eq!.env!.eprintln!.panic!.file!.format!.format_args!.include_bytes!.include_str!.line!.local_data_key!.module_path!.option_env!.print!.println!.select!.stringify!.try!.unimplemented!.unreachable!.vec!.write!.writeln!.macro_rules!.assert_ne!.debug_assert_ne!`.split(`.`),l=[`i8`,`i16`,`i32`,`i64`,`i128`,`isize`,`u8`,`u16`,`u32`,`u64`,`u128`,`usize`,`f32`,`f64`,`str`,`char`,`bool`,`Box`,`Option`,`Result`,`String`,`Vec`];return{name:`Rust`,aliases:[`rs`],keywords:{$pattern:e.IDENT_RE+`!?`,type:l,keyword:o,literal:s,built_in:c},illegal:`</`,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:`symbol`,begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:`string`,variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:`char.escape`,match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:`number`,variants:[{begin:`\\b0b([01_]+)([ui](8|16|32|64|128|size)|f(32|64))?`},{begin:`\\b0o([0-7_]+)([ui](8|16|32|64|128|size)|f(32|64))?`},{begin:`\\b0x([A-Fa-f0-9_]+)([ui](8|16|32|64|128|size)|f(32|64))?`},{begin:`\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)([ui](8|16|32|64|128|size)|f(32|64))?`}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:`keyword`,3:`title.function`}},{className:`meta`,begin:`#!?\\[`,end:`\\]`,contains:[{className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:`keyword`,3:`keyword`,4:`variable`}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:`keyword`,3:`variable`,5:`keyword`}},{begin:[/type/,/\s+/,r],className:{1:`keyword`,3:`title.class`}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:`keyword`,3:`title.class`}},{begin:e.IDENT_RE+`::`,keywords:{keyword:`Self`,built_in:c,type:l}},{className:`punctuation`,begin:`->`},a]}}function Qn(e){return{name:`Shell Session`,aliases:[`console`,`shellsession`],contains:[{className:`meta.prompt`,begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:`bash`}}]}}function $n(e){let t=e.regex,n=e.COMMENT(`--`,`$`),r={scope:`string`,variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=[`true`,`false`,`unknown`],o=[`double precision`,`large object`,`with timezone`,`without timezone`],s=`bigint.binary.blob.boolean.char.character.clob.date.dec.decfloat.decimal.float.int.integer.interval.nchar.nclob.national.numeric.real.row.smallint.time.timestamp.varchar.varying.varbinary`.split(`.`),c=[`add`,`asc`,`collation`,`desc`,`final`,`first`,`last`,`view`],l=`abs.acos.all.allocate.alter.and.any.are.array.array_agg.array_max_cardinality.as.asensitive.asin.asymmetric.at.atan.atomic.authorization.avg.begin.begin_frame.begin_partition.between.bigint.binary.blob.boolean.both.by.call.called.cardinality.cascaded.case.cast.ceil.ceiling.char.char_length.character.character_length.check.classifier.clob.close.coalesce.collate.collect.column.commit.condition.connect.constraint.contains.convert.copy.corr.corresponding.cos.cosh.count.covar_pop.covar_samp.create.cross.cube.cume_dist.current.current_catalog.current_date.current_default_transform_group.current_path.current_role.current_row.current_schema.current_time.current_timestamp.current_path.current_role.current_transform_group_for_type.current_user.cursor.cycle.date.day.deallocate.dec.decimal.decfloat.declare.default.define.delete.dense_rank.deref.describe.deterministic.disconnect.distinct.double.drop.dynamic.each.element.else.empty.end.end_frame.end_partition.end-exec.equals.escape.every.except.exec.execute.exists.exp.external.extract.false.fetch.filter.first_value.float.floor.for.foreign.frame_row.free.from.full.function.fusion.get.global.grant.group.grouping.groups.having.hold.hour.identity.in.indicator.initial.inner.inout.insensitive.insert.int.integer.intersect.intersection.interval.into.is.join.json_array.json_arrayagg.json_exists.json_object.json_objectagg.json_query.json_table.json_table_primitive.json_value.lag.language.large.last_value.lateral.lead.leading.left.like.like_regex.listagg.ln.local.localtime.localtimestamp.log.log10.lower.match.match_number.match_recognize.matches.max.member.merge.method.min.minute.mod.modifies.module.month.multiset.national.natural.nchar.nclob.new.no.none.normalize.not.nth_value.ntile.null.nullif.numeric.octet_length.occurrences_regex.of.offset.old.omit.on.one.only.open.or.order.out.outer.over.overlaps.overlay.parameter.partition.pattern.per.percent.percent_rank.percentile_cont.percentile_disc.period.portion.position.position_regex.power.precedes.precision.prepare.primary.procedure.ptf.range.rank.reads.real.recursive.ref.references.referencing.regr_avgx.regr_avgy.regr_count.regr_intercept.regr_r2.regr_slope.regr_sxx.regr_sxy.regr_syy.release.result.return.returns.revoke.right.rollback.rollup.row.row_number.rows.running.savepoint.scope.scroll.search.second.seek.select.sensitive.session_user.set.show.similar.sin.sinh.skip.smallint.some.specific.specifictype.sql.sqlexception.sqlstate.sqlwarning.sqrt.start.static.stddev_pop.stddev_samp.submultiset.subset.substring.substring_regex.succeeds.sum.symmetric.system.system_time.system_user.table.tablesample.tan.tanh.then.time.timestamp.timezone_hour.timezone_minute.to.trailing.translate.translate_regex.translation.treat.trigger.trim.trim_array.true.truncate.uescape.union.unique.unknown.unnest.update.upper.user.using.value.values.value_of.var_pop.var_samp.varbinary.varchar.varying.versioning.when.whenever.where.width_bucket.window.with.within.without.year`.split(`.`),u=`abs.acos.array_agg.asin.atan.avg.cast.ceil.ceiling.coalesce.corr.cos.cosh.count.covar_pop.covar_samp.cume_dist.dense_rank.deref.element.exp.extract.first_value.floor.json_array.json_arrayagg.json_exists.json_object.json_objectagg.json_query.json_table.json_table_primitive.json_value.lag.last_value.lead.listagg.ln.log.log10.lower.max.min.mod.nth_value.ntile.nullif.percent_rank.percentile_cont.percentile_disc.position.position_regex.power.rank.regr_avgx.regr_avgy.regr_count.regr_intercept.regr_r2.regr_slope.regr_sxx.regr_sxy.regr_syy.row_number.sin.sinh.sqrt.stddev_pop.stddev_samp.substring.substring_regex.sum.tan.tanh.translate.translate_regex.treat.trim.trim_array.unnest.upper.value_of.var_pop.var_samp.width_bucket`.split(`.`),d=[`current_catalog`,`current_date`,`current_default_transform_group`,`current_path`,`current_role`,`current_schema`,`current_transform_group_for_type`,`current_user`,`session_user`,`system_time`,`system_user`,`current_time`,`localtime`,`current_timestamp`,`localtimestamp`],f=[`create table`,`insert into`,`primary key`,`foreign key`,`not null`,`alter table`,`add constraint`,`grouping sets`,`on overflow`,`character set`,`respect nulls`,`ignore nulls`,`nulls first`,`nulls last`,`depth first`,`breadth first`],p=u,m=[...l,...c].filter(e=>!u.includes(e)),h={scope:`variable`,match:/@[a-z0-9][a-z0-9_]*/},g={scope:`operator`,match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},_={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function v(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,`\\s+`))),/\b/)}let y={scope:`keyword`,match:v(f),relevance:0};function b(e,{exceptions:t,when:n}={}){let r=n;return t||=[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e)}return{name:`SQL`,case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:b(m,{when:e=>e.length<3}),literal:a,type:s,built_in:d},contains:[{scope:`type`,match:v(o)},y,_,h,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,g]}}function er(e){return e?typeof e==`string`?e:e.source:null}function tr(e){return H(`(?=`,e,`)`)}function H(...e){return e.map(e=>er(e)).join(``)}function nr(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function rr(...e){return`(`+(nr(e).capture?``:`?:`)+e.map(e=>er(e)).join(`|`)+`)`}var ir=e=>H(/\b/,e,/\w$/.test(e)?/\b/:/\B/),ar=[`Protocol`,`Type`].map(ir),or=[`init`,`self`].map(ir),sr=[`Any`,`Self`],cr=[`actor`,`any`,`associatedtype`,`async`,`await`,/as\?/,/as!/,`as`,`borrowing`,`break`,`case`,`catch`,`class`,`consume`,`consuming`,`continue`,`convenience`,`copy`,`default`,`defer`,`deinit`,`didSet`,`distributed`,`do`,`dynamic`,`each`,`else`,`enum`,`extension`,`fallthrough`,/fileprivate\(set\)/,`fileprivate`,`final`,`for`,`func`,`get`,`guard`,`if`,`import`,`indirect`,`infix`,/init\?/,/init!/,`inout`,/internal\(set\)/,`internal`,`in`,`is`,`isolated`,`nonisolated`,`lazy`,`let`,`macro`,`mutating`,`nonmutating`,/open\(set\)/,`open`,`operator`,`optional`,`override`,`package`,`postfix`,`precedencegroup`,`prefix`,/private\(set\)/,`private`,`protocol`,/public\(set\)/,`public`,`repeat`,`required`,`rethrows`,`return`,`set`,`some`,`static`,`struct`,`subscript`,`super`,`switch`,`throws`,`throw`,/try\?/,/try!/,`try`,`typealias`,/unowned\(safe\)/,/unowned\(unsafe\)/,`unowned`,`var`,`weak`,`where`,`while`,`willSet`],lr=[`false`,`nil`,`true`],ur=[`assignment`,`associativity`,`higherThan`,`left`,`lowerThan`,`none`,`right`],dr=[`#colorLiteral`,`#column`,`#dsohandle`,`#else`,`#elseif`,`#endif`,`#error`,`#file`,`#fileID`,`#fileLiteral`,`#filePath`,`#function`,`#if`,`#imageLiteral`,`#keyPath`,`#line`,`#selector`,`#sourceLocation`,`#warning`],fr=`abs.all.any.assert.assertionFailure.debugPrint.dump.fatalError.getVaList.isKnownUniquelyReferenced.max.min.numericCast.pointwiseMax.pointwiseMin.precondition.preconditionFailure.print.readLine.repeatElement.sequence.stride.swap.swift_unboxFromSwiftValueWithType.transcode.type.unsafeBitCast.unsafeDowncast.withExtendedLifetime.withUnsafeMutablePointer.withUnsafePointer.withVaList.withoutActuallyEscaping.zip`.split(`.`),pr=rr(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),mr=rr(pr,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),hr=H(pr,mr,`*`),gr=rr(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),_r=rr(gr,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),vr=H(gr,_r,`*`),yr=H(/[A-Z]/,_r,`*`),br=[`attached`,`autoclosure`,H(/convention\(/,rr(`swift`,`block`,`c`),/\)/),`discardableResult`,`dynamicCallable`,`dynamicMemberLookup`,`escaping`,`freestanding`,`frozen`,`GKInspectable`,`IBAction`,`IBDesignable`,`IBInspectable`,`IBOutlet`,`IBSegueAction`,`inlinable`,`main`,`nonobjc`,`NSApplicationMain`,`NSCopying`,`NSManaged`,H(/objc\(/,vr,/\)/),`objc`,`objcMembers`,`propertyWrapper`,`requires_stored_property_inits`,`resultBuilder`,`Sendable`,`testable`,`UIApplicationMain`,`unchecked`,`unknown`,`usableFromInline`,`warn_unqualified_access`],xr=[`iOS`,`iOSApplicationExtension`,`macOS`,`macOSApplicationExtension`,`macCatalyst`,`macCatalystApplicationExtension`,`watchOS`,`watchOSApplicationExtension`,`tvOS`,`tvOSApplicationExtension`,`swift`];function Sr(e){let t={match:/\s+/,relevance:0},n=e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,rr(...ar,...or)],className:{2:`keyword`}},a={match:H(/\./,rr(...cr)),relevance:0},o=cr.filter(e=>typeof e==`string`).concat([`_|0`]),s={variants:[{className:`keyword`,match:rr(...cr.filter(e=>typeof e!=`string`).concat(sr).map(ir),...or)}]},c={$pattern:rr(/\b\w+/,/#\w+/),keyword:o.concat(dr),literal:lr},l=[i,a,s],u=[{match:H(/\./,rr(...fr)),relevance:0},{className:`built_in`,match:H(/\b/,rr(...fr),/(?=\()/)}],d={match:/->/,relevance:0},f=[d,{className:`operator`,relevance:0,variants:[{match:hr},{match:`\\.(\\.|${mr})+`}]}],p=`([0-9]_*)+`,m=`([0-9a-fA-F]_*)+`,h={className:`number`,relevance:0,variants:[{match:`\\b(${p})(\\.(${p}))?([eE][+-]?(${p}))?\\b`},{match:`\\b0x(${m})(\\.(${m}))?([pP][+-]?(${p}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},g=(e=``)=>({className:`subst`,variants:[{match:H(/\\/,e,/[0\\tnr"']/)},{match:H(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),_=(e=``)=>({className:`subst`,match:H(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),v=(e=``)=>({className:`subst`,label:`interpol`,begin:H(/\\/,e,/\(/),end:/\)/}),y=(e=``)=>({begin:H(e,/"""/),end:H(/"""/,e),contains:[g(e),_(e),v(e)]}),b=(e=``)=>({begin:H(e,/"/),end:H(/"/,e),contains:[g(e),v(e)]}),x={className:`string`,variants:[y(),y(`#`),y(`##`),y(`###`),b(),b(`#`),b(`##`),b(`###`)]},S=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],C={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:S},w=e=>{let t=H(e,/\//),n=H(/\//,e);return{begin:t,end:n,contains:[...S,{scope:`comment`,begin:`#(?!.*${n})`,end:/$/}]}},T={scope:`regexp`,variants:[w(`###`),w(`##`),w(`#`),C]},ee={match:H(/`/,vr,/`/)},E=[ee,{className:`variable`,match:/\$\d+/},{className:`variable`,match:`\\$${_r}+`}],D=[{match:/(@|#(un)?)available/,scope:`keyword`,starts:{contains:[{begin:/\(/,end:/\)/,keywords:xr,contains:[...f,h,x]}]}},{scope:`keyword`,match:H(/@/,rr(...br),tr(rr(/\(/,/\s+/)))},{scope:`meta`,match:H(/@/,vr)}],te={match:tr(/\b[A-Z]/),relevance:0,contains:[{className:`type`,match:H(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,_r,`+`)},{className:`type`,match:yr,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:H(/\s+&\s+/,tr(yr)),relevance:0}]},O={begin:/</,end:/>/,keywords:c,contains:[...r,...l,...D,d,te]};te.contains.push(O);let ne={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:[`self`,{match:H(vr,/\s*:/),keywords:`_|0`,relevance:0},...r,T,...l,...u,...f,h,x,...E,...D,te]},k={begin:/</,end:/>/,keywords:`repeat each`,contains:[...r,te]},re={begin:/\(/,end:/\)/,keywords:c,contains:[{begin:rr(tr(H(vr,/\s*:/)),tr(H(vr,/\s+/,vr,/\s*:/))),end:/:/,relevance:0,contains:[{className:`keyword`,match:/\b_\b/},{className:`params`,match:vr}]},...r,...l,...f,h,x,...D,te,ne],endsParent:!0,illegal:/["']/},A={match:[/(func|macro)/,/\s+/,rr(ee.match,vr,hr)],className:{1:`keyword`,3:`title.function`},contains:[k,re,t],illegal:[/\[/,/%/]},j={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:`keyword`},contains:[k,re,t],illegal:/\[|%/},M={match:[/operator/,/\s+/,hr],className:{1:`keyword`,3:`title`}},ie={begin:[/precedencegroup/,/\s+/,yr],className:{1:`keyword`,3:`title`},contains:[te],keywords:[...ur,...lr],end:/}/},ae={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:`keyword`,3:`keyword`,5:`title.function`}},oe={match:[/class\b/,/\s+/,/var\b/],scope:{1:`keyword`,3:`keyword`}},se={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,vr,/\s*/],beginScope:{1:`keyword`,3:`title.class`},keywords:c,contains:[k,...l,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:`title.class.inherited`,match:yr},...l],relevance:0}]};for(let e of x.variants){let t=e.contains.find(e=>e.label===`interpol`);t.keywords=c;let n=[...l,...u,...f,h,x,...E];t.contains=[...n,{begin:/\(/,end:/\)/,contains:[`self`,...n]}]}return{name:`Swift`,keywords:c,contains:[...r,A,j,ae,oe,se,M,ie,{beginKeywords:`import`,end:/$/,contains:[...r],relevance:0},T,...l,...u,...f,h,x,...E,...D,te,ne]}}var Cr=`[A-Za-z$_][0-9A-Za-z$_]*`,wr=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),Tr=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],Er=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),Dr=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],Or=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],kr=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],Ar=[].concat(Or,Er,Dr);function jr(e){let t=e.regex,n=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},r=Cr,i={begin:`<>`,end:`</>`},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let r=e[0].length+e.index,i=e.input[r];if(i===`<`||i===`,`){t.ignoreMatch();return}i===`>`&&(n(e,{after:r})||t.ignoreMatch());let a,o=e.input.substring(r);if(a=o.match(/^\s*=/)){t.ignoreMatch();return}if((a=o.match(/^\s+extends\s+/))&&a.index===0){t.ignoreMatch();return}}},s={$pattern:Cr,keyword:wr,literal:Tr,built_in:Ar,"variable.language":kr},c=`[0-9](_?[0-9])*`,l=`\\.(${c})`,u=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,d={className:`number`,variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},f={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:s,contains:[]},p={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`xml`}},m={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`css`}},h={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`graphql`}},g={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},_={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:`[A-Za-z$_][0-9A-Za-z$_]*(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:[`self`].concat(v)});let y=[].concat(_,f.contains),b=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:[`self`].concat(y)}]),x={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,`(`,t.concat(/\./,r),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,r],scope:{1:`keyword`,3:`title.class`}}]},C={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...Er,...Dr]}},w={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[x],illegal:/%/},ee={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function E(e){return t.concat(`(?!`,e.join(`|`),`)`)}let D={match:t.concat(/\b/,E([...Or,`super`,`import`].map(e=>`${e}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},te={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},O={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},x]},ne=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,k={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[x]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:s,exports:{PARAMS_CONTAINS:b,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),w,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,_,{match:/\$\d+/},d,C,{scope:`attr`,match:r+t.lookahead(`:`),relevance:0},k,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[_,e.REGEXP_MODE,{className:`function`,begin:ne,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:`xml`,contains:[{begin:o.begin,end:o.end,skip:!0,contains:[`self`]}]}]},T,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:`title.function`})]},{match:/\.\.\./,relevance:0},te,{match:`\\$[A-Za-z$_][0-9A-Za-z$_]*`,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[x]},D,ee,S,O,{match:/\$[(.]/}]}}function Mr(e){let t=e.regex,n=jr(e),r=Cr,i=[`any`,`void`,`number`,`boolean`,`string`,`object`,`never`,`symbol`,`bigint`,`unknown`],a={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:`keyword`,3:`title.class`}},o={beginKeywords:`interface`,end:/\{/,excludeEnd:!0,keywords:{keyword:`interface extends`,built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:`meta`,relevance:10,begin:/^\s*['"]use strict['"]/},c={$pattern:Cr,keyword:wr.concat([`type`,`interface`,`public`,`private`,`protected`,`implements`,`declare`,`abstract`,`readonly`,`enum`,`override`,`satisfies`]),literal:Tr,built_in:Ar.concat(i),"variable.language":kr},l={className:`meta`,begin:`@[A-Za-z$_][0-9A-Za-z$_]*`},u=(e,t,n)=>{let r=e.contains.findIndex(e=>e.label===t);if(r===-1)throw Error(`can not find mode to replace`);e.contains.splice(r,1,n)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(l);let d=n.contains.find(e=>e.scope===`attr`),f=Object.assign({},d,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,d,f]),n.contains=n.contains.concat([l,a,o,f]),u(n,`shebang`,e.SHEBANG()),u(n,`use_strict`,s);let p=n.contains.find(e=>e.label===`func.def`);return p.relevance=0,Object.assign(n,{name:`TypeScript`,aliases:[`ts`,`tsx`,`mts`,`cts`]}),n}function Nr(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:`keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:`string`}),c=e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:`attr`,begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:`string`,endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:`HTML, XML`,aliases:[`html`,`xhtml`,`rss`,`atom`,`xjb`,`xsd`,`xsl`,`plist`,`wsf`,`svg`],case_insensitive:!0,unicodeRegex:!0,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,c,s,o,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,contains:[a,o,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:`meta`,end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:`tag`,begin:/<style(?=\s|>)/,end:/>/,keywords:{name:`style`},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:[`css`,`xml`]}},{className:`tag`,begin:/<script(?=\s|>)/,end:/>/,keywords:{name:`script`},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:[`javascript`,`handlebars`,`xml`]}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:n,relevance:0,starts:l}]},{className:`tag`,begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:`name`,begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function Pr(e){let t=`true false yes no null`,n={className:`attr`,variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},r={className:`template-variable`,variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},i={className:`string`,relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:`char.escape`,relevance:0}]},a={className:`string`,relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]},o=e.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),s={className:`number`,begin:`\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b`},c={end:`,`,endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},l={begin:/\{/,end:/\}/,contains:[c],illegal:`\\n`,relevance:0},u={begin:`\\[`,end:`\\]`,contains:[c],illegal:`\\n`,relevance:0},d=[n,{className:`meta`,begin:`^---\\s*$`,relevance:10},{className:`string`,begin:`[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*`},{begin:`<%[%=-]?`,end:`[%-]?%>`,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:`!\\w+![\\w#;/?:@&=+$,.~*'()[\\]]+`},{className:`type`,begin:`!<[\\w#;/?:@&=+$,.~*'()[\\]]+>`},{className:`type`,begin:`![\\w#;/?:@&=+$,.~*'()[\\]]+`},{className:`type`,begin:`!![\\w#;/?:@&=+$,.~*'()[\\]]+`},{className:`meta`,begin:`&`+e.UNDERSCORE_IDENT_RE+`$`},{className:`meta`,begin:`\\*`+e.UNDERSCORE_IDENT_RE+`$`},{className:`bullet`,begin:`-(?=[ ]|$)`,relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},s,{className:`number`,begin:e.C_NUMBER_RE+`\\b`,relevance:0},l,u,i,a],f=[...d];return f.pop(),f.push(o),c.contains=f,{name:`YAML`,case_insensitive:!0,aliases:[`yml`],contains:d}}for(let[e,t]of[[`bash`,ln],[`c`,un],[`cpp`,dn],[`csharp`,fn],[`css`,xn],[`diff`,Sn],[`go`,Cn],[`graphql`,wn],[`ini`,Tn],[`java`,jn],[`javascript`,Bn],[`json`,Vn],[`kotlin`,Kn],[`markdown`,qn],[`php`,Jn],[`python`,Yn],[`ruby`,Xn],[`rust`,Zn],[`shell`,Qn],[`sql`,$n],[`swift`,Sr],[`typescript`,Mr],[`xml`,Nr],[`yaml`,Pr]])cn.registerLanguage(e,t);var Fr={html:`xml`,toml:`ini`,jsx:`javascript`,tsx:`typescript`};function Ir(e,t){let n=Fr[t]??t;return cn.getLanguage(n)?cn.highlight(e,{language:n,ignoreIllegals:!0}).value:null}var Lr=[`.hljs{color:var(--plumix-code-fg,#24292e)}`,`.hljs-comment,.hljs-quote{color:var(--plumix-code-comment,#6a737d);font-style:italic}`,`.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-type,.hljs-built_in{color:var(--plumix-code-keyword,#d73a49)}`,`.hljs-string,.hljs-regexp,.hljs-doctag{color:var(--plumix-code-string,#032f62)}`,`.hljs-number,.hljs-attr,.hljs-attribute,.hljs-variable,.hljs-template-variable{color:var(--plumix-code-number,#005cc5)}`,`.hljs-title,.hljs-section,.hljs-name,.hljs-selector-id,.hljs-selector-class{color:var(--plumix-code-title,#6f42c1)}`,`.hljs-tag{color:var(--plumix-code-tag,#22863a)}`,`.hljs-meta{color:var(--plumix-code-meta,#6a737d)}`,`.hljs-symbol,.hljs-bullet,.hljs-link{color:var(--plumix-code-symbol,#e36209)}`,`.hljs-emphasis{font-style:italic}`,`.hljs-strong{font-weight:600}`].join(``),Rr=[{id:`bash`,label:`Bash`},{id:`c`,label:`C`},{id:`cpp`,label:`C++`},{id:`csharp`,label:`C#`},{id:`css`,label:`CSS`},{id:`diff`,label:`Diff`},{id:`go`,label:`Go`},{id:`graphql`,label:`GraphQL`},{id:`html`,label:`HTML`},{id:`java`,label:`Java`},{id:`javascript`,label:`JavaScript`},{id:`jsx`,label:`JSX`},{id:`json`,label:`JSON`},{id:`kotlin`,label:`Kotlin`},{id:`markdown`,label:`Markdown`},{id:`php`,label:`PHP`},{id:`python`,label:`Python`},{id:`ruby`,label:`Ruby`},{id:`rust`,label:`Rust`},{id:`shell`,label:`Shell`},{id:`sql`,label:`SQL`},{id:`swift`,label:`Swift`},{id:`toml`,label:`TOML`},{id:`tsx`,label:`TSX`},{id:`typescript`,label:`TypeScript`},{id:`yaml`,label:`YAML`}],zr={ts:`typescript`,js:`javascript`,py:`python`,rb:`ruby`,rs:`rust`,kt:`kotlin`,sh:`shell`,zsh:`shell`,yml:`yaml`,md:`markdown`,"c++":`cpp`,"c#":`csharp`,cs:`csharp`,golang:`go`};function Br(e){let t=e?.trim().toLowerCase();if(t)return zr[t]??t}var Vr=tn({name:`core/code`,title:{id:`block.core.code.title`,message:`Code`},icon:`Code`,category:`text`,selfSeam:!0,defaultStyles:{large:{marginTop:`var(--plumix-code-margin-y, 1.5rem)`,marginBottom:`var(--plumix-code-margin-y, 1.5rem)`,padding:`var(--plumix-code-padding, 1rem)`,background:`var(--plumix-code-bg, #f6f8fa)`,borderRadius:`var(--plumix-code-radius, 6px)`,overflowX:`auto`,fontFamily:`var(--plumix-code-font, ui-monospace, SFMono-Regular, Menlo, monospace)`,fontSize:`var(--plumix-code-font-size, 0.875rem)`,lineHeight:`var(--plumix-code-line-height, 1.6)`}},inputs:[{name:`text`,type:`textarea`,label:{id:`block.core.code.input.text.label`,message:`Code`}},{name:`language`,type:`combobox`,label:{id:`block.core.code.input.language.label`,message:`Language`},options:Rr.map(e=>({label:e.label,value:e.id}))}],defaults:{text:`// Your code here`,language:``},render:({attrs:e,blockProps:t})=>{let{text:n=``,language:r=``}=e,i=Br(r);if(i===void 0)return(0,B.jsx)(`pre`,{...t,children:n});let a=Ir(n,i);return a===null?(0,B.jsx)(`pre`,{...t,"data-language":i,children:(0,B.jsx)(`code`,{"data-language":i,children:n})}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`style`,{href:`plumix-code-theme`,precedence:`default`,children:Lr}),(0,B.jsx)(`pre`,{...t,"data-language":i,children:(0,B.jsx)(`code`,{className:`hljs`,"data-language":i,dangerouslySetInnerHTML:{__html:a}})})]})}}),Hr=/^\d+(\.\d+)?(px|%|rem|em|vw|vh|ch)$/;function Ur(e){if(typeof e!=`string`)return;let t=e.trim(),n=/^\d+(\.\d+)?$/.test(t)?`${t}%`:t;return Hr.test(n)?{flex:`0 1 ${n}`}:void 0}var Wr=tn({name:`core/column`,title:{id:`block.core.column.title`,message:`Column`},icon:`RectangleVertical`,category:`layout`,selfSeam:!0,requiresParent:[`core/columns`],inputs:[{name:`width`,type:`text`,label:{id:`block.core.column.input.width.label`,message:`Width`}},{name:`content`,type:`slot`,label:{id:`block.core.column.input.content.label`,message:`Content`},defaultChildren:[{id:`column-text`,name:`core/rich-text`}]}],defaultStyles:{large:{flexGrow:`1`,flexBasis:`0`,minWidth:`0`}},render:({attrs:e,blockProps:t})=>{let n=e.content;return(0,B.jsx)(`div`,{...t,style:Ur(e.width),children:n?(0,B.jsx)(n,{}):null})}}),Gr=[{id:`column-1`,name:`core/column`,attrs:{content:[{id:`column-1-text`,name:`core/rich-text`}]}},{id:`column-2`,name:`core/column`,attrs:{content:[{id:`column-2-text`,name:`core/rich-text`}]}}],Kr=[`tablet`,`mobile`,`never`];function qr(e){return typeof e==`string`&&Kr.includes(e)?e:`tablet`}function Jr(e,t,n,r){return t===`never`?``:`@media (max-width: ${t===`mobile`?r.mobile:r.tablet}px) { .plumix-cols-${e} { flex-direction: ${n?`column-reverse`:`column`}; } }`}var Yr=tn({name:`core/columns`,title:{id:`block.core.columns.title`,message:`Columns`},icon:`Columns`,category:`layout`,selfSeam:!0,inputs:[{name:`stackAt`,type:`select`,label:{id:`block.core.columns.input.stackAt.label`,message:`Stack columns at`},options:[{label:{id:`block.core.columns.input.stackAt.option.tablet`,message:`Tablet`},value:`tablet`},{label:{id:`block.core.columns.input.stackAt.option.mobile`,message:`Mobile`},value:`mobile`},{label:{id:`block.core.columns.input.stackAt.option.never`,message:`Never`},value:`never`}]},{name:`reverseWhenStacked`,type:`boolean`,label:{id:`block.core.columns.input.reverseWhenStacked.label`,message:`Reverse when stacked`}},{name:`columns`,type:`slot`,label:{id:`block.core.columns.input.columns.label`,message:`Columns`},allowedBlocks:[`core/column`],defaultChildren:Gr}],defaults:{stackAt:`tablet`},defaultStyles:{large:{display:`flex`,gap:`20px`,alignItems:`stretch`}},render:({attrs:e,blockProps:t,nodeId:n,breakpoints:r})=>{let i=e.columns,a=n?Jr(n,qr(e.stackAt),e.reverseWhenStacked===!0,r??I):``,o=[t.className,n?`plumix-cols-${n}`:null].filter(Boolean).join(` `)||void 0;return(0,B.jsxs)(`div`,{...t,className:o,children:[a?(0,B.jsx)(`style`,{children:a}):null,i?(0,B.jsx)(i,{}):null]})}}),Xr=`Details`,Zr=tn({name:`core/details`,title:{id:`block.core.details.title`,message:`Details`},icon:`ChevronDown`,category:`layout`,inputs:[{name:`summary`,type:`text`,label:{id:`block.core.details.input.summary.label`,message:`Summary`}},{name:`open`,type:`checkbox`,label:{id:`block.core.details.input.open.label`,message:`Open by default`}},{name:`content`,type:`slot`,label:{id:`block.core.details.input.content.label`,message:`Content`}}],defaults:{summary:``,open:!1},render:({attrs:e})=>{let t=e.summary,n=typeof t==`string`&&t.length>0?t:Xr,r=e.open===!0,i=e.content;return(0,B.jsxs)(`details`,{open:r,children:[(0,B.jsx)(`summary`,{children:n}),i?(0,B.jsx)(i,{}):null]})}});function Qr(e){let[t,n]=(0,z.useState)(!1),{src:r,title:i,caption:a,provider:o,sandboxed:s,aspect:c,height:l,allowFullscreen:u}=e,d={width:`100%`,...c?{aspectRatio:c}:{height:l}};return(0,B.jsxs)(`figure`,{"data-provider":o,children:[t?(0,B.jsx)(`div`,{className:`plumix-embed`,style:d,children:(0,B.jsx)(`iframe`,{src:r,title:i,loading:`lazy`,referrerPolicy:s?`no-referrer`:`strict-origin-when-cross-origin`,allowFullScreen:u===!0,style:{width:`100%`,height:`100%`,border:0},...s&&{sandbox:`allow-scripts`}})}):(0,B.jsx)(`button`,{type:`button`,className:`plumix-embed-facade`,"data-testid":`embed-facade`,"aria-label":`Load embed: ${i}`,style:{...d,cursor:`pointer`},onClick:()=>{n(!0)},children:(0,B.jsx)(`span`,{className:`plumix-embed-facade-play`,"aria-hidden":`true`})}),a.length>0?(0,B.jsx)(`figcaption`,{children:a}):null]})}function $r(e){return e.pathname.split(`/`).find(Boolean)}var ei=/^[\w-]+$/,ti=/^[\w-]{11}$/,ni=[{id:`youtube`,host:e=>e===`youtube.com`||e===`youtu.be`,toSrc:e=>{let t=e.hostname.replace(/^www\./,``)===`youtu.be`?$r(e):e.searchParams.get(`v`)??(e.pathname.startsWith(`/shorts/`)?e.pathname.split(`/`).filter(Boolean)[1]:void 0);return t&&ti.test(t)?`https://www.youtube-nocookie.com/embed/${t}`:null},aspect:`16 / 9`,allowFullscreen:!0},{id:`vimeo`,host:e=>e===`vimeo.com`,toSrc:e=>{let t=$r(e);return t&&/^\d+$/.test(t)?`https://player.vimeo.com/video/${t}`:null},aspect:`16 / 9`,allowFullscreen:!0},{id:`loom`,host:e=>e===`loom.com`,toSrc:e=>{let t=e.pathname.split(`/`).filter(Boolean),n=t[0]===`share`?t[1]:void 0;return n&&ei.test(n)?`https://www.loom.com/embed/${n}`:null},aspect:`16 / 9`,allowFullscreen:!0},{id:`spotify`,host:e=>e===`open.spotify.com`,toSrc:e=>{let[t,n]=e.pathname.split(`/`).filter(Boolean);return t&&n&&new Set([`track`,`album`,`playlist`,`episode`,`show`,`artist`]).has(t)&&ei.test(n)?`https://open.spotify.com/embed/${t}/${n}`:null},height:352},{id:`codepen`,host:e=>e===`codepen.io`,toSrc:e=>{let[t,n,r]=e.pathname.split(`/`).filter(Boolean);return t&&n===`pen`&&r&&ei.test(t)&&ei.test(r)?`https://codepen.io/${t}/embed/${r}`:null},height:400}];function ri(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!==`https:`&&t.protocol!==`http:`)return null;let n=t.hostname.replace(/^www\./,``);for(let e of ni){if(!e.host(n))continue;let r=e.toSrc(t);if(r)return{provider:e.id,src:r,sandboxed:!1,...e.aspect&&{aspect:e.aspect},...e.height&&{height:e.height},...e.allowFullscreen&&{allowFullscreen:!0}}}return{provider:`generic`,src:t.toString(),sandboxed:!0,aspect:`16 / 9`}}var ii=tn({name:`core/embed`,title:{id:`block.core.embed.title`,message:`Embed`},icon:`Code`,category:`media`,description:{id:`block.core.embed.description`,message:`Embed a YouTube, Vimeo, Loom, Spotify, or CodePen URL — or any other page in a sandboxed iframe.`},keywords:[{id:`block.core.embed.keyword.iframe`,message:`iframe`},{id:`block.core.embed.keyword.video`,message:`video`},{id:`block.core.embed.keyword.youtube`,message:`youtube`},{id:`block.core.embed.keyword.vimeo`,message:`vimeo`},{id:`block.core.embed.keyword.media`,message:`media`}],inputs:[{name:`url`,type:`url`,label:{id:`block.core.embed.input.url.label`,message:`URL`}},{name:`title`,type:`text`,label:{id:`block.core.embed.input.title.label`,message:`Accessible title`}},{name:`caption`,type:`text`,label:{id:`block.core.embed.input.caption.label`,message:`Caption`}}],defaults:{url:``,title:``,caption:``},render:({attrs:e,context:t})=>{let n=ri(typeof e.url==`string`?e.url:``);if(!n)return t.editing?(0,B.jsx)(`div`,{"data-plumix-embed-placeholder":``,style:{display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`8rem`,padding:`1rem`,border:`1px dashed #d0d7de`,borderRadius:`6px`,background:`#f6f8fa`,color:`#57606a`,fontSize:`0.875rem`,textAlign:`center`},children:`Add a YouTube, Vimeo, Loom, Spotify, or CodePen URL to embed.`}):null;let r=typeof e.title==`string`&&e.title.length>0?e.title:`Embedded content`,i=typeof e.caption==`string`?e.caption:``;return(0,B.jsx)(Qr,{client:`interaction`,prefetch:`visible`,src:n.src,title:r,caption:i,provider:n.provider,sandboxed:n.sandboxed,...n.aspect&&{aspect:n.aspect},...n.height&&{height:n.height},...n.allowFullscreen&&{allowFullscreen:!0}})}}),ai=tn({name:`core/group`,title:{id:`block.core.group.title`,message:`Box`},icon:`Box`,category:`layout`,selfSeam:!0,inputs:[{name:`content`,type:`slot`,label:{id:`block.core.group.input.content.label`,message:`Content`}}],render:({attrs:e,blockProps:t,tagName:n})=>{let r=e.content;return(0,B.jsx)(n??`div`,{...t,children:r?(0,B.jsx)(r,{}):null})}}),oi=tn({name:`core/pattern-ref`,title:{id:`block.core.pattern-ref.title`,message:`Pattern reference`},inserter:!1,inputs:[{name:`slug`,type:`text`,label:{id:`block.core.pattern-ref.input.slug.label`,message:`Slug`}}],render:()=>null});function si(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ci(e){if(Array.isArray(e))return e}function li(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function ui(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
25
25
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function di(e,t){return ci(e)||li(e,t)||fi(e,t)||ui()}function fi(e,t){if(e){if(typeof e==`string`)return si(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?si(e,t):void 0}}var pi=Object.entries,mi=Object.setPrototypeOf,hi=Object.isFrozen,gi=Object.getPrototypeOf,_i=Object.getOwnPropertyDescriptor,vi=Object.freeze,yi=Object.seal,bi=Object.create,xi=typeof Reflect<`u`&&Reflect,Si=xi.apply,Ci=xi.construct;vi||=function(e){return e},yi||=function(e){return e},Si||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Ci||=function(e){return new e(...[...arguments].slice(1))};var wi=Hi(Array.prototype.forEach),Ti=Hi(Array.prototype.lastIndexOf),Ei=Hi(Array.prototype.pop),Di=Hi(Array.prototype.push),Oi=Hi(Array.prototype.splice),ki=Array.isArray,U=Hi(String.prototype.toLowerCase),W=Hi(String.prototype.toString),Ai=Hi(String.prototype.match),ji=Hi(String.prototype.replace),Mi=Hi(String.prototype.indexOf),Ni=Hi(String.prototype.trim),Pi=Hi(Number.prototype.toString),Fi=Hi(Boolean.prototype.toString),Ii=typeof BigInt>`u`?null:Hi(BigInt.prototype.toString),Li=typeof Symbol>`u`?null:Hi(Symbol.prototype.toString),Ri=Hi(Object.prototype.hasOwnProperty),zi=Hi(Object.prototype.toString),Bi=Hi(RegExp.prototype.test),Vi=Ui(TypeError);function Hi(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Si(e,t,n)}}function Ui(e){return function(){return Ci(e,[...arguments])}}function G(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:U;if(mi&&mi(e,null),!ki(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(hi(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Wi(e){for(let t=0;t<e.length;t++)Ri(e,t)||(e[t]=null);return e}function Gi(e){let t=bi(null);for(let r of pi(e)){var n=di(r,2);let i=n[0],a=n[1];Ri(e,i)&&(ki(a)?t[i]=Wi(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=Gi(a):t[i]=a)}return t}function Ki(e){switch(typeof e){case`string`:return e;case`number`:return Pi(e);case`boolean`:return Fi(e);case`bigint`:return Ii?Ii(e):`0`;case`symbol`:return Li?Li(e):`Symbol()`;case`undefined`:return zi(e);case`function`:case`object`:{if(e===null)return zi(e);let t=e,n=qi(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:zi(e)}return zi(e)}default:return zi(e)}}function qi(e,t){for(;e!==null;){let n=_i(e,t);if(n){if(n.get)return Hi(n.get);if(typeof n.value==`function`)return Hi(n.value)}e=gi(e)}function n(){return null}return n}function Ji(e){try{return Bi(e,``),!0}catch{return!1}}var Yi=vi(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Xi=vi(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Zi=vi([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Qi=vi([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),$i=vi(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),ea=vi([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),ta=vi([`#text`]),na=vi(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),ra=vi(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),ia=vi(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),aa=vi([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),oa=yi(/{{[\w\W]*|^[\w\W]*}}/g),sa=yi(/<%[\w\W]*|^[\w\W]*%>/g),ca=yi(/\${[\w\W]*/g),la=yi(/^data-[\-\w.\u00B7-\uFFFF]+$/),ua=yi(/^aria-[\-\w]+$/),da=yi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fa=yi(/^(?:\w+script|data):/i),pa=yi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ma=yi(/^html$/i),ha=yi(/^[a-z][.\w]*(-[.\w]+)+$/i),ga=yi(/<[/\w!]/g),_a=yi(/<[/\w]/g),va=yi(/<\/no(script|embed|frames)/i),ya=yi(/\/>/i),ba={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},xa=function(){return typeof window>`u`?null:window},Sa=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Ca=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},wa=function(e,t,n,r){return Ri(e,t)&&ki(e[t])?G(r.base?Gi(r.base):{},e[t],r.transform):n};function Ta(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xa(),t=e=>Ta(e);if(t.version=`3.4.11`,t.removed=[],!e||!e.document||e.document.nodeType!==ba.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=qi(d,`cloneNode`),p=qi(d,`remove`),m=qi(d,`nextSibling`),h=qi(d,`childNodes`),g=qi(d,`parentNode`),_=qi(d,`shadowRoot`),v=qi(d,`attributes`),y=o&&o.prototype?qi(o.prototype,`nodeType`):null,b=o&&o.prototype?qi(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C,w=!1,T=0,ee=function(){if(T>0)throw Vi(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},E=function(e){ee(),T++;try{return x.createHTML(e)}finally{T--}},D=function(e){ee(),T++;try{return x.createScriptURL(e)}finally{T--}},te=function(){return w||=(C=Sa(u,i),!0),C},O=n,ne=O.implementation,k=O.createNodeIterator,re=O.createDocumentFragment,A=O.getElementsByTagName,j=r.importNode,M=Ca();t.isSupported=typeof pi==`function`&&typeof g==`function`&&ne&&ne.createHTMLDocument!==void 0;let ie=oa,ae=sa,oe=ca,se=la,ce=ua,N=fa,le=pa,ue=ha,de=da,P=null,F=G({},[...Yi,...Xi,...Zi,...$i,...ta]),I=null,fe=G({},[...na,...ra,...ia,...aa]),L=Object.seal(bi(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pe=null,me=null,he=Object.seal(bi(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ge=!0,_e=!0,ve=!1,R=!0,ye=!1,be=!0,xe=!1,Se=!1,Ce=null,we=null,Te=!1,Ee=!1,De=!1,Oe=!1,ke=!0,Ae=!1,je=`user-content-`,Me=!0,Ne=!1,Pe={},Fe=null,Ie=G({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Le=null,Re=G({},[`audio`,`video`,`img`,`source`,`image`,`track`]),ze=null,Be=G({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ve=`http://www.w3.org/1998/Math/MathML`,z=`http://www.w3.org/2000/svg`,He=`http://www.w3.org/1999/xhtml`,Ue=He,We=!1,Ge=null,Ke=G({},[Ve,z,He],W),qe=vi([`mi`,`mo`,`mn`,`ms`,`mtext`]),Je=G({},qe),Ye=vi([`annotation-xml`]),Xe=G({},Ye),Ze=G({},[`title`,`style`,`font`,`a`,`script`]),Qe=null,$e=[`application/xhtml+xml`,`text/html`],et=null,tt=null,nt=n.createElement(`form`),rt=function(e){return e instanceof RegExp||e instanceof Function},it=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(tt&&tt===e)return;(!e||typeof e!=`object`)&&(e={}),e=Gi(e),Qe=$e.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,et=Qe===`application/xhtml+xml`?W:U,P=wa(e,`ALLOWED_TAGS`,F,{transform:et}),I=wa(e,`ALLOWED_ATTR`,fe,{transform:et}),Ge=wa(e,`ALLOWED_NAMESPACES`,Ke,{transform:W}),ze=wa(e,`ADD_URI_SAFE_ATTR`,Be,{transform:et,base:Be}),Le=wa(e,`ADD_DATA_URI_TAGS`,Re,{transform:et,base:Re}),Fe=wa(e,`FORBID_CONTENTS`,Ie,{transform:et}),pe=wa(e,`FORBID_TAGS`,Gi({}),{transform:et}),me=wa(e,`FORBID_ATTR`,Gi({}),{transform:et}),Pe=Ri(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Gi(e.USE_PROFILES):e.USE_PROFILES:!1,ge=e.ALLOW_ARIA_ATTR!==!1,_e=e.ALLOW_DATA_ATTR!==!1,ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,R=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ye=e.SAFE_FOR_TEMPLATES||!1,be=e.SAFE_FOR_XML!==!1,xe=e.WHOLE_DOCUMENT||!1,Ee=e.RETURN_DOM||!1,De=e.RETURN_DOM_FRAGMENT||!1,Oe=e.RETURN_TRUSTED_TYPE||!1,Te=e.FORCE_BODY||!1,ke=e.SANITIZE_DOM!==!1,Ae=e.SANITIZE_NAMED_PROPS||!1,Me=e.KEEP_CONTENT!==!1,Ne=e.IN_PLACE||!1,de=Ji(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:da,Ue=typeof e.NAMESPACE==`string`?e.NAMESPACE:He,Je=Ri(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?Gi(e.MATHML_TEXT_INTEGRATION_POINTS):G({},qe),Xe=Ri(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?Gi(e.HTML_INTEGRATION_POINTS):G({},Ye);let t=Ri(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?Gi(e.CUSTOM_ELEMENT_HANDLING):bi(null);if(L=bi(null),Ri(t,`tagNameCheck`)&&rt(t.tagNameCheck)&&(L.tagNameCheck=t.tagNameCheck),Ri(t,`attributeNameCheck`)&&rt(t.attributeNameCheck)&&(L.attributeNameCheck=t.attributeNameCheck),Ri(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(L.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),yi(L),ye&&(_e=!1),De&&(Ee=!0),Pe&&(P=G({},ta),I=bi(null),Pe.html===!0&&(G(P,Yi),G(I,na)),Pe.svg===!0&&(G(P,Xi),G(I,ra),G(I,aa)),Pe.svgFilters===!0&&(G(P,Zi),G(I,ra),G(I,aa)),Pe.mathMl===!0&&(G(P,$i),G(I,ia),G(I,aa))),he.tagCheck=null,he.attributeCheck=null,Ri(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?he.tagCheck=e.ADD_TAGS:ki(e.ADD_TAGS)&&(P===F&&(P=Gi(P)),G(P,e.ADD_TAGS,et))),Ri(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?he.attributeCheck=e.ADD_ATTR:ki(e.ADD_ATTR)&&(I===fe&&(I=Gi(I)),G(I,e.ADD_ATTR,et))),Ri(e,`ADD_URI_SAFE_ATTR`)&&ki(e.ADD_URI_SAFE_ATTR)&&G(ze,e.ADD_URI_SAFE_ATTR,et),Ri(e,`FORBID_CONTENTS`)&&ki(e.FORBID_CONTENTS)&&(Fe===Ie&&(Fe=Gi(Fe)),G(Fe,e.FORBID_CONTENTS,et)),Ri(e,`ADD_FORBID_CONTENTS`)&&ki(e.ADD_FORBID_CONTENTS)&&(Fe===Ie&&(Fe=Gi(Fe)),G(Fe,e.ADD_FORBID_CONTENTS,et)),Me&&(P[`#text`]=!0),xe&&G(P,[`html`,`head`,`body`]),P.table&&(G(P,[`tbody`]),delete pe.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Vi(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Vi(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=x;x=e.TRUSTED_TYPES_POLICY;try{S=E(``)}catch(e){throw x=t,e}}else e.TRUSTED_TYPES_POLICY===null?(x=void 0,S=``):(x===void 0&&(x=te()),x&&typeof S==`string`&&(S=E(``)));vi&&vi(e),tt=e},at=G({},[...Xi,...Zi,...Qi]),ot=G({},[...$i,...ea]),st=function(e,t,n){return t.namespaceURI===He?e===`svg`:t.namespaceURI===Ve?e===`svg`&&(n===`annotation-xml`||Je[n]):!!at[e]},ct=function(e,t,n){return t.namespaceURI===He?e===`math`:t.namespaceURI===z?e===`math`&&Xe[n]:!!ot[e]},lt=function(e,t,n){return t.namespaceURI===z&&!Xe[n]||t.namespaceURI===Ve&&!Je[n]?!1:!ot[e]&&(Ze[e]||!at[e])},ut=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:Ue,tagName:`template`});let n=U(e.tagName),r=U(t.tagName);return Ge[e.namespaceURI]?e.namespaceURI===z?st(n,t,r):e.namespaceURI===Ve?ct(n,t,r):e.namespaceURI===He?lt(n,t,r):!!(Qe===`application/xhtml+xml`&&Ge[e.namespaceURI]):!1},dt=function(e){Di(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw Vi(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},ft=function(e){let t=h(e);if(t){let e=[];wi(t,t=>{Di(e,t)}),wi(e,e=>{try{p(e)}catch{}})}let n=v(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},pt=function(e,n){try{Di(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Di(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Ee||De)try{dt(n)}catch{}else try{n.setAttribute(e,``)}catch{}},mt=function(e){let t=v(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||I[et(i)]))try{e.removeAttribute(i)}catch{}}},ht=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(y?y(e):e.nodeType)===ba.element&&mt(e);let n=h(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},B=function(e){let t=null,r=null;if(Te)e=`<remove></remove>`+e;else{let t=Ai(e,/^[\r\n\t ]+/);r=t&&t[0]}Qe===`application/xhtml+xml`&&Ue===He&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?E(e):e;if(Ue===He)try{t=new l().parseFromString(i,Qe)}catch{}if(!t||!t.documentElement){t=ne.createDocument(Ue,`template`,null);try{t.documentElement.innerHTML=We?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ue===He?A.call(t,xe?`html`:`body`)[0]:xe?t.documentElement:a},gt=function(e){return k.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},_t=function(e){return e=ji(e,ie,` `),e=ji(e,ae,` `),e=ji(e,oe,` `),e},vt=function(e){e.normalize();let t=k.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;)n.data=_t(n.data),n=t.nextNode();let r=e.querySelectorAll?.call(e,`template`);r&&wi(r,e=>{yt(e.content)&&vt(e.content)})},V=function(e){let t=b?b(e):null;return typeof t!=`string`||et(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},yt=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===ba.documentFragment}catch{return!1}},bt=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function xt(e,n,r){e.length!==0&&wi(e,e=>{e.call(t,n,r,tt)})}let St=function(e,t){return!!(be&&e.hasChildNodes()&&!bt(e.firstElementChild)&&Bi(ga,e.textContent)&&Bi(ga,e.innerHTML)||be&&e.namespaceURI===He&&t===`style`&&bt(e.firstElementChild)||e.nodeType===ba.processingInstruction||be&&e.nodeType===ba.comment&&Bi(_a,e.data))},Ct=function(e,t){if(!pe[t]&&Dt(t)&&(L.tagNameCheck instanceof RegExp&&Bi(L.tagNameCheck,t)||L.tagNameCheck instanceof Function&&L.tagNameCheck(t)))return!1;if(Me&&!Fe[t]){let t=g(e),n=h(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=Ne?n[i]:f(n[i],!0);t.insertBefore(r,m(e))}}}return dt(e),!0},wt=function(e){if(xt(M.beforeSanitizeElements,e,null),V(e))return dt(e),!0;let n=et(b?b(e):e.nodeName);if(xt(M.uponSanitizeElement,e,{tagName:n,allowedTags:P}),St(e,n))return dt(e),!0;if(pe[n]||!(he.tagCheck instanceof Function&&he.tagCheck(n))&&!P[n])return Ct(e,n);if((y?y(e):e.nodeType)===ba.element&&!ut(e)||(n===`noscript`||n===`noembed`||n===`noframes`)&&Bi(va,e.innerHTML))return dt(e),!0;if(ye&&e.nodeType===ba.text){let n=_t(e.textContent);e.textContent!==n&&(Di(t.removed,{element:e.cloneNode()}),e.textContent=n)}return xt(M.afterSanitizeElements,e,null),!1},Tt=function(e,t,r){if(me[t]||ke&&(t===`id`||t===`name`)&&(r in n||r in nt))return!1;let i=I[t]||he.attributeCheck instanceof Function&&he.attributeCheck(t,e);if(!(_e&&Bi(se,t))&&!(ge&&Bi(ce,t))){if(!i){if(!(Dt(e)&&(L.tagNameCheck instanceof RegExp&&Bi(L.tagNameCheck,e)||L.tagNameCheck instanceof Function&&L.tagNameCheck(e))&&(L.attributeNameCheck instanceof RegExp&&Bi(L.attributeNameCheck,t)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(t,e))||t===`is`&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&Bi(L.tagNameCheck,r)||L.tagNameCheck instanceof Function&&L.tagNameCheck(r))))return!1}else if(!ze[t]&&!Bi(de,ji(r,le,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Mi(r,`data:`)===0&&Le[e])&&!(ve&&!Bi(N,ji(r,le,``)))&&r)return!1}return!0},Et=G({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Dt=function(e){return!Et[U(e)]&&Bi(ue,e)},Ot=function(e,t,n,r){if(x&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return E(r);case`TrustedScriptURL`:return D(r)}return r},kt=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),V(e)?dt(e):Ei(t.removed)}catch{pt(n,e)}},At=function(e){xt(M.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||V(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:I,forceKeepAttr:void 0},r=t.length,i=et(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=et(o),u=c,d=o===`value`?u:Ni(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,xt(M.uponSanitizeAttribute,e,n),d=n.attrValue,Ae&&(l===`id`||l===`name`)&&Mi(d,je)!==0&&(pt(o,e),d=je+d),be&&Bi(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){pt(o,e);continue}if(l===`attributename`&&Ai(d,`href`)){pt(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){pt(o,e);continue}if(!R&&Bi(ya,d)){pt(o,e);continue}if(ye&&(d=_t(d)),!Tt(i,l,d)){pt(o,e);continue}d=Ot(i,l,s,d),d!==u&&kt(e,o,s,d)}}xt(M.afterSanitizeAttributes,e,null)},jt=function(e){let t=null,n=gt(e);for(xt(M.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(xt(M.uponSanitizeShadowNode,t,null),wt(t),At(t),yt(t.content)&&jt(t.content),(y?y(t):t.nodeType)===ba.element){let e=_(t);yt(e)&&(Mt(e),jt(e))}xt(M.afterSanitizeShadowDOM,e,null)},Mt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){jt(e.shadow);continue}let n=e.node,r=(y?y(n):n.nodeType)===ba.element,i=h(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=b?b(n):null;if(typeof e==`string`&&et(e)===`template`){let e=n.content;yt(e)&&t.push({node:e,shadow:null})}}if(r){let e=_(n);yt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(We=!e,We&&(e=`<!-->`),typeof e!=`string`&&!bt(e)&&(e=Ki(e),typeof e!=`string`))throw Vi(`dirty is not a string, aborting`);if(!t.isSupported)return e;Se?(P=Ce,I=we):it(n),(M.uponSanitizeElement.length>0||M.uponSanitizeAttribute.length>0)&&(P=Gi(P)),M.uponSanitizeAttribute.length>0&&(I=Gi(I)),t.removed=[];let c=Ne&&typeof e!=`string`&&bt(e);if(c){let t=b?b(e):e.nodeName;if(typeof t==`string`){let e=et(t);if(!P[e]||pe[e])throw Vi(`root node is forbidden and cannot be sanitized in-place`)}if(V(e))throw Vi(`root node is clobbered and cannot be sanitized in-place`);try{Mt(e)}catch(t){throw ft(e),t}}else if(bt(e))i=B(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===ba.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Mt(a);else{if(!Ee&&!ye&&!xe&&e.indexOf(`<`)===-1)return x&&Oe?E(e):e;if(i=B(e),!i)return Ee?null:Oe?S:``}i&&Te&&dt(i.firstChild);let l=gt(c?e:i);try{for(;o=l.nextNode();)wt(o),At(o),yt(o.content)&&jt(o.content)}catch(t){throw c&&ft(e),t}if(c)return wi(t.removed,e=>{e.element&&ht(e.element)}),ye&&vt(e),e;if(Ee){if(ye&&vt(i),De)for(s=re.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(I.shadowroot||I.shadowrootmode)&&(s=j.call(r,s,!0)),s}let u=xe?i.outerHTML:i.innerHTML;return xe&&P[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Bi(ma,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
26
- `+u),ye&&(u=_t(u)),x&&Oe?E(u):u},t.setConfig=function(){it(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),Se=!0,Ce=P,we=I},t.clearConfig=function(){tt=null,Se=!1,Ce=null,we=null,x=C,S=``},t.isValidAttribute=function(e,t,n){return tt||it({}),Tt(et(e),et(t),n)},t.addHook=function(e,t){typeof t==`function`&&Ri(M,e)&&Di(M[e],t)},t.removeHook=function(e,t){if(Ri(M,e)){if(t!==void 0){let n=Ti(M[e],t);return n===-1?void 0:Oi(M[e],n,1)[0]}return Ei(M[e])}},t.removeHooks=function(e){Ri(M,e)&&(M[e]=[])},t.removeAllHooks=function(){M=Ca()},t}var Ea=Ta(),Da=[`http`,`https`,`mailto`,`tel`],Oa=new Set([`href`,`src`,`action`,`formaction`,`xlink:href`,`poster`,`data`]);function ka(e,t,n){let r=e.replace(/[\u0000-\u0020]+/g,``).toLowerCase();if(r===``)return!0;if(r.startsWith(`//`))return n;let i=/^([a-z][a-z0-9+.-]*):/.exec(r)?.[1];return i===void 0?!0:t.includes(i)}function Aa(e,t={}){if(typeof e!=`string`||e===``)return``;let n=[...t.allowedTags??[]],r=t.allowedAttributes??{},i=(t.allowedSchemes??Da).map(e=>e.toLowerCase()),a=t.allowProtocolRelative??!1,o=new Set,s={};for(let[e,t]of Object.entries(r)){let n=new Set(t.map(e=>e.toLowerCase()));s[e.toLowerCase()]=n;for(let e of n)o.add(e)}Ea.addHook(`uponSanitizeAttribute`,(e,t)=>{let n=e.tagName.toLowerCase(),r=t.attrName.toLowerCase();if(!s[n]?.has(r)){t.keepAttr=!1;return}Oa.has(r)&&!ka(t.attrValue,i,a)&&(t.keepAttr=!1)});try{return Ea.sanitize(e,{ALLOWED_TAGS:n,ALLOWED_ATTR:[...o],ALLOW_DATA_ATTR:!1,ALLOW_ARIA_ATTR:!1})}finally{Ea.removeHook(`uponSanitizeAttribute`)}}var ja=Object.freeze({allowedTags:[`p`,...rn,`blockquote`,`pre`,`code`,`hr`,`br`,`ul`,`ol`,`li`,`figure`,`figcaption`,`strong`,`em`,`s`,`u`,`mark`,`sub`,`sup`,`kbd`,`small`,`cite`,`abbr`,`a`,`span`],allowedAttributes:{a:[`href`,`title`],abbr:[`title`],code:[`data-language`]},allowedSchemes:[`http`,`https`,`mailto`,`tel`],allowProtocolRelative:!1});function Ma(e,t=ja){return typeof e!=`string`||e===``?``:Aa(e,{allowedTags:[...t.allowedTags],allowedAttributes:Object.fromEntries(Object.entries(t.allowedAttributes).map(([e,t])=>[e,[...t]])),allowedSchemes:t.allowedSchemes?[...t.allowedSchemes]:[`http`,`https`,`mailto`,`tel`],allowProtocolRelative:t.allowProtocolRelative??!1})}var Na=(0,z.createContext)(ja);Na.Provider;function Pa(){return(0,z.useContext)(Na)}var Fa=`[a-z0-9-]+=(?:"[^"]*"|'[^']*'|[^\\s\\]'"]+)`,Ia=`[a-z0-9-]+(?:\\s+${Fa})*`,La=RegExp(`\\[\\[(${Ia})\\s*\\]\\]|\\[([a-z0-9-]+)((?:\\s+${Fa})*)\\s*\\]`,`g`),Ra=/([a-z0-9-]+)=(?:"([^"]*)"|'([^']*)'|([^\s\]'"]+))/g;function za(e,t,n){return e.includes(`[`)?e.replace(La,(e,r,i,a)=>{if(r!==void 0)return`[${r}]`;let o=i===void 0?void 0:t.get(i);return o?Ua(Va(o,Ba(a),n)):e}):e}function Ba(e){let t={};if(!e)return t;for(let n of e.matchAll(Ra)){let e=n[1];e!==void 0&&(t[e]=n[2]??n[3]??n[4]??``)}return t}function Va(e,t,n){try{let r=e.render({atts:t,context:n});return typeof r==`string`?r:(Wa(`Shortcode [${e.name}] returned a non-string; rendered empty.`),``)}catch(t){return Wa(`Shortcode [${e.name}] threw; rendered empty.`,t),``}}var Ha={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function Ua(e){return e.replace(/[&<>"']/g,e=>Ha[e]??e)}function Wa(e,t){Ga()&&(t===void 0?console.warn(`[plumix:blocks] ${e}`):console.warn(`[plumix:blocks] ${e}`,t))}function Ga(){return!1}function Ka({attrs:e,context:t}){let n=Pa();return(0,z.isValidElement)(e.body)?e.body:typeof e.body==`string`?(0,B.jsx)(`div`,{dangerouslySetInnerHTML:{__html:Ma(t.shortcodes?za(e.body,t.shortcodes,{siteSettings:t.siteSettings,locale:t.locale,entry:t.entry}):e.body,n)}}):(0,B.jsx)(`div`,{})}var qa=tn({name:`core/rich-text`,title:{id:`block.core.rich-text.title`,message:`Rich text`},icon:`Type`,category:`text`,keywords:[{id:`block.core.rich-text.keyword.paragraph`,message:`paragraph`},{id:`block.core.rich-text.keyword.text`,message:`text`},{id:`block.core.rich-text.keyword.body`,message:`body`}],inputs:[{name:`body`,type:`richtext`,label:{id:`block.core.rich-text.input.body.label`,message:`Body`}}],defaults:{body:`<p>Enter text here…</p>`},render:Ka}),Ja=tn({name:`core/section`,title:{id:`block.core.section.title`,message:`Section`},icon:`LayoutTemplate`,category:`layout`,selfSeam:!0,inputs:[{name:`maxWidth`,type:`text`,label:{id:`block.core.section.input.maxWidth.label`,message:`Content max width`}},{name:`content`,type:`slot`,label:{id:`block.core.section.input.content.label`,message:`Content`},defaultChildren:[{id:`section-text`,name:`core/rich-text`}]}],defaults:{maxWidth:`1200px`},defaultStyles:{large:{paddingTop:`3rem`,paddingBottom:`3rem`,paddingLeft:`1.25rem`,paddingRight:`1.25rem`}},render:({attrs:e,blockProps:t})=>{let n=typeof e.maxWidth==`string`&&e.maxWidth!==``?e.maxWidth:`1200px`,r=e.content,i={maxWidth:n,marginInline:`auto`};return(0,B.jsx)(`section`,{...t,children:(0,B.jsx)(`div`,{"data-plumix-section-inner":``,style:i,children:r?(0,B.jsx)(r,{}):null})})}}),Ya=tn({name:`core/separator`,title:{id:`block.core.separator.title`,message:`Separator`},icon:`Minus`,category:`text`,selfSeam:!0,defaultStyles:{large:{border:`none`,height:`var(--plumix-separator-thickness, 1px)`,backgroundColor:`var(--plumix-separator-color, #e5e7eb)`,marginTop:`var(--plumix-separator-margin-y, 1.5rem)`,marginBottom:`var(--plumix-separator-margin-y, 1.5rem)`}},render:({blockProps:e})=>(0,B.jsx)(`hr`,{...e})}),Xa=[`left`,`center`,`right`],Za=3,Qa={name:`align`,type:`select`,label:{id:`block.core.table.input.align.label`,message:`Align`},placeholder:{id:`block.core.table.input.align.placeholder`,message:`Left`},options:[{label:{id:`block.core.table.input.align.option.left`,message:`Left`},value:`left`},{label:{id:`block.core.table.input.align.option.center`,message:`Center`},value:`center`},{label:{id:`block.core.table.input.align.option.right`,message:`Right`},value:`right`}]},$a=[`table{border-collapse:collapse;width:var(--plumix-table-width,100%)}`,`th,td{border:var(--plumix-table-border,1px solid #d0d7de);padding:var(--plumix-table-cell-padding,0.5rem 0.75rem);text-align:left;vertical-align:top}`,`th{background:var(--plumix-table-header-bg,#f6f8fa);font-weight:var(--plumix-table-header-weight,600)}`,`th[data-align=center],td[data-align=center]{text-align:center}`,`th[data-align=right],td[data-align=right]{text-align:right}`].join(``);function eo(e,t,n){return Array.from({length:Za},(r,i)=>({id:`${e}-c${i+1}`,name:t,attrs:{text:n(i+1)}}))}var to=[{id:`row-header`,name:`core/table-header-row`,attrs:{cells:eo(`row-header`,`core/table-header-cell`,e=>`Header ${e}`)}},{id:`row-1`,name:`core/table-body-row`,attrs:{cells:eo(`row-1`,`core/table-cell`,e=>`Cell ${e}`)}},{id:`row-2`,name:`core/table-body-row`,attrs:{cells:eo(`row-2`,`core/table-cell`,e=>`Cell ${e}`)}}];function no(e){return typeof e==`string`&&Xa.includes(e)?e:void 0}var ro=tn({name:`core/table`,title:{id:`block.core.table.title`,message:`Table`},icon:`Table`,category:`text`,inputs:[{name:`rows`,type:`slot`,label:{id:`block.core.table.input.rows.label`,message:`Rows`},rawSlot:!0,allowedBlocks:[`core/table-header-row`,`core/table-body-row`],defaultChildren:to}],defaults:{},render:({attrs:e})=>{let t=e.rows;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`style`,{href:`plumix-table-theme`,precedence:`default`,children:$a}),(0,B.jsx)(`table`,{children:(0,B.jsx)(`tbody`,{children:t?(0,B.jsx)(t,{}):null})})]})}}),io=tn({name:`core/table-header-row`,title:{id:`block.core.table-header-row.title`,message:`Header Row`},icon:`Rows`,category:`text`,selfSeam:!0,inserter:!1,inputs:[{name:`cells`,type:`slot`,label:{id:`block.core.table-header-row.input.cells.label`,message:`Cells`},rawSlot:!0,allowedBlocks:[`core/table-header-cell`]}],defaults:{},render:({attrs:e,blockProps:t})=>{let n=e.cells;return(0,B.jsx)(`tr`,{"data-header":``,...t,children:n?(0,B.jsx)(n,{}):null})}}),ao=tn({name:`core/table-body-row`,title:{id:`block.core.table-body-row.title`,message:`Body Row`},icon:`Rows`,category:`text`,selfSeam:!0,inserter:!1,inputs:[{name:`cells`,type:`slot`,label:{id:`block.core.table-body-row.input.cells.label`,message:`Cells`},rawSlot:!0,allowedBlocks:[`core/table-cell`]}],defaults:{},render:({attrs:e,blockProps:t})=>{let n=e.cells;return(0,B.jsx)(`tr`,{...t,children:n?(0,B.jsx)(n,{}):null})}}),oo=tn({name:`core/table-header-cell`,title:{id:`block.core.table-header-cell.title`,message:`Header Cell`},icon:`AlignLeft`,category:`text`,selfSeam:!0,inserter:!1,inputs:[{name:`text`,type:`text`,label:{id:`block.core.table-header-cell.input.text.label`,message:`Text`}},Qa],defaults:{text:``},render:({attrs:e,blockProps:t})=>{let{text:n=``}=e;return(0,B.jsx)(`th`,{scope:`col`,"data-align":no(e.align),...t,children:n})}}),K=tn({name:`core/table-cell`,title:{id:`block.core.table-cell.title`,message:`Cell`},icon:`AlignLeft`,category:`text`,selfSeam:!0,inserter:!1,inputs:[{name:`text`,type:`text`,label:{id:`block.core.table-cell.input.text.label`,message:`Text`}},Qa],defaults:{text:``},render:({attrs:e,blockProps:t})=>{let{text:n=``}=e;return(0,B.jsx)(`td`,{"data-align":no(e.align),...t,children:n})}}),q=tn({name:`core/video`,title:{id:`block.core.video.title`,message:`Video`},icon:`Video`,category:`media`,description:{id:`block.core.video.description`,message:`HTML <video> with browser controls.`},keywords:[{id:`block.core.video.keyword.movie`,message:`movie`},{id:`block.core.video.keyword.clip`,message:`clip`},{id:`block.core.video.keyword.media`,message:`media`}],selfSeam:!0,inputs:[{name:`src`,type:`url`,label:{id:`block.core.video.input.src.label`,message:`Source URL`}},{name:`poster`,type:`url`,label:{id:`block.core.video.input.poster.label`,message:`Poster image URL`}},{name:`controls`,type:`boolean`,label:{id:`block.core.video.input.controls.label`,message:`Show controls`}},{name:`autoplay`,type:`boolean`,label:{id:`block.core.video.input.autoplay.label`,message:`Autoplay`}},{name:`loop`,type:`boolean`,label:{id:`block.core.video.input.loop.label`,message:`Loop`}},{name:`muted`,type:`boolean`,label:{id:`block.core.video.input.muted.label`,message:`Muted`}},{name:`playsinline`,type:`boolean`,label:{id:`block.core.video.input.playsinline.label`,message:`Plays inline (iOS)`}}],defaults:{src:``,poster:``,controls:!0,autoplay:!1,loop:!1,muted:!1,playsinline:!0},defaultStyles:{large:{display:`block`,width:`var(--plumix-video-width, 100%)`,aspectRatio:`var(--plumix-video-aspect, 16 / 9)`,objectFit:`contain`,backgroundColor:`var(--plumix-video-bg, #000)`,borderRadius:`var(--plumix-video-radius, 6px)`}},render:({attrs:e,blockProps:t})=>{let n=typeof e.src==`string`&&e.src.length>0?e.src:void 0,r=typeof e.poster==`string`&&e.poster.length>0?e.poster:void 0;return(0,B.jsx)(`video`,{...t,src:n,poster:r,controls:e.controls!==!1,autoPlay:e.autoplay===!0,loop:e.loop===!0,muted:e.muted===!0,playsInline:e.playsinline!==!1})}}),so=Object.freeze([qa,Ya,Vr,ai,Ja,Yr,Wr,sn,Zr,q,ii,ro,io,ao,oo,K,oi]),co=`plumix-manifest`;function lo(e){return(t,n)=>{let r=t.priority??1/0,i=n.priority??1/0;return r===i?e(t).localeCompare(e(n)):r-i}}function uo(e,t){let n=t??{},r={};for(let t of e)for(let e of t.fields)r[e.key]=n[e.key]??e.default;return r}RegExp(`<script id="${co}"[^>]*>[\\s\\S]*?<\/script>`,`i`);function fo(e=document){let t=e.getElementById(co);if(!t)return{};let n=t.textContent;if(n.trim()===``)return{};try{return mo(JSON.parse(n))}catch{return console.error(`[plumix] failed to parse #${co} payload; falling back to an empty manifest`),{}}}var po=[`entryTypes`,`termTaxonomies`,`entryMetaBoxes`,`termMetaBoxes`,`userMetaBoxes`,`settingsGroups`,`settingsPages`,`adminNav`,`fieldTypes`,`blocks`,`marks`,`patterns`];function mo(e){if(!e||typeof e!=`object`)return{};let t=e,n={};for(let e of po)Array.isArray(t[e])&&(n[e]=t[e]);return t.tokens&&typeof t.tokens==`object`&&(n.tokens=t.tokens),t.i18n&&typeof t.i18n==`object`&&(n.i18n=t.i18n),t.pluginI18n&&typeof t.pluginI18n==`object`&&(n.pluginI18n=t.pluginI18n),n}var ho=fo();function go(e=ho){return e.tokens??{}}function _o(e=ho){return e.breakpoints??I}function vo(e=ho){return e.patterns??[]}function yo(e,t=ho){return(t.entryTypes??[]).find(t=>t.adminSlug===e)}function bo(e,t=ho){return(t.entryTypes??[]).find(t=>t.name===e)}function xo(e,t=ho){let n=new Set(e);return(t.entryTypes??[]).filter(e=>{if(e.showInSidebar===!1)return!1;let t=`entry:${e.capabilityType??e.name}:edit_own`;return n.has(t)})}function So(e,t=ho){return(t.termTaxonomies??[]).find(t=>t.name===e)}function Co(e,t=ho){let n=new Set(e);return(t.termTaxonomies??[]).filter(e=>n.has(`term:${e.name}:read`))}function wo(e,t=ho){return e.includes(`settings:manage`)?t.settingsPages??[]:[]}function To(e,t=ho){let n=new Set(e);return(t.dashboardWidgets??[]).filter(e=>!e.capability||n.has(e.capability))}function Eo(e,t,n){return(e??[]).filter(e=>!(!n(e)||e.capability!==void 0&&!t.has(e.capability))).map(e=>({...e,fields:e.fields.filter(e=>e.capability===void 0||t.has(e.capability))})).sort(lo(e=>e.id))}function Do(e,t,n=ho){return Eo(n.entryMetaBoxes,new Set(t),t=>t.entryTypes.includes(e))}function Oo(e,t,n=ho){return Eo(n.termMetaBoxes,new Set(t),t=>t.termTaxonomies.includes(e))}function ko(e,t=ho){return Eo(t.userMetaBoxes,new Set(e),()=>!0)}function Ao(e,t=ho){return(t.settingsPages??[]).find(t=>t.name===e)}function jo(e,t=ho){return(t.settingsGroups??[]).find(t=>t.name===e)}function Mo(e,t=ho){return e.groups.map(e=>jo(e,t)).filter(e=>e!==void 0)}function No(e,t=ho){let n=new Set(e);return(t.adminNav??[]).map(e=>({...e,items:e.items.filter(e=>!e.capability||n.has(e.capability))})).filter(e=>e.items.length>0)}function Po(e,t=ho){for(let n of t.adminNav??[])for(let t of n.items)if(t.to===e&&t.component)return t}var Fo={dashboard:{id:`breadcrumb.dashboard`},entries:{id:`breadcrumb.entries`},terms:{id:`breadcrumb.terms`},users:{id:`breadcrumb.users`},settings:{id:`breadcrumb.settings`},profile:{id:`breadcrumb.profile`},admin:{id:`breadcrumb.admin`},create:{id:`breadcrumb.create`},edit:{id:`breadcrumb.edit`},addNew:{id:`breadcrumb.addNew`},editUser:{id:`breadcrumb.editUser`}};function Io(e){if(e===`/`)return[{label:Fo.dashboard}];let t=e.split(`/`).filter(e=>e.length>0);if(t.length===0)return[{label:Fo.dashboard}];switch(t[0]){case`entries`:return Lo(t);case`terms`:return Ro(t);case`users`:return zo(t);case`settings`:return Vo(t);case`profile`:return[{label:Fo.profile}];case`pages`:return Bo(t);default:return[{label:Fo.admin}]}}function Lo(e){let t=e[1];if(t===void 0)return[{label:Fo.entries}];let n=yo(t),r={label:n?.labels?.plural??n?.label??t,to:`/entries/${t}`};return e[2]===`create`?[{label:Fo.entries},r,{label:Fo.create}]:e[3]===`edit`?[{label:Fo.entries},r,{label:Fo.edit}]:[{label:Fo.entries},{...r,to:void 0}]}function Ro(e){let t=e[1];if(t===void 0)return[{label:Fo.terms}];let n={label:So(t)?.label??t,to:`/terms/${t}`};return e[2]===`create`?[{label:Fo.terms},n,{label:Fo.create}]:e[3]===`edit`?[{label:Fo.terms},n,{label:Fo.edit}]:[{label:Fo.terms},{...n,to:void 0}]}function zo(e){if(e[1]===void 0)return[{label:Fo.users}];let t={label:Fo.users,to:`/users`};return e[1]===`create`?[t,{label:Fo.addNew}]:e[2]===`edit`?[t,{label:Fo.editUser}]:[{label:Fo.users}]}function Bo(e){let t=Po(`/${e.join(`/`)}`);if(t)return[{label:t.label}];let n=e[e.length-1];return n===void 0?[{label:Fo.admin}]:[{label:n}]}function Vo(e){let t=e[1];if(t===void 0)return[{label:Fo.settings}];let n=Ao(t);return[{label:Fo.settings,to:`/settings`},{label:n?.label??t}]}var Ho=()=>v.auth.session.queryOptions({input:{},staleTime:1/0}),Uo=v.auth.session.queryKey({input:{}});async function Wo(e){let t=await e.ensureQueryData(Ho());if(!t.user)throw x({to:t.needsBootstrap?`/bootstrap`:`/login`});return{user:t.user}}var Go=(0,z.createContext)(null);function Ko(e){return e===`dark`||e===`light`||e===`system`}function qo(e,t){let n=localStorage.getItem(e);return Ko(n)?n:t}function Jo(e,t){if(e.classList.remove(`light`,`dark`),t===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`);e.classList.add(t.matches?`dark`:`light`);return}e.classList.add(t)}function Yo({children:e,defaultTheme:t=`system`,storageKey:n=`plumix-admin-theme`}){let[r,i]=(0,z.useState)(()=>qo(n,t));(0,z.useEffect)(()=>{let e=window.document.documentElement;if(Jo(e,r),r!==`system`)return;let t=window.matchMedia(`(prefers-color-scheme: dark)`),n=()=>Jo(e,`system`);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)},[r]);let a=(0,z.useCallback)(e=>{localStorage.setItem(n,e),i(e)},[n]),o=(0,z.useMemo)(()=>({theme:r,setTheme:a}),[r,a]);return(0,B.jsx)(Go.Provider,{value:o,children:e})}function Xo(){let e=(0,z.useContext)(Go);if(e===null)throw Error(`useTheme must be used within a ThemeProvider`);return e}var Zo=n({Toaster:()=>Os,toast:()=>fs,useSonner:()=>Ds});function Qo(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var $o=e=>{switch(e){case`success`:return ns;case`info`:return is;case`warning`:return rs;case`error`:return as;default:return null}},es=Array(12).fill(0),ts=({visible:e,className:t})=>z.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},z.createElement(`div`,{className:`sonner-spinner`},es.map((e,t)=>z.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),ns=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),rs=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),is=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),as=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),os=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},z.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),z.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),ss=()=>{let[e,t]=z.useState(document.hidden);return z.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},cs=1,ls=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:cs++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],z.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(ds(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||cs++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},us=(e,t)=>{let n=t?.id||cs++;return ls.addToast({title:e,...t,id:n}),n},ds=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,fs=Object.assign(us,{success:ls.success,info:ls.info,warning:ls.warning,error:ls.error,custom:ls.custom,message:ls.message,promise:ls.promise,dismiss:ls.dismiss,loading:ls.loading},{getHistory:()=>ls.toasts,getToasts:()=>ls.getActiveToasts()});Qo(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function ps(e){return e.label!==void 0}var ms=3,hs=`24px`,gs=`16px`,_s=4e3,vs=356,ys=14,bs=45,xs=200;function Ss(...e){return e.filter(Boolean).join(` `)}function Cs(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var ws=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[ee,E]=z.useState(null),[D,te]=z.useState(null),[O,ne]=z.useState(!1),[k,re]=z.useState(!1),[A,j]=z.useState(!1),[M,ie]=z.useState(!1),[ae,oe]=z.useState(!1),[se,ce]=z.useState(0),[N,le]=z.useState(0),ue=z.useRef(n.duration||y||_s),de=z.useRef(null),P=z.useRef(null),F=c===0,I=c+1<=o,fe=n.type,L=n.dismissible!==!1,pe=n.className||``,me=n.descriptionClassName||``,he=z.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),ge=z.useMemo(()=>n.closeButton??p,[n.closeButton,p]),_e=z.useMemo(()=>n.duration||y||_s,[n.duration,y]),ve=z.useRef(0),R=z.useRef(0),ye=z.useRef(0),be=z.useRef(null),[xe,Se]=b.split(`-`),Ce=z.useMemo(()=>s.reduce((e,t,n)=>n>=he?e:e+t.height,0),[s,he]),we=ss(),Te=n.invert||t,Ee=fe===`loading`;R.current=z.useMemo(()=>he*x+Ce,[he,Ce]),z.useEffect(()=>{ue.current=_e},[_e]),z.useEffect(()=>{ne(!0)},[]),z.useEffect(()=>{let e=P.current;if(e){let t=e.getBoundingClientRect().height;return le(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),z.useLayoutEffect(()=>{if(!O)return;let e=P.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,le(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[O,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let De=z.useCallback(()=>{re(!0),ce(R.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},xs)},[n,d,a,R]);z.useEffect(()=>{if(n.promise&&fe===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||we?(()=>{if(ye.current<ve.current){let e=new Date().getTime()-ve.current;ue.current-=e}ye.current=new Date().getTime()})():ue.current!==1/0&&(ve.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),De()},ue.current)),()=>clearTimeout(e)},[u,i,n,fe,we,De]),z.useEffect(()=>{n.delete&&(De(),n.onDismiss==null||n.onDismiss.call(n,n))},[De,n.delete]);function Oe(){return w?.loading?z.createElement(`div`,{className:Ss(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":fe===`loading`},w.loading):z.createElement(ts,{className:Ss(C?.loader,n?.classNames?.loader),visible:fe===`loading`})}let ke=n.icon||w?.[fe]||$o(fe);return z.createElement(`li`,{tabIndex:0,ref:P,className:Ss(_,pe,C?.toast,n?.classNames?.toast,C?.default,C?.[fe],n?.classNames?.[fe]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":O,"data-promise":!!n.promise,"data-swiped":ae,"data-removed":k,"data-visible":I,"data-y-position":xe,"data-x-position":Se,"data-index":c,"data-front":F,"data-swiping":A,"data-dismissible":L,"data-type":fe,"data-invert":Te,"data-swipe-out":M,"data-swipe-direction":D,"data-expanded":!!(u||S&&O),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${k?se:R.current}px`,"--initial-height":S?`auto`:`${N}px`,...m,...n.style},onDragEnd:()=>{j(!1),E(null),be.current=null},onPointerDown:e=>{e.button!==2&&(Ee||!L||(de.current=new Date,ce(R.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(j(!0),be.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(M||!L)return;be.current=null;let e=Number(P.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(P.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-de.current?.getTime(),i=ee===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=bs||a>.11){ce(R.current),n.onDismiss==null||n.onDismiss.call(n,n),te(ee===`x`?e>0?`right`:`left`:t>0?`down`:`up`),De(),ie(!0);return}else{var o,s;(o=P.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=P.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}oe(!1),j(!1),E(null)},onPointerMove:t=>{var n,r;if(!be.current||!L||window.getSelection()?.toString().length>0)return;let i=t.clientY-be.current.y,a=t.clientX-be.current.x,o=e.swipeDirections??Cs(b);!ee&&(Math.abs(a)>1||Math.abs(i)>1)&&E(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(ee===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)<Math.abs(i)?e:i}}else if(ee===`x`&&(o.includes(`left`)||o.includes(`right`)))if(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)<Math.abs(a)?e:a}(Math.abs(s.x)>0||Math.abs(s.y)>0)&&oe(!0),(n=P.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=P.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},ge&&!n.jsx&&fe!==`loading`?z.createElement(`button`,{"aria-label":T,"data-disabled":Ee,"data-close-button":!0,onClick:Ee||!L?()=>{}:()=>{De(),n.onDismiss==null||n.onDismiss.call(n,n)},className:Ss(C?.closeButton,n?.classNames?.closeButton)},w?.close??os):null,(fe||n.icon||n.promise)&&n.icon!==null&&(w?.[fe]!==null||n.icon)?z.createElement(`div`,{"data-icon":``,className:Ss(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Oe():null,n.type===`loading`?null:ke):null,z.createElement(`div`,{"data-content":``,className:Ss(C?.content,n?.classNames?.content)},z.createElement(`div`,{"data-title":``,className:Ss(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?z.createElement(`div`,{"data-description":``,className:Ss(v,me,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),z.isValidElement(n.cancel)?n.cancel:n.cancel&&ps(n.cancel)?z.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{ps(n.cancel)&&L&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),De())},className:Ss(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,z.isValidElement(n.action)?n.action:n.action&&ps(n.action)?z.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{ps(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&De())},className:Ss(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function Ts(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function Es(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?gs:hs;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}function Ds(){let[e,t]=z.useState([]);return z.useEffect(()=>ls.subscribe(e=>{if(e.dismiss){setTimeout(()=>{ht.flushSync(()=>{t(t=>t.filter(t=>t.id!==e.id))})});return}setTimeout(()=>{ht.flushSync(()=>{t(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[]),{toasts:e}}var Os=z.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=ms,toastOptions:g,dir:_=Ts(),gap:v=ys,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=z.useState([]),C=z.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=z.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[T,ee]=z.useState([]),[E,D]=z.useState(!1),[te,O]=z.useState(!1),[ne,k]=z.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),re=z.useRef(null),A=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),j=z.useRef(null),M=z.useRef(!1),ie=z.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||ls.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return z.useEffect(()=>ls.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{ht.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),z.useEffect(()=>{if(d!==`system`){k(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?k(`dark`):k(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{k(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{k(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),z.useEffect(()=>{x.length<=1&&D(!1)},[x]),z.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;D(!0),(t=re.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===re.current||re.current?.contains(document.activeElement))&&D(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),z.useEffect(()=>{if(re.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,M.current=!1)}},[re.current]),z.createElement(`section`,{ref:t,"aria-label":`${b} ${A}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?z.createElement(`ol`,{key:t,dir:_===`auto`?Ts():_,tabIndex:-1,ref:re,className:c,"data-sonner-toaster":!0,"data-sonner-theme":ne,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${T[0]?.height||0}px`,"--width":`${vs}px`,"--gap":`${v}px`,...m,...Es(l,u)},onBlur:e=>{M.current&&!e.currentTarget.contains(e.relatedTarget)&&(M.current=!1,j.current&&=(j.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||M.current||(M.current=!0,j.current=e.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{te||D(!1)},onDragEnd:()=>D(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||O(!0)},onPointerUp:()=>O(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>z.createElement(ws,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:te,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ie,toasts:C.filter(e=>e.position==n.position),heights:T.filter(e=>e.position==n.position),setHeights:ee,expandByDefault:o,gap:v,expanded:E,swipeDirections:e.swipeDirections}))):null}))});function ks(e){return(0,B.jsx)(Os,{className:`toaster group`,style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`},...e})}var As=`Plumix Admin`,js=b()({beforeLoad:async({context:e})=>{await e.queryClient.ensureQueryData(Ho())},component:Ms,notFoundComponent:Ps});function Ms(){Ns();let{theme:e}=Xo();return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(y,{}),(0,B.jsx)(ks,{theme:e})]})}function Ns(){let e=C({select:e=>e.location.pathname}),{i18n:t}=o();(0,z.useEffect)(()=>{let n=Io(e),r=n[n.length-1];if(!r){document.title=As;return}let i=typeof r.label==`string`?r.label:t._(r.label.id,r.values,{message:r.label.message});document.title=`${i} · ${As}`},[e,t])}function Ps(){return(0,B.jsx)($t,{testId:`not-found-page`,title:(0,B.jsx)(s,{id:`notFound.title`,message:`Not found`}),description:(0,B.jsx)(s,{id:`notFound.description`,message:`The page you're looking for doesn't exist or the resource isn't registered. Check the URL and try again.`})})}var Fs=E(`/_editor`)({beforeLoad:({context:e})=>Wo(e.queryClient),component:w(()=>V(()=>import(`./_editor-DTQYo5H1.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),`component`)}),Is=E(`/_authenticated`)({beforeLoad:({context:e})=>Wo(e.queryClient),component:w(()=>V(()=>import(`./_authenticated-BZbICTCy.js`),__vite__mapDeps([9,1,3,10,11,2,4,5,12,13,7,8,14,15,16,17,6,18,19,20,21,22]),import.meta.url),`component`)}),Ls=E(`/_auth`)({beforeLoad:async({context:e})=>{if((await e.queryClient.ensureQueryData(Ho())).user)throw x({to:`/`})},component:w(()=>V(()=>import(`./_auth-DwSMg4I8.js`),__vite__mapDeps([23,1,2,3,4,5]),import.meta.url),`component`)}),Rs=E(`/_authenticated/`)({component:w(()=>V(()=>import(`./_authenticated-X8_ZzeVN.js`),__vite__mapDeps([24,1,3,10,11,2,4,5,12,19,21,25,26,8,15,27,28,29,30]),import.meta.url),`component`)}),zs=E(`/_authenticated/profile`)({beforeLoad:({context:e})=>{throw x({to:`/users/$id/edit`,params:{id:e.user.id}})}}),Bs=()=>V(()=>import(`./login-DZOKYIF-.js`),__vite__mapDeps([31,1,3,10,11,2,4,5,32,26,8,16,22,21,33,7,30,34,35,17]),import.meta.url),Vs=ye({oauth_error:R(Ee()),magic_link_error:R(Ee()),email_change_error:R(Ee()),email_change_success:R(me([Ee(),Se()])),lang:R(Ee())}),Hs=E(`/_auth/login`)({validateSearch:Vs,beforeLoad:async({context:e})=>{if((await e.queryClient.ensureQueryData(Ho())).needsBootstrap)throw x({to:`/bootstrap`})},component:w(Bs,`component`)}),Us=ye({email:me([De(we(``)),Me],Ae({id:`login.email.invalid`}))}),Ws=ye({email:Me,name:R(ke,``)}),Gs=ye({lang:R(Ee())}),Ks=E(`/_auth/bootstrap`)({validateSearch:Gs,beforeLoad:async({context:e})=>{if(!(await e.queryClient.ensureQueryData(Ho())).needsBootstrap)throw x({to:`/login`})},component:w(()=>V(()=>import(`./bootstrap-BjA3jejx.js`),__vite__mapDeps([36,1,3,10,11,2,4,5,32,26,8,16,22,21,33,7,30,34,35]),import.meta.url),`component`)});function qs(e,t){return e.includes(t)}var Js={subscriber:{id:`userRole.subscriber`},contributor:{id:`userRole.contributor`},author:{id:`userRole.author`},editor:{id:`userRole.editor`},admin:{id:`userRole.admin`}},Ys={subscriber:{id:`userRole.long.subscriber`},contributor:{id:`userRole.long.contributor`},author:{id:`userRole.long.author`},editor:{id:`userRole.long.editor`},admin:{id:`userRole.long.admin`}};function Xs({...e}){return(0,B.jsx)(ae,{"data-slot":`select`,...e})}function Zs({...e}){return(0,B.jsx)(A,{"data-slot":`select-value`,...e})}function Qs({className:e,size:t=`default`,children:n,...r}){return(0,B.jsxs)(se,{"data-slot":`select-trigger`,"data-size":t,className:de(`border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='text-'])]:text-muted-foreground flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,B.jsx)(le,{asChild:!0,children:(0,B.jsx)(Ft,{className:`size-4 opacity-50`})})]})}function $s({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,B.jsx)(M,{children:(0,B.jsxs)(ne,{"data-slot":`select-content`,className:de(`bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1 rtl:data-[side=left]:translate-x-1 rtl:data-[side=right]:-translate-x-1`,e),position:n,align:r,...i,children:[(0,B.jsx)(tc,{}),(0,B.jsx)(j,{className:de(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,B.jsx)(nc,{})]})})}function ec({className:e,children:t,...n}){return(0,B.jsxs)(oe,{"data-slot":`select-item`,className:de(`focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,B.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute end-2 flex size-3.5 items-center justify-center`,children:(0,B.jsx)(re,{children:(0,B.jsx)(Pt,{className:`size-4`})})}),(0,B.jsx)(k,{children:t})]})}function tc({className:e,...t}){return(0,B.jsx)(te,{"data-slot":`select-scroll-up-button`,className:de(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,B.jsx)(It,{className:`size-4`})})}function nc({className:e,...t}){return(0,B.jsx)(ce,{"data-slot":`select-scroll-down-button`,className:de(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,B.jsx)(Ft,{className:`size-4`})})}var rc={page:1,role:`all`},ic=[`subscriber`,`contributor`,`author`,`editor`,`admin`];function ac(e){return ic.includes(e)}var oc=()=>V(()=>import(`./users-CICoUBVu.js`),__vite__mapDeps([37,1,3,10,11,2,4,5,12,38,8,13,7,14,15,16,17,6,39,40,26,41,33,30,21,25,27]),import.meta.url),sc=[`all`,...ic],cc=ye({page:R(be(De(Se(),Ce(),ve(1)),1),1),role:R(be(Te(sc),`all`),`all`),q:R(be(De(Ee(),L(),xe(200),pe(e=>e.length===0?void 0:e)),void 0))}),lc=E(`/_authenticated/users/`)({validateSearch:e=>ge(cc,e),beforeLoad:({context:e})=>{if(!qs(e.user.capabilities,`user:list`))throw x({to:`/`})},component:w(oc,`component`)}),uc=E(`/_authenticated/settings/`)({beforeLoad:({context:e})=>{if(!qs(e.user.capabilities,`settings:manage`))throw x({to:`/`})},component:w(()=>V(()=>import(`./settings-Bi5BNc6-.js`),__vite__mapDeps([42,1,10,3,2,4,5,20,12,21,26,8]),import.meta.url),`component`)}),dc=E(`/_authenticated/mailer/`)({beforeLoad:({context:e})=>{if(!qs(e.user.capabilities,`settings:manage`))throw x({to:`/`})},component:w(()=>V(()=>import(`./mailer-Dyww1jwK.js`),__vite__mapDeps([43,1,3,10,11,21,35,44,26,8,16,33,7,4,30,34,45]),import.meta.url),`component`)}),fc=E(`/_authenticated/allowed-domains/`)({beforeLoad:({context:e})=>{if(!qs(e.user.capabilities,`settings:manage`))throw x({to:`/`})},component:w(()=>V(()=>import(`./allowed-domains-BD1FIWo8.js`),__vite__mapDeps([46,1,3,10,11,47,12,21,35,44,26,8,16,41,7,4,14,33,30,34]),import.meta.url),`component`)}),pc=E(`/_authenticated/users/create`)({beforeLoad:({context:e})=>{if(!qs(e.user.capabilities,`user:create`))throw x({to:`/users`,search:rc})},component:w(()=>V(()=>import(`./create-CbIyckzX.js`),__vite__mapDeps([48,1,3,10,11,2,4,5,49,12,50,21,35,44,26,8,16,33,7,30,34]),import.meta.url),`component`)}),mc={loadingAria:{id:`settings.page.loading`},loadFailed:{id:`settings.page.loadFailed`},saved:{id:`settings.page.saved`},saveFailed:{id:`settings.page.saveFailed`}};function hc({ariaLabel:e,testId:t}){return(0,B.jsxs)(`div`,{role:`status`,"aria-live":`polite`,"aria-label":e,"data-testid":t,className:`mx-auto flex w-full max-w-xl flex-col gap-4`,children:[(0,B.jsx)(Ie,{className:`h-4 w-24`}),(0,B.jsxs)(Fe,{children:[(0,B.jsxs)(Ne,{children:[(0,B.jsx)(Ie,{className:`h-6 w-48`}),(0,B.jsx)(Ie,{className:`h-4 w-72`})]}),(0,B.jsxs)(Pe,{className:`flex flex-col gap-4`,children:[(0,B.jsx)(Ie,{className:`h-10 w-full`}),(0,B.jsx)(Ie,{className:`h-10 w-full`}),(0,B.jsx)(Ie,{className:`h-10 w-full`})]})]})]})}var gc=E(`/_authenticated/settings/$page`)({beforeLoad:({context:e,params:t})=>{let n=Ao(t.page);if(!n||!qs(e.user.capabilities,`settings:manage`))throw T();return{page:n}},loader:({context:e})=>{let t=Mo(e.page);return Promise.all(t.map(t=>e.queryClient.ensureQueryData(v.settings.get.queryOptions({input:{group:t.name}}))))},pendingComponent:_c,errorComponent:w(()=>V(()=>import(`./_page-Jgddg0I9.js`),__vite__mapDeps([51,1,10,3]),import.meta.url),`errorComponent`),component:w(()=>V(()=>import(`./_page-CAfqCxMM.js`),__vite__mapDeps([52,1,3,10,11,21,26,8,33,7,4,30,53,13,14,12,15,16,17,6,40,39,41,54,55]),import.meta.url),`component`)});function _c(){let{i18n:e}=o();return(0,B.jsx)(hc,{ariaLabel:e._(mc.loadingAria.id,void 0,{message:mc.loadingAria.message}),testId:`settings-page-loading`})}var vc=E(`/_authenticated/pages/$`)({beforeLoad:({context:e,params:t})=>{let n=t._splat;if(!n)throw T();let r=Po(`/pages/${n}`);if(!r)throw T();if(r.capability&&!qs(e.user.capabilities,r.capability))throw x({to:`/`});return{navItem:r}},component:w(()=>V(()=>import(`./_-o9O44bb8.js`),__vite__mapDeps([56,1,3,10,21,29,30,8]),import.meta.url),`component`)}),yc=()=>V(()=>import(`./device-CDHXIM5L.js`),__vite__mapDeps([57,1,3,10,11,40,7,4,8,12,21,35,44,26,16,33,30,34,45,58]),import.meta.url),bc=ye({user_code:R(De(Ee(),L(),xe(32)))}),xc=E(`/_authenticated/auth/device`)({validateSearch:bc,component:w(yc,`component`)}),Sc=E(`/_auth/accept-invite/$token`)({validateSearch:Gs,beforeLoad:async({context:e})=>{if((await e.queryClient.ensureQueryData(Ho())).user)throw x({to:`/`})},component:w(()=>V(()=>import(`./_token-9qw8O07B.js`),__vite__mapDeps([59,1,3,10,11,2,4,5,32,26,8,16,22,21,33,7,30]),import.meta.url),`component`)}),Cc=()=>V(()=>import(`./_name-CsTxHact.js`),__vite__mapDeps([60,1,3,10,11,2,4,5,38,8,12,13,7,14,15,16,17,6,39,40,26,41,33,30,21,54,61]),import.meta.url),wc=ye({page:R(be(De(Se(),Ce(),ve(1)),1),1),q:R(be(De(Ee(),L(),xe(200),pe(e=>e.length===0?void 0:e)),void 0))}),Tc=E(`/_authenticated/terms/$name/`)({validateSearch:e=>ge(wc,e),beforeLoad:({context:e,params:t})=>{let n=So(t.name);if(!n||!qs(e.user.capabilities,`term:${n.name}:read`))throw T();return{taxonomy:n}},component:w(Cc,`component`)}),Ec=()=>V(()=>import(`./_slug-CrB5RfaF.js`),__vite__mapDeps([62,1,3,10,11,2,4,5,8,12,63,13,7,14,15,16,17,6,18,39,40,26,41,33,30,21,61,38,25,54,27]),import.meta.url),Dc=_e({page:R(be(De(Se(),Ce(),ve(1)),1),1),status:R(be(Te([`draft`,`published`,`scheduled`,`trash`,`all`]),`all`),`all`),q:R(be(De(Ee(),L(),xe(200),pe(e=>e.length===0?void 0:e)),void 0)),author:R(be(Te([`all`,`mine`]),`all`),`all`),orderBy:R(be(Te([`updated_at`,`published_at`,`title`,`sort_order`]),`updated_at`),`updated_at`),order:R(be(Te([`asc`,`desc`]),`desc`),`desc`)}),Oc=E(`/_authenticated/entries/$slug/`)({validateSearch:e=>ge(Dc,e),beforeLoad:({params:e})=>{let t=yo(e.slug);if(!t)throw T();return{entryType:t}},component:w(Ec,`component`)}),kc=E(`/_editor/entries/$slug/create`)({beforeLoad:({context:e,params:t})=>{let n=yo(t.slug);if(!n)throw T();let r=n.capabilityType??n.name;if(!qs(e.user.capabilities,`entry:${r}:create`))throw T();return{entryType:n}},component:w(()=>V(()=>import(`./create-XNWvL9l5.js`),__vite__mapDeps([64,1,3,11,2,4,5,21,10,65]),import.meta.url),`component`)}),Ac={loadingAria:{id:`userEdit.loading.aria`},loadFailed:{id:`userEdit.loadFailed`},errUpdateFallback:{id:`userEdit.error.updateFallback`},errStatusFallback:{id:`userEdit.error.statusFallback`},errDeleteFallback:{id:`userEdit.error.deleteFallback`},toggleEnabling:{id:`userEdit.status.toggle.enabling`},toggleDisabling:{id:`userEdit.status.toggle.disabling`},toggleEnable:{id:`userEdit.status.toggle.enable`},toggleDisable:{id:`userEdit.status.toggle.disable`},reassignKeepAsIs:{id:`userEdit.delete.reassign.keepAsIs`}},jc=E(`/_authenticated/users/$id/edit`)({params:{parse:e=>{let t=he(je,e.id);if(!t.success)throw T();return{id:t.output}}},beforeLoad:({context:e,params:t})=>{let n=t.id===e.user.id,r=qs(e.user.capabilities,`user:list`),i=n&&qs(e.user.capabilities,`user:edit_own`);if(!r&&!i)throw x({to:`/`})},loader:({context:e,params:t})=>e.queryClient.ensureQueryData(v.user.get.queryOptions({input:{id:t.id}})),pendingComponent:Mc,errorComponent:w(()=>V(()=>import(`./edit-BDJmvbS1.js`),__vite__mapDeps([66,1,10,3,21]),import.meta.url),`errorComponent`),component:w(()=>V(()=>import(`./edit-D16wc7LS.js`),__vite__mapDeps([67,1,3,10,11,2,4,5,12,49,40,7,8,50,39,14,13,15,16,17,6,26,41,33,30,68,21,35,44,25,22,34,45,58,27,69,53,54,55]),import.meta.url),`component`)});function Mc(){return(0,B.jsx)(hc,{ariaLabel:fe()(Ac.loadingAria),testId:`user-edit-loading`})}var Nc={page:1},Pc=E(`/_authenticated/terms/$name/create`)({beforeLoad:({context:e,params:t})=>{let n=So(t.name);if(!n)throw T();if(!qs(e.user.capabilities,`term:${n.name}:edit`))throw x({to:`/terms/$name`,params:{name:t.name},search:Nc});return{taxonomy:n}},component:w(()=>V(()=>import(`./create-c0dH9rwJ.js`),__vite__mapDeps([70,1,3,11,2,4,5,49,12,21,10,54,26,8,61,71,40,7,35,44,16,33,30,34,69,39,14,13,15,17,6,41,53,55,65]),import.meta.url),`component`)}),Fc=e=>v.entry.createPreviewLink.queryOptions({input:{id:e},staleTime:1/0});function Ic(){return(0,B.jsx)(`div`,{className:`text-muted-foreground p-6 text-sm`,"data-testid":`plumix-editor-loading`,children:(0,B.jsx)(s,{id:`editor.loading`,message:`Opening the editor…`})})}var Lc=class e extends Error{static{e.prototype.name=`AdminPluginRegistryError`}code;registerName;key;type;blockName;constructor(e,t,n){super(t),this.code=e,this.registerName=n.registerName,this.key=n.key,this.type=n.type,this.blockName=n.blockName}static duplicateKey(t){return new e(`duplicate_key`,`${t.registerName}: "${t.key}" is already registered. Two plugins are claiming the same key; rename one.`,t)}static inputTypeReserved(t){return new e(`input_type_reserved`,`registerPluginFieldType: "${t.type}" is reserved for built-in renderers. Pick a different inputType for your custom field — see the host's RESERVED_INPUT_TYPES list.`,t)}static invalidBlockName(t){return new e(`invalid_block_name`,`registerPluginBlock: spec.name must be a namespaced string ("plugin/slug") to disambiguate from first-party blocks. Got: ${JSON.stringify(t.name)}`,{blockName:t.name})}static ssrWalkedAdminSpec(){return new e(`ssr_walked_admin_spec`,"Admin-only plugin block spec rendered on the SSR walker path. registries.ts contributions are admin-only; the runtime walker must source `component` from `@plumix/blocks` directly.",{})}};function Rc(e){return{map:new Map,registerName:e}}var zc=Rc(`registerPluginPage`),Bc=Rc(`registerPluginDashboardWidget`),Vc=Rc(`registerPluginFieldType`),Hc=Rc(`registerPluginBlockSchema`),Uc=Rc(`registerPluginBlockEditor`),Wc=Rc(`registerPluginMarkSchema`),Gc=Rc(`registerPluginBlock`);function Kc(e,t,n){if(e.map.has(t))throw Lc.duplicateKey({registerName:e.registerName,key:t});e.map.set(t,n)}function qc(e,t){Kc(zc,e,t)}function Jc(e){return zc.map.get(e)}function Yc(e,t){Kc(Bc,e,t)}function Xc(e){return Bc.map.get(e)}var Zc=new Set([`text`,`textarea`,`number`,`email`,`url`,`password`,`date`,`datetime`,`time`,`color`,`range`,`multiselect`,`json`,`richtext`,`repeater`,`select`,`radio`,`checkbox`,`user`,`userList`,`entry`,`entryList`,`term`,`termList`]);function Qc(e,t){if(Zc.has(e))throw Lc.inputTypeReserved({type:e});Kc(Vc,e,t)}function $c(e){return Vc.map.get(e)}function el(e,t){Kc(Hc,e,t)}function tl(e,t){Kc(Uc,e,t)}function nl(e,t){Kc(Wc,e,t)}function rl(e){if(typeof e.name!=`string`||!e.name.includes(`/`))throw Lc.invalidBlockName({name:e.name});Kc(Gc,e.name,e)}function il(){return Array.from(Gc.map.values())}function al(){if(!(il().length>=so.length))for(let e of so)rl(e)}function ol(e){return e?.supports?e.supports.includes(`editor`):!0}function sl(e){return e?.supports?.includes(`revisions`)??!1}function cl({entryType:e,currentStatus:t,isAuthor:n,capabilities:r}){if(!e||!(e.supports?.includes(`autosave`)??!1)||!(t===`published`||t===`scheduled`))return`edit-live`;let i=e.capabilityType??e.name,a=r.has(`entry:${i}:edit_any`),o=r.has(`entry:${i}:edit_own`);return a||n&&o?`edit-with-draft`:`edit-live`}var ll=()=>V(()=>import(`./edit-okoLRzq-.js`),__vite__mapDeps([72,1,3,10,11,2,4,5,7,8,12,73,13,14,15,16,17,6,63,18,39,40,26,41,33,30,21,61,49,50,68,47,74,35,44,25,54,34,28,53]),import.meta.url),ul=()=>V(()=>import(`./edit-Q_Ag31Id.js`),__vite__mapDeps([75,1,10,3]),import.meta.url);al();var dl=ye({revision:R(De(Se(),Ce(),ve(1)))}),fl=E(`/_editor/entries/$slug/$id/edit`)({params:{parse:e=>{let t=he(je,e.id);if(!t.success)throw T();return{slug:e.slug,id:t.output}}},validateSearch:dl,loader:async({context:e,params:t})=>{let n=yo(t.slug);await Promise.all([e.queryClient.ensureQueryData(v.entry.get.queryOptions({input:{id:t.id,preview:!0}})),...ol(n)?[e.queryClient.ensureQueryData(Fc(t.id))]:[]])},pendingComponent:Ic,errorComponent:w(ul,`errorComponent`),component:w(ll,`component`)}),pl={saveFallback:{id:`terms.edit.error.saveFallback`},deleteFallback:{id:`terms.edit.error.deleteFallback`},notFoundMessage:{id:`terms.edit.notFound.message`},loadingAria:{id:`terms.edit.loadingAria`},descendantsHint:{id:`terms.edit.descendantsHint`},submit:{id:`terms.edit.submit`}},ml=E(`/_authenticated/terms/$name/$id/edit`)({params:{parse:e=>{let t=he(je,e.id);if(!t.success)throw T();return{name:e.name,id:t.output}}},beforeLoad:({context:e,params:t})=>{let n=So(t.name);if(!n||!qs(e.user.capabilities,`term:${n.name}:read`))throw T();return{taxonomy:n}},loader:({context:e,params:t})=>e.queryClient.ensureQueryData(v.term.get.queryOptions({input:{id:t.id}})),pendingComponent:hl,errorComponent:w(()=>V(()=>import(`./edit-tkHAT4Yi.js`),__vite__mapDeps([76,1,10,3,21]),import.meta.url),`errorComponent`),component:w(()=>V(()=>import(`./edit-Cs_d9ypU.js`),__vite__mapDeps([77,1,3,10,11,2,4,5,49,12,39,7,8,14,13,15,16,17,6,40,26,41,33,30,21,54,61,71,35,44,34,69,53,55]),import.meta.url),`component`)});function hl(){return(0,B.jsx)(hc,{ariaLabel:fe()(pl.loadingAria),testId:`term-edit-loading`})}var gl=Fs.update({id:`/_editor`,getParentRoute:()=>js}),_l=Is.update({id:`/_authenticated`,getParentRoute:()=>js}),vl=Ls.update({id:`/_auth`,getParentRoute:()=>js}),yl=Rs.update({id:`/`,path:`/`,getParentRoute:()=>_l}),bl=zs.update({id:`/profile`,path:`/profile`,getParentRoute:()=>_l}),xl=Hs.update({id:`/login`,path:`/login`,getParentRoute:()=>vl}),Sl=Ks.update({id:`/bootstrap`,path:`/bootstrap`,getParentRoute:()=>vl}),Cl=lc.update({id:`/users/`,path:`/users/`,getParentRoute:()=>_l}),wl=uc.update({id:`/settings/`,path:`/settings/`,getParentRoute:()=>_l}),Tl=dc.update({id:`/mailer/`,path:`/mailer/`,getParentRoute:()=>_l}),El=fc.update({id:`/allowed-domains/`,path:`/allowed-domains/`,getParentRoute:()=>_l}),Dl=pc.update({id:`/users/create`,path:`/users/create`,getParentRoute:()=>_l}),Ol=gc.update({id:`/settings/$page`,path:`/settings/$page`,getParentRoute:()=>_l}),kl=vc.update({id:`/pages/$`,path:`/pages/$`,getParentRoute:()=>_l}),Al=xc.update({id:`/auth/device`,path:`/auth/device`,getParentRoute:()=>_l}),jl=Sc.update({id:`/accept-invite/$token`,path:`/accept-invite/$token`,getParentRoute:()=>vl}),Ml=Tc.update({id:`/terms/$name/`,path:`/terms/$name/`,getParentRoute:()=>_l}),Nl=Oc.update({id:`/entries/$slug/`,path:`/entries/$slug/`,getParentRoute:()=>_l}),Pl=kc.update({id:`/entries/$slug/create`,path:`/entries/$slug/create`,getParentRoute:()=>gl}),Fl=jc.update({id:`/users/$id/edit`,path:`/users/$id/edit`,getParentRoute:()=>_l}),Il=Pc.update({id:`/terms/$name/create`,path:`/terms/$name/create`,getParentRoute:()=>_l}),J=fl.update({id:`/entries/$slug/$id/edit`,path:`/entries/$slug/$id/edit`,getParentRoute:()=>gl}),Ll=ml.update({id:`/terms/$name/$id/edit`,path:`/terms/$name/$id/edit`,getParentRoute:()=>_l}),Y={AuthBootstrapRoute:Sl,AuthLoginRoute:xl,AuthAcceptInviteTokenRoute:jl},X=vl._addFileChildren(Y),Z={AuthenticatedProfileRoute:bl,AuthenticatedIndexRoute:yl,AuthenticatedAuthDeviceRoute:Al,AuthenticatedPagesSplatRoute:kl,AuthenticatedSettingsPageRoute:Ol,AuthenticatedUsersCreateRoute:Dl,AuthenticatedAllowedDomainsIndexRoute:El,AuthenticatedMailerIndexRoute:Tl,AuthenticatedSettingsIndexRoute:wl,AuthenticatedUsersIndexRoute:Cl,AuthenticatedTermsNameCreateRoute:Il,AuthenticatedUsersIdEditRoute:Fl,AuthenticatedEntriesSlugIndexRoute:Nl,AuthenticatedTermsNameIndexRoute:Ml,AuthenticatedTermsNameIdEditRoute:Ll},Rl=_l._addFileChildren(Z),zl={EditorEntriesSlugCreateRoute:Pl,EditorEntriesSlugIdEditRoute:J},Bl={AuthRoute:X,AuthenticatedRoute:Rl,EditorRoute:gl._addFileChildren(zl)},Vl=js._addFileChildren(Bl)._addFileTypes();function Hl(e){return S({routeTree:Vl,basepath:`${h()}${_}`,defaultPreload:`intent`,defaultPreloadStaleTime:0,scrollRestoration:!0,defaultErrorComponent:Qt,context:{queryClient:e}})}function Ul(){let[e]=(0,z.useState)(yt),[t]=(0,z.useState)(()=>Hl(e));return(0,B.jsx)(l,{i18n:mt,children:(0,B.jsx)(O,{dir:Ge(),children:(0,B.jsx)(Yo,{defaultTheme:`system`,children:(0,B.jsxs)(p,{client:e,children:[(0,B.jsx)(ee,{router:t}),null]})})})})}function Wl({manifest:e,importCatalog:t=e=>V(()=>import(e),[],import.meta.url)}){let n=new Map;return function(r,i){let a=e[r]?.catalogs[i];if(!a)return Promise.resolve();let o=`${r}|${i}`,s=n.get(o);if(s)return s;let c=(async()=>{try{let e=await t(a);mt.load(i,e.messages)}catch(e){console.error(`[plumix] failed to load catalog for ${r} (${i})`,e)}})();return n.set(o,c),c}}var Gl=Object.assign({"../../locales/ar.mjs":()=>V(()=>import(`./ar-Dlr9PmMq.js`),[],import.meta.url),"../../locales/de.mjs":()=>V(()=>import(`./de-DIaivdrP.js`),[],import.meta.url),"../../locales/en.mjs":()=>V(()=>import(`./en-0MUT7HwI.js`),[],import.meta.url),"../../locales/uk.mjs":()=>V(()=>import(`./uk-DVE7aazP.js`),[],import.meta.url),"../../locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN-DA1Ls1Dj.js`),[],import.meta.url)}),Kl=Object.assign({"../../../plugins/audit-log/locales/ar.mjs":()=>V(()=>import(`./ar-Dlvpw6lg.js`),[],import.meta.url),"../../../plugins/audit-log/locales/de.mjs":()=>V(()=>import(`./de-CN1uSHLH.js`),[],import.meta.url),"../../../plugins/audit-log/locales/en.mjs":()=>V(()=>import(`./en-DG5AvC9g.js`),[],import.meta.url),"../../../plugins/audit-log/locales/uk.mjs":()=>V(()=>import(`./uk-CO1j-3uB.js`),[],import.meta.url),"../../../plugins/audit-log/locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN-iir6sd5N.js`),[],import.meta.url),"../../../plugins/blog/locales/ar.mjs":()=>V(()=>import(`./ar-9HCIfmBz.js`),[],import.meta.url),"../../../plugins/blog/locales/de.mjs":()=>V(()=>import(`./de-BYwSm4O1.js`),[],import.meta.url),"../../../plugins/blog/locales/en.mjs":()=>V(()=>import(`./en-phTuN5O3.js`),[],import.meta.url),"../../../plugins/blog/locales/uk.mjs":()=>V(()=>import(`./uk-ne9mbIup.js`),[],import.meta.url),"../../../plugins/blog/locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN-BoFMJmlb.js`),[],import.meta.url),"../../../plugins/comments/locales/ar.mjs":()=>V(()=>import(`./ar-b8X4U-Yj.js`),[],import.meta.url),"../../../plugins/comments/locales/de.mjs":()=>V(()=>import(`./de-v78Axzn1.js`),[],import.meta.url),"../../../plugins/comments/locales/en.mjs":()=>V(()=>import(`./en-B2WjeApp.js`),[],import.meta.url),"../../../plugins/comments/locales/uk.mjs":()=>V(()=>import(`./uk-DM9J8Vuo.js`),[],import.meta.url),"../../../plugins/comments/locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN-B-X6nxCi.js`),[],import.meta.url),"../../../plugins/media/locales/ar.mjs":()=>V(()=>import(`./ar-Buhn3_h1.js`),[],import.meta.url),"../../../plugins/media/locales/de.mjs":()=>V(()=>import(`./de-CvzTts2_.js`),[],import.meta.url),"../../../plugins/media/locales/en.mjs":()=>V(()=>import(`./en-8mtHvgf_.js`),[],import.meta.url),"../../../plugins/media/locales/uk.mjs":()=>V(()=>import(`./uk-CFwH6F6c.js`),[],import.meta.url),"../../../plugins/media/locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN-gCCQNrSp.js`),[],import.meta.url),"../../../plugins/menu/locales/ar.mjs":()=>V(()=>import(`./ar-2V_CUREp.js`),[],import.meta.url),"../../../plugins/menu/locales/de.mjs":()=>V(()=>import(`./de-D0IUVgz1.js`),[],import.meta.url),"../../../plugins/menu/locales/en.mjs":()=>V(()=>import(`./en-DSzDoXek.js`),[],import.meta.url),"../../../plugins/menu/locales/uk.mjs":()=>V(()=>import(`./uk-DBaZCcmT.js`),[],import.meta.url),"../../../plugins/menu/locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN--OEUZ0F-.js`),[],import.meta.url),"../../../plugins/pages/locales/ar.mjs":()=>V(()=>import(`./ar-DAS2VDOL.js`),[],import.meta.url),"../../../plugins/pages/locales/de.mjs":()=>V(()=>import(`./de-OLYk7yVD.js`),[],import.meta.url),"../../../plugins/pages/locales/en.mjs":()=>V(()=>import(`./en-GstVzXkR.js`),[],import.meta.url),"../../../plugins/pages/locales/uk.mjs":()=>V(()=>import(`./uk-BzAywoVV.js`),[],import.meta.url),"../../../plugins/pages/locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN-Db7vQndL.js`),[],import.meta.url)}),ql=Object.assign({"../../../admin-editor/locales/ar.mjs":()=>V(()=>import(`./ar-Cw7lVEca.js`),[],import.meta.url),"../../../admin-editor/locales/de.mjs":()=>V(()=>import(`./de-Cw7lVEca.js`),[],import.meta.url),"../../../admin-editor/locales/en.mjs":()=>V(()=>import(`./en-Cw7lVEca.js`),[],import.meta.url),"../../../admin-editor/locales/uk.mjs":()=>V(()=>import(`./uk-Cw7lVEca.js`),[],import.meta.url),"../../../admin-editor/locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN-Cw7lVEca.js`),[],import.meta.url)}),Jl=`en`,Yl={current:()=>Promise.resolve()};async function Xl(){let e=document.documentElement.lang.toLowerCase().split(`-`)[0]??``,t=Gl[`../../locales/${e}.mjs`],n=t??Gl[`../../locales/${Jl}.mjs`];if(!n)return;let r=t?e:Jl,i=(await n()).messages,a=await Ql(r),o=await Zl(r);mt.load(r,{...o,...a,...i}),mt.activate(r),Oe(e=>mt._(e));let s=fo().pluginI18n??{};Yl.current=Wl({manifest:s}),await Promise.all(Object.keys(s).map(e=>Yl.current(e,r)))}async function Zl(e){let t=ql[`../../../admin-editor/locales/${e}.mjs`]??ql[`../../../admin-editor/locales/${Jl}.mjs`];return t?(await t()).messages:{}}async function Ql(e){let t={};for(let[n,r]of Object.entries(Kl)){if(!n.endsWith(`/locales/${e}.mjs`))continue;let i=await r();Object.assign(t,i.messages)}return t}var $l=new Map;function eu(e){if($l.has(e.id))throw Lc.duplicateKey({registerName:`registerPaletteCommand`,key:e.id});$l.set(e.id,e)}function tu(){return[...$l.values()]}function nu(e,t,n,r){let i=n.trim().toLowerCase();return e.filter(e=>e.capability&&!qs(t,e.capability)?!1:i.length===0?!0:[r(e.title),...e.keywords??[]].join(` `).toLowerCase().includes(i))}var ru={react:z,reactJsxRuntime:B,reactDom:ht,reactDomClient:Ve,reactQuery:u,reactRouter:D,orpcClient:f,orpcClientFetch:g,orpcTanstackQuery:m,linguiCore:Ke,linguiReact:c,radix:N,sonner:Zo,tailwindMerge:ue};function iu(){typeof window>`u`||window.plumix||(window.plumix={registerPluginPage:qc,registerPluginDashboardWidget:Yc,registerPluginFieldType:Qc,registerPluginBlockSchema:el,registerPluginBlockEditor:tl,registerPluginBlock:rl,registerPluginMarkSchema:nl,registerPaletteCommand:eu,runtime:ru,basePath:h(),i18n:{loadPluginCatalog:(e,t)=>Yl.current(e,t)}})}async function au(){let e=document.querySelectorAll(`script[data-plumix-plugin]`);await Promise.all(Array.from(e).map(ou))}function ou(e){return new Promise(t=>{let n=()=>t();e.addEventListener(`load`,n,{once:!0}),e.addEventListener(`error`,n,{once:!0})})}iu();var su=document.getElementById(`root`);if(!su)throw Error(`Missing #root element`);var cu=Xl().catch(e=>{console.error(`plumix i18n boot failed; rendering with source locale`,e)});Promise.all([au(),cu]).then(()=>{(0,Ve.createRoot)(su).render((0,B.jsx)(z.StrictMode,{children:(0,B.jsx)(Ul,{})}))});export{yo as $,lc as A,Dt as At,Ys as B,xc as C,zt as Ct,mc as D,jt as Dt,hc as E,Mt as Et,$s as F,bt as Ft,Hs as G,Ks as H,ec as I,V as It,fs as J,Rs as K,Qs as L,it as Lt,ic as M,Tt as Mt,ac as N,Et as Nt,dc as O,St as Ot,Xs as P,xt as Pt,bo as Q,Zs as R,mt as Rt,Sc as S,Vt as St,gc as T,Pt as Tt,Ws as U,qs as V,Us as W,Io as X,Uo as Y,Do as Z,jc as _,Xt as _t,fl as a,fo as at,Oc as b,Wt as bt,sl as c,To as ct,Jc as d,Co as dt,So as et,il as f,ko as ft,Nc as g,$t as gt,Pc as h,en as ht,pl as i,Mo as it,rc as j,Ct as jt,uc as k,Ot as kt,Xc as l,xo as lt,Fc as m,nn as mt,nu as n,_o as nt,cl as o,Oo as ot,Ic as p,uo as pt,Is as q,ml as r,go as rt,ol as s,No as st,tu as t,vo as tt,$c as u,wo as ut,Ac as v,Zt as vt,vc as w,Ft as wt,Tc as x,Ut as xt,kc as y,Kt as yt,Js as z,Be as zt};
26
+ `+u),ye&&(u=_t(u)),x&&Oe?E(u):u},t.setConfig=function(){it(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),Se=!0,Ce=P,we=I},t.clearConfig=function(){tt=null,Se=!1,Ce=null,we=null,x=C,S=``},t.isValidAttribute=function(e,t,n){return tt||it({}),Tt(et(e),et(t),n)},t.addHook=function(e,t){typeof t==`function`&&Ri(M,e)&&Di(M[e],t)},t.removeHook=function(e,t){if(Ri(M,e)){if(t!==void 0){let n=Ti(M[e],t);return n===-1?void 0:Oi(M[e],n,1)[0]}return Ei(M[e])}},t.removeHooks=function(e){Ri(M,e)&&(M[e]=[])},t.removeAllHooks=function(){M=Ca()},t}var Ea=Ta(),Da=[`http`,`https`,`mailto`,`tel`],Oa=new Set([`href`,`src`,`action`,`formaction`,`xlink:href`,`poster`,`data`]);function ka(e,t,n){let r=e.replace(/[\u0000-\u0020]+/g,``).toLowerCase();if(r===``)return!0;if(r.startsWith(`//`))return n;let i=/^([a-z][a-z0-9+.-]*):/.exec(r)?.[1];return i===void 0?!0:t.includes(i)}function Aa(e,t={}){if(typeof e!=`string`||e===``)return``;let n=[...t.allowedTags??[]],r=t.allowedAttributes??{},i=(t.allowedSchemes??Da).map(e=>e.toLowerCase()),a=t.allowProtocolRelative??!1,o=new Set,s={};for(let[e,t]of Object.entries(r)){let n=new Set(t.map(e=>e.toLowerCase()));s[e.toLowerCase()]=n;for(let e of n)o.add(e)}Ea.addHook(`uponSanitizeAttribute`,(e,t)=>{let n=e.tagName.toLowerCase(),r=t.attrName.toLowerCase();if(!s[n]?.has(r)){t.keepAttr=!1;return}Oa.has(r)&&!ka(t.attrValue,i,a)&&(t.keepAttr=!1)});try{return Ea.sanitize(e,{ALLOWED_TAGS:n,ALLOWED_ATTR:[...o],ALLOW_DATA_ATTR:!1,ALLOW_ARIA_ATTR:!1})}finally{Ea.removeHook(`uponSanitizeAttribute`)}}var ja=Object.freeze({allowedTags:[`p`,...rn,`blockquote`,`pre`,`code`,`hr`,`br`,`ul`,`ol`,`li`,`figure`,`figcaption`,`strong`,`em`,`s`,`u`,`mark`,`sub`,`sup`,`kbd`,`small`,`cite`,`abbr`,`a`,`span`],allowedAttributes:{a:[`href`,`title`],abbr:[`title`],code:[`data-language`]},allowedSchemes:[`http`,`https`,`mailto`,`tel`],allowProtocolRelative:!1});function Ma(e,t=ja){return typeof e!=`string`||e===``?``:Aa(e,{allowedTags:[...t.allowedTags],allowedAttributes:Object.fromEntries(Object.entries(t.allowedAttributes).map(([e,t])=>[e,[...t]])),allowedSchemes:t.allowedSchemes?[...t.allowedSchemes]:[`http`,`https`,`mailto`,`tel`],allowProtocolRelative:t.allowProtocolRelative??!1})}var Na=(0,z.createContext)(ja);Na.Provider;function Pa(){return(0,z.useContext)(Na)}var Fa=`[a-z0-9-]+=(?:"[^"]*"|'[^']*'|[^\\s\\]'"]+)`,Ia=`[a-z0-9-]+(?:\\s+${Fa})*`,La=RegExp(`\\[\\[(${Ia})\\s*\\]\\]|\\[([a-z0-9-]+)((?:\\s+${Fa})*)\\s*\\]`,`g`),Ra=/([a-z0-9-]+)=(?:"([^"]*)"|'([^']*)'|([^\s\]'"]+))/g;function za(e,t,n){return e.includes(`[`)?e.replace(La,(e,r,i,a)=>{if(r!==void 0)return`[${r}]`;let o=i===void 0?void 0:t.get(i);return o?Ua(Va(o,Ba(a),n)):e}):e}function Ba(e){let t={};if(!e)return t;for(let n of e.matchAll(Ra)){let e=n[1];e!==void 0&&(t[e]=n[2]??n[3]??n[4]??``)}return t}function Va(e,t,n){try{let r=e.render({atts:t,context:n});return typeof r==`string`?r:(Wa(`Shortcode [${e.name}] returned a non-string; rendered empty.`),``)}catch(t){return Wa(`Shortcode [${e.name}] threw; rendered empty.`,t),``}}var Ha={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function Ua(e){return e.replace(/[&<>"']/g,e=>Ha[e]??e)}function Wa(e,t){Ga()&&(t===void 0?console.warn(`[plumix:blocks] ${e}`):console.warn(`[plumix:blocks] ${e}`,t))}function Ga(){return!1}function Ka({attrs:e,context:t}){let n=Pa();return(0,z.isValidElement)(e.body)?e.body:typeof e.body==`string`?(0,B.jsx)(`div`,{dangerouslySetInnerHTML:{__html:Ma(t.shortcodes?za(e.body,t.shortcodes,{siteSettings:t.siteSettings,locale:t.locale,entry:t.entry}):e.body,n)}}):(0,B.jsx)(`div`,{})}var qa=tn({name:`core/rich-text`,title:{id:`block.core.rich-text.title`,message:`Rich text`},icon:`Type`,category:`text`,keywords:[{id:`block.core.rich-text.keyword.paragraph`,message:`paragraph`},{id:`block.core.rich-text.keyword.text`,message:`text`},{id:`block.core.rich-text.keyword.body`,message:`body`}],inputs:[{name:`body`,type:`richtext`,label:{id:`block.core.rich-text.input.body.label`,message:`Body`}}],defaults:{body:`<p>Enter text here…</p>`},render:Ka}),Ja=tn({name:`core/section`,title:{id:`block.core.section.title`,message:`Section`},icon:`LayoutTemplate`,category:`layout`,selfSeam:!0,inputs:[{name:`maxWidth`,type:`text`,label:{id:`block.core.section.input.maxWidth.label`,message:`Content max width`}},{name:`content`,type:`slot`,label:{id:`block.core.section.input.content.label`,message:`Content`},defaultChildren:[{id:`section-text`,name:`core/rich-text`}]}],defaults:{maxWidth:`1200px`},defaultStyles:{large:{paddingTop:`3rem`,paddingBottom:`3rem`,paddingLeft:`1.25rem`,paddingRight:`1.25rem`}},render:({attrs:e,blockProps:t})=>{let n=typeof e.maxWidth==`string`&&e.maxWidth!==``?e.maxWidth:`1200px`,r=e.content,i={maxWidth:n,marginInline:`auto`};return(0,B.jsx)(`section`,{...t,children:(0,B.jsx)(`div`,{"data-plumix-section-inner":``,style:i,children:r?(0,B.jsx)(r,{}):null})})}}),Ya=tn({name:`core/separator`,title:{id:`block.core.separator.title`,message:`Separator`},icon:`Minus`,category:`text`,selfSeam:!0,defaultStyles:{large:{border:`none`,height:`var(--plumix-separator-thickness, 1px)`,backgroundColor:`var(--plumix-separator-color, #e5e7eb)`,marginTop:`var(--plumix-separator-margin-y, 1.5rem)`,marginBottom:`var(--plumix-separator-margin-y, 1.5rem)`}},render:({blockProps:e})=>(0,B.jsx)(`hr`,{...e})}),Xa=[`left`,`center`,`right`],Za=3,Qa={name:`align`,type:`select`,label:{id:`block.core.table.input.align.label`,message:`Align`},placeholder:{id:`block.core.table.input.align.placeholder`,message:`Left`},options:[{label:{id:`block.core.table.input.align.option.left`,message:`Left`},value:`left`},{label:{id:`block.core.table.input.align.option.center`,message:`Center`},value:`center`},{label:{id:`block.core.table.input.align.option.right`,message:`Right`},value:`right`}]},$a=[`table{border-collapse:collapse;width:var(--plumix-table-width,100%)}`,`th,td{border:var(--plumix-table-border,1px solid #d0d7de);padding:var(--plumix-table-cell-padding,0.5rem 0.75rem);text-align:left;vertical-align:top}`,`th{background:var(--plumix-table-header-bg,#f6f8fa);font-weight:var(--plumix-table-header-weight,600)}`,`th[data-align=center],td[data-align=center]{text-align:center}`,`th[data-align=right],td[data-align=right]{text-align:right}`].join(``);function eo(e,t,n){return Array.from({length:Za},(r,i)=>({id:`${e}-c${i+1}`,name:t,attrs:{text:n(i+1)}}))}var to=[{id:`row-header`,name:`core/table-header-row`,attrs:{cells:eo(`row-header`,`core/table-header-cell`,e=>`Header ${e}`)}},{id:`row-1`,name:`core/table-body-row`,attrs:{cells:eo(`row-1`,`core/table-cell`,e=>`Cell ${e}`)}},{id:`row-2`,name:`core/table-body-row`,attrs:{cells:eo(`row-2`,`core/table-cell`,e=>`Cell ${e}`)}}];function no(e){return typeof e==`string`&&Xa.includes(e)?e:void 0}var ro=tn({name:`core/table`,title:{id:`block.core.table.title`,message:`Table`},icon:`Table`,category:`text`,inputs:[{name:`rows`,type:`slot`,label:{id:`block.core.table.input.rows.label`,message:`Rows`},rawSlot:!0,allowedBlocks:[`core/table-header-row`,`core/table-body-row`],defaultChildren:to}],defaults:{},render:({attrs:e})=>{let t=e.rows;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`style`,{href:`plumix-table-theme`,precedence:`default`,children:$a}),(0,B.jsx)(`table`,{children:(0,B.jsx)(`tbody`,{children:t?(0,B.jsx)(t,{}):null})})]})}}),io=tn({name:`core/table-header-row`,title:{id:`block.core.table-header-row.title`,message:`Header Row`},icon:`Rows`,category:`text`,selfSeam:!0,inserter:!1,inputs:[{name:`cells`,type:`slot`,label:{id:`block.core.table-header-row.input.cells.label`,message:`Cells`},rawSlot:!0,allowedBlocks:[`core/table-header-cell`]}],defaults:{},render:({attrs:e,blockProps:t})=>{let n=e.cells;return(0,B.jsx)(`tr`,{"data-header":``,...t,children:n?(0,B.jsx)(n,{}):null})}}),ao=tn({name:`core/table-body-row`,title:{id:`block.core.table-body-row.title`,message:`Body Row`},icon:`Rows`,category:`text`,selfSeam:!0,inserter:!1,inputs:[{name:`cells`,type:`slot`,label:{id:`block.core.table-body-row.input.cells.label`,message:`Cells`},rawSlot:!0,allowedBlocks:[`core/table-cell`]}],defaults:{},render:({attrs:e,blockProps:t})=>{let n=e.cells;return(0,B.jsx)(`tr`,{...t,children:n?(0,B.jsx)(n,{}):null})}}),oo=tn({name:`core/table-header-cell`,title:{id:`block.core.table-header-cell.title`,message:`Header Cell`},icon:`AlignLeft`,category:`text`,selfSeam:!0,inserter:!1,inputs:[{name:`text`,type:`text`,label:{id:`block.core.table-header-cell.input.text.label`,message:`Text`}},Qa],defaults:{text:``},render:({attrs:e,blockProps:t})=>{let{text:n=``}=e;return(0,B.jsx)(`th`,{scope:`col`,"data-align":no(e.align),...t,children:n})}}),K=tn({name:`core/table-cell`,title:{id:`block.core.table-cell.title`,message:`Cell`},icon:`AlignLeft`,category:`text`,selfSeam:!0,inserter:!1,inputs:[{name:`text`,type:`text`,label:{id:`block.core.table-cell.input.text.label`,message:`Text`}},Qa],defaults:{text:``},render:({attrs:e,blockProps:t})=>{let{text:n=``}=e;return(0,B.jsx)(`td`,{"data-align":no(e.align),...t,children:n})}}),q=tn({name:`core/video`,title:{id:`block.core.video.title`,message:`Video`},icon:`Video`,category:`media`,description:{id:`block.core.video.description`,message:`HTML <video> with browser controls.`},keywords:[{id:`block.core.video.keyword.movie`,message:`movie`},{id:`block.core.video.keyword.clip`,message:`clip`},{id:`block.core.video.keyword.media`,message:`media`}],selfSeam:!0,inputs:[{name:`src`,type:`url`,label:{id:`block.core.video.input.src.label`,message:`Source URL`}},{name:`poster`,type:`url`,label:{id:`block.core.video.input.poster.label`,message:`Poster image URL`}},{name:`controls`,type:`boolean`,label:{id:`block.core.video.input.controls.label`,message:`Show controls`}},{name:`autoplay`,type:`boolean`,label:{id:`block.core.video.input.autoplay.label`,message:`Autoplay`}},{name:`loop`,type:`boolean`,label:{id:`block.core.video.input.loop.label`,message:`Loop`}},{name:`muted`,type:`boolean`,label:{id:`block.core.video.input.muted.label`,message:`Muted`}},{name:`playsinline`,type:`boolean`,label:{id:`block.core.video.input.playsinline.label`,message:`Plays inline (iOS)`}}],defaults:{src:``,poster:``,controls:!0,autoplay:!1,loop:!1,muted:!1,playsinline:!0},defaultStyles:{large:{display:`block`,width:`var(--plumix-video-width, 100%)`,aspectRatio:`var(--plumix-video-aspect, 16 / 9)`,objectFit:`contain`,backgroundColor:`var(--plumix-video-bg, #000)`,borderRadius:`var(--plumix-video-radius, 6px)`}},render:({attrs:e,blockProps:t})=>{let n=typeof e.src==`string`&&e.src.length>0?e.src:void 0,r=typeof e.poster==`string`&&e.poster.length>0?e.poster:void 0;return(0,B.jsx)(`video`,{...t,src:n,poster:r,controls:e.controls!==!1,autoPlay:e.autoplay===!0,loop:e.loop===!0,muted:e.muted===!0,playsInline:e.playsinline!==!1})}}),so=Object.freeze([qa,Ya,Vr,ai,Ja,Yr,Wr,sn,Zr,q,ii,ro,io,ao,oo,K,oi]),co=`plumix-manifest`;function lo(e){return(t,n)=>{let r=t.priority??1/0,i=n.priority??1/0;return r===i?e(t).localeCompare(e(n)):r-i}}function uo(e,t){let n=t??{},r={};for(let t of e)for(let e of t.fields)r[e.key]=n[e.key]??e.default;return r}RegExp(`<script id="${co}"[^>]*>[\\s\\S]*?<\/script>`,`i`);function fo(e=document){let t=e.getElementById(co);if(!t)return{};let n=t.textContent;if(n.trim()===``)return{};try{return mo(JSON.parse(n))}catch{return console.error(`[plumix] failed to parse #${co} payload; falling back to an empty manifest`),{}}}var po=[`entryTypes`,`termTaxonomies`,`entryMetaBoxes`,`termMetaBoxes`,`userMetaBoxes`,`settingsGroups`,`settingsPages`,`adminNav`,`fieldTypes`,`blocks`,`marks`,`patterns`];function mo(e){if(!e||typeof e!=`object`)return{};let t=e,n={};for(let e of po)Array.isArray(t[e])&&(n[e]=t[e]);return t.tokens&&typeof t.tokens==`object`&&(n.tokens=t.tokens),t.i18n&&typeof t.i18n==`object`&&(n.i18n=t.i18n),t.pluginI18n&&typeof t.pluginI18n==`object`&&(n.pluginI18n=t.pluginI18n),n}var ho=fo();function go(e=ho){return e.tokens??{}}function _o(e=ho){return e.breakpoints??I}function vo(e=ho){return e.patterns??[]}function yo(e,t=ho){return(t.entryTypes??[]).find(t=>t.adminSlug===e)}function bo(e,t=ho){return(t.entryTypes??[]).find(t=>t.name===e)}function xo(e,t=ho){let n=new Set(e);return(t.entryTypes??[]).filter(e=>{if(e.showInSidebar===!1)return!1;let t=`entry:${e.capabilityType??e.name}:edit_own`;return n.has(t)})}function So(e,t=ho){return(t.termTaxonomies??[]).find(t=>t.name===e)}function Co(e,t=ho){let n=new Set(e);return(t.termTaxonomies??[]).filter(e=>n.has(`term:${e.name}:read`))}function wo(e,t=ho){return e.includes(`settings:manage`)?t.settingsPages??[]:[]}function To(e,t=ho){let n=new Set(e);return(t.dashboardWidgets??[]).filter(e=>!e.capability||n.has(e.capability))}function Eo(e,t,n){return(e??[]).filter(e=>!(!n(e)||e.capability!==void 0&&!t.has(e.capability))).map(e=>({...e,fields:e.fields.filter(e=>e.capability===void 0||t.has(e.capability))})).sort(lo(e=>e.id))}function Do(e,t,n=ho){return Eo(n.entryMetaBoxes,new Set(t),t=>t.entryTypes.includes(e))}function Oo(e,t,n=ho){return Eo(n.termMetaBoxes,new Set(t),t=>t.termTaxonomies.includes(e))}function ko(e,t=ho){return Eo(t.userMetaBoxes,new Set(e),()=>!0)}function Ao(e,t=ho){return(t.settingsPages??[]).find(t=>t.name===e)}function jo(e,t=ho){return(t.settingsGroups??[]).find(t=>t.name===e)}function Mo(e,t=ho){return e.groups.map(e=>jo(e,t)).filter(e=>e!==void 0)}function No(e,t=ho){let n=new Set(e);return(t.adminNav??[]).map(e=>({...e,items:e.items.filter(e=>!e.capability||n.has(e.capability))})).filter(e=>e.items.length>0)}function Po(e,t=ho){for(let n of t.adminNav??[])for(let t of n.items)if(t.to===e&&t.component)return t}var Fo={dashboard:{id:`breadcrumb.dashboard`},entries:{id:`breadcrumb.entries`},terms:{id:`breadcrumb.terms`},users:{id:`breadcrumb.users`},settings:{id:`breadcrumb.settings`},profile:{id:`breadcrumb.profile`},admin:{id:`breadcrumb.admin`},create:{id:`breadcrumb.create`},edit:{id:`breadcrumb.edit`},addNew:{id:`breadcrumb.addNew`},editUser:{id:`breadcrumb.editUser`}};function Io(e){if(e===`/`)return[{label:Fo.dashboard}];let t=e.split(`/`).filter(e=>e.length>0);if(t.length===0)return[{label:Fo.dashboard}];switch(t[0]){case`entries`:return Lo(t);case`terms`:return Ro(t);case`users`:return zo(t);case`settings`:return Vo(t);case`profile`:return[{label:Fo.profile}];case`pages`:return Bo(t);default:return[{label:Fo.admin}]}}function Lo(e){let t=e[1];if(t===void 0)return[{label:Fo.entries}];let n=yo(t),r={label:n?.labels?.plural??n?.label??t,to:`/entries/${t}`};return e[2]===`create`?[{label:Fo.entries},r,{label:Fo.create}]:e[3]===`edit`?[{label:Fo.entries},r,{label:Fo.edit}]:[{label:Fo.entries},{...r,to:void 0}]}function Ro(e){let t=e[1];if(t===void 0)return[{label:Fo.terms}];let n={label:So(t)?.label??t,to:`/terms/${t}`};return e[2]===`create`?[{label:Fo.terms},n,{label:Fo.create}]:e[3]===`edit`?[{label:Fo.terms},n,{label:Fo.edit}]:[{label:Fo.terms},{...n,to:void 0}]}function zo(e){if(e[1]===void 0)return[{label:Fo.users}];let t={label:Fo.users,to:`/users`};return e[1]===`create`?[t,{label:Fo.addNew}]:e[2]===`edit`?[t,{label:Fo.editUser}]:[{label:Fo.users}]}function Bo(e){let t=Po(`/${e.join(`/`)}`);if(t)return[{label:t.label}];let n=e[e.length-1];return n===void 0?[{label:Fo.admin}]:[{label:n}]}function Vo(e){let t=e[1];if(t===void 0)return[{label:Fo.settings}];let n=Ao(t);return[{label:Fo.settings,to:`/settings`},{label:n?.label??t}]}var Ho=()=>v.auth.session.queryOptions({input:{},staleTime:1/0}),Uo=v.auth.session.queryKey({input:{}});async function Wo(e){let t=await e.ensureQueryData(Ho());if(!t.user)throw x({to:t.needsBootstrap?`/bootstrap`:`/login`});return{user:t.user}}var Go=(0,z.createContext)(null);function Ko(e){return e===`dark`||e===`light`||e===`system`}function qo(e,t){let n=localStorage.getItem(e);return Ko(n)?n:t}function Jo(e,t){if(e.classList.remove(`light`,`dark`),t===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`);e.classList.add(t.matches?`dark`:`light`);return}e.classList.add(t)}function Yo({children:e,defaultTheme:t=`system`,storageKey:n=`plumix-admin-theme`}){let[r,i]=(0,z.useState)(()=>qo(n,t));(0,z.useEffect)(()=>{let e=window.document.documentElement;if(Jo(e,r),r!==`system`)return;let t=window.matchMedia(`(prefers-color-scheme: dark)`),n=()=>Jo(e,`system`);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)},[r]);let a=(0,z.useCallback)(e=>{localStorage.setItem(n,e),i(e)},[n]),o=(0,z.useMemo)(()=>({theme:r,setTheme:a}),[r,a]);return(0,B.jsx)(Go.Provider,{value:o,children:e})}function Xo(){let e=(0,z.useContext)(Go);if(e===null)throw Error(`useTheme must be used within a ThemeProvider`);return e}var Zo=n({Toaster:()=>Os,toast:()=>fs,useSonner:()=>Ds});function Qo(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var $o=e=>{switch(e){case`success`:return ns;case`info`:return is;case`warning`:return rs;case`error`:return as;default:return null}},es=Array(12).fill(0),ts=({visible:e,className:t})=>z.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},z.createElement(`div`,{className:`sonner-spinner`},es.map((e,t)=>z.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),ns=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),rs=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),is=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),as=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),os=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},z.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),z.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),ss=()=>{let[e,t]=z.useState(document.hidden);return z.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},cs=1,ls=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:cs++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],z.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(ds(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||cs++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},us=(e,t)=>{let n=t?.id||cs++;return ls.addToast({title:e,...t,id:n}),n},ds=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,fs=Object.assign(us,{success:ls.success,info:ls.info,warning:ls.warning,error:ls.error,custom:ls.custom,message:ls.message,promise:ls.promise,dismiss:ls.dismiss,loading:ls.loading},{getHistory:()=>ls.toasts,getToasts:()=>ls.getActiveToasts()});Qo(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function ps(e){return e.label!==void 0}var ms=3,hs=`24px`,gs=`16px`,_s=4e3,vs=356,ys=14,bs=45,xs=200;function Ss(...e){return e.filter(Boolean).join(` `)}function Cs(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var ws=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[ee,E]=z.useState(null),[D,te]=z.useState(null),[O,ne]=z.useState(!1),[k,re]=z.useState(!1),[A,j]=z.useState(!1),[M,ie]=z.useState(!1),[ae,oe]=z.useState(!1),[se,ce]=z.useState(0),[N,le]=z.useState(0),ue=z.useRef(n.duration||y||_s),de=z.useRef(null),P=z.useRef(null),F=c===0,I=c+1<=o,fe=n.type,L=n.dismissible!==!1,pe=n.className||``,me=n.descriptionClassName||``,he=z.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),ge=z.useMemo(()=>n.closeButton??p,[n.closeButton,p]),_e=z.useMemo(()=>n.duration||y||_s,[n.duration,y]),ve=z.useRef(0),R=z.useRef(0),ye=z.useRef(0),be=z.useRef(null),[xe,Se]=b.split(`-`),Ce=z.useMemo(()=>s.reduce((e,t,n)=>n>=he?e:e+t.height,0),[s,he]),we=ss(),Te=n.invert||t,Ee=fe===`loading`;R.current=z.useMemo(()=>he*x+Ce,[he,Ce]),z.useEffect(()=>{ue.current=_e},[_e]),z.useEffect(()=>{ne(!0)},[]),z.useEffect(()=>{let e=P.current;if(e){let t=e.getBoundingClientRect().height;return le(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),z.useLayoutEffect(()=>{if(!O)return;let e=P.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,le(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[O,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let De=z.useCallback(()=>{re(!0),ce(R.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},xs)},[n,d,a,R]);z.useEffect(()=>{if(n.promise&&fe===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||we?(()=>{if(ye.current<ve.current){let e=new Date().getTime()-ve.current;ue.current-=e}ye.current=new Date().getTime()})():ue.current!==1/0&&(ve.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),De()},ue.current)),()=>clearTimeout(e)},[u,i,n,fe,we,De]),z.useEffect(()=>{n.delete&&(De(),n.onDismiss==null||n.onDismiss.call(n,n))},[De,n.delete]);function Oe(){return w?.loading?z.createElement(`div`,{className:Ss(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":fe===`loading`},w.loading):z.createElement(ts,{className:Ss(C?.loader,n?.classNames?.loader),visible:fe===`loading`})}let ke=n.icon||w?.[fe]||$o(fe);return z.createElement(`li`,{tabIndex:0,ref:P,className:Ss(_,pe,C?.toast,n?.classNames?.toast,C?.default,C?.[fe],n?.classNames?.[fe]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":O,"data-promise":!!n.promise,"data-swiped":ae,"data-removed":k,"data-visible":I,"data-y-position":xe,"data-x-position":Se,"data-index":c,"data-front":F,"data-swiping":A,"data-dismissible":L,"data-type":fe,"data-invert":Te,"data-swipe-out":M,"data-swipe-direction":D,"data-expanded":!!(u||S&&O),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${k?se:R.current}px`,"--initial-height":S?`auto`:`${N}px`,...m,...n.style},onDragEnd:()=>{j(!1),E(null),be.current=null},onPointerDown:e=>{e.button!==2&&(Ee||!L||(de.current=new Date,ce(R.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(j(!0),be.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(M||!L)return;be.current=null;let e=Number(P.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(P.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-de.current?.getTime(),i=ee===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=bs||a>.11){ce(R.current),n.onDismiss==null||n.onDismiss.call(n,n),te(ee===`x`?e>0?`right`:`left`:t>0?`down`:`up`),De(),ie(!0);return}else{var o,s;(o=P.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=P.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}oe(!1),j(!1),E(null)},onPointerMove:t=>{var n,r;if(!be.current||!L||window.getSelection()?.toString().length>0)return;let i=t.clientY-be.current.y,a=t.clientX-be.current.x,o=e.swipeDirections??Cs(b);!ee&&(Math.abs(a)>1||Math.abs(i)>1)&&E(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(ee===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)<Math.abs(i)?e:i}}else if(ee===`x`&&(o.includes(`left`)||o.includes(`right`)))if(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)<Math.abs(a)?e:a}(Math.abs(s.x)>0||Math.abs(s.y)>0)&&oe(!0),(n=P.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=P.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},ge&&!n.jsx&&fe!==`loading`?z.createElement(`button`,{"aria-label":T,"data-disabled":Ee,"data-close-button":!0,onClick:Ee||!L?()=>{}:()=>{De(),n.onDismiss==null||n.onDismiss.call(n,n)},className:Ss(C?.closeButton,n?.classNames?.closeButton)},w?.close??os):null,(fe||n.icon||n.promise)&&n.icon!==null&&(w?.[fe]!==null||n.icon)?z.createElement(`div`,{"data-icon":``,className:Ss(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Oe():null,n.type===`loading`?null:ke):null,z.createElement(`div`,{"data-content":``,className:Ss(C?.content,n?.classNames?.content)},z.createElement(`div`,{"data-title":``,className:Ss(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?z.createElement(`div`,{"data-description":``,className:Ss(v,me,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),z.isValidElement(n.cancel)?n.cancel:n.cancel&&ps(n.cancel)?z.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{ps(n.cancel)&&L&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),De())},className:Ss(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,z.isValidElement(n.action)?n.action:n.action&&ps(n.action)?z.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{ps(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&De())},className:Ss(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function Ts(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function Es(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?gs:hs;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}function Ds(){let[e,t]=z.useState([]);return z.useEffect(()=>ls.subscribe(e=>{if(e.dismiss){setTimeout(()=>{ht.flushSync(()=>{t(t=>t.filter(t=>t.id!==e.id))})});return}setTimeout(()=>{ht.flushSync(()=>{t(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[]),{toasts:e}}var Os=z.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=ms,toastOptions:g,dir:_=Ts(),gap:v=ys,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=z.useState([]),C=z.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=z.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[T,ee]=z.useState([]),[E,D]=z.useState(!1),[te,O]=z.useState(!1),[ne,k]=z.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),re=z.useRef(null),A=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),j=z.useRef(null),M=z.useRef(!1),ie=z.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||ls.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return z.useEffect(()=>ls.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{ht.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),z.useEffect(()=>{if(d!==`system`){k(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?k(`dark`):k(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{k(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{k(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),z.useEffect(()=>{x.length<=1&&D(!1)},[x]),z.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;D(!0),(t=re.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===re.current||re.current?.contains(document.activeElement))&&D(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),z.useEffect(()=>{if(re.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,M.current=!1)}},[re.current]),z.createElement(`section`,{ref:t,"aria-label":`${b} ${A}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?z.createElement(`ol`,{key:t,dir:_===`auto`?Ts():_,tabIndex:-1,ref:re,className:c,"data-sonner-toaster":!0,"data-sonner-theme":ne,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${T[0]?.height||0}px`,"--width":`${vs}px`,"--gap":`${v}px`,...m,...Es(l,u)},onBlur:e=>{M.current&&!e.currentTarget.contains(e.relatedTarget)&&(M.current=!1,j.current&&=(j.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||M.current||(M.current=!0,j.current=e.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{te||D(!1)},onDragEnd:()=>D(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||O(!0)},onPointerUp:()=>O(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>z.createElement(ws,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:te,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ie,toasts:C.filter(e=>e.position==n.position),heights:T.filter(e=>e.position==n.position),setHeights:ee,expandByDefault:o,gap:v,expanded:E,swipeDirections:e.swipeDirections}))):null}))});function ks(e){return(0,B.jsx)(Os,{className:`toaster group`,style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`},...e})}var As=`Plumix Admin`,js=b()({beforeLoad:async({context:e})=>{await e.queryClient.ensureQueryData(Ho())},component:Ms,notFoundComponent:Ps});function Ms(){Ns();let{theme:e}=Xo();return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(y,{}),(0,B.jsx)(ks,{theme:e})]})}function Ns(){let e=C({select:e=>e.location.pathname}),{i18n:t}=o();(0,z.useEffect)(()=>{let n=Io(e),r=n[n.length-1];if(!r){document.title=As;return}let i=typeof r.label==`string`?r.label:t._(r.label.id,r.values,{message:r.label.message});document.title=`${i} · ${As}`},[e,t])}function Ps(){return(0,B.jsx)($t,{testId:`not-found-page`,title:(0,B.jsx)(s,{id:`notFound.title`,message:`Not found`}),description:(0,B.jsx)(s,{id:`notFound.description`,message:`The page you're looking for doesn't exist or the resource isn't registered. Check the URL and try again.`})})}var Fs=E(`/_editor`)({beforeLoad:({context:e})=>Wo(e.queryClient),component:w(()=>V(()=>import(`./_editor-DTQYo5H1.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),`component`)}),Is=E(`/_authenticated`)({beforeLoad:({context:e})=>Wo(e.queryClient),component:w(()=>V(()=>import(`./_authenticated-DbZWnirz.js`),__vite__mapDeps([9,1,3,10,11,2,4,5,12,13,7,8,14,15,16,17,6,18,19,20,21,22]),import.meta.url),`component`)}),Ls=E(`/_auth`)({beforeLoad:async({context:e})=>{if((await e.queryClient.ensureQueryData(Ho())).user)throw x({to:`/`})},component:w(()=>V(()=>import(`./_auth-DwSMg4I8.js`),__vite__mapDeps([23,1,2,3,4,5]),import.meta.url),`component`)}),Rs=E(`/_authenticated/`)({component:w(()=>V(()=>import(`./_authenticated-CxUnTydB.js`),__vite__mapDeps([24,1,3,10,11,2,4,5,12,19,21,25,26,8,15,27,28,29,30]),import.meta.url),`component`)}),zs=E(`/_authenticated/profile`)({beforeLoad:({context:e})=>{throw x({to:`/users/$id/edit`,params:{id:e.user.id}})}}),Bs=()=>V(()=>import(`./login-epTUDW_0.js`),__vite__mapDeps([31,1,3,10,11,2,4,5,32,26,8,16,22,21,33,7,30,34,35,17]),import.meta.url),Vs=ye({oauth_error:R(Ee()),magic_link_error:R(Ee()),email_change_error:R(Ee()),email_change_success:R(me([Ee(),Se()])),lang:R(Ee())}),Hs=E(`/_auth/login`)({validateSearch:Vs,beforeLoad:async({context:e})=>{if((await e.queryClient.ensureQueryData(Ho())).needsBootstrap)throw x({to:`/bootstrap`})},component:w(Bs,`component`)}),Us=ye({email:me([De(we(``)),Me],Ae({id:`login.email.invalid`}))}),Ws=ye({email:Me,name:R(ke,``)}),Gs=ye({lang:R(Ee())}),Ks=E(`/_auth/bootstrap`)({validateSearch:Gs,beforeLoad:async({context:e})=>{if(!(await e.queryClient.ensureQueryData(Ho())).needsBootstrap)throw x({to:`/login`})},component:w(()=>V(()=>import(`./bootstrap-D1ITzrPN.js`),__vite__mapDeps([36,1,3,10,11,2,4,5,32,26,8,16,22,21,33,7,30,34,35]),import.meta.url),`component`)});function qs(e,t){return e.includes(t)}var Js={subscriber:{id:`userRole.subscriber`},contributor:{id:`userRole.contributor`},author:{id:`userRole.author`},editor:{id:`userRole.editor`},admin:{id:`userRole.admin`}},Ys={subscriber:{id:`userRole.long.subscriber`},contributor:{id:`userRole.long.contributor`},author:{id:`userRole.long.author`},editor:{id:`userRole.long.editor`},admin:{id:`userRole.long.admin`}};function Xs({...e}){return(0,B.jsx)(ae,{"data-slot":`select`,...e})}function Zs({...e}){return(0,B.jsx)(A,{"data-slot":`select-value`,...e})}function Qs({className:e,size:t=`default`,children:n,...r}){return(0,B.jsxs)(se,{"data-slot":`select-trigger`,"data-size":t,className:de(`border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='text-'])]:text-muted-foreground flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,B.jsx)(le,{asChild:!0,children:(0,B.jsx)(Ft,{className:`size-4 opacity-50`})})]})}function $s({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,B.jsx)(M,{children:(0,B.jsxs)(ne,{"data-slot":`select-content`,className:de(`bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1 rtl:data-[side=left]:translate-x-1 rtl:data-[side=right]:-translate-x-1`,e),position:n,align:r,...i,children:[(0,B.jsx)(tc,{}),(0,B.jsx)(j,{className:de(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,B.jsx)(nc,{})]})})}function ec({className:e,children:t,...n}){return(0,B.jsxs)(oe,{"data-slot":`select-item`,className:de(`focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,B.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute end-2 flex size-3.5 items-center justify-center`,children:(0,B.jsx)(re,{children:(0,B.jsx)(Pt,{className:`size-4`})})}),(0,B.jsx)(k,{children:t})]})}function tc({className:e,...t}){return(0,B.jsx)(te,{"data-slot":`select-scroll-up-button`,className:de(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,B.jsx)(It,{className:`size-4`})})}function nc({className:e,...t}){return(0,B.jsx)(ce,{"data-slot":`select-scroll-down-button`,className:de(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,B.jsx)(Ft,{className:`size-4`})})}var rc={page:1,role:`all`},ic=[`subscriber`,`contributor`,`author`,`editor`,`admin`];function ac(e){return ic.includes(e)}var oc=()=>V(()=>import(`./users-S1uN00sD.js`),__vite__mapDeps([37,1,3,10,11,2,4,5,12,38,8,13,7,14,15,16,17,6,39,40,26,41,33,30,21,25,27]),import.meta.url),sc=[`all`,...ic],cc=ye({page:R(be(De(Se(),Ce(),ve(1)),1),1),role:R(be(Te(sc),`all`),`all`),q:R(be(De(Ee(),L(),xe(200),pe(e=>e.length===0?void 0:e)),void 0))}),lc=E(`/_authenticated/users/`)({validateSearch:e=>ge(cc,e),beforeLoad:({context:e})=>{if(!qs(e.user.capabilities,`user:list`))throw x({to:`/`})},component:w(oc,`component`)}),uc=E(`/_authenticated/settings/`)({beforeLoad:({context:e})=>{if(!qs(e.user.capabilities,`settings:manage`))throw x({to:`/`})},component:w(()=>V(()=>import(`./settings-CkVoTIwd.js`),__vite__mapDeps([42,1,10,3,2,4,5,20,12,21,26,8]),import.meta.url),`component`)}),dc=E(`/_authenticated/mailer/`)({beforeLoad:({context:e})=>{if(!qs(e.user.capabilities,`settings:manage`))throw x({to:`/`})},component:w(()=>V(()=>import(`./mailer-HpDxW8FX.js`),__vite__mapDeps([43,1,3,10,11,21,35,44,26,8,16,33,7,4,30,34,45]),import.meta.url),`component`)}),fc=E(`/_authenticated/allowed-domains/`)({beforeLoad:({context:e})=>{if(!qs(e.user.capabilities,`settings:manage`))throw x({to:`/`})},component:w(()=>V(()=>import(`./allowed-domains-DIQ_LoVq.js`),__vite__mapDeps([46,1,3,10,11,47,12,21,35,44,26,8,16,41,7,4,14,33,30,34]),import.meta.url),`component`)}),pc=E(`/_authenticated/users/create`)({beforeLoad:({context:e})=>{if(!qs(e.user.capabilities,`user:create`))throw x({to:`/users`,search:rc})},component:w(()=>V(()=>import(`./create-BFQqxGF6.js`),__vite__mapDeps([48,1,3,10,11,2,4,5,49,12,50,21,35,44,26,8,16,33,7,30,34]),import.meta.url),`component`)}),mc={loadingAria:{id:`settings.page.loading`},loadFailed:{id:`settings.page.loadFailed`},saved:{id:`settings.page.saved`},saveFailed:{id:`settings.page.saveFailed`}};function hc({ariaLabel:e,testId:t}){return(0,B.jsxs)(`div`,{role:`status`,"aria-live":`polite`,"aria-label":e,"data-testid":t,className:`mx-auto flex w-full max-w-xl flex-col gap-4`,children:[(0,B.jsx)(Ie,{className:`h-4 w-24`}),(0,B.jsxs)(Fe,{children:[(0,B.jsxs)(Ne,{children:[(0,B.jsx)(Ie,{className:`h-6 w-48`}),(0,B.jsx)(Ie,{className:`h-4 w-72`})]}),(0,B.jsxs)(Pe,{className:`flex flex-col gap-4`,children:[(0,B.jsx)(Ie,{className:`h-10 w-full`}),(0,B.jsx)(Ie,{className:`h-10 w-full`}),(0,B.jsx)(Ie,{className:`h-10 w-full`})]})]})]})}var gc=E(`/_authenticated/settings/$page`)({beforeLoad:({context:e,params:t})=>{let n=Ao(t.page);if(!n||!qs(e.user.capabilities,`settings:manage`))throw T();return{page:n}},loader:({context:e})=>{let t=Mo(e.page);return Promise.all(t.map(t=>e.queryClient.ensureQueryData(v.settings.get.queryOptions({input:{group:t.name}}))))},pendingComponent:_c,errorComponent:w(()=>V(()=>import(`./_page-ClAHWpJA.js`),__vite__mapDeps([51,1,10,3]),import.meta.url),`errorComponent`),component:w(()=>V(()=>import(`./_page-BMWM_crl.js`),__vite__mapDeps([52,1,3,10,11,21,26,8,33,7,4,30,53,13,14,12,15,16,17,6,40,39,41,54,55]),import.meta.url),`component`)});function _c(){let{i18n:e}=o();return(0,B.jsx)(hc,{ariaLabel:e._(mc.loadingAria.id,void 0,{message:mc.loadingAria.message}),testId:`settings-page-loading`})}var vc=E(`/_authenticated/pages/$`)({beforeLoad:({context:e,params:t})=>{let n=t._splat;if(!n)throw T();let r=Po(`/pages/${n}`);if(!r)throw T();if(r.capability&&!qs(e.user.capabilities,r.capability))throw x({to:`/`});return{navItem:r}},component:w(()=>V(()=>import(`./_-DbGPlcLC.js`),__vite__mapDeps([56,1,3,10,21,29,30,8]),import.meta.url),`component`)}),yc=()=>V(()=>import(`./device-DedwLhBj.js`),__vite__mapDeps([57,1,3,10,11,40,7,4,8,12,21,35,44,26,16,33,30,34,45,58]),import.meta.url),bc=ye({user_code:R(De(Ee(),L(),xe(32)))}),xc=E(`/_authenticated/auth/device`)({validateSearch:bc,component:w(yc,`component`)}),Sc=E(`/_auth/accept-invite/$token`)({validateSearch:Gs,beforeLoad:async({context:e})=>{if((await e.queryClient.ensureQueryData(Ho())).user)throw x({to:`/`})},component:w(()=>V(()=>import(`./_token-BDyoqyFe.js`),__vite__mapDeps([59,1,3,10,11,2,4,5,32,26,8,16,22,21,33,7,30]),import.meta.url),`component`)}),Cc=()=>V(()=>import(`./_name-BWrqcSjK.js`),__vite__mapDeps([60,1,3,10,11,2,4,5,38,8,12,13,7,14,15,16,17,6,39,40,26,41,33,30,21,54,61]),import.meta.url),wc=ye({page:R(be(De(Se(),Ce(),ve(1)),1),1),q:R(be(De(Ee(),L(),xe(200),pe(e=>e.length===0?void 0:e)),void 0))}),Tc=E(`/_authenticated/terms/$name/`)({validateSearch:e=>ge(wc,e),beforeLoad:({context:e,params:t})=>{let n=So(t.name);if(!n||!qs(e.user.capabilities,`term:${n.name}:read`))throw T();return{taxonomy:n}},component:w(Cc,`component`)}),Ec=()=>V(()=>import(`./_slug-BGJ2I-cS.js`),__vite__mapDeps([62,1,3,10,11,2,4,5,8,12,63,13,7,14,15,16,17,6,18,39,40,26,41,33,30,21,61,38,25,54,27]),import.meta.url),Dc=_e({page:R(be(De(Se(),Ce(),ve(1)),1),1),status:R(be(Te([`draft`,`published`,`scheduled`,`trash`,`all`]),`all`),`all`),q:R(be(De(Ee(),L(),xe(200),pe(e=>e.length===0?void 0:e)),void 0)),author:R(be(Te([`all`,`mine`]),`all`),`all`),orderBy:R(be(Te([`updated_at`,`published_at`,`title`,`sort_order`]),`updated_at`),`updated_at`),order:R(be(Te([`asc`,`desc`]),`desc`),`desc`)}),Oc=E(`/_authenticated/entries/$slug/`)({validateSearch:e=>ge(Dc,e),beforeLoad:({params:e})=>{let t=yo(e.slug);if(!t)throw T();return{entryType:t}},component:w(Ec,`component`)}),kc=E(`/_editor/entries/$slug/create`)({beforeLoad:({context:e,params:t})=>{let n=yo(t.slug);if(!n)throw T();let r=n.capabilityType??n.name;if(!qs(e.user.capabilities,`entry:${r}:create`))throw T();return{entryType:n}},component:w(()=>V(()=>import(`./create-BrPyaUMW.js`),__vite__mapDeps([64,1,3,11,2,4,5,21,10,65]),import.meta.url),`component`)}),Ac={loadingAria:{id:`userEdit.loading.aria`},loadFailed:{id:`userEdit.loadFailed`},errUpdateFallback:{id:`userEdit.error.updateFallback`},errStatusFallback:{id:`userEdit.error.statusFallback`},errDeleteFallback:{id:`userEdit.error.deleteFallback`},toggleEnabling:{id:`userEdit.status.toggle.enabling`},toggleDisabling:{id:`userEdit.status.toggle.disabling`},toggleEnable:{id:`userEdit.status.toggle.enable`},toggleDisable:{id:`userEdit.status.toggle.disable`},reassignKeepAsIs:{id:`userEdit.delete.reassign.keepAsIs`}},jc=E(`/_authenticated/users/$id/edit`)({params:{parse:e=>{let t=he(je,e.id);if(!t.success)throw T();return{id:t.output}}},beforeLoad:({context:e,params:t})=>{let n=t.id===e.user.id,r=qs(e.user.capabilities,`user:list`),i=n&&qs(e.user.capabilities,`user:edit_own`);if(!r&&!i)throw x({to:`/`})},loader:({context:e,params:t})=>e.queryClient.ensureQueryData(v.user.get.queryOptions({input:{id:t.id}})),pendingComponent:Mc,errorComponent:w(()=>V(()=>import(`./edit-CLa1IU8I.js`),__vite__mapDeps([66,1,10,3,21]),import.meta.url),`errorComponent`),component:w(()=>V(()=>import(`./edit-DiaJf7-W.js`),__vite__mapDeps([67,1,3,10,11,2,4,5,12,49,40,7,8,50,39,14,13,15,16,17,6,26,41,33,30,68,21,35,44,25,22,34,45,58,27,69,53,54,55]),import.meta.url),`component`)});function Mc(){return(0,B.jsx)(hc,{ariaLabel:fe()(Ac.loadingAria),testId:`user-edit-loading`})}var Nc={page:1},Pc=E(`/_authenticated/terms/$name/create`)({beforeLoad:({context:e,params:t})=>{let n=So(t.name);if(!n)throw T();if(!qs(e.user.capabilities,`term:${n.name}:edit`))throw x({to:`/terms/$name`,params:{name:t.name},search:Nc});return{taxonomy:n}},component:w(()=>V(()=>import(`./create-DwlFRgkL.js`),__vite__mapDeps([70,1,3,11,2,4,5,49,12,21,10,54,26,8,61,71,40,7,35,44,16,33,30,34,69,39,14,13,15,17,6,41,53,55,65]),import.meta.url),`component`)}),Fc=e=>v.entry.createPreviewLink.queryOptions({input:{id:e},staleTime:1/0});function Ic(){return(0,B.jsx)(`div`,{className:`text-muted-foreground p-6 text-sm`,"data-testid":`plumix-editor-loading`,children:(0,B.jsx)(s,{id:`editor.loading`,message:`Opening the editor…`})})}var Lc=class e extends Error{static{e.prototype.name=`AdminPluginRegistryError`}code;registerName;key;type;blockName;constructor(e,t,n){super(t),this.code=e,this.registerName=n.registerName,this.key=n.key,this.type=n.type,this.blockName=n.blockName}static duplicateKey(t){return new e(`duplicate_key`,`${t.registerName}: "${t.key}" is already registered. Two plugins are claiming the same key; rename one.`,t)}static inputTypeReserved(t){return new e(`input_type_reserved`,`registerPluginFieldType: "${t.type}" is reserved for built-in renderers. Pick a different inputType for your custom field — see the host's RESERVED_INPUT_TYPES list.`,t)}static invalidBlockName(t){return new e(`invalid_block_name`,`registerPluginBlock: spec.name must be a namespaced string ("plugin/slug") to disambiguate from first-party blocks. Got: ${JSON.stringify(t.name)}`,{blockName:t.name})}static ssrWalkedAdminSpec(){return new e(`ssr_walked_admin_spec`,"Admin-only plugin block spec rendered on the SSR walker path. registries.ts contributions are admin-only; the runtime walker must source `component` from `@plumix/blocks` directly.",{})}};function Rc(e){return{map:new Map,registerName:e}}var zc=Rc(`registerPluginPage`),Bc=Rc(`registerPluginDashboardWidget`),Vc=Rc(`registerPluginFieldType`),Hc=Rc(`registerPluginBlockSchema`),Uc=Rc(`registerPluginBlockEditor`),Wc=Rc(`registerPluginMarkSchema`),Gc=Rc(`registerPluginBlock`);function Kc(e,t,n){if(e.map.has(t))throw Lc.duplicateKey({registerName:e.registerName,key:t});e.map.set(t,n)}function qc(e,t){Kc(zc,e,t)}function Jc(e){return zc.map.get(e)}function Yc(e,t){Kc(Bc,e,t)}function Xc(e){return Bc.map.get(e)}var Zc=new Set([`text`,`textarea`,`number`,`email`,`url`,`password`,`date`,`datetime`,`time`,`color`,`range`,`multiselect`,`json`,`richtext`,`repeater`,`select`,`radio`,`checkbox`,`user`,`userList`,`entry`,`entryList`,`term`,`termList`]);function Qc(e,t){if(Zc.has(e))throw Lc.inputTypeReserved({type:e});Kc(Vc,e,t)}function $c(e){return Vc.map.get(e)}function el(e,t){Kc(Hc,e,t)}function tl(e,t){Kc(Uc,e,t)}function nl(e,t){Kc(Wc,e,t)}function rl(e){if(typeof e.name!=`string`||!e.name.includes(`/`))throw Lc.invalidBlockName({name:e.name});Kc(Gc,e.name,e)}function il(){return Array.from(Gc.map.values())}function al(){if(!(il().length>=so.length))for(let e of so)rl(e)}function ol(e){return e?.supports?e.supports.includes(`editor`):!0}function sl(e){return e?.supports?.includes(`revisions`)??!1}function cl({entryType:e,currentStatus:t,isAuthor:n,capabilities:r}){if(!e||!(e.supports?.includes(`autosave`)??!1)||!(t===`published`||t===`scheduled`))return`edit-live`;let i=e.capabilityType??e.name,a=r.has(`entry:${i}:edit_any`),o=r.has(`entry:${i}:edit_own`);return a||n&&o?`edit-with-draft`:`edit-live`}var ll=()=>V(()=>import(`./edit-CteELL-K.js`),__vite__mapDeps([72,1,3,10,11,2,4,5,7,8,12,73,13,14,15,16,17,6,63,18,39,40,26,41,33,30,21,61,49,50,68,47,74,35,44,25,54,34,28,53]),import.meta.url),ul=()=>V(()=>import(`./edit-Ba0VjKvg.js`),__vite__mapDeps([75,1,10,3]),import.meta.url);al();var dl=ye({revision:R(De(Se(),Ce(),ve(1)))}),fl=E(`/_editor/entries/$slug/$id/edit`)({params:{parse:e=>{let t=he(je,e.id);if(!t.success)throw T();return{slug:e.slug,id:t.output}}},validateSearch:dl,loader:async({context:e,params:t})=>{let n=yo(t.slug);await Promise.all([e.queryClient.ensureQueryData(v.entry.get.queryOptions({input:{id:t.id,preview:!0}})),...ol(n)?[e.queryClient.ensureQueryData(Fc(t.id))]:[]])},pendingComponent:Ic,errorComponent:w(ul,`errorComponent`),component:w(ll,`component`)}),pl={saveFallback:{id:`terms.edit.error.saveFallback`},deleteFallback:{id:`terms.edit.error.deleteFallback`},notFoundMessage:{id:`terms.edit.notFound.message`},loadingAria:{id:`terms.edit.loadingAria`},descendantsHint:{id:`terms.edit.descendantsHint`},submit:{id:`terms.edit.submit`}},ml=E(`/_authenticated/terms/$name/$id/edit`)({params:{parse:e=>{let t=he(je,e.id);if(!t.success)throw T();return{name:e.name,id:t.output}}},beforeLoad:({context:e,params:t})=>{let n=So(t.name);if(!n||!qs(e.user.capabilities,`term:${n.name}:read`))throw T();return{taxonomy:n}},loader:({context:e,params:t})=>e.queryClient.ensureQueryData(v.term.get.queryOptions({input:{id:t.id}})),pendingComponent:hl,errorComponent:w(()=>V(()=>import(`./edit-BgcIFZzf.js`),__vite__mapDeps([76,1,10,3,21]),import.meta.url),`errorComponent`),component:w(()=>V(()=>import(`./edit-BdagVECm.js`),__vite__mapDeps([77,1,3,10,11,2,4,5,49,12,39,7,8,14,13,15,16,17,6,40,26,41,33,30,21,54,61,71,35,44,34,69,53,55]),import.meta.url),`component`)});function hl(){return(0,B.jsx)(hc,{ariaLabel:fe()(pl.loadingAria),testId:`term-edit-loading`})}var gl=Fs.update({id:`/_editor`,getParentRoute:()=>js}),_l=Is.update({id:`/_authenticated`,getParentRoute:()=>js}),vl=Ls.update({id:`/_auth`,getParentRoute:()=>js}),yl=Rs.update({id:`/`,path:`/`,getParentRoute:()=>_l}),bl=zs.update({id:`/profile`,path:`/profile`,getParentRoute:()=>_l}),xl=Hs.update({id:`/login`,path:`/login`,getParentRoute:()=>vl}),Sl=Ks.update({id:`/bootstrap`,path:`/bootstrap`,getParentRoute:()=>vl}),Cl=lc.update({id:`/users/`,path:`/users/`,getParentRoute:()=>_l}),wl=uc.update({id:`/settings/`,path:`/settings/`,getParentRoute:()=>_l}),Tl=dc.update({id:`/mailer/`,path:`/mailer/`,getParentRoute:()=>_l}),El=fc.update({id:`/allowed-domains/`,path:`/allowed-domains/`,getParentRoute:()=>_l}),Dl=pc.update({id:`/users/create`,path:`/users/create`,getParentRoute:()=>_l}),Ol=gc.update({id:`/settings/$page`,path:`/settings/$page`,getParentRoute:()=>_l}),kl=vc.update({id:`/pages/$`,path:`/pages/$`,getParentRoute:()=>_l}),Al=xc.update({id:`/auth/device`,path:`/auth/device`,getParentRoute:()=>_l}),jl=Sc.update({id:`/accept-invite/$token`,path:`/accept-invite/$token`,getParentRoute:()=>vl}),Ml=Tc.update({id:`/terms/$name/`,path:`/terms/$name/`,getParentRoute:()=>_l}),Nl=Oc.update({id:`/entries/$slug/`,path:`/entries/$slug/`,getParentRoute:()=>_l}),Pl=kc.update({id:`/entries/$slug/create`,path:`/entries/$slug/create`,getParentRoute:()=>gl}),Fl=jc.update({id:`/users/$id/edit`,path:`/users/$id/edit`,getParentRoute:()=>_l}),Il=Pc.update({id:`/terms/$name/create`,path:`/terms/$name/create`,getParentRoute:()=>_l}),J=fl.update({id:`/entries/$slug/$id/edit`,path:`/entries/$slug/$id/edit`,getParentRoute:()=>gl}),Ll=ml.update({id:`/terms/$name/$id/edit`,path:`/terms/$name/$id/edit`,getParentRoute:()=>_l}),Y={AuthBootstrapRoute:Sl,AuthLoginRoute:xl,AuthAcceptInviteTokenRoute:jl},X=vl._addFileChildren(Y),Z={AuthenticatedProfileRoute:bl,AuthenticatedIndexRoute:yl,AuthenticatedAuthDeviceRoute:Al,AuthenticatedPagesSplatRoute:kl,AuthenticatedSettingsPageRoute:Ol,AuthenticatedUsersCreateRoute:Dl,AuthenticatedAllowedDomainsIndexRoute:El,AuthenticatedMailerIndexRoute:Tl,AuthenticatedSettingsIndexRoute:wl,AuthenticatedUsersIndexRoute:Cl,AuthenticatedTermsNameCreateRoute:Il,AuthenticatedUsersIdEditRoute:Fl,AuthenticatedEntriesSlugIndexRoute:Nl,AuthenticatedTermsNameIndexRoute:Ml,AuthenticatedTermsNameIdEditRoute:Ll},Rl=_l._addFileChildren(Z),zl={EditorEntriesSlugCreateRoute:Pl,EditorEntriesSlugIdEditRoute:J},Bl={AuthRoute:X,AuthenticatedRoute:Rl,EditorRoute:gl._addFileChildren(zl)},Vl=js._addFileChildren(Bl)._addFileTypes();function Hl(e){return S({routeTree:Vl,basepath:`${h()}${_}`,defaultPreload:`intent`,defaultPreloadStaleTime:0,scrollRestoration:!0,defaultErrorComponent:Qt,context:{queryClient:e}})}function Ul(){let[e]=(0,z.useState)(yt),[t]=(0,z.useState)(()=>Hl(e));return(0,B.jsx)(l,{i18n:mt,children:(0,B.jsx)(O,{dir:Ge(),children:(0,B.jsx)(Yo,{defaultTheme:`system`,children:(0,B.jsxs)(p,{client:e,children:[(0,B.jsx)(ee,{router:t}),null]})})})})}var Wl=Object.assign({"../../locales/ar.mjs":()=>V(()=>import(`./ar-Dlr9PmMq.js`),[],import.meta.url),"../../locales/de.mjs":()=>V(()=>import(`./de-DIaivdrP.js`),[],import.meta.url),"../../locales/en.mjs":()=>V(()=>import(`./en-0MUT7HwI.js`),[],import.meta.url),"../../locales/uk.mjs":()=>V(()=>import(`./uk-DVE7aazP.js`),[],import.meta.url),"../../locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN-DA1Ls1Dj.js`),[],import.meta.url)}),Gl=Object.assign({"../../../plugins/audit-log/locales/ar.mjs":()=>V(()=>import(`./ar-Dlvpw6lg.js`),[],import.meta.url),"../../../plugins/audit-log/locales/de.mjs":()=>V(()=>import(`./de-CN1uSHLH.js`),[],import.meta.url),"../../../plugins/audit-log/locales/en.mjs":()=>V(()=>import(`./en-DG5AvC9g.js`),[],import.meta.url),"../../../plugins/audit-log/locales/uk.mjs":()=>V(()=>import(`./uk-CO1j-3uB.js`),[],import.meta.url),"../../../plugins/audit-log/locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN-iir6sd5N.js`),[],import.meta.url),"../../../plugins/blog/locales/ar.mjs":()=>V(()=>import(`./ar-9HCIfmBz.js`),[],import.meta.url),"../../../plugins/blog/locales/de.mjs":()=>V(()=>import(`./de-BYwSm4O1.js`),[],import.meta.url),"../../../plugins/blog/locales/en.mjs":()=>V(()=>import(`./en-phTuN5O3.js`),[],import.meta.url),"../../../plugins/blog/locales/uk.mjs":()=>V(()=>import(`./uk-ne9mbIup.js`),[],import.meta.url),"../../../plugins/blog/locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN-BoFMJmlb.js`),[],import.meta.url),"../../../plugins/comments/locales/ar.mjs":()=>V(()=>import(`./ar-b8X4U-Yj.js`),[],import.meta.url),"../../../plugins/comments/locales/de.mjs":()=>V(()=>import(`./de-v78Axzn1.js`),[],import.meta.url),"../../../plugins/comments/locales/en.mjs":()=>V(()=>import(`./en-B2WjeApp.js`),[],import.meta.url),"../../../plugins/comments/locales/uk.mjs":()=>V(()=>import(`./uk-DM9J8Vuo.js`),[],import.meta.url),"../../../plugins/comments/locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN-B-X6nxCi.js`),[],import.meta.url),"../../../plugins/media/locales/ar.mjs":()=>V(()=>import(`./ar-Buhn3_h1.js`),[],import.meta.url),"../../../plugins/media/locales/de.mjs":()=>V(()=>import(`./de-CvzTts2_.js`),[],import.meta.url),"../../../plugins/media/locales/en.mjs":()=>V(()=>import(`./en-8mtHvgf_.js`),[],import.meta.url),"../../../plugins/media/locales/uk.mjs":()=>V(()=>import(`./uk-CFwH6F6c.js`),[],import.meta.url),"../../../plugins/media/locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN-gCCQNrSp.js`),[],import.meta.url),"../../../plugins/menu/locales/ar.mjs":()=>V(()=>import(`./ar-2V_CUREp.js`),[],import.meta.url),"../../../plugins/menu/locales/de.mjs":()=>V(()=>import(`./de-D0IUVgz1.js`),[],import.meta.url),"../../../plugins/menu/locales/en.mjs":()=>V(()=>import(`./en-DSzDoXek.js`),[],import.meta.url),"../../../plugins/menu/locales/uk.mjs":()=>V(()=>import(`./uk-DBaZCcmT.js`),[],import.meta.url),"../../../plugins/menu/locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN--OEUZ0F-.js`),[],import.meta.url),"../../../plugins/pages/locales/ar.mjs":()=>V(()=>import(`./ar-DAS2VDOL.js`),[],import.meta.url),"../../../plugins/pages/locales/de.mjs":()=>V(()=>import(`./de-OLYk7yVD.js`),[],import.meta.url),"../../../plugins/pages/locales/en.mjs":()=>V(()=>import(`./en-GstVzXkR.js`),[],import.meta.url),"../../../plugins/pages/locales/uk.mjs":()=>V(()=>import(`./uk-BzAywoVV.js`),[],import.meta.url),"../../../plugins/pages/locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN-Db7vQndL.js`),[],import.meta.url)}),Kl=Object.assign({"../../../admin-editor/locales/ar.mjs":()=>V(()=>import(`./ar-Cw7lVEca.js`),[],import.meta.url),"../../../admin-editor/locales/de.mjs":()=>V(()=>import(`./de-Cw7lVEca.js`),[],import.meta.url),"../../../admin-editor/locales/en.mjs":()=>V(()=>import(`./en-Cw7lVEca.js`),[],import.meta.url),"../../../admin-editor/locales/uk.mjs":()=>V(()=>import(`./uk-Cw7lVEca.js`),[],import.meta.url),"../../../admin-editor/locales/zh-CN.mjs":()=>V(()=>import(`./zh-CN-Cw7lVEca.js`),[],import.meta.url)});function ql({manifest:e,importCatalog:t=e=>V(()=>import(e),[],import.meta.url)}){let n=new Map;return function(r,i){let a=e[r]?.catalogs[i];if(!a)return Promise.resolve();let o=`${r}|${i}`,s=n.get(o);if(s)return s;let c=(async()=>{try{let e=await t(a);mt.load(i,e.messages)}catch(e){console.error(`[plumix] failed to load catalog for ${r} (${i})`,e)}})();return n.set(o,c),c}}var Jl=`en`,Yl={current:()=>Promise.resolve()};async function Xl(){let e=document.documentElement.lang.toLowerCase().split(`-`)[0]??``,t=Wl[`../../locales/${e}.mjs`],n=t??Wl[`../../locales/${Jl}.mjs`];if(!n)return;let r=t?e:Jl,i=(await n()).messages,a=await Ql(r),o=await Zl(r);mt.load(r,{...o,...a,...i}),mt.activate(r),Oe(e=>mt._(e));let s=fo().pluginI18n??{};Yl.current=ql({manifest:s}),await Promise.all(Object.keys(s).map(e=>Yl.current(e,r)))}async function Zl(e){let t=Kl[`../../../admin-editor/locales/${e}.mjs`]??Kl[`../../../admin-editor/locales/${Jl}.mjs`];return t?(await t()).messages:{}}async function Ql(e){let t={};for(let[n,r]of Object.entries(Gl)){if(!n.endsWith(`/locales/${e}.mjs`))continue;let i=await r();Object.assign(t,i.messages)}return t}var $l=new Map;function eu(e){if($l.has(e.id))throw Lc.duplicateKey({registerName:`registerPaletteCommand`,key:e.id});$l.set(e.id,e)}function tu(){return[...$l.values()]}function nu(e,t,n,r){let i=n.trim().toLowerCase();return e.filter(e=>e.capability&&!qs(t,e.capability)?!1:i.length===0?!0:[r(e.title),...e.keywords??[]].join(` `).toLowerCase().includes(i))}var ru={react:z,reactJsxRuntime:B,reactDom:ht,reactDomClient:Ve,reactQuery:u,reactRouter:D,orpcClient:f,orpcClientFetch:g,orpcTanstackQuery:m,linguiCore:Ke,linguiReact:c,radix:N,sonner:Zo,tailwindMerge:ue};function iu(){typeof window>`u`||window.plumix||(window.plumix={registerPluginPage:qc,registerPluginDashboardWidget:Yc,registerPluginFieldType:Qc,registerPluginBlockSchema:el,registerPluginBlockEditor:tl,registerPluginBlock:rl,registerPluginMarkSchema:nl,registerPaletteCommand:eu,runtime:ru,basePath:h(),i18n:{loadPluginCatalog:(e,t)=>Yl.current(e,t)}})}async function au(){let e=document.querySelectorAll(`script[data-plumix-plugin]`);await Promise.all(Array.from(e).map(ou))}function ou(e){return new Promise(t=>{let n=()=>t();e.addEventListener(`load`,n,{once:!0}),e.addEventListener(`error`,n,{once:!0})})}iu();var su=document.getElementById(`root`);if(!su)throw Error(`Missing #root element`);var cu=Xl().catch(e=>{console.error(`plumix i18n boot failed; rendering with source locale`,e)});Promise.all([au(),cu]).then(()=>{(0,Ve.createRoot)(su).render((0,B.jsx)(z.StrictMode,{children:(0,B.jsx)(Ul,{})}))});export{yo as $,lc as A,Dt as At,Ys as B,xc as C,zt as Ct,mc as D,jt as Dt,hc as E,Mt as Et,$s as F,bt as Ft,Hs as G,Ks as H,ec as I,V as It,fs as J,Rs as K,Qs as L,it as Lt,ic as M,Tt as Mt,ac as N,Et as Nt,dc as O,St as Ot,Xs as P,xt as Pt,bo as Q,Zs as R,mt as Rt,Sc as S,Vt as St,gc as T,Pt as Tt,Ws as U,qs as V,Us as W,Io as X,Uo as Y,Do as Z,jc as _,Xt as _t,fl as a,fo as at,Oc as b,Wt as bt,sl as c,To as ct,Jc as d,Co as dt,So as et,il as f,ko as ft,Nc as g,$t as gt,Pc as h,en as ht,pl as i,Mo as it,rc as j,Ct as jt,uc as k,Ot as kt,Xc as l,xo as lt,Fc as m,nn as mt,nu as n,_o as nt,cl as o,Oo as ot,Ic as p,uo as pt,Is as q,ml as r,go as rt,ol as s,No as st,tu as t,vo as tt,$c as u,wo as ut,Ac as v,Zt as vt,vc as w,Ft as wt,Tc as x,Ut as xt,kc as y,Kt as yt,Js as z,Be as zt};