(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,716609,e=>{"use strict";e.s(["buildFormatLongFn",0,function(e){return (t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}])},649859,e=>{"use strict";e.s(["buildLocalizeFn",0,function(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}])},369796,e=>{"use strict";e.s(["buildMatchFn",0,function(e){return(t,n={})=>{let r,i=n.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;let l=o[0],s=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(let n=0;ne.test(l)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(s,e=>e.test(l));return r=e.valueCallback?e.valueCallback(u):u,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(l.length)}}}])},91081,e=>{"use strict";e.s(["buildMatchPatternFn",0,function(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];return{value:o=n.valueCallback?n.valueCallback(o):o,rest:t.slice(i.length)}}}])},492421,e=>{"use strict";let t={};e.s(["getDefaultOptions",0,function(){return t}])},487122,511518,e=>{"use strict";let t=Symbol.for("constructDateFrom");e.s(["constructFromSymbol",0,t,"millisecondsInDay",0,864e5,"millisecondsInWeek",0,6048e5],511518),e.s(["constructFrom",0,function(e,n){return"function"==typeof e?e(n):e&&"object"==typeof e&&t in e?e[t](n):e instanceof Date?new e.constructor(n):new Date(n)}],487122)},516467,e=>{"use strict";var t=e.i(487122);e.s(["toDate",0,function(e,n){return(0,t.constructFrom)(n||e,e)}])},539392,e=>{"use strict";var t=e.i(487122);e.s(["normalizeDates",0,function(e,...n){let r=t.constructFrom.bind(null,e||n.find(e=>"object"==typeof e));return n.map(r)}])},954259,e=>{"use strict";var t=e.i(492421),n=e.i(516467);e.s(["startOfWeek",0,function(e,r){let i=(0,t.getDefaultOptions)(),a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=(0,n.toDate)(e,r?.in),l=o.getDay();return o.setDate(o.getDate()-(7*(l{"use strict";var r=e.r(592121).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;n.c=function(e){return r.H.useMemoCache(e)}},605913,(e,t,n)=>{"use strict";t.exports=e.r(852092)},827669,e=>{"use strict";var t,n,r=e.i(592121);e.i(798973);var i=e.i(605913),a=e.i(699173);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=Array(e),a=0;a=t.length?t.apply(this,i):function(){for(var t=arguments.length,r=Array(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};g(e),p(t);var n={current:e},r=u(v)(n,t),i=u(y)(n),a=u(h)(e),o=u(b)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return m(e),e(n.current)},function(e){(function(){for(var e=arguments.length,t=Array(e),n=0;ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,a,o=[],l=!0,s=!1;try{i=(t=t.call(e)).next,!0;for(;!(l=(n=i.call(t)).done)&&(o.push(n.value),2!==o.length);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw r}}return o}}(n)||function(e){if(e){if("string"==typeof e)return o(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,2):void 0}}(n)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}(),j=M[0],O=M[1];function P(e){return document.body.appendChild(e)}function E(e){var t,n,r=j(function(e){return{config:e.config,reject:e.reject}}),i=(t="".concat(r.config.paths.vs,"/loader.js"),n=document.createElement("script"),t&&(n.src=t),n);return i.onload=function(){return e()},i.onerror=r.reject,i}function D(){var e=j(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){var n=t.m||t;_(n),e.resolve(n)},function(t){e.reject(t)})}function _(e){j().monaco||O({monaco:e})}var F=new Promise(function(e,t){return O({resolve:e,reject:t})}),A=function(){var e=j(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(O({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),x(F);if(window.monaco&&window.monaco.editor)return _(window.monaco),e.resolve(window.monaco),x(F);k(P,E)(D)}return x(F)},R={display:"flex",position:"relative",textAlign:"initial"},T={width:"100%"},N={display:"none"},L={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"},I=function({children:e}){return r.default.createElement("div",{style:L},e)},B=(0,r.memo)(function({width:e,height:t,isEditorReady:n,loading:i,_ref:a,className:o,wrapperProps:l}){return r.default.createElement("section",{style:{...R,width:e,height:t},...l},!n&&r.default.createElement(I,null,i),r.default.createElement("div",{ref:a,style:{...T,...!n&&N},className:o}))}),W=function(e){(0,r.useEffect)(e,[])},$=function(e,t,n=!0){let i=(0,r.useRef)(!0);(0,r.useEffect)(i.current||!n?()=>{i.current=!1}:e,t)};function z(){}function V(e,t,n,r){var i,a,o,l,s,u;return i=e,a=r,i.editor.getModel(q(i,a))||(o=e,l=t,s=n,u=r,o.editor.createModel(l,s,u?q(o,u):void 0))}function q(e,t){return e.Uri.parse(t)}(0,r.memo)(function({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:a,originalModelPath:o,modifiedModelPath:l,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:u=!1,theme:c="light",loading:d="Loading...",options:f={},height:h="100%",width:m="100%",className:p,wrapperProps:g={},beforeMount:b=z,onMount:y=z}){let[v,w]=(0,r.useState)(!1),[S,k]=(0,r.useState)(!0),C=(0,r.useRef)(null),x=(0,r.useRef)(null),M=(0,r.useRef)(null),j=(0,r.useRef)(y),O=(0,r.useRef)(b),P=(0,r.useRef)(!1);W(()=>{let e=A();return e.then(e=>(x.current=e)&&k(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>{let t;return C.current?(t=C.current?.getModel(),void(s||t?.original?.dispose(),u||t?.modified?.dispose(),C.current?.dispose())):e.cancel()}}),$(()=>{if(C.current&&x.current){let t=C.current.getOriginalEditor(),r=V(x.current,e||"",i||n||"text",o||"");r!==t.getModel()&&t.setModel(r)}},[o],v),$(()=>{if(C.current&&x.current){let e=C.current.getModifiedEditor(),r=V(x.current,t||"",a||n||"text",l||"");r!==e.getModel()&&e.setModel(r)}},[l],v),$(()=>{let e=C.current.getModifiedEditor();e.getOption(x.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[t],v),$(()=>{C.current?.getModel()?.original.setValue(e||"")},[e],v),$(()=>{let{original:e,modified:t}=C.current.getModel();x.current.editor.setModelLanguage(e,i||n||"text"),x.current.editor.setModelLanguage(t,a||n||"text")},[n,i,a],v),$(()=>{x.current?.editor.setTheme(c)},[c],v),$(()=>{C.current?.updateOptions(f)},[f],v);let E=(0,r.useCallback)(()=>{if(!x.current)return;O.current(x.current);let r=V(x.current,e||"",i||n||"text",o||""),s=V(x.current,t||"",a||n||"text",l||"");C.current?.setModel({original:r,modified:s})},[n,t,a,e,i,o,l]),D=(0,r.useCallback)(()=>{!P.current&&M.current&&(C.current=x.current.editor.createDiffEditor(M.current,{automaticLayout:!0,...f}),E(),x.current?.editor.setTheme(c),w(!0),P.current=!0)},[f,c,E]);return(0,r.useEffect)(()=>{v&&j.current(C.current,x.current)},[v]),(0,r.useEffect)(()=>{S||v||D()},[S,v,D]),r.default.createElement(B,{width:m,height:h,isEditorReady:v,loading:d,_ref:M,className:p,wrapperProps:g})});var U=function(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current},H=new Map,G=(0,r.memo)(function({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:a,path:o,theme:l="light",line:s,loading:u="Loading...",options:c={},overrideServices:d={},saveViewState:f=!0,keepCurrentModel:h=!1,width:m="100%",height:p="100%",className:g,wrapperProps:b={},beforeMount:y=z,onMount:v=z,onChange:w,onValidate:S=z}){let[k,C]=(0,r.useState)(!1),[x,M]=(0,r.useState)(!0),j=(0,r.useRef)(null),O=(0,r.useRef)(null),P=(0,r.useRef)(null),E=(0,r.useRef)(v),D=(0,r.useRef)(y),_=(0,r.useRef)(),F=(0,r.useRef)(i),R=U(o),T=(0,r.useRef)(!1),N=(0,r.useRef)(!1);W(()=>{let e=A();return e.then(e=>(j.current=e)&&M(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>O.current?void(_.current?.dispose(),h?f&&H.set(o,O.current.saveViewState()):O.current.getModel()?.dispose(),O.current.dispose()):e.cancel()}),$(()=>{let r=V(j.current,e||i||"",t||a||"",o||n||"");r!==O.current?.getModel()&&(f&&H.set(R,O.current?.saveViewState()),O.current?.setModel(r),f&&O.current?.restoreViewState(H.get(o)))},[o],k),$(()=>{O.current?.updateOptions(c)},[c],k),$(()=>{O.current&&void 0!==i&&(O.current.getOption(j.current.editor.EditorOption.readOnly)?O.current.setValue(i):i!==O.current.getValue()&&(N.current=!0,O.current.executeEdits("",[{range:O.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),O.current.pushUndoStop(),N.current=!1))},[i],k),$(()=>{let e=O.current?.getModel();e&&a&&j.current?.editor.setModelLanguage(e,a)},[a],k),$(()=>{void 0!==s&&O.current?.revealLine(s)},[s],k),$(()=>{j.current?.editor.setTheme(l)},[l],k);let L=(0,r.useCallback)(()=>{if(!(!P.current||!j.current)&&!T.current){D.current(j.current);let r=o||n,u=V(j.current,i||e||"",t||a||"",r||"");O.current=j.current?.editor.create(P.current,{model:u,automaticLayout:!0,...c},d),f&&O.current.restoreViewState(H.get(r)),j.current.editor.setTheme(l),void 0!==s&&O.current.revealLine(s),C(!0),T.current=!0}},[e,t,n,i,a,o,c,d,f,l,s]);return(0,r.useEffect)(()=>{k&&E.current(O.current,j.current)},[k]),(0,r.useEffect)(()=>{x||k||L()},[x,k,L]),F.current=i,(0,r.useEffect)(()=>{k&&w&&(_.current?.dispose(),_.current=O.current?.onDidChangeModelContent(e=>{N.current||w(O.current.getValue(),e)}))},[k,w]),(0,r.useEffect)(()=>{if(k){let e=j.current.editor.onDidChangeMarkers(e=>{let t=O.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=j.current.editor.getModelMarkers({resource:t});S?.(e)}});return()=>{e?.dispose()}}return()=>{}},[k,S]),r.default.createElement(B,{width:m,height:p,isEditorReady:k,loading:u,_ref:P,className:g,wrapperProps:b})});function J(e,t){let n=(0,i.c)(5),[a,o]=(0,r.useState)(e),l=(0,r.useRef)(!0),s,u;n[0]!==e?(s=()=>{if(l.current){l.current=!1;return}o(e)},u=[e],n[0]=e,n[1]=s,n[2]=u):(s=n[1],u=n[2]),(0,r.useEffect)(s,u);let c=a??t,d;return n[3]!==c?(d=[c,o],n[3]=c,n[4]=d):d=n[4],d}var K=(0,r.createContext)(void 0),X=({children:e,config:t})=>{let[n,i]=J(t),{collectionsBySlug:o,globalsBySlug:l}=(0,r.useMemo)(()=>{let e={},t={};for(let t of n.collections)e[t.slug]=t;for(let e of n.globals)t[e.slug]=e;return{collectionsBySlug:e,globalsBySlug:t}},[n]),s=(0,r.useCallback)(e=>"collectionSlug"in e&&e.collectionSlug?o[e.collectionSlug]??null:"globalSlug"in e&&e.globalSlug?l[e.globalSlug]??null:null,[o,l]),u=(0,r.useMemo)(()=>({config:n,getEntityConfig:s,setConfig:i}),[n,s,i]);return(0,a.jsx)(K,{value:u,children:e})},Y=()=>(0,r.use)(K),Q=(0,r.createContext)({autoMode:!0,setTheme:()=>null,theme:"light"});function Z(e,t,n){let r=new Date;r.setTime(r.getTime()+24*n*36e5);let i="expires="+r.toUTCString();document.cookie=e+"="+t+";"+i+";path=/"}var ee="light",et=()=>(0,r.use)(Q),en=(e,t)=>{let n,a=(0,i.c)(9),o=void 0!==t&&t,[l,s]=r.useState(!1),u=r.useRef(void 0),c;a[0]!==e?(c=()=>(s(!1),clearTimeout(u.current),u.current=setTimeout(()=>{s(!0)},e),()=>{clearTimeout(u.current)}),a[0]=e,a[1]=c):c=a[1];let d=c,f,h;return a[2]!==d||a[3]!==o?(f=()=>{o&&d()},h=[d,o],a[2]=d,a[3]=o,a[4]=f,a[5]=h):(f=a[4],h=a[5]),r.useEffect(f,h),a[6]!==l||a[7]!==d?(n=[l,d],a[6]=l,a[7]=d,a[8]=n):n=a[8],n},er="shimmer-effect",ei=({animationDelay:e="0ms",className:t,disableInlineStyles:n=!1,height:r="60px",transparent:i,width:o="100%",...l})=>(0,a.jsx)("div",{...l,className:[er,i&&`${er}--transparent`,t].filter(Boolean).join(" "),style:{...l?.style||{},height:!n&&("number"==typeof r?`${r}px`:r),width:!n&&("number"==typeof o?`${o}px`:o)},children:(0,a.jsx)("div",{className:"shimmer-effect__shine",style:{animationDelay:e}})}),ea={insertSpaces:!1,tabSize:4,trimAutoWhitespace:!1},eo={hideCursorInOverviewRuler:!0,minimap:{enabled:!1},overviewRulerBorder:!1,readOnly:!1,scrollbar:{alwaysConsumeMouseWheel:!1},scrollBeyondLastLine:!1,wordWrap:"on"},el="default"in G?G.default:G;e.s(["a",0,J,"b",0,X,"c",0,Y,"d",0,e=>{let t=(0,i.c)(7),{children:n,config:o}=e,{config:l,setConfig:s}=Y(),u,c;if(t[0]!==o||t[1]!==s?(u=()=>{s(o)},c=[o,s],t[0]=o,t[1]=s,t[2]=u,t[3]=c):(u=t[2],c=t[3]),(0,r.useEffect)(u,c),l!==o&&l.unauthenticated!==o.unauthenticated){let e;return t[4]!==n||t[5]!==o?(e=(0,a.jsx)(X,{config:o,children:n}),t[4]=n,t[5]=o,t[6]=e):e=t[6],e}return n},"e",0,en,"f",0,ei,"g",0,e=>{let t,n,r=(0,i.c)(9),{className:o,count:l,height:s,renderDelay:u,shimmerDelay:c,shimmerItemClassName:d,width:f}=e,h=void 0===c?25:c,m="number"==typeof h?`${h}ms`:h,[p]=en(void 0===u?500:u,!0);return p?(r[0]!==l?(t=[...Array(l)],r[0]=l,r[1]=t):t=r[1],r[2]!==o||r[3]!==s||r[4]!==m||r[5]!==d||r[6]!==t||r[7]!==f?(n=(0,a.jsx)("div",{className:o,children:t.map((e,t)=>(0,a.jsx)("div",{className:d,children:(0,a.jsx)(ei,{animationDelay:`calc(${t} * ${m})`,height:s,width:f})},t))}),r[2]=o,r[3]=s,r[4]=m,r[5]=d,r[6]=t,r[7]=f,r[8]=n):n=r[8],n):null},"h",0,ee,"i",0,e=>{let t,n=(0,i.c)(11),{children:o,theme:l}=e,{config:s}=Y(),u=s.admin.theme,c=`${s.cookiePrefix||"payload"}-theme`,[d,f]=(0,r.useState)(l||ee),[h,m]=(0,r.useState)(),p,g;n[0]!==c||n[1]!==u?(p=()=>{let e,t;if("all"!==u)return;let{theme:n,themeFromCookies:r}=(e="light"===(t=window.document.cookie.split("; ").find(e=>e.startsWith(`${c}=`))?.split("=")[1])||"dark"===t?t:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",document.documentElement.setAttribute("data-theme",e),{theme:e,themeFromCookies:t});f(n),m(!r)},g=[u,c],n[0]=c,n[1]=u,n[2]=p,n[3]=g):(p=n[2],g=n[3]),(0,r.useEffect)(p,g),n[4]!==c?(t=e=>{if("light"===e||"dark"===e)f(e),m(!1),Z(c,e,365),document.documentElement.setAttribute("data-theme",e);else if("auto"===e){Z(c,e,-1);let t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";document.documentElement.setAttribute("data-theme",t),m(!0),f(t)}},n[4]=c,n[5]=t):t=n[5];let b=t,y;return n[6]!==h||n[7]!==o||n[8]!==b||n[9]!==d?(y=(0,a.jsx)(Q,{value:{autoMode:h,setTheme:b,theme:d},children:o}),n[6]=h,n[7]=o,n[8]=b,n[9]=d,n[10]=y):y=n[10],y},"j",0,et,"k",0,ea,"l",0,e=>{let t=(0,i.c)(10),{className:n,maxHeight:o,minHeight:l,options:s,readOnly:u,recalculatedHeightAt:c,value:d,...f}=e,h=l??56,m=r.default.useRef(c),{insertSpaces:p,tabSize:g,trimAutoWhitespace:b,...y}=s||{},v=s?.padding?(s.padding.top||0)+(s.padding?.bottom||0):0,[w,S]=(0,r.useState)(h),{theme:k}=et(),C=f?.defaultLanguage?`language--${f.defaultLanguage}`:"",x=u&&"read-only",M;t[0]!==n||t[1]!==C||t[2]!==x?(M=["code-editor",n,C,x].filter(Boolean),t[0]=n,t[1]=C,t[2]=x,t[3]=M):M=t[3];let j=M.join(" "),O,P;return t[4]!==h||t[5]!==v||t[6]!==c||t[7]!==d?(O=()=>{c&&c>m.current&&(S(d?Math.max(h,18*d.split(` `).length+2+v):h),m.current=c)},P=[d,h,v,c],t[4]=h,t[5]=v,t[6]=c,t[7]=d,t[8]=O,t[9]=P):(O=t[8],P=t[9]),r.default.useEffect(O,P),(0,a.jsx)(el,{className:j,height:o?Math.min(w,o):w,loading:(0,a.jsx)(ei,{height:w}),options:{...eo,...y,readOnly:!!u,detectIndentation:!1,insertSpaces:void 0,tabSize:void 0,trimAutoWhitespace:void 0},theme:"dark"===k?"vs-dark":"vs",value:d,...f,onChange:(e,t)=>{f.onChange?.(e,t),S(e?Math.max(h,18*e.split(` `).length+2+v):h)},onMount:(e,t)=>{f.onMount?.(e,t);let n=e.getModel();n&&n.updateOptions({insertSpaces:p??ea.insertSpaces,tabSize:g??ea.tabSize,trimAutoWhitespace:b??ea.trimAutoWhitespace}),S(Math.max(h,18*e.getValue().split(` `).length+2+v))}})}])},265055,e=>{"use strict";var t=e.i(827669);e.s(["useConfig",()=>t.c])},244874,e=>{"use strict";let t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var n=e.i(716609);let r={date:(0,n.buildFormatLongFn)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,n.buildFormatLongFn)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,n.buildFormatLongFn)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var a=e.i(649859);let o={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||re-1}),month:(0,a.buildLocalizeFn)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,a.buildLocalizeFn)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,a.buildLocalizeFn)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};var l=e.i(369796);let s={ordinalNumber:(0,e.i(91081).buildMatchPatternFn)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,l.buildMatchFn)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,l.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,l.buildMatchFn)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,l.buildMatchFn)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,l.buildMatchFn)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};e.s(["enUS",0,{code:"en-US",formatDistance:(e,n,r)=>{let i,a=t[e];if(i="string"==typeof a?a:1===n?a.one:a.other.replace("{{count}}",n.toString()),r?.addSuffix)if(r.comparison&&r.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:r,formatRelative:(e,t,n,r)=>i[e],localize:o,match:s,options:{weekStartsOn:0,firstWeekContainsDate:1}}],244874)},611082,e=>{"use strict";var t=e.i(605913),n=e.i(973776),r=e.i(541686),i=e.i(703057),a=e.i(592121);e.s(["a",0,(e,o)=>{let l,s=(0,t.c)(24),[u]=(0,n.useLexicalComposerContext)(),[c,d]=(0,a.useState)(null),[f,h]=(0,a.useState)(!1),{closeModal:m,modalState:p,toggleModal:g}=(0,r.useModal)(),b;s[0]!==u?(b=()=>{u.read(()=>{d((0,i.$getSelection)()??(0,i.$getPreviousSelection)())})},s[0]=u,s[1]=b):b=s[1];let y=b,v;s[2]!==u||s[3]!==c?(v=()=>{c&&u.update(()=>{(0,i.$setSelection)(c.clone())},{discrete:!0,skipTransforms:!0})},s[2]=u,s[3]=c,s[4]=v):v=s[4];let w=v,S;s[5]!==m||s[6]!==e?(S=()=>{m(e)},s[5]=m,s[6]=e,s[7]=S):S=s[7];let k=S,C=p?.[e]?.isOpen,x;s[8]!==C||s[9]!==w||s[10]!==e||s[11]!==y||s[12]!==g?(x=()=>{C?w():y(),h(!0),g(e)},s[8]=C,s[9]=w,s[10]=e,s[11]=y,s[12]=g,s[13]=x):x=s[13];let M=x,j,O;return s[14]!==p||s[15]!==o||s[16]!==w||s[17]!==e||s[18]!==f?(j=()=>{if(!f)return;let t=p[e];t&&!t?.isOpen&&(h(!1),o?setTimeout(()=>{w()},0):w())},O=[p,e,w,f,o],s[14]=p,s[15]=o,s[16]=w,s[17]=e,s[18]=f,s[19]=j,s[20]=O):(j=s[19],O=s[20]),(0,a.useEffect)(j,O),s[21]!==k||s[22]!==M?(l={closeDrawer:k,toggleDrawer:M},s[21]=k,s[22]=M,s[23]=l):l=s[23],l}])},990033,e=>{"use strict";let t,n="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),r=new Uint8Array(16),i=[];for(let e=0;e= 16");if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,a){if((s=s||0)a.length)throw RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`);for(let e=0;e{"use strict";var t=e.i(119305),n=e.i(605913),r=e.i(699173),i=e.i(541686),a=e.i(592121),o=e.i(193703),l=e.i(694654),s=e.i(634513),u=e.i(691478),c=e.i(990033),d=e.i(703057),f=({data:e,featureKey:n,fieldMapOverride:d,handleDrawerSubmit:f,schemaFieldsPathOverride:h,schemaPath:m,schemaPathSuffix:p})=>{let{t:g}=(0,l.useTranslation)(),{id:b,collectionSlug:y,getDocPreferences:v,globalSlug:w}=(0,i.useDocumentInfo)(),{fields:S}=(0,i.useDocumentForm)(),k=(0,o.useLexicalEditable)(),C=(0,a.useRef)(new AbortController),[x,M]=(0,a.useState)(!1),{fieldProps:{featureClientSchemaMap:j}}=(0,t.b)(),{getFormState:O}=(0,i.useServerFunctions)(),P=h??`${m}.lexical_internal_feature.${n}${p?`.${p}`:""}`,E=d??j[n]?.[P],D=(0,i.useEffectEvent)(async t=>{let{state:n}=await O({id:b,collectionSlug:y,data:e??{},docPermissions:{fields:!0},docPreferences:await v(),documentFormState:(0,u.deepCopyObjectSimpleWithoutReactComponents)(S,{excludeFiles:!0}),globalSlug:w,initialBlockData:e,operation:"update",readOnly:!k,renderAllFields:!0,schemaPath:P,signal:t.signal});M(n)});(0,a.useEffect)(()=>{let e=new AbortController;return D(e),()=>{(0,s.abortAndIgnore)(e)}},[P,b,e,O,y,k,w,v]);let _=(0,a.useCallback)(async({formState:e})=>{(0,s.abortAndIgnore)(C.current);let t=new AbortController;C.current=t;let{state:n}=await O({id:b,collectionSlug:y,docPermissions:{fields:!0},docPreferences:await v(),documentFormState:(0,u.deepCopyObjectSimpleWithoutReactComponents)(S,{excludeFiles:!0}),formState:e,globalSlug:w,initialBlockFormState:e,operation:"update",readOnly:!k,schemaPath:P,signal:t.signal});return n||e},[O,b,k,y,v,S,w,P]);return(0,a.useEffect)(()=>()=>{(0,s.abortAndIgnore)(C.current)},[]),!1===x?null:(0,r.jsxs)(i.Form,{beforeSubmit:[_],disableValidationOnSubmit:!0,fields:Array.isArray(E)?E:[],initialState:x,onChange:[_],onSubmit:f,uuid:(0,c.v4)(),children:[(0,r.jsx)(i.RenderFields,{fields:Array.isArray(E)?E:[],forceRender:!0,parentIndexPath:"",parentPath:"",parentSchemaPath:P,permissions:!0,readOnly:!k}),(0,r.jsx)(i.FormSubmit,{children:g("fields:saveChanges")})]})},h=(0,d.createCommand)("INSERT_UPLOAD_WITH_DRAWER_COMMAND");e.s(["a",0,e=>{let t,a=(0,n.c)(15),{className:o,data:l,drawerSlug:s,drawerTitle:u,featureKey:c,fieldMapOverride:d,handleDrawerSubmit:h,schemaFieldsPathOverride:m,schemaPath:p,schemaPathSuffix:g}=e,{closeModal:b}=(0,i.useModal)(),y=u??"",v;return a[0]!==b||a[1]!==s||a[2]!==h?(v=(e,t)=>{b(s),setTimeout(()=>{h(e,t)},1)},a[0]=b,a[1]=s,a[2]=h,a[3]=v):v=a[3],a[4]!==o||a[5]!==l||a[6]!==s||a[7]!==c||a[8]!==d||a[9]!==m||a[10]!==p||a[11]!==g||a[12]!==y||a[13]!==v?(t=(0,r.jsx)(i.EditDepthProvider,{children:(0,r.jsx)(i.Drawer,{className:o,slug:s,title:y,children:(0,r.jsx)(f,{data:l,featureKey:c,fieldMapOverride:d,handleDrawerSubmit:v,schemaFieldsPathOverride:m,schemaPath:p,schemaPathSuffix:g})})}),a[4]=o,a[5]=l,a[6]=s,a[7]=c,a[8]=d,a[9]=m,a[10]=p,a[11]=g,a[12]=y,a[13]=v,a[14]=t):t=a[14],t},"b",0,h])},239396,e=>{"use strict";var t=e.i(827669);e.s(["ShimmerEffect",()=>t.f])},161648,e=>{"use strict";var t=e.i(611082),n=e.i(119305),r=e.i(699173),i=e.i(973776),a=e.i(193703),o=e.i(929127),l=e.i(541686),s=e.i(239396),u=e.i(265055),c=e.i(694654),d=e.i(634513),f=e.i(703057),h=e.i(691478),m=e.i(509388),p=e.i(592121),g=e.i(990033),b=e.i(756961),y=class extends f.DecoratorNode{__cacheBuster;__fields;constructor({cacheBuster:e,fields:t,key:n}){super(n),this.__fields=t,this.__cacheBuster=e||0}static clone(e){return new this({cacheBuster:e.__cacheBuster,fields:e.__fields,key:e.__key})}static getType(){return"inlineBlock"}static importDOM(){return{}}static importJSON(e){var t;return t=e.fields,(0,f.$applyNodeReplacement)(new y({fields:{...t,id:t?.id||new b.default.default().toHexString()}}))}static isInline(){return!1}canIndent(){return!0}createDOM(e){let t=document.createElement("span");return(0,f.addClassNamesToElement)(t,e?.theme?.inlineBlock),t}decorate(e,t){return null}exportDOM(){let e=document.createElement("span");e.classList.add("inline-block-container");let t=document.createTextNode(this.getTextContent());return e.append(t),{element:e}}exportJSON(){return{type:"inlineBlock",fields:this.getFields(),version:1}}getCacheBuster(){return this.getLatest().__cacheBuster}getFields(){return this.getLatest().__fields}getTextContent(){return"Block Field"}isInline(){return!0}setFields(e,t){let n=this.getWritable();n.__fields=e,t||n.__cacheBuster++}updateDOM(){return!1}},v=p.default.lazy(()=>e.A(815410).then(e=>({default:e.InlineBlockComponent}))),w=class extends y{static clone(e){return super.clone(e)}static getType(){return super.getType()}static importJSON(e){return S(e.fields)}decorate(...[e,t,n,i]){return(0,r.jsx)(v,{cacheBuster:this.getCacheBuster(),className:t.theme.inlineBlock??"LexicalEditorTheme__inlineBlock",CustomBlock:n,CustomLabel:i,formData:this.getFields(),nodeKey:this.getKey()})}exportJSON(){return super.exportJSON()}};function S(e){return(0,f.$applyNodeReplacement)(new w({fields:{...e,id:e?.id||new b.default.default().toHexString()}}))}function k(e){return e instanceof w}var C=(0,p.createContext)({initialState:!1}),x=()=>p.default.use(C);e.s(["a",0,x,"b",0,e=>{let{cacheBuster:b,className:y,CustomBlock:v,CustomLabel:w,formData:S,nodeKey:M}=e,[j]=(0,i.useLexicalComposerContext)(),O=(0,a.useLexicalEditable)(),{i18n:P,t:E}=(0,c.useTranslation)(),{createdInlineBlock:D,fieldProps:{featureClientSchemaMap:_,initialLexicalFormState:F,schemaPath:A},setCreatedInlineBlock:R,uuid:T}=(0,n.b)(),{fields:N}=(0,l.useDocumentForm)(),{getFormState:L}=(0,l.useServerFunctions)(),I=(0,l.useEditDepth)(),B=(0,p.useRef)(!1),[W,$]=p.default.useState(()=>{let e=F?.[S.id]?.formState;return!!e&&Object.fromEntries(Object.entries(e).map(([e,t])=>[e,e in S?{...t,initialValue:S[e],value:S[e]}:t]))}),z=(0,p.useRef)(!1),V=(0,p.useRef)(b);(0,p.useEffect)(()=>{z.current?(V.current!==b&&$(!1),V.current=b):z.current=!0},[b]);let[q]=p.default.useState(()=>(0,g.v4)()),[U,H]=p.default.useState(()=>{if(!w)return W?._components?.customComponents?.BlockLabel??void 0}),[G,J]=p.default.useState(()=>{if(!v)return W?._components?.customComponents?.Block??void 0}),K=(0,p.useMemo)(()=>v?(0,r.jsx)(v,{className:y,formData:S,isEditor:!0,isJSXConverter:!1,nodeKey:M,useInlineBlockComponentContext:x}):G,[v,y,S,M,G]),X=(0,p.useMemo)(()=>w?(0,r.jsx)(w,{className:y,formData:S,isEditor:!0,isJSXConverter:!1,nodeKey:M,useInlineBlockComponentContext:x}):U,[w,y,S,M,U]),Y=(0,l.formatDrawerSlug)({slug:`lexical-inlineBlocks-create-${T}-${S.id}`,depth:I}),{toggleDrawer:Q}=(0,t.a)(Y,!0),Z=(0,p.useRef)(null),{id:ee,collectionSlug:et,getDocPreferences:en,globalSlug:er}=(0,l.useDocumentInfo)(),{config:ei}=(0,u.useConfig)(),ea=`${A}.lexical_internal_feature.blocks.lexical_inline_blocks.${S.blockType}`,eo=_.blocks?.[ea]?.[0],el=eo.blockReferences?"string"==typeof eo?.blockReferences?.[0]?ei.blocksMap[eo?.blockReferences?.[0]]:eo?.blockReferences?.[0]:eo?.blocks?.[0],es=el?.fields??[];(0,p.useEffect)(()=>{B.current||D?.getKey()!==M||(es.length>2&&Q(),R?.(void 0),B.current=!0)},[es.length,D,M,R,Q]);let eu=(0,p.useCallback)(()=>{j.update(()=>{(0,f.$getNodeByKey)(M)?.remove()})},[j,M]),ec=el?.labels?.singular?(0,o.getTranslation)(el?.labels.singular,P):el?.slug,ed=(0,p.useRef)(new AbortController),ef=`${A}.lexical_internal_feature.blocks.lexical_inline_blocks.${el?.slug}.fields`;(0,p.useEffect)(()=>{let e=new AbortController;return S&&!W&&(async()=>{let{state:t}=await L({id:ee,collectionSlug:et,data:S,docPermissions:{fields:!0},docPreferences:await en(),documentFormState:(0,h.deepCopyObjectSimpleWithoutReactComponents)(N,{excludeFiles:!0}),globalSlug:er,initialBlockData:S,initialBlockFormState:S,operation:"update",readOnly:!O,renderAllFields:!0,schemaPath:ef,signal:e.signal});if(t){let e=(0,m.reduceFieldsToValues)((0,h.deepCopyObjectSimpleWithoutReactComponents)(t,{excludeFiles:!0}),!0);j.update(()=>{let t=(0,f.$getNodeByKey)(M);t&&k(t)&&(e.blockType=S.blockType,t.setFields(e,!0))},{tag:f.SKIP_DOM_SELECTION_TAG}),$(t),w||H(t._components?.customComponents?.BlockLabel),v||J(t._components?.customComponents?.Block)}})(),()=>{(0,d.abortAndIgnore)(e)}},[L,j,M,O,w,v,ef,ee,S,W,et,er,en,N]);let eh=(0,p.useCallback)(async({formState:e,submit:t})=>{(0,d.abortAndIgnore)(ed.current);let n=new AbortController;ed.current=n;let{state:r}=await L({id:ee,collectionSlug:et,docPermissions:{fields:!0},docPreferences:await en(),documentFormState:(0,h.deepCopyObjectSimpleWithoutReactComponents)(N,{excludeFiles:!0}),formState:e,globalSlug:er,initialBlockFormState:e,operation:"update",readOnly:!O,renderAllFields:!!t,schemaPath:ef,signal:n.signal});return r?(t&&(w||H(r._components?.customComponents?.BlockLabel),v||J(r._components?.customComponents?.Block)),r):e},[L,ee,et,en,N,er,O,ef,v,w]);(0,p.useEffect)(()=>()=>{W&&Object.keys(W).some(e=>W[e]&&S[e]!==W[e].value)&&$(!1),(0,d.abortAndIgnore)(ed.current)},[S,W]);let em=(0,p.useCallback)((e,t)=>{t.blockType=S.blockType,j.update(()=>{let e=(0,f.$getNodeByKey)(M);e&&k(e)&&e.setFields(t,!0)},{tag:f.SKIP_DOM_SELECTION_TAG})},[j,M,S]),ep=(0,p.useMemo)(()=>()=>(0,r.jsx)(l.Button,{buttonStyle:"icon-label",className:`${y}__removeButton`,disabled:!O,icon:"x",onClick:e=>{e.preventDefault(),eu()},round:!0,size:"small",tooltip:E("lexical:blocks:inlineBlocks:remove",{label:ec})}),[y,ec,O,eu,E]),eg=(0,p.useMemo)(()=>()=>(0,r.jsx)(l.Button,{buttonStyle:"icon-label",className:`${y}__editButton`,disabled:!O,el:"button",icon:"edit",onClick:()=>{Q()},round:!0,size:"small",tooltip:E("lexical:blocks:inlineBlocks:edit",{label:ec})}),[y,ec,O,E,Q]),eb=(0,p.useMemo)(()=>({children:e,className:t})=>(0,r.jsx)("div",{className:[`${y}__container`,y+"-"+S.blockType,t].filter(Boolean).join(" "),ref:Z,children:e}),[y,S.blockType]),ey=(0,p.useMemo)(()=>X?()=>X:()=>(0,r.jsx)("div",{children:el?.labels?(0,o.getTranslation)(el?.labels.singular,P):""}),[X,el?.labels,P]);return el?(0,r.jsxs)(l.Form,{beforeSubmit:[async({formState:e})=>await eh({formState:e,submit:!0})],disableValidationOnSubmit:!0,el:"div",fields:el?.fields,initialState:W||{},onChange:[eh],onSubmit:(e,t)=>{em(e,t),Q()},uuid:q,children:[(0,r.jsx)(l.EditDepthProvider,{children:(0,r.jsx)(l.Drawer,{className:"",slug:Y,title:E(`lexical:blocks:inlineBlocks:${S?.id?"edit":"create"}`,{label:ec??E("lexical:blocks:inlineBlocks:label")}),children:W?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.RenderFields,{fields:el?.fields,forceRender:!0,parentIndexPath:"",parentPath:"",parentSchemaPath:ef,permissions:!0,readOnly:!O}),(0,r.jsx)(l.FormSubmit,{programmaticSubmit:!0,children:E("fields:saveChanges")})]}):null})}),K?(0,r.jsx)(C,{value:{EditButton:eg,initialState:W,InlineBlockContainer:eb,Label:ey,nodeKey:M,RemoveButton:ep},children:K}):(0,r.jsxs)(eb,{children:[W?(0,r.jsx)(ey,{}):(0,r.jsx)(s.ShimmerEffect,{height:"15px",width:"40px"}),O?(0,r.jsxs)("div",{className:`${y}__actions`,children:[(0,r.jsx)(eg,{}),(0,r.jsx)(ep,{})]}):null]})]}):(0,r.jsxs)(eb,{className:`${y}-not-found`,children:[(0,r.jsxs)("span",{children:["Error: Block '",S.blockType,"' not found"]}),O?(0,r.jsx)("div",{className:`${y}__actions`,children:(0,r.jsx)(ep,{})}):null]})},"c",0,w,"d",0,S,"e",0,k])},514514,e=>{"use strict";var t=e.i(592121);let n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},r=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,t.forwardRef)(({color:e="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:l="",children:s,iconNode:u,...c},d)=>(0,t.createElement)("svg",{ref:d,...i,width:n,height:n,stroke:e,strokeWidth:o?24*Number(a)/Number(n):a,className:r("lucide",l),...!s&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(c)&&{"aria-hidden":"true"},...c},[...u.map(([e,n])=>(0,t.createElement)(e,n)),...Array.isArray(s)?s:[s]]));e.s(["default",0,(e,i)=>{let o=(0,t.forwardRef)(({className:o,...l},s)=>(0,t.createElement)(a,{ref:s,iconNode:i,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...l}));return o.displayName=n(e),o}],514514)},107983,(e,t,n)=>{"use strict";var r=e.r(592121),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="u"{"use strict";t.exports=e.r(107983)},659425,e=>{"use strict";var t=e.i(827669);e.s(["useTheme",()=>t.j])},466029,e=>{"use strict";function t(e,t){return t10};let{visible:a,hiddenCount:o}=t(e.fields,10);return{visible:a,hiddenCount:o,hasToggleRow:o>0}}let r="Other collections",i="Globals";e.s(["ACCESS_OPS",0,["create","read","update","delete","admin","unlock","readVersions"],"FIELD_LIST_PADDING",0,14,"FIELD_ROW_HEIGHT",0,19,"LEGEND_GROUPS",0,[{title:"Reference kind",items:[{swatch:"relationship",label:"Relationship",description:"A relationship field pointing at another entity"},{swatch:"upload",label:"Upload",description:"An upload field pointing at a media collection"},{swatch:"join",label:"Join",description:"A join field — the reverse side of a relationship declared elsewhere"},{swatch:"self",label:"Self-reference",description:"The entity references itself, so the line loops back to its own box"}]},{title:"Line style",items:[{swatch:"required",label:"Required",description:"Solid — the field is required"},{swatch:"optional",label:"Optional",description:"Dashed — the field is optional"},{swatch:"polymorphic",label:"Polymorphic",description:"Thicker — one field targeting more than one entity"}]},{title:"Box state",items:[{swatch:"focused",label:"Focused",description:"The entity the graph is focused on"},{swatch:"context",label:"Context only",description:"At the edge of the depth filter — shown for context, but its own relationships were not walked"}]}],"MAX_VISIBLE_NODE_BADGES",0,3,"NODE_HEADER_HEIGHT",0,58,"NODE_WIDTH",0,268,"SELF_LOOP_DROP",0,26,"SELF_LOOP_REACH",0,34,"buildEntityOptions",0,function(e,t){let n=t.trim().toLowerCase(),a=e.filter(e=>!n||e.slug.toLowerCase().includes(n)||e.label.toLowerCase().includes(n)||(e.typeName?.toLowerCase().includes(n)??!1)).map(e=>({slug:e.slug,label:e.label,group:"global"===e.kind?i:e.group??r})),o=new Map;for(let e of a){let t=o.get(e.group);t?t.push(e):o.set(e.group,[e])}let l=e=>e===i?2:+(e===r);return[...o.entries()].sort(([e],[t])=>l(e)-l(t)||e.localeCompare(t)).map(([e,t])=>({group:e,options:[...t].sort((e,t)=>e.label.localeCompare(t.label))}))},"capFieldRows",0,t,"deriveFieldMarkers",0,function(e){let t=[];return e.required&&t.push({key:"required",glyph:"*",label:"required"}),e.unique&&t.push({key:"unique",glyph:"U",label:"unique"}),e.localized&&t.push({key:"localized",glyph:"L",label:"localized"}),e.hasIndex&&t.push({key:"indexed",glyph:"I",label:"indexed"}),t},"deriveNodeBadges",0,function(e){let t=[];return e.internal&&t.push({key:"internal",label:"Internal",title:"Payload's own infrastructure, not part of this project's content model",tone:"neutral"}),"global"===e.kind&&t.push({key:"global",label:"Global",title:"A global — a single document rather than a collection",tone:"info"}),e.auth&&t.push({key:"auth",label:"Auth",title:"Auth-enabled: documents in this collection can log in",tone:"warn"}),e.upload&&t.push({key:"upload",label:"Upload",title:"Upload-enabled: documents carry a file",tone:"info"}),e.versions?.enabled&&t.push({key:"versioned",label:"Versioned",title:"number"==typeof e.versions.maxPerDoc?`Versioned, keeping up to ${e.versions.maxPerDoc} versions per document`:"Versioned",tone:"success"}),e.versions?.drafts&&t.push({key:"drafts",label:"Drafts",title:"Drafts enabled: documents have a published/draft lifecycle",tone:"success"}),e.versions?.autosave&&t.push({key:"autosave",label:"Autosave",title:"number"==typeof e.versions.autosaveInterval?`Autosaves every ${e.versions.autosaveInterval}ms`:"Autosave enabled",tone:"neutral"}),e.versions?.schedulePublish&&t.push({key:"schedule-publish",label:"Scheduled",title:"Scheduled publishing is enabled",tone:"neutral"}),e.rules.localizedFieldCount>0&&t.push({key:"localized",label:"Localized",title:`${e.rules.localizedFieldCount} localized field(s)`,tone:"info"}),t},"describeGraphScope",0,function(e){let t=e.includeGlobals?e.totalCollections+e.totalGlobals:e.totalCollections,n=`${e.includedNodeCount} of ${t} entities, ${e.includedEdgeCount} relationships`,r=[];return e.includeGlobals||r.push("globals excluded"),e.includeInternal||r.push("Payload internals excluded"),e.truncated&&r.push("the depth filter dropped entities that exist in the config"),r.length>0?`${n} — ${r.join("; ")}`:n},"describeVersions",0,function(e){if(!e||!e.enabled)return"Not versioned.";let t=["Versioned"];return"number"==typeof e.maxPerDoc&&t.push(`keeping up to ${e.maxPerDoc} version${1===e.maxPerDoc?"":"s"} per document`),t.push(e.drafts?"with drafts, so documents have a published/draft lifecycle":"without drafts, so every save publishes"),e.autosave&&t.push("number"==typeof e.autosaveInterval?`autosaving every ${e.autosaveInterval}ms`:"autosaving"),e.schedulePublish&&t.push("with scheduled publishing"),`${t.join(", ")}.`},"fieldListState",0,function(e,t){return e.fields.length>0?"listed":t?"empty":"not-requested"},"groupConditionals",0,function(e){let t=new Map;for(let n of e){let e=[...n.dependsOn].sort(),r=e.join(" + "),i=t.get(r);i?i.items.push(n):t.set(r,{key:r,dependsOn:e,items:[n]})}return[...t.values()].sort((e,t)=>""===e.key?1:""===t.key?-1:t.items.length-e.items.length||e.key.localeCompare(t.key))},"isContextOnly",0,function(e,t,n){return!!t&&void 0!==n&&"number"==typeof e.distanceFromFocus&&e.distanceFromFocus>=n&&n>0},"isFocused",0,function(e,t){return!!t&&e.slug===t},"isSelfReferenceField",0,function(e,t){return(e.relationTo?.includes(t)??!1)||e.joinCollection===t},"nodeHeight",0,function(e,t,r=!1){let{visible:i,hasToggleRow:a}=n(e,t,r);return 0===i.length?58:72+(i.length+ +!!a)*19},"visibleFieldRows",0,n])},62728,e=>{"use strict";async function t(e){try{return{data:await e,error:null}}catch(e){return{data:null,error:e}}}e.s(["tryCatch",0,t])},999066,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return c},getImageProps:function(){return u}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(481258),o=e.r(589204),l=e.r(146330),s=a._(e.r(165613));function u(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/vc-ap-b753e3/_next/image/",loader:"custom",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let c=l.Image},680852,(e,t,n)=>{t.exports=e.r(999066)},37429,e=>{"use strict";var t=e.i(699173),n=e.i(592121),r=e.i(680852),i=e.i(632137);let a={square:"Square (1:1)",video:"Video (16:9)",goldenPortrait:"Golden Portrait (1:1.618)",goldenLandscape:"Golden Landscape (1.618:1)","16/9":"16:9","8/5":"8:5","4/3":"4:3","3/2":"3:2","2/3":"2/3","1/1":"1:1",auto:"Auto"},o=["square","video","goldenPortrait","goldenLandscape","16/9","8/5","4/3","3/2","2/3","1/1","auto"].map(e=>({label:a[e],value:e})),l={square:"aspect-square",video:"aspect-video",goldenPortrait:"aspect-[1/1.618]",goldenLandscape:"aspect-[1.618/1]","16/9":"aspect-[16/9]","8/5":"aspect-[8/5]","4/3":"aspect-[4/3]","3/2":"aspect-[3/2]","2/3":"aspect-[2/3]","1/1":"aspect-[1/1]",auto:"h-full w-full"},s=(0,n.forwardRef)(({src:e,alt:n,shadow:a,rounded:o=!0,className:s,wrapperClassName:u,width:c=320,height:d=180,quality:f,priority:h=!1,loading:m,isFetchPriority:p=!1,objectFit:g,fill:b=!1,sizes:y,aspectRatio:v,isAnimated:w=!1,...S},k)=>{if(!e)return null;let C=w||e.toLowerCase().endsWith(".gif"),x=b||!!v,M=g??(v?"cover":"contain"),j=v?l[v]:"",O=(0,t.jsx)(r.default,{ref:k,src:e,alt:n,width:x?void 0:c,height:x?void 0:d,quality:f,priority:h,loading:m,fetchPriority:p?"high":void 0,fill:x,sizes:y,unoptimized:C,className:(0,i.cn)({"shadow-md":a,"rounded-lg":o,"object-contain":"contain"===M,"object-cover":"cover"===M,"object-fill":"fill"===M,"object-none":"none"===M,"object-scale-down":"scale-down"===M,"h-auto w-full":!x},s),...S});return x?(0,t.jsx)("div",{className:(0,i.cn)("relative overflow-hidden",j,!v&&"h-full w-full",u),children:O}):O});s.displayName="Image",e.s(["ASPECT_RATIO_OPTIONS",0,o,"Image",0,s,"default",0,s])},132877,e=>{"use strict";var t=e.i(605913),n=e.i(699173),r=e.i(973776),i=e.i(541686),a=e.i(703057),o=e.i(592121);e.s(["a",0,e=>{let l,s,u=(0,t.c)(21),[c]=(0,r.useLexicalComposerContext)(),[d,f]=(0,o.useState)(null),[h,m]=(0,o.useState)(!1),[p,g,b]=(0,i.useDocumentDrawer)(e),{closeDrawer:y,drawerSlug:v}=b,{modalState:w}=(0,i.useModal)(),S;u[0]!==c?(S=()=>{c.read(()=>{f((0,a.$getSelection)()??(0,a.$getPreviousSelection)())}),m(!0)},u[0]=c,u[1]=S):S=u[1];let k=S,C;u[2]!==c||u[3]!==d?(C=()=>{d&&c.update(()=>{(0,a.$setSelection)(d.clone())},{discrete:!0,skipTransforms:!0})},u[2]=c,u[3]=d,u[4]=C):C=u[4];let x=C,M;u[5]!==y?(M=()=>{y()},u[5]=y,u[6]=M):M=u[6];let j=M,O,P;return u[7]!==v||u[8]!==w||u[9]!==x||u[10]!==h?(O=()=>{if(!h)return;let e=w[v];e&&!e?.isOpen&&(m(!1),setTimeout(()=>{x()},1))},P=[w,v,x,h],u[7]=v,u[8]=w,u[9]=x,u[10]=h,u[11]=O,u[12]=P):(O=u[11],P=u[12]),(0,o.useEffect)(O,P),u[13]!==g||u[14]!==k?(l=e=>(0,n.jsx)(g,{...e,onClick:k}),u[13]=g,u[14]=k,u[15]=l):l=u[15],u[16]!==p||u[17]!==j||u[18]!==v||u[19]!==l?(s={closeDocumentDrawer:j,DocumentDrawer:p,documentDrawerSlug:v,DocumentDrawerToggler:l},u[16]=p,u[17]=j,u[18]=v,u[19]=l,u[20]=s):s=u[20],s}])},845202,e=>{"use strict";var t=(0,e.i(703057).createCommand)("INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND");e.s(["a",0,t])},365953,e=>{"use strict";e.s(["SCHEDULED_COLOR",0,"#9ca3af"])},104777,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={callServer:function(){return a.callServer},createServerReference:function(){return l.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(836549),o=e.r(560716),l=e.r(544383)},730956,e=>{"use strict";var t=e.i(605913),n=e.i(699173),r=e.i(541686);e.i(592121),e.s(["NavWrapper",0,e=>{let i,a,o=(0,t.c)(11),{baseClass:l,children:s}=e,{hydrated:u,navOpen:c,navRef:d,shouldAnimate:f}=(0,r.useNav)(),h=c&&`${l}--nav-open`,m=f&&`${l}--nav-animate`,p=u&&`${l}--nav-hydrated`;o[0]!==l||o[1]!==h||o[2]!==m||o[3]!==p?(i=[l,h,m,p].filter(Boolean),o[0]=l,o[1]=h,o[2]=m,o[3]=p,o[4]=i):i=o[4];let g=i.join(" "),b=!c||void 0,y=`${l}__scroll`;return o[5]!==s||o[6]!==d||o[7]!==g||o[8]!==b||o[9]!==y?(a=(0,n.jsx)("aside",{className:g,inert:b,children:(0,n.jsx)("div",{className:y,ref:d,children:s})}),o[5]=s,o[6]=d,o[7]=g,o[8]=b,o[9]=y,o[10]=a):a=o[10],a}])}]);